1546 lines
6.0 MiB
1546 lines
6.0 MiB
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={};/**
|
||
* @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.
|
||
*/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.");return e}};pi.Component=Ix;pi.Fragment=O3t;pi.Profiler=I3t;pi.PureComponent=Lfe;pi.StrictMode=T3t;pi.Suspense=A3t;pi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B3t;pi.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=xNe({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Nfe.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)$Ne.call(t,l)&&!ONe.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:PI,type:e.type,key:i,ref:o,props:r,_owner:s}};pi.createContext=function(e){return e={$$typeof:P3t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:M3t,_context:e},e.Consumer=e};pi.createElement=TNe;pi.createFactory=function(e){var t=TNe.bind(null,e);return t.type=e,t};pi.createRef=function(){return{current:null}};pi.forwardRef=function(e){return{$$typeof:_3t,render:e}};pi.isValidElement=kfe;pi.lazy=function(e){return{$$typeof:L3t,_payload:{_status:-1,_result:e},_init:z3t}};pi.memo=function(e,t){return{$$typeof:D3t,type:e,compare:t===void 0?null:t}};pi.startTransition=function(e){var t=AF.transition;AF.transition={};try{e()}finally{AF.transition=t}};pi.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};pi.useCallback=function(e,t){return bc.current.useCallback(e,t)};pi.useContext=function(e){return bc.current.useContext(e)};pi.useDebugValue=function(){};pi.useDeferredValue=function(e){return bc.current.useDeferredValue(e)};pi.useEffect=function(e,t){return bc.current.useEffect(e,t)};pi.useId=function(){return bc.current.useId()};pi.useImperativeHandle=function(e,t,n){return bc.current.useImperativeHandle(e,t,n)};pi.useInsertionEffect=function(e,t){return bc.current.useInsertionEffect(e,t)};pi.useLayoutEffect=function(e,t){return bc.current.useLayoutEffect(e,t)};pi.useMemo=function(e,t){return bc.current.useMemo(e,t)};pi.useReducer=function(e,t,n){return bc.current.useReducer(e,t,n)};pi.useRef=function(e){return bc.current.useRef(e)};pi.useState=function(e){return bc.current.useState(e)};pi.useSyncExternalStore=function(e,t,n){return bc.current.useSyncExternalStore(e,t,n)};pi.useTransition=function(){return bc.current.useTransition()};pi.version="18.2.0";SNe.exports=pi;var d=SNe.exports;const ce=Bm(d),Mx=yNe({__proto__:null,default:ce},[d]);/**
|
||
* @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.
|
||
*/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={};/**
|
||
* @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.
|
||
*/(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;/**
|
||
* @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.
|
||
*/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 vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zfe,Bfe);cl[t]=new Sc(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zfe,Bfe);cl[t]=new Sc(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zfe,Bfe);cl[t]=new Sc(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){cl[e]=new Sc(e,1,!1,e.toLowerCase(),null,!1,!1)});cl.xlinkHref=new Sc("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){cl[e]=new Sc(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hfe(e,t,n,r){var i=cl.hasOwnProperty(t)?cl[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Q3t(t,n,i,r)&&(n=null),r||i===null?Y3t(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var X0=ANe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jA=Symbol.for("react.element"),lS=Symbol.for("react.portal"),cS=Symbol.for("react.fragment"),jfe=Symbol.for("react.strict_mode"),Poe=Symbol.for("react.profiler"),LNe=Symbol.for("react.provider"),FNe=Symbol.for("react.context"),Vfe=Symbol.for("react.forward_ref"),_oe=Symbol.for("react.suspense"),Aoe=Symbol.for("react.suspense_list"),Gfe=Symbol.for("react.memo"),x2=Symbol.for("react.lazy"),NNe=Symbol.for("react.offscreen"),KCe=Symbol.iterator;function AE(e){return e===null||typeof e!="object"?null:(e=KCe&&e[KCe]||e["@@iterator"],typeof e=="function"?e:null)}var rs=Object.assign,xJ;function qR(e){if(xJ===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);xJ=t&&t[1]||""}return`
|
||
`+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=`
|
||
`+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,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Noe(e,t,n){(t!=="number"||vk(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var KR=Array.isArray;function kS(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+L4(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function koe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(fn(91));return rs({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function QCe(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(fn(92));if(KR(n)){if(1<n.length)throw Error(fn(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:L4(n)}}function HNe(e,t){var n=L4(t.value),r=L4(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ZCe(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function jNe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function zoe(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?jNe(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var GA,VNe=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(GA=GA||document.createElement("div"),GA.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=GA.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function TO(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var T$={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},t6t=["Webkit","ms","Moz","O"];Object.keys(T$).forEach(function(e){t6t.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),T$[t]=T$[e]})});function GNe(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||T$.hasOwnProperty(e)&&T$[e]?(""+t).trim():t+"px"}function WNe(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=GNe(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var n6t=rs({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Boe(e,t){if(t){if(n6t[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(fn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(fn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(fn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(fn(62))}}function Hoe(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var joe=null;function Wfe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Voe=null,zS=null,BS=null;function JCe(e){if(e=DI(e)){if(typeof Voe!="function")throw Error(fn(280));var t=e.stateNode;t&&(t=KH(t),Voe(e.stateNode,e.type,t))}}function UNe(e){zS?BS?BS.push(e):BS=[e]:zS=e}function qNe(){if(zS){var e=zS,t=BS;if(BS=zS=null,JCe(e),t)for(e=0;e<t.length;e++)JCe(t[e])}}function KNe(e,t){return e(t)}function YNe(){}var $J=!1;function XNe(e,t,n){if($J)return e(t,n);$J=!0;try{return KNe(e,t,n)}finally{$J=!1,(zS!==null||BS!==null)&&(YNe(),qNe())}}function IO(e,t){var n=e.stateNode;if(n===null)return null;var r=KH(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(fn(231,t,typeof n));return n}var Goe=!1;if($0)try{var DE={};Object.defineProperty(DE,"passive",{get:function(){Goe=!0}}),window.addEventListener("test",DE,DE),window.removeEventListener("test",DE,DE)}catch{Goe=!1}function r6t(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var I$=!1,Ck=null,yk=!1,Woe=null,i6t={onError:function(e){I$=!0,Ck=e}};function o6t(e,t,n,r,i,o,s,a,l){I$=!1,Ck=null,r6t.apply(i6t,arguments)}function s6t(e,t,n,r,i,o,s,a,l){if(o6t.apply(this,arguments),I$){if(I$){var c=Ck;I$=!1,Ck=null}else throw Error(fn(198));yk||(yk=!0,Woe=c)}}function Ry(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function QNe(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function eye(e){if(Ry(e)!==e)throw Error(fn(188))}function a6t(e){var t=e.alternate;if(!t){if(t=Ry(e),t===null)throw Error(fn(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return eye(i),e;if(o===r)return eye(i),t;o=o.sibling}throw Error(fn(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(fn(189))}}if(n.alternate!==r)throw Error(fn(190))}if(n.tag!==3)throw Error(fn(188));return n.stateNode.current===n?e:t}function ZNe(e){return e=a6t(e),e!==null?JNe(e):null}function JNe(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=JNe(e);if(t!==null)return t;e=e.sibling}return null}var eke=vd.unstable_scheduleCallback,tye=vd.unstable_cancelCallback,l6t=vd.unstable_shouldYield,c6t=vd.unstable_requestPaint,xs=vd.unstable_now,u6t=vd.unstable_getCurrentPriorityLevel,Ufe=vd.unstable_ImmediatePriority,tke=vd.unstable_UserBlockingPriority,bk=vd.unstable_NormalPriority,d6t=vd.unstable_LowPriority,nke=vd.unstable_IdlePriority,GH=null,rm=null;function f6t(e){if(rm&&typeof rm.onCommitFiberRoot=="function")try{rm.onCommitFiberRoot(GH,e,void 0,(e.current.flags&128)===128)}catch{}}var vg=Math.clz32?Math.clz32:p6t,h6t=Math.log,g6t=Math.LN2;function p6t(e){return e>>>=0,e===0?32:31-(h6t(e)/g6t|0)|0}var WA=64,UA=4194304;function YR(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sk(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=YR(a):(o&=s,o!==0&&(r=YR(o)))}else s=n&~i,s!==0?r=YR(s):o!==0&&(r=YR(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-vg(t),i=1<<n,r|=e[n],t&=~i;return r}function m6t(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function v6t(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-vg(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=m6t(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Uoe(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rke(){var e=WA;return WA<<=1,!(WA&4194240)&&(WA=64),e}function OJ(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _I(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vg(t),e[t]=n}function C6t(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-vg(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function qfe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-vg(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var no=0;function ike(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var oke,Kfe,ske,ake,lke,qoe=!1,qA=[],l4=null,c4=null,u4=null,MO=new Map,PO=new Map,D2=[],y6t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nye(e,t){switch(e){case"focusin":case"focusout":l4=null;break;case"dragenter":case"dragleave":c4=null;break;case"mouseover":case"mouseout":u4=null;break;case"pointerover":case"pointerout":MO.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":PO.delete(t.pointerId)}}function LE(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=DI(t),t!==null&&Kfe(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function b6t(e,t,n,r,i){switch(t){case"focusin":return l4=LE(l4,e,t,n,r,i),!0;case"dragenter":return c4=LE(c4,e,t,n,r,i),!0;case"mouseover":return u4=LE(u4,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return MO.set(o,LE(MO.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,PO.set(o,LE(PO.get(o)||null,e,t,n,r,i)),!0}return!1}function cke(e){var t=w8(e.target);if(t!==null){var n=Ry(t);if(n!==null){if(t=n.tag,t===13){if(t=QNe(n),t!==null){e.blockedOn=t,lke(e.priority,function(){ske(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function DF(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Koe(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);joe=r,n.target.dispatchEvent(r),joe=null}else return t=DI(n),t!==null&&Kfe(t),e.blockedOn=n,!1;t.shift()}return!0}function rye(e,t,n){DF(e)&&n.delete(t)}function S6t(){qoe=!1,l4!==null&&DF(l4)&&(l4=null),c4!==null&&DF(c4)&&(c4=null),u4!==null&&DF(u4)&&(u4=null),MO.forEach(rye),PO.forEach(rye)}function FE(e,t){e.blockedOn===t&&(e.blockedOn=null,qoe||(qoe=!0,vd.unstable_scheduleCallback(vd.unstable_NormalPriority,S6t)))}function _O(e){function t(i){return FE(i,e)}if(0<qA.length){FE(qA[0],e);for(var n=1;n<qA.length;n++){var r=qA[n];r.blockedOn===e&&(r.blockedOn=null)}}for(l4!==null&&FE(l4,e),c4!==null&&FE(c4,e),u4!==null&&FE(u4,e),MO.forEach(t),PO.forEach(t),n=0;n<D2.length;n++)r=D2[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<D2.length&&(n=D2[0],n.blockedOn===null);)cke(n),n.blockedOn===null&&D2.shift()}var HS=X0.ReactCurrentBatchConfig,wk=!0;function w6t(e,t,n,r){var i=no,o=HS.transition;HS.transition=null;try{no=1,Yfe(e,t,n,r)}finally{no=i,HS.transition=o}}function x6t(e,t,n,r){var i=no,o=HS.transition;HS.transition=null;try{no=4,Yfe(e,t,n,r)}finally{no=i,HS.transition=o}}function Yfe(e,t,n,r){if(wk){var i=Koe(e,t,n,r);if(i===null)NJ(e,t,r,xk,n),nye(e,r);else if(b6t(i,e,t,n,r))r.stopPropagation();else if(nye(e,r),t&4&&-1<y6t.indexOf(e)){for(;i!==null;){var o=DI(i);if(o!==null&&oke(o),o=Koe(e,t,n,r),o===null&&NJ(e,t,r,xk,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else NJ(e,t,r,null,n)}}var xk=null;function Koe(e,t,n,r){if(xk=null,e=Wfe(r),e=w8(e),e!==null)if(t=Ry(e),t===null)e=null;else if(n=t.tag,n===13){if(e=QNe(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return xk=e,null}function uke(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(u6t()){case Ufe:return 1;case tke:return 4;case bk:case d6t:return 16;case nke:return 536870912;default:return 16}default:return 16}}var X2=null,Xfe=null,LF=null;function dke(){if(LF)return LF;var e,t=Xfe,n=t.length,r,i="value"in X2?X2.value:X2.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return LF=i.slice(e,1<r?1-r:void 0)}function FF(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function KA(){return!0}function iye(){return!1}function $d(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?KA:iye,this.isPropagationStopped=iye,this}return rs(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=KA)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=KA)},persist:function(){},isPersistent:KA}),t}var Px={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qfe=$d(Px),AI=rs({},Px,{view:0,detail:0}),E6t=$d(AI),TJ,IJ,NE,WH=rs({},AI,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zfe,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==NE&&(NE&&e.type==="mousemove"?(TJ=e.screenX-NE.screenX,IJ=e.screenY-NE.screenY):IJ=TJ=0,NE=e),TJ)},movementY:function(e){return"movementY"in e?e.movementY:IJ}}),oye=$d(WH),R6t=rs({},WH,{dataTransfer:0}),$6t=$d(R6t),O6t=rs({},AI,{relatedTarget:0}),MJ=$d(O6t),T6t=rs({},Px,{animationName:0,elapsedTime:0,pseudoElement:0}),I6t=$d(T6t),M6t=rs({},Px,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P6t=$d(M6t),_6t=rs({},Px,{data:0}),sye=$d(_6t),A6t={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D6t={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},L6t={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F6t(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=L6t[e])?!!t[e]:!1}function Zfe(){return F6t}var N6t=rs({},AI,{key:function(e){if(e.key){var t=A6t[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=FF(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D6t[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zfe,charCode:function(e){return e.type==="keypress"?FF(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?FF(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),k6t=$d(N6t),z6t=rs({},WH,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),aye=$d(z6t),B6t=rs({},AI,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zfe}),H6t=$d(B6t),j6t=rs({},Px,{propertyName:0,elapsedTime:0,pseudoElement:0}),V6t=$d(j6t),G6t=rs({},WH,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),W6t=$d(G6t),U6t=[9,13,27,32],Jfe=$0&&"CompositionEvent"in window,M$=null;$0&&"documentMode"in document&&(M$=document.documentMode);var q6t=$0&&"TextEvent"in window&&!M$,fke=$0&&(!Jfe||M$&&8<M$&&11>=M$),lye=" ",cye=!1;function hke(e,t){switch(e){case"keyup":return U6t.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gke(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var uS=!1;function K6t(e,t){switch(e){case"compositionend":return gke(t);case"keypress":return t.which!==32?null:(cye=!0,lye);case"textInput":return e=t.data,e===lye&&cye?null:e;default:return null}}function Y6t(e,t){if(uS)return e==="compositionend"||!Jfe&&hke(e,t)?(e=dke(),LF=Xfe=X2=null,uS=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return fke&&t.locale!=="ko"?null:t.data;default:return null}}var X6t={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uye(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!X6t[e.type]:t==="textarea"}function pke(e,t,n,r){UNe(r),t=Ek(t,"onChange"),0<t.length&&(n=new Qfe("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var P$=null,AO=null;function Q6t(e){$ke(e,0)}function UH(e){var t=hS(e);if(zNe(t))return e}function Z6t(e,t){if(e==="change")return t}var mke=!1;if($0){var PJ;if($0){var _J="oninput"in document;if(!_J){var dye=document.createElement("div");dye.setAttribute("oninput","return;"),_J=typeof dye.oninput=="function"}PJ=_J}else PJ=!1;mke=PJ&&(!document.documentMode||9<document.documentMode)}function fye(){P$&&(P$.detachEvent("onpropertychange",vke),AO=P$=null)}function vke(e){if(e.propertyName==="value"&&UH(AO)){var t=[];pke(t,AO,e,Wfe(e)),XNe(Q6t,t)}}function J6t(e,t,n){e==="focusin"?(fye(),P$=t,AO=n,P$.attachEvent("onpropertychange",vke)):e==="focusout"&&fye()}function e8t(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return UH(AO)}function t8t(e,t){if(e==="click")return UH(t)}function n8t(e,t){if(e==="input"||e==="change")return UH(t)}function r8t(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pg=typeof Object.is=="function"?Object.is:r8t;function DO(e,t){if(Pg(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Moe.call(t,i)||!Pg(e[i],t[i]))return!1}return!0}function hye(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gye(e,t){var n=hye(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hye(n)}}function Cke(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cke(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yke(){for(var e=window,t=vk();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vk(e.document)}return t}function ehe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function i8t(e){var t=yke(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cke(n.ownerDocument.documentElement,n)){if(r!==null&&ehe(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=gye(n,o);var s=gye(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var o8t=$0&&"documentMode"in document&&11>=document.documentMode,dS=null,Yoe=null,_$=null,Xoe=!1;function pye(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xoe||dS==null||dS!==vk(r)||(r=dS,"selectionStart"in r&&ehe(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_$&&DO(_$,r)||(_$=r,r=Ek(Yoe,"onSelect"),0<r.length&&(t=new Qfe("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dS)))}function YA(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fS={animationend:YA("Animation","AnimationEnd"),animationiteration:YA("Animation","AnimationIteration"),animationstart:YA("Animation","AnimationStart"),transitionend:YA("Transition","TransitionEnd")},AJ={},bke={};$0&&(bke=document.createElement("div").style,"AnimationEvent"in window||(delete fS.animationend.animation,delete fS.animationiteration.animation,delete fS.animationstart.animation),"TransitionEvent"in window||delete fS.transitionend.transition);function qH(e){if(AJ[e])return AJ[e];if(!fS[e])return e;var t=fS[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bke)return AJ[e]=t[n];return e}var Ske=qH("animationend"),wke=qH("animationiteration"),xke=qH("animationstart"),Eke=qH("transitionend"),Rke=new Map,mye="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function f3(e,t){Rke.set(e,t),Ey(t,[e])}for(var DJ=0;DJ<mye.length;DJ++){var LJ=mye[DJ],s8t=LJ.toLowerCase(),a8t=LJ[0].toUpperCase()+LJ.slice(1);f3(s8t,"on"+a8t)}f3(Ske,"onAnimationEnd");f3(wke,"onAnimationIteration");f3(xke,"onAnimationStart");f3("dblclick","onDoubleClick");f3("focusin","onFocus");f3("focusout","onBlur");f3(Eke,"onTransitionEnd");Dw("onMouseEnter",["mouseout","mouseover"]);Dw("onMouseLeave",["mouseout","mouseover"]);Dw("onPointerEnter",["pointerout","pointerover"]);Dw("onPointerLeave",["pointerout","pointerover"]);Ey("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ey("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ey("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ey("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ey("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ey("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var XR="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),l8t=new Set("cancel close invalid load scroll toggle".split(" ").concat(XR));function vye(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,s6t(r,t,void 0,e),e.currentTarget=null}function $ke(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;vye(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;vye(i,a,c),o=l}}}if(yk)throw e=Woe,yk=!1,Woe=null,e}function Mo(e,t){var n=t[tse];n===void 0&&(n=t[tse]=new Set);var r=e+"__bubble";n.has(r)||(Oke(t,e,2,!1),n.add(r))}function FJ(e,t,n){var r=0;t&&(r|=4),Oke(n,e,r,t)}var XA="_reactListening"+Math.random().toString(36).slice(2);function LO(e){if(!e[XA]){e[XA]=!0,DNe.forEach(function(n){n!=="selectionchange"&&(l8t.has(n)||FJ(n,!1,e),FJ(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[XA]||(t[XA]=!0,FJ("selectionchange",!1,t))}}function Oke(e,t,n,r){switch(uke(t)){case 1:var i=w6t;break;case 4:i=x6t;break;default:i=Yfe}n=i.bind(null,t,n,e),i=void 0,!Goe||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function NJ(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=w8(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}XNe(function(){var c=o,u=Wfe(n),f=[];e:{var h=Rke.get(e);if(h!==void 0){var g=Qfe,p=e;switch(e){case"keypress":if(FF(n)===0)break e;case"keydown":case"keyup":g=k6t;break;case"focusin":p="focus",g=MJ;break;case"focusout":p="blur",g=MJ;break;case"beforeblur":case"afterblur":g=MJ;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=oye;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=$6t;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=H6t;break;case Ske:case wke:case xke:g=I6t;break;case Eke:g=V6t;break;case"scroll":g=E6t;break;case"wheel":g=W6t;break;case"copy":case"cut":case"paste":g=P6t;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=aye}var m=(t&4)!==0,v=!m&&e==="scroll",C=m?h!==null?h+"Capture":null:h;m=[];for(var y=c,b;y!==null;){b=y;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,C!==null&&(S=IO(y,C),S!=null&&m.push(FO(y,S,b)))),v)break;y=y.return}0<m.length&&(h=new g(h,p,null,n,u),f.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==joe&&(p=n.relatedTarget||n.fromElement)&&(w8(p)||p[O0]))break e;if((g||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,g?(p=n.relatedTarget||n.toElement,g=c,p=p?w8(p):null,p!==null&&(v=Ry(p),p!==v||p.tag!==5&&p.tag!==6)&&(p=null)):(g=null,p=c),g!==p)){if(m=oye,S="onMouseLeave",C="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(m=aye,S="onPointerLeave",C="onPointerEnter",y="pointer"),v=g==null?h:hS(g),b=p==null?h:hS(p),h=new m(S,y+"leave",g,n,u),h.target=v,h.relatedTarget=b,S=null,w8(u)===c&&(m=new m(C,y+"enter",p,n,u),m.target=b,m.relatedTarget=v,S=m),v=S,g&&p)t:{for(m=g,C=p,y=0,b=m;b;b=Zb(b))y++;for(b=0,S=C;S;S=Zb(S))b++;for(;0<y-b;)m=Zb(m),y--;for(;0<b-y;)C=Zb(C),b--;for(;y--;){if(m===C||C!==null&&m===C.alternate)break t;m=Zb(m),C=Zb(C)}m=null}else m=null;g!==null&&Cye(f,h,g,m,!1),p!==null&&v!==null&&Cye(f,v,p,m,!0)}}e:{if(h=c?hS(c):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var w=Z6t;else if(uye(h))if(mke)w=n8t;else{w=e8t;var x=J6t}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=t8t);if(w&&(w=w(e,c))){pke(f,w,n,u);break e}x&&x(e,h,c),e==="focusout"&&(x=h._wrapperState)&&x.controlled&&h.type==="number"&&Noe(h,"number",h.value)}switch(x=c?hS(c):window,e){case"focusin":(uye(x)||x.contentEditable==="true")&&(dS=x,Yoe=c,_$=null);break;case"focusout":_$=Yoe=dS=null;break;case"mousedown":Xoe=!0;break;case"contextmenu":case"mouseup":case"dragend":Xoe=!1,pye(f,n,u);break;case"selectionchange":if(o8t)break;case"keydown":case"keyup":pye(f,n,u)}var E;if(Jfe)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else uS?hke(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(fke&&n.locale!=="ko"&&(uS||R!=="onCompositionStart"?R==="onCompositionEnd"&&uS&&(E=dke()):(X2=u,Xfe="value"in X2?X2.value:X2.textContent,uS=!0)),x=Ek(c,R),0<x.length&&(R=new sye(R,e,null,n,u),f.push({event:R,listeners:x}),E?R.data=E:(E=gke(n),E!==null&&(R.data=E)))),(E=q6t?K6t(e,n):Y6t(e,n))&&(c=Ek(c,"onBeforeInput"),0<c.length&&(u=new sye("onBeforeInput","beforeinput",null,n,u),f.push({event:u,listeners:c}),u.data=E))}$ke(f,t)})}function FO(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ek(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=IO(e,n),o!=null&&r.unshift(FO(e,o,i)),o=IO(e,t),o!=null&&r.push(FO(e,o,i))),e=e.return}return r}function Zb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cye(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=IO(n,o),l!=null&&s.unshift(FO(n,l,a))):i||(l=IO(n,o),l!=null&&s.push(FO(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var c8t=/\r\n?/g,u8t=/\u0000|\uFFFD/g;function yye(e){return(typeof e=="string"?e:""+e).replace(c8t,`
|
||
`).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="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Eye(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ld=e,nd=d4(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ld=e,nd=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=yC!==null?{id:a0,overflow:l0}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_f(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ld=e,nd=null,!0):!1;default:return!1}}function rse(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ise(e){if(Ho){var t=nd;if(t){var n=t;if(!Eye(e,t)){if(rse(e))throw Error(fn(418));t=d4(n.nextSibling);var r=ld;t&&Eye(e,t)?Pke(r,n):(e.flags=e.flags&-4097|2,Ho=!1,ld=e)}}else{if(rse(e))throw Error(fn(418));e.flags=e.flags&-4097|2,Ho=!1,ld=e}}}function Rye(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ld=e}function ZA(e){if(e!==ld)return!1;if(!Ho)return Rye(e),Ho=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Joe(e.type,e.memoizedProps)),t&&(t=nd)){if(rse(e))throw _ke(),Error(fn(418));for(;t;)Pke(e,t),t=d4(t.nextSibling)}if(Rye(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(fn(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nd=d4(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nd=null}}else nd=ld?d4(e.stateNode.nextSibling):null;return!0}function _ke(){for(var e=nd;e;)e=d4(e.nextSibling)}function Fw(){nd=ld=null,Ho=!1}function rhe(e){Zh===null?Zh=[e]:Zh.push(e)}var v8t=X0.ReactCurrentBatchConfig;function Vh(e,t){if(e&&e.defaultProps){t=rs({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Mk=h3(null),Pk=null,vS=null,ihe=null;function ohe(){ihe=vS=Pk=null}function she(e){var t=Mk.current;Do(Mk),e._currentValue=t}function ose(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jS(e,t){Pk=e,ihe=vS=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ou=!0),e.firstContext=null)}function Gf(e){var t=e._currentValue;if(ihe!==e)if(e={context:e,memoizedValue:t,next:null},vS===null){if(Pk===null)throw Error(fn(308));vS=e,Pk.dependencies={lanes:0,firstContext:e}}else vS=vS.next=e;return t}var x8=null;function ahe(e){x8===null?x8=[e]:x8.push(e)}function Ake(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ahe(t)):(n.next=i.next,i.next=n),t.interleaved=n,T0(e,r)}function T0(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var E2=!1;function lhe(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dke(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function f0(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function f4(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Di&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,T0(e,n)}return i=r.interleaved,i===null?(t.next=t,ahe(r)):(t.next=i.next,i.next=t),r.interleaved=t,T0(e,n)}function NF(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qfe(e,n)}}function $ye(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _k(e,t,n,r){var i=e.updateQueue;E2=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,u=c=l=null,a=o;do{var h=a.lane,g=a.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(h=t,g=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){f=p.call(g,f,h);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,h=typeof p=="function"?p.call(g,f,h):p,h==null)break e;f=rs({},f,h);break e;case 2:E2=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else g={eventTime:g,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=g,l=f):u=u.next=g,s|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);SC|=s,e.lanes=s,e.memoizedState=f}}function Oye(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(fn(191,i));i.call(r)}}}var Lke=new ANe.Component().refs;function sse(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:rs({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var XH={isMounted:function(e){return(e=e._reactInternals)?Ry(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gc(),i=g4(e),o=f0(r,i);o.payload=t,n!=null&&(o.callback=n),t=f4(e,o,i),t!==null&&(Cg(t,e,i,r),NF(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gc(),i=g4(e),o=f0(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=f4(e,o,i),t!==null&&(Cg(t,e,i,r),NF(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gc(),r=g4(e),i=f0(n,r);i.tag=2,t!=null&&(i.callback=t),t=f4(e,i,r),t!==null&&(Cg(t,e,r,n),NF(t,e,r))}};function Tye(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!DO(n,r)||!DO(i,o):!0}function Fke(e,t,n){var r=!1,i=F4,o=t.contextType;return typeof o=="object"&&o!==null?o=Gf(o):(i=du(t)?CC:Ul.current,r=t.contextTypes,o=(r=r!=null)?Lw(e,i):F4),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=XH,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Iye(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&XH.enqueueReplaceState(t,t.state,null)}function ase(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Lke,lhe(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Gf(o):(o=du(t)?CC:Ul.current,i.context=Lw(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(sse(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&XH.enqueueReplaceState(i,i.state,null),_k(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function kE(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(fn(309));var r=n.stateNode}if(!r)throw Error(fn(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===Lke&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(fn(284));if(!n._owner)throw Error(fn(290,e))}return e}function JA(e,t){throw e=Object.prototype.toString.call(t),Error(fn(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mye(e){var t=e._init;return t(e._payload)}function Nke(e){function t(C,y){if(e){var b=C.deletions;b===null?(C.deletions=[y],C.flags|=16):b.push(y)}}function n(C,y){if(!e)return null;for(;y!==null;)t(C,y),y=y.sibling;return null}function r(C,y){for(C=new Map;y!==null;)y.key!==null?C.set(y.key,y):C.set(y.index,y),y=y.sibling;return C}function i(C,y){return C=p4(C,y),C.index=0,C.sibling=null,C}function o(C,y,b){return C.index=b,e?(b=C.alternate,b!==null?(b=b.index,b<y?(C.flags|=2,y):b):(C.flags|=2,y)):(C.flags|=1048576,y)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,y,b,S){return y===null||y.tag!==6?(y=UJ(b,C.mode,S),y.return=C,y):(y=i(y,b),y.return=C,y)}function l(C,y,b,S){var w=b.type;return w===cS?u(C,y,b.props.children,S,b.key):y!==null&&(y.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===x2&&Mye(w)===y.type)?(S=i(y,b.props),S.ref=kE(C,y,b),S.return=C,S):(S=VF(b.type,b.key,b.props,null,C.mode,S),S.ref=kE(C,y,b),S.return=C,S)}function c(C,y,b,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=qJ(b,C.mode,S),y.return=C,y):(y=i(y,b.children||[]),y.return=C,y)}function u(C,y,b,S,w){return y===null||y.tag!==7?(y=X8(b,C.mode,S,w),y.return=C,y):(y=i(y,b),y.return=C,y)}function f(C,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return y=UJ(""+y,C.mode,b),y.return=C,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case jA:return b=VF(y.type,y.key,y.props,null,C.mode,b),b.ref=kE(C,null,y),b.return=C,b;case lS:return y=qJ(y,C.mode,b),y.return=C,y;case x2:var S=y._init;return f(C,S(y._payload),b)}if(KR(y)||AE(y))return y=X8(y,C.mode,b,null),y.return=C,y;JA(C,y)}return null}function h(C,y,b,S){var w=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return w!==null?null:a(C,y,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case jA:return b.key===w?l(C,y,b,S):null;case lS:return b.key===w?c(C,y,b,S):null;case x2:return w=b._init,h(C,y,w(b._payload),S)}if(KR(b)||AE(b))return w!==null?null:u(C,y,b,S,null);JA(C,b)}return null}function g(C,y,b,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return C=C.get(b)||null,a(y,C,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case jA:return C=C.get(S.key===null?b:S.key)||null,l(y,C,S,w);case lS:return C=C.get(S.key===null?b:S.key)||null,c(y,C,S,w);case x2:var x=S._init;return g(C,y,b,x(S._payload),w)}if(KR(S)||AE(S))return C=C.get(b)||null,u(y,C,S,w,null);JA(y,S)}return null}function p(C,y,b,S){for(var w=null,x=null,E=y,R=y=0,O=null;E!==null&&R<b.length;R++){E.index>R?(O=E,E=null):O=E.sibling;var T=h(C,E,b[R],S);if(T===null){E===null&&(E=O);break}e&&E&&T.alternate===null&&t(C,E),y=o(T,y,R),x===null?w=T:x.sibling=T,x=T,E=O}if(R===b.length)return n(C,E),Ho&&X6(C,R),w;if(E===null){for(;R<b.length;R++)E=f(C,b[R],S),E!==null&&(y=o(E,y,R),x===null?w=E:x.sibling=E,x=E);return Ho&&X6(C,R),w}for(E=r(C,E);R<b.length;R++)O=g(E,C,R,b[R],S),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?R:O.key),y=o(O,y,R),x===null?w=O:x.sibling=O,x=O);return e&&E.forEach(function(M){return t(C,M)}),Ho&&X6(C,R),w}function m(C,y,b,S){var w=AE(b);if(typeof w!="function")throw Error(fn(150));if(b=w.call(b),b==null)throw Error(fn(151));for(var x=w=null,E=y,R=y=0,O=null,T=b.next();E!==null&&!T.done;R++,T=b.next()){E.index>R?(O=E,E=null):O=E.sibling;var M=h(C,E,T.value,S);if(M===null){E===null&&(E=O);break}e&&E&&M.alternate===null&&t(C,E),y=o(M,y,R),x===null?w=M:x.sibling=M,x=M,E=O}if(T.done)return n(C,E),Ho&&X6(C,R),w;if(E===null){for(;!T.done;R++,T=b.next())T=f(C,T.value,S),T!==null&&(y=o(T,y,R),x===null?w=T:x.sibling=T,x=T);return Ho&&X6(C,R),w}for(E=r(C,E);!T.done;R++,T=b.next())T=g(E,C,R,T.value,S),T!==null&&(e&&T.alternate!==null&&E.delete(T.key===null?R:T.key),y=o(T,y,R),x===null?w=T:x.sibling=T,x=T);return e&&E.forEach(function(_){return t(C,_)}),Ho&&X6(C,R),w}function v(C,y,b,S){if(typeof b=="object"&&b!==null&&b.type===cS&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case jA:e:{for(var w=b.key,x=y;x!==null;){if(x.key===w){if(w=b.type,w===cS){if(x.tag===7){n(C,x.sibling),y=i(x,b.props.children),y.return=C,C=y;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===x2&&Mye(w)===x.type){n(C,x.sibling),y=i(x,b.props),y.ref=kE(C,x,b),y.return=C,C=y;break e}n(C,x);break}else t(C,x);x=x.sibling}b.type===cS?(y=X8(b.props.children,C.mode,S,b.key),y.return=C,C=y):(S=VF(b.type,b.key,b.props,null,C.mode,S),S.ref=kE(C,y,b),S.return=C,C=S)}return s(C);case lS:e:{for(x=b.key;y!==null;){if(y.key===x)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(C,y.sibling),y=i(y,b.children||[]),y.return=C,C=y;break e}else{n(C,y);break}else t(C,y);y=y.sibling}y=qJ(b,C.mode,S),y.return=C,C=y}return s(C);case x2:return x=b._init,v(C,y,x(b._payload),S)}if(KR(b))return p(C,y,b,S);if(AE(b))return m(C,y,b,S);JA(C,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(C,y.sibling),y=i(y,b),y.return=C,C=y):(n(C,y),y=UJ(b,C.mode,S),y.return=C,C=y),s(C)):n(C,y)}return v}var Nw=Nke(!0),kke=Nke(!1),LI={},im=h3(LI),kO=h3(LI),zO=h3(LI);function E8(e){if(e===LI)throw Error(fn(174));return e}function che(e,t){switch(Ro(zO,t),Ro(kO,e),Ro(im,LI),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zoe(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zoe(t,e)}Do(im),Ro(im,t)}function kw(){Do(im),Do(kO),Do(zO)}function zke(e){E8(zO.current);var t=E8(im.current),n=zoe(t,e.type);t!==n&&(Ro(kO,e),Ro(im,n))}function uhe(e){kO.current===e&&(Do(im),Do(kO))}var Qo=h3(0);function Ak(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var BJ=[];function dhe(){for(var e=0;e<BJ.length;e++)BJ[e]._workInProgressVersionPrimary=null;BJ.length=0}var kF=X0.ReactCurrentDispatcher,HJ=X0.ReactCurrentBatchConfig,bC=0,ns=null,Zs=null,Oa=null,Dk=!1,A$=!1,BO=0,C8t=0;function bl(){throw Error(fn(321))}function fhe(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pg(e[n],t[n]))return!1;return!0}function hhe(e,t,n,r,i,o){if(bC=o,ns=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,kF.current=e===null||e.memoizedState===null?w8t:x8t,e=n(r,i),A$){o=0;do{if(A$=!1,BO=0,25<=o)throw Error(fn(301));o+=1,Oa=Zs=null,t.updateQueue=null,kF.current=E8t,e=n(r,i)}while(A$)}if(kF.current=Lk,t=Zs!==null&&Zs.next!==null,bC=0,Oa=Zs=ns=null,Dk=!1,t)throw Error(fn(300));return e}function ghe(){var e=BO!==0;return BO=0,e}function Mp(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oa===null?ns.memoizedState=Oa=e:Oa=Oa.next=e,Oa}function Wf(){if(Zs===null){var e=ns.alternate;e=e!==null?e.memoizedState:null}else e=Zs.next;var t=Oa===null?ns.memoizedState:Oa.next;if(t!==null)Oa=t,Zs=e;else{if(e===null)throw Error(fn(310));Zs=e,e={memoizedState:Zs.memoizedState,baseState:Zs.baseState,baseQueue:Zs.baseQueue,queue:Zs.queue,next:null},Oa===null?ns.memoizedState=Oa=e:Oa=Oa.next=e}return Oa}function HO(e,t){return typeof t=="function"?t(e):t}function jJ(e){var t=Wf(),n=t.queue;if(n===null)throw Error(fn(311));n.lastRenderedReducer=e;var r=Zs,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var u=c.lane;if((bC&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,ns.lanes|=u,SC|=u}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,Pg(r,t.memoizedState)||(ou=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ns.lanes|=o,SC|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function VJ(e){var t=Wf(),n=t.queue;if(n===null)throw Error(fn(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Pg(o,t.memoizedState)||(ou=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bke(){}function Hke(e,t){var n=ns,r=Wf(),i=t(),o=!Pg(r.memoizedState,i);if(o&&(r.memoizedState=i,ou=!0),r=r.queue,phe(Gke.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Oa!==null&&Oa.memoizedState.tag&1){if(n.flags|=2048,jO(9,Vke.bind(null,n,r,i,t),void 0,null),Aa===null)throw Error(fn(349));bC&30||jke(n,t,i)}return i}function jke(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ns.updateQueue,t===null?(t={lastEffect:null,stores:null},ns.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Vke(e,t,n,r){t.value=n,t.getSnapshot=r,Wke(t)&&Uke(e)}function Gke(e,t,n){return n(function(){Wke(t)&&Uke(e)})}function Wke(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pg(e,n)}catch{return!0}}function Uke(e){var t=T0(e,1);t!==null&&Cg(t,e,1,-1)}function Pye(e){var t=Mp();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:HO,lastRenderedState:e},t.queue=e,e=e.dispatch=S8t.bind(null,ns,e),[t.memoizedState,e]}function jO(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ns.updateQueue,t===null?(t={lastEffect:null,stores:null},ns.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function qke(){return Wf().memoizedState}function zF(e,t,n,r){var i=Mp();ns.flags|=e,i.memoizedState=jO(1|t,n,void 0,r===void 0?null:r)}function QH(e,t,n,r){var i=Wf();r=r===void 0?null:r;var o=void 0;if(Zs!==null){var s=Zs.memoizedState;if(o=s.destroy,r!==null&&fhe(r,s.deps)){i.memoizedState=jO(t,n,o,r);return}}ns.flags|=e,i.memoizedState=jO(1|t,n,o,r)}function _ye(e,t){return zF(8390656,8,e,t)}function phe(e,t){return QH(2048,8,e,t)}function Kke(e,t){return QH(4,2,e,t)}function Yke(e,t){return QH(4,4,e,t)}function Xke(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qke(e,t,n){return n=n!=null?n.concat([e]):null,QH(4,4,Xke.bind(null,t,e),n)}function mhe(){}function Zke(e,t){var n=Wf();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fhe(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Jke(e,t){var n=Wf();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fhe(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function eze(e,t,n){return bC&21?(Pg(n,t)||(n=rke(),ns.lanes|=n,SC|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ou=!0),e.memoizedState=n)}function y8t(e,t){var n=no;no=n!==0&&4>n?n:4,e(!0);var r=HJ.transition;HJ.transition={};try{e(!1),t()}finally{no=n,HJ.transition=r}}function tze(){return Wf().memoizedState}function b8t(e,t,n){var r=g4(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nze(e))rze(t,n);else if(n=Ake(e,t,n,r),n!==null){var i=gc();Cg(n,e,r,i),ize(n,t,r)}}function S8t(e,t,n){var r=g4(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nze(e))rze(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Pg(a,s)){var l=t.interleaved;l===null?(i.next=i,ahe(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ake(e,t,i,r),n!==null&&(i=gc(),Cg(n,e,r,i),ize(n,t,r))}}function nze(e){var t=e.alternate;return e===ns||t!==null&&t===ns}function rze(e,t){A$=Dk=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ize(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qfe(e,n)}}var Lk={readContext:Gf,useCallback:bl,useContext:bl,useEffect:bl,useImperativeHandle:bl,useInsertionEffect:bl,useLayoutEffect:bl,useMemo:bl,useReducer:bl,useRef:bl,useState:bl,useDebugValue:bl,useDeferredValue:bl,useTransition:bl,useMutableSource:bl,useSyncExternalStore:bl,useId:bl,unstable_isNewReconciler:!1},w8t={readContext:Gf,useCallback:function(e,t){return Mp().memoizedState=[e,t===void 0?null:t],e},useContext:Gf,useEffect:_ye,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zF(4194308,4,Xke.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zF(4194308,4,e,t)},useInsertionEffect:function(e,t){return zF(4,2,e,t)},useMemo:function(e,t){var n=Mp();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mp();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=b8t.bind(null,ns,e),[r.memoizedState,e]},useRef:function(e){var t=Mp();return e={current:e},t.memoizedState=e},useState:Pye,useDebugValue:mhe,useDeferredValue:function(e){return Mp().memoizedState=e},useTransition:function(){var e=Pye(!1),t=e[0];return e=y8t.bind(null,e[1]),Mp().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ns,i=Mp();if(Ho){if(n===void 0)throw Error(fn(407));n=n()}else{if(n=t(),Aa===null)throw Error(fn(349));bC&30||jke(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_ye(Gke.bind(null,r,o,e),[e]),r.flags|=2048,jO(9,Vke.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mp(),t=Aa.identifierPrefix;if(Ho){var n=l0,r=a0;n=(r&~(1<<32-vg(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=BO++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=C8t++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},x8t={readContext:Gf,useCallback:Zke,useContext:Gf,useEffect:phe,useImperativeHandle:Qke,useInsertionEffect:Kke,useLayoutEffect:Yke,useMemo:Jke,useReducer:jJ,useRef:qke,useState:function(){return jJ(HO)},useDebugValue:mhe,useDeferredValue:function(e){var t=Wf();return eze(t,Zs.memoizedState,e)},useTransition:function(){var e=jJ(HO)[0],t=Wf().memoizedState;return[e,t]},useMutableSource:Bke,useSyncExternalStore:Hke,useId:tze,unstable_isNewReconciler:!1},E8t={readContext:Gf,useCallback:Zke,useContext:Gf,useEffect:phe,useImperativeHandle:Qke,useInsertionEffect:Kke,useLayoutEffect:Yke,useMemo:Jke,useReducer:VJ,useRef:qke,useState:function(){return VJ(HO)},useDebugValue:mhe,useDeferredValue:function(e){var t=Wf();return Zs===null?t.memoizedState=e:eze(t,Zs.memoizedState,e)},useTransition:function(){var e=VJ(HO)[0],t=Wf().memoizedState;return[e,t]},useMutableSource:Bke,useSyncExternalStore:Hke,useId:tze,unstable_isNewReconciler:!1};function zw(e,t){try{var n="",r=t;do n+=Z3t(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+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.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Dke(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Vh(t.type,a),s.props=c,f=t.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Gf(l):(l=du(n)?CC:Ul.current,l=Lw(t,l));var g=n.getDerivedStateFromProps;(u=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||h!==l)&&Iye(t,s,r,l),E2=!1,h=t.memoizedState,s.state=h,_k(t,r,s,i);var p=t.memoizedState;a!==f||h!==p||uu.current||E2?(typeof g=="function"&&(sse(t,n,g,r),p=t.memoizedState),(c=E2||Tye(t,n,c,r,h,p,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return use(e,t,n,r,o,i)}function use(e,t,n,r,i,o){cze(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&xye(t,n,!1),I0(e,t,o);r=t.stateNode,$8t.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Nw(t,e.child,null,o),t.child=Nw(t,null,a,o)):uc(e,t,a,o),t.memoizedState=r.state,i&&xye(t,n,!0),t.child}function uze(e){var t=e.stateNode;t.pendingContext?wye(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wye(e,t.context,!1),che(e,t.containerInfo)}function zye(e,t,n,r,i){return Fw(),rhe(i),t.flags|=256,uc(e,t,n,r),t.child}var dse={dehydrated:null,treeContext:null,retryLane:0};function fse(e){return{baseLanes:e,cachePool:null,transitions:null}}function dze(e,t,n){var r=t.pendingProps,i=Qo.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ro(Qo,i&1),e===null)return ise(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=ej(s,r,0,null),e=X8(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=fse(n),t.memoizedState=dse,e):vhe(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return O8t(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=p4(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=p4(a,o):(o=X8(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?fse(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=dse,r}return o=e.child,e=o.sibling,r=p4(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vhe(e,t){return t=ej({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eD(e,t,n,r){return r!==null&&rhe(r),Nw(t,e.child,null,n),e=vhe(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function O8t(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=GJ(Error(fn(422))),eD(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ej({mode:"visible",children:r.children},i,0,null),o=X8(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Nw(t,e.child,null,s),t.child.memoizedState=fse(s),t.memoizedState=dse,o);if(!(t.mode&1))return eD(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(fn(419)),r=GJ(o,r,void 0),eD(e,t,s,r)}if(a=(s&e.childLanes)!==0,ou||a){if(r=Aa,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,T0(e,i),Cg(r,e,i,-1))}return xhe(),r=GJ(Error(fn(421))),eD(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=B8t.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,nd=d4(i.nextSibling),ld=t,Ho=!0,Zh=null,e!==null&&(xf[Ef++]=a0,xf[Ef++]=l0,xf[Ef++]=yC,a0=e.id,l0=e.overflow,yC=t),t=vhe(t,r.children),t.flags|=4096,t)}function Bye(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ose(e.return,t,n)}function WJ(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function fze(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(uc(e,t,r.children,n),r=Qo.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bye(e,n,t);else if(e.tag===19)Bye(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ro(Qo,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ak(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),WJ(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ak(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}WJ(t,!0,n,null,o);break;case"together":WJ(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function BF(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function I0(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),SC|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(fn(153));if(t.child!==null){for(e=t.child,n=p4(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=p4(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function T8t(e,t,n){switch(t.tag){case 3:uze(t),Fw();break;case 5:zke(t);break;case 1:du(t.type)&&Ok(t);break;case 4:che(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ro(Mk,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ro(Qo,Qo.current&1),t.flags|=128,null):n&t.child.childLanes?dze(e,t,n):(Ro(Qo,Qo.current&1),e=I0(e,t,n),e!==null?e.sibling:null);Ro(Qo,Qo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fze(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ro(Qo,Qo.current),r)break;return null;case 22:case 23:return t.lanes=0,lze(e,t,n)}return I0(e,t,n)}var hze,hse,gze,pze;hze=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};hse=function(){};gze=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,E8(im.current);var o=null;switch(n){case"input":i=Loe(e,i),r=Loe(e,r),o=[];break;case"select":i=rs({},i,{value:void 0}),r=rs({},r,{value:void 0}),o=[];break;case"textarea":i=koe(e,i),r=koe(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Rk)}Boe(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(OO.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(OO.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Mo("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};pze=function(e,t,n,r){n!==r&&(t.flags|=4)};function zE(e,t){if(!Ho)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Sl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function I8t(e,t,n){var r=t.pendingProps;switch(nhe(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sl(t),null;case 1:return du(t.type)&&$k(),Sl(t),null;case 3:return r=t.stateNode,kw(),Do(uu),Do(Ul),dhe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ZA(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zh!==null&&(Sse(Zh),Zh=null))),hse(e,t),Sl(t),null;case 5:uhe(t);var i=E8(zO.current);if(n=t.type,e!==null&&t.stateNode!=null)gze(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(fn(166));return Sl(t),null}if(e=E8(im.current),ZA(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Vp]=t,r[NO]=o,e=(t.mode&1)!==0,n){case"dialog":Mo("cancel",r),Mo("close",r);break;case"iframe":case"object":case"embed":Mo("load",r);break;case"video":case"audio":for(i=0;i<XR.length;i++)Mo(XR[i],r);break;case"source":Mo("error",r);break;case"img":case"image":case"link":Mo("error",r),Mo("load",r);break;case"details":Mo("toggle",r);break;case"input":YCe(r,o),Mo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Mo("invalid",r);break;case"textarea":QCe(r,o),Mo("invalid",r)}Boe(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&QA(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&QA(r.textContent,a,e),i=["children",""+a]):OO.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Mo("scroll",r)}switch(n){case"input":VA(r),XCe(r,o,!0);break;case"textarea":VA(r),ZCe(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Rk)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=jNe(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vp]=t,e[NO]=r,hze(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hoe(n,r),n){case"dialog":Mo("cancel",e),Mo("close",e),i=r;break;case"iframe":case"object":case"embed":Mo("load",e),i=r;break;case"video":case"audio":for(i=0;i<XR.length;i++)Mo(XR[i],e);i=r;break;case"source":Mo("error",e),i=r;break;case"img":case"image":case"link":Mo("error",e),Mo("load",e),i=r;break;case"details":Mo("toggle",e),i=r;break;case"input":YCe(e,r),i=Loe(e,r),Mo("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=rs({},r,{value:void 0}),Mo("invalid",e);break;case"textarea":QCe(e,r),i=koe(e,r),Mo("invalid",e);break;default:i=r}Boe(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?WNe(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&VNe(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&TO(e,l):typeof l=="number"&&TO(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(OO.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Mo("scroll",e):l!=null&&Hfe(e,o,l,s))}switch(n){case"input":VA(e),XCe(e,r,!1);break;case"textarea":VA(e),ZCe(e);break;case"option":r.value!=null&&e.setAttribute("value",""+L4(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?kS(e,!!r.multiple,o,!1):r.defaultValue!=null&&kS(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Rk)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Sl(t),null;case 6:if(e&&t.stateNode!=null)pze(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(fn(166));if(n=E8(zO.current),E8(im.current),ZA(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vp]=t,(o=r.nodeValue!==n)&&(e=ld,e!==null))switch(e.tag){case 3:QA(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&QA(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vp]=t,t.stateNode=r}return Sl(t),null;case 13:if(Do(Qo),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ho&&nd!==null&&t.mode&1&&!(t.flags&128))_ke(),Fw(),t.flags|=98560,o=!1;else if(o=ZA(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(fn(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(fn(317));o[Vp]=t}else Fw(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sl(t),o=!1}else Zh!==null&&(Sse(Zh),Zh=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Qo.current&1?ra===0&&(ra=3):xhe())),t.updateQueue!==null&&(t.flags|=4),Sl(t),null);case 4:return kw(),hse(e,t),e===null&&LO(t.stateNode.containerInfo),Sl(t),null;case 10:return she(t.type._context),Sl(t),null;case 17:return du(t.type)&&$k(),Sl(t),null;case 19:if(Do(Qo),o=t.memoizedState,o===null)return Sl(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)zE(o,!1);else{if(ra!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ak(e),s!==null){for(t.flags|=128,zE(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ro(Qo,Qo.current&1|2),t.child}e=e.sibling}o.tail!==null&&xs()>Bw&&(t.flags|=128,r=!0,zE(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ak(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zE(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ho)return Sl(t),null}else 2*xs()-o.renderingStartTime>Bw&&n!==1073741824&&(t.flags|=128,r=!0,zE(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=xs(),t.sibling=null,n=Qo.current,Ro(Qo,r?n&1|2:n&1),t):(Sl(t),null);case 22:case 23:return whe(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Uu&1073741824&&(Sl(t),t.subtreeFlags&6&&(t.flags|=8192)):Sl(t),null;case 24:return null;case 25:return null}throw Error(fn(156,t.tag))}function M8t(e,t){switch(nhe(t),t.tag){case 1:return du(t.type)&&$k(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kw(),Do(uu),Do(Ul),dhe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uhe(t),null;case 13:if(Do(Qo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(fn(340));Fw()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Do(Qo),null;case 4:return kw(),null;case 10:return she(t.type._context),null;case 22:case 23:return whe(),null;case 24:return null;default:return null}}var tD=!1,Dl=!1,P8t=typeof WeakSet=="function"?WeakSet:Set,Nn=null;function CS(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ls(e,t,r)}else n.current=null}function gse(e,t,n){try{n()}catch(r){ls(e,t,r)}}var Hye=!1;function _8t(e,t){if(Qoe=wk,e=yke(),ehe(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++c===i&&(a=s),h===o&&++u===r&&(l=s),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zoe={focusedElem:e,selectionRange:n},wk=!1,Nn=t;Nn!==null;)if(t=Nn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nn=e;else for(;Nn!==null;){t=Nn;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,v=p.memoizedState,C=t.stateNode,y=C.getSnapshotBeforeUpdate(t.elementType===t.type?m:Vh(t.type,m),v);C.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(fn(163))}}catch(S){ls(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Nn=e;break}Nn=t.return}return p=Hye,Hye=!1,p}function D$(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&gse(t,n,o)}i=i.next}while(i!==r)}}function ZH(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function pse(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function mze(e){var t=e.alternate;t!==null&&(e.alternate=null,mze(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vp],delete t[NO],delete t[tse],delete t[g8t],delete t[p8t])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vze(e){return e.tag===5||e.tag===3||e.tag===4}function jye(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vze(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mse(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rk));else if(r!==4&&(e=e.child,e!==null))for(mse(e,t,n),e=e.sibling;e!==null;)mse(e,t,n),e=e.sibling}function vse(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vse(e,t,n),e=e.sibling;e!==null;)vse(e,t,n),e=e.sibling}var Ka=null,Uh=!1;function Lv(e,t,n){for(n=n.child;n!==null;)Cze(e,t,n),n=n.sibling}function Cze(e,t,n){if(rm&&typeof rm.onCommitFiberUnmount=="function")try{rm.onCommitFiberUnmount(GH,n)}catch{}switch(n.tag){case 5:Dl||CS(n,t);case 6:var r=Ka,i=Uh;Ka=null,Lv(e,t,n),Ka=r,Uh=i,Ka!==null&&(Uh?(e=Ka,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ka.removeChild(n.stateNode));break;case 18:Ka!==null&&(Uh?(e=Ka,n=n.stateNode,e.nodeType===8?kJ(e.parentNode,n):e.nodeType===1&&kJ(e,n),_O(e)):kJ(Ka,n.stateNode));break;case 4:r=Ka,i=Uh,Ka=n.stateNode.containerInfo,Uh=!0,Lv(e,t,n),Ka=r,Uh=i;break;case 0:case 11:case 14:case 15:if(!Dl&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&gse(n,t,s),i=i.next}while(i!==r)}Lv(e,t,n);break;case 1:if(!Dl&&(CS(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ls(n,t,a)}Lv(e,t,n);break;case 21:Lv(e,t,n);break;case 22:n.mode&1?(Dl=(r=Dl)||n.memoizedState!==null,Lv(e,t,n),Dl=r):Lv(e,t,n);break;default:Lv(e,t,n)}}function Vye(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new P8t),t.forEach(function(r){var i=H8t.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xh(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Ka=a.stateNode,Uh=!1;break e;case 3:Ka=a.stateNode.containerInfo,Uh=!0;break e;case 4:Ka=a.stateNode.containerInfo,Uh=!0;break e}a=a.return}if(Ka===null)throw Error(fn(160));Cze(o,s,i),Ka=null,Uh=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){ls(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yze(t,e),t=t.sibling}function yze(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xh(t,e),mp(e),r&4){try{D$(3,e,e.return),ZH(3,e)}catch(m){ls(e,e.return,m)}try{D$(5,e,e.return)}catch(m){ls(e,e.return,m)}}break;case 1:xh(t,e),mp(e),r&512&&n!==null&&CS(n,n.return);break;case 5:if(xh(t,e),mp(e),r&512&&n!==null&&CS(n,n.return),e.flags&32){var i=e.stateNode;try{TO(i,"")}catch(m){ls(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&BNe(i,o),Hoe(a,s);var c=Hoe(a,o);for(s=0;s<l.length;s+=2){var u=l[s],f=l[s+1];u==="style"?WNe(i,f):u==="dangerouslySetInnerHTML"?VNe(i,f):u==="children"?TO(i,f):Hfe(i,u,f,c)}switch(a){case"input":Foe(i,o);break;case"textarea":HNe(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?kS(i,!!o.multiple,g,!1):h!==!!o.multiple&&(o.defaultValue!=null?kS(i,!!o.multiple,o.defaultValue,!0):kS(i,!!o.multiple,o.multiple?[]:"",!1))}i[NO]=o}catch(m){ls(e,e.return,m)}}break;case 6:if(xh(t,e),mp(e),r&4){if(e.stateNode===null)throw Error(fn(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){ls(e,e.return,m)}}break;case 3:if(xh(t,e),mp(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{_O(t.containerInfo)}catch(m){ls(e,e.return,m)}break;case 4:xh(t,e),mp(e);break;case 13:xh(t,e),mp(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(bhe=xs())),r&4&&Vye(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Dl=(c=Dl)||u,xh(t,e),Dl=c):xh(t,e),mp(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Nn=e,u=e.child;u!==null;){for(f=Nn=u;Nn!==null;){switch(h=Nn,g=h.child,h.tag){case 0:case 11:case 14:case 15:D$(4,h,h.return);break;case 1:CS(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){ls(r,n,m)}}break;case 5:CS(h,h.return);break;case 22:if(h.memoizedState!==null){Wye(f);continue}}g!==null?(g.return=h,Nn=g):Wye(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{i=f.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=GNe("display",s))}catch(m){ls(e,e.return,m)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(m){ls(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:xh(t,e),mp(e),r&4&&Vye(e);break;case 21:break;default:xh(t,e),mp(e)}}function mp(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vze(n)){var r=n;break e}n=n.return}throw Error(fn(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(TO(i,""),r.flags&=-33);var o=jye(e);vse(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=jye(e);mse(e,a,s);break;default:throw Error(fn(161))}}catch(l){ls(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function A8t(e,t,n){Nn=e,bze(e)}function bze(e,t,n){for(var r=(e.mode&1)!==0;Nn!==null;){var i=Nn,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||tD;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Dl;a=tD;var c=Dl;if(tD=s,(Dl=l)&&!c)for(Nn=i;Nn!==null;)s=Nn,l=s.child,s.tag===22&&s.memoizedState!==null?Uye(i):l!==null?(l.return=s,Nn=l):Uye(i);for(;o!==null;)Nn=o,bze(o),o=o.sibling;Nn=i,tD=a,Dl=c}Gye(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Nn=o):Gye(e)}}function Gye(e){for(;Nn!==null;){var t=Nn;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Dl||ZH(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Dl)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Vh(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Oye(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Oye(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&_O(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(fn(163))}Dl||t.flags&512&&pse(t)}catch(h){ls(t,t.return,h)}}if(t===e){Nn=null;break}if(n=t.sibling,n!==null){n.return=t.return,Nn=n;break}Nn=t.return}}function Wye(e){for(;Nn!==null;){var t=Nn;if(t===e){Nn=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Nn=n;break}Nn=t.return}}function Uye(e){for(;Nn!==null;){var t=Nn;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ZH(4,t)}catch(l){ls(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ls(t,i,l)}}var o=t.return;try{pse(t)}catch(l){ls(t,o,l)}break;case 5:var s=t.return;try{pse(t)}catch(l){ls(t,s,l)}}}catch(l){ls(t,t.return,l)}if(t===e){Nn=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Nn=a;break}Nn=t.return}}var D8t=Math.ceil,Fk=X0.ReactCurrentDispatcher,Che=X0.ReactCurrentOwner,Bf=X0.ReactCurrentBatchConfig,Di=0,Aa=null,ks=null,il=0,Uu=0,yS=h3(0),ra=0,VO=null,SC=0,JH=0,yhe=0,L$=null,eu=null,bhe=0,Bw=1/0,q1=null,Nk=!1,Cse=null,h4=null,nD=!1,Q2=null,kk=0,F$=0,yse=null,HF=-1,jF=0;function gc(){return Di&6?xs():HF!==-1?HF:HF=xs()}function g4(e){return e.mode&1?Di&2&&il!==0?il&-il:v8t.transition!==null?(jF===0&&(jF=rke()),jF):(e=no,e!==0||(e=window.event,e=e===void 0?16:uke(e.type)),e):1}function Cg(e,t,n,r){if(50<F$)throw F$=0,yse=null,Error(fn(185));_I(e,n,r),(!(Di&2)||e!==Aa)&&(e===Aa&&(!(Di&2)&&(JH|=n),ra===4&&L2(e,il)),fu(e,r),n===1&&Di===0&&!(t.mode&1)&&(Bw=xs()+500,YH&&g3()))}function fu(e,t){var n=e.callbackNode;v6t(e,t);var r=Sk(e,e===Aa?il:0);if(r===0)n!==null&&tye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&tye(n),t===1)e.tag===0?m8t(qye.bind(null,e)):Ike(qye.bind(null,e)),f8t(function(){!(Di&6)&&g3()}),n=null;else{switch(ike(r)){case 1:n=Ufe;break;case 4:n=tke;break;case 16:n=bk;break;case 536870912:n=nke;break;default:n=bk}n=Tze(n,Sze.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Sze(e,t){if(HF=-1,jF=0,Di&6)throw Error(fn(327));var n=e.callbackNode;if(VS()&&e.callbackNode!==n)return null;var r=Sk(e,e===Aa?il:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=zk(e,r);else{t=r;var i=Di;Di|=2;var o=xze();(Aa!==e||il!==t)&&(q1=null,Bw=xs()+500,Y8(e,t));do try{N8t();break}catch(a){wze(e,a)}while(!0);ohe(),Fk.current=o,Di=i,ks!==null?t=0:(Aa=null,il=0,t=ra)}if(t!==0){if(t===2&&(i=Uoe(e),i!==0&&(r=i,t=bse(e,i))),t===1)throw n=VO,Y8(e,0),L2(e,r),fu(e,xs()),n;if(t===6)L2(e,r);else{if(i=e.current.alternate,!(r&30)&&!L8t(i)&&(t=zk(e,r),t===2&&(o=Uoe(e),o!==0&&(r=o,t=bse(e,o))),t===1))throw n=VO,Y8(e,0),L2(e,r),fu(e,xs()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(fn(345));case 2:Q6(e,eu,q1);break;case 3:if(L2(e,r),(r&130023424)===r&&(t=bhe+500-xs(),10<t)){if(Sk(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){gc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ese(Q6.bind(null,e,eu,q1),t);break}Q6(e,eu,q1);break;case 4:if(L2(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-vg(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=xs()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*D8t(r/1960))-r,10<r){e.timeoutHandle=ese(Q6.bind(null,e,eu,q1),r);break}Q6(e,eu,q1);break;case 5:Q6(e,eu,q1);break;default:throw Error(fn(329))}}}return fu(e,xs()),e.callbackNode===n?Sze.bind(null,e):null}function bse(e,t){var n=L$;return e.current.memoizedState.isDehydrated&&(Y8(e,t).flags|=256),e=zk(e,t),e!==2&&(t=eu,eu=n,t!==null&&Sse(t)),e}function Sse(e){eu===null?eu=e:eu.push.apply(eu,e)}function L8t(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Pg(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function L2(e,t){for(t&=~yhe,t&=~JH,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-vg(t),r=1<<n;e[n]=-1,t&=~r}}function qye(e){if(Di&6)throw Error(fn(327));VS();var t=Sk(e,0);if(!(t&1))return fu(e,xs()),null;var n=zk(e,t);if(e.tag!==0&&n===2){var r=Uoe(e);r!==0&&(t=r,n=bse(e,r))}if(n===1)throw n=VO,Y8(e,0),L2(e,t),fu(e,xs()),n;if(n===6)throw Error(fn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Q6(e,eu,q1),fu(e,xs()),null}function She(e,t){var n=Di;Di|=1;try{return e(t)}finally{Di=n,Di===0&&(Bw=xs()+500,YH&&g3())}}function wC(e){Q2!==null&&Q2.tag===0&&!(Di&6)&&VS();var t=Di;Di|=1;var n=Bf.transition,r=no;try{if(Bf.transition=null,no=1,e)return e()}finally{no=r,Bf.transition=n,Di=t,!(Di&6)&&g3()}}function whe(){Uu=yS.current,Do(yS)}function Y8(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,d8t(n)),ks!==null)for(n=ks.return;n!==null;){var r=n;switch(nhe(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$k();break;case 3:kw(),Do(uu),Do(Ul),dhe();break;case 5:uhe(r);break;case 4:kw();break;case 13:Do(Qo);break;case 19:Do(Qo);break;case 10:she(r.type._context);break;case 22:case 23:whe()}n=n.return}if(Aa=e,ks=e=p4(e.current,null),il=Uu=t,ra=0,VO=null,yhe=JH=SC=0,eu=L$=null,x8!==null){for(t=0;t<x8.length;t++)if(n=x8[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}x8=null}return e}function wze(e,t){do{var n=ks;try{if(ohe(),kF.current=Lk,Dk){for(var r=ns.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Dk=!1}if(bC=0,Oa=Zs=ns=null,A$=!1,BO=0,Che.current=null,n===null||n.return===null){ra=1,VO=t,ks=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=il,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,f=u.tag;if(!(u.mode&1)&&(f===0||f===11||f===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var g=Dye(s);if(g!==null){g.flags&=-257,Lye(g,s,a,o,t),g.mode&1&&Aye(o,c,t),t=g,l=c;var p=t.updateQueue;if(p===null){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}else{if(!(t&1)){Aye(o,c,t),xhe();break e}l=Error(fn(426))}}else if(Ho&&a.mode&1){var v=Dye(s);if(v!==null){!(v.flags&65536)&&(v.flags|=256),Lye(v,s,a,o,t),rhe(zw(l,a));break e}}o=l=zw(l,a),ra!==4&&(ra=2),L$===null?L$=[o]:L$.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var C=oze(o,l,t);$ye(o,C);break e;case 1:a=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(h4===null||!h4.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=sze(o,a,t);$ye(o,S);break e}}o=o.return}while(o!==null)}Rze(n)}catch(w){t=w,ks===n&&n!==null&&(ks=n=n.return);continue}break}while(!0)}function xze(){var e=Fk.current;return Fk.current=Lk,e===null?Lk:e}function xhe(){(ra===0||ra===3||ra===2)&&(ra=4),Aa===null||!(SC&268435455)&&!(JH&268435455)||L2(Aa,il)}function zk(e,t){var n=Di;Di|=2;var r=xze();(Aa!==e||il!==t)&&(q1=null,Y8(e,t));do try{F8t();break}catch(i){wze(e,i)}while(!0);if(ohe(),Di=n,Fk.current=r,ks!==null)throw Error(fn(261));return Aa=null,il=0,ra}function F8t(){for(;ks!==null;)Eze(ks)}function N8t(){for(;ks!==null&&!l6t();)Eze(ks)}function Eze(e){var t=Oze(e.alternate,e,Uu);e.memoizedProps=e.pendingProps,t===null?Rze(e):ks=t,Che.current=null}function Rze(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=M8t(n,t),n!==null){n.flags&=32767,ks=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ra=6,ks=null;return}}else if(n=I8t(n,t,Uu),n!==null){ks=n;return}if(t=t.sibling,t!==null){ks=t;return}ks=t=e}while(t!==null);ra===0&&(ra=5)}function Q6(e,t,n){var r=no,i=Bf.transition;try{Bf.transition=null,no=1,k8t(e,t,n,r)}finally{Bf.transition=i,no=r}return null}function k8t(e,t,n,r){do VS();while(Q2!==null);if(Di&6)throw Error(fn(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(fn(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(C6t(e,o),e===Aa&&(ks=Aa=null,il=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||nD||(nD=!0,Tze(bk,function(){return VS(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Bf.transition,Bf.transition=null;var s=no;no=1;var a=Di;Di|=4,Che.current=null,_8t(e,n),yze(n,e),i8t(Zoe),wk=!!Qoe,Zoe=Qoe=null,e.current=n,A8t(n),c6t(),Di=a,no=s,Bf.transition=o}else e.current=n;if(nD&&(nD=!1,Q2=e,kk=i),o=e.pendingLanes,o===0&&(h4=null),f6t(n.stateNode),fu(e,xs()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Nk)throw Nk=!1,e=Cse,Cse=null,e;return kk&1&&e.tag!==0&&VS(),o=e.pendingLanes,o&1?e===yse?F$++:(F$=0,yse=e):F$=0,g3(),null}function VS(){if(Q2!==null){var e=ike(kk),t=Bf.transition,n=no;try{if(Bf.transition=null,no=16>e?16:e,Q2===null)var r=!1;else{if(e=Q2,Q2=null,kk=0,Di&6)throw Error(fn(331));var i=Di;for(Di|=4,Nn=e.current;Nn!==null;){var o=Nn,s=o.child;if(Nn.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(Nn=c;Nn!==null;){var u=Nn;switch(u.tag){case 0:case 11:case 15:D$(8,u,o)}var f=u.child;if(f!==null)f.return=u,Nn=f;else for(;Nn!==null;){u=Nn;var h=u.sibling,g=u.return;if(mze(u),u===c){Nn=null;break}if(h!==null){h.return=g,Nn=h;break}Nn=g}}}var p=o.alternate;if(p!==null){var m=p.child;if(m!==null){p.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(m!==null)}}Nn=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Nn=s;else e:for(;Nn!==null;){if(o=Nn,o.flags&2048)switch(o.tag){case 0:case 11:case 15:D$(9,o,o.return)}var C=o.sibling;if(C!==null){C.return=o.return,Nn=C;break e}Nn=o.return}}var y=e.current;for(Nn=y;Nn!==null;){s=Nn;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,Nn=b;else e:for(s=y;Nn!==null;){if(a=Nn,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ZH(9,a)}}catch(w){ls(a,a.return,w)}if(a===s){Nn=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,Nn=S;break e}Nn=a.return}}if(Di=i,g3(),rm&&typeof rm.onPostCommitFiberRoot=="function")try{rm.onPostCommitFiberRoot(GH,e)}catch{}r=!0}return r}finally{no=n,Bf.transition=t}}return!1}function Kye(e,t,n){t=zw(n,t),t=oze(e,t,1),e=f4(e,t,1),t=gc(),e!==null&&(_I(e,1,t),fu(e,t))}function ls(e,t,n){if(e.tag===3)Kye(e,e,n);else for(;t!==null;){if(t.tag===3){Kye(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(h4===null||!h4.has(r))){e=zw(n,e),e=sze(t,e,1),t=f4(t,e,1),e=gc(),t!==null&&(_I(t,1,e),fu(t,e));break}}t=t.return}}function z8t(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=gc(),e.pingedLanes|=e.suspendedLanes&n,Aa===e&&(il&n)===n&&(ra===4||ra===3&&(il&130023424)===il&&500>xs()-bhe?Y8(e,0):yhe|=n),fu(e,t)}function $ze(e,t){t===0&&(e.mode&1?(t=UA,UA<<=1,!(UA&130023424)&&(UA=4194304)):t=1);var n=gc();e=T0(e,t),e!==null&&(_I(e,t,n),fu(e,n))}function B8t(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$ze(e,n)}function H8t(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(fn(314))}r!==null&&r.delete(t),$ze(e,n)}var Oze;Oze=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||uu.current)ou=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ou=!1,T8t(e,t,n);ou=!!(e.flags&131072)}else ou=!1,Ho&&t.flags&1048576&&Mke(t,Ik,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;BF(e,t),e=t.pendingProps;var i=Lw(t,Ul.current);jS(t,n),i=hhe(null,t,r,e,i,n);var o=ghe();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,du(r)?(o=!0,Ok(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lhe(t),i.updater=XH,t.stateNode=i,i._reactInternals=t,ase(t,r,e,n),t=use(null,t,r,!0,o,n)):(t.tag=0,Ho&&o&&the(t),uc(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(BF(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=V8t(r),e=Vh(r,e),i){case 0:t=cse(null,t,r,e,n);break e;case 1:t=kye(null,t,r,e,n);break e;case 11:t=Fye(null,t,r,e,n);break e;case 14:t=Nye(null,t,r,Vh(r.type,e),n);break e}throw Error(fn(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vh(r,i),cse(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vh(r,i),kye(e,t,r,i,n);case 3:e:{if(uze(t),e===null)throw Error(fn(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Dke(e,t),_k(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zw(Error(fn(423)),t),t=zye(e,t,r,n,i);break e}else if(r!==i){i=zw(Error(fn(424)),t),t=zye(e,t,r,n,i);break e}else for(nd=d4(t.stateNode.containerInfo.firstChild),ld=t,Ho=!0,Zh=null,n=kke(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fw(),r===i){t=I0(e,t,n);break e}uc(e,t,r,n)}t=t.child}return t;case 5:return zke(t),e===null&&ise(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Joe(r,i)?s=null:o!==null&&Joe(r,o)&&(t.flags|=32),cze(e,t),uc(e,t,s,n),t.child;case 6:return e===null&&ise(t),null;case 13:return dze(e,t,n);case 4:return che(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nw(t,null,r,n):uc(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vh(r,i),Fye(e,t,r,i,n);case 7:return uc(e,t,t.pendingProps,n),t.child;case 8:return uc(e,t,t.pendingProps.children,n),t.child;case 12:return uc(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ro(Mk,r._currentValue),r._currentValue=s,o!==null)if(Pg(o.value,s)){if(o.children===i.children&&!uu.current){t=I0(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=f0(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ose(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(fn(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ose(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}uc(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,jS(t,n),i=Gf(i),r=r(i),t.flags|=1,uc(e,t,r,n),t.child;case 14:return r=t.type,i=Vh(r,t.pendingProps),i=Vh(r.type,i),Nye(e,t,r,i,n);case 15:return aze(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vh(r,i),BF(e,t),t.tag=1,du(r)?(e=!0,Ok(t)):e=!1,jS(t,n),Fke(t,r,i),ase(t,r,i,n),use(null,t,r,!0,e,n);case 19:return fze(e,t,n);case 22:return lze(e,t,n)}throw Error(fn(156,t.tag))};function Tze(e,t){return eke(e,t)}function j8t(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _f(e,t,n,r){return new j8t(e,t,n,r)}function Ehe(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V8t(e){if(typeof e=="function")return Ehe(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vfe)return 11;if(e===Gfe)return 14}return 2}function p4(e,t){var n=e.alternate;return n===null?(n=_f(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function VF(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ehe(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case cS:return X8(n.children,i,o,t);case jfe:s=8,i|=8;break;case Poe:return e=_f(12,n,t,i|2),e.elementType=Poe,e.lanes=o,e;case _oe:return e=_f(13,n,t,i),e.elementType=_oe,e.lanes=o,e;case Aoe:return e=_f(19,n,t,i),e.elementType=Aoe,e.lanes=o,e;case NNe:return ej(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case LNe:s=10;break e;case FNe:s=9;break e;case Vfe:s=11;break e;case Gfe:s=14;break e;case x2:s=16,r=null;break e}throw Error(fn(130,e==null?e:typeof e,""))}return t=_f(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function X8(e,t,n,r){return e=_f(7,e,r,t),e.lanes=n,e}function ej(e,t,n,r){return e=_f(22,e,r,t),e.elementType=NNe,e.lanes=n,e.stateNode={isHidden:!1},e}function UJ(e,t,n){return e=_f(6,e,null,t),e.lanes=n,e}function qJ(e,t,n){return t=_f(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function G8t(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OJ(0),this.expirationTimes=OJ(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OJ(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Rhe(e,t,n,r,i,o,s,a,l){return e=new G8t(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=_f(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lhe(o),e}function W8t(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:lS,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ize(e){if(!e)return F4;e=e._reactInternals;e:{if(Ry(e)!==e||e.tag!==1)throw Error(fn(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(du(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(fn(171))}if(e.tag===1){var n=e.type;if(du(n))return Tke(e,n,t)}return t}function Mze(e,t,n,r,i,o,s,a,l){return e=Rhe(n,r,!0,e,i,o,s,a,l),e.context=Ize(null),n=e.current,r=gc(),i=g4(n),o=f0(r,i),o.callback=t??null,f4(n,o,i),e.current.lanes=i,_I(e,i,r),fu(e,r),e}function tj(e,t,n,r){var i=t.current,o=gc(),s=g4(i);return n=Ize(n),t.context===null?t.context=n:t.pendingContext=n,t=f0(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=f4(i,t,s),e!==null&&(Cg(e,i,s,o),NF(e,i,s)),s}function Bk(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yye(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $he(e,t){Yye(e,t),(e=e.alternate)&&Yye(e,t)}var Pze=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ohe(e){this._internalRoot=e}nj.prototype.render=Ohe.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(fn(409));tj(e,t,null,null)};nj.prototype.unmount=Ohe.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wC(function(){tj(null,e,null,null)}),t[O0]=null}};function nj(e){this._internalRoot=e}nj.prototype.unstable_scheduleHydration=function(e){if(e){var t=ake();e={blockedOn:null,target:e,priority:t};for(var n=0;n<D2.length&&t!==0&&t<D2[n].priority;n++);D2.splice(n,0,e),n===0&&cke(e)}};function The(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rj(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xye(){}function U8t(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=Bk(s);o.call(c)}}var s=Mze(t,r,e,0,null,!1,!1,"",Xye);return e._reactRootContainer=s,e[O0]=s.current,LO(e.nodeType===8?e.parentNode:e),wC(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Bk(l);a.call(c)}}var l=Rhe(e,0,!1,null,null,!1,!1,"",Xye);return e._reactRootContainer=l,e[O0]=l.current,LO(e.nodeType===8?e.parentNode:e),wC(function(){tj(t,l,n,r)}),l}function ij(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Bk(s);a.call(l)}}tj(t,s,e,i)}else s=U8t(n,t,e,i,r);return Bk(s)}oke=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=YR(t.pendingLanes);n!==0&&(qfe(t,n|1),fu(t,xs()),!(Di&6)&&(Bw=xs()+500,g3()))}break;case 13:wC(function(){var r=T0(e,1);if(r!==null){var i=gc();Cg(r,e,1,i)}}),$he(e,1)}};Kfe=function(e){if(e.tag===13){var t=T0(e,134217728);if(t!==null){var n=gc();Cg(t,e,134217728,n)}$he(e,134217728)}};ske=function(e){if(e.tag===13){var t=g4(e),n=T0(e,t);if(n!==null){var r=gc();Cg(n,e,t,r)}$he(e,t)}};ake=function(){return no};lke=function(e,t){var n=no;try{return no=e,t()}finally{no=n}};Voe=function(e,t,n){switch(t){case"input":if(Foe(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=KH(r);if(!i)throw Error(fn(90));zNe(r),Foe(r,i)}}}break;case"textarea":HNe(e,n);break;case"select":t=n.value,t!=null&&kS(e,!!n.multiple,t,!1)}};KNe=She;YNe=wC;var q8t={usingClientEntryPoint:!1,Events:[DI,hS,KH,UNe,qNe,She]},BE={findFiberByHostInstance:w8,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},K8t={bundleType:BE.bundleType,version:BE.version,rendererPackageName:BE.rendererPackageName,rendererConfig:BE.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X0.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ZNe(e),e===null?null:e.stateNode},findFiberByHostInstance:BE.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rD=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rD.isDisabled&&rD.supportsFiber)try{GH=rD.inject(K8t),rm=rD}catch{}}Rd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q8t;Rd.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!The(t))throw Error(fn(200));return W8t(e,t,null,n)};Rd.createRoot=function(e,t){if(!The(e))throw Error(fn(299));var n=!1,r="",i=Pze;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Rhe(e,1,!1,null,null,n,!1,r,i),e[O0]=t.current,LO(e.nodeType===8?e.parentNode:e),new Ohe(t)};Rd.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(fn(188)):(e=Object.keys(e).join(","),Error(fn(268,e)));return e=ZNe(t),e=e===null?null:e.stateNode,e};Rd.flushSync=function(e){return wC(e)};Rd.hydrate=function(e,t,n){if(!rj(t))throw Error(fn(200));return ij(null,e,t,!0,n)};Rd.hydrateRoot=function(e,t,n){if(!The(e))throw Error(fn(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Pze;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Mze(t,null,e,1,n??null,i,!1,o,s),e[O0]=t.current,LO(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new nj(t)};Rd.render=function(e,t,n){if(!rj(t))throw Error(fn(200));return ij(null,e,t,!1,n)};Rd.unmountComponentAtNode=function(e){if(!rj(e))throw Error(fn(40));return e._reactRootContainer?(wC(function(){ij(null,null,e,!1,function(){e._reactRootContainer=null,e[O0]=null})}),!0):!1};Rd.unstable_batchedUpdates=She;Rd.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!rj(n))throw Error(fn(200));if(e==null||e._reactInternals===void 0)throw Error(fn(38));return ij(e,t,n,!1,r)};Rd.version="18.2.0-next-9e3b772b8-20220608";function _ze(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_ze)}catch(e){console.error(e)}}_ze(),MNe.exports=Rd;var fo=MNe.exports;const Hw=Bm(fo),Aze=yNe({__proto__:null,default:Hw},[fo]);var Qye=fo;Ioe.createRoot=Qye.createRoot,Ioe.hydrateRoot=Qye.hydrateRoot;/**
|
||
* @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
|
||
*/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.startsWith("/")&&(ni(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=h0([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(ni(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Lze(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:aCt(c,o.index),routesMeta:u})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of Fze(o.path))i(o,s,l)}),t}function Fze(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Fze(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function eCt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lCt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tCt=/^:[\w-]+$/,nCt=3,rCt=2,iCt=1,oCt=10,sCt=-2,ebe=e=>e==="*";function aCt(e,t){let n=e.split("/"),r=n.length;return n.some(ebe)&&(r+=sCt),t&&(r+=rCt),n.filter(i=>!ebe(i)).reduce((i,o)=>i+(tCt.test(o)?nCt:o===""?iCt:oCt),r)}function lCt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function cCt(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",f=jk({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=jk({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!f)return null;Object.assign(i,f.params),s.push({params:i,pathname:h0([o,f.pathname]),pathnameBase:gCt(h0([o,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(o=h0([o,f.pathnameBase]))}return s}function jk(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=uCt(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,u,f)=>{let{paramName:h,isOptional:g}=u;if(h==="*"){let m=a[f]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=a[f];return g&&!p?c[h]=void 0:c[h]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function uCt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jw(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function dCt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jw(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function M0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function fCt(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?p3(e):e;return{pathname:n?n.startsWith("/")?n:hCt(n,t):t,search:pCt(r),hash:mCt(i)}}function hCt(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function KJ(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Nze(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function oj(e,t){let n=Nze(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function sj(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=p3(e):(i=ko({},e),ni(!i.pathname||!i.pathname.includes("?"),KJ("?","pathname","search",i)),ni(!i.pathname||!i.pathname.includes("#"),KJ("#","pathname","hash",i)),ni(!i.search||!i.search.includes("#"),KJ("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=fCt(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const h0=e=>e.join("/").replace(/\/\/+/g,"/"),gCt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pCt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,mCt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Vk{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function aj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const kze=["post","put","patch","delete"],vCt=new Set(kze),CCt=["get",...kze],yCt=new Set(CCt),bCt=new Set([301,302,303,307,308]),SCt=new Set([307,308]),YJ={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wCt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},HE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ihe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xCt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zze="remix-router-transitions";function ECt(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ni(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let fe=e.detectErrorBoundary;i=Te=>({hasErrorBoundary:fe(Te)})}else i=xCt;let o={},s=Hk(e.routes,i,void 0,o),a,l=e.basename||"/",c=e.dataStrategy||TCt,u=e.patchRoutesOnNavigation,f=ko({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,g=new Set,p=null,m=null,v=null,C=e.hydrationData!=null,y=d8(s,e.history.location,l),b=null;if(y==null&&!u){let fe=Xc(404,{pathname:e.history.location.pathname}),{matches:Te,route:$e}=dbe(s);y=Te,b={[$e.id]:fe}}y&&!e.hydrationData&&It(y,s,e.history.location.pathname).active&&(y=null);let S;if(y)if(y.some(fe=>fe.route.lazy))S=!1;else if(!y.some(fe=>fe.route.loader))S=!0;else if(f.v7_partialHydration){let fe=e.hydrationData?e.hydrationData.loaderData:null,Te=e.hydrationData?e.hydrationData.errors:null;if(Te){let $e=y.findIndex(He=>Te[He.route.id]!==void 0);S=y.slice(0,$e+1).every(He=>!xse(He.route,fe,Te))}else S=y.every($e=>!xse($e.route,fe,Te))}else S=e.hydrationData!=null;else if(S=!1,y=[],f.v7_partialHydration){let fe=It(null,s,e.history.location.pathname);fe.active&&fe.matches&&(y=fe.matches)}let w,x={historyAction:e.history.action,location:e.history.location,matches:y,initialized:S,navigation:YJ,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},E=Ps.Pop,R=!1,O,T=!1,M=new Map,_=null,F=!1,D=!1,k=[],L=new Set,I=new Map,A=0,N=-1,B=new Map,z=new Set,j=new Map,W=new Map,G=new Set,K=new Map,q=new Map,X;function Q(){if(h=e.history.listen(fe=>{let{action:Te,location:$e,delta:He}=fe;if(X){X(),X=void 0;return}jw(q.size===0||He!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let it=Xe({currentLocation:x.location,nextLocation:$e,historyAction:Te});if(it&&He!=null){let at=new Promise(gt=>{X=gt});e.history.go(He*-1),je(it,{state:"blocked",location:$e,proceed(){je(it,{state:"proceeding",proceed:void 0,reset:void 0,location:$e}),at.then(()=>e.history.go(He))},reset(){let gt=new Map(x.blockers);gt.set(it,HE),Z({blockers:gt})}});return}return le(Te,$e)}),n){jCt(t,M);let fe=()=>VCt(t,M);t.addEventListener("pagehide",fe),_=()=>t.removeEventListener("pagehide",fe)}return x.initialized||le(Ps.Pop,x.location,{initialHydration:!0}),w}function te(){h&&h(),_&&_(),g.clear(),O&&O.abort(),x.fetchers.forEach((fe,Te)=>Fe(Te)),x.blockers.forEach((fe,Te)=>be(Te))}function ne(fe){return g.add(fe),()=>g.delete(fe)}function Z(fe,Te){Te===void 0&&(Te={}),x=ko({},x,fe);let $e=[],He=[];f.v7_fetcherPersist&&x.fetchers.forEach((it,at)=>{it.state==="idle"&&(G.has(at)?He.push(at):$e.push(at))}),[...g].forEach(it=>it(x,{deletedFetchers:He,viewTransitionOpts:Te.viewTransitionOpts,flushSync:Te.flushSync===!0})),f.v7_fetcherPersist&&($e.forEach(it=>x.fetchers.delete(it)),He.forEach(it=>Fe(it)))}function ee(fe,Te,$e){var He,it;let{flushSync:at}=$e===void 0?{}:$e,gt=x.actionData!=null&&x.navigation.formMethod!=null&&qh(x.navigation.formMethod)&&x.navigation.state==="loading"&&((He=fe.state)==null?void 0:He._isRedirect)!==!0,yt;Te.actionData?Object.keys(Te.actionData).length>0?yt=Te.actionData:yt=null:gt?yt=x.actionData:yt=null;let st=Te.loaderData?cbe(x.loaderData,Te.loaderData,Te.matches||[],Te.errors):x.loaderData,Ze=x.blockers;Ze.size>0&&(Ze=new Map(Ze),Ze.forEach((kt,pn)=>Ze.set(pn,HE)));let dt=R===!0||x.navigation.formMethod!=null&&qh(x.navigation.formMethod)&&((it=fe.state)==null?void 0:it._isRedirect)!==!0;a&&(s=a,a=void 0),F||E===Ps.Pop||(E===Ps.Push?e.history.push(fe,fe.state):E===Ps.Replace&&e.history.replace(fe,fe.state));let At;if(E===Ps.Pop){let kt=M.get(x.location.pathname);kt&&kt.has(fe.pathname)?At={currentLocation:x.location,nextLocation:fe}:M.has(fe.pathname)&&(At={currentLocation:fe,nextLocation:x.location})}else if(T){let kt=M.get(x.location.pathname);kt?kt.add(fe.pathname):(kt=new Set([fe.pathname]),M.set(x.location.pathname,kt)),At={currentLocation:x.location,nextLocation:fe}}Z(ko({},Te,{actionData:yt,loaderData:st,historyAction:E,location:fe,initialized:!0,navigation:YJ,revalidation:"idle",restoreScrollPosition:wt(fe,Te.matches||x.matches),preventScrollReset:dt,blockers:Ze}),{viewTransitionOpts:At,flushSync:at===!0}),E=Ps.Pop,R=!1,T=!1,F=!1,D=!1,k=[]}async function J(fe,Te){if(typeof fe=="number"){e.history.go(fe);return}let $e=wse(x.location,x.matches,l,f.v7_prependBasename,fe,f.v7_relativeSplatPath,Te==null?void 0:Te.fromRouteId,Te==null?void 0:Te.relative),{path:He,submission:it,error:at}=tbe(f.v7_normalizeFormMethod,!1,$e,Te),gt=x.location,yt=GO(x.location,He,Te&&Te.state);yt=ko({},yt,e.history.encodeLocation(yt));let st=Te&&Te.replace!=null?Te.replace:void 0,Ze=Ps.Push;st===!0?Ze=Ps.Replace:st===!1||it!=null&&qh(it.formMethod)&&it.formAction===x.location.pathname+x.location.search&&(Ze=Ps.Replace);let dt=Te&&"preventScrollReset"in Te?Te.preventScrollReset===!0:void 0,At=(Te&&Te.flushSync)===!0,kt=Xe({currentLocation:gt,nextLocation:yt,historyAction:Ze});if(kt){je(kt,{state:"blocked",location:yt,proceed(){je(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:yt}),J(fe,Te)},reset(){let pn=new Map(x.blockers);pn.set(kt,HE),Z({blockers:pn})}});return}return await le(Ze,yt,{submission:it,pendingError:at,preventScrollReset:dt,replace:Te&&Te.replace,enableViewTransition:Te&&Te.viewTransition,flushSync:At})}function oe(){if(Ge(),Z({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){le(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}le(E||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation,enableViewTransition:T===!0})}}async function le(fe,Te,$e){O&&O.abort(),O=null,E=fe,F=($e&&$e.startUninterruptedRevalidation)===!0,$t(x.location,x.matches),R=($e&&$e.preventScrollReset)===!0,T=($e&&$e.enableViewTransition)===!0;let He=a||s,it=$e&&$e.overrideNavigation,at=d8(He,Te,l),gt=($e&&$e.flushSync)===!0,yt=It(at,He,Te.pathname);if(yt.active&&yt.matches&&(at=yt.matches),!at){let{error:ln,notFoundMatches:Lt,route:xt}=ft(Te.pathname);ee(Te,{matches:Lt,loaderData:{},errors:{[xt.id]:ln}},{flushSync:gt});return}if(x.initialized&&!D&&DCt(x.location,Te)&&!($e&&$e.submission&&qh($e.submission.formMethod))){ee(Te,{matches:at},{flushSync:gt});return}O=new AbortController;let st=Jb(e.history,Te,O.signal,$e&&$e.submission),Ze;if($e&&$e.pendingError)Ze=[f8(at).route.id,{type:lo.error,error:$e.pendingError}];else if($e&&$e.submission&&qh($e.submission.formMethod)){let ln=await ge(st,Te,$e.submission,at,yt.active,{replace:$e.replace,flushSync:gt});if(ln.shortCircuited)return;if(ln.pendingActionResult){let[Lt,xt]=ln.pendingActionResult;if(Yu(xt)&&aj(xt.error)&&xt.error.status===404){O=null,ee(Te,{matches:ln.matches,loaderData:{},errors:{[Lt]:xt.error}});return}}at=ln.matches||at,Ze=ln.pendingActionResult,it=XJ(Te,$e.submission),gt=!1,yt.active=!1,st=Jb(e.history,st.url,st.signal)}let{shortCircuited:dt,matches:At,loaderData:kt,errors:pn}=await he(st,Te,at,yt.active,it,$e&&$e.submission,$e&&$e.fetcherSubmission,$e&&$e.replace,$e&&$e.initialHydration===!0,gt,Ze);dt||(O=null,ee(Te,ko({matches:At||at},ube(Ze),{loaderData:kt,errors:pn})))}async function ge(fe,Te,$e,He,it,at){at===void 0&&(at={}),Ge();let gt=BCt(Te,$e);if(Z({navigation:gt},{flushSync:at.flushSync===!0}),it){let Ze=await Ct(He,Te.pathname,fe.signal);if(Ze.type==="aborted")return{shortCircuited:!0};if(Ze.type==="error"){let dt=f8(Ze.partialMatches).route.id;return{matches:Ze.partialMatches,pendingActionResult:[dt,{type:lo.error,error:Ze.error}]}}else if(Ze.matches)He=Ze.matches;else{let{notFoundMatches:dt,error:At,route:kt}=ft(Te.pathname);return{matches:dt,pendingActionResult:[kt.id,{type:lo.error,error:At}]}}}let yt,st=QR(He,Te);if(!st.route.action&&!st.route.lazy)yt={type:lo.error,error:Xc(405,{method:fe.method,pathname:Te.pathname,routeId:st.route.id})};else if(yt=(await De("action",x,fe,[st],He,null))[st.route.id],fe.signal.aborted)return{shortCircuited:!0};if(R8(yt)){let Ze;return at&&at.replace!=null?Ze=at.replace:Ze=sbe(yt.response.headers.get("Location"),new URL(fe.url),l)===x.location.pathname+x.location.search,await Ee(fe,yt,!0,{submission:$e,replace:Ze}),{shortCircuited:!0}}if(Z2(yt))throw Xc(400,{type:"defer-action"});if(Yu(yt)){let Ze=f8(He,st.route.id);return(at&&at.replace)!==!0&&(E=Ps.Push),{matches:He,pendingActionResult:[Ze.route.id,yt]}}return{matches:He,pendingActionResult:[st.route.id,yt]}}async function he(fe,Te,$e,He,it,at,gt,yt,st,Ze,dt){let At=it||XJ(Te,at),kt=at||gt||hbe(At),pn=!F&&(!f.v7_partialHydration||!st);if(He){if(pn){let Dt=ye(dt);Z(ko({navigation:At},Dt!==void 0?{actionData:Dt}:{}),{flushSync:Ze})}let cn=await Ct($e,Te.pathname,fe.signal);if(cn.type==="aborted")return{shortCircuited:!0};if(cn.type==="error"){let Dt=f8(cn.partialMatches).route.id;return{matches:cn.partialMatches,loaderData:{},errors:{[Dt]:cn.error}}}else if(cn.matches)$e=cn.matches;else{let{error:Dt,notFoundMatches:sn,route:Sn}=ft(Te.pathname);return{matches:sn,loaderData:{},errors:{[Sn.id]:Dt}}}}let ln=a||s,[Lt,xt]=rbe(e.history,x,$e,kt,Te,f.v7_partialHydration&&st===!0,f.v7_skipActionErrorRevalidation,D,k,L,G,j,z,ln,l,dt);if(Tt(cn=>!($e&&$e.some(Dt=>Dt.route.id===cn))||Lt&&Lt.some(Dt=>Dt.route.id===cn)),N=++A,Lt.length===0&&xt.length===0){let cn=Re();return ee(Te,ko({matches:$e,loaderData:{},errors:dt&&Yu(dt[1])?{[dt[0]]:dt[1].error}:null},ube(dt),cn?{fetchers:new Map(x.fetchers)}:{}),{flushSync:Ze}),{shortCircuited:!0}}if(pn){let cn={};if(!He){cn.navigation=At;let Dt=ye(dt);Dt!==void 0&&(cn.actionData=Dt)}xt.length>0&&(cn.fetchers=ue(xt)),Z(cn,{flushSync:Ze})}xt.forEach(cn=>{Ye(cn.key),cn.controller&&I.set(cn.key,cn.controller)});let Rt=()=>xt.forEach(cn=>Ye(cn.key));O&&O.signal.addEventListener("abort",Rt);let{loaderResults:Ft,fetcherResults:hn}=await Be(x,$e,Lt,xt,fe);if(fe.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener("abort",Rt),xt.forEach(cn=>I.delete(cn.key));let Mt=iD(Ft);if(Mt)return await Ee(fe,Mt.result,!0,{replace:yt}),{shortCircuited:!0};if(Mt=iD(hn),Mt)return z.add(Mt.key),await Ee(fe,Mt.result,!0,{replace:yt}),{shortCircuited:!0};let{loaderData:mt,errors:jt}=lbe(x,$e,Ft,dt,xt,hn,K);K.forEach((cn,Dt)=>{cn.subscribe(sn=>{(sn||cn.done)&&K.delete(Dt)})}),f.v7_partialHydration&&st&&x.errors&&(jt=ko({},x.errors,jt));let tn=Re(),Cn=Le(N),Ln=tn||Cn||xt.length>0;return ko({matches:$e,loaderData:mt,errors:jt},Ln?{fetchers:new Map(x.fetchers)}:{})}function ye(fe){if(fe&&!Yu(fe[1]))return{[fe[0]]:fe[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function ue(fe){return fe.forEach(Te=>{let $e=x.fetchers.get(Te.key),He=jE(void 0,$e?$e.data:void 0);x.fetchers.set(Te.key,He)}),new Map(x.fetchers)}function ve(fe,Te,$e,He){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ye(fe);let it=(He&&He.flushSync)===!0,at=a||s,gt=wse(x.location,x.matches,l,f.v7_prependBasename,$e,f.v7_relativeSplatPath,Te,He==null?void 0:He.relative),yt=d8(at,gt,l),st=It(yt,at,gt);if(st.active&&st.matches&&(yt=st.matches),!yt){We(fe,Te,Xc(404,{pathname:gt}),{flushSync:it});return}let{path:Ze,submission:dt,error:At}=tbe(f.v7_normalizeFormMethod,!0,gt,He);if(At){We(fe,Te,At,{flushSync:it});return}let kt=QR(yt,Ze),pn=(He&&He.preventScrollReset)===!0;if(dt&&qh(dt.formMethod)){de(fe,Te,Ze,kt,yt,st.active,it,pn,dt);return}j.set(fe,{routeId:Te,path:Ze}),xe(fe,Te,Ze,kt,yt,st.active,it,pn,dt)}async function de(fe,Te,$e,He,it,at,gt,yt,st){Ge(),j.delete(fe);function Ze(Tn){if(!Tn.route.action&&!Tn.route.lazy){let Jn=Xc(405,{method:st.formMethod,pathname:$e,routeId:Te});return We(fe,Te,Jn,{flushSync:gt}),!0}return!1}if(!at&&Ze(He))return;let dt=x.fetchers.get(fe);Ue(fe,HCt(st,dt),{flushSync:gt});let At=new AbortController,kt=Jb(e.history,$e,At.signal,st);if(at){let Tn=await Ct(it,$e,kt.signal);if(Tn.type==="aborted")return;if(Tn.type==="error"){We(fe,Te,Tn.error,{flushSync:gt});return}else if(Tn.matches){if(it=Tn.matches,He=QR(it,$e),Ze(He))return}else{We(fe,Te,Xc(404,{pathname:$e}),{flushSync:gt});return}}I.set(fe,At);let pn=A,Lt=(await De("action",x,kt,[He],it,fe))[He.route.id];if(kt.signal.aborted){I.get(fe)===At&&I.delete(fe);return}if(f.v7_fetcherPersist&&G.has(fe)){if(R8(Lt)||Yu(Lt)){Ue(fe,u2(void 0));return}}else{if(R8(Lt))if(I.delete(fe),N>pn){Ue(fe,u2(void 0));return}else return z.add(fe),Ue(fe,jE(st)),Ee(kt,Lt,!1,{fetcherSubmission:st,preventScrollReset:yt});if(Yu(Lt)){We(fe,Te,Lt.error);return}}if(Z2(Lt))throw Xc(400,{type:"defer-action"});let xt=x.navigation.location||x.location,Rt=Jb(e.history,xt,At.signal),Ft=a||s,hn=x.navigation.state!=="idle"?d8(Ft,x.navigation.location,l):x.matches;ni(hn,"Didn't find any matches after fetcher action");let Mt=++A;B.set(fe,Mt);let mt=jE(st,Lt.data);x.fetchers.set(fe,mt);let[jt,tn]=rbe(e.history,x,hn,st,xt,!1,f.v7_skipActionErrorRevalidation,D,k,L,G,j,z,Ft,l,[He.route.id,Lt]);tn.filter(Tn=>Tn.key!==fe).forEach(Tn=>{let Jn=Tn.key,Ar=x.fetchers.get(Jn),Vr=jE(void 0,Ar?Ar.data:void 0);x.fetchers.set(Jn,Vr),Ye(Jn),Tn.controller&&I.set(Jn,Tn.controller)}),Z({fetchers:new Map(x.fetchers)});let Cn=()=>tn.forEach(Tn=>Ye(Tn.key));At.signal.addEventListener("abort",Cn);let{loaderResults:Ln,fetcherResults:cn}=await Be(x,hn,jt,tn,Rt);if(At.signal.aborted)return;At.signal.removeEventListener("abort",Cn),B.delete(fe),I.delete(fe),tn.forEach(Tn=>I.delete(Tn.key));let Dt=iD(Ln);if(Dt)return Ee(Rt,Dt.result,!1,{preventScrollReset:yt});if(Dt=iD(cn),Dt)return z.add(Dt.key),Ee(Rt,Dt.result,!1,{preventScrollReset:yt});let{loaderData:sn,errors:Sn}=lbe(x,hn,Ln,void 0,tn,cn,K);if(x.fetchers.has(fe)){let Tn=u2(Lt.data);x.fetchers.set(fe,Tn)}Le(Mt),x.navigation.state==="loading"&&Mt>N?(ni(E,"Expected pending action"),O&&O.abort(),ee(x.navigation.location,{matches:hn,loaderData:sn,errors:Sn,fetchers:new Map(x.fetchers)})):(Z({errors:Sn,loaderData:cbe(x.loaderData,sn,hn,Sn),fetchers:new Map(x.fetchers)}),D=!1)}async function xe(fe,Te,$e,He,it,at,gt,yt,st){let Ze=x.fetchers.get(fe);Ue(fe,jE(st,Ze?Ze.data:void 0),{flushSync:gt});let dt=new AbortController,At=Jb(e.history,$e,dt.signal);if(at){let Lt=await Ct(it,$e,At.signal);if(Lt.type==="aborted")return;if(Lt.type==="error"){We(fe,Te,Lt.error,{flushSync:gt});return}else if(Lt.matches)it=Lt.matches,He=QR(it,$e);else{We(fe,Te,Xc(404,{pathname:$e}),{flushSync:gt});return}}I.set(fe,dt);let kt=A,ln=(await De("loader",x,At,[He],it,fe))[He.route.id];if(Z2(ln)&&(ln=await Mhe(ln,At.signal,!0)||ln),I.get(fe)===dt&&I.delete(fe),!At.signal.aborted){if(G.has(fe)){Ue(fe,u2(void 0));return}if(R8(ln))if(N>kt){Ue(fe,u2(void 0));return}else{z.add(fe),await Ee(At,ln,!1,{preventScrollReset:yt});return}if(Yu(ln)){We(fe,Te,ln.error);return}ni(!Z2(ln),"Unhandled fetcher deferred data"),Ue(fe,u2(ln.data))}}async function Ee(fe,Te,$e,He){let{submission:it,fetcherSubmission:at,preventScrollReset:gt,replace:yt}=He===void 0?{}:He;Te.response.headers.has("X-Remix-Revalidate")&&(D=!0);let st=Te.response.headers.get("Location");ni(st,"Expected a Location header on the redirect Response"),st=sbe(st,new URL(fe.url),l);let Ze=GO(x.location,st,{_isRedirect:!0});if(n){let Lt=!1;if(Te.response.headers.has("X-Remix-Reload-Document"))Lt=!0;else if(Ihe.test(st)){const xt=e.history.createURL(st);Lt=xt.origin!==t.location.origin||M0(xt.pathname,l)==null}if(Lt){yt?t.location.replace(st):t.location.assign(st);return}}O=null;let dt=yt===!0||Te.response.headers.has("X-Remix-Replace")?Ps.Replace:Ps.Push,{formMethod:At,formAction:kt,formEncType:pn}=x.navigation;!it&&!at&&At&&kt&&pn&&(it=hbe(x.navigation));let ln=it||at;if(SCt.has(Te.response.status)&&ln&&qh(ln.formMethod))await le(dt,Ze,{submission:ko({},ln,{formAction:st}),preventScrollReset:gt||R,enableViewTransition:$e?T:void 0});else{let Lt=XJ(Ze,it);await le(dt,Ze,{overrideNavigation:Lt,fetcherSubmission:at,preventScrollReset:gt||R,enableViewTransition:$e?T:void 0})}}async function De(fe,Te,$e,He,it,at){let gt,yt={};try{gt=await ICt(c,fe,Te,$e,He,it,at,o,i)}catch(st){return He.forEach(Ze=>{yt[Ze.route.id]={type:lo.error,error:st}}),yt}for(let[st,Ze]of Object.entries(gt))if(LCt(Ze)){let dt=Ze.result;yt[st]={type:lo.redirect,response:_Ct(dt,$e,st,it,l,f.v7_relativeSplatPath)}}else yt[st]=await PCt(Ze);return yt}async function Be(fe,Te,$e,He,it){let at=fe.matches,gt=De("loader",fe,it,$e,Te,null),yt=Promise.all(He.map(async dt=>{if(dt.matches&&dt.match&&dt.controller){let kt=(await De("loader",fe,Jb(e.history,dt.path,dt.controller.signal),[dt.match],dt.matches,dt.key))[dt.match.route.id];return{[dt.key]:kt}}else return Promise.resolve({[dt.key]:{type:lo.error,error:Xc(404,{pathname:dt.path})}})})),st=await gt,Ze=(await yt).reduce((dt,At)=>Object.assign(dt,At),{});return await Promise.all([kCt(Te,st,it.signal,at,fe.loaderData),zCt(Te,Ze,He)]),{loaderResults:st,fetcherResults:Ze}}function Ge(){D=!0,k.push(...Tt()),j.forEach((fe,Te)=>{I.has(Te)&&L.add(Te),Ye(Te)})}function Ue(fe,Te,$e){$e===void 0&&($e={}),x.fetchers.set(fe,Te),Z({fetchers:new Map(x.fetchers)},{flushSync:($e&&$e.flushSync)===!0})}function We(fe,Te,$e,He){He===void 0&&(He={});let it=f8(x.matches,Te);Fe(fe),Z({errors:{[it.route.id]:$e},fetchers:new Map(x.fetchers)},{flushSync:(He&&He.flushSync)===!0})}function Ve(fe){return f.v7_fetcherPersist&&(W.set(fe,(W.get(fe)||0)+1),G.has(fe)&&G.delete(fe)),x.fetchers.get(fe)||wCt}function Fe(fe){let Te=x.fetchers.get(fe);I.has(fe)&&!(Te&&Te.state==="loading"&&B.has(fe))&&Ye(fe),j.delete(fe),B.delete(fe),z.delete(fe),G.delete(fe),L.delete(fe),x.fetchers.delete(fe)}function ke(fe){if(f.v7_fetcherPersist){let Te=(W.get(fe)||0)-1;Te<=0?(W.delete(fe),G.add(fe)):W.set(fe,Te)}else Fe(fe);Z({fetchers:new Map(x.fetchers)})}function Ye(fe){let Te=I.get(fe);Te&&(Te.abort(),I.delete(fe))}function ze(fe){for(let Te of fe){let $e=Ve(Te),He=u2($e.data);x.fetchers.set(Te,He)}}function Re(){let fe=[],Te=!1;for(let $e of z){let He=x.fetchers.get($e);ni(He,"Expected fetcher: "+$e),He.state==="loading"&&(z.delete($e),fe.push($e),Te=!0)}return ze(fe),Te}function Le(fe){let Te=[];for(let[$e,He]of B)if(He<fe){let it=x.fetchers.get($e);ni(it,"Expected fetcher: "+$e),it.state==="loading"&&(Ye($e),B.delete($e),Te.push($e))}return ze(Te),Te.length>0}function Me(fe,Te){let $e=x.blockers.get(fe)||HE;return q.get(fe)!==Te&&q.set(fe,Te),$e}function be(fe){x.blockers.delete(fe),q.delete(fe)}function je(fe,Te){let $e=x.blockers.get(fe)||HE;ni($e.state==="unblocked"&&Te.state==="blocked"||$e.state==="blocked"&&Te.state==="blocked"||$e.state==="blocked"&&Te.state==="proceeding"||$e.state==="blocked"&&Te.state==="unblocked"||$e.state==="proceeding"&&Te.state==="unblocked","Invalid blocker state transition: "+$e.state+" -> "+Te.state);let He=new Map(x.blockers);He.set(fe,Te),Z({blockers:He})}function Xe(fe){let{currentLocation:Te,nextLocation:$e,historyAction:He}=fe;if(q.size===0)return;q.size>1&&jw(!1,"A router only supports one blocker at a time");let it=Array.from(q.entries()),[at,gt]=it[it.length-1],yt=x.blockers.get(at);if(!(yt&&yt.state==="proceeding")&>({currentLocation:Te,nextLocation:$e,historyAction:He}))return at}function ft(fe){let Te=Xc(404,{pathname:fe}),$e=a||s,{matches:He,route:it}=dbe($e);return Tt(),{notFoundMatches:He,route:it,error:Te}}function Tt(fe){let Te=[];return K.forEach(($e,He)=>{(!fe||fe(He))&&($e.cancel(),Te.push(He),K.delete(He))}),Te}function tt(fe,Te,$e){if(p=fe,v=Te,m=$e||null,!C&&x.navigation===YJ){C=!0;let He=wt(x.location,x.matches);He!=null&&Z({restoreScrollPosition:He})}return()=>{p=null,v=null,m=null}}function pt(fe,Te){return m&&m(fe,Te.map(He=>Dze(He,x.loaderData)))||fe.key}function $t(fe,Te){if(p&&v){let $e=pt(fe,Te);p[$e]=v()}}function wt(fe,Te){if(p){let $e=pt(fe,Te),He=p[$e];if(typeof He=="number")return He}return null}function It(fe,Te,$e){if(u)if(fe){if(Object.keys(fe[0].params).length>0)return{active:!0,matches:GF(Te,$e,l,!0)}}else return{active:!0,matches:GF(Te,$e,l,!0)||[]};return{active:!1,matches:null}}async function Ct(fe,Te,$e){if(!u)return{type:"success",matches:fe};let He=fe;for(;;){let it=a==null,at=a||s,gt=o;try{await u({path:Te,matches:He,patch:(Ze,dt)=>{$e.aborted||obe(Ze,dt,at,gt,i)}})}catch(Ze){return{type:"error",error:Ze,partialMatches:He}}finally{it&&!$e.aborted&&(s=[...s])}if($e.aborted)return{type:"aborted"};let yt=d8(at,Te,l);if(yt)return{type:"success",matches:yt};let st=GF(at,Te,l,!0);if(!st||He.length===st.length&&He.every((Ze,dt)=>Ze.route.id===st[dt].route.id))return{type:"success",matches:null};He=st}}function ot(fe){o={},a=Hk(fe,i,void 0,o)}function nt(fe,Te){let $e=a==null;obe(fe,Te,a||s,o,i),$e&&(s=[...s],Z({}))}return w={get basename(){return l},get future(){return f},get state(){return x},get routes(){return s},get window(){return t},initialize:Q,subscribe:ne,enableScrollRestoration:tt,navigate:J,fetch:ve,revalidate:oe,createHref:fe=>e.history.createHref(fe),encodeLocation:fe=>e.history.encodeLocation(fe),getFetcher:Ve,deleteFetcher:ke,dispose:te,getBlocker:Me,deleteBlocker:be,patchRoutes:nt,_internalFetchControllers:I,_internalActiveDeferreds:K,_internalSetRoutes:ot},w}function RCt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function wse(e,t,n,r,i,o,s,a){let l,c;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){c=f;break}}else l=t,c=t[t.length-1];let u=sj(i||".",oj(l,o),M0(e.pathname,n)||e.pathname,a==="path");if(i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c){let f=Phe(u.search);if(c.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let h=new URLSearchParams(u.search),g=h.getAll("index");h.delete("index"),g.filter(m=>m).forEach(m=>h.append("index",m));let p=h.toString();u.search=p?"?"+p:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:h0([n,u.pathname])),xC(u)}function tbe(e,t,n,r){if(!r||!RCt(r))return{path:n};if(r.formMethod&&!NCt(r.formMethod))return{path:n,error:Xc(405,{method:r.formMethod})};let i=()=>({path:n,error:Xc(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),a=jze(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!qh(s))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,p)=>{let[m,v]=p;return""+g+m+"="+v+`
|
||
`},""):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(i,ko({},t(i),{lazy:void 0}))}async function TCt(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,s)=>Object.assign(i,{[n[s].route.id]:o}),{})}async function ICt(e,t,n,r,i,o,s,a,l,c){let u=o.map(g=>g.route.lazy?OCt(g.route,l,a):void 0),f=o.map((g,p)=>{let m=u[p],v=i.some(y=>y.route.id===g.route.id);return ko({},g,{shouldLoad:v,resolve:async y=>(y&&r.method==="GET"&&(g.route.lazy||g.route.loader)&&(v=!0),v?MCt(t,r,g,m,y,c):Promise.resolve({type:lo.data,result:void 0}))})}),h=await e({matches:f,request:r,params:o[0].params,fetcherKey:s,context:c});try{await Promise.all(u)}catch{}return h}async function MCt(e,t,n,r,i,o){let s,a,l=c=>{let u,f=new Promise((p,m)=>u=m);a=()=>u(),t.signal.addEventListener("abort",a);let h=p=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:o},...p!==void 0?[p]:[]),g=(async()=>{try{return{type:"data",result:await(i?i(m=>h(m)):h())}}catch(p){return{type:"error",result:p}}})();return Promise.race([g,f])};try{let c=n.route[e];if(r)if(c){let u,[f]=await Promise.all([l(c).catch(h=>{u=h}),r]);if(u!==void 0)throw u;s=f}else if(await r,c=n.route[e],c)s=await l(c);else if(e==="action"){let u=new URL(t.url),f=u.pathname+u.search;throw Xc(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:lo.data,result:void 0};else if(c)s=await l(c);else{let u=new URL(t.url),f=u.pathname+u.search;throw Xc(404,{pathname:f})}ni(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:lo.error,result:c}}finally{a&&t.signal.removeEventListener("abort",a)}return s}async function PCt(e){let{result:t,type:n}=e;if(Vze(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:lo.error,error:u}}return n===lo.error?{type:lo.error,error:new Vk(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:lo.data,data:c,statusCode:t.status,headers:t.headers}}if(n===lo.error){if(fbe(t)){var r;if(t.data instanceof Error){var i;return{type:lo.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new Vk(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:lo.error,error:t,statusCode:aj(t)?t.status:void 0}}if(FCt(t)){var o,s;return{type:lo.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(fbe(t)){var a,l;return{type:lo.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:lo.data,data:t}}function _Ct(e,t,n,r,i,o){let s=e.headers.get("Location");if(ni(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ihe.test(s)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=wse(new URL(t.url),a,i,!0,s,o),e.headers.set("Location",s)}return e}function sbe(e,t,n){if(Ihe.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=M0(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Jb(e,t,n,r){let i=e.createURL(jze(t)).toString(),o={signal:n};if(r&&qh(r.formMethod)){let{formMethod:s,formEncType:a}=r;o.method=s.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=Ese(r.formData):o.body=r.formData}return new Request(i,o)}function Ese(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function abe(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ACt(e,t,n,r,i){let o={},s=null,a,l=!1,c={},u=n&&Yu(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let h=f.route.id,g=t[h];if(ni(!R8(g),"Cannot handle redirect results in processLoaderData"),Yu(g)){let p=g.error;u!==void 0&&(p=u,u=void 0),s=s||{};{let m=f8(e,h);s[m.route.id]==null&&(s[m.route.id]=p)}o[h]=void 0,l||(l=!0,a=aj(g.error)?g.error.status:500),g.headers&&(c[h]=g.headers)}else Z2(g)?(r.set(h,g.deferredData),o[h]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!l&&(a=g.statusCode),g.headers&&(c[h]=g.headers)):(o[h]=g.data,g.statusCode&&g.statusCode!==200&&!l&&(a=g.statusCode),g.headers&&(c[h]=g.headers))}),u!==void 0&&n&&(s={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:s,statusCode:a||200,loaderHeaders:c}}function lbe(e,t,n,r,i,o,s){let{loaderData:a,errors:l}=ACt(t,n,r,s);return i.forEach(c=>{let{key:u,match:f,controller:h}=c,g=o[u];if(ni(g,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(Yu(g)){let p=f8(e.matches,f==null?void 0:f.route.id);l&&l[p.route.id]||(l=ko({},l,{[p.route.id]:g.error})),e.fetchers.delete(u)}else if(R8(g))ni(!1,"Unhandled fetcher revalidation redirect");else if(Z2(g))ni(!1,"Unhandled fetcher deferred data");else{let p=u2(g.data);e.fetchers.set(u,p)}}),{loaderData:a,errors:l}}function cbe(e,t,n,r){let i=ko({},t);for(let o of n){let s=o.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(i[s]=t[s]):e[s]!==void 0&&o.route.loader&&(i[s]=e[s]),r&&r.hasOwnProperty(s))break}return i}function ube(e){return e?Yu(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function f8(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function dbe(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Xc(e,t){let{pathname:n,routeId:r,method:i,type:o,message:s}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new Vk(e||500,a,new Error(l),!0)}function iD(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(R8(i))return{key:r,result:i}}}function jze(e){let t=typeof e=="string"?p3(e):e;return xC(ko({},t,{hash:""}))}function DCt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function LCt(e){return Vze(e.result)&&bCt.has(e.result.status)}function Z2(e){return e.type===lo.deferred}function Yu(e){return e.type===lo.error}function R8(e){return(e&&e.type)===lo.redirect}function fbe(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function FCt(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Vze(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function NCt(e){return yCt.has(e.toLowerCase())}function qh(e){return vCt.has(e.toLowerCase())}async function kCt(e,t,n,r,i){let o=Object.entries(t);for(let s=0;s<o.length;s++){let[a,l]=o[s],c=e.find(h=>(h==null?void 0:h.route.id)===a);if(!c)continue;let u=r.find(h=>h.route.id===c.route.id),f=u!=null&&!Bze(u,c)&&(i&&i[c.route.id])!==void 0;Z2(l)&&f&&await Mhe(l,n,!1).then(h=>{h&&(t[a]=h)})}}async function zCt(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:s}=n[r],a=t[i];e.find(c=>(c==null?void 0:c.route.id)===o)&&Z2(a)&&(ni(s,"Expected an AbortController for revalidating fetcher deferred result"),await Mhe(a,s.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function Mhe(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:lo.data,data:e.deferredData.unwrappedData}}catch(i){return{type:lo.error,error:i}}return{type:lo.data,data:e.deferredData.data}}}function Phe(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function QR(e,t){let n=typeof t=="string"?p3(t).search:t.search;if(e[e.length-1].route.index&&Phe(n||""))return e[e.length-1];let r=Nze(e);return r[r.length-1]}function hbe(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function XJ(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function BCt(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function jE(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function HCt(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function u2(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function jCt(e,t){try{let n=e.sessionStorage.getItem(zze);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function VCt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(zze,JSON.stringify(n))}catch(r){jw(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
|
||
* 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
|
||
*/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==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);u>=0||ni(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<s.length;u++){let f=s[u];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=u),f.route.id){let{loaderData:h,errors:g}=n,p=f.route.loader&&h[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||p){l=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,f,h)=>{let g,p=!1,m=null,v=null;n&&(g=a&&f.route.id?a[f.route.id]:void 0,m=f.route.errorElement||XCt,l&&(c<0&&h===0?(p=!0,v=null):c===h&&(p=!0,v=f.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,h+1)),y=()=>{let b;return g?b=m:p?b=v:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,d.createElement(ZCt,{match:f,routeContext:{outlet:u,matches:C,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?d.createElement(QCt,{location:n.location,revalidation:n.revalidation,component:m,error:g,children:y(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):y()},null)}var Uze=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Uze||{}),WO=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(WO||{});function eyt(e){let t=d.useContext(FI);return t||ni(!1),t}function qze(e){let t=d.useContext(_he);return t||ni(!1),t}function tyt(e){let t=d.useContext(Hm);return t||ni(!1),t}function Kze(e){let t=tyt(),n=t.matches[t.matches.length-1];return n.route.id||ni(!1),n.route.id}function Yze(){let{matches:e,loaderData:t}=qze(WO.UseMatches);return d.useMemo(()=>e.map(n=>Dze(n,t)),[e,t])}function Xze(){var e;let t=d.useContext(Gze),n=qze(WO.UseRouteError),r=Kze(WO.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function nyt(){let{router:e}=eyt(Uze.UseNavigateStable),t=Kze(WO.UseNavigateStable),n=d.useRef(!1);return Wze(()=>{n.current=!0}),d.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Gk({fromRouteId:t},o)))},[e,t])}const gbe={};function ryt(e,t){gbe[t]||(gbe[t]=!0,console.warn(t))}const e5=(e,t,n)=>ryt(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function iyt(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&e5("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||!t.v7_relativeSplatPath)&&e5("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist===void 0&&e5("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod===void 0&&e5("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration===void 0&&e5("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation===void 0&&e5("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function oyt(e){let{to:t,replace:n,state:r,relative:i}=e;Ax()||ni(!1);let{future:o,static:s}=d.useContext(Q0),{matches:a}=d.useContext(Hm),{pathname:l}=jm(),c=Gs(),u=sj(t,oj(a,o.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:i}),[c,f,i,n,r]),null}function Dhe(e){return qCt(e.context)}function syt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ps.Pop,navigator:o,static:s=!1,future:a}=e;Ax()&&ni(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:o,static:s,future:Gk({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=p3(r));let{pathname:u="/",search:f="",hash:h="",state:g=null,key:p="default"}=r,m=d.useMemo(()=>{let v=M0(u,l);return v==null?null:{location:{pathname:v,search:f,hash:h,state:g,key:p},navigationType:i}},[l,u,f,h,g,p,i]);return m==null?null:d.createElement(Q0.Provider,{value:c},d.createElement(Ahe.Provider,{children:n,value:m}))}new Promise(()=>{});function ayt(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
|
||
* 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
|
||
*/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==null?void 0:T.preventScrollReset})}),[n]),w=n.basename||"/",x=d.useMemo(()=>({router:n,navigator:S,static:!1,basename:w}),[n,S,w]),E=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>iyt(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement(FI.Provider,{value:x},d.createElement(_he.Provider,{value:i},d.createElement(myt.Provider,{value:v.current},d.createElement(Zze.Provider,{value:l},d.createElement(syt,{basename:w,location:i.location,navigationType:i.historyAction,navigator:S,future:E},i.initialized||n.future.v7_partialHydration?d.createElement(wyt,{routes:n.routes,future:n.future,state:i}):t))))),null)}const wyt=d.memo(xyt);function xyt(e){let{routes:t,future:n,state:r}=e;return KCt(t,void 0,r,n)}const Eyt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ryt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h8=d.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,h=Qze(t,uyt),{basename:g}=d.useContext(Q0),p,m=!1;if(typeof c=="string"&&Ryt.test(c)&&(p=c,Eyt))try{let b=new URL(window.location.href),S=c.startsWith("//")?new URL(b.protocol+c):new URL(c),w=M0(S.pathname,g);S.origin===b.origin&&w!=null?c=w+S.search+S.hash:m=!0}catch{}let v=GCt(c,{relative:i}),C=Tyt(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:f});function y(b){r&&r(b),b.defaultPrevented||C(b)}return d.createElement("a",Vw({},h,{href:p||v,onClick:m||o?r:y,ref:n,target:l}))}),$yt=d.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,viewTransition:c,children:u}=t,f=Qze(t,dyt),h=lj(l,{relative:f.relative}),g=jm(),p=d.useContext(_he),{navigator:m,basename:v}=d.useContext(Q0),C=p!=null&&Iyt(h)&&c===!0,y=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,b=g.pathname,S=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;i||(b=b.toLowerCase(),S=S?S.toLowerCase():null,y=y.toLowerCase()),S&&v&&(S=M0(S,v)||S);const w=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let x=b===y||!s&&b.startsWith(y)&&b.charAt(w)==="/",E=S!=null&&(S===y||!s&&S.startsWith(y)&&S.charAt(y.length)==="/"),R={isActive:x,isPending:E,isTransitioning:C},O=x?r:void 0,T;typeof o=="function"?T=o(R):T=[o,x?"active":null,E?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let M=typeof a=="function"?a(R):a;return d.createElement(h8,Vw({},f,{"aria-current":O,className:T,ref:n,style:M,to:l,viewTransition:c}),typeof u=="function"?u(R):u)});var Rse;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Rse||(Rse={}));var vbe;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vbe||(vbe={}));function Oyt(e){let t=d.useContext(FI);return t||ni(!1),t}function Tyt(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=Gs(),c=jm(),u=lj(e,{relative:s});return d.useCallback(f=>{if(cyt(f,n)){f.preventDefault();let h=r!==void 0?r:xC(c)===xC(u);l(e,{replace:h,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,r,i,n,e,o,s,a])}function Iyt(e,t){t===void 0&&(t={});let n=d.useContext(Zze);n==null&&ni(!1);let{basename:r}=Oyt(Rse.useViewTransitionState),i=lj(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=M0(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=M0(n.nextLocation.pathname,r)||n.nextLocation.pathname;return jk(i.pathname,s)!=null||jk(i.pathname,o)!=null}var $y=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},EC=typeof window>"u"||"Deno"in globalThis;function pf(){}function Myt(e,t){return typeof e=="function"?e(t):e}function $se(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jze(e,t){return Math.max(e+(t||0)-Date.now(),0)}function GS(e,t){return typeof e=="function"?e(t):e}function Jh(e,t){return typeof e=="function"?e(t):e}function Cbe(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Lhe(s,t.options))return!1}else if(!UO(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function ybe(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(N4(t.options.mutationKey)!==N4(o))return!1}else if(!UO(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Lhe(e,t){return((t==null?void 0:t.queryKeyHashFn)||N4)(e)}function N4(e){return JSON.stringify(e,(t,n)=>Ose(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function UO(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!UO(e[n],t[n])):!1}function Fhe(e,t){if(e===t)return e;const n=bbe(e)&&bbe(t);if(n||Ose(e)&&Ose(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let c=0;c<s;c++){const u=n?c:o[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(a[u]=void 0,l++):(a[u]=Fhe(e[u],t[u]),a[u]===e[u]&&e[u]!==void 0&&l++)}return i===s&&l===i?e:a}return t}function Wk(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function bbe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ose(e){if(!Sbe(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Sbe(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Sbe(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pyt(e){return new Promise(t=>{setTimeout(t,e)})}function Tse(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Fhe(e,t):t}function _yt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ayt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Q8=Symbol();function eBe(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Q8?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var H8,B2,Cw,eNe,Dyt=(eNe=class extends $y{constructor(){super();Un(this,H8);Un(this,B2);Un(this,Cw);yn(this,Cw,t=>{if(!EC&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Ke(this,B2)||this.setEventListener(Ke(this,Cw))}onUnsubscribe(){var t;this.hasListeners()||((t=Ke(this,B2))==null||t.call(this),yn(this,B2,void 0))}setEventListener(t){var n;yn(this,Cw,t),(n=Ke(this,B2))==null||n.call(this),yn(this,B2,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Ke(this,H8)!==t&&(yn(this,H8,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Ke(this,H8)=="boolean"?Ke(this,H8):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},H8=new WeakMap,B2=new WeakMap,Cw=new WeakMap,eNe),Nhe=new Dyt,yw,H2,bw,tNe,Lyt=(tNe=class extends $y{constructor(){super();Un(this,yw,!0);Un(this,H2);Un(this,bw);yn(this,bw,t=>{if(!EC&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Ke(this,H2)||this.setEventListener(Ke(this,bw))}onUnsubscribe(){var t;this.hasListeners()||((t=Ke(this,H2))==null||t.call(this),yn(this,H2,void 0))}setEventListener(t){var n;yn(this,bw,t),(n=Ke(this,H2))==null||n.call(this),yn(this,H2,t(this.setOnline.bind(this)))}setOnline(t){Ke(this,yw)!==t&&(yn(this,yw,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Ke(this,yw)}},yw=new WeakMap,H2=new WeakMap,bw=new WeakMap,tNe),Uk=new Lyt;function Ise(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Fyt(e){return Math.min(1e3*2**e,3e4)}function tBe(e){return(e??"online")==="online"?Uk.isOnline():!0}var nBe=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function QJ(e){return e instanceof nBe}function rBe(e){let t=!1,n=0,r=!1,i;const o=Ise(),s=m=>{var v;r||(h(new nBe(m)),(v=e.abort)==null||v.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Nhe.isFocused()&&(e.networkMode==="always"||Uk.isOnline())&&e.canRun(),u=()=>tBe(e.networkMode)&&e.canRun(),f=m=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,m),i==null||i(),o.resolve(m))},h=m=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,m),i==null||i(),o.reject(m))},g=()=>new Promise(m=>{var v;i=C=>{(r||c())&&m(C)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;i=void 0,r||(m=e.onContinue)==null||m.call(e)}),p=()=>{if(r)return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(C){m=Promise.reject(C)}Promise.resolve(m).then(f).catch(C=>{var x;if(r)return;const y=e.retry??(EC?0:3),b=e.retryDelay??Fyt,S=typeof b=="function"?b(n,C):b,w=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,C);if(t||!w){h(C);return}n++,(x=e.onFail)==null||x.call(e,n,C),Pyt(S).then(()=>c()?void 0:g()).then(()=>{t?h(C):p()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?p():g().then(p),o)}}function Nyt(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var us=Nyt(),j8,nNe,iBe=(nNe=class{constructor(){Un(this,j8)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$se(this.gcTime)&&yn(this,j8,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(EC?1/0:5*60*1e3))}clearGcTimeout(){Ke(this,j8)&&(clearTimeout(Ke(this,j8)),yn(this,j8,void 0))}},j8=new WeakMap,nNe),Sw,ww,ff,Rl,RI,V8,Gh,z1,rNe,kyt=(rNe=class extends iBe{constructor(t){super();Un(this,Gh);Un(this,Sw);Un(this,ww);Un(this,ff);Un(this,Rl);Un(this,RI);Un(this,V8);yn(this,V8,!1),yn(this,RI,t.defaultOptions),this.setOptions(t.options),this.observers=[],yn(this,ff,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,yn(this,Sw,zyt(this.options)),this.state=t.state??Ke(this,Sw),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Ke(this,Rl))==null?void 0:t.promise}setOptions(t){this.options={...Ke(this,RI),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ke(this,ff).remove(this)}setData(t,n){const r=Tse(this.state.data,t,this.options);return gr(this,Gh,z1).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){gr(this,Gh,z1).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Ke(this,Rl))==null?void 0:r.promise;return(i=Ke(this,Rl))==null||i.cancel(t),n?n.then(pf).catch(pf):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ke(this,Sw))}isActive(){return this.observers.some(t=>Jh(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Q8||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Jze(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Ke(this,Rl))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Ke(this,Rl))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Ke(this,ff).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Ke(this,Rl)&&(Ke(this,V8)?Ke(this,Rl).cancel({revert:!0}):Ke(this,Rl).cancelRetry()),this.scheduleGc()),Ke(this,ff).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||gr(this,Gh,z1).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Ke(this,Rl))return Ke(this,Rl).continueRetry(),Ke(this,Rl).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(yn(this,V8,!0),r.signal)})},o=()=>{const f=eBe(this.options,n),h={queryKey:this.queryKey,meta:this.meta};return i(h),yn(this,V8,!1),this.options.persister?this.options.persister(f,h,this):f(h)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),yn(this,ww,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=s.fetchOptions)==null?void 0:c.meta))&&gr(this,Gh,z1).call(this,{type:"fetch",meta:(u=s.fetchOptions)==null?void 0:u.meta});const a=f=>{var h,g,p,m;QJ(f)&&f.silent||gr(this,Gh,z1).call(this,{type:"error",error:f}),QJ(f)||((g=(h=Ke(this,ff).config).onError)==null||g.call(h,f,this),(m=(p=Ke(this,ff).config).onSettled)==null||m.call(p,this.state.data,f,this)),this.scheduleGc()};return yn(this,Rl,rBe({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,g,p,m;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){a(v);return}(g=(h=Ke(this,ff).config).onSuccess)==null||g.call(h,f,this),(m=(p=Ke(this,ff).config).onSettled)==null||m.call(p,f,this.state.error,this),this.scheduleGc()},onError:a,onFail:(f,h)=>{gr(this,Gh,z1).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{gr(this,Gh,z1).call(this,{type:"pause"})},onContinue:()=>{gr(this,Gh,z1).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),Ke(this,Rl).start()}},Sw=new WeakMap,ww=new WeakMap,ff=new WeakMap,Rl=new WeakMap,RI=new WeakMap,V8=new WeakMap,Gh=new WeakSet,z1=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...oBe(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return QJ(i)&&i.revert&&Ke(this,ww)?{...Ke(this,ww),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),us.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Ke(this,ff).notify({query:this,type:"updated",action:t})})},rNe);function oBe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tBe(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zyt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var kp,iNe,Byt=(iNe=class extends $y{constructor(t={}){super();Un(this,kp);this.config=t,yn(this,kp,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Lhe(i,n);let s=this.get(o);return s||(s=new kyt({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Ke(this,kp).has(t.queryHash)||(Ke(this,kp).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Ke(this,kp).get(t.queryHash);n&&(t.destroy(),n===t&&Ke(this,kp).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){us.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ke(this,kp).get(t)}getAll(){return[...Ke(this,kp).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Cbe(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Cbe(t,r)):n}notify(t){us.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){us.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){us.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},kp=new WeakMap,iNe),zp,lc,G8,Bp,d2,oNe,Hyt=(oNe=class extends iBe{constructor(t){super();Un(this,Bp);Un(this,zp);Un(this,lc);Un(this,G8);this.mutationId=t.mutationId,yn(this,lc,t.mutationCache),yn(this,zp,[]),this.state=t.state||sBe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ke(this,zp).includes(t)||(Ke(this,zp).push(t),this.clearGcTimeout(),Ke(this,lc).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){yn(this,zp,Ke(this,zp).filter(n=>n!==t)),this.scheduleGc(),Ke(this,lc).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Ke(this,zp).length||(this.state.status==="pending"?this.scheduleGc():Ke(this,lc).remove(this))}continue(){var t;return((t=Ke(this,G8))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,a,l,c,u,f,h,g,p,m,v,C,y,b,S,w,x,E;yn(this,G8,rBe({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,O)=>{gr(this,Bp,d2).call(this,{type:"failed",failureCount:R,error:O})},onPause:()=>{gr(this,Bp,d2).call(this,{type:"pause"})},onContinue:()=>{gr(this,Bp,d2).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ke(this,lc).canRun(this)}));const n=this.state.status==="pending",r=!Ke(this,G8).canStart();try{if(!n){gr(this,Bp,d2).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=Ke(this,lc).config).onMutate)==null?void 0:o.call(i,t,this));const O=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));O!==this.state.context&&gr(this,Bp,d2).call(this,{type:"pending",context:O,variables:t,isPaused:r})}const R=await Ke(this,G8).start();return await((c=(l=Ke(this,lc).config).onSuccess)==null?void 0:c.call(l,R,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,R,t,this.state.context)),await((g=(h=Ke(this,lc).config).onSettled)==null?void 0:g.call(h,R,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,R,null,t,this.state.context)),gr(this,Bp,d2).call(this,{type:"success",data:R}),R}catch(R){try{throw await((C=(v=Ke(this,lc).config).onError)==null?void 0:C.call(v,R,t,this.state.context,this)),await((b=(y=this.options).onError)==null?void 0:b.call(y,R,t,this.state.context)),await((w=(S=Ke(this,lc).config).onSettled)==null?void 0:w.call(S,void 0,R,this.state.variables,this.state.context,this)),await((E=(x=this.options).onSettled)==null?void 0:E.call(x,void 0,R,t,this.state.context)),R}finally{gr(this,Bp,d2).call(this,{type:"error",error:R})}}finally{Ke(this,lc).runNext(this)}}},zp=new WeakMap,lc=new WeakMap,G8=new WeakMap,Bp=new WeakSet,d2=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),us.batch(()=>{Ke(this,zp).forEach(r=>{r.onMutationUpdate(t)}),Ke(this,lc).notify({mutation:this,type:"updated",action:t})})},oNe);function sBe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var o0,Wh,$I,sNe,jyt=(sNe=class extends $y{constructor(t={}){super();Un(this,o0);Un(this,Wh);Un(this,$I);this.config=t,yn(this,o0,new Set),yn(this,Wh,new Map),yn(this,$I,0)}build(t,n,r){const i=new Hyt({mutationCache:this,mutationId:++BA(this,$I)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){Ke(this,o0).add(t);const n=oD(t);if(typeof n=="string"){const r=Ke(this,Wh).get(n);r?r.push(t):Ke(this,Wh).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Ke(this,o0).delete(t)){const n=oD(t);if(typeof n=="string"){const r=Ke(this,Wh).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&Ke(this,Wh).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=oD(t);if(typeof n=="string"){const r=Ke(this,Wh).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=oD(t);if(typeof n=="string"){const i=(r=Ke(this,Wh).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){us.batch(()=>{Ke(this,o0).forEach(t=>{this.notify({type:"removed",mutation:t})}),Ke(this,o0).clear(),Ke(this,Wh).clear()})}getAll(){return Array.from(Ke(this,o0))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ybe(n,r))}findAll(t={}){return this.getAll().filter(n=>ybe(t,n))}notify(t){us.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return us.batch(()=>Promise.all(t.map(n=>n.continue().catch(pf))))}},o0=new WeakMap,Wh=new WeakMap,$I=new WeakMap,sNe);function oD(e){var t;return(t=e.options.scope)==null?void 0:t.id}function qk(e){return{onFetch:(t,n)=>{var u,f,h,g,p;const r=t.options,i=(h=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],s=((p=t.state.data)==null?void 0:p.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},C=eBe(t.options,t.fetchOptions),y=async(b,S,w)=>{if(m)return Promise.reject();if(S==null&&b.pages.length)return Promise.resolve(b);const x={queryKey:t.queryKey,pageParam:S,direction:w?"backward":"forward",meta:t.options.meta};v(x);const E=await C(x),{maxPages:R}=t.options,O=w?Ayt:_yt;return{pages:O(b.pages,E,R),pageParams:O(b.pageParams,S,R)}};if(i&&o.length){const b=i==="backward",S=b?aBe:Mse,w={pages:o,pageParams:s},x=S(r,w);a=await y(w,x,b)}else{const b=e??o.length;do{const S=l===0?s[0]??r.initialPageParam:Mse(r,a);if(l>0&&S==null)break;a=await y(a,S),l++}while(l<b)}return a};t.options.persister?t.fetchFn=()=>{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Mse(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function aBe(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function Vyt(e,t){return t?Mse(e,t)!=null:!1}function Gyt(e,t){return!t||!e.getPreviousPageParam?!1:aBe(e,t)!=null}var os,j2,V2,xw,Ew,G2,Rw,$w,aNe,Wyt=(aNe=class{constructor(e={}){Un(this,os);Un(this,j2);Un(this,V2);Un(this,xw);Un(this,Ew);Un(this,G2);Un(this,Rw);Un(this,$w);yn(this,os,e.queryCache||new Byt),yn(this,j2,e.mutationCache||new jyt),yn(this,V2,e.defaultOptions||{}),yn(this,xw,new Map),yn(this,Ew,new Map),yn(this,G2,0)}mount(){BA(this,G2)._++,Ke(this,G2)===1&&(yn(this,Rw,Nhe.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ke(this,os).onFocus())})),yn(this,$w,Uk.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ke(this,os).onOnline())})))}unmount(){var e,t;BA(this,G2)._--,Ke(this,G2)===0&&((e=Ke(this,Rw))==null||e.call(this),yn(this,Rw,void 0),(t=Ke(this,$w))==null||t.call(this),yn(this,$w,void 0))}isFetching(e){return Ke(this,os).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ke(this,j2).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ke(this,os).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Ke(this,os).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(GS(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Ke(this,os).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Ke(this,os).get(r.queryHash),o=i==null?void 0:i.state.data,s=Myt(t,o);if(s!==void 0)return Ke(this,os).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return us.batch(()=>Ke(this,os).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ke(this,os).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Ke(this,os);us.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Ke(this,os),r={type:"active",...e};return us.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=us.batch(()=>Ke(this,os).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(pf).catch(pf)}invalidateQueries(e,t={}){return us.batch(()=>{if(Ke(this,os).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=us.batch(()=>Ke(this,os).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(pf)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(pf)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Ke(this,os).build(this,t);return n.isStaleByTime(GS(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pf).catch(pf)}fetchInfiniteQuery(e){return e.behavior=qk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pf).catch(pf)}ensureInfiniteQueryData(e){return e.behavior=qk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Uk.isOnline()?Ke(this,j2).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ke(this,os)}getMutationCache(){return Ke(this,j2)}getDefaultOptions(){return Ke(this,V2)}setDefaultOptions(e){yn(this,V2,e)}setQueryDefaults(e,t){Ke(this,xw).set(N4(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ke(this,xw).values()],n={};return t.forEach(r=>{UO(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){Ke(this,Ew).set(N4(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ke(this,Ew).values()];let n={};return t.forEach(r=>{UO(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ke(this,V2).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Lhe(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Q8&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Ke(this,V2).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ke(this,os).clear(),Ke(this,j2).clear()}},os=new WeakMap,j2=new WeakMap,V2=new WeakMap,xw=new WeakMap,Ew=new WeakMap,G2=new WeakMap,Rw=new WeakMap,$w=new WeakMap,aNe),Kc,wi,OI,cc,W8,Ow,W2,Hp,TI,Tw,Iw,U8,q8,U2,Mw,Yi,ZR,Pse,_se,Ase,Dse,Lse,Fse,Nse,lBe,lNe,NI=(lNe=class extends $y{constructor(t,n){super();Un(this,Yi);Un(this,Kc);Un(this,wi);Un(this,OI);Un(this,cc);Un(this,W8);Un(this,Ow);Un(this,W2);Un(this,Hp);Un(this,TI);Un(this,Tw);Un(this,Iw);Un(this,U8);Un(this,q8);Un(this,U2);Un(this,Mw,new Set);this.options=n,yn(this,Kc,t),yn(this,Hp,null),yn(this,W2,Ise()),this.options.experimental_prefetchInRender||Ke(this,W2).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Ke(this,wi).addObserver(this),wbe(Ke(this,wi),this.options)?gr(this,Yi,ZR).call(this):this.updateResult(),gr(this,Yi,Dse).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kse(Ke(this,wi),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kse(Ke(this,wi),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,gr(this,Yi,Lse).call(this),gr(this,Yi,Fse).call(this),Ke(this,wi).removeObserver(this)}setOptions(t,n){const r=this.options,i=Ke(this,wi);if(this.options=Ke(this,Kc).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Jh(this.options.enabled,Ke(this,wi))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");gr(this,Yi,Nse).call(this),Ke(this,wi).setOptions(this.options),r._defaulted&&!Wk(this.options,r)&&Ke(this,Kc).getQueryCache().notify({type:"observerOptionsUpdated",query:Ke(this,wi),observer:this});const o=this.hasListeners();o&&xbe(Ke(this,wi),i,this.options,r)&&gr(this,Yi,ZR).call(this),this.updateResult(n),o&&(Ke(this,wi)!==i||Jh(this.options.enabled,Ke(this,wi))!==Jh(r.enabled,Ke(this,wi))||GS(this.options.staleTime,Ke(this,wi))!==GS(r.staleTime,Ke(this,wi)))&&gr(this,Yi,Pse).call(this);const s=gr(this,Yi,_se).call(this);o&&(Ke(this,wi)!==i||Jh(this.options.enabled,Ke(this,wi))!==Jh(r.enabled,Ke(this,wi))||s!==Ke(this,U2))&&gr(this,Yi,Ase).call(this,s)}getOptimisticResult(t){const n=Ke(this,Kc).getQueryCache().build(Ke(this,Kc),t),r=this.createResult(n,t);return qyt(this,r)&&(yn(this,cc,r),yn(this,Ow,this.options),yn(this,W8,Ke(this,wi).state)),r}getCurrentResult(){return Ke(this,cc)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){Ke(this,Mw).add(t)}getCurrentQuery(){return Ke(this,wi)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Ke(this,Kc).defaultQueryOptions(t),r=Ke(this,Kc).getQueryCache().build(Ke(this,Kc),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return gr(this,Yi,ZR).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Ke(this,cc)))}createResult(t,n){var R;const r=Ke(this,wi),i=this.options,o=Ke(this,cc),s=Ke(this,W8),a=Ke(this,Ow),c=t!==r?t.state:Ke(this,OI),{state:u}=t;let f={...u},h=!1,g;if(n._optimisticResults){const O=this.hasListeners(),T=!O&&wbe(t,n),M=O&&xbe(t,r,n,i);(T||M)&&(f={...f,...oBe(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:v}=f;if(n.select&&f.data!==void 0)if(o&&f.data===(s==null?void 0:s.data)&&n.select===Ke(this,TI))g=Ke(this,Tw);else try{yn(this,TI,n.select),g=n.select(f.data),g=Tse(o==null?void 0:o.data,g,n),yn(this,Tw,g),yn(this,Hp,null)}catch(O){yn(this,Hp,O)}else g=f.data;if(n.placeholderData!==void 0&&g===void 0&&v==="pending"){let O;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))O=o.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData((R=Ke(this,Iw))==null?void 0:R.state.data,Ke(this,Iw)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),yn(this,Hp,null)}catch(T){yn(this,Hp,T)}O!==void 0&&(v="success",g=Tse(o==null?void 0:o.data,O,n),h=!0)}Ke(this,Hp)&&(p=Ke(this,Hp),g=Ke(this,Tw),m=Date.now(),v="error");const C=f.fetchStatus==="fetching",y=v==="pending",b=v==="error",S=y&&C,w=g!==void 0,E={status:v,fetchStatus:f.fetchStatus,isPending:y,isSuccess:v==="success",isError:b,isInitialLoading:S,isLoading:S,data:g,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:C,isRefetching:C&&!y,isLoadingError:b&&!w,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:b&&w,isStale:khe(t,n),refetch:this.refetch,promise:Ke(this,W2)};if(this.options.experimental_prefetchInRender){const O=_=>{E.status==="error"?_.reject(E.error):E.data!==void 0&&_.resolve(E.data)},T=()=>{const _=yn(this,W2,E.promise=Ise());O(_)},M=Ke(this,W2);switch(M.status){case"pending":t.queryHash===r.queryHash&&O(M);break;case"fulfilled":(E.status==="error"||E.data!==M.value)&&T();break;case"rejected":(E.status!=="error"||E.error!==M.reason)&&T();break}}return E}updateResult(t){const n=Ke(this,cc),r=this.createResult(Ke(this,wi),this.options);if(yn(this,W8,Ke(this,wi).state),yn(this,Ow,this.options),Ke(this,W8).data!==void 0&&yn(this,Iw,Ke(this,wi)),Wk(r,n))return;yn(this,cc,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!Ke(this,Mw).size)return!0;const l=new Set(a??Ke(this,Mw));return this.options.throwOnError&&l.add("error"),Object.keys(Ke(this,cc)).some(c=>{const u=c;return Ke(this,cc)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),gr(this,Yi,lBe).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&gr(this,Yi,Dse).call(this)}},Kc=new WeakMap,wi=new WeakMap,OI=new WeakMap,cc=new WeakMap,W8=new WeakMap,Ow=new WeakMap,W2=new WeakMap,Hp=new WeakMap,TI=new WeakMap,Tw=new WeakMap,Iw=new WeakMap,U8=new WeakMap,q8=new WeakMap,U2=new WeakMap,Mw=new WeakMap,Yi=new WeakSet,ZR=function(t){gr(this,Yi,Nse).call(this);let n=Ke(this,wi).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(pf)),n},Pse=function(){gr(this,Yi,Lse).call(this);const t=GS(this.options.staleTime,Ke(this,wi));if(EC||Ke(this,cc).isStale||!$se(t))return;const r=Jze(Ke(this,cc).dataUpdatedAt,t)+1;yn(this,U8,setTimeout(()=>{Ke(this,cc).isStale||this.updateResult()},r))},_se=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ke(this,wi)):this.options.refetchInterval)??!1},Ase=function(t){gr(this,Yi,Fse).call(this),yn(this,U2,t),!(EC||Jh(this.options.enabled,Ke(this,wi))===!1||!$se(Ke(this,U2))||Ke(this,U2)===0)&&yn(this,q8,setInterval(()=>{(this.options.refetchIntervalInBackground||Nhe.isFocused())&&gr(this,Yi,ZR).call(this)},Ke(this,U2)))},Dse=function(){gr(this,Yi,Pse).call(this),gr(this,Yi,Ase).call(this,gr(this,Yi,_se).call(this))},Lse=function(){Ke(this,U8)&&(clearTimeout(Ke(this,U8)),yn(this,U8,void 0))},Fse=function(){Ke(this,q8)&&(clearInterval(Ke(this,q8)),yn(this,q8,void 0))},Nse=function(){const t=Ke(this,Kc).getQueryCache().build(Ke(this,Kc),this.options);if(t===Ke(this,wi))return;const n=Ke(this,wi);yn(this,wi,t),yn(this,OI,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},lBe=function(t){us.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Ke(this,cc))}),Ke(this,Kc).getQueryCache().notify({query:Ke(this,wi),type:"observerResultsUpdated"})})},lNe);function Uyt(e,t){return Jh(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function wbe(e,t){return Uyt(e,t)||e.state.data!==void 0&&kse(e,t,t.refetchOnMount)}function kse(e,t,n){if(Jh(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&khe(e,t)}return!1}function xbe(e,t,n,r){return(e!==t||Jh(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&khe(e,n)}function khe(e,t){return Jh(t.enabled,e)!==!1&&e.isStaleByTime(GS(t.staleTime,e))}function qyt(e,t){return!Wk(e.getCurrentResult(),t)}function Ebe(e,t){return e.filter(n=>!t.includes(n))}function Kyt(e,t,n){const r=e.slice(0);return r[t]=n,r}var Pw,hf,K8,_w,gf,q2,II,MI,Fa,zse,Bse,WF,Hse,jse,cNe,Yyt=(cNe=class extends $y{constructor(t,n,r){super();Un(this,Fa);Un(this,Pw);Un(this,hf);Un(this,K8);Un(this,_w);Un(this,gf);Un(this,q2);Un(this,II);Un(this,MI);yn(this,Pw,t),yn(this,_w,r),yn(this,K8,[]),yn(this,gf,[]),yn(this,hf,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&Ke(this,gf).forEach(t=>{t.subscribe(n=>{gr(this,Fa,Hse).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,Ke(this,gf).forEach(t=>{t.destroy()})}setQueries(t,n,r){yn(this,K8,t),yn(this,_w,n),us.batch(()=>{const i=Ke(this,gf),o=gr(this,Fa,WF).call(this,Ke(this,K8));o.forEach(c=>c.observer.setOptions(c.defaultedQueryOptions,r));const s=o.map(c=>c.observer),a=s.map(c=>c.getCurrentResult()),l=s.some((c,u)=>c!==i[u]);i.length===s.length&&!l||(yn(this,gf,s),yn(this,hf,a),this.hasListeners()&&(Ebe(i,s).forEach(c=>{c.destroy()}),Ebe(s,i).forEach(c=>{c.subscribe(u=>{gr(this,Fa,Hse).call(this,c,u)})}),gr(this,Fa,jse).call(this)))})}getCurrentResult(){return Ke(this,hf)}getQueries(){return Ke(this,gf).map(t=>t.getCurrentQuery())}getObservers(){return Ke(this,gf)}getOptimisticResult(t,n){const i=gr(this,Fa,WF).call(this,t).map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[i,o=>gr(this,Fa,Bse).call(this,o??i,n),()=>gr(this,Fa,zse).call(this,i,t)]}},Pw=new WeakMap,hf=new WeakMap,K8=new WeakMap,_w=new WeakMap,gf=new WeakMap,q2=new WeakMap,II=new WeakMap,MI=new WeakMap,Fa=new WeakSet,zse=function(t,n){const r=gr(this,Fa,WF).call(this,n);return r.map((i,o)=>{const s=t[o];return i.defaultedQueryOptions.notifyOnChangeProps?s:i.observer.trackResult(s,a=>{r.forEach(l=>{l.observer.trackProp(a)})})})},Bse=function(t,n){return n?((!Ke(this,q2)||Ke(this,hf)!==Ke(this,MI)||n!==Ke(this,II))&&(yn(this,II,n),yn(this,MI,Ke(this,hf)),yn(this,q2,Fhe(Ke(this,q2),n(t)))),Ke(this,q2)):t},WF=function(t){const n=new Map(Ke(this,gf).map(i=>[i.options.queryHash,i])),r=[];return t.forEach(i=>{const o=Ke(this,Pw).defaultQueryOptions(i),s=n.get(o.queryHash);s?r.push({defaultedQueryOptions:o,observer:s}):r.push({defaultedQueryOptions:o,observer:new NI(Ke(this,Pw),o)})}),r},Hse=function(t,n){const r=Ke(this,gf).indexOf(t);r!==-1&&(yn(this,hf,Kyt(Ke(this,hf),r,n)),gr(this,Fa,jse).call(this))},jse=function(){var t;if(this.hasListeners()){const n=Ke(this,q2),r=gr(this,Fa,Bse).call(this,gr(this,Fa,zse).call(this,Ke(this,hf),Ke(this,K8)),(t=Ke(this,_w))==null?void 0:t.combine);n!==r&&us.batch(()=>{this.listeners.forEach(i=>{i(Ke(this,hf))})})}},cNe),cBe=class extends NI{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:qk()},t)}getOptimisticResult(e){return e.behavior=qk(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var p,m;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:s,isRefetchError:a}=r,l=(m=(p=n.fetchMeta)==null?void 0:p.fetchMore)==null?void 0:m.direction,c=s&&l==="forward",u=i&&l==="forward",f=s&&l==="backward",h=i&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Vyt(t,n.data),hasPreviousPage:Gyt(t,n.data),isFetchNextPageError:c,isFetchingNextPage:u,isFetchPreviousPageError:f,isFetchingPreviousPage:h,isRefetchError:a&&!c&&!f,isRefetching:o&&!u&&!h}}},K2,Y2,Yc,s0,R0,UF,Vse,uNe,Xyt=(uNe=class extends $y{constructor(n,r){super();Un(this,R0);Un(this,K2);Un(this,Y2);Un(this,Yc);Un(this,s0);yn(this,K2,n),this.setOptions(r),this.bindMethods(),gr(this,R0,UF).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Ke(this,K2).defaultMutationOptions(n),Wk(this.options,r)||Ke(this,K2).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ke(this,Yc),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&N4(r.mutationKey)!==N4(this.options.mutationKey)?this.reset():((i=Ke(this,Yc))==null?void 0:i.state.status)==="pending"&&Ke(this,Yc).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Ke(this,Yc))==null||n.removeObserver(this)}onMutationUpdate(n){gr(this,R0,UF).call(this),gr(this,R0,Vse).call(this,n)}getCurrentResult(){return Ke(this,Y2)}reset(){var n;(n=Ke(this,Yc))==null||n.removeObserver(this),yn(this,Yc,void 0),gr(this,R0,UF).call(this),gr(this,R0,Vse).call(this)}mutate(n,r){var i;return yn(this,s0,r),(i=Ke(this,Yc))==null||i.removeObserver(this),yn(this,Yc,Ke(this,K2).getMutationCache().build(Ke(this,K2),this.options)),Ke(this,Yc).addObserver(this),Ke(this,Yc).execute(n)}},K2=new WeakMap,Y2=new WeakMap,Yc=new WeakMap,s0=new WeakMap,R0=new WeakSet,UF=function(){var r;const n=((r=Ke(this,Yc))==null?void 0:r.state)??sBe();yn(this,Y2,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Vse=function(n){us.batch(()=>{var r,i,o,s,a,l,c,u;if(Ke(this,s0)&&this.hasListeners()){const f=Ke(this,Y2).variables,h=Ke(this,Y2).context;(n==null?void 0:n.type)==="success"?((i=(r=Ke(this,s0)).onSuccess)==null||i.call(r,n.data,f,h),(s=(o=Ke(this,s0)).onSettled)==null||s.call(o,n.data,null,f,h)):(n==null?void 0:n.type)==="error"&&((l=(a=Ke(this,s0)).onError)==null||l.call(a,n.error,f,h),(u=(c=Ke(this,s0)).onSettled)==null||u.call(c,void 0,n.error,f,h))}this.listeners.forEach(f=>{f(Ke(this,Y2))})})},uNe),uBe=d.createContext(void 0),Vg=e=>{const t=d.useContext(uBe);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Qyt=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),H.jsx(uBe.Provider,{value:e,children:t})),dBe=d.createContext(!1),fBe=()=>d.useContext(dBe);dBe.Provider;function Zyt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Jyt=d.createContext(Zyt()),hBe=()=>d.useContext(Jyt);function gBe(e,t){return typeof e=="function"?e(...t):!!e}function Kk(){}var pBe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},mBe=e=>{d.useEffect(()=>{e.clearReset()},[e])},vBe=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&gBe(n,[e.error,r]),zhe=(e,t)=>t.state.data===void 0,CBe=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},yBe=(e,t)=>e.isLoading&&e.isFetching&&!t,Gse=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Yk=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function bBe({queries:e,...t},n){const r=Vg(n),i=fBe(),o=hBe(),s=d.useMemo(()=>e.map(p=>{const m=r.defaultQueryOptions(p);return m._optimisticResults=i?"isRestoring":"optimistic",m}),[e,r,i]);s.forEach(p=>{CBe(p),pBe(p,o)}),mBe(o);const[a]=d.useState(()=>new Yyt(r,s,t)),[l,c,u]=a.getOptimisticResult(s,t.combine);d.useSyncExternalStore(d.useCallback(p=>i?Kk:a.subscribe(us.batchCalls(p)),[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),d.useEffect(()=>{a.setQueries(s,t,{listeners:!1})},[s,t,a]);const h=l.some((p,m)=>Gse(s[m],p))?l.flatMap((p,m)=>{const v=s[m];if(v){const C=new NI(r,v);if(Gse(v,p))return Yk(v,C,o);yBe(p,i)&&Yk(v,C,o)}return[]}):[];if(h.length>0)throw Promise.all(h);const g=l.find((p,m)=>{const v=s[m];return v&&vBe({result:p,errorResetBoundary:o,throwOnError:v.throwOnError,query:r.getQueryCache().get(v.queryHash)})});if(g!=null&&g.error)throw g.error;return c(u())}function cj(e,t,n){var u,f,h,g,p;const r=Vg(n),i=fBe(),o=hBe(),s=r.defaultQueryOptions(e);(f=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||f.call(u,s),s._optimisticResults=i?"isRestoring":"optimistic",CBe(s),pBe(s,o),mBe(o);const a=!r.getQueryCache().get(s.queryHash),[l]=d.useState(()=>new t(r,s)),c=l.getOptimisticResult(s);if(d.useSyncExternalStore(d.useCallback(m=>{const v=i?Kk:l.subscribe(us.batchCalls(m));return l.updateResult(),v},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d.useEffect(()=>{l.setOptions(s,{listeners:!1})},[s,l]),Gse(s,c))throw Yk(s,l,o);if(vBe({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw c.error;if((g=(h=r.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||g.call(h,s,c),s.experimental_prefetchInRender&&!EC&&yBe(c,i)){const m=a?Yk(s,l,o):(p=r.getQueryCache().get(s.queryHash))==null?void 0:p.promise;m==null||m.catch(Kk).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}function ebt(e,t){return cj(e,NI,t)}function tbt(e,t){return cj({...e,enabled:!0,suspense:!0,throwOnError:zhe,placeholderData:void 0},NI,t)}function nbt(e,t){return cj({...e,enabled:!0,suspense:!0,throwOnError:zhe},cBe,t)}function rbt(e,t){return bBe({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:zhe,enabled:!0,placeholderData:void 0}))},t)}function ibt(e,t){const n=Vg(t),[r]=d.useState(()=>new Xyt(n,e));d.useEffect(()=>{r.setOptions(e)},[r,e]);const i=d.useSyncExternalStore(d.useCallback(s=>r.subscribe(us.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=d.useCallback((s,a)=>{r.mutate(s,a).catch(Kk)},[r]);if(i.error&&gBe(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function obt(e,t){return cj(e,cBe,t)}function Oy(e){const t={subscribe(n){let r=null,i=!1,o=!1,s=!1;function a(){if(r===null){s=!0;return}o||(o=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(l){var c;i||(c=n.next)==null||c.call(n,l)},error(l){var c;i||(i=!0,(c=n.error)==null||c.call(n,l),a())},complete(){var l;i||(i=!0,(l=n.complete)==null||l.call(n),a())}}),s&&a(),{unsubscribe:a}},pipe(...n){return n.reduce(sbt,t)}};return t}function sbt(e,t){return t(e)}function abt(e){const t=new AbortController;return new Promise((r,i)=>{let o=!1;function s(){o||(o=!0,a.unsubscribe())}t.signal.addEventListener("abort",()=>{i(t.signal.reason)});const a=e.subscribe({next(l){o=!0,r(l),s()},error(l){i(l)},complete(){t.abort(),s()}})})}function lbt(e){return t=>{let n=0,r=null;const i=[];function o(){r||(r=t.subscribe({next(a){var l;for(const c of i)(l=c.next)==null||l.call(c,a)},error(a){var l;for(const c of i)(l=c.error)==null||l.call(c,a)},complete(){var a;for(const l of i)(a=l.complete)==null||a.call(l)}}))}function s(){if(n===0&&r){const a=r;r=null,a.unsubscribe()}}return Oy(a=>(n++,i.push(a),o(),{unsubscribe(){n--,s();const l=i.findIndex(c=>c===a);l>-1&&i.splice(l,1)}}))}}function cbt(e){return t=>Oy(n=>t.subscribe({next(r){var i;(i=e.next)==null||i.call(e,r),n.next(r)},error(r){var i;(i=e.error)==null||i.call(e,r),n.error(r)},complete(){var r;(r=e.complete)==null||r.call(e),n.complete()}}))}function SBe(e){return Oy(t=>{function n(i=0,o=e.op){const s=e.links[i];if(!s)throw new Error("No more links to execute - did you forget to add an ending link?");return s({op:o,next(l){return n(i+1,l)}})}return n().subscribe(t)})}var Rbe,$be;const wBe=()=>{},Obe=e=>{Object.freeze&&Object.freeze(e)};function xBe(e,t,n){const r=t.join(".");return(Rbe=n)[$be=r]??(Rbe[$be]=new Proxy(wBe,{get(i,o){if(!(typeof o!="string"||o==="then"))return xBe(e,[...t,o],n)},apply(i,o,s){const a=t[t.length-1];let l={args:s,path:t};return a==="call"?l={args:s.length>=2?[s[1]]:[],path:t.slice(0,-1)}:a==="apply"&&(l={args:s.length>=2?s[1]:[],path:t.slice(0,-1)}),Obe(l.args),Obe(l.path),e(l)}})),n[r]}const uj=e=>xBe(e,[],Object.create(null)),Bhe=e=>new Proxy(wBe,{get(t,n){if(!(typeof n!="string"||n==="then"))return e(n)}});function RC(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const ubt=typeof Symbol=="function"&&!!Symbol.asyncIterator;function dbt(e){return ubt&&RC(e)&&Symbol.asyncIterator in e}function fbt(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:{...e,error:r}}}return{ok:!0,result:{...e.result,...(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)}}}}class ZJ extends Error{constructor(){super("Unable to transform response from server")}}function EBe(e,t){let n;try{n=fbt(e,t)}catch{throw new ZJ}if(!n.ok&&(!RC(n.error.error)||typeof n.error.error.code!="number"))throw new ZJ;if(n.ok&&!RC(n.result))throw new ZJ;return n}var dNe,fNe,hNe,gNe,pNe,mNe;typeof window>"u"||"Deno"in window||((fNe=(dNe=globalThis.process)==null?void 0:dNe.env)==null?void 0:fNe.NODE_ENV)==="test"||(gNe=(hNe=globalThis.process)==null?void 0:hNe.env)!=null&&gNe.JEST_WORKER_ID||(mNe=(pNe=globalThis.process)==null?void 0:pNe.env)!=null&&mNe.VITEST_WORKER_ID;function hbt(e){return e instanceof yg||e instanceof Error&&e.name==="TRPCClientError"}function gbt(e){return RC(e)&&RC(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function pbt(e,t){return typeof e=="string"?e:RC(e)&&typeof e.message=="string"?e.message:t}class yg extends Error{static from(t,n={}){const r=t;return hbt(r)?(n.meta&&(r.meta={...r.meta,...n.meta}),r):gbt(r)?new yg(r.error.message,{...n,result:r}):new yg(pbt(r,"Unknown error"),{...n,cause:r})}constructor(t,n){var i,o;const r=n==null?void 0:n.cause;super(t,{cause:r}),this.meta=n==null?void 0:n.meta,this.cause=r,this.shape=(i=n==null?void 0:n.result)==null?void 0:i.error,this.data=(o=n==null?void 0:n.result)==null?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,yg.prototype)}}class RBe{$request(t){return SBe({links:this.links,op:{...t,context:t.context??{},id:++this.requestId}}).pipe(lbt())}async requestAsPromise(t){try{const n=this.$request(t);return(await abt(n)).result.data}catch(n){throw yg.from(n)}}query(t,n,r){return this.requestAsPromise({type:"query",path:t,input:n,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}mutation(t,n,r){return this.requestAsPromise({type:"mutation",path:t,input:n,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}subscription(t,n,r){return this.$request({type:"subscription",path:t,input:n,context:r==null?void 0:r.context,signal:null}).subscribe({next(o){var s,a,l;o.result.type==="started"?(s=r.onStarted)==null||s.call(r,{context:o.context}):o.result.type==="stopped"?(a=r.onStopped)==null||a.call(r):(l=r.onData)==null||l.call(r,o.result.data)},error(o){var s;(s=r.onError)==null||s.call(r,o)},complete(){var o;(o=r.onComplete)==null||o.call(r)}})}constructor(t){this.requestId=0,this.runtime={},this.links=t.links.map(n=>n(this.runtime))}}function mbt(e){return new RBe(e)}const vbt={query:"query",mutate:"mutation",subscribe:"subscription"},Cbt=e=>vbt[e];function ybt(e){const t=uj(({path:n,args:r})=>{const i=[...n],o=Cbt(i.pop()),s=i.join(".");return e[o](s,...r)});return Bhe(n=>e.hasOwnProperty(n)?e[n]:n==="__untypedClient"?e:t[n])}function bbt(e){return e.__untypedClient}const Tbe=e=>typeof e=="function";function Sbt(e){if(e)return e;if(typeof window<"u"&&Tbe(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Tbe(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}const Ibe=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Mbe(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function i(a){var u,f;const l=[[]];let c=0;for(;;){const h=a[c];if(!h)break;const g=l[l.length-1];if(h.aborted){(u=h.reject)==null||u.call(h,new Error("Aborted")),c++;continue}if(e.validate(g.concat(h).map(m=>m.key))){g.push(h),c++;continue}if(g.length===0){(f=h.reject)==null||f.call(h,new Error("Input is too big for a single dispatch")),c++;continue}l.push([])}return l}function o(){const a=i(t);r();for(const l of a){if(!l.length)continue;const c={items:l};for(const f of l)f.batch=c;e.fetch(c.items.map(f=>f.key)).then(async f=>{var h;await Promise.all(f.map(async(g,p)=>{var v,C;const m=c.items[p];try{const y=await Promise.resolve(g);(v=m.resolve)==null||v.call(m,y)}catch(y){(C=m.reject)==null||C.call(m,y)}m.batch=null,m.reject=null,m.resolve=null}));for(const g of c.items)(h=g.reject)==null||h.call(g,new Error("Missing result")),g.batch=null}).catch(f=>{var h;for(const g of c.items)(h=g.reject)==null||h.call(g,f),g.batch=null})}}function s(a){const l={aborted:!1,key:a,batch:null,resolve:Ibe,reject:Ibe},c=new Promise((u,f)=>{l.reject=f,l.resolve=u,t||(t=[]),t.push(l)});return n||(n=setTimeout(o)),c}return{load:s}}function $Be(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}function wbt(e){return{url:e.url.toString(),fetch:e.fetch,transformer:$Be(e.transformer),methodOverride:e.methodOverride}}function xbt(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const Ebt={query:"GET",mutation:"POST",subscription:"PATCH"};function OBe(e){return"input"in e?e.transformer.input.serialize(e.input):xbt(e.inputs.map(t=>e.transformer.input.serialize(t)))}const TBe=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const i=[];if(t[1]&&i.push(t[1]),"inputs"in e&&i.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=OBe(e);o!==void 0&&e.methodOverride!=="POST"&&i.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return i.length&&(r+="?"+i.join("&")),r},Rbt=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=OBe(e);return t!==void 0?JSON.stringify(t):void 0},$bt=e=>Tbt({...e,contentTypeHeader:"application/json",getUrl:TBe,getBody:Rbt});async function Obt(e){var s;(s=e.signal)==null||s.throwIfAborted();const t=e.getUrl(e),n=e.getBody(e),{type:r}=e,i=await(async()=>{const a=await e.headers();return Symbol.iterator in a?Object.fromEntries(a):a})(),o={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0,...i};return Sbt(e.fetch)(t,{method:e.methodOverride??Ebt[r],signal:e.signal,body:n,headers:o})}async function Tbt(e){const t={},n=await Obt(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}function Ibt(e){const t=new AbortController;if(e.some(o=>!o.signal))return t;const n=e.length;let r=0;const i=()=>{++r===n&&t.abort()};for(const o of e){const s=o.signal;s.aborted?i():s.addEventListener("abort",i,{once:!0})}return t}function Pbe(e){const t=wbt(e),n=e.maxURLLength??1/0;return()=>{const r=a=>({validate(l){if(n===1/0)return!0;const c=l.map(h=>h.path).join(","),u=l.map(h=>h.input);return TBe({...t,type:a,path:c,inputs:u,signal:null}).length<=n},async fetch(l){const c=l.map(m=>m.path).join(","),u=l.map(m=>m.input),f=Ibt(l),h=await $bt({...t,path:c,inputs:u,type:a,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:l}):e.headers:{}},signal:f.signal});return(Array.isArray(h.json)?h.json:l.map(()=>h.json)).map(m=>({meta:h.meta,json:m}))}}),i=Mbe(r("query")),o=Mbe(r("mutation")),s={query:i,mutation:o};return({op:a})=>Oy(l=>{/* istanbul ignore if -- @preserve */if(a.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const u=s[a.type].load(a);let f;return u.then(h=>{f=h;const g=EBe(h.json,t.transformer.output);if(!g.ok){l.error(yg.from(g.error,{meta:h.meta}));return}l.next({context:h.meta,result:g.result}),l.complete()}).catch(h=>{l.error(yg.from(h,{meta:f==null?void 0:f.meta}))}),()=>{}})}}function Mbt(e){return typeof FormData>"u"?!1:e instanceof FormData}const JJ={css:{query:["72e3ff","3fb0d8"],mutation:["c5a3fc","904dfc"],subscription:["ff49e1","d83fbe"]},ansi:{regular:{query:["\x1B[30;46m","\x1B[97;46m"],mutation:["\x1B[30;45m","\x1B[97;45m"],subscription:["\x1B[30;42m","\x1B[97;42m"]},bold:{query:["\x1B[1;30;46m","\x1B[1;97;46m"],mutation:["\x1B[1;30;45m","\x1B[1;97;45m"],subscription:["\x1B[1;30;42m","\x1B[1;97;42m"]}}};function Pbt(e){const{direction:t,type:n,withContext:r,path:i,id:o,input:s}=e,a=[],l=[];if(e.colorMode==="none")a.push(t==="up"?">>":"<<",n,`#${o}`,i);else if(e.colorMode==="ansi"){const[c,u]=JJ.ansi.regular[n],[f,h]=JJ.ansi.bold[n];a.push(t==="up"?c:u,t==="up"?">>":"<<",n,t==="up"?f:h,`#${o}`,i,"\x1B[0m")}else{const[c,u]=JJ.css[n],f=`
|
||
background-color: #${t==="up"?c:u};
|
||
color: ${t==="up"?"black":"white"};
|
||
padding: 2px;
|
||
`;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:_,method:O,params:{input:T,path:M}};return a[_]={connection:null,type:O,callbacks:R,op:E},s.push(F),g(),()=>{var k,L;const D=(k=a[_])==null?void 0:k.callbacks;delete a[_],s=s.filter(I=>I.id!==_),(L=D==null?void 0:D.complete)==null||L.call(D),(h==null?void 0:h.state)==="open"&&E.type==="subscription"&&(s.push({id:_,method:"subscription.stop"}),g()),S()}}return{close:()=>{l=0;for(const E of Object.values(a))E.type==="subscription"?E.callbacks.complete():E.connection||E.callbacks.error(yg.from(new Error("Closed before connection was established")));h&&y(h),clearTimeout(c),c=void 0,h=null},request:x,get connection(){return h},reconnect:v}}class Hhe extends Error{constructor(t){super(t),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,Hhe.prototype)}}function kbt(e){const t=$Be(e.transformer);return()=>{const{client:n}=e;return({op:r})=>Oy(i=>{const{type:o,path:s,id:a,context:l}=r,c=t.input.serialize(r.input),u=n.request({type:o,path:s,input:c,id:a,context:l,signal:null},{error(f){i.error(f),u()},complete(){i.complete()},next(f){const h=EBe(f,t.output);if(!h.ok){i.error(yg.from(h.error));return}i.next({result:h.result}),r.type!=="subscription"&&(u(),i.complete())}});return()=>{u()}})}}function F2(e,t,n){const r=e.flatMap(i=>i.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&RC(t)&&("direction"in t||"cursor"in t)){const{cursor:i,direction:o,...s}=t;return[r,{input:s,type:"infinite"}]}return[r,{...typeof t<"u"&&t!==Q8&&{input:t},...n&&n!=="any"&&{type:n}}]}function bg(e,...t){const[n,r]=t,i=e._def().path;return F2(i,n,r??"any")}function zbt(e){return uj(({path:t,args:n})=>{const r=[...t],i=r.pop();if(i==="useMutation")return e[i](r,...n);if(i==="_def")return{path:r};const[o,...s]=n,a=s[0]||{};return e[i](r,o,a)})}const Bbt=["client","ssrContext","ssrState","abortOnUnmount"];var vNe;const Hbt=(vNe=d.createContext)==null?void 0:vNe.call(d,null),jbt=e=>{switch(e){case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Vbt(e){return uj(t=>{const n=[...t.path],r=n.pop(),i=[...t.args],o=i.shift(),s=jbt(r),a=F2(n,o,s);return{fetch:()=>e.fetchQuery(a,...i),fetchInfinite:()=>e.fetchInfiniteQuery(a,i[0]),prefetch:()=>e.prefetchQuery(a,...i),prefetchInfinite:()=>e.prefetchInfiniteQuery(a,i[0]),ensureData:()=>e.ensureQueryData(a,...i),invalidate:()=>e.invalidateQueries(a,...i),reset:()=>e.resetQueries(a,...i),refetch:()=>e.refetchQueries(a,...i),cancel:()=>e.cancelQuery(a,...i),setData:()=>{e.setQueryData(a,i[0],i[1])},setQueriesData:()=>e.setQueriesData(a,i[0],i[1],i[2]),setInfiniteData:()=>{e.setInfiniteQueryData(a,i[0],i[1])},getData:()=>e.getQueryData(a),getInfiniteData:()=>e.getInfiniteQueryData(a)}[r]()})}function Gbt(e){const t=ybt(e.client),n=Vbt(e);return Bhe(r=>{const i=r;return i==="client"?t:Bbt.includes(i)?e[i]:n[r]})}function Gp(e,t,n){var o;const r=e[0];let i=(o=e[1])==null?void 0:o.input;return n&&(i={...i??{},...n.pageParam?{cursor:n.pageParam}:{},direction:n.direction}),[r.join("."),i,t==null?void 0:t.trpc]}function GE(e){const t=e.path.join(".");return d.useMemo(()=>({path:t}),[t])}function Wbt(e){const{client:t,queryClient:n}=e,r=t instanceof RBe?t:bbt(t);return{fetchQuery:(i,o)=>n.fetchQuery({...o,queryKey:i,queryFn:()=>r.query(...Gp(i,o))}),fetchInfiniteQuery:(i,o)=>n.fetchInfiniteQuery({...o,queryKey:i,queryFn:({pageParam:s,direction:a})=>r.query(...Gp(i,o,{pageParam:s,direction:a})),initialPageParam:(o==null?void 0:o.initialCursor)??null}),prefetchQuery:(i,o)=>n.prefetchQuery({...o,queryKey:i,queryFn:()=>r.query(...Gp(i,o))}),prefetchInfiniteQuery:(i,o)=>n.prefetchInfiniteQuery({...o,queryKey:i,queryFn:({pageParam:s,direction:a})=>r.query(...Gp(i,o,{pageParam:s,direction:a})),initialPageParam:(o==null?void 0:o.initialCursor)??null}),ensureQueryData:(i,o)=>n.ensureQueryData({...o,queryKey:i,queryFn:()=>r.query(...Gp(i,o))}),invalidateQueries:(i,o,s)=>n.invalidateQueries({...o,queryKey:i},s),resetQueries:(i,o,s)=>n.resetQueries({...o,queryKey:i},s),refetchQueries:(i,o,s)=>n.refetchQueries({...o,queryKey:i},s),cancelQuery:(i,o)=>n.cancelQueries({queryKey:i},o),setQueryData:(i,o,s)=>n.setQueryData(i,o,s),setQueriesData:(i,o,s,a)=>n.setQueriesData({...o,queryKey:i},s,a),getQueryData:i=>n.getQueryData(i),setInfiniteQueryData:(i,o,s)=>n.setQueryData(i,o,s),getInfiniteQueryData:i=>n.getQueryData(i)}}function Lbe(e){return uj(t=>{const n=t.path,r=n.join("."),[i,o]=t.args;return{queryKey:F2(n,i,"query"),queryFn:()=>e.query(r,i,o==null?void 0:o.trpc),...o}})}function Ubt(e){const t=m=>m.originalFn(),n=Hbt,r=m=>mbt(m),i=m=>{const{abortOnUnmount:v=!1,client:C,queryClient:y,ssrContext:b}=m,[S,w]=d.useState(m.ssrState??!1),x=d.useMemo(()=>Wbt({client:C,queryClient:y}),[C,y]),E=d.useMemo(()=>({abortOnUnmount:v,queryClient:y,client:C,ssrContext:b??null,ssrState:S,...x}),[v,C,x,y,b,S]);return d.useEffect(()=>{w(R=>R?"mounted":!1)},[]),d.createElement(n.Provider,{value:E},m.children)};function o(){const m=d.useContext(n);if(!m)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return m}function s(m,v){var b;const{queryClient:C,ssrState:y}=o();return y&&y!=="mounted"&&((b=C.getQueryCache().find({queryKey:m}))==null?void 0:b.state.status)==="error"?{retryOnMount:!1,...v}:v}function a(m,v,C){var D,k;const y=o(),{abortOnUnmount:b,client:S,ssrState:w,queryClient:x,prefetchQuery:E}=y,R=F2(m,v,"query"),O=x.getQueryDefaults(R),T=v===Q8;typeof window>"u"&&w==="prepass"&&((D=C==null?void 0:C.trpc)==null?void 0:D.ssr)!==!1&&((C==null?void 0:C.enabled)??(O==null?void 0:O.enabled))!==!1&&!T&&!x.getQueryCache().find({queryKey:R})&&E(R,C);const M=s(R,{...O,...C}),_=((k=C==null?void 0:C.trpc)==null?void 0:k.abortOnUnmount)??(e==null?void 0:e.abortOnUnmount)??b,F=ebt({...M,queryKey:R,queryFn:T?v:async L=>{const I={...M,trpc:{...M==null?void 0:M.trpc,..._?{signal:L.signal}:{signal:null}}},A=await S.query(...Gp(R,I));if(dbt(A)){const B=x.getQueryCache().build(L.queryKey,{queryKey:R});B.setState({data:[],status:"success"});const z=[];for await(const j of A)z.push(j),B.setState({data:[...z]});return z}return A}},x);return F.trpc=GE({path:m}),F}function l(m,v,C){var x;const y=o(),b=F2(m,v,"query"),S=((x=C==null?void 0:C.trpc)==null?void 0:x.abortOnUnmount)??(e==null?void 0:e.abortOnUnmount)??y.abortOnUnmount,w=tbt({...C,queryKey:b,queryFn:E=>{const R={trpc:{...S?{signal:E.signal}:{signal:null}}};return y.client.query(...Gp(b,R))}},y.queryClient);return w.trpc=GE({path:m}),[w.data,w]}function c(m,v){const{client:C}=o(),y=Vg(),b=[m],S=y.defaultMutationOptions(y.getMutationDefaults(b)),w=ibt({...v,mutationKey:b,mutationFn:x=>C.mutation(...Gp([m,{input:x}],v)),onSuccess(...x){return t({originalFn:()=>{var R,O;return((R=v==null?void 0:v.onSuccess)==null?void 0:R.call(v,...x))??((O=S==null?void 0:S.onSuccess)==null?void 0:O.call(S,...x))},queryClient:y,meta:(v==null?void 0:v.meta)??(S==null?void 0:S.meta)??{}})}},y);return w.trpc=GE({path:m}),w}/* istanbul ignore next -- @preserve */function u(m,v,C){const y=(C==null?void 0:C.enabled)??v!==Q8,b=N4(F2(m,v,"any")),{client:S}=o(),w=d.useRef(C);w.current=C,d.useEffect(()=>{if(!y)return;let x=!1;const E=S.subscription(m.join("."),v??void 0,{onStarted:()=>{var R,O;x||(O=(R=w.current).onStarted)==null||O.call(R)},onData:R=>{x||w.current.onData(R)},onError:R=>{var O,T;x||(T=(O=w.current).onError)==null||T.call(O,R)}});return()=>{x=!0,E.unsubscribe()}},[b,y])}function f(m,v,C){var F,D;const{client:y,ssrState:b,prefetchInfiniteQuery:S,queryClient:w,abortOnUnmount:x}=o(),E=F2(m,v,"infinite"),R=w.getQueryDefaults(E),O=v===Q8;typeof window>"u"&&b==="prepass"&&((F=C==null?void 0:C.trpc)==null?void 0:F.ssr)!==!1&&((C==null?void 0:C.enabled)??(R==null?void 0:R.enabled))!==!1&&!O&&!w.getQueryCache().find({queryKey:E})&&S(E,{...R,...C});const T=s(E,{...R,...C}),M=((D=C==null?void 0:C.trpc)==null?void 0:D.abortOnUnmount)??x,_=obt({...T,initialPageParam:C.initialCursor??null,persister:C.persister,queryKey:E,queryFn:O?v:k=>{const L={...T,trpc:{...T==null?void 0:T.trpc,...M?{signal:k.signal}:{signal:null}}};return y.query(...Gp(E,L,{pageParam:k.pageParam??C.initialCursor,direction:k.direction}))}},w);return _.trpc=GE({path:m}),_}function h(m,v,C){var R;const y=o(),b=F2(m,v,"infinite"),S=y.queryClient.getQueryDefaults(b),w=s(b,{...S,...C}),x=((R=C==null?void 0:C.trpc)==null?void 0:R.abortOnUnmount)??y.abortOnUnmount,E=nbt({...C,initialPageParam:C.initialCursor??null,queryKey:b,queryFn:O=>{const T={...w,trpc:{...w==null?void 0:w.trpc,...x?{signal:O.signal}:{}}};return y.client.query(...Gp(b,T,{pageParam:O.pageParam??C.initialCursor,direction:O.direction}))}},y.queryClient);return E.trpc=GE({path:m}),[E.data,E]}return{Provider:i,createClient:r,useContext:o,useUtils:o,useQuery:a,useSuspenseQuery:l,useQueries:m=>{var x;const{ssrState:v,queryClient:C,prefetchQuery:y,client:b}=o(),S=Lbe(b),w=m(S);if(typeof window>"u"&&v==="prepass")for(const E of w){const R=E;((x=R.trpc)==null?void 0:x.ssr)!==!1&&!C.getQueryCache().find({queryKey:R.queryKey})&&y(R.queryKey,R)}return bBe({queries:w.map(E=>({...E,queryKey:E.queryKey}))},C)},useSuspenseQueries:m=>{const{queryClient:v,client:C}=o(),y=Lbe(C),b=m(y),S=rbt({queries:b.map(w=>({...w,queryKey:w.queryKey}))},v);return[S.map(w=>w.data),S]},useMutation:c,useSubscription:u,useInfiniteQuery:f,useSuspenseInfiniteQuery:h}}function qbt(e){const t=zbt(e);return Bhe(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return d.useMemo(()=>Gbt(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function Kbt(e){const t=Ubt(e);return qbt(t)}var Mi;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const s of i)o[s]=s;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),s={};for(const a of o)s[a]=i[a];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&o.push(s);return o},e.find=(i,o)=>{for(const s of i)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(Mi||(Mi={}));var Wse;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wse||(Wse={}));const An=Mi.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),e0=e=>{switch(typeof e){case"undefined":return An.undefined;case"string":return An.string;case"number":return isNaN(e)?An.nan:An.number;case"boolean":return An.boolean;case"function":return An.function;case"bigint":return An.bigint;case"symbol":return An.symbol;case"object":return Array.isArray(e)?An.array:e===null?An.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?An.promise:typeof Map<"u"&&e instanceof Map?An.map:typeof Set<"u"&&e instanceof Set?An.set:typeof Date<"u"&&e instanceof Date?An.date:An.object;default:return An.unknown}},un=Mi.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Ybt=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class cd extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){const c=s.path[l];l===s.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(s))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return i(this),r}static assert(t){if(!(t instanceof cd))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Mi.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}cd.create=e=>new cd(e);const Gw=(e,t)=>{let n;switch(e.code){case un.invalid_type:e.received===An.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case un.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Mi.jsonStringifyReplacer)}`;break;case un.unrecognized_keys:n=`Unrecognized key(s) in object: ${Mi.joinValues(e.keys,", ")}`;break;case un.invalid_union:n="Invalid input";break;case un.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Mi.joinValues(e.options)}`;break;case un.invalid_enum_value:n=`Invalid enum value. Expected ${Mi.joinValues(e.options)}, received '${e.received}'`;break;case un.invalid_arguments:n="Invalid function arguments";break;case un.invalid_return_type:n="Invalid function return type";break;case un.invalid_date:n="Invalid date";break;case un.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Mi.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case un.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case un.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case un.custom:n="Invalid input";break;case un.invalid_intersection_types:n="Intersection results could not be merged";break;case un.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case un.not_finite:n="Number must be finite";break;default:n=t.defaultError,Mi.assertNever(e)}return{message:n}};let IBe=Gw;function Xbt(e){IBe=e}function Xk(){return IBe}const Qk=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],s={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(s,{data:t,defaultError:a}).message;return{...i,path:o,message:a}},Qbt=[];function On(e,t){const n=Xk(),r=Qk({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Gw?void 0:Gw].filter(i=>!!i)});e.common.issues.push(r)}class ql{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return Or;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,s=await i.value;r.push({key:o,value:s})}return ql.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:s}=i;if(o.status==="aborted"||s.status==="aborted")return Or;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[o.value]=s.value)}return{status:t.value,value:r}}}const Or=Object.freeze({status:"aborted"}),bS=e=>({status:"dirty",value:e}),Cc=e=>({status:"valid",value:e}),Use=e=>e.status==="aborted",qse=e=>e.status==="dirty",$C=e=>e.status==="valid",qO=e=>typeof Promise<"u"&&e instanceof Promise;function Zk(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function MBe(e,t,n,r,i){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Yn;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Yn||(Yn={}));var JR,e$;class bm{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Fbe=(e,t)=>{if($C(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new cd(e.common.issues);return this._error=n,this._error}}};function jr(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,a)=>{var l,c;const{message:u}=e;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:i}}class Zr{get description(){return this._def.description}_getType(t){return e0(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:e0(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ql,ctx:{common:t.parent.common,data:t.data,parsedType:e0(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(qO(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:e0(t)},o=this._parseSync({data:t,path:i.path,parent:i});return Fbe(i,o)}"~validate"(t){var n,r;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:e0(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:i});return $C(o)?{value:o.value}:{issues:i.common.issues}}catch(o){!((r=(n=o==null?void 0:o.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:i}).then(o=>$C(o)?{value:o.value}:{issues:i.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:e0(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(qO(i)?i:Promise.resolve(i));return Fbe(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const s=t(i),a=()=>o.addIssue({code:un.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new _g({schema:this,typeName:Er.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return om.create(this,this._def)}nullable(){return H4.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Sg.create(this)}promise(){return Uw.create(this,this._def)}or(t){return QO.create([this,t],this._def)}and(t){return ZO.create(this,t,this._def)}transform(t){return new _g({...jr(this._def),schema:this,typeName:Er.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new rT({...jr(this._def),innerType:this,defaultValue:n,typeName:Er.ZodDefault})}brand(){return new jhe({typeName:Er.ZodBranded,type:this,...jr(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new iT({...jr(this._def),innerType:this,catchValue:n,typeName:Er.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return kI.create(this,t)}readonly(){return oT.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zbt=/^c[^\s-]{8,}$/i,Jbt=/^[0-9a-z]+$/,e5t=/^[0-9A-HJKMNP-TV-Z]{26}$/i,t5t=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,n5t=/^[a-z0-9_-]{21}$/i,r5t=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,i5t=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,o5t=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,s5t="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let eee;const a5t=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,l5t=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,c5t=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,u5t=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,d5t=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,f5t=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,PBe="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",h5t=new RegExp(`^${PBe}$`);function _Be(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function g5t(e){return new RegExp(`^${_Be(e)}$`)}function ABe(e){let t=`${PBe}T${_Be(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function p5t(e,t){return!!((t==="v4"||!t)&&a5t.test(e)||(t==="v6"||!t)&&c5t.test(e))}function m5t(e,t){if(!r5t.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||!i.typ||!i.alg||t&&i.alg!==t)}catch{return!1}}function v5t(e,t){return!!((t==="v4"||!t)&&l5t.test(e)||(t==="v6"||!t)&&u5t.test(e))}class fg extends Zr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==An.string){const o=this._getOrReturnCtx(t);return On(o,{code:un.invalid_type,expected:An.string,received:o.parsedType}),Or}const r=new ql;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),On(i,{code:un.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),On(i,{code:un.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,a=t.data.length<o.value;(s||a)&&(i=this._getOrReturnCtx(t,i),s?On(i,{code:un.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&On(i,{code:un.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")o5t.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"email",code:un.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")eee||(eee=new RegExp(s5t,"u")),eee.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"emoji",code:un.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")t5t.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"uuid",code:un.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")n5t.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"nanoid",code:un.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Zbt.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"cuid",code:un.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Jbt.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"cuid2",code:un.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")e5t.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"ulid",code:un.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),On(i,{validation:"url",code:un.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"regex",code:un.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),On(i,{code:un.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),On(i,{code:un.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),On(i,{code:un.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?ABe(o).test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{code:un.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?h5t.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{code:un.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?g5t(o).test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{code:un.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?i5t.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"duration",code:un.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?p5t(t.data,o.version)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"ip",code:un.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?m5t(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"jwt",code:un.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?v5t(t.data,o.version)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"cidr",code:un.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?d5t.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"base64",code:un.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?f5t.test(t.data)||(i=this._getOrReturnCtx(t,i),On(i,{validation:"base64url",code:un.invalid_string,message:o.message}),r.dirty()):Mi.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:un.invalid_string,...Yn.errToObj(r)})}_addCheck(t){return new fg({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Yn.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Yn.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Yn.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Yn.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Yn.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Yn.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Yn.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Yn.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Yn.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Yn.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Yn.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Yn.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Yn.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...Yn.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Yn.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Yn.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Yn.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Yn.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Yn.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Yn.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Yn.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Yn.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Yn.errToObj(n)})}nonempty(t){return this.min(1,Yn.errToObj(t))}trim(){return new fg({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new fg({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new fg({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}fg.create=e=>{var t;return new fg({checks:[],typeName:Er.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...jr(e)})};function C5t(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return o%s/Math.pow(10,i)}class k4 extends Zr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==An.number){const o=this._getOrReturnCtx(t);return On(o,{code:un.invalid_type,expected:An.number,received:o.parsedType}),Or}let r;const i=new ql;for(const o of this._def.checks)o.kind==="int"?Mi.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),On(r,{code:un.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),On(r,{code:un.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),On(r,{code:un.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?C5t(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),On(r,{code:un.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),On(r,{code:un.not_finite,message:o.message}),i.dirty()):Mi.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Yn.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Yn.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Yn.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Yn.toString(n))}setLimit(t,n,r,i){return new k4({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Yn.toString(i)}]})}_addCheck(t){return new k4({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Yn.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Yn.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Yn.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Yn.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Yn.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Yn.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Yn.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Yn.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Yn.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Mi.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}k4.create=e=>new k4({checks:[],typeName:Er.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...jr(e)});class z4 extends Zr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==An.bigint)return this._getInvalidInput(t);let r;const i=new ql;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),On(r,{code:un.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),On(r,{code:un.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),On(r,{code:un.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):Mi.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return On(n,{code:un.invalid_type,expected:An.bigint,received:n.parsedType}),Or}gte(t,n){return this.setLimit("min",t,!0,Yn.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Yn.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Yn.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Yn.toString(n))}setLimit(t,n,r,i){return new z4({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Yn.toString(i)}]})}_addCheck(t){return new z4({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Yn.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Yn.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Yn.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Yn.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Yn.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}z4.create=e=>{var t;return new z4({checks:[],typeName:Er.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...jr(e)})};class KO extends Zr{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==An.boolean){const r=this._getOrReturnCtx(t);return On(r,{code:un.invalid_type,expected:An.boolean,received:r.parsedType}),Or}return Cc(t.data)}}KO.create=e=>new KO({typeName:Er.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...jr(e)});class OC extends Zr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==An.date){const o=this._getOrReturnCtx(t);return On(o,{code:un.invalid_type,expected:An.date,received:o.parsedType}),Or}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return On(o,{code:un.invalid_date}),Or}const r=new ql;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),On(i,{code:un.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),On(i,{code:un.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Mi.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new OC({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Yn.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Yn.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}OC.create=e=>new OC({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Er.ZodDate,...jr(e)});class Jk extends Zr{_parse(t){if(this._getType(t)!==An.symbol){const r=this._getOrReturnCtx(t);return On(r,{code:un.invalid_type,expected:An.symbol,received:r.parsedType}),Or}return Cc(t.data)}}Jk.create=e=>new Jk({typeName:Er.ZodSymbol,...jr(e)});class YO extends Zr{_parse(t){if(this._getType(t)!==An.undefined){const r=this._getOrReturnCtx(t);return On(r,{code:un.invalid_type,expected:An.undefined,received:r.parsedType}),Or}return Cc(t.data)}}YO.create=e=>new YO({typeName:Er.ZodUndefined,...jr(e)});class XO extends Zr{_parse(t){if(this._getType(t)!==An.null){const r=this._getOrReturnCtx(t);return On(r,{code:un.invalid_type,expected:An.null,received:r.parsedType}),Or}return Cc(t.data)}}XO.create=e=>new XO({typeName:Er.ZodNull,...jr(e)});class Ww extends Zr{constructor(){super(...arguments),this._any=!0}_parse(t){return Cc(t.data)}}Ww.create=e=>new Ww({typeName:Er.ZodAny,...jr(e)});class Z8 extends Zr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Cc(t.data)}}Z8.create=e=>new Z8({typeName:Er.ZodUnknown,...jr(e)});class P0 extends Zr{_parse(t){const n=this._getOrReturnCtx(t);return On(n,{code:un.invalid_type,expected:An.never,received:n.parsedType}),Or}}P0.create=e=>new P0({typeName:Er.ZodNever,...jr(e)});class ez extends Zr{_parse(t){if(this._getType(t)!==An.undefined){const r=this._getOrReturnCtx(t);return On(r,{code:un.invalid_type,expected:An.void,received:r.parsedType}),Or}return Cc(t.data)}}ez.create=e=>new ez({typeName:Er.ZodVoid,...jr(e)});class Sg extends Zr{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==An.array)return On(n,{code:un.invalid_type,expected:An.array,received:n.parsedType}),Or;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,a=n.data.length<i.exactLength.value;(s||a)&&(On(n,{code:s?un.too_big:un.too_small,minimum:a?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(On(n,{code:un.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(On(n,{code:un.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>i.type._parseAsync(new bm(n,s,n.path,a)))).then(s=>ql.mergeArray(r,s));const o=[...n.data].map((s,a)=>i.type._parseSync(new bm(n,s,n.path,a)));return ql.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Sg({...this._def,minLength:{value:t,message:Yn.toString(n)}})}max(t,n){return new Sg({...this._def,maxLength:{value:t,message:Yn.toString(n)}})}length(t,n){return new Sg({...this._def,exactLength:{value:t,message:Yn.toString(n)}})}nonempty(t){return this.min(1,t)}}Sg.create=(e,t)=>new Sg({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Er.ZodArray,...jr(t)});function U5(e){if(e instanceof Yo){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=om.create(U5(r))}return new Yo({...e._def,shape:()=>t})}else return e instanceof Sg?new Sg({...e._def,type:U5(e.element)}):e instanceof om?om.create(U5(e.unwrap())):e instanceof H4?H4.create(U5(e.unwrap())):e instanceof Sm?Sm.create(e.items.map(t=>U5(t))):e}class Yo extends Zr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Mi.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==An.object){const c=this._getOrReturnCtx(t);return On(c,{code:un.invalid_type,expected:An.object,received:c.parsedType}),Or}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof P0&&this._def.unknownKeys==="strip"))for(const c in i.data)s.includes(c)||a.push(c);const l=[];for(const c of s){const u=o[c],f=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new bm(i,f,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof P0){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")a.length>0&&(On(i,{code:un.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const f=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new bm(i,f,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const f=await u.key,h=await u.value;c.push({key:f,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>ql.mergeObjectSync(r,c)):ql.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Yn.errToObj,new Yo({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o,s,a;const l=(s=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=Yn.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Yo({...this._def,unknownKeys:"strip"})}passthrough(){return new Yo({...this._def,unknownKeys:"passthrough"})}extend(t){return new Yo({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Yo({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Er.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Yo({...this._def,catchall:t})}pick(t){const n={};return Mi.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Yo({...this._def,shape:()=>n})}omit(t){const n={};return Mi.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Yo({...this._def,shape:()=>n})}deepPartial(){return U5(this)}partial(t){const n={};return Mi.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Yo({...this._def,shape:()=>n})}required(t){const n={};return Mi.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof om;)o=o._def.innerType;n[r]=o}}),new Yo({...this._def,shape:()=>n})}keyof(){return DBe(Mi.objectKeys(this.shape))}}Yo.create=(e,t)=>new Yo({shape:()=>e,unknownKeys:"strip",catchall:P0.create(),typeName:Er.ZodObject,...jr(t)});Yo.strictCreate=(e,t)=>new Yo({shape:()=>e,unknownKeys:"strict",catchall:P0.create(),typeName:Er.ZodObject,...jr(t)});Yo.lazycreate=(e,t)=>new Yo({shape:e,unknownKeys:"strip",catchall:P0.create(),typeName:Er.ZodObject,...jr(t)});class QO extends Zr{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(a=>new cd(a.ctx.common.issues));return On(n,{code:un.invalid_union,unionErrors:s}),Or}if(n.common.async)return Promise.all(r.map(async o=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let o;const s=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(l=>new cd(l));return On(n,{code:un.invalid_union,unionErrors:a}),Or}}get options(){return this._def.options}}QO.create=(e,t)=>new QO({options:e,typeName:Er.ZodUnion,...jr(t)});const B1=e=>e instanceof eT?B1(e.schema):e instanceof _g?B1(e.innerType()):e instanceof tT?[e.value]:e instanceof B4?e.options:e instanceof nT?Mi.objectValues(e.enum):e instanceof rT?B1(e._def.innerType):e instanceof YO?[void 0]:e instanceof XO?[null]:e instanceof om?[void 0,...B1(e.unwrap())]:e instanceof H4?[null,...B1(e.unwrap())]:e instanceof jhe||e instanceof oT?B1(e.unwrap()):e instanceof iT?B1(e._def.innerType):[];class dj extends Zr{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==An.object)return On(n,{code:un.invalid_type,expected:An.object,received:n.parsedType}),Or;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(On(n,{code:un.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Or)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const s=B1(o.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of s){if(i.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);i.set(a,o)}}return new dj({typeName:Er.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...jr(r)})}}function Kse(e,t){const n=e0(e),r=e0(t);if(e===t)return{valid:!0,data:e};if(n===An.object&&r===An.object){const i=Mi.objectKeys(t),o=Mi.objectKeys(e).filter(a=>i.indexOf(a)!==-1),s={...e,...t};for(const a of o){const l=Kse(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===An.array&&r===An.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const s=e[o],a=t[o],l=Kse(s,a);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===An.date&&r===An.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ZO extends Zr{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,s)=>{if(Use(o)||Use(s))return Or;const a=Kse(o.value,s.value);return a.valid?((qse(o)||qse(s))&&n.dirty(),{status:n.value,value:a.data}):(On(r,{code:un.invalid_intersection_types}),Or)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,s])=>i(o,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ZO.create=(e,t,n)=>new ZO({left:e,right:t,typeName:Er.ZodIntersection,...jr(n)});class Sm extends Zr{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==An.array)return On(r,{code:un.invalid_type,expected:An.array,received:r.parsedType}),Or;if(r.data.length<this._def.items.length)return On(r,{code:un.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Or;!this._def.rest&&r.data.length>this._def.items.length&&(On(r,{code:un.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new bm(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(o).then(s=>ql.mergeArray(n,s)):ql.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Sm({...this._def,rest:t})}}Sm.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Sm({items:e,typeName:Er.ZodTuple,rest:null,...jr(t)})};class JO extends Zr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==An.object)return On(r,{code:un.invalid_type,expected:An.object,received:r.parsedType}),Or;const i=[],o=this._def.keyType,s=this._def.valueType;for(const a in r.data)i.push({key:o._parse(new bm(r,a,r.path,a)),value:s._parse(new bm(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ql.mergeObjectAsync(n,i):ql.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Zr?new JO({keyType:t,valueType:n,typeName:Er.ZodRecord,...jr(r)}):new JO({keyType:fg.create(),valueType:t,typeName:Er.ZodRecord,...jr(n)})}}class tz extends Zr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==An.map)return On(r,{code:un.invalid_type,expected:An.map,received:r.parsedType}),Or;const i=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([a,l],c)=>({key:i._parse(new bm(r,a,r.path,[c,"key"])),value:o._parse(new bm(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Or;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Or;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}tz.create=(e,t,n)=>new tz({valueType:t,keyType:e,typeName:Er.ZodMap,...jr(n)});class TC extends Zr{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==An.set)return On(r,{code:un.invalid_type,expected:An.set,received:r.parsedType}),Or;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(On(r,{code:un.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(On(r,{code:un.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function s(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Or;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new bm(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new TC({...this._def,minSize:{value:t,message:Yn.toString(n)}})}max(t,n){return new TC({...this._def,maxSize:{value:t,message:Yn.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}TC.create=(e,t)=>new TC({valueType:e,minSize:null,maxSize:null,typeName:Er.ZodSet,...jr(t)});class WS extends Zr{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==An.function)return On(n,{code:un.invalid_type,expected:An.function,received:n.parsedType}),Or;function r(a,l){return Qk({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xk(),Gw].filter(c=>!!c),issueData:{code:un.invalid_arguments,argumentsError:l}})}function i(a,l){return Qk({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xk(),Gw].filter(c=>!!c),issueData:{code:un.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Uw){const a=this;return Cc(async function(...l){const c=new cd([]),u=await a._def.args.parseAsync(l,o).catch(g=>{throw c.addIssue(r(l,g)),c}),f=await Reflect.apply(s,this,u);return await a._def.returns._def.type.parseAsync(f,o).catch(g=>{throw c.addIssue(i(f,g)),c})})}else{const a=this;return Cc(function(...l){const c=a._def.args.safeParse(l,o);if(!c.success)throw new cd([r(l,c.error)]);const u=Reflect.apply(s,this,c.data),f=a._def.returns.safeParse(u,o);if(!f.success)throw new cd([i(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new WS({...this._def,args:Sm.create(t).rest(Z8.create())})}returns(t){return new WS({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new WS({args:t||Sm.create([]).rest(Z8.create()),returns:n||Z8.create(),typeName:Er.ZodFunction,...jr(r)})}}class eT extends Zr{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}eT.create=(e,t)=>new eT({getter:e,typeName:Er.ZodLazy,...jr(t)});class tT extends Zr{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return On(n,{received:n.data,code:un.invalid_literal,expected:this._def.value}),Or}return{status:"valid",value:t.data}}get value(){return this._def.value}}tT.create=(e,t)=>new tT({value:e,typeName:Er.ZodLiteral,...jr(t)});function DBe(e,t){return new B4({values:e,typeName:Er.ZodEnum,...jr(t)})}class B4 extends Zr{constructor(){super(...arguments),JR.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return On(n,{expected:Mi.joinValues(r),received:n.parsedType,code:un.invalid_type}),Or}if(Zk(this,JR)||MBe(this,JR,new Set(this._def.values)),!Zk(this,JR).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return On(n,{received:n.data,code:un.invalid_enum_value,options:r}),Or}return Cc(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return B4.create(t,{...this._def,...n})}exclude(t,n=this._def){return B4.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}JR=new WeakMap;B4.create=DBe;class nT extends Zr{constructor(){super(...arguments),e$.set(this,void 0)}_parse(t){const n=Mi.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==An.string&&r.parsedType!==An.number){const i=Mi.objectValues(n);return On(r,{expected:Mi.joinValues(i),received:r.parsedType,code:un.invalid_type}),Or}if(Zk(this,e$)||MBe(this,e$,new Set(Mi.getValidEnumValues(this._def.values))),!Zk(this,e$).has(t.data)){const i=Mi.objectValues(n);return On(r,{received:r.data,code:un.invalid_enum_value,options:i}),Or}return Cc(t.data)}get enum(){return this._def.values}}e$=new WeakMap;nT.create=(e,t)=>new nT({values:e,typeName:Er.ZodNativeEnum,...jr(t)});class Uw extends Zr{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==An.promise&&n.common.async===!1)return On(n,{code:un.invalid_type,expected:An.promise,received:n.parsedType}),Or;const r=n.parsedType===An.promise?n.data:Promise.resolve(n.data);return Cc(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Uw.create=(e,t)=>new Uw({type:e,typeName:Er.ZodPromise,...jr(t)});class _g extends Zr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Er.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:s=>{On(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const s=i.transform(r.data,o);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return Or;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?Or:l.status==="dirty"||n.value==="dirty"?bS(l.value):l});{if(n.value==="aborted")return Or;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?Or:a.status==="dirty"||n.value==="dirty"?bS(a.value):a}}if(i.type==="refinement"){const s=a=>{const l=i.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Or:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?Or:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!$C(s))return s;const a=i.transform(s.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>$C(s)?Promise.resolve(i.transform(s.value,o)).then(a=>({status:n.value,value:a})):s);Mi.assertNever(i)}}_g.create=(e,t,n)=>new _g({schema:e,typeName:Er.ZodEffects,effect:t,...jr(n)});_g.createWithPreprocess=(e,t,n)=>new _g({schema:t,effect:{type:"preprocess",transform:e},typeName:Er.ZodEffects,...jr(n)});class om extends Zr{_parse(t){return this._getType(t)===An.undefined?Cc(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}om.create=(e,t)=>new om({innerType:e,typeName:Er.ZodOptional,...jr(t)});class H4 extends Zr{_parse(t){return this._getType(t)===An.null?Cc(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}H4.create=(e,t)=>new H4({innerType:e,typeName:Er.ZodNullable,...jr(t)});class rT extends Zr{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===An.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}rT.create=(e,t)=>new rT({innerType:e,typeName:Er.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...jr(t)});class iT extends Zr{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return qO(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new cd(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new cd(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}iT.create=(e,t)=>new iT({innerType:e,typeName:Er.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...jr(t)});class nz extends Zr{_parse(t){if(this._getType(t)!==An.nan){const r=this._getOrReturnCtx(t);return On(r,{code:un.invalid_type,expected:An.nan,received:r.parsedType}),Or}return{status:"valid",value:t.data}}}nz.create=e=>new nz({typeName:Er.ZodNaN,...jr(e)});const y5t=Symbol("zod_brand");class jhe extends Zr{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class kI extends Zr{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Or:o.status==="dirty"?(n.dirty(),bS(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Or:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new kI({in:t,out:n,typeName:Er.ZodPipeline})}}class oT extends Zr{_parse(t){const n=this._def.innerType._parse(t),r=i=>($C(i)&&(i.value=Object.freeze(i.value)),i);return qO(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}oT.create=(e,t)=>new oT({innerType:e,typeName:Er.ZodReadonly,...jr(t)});function LBe(e,t={},n){return e?Ww.create().superRefine((r,i)=>{var o,s;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(s=(o=a.fatal)!==null&&o!==void 0?o:n)!==null&&s!==void 0?s:!0,c=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...c,fatal:l})}}):Ww.create()}const b5t={object:Yo.lazycreate};var Er;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Er||(Er={}));const S5t=(e,t={message:`Input not instance of ${e.name}`})=>LBe(n=>n instanceof e,t),FBe=fg.create,NBe=k4.create,w5t=nz.create,x5t=z4.create,kBe=KO.create,E5t=OC.create,R5t=Jk.create,$5t=YO.create,O5t=XO.create,T5t=Ww.create,I5t=Z8.create,M5t=P0.create,P5t=ez.create,_5t=Sg.create,A5t=Yo.create,D5t=Yo.strictCreate,L5t=QO.create,F5t=dj.create,N5t=ZO.create,k5t=Sm.create,z5t=JO.create,B5t=tz.create,H5t=TC.create,j5t=WS.create,V5t=eT.create,G5t=tT.create,W5t=B4.create,U5t=nT.create,q5t=Uw.create,Nbe=_g.create,K5t=om.create,Y5t=H4.create,X5t=_g.createWithPreprocess,Q5t=kI.create,Z5t=()=>FBe().optional(),J5t=()=>NBe().optional(),eSt=()=>kBe().optional(),tSt={string:e=>fg.create({...e,coerce:!0}),number:e=>k4.create({...e,coerce:!0}),boolean:e=>KO.create({...e,coerce:!0}),bigint:e=>z4.create({...e,coerce:!0}),date:e=>OC.create({...e,coerce:!0})},nSt=Or;var Oe=Object.freeze({__proto__:null,defaultErrorMap:Gw,setErrorMap:Xbt,getErrorMap:Xk,makeIssue:Qk,EMPTY_PATH:Qbt,addIssueToContext:On,ParseStatus:ql,INVALID:Or,DIRTY:bS,OK:Cc,isAborted:Use,isDirty:qse,isValid:$C,isAsync:qO,get util(){return Mi},get objectUtil(){return Wse},ZodParsedType:An,getParsedType:e0,ZodType:Zr,datetimeRegex:ABe,ZodString:fg,ZodNumber:k4,ZodBigInt:z4,ZodBoolean:KO,ZodDate:OC,ZodSymbol:Jk,ZodUndefined:YO,ZodNull:XO,ZodAny:Ww,ZodUnknown:Z8,ZodNever:P0,ZodVoid:ez,ZodArray:Sg,ZodObject:Yo,ZodUnion:QO,ZodDiscriminatedUnion:dj,ZodIntersection:ZO,ZodTuple:Sm,ZodRecord:JO,ZodMap:tz,ZodSet:TC,ZodFunction:WS,ZodLazy:eT,ZodLiteral:tT,ZodEnum:B4,ZodNativeEnum:nT,ZodPromise:Uw,ZodEffects:_g,ZodTransformer:_g,ZodOptional:om,ZodNullable:H4,ZodDefault:rT,ZodCatch:iT,ZodNaN:nz,BRAND:y5t,ZodBranded:jhe,ZodPipeline:kI,ZodReadonly:oT,custom:LBe,Schema:Zr,ZodSchema:Zr,late:b5t,get ZodFirstPartyTypeKind(){return Er},coerce:tSt,any:T5t,array:_5t,bigint:x5t,boolean:kBe,date:E5t,discriminatedUnion:F5t,effect:Nbe,enum:W5t,function:j5t,instanceof:S5t,intersection:N5t,lazy:V5t,literal:G5t,map:B5t,nan:w5t,nativeEnum:U5t,never:M5t,null:O5t,nullable:Y5t,number:NBe,object:A5t,oboolean:eSt,onumber:J5t,optional:K5t,ostring:Z5t,pipeline:Q5t,preprocess:X5t,promise:q5t,record:z5t,set:H5t,strictObject:D5t,string:FBe,symbol:R5t,transformer:Nbe,tuple:k5t,undefined:$5t,union:L5t,unknown:I5t,void:P5t,NEVER:nSt,ZodIssueCode:un,quotelessJson:Ybt,ZodError:cd});const j4=Math.floor,qF=Math.abs,Vhe=(e,t)=>e<t?e:t,Ty=(e,t)=>e>t?e:t,rSt=Math.pow,zBe=e=>e!==0?e<0:1/e<0,kbe=1,zbe=2,tee=4,nee=8,sT=32,g0=64,ud=128,fj=31,Yse=63,J8=127,iSt=2147483647,BBe=Number.MAX_SAFE_INTEGER,oSt=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&j4(e)===e),V4=()=>new Set,ree=e=>e[e.length-1],sSt=(e,t)=>{for(let n=0;n<t.length;n++)e.push(t[n])},_0=Array.from,aSt=Array.isArray,lSt=String.fromCharCode,cSt=e=>e.toLowerCase(),uSt=/^\s*/g,dSt=e=>e.replace(uSt,""),fSt=/([A-Z])/g,Bbe=(e,t)=>dSt(e.replace(fSt,n=>`${t}${cSt(n)}`)),hSt=e=>{const t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.codePointAt(i);return r},aT=typeof TextEncoder<"u"?new TextEncoder:null,gSt=e=>aT.encode(e),pSt=aT?gSt:hSt;let N$=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});N$&&N$.decode(new Uint8Array).length===1&&(N$=null);class zI{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Il=()=>new zI,Ghe=e=>{let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t},zo=e=>{const t=new Uint8Array(Ghe(e));let n=0;for(let r=0;r<e.bufs.length;r++){const i=e.bufs[r];t.set(i,n),n+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),t},mSt=(e,t)=>{const n=e.cbuf.length;n-e.cpos<t&&(e.bufs.push(new Uint8Array(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(Ty(n,t)*2),e.cpos=0)},Ea=(e,t)=>{const n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},Xse=Ea,or=(e,t)=>{for(;t>J8;)Ea(e,ud|J8&t),t=j4(t/128);Ea(e,J8&t)},Whe=(e,t)=>{const n=zBe(t);for(n&&(t=-t),Ea(e,(t>Yse?ud:0)|(n?g0:0)|Yse&t),t=j4(t/64);t>0;)Ea(e,(t>J8?ud:0)|J8&t),t=j4(t/128)},Qse=new Uint8Array(3e4),vSt=Qse.length/3,CSt=(e,t)=>{if(t.length<vSt){const n=aT.encodeInto(t,Qse).written||0;or(e,n);for(let r=0;r<n;r++)Ea(e,Qse[r])}else ws(e,pSt(t))},ySt=(e,t)=>{const n=unescape(encodeURIComponent(t)),r=n.length;or(e,r);for(let i=0;i<r;i++)Ea(e,n.codePointAt(i))},eC=aT&&aT.encodeInto?CSt:ySt,hj=(e,t)=>{const n=e.cbuf.length,r=e.cpos,i=Vhe(n-r,t.length),o=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,o>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(Ty(n*2,o)),e.cbuf.set(t.subarray(i)),e.cpos=o)},ws=(e,t)=>{or(e,t.byteLength),hj(e,t)},Uhe=(e,t)=>{mSt(e,t);const n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},bSt=(e,t)=>Uhe(e,4).setFloat32(0,t,!1),SSt=(e,t)=>Uhe(e,8).setFloat64(0,t,!1),wSt=(e,t)=>Uhe(e,8).setBigInt64(0,t,!1),Hbe=new DataView(new ArrayBuffer(4)),xSt=e=>(Hbe.setFloat32(0,e),Hbe.getFloat32(0)===e),lT=(e,t)=>{switch(typeof t){case"string":Ea(e,119),eC(e,t);break;case"number":oSt(t)&&qF(t)<=iSt?(Ea(e,125),Whe(e,t)):xSt(t)?(Ea(e,124),bSt(e,t)):(Ea(e,123),SSt(e,t));break;case"bigint":Ea(e,122),wSt(e,t);break;case"object":if(t===null)Ea(e,126);else if(aSt(t)){Ea(e,117),or(e,t.length);for(let n=0;n<t.length;n++)lT(e,t[n])}else if(t instanceof Uint8Array)Ea(e,116),ws(e,t);else{Ea(e,118);const n=Object.keys(t);or(e,n.length);for(let r=0;r<n.length;r++){const i=n[r];eC(e,i),lT(e,t[i])}}break;case"boolean":Ea(e,t?120:121);break;default:Ea(e,127)}};class jbe extends zI{constructor(t){super(),this.w=t,this.s=null,this.count=0}write(t){this.s===t?this.count++:(this.count>0&&or(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}}const Vbe=e=>{e.count>0&&(Whe(e.encoder,e.count===1?e.s:-e.s),e.count>1&&or(e.encoder,e.count-2))};class KF{constructor(){this.encoder=new zI,this.s=0,this.count=0}write(t){this.s===t?this.count++:(Vbe(this),this.count=1,this.s=t)}toUint8Array(){return Vbe(this),zo(this.encoder)}}const Gbe=e=>{if(e.count>0){const t=e.diff*2+(e.count===1?0:1);Whe(e.encoder,t),e.count>1&&or(e.encoder,e.count-2)}};class iee{constructor(){this.encoder=new zI,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(Gbe(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return Gbe(this),zo(this.encoder)}}class ESt{constructor(){this.sarr=[],this.s="",this.lensE=new KF}write(t){this.s+=t,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(t.length)}toUint8Array(){const t=new zI;return this.sarr.push(this.s),this.s="",eC(t,this.sarr.join("")),hj(t,this.lensE.toUint8Array()),zo(t)}}const G4=e=>new Error(e),sm=()=>{throw G4("Method unimplemented")},wm=()=>{throw G4("Unexpected case")},HBe=G4("Unexpected end of array"),jBe=G4("Integer out of Range");class gj{constructor(t){this.arr=t,this.pos=0}}const m3=e=>new gj(e),RSt=e=>e.pos!==e.arr.length,$St=(e,t)=>{const n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},$l=e=>$St(e,Lr(e)),qw=e=>e.arr[e.pos++],Lr=e=>{let t=0,n=1;const r=e.arr.length;for(;e.pos<r;){const i=e.arr[e.pos++];if(t=t+(i&J8)*n,n*=128,i<ud)return t;if(t>BBe)throw jBe}throw HBe},qhe=e=>{let t=e.arr[e.pos++],n=t&Yse,r=64;const i=(t&g0)>0?-1:1;if(!(t&ud))return i*n;const o=e.arr.length;for(;e.pos<o;){if(t=e.arr[e.pos++],n=n+(t&J8)*r,r*=128,t<ud)return i*n;if(n>BBe)throw jBe}throw HBe},OSt=e=>{let t=Lr(e);if(t===0)return"";{let n=String.fromCodePoint(qw(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(qw(e));else for(;t>0;){const r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},TSt=e=>N$.decode($l(e)),m4=N$?TSt:OSt,Khe=(e,t)=>{const n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n},ISt=e=>Khe(e,4).getFloat32(0,!1),MSt=e=>Khe(e,8).getFloat64(0,!1),PSt=e=>Khe(e,8).getBigInt64(0,!1),_St=[e=>{},e=>null,qhe,ISt,MSt,PSt,e=>!1,e=>!0,m4,e=>{const t=Lr(e),n={};for(let r=0;r<t;r++){const i=m4(e);n[i]=cT(e)}return n},e=>{const t=Lr(e),n=[];for(let r=0;r<t;r++)n.push(cT(e));return n},$l],cT=e=>_St[127-qw(e)](e);class Wbe extends gj{constructor(t,n){super(t),this.reader=n,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),RSt(this)?this.count=Lr(this)+1:this.count=-1),this.count--,this.s}}class YF extends gj{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=qhe(this);const t=zBe(this.s);this.count=1,t&&(this.s=-this.s,this.count=Lr(this)+2)}return this.count--,this.s}}class oee extends gj{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const t=qhe(this),n=t&1;this.diff=j4(t/2),this.count=1,n&&(this.count=Lr(this)+2)}return this.s+=this.diff,this.count--,this.s}}let ASt=class{constructor(t){this.decoder=new YF(t),this.str=m4(this.decoder),this.spos=0}read(){const t=this.spos+this.decoder.read(),n=this.str.slice(this.spos,t);return this.spos=t,n}};const Kw=Date.now,hu=()=>new Map,Zse=e=>{const t=hu();return e.forEach((n,r)=>{t.set(r,n)}),t},Vm=(e,t,n)=>{let r=e.get(t);return r===void 0&&e.set(t,r=n()),r},DSt=(e,t)=>{const n=[];for(const[r,i]of e)n.push(t(i,r));return n},LSt=(e,t)=>{for(const[n,r]of e)if(t(r,n))return!0;return!1};class FSt{constructor(){this._observers=hu()}on(t,n){return Vm(this._observers,t,V4).add(n),n}once(t,n){const r=(...i)=>{this.off(t,r),n(...i)};this.on(t,r)}off(t,n){const r=this._observers.get(t);r!==void 0&&(r.delete(n),r.size===0&&this._observers.delete(t))}emit(t,n){return _0((this._observers.get(t)||hu()).values()).forEach(r=>r(...n))}destroy(){this._observers=hu()}}class VBe{constructor(){this._observers=hu()}on(t,n){Vm(this._observers,t,V4).add(n)}once(t,n){const r=(...i)=>{this.off(t,r),n(...i)};this.on(t,r)}off(t,n){const r=this._observers.get(t);r!==void 0&&(r.delete(n),r.size===0&&this._observers.delete(t))}emit(t,n){return _0((this._observers.get(t)||hu()).values()).forEach(r=>r(...n))}destroy(){this._observers=hu()}}const NSt=Object.assign,GBe=Object.keys,kSt=(e,t)=>{for(const n in e)t(e[n],n)},zSt=(e,t)=>{const n=[];for(const r in e)n.push(t(e[r],r));return n},Ube=e=>GBe(e).length,qbe=e=>GBe(e).length,BSt=e=>{for(const t in e)return!1;return!0},HSt=(e,t)=>{for(const n in e)if(!t(e[n],n))return!1;return!0},WBe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),jSt=(e,t)=>e===t||qbe(e)===qbe(t)&&HSt(e,(n,r)=>(n!==void 0||WBe(t,r))&&t[r]===n),VSt=Object.freeze,UBe=e=>{for(const t in e){const n=e[t];(typeof n=="object"||typeof n=="function")&&UBe(e[t])}return VSt(e)},Yhe=(e,t,n=0)=>{try{for(;n<e.length;n++)e[n](...t)}finally{n<e.length&&Yhe(e,t,n+1)}},GSt=e=>e,WSt=(e,t)=>e===t,k$=(e,t)=>{if(e==null||t==null)return WSt(e,t);if(e.constructor!==t.constructor)return!1;if(e===t)return!0;switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:{if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;break}case Set:{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;break}case Map:{if(e.size!==t.size)return!1;for(const n of e.keys())if(!t.has(n)||!k$(e.get(n),t.get(n)))return!1;break}case Object:if(Ube(e)!==Ube(t))return!1;for(const n in e)if(!WBe(e,n)||!k$(e[n],t[n]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!k$(e[n],t[n]))return!1;break;default:return!1}return!0},USt=(e,t)=>t.includes(e),Kbe=e=>e===void 0?null:e;class qSt{constructor(){this.map=new Map}setItem(t,n){this.map.set(t,n)}getItem(t){return this.map.get(t)}}let qBe=new qSt,Xhe=!0;try{typeof localStorage<"u"&&localStorage&&(qBe=localStorage,Xhe=!1)}catch{}const KBe=qBe,KSt=e=>Xhe||addEventListener("storage",e),YSt=e=>Xhe||removeEventListener("storage",e);var YBe={};const W4=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",XBe=typeof window<"u"&&typeof document<"u"&&!W4;let vp;const XSt=()=>{if(vp===void 0)if(W4){vp=hu();const e=process.argv;let t=null;for(let n=0;n<e.length;n++){const r=e[n];r[0]==="-"?(t!==null&&vp.set(t,""),t=r):t!==null&&(vp.set(t,r),t=null)}t!==null&&vp.set(t,"")}else typeof location=="object"?(vp=hu(),(location.search||"?").slice(1).split("&").forEach(e=>{if(e.length!==0){const[t,n]=e.split("=");vp.set(`--${Bbe(t,"-")}`,n),vp.set(`-${Bbe(t,"-")}`,n)}})):vp=hu();return vp},Jse=e=>XSt().has(e),rz=e=>Kbe(W4?YBe[e.toUpperCase().replaceAll("-","_")]:KBe.getItem(e)),QBe=e=>Jse("--"+e)||rz(e)!==null;QBe("production");const QSt=W4&&USt(YBe.FORCE_COLOR,["true","1","2"]),ZSt=QSt||!Jse("--no-colors")&&!QBe("no-color")&&(!W4||process.stdout.isTTY)&&(!W4||Jse("--color")||rz("COLORTERM")!==null||(rz("TERM")||"").includes("color")),ZBe=e=>new Uint8Array(e),JSt=(e,t,n)=>new Uint8Array(e,t,n),ewt=e=>new Uint8Array(e),twt=e=>{let t="";for(let n=0;n<e.byteLength;n++)t+=lSt(e[n]);return btoa(t)},nwt=e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),rwt=e=>{const t=atob(e),n=ZBe(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},iwt=e=>{const t=Buffer.from(e,"base64");return JSt(t.buffer,t.byteOffset,t.byteLength)},owt=XBe?twt:nwt,swt=XBe?rwt:iwt,awt=e=>{const t=ZBe(e.byteLength);return t.set(e),t},JBe=new Map;class lwt{constructor(t){this.room=t,this.onmessage=null,this._onChange=n=>n.key===t&&this.onmessage!==null&&this.onmessage({data:swt(n.newValue||"")}),KSt(this._onChange)}postMessage(t){KBe.setItem(this.room,owt(ewt(t)))}close(){YSt(this._onChange)}}const cwt=typeof BroadcastChannel>"u"?lwt:BroadcastChannel,Qhe=e=>Vm(JBe,e,()=>{const t=V4(),n=new cwt(e);return n.onmessage=r=>t.forEach(i=>i(r.data,"broadcastchannel")),{bc:n,subs:t}}),uwt=(e,t)=>(Qhe(e).subs.add(t),t),dwt=(e,t)=>{const n=Qhe(e),r=n.subs.delete(t);return r&&n.subs.size===0&&(n.bc.close(),JBe.delete(e)),r},q5=(e,t,n=null)=>{const r=Qhe(e);r.bc.postMessage(t),r.subs.forEach(i=>i(t,n))},fwt=crypto.getRandomValues.bind(crypto),eHe=()=>fwt(new Uint32Array(1))[0],hwt="10000000-1000-4000-8000"+-1e11,gwt=()=>hwt.replace(/[018]/g,e=>(e^eHe()&15>>e/4).toString(16)),Ybe=e=>new Promise(e);Promise.all.bind(Promise);class pwt{constructor(t,n){this.left=t,this.right=n}}const b1=(e,t)=>new pwt(e,t);typeof DOMParser<"u"&&new DOMParser;const mwt=e=>DSt(e,(t,n)=>`${n}:${t};`).join(""),J0=Symbol,tHe=J0(),nHe=J0(),vwt=J0(),Cwt=J0(),ywt=J0(),rHe=J0(),bwt=J0(),Zhe=J0(),Swt=J0(),wwt=e=>{var i;e.length===1&&((i=e[0])==null?void 0:i.constructor)===Function&&(e=e[0]());const t=[],n=[];let r=0;for(;r<e.length;r++){const o=e[r];if(o===void 0)break;if(o.constructor===String||o.constructor===Number)t.push(o);else if(o.constructor===Object)break}for(r>0&&n.push(t.join(""));r<e.length;r++){const o=e[r];o instanceof Symbol||n.push(o)}return n},xwt={[tHe]:b1("font-weight","bold"),[nHe]:b1("font-weight","normal"),[vwt]:b1("color","blue"),[ywt]:b1("color","green"),[Cwt]:b1("color","grey"),[rHe]:b1("color","red"),[bwt]:b1("color","purple"),[Zhe]:b1("color","orange"),[Swt]:b1("color","black")},Ewt=e=>{var s;e.length===1&&((s=e[0])==null?void 0:s.constructor)===Function&&(e=e[0]());const t=[],n=[],r=hu();let i=[],o=0;for(;o<e.length;o++){const a=e[o],l=xwt[a];if(l!==void 0)r.set(l.left,l.right);else{if(a===void 0)break;if(a.constructor===String||a.constructor===Number){const c=mwt(r);o>0||c.length>0?(t.push("%c"+a),n.push(c)):t.push(a)}else break}}for(o>0&&(i=n,i.unshift(t.join("")));o<e.length;o++){const a=e[o];a instanceof Symbol||i.push(a)}return i},iHe=ZSt?Ewt:wwt,Rwt=(...e)=>{console.log(...iHe(e)),oHe.forEach(t=>t.print(e))},$wt=(...e)=>{console.warn(...iHe(e)),e.unshift(Zhe),oHe.forEach(t=>t.print(e))},oHe=V4(),sHe=e=>({[Symbol.iterator](){return this},next:e}),Owt=(e,t)=>sHe(()=>{let n;do n=e.next();while(!n.done&&!t(n.value));return n}),see=(e,t)=>sHe(()=>{const{done:n,value:r}=e.next();return{done:n,value:n?void 0:t(r)}});class Jhe{constructor(t,n){this.clock=t,this.len=n}}class BI{constructor(){this.clients=new Map}}const aHe=(e,t,n)=>t.clients.forEach((r,i)=>{const o=e.doc.store.clients.get(i);for(let s=0;s<r.length;s++){const a=r[s];bHe(e,o,a.clock,a.len,n)}}),Twt=(e,t)=>{let n=0,r=e.length-1;for(;n<=r;){const i=j4((n+r)/2),o=e[i],s=o.clock;if(s<=t){if(t<s+o.len)return i;n=i+1}else r=i-1}return null},lHe=(e,t)=>{const n=e.clients.get(t.client);return n!==void 0&&Twt(n,t.clock)!==null},ege=e=>{e.clients.forEach(t=>{t.sort((i,o)=>i.clock-o.clock);let n,r;for(n=1,r=1;n<t.length;n++){const i=t[r-1],o=t[n];i.clock+i.len>=o.clock?i.len=Ty(i.len,o.clock+o.len-i.clock):(r<n&&(t[r]=o),r++)}t.length=r})},Iwt=e=>{const t=new BI;for(let n=0;n<e.length;n++)e[n].clients.forEach((r,i)=>{if(!t.clients.has(i)){const o=r.slice();for(let s=n+1;s<e.length;s++)sSt(o,e[s].clients.get(i)||[]);t.clients.set(i,o)}});return ege(t),t},iz=(e,t,n,r)=>{Vm(e.clients,t,()=>[]).push(new Jhe(n,r))},Mwt=()=>new BI,Pwt=e=>{const t=Mwt();return e.clients.forEach((n,r)=>{const i=[];for(let o=0;o<n.length;o++){const s=n[o];if(s.deleted){const a=s.id.clock;let l=s.length;if(o+1<n.length)for(let c=n[o+1];o+1<n.length&&c.deleted;c=n[++o+1])l+=c.length;i.push(new Jhe(a,l))}}i.length>0&&t.clients.set(r,i)}),t},Dx=(e,t)=>{or(e.restEncoder,t.clients.size),_0(t.clients.entries()).sort((n,r)=>r[0]-n[0]).forEach(([n,r])=>{e.resetDsCurVal(),or(e.restEncoder,n);const i=r.length;or(e.restEncoder,i);for(let o=0;o<i;o++){const s=r[o];e.writeDsClock(s.clock),e.writeDsLen(s.len)}})},tge=e=>{const t=new BI,n=Lr(e.restDecoder);for(let r=0;r<n;r++){e.resetDsCurVal();const i=Lr(e.restDecoder),o=Lr(e.restDecoder);if(o>0){const s=Vm(t.clients,i,()=>[]);for(let a=0;a<o;a++)s.push(new Jhe(e.readDsClock(),e.readDsLen()))}}return t},Xbe=(e,t,n)=>{const r=new BI,i=Lr(e.restDecoder);for(let o=0;o<i;o++){e.resetDsCurVal();const s=Lr(e.restDecoder),a=Lr(e.restDecoder),l=n.clients.get(s)||[],c=Pa(n,s);for(let u=0;u<a;u++){const f=e.readDsClock(),h=f+e.readDsLen();if(f<c){c<h&&iz(r,s,c,h-c);let g=xm(l,f),p=l[g];for(!p.deleted&&p.id.clock<f&&(l.splice(g+1,0,dz(t,p,f-p.id.clock)),g++);g<l.length&&(p=l[g++],p.id.clock<h);)p.deleted||(h<p.id.clock+p.length&&l.splice(g,0,dz(t,p,h-p.id.clock)),p.delete(t))}else iz(r,s,f,h-f)}}if(r.clients.size>0){const o=new IC;return or(o.restEncoder,0),Dx(o,r),o.toUint8Array()}return null},cHe=eHe;class Lx extends FSt{constructor({guid:t=gwt(),collectionid:n=null,gc:r=!0,gcFilter:i=()=>!0,meta:o=null,autoLoad:s=!1,shouldLoad:a=!0}={}){super(),this.gc=r,this.gcFilter=i,this.clientID=cHe(),this.guid=t,this.collectionid=n,this.share=new Map,this.store=new CHe,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=a,this.autoLoad=s,this.meta=o,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=Ybe(c=>{this.on("load",()=>{this.isLoaded=!0,c(this)})});const l=()=>Ybe(c=>{const u=f=>{(f===void 0||f===!0)&&(this.off("sync",u),c())};this.on("sync",u)});this.on("sync",c=>{c===!1&&this.isSynced&&(this.whenSynced=l()),this.isSynced=c===void 0||c===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=l()}load(){const t=this._item;t!==null&&!this.shouldLoad&&wo(t.parent.doc,n=>{n.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(_0(this.subdocs).map(t=>t.guid))}transact(t,n=null){return wo(this,t,n)}get(t,n=ol){const r=Vm(this.share,t,()=>{const o=new n;return o._integrate(this,null),o}),i=r.constructor;if(n!==ol&&i!==n)if(i===ol){const o=new n;o._map=r._map,r._map.forEach(s=>{for(;s!==null;s=s.left)s.parent=o}),o._start=r._start;for(let s=o._start;s!==null;s=s.right)s.parent=o;return o._length=r._length,this.share.set(t,o),o._integrate(this,null),o}else throw new Error(`Type with the name ${t} has already been defined with a different constructor`);return r}getArray(t=""){return this.get(t,qS)}getText(t=""){return this.get(t,Qw)}getMap(t=""){return this.get(t,Xw)}getXmlElement(t=""){return this.get(t,Zw)}getXmlFragment(t=""){return this.get(t,MC)}toJSON(){const t={};return this.share.forEach((n,r)=>{t[r]=n.toJSON()}),t}destroy(){this.isDestroyed=!0,_0(this.subdocs).forEach(n=>n.destroy());const t=this._item;if(t!==null){this._item=null;const n=t.content;n.doc=new Lx({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=t,wo(t.parent.doc,r=>{const i=n.doc;t.deleted||r.subdocsAdded.add(i),r.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class uHe{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return Lr(this.restDecoder)}readDsLen(){return Lr(this.restDecoder)}}class dHe extends uHe{readLeftID(){return Ri(Lr(this.restDecoder),Lr(this.restDecoder))}readRightID(){return Ri(Lr(this.restDecoder),Lr(this.restDecoder))}readClient(){return Lr(this.restDecoder)}readInfo(){return qw(this.restDecoder)}readString(){return m4(this.restDecoder)}readParentInfo(){return Lr(this.restDecoder)===1}readTypeRef(){return Lr(this.restDecoder)}readLen(){return Lr(this.restDecoder)}readAny(){return cT(this.restDecoder)}readBuf(){return awt($l(this.restDecoder))}readJSON(){return JSON.parse(m4(this.restDecoder))}readKey(){return m4(this.restDecoder)}}class _wt{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=Lr(this.restDecoder),this.dsCurrVal}readDsLen(){const t=Lr(this.restDecoder)+1;return this.dsCurrVal+=t,t}}class Yw extends _wt{constructor(t){super(t),this.keys=[],Lr(t),this.keyClockDecoder=new oee($l(t)),this.clientDecoder=new YF($l(t)),this.leftClockDecoder=new oee($l(t)),this.rightClockDecoder=new oee($l(t)),this.infoDecoder=new Wbe($l(t),qw),this.stringDecoder=new ASt($l(t)),this.parentInfoDecoder=new Wbe($l(t),qw),this.typeRefDecoder=new YF($l(t)),this.lenDecoder=new YF($l(t))}readLeftID(){return new US(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new US(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return cT(this.restDecoder)}readBuf(){return $l(this.restDecoder)}readJSON(){return cT(this.restDecoder)}readKey(){const t=this.keyClockDecoder.read();if(t<this.keys.length)return this.keys[t];{const n=this.stringDecoder.read();return this.keys.push(n),n}}}class fHe{constructor(){this.restEncoder=Il()}toUint8Array(){return zo(this.restEncoder)}resetDsCurVal(){}writeDsClock(t){or(this.restEncoder,t)}writeDsLen(t){or(this.restEncoder,t)}}class HI extends fHe{writeLeftID(t){or(this.restEncoder,t.client),or(this.restEncoder,t.clock)}writeRightID(t){or(this.restEncoder,t.client),or(this.restEncoder,t.clock)}writeClient(t){or(this.restEncoder,t)}writeInfo(t){Xse(this.restEncoder,t)}writeString(t){eC(this.restEncoder,t)}writeParentInfo(t){or(this.restEncoder,t?1:0)}writeTypeRef(t){or(this.restEncoder,t)}writeLen(t){or(this.restEncoder,t)}writeAny(t){lT(this.restEncoder,t)}writeBuf(t){ws(this.restEncoder,t)}writeJSON(t){eC(this.restEncoder,JSON.stringify(t))}writeKey(t){eC(this.restEncoder,t)}}class hHe{constructor(){this.restEncoder=Il(),this.dsCurrVal=0}toUint8Array(){return zo(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(t){const n=t-this.dsCurrVal;this.dsCurrVal=t,or(this.restEncoder,n)}writeDsLen(t){t===0&&wm(),or(this.restEncoder,t-1),this.dsCurrVal+=t}}class IC extends hHe{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new iee,this.clientEncoder=new KF,this.leftClockEncoder=new iee,this.rightClockEncoder=new iee,this.infoEncoder=new jbe(Xse),this.stringEncoder=new ESt,this.parentInfoEncoder=new jbe(Xse),this.typeRefEncoder=new KF,this.lenEncoder=new KF}toUint8Array(){const t=Il();return or(t,0),ws(t,this.keyClockEncoder.toUint8Array()),ws(t,this.clientEncoder.toUint8Array()),ws(t,this.leftClockEncoder.toUint8Array()),ws(t,this.rightClockEncoder.toUint8Array()),ws(t,zo(this.infoEncoder)),ws(t,this.stringEncoder.toUint8Array()),ws(t,zo(this.parentInfoEncoder)),ws(t,this.typeRefEncoder.toUint8Array()),ws(t,this.lenEncoder.toUint8Array()),hj(t,zo(this.restEncoder)),zo(t)}writeLeftID(t){this.clientEncoder.write(t.client),this.leftClockEncoder.write(t.clock)}writeRightID(t){this.clientEncoder.write(t.client),this.rightClockEncoder.write(t.clock)}writeClient(t){this.clientEncoder.write(t)}writeInfo(t){this.infoEncoder.write(t)}writeString(t){this.stringEncoder.write(t)}writeParentInfo(t){this.parentInfoEncoder.write(t?1:0)}writeTypeRef(t){this.typeRefEncoder.write(t)}writeLen(t){this.lenEncoder.write(t)}writeAny(t){lT(this.restEncoder,t)}writeBuf(t){ws(this.restEncoder,t)}writeJSON(t){lT(this.restEncoder,t)}writeKey(t){const n=this.keyMap.get(t);n===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(t)):this.keyClockEncoder.write(n)}}const Awt=(e,t,n,r)=>{r=Ty(r,t[0].id.clock);const i=xm(t,r);or(e.restEncoder,t.length-i),e.writeClient(n),or(e.restEncoder,r);const o=t[i];o.write(e,r-o.id.clock);for(let s=i+1;s<t.length;s++)t[s].write(e,0)},nge=(e,t,n)=>{const r=new Map;n.forEach((i,o)=>{Pa(t,o)>i&&r.set(o,i)}),pj(t).forEach((i,o)=>{n.has(o)||r.set(o,0)}),or(e.restEncoder,r.size),_0(r.entries()).sort((i,o)=>o[0]-i[0]).forEach(([i,o])=>{Awt(e,t.clients.get(i),i,o)})},Dwt=(e,t)=>{const n=hu(),r=Lr(e.restDecoder);for(let i=0;i<r;i++){const o=Lr(e.restDecoder),s=new Array(o),a=e.readClient();let l=Lr(e.restDecoder);n.set(a,{i:0,refs:s});for(let c=0;c<o;c++){const u=e.readInfo();switch(fj&u){case 0:{const f=e.readLen();s[c]=new Of(Ri(a,l),f),l+=f;break}case 10:{const f=Lr(e.restDecoder);s[c]=new Tf(Ri(a,l),f),l+=f;break}default:{const f=(u&(g0|ud))===0,h=new zl(Ri(a,l),null,(u&ud)===ud?e.readLeftID():null,null,(u&g0)===g0?e.readRightID():null,f?e.readParentInfo()?t.get(e.readString()):e.readLeftID():null,f&&(u&sT)===sT?e.readString():null,zHe(e,u));s[c]=h,l+=h.length}}}}return n},Lwt=(e,t,n)=>{const r=[];let i=_0(n.keys()).sort((g,p)=>g-p);if(i.length===0)return null;const o=()=>{if(i.length===0)return null;let g=n.get(i[i.length-1]);for(;g.refs.length===g.i;)if(i.pop(),i.length>0)g=n.get(i[i.length-1]);else return null;return g};let s=o();if(s===null)return null;const a=new CHe,l=new Map,c=(g,p)=>{const m=l.get(g);(m==null||m>p)&&l.set(g,p)};let u=s.refs[s.i++];const f=new Map,h=()=>{for(const g of r){const p=g.id.client,m=n.get(p);m?(m.i--,a.clients.set(p,m.refs.slice(m.i)),n.delete(p),m.i=0,m.refs=[]):a.clients.set(p,[g]),i=i.filter(v=>v!==p)}r.length=0};for(;;){if(u.constructor!==Tf){const p=Vm(f,u.id.client,()=>Pa(t,u.id.client))-u.id.clock;if(p<0)r.push(u),c(u.id.client,u.id.clock-1),h();else{const m=u.getMissing(e,t);if(m!==null){r.push(u);const v=n.get(m)||{refs:[],i:0};if(v.refs.length===v.i)c(m,Pa(t,m)),h();else{u=v.refs[v.i++];continue}}else(p===0||p<u.length)&&(u.integrate(e,p),f.set(u.id.client,u.id.clock+u.length))}}if(r.length>0)u=r.pop();else if(s!==null&&s.i<s.refs.length)u=s.refs[s.i++];else{if(s=o(),s===null)break;u=s.refs[s.i++]}}if(a.clients.size>0){const g=new IC;return nge(g,a,new Map),or(g.restEncoder,0),{missing:l,update:g.toUint8Array()}}return null},Fwt=(e,t)=>nge(e,t.doc.store,t.beforeState),Nwt=(e,t,n,r=new Yw(e))=>wo(t,i=>{i.local=!1;let o=!1;const s=i.doc,a=s.store,l=Dwt(r,s),c=Lwt(i,a,l),u=a.pendingStructs;if(u){for(const[h,g]of u.missing)if(g<Pa(a,h)){o=!0;break}if(c){for(const[h,g]of c.missing){const p=u.missing.get(h);(p==null||p>g)&&u.missing.set(h,g)}u.update=oz([u.update,c.update])}}else a.pendingStructs=c;const f=Xbe(r,i,a);if(a.pendingDs){const h=new Yw(m3(a.pendingDs));Lr(h.restDecoder);const g=Xbe(h,i,a);f&&g?a.pendingDs=oz([f,g]):a.pendingDs=f||g}else a.pendingDs=f;if(o){const h=a.pendingStructs.update;a.pendingStructs=null,gHe(i.doc,h)}},n,!1),gHe=(e,t,n,r=Yw)=>{const i=m3(t);Nwt(i,e,n,new r(i))},kwt=(e,t,n)=>gHe(e,t,n,dHe),zwt=(e,t,n=new Map)=>{nge(e,t.store,n),Dx(e,Pwt(t.store))},Bwt=(e,t=new Uint8Array([0]),n=new IC)=>{const r=pHe(t);zwt(n,e,r);const i=[n.toUint8Array()];if(e.store.pendingDs&&i.push(e.store.pendingDs),e.store.pendingStructs&&i.push(n7t(e.store.pendingStructs.update,t)),i.length>1){if(n.constructor===HI)return e7t(i.map((o,s)=>s===0?o:i7t(o)));if(n.constructor===IC)return oz(i)}return i[0]},Hwt=(e,t)=>Bwt(e,t,new HI),jwt=e=>{const t=new Map,n=Lr(e.restDecoder);for(let r=0;r<n;r++){const i=Lr(e.restDecoder),o=Lr(e.restDecoder);t.set(i,o)}return t},pHe=e=>jwt(new uHe(m3(e))),mHe=(e,t)=>(or(e.restEncoder,t.size),_0(t.entries()).sort((n,r)=>r[0]-n[0]).forEach(([n,r])=>{or(e.restEncoder,n),or(e.restEncoder,r)}),e),Vwt=(e,t)=>mHe(e,pj(t.store)),Gwt=(e,t=new hHe)=>(e instanceof Map?mHe(t,e):Vwt(t,e),t.toUint8Array()),Wwt=e=>Gwt(e,new fHe);class Uwt{constructor(){this.l=[]}}const Qbe=()=>new Uwt,Zbe=(e,t)=>e.l.push(t),Jbe=(e,t)=>{const n=e.l,r=n.length;e.l=n.filter(i=>t!==i),r===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},vHe=(e,t,n)=>Yhe(e.l,[t,n]);class US{constructor(t,n){this.client=t,this.clock=n}}const sD=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,Ri=(e,t)=>new US(e,t),qwt=e=>{for(const[t,n]of e.doc.share.entries())if(n===e)return t;throw wm()},K5=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!lHe(t.ds,e.id),eae=(e,t)=>{const n=Vm(e.meta,eae,V4),r=e.doc.store;n.has(t)||(t.sv.forEach((i,o)=>{i<Pa(r,o)&&U4(e,Ri(o,i))}),aHe(e,t.ds,i=>{}),n.add(t))};class CHe{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const pj=e=>{const t=new Map;return e.clients.forEach((n,r)=>{const i=n[n.length-1];t.set(r,i.id.clock+i.length)}),t},Pa=(e,t)=>{const n=e.clients.get(t);if(n===void 0)return 0;const r=n[n.length-1];return r.id.clock+r.length},yHe=(e,t)=>{let n=e.clients.get(t.id.client);if(n===void 0)n=[],e.clients.set(t.id.client,n);else{const r=n[n.length-1];if(r.id.clock+r.length!==t.id.clock)throw wm()}n.push(t)},xm=(e,t)=>{let n=0,r=e.length-1,i=e[r],o=i.id.clock;if(o===t)return r;let s=j4(t/(o+i.length-1)*r);for(;n<=r;){if(i=e[s],o=i.id.clock,o<=t){if(t<o+i.length)return s;n=s+1}else r=s-1;s=j4((n+r)/2)}throw wm()},Kwt=(e,t)=>{const n=e.clients.get(t.client);return n[xm(n,t.clock)]},aee=Kwt,tae=(e,t,n)=>{const r=xm(t,n),i=t[r];return i.id.clock<n&&i instanceof zl?(t.splice(r+1,0,dz(e,i,n-i.id.clock)),r+1):r},U4=(e,t)=>{const n=e.doc.store.clients.get(t.client);return n[tae(e,n,t.clock)]},e5e=(e,t,n)=>{const r=t.clients.get(n.client),i=xm(r,n.clock),o=r[i];return n.clock!==o.id.clock+o.length-1&&o.constructor!==Of&&r.splice(i+1,0,dz(e,o,n.clock-o.id.clock+1)),o},Ywt=(e,t,n)=>{const r=e.clients.get(t.id.client);r[xm(r,t.id.clock)]=n},bHe=(e,t,n,r,i)=>{if(r===0)return;const o=n+r;let s=tae(e,t,n),a;do a=t[s++],o<a.id.clock+a.length&&tae(e,t,o),i(a);while(s<t.length&&t[s].id.clock<o)};class Xwt{constructor(t,n,r){this.doc=t,this.deleteSet=new BI,this.beforeState=pj(t.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=n,this.meta=new Map,this.local=r,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const t5e=(e,t)=>t.deleteSet.clients.size===0&&!LSt(t.afterState,(n,r)=>t.beforeState.get(r)!==n)?!1:(ege(t.deleteSet),Fwt(e,t),Dx(e,t.deleteSet),!0),n5e=(e,t,n)=>{const r=t._item;(r===null||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&Vm(e.changed,t,V4).add(n)},XF=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0;n=r,r=e[--i-1]){if(r.deleted===n.deleted&&r.constructor===n.constructor&&r.mergeWith(n)){n instanceof zl&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r);continue}break}const o=t-i;return o&&e.splice(t+1-o,o),o},Qwt=(e,t,n)=>{for(const[r,i]of e.clients.entries()){const o=t.clients.get(r);for(let s=i.length-1;s>=0;s--){const a=i[s],l=a.clock+a.len;for(let c=xm(o,a.clock),u=o[c];c<o.length&&u.id.clock<l;u=o[++c]){const f=o[c];if(a.clock+a.len<=f.id.clock)break;f instanceof zl&&f.deleted&&!f.keep&&n(f)&&f.gc(t,!1)}}}},Zwt=(e,t)=>{e.clients.forEach((n,r)=>{const i=t.clients.get(r);for(let o=n.length-1;o>=0;o--){const s=n[o],a=Vhe(i.length-1,1+xm(i,s.clock+s.len-1));for(let l=a,c=i[l];l>0&&c.id.clock>=s.clock;c=i[l])l-=1+XF(i,l)}})},SHe=(e,t)=>{if(t<e.length){const n=e[t],r=n.doc,i=r.store,o=n.deleteSet,s=n._mergeStructs;try{ege(o),n.afterState=pj(n.doc.store),r.emit("beforeObserverCalls",[n,r]);const a=[];n.changed.forEach((l,c)=>a.push(()=>{(c._item===null||!c._item.deleted)&&c._callObserver(n,l)})),a.push(()=>{n.changedParentTypes.forEach((l,c)=>{c._dEH.l.length>0&&(c._item===null||!c._item.deleted)&&(l=l.filter(u=>u.target._item===null||!u.target._item.deleted),l.forEach(u=>{u.currentTarget=c,u._path=null}),l.sort((u,f)=>u.path.length-f.path.length),vHe(c._dEH,l,n))})}),a.push(()=>r.emit("afterTransaction",[n,r])),Yhe(a,[]),n._needFormattingCleanup&&C7t(n)}finally{r.gc&&Qwt(o,i,r.gcFilter),Zwt(o,i),n.afterState.forEach((u,f)=>{const h=n.beforeState.get(f)||0;if(h!==u){const g=i.clients.get(f),p=Ty(xm(g,h),1);for(let m=g.length-1;m>=p;)m-=1+XF(g,m)}});for(let u=s.length-1;u>=0;u--){const{client:f,clock:h}=s[u].id,g=i.clients.get(f),p=xm(g,h);p+1<g.length&&XF(g,p+1)>1||p>0&&XF(g,p)}if(!n.local&&n.afterState.get(r.clientID)!==n.beforeState.get(r.clientID)&&(Rwt(Zhe,tHe,"[yjs] ",nHe,rHe,"Changed the client-id because another client seems to be using it."),r.clientID=cHe()),r.emit("afterTransactionCleanup",[n,r]),r._observers.has("update")){const u=new HI;t5e(u,n)&&r.emit("update",[u.toUint8Array(),n.origin,r,n])}if(r._observers.has("updateV2")){const u=new IC;t5e(u,n)&&r.emit("updateV2",[u.toUint8Array(),n.origin,r,n])}const{subdocsAdded:a,subdocsLoaded:l,subdocsRemoved:c}=n;(a.size>0||c.size>0||l.size>0)&&(a.forEach(u=>{u.clientID=r.clientID,u.collectionid==null&&(u.collectionid=r.collectionid),r.subdocs.add(u)}),c.forEach(u=>r.subdocs.delete(u)),r.emit("subdocs",[{loaded:l,added:a,removed:c},r,n]),c.forEach(u=>u.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,e])):SHe(e,t+1)}}},wo=(e,t,n=null,r=!0)=>{const i=e._transactionCleanups;let o=!1,s=null;e._transaction===null&&(o=!0,e._transaction=new Xwt(e,n,r),i.push(e._transaction),i.length===1&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{s=t(e._transaction)}finally{if(o){const a=e._transaction===i[0];e._transaction=null,a&&SHe(i,0)}}return s};function*Jwt(e){const t=Lr(e.restDecoder);for(let n=0;n<t;n++){const r=Lr(e.restDecoder),i=e.readClient();let o=Lr(e.restDecoder);for(let s=0;s<r;s++){const a=e.readInfo();if(a===10){const l=Lr(e.restDecoder);yield new Tf(Ri(i,o),l),o+=l}else if(fj&a){const l=(a&(g0|ud))===0,c=new zl(Ri(i,o),null,(a&ud)===ud?e.readLeftID():null,null,(a&g0)===g0?e.readRightID():null,l?e.readParentInfo()?e.readString():e.readLeftID():null,l&&(a&sT)===sT?e.readString():null,zHe(e,a));yield c,o+=c.length}else{const l=e.readLen();yield new Of(Ri(i,o),l),o+=l}}}}class rge{constructor(t,n){this.gen=Jwt(t),this.curr=null,this.done=!1,this.filterSkips=n,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===Tf);return this.curr}}class ige{constructor(t){this.currClient=0,this.startClock=0,this.written=0,this.encoder=t,this.clientStructs=[]}}const e7t=e=>oz(e,dHe,HI),t7t=(e,t)=>{if(e.constructor===Of){const{client:n,clock:r}=e.id;return new Of(Ri(n,r+t),e.length-t)}else if(e.constructor===Tf){const{client:n,clock:r}=e.id;return new Tf(Ri(n,r+t),e.length-t)}else{const n=e,{client:r,clock:i}=n.id;return new zl(Ri(r,i+t),null,Ri(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},oz=(e,t=Yw,n=IC)=>{if(e.length===1)return e[0];const r=e.map(u=>new t(m3(u)));let i=r.map(u=>new rge(u,!0)),o=null;const s=new n,a=new ige(s);for(;i=i.filter(h=>h.curr!==null),i.sort((h,g)=>{if(h.curr.id.client===g.curr.id.client){const p=h.curr.id.clock-g.curr.id.clock;return p===0?h.curr.constructor===g.curr.constructor?0:h.curr.constructor===Tf?1:-1:p}else return g.curr.id.client-h.curr.id.client}),i.length!==0;){const u=i[0],f=u.curr.id.client;if(o!==null){let h=u.curr,g=!1;for(;h!==null&&h.id.clock+h.length<=o.struct.id.clock+o.struct.length&&h.id.client>=o.struct.id.client;)h=u.next(),g=!0;if(h===null||h.id.client!==f||g&&h.id.clock>o.struct.id.clock+o.struct.length)continue;if(f!==o.struct.id.client)N2(a,o.struct,o.offset),o={struct:h,offset:0},u.next();else if(o.struct.id.clock+o.struct.length<h.id.clock)if(o.struct.constructor===Tf)o.struct.length=h.id.clock+h.length-o.struct.id.clock;else{N2(a,o.struct,o.offset);const p=h.id.clock-o.struct.id.clock-o.struct.length;o={struct:new Tf(Ri(f,o.struct.id.clock+o.struct.length),p),offset:0}}else{const p=o.struct.id.clock+o.struct.length-h.id.clock;p>0&&(o.struct.constructor===Tf?o.struct.length-=p:h=t7t(h,p)),o.struct.mergeWith(h)||(N2(a,o.struct,o.offset),o={struct:h,offset:0},u.next())}}else o={struct:u.curr,offset:0},u.next();for(let h=u.curr;h!==null&&h.id.client===f&&h.id.clock===o.struct.id.clock+o.struct.length&&h.constructor!==Tf;h=u.next())N2(a,o.struct,o.offset),o={struct:h,offset:0}}o!==null&&(N2(a,o.struct,o.offset),o=null),oge(a);const l=r.map(u=>tge(u)),c=Iwt(l);return Dx(s,c),s.toUint8Array()},n7t=(e,t,n=Yw,r=IC)=>{const i=pHe(t),o=new r,s=new ige(o),a=new n(m3(e)),l=new rge(a,!1);for(;l.curr;){const u=l.curr,f=u.id.client,h=i.get(f)||0;if(l.curr.constructor===Tf){l.next();continue}if(u.id.clock+u.length>h)for(N2(s,u,Ty(h-u.id.clock,0)),l.next();l.curr&&l.curr.id.client===f;)N2(s,l.curr,0),l.next();else for(;l.curr&&l.curr.id.client===f&&l.curr.id.clock+l.curr.length<=h;)l.next()}oge(s);const c=tge(a);return Dx(o,c),o.toUint8Array()},wHe=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:zo(e.encoder.restEncoder)}),e.encoder.restEncoder=Il(),e.written=0)},N2=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&wHe(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),or(e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},oge=e=>{wHe(e);const t=e.encoder.restEncoder;or(t,e.clientStructs.length);for(let n=0;n<e.clientStructs.length;n++){const r=e.clientStructs[n];or(t,r.written),hj(t,r.restEncoder)}},r7t=(e,t,n,r)=>{const i=new n(m3(e)),o=new rge(i,!1),s=new r,a=new ige(s);for(let c=o.curr;c!==null;c=o.next())N2(a,t(c),0);oge(a);const l=tge(i);return Dx(s,l),s.toUint8Array()},i7t=e=>r7t(e,GSt,Yw,HI),r5e="You must not compute changes after the event-handler fired.";class mj{constructor(t,n){this.target=t,this.currentTarget=t,this.transaction=n,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=o7t(this.currentTarget,this.target))}deletes(t){return lHe(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw G4(r5e);const t=new Map,n=this.target;this.transaction.changed.get(n).forEach(i=>{if(i!==null){const o=n._map.get(i);let s,a;if(this.adds(o)){let l=o.left;for(;l!==null&&this.adds(l);)l=l.left;if(this.deletes(o))if(l!==null&&this.deletes(l))s="delete",a=ree(l.content.getContent());else return;else l!==null&&this.deletes(l)?(s="update",a=ree(l.content.getContent())):(s="add",a=void 0)}else if(this.deletes(o))s="delete",a=ree(o.content.getContent());else return;t.set(i,{action:s,oldValue:a})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){if(this.transaction.doc._transactionCleanups.length===0)throw G4(r5e);const n=this.target,r=V4(),i=V4(),o=[];if(t={added:r,deleted:i,delta:o,keys:this.keys},this.transaction.changed.get(n).has(null)){let a=null;const l=()=>{a&&o.push(a)};for(let c=n._start;c!==null;c=c.right)c.deleted?this.deletes(c)&&!this.adds(c)&&((a===null||a.delete===void 0)&&(l(),a={delete:0}),a.delete+=c.length,i.add(c)):this.adds(c)?((a===null||a.insert===void 0)&&(l(),a={insert:[]}),a.insert=a.insert.concat(c.content.getContent()),r.add(c)):((a===null||a.retain===void 0)&&(l(),a={retain:0}),a.retain+=c.length);a!==null&&a.retain===void 0&&l()}this._changes=t}return t}}const o7t=(e,t)=>{const n=[];for(;t._item!==null&&t!==e;){if(t._item.parentSub!==null)n.unshift(t._item.parentSub);else{let r=0,i=t._item.parent._start;for(;i!==t._item&&i!==null;)!i.deleted&&i.countable&&(r+=i.length),i=i.right;n.unshift(r)}t=t._item.parent}return n},Vl=()=>{$wt("Invalid access: Add Yjs type to a document before reading data.")},xHe=80;let sge=0;class s7t{constructor(t,n){t.marker=!0,this.p=t,this.index=n,this.timestamp=sge++}}const a7t=e=>{e.timestamp=sge++},EHe=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=sge++},l7t=(e,t,n)=>{if(e.length>=xHe){const r=e.reduce((i,o)=>i.timestamp<o.timestamp?i:o);return EHe(r,t,n),r}else{const r=new s7t(t,n);return e.push(r),r}},vj=(e,t)=>{if(e._start===null||t===0||e._searchMarker===null)return null;const n=e._searchMarker.length===0?null:e._searchMarker.reduce((o,s)=>qF(t-o.index)<qF(t-s.index)?o:s);let r=e._start,i=0;for(n!==null&&(r=n.p,i=n.index,a7t(n));r.right!==null&&i<t;){if(!r.deleted&&r.countable){if(t<i+r.length)break;i+=r.length}r=r.right}for(;r.left!==null&&i>t;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);for(;r.left!==null&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return n!==null&&qF(n.index-i)<r.parent.length/xHe?(EHe(n,r,i),n):l7t(e._searchMarker,r,i)},uT=(e,t,n)=>{for(let r=e.length-1;r>=0;r--){const i=e[r];if(n>0){let o=i.p;for(o.marker=!1;o&&(o.deleted||!o.countable);)o=o.left,o&&!o.deleted&&o.countable&&(i.index-=o.length);if(o===null||o.marker===!0){e.splice(r,1);continue}i.p=o,o.marker=!0}(t<i.index||n>0&&t===i.index)&&(i.index=Ty(t,i.index+n))}},Cj=(e,t,n)=>{const r=e,i=t.changedParentTypes;for(;Vm(i,e,()=>[]).push(n),e._item!==null;)e=e._item.parent;vHe(r._eH,n,t)};class ol{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=Qbe(),this._dEH=Qbe(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,n){this.doc=t,this._item=n}_copy(){throw sm()}clone(){throw sm()}_write(t){}get _first(){let t=this._start;for(;t!==null&&t.deleted;)t=t.right;return t}_callObserver(t,n){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){Zbe(this._eH,t)}observeDeep(t){Zbe(this._dEH,t)}unobserve(t){Jbe(this._eH,t)}unobserveDeep(t){Jbe(this._dEH,t)}toJSON(){}}const RHe=(e,t,n)=>{e.doc??Vl(),t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t;const i=[];let o=e._start;for(;o!==null&&r>0;){if(o.countable&&!o.deleted){const s=o.content.getContent();if(s.length<=t)t-=s.length;else{for(let a=t;a<s.length&&r>0;a++)i.push(s[a]),r--;t=0}}o=o.right}return i},$He=e=>{e.doc??Vl();const t=[];let n=e._start;for(;n!==null;){if(n.countable&&!n.deleted){const r=n.content.getContent();for(let i=0;i<r.length;i++)t.push(r[i])}n=n.right}return t},dT=(e,t)=>{let n=0,r=e._start;for(e.doc??Vl();r!==null;){if(r.countable&&!r.deleted){const i=r.content.getContent();for(let o=0;o<i.length;o++)t(i[o],n++,e)}r=r.right}},OHe=(e,t)=>{const n=[];return dT(e,(r,i)=>{n.push(t(r,i,e))}),n},c7t=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}const i=n[r++];return n.length<=r&&(n=null),{done:!1,value:i}}}},THe=(e,t)=>{e.doc??Vl();const n=vj(e,t);let r=e._start;for(n!==null&&(r=n.p,t-=n.index);r!==null;r=r.right)if(!r.deleted&&r.countable){if(t<r.length)return r.content.getContent()[t];t-=r.length}},sz=(e,t,n,r)=>{let i=n;const o=e.doc,s=o.clientID,a=o.store,l=n===null?t._start:n.right;let c=[];const u=()=>{c.length>0&&(i=new zl(Ri(s,Pa(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new PC(c)),i.integrate(e,0),c=[])};r.forEach(f=>{if(f===null)c.push(f);else switch(f.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(f);break;default:switch(u(),f.constructor){case Uint8Array:case ArrayBuffer:i=new zl(Ri(s,Pa(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new jI(new Uint8Array(f))),i.integrate(e,0);break;case Lx:i=new zl(Ri(s,Pa(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new VI(f)),i.integrate(e,0);break;default:if(f instanceof ol)i=new zl(Ri(s,Pa(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new ev(f)),i.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),u()},IHe=()=>G4("Length exceeded!"),MHe=(e,t,n,r)=>{if(n>t._length)throw IHe();if(n===0)return t._searchMarker&&uT(t._searchMarker,n,r.length),sz(e,t,null,r);const i=n,o=vj(t,n);let s=t._start;for(o!==null&&(s=o.p,n-=o.index,n===0&&(s=s.prev,n+=s&&s.countable&&!s.deleted?s.length:0));s!==null;s=s.right)if(!s.deleted&&s.countable){if(n<=s.length){n<s.length&&U4(e,Ri(s.id.client,s.id.clock+n));break}n-=s.length}return t._searchMarker&&uT(t._searchMarker,i,r.length),sz(e,t,s,r)},u7t=(e,t,n)=>{let i=(t._searchMarker||[]).reduce((o,s)=>s.index>o.index?s:o,{index:0,p:t._start}).p;if(i)for(;i.right;)i=i.right;return sz(e,t,i,n)},PHe=(e,t,n,r)=>{if(r===0)return;const i=n,o=r,s=vj(t,n);let a=t._start;for(s!==null&&(a=s.p,n-=s.index);a!==null&&n>0;a=a.right)!a.deleted&&a.countable&&(n<a.length&&U4(e,Ri(a.id.client,a.id.clock+n)),n-=a.length);for(;r>0&&a!==null;)a.deleted||(r<a.length&&U4(e,Ri(a.id.client,a.id.clock+r)),a.delete(e),r-=a.length),a=a.right;if(r>0)throw IHe();t._searchMarker&&uT(t._searchMarker,i,-o+r)},az=(e,t,n)=>{const r=t._map.get(n);r!==void 0&&r.delete(e)},age=(e,t,n,r)=>{const i=t._map.get(n)||null,o=e.doc,s=o.clientID;let a;if(r==null)a=new PC([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:a=new PC([r]);break;case Uint8Array:a=new jI(r);break;case Lx:a=new VI(r);break;default:if(r instanceof ol)a=new ev(r);else throw new Error("Unexpected content type")}new zl(Ri(s,Pa(o.store,s)),i,i&&i.lastId,null,null,t,n,a).integrate(e,0)},lge=(e,t)=>{e.doc??Vl();const n=e._map.get(t);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},_He=e=>{const t={};return e.doc??Vl(),e._map.forEach((n,r)=>{n.deleted||(t[r]=n.content.getContent()[n.length-1])}),t},AHe=(e,t)=>{e.doc??Vl();const n=e._map.get(t);return n!==void 0&&!n.deleted},d7t=(e,t)=>{const n={};return e._map.forEach((r,i)=>{let o=r;for(;o!==null&&(!t.sv.has(o.id.client)||o.id.clock>=(t.sv.get(o.id.client)||0));)o=o.left;o!==null&&K5(o,t)&&(n[i]=o.content.getContent()[o.length-1])}),n},aD=e=>(e.doc??Vl(),Owt(e._map.entries(),t=>!t[1].deleted));class f7t extends mj{}class qS extends ol{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){const n=new qS;return n.push(t),n}_integrate(t,n){super._integrate(t,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new qS}clone(){const t=new qS;return t.insert(0,this.toArray().map(n=>n instanceof ol?n.clone():n)),t}get length(){return this.doc??Vl(),this._length}_callObserver(t,n){super._callObserver(t,n),Cj(this,t,new f7t(this,t))}insert(t,n){this.doc!==null?wo(this.doc,r=>{MHe(r,this,t,n)}):this._prelimContent.splice(t,0,...n)}push(t){this.doc!==null?wo(this.doc,n=>{u7t(n,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,n=1){this.doc!==null?wo(this.doc,r=>{PHe(r,this,t,n)}):this._prelimContent.splice(t,n)}get(t){return THe(this,t)}toArray(){return $He(this)}slice(t=0,n=this.length){return RHe(this,t,n)}toJSON(){return this.map(t=>t instanceof ol?t.toJSON():t)}map(t){return OHe(this,t)}forEach(t){dT(this,t)}[Symbol.iterator](){return c7t(this)}_write(t){t.writeTypeRef(N7t)}}const h7t=e=>new qS;class g7t extends mj{constructor(t,n,r){super(t,n),this.keysChanged=r}}class Xw extends ol{constructor(t){super(),this._prelimContent=null,t===void 0?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,n){super._integrate(t,n),this._prelimContent.forEach((r,i)=>{this.set(i,r)}),this._prelimContent=null}_copy(){return new Xw}clone(){const t=new Xw;return this.forEach((n,r)=>{t.set(r,n instanceof ol?n.clone():n)}),t}_callObserver(t,n){Cj(this,t,new g7t(this,t,n))}toJSON(){this.doc??Vl();const t={};return this._map.forEach((n,r)=>{if(!n.deleted){const i=n.content.getContent()[n.length-1];t[r]=i instanceof ol?i.toJSON():i}}),t}get size(){return[...aD(this)].length}keys(){return see(aD(this),t=>t[0])}values(){return see(aD(this),t=>t[1].content.getContent()[t[1].length-1])}entries(){return see(aD(this),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this.doc??Vl(),this._map.forEach((n,r)=>{n.deleted||t(n.content.getContent()[n.length-1],r,this)})}[Symbol.iterator](){return this.entries()}delete(t){this.doc!==null?wo(this.doc,n=>{az(n,this,t)}):this._prelimContent.delete(t)}set(t,n){return this.doc!==null?wo(this.doc,r=>{age(r,this,t,n)}):this._prelimContent.set(t,n),n}get(t){return lge(this,t)}has(t){return AHe(this,t)}clear(){this.doc!==null?wo(this.doc,t=>{this.forEach(function(n,r,i){az(t,i,r)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef(k7t)}}const p7t=e=>new Xw,J2=(e,t)=>e===t||typeof e=="object"&&typeof t=="object"&&e&&t&&jSt(e,t);class nae{constructor(t,n,r,i){this.left=t,this.right=n,this.index=r,this.currentAttributes=i}forward(){switch(this.right===null&&wm(),this.right.content.constructor){case sa:this.right.deleted||Fx(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const i5e=(e,t,n)=>{for(;t.right!==null&&n>0;){switch(t.right.content.constructor){case sa:t.right.deleted||Fx(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n<t.right.length&&U4(e,Ri(t.right.id.client,t.right.id.clock+n)),t.index+=t.right.length,n-=t.right.length);break}t.left=t.right,t.right=t.right.right}return t},lD=(e,t,n,r)=>{const i=new Map,o=r?vj(t,n):null;if(o){const s=new nae(o.p.left,o.p,o.index,i);return i5e(e,s,n-o.index)}else{const s=new nae(null,t._start,0,i);return i5e(e,s,n)}},DHe=(e,t,n,r)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===sa&&J2(r.get(n.right.content.key),n.right.content.value));)n.right.deleted||r.delete(n.right.content.key),n.forward();const i=e.doc,o=i.clientID;r.forEach((s,a)=>{const l=n.left,c=n.right,u=new zl(Ri(o,Pa(i.store,o)),l,l&&l.lastId,c,c&&c.id,t,null,new sa(a,s));u.integrate(e,0),n.right=u,n.forward()})},Fx=(e,t)=>{const{key:n,value:r}=t;r===null?e.delete(n):e.set(n,r)},LHe=(e,t)=>{for(;e.right!==null;){if(!(e.right.deleted||e.right.content.constructor===sa&&J2(t[e.right.content.key]??null,e.right.content.value)))break;e.forward()}},FHe=(e,t,n,r)=>{const i=e.doc,o=i.clientID,s=new Map;for(const a in r){const l=r[a],c=n.currentAttributes.get(a)??null;if(!J2(c,l)){s.set(a,c);const{left:u,right:f}=n;n.right=new zl(Ri(o,Pa(i.store,o)),u,u&&u.lastId,f,f&&f.id,t,null,new sa(a,l)),n.right.integrate(e,0),n.forward()}}return s},lee=(e,t,n,r,i)=>{n.currentAttributes.forEach((h,g)=>{i[g]===void 0&&(i[g]=null)});const o=e.doc,s=o.clientID;LHe(n,i);const a=FHe(e,t,n,i),l=r.constructor===String?new Em(r):r instanceof ol?new ev(r):new Iy(r);let{left:c,right:u,index:f}=n;t._searchMarker&&uT(t._searchMarker,n.index,l.getLength()),u=new zl(Ri(s,Pa(o.store,s)),c,c&&c.lastId,u,u&&u.id,t,null,l),u.integrate(e,0),n.right=u,n.index=f,n.forward(),DHe(e,t,n,a)},o5e=(e,t,n,r,i)=>{const o=e.doc,s=o.clientID;LHe(n,i);const a=FHe(e,t,n,i);e:for(;n.right!==null&&(r>0||a.size>0&&(n.right.deleted||n.right.content.constructor===sa));){if(!n.right.deleted)switch(n.right.content.constructor){case sa:{const{key:l,value:c}=n.right.content,u=i[l];if(u!==void 0){if(J2(u,c))a.delete(l);else{if(r===0)break e;a.set(l,c)}n.right.delete(e)}else n.currentAttributes.set(l,c);break}default:r<n.right.length&&U4(e,Ri(n.right.id.client,n.right.id.clock+r)),r-=n.right.length;break}n.forward()}if(r>0){let l="";for(;r>0;r--)l+=`
|
||
`;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.forEach(r=>r())}catch(r){console.error(r)}this._pending=null}_copy(){return new Qw}clone(){const t=new Qw;return t.applyDelta(this.toDelta()),t}_callObserver(t,n){super._callObserver(t,n);const r=new y7t(this,t,n);Cj(this,t,r),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){this.doc??Vl();let t="",n=this._start;for(;n!==null;)!n.deleted&&n.countable&&n.content.constructor===Em&&(t+=n.content.str),n=n.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:n=!0}={}){this.doc!==null?wo(this.doc,r=>{const i=new nae(null,this._start,0,new Map);for(let o=0;o<t.length;o++){const s=t[o];if(s.insert!==void 0){const a=!n&&typeof s.insert=="string"&&o===t.length-1&&i.right===null&&s.insert.slice(-1)===`
|
||
`?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,this,i,n)});else{const r=this._prelimContent,i=t===null?0:r.findIndex(o=>o===t)+1;if(i===0&&t!==null)throw G4("Reference item not found");r.splice(i,0,...n)}}delete(t,n=1){this.doc!==null?wo(this.doc,r=>{PHe(r,this,t,n)}):this._prelimContent.splice(t,n)}toArray(){return $He(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return THe(this,t)}slice(t=0,n=this.length){return RHe(this,t,n)}forEach(t){dT(this,t)}_write(t){t.writeTypeRef(H7t)}}const S7t=e=>new MC;class Zw extends MC{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,n){super._integrate(t,n),this._prelimAttrs.forEach((r,i)=>{this.setAttribute(i,r)}),this._prelimAttrs=null}_copy(){return new Zw(this.nodeName)}clone(){const t=new Zw(this.nodeName),n=this.getAttributes();return kSt(n,(r,i)=>{typeof r=="string"&&t.setAttribute(i,r)}),t.insert(0,this.toArray().map(r=>r instanceof ol?r.clone():r)),t}toString(){const t=this.getAttributes(),n=[],r=[];for(const a in t)r.push(a);r.sort();const i=r.length;for(let a=0;a<i;a++){const l=r[a];n.push(l+'="'+t[l]+'"')}const o=this.nodeName.toLocaleLowerCase(),s=n.length>0?" "+n.join(" "):"";return`<${o}${s}>${super.toString()}</${o}>`}removeAttribute(t){this.doc!==null?wo(this.doc,n=>{az(n,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,n){this.doc!==null?wo(this.doc,r=>{age(r,this,t,n)}):this._prelimAttrs.set(t,n)}getAttribute(t){return lge(this,t)}hasAttribute(t){return AHe(this,t)}getAttributes(t){return t?d7t(this,t):_He(this)}toDOM(t=document,n={},r){const i=t.createElement(this.nodeName),o=this.getAttributes();for(const s in o){const a=o[s];typeof a=="string"&&i.setAttribute(s,a)}return dT(this,s=>{i.appendChild(s.toDOM(t,n,r))}),r!==void 0&&r._createAssociation(i,this),i}_write(t){t.writeTypeRef(B7t),t.writeKey(this.nodeName)}}const w7t=e=>new Zw(e.readKey());class x7t extends mj{constructor(t,n,r){super(t,r),this.childListChanged=!1,this.attributesChanged=new Set,n.forEach(i=>{i===null?this.childListChanged=!0:this.attributesChanged.add(i)})}}class lz extends Xw{constructor(t){super(),this.hookName=t}_copy(){return new lz(this.hookName)}clone(){const t=new lz(this.hookName);return this.forEach((n,r)=>{t.set(r,n)}),t}toDOM(t=document,n={},r){const i=n[this.hookName];let o;return i!==void 0?o=i.createDom(this):o=document.createElement(this.hookName),o.setAttribute("data-yjs-hook",this.hookName),r!==void 0&&r._createAssociation(o,this),o}_write(t){t.writeTypeRef(j7t),t.writeKey(this.hookName)}}const E7t=e=>new lz(e.readKey());class cz extends Qw{get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new cz}clone(){const t=new cz;return t.applyDelta(this.toDelta()),t}toDOM(t=document,n,r){const i=t.createTextNode(this.toString());return r!==void 0&&r._createAssociation(i,this),i}toString(){return this.toDelta().map(t=>{const n=[];for(const i in t.attributes){const o=[];for(const s in t.attributes[i])o.push({key:s,value:t.attributes[i][s]});o.sort((s,a)=>s.key<a.key?-1:1),n.push({nodeName:i,attrs:o})}n.sort((i,o)=>i.nodeName<o.nodeName?-1:1);let r="";for(let i=0;i<n.length;i++){const o=n[i];r+=`<${o.nodeName}`;for(let s=0;s<o.attrs.length;s++){const a=o.attrs[s];r+=` ${a.key}="${a.value}"`}r+=">"}r+=t.insert;for(let i=n.length-1;i>=0;i--)r+=`</${n[i].nodeName}>`;return r}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(V7t)}}const R7t=e=>new cz;class cge{constructor(t,n){this.id=t,this.length=n}get deleted(){throw sm()}mergeWith(t){return!1}write(t,n,r){throw sm()}integrate(t,n){throw sm()}}const $7t=0;class Of extends cge{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,n){n>0&&(this.id.clock+=n,this.length-=n),yHe(t.doc.store,this)}write(t,n){t.writeInfo($7t),t.writeLen(this.length-n)}getMissing(t,n){return null}}class jI{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new jI(this.content)}splice(t){throw sm()}mergeWith(t){return!1}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeBuf(this.content)}getRef(){return 3}}const O7t=e=>new jI(e.readBuf());class fT{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new fT(this.len)}splice(t){const n=new fT(this.len-t);return this.len=t,n}mergeWith(t){return this.len+=t.len,!0}integrate(t,n){iz(t.deleteSet,n.id.client,n.id.clock,this.len),n.markDeleted()}delete(t){}gc(t){}write(t,n){t.writeLen(this.len-n)}getRef(){return 1}}const T7t=e=>new fT(e.readLen()),kHe=(e,t)=>new Lx({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class VI{constructor(t){t._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=t;const n={};this.opts=n,t.gc||(n.gc=!1),t.autoLoad&&(n.autoLoad=!0),t.meta!==null&&(n.meta=t.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new VI(kHe(this.doc.guid,this.opts))}splice(t){throw sm()}mergeWith(t){return!1}integrate(t,n){this.doc._item=n,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,n){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}}const I7t=e=>new VI(kHe(e.readString(),e.readAny()));class Iy{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new Iy(this.embed)}splice(t){throw sm()}mergeWith(t){return!1}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeJSON(this.embed)}getRef(){return 5}}const M7t=e=>new Iy(e.readJSON());class sa{constructor(t,n){this.key=t,this.value=n}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new sa(this.key,this.value)}splice(t){throw sm()}mergeWith(t){return!1}integrate(t,n){const r=n.parent;r._searchMarker=null,r._hasFormatting=!0}delete(t){}gc(t){}write(t,n){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}}const P7t=e=>new sa(e.readKey(),e.readJSON());class uz{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new uz(this.arr)}splice(t){const n=new uz(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){const r=this.arr.length;t.writeLen(r-n);for(let i=n;i<r;i++){const o=this.arr[i];t.writeString(o===void 0?"undefined":JSON.stringify(o))}}getRef(){return 2}}const _7t=e=>{const t=e.readLen(),n=[];for(let r=0;r<t;r++){const i=e.readString();i==="undefined"?n.push(void 0):n.push(JSON.parse(i))}return new uz(n)},A7t=rz("node_env")==="development";class PC{constructor(t){this.arr=t,A7t&&UBe(t)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new PC(this.arr)}splice(t){const n=new PC(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){const r=this.arr.length;t.writeLen(r-n);for(let i=n;i<r;i++){const o=this.arr[i];t.writeAny(o)}}getRef(){return 8}}const D7t=e=>{const t=e.readLen(),n=[];for(let r=0;r<t;r++)n.push(e.readAny());return new PC(n)};class Em{constructor(t){this.str=t}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new Em(this.str)}splice(t){const n=new Em(this.str.slice(t));this.str=this.str.slice(0,t);const r=this.str.charCodeAt(t-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,t-1)+"<22>",n.str="<22>"+n.str.slice(1)),n}mergeWith(t){return this.str+=t.str,!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeString(n===0?this.str:this.str.slice(n))}getRef(){return 4}}const L7t=e=>new Em(e.readString()),F7t=[h7t,p7t,b7t,w7t,S7t,E7t,R7t],N7t=0,k7t=1,z7t=2,B7t=3,H7t=4,j7t=5,V7t=6;class ev{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new ev(this.type._copy())}splice(t){throw sm()}mergeWith(t){return!1}integrate(t,n){this.type._integrate(t.doc,n)}delete(t){let n=this.type._start;for(;n!==null;)n.deleted?n.id.clock<(t.beforeState.get(n.id.client)||0)&&t._mergeStructs.push(n):n.delete(t),n=n.right;this.type._map.forEach(r=>{r.deleted?r.id.clock<(t.beforeState.get(r.id.client)||0)&&t._mergeStructs.push(r):r.delete(t)}),t.changed.delete(this.type)}gc(t){let n=this.type._start;for(;n!==null;)n.gc(t,!0),n=n.right;this.type._start=null,this.type._map.forEach(r=>{for(;r!==null;)r.gc(t,!0),r=r.left}),this.type._map=new Map}write(t,n){this.type._write(t)}getRef(){return 7}}const G7t=e=>new ev(F7t[e.readTypeRef()](e)),dz=(e,t,n)=>{const{client:r,clock:i}=t.id,o=new zl(Ri(r,i+n),t,Ri(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&o.markDeleted(),t.keep&&(o.keep=!0),t.redone!==null&&(o.redone=Ri(t.redone.client,t.redone.clock+n)),t.right=o,o.right!==null&&(o.right.left=o),e._mergeStructs.push(o),o.parentSub!==null&&o.right===null&&o.parent._map.set(o.parentSub,o),t.length=n,o};let zl=class rae extends cge{constructor(t,n,r,i,o,s,a,l){super(t,l.getLength()),this.origin=r,this.left=n,this.right=i,this.rightOrigin=o,this.parent=s,this.parentSub=a,this.redone=null,this.content=l,this.info=this.content.isCountable()?zbe:0}set marker(t){(this.info&nee)>0!==t&&(this.info^=nee)}get marker(){return(this.info&nee)>0}get keep(){return(this.info&kbe)>0}set keep(t){this.keep!==t&&(this.info^=kbe)}get countable(){return(this.info&zbe)>0}get deleted(){return(this.info&tee)>0}set deleted(t){this.deleted!==t&&(this.info^=tee)}markDeleted(){this.info|=tee}getMissing(t,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Pa(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Pa(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===US&&this.id.client!==this.parent.client&&this.parent.clock>=Pa(n,this.parent.client))return this.parent.client;if(this.origin&&(this.left=e5e(t,n,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=U4(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===Of||this.right&&this.right.constructor===Of)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===rae&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===rae&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===US){const r=aee(n,this.parent);r.constructor===Of?this.parent=null:this.parent=r.content.type}return null}integrate(t,n){if(n>0&&(this.id.clock+=n,this.left=e5e(t,t.doc.store,Ri(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(n),this.length-=n),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let r=this.left,i;if(r!==null)i=r.right;else if(this.parentSub!==null)for(i=this.parent._map.get(this.parentSub)||null;i!==null&&i.left!==null;)i=i.left;else i=this.parent._start;const o=new Set,s=new Set;for(;i!==null&&i!==this.right;){if(s.add(i),o.add(i),sD(this.origin,i.origin)){if(i.id.client<this.id.client)r=i,o.clear();else if(sD(this.rightOrigin,i.rightOrigin))break}else if(i.origin!==null&&s.has(aee(t.doc.store,i.origin)))o.has(aee(t.doc.store,i.origin))||(r=i,o.clear());else break;i=i.right}this.left=r}if(this.left!==null){const r=this.left.right;this.right=r,this.left.right=this}else{let r;if(this.parentSub!==null)for(r=this.parent._map.get(this.parentSub)||null;r!==null&&r.left!==null;)r=r.left;else r=this.parent._start,this.parent._start=this;this.right=r}this.right!==null?this.right.left=this:this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(t)),this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),yHe(t.doc.store,this),this.content.integrate(t,this),n5e(t,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(t)}else new Of(this.id,this.length).integrate(t,0)}get next(){let t=this.right;for(;t!==null&&t.deleted;)t=t.right;return t}get prev(){let t=this.left;for(;t!==null&&t.deleted;)t=t.left;return t}get lastId(){return this.length===1?this.id:Ri(this.id.client,this.id.clock+this.length-1)}mergeWith(t){if(this.constructor===t.constructor&&sD(t.origin,this.lastId)&&this.right===t&&sD(this.rightOrigin,t.rightOrigin)&&this.id.client===t.id.client&&this.id.clock+this.length===t.id.clock&&this.deleted===t.deleted&&this.redone===null&&t.redone===null&&this.content.constructor===t.content.constructor&&this.content.mergeWith(t.content)){const n=this.parent._searchMarker;return n&&n.forEach(r=>{r.p===t&&(r.p=this,!this.deleted&&this.countable&&(r.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,this.right!==null&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){const n=this.parent;this.countable&&this.parentSub===null&&(n._length-=this.length),this.markDeleted(),iz(t.deleteSet,this.id.client,this.id.clock,this.length),n5e(t,n,this.parentSub),this.content.delete(t)}}gc(t,n){if(!this.deleted)throw wm();this.content.gc(t),n?Ywt(t,this,new Of(this.id,this.length)):this.content=new fT(this.length)}write(t,n){const r=n>0?Ri(this.id.client,this.id.clock+n-1):this.origin,i=this.rightOrigin,o=this.parentSub,s=this.content.getRef()&fj|(r===null?0:ud)|(i===null?0:g0)|(o===null?0:sT);if(t.writeInfo(s),r!==null&&t.writeLeftID(r),i!==null&&t.writeRightID(i),r===null&&i===null){const a=this.parent;if(a._item!==void 0){const l=a._item;if(l===null){const c=qwt(a);t.writeParentInfo(!0),t.writeString(c)}else t.writeParentInfo(!1),t.writeLeftID(l.id)}else a.constructor===String?(t.writeParentInfo(!0),t.writeString(a)):a.constructor===US?(t.writeParentInfo(!1),t.writeLeftID(a)):wm();o!==null&&t.writeString(o)}this.content.write(t,n)}};const zHe=(e,t)=>W7t[t&fj](e),W7t=[()=>{wm()},T7t,_7t,O7t,L7t,M7t,P7t,G7t,D7t,I7t,()=>{wm()}],U7t=10;class Tf extends cge{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,n){wm()}write(t,n){t.writeInfo(U7t),or(t.restEncoder,this.length-n)}getMissing(t,n){return null}}const BHe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},HHe="__ $YJS$ __";BHe[HHe]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");BHe[HHe]=!0;const q7t=e=>zSt(e,(t,n)=>`${encodeURIComponent(n)}=${encodeURIComponent(t)}`).join("&");var uee,a5e;function jHe(){return a5e||(a5e=1,uee=jHe()),uee}var K7t=jHe(),vo=(e=>(e.POST="post",e.POST_COMMENT="post_comment",e.COURSE_REVIEW="course_review",e.COURSE="course",e.SECTION="section",e.LECTURE="lecture",e.PATH="path",e))(vo||{}),rg=(e=>(e.VIDEO="video",e.ARTICLE="article",e))(rg||{}),Jw=(e=>(e.CATEGORY="category",e.TAG="tag",e.LEVEL="level",e))(Jw||{}),fz=(e=>(e.STAR="star",e.READED="read",e.LIKE="like",e.HATE="hate",e.COURSE_REVIEW="course_review",e))(fz||{}),ri=(e=>(e.DEPARTMENT="department",e.STAFF="staff",e.COMMENT="comment",e.TERM="term",e.APP_CONFIG="app_config",e.ROLE="role",e.ROLE_MAP="rolemap",e.MESSAGE="message",e.POST="post",e.VISIT="visit",e.COURSE="course",e.SECTION="section",e.LECTURE="lecture",e.ENROLLMENT="enrollment",e.RESOURCE="resource",e))(ri||{}),Ki=(e=>(e.CREATE_ALERT="CREATE_ALERT",e.CREATE_INSTRUCTION="CREATE_INSTRUCTION",e.CREATE_TROUBLE="CREATE_TROUBLE",e.CREATE_WORKPROGRESS="CREATE_WORKPROGRESS",e.CREATE_ASSESSMENT="CREATE_ASSESSMENT",e.CREATE_TERM="CREATE_TERM",e.READ_ANY_TROUBLE="READ_ANY_TROUBLE",e.READ_DOM_TROUBLE="READ_DOM_TROUBLE",e.READ_AUDIT_TROUBLE="READ_AUDIT_TROUBLE",e.READ_ANY_CHART="READ_ANY_CHART",e.READ_DOM_CHART="READ_DOM_CHART",e.READ_ANY_ASSESSMENT="READ_ANY_ASSESSMENT",e.READ_DOM_ASSESSMENT="READ_DOM_ASSESSMENT",e.READ_ANY_TERM="READ_ANY_TERM",e.READ_DOM_TERM="READ_DOM_TERM",e.READ_ANY_POST="READ_ANY_POST",e.READ_DOM_POST="READ_DOM_POST",e.MANAGE_ANY_POST="MANAGE_ANY_POST",e.MANAGE_DOM_POST="MANAGE_DOM_POST",e.MANAGE_ANY_TROUBLE="MANAGE_ANY_TROUBLE",e.MANAGE_DOM_TROUBLE="MANAGE_DOM_TROUBLE",e.MANAGE_DOM_TERM="MANAGE_DOM_TERM",e.MANAGE_ANY_TERM="MANAGE_ANY_TERM",e.MANAGE_BASE_SETTING="MANAGE_BASE_SETTING",e.MANAGE_ANY_STAFF="MANAGE_ANY_STAFF",e.MANAGE_DOM_STAFF="MANAGE_DOM_STAFF",e.MANAGE_ANY_DEPT="MANAGE_ANY_DEPT",e.MANAGE_DOM_DEPT="MANAGE_DOM_DEPT",e.MANAGE_ANY_ROLE="MANAGE_ANY_ROLE",e.MANAGE_DOM_ROLE="MANAGE_DOM_ROLE",e))(Ki||{}),uge=(e=>(e.BASE_SETTING="base_setting",e))(uge||{}),t$=(e=>(e.DRAFT="draft",e.UNDER_REVIEW="under_review",e.PUBLISHED="published",e.ARCHIVED="archived",e))(t$||{}),Y7t={beginner:"初级",intermediate:"中级",advanced:"高级",all_levels:"不限级别"},hz={video:"视频课程",article:"图文课程",quiz:"测验",assignment:"作业"},X7t=Oe.any();Oe.object({username:Oe.string(),password:Oe.string(),deptId:Oe.string().nullish(),officerId:Oe.string().nullish(),showname:Oe.string().nullish(),phoneNumber:Oe.string().nullish()}),Oe.object({refreshToken:Oe.string(),sessionId:Oe.string()}),Oe.object({refreshToken:Oe.string(),sessionId:Oe.string()}),Oe.object({username:Oe.string().nullish(),password:Oe.string().nullish(),phoneNumber:Oe.string().nullish()}),Oe.object({phoneNumber:Oe.string().nullish(),newPassword:Oe.string(),renewPassword:Oe.string(),username:Oe.string().nullish()}),Oe.object({refreshToken:Oe.string()}),Oe.object({refreshToken:Oe.string()});var Q7t=Oe.object({colId:Oe.string(),sort:Oe.enum(["asc","desc"])});Oe.object({id:Oe.string(),overId:Oe.string()});var yj=Oe.object({startRow:Oe.number(),endRow:Oe.number(),rowGroupCols:Oe.array(Oe.object({id:Oe.string(),displayName:Oe.string(),field:Oe.string()})),valueCols:Oe.array(Oe.object({id:Oe.string().nullish(),displayName:Oe.string().nullish(),aggFunc:Oe.string().nullish(),field:Oe.string()})),pivotCols:Oe.array(Oe.any()).nullish(),pivotMode:Oe.boolean().nullish(),groupKeys:Oe.array(Oe.any()),filterModel:Oe.any().nullish(),sortModel:Oe.array(Q7t).nullish(),includeDeleted:Oe.boolean().nullish()});Oe.object({showname:Oe.string().nullish(),username:Oe.string(),phoneNumber:Oe.string().nullish(),domainId:Oe.string().nullish(),password:Oe.string().nullish(),deptId:Oe.string().nullish(),officerId:Oe.string().nullish(),emitChange:Oe.boolean().nullish(),hashedPassword:Oe.string().nullish()}),Oe.object({id:Oe.string(),showname:Oe.string().nullish(),username:Oe.string().nullish(),domainId:Oe.string().nullish(),deptId:Oe.string().nullish(),phoneNumber:Oe.string().nullish(),order:Oe.number().nullish(),registerToken:Oe.string().nullish(),password:Oe.string().nullish(),officerId:Oe.string().nullish()}),Oe.object({id:Oe.string()}),Oe.object({ids:Oe.array(Oe.string())}),Oe.object({deptId:Oe.string(),domainId:Oe.string().nullish()}),Oe.object({keyword:Oe.string().nullish(),domainId:Oe.string().nullish(),deptId:Oe.string().nullish(),limit:Oe.number().nullish(),ids:Oe.array(Oe.string()).nullish()}),Oe.object({phoneNumber:Oe.string().nullish(),id:Oe.string().nullish()}),Oe.object({page:Oe.number(),pageSize:Oe.number(),domainId:Oe.string().nullish(),deptId:Oe.string().nullish(),ids:Oe.array(Oe.string()).nullish()}),yj.extend({domainId:Oe.string().nullish()});Oe.object({name:Oe.string(),termIds:Oe.array(Oe.string()).nullish(),parentId:Oe.string().nullish(),isDomain:Oe.boolean().nullish()}),yj.extend({parentId:Oe.string().nullish()}),Oe.object({id:Oe.string(),name:Oe.string().nullish(),termIds:Oe.array(Oe.string()).nullish(),parentId:Oe.string().nullish(),deletedAt:Oe.date().nullish(),order:Oe.number().nullish(),isDomain:Oe.boolean().nullish()}),Oe.object({id:Oe.string()}),Oe.object({keyword:Oe.string().nullish(),ids:Oe.array(Oe.string()).nullish(),limit:Oe.number().nullish(),domain:Oe.boolean().nullish()}),Oe.object({id:Oe.string()}),Oe.object({page:Oe.number(),pageSize:Oe.number(),ids:Oe.array(Oe.string()).nullish()}),Oe.object({deptIds:Oe.array(Oe.string().nullish()).nullish(),parentId:Oe.string().nullish(),domain:Oe.boolean().nullish(),rootId:Oe.string().nullish()});Oe.object({base64:Oe.string(),domainId:Oe.string().nullish()}),Oe.object({base64:Oe.string(),domainId:Oe.string().nullish(),taxonomyId:Oe.string().nullish(),parentId:Oe.string().nullish()}),Oe.object({base64:Oe.string(),domainId:Oe.string().nullish(),parentId:Oe.string().nullish()});yj.extend({parentId:Oe.string().nullish(),domainId:Oe.string().nullish(),taxonomyId:Oe.string().nullish()}),Oe.object({name:Oe.string(),description:Oe.string().nullish(),domainId:Oe.string().nullish(),parentId:Oe.string().nullish(),taxonomyId:Oe.string(),watchStaffIds:Oe.array(Oe.string()).nullish(),watchDeptIds:Oe.array(Oe.string()).nullish()}),Oe.object({id:Oe.string(),description:Oe.string().nullish(),parentId:Oe.string().nullish(),domainId:Oe.string().nullish(),name:Oe.string().nullish(),taxonomyId:Oe.string().nullish(),order:Oe.number().nullish(),watchStaffIds:Oe.array(Oe.string()).nullish(),watchDeptIds:Oe.array(Oe.string()).nullish()}),Oe.object({id:Oe.string()}),Oe.object({page:Oe.number().min(1),pageSize:Oe.number().min(1)}),Oe.object({ids:Oe.array(Oe.string())}),Oe.object({cursor:Oe.string().nullish(),search:Oe.string().nullish(),limit:Oe.number().min(1).max(100).nullish(),taxonomyId:Oe.string().nullish(),taxonomySlug:Oe.string().nullish(),id:Oe.string().nullish(),initialIds:Oe.array(Oe.string()).nullish()}),Oe.object({parentId:Oe.string().nullish(),domainId:Oe.string().nullish(),taxonomyId:Oe.string().nullish(),cursor:Oe.string().nullish(),limit:Oe.number().min(1).max(100).nullish()}),Oe.object({termIds:Oe.array(Oe.string().nullish()).nullish(),parentId:Oe.string().nullish(),taxonomyId:Oe.string().nullish(),domainId:Oe.string().nullish()}),Oe.object({keyword:Oe.string().nullish(),ids:Oe.array(Oe.string()).nullish(),taxonomyId:Oe.string().nullish(),taxonomySlug:Oe.string().nullish(),limit:Oe.number().nullish()}),Oe.object({taxonomyId:Oe.string().nullish(),taxonomySlug:Oe.string().nullish(),domainId:Oe.string().nullish()});Oe.object({objectId:Oe.string(),roleId:Oe.string(),domainId:Oe.string(),objectType:Oe.nativeEnum(ri)}),Oe.object({id:Oe.string(),objectId:Oe.string().nullish(),roleId:Oe.string().nullish(),domainId:Oe.string().nullish(),objectType:Oe.nativeEnum(ri).nullish()}),Oe.object({objectId:Oe.string(),roleIds:Oe.array(Oe.string()),domainId:Oe.string(),objectType:Oe.nativeEnum(ri)}),Oe.object({objectIds:Oe.array(Oe.string()),roleId:Oe.string(),domainId:Oe.string().nullish(),objectType:Oe.nativeEnum(ri)}),Oe.object({ids:Oe.array(Oe.string())}),Oe.object({page:Oe.number().min(1),pageSize:Oe.number().min(1),domainId:Oe.string().nullish(),roleId:Oe.string().nullish()}),Oe.object({objectId:Oe.string()}),Oe.object({roleId:Oe.string(),domainId:Oe.string().nullish()}),Oe.object({domainId:Oe.string(),staffId:Oe.string(),deptId:Oe.string()}),yj.extend({roleId:Oe.string().nullish(),domainId:Oe.string().nullish()}),Oe.object({domainId:Oe.string().nullish(),roleId:Oe.string().nullish()});Oe.object({name:Oe.string(),permissions:Oe.array(Oe.string()).nullish()}),Oe.object({id:Oe.string(),name:Oe.string().nullish(),permissions:Oe.array(Oe.string()).nullish()}),Oe.object({ids:Oe.array(Oe.string())}),Oe.object({page:Oe.number().nullish(),pageSize:Oe.number().nullish()}),Oe.object({keyword:Oe.string().nullish()});Oe.object({name:Oe.string(),slug:Oe.string(),objectType:Oe.array(Oe.nativeEnum(ri)).nullish()}),Oe.object({id:Oe.string()}),Oe.object({name:Oe.string()}),Oe.object({slug:Oe.string()}),Oe.object({id:Oe.string()}),Oe.object({ids:Oe.array(Oe.string())}),Oe.object({id:Oe.string(),name:Oe.string().nullish(),slug:Oe.string().nullish(),order:Oe.number().nullish(),objectType:Oe.array(Oe.nativeEnum(ri)).nullish()}),Oe.object({page:Oe.number().min(1),pageSize:Oe.number().min(1)}),Oe.object({type:Oe.nativeEnum(ri).nullish()});Oe.object({cursor:Oe.string().nullish(),limit:Oe.number().min(-1).max(100).nullish(),keyword:Oe.string().nullish(),states:Oe.array(Oe.number()).nullish(),termIds:Oe.array(Oe.string()).nullish(),termIdFilters:Oe.map(Oe.string(),Oe.array(Oe.string())).nullish(),selectedIds:Oe.array(Oe.string()).nullish(),initialIds:Oe.array(Oe.string()).nullish(),excludeIds:Oe.array(Oe.string()).nullish(),createStartDate:Oe.date().nullish(),createEndDate:Oe.date().nullish(),deptId:Oe.string().nullish()});Oe.object({sectionId:Oe.string().nullish(),type:Oe.string().nullish(),title:Oe.string().nullish(),content:Oe.string().nullish(),resourceIds:Oe.array(Oe.string()).nullish()}),Oe.object({courseId:Oe.string().nullish(),title:Oe.string().nullish(),lectures:Oe.array(Oe.object({type:Oe.string().nullish(),title:Oe.string().nullish(),content:Oe.string().nullish(),resourceIds:Oe.array(Oe.string()).nullish()})).nullish()}),Oe.object({courseDetail:X7t,sections:Oe.array(Oe.object({title:Oe.string(),lectures:Oe.array(Oe.object({type:Oe.string(),title:Oe.string(),content:Oe.string().optional(),resourceIds:Oe.array(Oe.string()).optional()})).optional()})).optional()});function QF(e,t=75,n=65){let r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o)+((r<<5)-r);return`hsl(${Math.abs(r%360)}, ${t}%, ${n}%)`}var e4=(e,t)=>Array.from(new Map(e.map(n=>[n[t]||null,n])).values()),l5e=(e,t="id")=>e.map(n=>({[t]:n}));Object.keys(Ki).filter(e=>!["READ_ANY_CHART","READ_ANY_TROUBLE","READ_ANY_TERM"].includes(e)),Object.keys(Ki);var Z7t=["video/*","video/mp4","video/quicktime","video/x-msvideo","video/x-matroska","video/webm","video/ogg","video/mpeg","video/3gpp","video/3gpp2","video/x-flv","video/x-ms-wmv"],VHe=0,dge=1,GHe=2,iae=(e,t)=>{or(e,VHe);const n=Wwt(t);ws(e,n)},WHe=(e,t,n)=>{or(e,dge),ws(e,Hwt(t,n))},J7t=(e,t,n)=>WHe(t,n,$l(e)),UHe=(e,t,n)=>{try{kwt(t,$l(e),n)}catch(r){console.error("Caught error while handling a Yjs update",r)}},ext=(e,t)=>{or(e,GHe),ws(e,t)},txt=UHe,nxt=(e,t,n,r)=>{const i=Lr(e);switch(i){case VHe:J7t(e,t,n);break;case dge:UHe(e,n,r);break;case GHe:txt(e,n,r);break;default:throw new Error("Unknown message type")}return i},rxt=0,ixt=(e,t,n)=>{switch(Lr(e)){case rxt:n(t,m4(e))}},GI=[];GI[0]=(e,t,n,r,i)=>{or(e,0);const o=nxt(t,e,n.doc,n);r&&o===dge&&!n.synced&&(n.synced=!0)};GI[3]=(e,t,n,r,i)=>{console.log("Handling messageQueryAwareness"),or(e,1),ws(e,z$(n.awareness,Array.from(n.awareness.getStates().keys()))),console.debug("Encoded awareness update for querying awareness state.")};GI[1]=(e,t,n,r,i)=>{const o=$l(t);axt(n.awareness,o,n)};GI[2]=(e,t,n,r,i)=>{console.log("Handling messageAuth"),ixt(t,n.doc,(o,s)=>oxt(n,s))};var oxt=(e,t)=>console.warn(`Permission denied to access ${e.url}.
|
||
${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."),super.destroy()}connectBc(){if(ZF()||this.disableBc)return;this.bcconnected||(uwt(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const t=Il();or(t,0),iae(t,this.doc),q5(this.bcChannel,zo(t),this);const n=Il();or(n,0),WHe(n,this.doc),q5(this.bcChannel,zo(n),this);const r=Il();or(r,3),q5(this.bcChannel,zo(r),this);const i=Il();or(i,1),ws(i,z$(this.awareness,[this.doc.clientID])),q5(this.bcChannel,zo(i),this)}disconnectBc(){if(ZF())return;const t=Il();or(t,1),ws(t,z$(this.awareness,[this.doc.clientID],new Map)),dee(this,zo(t)),this.bcconnected&&(dwt(this.bcChannel,this._bcSubscriber),this.bcconnected=!1)}disconnect(){this.shouldConnect=!1,this.disconnectBc(),this.socket&&(console.log("Disconnecting socket"),this.socket.close())}connect(){this.shouldConnect=!0,!this.wsconnected&&this.socket===null&&(KHe(this),this.connectBc())}},fee=3e4,sxt=class extends VBe{constructor(t){super();Wt(this,"doc");Wt(this,"clientID");Wt(this,"states");Wt(this,"meta");Wt(this,"_checkInterval");this.doc=t,this.clientID=t.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{var i;const n=Kw();this.getLocalState()!==null&&fee/2<=n-(((i=this.meta.get(this.clientID))==null?void 0:i.lastUpdated)||0)&&this.setLocalState(this.getLocalState());const r=[];this.meta.forEach((o,s)=>{s!==this.clientID&&fee<=n-o.lastUpdated&&this.states.has(s)&&r.push(s)}),r.length>0&&fge(this,r,"timeout")},Math.floor(fee/10)),t.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(t){const n=this.clientID,r=this.meta.get(n),i=r===void 0?0:r.clock+1,o=this.states.get(n);t===null?this.states.delete(n):this.states.set(n,t),this.meta.set(n,{clock:i,lastUpdated:Kw()});const s=[],a=[],l=[],c=[];t===null?c.push(n):o==null?t!=null&&s.push(n):(a.push(n),k$(o,t)||l.push(n)),(s.length>0||l.length>0||c.length>0)&&this.emit("change",[{added:s,updated:l,removed:c},"local"]),this.emit("update",[{added:s,updated:a,removed:c},"local"])}setLocalStateField(t,n){const r=this.getLocalState();r!==null&&this.setLocalState({...r,[t]:n})}getStates(){return this.states}},fge=(e,t,n)=>{const r=[];for(let i=0;i<t.length;i++){const o=t[i];if(e.states.has(o)){if(e.states.delete(o),o===e.clientID){const s=e.meta.get(o);e.meta.set(o,{clock:s.clock+1,lastUpdated:Kw()})}r.push(o)}}r.length>0&&(e.emit("change",[{added:[],updated:[],removed:r},n]),e.emit("update",[{added:[],updated:[],removed:r},n]))},z$=(e,t,n=e.states)=>{const r=t.length,i=Il();or(i,r);for(let o=0;o<r;o++){const s=t[o],a=n.get(s)||null,l=e.meta.get(s).clock;or(i,s),or(i,l),eC(i,JSON.stringify(a))}return zo(i)},axt=(e,t,n)=>{const r=m3(t),i=Kw(),o=[],s=[],a=[],l=[],c=Lr(r);for(let u=0;u<c;u++){const f=Lr(r);let h=Lr(r);const g=JSON.parse(m4(r)),p=e.meta.get(f),m=e.states.get(f),v=p===void 0?0:p.clock;(v<h||v===h&&g===null&&e.states.has(f))&&(g===null?f===e.clientID&&e.getLocalState()!=null?h++:e.states.delete(f):e.states.set(f,g),e.meta.set(f,{clock:h,lastUpdated:i}),p===void 0&&g!==null?o.push(f):p!==void 0&&g===null?l.push(f):g!==null&&(k$(g,m)||a.push(f),s.push(f)))}(o.length>0||a.length>0||l.length>0)&&e.emit("change",[{added:o,updated:a,removed:l},n]),n instanceof YHe||e.emit("update",[{added:o,updated:s,removed:l},n])},hee=null,lxt=()=>new K7t.PrismaClient({log:["error"]});(()=>{if(typeof window>"u")return hee||(hee=lxt()),hee})();var cxt={id:!0,type:!0,title:!0,content:!0,resources:!0,parent:!0,parentId:!0,updatedAt:!0,terms:{select:{id:!0,name:!0,taxonomyId:!0,taxonomy:{select:{id:!0,slug:!0}}}},depts:!0,author:{select:{id:!0,showname:!0,avatar:!0,department:{select:{id:!0,name:!0}},domain:{select:{id:!0,name:!0}}}},meta:!0,views:!0},hge={id:!0,title:!0,subTitle:!0,views:!0,type:!0,author:!0,authorId:!0,content:!0,depts:!0,createdAt:!0,updatedAt:!0,terms:{select:{id:!0,name:!0,taxonomyId:!0,taxonomy:{select:{id:!0,slug:!0}}}},enrollments:{select:{id:!0}},meta:!0,rating:!0},XHe={id:!0,title:!0,subTitle:!0,content:!0,resources:!0,views:!0,createdAt:!0,updatedAt:!0,meta:!0};function uxt(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}var QHe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jo,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",f="month",h="quarter",g="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var k=["th","st","nd","rd"],L=D%100;return"["+D+(k[(L-20)%10]||k[L]||k[0])+"]"}},b=function(D,k,L){var I=String(D);return!I||I.length>=k?D:""+Array(k+1-I.length).join(L)+D},S={s:b,z:function(D){var k=-D.utcOffset(),L=Math.abs(k),I=Math.floor(L/60),A=L%60;return(k<=0?"+":"-")+b(I,2,"0")+":"+b(A,2,"0")},m:function D(k,L){if(k.date()<L.date())return-D(L,k);var I=12*(L.year()-k.year())+(L.month()-k.month()),A=k.clone().add(I,f),N=L-A<0,B=k.clone().add(I+(N?-1:1),f);return+(-(I+(L-A)/(N?A-B:B-A))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:g,w:u,d:c,D:p,h:l,m:a,s,ms:o,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},w="en",x={};x[w]=y;var E="$isDayjsObject",R=function(D){return D instanceof _||!(!D||!D[E])},O=function D(k,L,I){var A;if(!k)return w;if(typeof k=="string"){var N=k.toLowerCase();x[N]&&(A=N),L&&(x[N]=L,A=N);var B=k.split("-");if(!A&&B.length>1)return D(B[0])}else{var z=k.name;x[z]=k,A=z}return!I&&A&&(w=A),A||!I&&w},T=function(D,k){if(R(D))return D.clone();var L=typeof k=="object"?k:{};return L.date=D,L.args=arguments,new _(L)},M=S;M.l=O,M.i=R,M.w=function(D,k){return T(D,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var _=function(){function D(L){this.$L=O(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[E]=!0}var k=D.prototype;return k.parse=function(L){this.$d=function(I){var A=I.date,N=I.utc;if(A===null)return new Date(NaN);if(M.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var B=A.match(v);if(B){var z=B[2]-1||0,j=(B[7]||"0").substring(0,3);return N?new Date(Date.UTC(B[1],z,B[3]||1,B[4]||0,B[5]||0,B[6]||0,j)):new Date(B[1],z,B[3]||1,B[4]||0,B[5]||0,B[6]||0,j)}}return new Date(A)}(L),this.init()},k.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},k.$utils=function(){return M},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(L,I){var A=T(L);return this.startOf(I)<=A&&A<=this.endOf(I)},k.isAfter=function(L,I){return T(L)<this.startOf(I)},k.isBefore=function(L,I){return this.endOf(I)<T(L)},k.$g=function(L,I,A){return M.u(L)?this[I]:this.set(A,L)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(L,I){var A=this,N=!!M.u(I)||I,B=M.p(L),z=function(te,ne){var Z=M.w(A.$u?Date.UTC(A.$y,ne,te):new Date(A.$y,ne,te),A);return N?Z:Z.endOf(c)},j=function(te,ne){return M.w(A.toDate()[te].apply(A.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ne)),A)},W=this.$W,G=this.$M,K=this.$D,q="set"+(this.$u?"UTC":"");switch(B){case g:return N?z(1,0):z(31,11);case f:return N?z(1,G):z(0,G+1);case u:var X=this.$locale().weekStart||0,Q=(W<X?W+7:W)-X;return z(N?K-Q:K+(6-Q),G);case c:case p:return j(q+"Hours",0);case l:return j(q+"Minutes",1);case a:return j(q+"Seconds",2);case s:return j(q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(L){return this.startOf(L,!1)},k.$set=function(L,I){var A,N=M.p(L),B="set"+(this.$u?"UTC":""),z=(A={},A[c]=B+"Date",A[p]=B+"Date",A[f]=B+"Month",A[g]=B+"FullYear",A[l]=B+"Hours",A[a]=B+"Minutes",A[s]=B+"Seconds",A[o]=B+"Milliseconds",A)[N],j=N===c?this.$D+(I-this.$W):I;if(N===f||N===g){var W=this.clone().set(p,1);W.$d[z](j),W.init(),this.$d=W.set(p,Math.min(this.$D,W.daysInMonth())).$d}else z&&this.$d[z](j);return this.init(),this},k.set=function(L,I){return this.clone().$set(L,I)},k.get=function(L){return this[M.p(L)]()},k.add=function(L,I){var A,N=this;L=Number(L);var B=M.p(I),z=function(G){var K=T(N);return M.w(K.date(K.date()+Math.round(G*L)),N)};if(B===f)return this.set(f,this.$M+L);if(B===g)return this.set(g,this.$y+L);if(B===c)return z(1);if(B===u)return z(7);var j=(A={},A[a]=r,A[l]=i,A[s]=n,A)[B]||1,W=this.$d.getTime()+L*j;return M.w(W,this)},k.subtract=function(L,I){return this.add(-1*L,I)},k.format=function(L){var I=this,A=this.$locale();if(!this.isValid())return A.invalidDate||m;var N=L||"YYYY-MM-DDTHH:mm:ssZ",B=M.z(this),z=this.$H,j=this.$m,W=this.$M,G=A.weekdays,K=A.months,q=A.meridiem,X=function(ne,Z,ee,J){return ne&&(ne[Z]||ne(I,N))||ee[Z].slice(0,J)},Q=function(ne){return M.s(z%12||12,ne,"0")},te=q||function(ne,Z,ee){var J=ne<12?"AM":"PM";return ee?J.toLowerCase():J};return N.replace(C,function(ne,Z){return Z||function(ee){switch(ee){case"YY":return String(I.$y).slice(-2);case"YYYY":return M.s(I.$y,4,"0");case"M":return W+1;case"MM":return M.s(W+1,2,"0");case"MMM":return X(A.monthsShort,W,K,3);case"MMMM":return X(K,W);case"D":return I.$D;case"DD":return M.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return X(A.weekdaysMin,I.$W,G,2);case"ddd":return X(A.weekdaysShort,I.$W,G,3);case"dddd":return G[I.$W];case"H":return String(z);case"HH":return M.s(z,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return te(z,j,!0);case"A":return te(z,j,!1);case"m":return String(j);case"mm":return M.s(j,2,"0");case"s":return String(I.$s);case"ss":return M.s(I.$s,2,"0");case"SSS":return M.s(I.$ms,3,"0");case"Z":return B}return null}(ne)||B.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(L,I,A){var N,B=this,z=M.p(I),j=T(L),W=(j.utcOffset()-this.utcOffset())*r,G=this-j,K=function(){return M.m(B,j)};switch(z){case g:N=K()/12;break;case f:N=K();break;case h:N=K()/3;break;case u:N=(G-W)/6048e5;break;case c:N=(G-W)/864e5;break;case l:N=G/i;break;case a:N=G/r;break;case s:N=G/n;break;default:N=G}return A?N:M.a(N)},k.daysInMonth=function(){return this.endOf(f).$D},k.$locale=function(){return x[this.$L]},k.locale=function(L,I){if(!L)return this.$L;var A=this.clone(),N=O(L,I,!0);return N&&(A.$L=N),A},k.clone=function(){return M.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},D}(),F=_.prototype;return T.prototype=F,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",f],["$y",g],["$D",p]].forEach(function(D){F[D[1]]=function(k){return this.$g(k,D[0],D[1])}}),T.extend=function(D,k){return D.$i||(D(k,_,T),D.$i=!0),T},T.locale=O,T.isDayjs=R,T.unix=function(D){return T(1e3*D)},T.en=x[w],T.Ls=x,T.p={},T})})(QHe);var gge=QHe.exports;const _C=Bm(gge);function gz(e){"@babel/helpers - typeof";return gz=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},gz(e)}var dxt=/^\s+/,fxt=/\s+$/;function nr(e,t){if(e=e||"",t=t||{},e instanceof nr)return e;if(!(this instanceof nr))return new nr(e,t);var n=hxt(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}nr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,s,a;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*a},setAlpha:function(t){return this._a=ZHe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=u5e(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=u5e(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=c5e(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c5e(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return d5e(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return vxt(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Bo(this._r,255)*100)+"%",g:Math.round(Bo(this._g,255)*100)+"%",b:Math.round(Bo(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Bo(this._r,255)*100)+"%, "+Math.round(Bo(this._g,255)*100)+"%, "+Math.round(Bo(this._b,255)*100)+"%)":"rgba("+Math.round(Bo(this._r,255)*100)+"%, "+Math.round(Bo(this._g,255)*100)+"%, "+Math.round(Bo(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ixt[d5e(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+f5e(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=nr(t);r="#"+f5e(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return nr(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Sxt,arguments)},brighten:function(){return this._applyModification(wxt,arguments)},darken:function(){return this._applyModification(xxt,arguments)},desaturate:function(){return this._applyModification(Cxt,arguments)},saturate:function(){return this._applyModification(yxt,arguments)},greyscale:function(){return this._applyModification(bxt,arguments)},spin:function(){return this._applyModification(Ext,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Oxt,arguments)},complement:function(){return this._applyCombination(Rxt,arguments)},monochromatic:function(){return this._applyCombination(Txt,arguments)},splitcomplement:function(){return this._applyCombination($xt,arguments)},triad:function(){return this._applyCombination(h5e,[3])},tetrad:function(){return this._applyCombination(h5e,[4])}};nr.fromRatio=function(e,t){if(gz(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=n$(e[r]));e=n}return nr(e,t)};function hxt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof e=="string"&&(e=Axt(e)),gz(e)=="object"&&(S1(e.r)&&S1(e.g)&&S1(e.b)?(t=gxt(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):S1(e.h)&&S1(e.s)&&S1(e.v)?(r=n$(e.s),i=n$(e.v),t=mxt(e.h,r,i),s=!0,a="hsv"):S1(e.h)&&S1(e.s)&&S1(e.l)&&(r=n$(e.s),o=n$(e.l),t=pxt(e.h,r,o),s=!0,a="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=ZHe(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function gxt(e,t,n){return{r:Bo(e,255)*255,g:Bo(t,255)*255,b:Bo(n,255)*255}}function c5e(e,t,n){e=Bo(e,255),t=Bo(t,255),n=Bo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,a=(r+i)/2;if(r==i)o=s=0;else{var l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s,l:a}}function pxt(e,t,n){var r,i,o;e=Bo(e,360),t=Bo(t,100),n=Bo(n,100);function s(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)r=i=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=s(l,a,e+1/3),i=s(l,a,e),o=s(l,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function u5e(e,t,n){e=Bo(e,255),t=Bo(t,255),n=Bo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,a=r,l=r-i;if(s=r===0?0:l/r,r==i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s,v:a}}function mxt(e,t,n){e=Bo(e,360)*6,t=Bo(t,100),n=Bo(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),s=n*(1-i*t),a=n*(1-(1-i)*t),l=r%6,c=[n,s,o,o,a,n][l],u=[a,n,n,s,o,o][l],f=[o,o,a,n,n,s][l];return{r:c*255,g:u*255,b:f*255}}function d5e(e,t,n,r){var i=[hg(Math.round(e).toString(16)),hg(Math.round(t).toString(16)),hg(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function vxt(e,t,n,r,i){var o=[hg(Math.round(e).toString(16)),hg(Math.round(t).toString(16)),hg(Math.round(n).toString(16)),hg(JHe(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function f5e(e,t,n,r){var i=[hg(JHe(r)),hg(Math.round(e).toString(16)),hg(Math.round(t).toString(16)),hg(Math.round(n).toString(16))];return i.join("")}nr.equals=function(e,t){return!e||!t?!1:nr(e).toRgbString()==nr(t).toRgbString()};nr.random=function(){return nr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Cxt(e,t){t=t===0?0:t||10;var n=nr(e).toHsl();return n.s-=t/100,n.s=bj(n.s),nr(n)}function yxt(e,t){t=t===0?0:t||10;var n=nr(e).toHsl();return n.s+=t/100,n.s=bj(n.s),nr(n)}function bxt(e){return nr(e).desaturate(100)}function Sxt(e,t){t=t===0?0:t||10;var n=nr(e).toHsl();return n.l+=t/100,n.l=bj(n.l),nr(n)}function wxt(e,t){t=t===0?0:t||10;var n=nr(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),nr(n)}function xxt(e,t){t=t===0?0:t||10;var n=nr(e).toHsl();return n.l-=t/100,n.l=bj(n.l),nr(n)}function Ext(e,t){var n=nr(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,nr(n)}function Rxt(e){var t=nr(e).toHsl();return t.h=(t.h+180)%360,nr(t)}function h5e(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=nr(e).toHsl(),r=[nr(e)],i=360/t,o=1;o<t;o++)r.push(nr({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function $xt(e){var t=nr(e).toHsl(),n=t.h;return[nr(e),nr({h:(n+72)%360,s:t.s,l:t.l}),nr({h:(n+216)%360,s:t.s,l:t.l})]}function Oxt(e,t,n){t=t||6,n=n||30;var r=nr(e).toHsl(),i=360/n,o=[nr(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(nr(r));return o}function Txt(e,t){t=t||6;for(var n=nr(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/t;t--;)s.push(nr({h:r,s:i,v:o})),o=(o+a)%1;return s}nr.mix=function(e,t,n){n=n===0?0:n||50;var r=nr(e).toRgb(),i=nr(t).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return nr(s)};nr.readability=function(e,t){var n=nr(e),r=nr(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};nr.isReadable=function(e,t,n){var r=nr.readability(e,t),i,o;switch(o=!1,i=Dxt(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};nr.mostReadable=function(e,t,n){var r=null,i=0,o,s,a,l;n=n||{},s=n.includeFallbackColors,a=n.level,l=n.size;for(var c=0;c<t.length;c++)o=nr.readability(e,t[c]),o>i&&(i=o,r=nr(t[c]));return nr.isReadable(e,r,{level:a,size:l})||!s?r:(n.includeFallbackColors=!1,nr.mostReadable(e,["#fff","#000"],n))};var oae=nr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ixt=nr.hexNames=Mxt(oae);function Mxt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function ZHe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bo(e,t){Pxt(e)&&(e="100%");var n=_xt(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function bj(e){return Math.min(1,Math.max(0,e))}function zu(e){return parseInt(e,16)}function Pxt(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function _xt(e){return typeof e=="string"&&e.indexOf("%")!=-1}function hg(e){return e.length==1?"0"+e:""+e}function n$(e){return e<=1&&(e=e*100+"%"),e}function JHe(e){return Math.round(parseFloat(e)*255).toString(16)}function g5e(e){return zu(e)/255}var Ph=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function S1(e){return!!Ph.CSS_UNIT.exec(e)}function Axt(e){e=e.replace(dxt,"").replace(fxt,"").toLowerCase();var t=!1;if(oae[e])e=oae[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ph.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ph.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ph.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ph.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ph.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ph.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ph.hex8.exec(e))?{r:zu(n[1]),g:zu(n[2]),b:zu(n[3]),a:g5e(n[4]),format:t?"name":"hex8"}:(n=Ph.hex6.exec(e))?{r:zu(n[1]),g:zu(n[2]),b:zu(n[3]),format:t?"name":"hex"}:(n=Ph.hex4.exec(e))?{r:zu(n[1]+""+n[1]),g:zu(n[2]+""+n[2]),b:zu(n[3]+""+n[3]),a:g5e(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ph.hex3.exec(e))?{r:zu(n[1]+""+n[1]),g:zu(n[2]+""+n[2]),b:zu(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function Dxt(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var Lxt=Object.defineProperty,mn=(e,t)=>Lxt(e,"name",{value:t,configurable:!0});function eje(e,t,n="id"){const i=e.getQueriesData({queryKey:bg(t)}).flatMap(s=>s.slice(1)).flat().filter(s=>s!==void 0),o=new Map;return i.forEach(s=>{s&&s[n]&&o.set(s[n],s)}),Array.from(o.values())}mn(eje,"getCacheDataFromQuery");function tje(e,t,n="id"){return e.find(r=>r[n]===t)}mn(tje,"findDataByKey");function Sj(e,t,n,r="id"){const i=eje(e,t,r);return tje(i,n,r)}mn(Sj,"findQueryData");var an=Kbt();function pge(){const e=an.useUtils(),[t,n]=d.useState(),{data:r,isLoading:i}=an.app_config.findFirst.useQuery({where:{slug:uge.BASE_SETTING}}),o=d.useCallback(()=>{e.app_config.invalidate()},[e]),s=an.app_config.create.useMutation({onSuccess:o}),a=an.app_config.update.useMutation({onSuccess:o}),l=an.app_config.deleteMany.useMutation({onSuccess:o});d.useEffect(()=>{r!=null&&r.meta&&n(r==null?void 0:r.meta)},[r,i]);const c=d.useMemo(()=>{var g;return(g=t==null?void 0:t.appConfig)==null?void 0:g.splashScreen},[t]),u=d.useMemo(()=>{var g;return(g=t==null?void 0:t.appConfig)==null?void 0:g.devDept},[t]),f=d.useMemo(()=>{var g;return((g=t==null?void 0:t.appConfig)==null?void 0:g.slides)||[]},[t]),h=d.useMemo(()=>{var g;return((g=t==null?void 0:t.appConfig)==null?void 0:g.statistics)||{reads:0,staffs:0,courses:0,lectures:0}},[t]);return{create:s,deleteMany:l,update:a,baseSetting:t,splashScreen:c,devDept:u,isLoading:i,slides:f,statistics:h}}mn(pge,"useAppConfig");var dd=function(e){return e[e.CREATED=0]="CREATED",e[e.UPDATED=1]="UPDATED",e[e.DELETED=2]="DELETED",e}({}),SS=uxt(),Fxt={[ri.STAFF]:(e,t)=>{var r,i;const n={...e,officer_id:e.officerId,phone_number:e.phoneNumber,dept_name:(r=e.department)==null?void 0:r.name,domain_name:(i=e.domain)==null?void 0:i.name};SS.emit("dataChanged",{type:ri.STAFF,operation:t,data:[n]})},[ri.ROLE_MAP]:(e,t)=>{var r,i,o,s,a;const n={staff_username:(r=e.staff)==null?void 0:r.username,staff_showname:(i=e.staff)==null?void 0:i.showname,staff_officer_id:(o=e.staff)==null?void 0:o.officerId,department_name:(a=(s=e.staff)==null?void 0:s.department)==null?void 0:a.name,...e};SS.emit("dataChanged",{type:ri.ROLE_MAP,operation:t,data:[n]})},[ri.DEPARTMENT]:(e,t)=>{const n={is_domain:e.isDomain,parent_id:e.parentId,has_children:e.hasChildren,...e};SS.emit("dataChanged",{type:ri.DEPARTMENT,operation:t,data:[n]})},[ri.TERM]:(e,t)=>{const n={taxonomy_id:e.taxonomyId,parent_id:e.parentId,has_children:e.hasChildren,...e};SS.emit("dataChanged",{type:ri.TERM,operation:t,data:[n]})}};function gu(e,t,n){const r=Fxt[e];r?r(t,n):console.warn(`No emit handler for type: ${e}`)}mn(gu,"emitDataChange");function mge(){const e=Vg(),t=bg(an.department),n=an.department.create.useMutation({onSuccess:mn(s=>{e.invalidateQueries({queryKey:t}),gu(ri.DEPARTMENT,s,dd.CREATED)},"onSuccess")}),r=an.department.update.useMutation({onSuccess:mn(s=>{e.invalidateQueries({queryKey:t}),gu(ri.DEPARTMENT,s,dd.UPDATED)},"onSuccess")});return{softDeleteByIds:an.department.softDeleteByIds.useMutation({onSuccess:mn(s=>{e.invalidateQueries({queryKey:t}),gu(ri.DEPARTMENT,s,dd.DELETED)},"onSuccess")}),update:r,create:n,getDept:mn(s=>Sj(e,an.department,s),"getDept")}}mn(mge,"useDepartment");function Nx(){const e=Vg(),t=bg(an.staff),n=an.staff.create.useMutation({onSuccess:mn(a=>{e.invalidateQueries({queryKey:t}),gu(ri.STAFF,a,dd.CREATED)},"onSuccess")}),r=an.staff.updateUserDomain.useMutation({onSuccess:mn(async a=>{e.invalidateQueries({queryKey:t})},"onSuccess")}),i=an.staff.update.useMutation({onSuccess:mn(a=>{e.invalidateQueries({queryKey:t}),e.invalidateQueries({queryKey:bg(an.post)}),gu(ri.STAFF,a,dd.UPDATED)},"onSuccess")}),o=an.staff.softDeleteByIds.useMutation({onSuccess:mn((a,l)=>{e.invalidateQueries({queryKey:t})},"onSuccess")});return{create:n,update:i,softDeleteByIds:o,getStaff:mn(a=>Sj(e,an.staff,a),"getStaff"),updateUserDomain:r}}mn(Nx,"useStaff");function vge(){const e=Vg(),t=bg(an.term),n=an.term.create.useMutation({onSuccess:mn(a=>{e.invalidateQueries({queryKey:t}),gu(ri.TERM,a,dd.CREATED)},"onSuccess")}),r=an.term.upsertTags.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t})},"onSuccess")}),i=an.term.update.useMutation({onSuccess:mn(a=>{e.invalidateQueries({queryKey:t}),gu(ri.TERM,a,dd.UPDATED)},"onSuccess")}),o=an.term.softDeleteByIds.useMutation({onSuccess:mn((a,l)=>{e.invalidateQueries({queryKey:t})},"onSuccess")});return{create:n,update:i,softDeleteByIds:o,getTerm:mn(a=>Sj(e,an.term,a),"getTerm"),upsertTags:r}}mn(vge,"useTerm");function Cge(){const e=an.useUtils();return{create:an.role.create.useMutation({onSuccess:mn(()=>e.role.findMany.invalidate(),"onSuccess")}),createMany:an.role.createMany.useMutation({onSuccess:mn(()=>e.role.findMany.invalidate(),"onSuccess")}),update:an.role.update.useMutation({onSuccess:mn(()=>e.role.findMany.invalidate(),"onSuccess")}),softDeleteByIds:an.role.softDeleteByIds.useMutation({onSuccess:mn(()=>e.role.findMany.invalidate(),"onSuccess")}),updateOrder:an.role.updateOrder.useMutation({onSuccess:mn(()=>e.role.findMany.invalidate(),"onSuccess")}),findFirst:an.role.findFirst.useQuery,findMany:an.role.findMany.useQuery,findManyWithCursor:an.role.findManyWithCursor.useQuery,findManyWithPagination:an.role.findManyWithPagination.useQuery}}mn(Cge,"useRole");function yge(){const e=Vg(),t=bg(an.rolemap),n=an.rolemap.setRoleForObject.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t})},"onSuccess")}),r=an.rolemap.setRoleForObjects.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t})},"onSuccess")}),i=an.rolemap.addRoleForObjects.useMutation({onSuccess:mn(a=>{e.invalidateQueries({queryKey:t}),gu(ri.ROLE_MAP,a,dd.CREATED)},"onSuccess")}),o=an.rolemap.update.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t})},"onSuccess")}),s=an.rolemap.deleteMany.useMutation({onSuccess:mn(a=>{e.invalidateQueries({queryKey:t}),gu(ri.ROLE_MAP,a,dd.DELETED)},"onSuccess")});return{create:n,update:o,setRoleForObjects:r,deleteMany:s,addRoleForObjects:i}}mn(yge,"useRoleMap");function bge(){const e=Vg(),t=bg(an.transform),n=bg(an.term),r=bg(an.department),i=an.transform.importTerms.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t}),e.invalidateQueries({queryKey:n})},"onSuccess")}),o=an.transform.importDepts.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t}),e.invalidateQueries({queryKey:r})},"onSuccess")}),s=an.transform.importStaffs.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t})},"onSuccess")});return{importTerms:i,importDepts:o,importStaffs:s}}mn(bge,"useTransform");function nje(){const e=Vg(),t=bg(an.taxonomy),n=an.taxonomy.create.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t})},"onSuccess")}),r=mn(l=>an.taxonomy.findById.useQuery({id:l}),"findById"),i=an.taxonomy.update.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t})},"onSuccess")}),o=an.taxonomy.delete.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t})},"onSuccess")}),s=an.taxonomy.deleteMany.useMutation({onSuccess:mn(()=>{e.invalidateQueries({queryKey:t})},"onSuccess")});return{create:n,findById:r,update:i,deleteItem:o,paginate:mn((l,c)=>an.taxonomy.paginate.useQuery({page:l,pageSize:c}),"paginate"),deleteMany:s}}mn(nje,"useTaxonomy");var dg,Nxt=(dg=class{constructor(){Wt(this,"postParams");Wt(this,"postDetailParams");this.postParams=[],this.postDetailParams=[]}static getInstance(){return dg.instance||(dg.instance=new dg),dg.instance}addItem(t){this.postParams.some(r=>{if(t&&r){const i=t.where,o=r.where;return(i==null?void 0:i.parentId)===(o==null?void 0:o.parentId)&&(i==null?void 0:i.type)===(o==null?void 0:o.type)}return!1})||this.postParams.push(t)}addDetailItem(t){this.postDetailParams.some(r=>{if(t&&r){const i=t.where,o=r.where;return(i==null?void 0:i.id)===(o==null?void 0:o.id)}return!1})||this.postDetailParams.push(t)}removeItem(t){this.postParams=this.postParams.filter(n=>{if(t&&n){const r=t.where,i=n.where;return!((r==null?void 0:r.parentId)===(i==null?void 0:i.parentId)&&(r==null?void 0:r.type)===(i==null?void 0:i.type))}return!0})}removeDetailItem(t){this.postDetailParams=this.postDetailParams.filter(n=>{if(t&&n){const r=t.where,i=n.where;return(r==null?void 0:r.id)!==(i==null?void 0:i.id)}return!0})}getItems(){return[...this.postParams]}getDetailItems(){return[...this.postDetailParams]}},mn(dg,"PostParams"),Wt(dg,"instance"),dg);function Sge(){const e=an.useUtils(),t=Nxt.getInstance(),n=an.visitor.create.useMutation({onSuccess(){e.visitor.invalidate()}}),r=mn(g=>({onMutate:mn(async p=>{const m=[],v=[],C=t.getItems();for(const b of C){await e.post.findManyWithCursor.cancel();const S=e.post.findManyWithCursor.getInfiniteData({...b});m.push(S),e.post.findManyWithCursor.setInfiniteData({...b},w=>w&&{...w,pages:w.pages.map(x=>({...x,items:x.items.map(E=>E.id===(p==null?void 0:p.postId)?g(E,p):E)}))})}const y=t.getDetailItems();for(const b of y){await e.post.findFirst.cancel();const S=e.post.findFirst.getData(b);v.push(S),e.post.findFirst.setData(b,w=>w&&(w.id===(p==null?void 0:p.postId)?g(w,p):w))}return{previousDataList:m,previousDetailDataList:v}},"onMutate"),onError:mn((p,m,v)=>{t.getItems().forEach((y,b)=>{var S;(S=v==null?void 0:v.previousDataList)!=null&&S[b]&&e.post.findManyWithCursor.setInfiniteData({...y},v.previousDataList[b])})},"onError"),onSuccess:mn(async(p,m)=>{await Promise.all([e.visitor.invalidate(),e.post.findFirst.invalidate({where:{id:m==null?void 0:m.postId}}),e.post.findManyWithCursor.invalidate()])},"onSuccess")}),"createOptimisticMutation"),i=an.visitor.create.useMutation(r(g=>({...g,views:(g.views||0)+1,readed:!0}))),o=an.visitor.create.useMutation(r(g=>({...g,likes:(g.likes||0)+1,liked:!0}))),s=an.visitor.deleteMany.useMutation(r(g=>({...g,likes:g.likes-1||0,liked:!1}))),a=an.visitor.create.useMutation(r(g=>({...g,hates:(g.hates||0)+1,hated:!0}))),l=an.visitor.deleteMany.useMutation(r(g=>({...g,hates:g.hates-1||0,hated:!1}))),c=an.visitor.create.useMutation(r(g=>({...g,star:!0}))),u=an.visitor.deleteMany.useMutation(r(g=>({...g,star:!1}))),f=an.visitor.deleteMany.useMutation({onSuccess(){e.visitor.invalidate()}}),h=an.visitor.createMany.useMutation({onSuccess(){e.visitor.invalidate(),e.message.invalidate(),e.post.invalidate()}});return{postParams:t,create:n,createMany:h,deleteMany:f,read:i,addStar:c,deleteStar:u,like:o,unLike:s,hate:a,unHate:l}}mn(Sge,"useVisitor");function wge(e,t){const n=an.useUtils(),r=mn(i=>an[e][i].useMutation({onSuccess:mn((s,a,l)=>{var c,u;n[e].invalidate(),(u=(c=t==null?void 0:t[i])==null?void 0:c.onSuccess)==null||u.call(c,s,a,l)},"onSuccess")}),"createMutationHandler");return{create:r("create"),createCourse:r("createCourse"),update:r("update"),deleteMany:r("deleteMany"),softDeleteByIds:r("softDeleteByIds"),restoreByIds:r("restoreByIds"),updateOrder:r("updateOrder"),updateOrderByIds:r("updateOrderByIds")}}mn(wge,"useEntity");function kxt(){return wge("message")}mn(kxt,"useMessage");function My(){return Vg(),bg(an.post),wge("post")}mn(My,"usePost");function zxt(e,t){const n=e*t;return n>70?4:n>42?3:n>21?2:1}mn(zxt,"getRiskLevel");function Bxt(e){if(!e)return 0;const t=_C().diff(_C(e),"day");let n=25;return t>365?n=100:t>90?n=75:t>30&&(n=50),n}mn(Bxt,"getDeadlineScore");function Hxt(e,t,n,r,i){const o=_C().diff(_C(i),"day");let s=25;o>365?s=100:o>90?s=75:o>30&&(s=50);let a=.257*e+.325*t+.269*n+.084*s+.065*r;return a>90?4:a>60?3:a>30?2:e*t*n*r!==1?1:0}mn(Hxt,"getTroubleLevel");function jxt(e,t){return Object.entries(t).reduce((n,[r,i])=>(i!=null&&(n[r]=i),n),{...e})}mn(jxt,"mergeIfDefined");function Vxt(e){return Object.entries(e).map(([t,n])=>({label:n,value:t}))}mn(Vxt,"convertToOptions");function rje(e,t){return e>t?t:e}mn(rje,"upperBound");function ije(e,t){return e<t?t:e}mn(ije,"lowerBound");function Gxt(e,t,n){return rje(ije(e,t),n)}mn(Gxt,"bound");function Wxt(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=async i=>{var o;try{const s=(o=i.target)==null?void 0:o.result,a=await crypto.subtle.digest("SHA-256",s),c=Array.from(new Uint8Array(a)).map(u=>u.toString(16).padStart(2,"0")).join("");t(`${c}-${e.size}`)}catch(s){n(s)}},r.onerror=n,r.readAsArrayBuffer(e.slice(0,2*1024*1024))})}mn(Wxt,"calculateFileIdentifier");function sae(e,t){return nr(e).lighten(t).toString()}mn(sae,"lightenColor");function Uxt(e={}){const[t,n]=d.useState(e.initialSelected??[]),r=e.mode??(e.maxSelection===1?"single":"multiple"),i=mn(u=>{r==="single"?n([u]):t.includes(u)||(e.maxSelection===void 0||t.length<e.maxSelection)&&n(f=>[...f,u])},"select"),o=mn(u=>{n(f=>f.filter(h=>h!==u))},"deselect"),s=mn(u=>{t.includes(u)?o(u):i(u)},"toggle"),a=mn(()=>{n([])},"clear"),l=mn(u=>t.includes(u),"isSelected"),c=d.useMemo(()=>t.length===0,[t]);return{selected:t,select:i,deselect:o,toggle:s,clear:a,isSelected:l,isEmpty:c,setSelected:n}}mn(Uxt,"useCheckBox");function qxt(e){const[t,n]=d.useState(e?[e]:[]),r=mn(u=>n(f=>[...f,u]),"push"),i=mn(()=>n(u=>u.length>0?u.slice(0,-1):u),"pop"),o=mn(u=>{n(f=>{const h=f.lastIndexOf(u);return h>=0&&h<f.length-1?f.slice(0,h+1):f})},"popToItem"),s=mn(()=>t[t.length-1],"peek"),a=d.useMemo(()=>t.length===0,[t,e]),l=d.useMemo(()=>e!==void 0?t.length===1&&t[0]===e:t.length===0,[t,e]);return{stack:t,setStack:n,push:r,pop:i,popToItem:o,peek:s,isEmpty:a,clear:mn(()=>n(e?[e]:[]),"clear"),isOnlyDefaultItem:l}}mn(qxt,"useStack");function Kxt(e,t=0){const n=ce.useRef(),r=ce.useCallback(()=>{n.current&&(clearTimeout(n.current),n.current=void 0)},[]),i=ce.useCallback(()=>{r(),n.current=setTimeout(()=>{e(),n.current=void 0},t)},[r,t,e]);return ce.useEffect(()=>()=>r(),[r]),{startTimer:i,clearTimer:r,isActive:n.current!==void 0}}mn(Kxt,"useTimeout");var t5=function(e){return e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED",e}({}),p5e=function(e){return e[e.NORMAL=1e3]="NORMAL",e[e.ABNORMAL=1006]="ABNORMAL",e[e.SERVICE_RESTART=1012]="SERVICE_RESTART",e[e.TRY_AGAIN_LATER=1013]="TRY_AGAIN_LATER",e}({}),Yxt={initialRetryDelay:1e3,maxRetryDelay:3e4,maxRetryAttempts:10,jitter:.1},Xxt={retryOnError:!0},Aw;Aw=class{constructor(t){Wt(this,"ws",null);Wt(this,"readyState",t5.CLOSED);Wt(this,"retryCount",0);Wt(this,"reconnectTimer");Wt(this,"messageQueue",[]);Wt(this,"destroyed",!1);Wt(this,"options");Wt(this,"config");Wt(this,"flushMessageQueue",mn(async()=>{var t;if(((t=this.ws)==null?void 0:t.readyState)===t5.OPEN){const n=[...this.messageQueue];this.messageQueue=[];for(const r of n)try{await this.send(r)}catch{this.messageQueue.push(r)}}},"flushMessageQueue"));Wt(this,"createWebSocket",mn(async()=>{try{console.log(`[WebSocket] Attempting to connect to ${this.getWebSocketUrl()}`);const t=new WebSocket(this.getWebSocketUrl(),this.options.protocols);return this.readyState=t5.CONNECTING,t.onopen=n=>{var r,i;console.log("[WebSocket] Connection established successfully"),this.ws=t,this.readyState=t5.OPEN,this.retryCount=0,this.flushMessageQueue(),(i=(r=this.options).onOpen)==null||i.call(r,n)},t.onclose=n=>{var r,i;console.log(`[WebSocket] Connection closed with code: ${n.code}, reason: ${n.reason}`),this.readyState=t5.CLOSED,(i=(r=this.options).onClose)==null||i.call(r,n),!this.destroyed&&this.options.retryOnError&&n.code!==p5e.NORMAL&&(console.log("[WebSocket] Abnormal closure, attempting to reconnect..."),this.handleReconnect())},t.onerror=n=>{var r,i;console.error("[WebSocket] Error occurred:",n),(i=(r=this.options).onError)==null||i.call(r,n)},t.onmessage=n=>{var i,o;console.debug("[WebSocket] Message received:",n.data);let r=typeof n.data=="string"?JSON.parse(n.data):n.data;(o=(i=this.options).onMessage)==null||o.call(i,r)},this.ws=t,t}catch(t){throw console.error("[WebSocket] Failed to create connection:",t),t}},"createWebSocket"));Wt(this,"handleReconnect",mn(async()=>{var n,r;if(this.destroyed){console.log("[WebSocket] Instance destroyed, skipping reconnection");return}if(this.retryCount>=this.config.maxRetryAttempts){console.warn(`[WebSocket] Max retry attempts (${this.config.maxRetryAttempts}) reached`),(r=(n=this.options).onMaxRetries)==null||r.call(n);return}if(this.reconnectTimer){console.log("[WebSocket] Reconnection already in progress");return}const t=this.getNextRetryDelay();console.log(`[WebSocket] Scheduling reconnection attempt ${this.retryCount+1}/${this.config.maxRetryAttempts} in ${t}ms`),this.reconnectTimer=setTimeout(async()=>{var i,o;try{this.retryCount++,this.ws&&(console.log("[WebSocket] Closing existing connection before reconnect"),this.ws.close(),this.ws=null),await this.createWebSocket(),console.log(`[WebSocket] Reconnection attempt ${this.retryCount+1} successful`),(o=(i=this.options).onReconnect)==null||o.call(i,this.retryCount+1)}catch(s){console.error(`[WebSocket] Reconnection attempt ${this.retryCount+1} failed:`,s),await this.handleReconnect()}finally{this.reconnectTimer=void 0}},t)},"handleReconnect"));Wt(this,"connect",mn(async()=>{if(!(this.ws||this.destroyed))try{await this.createWebSocket()}catch{this.options.retryOnError&&await this.handleReconnect()}},"connect"));Wt(this,"reconnect",mn(async()=>{this.ws&&(this.ws.close(),this.ws=null),await this.handleReconnect()},"reconnect"));Wt(this,"disconnect",mn(()=>{this.destroyed=!0,this.reconnectTimer&&(console.log("[WebSocket] Clearing reconnect timer"),clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0),this.ws&&(console.log("[WebSocket] Closing connection"),this.ws.close(p5e.NORMAL),this.ws=null),this.retryCount=0,this.messageQueue=[]},"disconnect"));this.options={...Xxt,...t},this.config={...Yxt,...t},this.options.manualConnect||this.connect()}getWebSocketUrl(){if(!this.options.url)throw new Error("WebSocket URL is required");const t=this.options.url,n=this.options.params||{},r=Object.entries(n).map(([i,o])=>`${encodeURIComponent(i)}=${encodeURIComponent(o)}`).join("&");return r?`${t}${t.includes("?")?"&":"?"}${r}`:t}getNextRetryDelay(){const{initialRetryDelay:t,maxRetryDelay:n,jitter:r}=this.config,i=Math.min(t*Math.pow(2,this.retryCount),n),o=i*r*(Math.random()*2-1);return Math.max(0,Math.floor(i+o))}send(t){return new Promise((n,r)=>{if(!this.ws||this.ws.readyState!==t5.OPEN){console.warn("[WebSocket] Cannot send message - connection not open"),this.messageQueue.push(t),r(new Error("WebSocket is not connected or not open"));return}try{const i=typeof t=="string"?t:JSON.stringify(t);console.debug("[WebSocket] Sending message:",i),this.ws.send(i),n()}catch(i){console.error("[WebSocket] Failed to send message:",i),r(i)}})}getWs(){return this.ws}getReadyState(){return this.readyState}getRetryCount(){return this.retryCount}},mn(Aw,"WebSocketClient");class Qxt{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}let oje=class{constructor(t){this.generateIdentifier=t,this.kv=new Qxt}register(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}};class Zxt extends oje{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),super.register(t,n.identifier)):super.register(t,n)}getAllowedProps(t){return this.classToAllowedProps.get(t)}}function Jxt(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function e9t(e,t){const n=Jxt(e);if("find"in n)return n.find(t);const r=n;for(let i=0;i<r.length;i++){const o=r[i];if(t(o))return o}}function e7(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function JF(e,t){return e.indexOf(t)!==-1}function m5e(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}class t9t{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return e9t(this.transfomers,n=>n.isApplicable(t))}findByName(t){return this.transfomers[t]}}const n9t=e=>Object.prototype.toString.call(e).slice(8,-1),sje=e=>typeof e>"u",r9t=e=>e===null,hT=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,aae=e=>hT(e)&&Object.keys(e).length===0,q4=e=>Array.isArray(e),i9t=e=>typeof e=="string",o9t=e=>typeof e=="number"&&!isNaN(e),s9t=e=>typeof e=="boolean",a9t=e=>e instanceof RegExp,gT=e=>e instanceof Map,pT=e=>e instanceof Set,aje=e=>n9t(e)==="Symbol",l9t=e=>e instanceof Date&&!isNaN(e.valueOf()),c9t=e=>e instanceof Error,v5e=e=>typeof e=="number"&&isNaN(e),u9t=e=>s9t(e)||r9t(e)||sje(e)||o9t(e)||i9t(e)||aje(e),d9t=e=>typeof e=="bigint",f9t=e=>e===1/0||e===-1/0,h9t=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),g9t=e=>e instanceof URL,lje=e=>e.replace(/\./g,"\\."),gee=e=>e.map(String).map(lje).join("."),B$=e=>{const t=[];let n="";for(let i=0;i<e.length;i++){let o=e.charAt(i);if(o==="\\"&&e.charAt(i+1)==="."){n+=".",i++;continue}if(o==="."){t.push(n),n="";continue}n+=o}const r=n;return t.push(r),t};function Cp(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const cje=[Cp(sje,"undefined",()=>null,()=>{}),Cp(d9t,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),Cp(l9t,"Date",e=>e.toISOString(),e=>new Date(e)),Cp(c9t,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),Cp(a9t,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Cp(pT,"set",e=>[...e.values()],e=>new Set(e)),Cp(gT,"map",e=>[...e.entries()],e=>new Map(e)),Cp(e=>v5e(e)||f9t(e),"number",e=>v5e(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Cp(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Cp(g9t,"URL",e=>e.toString(),e=>new URL(e))];function wj(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const uje=wj((e,t)=>aje(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),p9t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),dje=wj(h9t,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=p9t[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function fje(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const hje=wj(fje,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(i=>{r[i]=e[i]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),gje=wj((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),m9t=[hje,uje,gje,dje],C5e=(e,t)=>{const n=m5e(m9t,i=>i.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=m5e(cje,i=>i.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},pje={};cje.forEach(e=>{pje[e.annotation]=e});const v9t=(e,t,n)=>{if(q4(t))switch(t[0]){case"symbol":return uje.untransform(e,t,n);case"class":return hje.untransform(e,t,n);case"custom":return gje.untransform(e,t,n);case"typed-array":return dje.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=pje[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},wS=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function mje(e){if(JF(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(JF(e,"prototype"))throw new Error("prototype is not allowed as a property");if(JF(e,"constructor"))throw new Error("constructor is not allowed as a property")}const C9t=(e,t)=>{mje(t);for(let n=0;n<t.length;n++){const r=t[n];if(pT(e))e=wS(e,+r);else if(gT(e)){const i=+r,o=+t[++n]==0?"key":"value",s=wS(e,i);switch(o){case"key":e=s;break;case"value":e=e.get(s);break}}else e=e[r]}return e},lae=(e,t,n)=>{if(mje(t),t.length===0)return n(e);let r=e;for(let o=0;o<t.length-1;o++){const s=t[o];if(q4(r)){const a=+s;r=r[a]}else if(hT(r))r=r[s];else if(pT(r)){const a=+s;r=wS(r,a)}else if(gT(r)){if(o===t.length-2)break;const l=+s,c=+t[++o]==0?"key":"value",u=wS(r,l);switch(c){case"key":r=u;break;case"value":r=r.get(u);break}}}const i=t[t.length-1];if(q4(r)?r[+i]=n(r[+i]):hT(r)&&(r[i]=n(r[i])),pT(r)){const o=wS(r,+i),s=n(o);o!==s&&(r.delete(o),r.add(s))}if(gT(r)){const o=+t[t.length-2],s=wS(r,o);switch(+i==0?"key":"value"){case"key":{const l=n(s);r.set(l,r.get(s)),l!==s&&r.delete(s);break}case"value":{r.set(s,n(r.get(s)));break}}}return e};function cae(e,t,n=[]){if(!e)return;if(!q4(e)){e7(e,(o,s)=>cae(o,t,[...n,...B$(s)]));return}const[r,i]=e;i&&e7(i,(o,s)=>{cae(o,t,[...n,...B$(s)])}),t(r,n)}function y9t(e,t,n){return cae(t,(r,i)=>{e=lae(e,i,o=>v9t(o,r,n))}),e}function b9t(e,t){function n(r,i){const o=C9t(e,B$(i));r.map(B$).forEach(s=>{e=lae(e,s,()=>o)})}if(q4(t)){const[r,i]=t;r.forEach(o=>{e=lae(e,B$(o),()=>e)}),i&&e7(i,n)}else e7(t,n);return e}const S9t=(e,t)=>hT(e)||q4(e)||gT(e)||pT(e)||fje(e,t);function w9t(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function x9t(e,t){const n={};let r;return e.forEach(i=>{if(i.length<=1)return;t||(i=i.map(a=>a.map(String)).sort((a,l)=>a.length-l.length));const[o,...s]=i;o.length===0?r=s.map(gee):n[gee(o)]=s.map(gee)}),r?aae(n)?[r]:[r,n]:aae(n)?void 0:n}const vje=(e,t,n,r,i=[],o=[],s=new Map)=>{const a=u9t(e);if(!a){w9t(e,i,t);const g=s.get(e);if(g)return r?{transformedValue:null}:g}if(!S9t(e,n)){const g=C5e(e,n),p=g?{transformedValue:g.value,annotations:[g.type]}:{transformedValue:e};return a||s.set(e,p),p}if(JF(o,e))return{transformedValue:null};const l=C5e(e,n),c=(l==null?void 0:l.value)??e,u=q4(c)?[]:{},f={};e7(c,(g,p)=>{if(p==="__proto__"||p==="constructor"||p==="prototype")throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);const m=vje(g,t,n,r,[...i,p],[...o,e],s);u[p]=m.transformedValue,q4(m.annotations)?f[p]=m.annotations:hT(m.annotations)&&e7(m.annotations,(v,C)=>{f[lje(p)+"."+C]=v})});const h=aae(f)?{transformedValue:u,annotations:l?[l.type]:void 0}:{transformedValue:u,annotations:l?[l.type,f]:f};return a||s.set(e,h),h};function Cje(e){return Object.prototype.toString.call(e).slice(8,-1)}function y5e(e){return Cje(e)==="Array"}function E9t(e){if(Cje(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function R9t(e,t,n,r,i){const o={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";o==="enumerable"&&(e[t]=n),i&&o==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function uae(e,t={}){if(y5e(e))return e.map(i=>uae(i,t));if(!E9t(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((i,o)=>{if(y5e(t.props)&&!t.props.includes(o))return i;const s=e[o],a=uae(s,t);return R9t(i,o,a,e,t.nonenumerable),i},{})}class di{constructor({dedupe:t=!1}={}){this.classRegistry=new Zxt,this.symbolRegistry=new oje(n=>n.description??""),this.customTransformerRegistry=new t9t,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const n=new Map,r=vje(t,n,this,this.dedupe),i={json:r.transformedValue};r.annotations&&(i.meta={...i.meta,values:r.annotations});const o=x9t(n,this.dedupe);return o&&(i.meta={...i.meta,referentialEqualities:o}),i}deserialize(t){const{json:n,meta:r}=t;let i=uae(n);return r!=null&&r.values&&(i=y9t(i,r.values,this)),r!=null&&r.referentialEqualities&&(i=b9t(i,r.referentialEqualities)),i}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,n){this.classRegistry.register(t,n)}registerSymbol(t,n){this.symbolRegistry.register(t,n)}registerCustom(t,n){this.customTransformerRegistry.register({name:n,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}}di.defaultInstance=new di;di.serialize=di.defaultInstance.serialize.bind(di.defaultInstance);di.deserialize=di.defaultInstance.deserialize.bind(di.defaultInstance);di.stringify=di.defaultInstance.stringify.bind(di.defaultInstance);di.parse=di.defaultInstance.parse.bind(di.defaultInstance);di.registerClass=di.defaultInstance.registerClass.bind(di.defaultInstance);di.registerSymbol=di.defaultInstance.registerSymbol.bind(di.defaultInstance);di.registerCustom=di.defaultInstance.registerCustom.bind(di.defaultInstance);di.allowErrorProps=di.defaultInstance.allowErrorProps.bind(di.defaultInstance);di.serialize;di.deserialize;di.stringify;di.parse;di.registerClass;di.registerCustom;di.registerSymbol;di.allowErrorProps;function yje(e,t){return function(){return e.apply(t,arguments)}}const{toString:$9t}=Object.prototype,{getPrototypeOf:xge}=Object,xj=(e=>t=>{const n=$9t.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gg=e=>(e=e.toLowerCase(),t=>xj(t)===e),Ej=e=>t=>typeof t===e,{isArray:kx}=Array,mT=Ej("undefined");function O9t(e){return e!==null&&!mT(e)&&e.constructor!==null&&!mT(e.constructor)&&fd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bje=Gg("ArrayBuffer");function T9t(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bje(e.buffer),t}const I9t=Ej("string"),fd=Ej("function"),Sje=Ej("number"),Rj=e=>e!==null&&typeof e=="object",M9t=e=>e===!0||e===!1,eN=e=>{if(xj(e)!=="object")return!1;const t=xge(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},P9t=Gg("Date"),_9t=Gg("File"),A9t=Gg("Blob"),D9t=Gg("FileList"),L9t=e=>Rj(e)&&fd(e.pipe),F9t=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||fd(e.append)&&((t=xj(e))==="formdata"||t==="object"&&fd(e.toString)&&e.toString()==="[object FormData]"))},N9t=Gg("URLSearchParams"),[k9t,z9t,B9t,H9t]=["ReadableStream","Request","Response","Headers"].map(Gg),j9t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function WI(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),kx(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function wje(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const $8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xje=e=>!mT(e)&&e!==$8;function dae(){const{caseless:e}=xje(this)&&this||{},t={},n=(r,i)=>{const o=e&&wje(t,i)||i;eN(t[o])&&eN(r)?t[o]=dae(t[o],r):eN(r)?t[o]=dae({},r):kx(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&WI(arguments[r],n);return t}const V9t=(e,t,n,{allOwnKeys:r}={})=>(WI(t,(i,o)=>{n&&fd(i)?e[o]=yje(i,n):e[o]=i},{allOwnKeys:r}),e),G9t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),W9t=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},U9t=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&xge(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},q9t=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},K9t=e=>{if(!e)return null;if(kx(e))return e;let t=e.length;if(!Sje(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Y9t=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xge(Uint8Array)),X9t=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Q9t=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Z9t=Gg("HTMLFormElement"),J9t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),b5e=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eEt=Gg("RegExp"),Eje=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};WI(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},tEt=e=>{Eje(e,(t,n)=>{if(fd(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(fd(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nEt=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return kx(e)?r(e):r(String(e).split(t)),n},rEt=()=>{},iEt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,pee="abcdefghijklmnopqrstuvwxyz",S5e="0123456789",Rje={DIGIT:S5e,ALPHA:pee,ALPHA_DIGIT:pee+pee.toUpperCase()+S5e},oEt=(e=16,t=Rje.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function sEt(e){return!!(e&&fd(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const aEt=e=>{const t=new Array(10),n=(r,i)=>{if(Rj(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=kx(r)?[]:{};return WI(r,(s,a)=>{const l=n(s,i+1);!mT(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},lEt=Gg("AsyncFunction"),cEt=e=>e&&(Rj(e)||fd(e))&&fd(e.then)&&fd(e.catch),$je=((e,t)=>e?setImmediate:t?((n,r)=>($8.addEventListener("message",({source:i,data:o})=>{i===$8&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),$8.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",fd($8.postMessage)),uEt=typeof queueMicrotask<"u"?queueMicrotask.bind($8):typeof process<"u"&&process.nextTick||$je,Nt={isArray:kx,isArrayBuffer:bje,isBuffer:O9t,isFormData:F9t,isArrayBufferView:T9t,isString:I9t,isNumber:Sje,isBoolean:M9t,isObject:Rj,isPlainObject:eN,isReadableStream:k9t,isRequest:z9t,isResponse:B9t,isHeaders:H9t,isUndefined:mT,isDate:P9t,isFile:_9t,isBlob:A9t,isRegExp:eEt,isFunction:fd,isStream:L9t,isURLSearchParams:N9t,isTypedArray:Y9t,isFileList:D9t,forEach:WI,merge:dae,extend:V9t,trim:j9t,stripBOM:G9t,inherits:W9t,toFlatObject:U9t,kindOf:xj,kindOfTest:Gg,endsWith:q9t,toArray:K9t,forEachEntry:X9t,matchAll:Q9t,isHTMLForm:Z9t,hasOwnProperty:b5e,hasOwnProp:b5e,reduceDescriptors:Eje,freezeMethods:tEt,toObjectSet:nEt,toCamelCase:J9t,noop:rEt,toFiniteNumber:iEt,findKey:wje,global:$8,isContextDefined:xje,ALPHABET:Rje,generateString:oEt,isSpecCompliantForm:sEt,toJSONObject:aEt,isAsyncFn:lEt,isThenable:cEt,setImmediate:$je,asap:uEt};function Hr(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Nt.inherits(Hr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Nt.toJSONObject(this.config),code:this.code,status:this.status}}});const Oje=Hr.prototype,Tje={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tje[e]={value:e}});Object.defineProperties(Hr,Tje);Object.defineProperty(Oje,"isAxiosError",{value:!0});Hr.from=(e,t,n,r,i,o)=>{const s=Object.create(Oje);return Nt.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Hr.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const dEt=null;function fae(e){return Nt.isPlainObject(e)||Nt.isArray(e)}function Ije(e){return Nt.endsWith(e,"[]")?e.slice(0,-2):e}function w5e(e,t,n){return e?e.concat(t).map(function(i,o){return i=Ije(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function fEt(e){return Nt.isArray(e)&&!e.some(fae)}const hEt=Nt.toFlatObject(Nt,{},null,function(t){return/^is[A-Z]/.test(t)});function $j(e,t,n){if(!Nt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Nt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!Nt.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Nt.isSpecCompliantForm(t);if(!Nt.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(Nt.isDate(p))return p.toISOString();if(!l&&Nt.isBlob(p))throw new Hr("Blob is not supported. Use a Buffer instead.");return Nt.isArrayBuffer(p)||Nt.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,v){let C=p;if(p&&!v&&typeof p=="object"){if(Nt.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(Nt.isArray(p)&&fEt(p)||(Nt.isFileList(p)||Nt.endsWith(m,"[]"))&&(C=Nt.toArray(p)))return m=Ije(m),C.forEach(function(b,S){!(Nt.isUndefined(b)||b===null)&&t.append(s===!0?w5e([m],S,o):s===null?m:m+"[]",c(b))}),!1}return fae(p)?!0:(t.append(w5e(v,m,o),c(p)),!1)}const f=[],h=Object.assign(hEt,{defaultVisitor:u,convertValue:c,isVisitable:fae});function g(p,m){if(!Nt.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),Nt.forEach(p,function(C,y){(!(Nt.isUndefined(C)||C===null)&&i.call(t,C,Nt.isString(y)?y.trim():y,m,h))===!0&&g(C,m?m.concat(y):[y])}),f.pop()}}if(!Nt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function x5e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ege(e,t){this._pairs=[],e&&$j(e,this,t)}const Mje=Ege.prototype;Mje.append=function(t,n){this._pairs.push([t,n])};Mje.toString=function(t){const n=t?function(r){return t.call(this,r,x5e)}:x5e;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function gEt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pje(e,t,n){if(!t)return e;const r=n&&n.encode||gEt;Nt.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=Nt.isURLSearchParams(t)?t.toString():new Ege(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class E5e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Nt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pEt=typeof URLSearchParams<"u"?URLSearchParams:Ege,mEt=typeof FormData<"u"?FormData:null,vEt=typeof Blob<"u"?Blob:null,CEt={isBrowser:!0,classes:{URLSearchParams:pEt,FormData:mEt,Blob:vEt},protocols:["http","https","file","blob","url","data"]},Rge=typeof window<"u"&&typeof document<"u",hae=typeof navigator=="object"&&navigator||void 0,yEt=Rge&&(!hae||["ReactNative","NativeScript","NS"].indexOf(hae.product)<0),bEt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SEt=Rge&&window.location.href||"http://localhost",wEt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Rge,hasStandardBrowserEnv:yEt,hasStandardBrowserWebWorkerEnv:bEt,navigator:hae,origin:SEt},Symbol.toStringTag,{value:"Module"})),Ll={...wEt,...CEt};function xEt(e,t){return $j(e,new Ll.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Ll.isNode&&Nt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function EEt(e){return Nt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function REt(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Aje(e){function t(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&Nt.isArray(i)?i.length:s,l?(Nt.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!Nt.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&Nt.isArray(i[s])&&(i[s]=REt(i[s])),!a)}if(Nt.isFormData(e)&&Nt.isFunction(e.entries)){const n={};return Nt.forEachEntry(e,(r,i)=>{t(EEt(r),i,n,0)}),n}return null}function $Et(e,t,n){if(Nt.isString(e))try{return(t||JSON.parse)(e),Nt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const UI={transitional:_je,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=Nt.isObject(t);if(o&&Nt.isHTMLForm(t)&&(t=new FormData(t)),Nt.isFormData(t))return i?JSON.stringify(Aje(t)):t;if(Nt.isArrayBuffer(t)||Nt.isBuffer(t)||Nt.isStream(t)||Nt.isFile(t)||Nt.isBlob(t)||Nt.isReadableStream(t))return t;if(Nt.isArrayBufferView(t))return t.buffer;if(Nt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return xEt(t,this.formSerializer).toString();if((a=Nt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return $j(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),$Et(t)):t}],transformResponse:[function(t){const n=this.transitional||UI.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Nt.isResponse(t)||Nt.isReadableStream(t))return t;if(t&&Nt.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Hr.from(a,Hr.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ll.classes.FormData,Blob:Ll.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Nt.forEach(["delete","get","head","post","put","patch"],e=>{UI.headers[e]={}});const OEt=Nt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),TEt=e=>{const t={};let n,r,i;return e&&e.split(`
|
||
`).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,responseEncoding:s,validateStatus:a,headers:(c,u,f)=>i(T5e(c),T5e(u),f,!0)};return Nt.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||i,h=f(e[u],t[u],u);Nt.isUndefined(h)&&f!==a||(n[u]=h)}),n}const Nje=e=>{const t=AC({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=pu.from(s),t.url=Pje(Fje(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(Nt.isFormData(n)){if(Ll.hasStandardBrowserEnv||Ll.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ll.hasStandardBrowserEnv&&(r&&Nt.isFunction(r)&&(r=r(t)),r||r!==!1&&FEt(t.url))){const c=i&&o&&NEt.read(o);c&&s.set(i,c)}return t},BEt=typeof XMLHttpRequest<"u",HEt=BEt&&function(e){return new Promise(function(n,r){const i=Nje(e);let o=i.data;const s=pu.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,u,f,h,g,p;function m(){g&&g(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function C(){if(!v)return;const b=pu.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};Lje(function(E){n(E),m()},function(E){r(E),m()},w),v=null}"onloadend"in v?v.onloadend=C:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(C)},v.onabort=function(){v&&(r(new Hr("Request aborted",Hr.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Hr("Network Error",Hr.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||_je;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Hr(S,w.clarifyTimeoutError?Hr.ETIMEDOUT:Hr.ECONNABORTED,e,v)),v=null},o===void 0&&s.setContentType(null),"setRequestHeader"in v&&Nt.forEach(s.toJSON(),function(S,w){v.setRequestHeader(w,S)}),Nt.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),a&&a!=="json"&&(v.responseType=i.responseType),c&&([h,p]=pz(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([f,g]=pz(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(u=b=>{v&&(r(!b||b.type?new zx(null,e,v):b),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const y=AEt(i.url);if(y&&Ll.protocols.indexOf(y)===-1){r(new Hr("Unsupported protocol "+y+":",Hr.ERR_BAD_REQUEST,e));return}v.send(o||null)})},jEt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Hr?u:new zx(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new Hr(`timeout ${t} of ms exceeded`,Hr.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>Nt.asap(a),l}},VEt=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},GEt=async function*(e,t){for await(const n of WEt(e))yield*VEt(n,t)},WEt=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},I5e=(e,t,n,r)=>{const i=GEt(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){a(),l.close();return}let f=u.byteLength;if(n){let h=o+=f;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},Oj=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",kje=Oj&&typeof ReadableStream=="function",UEt=Oj&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zje=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qEt=kje&&zje(()=>{let e=!1;const t=new Request(Ll.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),M5e=64*1024,gae=kje&&zje(()=>Nt.isReadableStream(new Response("").body)),mz={stream:gae&&(e=>e.body)};Oj&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!mz[t]&&(mz[t]=Nt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Hr(`Response type '${t}' is not supported`,Hr.ERR_NOT_SUPPORT,r)})})})(new Response);const KEt=async e=>{if(e==null)return 0;if(Nt.isBlob(e))return e.size;if(Nt.isSpecCompliantForm(e))return(await new Request(Ll.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Nt.isArrayBufferView(e)||Nt.isArrayBuffer(e))return e.byteLength;if(Nt.isURLSearchParams(e)&&(e=e+""),Nt.isString(e))return(await UEt(e)).byteLength},YEt=async(e,t)=>{const n=Nt.toFiniteNumber(e.getContentLength());return n??KEt(t)},XEt=Oj&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=Nje(e);c=c?(c+"").toLowerCase():"text";let g=jEt([i,o&&o.toAbortSignal()],s),p;const m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let v;try{if(l&&qEt&&n!=="get"&&n!=="head"&&(v=await YEt(u,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(Nt.isFormData(r)&&(x=w.headers.get("content-type"))&&u.setContentType(x),w.body){const[E,R]=$5e(v,pz(O5e(l)));r=I5e(w.body,M5e,E,R)}}Nt.isString(f)||(f=f?"include":"omit");const C="credentials"in Request.prototype;p=new Request(t,{...h,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:C?f:void 0});let y=await fetch(p);const b=gae&&(c==="stream"||c==="response");if(gae&&(a||b&&m)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=y[O]});const x=Nt.toFiniteNumber(y.headers.get("content-length")),[E,R]=a&&$5e(x,pz(O5e(a),!0))||[];y=new Response(I5e(y.body,M5e,E,()=>{R&&R(),m&&m()}),w)}c=c||"text";let S=await mz[Nt.findKey(mz,c)||"text"](y,e);return!b&&m&&m(),await new Promise((w,x)=>{Lje(w,x,{data:S,headers:pu.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:p})})}catch(C){throw m&&m(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Hr("Network Error",Hr.ERR_NETWORK,e,p),{cause:C.cause||C}):Hr.from(C,C&&C.code,e,p)}}),pae={http:dEt,xhr:HEt,fetch:XEt};Nt.forEach(pae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const P5e=e=>`- ${e}`,QEt=e=>Nt.isFunction(e)||e===null||e===!1,Bje={getAdapter:e=>{e=Nt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!QEt(n)&&(r=pae[(s=String(n)).toLowerCase()],r===void 0))throw new Hr(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
||
`+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,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mae).forEach(([e,t])=>{mae[t]=e});function jje(e){const t=new tC(e),n=yje(tC.prototype.request,t);return Nt.extend(n,tC.prototype,t,{allOwnKeys:!0}),Nt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return jje(AC(e,i))},n}const zs=jje(UI);zs.Axios=tC;zs.CanceledError=zx;zs.CancelToken=$ge;zs.isCancel=Dje;zs.VERSION=Hje;zs.toFormData=$j;zs.AxiosError=Hr;zs.Cancel=zs.CanceledError;zs.all=function(t){return Promise.all(t)};zs.spread=JEt;zs.isAxiosError=eRt;zs.mergeConfig=AC;zs.AxiosHeaders=pu;zs.formToJSON=e=>Aje(Nt.isHTMLForm(e)?new FormData(e):e);zs.getAdapter=Bje.getAdapter;zs.HttpStatusCode=mae;zs.default=zs;const Fs={APP_NAME:window.env.VITE_APP_APP_NAME,SERVER_IP:window.env.VITE_APP_SERVER_IP,FILE_PORT:window.env.VITE_APP_FILE_PORT,SERVER_PORT:window.env.VITE_APP_SERVER_PORT,VERSION:window.env.VITE_APP_VERSION},tRt=`http://${Fs.SERVER_IP}:${Fs==null?void 0:Fs.SERVER_PORT}`,Y5=zs.create({baseURL:tRt});Y5.interceptors.request.use(e=>{const t=localStorage.getItem("access_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));const Vje=d.createContext(void 0);function Wi(){const e=d.useContext(Vje);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}function nRt({children:e}){const[t,n]=d.useState(localStorage.getItem("access_token")),[r,i]=d.useState(localStorage.getItem("session_id")),[o,s]=d.useState(localStorage.getItem("refresh_token")),[a,l]=d.useState(!!localStorage.getItem("access_token")),[c,u]=d.useState(!1),[f,h]=d.useState(null),[g,p]=d.useState(JSON.parse(localStorage.getItem("user-profile")||"null")),[m,v]=d.useState(!1),C=d.useCallback(()=>{const _=localStorage.getItem("access_token"),F=localStorage.getItem("refresh_token"),D=localStorage.getItem("session_id");n(_),s(F),i(D),l(!!_),F&&D&&b(),_&&E()},[]),y=d.useCallback(async()=>{if(o)try{u(!0);const _=await Y5.post("/auth/refresh-token",{refreshToken:o,sessionId:r}),{access_token:F,access_token_expires_at:D}=_.data;localStorage.setItem("access_token",F),localStorage.setItem("access_token_expires_at",D),n(F),l(!0),E()}catch(_){console.error("Token refresh failed",_),x()}finally{u(!1)}},[o]),b=d.useCallback(async()=>{f&&clearInterval(f),await y();const _=setInterval(y,60*60*1e3);h(_)},[f,y]),S=async(_,F)=>{try{u(!0);const D=await Y5.post("/auth/login",{username:_,password:F}),{access_token:k,refresh_token:L,access_token_expires_at:I,refresh_token_expires_at:A,session_id:N}=D.data;localStorage.setItem("access_token",k),localStorage.setItem("refresh_token",L),localStorage.setItem("session_id",N),localStorage.setItem("access_token_expires_at",I),localStorage.setItem("refresh_token_expires_at",A),n(k),s(L),i(N),l(!0),b(),E()}catch(D){throw D}finally{u(!1)}},w=async _=>{try{u(!0),await Y5.post("/auth/signup",_)}catch(F){throw F}finally{u(!1)}};d.useEffect(()=>{g&&v(g.permissions.includes(Ki.MANAGE_ANY_STAFF))},[g]);const x=async()=>{try{u(!0);const _=localStorage.getItem("refresh_token"),F=localStorage.getItem("session_id");localStorage.removeItem("session_id"),localStorage.removeItem("refresh_token"),localStorage.removeItem("access_token_expires_at"),localStorage.removeItem("refresh_token_expires_at"),localStorage.removeItem("user-profile"),localStorage.removeItem("access_token"),await Y5.post("/auth/logout",{refreshToken:_,sessionId:F}),n(null),s(null),i(null),l(!1),p(null),v(!1),f&&(clearInterval(f),h(null))}catch(_){console.error("Logout failed",_)}finally{u(!1),window.location.reload()}},E=d.useCallback(async()=>{try{const F=(await Y5.get("/auth/user-profile")).data;p(F),localStorage.setItem("user-profile",JSON.stringify(F))}catch(_){console.error(_)}},[]);d.useEffect(()=>{C()},[C]);const M={hasSomePermissions:(..._)=>_.some(F=>{var D;return(D=g==null?void 0:g.permissions)==null?void 0:D.includes(F)}),hasEveryPermissions:(..._)=>_.every(F=>g==null?void 0:g.permissions.includes(F)),accessToken:t,isSameDomain:_=>(g==null?void 0:g.domainId)===_,refreshToken:o,isAuthenticated:a,isLoading:c,user:g,isRoot:m,login:S,logout:x,signup:w,refreshAccessToken:y,initializeAuth:C,startTokenRefreshInterval:b,fetchUserProfile:E,sessionId:r};return H.jsx(Vje.Provider,{value:M,children:e})}function Gje(){const e=d.useCallback((o,s)=>`${o}://${Fs.SERVER_IP}:${s}`,[]),t=d.useMemo(()=>e("http",8080),[e]),n=d.useMemo(()=>e("http",parseInt(Fs.SERVER_PORT)),[e]),r=d.useMemo(()=>e("ws",parseInt(Fs.SERVER_PORT)),[e]),i=d.useCallback(o=>o.startsWith(t),[t]);return{apiUrl:n,websocketUrl:r,checkIsTusUrl:i,tusUrl:t}}function rRt({children:e}){const{accessToken:t}=Wi(),{apiUrl:n,websocketUrl:r}=Gje(),[i]=d.useState(()=>new Wyt({defaultOptions:{queries:{staleTime:1e3*60*10}}})),o=d.useMemo(()=>Nbt({url:`${r}/trpc`,connectionParams:t?{token:t}:{}}),[r,t]);d.useEffect(()=>()=>{o&&o.close()},[]);const s=d.useMemo(()=>{const a=async()=>({...t?{Authorization:`Bearer ${t}`}:{}}),l=[Dbt({condition:c=>c.type==="subscription",true:o?kbt({client:o,transformer:di}):Pbe({url:`${n}/trpc`,headers:a,transformer:di}),false:Pbe({url:`${n}/trpc`,headers:a,transformer:di})}),Abt({enabled:c=>c.direction==="down"&&c.result instanceof Error})];return an.createClient({links:l})},[t,o,n]);return H.jsx(an.Provider,{client:s,queryClient:i,children:H.jsx(Qyt,{client:i,children:e})})}function iRt(){const e=Xze();return H.jsx("div",{className:"flex justify-center items-center pt-64",children:H.jsxs("div",{className:"flex flex-col gap-4",children:[H.jsx("div",{className:"text-xl font-bold text-primary",children:"哦?页面似乎出错了..."}),H.jsx("div",{className:"text-tertiary",children:(e==null?void 0:e.statusText)||(e==null?void 0:e.message)})]})})}var Wje={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(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={};/**
|
||
* @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.
|
||
*/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,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];n.call(r,s[1],s[0])}},t}()}(),yae=typeof window<"u"&&typeof document<"u"&&window.document===document,vz=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),vRt=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(vz):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),CRt=2;function yRt(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&a()}function s(){vRt(o)}function a(){var l=Date.now();if(n){if(l-i<CRt)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=l}return a}var bRt=20,SRt=["top","right","bottom","left","width","height","size","weight"],wRt=typeof MutationObserver<"u",xRt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=yRt(this.refresh.bind(this),bRt)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!yae||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wRt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!yae||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=SRt.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Jje=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},t7=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||vz},eVe=zj(0,0,0,0);function Cz(e){return parseFloat(e)||0}function L5e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var o=e["border-"+i+"-width"];return r+Cz(o)},0)}function ERt(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],s=e["padding-"+o];n[o]=Cz(s)}return n}function RRt(e){var t=e.getBBox();return zj(0,0,t.width,t.height)}function $Rt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return eVe;var r=t7(e).getComputedStyle(e),i=ERt(r),o=i.left+i.right,s=i.top+i.bottom,a=Cz(r.width),l=Cz(r.height);if(r.boxSizing==="border-box"&&(Math.round(a+o)!==t&&(a-=L5e(r,"left","right")+o),Math.round(l+s)!==n&&(l-=L5e(r,"top","bottom")+s)),!TRt(e)){var c=Math.round(a+o)-t,u=Math.round(l+s)-n;Math.abs(c)!==1&&(a-=c),Math.abs(u)!==1&&(l-=u)}return zj(i.left,i.top,a,l)}var ORt=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof t7(e).SVGGraphicsElement}:function(e){return e instanceof t7(e).SVGElement&&typeof e.getBBox=="function"}}();function TRt(e){return e===t7(e).document.documentElement}function IRt(e){return yae?ORt(e)?RRt(e):$Rt(e):eVe}function MRt(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);return Jje(s,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),s}function zj(e,t,n,r){return{x:e,y:t,width:n,height:r}}var PRt=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=zj(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=IRt(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),_Rt=function(){function e(t,n){var r=MRt(n);Jje(this,{target:t,contentRect:r})}return e}(),ARt=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Zje,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof t7(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new PRt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof t7(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new _Rt(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),tVe=typeof WeakMap<"u"?new WeakMap:new Zje,nVe=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=xRt.getInstance(),r=new ARt(t,n,this);tVe.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){nVe.prototype[e]=function(){var t;return(t=tVe.get(this))[e].apply(t,arguments)}});var rVe=function(){return typeof vz.ResizeObserver<"u"?vz.ResizeObserver:nVe}(),t4=new Map;function DRt(e){e.forEach(function(t){var n,r=t.target;(n=t4.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var iVe=new rVe(DRt),LRt=null;function FRt(e,t){t4.has(e)||(t4.set(e,new Set),iVe.observe(e)),t4.get(e).add(t)}function NRt(e,t){t4.has(e)&&(t4.get(e).delete(t),t4.get(e).size||(iVe.unobserve(e),t4.delete(e)))}function qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F5e(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,Kje(r.key),r)}}function Kr(e,t,n){return t&&F5e(e.prototype,t),n&&F5e(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yT(e,t){return yT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yT(e,t)}function hs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yT(e,t)}function ul(e){return ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ul(e)}function tv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tv=function(){return!!e})()}function dn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Py(e,t){if(t&&(nn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dn(e)}function wc(e){var t=tv();return function(){var n,r=ul(e);if(t){var i=ul(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Py(this,n)}}var kRt=function(e){hs(n,e);var t=wc(n);function n(){return qr(this,n),t.apply(this,arguments)}return Kr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function zRt(e,t){var n=e.children,r=e.disabled,i=d.useRef(null),o=d.useRef(null),s=d.useContext(Cae),a=typeof n=="function",l=a?n(i):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!a&&d.isValidElement(l)&&Cd(l),f=u?v3(l):null,h=Od(f,i),g=function(){var C;return nC(i.current)||(i.current&&nn(i.current)==="object"?nC((C=i.current)===null||C===void 0?void 0:C.nativeElement):null)||nC(o.current)};d.useImperativeHandle(t,function(){return g()});var p=d.useRef(e);p.current=e;var m=d.useCallback(function(v){var C=p.current,y=C.onResize,b=C.data,S=v.getBoundingClientRect(),w=S.width,x=S.height,E=v.offsetWidth,R=v.offsetHeight,O=Math.floor(w),T=Math.floor(x);if(c.current.width!==O||c.current.height!==T||c.current.offsetWidth!==E||c.current.offsetHeight!==R){var M={width:O,height:T,offsetWidth:E,offsetHeight:R};c.current=M;var _=E===Math.round(w)?w:E,F=R===Math.round(x)?x:R,D=se(se({},M),{},{offsetWidth:_,offsetHeight:F});s==null||s(D,v,b),y&&Promise.resolve().then(function(){y(D,v)})}},[]);return d.useEffect(function(){var v=g();return v&&!r&&FRt(v,m),function(){return NRt(v,m)}},[i.current,r]),d.createElement(kRt,{ref:o},u?d.cloneElement(l,{ref:h}):l)}var BRt=d.forwardRef(zRt),HRt="rc-observer-key";function jRt(e,t){var n=e.children,r=typeof n=="function"?[n]:Rs(n);return r.map(function(i,o){var s=(i==null?void 0:i.key)||"".concat(HRt,"-").concat(o);return d.createElement(BRt,V({},e,{key:s,ref:o===0?t:void 0}),i)})}var oa=d.forwardRef(jRt);oa.Collection=mRt;const VRt=Object.freeze(Object.defineProperty({__proto__:null,_rs:LRt,default:oa},Symbol.toStringTag,{value:"Module"}));function $i(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function bae(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function GRt(e){if(Array.isArray(e))return bae(e)}function oVe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bj(e,t){if(e){if(typeof e=="string")return bae(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bae(e,t):void 0}}function WRt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
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){return this.opGet(xae(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(xae(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),o=r(i);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e}(),JRt=["children"],r7="data-token-hash",wg="data-css-hash",n4="__cssinjs_instance__";function Age(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(wg,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[n4]=i[n4]||e,i[n4]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(wg,"]"))).forEach(function(i){var o=i.getAttribute(wg);if(r[o]){if(i[n4]===e){var s;(s=i.parentNode)===null||s===void 0||s.removeChild(i)}}else r[o]=!0})}return new ZRt(e)}var i7=d.createContext({hashPriority:"low",cache:Age(),defaultCache:!0}),e$t=function(t){var n=t.children,r=on(t,JRt),i=d.useContext(i7),o=Rm(function(){var s=se({},i);Object.keys(r).forEach(function(l){var c=r[l];r[l]!==void 0&&(s[l]=c)});var a=r.cache;return s.cache=s.cache||Age(),s.defaultCache=!a&&i.defaultCache,s},[i,r],function(s,a){return!Uf(s[0],a[0],!0)||!Uf(s[1],a[1],!0)});return d.createElement(i7.Provider,{value:o},n)},gVe=Kr(function e(){qr(this,e)}),pVe="CALC_UNIT",t$t=new RegExp(pVe,"g");function yee(e){return typeof e=="number"?"".concat(e).concat(pVe):e}var n$t=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=yee(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(yee(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(yee(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(t$t,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(gVe),r$t=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}(gVe),i$t=function(t,n){var r=t==="css"?n$t:r$t;return function(i){return new r(i,n)}};function o$t(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Dge=function(){function e(){qr(this,e),ie(this,"cache",void 0),ie(this,"keys",void 0),ie(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Kr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return n.forEach(function(a){if(!s)s=void 0;else{var l;s=(l=s)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(a)}}),(r=s)!==null&&r!==void 0&&r.value&&o&&(s.value[1]=this.cacheCallTimes++),(i=s)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var f=Ce(c,2),h=f[1];return i.internalGet(u)[1]<h?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),s=Ce(o,1),a=s[0];this.delete(a)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,i.cacheCallTimes++]});else{var f=l.get(c);f?f.map||(f.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var o;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var s=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),s}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!o$t(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();ie(Dge,"MAX_CACHE_SIZE",20);ie(Dge,"MAX_CACHE_OFFSET",5);var B5e=0,Lge=function(){function e(t){qr(this,e),ie(this,"derivatives",void 0),ie(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=B5e,t.length===0&&(t.length>0,void 0),B5e+=1}return Kr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),bee=new Dge;function o7(e){var t=Array.isArray(e)?e:[e];return bee.has(t)||bee.set(t,new Lge(t)),bee.get(t)}var s$t=new WeakMap,See={};function a$t(e,t){for(var n=s$t,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(See)||n.set(See,e()),n.get(See)}var H5e=new WeakMap;function H$(e){var t=H5e.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Lge?t+=r.id:r&&nn(r)==="object"?t+=H$(r):t+=r}),t=bT(t),H5e.set(e,t)),t}function j5e(e,t){return bT("".concat(t,"_").concat(H$(e)))}var s7="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),mVe="_bAmBoO_";function vVe(e,t,n){if(Bs()){var r,i;am(e,s7);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",t==null||t(o),document.body.appendChild(o);var s=n?n(o):(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(mVe);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),n7(s7),s}return!1}var wee=void 0;function l$t(){return wee===void 0&&(wee=vVe(":where(.".concat(s7,') { content: "').concat(mVe,'"!important; }'),function(e){e.className=s7})),wee}var xee=void 0;function c$t(){return xee===void 0&&(xee=vVe(".".concat(s7," { inset-block: 93px !important; }"),function(e){e.className=s7},function(e){return getComputedStyle(e).bottom==="93px"})),xee}var Eae=Bs();function Ne(e){return typeof e=="number"?"".concat(e,"px"):e}function ST(e,t,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var s=se(se({},i),{},(r={},ie(r,r7,t),ie(r,wg,n),r)),a=Object.keys(s).map(function(l){var c=s[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var j$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},u$t=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var o=Ce(i,2),s=o[0],a=o[1];return"".concat(s,":").concat(a,";")}).join(""),"}"):""},CVe=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(s){var a,l,c=Ce(s,2),u=c[0],f=c[1];if(r!=null&&(a=r.preserve)!==null&&a!==void 0&&a[u])o[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,g=j$(u,r==null?void 0:r.prefix);i[g]=typeof f=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(f,"px"):String(f),o[u]="var(".concat(g,")")}}),[o,u$t(i,n,{scope:r==null?void 0:r.scope})]},V5e=Bs()?d.useLayoutEffect:d.useEffect,Zn=function(t,n){var r=d.useRef(!0);V5e(function(){return t(r.current)},n),V5e(function(){return r.current=!1,function(){r.current=!0}},[])},rC=function(t,n){Zn(function(r){if(!r)return t()},n)},d$t=se({},Mx),G5e=d$t.useInsertionEffect,f$t=function(t,n,r){d.useMemo(t,r),Zn(function(){return n(!0)},r)},h$t=G5e?function(e,t,n){return G5e(function(){return e(),t()},n)}:f$t,g$t=se({},Mx),p$t=g$t.useInsertionEffect,m$t=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},v$t=function(){return function(t){t()}},C$t=typeof p$t<"u"?m$t:v$t;function Fge(e,t,n,r,i){var o=d.useContext(i7),s=o.cache,a=[e].concat(ut(t)),l=xae(a),c=C$t([l]),u=function(p){s.opUpdate(l,function(m){var v=m||[void 0,void 0],C=Ce(v,2),y=C[0],b=y===void 0?0:y,S=C[1],w=S,x=w||n(),E=[b,x];return p?p(E):E})};d.useMemo(function(){u()},[l]);var f=s.opGet(l),h=f[1];return h$t(function(){i==null||i(h)},function(g){return u(function(p){var m=Ce(p,2),v=m[0],C=m[1];return g&&v===0&&(i==null||i(h)),[v+1,C]}),function(){s.opUpdate(l,function(p){var m=p||[],v=Ce(m,2),C=v[0],y=C===void 0?0:C,b=v[1],S=y-1;return S===0?(c(function(){(g||!s.opGet(l))&&(r==null||r(b,!1))}),null):[y-1,b]})}},[l]),h}var y$t={},b$t="css",g8=new Map;function S$t(e){g8.set(e,(g8.get(e)||0)+1)}function w$t(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(r7,'="').concat(e,'"]'));n.forEach(function(r){if(r[n4]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var x$t=0;function E$t(e,t){g8.set(e,(g8.get(e)||0)-1);var n=Array.from(g8.keys()),r=n.filter(function(i){var o=g8.get(i)||0;return o<=0});n.length-r.length>x$t&&r.forEach(function(i){w$t(i,t),g8.delete(i)})}var Nge=function(t,n,r,i){var o=r.getDerivativeToken(t),s=se(se({},o),n);return i&&(s=i(s)),s},yVe="token";function bVe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(i7),i=r.cache.instanceId,o=r.container,s=n.salt,a=s===void 0?"":s,l=n.override,c=l===void 0?y$t:l,u=n.formatToken,f=n.getComputedToken,h=n.cssVar,g=a$t(function(){return Object.assign.apply(Object,[{}].concat(ut(t)))},t),p=H$(g),m=H$(c),v=h?H$(h):"",C=Fge(yVe,[a,e.id,p,m,v],function(){var y,b=f?f(g,c,e):Nge(g,c,e,u),S=se({},b),w="";if(h){var x=CVe(b,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),E=Ce(x,2);b=E[0],w=E[1]}var R=j5e(b,a);b._tokenKey=R,S._tokenKey=j5e(S,a);var O=(y=h==null?void 0:h.key)!==null&&y!==void 0?y:R;b._themeKey=O,S$t(O);var T="".concat(b$t,"-").concat(bT(R));return b._hashId=T,[b,T,S,w,(h==null?void 0:h.key)||""]},function(y){E$t(y[0]._themeKey,i)},function(y){var b=Ce(y,4),S=b[0],w=b[3];if(h&&w){var x=am(w,bT("css-variables-".concat(S._themeKey)),{mark:wg,prepend:"queue",attachTo:o,priority:-999});x[n4]=i,x.setAttribute(r7,S._themeKey)}});return C}var R$t=function(t,n,r){var i=Ce(t,5),o=i[2],s=i[3],a=i[4],l=r||{},c=l.plain;if(!s)return null;var u=o._tokenKey,f=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=ST(s,a,u,h,c);return[f,u,g]},SVe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wVe="comm",xVe="rule",EVe="decl",$$t="@import",O$t="@keyframes",T$t="@layer",RVe=Math.abs,kge=String.fromCharCode;function $Ve(e){return e.trim()}function iN(e,t,n){return e.replace(t,n)}function I$t(e,t,n){return e.indexOf(t,n)}function wT(e,t){return e.charCodeAt(t)|0}function a7(e,t,n){return e.slice(t,n)}function Dp(e){return e.length}function M$t(e){return e.length}function cD(e,t){return t.push(e),e}var jj=1,l7=1,OVe=0,qf=0,Ns=0,Bx="";function zge(e,t,n,r,i,o,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:jj,column:l7,length:s,return:"",siblings:a}}function P$t(){return Ns}function _$t(){return Ns=qf>0?wT(Bx,--qf):0,l7--,Ns===10&&(l7=1,jj--),Ns}function xg(){return Ns=qf<OVe?wT(Bx,qf++):0,l7++,Ns===10&&(l7=1,jj++),Ns}function r4(){return wT(Bx,qf)}function oN(){return qf}function Vj(e,t){return a7(Bx,e,t)}function xT(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function A$t(e){return jj=l7=1,OVe=Dp(Bx=e),qf=0,[]}function D$t(e){return Bx="",e}function Eee(e){return $Ve(Vj(qf-1,Rae(e===91?e+2:e===40?e+1:e)))}function L$t(e){for(;(Ns=r4())&&Ns<33;)xg();return xT(e)>2||xT(Ns)>3?"":" "}function F$t(e,t){for(;--t&&xg()&&!(Ns<48||Ns>102||Ns>57&&Ns<65||Ns>70&&Ns<97););return Vj(e,oN()+(t<6&&r4()==32&&xg()==32))}function Rae(e){for(;xg();)switch(Ns){case e:return qf;case 34:case 39:e!==34&&e!==39&&Rae(Ns);break;case 40:e===41&&Rae(e);break;case 92:xg();break}return qf}function N$t(e,t){for(;xg()&&e+Ns!==57;)if(e+Ns===84&&r4()===47)break;return"/*"+Vj(t,qf-1)+"*"+kge(e===47?e:xg())}function k$t(e){for(;!xT(r4());)xg();return Vj(e,qf)}function z$t(e){return D$t(sN("",null,null,null,[""],e=A$t(e),0,[0],e))}function sN(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,f=s,h=0,g=0,p=0,m=1,v=1,C=1,y=0,b="",S=i,w=o,x=r,E=b;v;)switch(p=y,y=xg()){case 40:if(p!=108&&wT(E,f-1)==58){I$t(E+=iN(Eee(y),"&","&\f"),"&\f",RVe(c?a[c-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:E+=Eee(y);break;case 9:case 10:case 13:case 32:E+=L$t(p);break;case 92:E+=F$t(oN()-1,7);continue;case 47:switch(r4()){case 42:case 47:cD(B$t(N$t(xg(),oN()),t,n,l),l),(xT(p||1)==5||xT(r4()||1)==5)&&Dp(E)&&a7(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*m:a[c++]=Dp(E)*C;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:C==-1&&(E=iN(E,/\f/g,"")),g>0&&(Dp(E)-f||m===0&&p===47)&&cD(g>32?U5e(E+";",r,n,f-1,l):U5e(iN(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(cD(x=W5e(E,t,n,c,u,i,a,b,S=[],w=[],f,o),o),y===123)if(u===0)sN(E,t,x,x,S,o,f,a,w);else switch(h===99&&wT(E,3)===110?100:h){case 100:case 108:case 109:case 115:sN(e,x,x,r&&cD(W5e(e,x,x,0,0,i,a,b,i,S=[],f,w),w),i,w,f,a,r?S:w);break;default:sN(E,x,x,x,[""],w,0,a,w)}}c=u=g=0,m=C=1,b=E="",f=s;break;case 58:f=1+Dp(E),g=p;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&_$t()==125)continue}switch(E+=kge(y),y*m){case 38:C=u>0?1:(E+="\f",-1);break;case 44:a[c++]=(Dp(E)-1)*C,C=1;break;case 64:r4()===45&&(E+=Eee(xg())),h=r4(),u=f=Dp(b=E+=k$t(oN())),y++;break;case 45:p===45&&Dp(E)==2&&(m=0)}}return o}function W5e(e,t,n,r,i,o,s,a,l,c,u,f){for(var h=i-1,g=i===0?o:[""],p=M$t(g),m=0,v=0,C=0;m<r;++m)for(var y=0,b=a7(e,h+1,h=RVe(v=s[m])),S=e;y<p;++y)(S=$Ve(v>0?g[y]+" "+b:iN(b,/&\f/g,g[y])))&&(l[C++]=S);return zge(e,t,n,i===0?xVe:a,l,c,u,f)}function B$t(e,t,n,r){return zge(e,t,n,wVe,kge(P$t()),a7(e,2,-2),0,r)}function U5e(e,t,n,r,i){return zge(e,t,n,EVe,a7(e,0,r),a7(e,r+1,-1),r,i)}function $ae(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function H$t(e,t,n,r){switch(e.type){case T$t:if(e.children.length)break;case $$t:case EVe:return e.return=e.return||e.value;case wVe:return"";case O$t:return e.return=e.value+"{"+$ae(e.children,r)+"}";case xVe:if(!Dp(e.value=e.props.join(",")))return""}return Dp(n=$ae(e.children,r))?e.return=e.value+"{"+n+"}":""}function O8(e,t){var n=t.path,r=t.parentSelectors;ui(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}function j$t(e){var t,n=((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"",r=n.split(/(\[[^[]*])|(?=[.#])/).filter(function(i){return i});return r.length>1}function V$t(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var G$t=function(t,n,r){var i=V$t(r),o=i.match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(j$t)&&O8("Concat ':not' selector not support in legacy browsers.",r)},W$t=function(t,n,r){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":O8("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var i=n.split(" ").map(function(a){return a.trim()});i.length===4&&i[1]!==i[3]&&O8("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&O8("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"borderRadius":if(typeof n=="string"){var o=n.split("/").map(function(a){return a.trim()}),s=o.reduce(function(a,l){if(a)return a;var c=l.split(" ").map(function(u){return u.trim()});return c.length>=2&&c[0]!==c[1]||c.length===3&&c[1]!==c[2]||c.length===4&&c[2]!==c[3]?!0:a},!1);s&&O8("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return}},U$t=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&O8("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},q$t=function(t,n,r){r.parentSelectors.some(function(i){var o=i.split(",");return o.some(function(s){return s.split("&").length>2})})&&O8("Should not use more than one `&` in a selector.",r)},V$="data-ant-cssinjs-cache-path",TVe="_FILE_STYLE__";function K$t(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var iC,IVe=!0;function Y$t(){if(!iC&&(iC={},Bs())){var e=document.createElement("div");e.className=V$,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var o=i.split(":"),s=Ce(o,2),a=s[0],l=s[1];iC[a]=l});var n=document.querySelector("style[".concat(V$,"]"));if(n){var r;IVe=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function X$t(e){return Y$t(),!!iC[e]}function Q$t(e){var t=iC[e],n=null;if(t&&Bs())if(IVe)n=TVe;else{var r=document.querySelector("style[".concat(wg,'="').concat(iC[e],'"]'));r?n=r.innerHTML:delete iC[e]}return[n,t]}var Z$t="_skip_check_",MVe="_multi_value_";function aN(e){var t=$ae(z$t(e),H$t);return t.replace(/\{%%%\:[^;];}/g,";")}function J$t(e){return nn(e)==="object"&&e&&(Z$t in e||MVe in e)}function q5e(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(s){var a,l=s.trim().split(/\s+/),c=l[0]||"",u=((a=c.match(/^\w+/))===null||a===void 0?void 0:a[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(ut(l.slice(1))).join(" ")});return o.join(",")}var eOt=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,s=r.parentSelectors,a=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var h="",g={};function p(C){var y=C.getName(a);if(!g[y]){var b=e(C.style,n,{root:!1,parentSelectors:s}),S=Ce(b,1),w=S[0];g[y]="@keyframes ".concat(C.getName(a)).concat(w)}}function m(C){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(b){Array.isArray(b)?m(b,y):b&&y.push(b)}),y}var v=m(Array.isArray(t)?t:[t]);return v.forEach(function(C){var y=typeof C=="string"&&!i?{}:C;if(typeof y=="string")h+="".concat(y,`
|
||
`);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(")").length-1;o+=l-c}return o>=0&&i.push(a),o===0&&(s.push(i.join(" ")),i=[]),s},[]),!!n]}function n5(e){return e.notSplit=!0,e}var lOt={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:n5(["borderTop","borderBottom"]),borderBlockStart:n5(["borderTop"]),borderBlockEnd:n5(["borderBottom"]),borderInline:n5(["borderLeft","borderRight"]),borderInlineStart:n5(["borderLeft"]),borderInlineEnd:n5(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function uD(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var cOt={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],o=lOt[r];if(o&&(typeof i=="number"||typeof i=="string")){var s=aOt(i),a=Ce(s,2),l=a[0],c=a[1];o.length&&o.notSplit?o.forEach(function(u){n[u]=uD(i,c)}):o.length===1?n[o[0]]=uD(l[0],c):o.length===2?o.forEach(function(u,f){var h;n[u]=uD((h=l[f])!==null&&h!==void 0?h:l[0],c)}):o.length===4?o.forEach(function(u,f){var h,g;n[u]=uD((h=(g=l[f])!==null&&g!==void 0?g:l[f-2])!==null&&h!==void 0?h:l[0],c)}):n[r]=i}else n[r]=i}),n}},Ree=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function uOt(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var dOt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,i=t.precision,o=i===void 0?5:i,s=t.mediaQuery,a=s===void 0?!1:s,l=function(f,h){if(!h)return f;var g=parseFloat(h);if(g<=1)return f;var p=uOt(g/r,o);return"".concat(p,"rem")},c=function(f){var h=se({},f);return Object.entries(f).forEach(function(g){var p=Ce(g,2),m=p[0],v=p[1];if(typeof v=="string"&&v.includes("px")){var C=v.replace(Ree,l);h[m]=C}!SVe[m]&&typeof v=="number"&&v!==0&&(h[m]="".concat(v,"px").replace(Ree,l));var y=m.trim();if(y.startsWith("@")&&y.includes("px")&&a){var b=m.replace(Ree,l);h[b]=h[m],delete h[m]}}),h};return{visit:c}},fOt={supportModernCSS:function(){return l$t()&&c$t()}};const hOt=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:Pr,NaNLinter:U$t,StyleProvider:e$t,Theme:Lge,_experimental:fOt,createCache:Age,createTheme:o7,extractStyle:sOt,genCalc:i$t,getComputedToken:Nge,legacyLogicalPropertiesTransformer:cOt,legacyNotSelectorLinter:G$t,logicalPropertiesLinter:W$t,parentSelectorLinter:q$t,px2remTransformer:dOt,token2CSSVar:j$,unit:Ne,useCSSVarRegister:DVe,useCacheToken:bVe,useStyleRegister:yz},Symbol.toStringTag,{value:"Module"}));var qI=d.createContext({});function LVe(e){return cVe(e)||oVe(e)||Bj(e)||uVe()}function Bl(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function FVe(e,t,n,r){if(!t.length)return n;var i=LVe(t),o=i[0],s=i.slice(1),a;return!e&&typeof o=="number"?a=[]:Array.isArray(e)?a=ut(e):a=se({},e),r&&n===void 0&&s.length===1?delete a[o][s[0]]:a[o]=FVe(a[o],s,n,r),a}function Xu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Bl(e,t.slice(0,-1))?e:FVe(e,t,n,r)}function gOt(e){return nn(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function K5e(e){return Array.isArray(e)?[]:{}}var pOt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function xS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=K5e(t[0]);return t.forEach(function(i){function o(s,a){var l=new Set(a),c=Bl(i,s),u=Array.isArray(c);if(u||gOt(c)){if(!l.has(c)){l.add(c);var f=Bl(r,s);u?r=Xu(r,s,[]):(!f||nn(f)!=="object")&&(r=Xu(r,s,K5e(c))),pOt(c).forEach(function(h){o([].concat(ut(s),[h]),l)})}}else r=Xu(r,s,c)}o([])}),r}function mOt(){}const vOt=d.createContext({}),_y=()=>{const e=()=>{};return e.deprecated=mOt,e},NVe=d.createContext(void 0);var kVe={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"},COt={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},yOt=se(se({},COt),{},{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"});const zVe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Y5e={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},yOt),timePickerLocale:Object.assign({},zVe)},_u="${label} is not a valid ${type}",yd={locale:"en",Pagination:kVe,DatePicker:Y5e,TimePicker:zVe,Calendar:Y5e,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:_u,method:_u,array:_u,object:_u,number:_u,date:_u,boolean:_u,integer:_u,float:_u,regexp:_u,email:_u,url:_u,hex:_u},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let lN=Object.assign({},yd.Modal),cN=[];const X5e=()=>cN.reduce((e,t)=>Object.assign(Object.assign({},e),t),yd.Modal);function bOt(e){if(e){const t=Object.assign({},e);return cN.push(t),lN=X5e(),()=>{cN=cN.filter(n=>n!==t),lN=X5e()}}lN=Object.assign({},yd.Modal)}function BVe(){return lN}const Bge=d.createContext(void 0),ih=(e,t)=>{const n=d.useContext(Bge),r=d.useMemo(()=>{var o;const s=t||yd[e],a=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),a||{})},[e,t,n]),i=d.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?yd.locale:o},[n]);return[r,i]},SOt="internalMark",wOt=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>bOt(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Bge.Provider,{value:i},n)},Ca=Math.round;function $ee(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Q5e=(e,t,n)=>n===0?e:e/100;function qE(e,t){const n=t||255;return e>n?n:e<0?0:e}class kr{constructor(t){ie(this,"isValid",!0),ie(this,"r",0),ie(this,"g",0),ie(this,"b",0),ie(this,"a",1),ie(this,"_h",void 0),ie(this,"_s",void 0),ie(this,"_l",void 0),ie(this,"_v",void 0),ie(this,"_max",void 0),ie(this,"_min",void 0),ie(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof kr)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=qE(t.r),this.g=qE(t.g),this.b=qE(t.b),this.a=typeof t.a=="number"?qE(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const s=o/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ca(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=a=>(r[a]-this[a])*i+this[a],s={r:Ca(o("r")),g:Ca(o("g")),b:Ca(o("b")),a:Ca(o("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>Ca((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Ca(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ca(this.getSaturation()*100),r=Ca(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=qE(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const h=Ca(r*255);this.r=h,this.g=h,this.b=h}let o=0,s=0,a=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,s=u):l>=1&&l<2?(o=u,s=c):l>=2&&l<3?(s=c,a=u):l>=3&&l<4?(s=u,a=c):l>=4&&l<5?(o=u,a=c):l>=5&&l<6&&(o=c,a=u);const f=r-c/2;this.r=Ca((o+f)*255),this.g=Ca((s+f)*255),this.b=Ca((a+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=Ca(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const s=t/60,a=Math.floor(s),l=s-a,c=Ca(r*(1-n)*255),u=Ca(r*(1-n*l)*255),f=Ca(r*(1-n*(1-l))*255);switch(a){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=$ee(t,Q5e);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=$ee(t,Q5e);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=$ee(t,(r,i)=>i.includes("%")?Ca(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const xOt=Object.freeze(Object.defineProperty({__proto__:null,FastColor:kr},Symbol.toStringTag,{value:"Module"}));var dD=2,Z5e=.16,EOt=.05,ROt=.05,$Ot=.15,HVe=5,jVe=4,OOt=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function J5e(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-dD*t:Math.round(e.h)+dD*t:r=n?Math.round(e.h)+dD*t:Math.round(e.h)-dD*t,r<0?r+=360:r>=360&&(r-=360),r}function eSe(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Z5e*t:t===jVe?r=e.s+Z5e:r=e.s+EOt*t,r>1&&(r=1),n&&t===HVe&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function tSe(e,t,n){var r;return n?r=e.v+ROt*t:r=e.v-$Ot*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function K4(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new kr(e),i=r.toHsv(),o=HVe;o>0;o-=1){var s=new kr({h:J5e(i,o,!0),s:eSe(i,o,!0),v:tSe(i,o,!0)});n.push(s)}n.push(r);for(var a=1;a<=jVe;a+=1){var l=new kr({h:J5e(i,a),s:eSe(i,a),v:tSe(i,a)});n.push(l)}return t.theme==="dark"?OOt.map(function(c){var u=c.index,f=c.amount;return new kr(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var oC={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},bz=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bz.primary=bz[5];var Sz=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Sz.primary=Sz[5];var wz=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];wz.primary=wz[5];var ET=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ET.primary=ET[5];var xz=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];xz.primary=xz[5];var Ez=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ez.primary=Ez[5];var Rz=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Rz.primary=Rz[5];var $z=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];$z.primary=$z[5];var DC=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];DC.primary=DC[5];var Oz=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Oz.primary=Oz[5];var Tz=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Tz.primary=Tz[5];var Iz=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Iz.primary=Iz[5];var RT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];RT.primary=RT[5];var TOt=RT,uN={red:bz,volcano:Sz,orange:wz,gold:ET,yellow:xz,lime:Ez,green:Rz,cyan:$z,blue:DC,geekblue:Oz,purple:Tz,magenta:Iz,grey:RT},Mz=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Mz.primary=Mz[5];var Pz=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Pz.primary=Pz[5];var _z=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];_z.primary=_z[5];var Az=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Az.primary=Az[5];var Dz=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Dz.primary=Dz[5];var Lz=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Lz.primary=Lz[5];var Fz=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Fz.primary=Fz[5];var Nz=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Nz.primary=Nz[5];var kz=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];kz.primary=kz[5];var zz=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];zz.primary=zz[5];var Bz=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Bz.primary=Bz[5];var Hz=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Hz.primary=Hz[5];var jz=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];jz.primary=jz[5];var IOt={red:Mz,volcano:Pz,orange:_z,gold:Az,yellow:Dz,lime:Lz,green:Fz,cyan:Nz,blue:kz,geekblue:zz,purple:Bz,magenta:Hz,grey:jz};const MOt=Object.freeze(Object.defineProperty({__proto__:null,blue:DC,blueDark:kz,cyan:$z,cyanDark:Nz,geekblue:Oz,geekblueDark:zz,generate:K4,gold:ET,goldDark:Az,gray:TOt,green:Rz,greenDark:Fz,grey:RT,greyDark:jz,lime:Ez,limeDark:Lz,magenta:Iz,magentaDark:Hz,orange:wz,orangeDark:_z,presetDarkPalettes:IOt,presetPalettes:uN,presetPrimaryColors:oC,purple:Tz,purpleDark:Bz,red:bz,redDark:Mz,volcano:Sz,volcanoDark:Pz,yellow:xz,yellowDark:Dz},Symbol.toStringTag,{value:"Module"})),Hge={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},c7=Object.assign(Object.assign({},Hge),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||
'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,t)=>new kr(e).setA(t).toRgbString(),KE=(e,t)=>new kr(e).darken(t).toHexString(),LOt=e=>{const t=K4(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},FOt=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Gd(r,.88),colorTextSecondary:Gd(r,.65),colorTextTertiary:Gd(r,.45),colorTextQuaternary:Gd(r,.25),colorFill:Gd(r,.15),colorFillSecondary:Gd(r,.06),colorFillTertiary:Gd(r,.04),colorFillQuaternary:Gd(r,.02),colorBgSolid:Gd(r,1),colorBgSolidHover:Gd(r,.75),colorBgSolidActive:Gd(r,.95),colorBgLayout:KE(n,4),colorBgContainer:KE(n,0),colorBgElevated:KE(n,0),colorBgSpotlight:Gd(r,.85),colorBgBlur:"transparent",colorBorder:KE(n,15),colorBorderSecondary:KE(n,6)}};function KI(e){oC.pink=oC.magenta,uN.pink=uN.magenta;const t=Object.keys(Hge).map(n=>{const r=e[n]===oC[n]?uN[n]:K4(e[n]);return new Array(10).fill(1).reduce((i,o,s)=>(i[`${n}-${s+1}`]=r[s],i[`${n}${s+1}`]=r[s],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),VVe(e,{generateColorPalettes:LOt,generateNeutralColorPalettes:FOt})),WVe(e.fontSize)),DOt(e)),GVe(e)),_Ot(e))}const UVe=o7(KI),$T={token:c7,override:{override:c7},hashed:!0},jge=ce.createContext($T),OT="ant",Gj="anticon",NOt=["outlined","borderless","filled"],kOt=(e,t)=>t||(e?`${OT}-${e}`:OT),vn=d.createContext({getPrefixCls:kOt,iconPrefixCls:Gj}),zOt=`-ant-${Date.now()}-${Math.random()}`;function BOt(e,t){const n={},r=(s,a)=>{let l=s.clone();return l=(a==null?void 0:a(l))||l,l.toRgbString()},i=(s,a)=>{const l=new kr(s),c=K4(l.toRgbString());n[`${a}-color`]=r(l),n[`${a}-color-disabled`]=c[1],n[`${a}-color-hover`]=c[4],n[`${a}-color-active`]=c[6],n[`${a}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${a}-color-deprecated-bg`]=c[0],n[`${a}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const s=new kr(t.primaryColor),a=K4(s.toRgbString());a.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(s,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(s,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(s,c=>c.setA(c.a*.12));const l=new kr(a[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
||
:root {
|
||
${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
|
||
`)}
|
||
}
|
||
`.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([f]),m=Ce(p,2),v=m[0],C=m[1];rC(function(){var b=v[0];c!==b&&g(c,b)},[v]),rC(function(){Tee(i)||u(i)},[i]);var y=Hn(function(b,S){u(b,S),C([f],S)});return[h,y]}const qOt=Object.freeze(Object.defineProperty({__proto__:null,get:Bl,set:Xu,supportNodeRef:Qje,supportRef:Cd,useComposeRef:Od,useEvent:Hn,useMergedState:ir,warning:ui},Symbol.toStringTag,{value:"Module"}));function rSe(e,t,n,r){var i=se({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(a){var l=Ce(a,2),c=l[0],u=l[1];if(i!=null&&i[c]||i!=null&&i[u]){var f;(f=i[u])!==null&&f!==void 0||(i[u]=i==null?void 0:i[c])}})}var s=se(se({},n),i);return Object.keys(s).forEach(function(a){s[a]===t[a]&&delete s[a]}),s}var XVe=typeof CSSINJS_STATISTIC<"u",Oae=!0;function yr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!XVe)return Object.assign.apply(Object,[{}].concat(t));Oae=!1;var r={};return t.forEach(function(i){if(nn(i)==="object"){var o=Object.keys(i);o.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return i[s]}})})}}),Oae=!0,r}var Tae={};function KOt(){}var QVe=function(t){var n,r=t,i=KOt;return XVe&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,a){if(Oae){var l;(l=n)===null||l===void 0||l.add(a)}return s[a]}}),i=function(s,a){var l;Tae[s]={global:Array.from(n),component:se(se({},(l=Tae[s])===null||l===void 0?void 0:l.component),a)}}),{token:r,keys:n,flush:i}};function iSe(e,t,n){if(typeof n=="function"){var r;return n(yr(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function YOt(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(o){return Ne(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(o){return Ne(o)}).join(","),")")}}}var XOt=1e3*60*10,QOt=function(){function e(){qr(this,e),ie(this,"map",new Map),ie(this,"objectIDMap",new WeakMap),ie(this,"nextID",0),ie(this,"lastAccessBeat",new Map),ie(this,"accessBeat",0)}return Kr(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(o){return o&&nn(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(nn(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>XOt&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),oSe=new QOt;function ZOt(e,t){return ce.useMemo(function(){var n=oSe.get(t);if(n)return n;var r=e();return oSe.set(t,r),r},t)}var JOt=function(){return{}};function ZVe(e){var t=e.useCSP,n=t===void 0?JOt:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,s=e.getCommonStyle,a=e.getCompUnitless;function l(h,g,p,m){var v=Array.isArray(h)?h[0]:h;function C(R){return"".concat(String(v)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var y=(m==null?void 0:m.unitless)||{},b=typeof a=="function"?a(h):{},S=se(se({},b),{},ie({},C("zIndexPopup"),!0));Object.keys(y).forEach(function(R){S[C(R)]=y[R]});var w=se(se({},m),{},{unitless:S,prefixToken:C}),x=u(h,g,p,w),E=c(v,p,w);return function(R){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,T=x(R,O),M=Ce(T,2),_=M[1],F=E(O),D=Ce(F,2),k=D[0],L=D[1];return[k,_,L]}}function c(h,g,p){var m=p.unitless,v=p.injectStyle,C=v===void 0?!0:v,y=p.prefixToken,b=p.ignore,S=function(E){var R=E.rootCls,O=E.cssVar,T=O===void 0?{}:O,M=r(),_=M.realToken;return DVe({path:[h],prefix:T.prefix,key:T.key,unitless:m,ignore:b,token:_,scope:R},function(){var F=iSe(h,_,g),D=rSe(h,_,F,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(F).forEach(function(k){D[y(k)]=D[k],delete D[k]}),D}),null},w=function(E){var R=r(),O=R.cssVar;return[function(T){return C&&O?ce.createElement(ce.Fragment,null,ce.createElement(S,{rootCls:E,cssVar:O,component:h}),T):T},O==null?void 0:O.key]};return w}function u(h,g,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(h)?h:[h,h],C=Ce(v,1),y=C[0],b=v.join("-"),S=e.layer||{name:"antd"};return function(w){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,E=r(),R=E.theme,O=E.realToken,T=E.hashId,M=E.token,_=E.cssVar,F=i(),D=F.rootPrefixCls,k=F.iconPrefixCls,L=n(),I=_?"css":"js",A=ZOt(function(){var G=new Set;return _&&Object.keys(m.unitless||{}).forEach(function(K){G.add(j$(K,_.prefix)),G.add(j$(K,nSe(y,_.prefix)))}),YVe(I,G)},[I,y,_==null?void 0:_.prefix]),N=YOt(I),B=N.max,z=N.min,j={theme:R,token:M,hashId:T,nonce:function(){return L.nonce},clientOnly:m.clientOnly,layer:S,order:m.order||-999};typeof o=="function"&&yz(se(se({},j),{},{clientOnly:!1,path:["Shared",D]}),function(){return o(M,{prefix:{rootPrefixCls:D,iconPrefixCls:k},csp:L})});var W=yz(se(se({},j),{},{path:[b,w,k]}),function(){if(m.injectStyle===!1)return[];var G=QVe(M),K=G.token,q=G.flush,X=iSe(y,O,p),Q=".".concat(w),te=rSe(y,O,X,{deprecatedTokens:m.deprecatedTokens});_&&X&&nn(X)==="object"&&Object.keys(X).forEach(function(J){X[J]="var(".concat(j$(J,nSe(y,_.prefix)),")")});var ne=yr(K,{componentCls:Q,prefixCls:w,iconCls:".".concat(k),antCls:".".concat(D),calc:A,max:B,min:z},_?X:te),Z=g(ne,{hashId:T,prefixCls:w,rootPrefixCls:D,iconPrefixCls:k});q(y,te);var ee=typeof s=="function"?s(ne,w,x,m.resetFont):null;return[m.resetStyle===!1?null:ee,Z]});return[W,T]}}function f(h,g,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(h,g,p,se({resetStyle:!1,order:-998},m)),C=function(b){var S=b.prefixCls,w=b.rootCls,x=w===void 0?S:w;return v(S,x),null};return C}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const eTt=Object.freeze(Object.defineProperty({__proto__:null,genCalc:YVe,genStyleUtils:ZVe,mergeToken:yr,statistic:Tae,statisticToken:QVe},Symbol.toStringTag,{value:"Module"})),NC=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],tTt="5.23.0";function Iee(e){return e>=0&&e<=255}function fD(e,t){const{r:n,g:r,b:i,a:o}=new kr(e).toRgb();if(o<1)return e;const{r:s,g:a,b:l}=new kr(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(Iee(u)&&Iee(f)&&Iee(h))return new kr({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new kr({r:n,g:r,b:i,a:1}).toRgbString()}var nTt=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 Gge(e){const{override:t}=e,n=nTt(e,["override"]),r=Object.assign({},t);Object.keys(c7).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:fD(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:fD(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:fD(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:fD(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
||
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)
|
||
`,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:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(vn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=za();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=d.useContext(vn);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":oTt(e)},tGe((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Gj)]},getCommonStyle:sTt,getCompUnitless:()=>JVe});function nGe(e,t){return NC.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],s=e[`${r}6`],a=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:s,textColor:a}))},{})}const lTt=(e,t)=>{const[n,r]=za();return yz({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[tGe(e)])},cTt=Object.assign({},Mx),{useId:aSe}=cTt,uTt=()=>"",dTt=typeof aSe>"u"?uTt:aSe;function fTt(e,t,n){var r;_y();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},$T),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:$T.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=dTt();return Rm(()=>{var a,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${s.replace(/:/g,"")}`,f=((a=i.cssVar)!==null&&a!==void 0?a:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:f})},[i,o],(a,l)=>a.some((c,u)=>{const f=l[u];return!Uf(c,f,!0)}))}var hTt=["children"],rGe=d.createContext({});function iGe(e){var t=e.children,n=on(e,hTt);return d.createElement(rGe.Provider,{value:n},t)}var gTt=function(e){hs(n,e);var t=wc(n);function n(){return qr(this,n),t.apply(this,arguments)}return Kr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function pTt(e){var t=d.useReducer(function(a){return a+1},0),n=Ce(t,2),r=n[1],i=d.useRef(e),o=Hn(function(){return i.current}),s=Hn(function(a){i.current=typeof a=="function"?a(i.current):a,r()});return[o,s]}var f2="none",hD="appear",gD="enter",pD="leave",lSe="none",Kh="prepare",ES="start",RS="active",Uge="end",oGe="prepared";function cSe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function mTt(e,t){var n={animationend:cSe("Animation","AnimationEnd"),transitionend:cSe("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var vTt=mTt(Bs(),typeof window<"u"?window:{}),sGe={};if(Bs()){var CTt=document.createElement("div");sGe=CTt.style}var mD={};function aGe(e){if(mD[e])return mD[e];var t=vTt[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in sGe)return mD[e]=t[o],mD[e]}return""}var lGe=aGe("animationend"),cGe=aGe("transitionend"),uGe=!!(lGe&&cGe),uSe=lGe||"animationend",dSe=cGe||"transitionend";function fSe(e,t){if(!e)return null;if(nn(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const yTt=function(e){var t=d.useRef();function n(i){i&&(i.removeEventListener(dSe,e),i.removeEventListener(uSe,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(dSe,e),i.addEventListener(uSe,e),t.current=i)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var dGe=Bs()?d.useLayoutEffect:d.useEffect;const bTt=function(){var e=d.useRef(null);function t(){Rr.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Rr(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var STt=[Kh,ES,RS,Uge],wTt=[Kh,oGe],fGe=!1,xTt=!0;function hGe(e){return e===RS||e===Uge}const ETt=function(e,t,n){var r=FC(lSe),i=Ce(r,2),o=i[0],s=i[1],a=bTt(),l=Ce(a,2),c=l[0],u=l[1];function f(){s(Kh,!0)}var h=t?wTt:STt;return dGe(function(){if(o!==lSe&&o!==Uge){var g=h.indexOf(o),p=h[g+1],m=n(o);m===fGe?s(p,!0):p&&c(function(v){function C(){v.isCanceled()||s(p,!0)}m===!0?C():Promise.resolve(m).then(C)})}},[e,o]),d.useEffect(function(){return function(){u()}},[]),[f,o]};function RTt(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,s=r.motionAppear,a=s===void 0?!0:s,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,h=r.onAppearPrepare,g=r.onEnterPrepare,p=r.onLeavePrepare,m=r.onAppearStart,v=r.onEnterStart,C=r.onLeaveStart,y=r.onAppearActive,b=r.onEnterActive,S=r.onLeaveActive,w=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,R=r.onVisibleChanged,O=FC(),T=Ce(O,2),M=T[0],_=T[1],F=pTt(f2),D=Ce(F,2),k=D[0],L=D[1],I=FC(null),A=Ce(I,2),N=A[0],B=A[1],z=k(),j=d.useRef(!1),W=d.useRef(null);function G(){return n()}var K=d.useRef(!1);function q(){L(f2),B(null,!0)}var X=Hn(function(de){var xe=k();if(xe!==f2){var Ee=G();if(!(de&&!de.deadline&&de.target!==Ee)){var De=K.current,Be;xe===hD&&De?Be=w==null?void 0:w(Ee,de):xe===gD&&De?Be=x==null?void 0:x(Ee,de):xe===pD&&De&&(Be=E==null?void 0:E(Ee,de)),De&&Be!==!1&&q()}}}),Q=yTt(X),te=Ce(Q,1),ne=te[0],Z=function(xe){switch(xe){case hD:return ie(ie(ie({},Kh,h),ES,m),RS,y);case gD:return ie(ie(ie({},Kh,g),ES,v),RS,b);case pD:return ie(ie(ie({},Kh,p),ES,C),RS,S);default:return{}}},ee=d.useMemo(function(){return Z(z)},[z]),J=ETt(z,!e,function(de){if(de===Kh){var xe=ee[Kh];return xe?xe(G()):fGe}if(ge in ee){var Ee;B(((Ee=ee[ge])===null||Ee===void 0?void 0:Ee.call(ee,G(),null))||null)}return ge===RS&&z!==f2&&(ne(G()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){X({deadline:!0})},u))),ge===oGe&&q(),xTt}),oe=Ce(J,2),le=oe[0],ge=oe[1],he=hGe(ge);K.current=he;var ye=d.useRef(null);dGe(function(){if(!(j.current&&ye.current===t)){_(t);var de=j.current;j.current=!0;var xe;!de&&t&&a&&(xe=hD),de&&t&&o&&(xe=gD),(de&&!t&&c||!de&&f&&!t&&c)&&(xe=pD);var Ee=Z(xe);xe&&(e||Ee[Kh])?(L(xe),le()):L(f2),ye.current=t}},[t]),d.useEffect(function(){(z===hD&&!a||z===gD&&!o||z===pD&&!c)&&L(f2)},[a,o,c]),d.useEffect(function(){return function(){j.current=!1,clearTimeout(W.current)}},[]);var ue=d.useRef(!1);d.useEffect(function(){M&&(ue.current=!0),M!==void 0&&z===f2&&((ue.current||M)&&(R==null||R(M)),ue.current=!0)},[M,z]);var ve=N;return ee[Kh]&&ge===ES&&(ve=se({transition:"none"},ve)),[z,ge,ve,M??t]}function $Tt(e){var t=e;nn(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=d.forwardRef(function(i,o){var s=i.visible,a=s===void 0?!0:s,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,h=i.motionName,g=i.leavedClassName,p=i.eventProps,m=d.useContext(rGe),v=m.motion,C=n(i,v),y=d.useRef(),b=d.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:nC(b.current)}catch{return null}}var w=RTt(C,a,S,i),x=Ce(w,4),E=x[0],R=x[1],O=x[2],T=x[3],M=d.useRef(T);T&&(M.current=!0);var _=d.useCallback(function(A){y.current=A,CT(o,A)},[o]),F,D=se(se({},p),{},{visible:a});if(!f)F=null;else if(E===f2)T?F=f(se({},D),_):!c&&M.current&&g?F=f(se(se({},D),{},{className:g}),_):u||!c&&!g?F=f(se(se({},D),{},{style:{display:"none"}}),_):F=null;else{var k;R===Kh?k="prepare":hGe(R)?k="active":R===ES&&(k="start");var L=fSe(h,"".concat(E,"-").concat(k));F=f(se(se({},D),{},{className:we(fSe(h,E),ie(ie({},L,L&&k),h,typeof h=="string")),style:O}),_)}if(d.isValidElement(F)&&Cd(F)){var I=v3(F);I||(F=d.cloneElement(F,{ref:_}))}return d.createElement(gTt,{ref:b},F)});return r.displayName="CSSMotion",r}const Hs=$Tt(uGe);var Iae="add",Mae="keep",Pae="remove",Mee="removed";function OTt(e){var t;return e&&nn(e)==="object"&&"key"in e?t=e:t={key:e},se(se({},t),{},{key:String(t.key)})}function _ae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(OTt)}function TTt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=_ae(e),s=_ae(t);o.forEach(function(c){for(var u=!1,f=r;f<i;f+=1){var h=s[f];if(h.key===c.key){r<f&&(n=n.concat(s.slice(r,f).map(function(g){return se(se({},g),{},{status:Iae})})),r=f),n.push(se(se({},h),{},{status:Mae})),r+=1,u=!0;break}}u||n.push(se(se({},c),{},{status:Pae}))}),r<i&&(n=n.concat(s.slice(r).map(function(c){return se(se({},c),{},{status:Iae})})));var a={};n.forEach(function(c){var u=c.key;a[u]=(a[u]||0)+1});var l=Object.keys(a).filter(function(c){return a[c]>1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,h=u.status;return f!==c||h!==Pae}),n.forEach(function(u){u.key===c&&(u.status=Mae)})}),n}var ITt=["component","children","onVisibleChanged","onAllRemoved"],MTt=["status"],PTt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function _Tt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hs,n=function(r){hs(o,r);var i=wc(o);function o(){var s;qr(this,o);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return s=i.call.apply(i,[this].concat(l)),ie(dn(s),"state",{keyEntities:[]}),ie(dn(s),"removeKey",function(u){s.setState(function(f){var h=f.keyEntities.map(function(g){return g.key!==u?g:se(se({},g),{},{status:Mee})});return{keyEntities:h}},function(){var f=s.state.keyEntities,h=f.filter(function(g){var p=g.status;return p!==Mee}).length;h===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Kr(o,[{key:"render",value:function(){var a=this,l=this.state.keyEntities,c=this.props,u=c.component,f=c.children,h=c.onVisibleChanged;c.onAllRemoved;var g=on(c,ITt),p=u||d.Fragment,m={};return PTt.forEach(function(v){m[v]=g[v],delete g[v]}),delete g.keys,d.createElement(p,g,l.map(function(v,C){var y=v.status,b=on(v,MTt),S=y===Iae||y===Mae;return d.createElement(t,V({},m,{key:b.key,visible:S,eventProps:b,onVisibleChanged:function(x){h==null||h(x,{key:b.key}),x||a.removeKey(b.key)}}),function(w,x){return f(se(se({},w),{},{index:C}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(a,l){var c=a.keys,u=l.keyEntities,f=_ae(c),h=TTt(u,f);return{keyEntities:h.filter(function(g){var p=u.find(function(m){var v=m.key;return g.key===v});return!(p&&p.status===Mee&&g.status===Pae)})}}}]),o}(d.Component);return ie(n,"defaultProps",{component:"div"}),n}const Wj=_Tt(uGe),ATt=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:Wj,Provider:iGe,default:Hs},Symbol.toStringTag,{value:"Module"}));function DTt(e){const{children:t}=e,[,n]=za(),{motion:r}=n,i=d.useRef(!1);return i.current=i.current||r===!1,i.current?d.createElement(iGe,{motion:r},t):t}const LTt=()=>null;var FTt=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 NTt=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Vz,gGe,pGe,mGe;function fN(){return Vz||OT}function kTt(){return gGe||Gj}function zTt(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const BTt=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Vz=t),n!==void 0&&(gGe=n),"holderRender"in e&&(mGe=i),r&&(zTt(r)?HOt(fN(),r):pGe=r)},vGe=()=>({getPrefixCls:(e,t)=>t||(e?`${fN()}-${e}`:fN()),getIconPrefixCls:kTt,getRootPrefixCls:()=>Vz||fN(),getTheme:()=>pGe,holderRender:mGe}),HTt=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:s,locale:a,componentSize:l,direction:c,space:u,splitter:f,virtual:h,dropdownMatchSelectWidth:g,popupMatchSelectWidth:p,popupOverflow:m,legacyLocale:v,parentContext:C,iconPrefixCls:y,theme:b,componentDisabled:S,segmented:w,statistic:x,spin:E,calendar:R,carousel:O,cascader:T,collapse:M,typography:_,checkbox:F,descriptions:D,divider:k,drawer:L,skeleton:I,steps:A,image:N,layout:B,list:z,mentions:j,modal:W,progress:G,result:K,slider:q,breadcrumb:X,menu:Q,pagination:te,input:ne,textArea:Z,empty:ee,badge:J,radio:oe,rate:le,switch:ge,transfer:he,avatar:ye,message:ue,tag:ve,table:de,card:xe,tabs:Ee,timeline:De,timePicker:Be,upload:Ge,notification:Ue,tree:We,colorPicker:Ve,datePicker:Fe,rangePicker:ke,flex:Ye,wave:ze,dropdown:Re,warning:Le,tour:Me,tooltip:be,popover:je,popconfirm:Xe,floatButtonGroup:ft,variant:Tt,inputNumber:tt,treeSelect:pt}=e,$t=d.useCallback((at,gt)=>{const{prefixCls:yt}=e;if(gt)return gt;const st=yt||C.getPrefixCls("");return at?`${st}-${at}`:st},[C.getPrefixCls,e.prefixCls]),wt=y||C.iconPrefixCls||Gj,It=n||C.csp;lTt(wt,It);const Ct=fTt(b,C.theme,{prefixCls:$t("")}),ot={csp:It,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:a||v,direction:c,space:u,splitter:f,virtual:h,popupMatchSelectWidth:p??g,popupOverflow:m,getPrefixCls:$t,iconPrefixCls:wt,theme:Ct,segmented:w,statistic:x,spin:E,calendar:R,carousel:O,cascader:T,collapse:M,typography:_,checkbox:F,descriptions:D,divider:k,drawer:L,skeleton:I,steps:A,image:N,input:ne,textArea:Z,layout:B,list:z,mentions:j,modal:W,progress:G,result:K,slider:q,breadcrumb:X,menu:Q,pagination:te,empty:ee,badge:J,radio:oe,rate:le,switch:ge,transfer:he,avatar:ye,message:ue,tag:ve,table:de,card:xe,tabs:Ee,timeline:De,timePicker:Be,upload:Ge,notification:Ue,tree:We,colorPicker:Ve,datePicker:Fe,rangePicker:ke,flex:Ye,wave:ze,dropdown:Re,warning:Le,tour:Me,tooltip:be,popover:je,popconfirm:Xe,floatButtonGroup:ft,variant:Tt,inputNumber:tt,treeSelect:pt},nt=Object.assign({},C);Object.keys(ot).forEach(at=>{ot[at]!==void 0&&(nt[at]=ot[at])}),NTt.forEach(at=>{const gt=e[at];gt&&(nt[at]=gt)}),typeof r<"u"&&(nt.button=Object.assign({autoInsertSpace:r},nt.button));const fe=Rm(()=>nt,nt,(at,gt)=>{const yt=Object.keys(at),st=Object.keys(gt);return yt.length!==st.length||yt.some(Ze=>at[Ze]!==gt[Ze])}),Te=d.useMemo(()=>({prefixCls:wt,csp:It}),[wt,It]);let $e=d.createElement(d.Fragment,null,d.createElement(LTt,{dropdownMatchSelectWidth:g}),t);const He=d.useMemo(()=>{var at,gt,yt,st;return xS(((at=yd.Form)===null||at===void 0?void 0:at.defaultValidateMessages)||{},((yt=(gt=fe.locale)===null||gt===void 0?void 0:gt.Form)===null||yt===void 0?void 0:yt.defaultValidateMessages)||{},((st=fe.form)===null||st===void 0?void 0:st.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[fe,s==null?void 0:s.validateMessages]);Object.keys(He).length>0&&($e=d.createElement(NVe.Provider,{value:He},$e)),a&&($e=d.createElement(wOt,{locale:a,_ANT_MARK__:SOt},$e)),$e=d.createElement(qI.Provider,{value:Te},$e),l&&($e=d.createElement(jOt,{size:l},$e)),$e=d.createElement(DTt,null,$e);const it=d.useMemo(()=>{const at=Ct||{},{algorithm:gt,token:yt,components:st,cssVar:Ze}=at,dt=FTt(at,["algorithm","token","components","cssVar"]),At=gt&&(!Array.isArray(gt)||gt.length>0)?o7(gt):UVe,kt={};Object.entries(st||{}).forEach(ln=>{let[Lt,xt]=ln;const Rt=Object.assign({},xt);"algorithm"in Rt&&(Rt.algorithm===!0?Rt.theme=At:(Array.isArray(Rt.algorithm)||typeof Rt.algorithm=="function")&&(Rt.theme=o7(Rt.algorithm)),delete Rt.algorithm),kt[Lt]=Rt});const pn=Object.assign(Object.assign({},c7),yt);return Object.assign(Object.assign({},dt),{theme:At,token:pn,components:kt,override:Object.assign({override:pn},kt),cssVar:Ze})},[Ct]);return b&&($e=d.createElement(jge.Provider,{value:it},$e)),fe.warning&&($e=d.createElement(vOt.Provider,{value:fe.warning},$e)),S!==void 0&&($e=d.createElement(Vge,{disabled:S},$e)),d.createElement(vn.Provider,{value:fe},$e)},Wg=e=>{const t=d.useContext(vn),n=d.useContext(Bge);return d.createElement(HTt,Object.assign({parentContext:t,legacyLocale:n},e))};Wg.ConfigContext=vn;Wg.SizeContext=LC;Wg.config=BTt;Wg.useConfig=VOt;Object.defineProperty(Wg,"SizeContext",{get:()=>LC});var jTt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function CGe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function VTt(e){return CGe(e)instanceof ShadowRoot}function Gz(e){return VTt(e)?CGe(e):null}function GTt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Aae(e,t){ui(e,"[@ant-design/icons] ".concat(t))}function hSe(e){return nn(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(nn(e.icon)==="object"||typeof e.icon=="function")}function gSe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[GTt(n)]=r}return t},{})}function Dae(e,t,n){return n?ce.createElement(e.tag,se(se({key:t},gSe(e.attrs)),n),(e.children||[]).map(function(r,i){return Dae(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ce.createElement(e.tag,se({key:t},gSe(e.attrs)),(e.children||[]).map(function(r,i){return Dae(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function yGe(e){return K4(e)[0]}function bGe(e){return e?Array.isArray(e)?e:[e]:[]}var WTt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},UTt=`
|
||
.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);
|
||
}
|
||
}
|
||
`,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:eIt}))},Ug=d.forwardRef(tIt),nIt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},rIt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nIt}))},Vx=d.forwardRef(rIt),iIt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},oIt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:iIt}))},YI=d.forwardRef(oIt),sIt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
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
|
||
summary tabIndex target title type useMap value width wmode wrap`,aIt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
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
|
||
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},
|
||
padding-top ${n} ${c}, padding-bottom ${n} ${c},
|
||
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:`${T}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:j=>({maxHeight:j.offsetHeight}),onLeaveEnd:h},(j,W)=>{let{className:G,style:K}=j;return d.createElement("div",Object.assign({id:y,ref:Ws(x,W),"data-show":!S,className:we(A,G),style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),l),K),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},N),I?d.createElement(vIt,{description:n,icon:e.icon,prefixCls:T,type:k}):null,d.createElement("div",{className:`${T}-content`},i?d.createElement("div",{className:`${T}-message`},i):null,n?d.createElement("div",{className:`${T}-description`},n):null),C?d.createElement("div",{className:`${T}-action`},C):null,d.createElement(CIt,{isClosable:L,prefixCls:T,closeIcon:B,handleClose:D,ariaProps:z}))}))});function yIt(e,t,n){return t=ul(t),Py(e,tv()?Reflect.construct(t,n||[],ul(e).constructor):t.apply(e,n))}let bIt=function(e){function t(){var n;return qr(this,t),n=yIt(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return hs(t,e),Kr(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:o,children:s}=this.props,{error:a,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(a||"").toString():r,f=typeof i>"u"?c:i;return a?d.createElement(EGe,{id:o,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):s}}])}(d.Component);const RGe=EGe;RGe.ErrorBoundary=bIt;const vSe=e=>typeof e=="object"&&e!=null&&e.nodeType===1,CSe=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Pee=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return CSe(n.overflowY,t)||CSe(n.overflowX,t)||(r=>{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},CD=(e,t,n,r,i,o,s,a)=>o<e&&s>t||o>e&&s<t?0:o<=e&&a<=n||s>=t&&a>=n?o-e-r:s>t&&a<n||o<e&&a>n?s-t+i:0,SIt=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},ySe=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:s,block:a,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:L=>L!==c;if(!vSe(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,g=[];let p=e;for(;vSe(p)&&f(p);){if(p=SIt(p),p===h){g.push(p);break}p!=null&&p===document.body&&Pee(p)&&!Pee(document.documentElement)||p!=null&&Pee(p,u)&&g.push(p)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:C,scrollY:y}=window,{height:b,width:S,top:w,right:x,bottom:E,left:R}=e.getBoundingClientRect(),{top:O,right:T,bottom:M,left:_}=(L=>{const I=window.getComputedStyle(L);return{top:parseFloat(I.scrollMarginTop)||0,right:parseFloat(I.scrollMarginRight)||0,bottom:parseFloat(I.scrollMarginBottom)||0,left:parseFloat(I.scrollMarginLeft)||0}})(e);let F=a==="start"||a==="nearest"?w-O:a==="end"?E+M:w+b/2-O+M,D=l==="center"?R+S/2-_+T:l==="end"?x+T:R-_;const k=[];for(let L=0;L<g.length;L++){const I=g[L],{height:A,width:N,top:B,right:z,bottom:j,left:W}=I.getBoundingClientRect();if(s==="if-needed"&&w>=0&&R>=0&&E<=v&&x<=m&&w>=B&&E<=j&&R>=W&&x<=z)return k;const G=getComputedStyle(I),K=parseInt(G.borderLeftWidth,10),q=parseInt(G.borderTopWidth,10),X=parseInt(G.borderRightWidth,10),Q=parseInt(G.borderBottomWidth,10);let te=0,ne=0;const Z="offsetWidth"in I?I.offsetWidth-I.clientWidth-K-X:0,ee="offsetHeight"in I?I.offsetHeight-I.clientHeight-q-Q:0,J="offsetWidth"in I?I.offsetWidth===0?0:N/I.offsetWidth:0,oe="offsetHeight"in I?I.offsetHeight===0?0:A/I.offsetHeight:0;if(h===I)te=a==="start"?F:a==="end"?F-v:a==="nearest"?CD(y,y+v,v,q,Q,y+F,y+F+b,b):F-v/2,ne=l==="start"?D:l==="center"?D-m/2:l==="end"?D-m:CD(C,C+m,m,K,X,C+D,C+D+S,S),te=Math.max(0,te+y),ne=Math.max(0,ne+C);else{te=a==="start"?F-B-q:a==="end"?F-j+Q+ee:a==="nearest"?CD(B,j,A,q,Q+ee,F,F+b,b):F-(B+A/2)+ee/2,ne=l==="start"?D-W-K:l==="center"?D-(W+N/2)+Z/2:l==="end"?D-z+X+Z:CD(W,z,N,K,X+Z,D,D+S,S);const{scrollLeft:le,scrollTop:ge}=I;te=oe===0?0:Math.max(0,Math.min(ge+te/oe,I.scrollHeight-A/oe+ee)),ne=J===0?0:Math.max(0,Math.min(le+ne/J,I.scrollWidth-N/J+Z)),F+=ge-te,D+=le-ne}k.push({el:I,top:te,left:ne})}return k},wIt=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function $Ge(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(ySe(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:s}of ySe(e,wIt(t))){const a=o-n.top+n.bottom,l=s-n.left+n.right;i.scroll({top:a,left:l,behavior:r})}}const xIt=Object.freeze(Object.defineProperty({__proto__:null,default:$Ge},Symbol.toStringTag,{value:"Module"})),Oo=e=>{const[,,,,t]=za();return t?`${e}-css-var`:""};var lt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=lt.F1&&n<=lt.F12)return!1;switch(n){case lt.ALT:case lt.CAPS_LOCK:case lt.CONTEXT_MENU:case lt.CTRL:case lt.DOWN:case lt.END:case lt.ESC:case lt.HOME:case lt.INSERT:case lt.LEFT:case lt.MAC_FF_META:case lt.META:case lt.NUMLOCK:case lt.NUM_CENTER:case lt.PAGE_DOWN:case lt.PAGE_UP:case lt.PAUSE:case lt.PRINT_SCREEN:case lt.RIGHT:case lt.SHIFT:case lt.UP:case lt.WIN_KEY:case lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=lt.ZERO&&t<=lt.NINE||t>=lt.NUM_ZERO&&t<=lt.NUM_MULTIPLY||t>=lt.A&&t<=lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case lt.SPACE:case lt.QUESTION_MARK:case lt.NUM_PLUS:case lt.NUM_MINUS:case lt.NUM_PERIOD:case lt.NUM_DIVISION:case lt.SEMICOLON:case lt.DASH:case lt.EQUALS:case lt.COMMA:case lt.PERIOD:case lt.SLASH:case lt.APOSTROPHE:case lt.SINGLE_QUOTE:case lt.OPEN_SQUARE_BRACKET:case lt.BACKSLASH:case lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Yge=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,s=o===void 0?4.5:o,a=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,h=e.closable,g=e.closeIcon,p=g===void 0?"x":g,m=e.props,v=e.onClick,C=e.onNoticeClose,y=e.times,b=e.hovering,S=d.useState(!1),w=Ce(S,2),x=w[0],E=w[1],R=d.useState(0),O=Ce(R,2),T=O[0],M=O[1],_=d.useState(0),F=Ce(_,2),D=F[0],k=F[1],L=b||x,I=s>0&&a,A=function(){C(u)},N=function(K){(K.key==="Enter"||K.code==="Enter"||K.keyCode===lt.ENTER)&&A()};d.useEffect(function(){if(!L&&s>0){var G=Date.now()-D,K=setTimeout(function(){A()},s*1e3-D);return function(){c&&clearTimeout(K),k(Date.now()-G)}}},[s,L,y]),d.useEffect(function(){if(!L&&I&&(c||D===0)){var G=performance.now(),K,q=function X(){cancelAnimationFrame(K),K=requestAnimationFrame(function(Q){var te=Q+D-G,ne=Math.min(te/(s*1e3),1);M(ne*100),ne<1&&X()})};return q(),function(){c&&cancelAnimationFrame(K)}}},[s,D,L,I,y]);var B=d.useMemo(function(){return nn(h)==="object"&&h!==null?h:h?{closeIcon:p}:{}},[h,p]),z=$o(B,!0),j=100-(!T||T<0?0:T>100?100:T),W="".concat(n,"-notice");return d.createElement("div",V({},m,{ref:t,className:we(W,i,ie({},"".concat(W,"-closable"),h)),style:r,onMouseEnter:function(K){var q;E(!0),m==null||(q=m.onMouseEnter)===null||q===void 0||q.call(m,K)},onMouseLeave:function(K){var q;E(!1),m==null||(q=m.onMouseLeave)===null||q===void 0||q.call(m,K)},onClick:v}),d.createElement("div",{className:"".concat(W,"-content")},f),h&&d.createElement("a",V({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:N,"aria-label":"Close"},z,{onClick:function(K){K.preventDefault(),K.stopPropagation(),A()}}),B.closeIcon),I&&d.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:j},j+"%"))}),OGe=ce.createContext({}),Xge=function(t){var n=t.children,r=t.classNames;return ce.createElement(OGe.Provider,{value:{classNames:r}},n)},bSe=8,SSe=3,wSe=16,EIt=function(t){var n={offset:bSe,threshold:SSe,gap:wSe};if(t&&nn(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:bSe,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:SSe,n.gap=(o=t.gap)!==null&&o!==void 0?o:wSe}return[!!t,n]},RIt=["className","style","classNames","styles"],$It=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,o=t.className,s=t.style,a=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(OGe),h=f.classNames,g=d.useRef({}),p=d.useState(null),m=Ce(p,2),v=m[0],C=m[1],y=d.useState([]),b=Ce(y,2),S=b[0],w=b[1],x=n.map(function(L){return{config:L,key:String(L.key)}}),E=EIt(u),R=Ce(E,2),O=R[0],T=R[1],M=T.offset,_=T.threshold,F=T.gap,D=O&&(S.length>0||x.length<=_),k=typeof a=="function"?a(r):a;return d.useEffect(function(){O&&S.length>1&&w(function(L){return L.filter(function(I){return x.some(function(A){var N=A.key;return I===N})})})},[S,x,O]),d.useEffect(function(){var L;if(O&&g.current[(L=x[x.length-1])===null||L===void 0?void 0:L.key]){var I;C(g.current[(I=x[x.length-1])===null||I===void 0?void 0:I.key])}},[x,O]),ce.createElement(Wj,V({key:r,className:we(i,"".concat(i,"-").concat(r),h==null?void 0:h.list,o,ie(ie({},"".concat(i,"-stack"),!!O),"".concat(i,"-stack-expanded"),D)),style:s,keys:x,motionAppear:!0},k,{onAllRemoved:function(){l(r)}}),function(L,I){var A=L.config,N=L.className,B=L.style,z=L.index,j=A,W=j.key,G=j.times,K=String(W),q=A,X=q.className,Q=q.style,te=q.classNames,ne=q.styles,Z=on(q,RIt),ee=x.findIndex(function(De){return De.key===K}),J={};if(O){var oe=x.length-1-(ee>-1?ee:z-1),le=r==="top"||r==="bottom"?"-50%":"0";if(oe>0){var ge,he,ye;J.height=D?(ge=g.current[K])===null||ge===void 0?void 0:ge.offsetHeight:v==null?void 0:v.offsetHeight;for(var ue=0,ve=0;ve<oe;ve++){var de;ue+=((de=g.current[x[x.length-1-ve].key])===null||de===void 0?void 0:de.offsetHeight)+F}var xe=(D?ue:oe*M)*(r.startsWith("top")?1:-1),Ee=!D&&v!==null&&v!==void 0&&v.offsetWidth&&(he=g.current[K])!==null&&he!==void 0&&he.offsetWidth?((v==null?void 0:v.offsetWidth)-M*2*(oe<3?oe:3))/((ye=g.current[K])===null||ye===void 0?void 0:ye.offsetWidth):1;J.transform="translate3d(".concat(le,", ").concat(xe,"px, 0) scaleX(").concat(Ee,")")}else J.transform="translate3d(".concat(le,", 0, 0)")}return ce.createElement("div",{ref:I,className:we("".concat(i,"-notice-wrapper"),N,te==null?void 0:te.wrapper),style:se(se(se({},B),J),ne==null?void 0:ne.wrapper),onMouseEnter:function(){return w(function(Be){return Be.includes(K)?Be:[].concat(ut(Be),[K])})},onMouseLeave:function(){return w(function(Be){return Be.filter(function(Ge){return Ge!==K})})}},ce.createElement(Yge,V({},Z,{ref:function(Be){ee>-1?g.current[K]=Be:delete g.current[K]},prefixCls:i,classNames:te,styles:ne,className:we(X,h==null?void 0:h.notice),style:Q,times:G,key:W,eventKey:W,onNoticeClose:c,hovering:O&&S.length>0})))})},OIt=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,o=e.motion,s=e.maxCount,a=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,h=d.useState([]),g=Ce(h,2),p=g[0],m=g[1],v=function(O){var T,M=p.find(function(_){return _.key===O});M==null||(T=M.onClose)===null||T===void 0||T.call(M),m(function(_){return _.filter(function(F){return F.key!==O})})};d.useImperativeHandle(t,function(){return{open:function(O){m(function(T){var M=ut(T),_=M.findIndex(function(k){return k.key===O.key}),F=se({},O);if(_>=0){var D;F.times=(((D=T[_])===null||D===void 0?void 0:D.times)||0)+1,M[_]=F}else F.times=0,M.push(F);return s>0&&M.length>s&&(M=M.slice(-s)),M})},close:function(O){v(O)},destroy:function(){m([])}}});var C=d.useState({}),y=Ce(C,2),b=y[0],S=y[1];d.useEffect(function(){var R={};p.forEach(function(O){var T=O.placement,M=T===void 0?"topRight":T;M&&(R[M]=R[M]||[],R[M].push(O))}),Object.keys(b).forEach(function(O){R[O]=R[O]||[]}),S(R)},[p]);var w=function(O){S(function(T){var M=se({},T),_=M[O]||[];return _.length||delete M[O],M})},x=d.useRef(!1);if(d.useEffect(function(){Object.keys(b).length>0?x.current=!0:x.current&&(c==null||c(),x.current=!1)},[b]),!i)return null;var E=Object.keys(b);return fo.createPortal(d.createElement(d.Fragment,null,E.map(function(R){var O=b[R],T=d.createElement($It,{key:R,configList:O,placement:R,prefixCls:r,className:a==null?void 0:a(R),style:l==null?void 0:l(R),motion:o,onNoticeClose:v,onAllNoticeRemoved:w,stack:u});return f?f(T,{prefixCls:r,key:R}):T})),i)}),TIt=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],IIt=function(){return document.body},xSe=0;function MIt(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(o){var s=i[o];s!==void 0&&(e[o]=s)})}),e}function Qge(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?IIt:t,r=e.motion,i=e.prefixCls,o=e.maxCount,s=e.className,a=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=on(e,TIt),h=d.useState(),g=Ce(h,2),p=g[0],m=g[1],v=d.useRef(),C=d.createElement(OIt,{container:p,ref:v,prefixCls:i,motion:r,maxCount:o,className:s,style:a,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),b=Ce(y,2),S=b[0],w=b[1],x=d.useMemo(function(){return{open:function(R){var O=MIt(f,R);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(xSe),xSe+=1),w(function(T){return[].concat(ut(T),[{type:"open",config:O}])})},close:function(R){w(function(O){return[].concat(ut(O),[{type:"close",key:R}])})},destroy:function(){w(function(R){return[].concat(ut(R),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){m(n())}),d.useEffect(function(){v.current&&S.length&&(S.forEach(function(E){switch(E.type){case"open":v.current.open(E.config);break;case"close":v.current.close(E.key);break;case"destroy":v.current.destroy();break}}),w(function(E){return E.filter(function(R){return!S.includes(R)})}))},[S]),[x,C]}const PIt=Object.freeze(Object.defineProperty({__proto__:null,Notice:Yge,NotificationProvider:Xge,useNotification:Qge},Symbol.toStringTag,{value:"Module"}));var _It={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},AIt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_It}))},Tm=d.forwardRef(AIt);const Uj=ce.createContext(void 0),h2=100,DIt=10,Zge=h2*DIt,TGe={Modal:h2,Drawer:h2,Popover:h2,Popconfirm:h2,Tooltip:h2,Tour:h2,FloatButton:h2},LIt={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function FIt(e){return e in TGe}const y3=(e,t)=>{const[,n]=za(),r=ce.useContext(Uj),i=FIt(e);let o;if(t!==void 0)o=[t,t];else{let s=r??0;i?s+=(r?0:n.zIndexPopupBase)+TGe[e]:s+=LIt[e],o=[r===void 0?t:s,s]}return o},NIt=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:s,colorWarning:a,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:h,paddingXS:g,borderRadiusLG:p,zIndexPopup:m,contentPadding:v,contentBg:C}=e,y=`${t}-notice`,b=new Pr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new Pr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:v,background:C,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:a},[`${t}-info > ${n},
|
||
${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
|
||
`]:{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.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,h)=>{let g;u&&typeof u=="object"&&"content"in u?g=u:g={content:u};let p,m;typeof f=="function"?m=f:(p=f,m=h);const v=Object.assign(Object.assign({onClose:m,duration:p},g),{type:l});return i(v)};s[l]=c}),s},[]),d.createElement(KIt,Object.assign({key:"message-holder"},e,{ref:t}))]}function _Ge(e){return PGe(e)}function YIt(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(i=>[].concat(ut(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]}function mo(){mo=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(L,I,A){L[I]=A.value},o=typeof Symbol=="function"?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(L,I,A){return Object.defineProperty(L,I,{value:A,enumerable:!0,configurable:!0,writable:!0}),L[I]}try{c({},"")}catch{c=function(A,N,B){return A[N]=B}}function u(L,I,A,N){var B=I&&I.prototype instanceof C?I:C,z=Object.create(B.prototype),j=new D(N||[]);return i(z,"_invoke",{value:T(L,A,j)}),z}function f(L,I,A){try{return{type:"normal",arg:L.call(I,A)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var h="suspendedStart",g="suspendedYield",p="executing",m="completed",v={};function C(){}function y(){}function b(){}var S={};c(S,s,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(k([])));x&&x!==n&&r.call(x,s)&&(S=x);var E=b.prototype=C.prototype=Object.create(S);function R(L){["next","throw","return"].forEach(function(I){c(L,I,function(A){return this._invoke(I,A)})})}function O(L,I){function A(B,z,j,W){var G=f(L[B],L,z);if(G.type!=="throw"){var K=G.arg,q=K.value;return q&&nn(q)=="object"&&r.call(q,"__await")?I.resolve(q.__await).then(function(X){A("next",X,j,W)},function(X){A("throw",X,j,W)}):I.resolve(q).then(function(X){K.value=X,j(K)},function(X){return A("throw",X,j,W)})}W(G.arg)}var N;i(this,"_invoke",{value:function(z,j){function W(){return new I(function(G,K){A(z,j,G,K)})}return N=N?N.then(W,W):W()}})}function T(L,I,A){var N=h;return function(B,z){if(N===p)throw Error("Generator is already running");if(N===m){if(B==="throw")throw z;return{value:e,done:!0}}for(A.method=B,A.arg=z;;){var j=A.delegate;if(j){var W=M(j,A);if(W){if(W===v)continue;return W}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(N===h)throw N=m,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);N=p;var G=f(L,I,A);if(G.type==="normal"){if(N=A.done?m:g,G.arg===v)continue;return{value:G.arg,done:A.done}}G.type==="throw"&&(N=m,A.method="throw",A.arg=G.arg)}}}function M(L,I){var A=I.method,N=L.iterator[A];if(N===e)return I.delegate=null,A==="throw"&&L.iterator.return&&(I.method="return",I.arg=e,M(L,I),I.method==="throw")||A!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+A+"' method")),v;var B=f(N,L.iterator,I.arg);if(B.type==="throw")return I.method="throw",I.arg=B.arg,I.delegate=null,v;var z=B.arg;return z?z.done?(I[L.resultName]=z.value,I.next=L.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,v):z:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,v)}function _(L){var I={tryLoc:L[0]};1 in L&&(I.catchLoc=L[1]),2 in L&&(I.finallyLoc=L[2],I.afterLoc=L[3]),this.tryEntries.push(I)}function F(L){var I=L.completion||{};I.type="normal",delete I.arg,L.completion=I}function D(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(_,this),this.reset(!0)}function k(L){if(L||L===""){var I=L[s];if(I)return I.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var A=-1,N=function B(){for(;++A<L.length;)if(r.call(L,A))return B.value=L[A],B.done=!1,B;return B.value=e,B.done=!0,B};return N.next=N}}throw new TypeError(nn(L)+" is not iterable")}return y.prototype=b,i(E,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(L){var I=typeof L=="function"&&L.constructor;return!!I&&(I===y||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,b):(L.__proto__=b,c(L,l,"GeneratorFunction")),L.prototype=Object.create(E),L},t.awrap=function(L){return{__await:L}},R(O.prototype),c(O.prototype,a,function(){return this}),t.AsyncIterator=O,t.async=function(L,I,A,N,B){B===void 0&&(B=Promise);var z=new O(u(L,I,A,N),B);return t.isGeneratorFunction(I)?z:z.next().then(function(j){return j.done?j.value:z.next()})},R(E),c(E,l,"Generator"),c(E,s,function(){return this}),c(E,"toString",function(){return"[object Generator]"}),t.keys=function(L){var I=Object(L),A=[];for(var N in I)A.push(N);return A.reverse(),function B(){for(;A.length;){var z=A.pop();if(z in I)return B.value=z,B.done=!1,B}return B.done=!0,B}},t.values=k,D.prototype={constructor:D,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!I)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var A=this;function N(K,q){return j.type="throw",j.arg=I,A.next=K,q&&(A.method="next",A.arg=e),!!q}for(var B=this.tryEntries.length-1;B>=0;--B){var z=this.tryEntries[B],j=z.completion;if(z.tryLoc==="root")return N("end");if(z.tryLoc<=this.prev){var W=r.call(z,"catchLoc"),G=r.call(z,"finallyLoc");if(W&&G){if(this.prev<z.catchLoc)return N(z.catchLoc,!0);if(this.prev<z.finallyLoc)return N(z.finallyLoc)}else if(W){if(this.prev<z.catchLoc)return N(z.catchLoc,!0)}else{if(!G)throw Error("try statement without catch or finally");if(this.prev<z.finallyLoc)return N(z.finallyLoc)}}}},abrupt:function(I,A){for(var N=this.tryEntries.length-1;N>=0;--N){var B=this.tryEntries[N];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var z=B;break}}z&&(I==="break"||I==="continue")&&z.tryLoc<=A&&A<=z.finallyLoc&&(z=null);var j=z?z.completion:{};return j.type=I,j.arg=A,z?(this.method="next",this.next=z.finallyLoc,v):this.complete(j)},complete:function(I,A){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&A&&(this.next=A),v},finish:function(I){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.finallyLoc===I)return this.complete(N.completion,N.afterLoc),F(N),v}},catch:function(I){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.tryLoc===I){var B=N.completion;if(B.type==="throw"){var z=B.arg;F(N)}return z}}throw Error("illegal catch attempt")},delegateYield:function(I,A,N){return this.delegate={iterator:k(I),resultName:A,nextLoc:N},this.method==="next"&&(this.arg=e),v}},t}function RSe(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(r,i)}function rd(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){RSe(o,r,i,s,a,"next",l)}function a(l){RSe(o,r,i,s,a,"throw",l)}s(void 0)})}}var XI=se({},Aze),XIt=XI.version,_ee=XI.render,QIt=XI.unmountComponentAtNode,qj;try{var ZIt=Number((XIt||"").split(".")[0]);ZIt>=18&&(qj=XI.createRoot)}catch{}function $Se(e){var t=XI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&nn(t)==="object"&&(t.usingClientEntryPoint=e)}var Wz="__rc_react_root__";function JIt(e,t){$Se(!0);var n=t[Wz]||qj(t);$Se(!1),n.render(e),t[Wz]=n}function eMt(e,t){_ee==null||_ee(e,t)}function tMt(e,t){if(qj){JIt(e,t);return}eMt(e,t)}function nMt(e){return Lae.apply(this,arguments)}function Lae(){return Lae=rd(mo().mark(function e(t){return mo().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[Wz])===null||i===void 0||i.unmount(),delete t[Wz]}));case 1:case"end":return r.stop()}},e)})),Lae.apply(this,arguments)}function rMt(e){QIt(e)}function iMt(e){return Fae.apply(this,arguments)}function Fae(){return Fae=rd(mo().mark(function e(t){return mo().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(qj===void 0){r.next=2;break}return r.abrupt("return",nMt(t));case 2:rMt(t);case 3:case"end":return r.stop()}},e)})),Fae.apply(this,arguments)}const oMt=(e,t)=>(tMt(e,t),()=>iMt(t));let sMt=oMt;function epe(){return sMt}const Aee=()=>({height:0,opacity:0}),OSe=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},aMt=e=>({height:e?e.offsetHeight:0}),Dee=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",TT=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:OT}-motion-collapse`,onAppearStart:Aee,onEnterStart:Aee,onAppearActive:OSe,onEnterActive:OSe,onLeaveStart:aMt,onLeaveActive:Aee,onAppearEnd:Dee,onEnterEnd:Dee,onLeaveEnd:Dee,motionDeadline:500}},Cu=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Gx=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,s=i.height;if(o||s)return!0}}return!1},lMt=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},cMt=aTt("Wave",e=>[lMt(e)]),Kj=`${OT}-wave-target`;function Lee(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function uMt(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Lee(t)?t:Lee(n)?n:Lee(r)?r:null}function Fee(e){return Number.isNaN(e)?0:e}const dMt=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,o=d.useRef(null),s=d.useRef(null);d.useEffect(()=>{s.current=i()},[]);const[a,l]=d.useState(null),[c,u]=d.useState([]),[f,h]=d.useState(0),[g,p]=d.useState(0),[m,v]=d.useState(0),[C,y]=d.useState(0),[b,S]=d.useState(!1),w={left:f,top:g,width:m,height:C,borderRadius:c.map(R=>`${R}px`).join(" ")};a&&(w["--wave-color"]=a);function x(){const R=getComputedStyle(n);l(uMt(n));const O=R.position==="static",{borderLeftWidth:T,borderTopWidth:M}=R;h(O?n.offsetLeft:Fee(-parseFloat(T))),p(O?n.offsetTop:Fee(-parseFloat(M))),v(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:F,borderBottomLeftRadius:D,borderBottomRightRadius:k}=R;u([_,F,k,D].map(L=>Fee(parseFloat(L))))}if(d.useEffect(()=>{if(n){const R=Rr(()=>{x(),S(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(x),O.observe(n)),()=>{Rr.cancel(R),O==null||O.disconnect()}}},[]),!b)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Kj));return d.createElement(Hs,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,O)=>{var T,M;if(O.deadline||O.propertyName==="opacity"){const _=(T=o.current)===null||T===void 0?void 0:T.parentElement;(M=s.current)===null||M===void 0||M.call(s).then(()=>{_==null||_.remove()})}return!1}},(R,O)=>{let{className:T}=R;return d.createElement("div",{ref:Ws(o,O),className:we(t,T,{"wave-quick":E}),style:w})})},fMt=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const o=epe();let s=null;function a(){return s}s=o(d.createElement(dMt,Object.assign({},t,{target:e,registerUnmount:a})),i)},hMt=(e,t,n)=>{const{wave:r}=d.useContext(vn),[,i,o]=za(),s=Hn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${Kj}`)||u,{showEffect:h}=r||{};(h||fMt)(f,{className:t,token:i,component:n,event:c,hashId:o})}),a=d.useRef(null);return c=>{Rr.cancel(a.current),a.current=Rr(()=>{s(c)})}},QI=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(vn),o=d.useRef(null),s=i("wave"),[,a]=cMt(s),l=hMt(o,we(s,a),r);if(ce.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const f=h=>{!Gx(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!ce.isValidElement(t))return t??null;const c=Cd(t)?Ws(v3(t),o):o;return js(t,{ref:c})},fl=e=>{const t=ce.useContext(LC);return ce.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},gMt=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},pMt=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},mMt=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},AGe=Yr("Space",e=>{const t=yr(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[pMt(t),mMt(t),gMt(t)]},()=>({}),{resetStyle:!1});var DGe=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 Yj=d.createContext(null),Dy=(e,t)=>{const n=d.useContext(Yj),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:s}=n,a=i==="vertical"?"-vertical-":"-";return we(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:s,[`${e}-compact${a}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},vMt=e=>{let{children:t}=e;return d.createElement(Yj.Provider,{value:null},t)},CMt=e=>{var{children:t}=e,n=DGe(e,["children"]);return d.createElement(Yj.Provider,{value:n},t)},yMt=e=>{const{getPrefixCls:t,direction:n}=d.useContext(vn),{size:r,direction:i,block:o,prefixCls:s,className:a,rootClassName:l,children:c}=e,u=DGe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=fl(b=>r??b),h=t("space-compact",s),[g,p]=AGe(h),m=we(h,p,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:o,[`${h}-vertical`]:i==="vertical"},a,l),v=d.useContext(Yj),C=Rs(c),y=d.useMemo(()=>C.map((b,S)=>{const w=(b==null?void 0:b.key)||`${h}-item-${S}`;return d.createElement(CMt,{key:w,compactSize:f,compactDirection:i,isFirstItem:S===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:S===C.length-1&&(!v||(v==null?void 0:v.isLastItem))},b)}),[r,C,v]);return C.length===0?null:g(d.createElement("div",Object.assign({className:m},u),y))};var bMt=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 LGe=d.createContext(void 0),SMt=e=>{const{getPrefixCls:t,direction:n}=d.useContext(vn),{prefixCls:r,size:i,className:o}=e,s=bMt(e,["prefixCls","size","className"]),a=t("btn-group",r),[,,l]=za();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=we(a,{[`${a}-${c}`]:c,[`${a}-rtl`]:n==="rtl"},o,l);return d.createElement(LGe.Provider,{value:i},d.createElement("div",Object.assign({},s,{className:u})))},TSe=/^[\u4E00-\u9FA5]{2}$/,Nae=TSe.test.bind(TSe);function FGe(e){return e==="danger"?{danger:!0}:{type:e}}function ISe(e){return typeof e=="string"}function Nee(e){return e==="text"||e==="link"}function wMt(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ISe(e.type)&&Nae(e.props.children)?js(e,{children:e.props.children.split("").join(n)}):ISe(e)?Nae(e)?ce.createElement("span",null,e.split("").join(n)):ce.createElement("span",null,e):xGe(e)?ce.createElement("span",null,e):e}function xMt(e,t){let n=!1;const r=[];return ce.Children.forEach(e,i=>{const o=typeof i,s=o==="string"||o==="number";if(n&&s){const a=r.length-1,l=r[a];r[a]=`${l}${i}`}else r.push(i);n=s}),ce.Children.map(r,i=>wMt(i,t))}["default","primary","danger"].concat(ut(NC));const kae=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,s=we(`${o}-icon`,n);return ce.createElement("span",{ref:t,className:s,style:r},i)}),MSe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,s=we(`${n}-loading-icon`,r);return ce.createElement(kae,{prefixCls:n,className:s,style:i,ref:t},ce.createElement(Tm,{className:o}))}),kee=()=>({width:0,opacity:0,transform:"scale(0)"}),zee=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),EMt=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:s}=e,a=!!n;return r?ce.createElement(MSe,{prefixCls:t,className:i,style:o}):ce.createElement(Hs,{visible:a,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:kee,onAppearActive:zee,onEnterStart:kee,onEnterActive:zee,onLeaveStart:zee,onLeaveActive:kee},(l,c)=>{let{className:u,style:f}=l;const h=Object.assign(Object.assign({},o),f);return ce.createElement(MSe,{prefixCls:t,className:we(i,u),style:h,ref:c})})},PSe=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),RMt=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},PSe(`${t}-primary`,i),PSe(`${t}-danger`,o)]}};var $Mt=["b"],OMt=["v"],Bee=function(t){return Math.round(Number(t||0))},TMt=function(t){if(t instanceof kr)return t;if(t&&nn(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=on(n,$Mt);return se(se({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Im=function(e){hs(n,e);var t=wc(n);function n(r){return qr(this,n),t.call(this,TMt(r))}return Kr(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=Bee(i.s*100),s=Bee(i.b*100),a=Bee(i.h),l=i.a,c="hsb(".concat(a,", ").concat(o,"%, ").concat(s,"%)"),u="hsba(".concat(a,", ").concat(o,"%, ").concat(s,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,s=on(i,OMt);return se(se({},s),{},{b:o,a:this.a})}}]),n}(kr),IMt="rc-color-picker",KS=function(t){return t instanceof Im?t:new Im(t)},MMt=KS("#1677ff"),NGe=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,o=t.color,s=t.type,a=i.current.getBoundingClientRect(),l=a.width,c=a.height,u=r.current.getBoundingClientRect(),f=u.width,h=u.height,g=f/2,p=h/2,m=(n.x+g)/l,v=1-(n.y+p)/c,C=o.toHsb(),y=m,b=(n.x+g)/l*360;if(s)switch(s){case"hue":return KS(se(se({},C),{},{h:b<=0?0:b}));case"alpha":return KS(se(se({},C),{},{a:y<=0?0:y}))}return KS({h:C.h,s:m<=0?0:m,b:v>=1?1:v,a:C.a})},kGe=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},zGe=function(t){var n=t.color,r=t.prefixCls,i=t.className,o=t.style,s=t.onClick,a="".concat(r,"-color-block");return ce.createElement("div",{className:we(a,i),style:o,onClick:s},ce.createElement("div",{className:"".concat(a,"-inner"),style:{background:n}}))};function PMt(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function BGe(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,o=e.onDragChangeComplete,s=e.calculate,a=e.color,l=e.disabledDrag,c=d.useState({x:0,y:0}),u=Ce(c,2),f=u[0],h=u[1],g=d.useRef(null),p=d.useRef(null);d.useEffect(function(){h(s())},[a]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",p.current),g.current=null,p.current=null}},[]);var m=function(S){var w=PMt(S),x=w.pageX,E=w.pageY,R=n.current.getBoundingClientRect(),O=R.x,T=R.y,M=R.width,_=R.height,F=t.current.getBoundingClientRect(),D=F.width,k=F.height,L=D/2,I=k/2,A=Math.max(0,Math.min(x-O,M))-L,N=Math.max(0,Math.min(E-T,_))-I,B={x:A,y:r==="x"?f.y:N};if(D===0&&k===0||D!==k)return!1;i==null||i(B)},v=function(S){S.preventDefault(),m(S)},C=function(S){S.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",p.current),g.current=null,p.current=null,o==null||o()},y=function(S){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",p.current),!l&&(m(S),document.addEventListener("mousemove",v),document.addEventListener("mouseup",C),document.addEventListener("touchmove",v),document.addEventListener("touchend",C),g.current=v,p.current=C)};return[f,y]}var HGe=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,o=t.prefixCls;return ce.createElement("div",{className:we("".concat(o,"-handler"),ie({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},jGe=function(t){var n=t.children,r=t.style,i=t.prefixCls;return ce.createElement("div",{className:"".concat(i,"-palette"),style:se({position:"relative"},r)},n)},VGe=d.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return ce.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),_Mt=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,o=t.onChangeComplete,s=t.disabled,a=d.useRef(),l=d.useRef(),c=d.useRef(n),u=Hn(function(m){var v=NGe({offset:m,targetRef:l,containerRef:a,color:n});c.current=v,r(v)}),f=BGe({color:n,containerRef:a,targetRef:l,calculate:function(){return kGe(n)},onDragChange:u,onDragChangeComplete:function(){return o==null?void 0:o(c.current)},disabledDrag:s}),h=Ce(f,2),g=h[0],p=h[1];return ce.createElement("div",{ref:a,className:"".concat(i,"-select"),onMouseDown:p,onTouchStart:p},ce.createElement(jGe,{prefixCls:i},ce.createElement(VGe,{x:g.x,y:g.y,ref:l},ce.createElement(HGe,{color:n.toRgbString(),prefixCls:i})),ce.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},AMt=function(t,n){var r=ir(t,{value:n}),i=Ce(r,2),o=i[0],s=i[1],a=d.useMemo(function(){return KS(o)},[o]);return[a,s]},DMt=function(t){var n=t.colors,r=t.children,i=t.direction,o=i===void 0?"to right":i,s=t.type,a=t.prefixCls,l=d.useMemo(function(){return n.map(function(c,u){var f=KS(c);return s==="alpha"&&u===n.length-1&&(f=new Im(f.setA(1))),f.toRgbString()}).join(",")},[n,s]);return ce.createElement("div",{className:"".concat(a,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(l,")")}},r)},LMt=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,o=t.onChange,s=t.onChangeComplete,a=t.color,l=t.type,c=d.useRef(),u=d.useRef(),f=d.useRef(a),h=function(w){return l==="hue"?w.getHue():w.a*100},g=Hn(function(S){var w=NGe({offset:S,targetRef:u,containerRef:c,color:a,type:l});f.current=w,o(h(w))}),p=BGe({color:a,targetRef:u,containerRef:c,calculate:function(){return kGe(a,l)},onDragChange:g,onDragChangeComplete:function(){s(h(f.current))},direction:"x",disabledDrag:i}),m=Ce(p,2),v=m[0],C=m[1],y=ce.useMemo(function(){if(l==="hue"){var S=a.toHsb();S.s=1,S.b=1,S.a=1;var w=new Im(S);return w}return a},[a,l]),b=ce.useMemo(function(){return r.map(function(S){return"".concat(S.color," ").concat(S.percent,"%")})},[r]);return ce.createElement("div",{ref:c,className:we("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:C,onTouchStart:C},ce.createElement(jGe,{prefixCls:n},ce.createElement(VGe,{x:v.x,y:v.y,ref:u},ce.createElement(HGe,{size:"small",color:y.toHexString(),prefixCls:n})),ce.createElement(DMt,{colors:b,type:l,prefixCls:n})))};function FMt(e){return d.useMemo(function(){var t=e||{},n=t.slider;return[n||LMt]},[e])}var NMt=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],kMt=d.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,o=i===void 0?IMt:i,s=e.onChange,a=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,f=e.disabledAlpha,h=f===void 0?!1:f,g=e.disabled,p=g===void 0?!1:g,m=e.components,v=FMt(m),C=Ce(v,1),y=C[0],b=AMt(r||MMt,n),S=Ce(b,2),w=S[0],x=S[1],E=d.useMemo(function(){return w.setA(1).toRgbString()},[w]),R=function(N,B){n||x(N),s==null||s(N,B)},O=function(N){return new Im(w.setHue(N))},T=function(N){return new Im(w.setA(N/100))},M=function(N){R(O(N),{type:"hue",value:N})},_=function(N){R(T(N),{type:"alpha",value:N})},F=function(N){a&&a(O(N))},D=function(N){a&&a(T(N))},k=we("".concat(o,"-panel"),l,ie({},"".concat(o,"-panel-disabled"),p)),L={prefixCls:o,disabled:p,color:w},I=ce.createElement(ce.Fragment,null,ce.createElement(_Mt,V({onChange:R},L,{onChangeComplete:a})),ce.createElement("div",{className:"".concat(o,"-slider-container")},ce.createElement("div",{className:we("".concat(o,"-slider-group"),ie({},"".concat(o,"-slider-group-disabled-alpha"),h))},ce.createElement(y,V({},L,{type:"hue",colors:NMt,min:0,max:359,value:w.getHue(),onChange:M,onChangeComplete:F})),!h&&ce.createElement(y,V({},L,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:E}],min:0,max:100,value:w.a*100,onChange:_,onChangeComplete:D}))),ce.createElement(zGe,{color:w.toRgbString(),prefixCls:o})));return ce.createElement("div",{className:k,style:c,ref:t},typeof u=="function"?u(I):I)});const zMt=Object.freeze(Object.defineProperty({__proto__:null,Color:Im,ColorBlock:zGe,default:kMt},Symbol.toStringTag,{value:"Module"})),BMt=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",HMt=(e,t)=>e?BMt(e,t):"";let jMt=function(){function e(t){qr(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:s}=i;return{color:new e(o),percent:s}}),this.metaColor=new Im(this.colors[0].color.metaColor)):this.metaColor=new Im(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Kr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return HMt(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var VMt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},GMt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:VMt}))},Xf=d.forwardRef(GMt),GGe=ce.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,o=e.style,s=e.children,a=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=ce.useState(a||r),h=Ce(f,2),g=h[0],p=h[1];return ce.useEffect(function(){(r||a)&&p(!0)},[r,a]),g?ce.createElement("div",{ref:t,className:we("".concat(n,"-content"),ie(ie({},"".concat(n,"-content-active"),a),"".concat(n,"-content-inactive"),!a),i),style:o,role:l},ce.createElement("div",{className:we("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},s)):null});GGe.displayName="PanelContent";var WMt=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],WGe=ce.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,o=e.isActive,s=e.onItemClick,a=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,h=f===void 0?{}:f,g=e.prefixCls,p=e.collapsible,m=e.accordion,v=e.panelKey,C=e.extra,y=e.header,b=e.expandIcon,S=e.openMotion,w=e.destroyInactivePanel,x=e.children,E=on(e,WMt),R=p==="disabled",O=C!=null&&typeof C!="boolean",T=ie(ie(ie({onClick:function(){s==null||s(v)},onKeyDown:function(I){(I.key==="Enter"||I.keyCode===lt.ENTER||I.which===lt.ENTER)&&(s==null||s(v))},role:m?"tab":"button"},"aria-expanded",o),"aria-disabled",R),"tabIndex",R?-1:0),M=typeof b=="function"?b(e):ce.createElement("i",{className:"arrow"}),_=M&&ce.createElement("div",V({className:"".concat(g,"-expand-icon")},["header","icon"].includes(p)?T:{}),M),F=we("".concat(g,"-item"),ie(ie({},"".concat(g,"-item-active"),o),"".concat(g,"-item-disabled"),R),l),D=we(i,"".concat(g,"-header"),ie({},"".concat(g,"-collapsible-").concat(p),!!p),u.header),k=se({className:D,style:h.header},["header","icon"].includes(p)?{}:T);return ce.createElement("div",V({},E,{ref:t,className:F}),ce.createElement("div",k,r&&_,ce.createElement("span",V({className:"".concat(g,"-header-text")},p==="header"?T:{}),y),O&&ce.createElement("div",{className:"".concat(g,"-extra")},C)),ce.createElement(Hs,V({visible:o,leavedClassName:"".concat(g,"-content-hidden")},S,{forceRender:a,removeOnLeave:w}),function(L,I){var A=L.className,N=L.style;return ce.createElement(GGe,{ref:I,prefixCls:g,className:A,classNames:u,style:N,styles:h,isActive:o,forceRender:a,role:m?"tabpanel":void 0},x)}))}),UMt=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],qMt=function(t,n){var r=n.prefixCls,i=n.accordion,o=n.collapsible,s=n.destroyInactivePanel,a=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,h){var g=f.children,p=f.label,m=f.key,v=f.collapsible,C=f.onItemClick,y=f.destroyInactivePanel,b=on(f,UMt),S=String(m??h),w=v??o,x=y??s,E=function(T){w!=="disabled"&&(a(T),C==null||C(T))},R=!1;return i?R=l[0]===S:R=l.indexOf(S)>-1,ce.createElement(WGe,V({},b,{prefixCls:r,key:S,panelKey:S,isActive:R,accordion:i,openMotion:c,expandIcon:u,header:p,collapsible:w,onItemClick:E,destroyInactivePanel:x}),g)})},KMt=function(t,n,r){if(!t)return null;var i=r.prefixCls,o=r.accordion,s=r.collapsible,a=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,h=t.key||String(n),g=t.props,p=g.header,m=g.headerClass,v=g.destroyInactivePanel,C=g.collapsible,y=g.onItemClick,b=!1;o?b=c[0]===h:b=c.indexOf(h)>-1;var S=C??s,w=function(R){S!=="disabled"&&(l(R),y==null||y(R))},x={key:h,panelKey:h,header:p,headerClass:m,isActive:b,prefixCls:i,destroyInactivePanel:v??a,openMotion:u,accordion:o,children:t.props.children,onItemClick:w,expandIcon:f,collapsible:S};return typeof t.type=="string"?t:(Object.keys(x).forEach(function(E){typeof x[E]>"u"&&delete x[E]}),ce.cloneElement(t,x))};function YMt(e,t,n){return Array.isArray(e)?qMt(e,n):Rs(t).map(function(r,i){return KMt(r,i,n)})}function XMt(e){var t=e;if(!Array.isArray(t)){var n=nn(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var QMt=ce.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,o=i===void 0?!1:i,s=e.style,a=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,h=e.expandIcon,g=e.activeKey,p=e.defaultActiveKey,m=e.onChange,v=e.items,C=we(r,l),y=ir([],{value:g,onChange:function(O){return m==null?void 0:m(O)},defaultValue:p,postState:XMt}),b=Ce(y,2),S=b[0],w=b[1],x=function(O){return w(function(){if(a)return S[0]===O?[]:[O];var T=S.indexOf(O),M=T>-1;return M?S.filter(function(_){return _!==O}):[].concat(ut(S),[O])})};ui(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=YMt(v,c,{prefixCls:r,accordion:a,openMotion:f,expandIcon:h,collapsible:u,destroyInactivePanel:o,onItemClick:x,activeKey:S});return ce.createElement("div",V({ref:t,className:C,style:s,role:a?"tablist":void 0},$o(e,{aria:!0,data:!0})),E)});const Xj=Object.assign(QMt,{Panel:WGe});var ZMt=Xj.Panel;const JMt=Object.freeze(Object.defineProperty({__proto__:null,Panel:ZMt,default:Xj},Symbol.toStringTag,{value:"Module"})),ePt=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(vn),{prefixCls:r,className:i,showArrow:o=!0}=e,s=n("collapse",r),a=we({[`${s}-no-arrow`]:!o},i);return d.createElement(Xj.Panel,Object.assign({ref:t},e,{prefixCls:s,className:a}))}),ZI=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
||
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
||
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{[`
|
||
${o}${e}-enter,
|
||
${o}${e}-appear
|
||
`]:Object.assign(Object.assign({},tPt(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},nPt(r)),{animationPlayState:"paused"}),[`
|
||
${o}${e}-enter${e}-enter-active,
|
||
${o}${e}-appear${e}-appear-active
|
||
`]:{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),{[`
|
||
${i}${r}-enter,
|
||
${i}${r}-appear
|
||
`]:{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),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{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),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{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),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{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":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`${Ne(l)} ${Ne(l)} 0 0`}},"&:last-child":{[`
|
||
&,
|
||
& > ${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}`},[`
|
||
> ${t}-item:last-child,
|
||
> ${t}-item:last-child ${t}-header
|
||
`]:{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,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:a,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-a*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},NPt=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:s,marginXS:a,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ne(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:C3(),"> a":{color:"currentColor"},"&:not(:disabled)":Yf(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${o} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(a).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(a).mul(-1).equal()}}}}}},KGe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),kPt=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),zPt=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),BPt=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ape=(e,t,n,r,i,o,s,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},KGe(e,Object.assign({background:t},s),Object.assign({background:t},a))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),HPt=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},BPt(e))}),jPt=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Zj=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?jPt:HPt;return Object.assign(Object.assign({},o(e)),KGe(e.componentCls,t,n))},Jj=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Zj(e,r,i))}),eV=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Zj(e,r,i))}),tV=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),nV=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Zj(e,n,r))}),X4=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Zj(e,r,i,n))}),VPt=e=>{const{componentCls:t}=e;return NC.reduce((n,r)=>{const i=e[`${r}6`],o=e[`${r}1`],s=e[`${r}5`],a=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${e.controlOutlineWidth} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},Jj(e,e.colorTextLightSolid,i,{background:s},{background:c})),eV(e,i,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),tV(e)),nV(e,o,{background:a},{background:l})),X4(e,i,"link",{color:s},{color:c})),X4(e,i,"text",{color:s,background:o},{color:c,background:l}))})},{})},GPt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Jj(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),tV(e)),nV(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),X4(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ape(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),WPt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},eV(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),tV(e)),nV(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),X4(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),ape(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),UPt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Jj(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),eV(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),tV(e)),nV(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),X4(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),X4(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),ape(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),qPt=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:GPt(e),[`${t}-color-primary`]:WPt(e),[`${t}-color-dangerous`]:UPt(e)},VPt(e))},KPt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},eV(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),X4(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Jj(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),X4(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),lpe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:s,iconCls:a,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${Ne(l)} ${Ne(s)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[a]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${n}${n}-circle${t}`]:kPt(e)},{[`${n}${n}-round${t}`]:zPt(e)}]},YPt=e=>{const t=yr(e,{fontSize:e.contentFontSize});return lpe(t,e.componentCls)},XPt=e=>{const t=yr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return lpe(t,`${e.componentCls}-sm`)},QPt=e=>{const t=yr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return lpe(t,`${e.componentCls}-lg`)},ZPt=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},JPt=Yr("Button",e=>{const t=UGe(e);return[NPt(t),YPt(t),XPt(t),QPt(t),ZPt(t),qPt(t),KPt(t),RMt(t)]},qGe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function e_t(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,s=o?"> *":"",a=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[a]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function t_t(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function rV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},e_t(e,r,t)),t_t(n,r,t))}}function n_t(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function r_t(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function i_t(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},n_t(e,t)),r_t(e.componentCls,t))}}const o_t=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),s=a=>({[`${t}-compact${a?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:a?o:0,insetInlineStart:a?0:o,backgroundColor:n,content:'""',width:a?"100%":r,height:a?r:"100%"}}});return Object.assign(Object.assign({},s()),s(!0))},s_t=Hx(["Button","compact"],e=>{const t=UGe(e);return[rV(t),i_t(t),o_t(t)]},qGe);var a_t=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 l_t(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const c_t={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},u_t=ce.forwardRef((e,t)=>{var n,r,i,o;const{loading:s=!1,prefixCls:a,color:l,variant:c,type:u,danger:f=!1,shape:h="default",size:g,styles:p,disabled:m,className:v,rootClassName:C,children:y,icon:b,iconPosition:S="start",ghost:w=!1,block:x=!1,htmlType:E="button",classNames:R,style:O={},autoInsertSpace:T,autoFocus:M}=e,_=a_t(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),F=u||"default",[D,k]=d.useMemo(()=>{if(l&&c)return[l,c];const ze=c_t[F]||[];return f?["danger",ze[1]]:ze},[u,l,c,f]),I=D==="danger"?"dangerous":D,{getPrefixCls:A,direction:N,button:B}=d.useContext(vn),z=(n=T??(B==null?void 0:B.autoInsertSpace))!==null&&n!==void 0?n:!0,j=A("btn",a),[W,G,K]=JPt(j),q=d.useContext(yc),X=m??q,Q=d.useContext(LGe),te=d.useMemo(()=>l_t(s),[s]),[ne,Z]=d.useState(te.loading),[ee,J]=d.useState(!1),oe=d.useRef(null),le=Od(t,oe),ge=d.Children.count(y)===1&&!b&&!Nee(k),he=d.useRef(!0);ce.useEffect(()=>(he.current=!1,()=>{he.current=!0}),[]),d.useEffect(()=>{let ze=null;te.delay>0?ze=setTimeout(()=>{ze=null,Z(!0)},te.delay):Z(te.loading);function Re(){ze&&(clearTimeout(ze),ze=null)}return Re},[te]),d.useEffect(()=>{if(!oe.current||!z)return;const ze=oe.current.textContent||"";ge&&Nae(ze)?ee||J(!0):ee&&J(!1)}),d.useEffect(()=>{M&&oe.current&&oe.current.focus()},[]);const ye=ce.useCallback(ze=>{var Re;if(ne||X){ze.preventDefault();return}(Re=e.onClick)===null||Re===void 0||Re.call(e,ze)},[e.onClick,ne,X]),{compactSize:ue,compactItemClassnames:ve}=Dy(j,N),de={large:"lg",small:"sm",middle:void 0},xe=fl(ze=>{var Re,Le;return(Le=(Re=g??ue)!==null&&Re!==void 0?Re:Q)!==null&&Le!==void 0?Le:ze}),Ee=xe&&(r=de[xe])!==null&&r!==void 0?r:"",De=ne?"loading":b,Be=$i(_,["navigate"]),Ge=we(j,G,K,{[`${j}-${h}`]:h!=="default"&&h,[`${j}-${F}`]:F,[`${j}-dangerous`]:f,[`${j}-color-${I}`]:I,[`${j}-variant-${k}`]:k,[`${j}-${Ee}`]:Ee,[`${j}-icon-only`]:!y&&y!==0&&!!De,[`${j}-background-ghost`]:w&&!Nee(k),[`${j}-loading`]:ne,[`${j}-two-chinese-chars`]:ee&&z&&!ne,[`${j}-block`]:x,[`${j}-rtl`]:N==="rtl",[`${j}-icon-end`]:S==="end"},ve,v,C,B==null?void 0:B.className),Ue=Object.assign(Object.assign({},B==null?void 0:B.style),O),We=we(R==null?void 0:R.icon,(i=B==null?void 0:B.classNames)===null||i===void 0?void 0:i.icon),Ve=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),((o=B==null?void 0:B.styles)===null||o===void 0?void 0:o.icon)||{}),Fe=b&&!ne?ce.createElement(kae,{prefixCls:j,className:We,style:Ve},b):typeof s=="object"&&s.icon?ce.createElement(kae,{prefixCls:j,className:We,style:Ve},s.icon):ce.createElement(EMt,{existIcon:!!b,prefixCls:j,loading:ne,mount:he.current}),ke=y||y===0?xMt(y,ge&&z):null;if(Be.href!==void 0)return W(ce.createElement("a",Object.assign({},Be,{className:we(Ge,{[`${j}-disabled`]:X}),href:X?void 0:Be.href,style:Ue,onClick:ye,ref:le,tabIndex:X?-1:0}),Fe,ke));let Ye=ce.createElement("button",Object.assign({},_,{type:E,className:Ge,style:Ue,onClick:ye,disabled:X,ref:le}),Fe,ke,ve&&ce.createElement(s_t,{prefixCls:j}));return Nee(k)||(Ye=ce.createElement(QI,{component:"Button",disabled:ne},Ye)),W(Ye)}),Cr=u_t;Cr.Group=SMt;Cr.__ANT_BUTTON=!0;function Hee(e){return!!(e!=null&&e.then)}const YGe=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:s,emitEvent:a,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),h=d.useRef(null),[g,p]=FC(!1),m=function(){o==null||o.apply(void 0,arguments)};d.useEffect(()=>{let y=null;return s&&(y=setTimeout(()=>{var b;(b=h.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[]);const v=y=>{Hee(y)&&(p(!0),y.then(function(){p(!1,!0),m.apply(void 0,arguments),f.current=!1},b=>{if(p(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(b)}))},C=y=>{if(f.current)return;if(f.current=!0,!u){m();return}let b;if(a){if(b=u(y),c&&!Hee(b)){f.current=!1,m(y);return}}else if(u.length)b=u(o),f.current=!1;else if(b=u(),!Hee(b)){m();return}v(b)};return d.createElement(Cr,Object.assign({},FGe(t),{onClick:C,loading:g,prefixCls:r},i,{ref:h}),n)},JI=ce.createContext({}),{Provider:XGe}=JI,LSe=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:s,onCancel:a,onConfirm:l}=d.useContext(JI);return i?ce.createElement(YGe,{isSilent:r,actionFn:a,close:function(){s==null||s.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},FSe=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:s,onConfirm:a,onOk:l}=d.useContext(JI);return ce.createElement(YGe,{isSilent:n,type:s||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),a==null||a(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)};var QGe=d.createContext(null),NSe=[];function d_t(e,t){var n=d.useState(function(){if(!Bs())return null;var p=document.createElement("div");return p}),r=Ce(n,1),i=r[0],o=d.useRef(!1),s=d.useContext(QGe),a=d.useState(NSe),l=Ce(a,2),c=l[0],u=l[1],f=s||(o.current?void 0:function(p){u(function(m){var v=[p].concat(ut(m));return v})});function h(){i.parentElement||document.body.appendChild(i),o.current=!0}function g(){var p;(p=i.parentElement)===null||p===void 0||p.removeChild(i),o.current=!1}return Zn(function(){return e?s?s(h):h():g(),g},[e]),Zn(function(){c.length&&(c.forEach(function(p){return p()}),u(NSe))},[c]),[i,f]}var jee;function ZGe(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(e){var s=getComputedStyle(e);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var a=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(a.width,10),c=parseInt(a.height,10);try{var u=l?"width: ".concat(a.width,";"):"",f=c?"height: ".concat(a.height,";"):"";am(`
|
||
#`.concat(t,`::-webkit-scrollbar {
|
||
`).concat(u,`
|
||
`).concat(f,`
|
||
}`),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(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
`.concat(s?"width: calc(100% - ".concat(o,"px);"):"",`
|
||
}`),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(){var S=C_t(g.current);C(h&&(h.x||h.y)?"".concat(h.x-S.left,"px ").concat(h.y-S.top,"px"):"")}return d.createElement(Hs,{visible:s,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:a,motionName:c,removeOnLeave:l,ref:g},function(S,w){var x=S.className,E=S.style;return d.createElement(cpe,V({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:w,style:se(se(se({},E),i),y),className:we(o,x)}))})});eWe.displayName="Content";var w_t=function(t){var n=t.prefixCls,r=t.style,i=t.visible,o=t.maskProps,s=t.motionName,a=t.className;return d.createElement(Hs,{key:"mask",visible:i,motionName:s,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",V({ref:c,style:se(se({},f),r),className:we("".concat(n,"-mask"),u,a)},o))})},x_t=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,o=t.visible,s=o===void 0?!1:o,a=t.keyboard,l=a===void 0?!0:a,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,h=t.wrapClassName,g=t.wrapProps,p=t.onClose,m=t.afterOpenChange,v=t.afterClose,C=t.transitionName,y=t.animation,b=t.closable,S=b===void 0?!0:b,w=t.mask,x=w===void 0?!0:w,E=t.maskTransitionName,R=t.maskAnimation,O=t.maskClosable,T=O===void 0?!0:O,M=t.maskStyle,_=t.maskProps,F=t.rootClassName,D=t.classNames,k=t.styles,L=d.useRef(),I=d.useRef(),A=d.useRef(),N=d.useState(s),B=Ce(N,2),z=B[0],j=B[1],W=iV();function G(){Sae(I.current,document.activeElement)||(L.current=document.activeElement)}function K(){if(!Sae(I.current,document.activeElement)){var le;(le=A.current)===null||le===void 0||le.focus()}}function q(le){if(le)K();else{if(j(!1),x&&L.current&&u){try{L.current.focus({preventScroll:!0})}catch{}L.current=null}z&&(v==null||v())}m==null||m(le)}function X(le){p==null||p(le)}var Q=d.useRef(!1),te=d.useRef(),ne=function(){clearTimeout(te.current),Q.current=!0},Z=function(){te.current=setTimeout(function(){Q.current=!1})},ee=null;T&&(ee=function(ge){Q.current?Q.current=!1:I.current===ge.target&&X(ge)});function J(le){if(l&&le.keyCode===lt.ESC){le.stopPropagation(),X(le);return}s&&le.keyCode===lt.TAB&&A.current.changeActive(!le.shiftKey)}d.useEffect(function(){s&&(j(!0),G())},[s]),d.useEffect(function(){return function(){clearTimeout(te.current)}},[]);var oe=se(se(se({zIndex:i},f),k==null?void 0:k.wrapper),{},{display:z?null:"none"});return d.createElement("div",V({className:we("".concat(r,"-root"),F)},$o(t,{data:!0})),d.createElement(w_t,{prefixCls:r,visible:x&&s,motionName:VSe(r,E,R),style:se(se({zIndex:i},M),k==null?void 0:k.mask),maskProps:_,className:D==null?void 0:D.mask}),d.createElement("div",V({tabIndex:-1,onKeyDown:J,className:we("".concat(r,"-wrap"),h,D==null?void 0:D.wrapper),ref:I,onClick:ee,style:oe},g),d.createElement(eWe,V({},t,{onMouseDown:ne,onMouseUp:Z,ref:A,closable:S,ariaId:W,prefixCls:r,visible:s&&z,onClose:X,onVisibleChanged:q,motionName:VSe(r,C,y)}))))},oV=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,o=t.destroyOnClose,s=o===void 0?!1:o,a=t.afterClose,l=t.panelRef,c=d.useState(n),u=Ce(c,2),f=u[0],h=u[1],g=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){n&&h(!0)},[n]),!i&&s&&!f?null:d.createElement(JGe.Provider,{value:g},d.createElement(Ly,{open:n||i||f,autoDestroy:!1,getContainer:r,autoLock:n||f},d.createElement(x_t,V({},t,{destroyOnClose:s,afterClose:function(){a==null||a(),h(!1)}}))))};oV.displayName="Dialog";const E_t=Object.freeze(Object.defineProperty({__proto__:null,Panel:cpe,default:oV},Symbol.toStringTag,{value:"Module"}));var T8="RC_FORM_INTERNAL_HOOKS",oo=function(){ui(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Q4=d.createContext({getFieldValue:oo,getFieldsValue:oo,getFieldError:oo,getFieldWarning:oo,getFieldsError:oo,isFieldsTouched:oo,isFieldTouched:oo,isFieldValidating:oo,isFieldsValidating:oo,resetFields:oo,setFields:oo,setFieldValue:oo,setFieldsValue:oo,validateFields:oo,submit:oo,getInternalHooks:function(){return oo(),{dispatch:oo,initEntityValue:oo,registerField:oo,useSubscribe:oo,setInitialValues:oo,destroyForm:oo,setCallbacks:oo,registerWatch:oo,getFields:oo,setValidateMessages:oo,setPreserve:oo,getInitialValue:oo}}}),u7=d.createContext(null);function Bae(e){return e==null?[]:Array.isArray(e)?e:[e]}function R_t(e){return e&&!!e._init}function Hae(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var jae=Hae();function $_t(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function O_t(e,t,n){if(tv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&yT(i,n.prototype),i}function Vae(e){var t=typeof Map=="function"?new Map:void 0;return Vae=function(r){if(r===null||!$_t(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return O_t(r,arguments,ul(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),yT(i,r)},Vae(e)}var T_t=/%[sdj%]/g,I_t=function(){};function Gae(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function id(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(T_t,function(a){if(a==="%%")return"%";if(i>=o)return a;switch(a){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return a}});return s}return e}function M_t(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function aa(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||M_t(t)&&typeof e=="string"&&!e)}function P_t(e,t,n){var r=[],i=0,o=e.length;function s(a){r.push.apply(r,ut(a||[])),i++,i===o&&n(r)}e.forEach(function(a){t(a,s)})}function WSe(e,t,n){var r=0,i=e.length;function o(s){if(s&&s.length){n(s);return}var a=r;r=r+1,a<i?t(e[a],o):n([])}o([])}function __t(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ut(e[n]||[]))}),t}var USe=function(e){hs(n,e);var t=wc(n);function n(r,i){var o;return qr(this,n),o=t.call(this,"Async Validation Error"),ie(dn(o),"errors",void 0),ie(dn(o),"fields",void 0),o.errors=r,o.fields=i,o}return Kr(n)}(Vae(Error));function A_t(e,t,n,r,i){if(t.first){var o=new Promise(function(h,g){var p=function(C){return r(C),C.length?g(new USe(C,Gae(C))):h(i)},m=__t(e);WSe(m,n,p)});return o.catch(function(h){return h}),o}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,c=0,u=[],f=new Promise(function(h,g){var p=function(v){if(u.push.apply(u,v),c++,c===l)return r(u),u.length?g(new USe(u,Gae(u))):h(i)};a.length||(r(u),h(i)),a.forEach(function(m){var v=e[m];s.indexOf(m)!==-1?WSe(v,n,p):P_t(v,n,p)})});return f.catch(function(h){return h}),f}function D_t(e){return!!(e&&e.message!==void 0)}function L_t(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function qSe(e,t){return function(n){var r;return e.fullFields?r=L_t(t,e.fullFields):r=t[n.field||e.fullField],D_t(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function KSe(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];nn(r)==="object"&&nn(e[n])==="object"?e[n]=se(se({},e[n]),r):e[n]=r}}return e}var r5="enum",F_t=function(t,n,r,i,o){t[r5]=Array.isArray(t[r5])?t[r5]:[],t[r5].indexOf(n)===-1&&i.push(id(o.messages[r5],t.fullField,t[r5].join(", ")))},N_t=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(id(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||i.push(id(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},k_t=function(t,n,r,i,o){var s=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,h=typeof n=="number",g=typeof n=="string",p=Array.isArray(n);if(h?f="number":g?f="string":p&&(f="array"),!f)return!1;p&&(u=n.length),g&&(u=n.replace(c,"_").length),s?u!==t.len&&i.push(id(o.messages[f].len,t.fullField,t.len)):a&&!l&&u<t.min?i.push(id(o.messages[f].min,t.fullField,t.min)):l&&!a&&u>t.max?i.push(id(o.messages[f].max,t.fullField,t.max)):a&&l&&(u<t.min||u>t.max)&&i.push(id(o.messages[f].range,t.fullField,t.min,t.max))},tWe=function(t,n,r,i,o,s){t.required&&(!r.hasOwnProperty(t.field)||aa(n,s||t.type))&&i.push(id(o.messages.required,t.fullField))},yD;const z_t=function(){if(yD)return yD;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(i.join("|"),")").concat(o),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(s,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(s,"$")),u=function(x){return x&&x.exact?a:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(s).concat(t(x),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(s).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,p=u.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(h,"(?:localhost|").concat(g,"|").concat(p,"|").concat(m).concat(v).concat(C,")").concat(y).concat(b);return yD=new RegExp("(?:^".concat(S,"$)"),"i"),yD};var YSe={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},r$={integer:function(t){return r$.number(t)&&parseInt(t,10)===t},float:function(t){return r$.number(t)&&!r$.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return nn(t)==="object"&&!r$.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(YSe.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(z_t())},hex:function(t){return typeof t=="string"&&!!t.match(YSe.hex)}},B_t=function(t,n,r,i,o){if(t.required&&n===void 0){tWe(t,n,r,i,o);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;s.indexOf(a)>-1?r$[a](n)||i.push(id(o.messages.types[a],t.fullField,t.type)):a&&nn(n)!==t.type&&i.push(id(o.messages.types[a],t.fullField,t.type))},H_t=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(id(o.messages.whitespace,t.fullField))};const hi={required:tWe,whitespace:H_t,type:B_t,range:k_t,enum:F_t,pattern:N_t};var j_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n)&&!t.required)return r();hi.required(t,n,i,s,o)}r(s)},V_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();hi.required(t,n,i,s,o,"array"),n!=null&&(hi.type(t,n,i,s,o),hi.range(t,n,i,s,o))}r(s)},G_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n)&&!t.required)return r();hi.required(t,n,i,s,o),n!==void 0&&hi.type(t,n,i,s,o)}r(s)},W_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n,"date")&&!t.required)return r();if(hi.required(t,n,i,s,o),!aa(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),hi.type(t,l,i,s,o),l&&hi.range(t,l.getTime(),i,s,o)}}r(s)},U_t="enum",q_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n)&&!t.required)return r();hi.required(t,n,i,s,o),n!==void 0&&hi[U_t](t,n,i,s,o)}r(s)},K_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n)&&!t.required)return r();hi.required(t,n,i,s,o),n!==void 0&&(hi.type(t,n,i,s,o),hi.range(t,n,i,s,o))}r(s)},Y_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n)&&!t.required)return r();hi.required(t,n,i,s,o),n!==void 0&&(hi.type(t,n,i,s,o),hi.range(t,n,i,s,o))}r(s)},X_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n)&&!t.required)return r();hi.required(t,n,i,s,o),n!==void 0&&hi.type(t,n,i,s,o)}r(s)},Q_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),aa(n)&&!t.required)return r();hi.required(t,n,i,s,o),n!==void 0&&(hi.type(t,n,i,s,o),hi.range(t,n,i,s,o))}r(s)},Z_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n)&&!t.required)return r();hi.required(t,n,i,s,o),n!==void 0&&hi.type(t,n,i,s,o)}r(s)},J_t=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n,"string")&&!t.required)return r();hi.required(t,n,i,s,o),aa(n,"string")||hi.pattern(t,n,i,s,o)}r(s)},eAt=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n)&&!t.required)return r();hi.required(t,n,i,s,o),aa(n)||hi.type(t,n,i,s,o)}r(s)},tAt=function(t,n,r,i,o){var s=[],a=Array.isArray(n)?"array":nn(n);hi.required(t,n,i,s,o,a),r(s)},nAt=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(aa(n,"string")&&!t.required)return r();hi.required(t,n,i,s,o,"string"),aa(n,"string")||(hi.type(t,n,i,s,o),hi.range(t,n,i,s,o),hi.pattern(t,n,i,s,o),t.whitespace===!0&&hi.whitespace(t,n,i,s,o))}r(s)},Vee=function(t,n,r,i,o){var s=t.type,a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(aa(n,s)&&!t.required)return r();hi.required(t,n,i,a,o,s),aa(n,s)||hi.type(t,n,i,a,o)}r(a)};const W$={string:nAt,method:X_t,number:Q_t,boolean:G_t,regexp:eAt,integer:Y_t,float:K_t,array:V_t,object:Z_t,enum:q_t,pattern:J_t,date:W_t,url:Vee,hex:Vee,email:Vee,required:tAt,any:j_t};var eM=function(){function e(t){qr(this,e),ie(this,"rules",null),ie(this,"_messages",jae),this.define(t)}return Kr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(nn(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=KSe(Hae(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=n,a=i,l=o;if(typeof a=="function"&&(l=a,a={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,s),Promise.resolve(s);function c(p){var m=[],v={};function C(b){if(Array.isArray(b)){var S;m=(S=m).concat.apply(S,ut(b))}else m.push(b)}for(var y=0;y<p.length;y++)C(p[y]);m.length?(v=Gae(m),l(m,v)):l(null,s)}if(a.messages){var u=this.messages();u===jae&&(u=Hae()),KSe(u,a.messages),a.messages=u}else a.messages=this.messages();var f={},h=a.keys||Object.keys(this.rules);h.forEach(function(p){var m=r.rules[p],v=s[p];m.forEach(function(C){var y=C;typeof y.transform=="function"&&(s===n&&(s=se({},s)),v=s[p]=y.transform(v),v!=null&&(y.type=y.type||(Array.isArray(v)?"array":nn(v)))),typeof y=="function"?y={validator:y}:y=se({},y),y.validator=r.getValidationMethod(y),y.validator&&(y.field=p,y.fullField=y.fullField||p,y.type=r.getType(y),f[p]=f[p]||[],f[p].push({rule:y,value:v,source:s,field:p}))})});var g={};return A_t(f,a,function(p,m){var v=p.rule,C=(v.type==="object"||v.type==="array")&&(nn(v.fields)==="object"||nn(v.defaultField)==="object");C=C&&(v.required||!v.required&&p.value),v.field=p.field;function y(E,R){return se(se({},R),{},{fullField:"".concat(v.fullField,".").concat(E),fullFields:v.fullFields?[].concat(ut(v.fullFields),[E]):[E]})}function b(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(E)?E:[E];!a.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&v.message!==void 0&&(R=[].concat(v.message));var O=R.map(qSe(v,s));if(a.first&&O.length)return g[v.field]=1,m(O);if(!C)m(O);else{if(v.required&&!p.value)return v.message!==void 0?O=[].concat(v.message).map(qSe(v,s)):a.error&&(O=[a.error(v,id(a.messages.required,v.field))]),m(O);var T={};v.defaultField&&Object.keys(p.value).map(function(F){T[F]=v.defaultField}),T=se(se({},T),p.rule.fields);var M={};Object.keys(T).forEach(function(F){var D=T[F],k=Array.isArray(D)?D:[D];M[F]=k.map(y.bind(null,F))});var _=new e(M);_.messages(a.messages),p.rule.options&&(p.rule.options.messages=a.messages,p.rule.options.error=a.error),_.validate(p.value,p.rule.options||a,function(F){var D=[];O&&O.length&&D.push.apply(D,ut(O)),F&&F.length&&D.push.apply(D,ut(F)),m(D.length?D:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,p.value,b,p.source,a);else if(v.validator){try{S=v.validator(v,p.value,b,p.source,a)}catch(E){var w,x;(w=(x=console).error)===null||w===void 0||w.call(x,E),a.suppressValidatorError||setTimeout(function(){throw E},0),b(E.message)}S===!0?b():S===!1?b(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function(E){return b(E)})},function(p){c(p)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!W$.hasOwnProperty(n.type))throw new Error(id("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?W$.required:W$[this.getType(n)]||void 0}}]),e}();ie(eM,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");W$[t]=n});ie(eM,"warning",I_t);ie(eM,"messages",jae);ie(eM,"validators",W$);var Au="'${name}' is not a valid ${type}",nWe={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Au,method:Au,array:Au,object:Au,number:Au,date:Au,boolean:Au,integer:Au,float:Au,regexp:Au,email:Au,url:Au,hex:Au},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},XSe=eM;function rAt(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var QSe="CODE_LOGIC_ERROR";function Wae(e,t,n,r,i){return Uae.apply(this,arguments)}function Uae(){return Uae=rd(mo().mark(function e(t,n,r,i,o){var s,a,l,c,u,f,h,g,p;return mo().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return s=se({},r),delete s.ruleIndex,XSe.warning=function(){},s.validator&&(a=s.validator,s.validator=function(){try{return a.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(QSe)}}),l=null,s&&s.type==="array"&&s.defaultField&&(l=s.defaultField,delete s.defaultField),c=new XSe(ie({},t,[s])),u=xS(nWe,i.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(ie({},t,n),se({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(C,y){var b=C.message,S=b===QSe?u.default:b;return d.isValidElement(S)?d.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(C,y){return Wae("".concat(t,".").concat(y),C,l,i,o)}));case 21:return h=v.sent,v.abrupt("return",h.reduce(function(C,y){return[].concat(ut(C),ut(y))},[]));case 23:return g=se(se({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),p=f.map(function(C){return typeof C=="string"?rAt(C,g):C}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),Uae.apply(this,arguments)}function iAt(e,t,n,r,i,o){var s=e.join("."),a=n.map(function(u,f){var h=u.validator,g=se(se({},u),{},{ruleIndex:f});return h&&(g.validator=function(p,m,v){var C=!1,y=function(){for(var w=arguments.length,x=new Array(w),E=0;E<w;E++)x[E]=arguments[E];Promise.resolve().then(function(){ui(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||v.apply(void 0,x)})},b=h(p,m,y);C=b&&typeof b.then=="function"&&typeof b.catch=="function",ui(C,"`callback` is deprecated. Please return a promise instead."),C&&b.then(function(){v()}).catch(function(S){v(S||" ")})}),g}).sort(function(u,f){var h=u.warningOnly,g=u.ruleIndex,p=f.warningOnly,m=f.ruleIndex;return!!h==!!p?g-m:h?1:-1}),l;if(i===!0)l=new Promise(function(){var u=rd(mo().mark(function f(h,g){var p,m,v;return mo().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:p=0;case 1:if(!(p<a.length)){y.next=12;break}return m=a[p],y.next=5,Wae(s,t,m,r,o);case 5:if(v=y.sent,!v.length){y.next=9;break}return g([{errors:v,rule:m}]),y.abrupt("return");case 9:p+=1,y.next=1;break;case 12:h([]);case 13:case"end":return y.stop()}},f)}));return function(f,h){return u.apply(this,arguments)}}());else{var c=a.map(function(u){return Wae(s,t,u,r,o).then(function(f){return{errors:f,rule:u}})});l=(i?sAt(c):oAt(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function oAt(e){return qae.apply(this,arguments)}function qae(){return qae=rd(mo().mark(function e(t){return mo().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var o,s=(o=[]).concat.apply(o,ut(i));return s}));case 1:case"end":return r.stop()}},e)})),qae.apply(this,arguments)}function sAt(e){return Kae.apply(this,arguments)}function Kae(){return Kae=rd(mo().mark(function e(t){var n;return mo().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(o){t.forEach(function(s){s.then(function(a){a.errors.length&&o([a]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),Kae.apply(this,arguments)}function bs(e){return Bae(e)}function ZSe(e,t){var n={};return t.forEach(function(r){var i=Bl(e,r);n=Xu(n,r,i)}),n}function YS(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return rWe(t,r,n)})}function rWe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function aAt(e,t){if(e===t)return!0;if(!e&&t||!t||!e||!t||nn(e)!=="object"||nn(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return ut(i).every(function(o){var s=e[o],a=t[o];return typeof s=="function"&&typeof a=="function"?!0:s===a})}function lAt(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&nn(t.target)==="object"&&e in t.target?t.target[e]:t}function JSe(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(ut(e.slice(0,n)),[i],ut(e.slice(n,t)),ut(e.slice(t+1,r))):o<0?[].concat(ut(e.slice(0,t)),ut(e.slice(t+1,n+1)),[i],ut(e.slice(n+1,r))):e}var cAt=["name"],Wd=[];function Gee(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var upe=function(e){hs(n,e);var t=wc(n);function n(r){var i;if(qr(this,n),i=t.call(this,r),ie(dn(i),"state",{resetCount:0}),ie(dn(i),"cancelRegisterFunc",null),ie(dn(i),"mounted",!1),ie(dn(i),"touched",!1),ie(dn(i),"dirty",!1),ie(dn(i),"validatePromise",void 0),ie(dn(i),"prevValidating",void 0),ie(dn(i),"errors",Wd),ie(dn(i),"warnings",Wd),ie(dn(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,bs(f)),i.cancelRegisterFunc=null}),ie(dn(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,h=f===void 0?[]:f;return c!==void 0?[].concat(ut(h),ut(c)):[]}),ie(dn(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(f):h})}),ie(dn(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ie(dn(i),"metaCache",null),ie(dn(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=se(se({},i.getMeta()),{},{destroy:l});Uf(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ie(dn(i),"onStoreChange",function(l,c,u){var f=i.props,h=f.shouldUpdate,g=f.dependencies,p=g===void 0?[]:g,m=f.onReset,v=u.store,C=i.getNamePath(),y=i.getValue(l),b=i.getValue(v),S=c&&YS(c,C);switch(u.type==="valueUpdate"&&u.source==="external"&&!Uf(y,b)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Wd,i.warnings=Wd,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Wd,i.warnings=Wd,i.triggerMetaEvent(),m==null||m(),i.refresh();return}break;case"remove":{if(h&&Gee(h,l,v,y,b,u)){i.reRender();return}break}case"setField":{var w=u.data;if(S){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||Wd),"warnings"in w&&(i.warnings=w.warnings||Wd),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&YS(c,C,!0)){i.reRender();return}if(h&&!C.length&&Gee(h,l,v,y,b,u)){i.reRender();return}break}case"dependenciesUpdate":{var x=p.map(bs);if(x.some(function(E){return YS(u.relatedFields,E)})){i.reRender();return}break}default:if(S||(!p.length||C.length||h)&&Gee(h,l,v,y,b,u)){i.reRender();return}break}h===!0&&i.reRender()}),ie(dn(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},h=f.triggerName,g=f.validateOnly,p=g===void 0?!1:g,m=Promise.resolve().then(rd(mo().mark(function v(){var C,y,b,S,w,x,E;return mo().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(i.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(C=i.props,y=C.validateFirst,b=y===void 0?!1:y,S=C.messageVariables,w=C.validateDebounce,x=i.getRules(),h&&(x=x.filter(function(T){return T}).filter(function(T){var M=T.validateTrigger;if(!M)return!0;var _=Bae(M);return _.includes(h)})),!(w&&h)){O.next=10;break}return O.next=8,new Promise(function(T){setTimeout(T,w)});case 8:if(i.validatePromise===m){O.next=10;break}return O.abrupt("return",[]);case 10:return E=iAt(c,u,x,l,b,S),E.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wd;if(i.validatePromise===m){var M;i.validatePromise=null;var _=[],F=[];(M=T.forEach)===null||M===void 0||M.call(T,function(D){var k=D.rule.warningOnly,L=D.errors,I=L===void 0?Wd:L;k?F.push.apply(F,ut(I)):_.push.apply(_,ut(I))}),i.errors=_,i.warnings=F,i.triggerMetaEvent(),i.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},v)})));return p||(i.validatePromise=m,i.dirty=!0,i.errors=Wd,i.warnings=Wd,i.triggerMetaEvent(),i.reRender()),m}),ie(dn(i),"isFieldValidating",function(){return!!i.validatePromise}),ie(dn(i),"isFieldTouched",function(){return i.touched}),ie(dn(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(T8),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ie(dn(i),"getErrors",function(){return i.errors}),ie(dn(i),"getWarnings",function(){return i.warnings}),ie(dn(i),"isListField",function(){return i.props.isListField}),ie(dn(i),"isList",function(){return i.props.isList}),ie(dn(i),"isPreserve",function(){return i.props.preserve}),ie(dn(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),ie(dn(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return se(se({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Rs(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ie(dn(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Bl(l||c(!0),u)}),ie(dn(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,h=c.validateTrigger,g=c.getValueFromEvent,p=c.normalize,m=c.valuePropName,v=c.getValueProps,C=c.fieldContext,y=h!==void 0?h:C.validateTrigger,b=i.getNamePath(),S=C.getInternalHooks,w=C.getFieldsValue,x=S(T8),E=x.dispatch,R=i.getValue(),O=v||function(D){return ie({},m,D)},T=l[f],M=u!==void 0?O(R):{},_=se(se({},l),M);_[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var D,k=arguments.length,L=new Array(k),I=0;I<k;I++)L[I]=arguments[I];g?D=g.apply(void 0,L):D=lAt.apply(void 0,[m].concat(L)),p&&(D=p(D,R,w(!0))),D!==R&&E({type:"updateValue",namePath:b,value:D}),T&&T.apply(void 0,L)};var F=Bae(y||[]);return F.forEach(function(D){var k=_[D];_[D]=function(){k&&k.apply(void 0,arguments);var L=i.props.rules;L&&L.length&&E({type:"validateField",namePath:b,triggerName:D})}}),_}),r.fieldContext){var o=r.fieldContext.getInternalHooks,s=o(T8),a=s.initEntityValue;a(dn(i))}return i}return Kr(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,s=i.fieldContext;if(this.mounted=!0,s){var a=s.getInternalHooks,l=a(T8),c=l.registerField;this.cancelRegisterFunc=c(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,s=this.getOnlyChild(o),a=s.child,l=s.isFunction,c;return l?c=a:d.isValidElement(a)?c=d.cloneElement(a,this.getControlled(a.props)):(ui(!a,"`children` of Field is not validate ReactElement."),c=a),d.createElement(d.Fragment,{key:i},c)}}]),n}(d.Component);ie(upe,"contextType",Q4);ie(upe,"defaultProps",{trigger:"onChange",valuePropName:"value"});function sV(e){var t,n=e.name,r=on(e,cAt),i=d.useContext(Q4),o=d.useContext(u7),s=n!==void 0?bs(n):void 0,a=(t=r.isListField)!==null&&t!==void 0?t:!!o,l="keep";return a||(l="_".concat((s||[]).join("_"))),d.createElement(upe,V({key:l,name:s,isListField:a},r,{fieldContext:i}))}function dpe(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,s=e.isListField,a=d.useContext(Q4),l=d.useContext(u7),c=d.useRef({keys:[],id:0}),u=c.current,f=d.useMemo(function(){var m=bs(a.prefixName)||[];return[].concat(ut(m),ut(bs(t)))},[a.prefixName,t]),h=d.useMemo(function(){return se(se({},a),{},{prefixName:f})},[a,f]),g=d.useMemo(function(){return{getKey:function(v){var C=f.length,y=v[C];return[u.keys[y],v.slice(C+1)]}}},[f]);if(typeof r!="function")return ui(!1,"Form.List only accepts function as children."),null;var p=function(v,C,y){var b=y.source;return b==="internal"?!1:v!==C};return d.createElement(u7.Provider,{value:g},d.createElement(Q4.Provider,{value:h},d.createElement(sV,{name:[],shouldUpdate:p,rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:s??!!l},function(m,v){var C=m.value,y=C===void 0?[]:C,b=m.onChange,S=a.getFieldValue,w=function(){var O=S(f||[]);return O||[]},x={add:function(O,T){var M=w();T>=0&&T<=M.length?(u.keys=[].concat(ut(u.keys.slice(0,T)),[u.id],ut(u.keys.slice(T))),b([].concat(ut(M.slice(0,T)),[O],ut(M.slice(T))))):(u.keys=[].concat(ut(u.keys),[u.id]),b([].concat(ut(M),[O]))),u.id+=1},remove:function(O){var T=w(),M=new Set(Array.isArray(O)?O:[O]);M.size<=0||(u.keys=u.keys.filter(function(_,F){return!M.has(F)}),b(T.filter(function(_,F){return!M.has(F)})))},move:function(O,T){if(O!==T){var M=w();O<0||O>=M.length||T<0||T>=M.length||(u.keys=JSe(u.keys,O,T),b(JSe(M,O,T)))}}},E=y||[];return Array.isArray(E)||(E=[]),r(E.map(function(R,O){var T=u.keys[O];return T===void 0&&(u.keys[O]=u.id,T=u.keys[O],u.id+=1),{name:O,key:T,isListField:!0}}),x,v)})))}function uAt(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(s,a){s.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[a]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var iWe="__@field_split__";function Wee(e){return e.map(function(t){return"".concat(nn(t),":").concat(t)}).join(iWe)}var i5=function(){function e(){qr(this,e),ie(this,"kvs",new Map)}return Kr(e,[{key:"set",value:function(n,r){this.kvs.set(Wee(n),r)}},{key:"get",value:function(n){return this.kvs.get(Wee(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Wee(n))}},{key:"map",value:function(n){return ut(this.kvs.entries()).map(function(r){var i=Ce(r,2),o=i[0],s=i[1],a=o.split(iWe);return n({key:a.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Ce(c,3),f=u[1],h=u[2];return f==="number"?Number(h):h}),value:s})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),dAt=["name"],fAt=Kr(function e(t){var n=this;qr(this,e),ie(this,"formHooked",!1),ie(this,"forceRootUpdate",void 0),ie(this,"subscribable",!0),ie(this,"store",{}),ie(this,"fieldEntities",[]),ie(this,"initialValues",{}),ie(this,"callbacks",{}),ie(this,"validateMessages",null),ie(this,"preserve",null),ie(this,"lastValidatePromise",null),ie(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),ie(this,"getInternalHooks",function(r){return r===T8?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(ui(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ie(this,"useSubscribe",function(r){n.subscribable=r}),ie(this,"prevWithoutPreserves",null),ie(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,s=xS(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(a){var l=a.key;s=Xu(s,l,Bl(r,l))}),n.prevWithoutPreserves=null,n.updateStore(s)}}),ie(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new i5;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ie(this,"getInitialValue",function(r){var i=Bl(n.initialValues,r);return r.length?xS(i):i}),ie(this,"setCallbacks",function(r){n.callbacks=r}),ie(this,"setValidateMessages",function(r){n.validateMessages=r}),ie(this,"setPreserve",function(r){n.preserve=r}),ie(this,"watchList",[]),ie(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ie(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(s){s(i,o,r)})}}),ie(this,"timeoutId",null),ie(this,"warningUnhooked",function(){}),ie(this,"updateStore",function(r){n.store=r}),ie(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),ie(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new i5;return n.getFieldEntities(r).forEach(function(o){var s=o.getNamePath();i.set(s,o)}),i}),ie(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var s=bs(o);return i.get(s)||{INVALIDATE_NAME_PATH:bs(o)}})}),ie(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,s,a;if(r===!0||Array.isArray(r)?(o=r,s=i):r&&nn(r)==="object"&&(a=r.strict,s=r.filter),o===!0&&!s)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var f,h,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(a){var p,m;if((p=(m=u).isList)!==null&&p!==void 0&&p.call(m))return}else if(!o&&(f=(h=u).isListField)!==null&&f!==void 0&&f.call(h))return;if(!s)c.push(g);else{var v="getMeta"in u?u.getMeta():null;s(v)&&c.push(g)}}),ZSe(n.store,c.map(bs))}),ie(this,"getFieldValue",function(r){n.warningUnhooked();var i=bs(r);return Bl(n.store,i)}),ie(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,s){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:bs(r[s]),errors:[],warnings:[]}})}),ie(this,"getFieldError",function(r){n.warningUnhooked();var i=bs(r),o=n.getFieldsError([i])[0];return o.errors}),ie(this,"getFieldWarning",function(r){n.warningUnhooked();var i=bs(r),o=n.getFieldsError([i])[0];return o.warnings}),ie(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i[0],a=i[1],l,c=!1;i.length===0?l=null:i.length===1?Array.isArray(s)?(l=s.map(bs),c=!1):(l=null,c=s):(l=s.map(bs),c=a);var u=n.getFieldEntities(!0),f=function(v){return v.isFieldTouched()};if(!l)return c?u.every(function(m){return f(m)||m.isList()}):u.some(f);var h=new i5;l.forEach(function(m){h.set(m,[])}),u.forEach(function(m){var v=m.getNamePath();l.forEach(function(C){C.every(function(y,b){return v[b]===y})&&h.update(C,function(y){return[].concat(ut(y),[m])})})});var g=function(v){return v.some(f)},p=h.map(function(m){var v=m.value;return v});return c?p.every(g):p.some(g)}),ie(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ie(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(s){return s.isFieldValidating()});var o=r.map(bs);return i.some(function(s){var a=s.getNamePath();return YS(o,a)&&s.isFieldValidating()})}),ie(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ie(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new i5,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var s=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var h=u.getNamePath(),g=n.getInitialValue(h);if(g!==void 0)ui(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var p=i.get(h);if(p&&p.size>1)ui(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var m=n.getFieldValue(h),v=u.isListField();!v&&(!r.skipExist||m===void 0)&&n.updateStore(Xu(n.store,h,ut(p)[0].value))}}}})},a;r.entities?a=r.entities:r.namePathList?(a=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=a).push.apply(u,ut(ut(c).map(function(f){return f.entity})))}})):a=o,s(a)}),ie(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(xS(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(bs);o.forEach(function(s){var a=n.getInitialValue(s);n.updateStore(Xu(n.store,s,a))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),ie(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(s){var a=s.name,l=on(s,dAt),c=bs(a);o.push(c),"value"in l&&n.updateStore(Xu(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:s})}),n.notifyWatch(o)}),ie(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var s=o.getNamePath(),a=o.getMeta(),l=se(se({},a),{},{name:s,value:n.getFieldValue(s)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ie(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),s=Bl(n.store,o);s===void 0&&n.updateStore(Xu(n.store,o,i))}}),ie(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ie(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(a)&&(!s||l.length>1)){var c=s?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!rWe(f.getNamePath(),i)})){var u=n.store;n.updateStore(Xu(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ie(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var s=r.namePath,a=r.triggerName;n.validateFields([s],{triggerName:a});break}}}),ie(this,"notifyObservers",function(r,i,o){if(n.subscribable){var s=se(se({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(a){var l=a.onStoreChange;l(r,i,s)})}else n.forceRootUpdate()}),ie(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(ut(o))}),o}),ie(this,"updateValue",function(r,i){var o=bs(r),s=n.store;n.updateStore(Xu(n.store,o,i)),n.notifyObservers(s,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var a=n.triggerDependenciesUpdate(s,o),l=n.callbacks.onValuesChange;if(l){var c=ZSe(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ut(a)))}),ie(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=xS(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ie(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),ie(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],s=new i5;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=bs(u);s.update(f,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h})})});var a=function l(c){var u=s.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var h=f.getNamePath();f.isFieldDirty()&&h.length&&(o.push(h),l(h))}})};return a(r),o}),ie(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var s=n.getFields();if(i){var a=new i5;i.forEach(function(c){var u=c.name,f=c.errors;a.set(u,f)}),s.forEach(function(c){c.errors=a.get(c.name)||c.errors})}var l=s.filter(function(c){var u=c.name;return YS(r,u)});l.length&&o(l,s)}}),ie(this,"validateFields",function(r,i){n.warningUnhooked();var o,s;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,s=i):s=r;var a=!!o,l=a?o.map(bs):[],c=[],u=String(Date.now()),f=new Set,h=s||{},g=h.recursive,p=h.dirty;n.getFieldEntities(!0).forEach(function(y){if(a||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(p&&!y.isFieldDirty())){var b=y.getNamePath();if(f.add(b.join(u)),!a||YS(l,b,g)){var S=y.validateRules(se({validateMessages:se(se({},nWe),n.validateMessages)},s));c.push(S.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(w){var x,E=[],R=[];return(x=w.forEach)===null||x===void 0||x.call(w,function(O){var T=O.rule.warningOnly,M=O.errors;T?R.push.apply(R,ut(M)):E.push.apply(E,ut(M))}),E.length?Promise.reject({name:b,errors:E,warnings:R}):{name:b,errors:E,warnings:R}}))}}});var m=uAt(c);n.lastValidatePromise=m,m.catch(function(y){return y}).then(function(y){var b=y.map(function(S){var w=S.name;return w});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,y)});var v=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var b=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:b,outOfDate:n.lastValidatePromise!==m})});v.catch(function(y){return y});var C=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(C),v}),ie(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function aV(e){var t=d.useRef(),n=d.useState({}),r=Ce(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},s=new fAt(o);t.current=s.getForm()}return[t.current]}var Yae=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),fpe=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,s=d.useContext(Yae),a=d.useRef({});return d.createElement(Yae.Provider,{value:se(se({},s),{},{validateMessages:se(se({},s.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:a.current}),s.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:a.current}),s.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(a.current=se(se({},a.current),{},ie({},c,u))),s.registerForm(c,u)},unregisterForm:function(c){var u=se({},a.current);delete u[c],a.current=u,s.unregisterForm(c)}})},o)},hAt=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],gAt=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,s=t.form,a=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,h=t.validateTrigger,g=h===void 0?"onChange":h,p=t.onValuesChange,m=t.onFieldsChange,v=t.onFinish,C=t.onFinishFailed,y=t.clearOnDestroy,b=on(t,hAt),S=d.useRef(null),w=d.useContext(Yae),x=aV(s),E=Ce(x,1),R=E[0],O=R.getInternalHooks(T8),T=O.useSubscribe,M=O.setInitialValues,_=O.setCallbacks,F=O.setValidateMessages,D=O.setPreserve,k=O.destroyForm;d.useImperativeHandle(n,function(){return se(se({},R),{},{nativeElement:S.current})}),d.useEffect(function(){return w.registerForm(r,R),function(){w.unregisterForm(r)}},[w,R,r]),F(se(se({},w.validateMessages),f)),_({onValuesChange:p,onFieldsChange:function(G){if(w.triggerFormChange(r,G),m){for(var K=arguments.length,q=new Array(K>1?K-1:0),X=1;X<K;X++)q[X-1]=arguments[X];m.apply(void 0,[G].concat(q))}},onFinish:function(G){w.triggerFormFinish(r,G),v&&v(G)},onFinishFailed:C}),D(a);var L=d.useRef(null);M(i,!L.current),L.current||(L.current=!0),d.useEffect(function(){return function(){return k(y)}},[]);var I,A=typeof l=="function";if(A){var N=R.getFieldsValue(!0);I=l(N,R)}else I=l;T(!A);var B=d.useRef();d.useEffect(function(){aAt(B.current||[],o||[])||R.setFields(o||[]),B.current=o},[o,R]);var z=d.useMemo(function(){return se(se({},R),{},{validateTrigger:g})},[R,g]),j=d.createElement(u7.Provider,{value:null},d.createElement(Q4.Provider,{value:z},I));return u===!1?j:d.createElement(u,V({},b,{ref:S,onSubmit:function(G){G.preventDefault(),G.stopPropagation(),R.submit()},onReset:function(G){var K;G.preventDefault(),R.resetFields(),(K=b.onReset)===null||K===void 0||K.call(b,G)}}),j)};function ewe(e){try{return JSON.stringify(e)}catch{return Math.random()}}function hpe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=i===void 0?{}:i,s=R_t(o)?{form:o}:o,a=s.form,l=d.useState(),c=Ce(l,2),u=c[0],f=c[1],h=d.useMemo(function(){return ewe(u)},[u]),g=d.useRef(h);g.current=h;var p=d.useContext(Q4),m=a||p,v=m&&m._init,C=bs(r),y=d.useRef(C);return y.current=C,d.useEffect(function(){if(v){var b=m.getFieldsValue,S=m.getInternalHooks,w=S(T8),x=w.registerWatch,E=function(M,_){var F=s.preserve?_:M;return typeof r=="function"?r(F):Bl(F,y.current)},R=x(function(T,M){var _=E(T,M),F=ewe(_);g.current!==F&&(g.current=F,f(_))}),O=E(b(),b(!0));return u!==O&&f(O),R}},[v]),u}var pAt=d.forwardRef(gAt),Fy=pAt;Fy.FormProvider=fpe;Fy.Field=sV;Fy.List=dpe;Fy.useForm=aV;Fy.useWatch=hpe;const mAt=Object.freeze(Object.defineProperty({__proto__:null,Field:sV,FieldContext:Q4,FormProvider:fpe,List:dpe,ListContext:u7,default:Fy,useForm:aV,useWatch:hpe},Symbol.toStringTag,{value:"Module"})),A0=d.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),oWe=d.createContext(null),sWe=e=>{const t=$i(e,["prefixCls"]);return d.createElement(fpe,Object.assign({},t))},gpe=d.createContext({prefixCls:""}),Na=d.createContext({}),vAt=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(Na),o=d.useMemo(()=>{const s=Object.assign({},i);return r&&delete s.isFormItemInput,n&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[n,r,i]);return d.createElement(Na.Provider,{value:o},t)},aWe=d.createContext(void 0),kC=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=ce.createElement(vAt,{override:!0,status:!0},i)),t&&(i=ce.createElement(vMt,null,i)),i};function qz(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function twe(e){const{closable:t,closeIcon:n}=e||{};return ce.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function nwe(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(i=>{i&&Object.keys(i).forEach(o=>{i[o]!==void 0&&(e[o]=i[o])})}),e}const CAt={};function lWe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:CAt;const r=twe(e),i=twe(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=ce.useMemo(()=>Object.assign({closeIcon:ce.createElement(Ug,null)},n),[n]),a=ce.useMemo(()=>r===!1?!1:r?nwe(s,i,r):i===!1?!1:i?nwe(s,i):s.closable?s:!1,[r,i,s]);return ce.useMemo(()=>{if(a===!1)return[!1,null,o];const{closeIconRender:l}=s,{closeIcon:c}=a;let u=c;if(u!=null){l&&(u=l(c));const f=$o(a,!0);Object.keys(f).length&&(u=ce.isValidElement(u)?ce.cloneElement(u,f):ce.createElement("span",Object.assign({},f),u))}return[!0,u,o]},[a,s])}var cWe=function(t){if(Bs()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},yAt=function(t,n){if(!cWe(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function Xae(e,t){return!Array.isArray(e)&&t!==void 0?yAt(e,t):cWe(e)}const bAt=()=>Bs()&&window.document.documentElement,lV=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,s=we({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),a=we({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:we(t,s,a,n),style:Object.assign(Object.assign({},l),r)})},SAt=new Pr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),cV=e=>({height:e,lineHeight:Ne(e)}),XS=e=>Object.assign({width:e},cV(e)),wAt=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:SAt,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Uee=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},cV(e)),xAt=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},XS(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},XS(i)),[`${t}${t}-sm`]:Object.assign({},XS(o))}},EAt=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:s,calc:a}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},Uee(t,a)),[`${r}-lg`]:Object.assign({},Uee(i,a)),[`${r}-sm`]:Object.assign({},Uee(o,a))}},rwe=e=>Object.assign({width:e},cV(e)),RAt=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},rwe(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},rwe(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},qee=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Kee=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},cV(e)),$At=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:s,calc:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:a(r).mul(2).equal(),minWidth:a(r).mul(2).equal()},Kee(r,a))},qee(e,r,n)),{[`${n}-lg`]:Object.assign({},Kee(i,a))}),qee(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Kee(o,a))}),qee(e,o,`${n}-sm`))},OAt=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:s,skeletonImageCls:a,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:h,marginSM:g,borderRadius:p,titleHeight:m,blockRadius:v,paragraphLiHeight:C,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},XS(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},XS(c)),[`${n}-sm`]:Object.assign({},XS(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:f,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},$At(e)),xAt(e)),EAt(e)),RAt(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
||
${r},
|
||
${i} > li,
|
||
${n},
|
||
${o},
|
||
${s},
|
||
${a}
|
||
`]: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.createElement("h3",{className:we(t,n),style:Object.assign({width:r},i)})};function Yee(e){return e&&typeof e=="object"?e:{}}function kAt(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function zAt(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function BAt(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const yu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:s,avatar:a=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:h,direction:g,skeleton:p}=d.useContext(vn),m=h("skeleton",t),[v,C,y]=Ux(m);if(n||!("loading"in e)){const b=!!a,S=!!l,w=!!c;let x;if(b){const O=Object.assign(Object.assign({prefixCls:`${m}-avatar`},kAt(S,w)),Yee(a));x=d.createElement("div",{className:`${m}-header`},d.createElement(lV,Object.assign({},O)))}let E;if(S||w){let O;if(S){const M=Object.assign(Object.assign({prefixCls:`${m}-title`},zAt(b,w)),Yee(l));O=d.createElement(NAt,Object.assign({},M))}let T;if(w){const M=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},BAt(b,S)),Yee(c));T=d.createElement(FAt,Object.assign({},M))}E=d.createElement("div",{className:`${m}-content`},O,T)}const R=we(m,{[`${m}-with-avatar`]:b,[`${m}-active`]:u,[`${m}-rtl`]:g==="rtl",[`${m}-round`]:f},p==null?void 0:p.className,r,i,C,y);return v(d.createElement("div",{className:R,style:Object.assign(Object.assign({},p==null?void 0:p.style),o)},x,E))}return s??null};yu.Button=MAt;yu.Avatar=IAt;yu.Input=AAt;yu.Image=_At;yu.Node=DAt;function iwe(){}const HAt=d.createContext({add:iwe,remove:iwe});function jAt(e){const t=d.useContext(HAt),n=d.useRef(null);return Hn(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}const owe=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(JI);return ce.createElement(Cr,Object.assign({onClick:n},e),t)},swe=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=d.useContext(JI);return ce.createElement(Cr,Object.assign({},FGe(n),{loading:e,onClick:i},t),r)};function uWe(e,t){return ce.createElement("span",{className:`${e}-close-x`},t||ce.createElement(Ug,{className:`${e}-close-icon`}))}const dWe=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:s,okButtonProps:a,cancelButtonProps:l,footer:c}=e,[u]=ih("Modal",BVe()),f=t||(u==null?void 0:u.okText),h=r||(u==null?void 0:u.cancelText),g={confirmLoading:i,okButtonProps:a,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:h,okType:n,onOk:o,onCancel:s},p=ce.useMemo(()=>g,ut(Object.values(g)));let m;return typeof c=="function"||typeof c>"u"?(m=ce.createElement(ce.Fragment,null,ce.createElement(owe,null),ce.createElement(swe,null)),typeof c=="function"&&(m=c(m,{OkBtn:swe,CancelBtn:owe})),m=ce.createElement(XGe,{value:p},m)):m=c,ce.createElement(Vge,{disabled:!1},m)},VAt=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},GAt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},WAt=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let s=i;s>=0;s--)s===0?(o[`${r}${t}-${s}`]={display:"none"},o[`${r}-push-${s}`]={insetInlineStart:"auto"},o[`${r}-pull-${s}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${s}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${s}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${s}`]={marginInlineStart:0},o[`${r}${t}-order-${s}`]={order:0}):(o[`${r}${t}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/i*100}%`,maxWidth:`${s/i*100}%`}],o[`${r}${t}-push-${s}`]={insetInlineStart:`${s/i*100}%`},o[`${r}${t}-pull-${s}`]={insetInlineEnd:`${s/i*100}%`},o[`${r}${t}-offset-${s}`]={marginInlineStart:`${s/i*100}%`},o[`${r}${t}-order-${s}`]={order:s});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},Qae=(e,t)=>WAt(e,t),UAt=(e,t,n)=>({[`@media (min-width: ${Ne(t)})`]:Object.assign({},Qae(e,n))}),qAt=()=>({}),KAt=()=>({}),YAt=Yr("Grid",VAt,qAt),fWe=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),XAt=Yr("Grid",e=>{const t=yr(e,{gridColumns:24}),n=fWe(t);return delete n.xs,[GAt(t),Qae(t,""),Qae(t,"-xs"),Object.keys(n).map(r=>UAt(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},KAt);function awe(e){return{position:e,inset:0}}const hWe=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},awe("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},awe("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:tpe(e)}]},QAt=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Ne(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ii(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ne(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Ne(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Yf(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ne(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
||
${t}-body,
|
||
${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,onClose:s,closable:I&&{disabled:N,closeIcon:A},closeIcon:A,focusTriggerAfterClose:m,transitionName:Cu(T,"zoom",e.transitionName),maskTransitionName:Cu(T,"fade",e.maskTransitionName),className:we(F,c,o==null?void 0:o.className),style:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.style),v),K),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),S),{wrapper:we(k,S==null?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),w),panelRef:B}),E?d.createElement(yu,{active:!0,title:!1,paragraph:{rows:4},className:`${O}-body-skeleton`}):x))))},nDt=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:o,lineHeight:s,modalTitleHeight:a,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},$m()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(a).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Ne(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Ne(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:o,lineHeight:s},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
|
||
${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,Object.assign({},u));o=epe()(ce.createElement(Wg,{prefixCls:f,iconPrefixCls:h,theme:g},t.holderRender?t.holderRender(p):p),n)})}function l(){for(var u=arguments.length,f=new Array(u),h=0;h<u;h++)f[h]=arguments[h];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,f)}}),r.visible&&delete r.visible,a(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),a(r)}return a(r),I8.push(l),{destroy:l,update:c}}function wWe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function xWe(e){return Object.assign(Object.assign({},e),{type:"info"})}function EWe(e){return Object.assign(Object.assign({},e),{type:"success"})}function RWe(e){return Object.assign(Object.assign({},e),{type:"error"})}function $We(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function aDt(e){let{rootPrefixCls:t}=e;bWe=t}var lDt=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 cDt=(e,t)=>{var n,{afterClose:r,config:i}=e,o=lDt(e,["afterClose","config"]);const[s,a]=d.useState(!0),[l,c]=d.useState(i),{direction:u,getPrefixCls:f}=d.useContext(vn),h=f("modal"),g=f(),p=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},m=function(){var y;a(!1);for(var b=arguments.length,S=new Array(b),w=0;w<b;w++)S[w]=arguments[w];if(S.some(R=>R==null?void 0:R.triggerCancel)){var E;(y=l.onCancel)===null||y===void 0||(E=y).call.apply(E,[l,()=>{}].concat(ut(S.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:m,update:y=>{c(b=>Object.assign(Object.assign({},b),y))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[C]=ih("Modal",yd.Modal);return d.createElement(yWe,Object.assign({prefixCls:h,rootPrefixCls:g},l,{close:m,open:s,afterClose:p,okText:l.okText||(v?C==null?void 0:C.okText:C==null?void 0:C.justOkText),direction:l.direction||u,cancelText:l.cancelText||(C==null?void 0:C.cancelText)},o))},uDt=d.forwardRef(cDt);let lwe=0;const dDt=d.memo(d.forwardRef((e,t)=>{const[n,r]=YIt();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function OWe(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(ut(t).forEach(s=>{s()}),n([]))},[t]);const r=d.useCallback(o=>function(a){var l;lwe+=1;const c=d.createRef();let u;const f=new Promise(v=>{u=v});let h=!1,g;const p=d.createElement(uDt,{key:`modal-${lwe}`,config:o(a),ref:c,afterClose:()=>{g==null||g()},isSilent:()=>h,onConfirm:v=>{u(v)}});return g=(l=e.current)===null||l===void 0?void 0:l.patchElement(p),g&&I8.push(g),{destroy:()=>{function v(){var C;(C=c.current)===null||C===void 0||C.destroy()}c.current?v():n(C=>[].concat(ut(C),[v]))},update:v=>{function C(){var y;(y=c.current)===null||y===void 0||y.update(v)}c.current?C():n(y=>[].concat(ut(y),[C]))},then:v=>(h=!0,f.then(v))}},[]);return[d.useMemo(()=>({info:r(xWe),success:r(EWe),error:r(RWe),warning:r(wWe),confirm:r($We)}),[]),d.createElement(dDt,{key:"modal-holder",ref:e})]}const fDt=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,o=new Pr("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),s=new Pr("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),a=new Pr("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Pr("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},hDt=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],gDt={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},pDt=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[gDt[t]]:{value:0,_skip_check_:!0}}}}},mDt=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},vDt=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},CDt=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},mDt(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},vDt(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},hDt.map(n=>pDt(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},yDt=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:o,borderRadiusLG:s,colorSuccess:a,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:h,notificationPadding:g,notificationMarginEdge:p,notificationProgressBg:m,notificationProgressHeight:v,fontSize:C,lineHeight:y,width:b,notificationIconSize:S,colorText:w}=e,x=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:h,borderRadius:s,boxShadow:r,[x]:{padding:g,width:b,maxWidth:`calc(100vw - ${Ne(e.calc(p).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:f,fontSize:i,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:C,color:w},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:i},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:C},[`${x}-icon`]:{position:"absolute",fontSize:S,lineHeight:1,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Yf(e)),[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Ne(s)} * 2)`,left:{_skip_check_:!0,value:s},right:{_skip_check_:!0,value:s},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:m},"&::-webkit-progress-value":{borderRadius:s,background:m}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},bDt=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:o}=e,s=`${t}-notice`,a=new Pr("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ii(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:a,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${s}-btn`]:{float:"left"}}})},{[t]:{[`${s}-wrapper`]:Object.assign({},yDt(e))}}]},SDt=e=>({zIndexPopup:e.zIndexPopupBase+Zge+50,width:384}),wDt=e=>{const t=e.paddingMD,n=e.paddingLG;return yr(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Ne(e.paddingMD)} ${Ne(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},xDt=Yr("Notification",e=>{const t=wDt(e);return[bDt(t),fDt(t),CDt(t)]},SDt);function TWe(e,t){return t===null||t===!1?null:t||d.createElement(Ug,{className:`${e}-close-icon`})}const EDt={success:Ay,info:YI,error:nv,warning:Vx},RDt=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:o,btn:s,role:a="alert"}=e;let l=null;return n?l=d.createElement("span",{className:`${t}-icon`},n):r&&(l=d.createElement(EDt[r]||null,{className:we(`${t}-icon`,`${t}-icon-${r}`)})),d.createElement("div",{className:we({[`${t}-with-icon`]:l}),role:a},l,d.createElement("div",{className:`${t}-message`},i),d.createElement("div",{className:`${t}-description`},o),s&&d.createElement("div",{className:`${t}-btn`},s))};function $Dt(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function ODt(e){return{motionName:`${e}-fade`}}var TDt=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 cwe=24,IDt=4.5,MDt="topRight",PDt=e=>{let{children:t,prefixCls:n}=e;const r=Oo(n),[i,o,s]=xDt(n,r);return i(ce.createElement(Xge,{classNames:{list:we(o,s,r)}},t))},_Dt=(e,t)=>{let{prefixCls:n,key:r}=t;return ce.createElement(PDt,{prefixCls:n,key:r},e)},ADt=ce.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:o,maxCount:s,rtl:a,onAllRemoved:l,stack:c,duration:u,pauseOnHover:f=!0,showProgress:h}=e,{getPrefixCls:g,getPopupContainer:p,notification:m,direction:v}=d.useContext(vn),[,C]=za(),y=i||g("notification"),b=R=>$Dt(R,n??cwe,r??cwe),S=()=>we({[`${y}-rtl`]:a??v==="rtl"}),w=()=>ODt(y),[x,E]=Qge({prefixCls:y,style:b,className:S,motion:w,closable:!0,closeIcon:TWe(y),duration:u??IDt,getContainer:()=>(o==null?void 0:o())||(p==null?void 0:p())||document.body,maxCount:s,pauseOnHover:f,showProgress:h,onAllRemoved:l,renderNotifications:_Dt,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:C.margin}});return ce.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:y,notification:m})),E});function DDt(e){const t=ce.useRef(null);return _y(),[ce.useMemo(()=>{const r=a=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:f}=t.current,h=`${u}-notice`,{message:g,description:p,icon:m,type:v,btn:C,className:y,style:b,role:S="alert",closeIcon:w,closable:x}=a,E=TDt(a,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),R=TWe(h,typeof w<"u"?w:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:MDt},E),{content:ce.createElement(RDt,{prefixCls:h,icon:m,type:v,message:g,description:p,btn:C,role:S}),className:we(v&&`${h}-${v}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:R,closable:x??!!R}))},o={open:r,destroy:a=>{var l,c;a!==void 0?(l=t.current)===null||l===void 0||l.close(a):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(a=>{o[a]=l=>r(Object.assign(Object.assign({},l),{type:a}))}),o},[]),ce.createElement(ADt,Object.assign({key:"notification-holder"},e,{ref:t}))]}function LDt(e){return DDt(e)}const Jae=ce.createContext({}),IWe=ce.createContext({message:{},notification:{},modal:{}}),FDt=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:o}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:o,[`&${t}-rtl`]:{direction:"rtl"}}}},NDt=()=>({}),kDt=Yr("App",FDt,NDt),zDt=()=>ce.useContext(IWe),MWe=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:o,notification:s,style:a,component:l="div"}=e,{direction:c,getPrefixCls:u}=d.useContext(vn),f=u("app",t),[h,g,p]=kDt(f),m=we(g,f,r,i,p,{[`${f}-rtl`]:c==="rtl"}),v=d.useContext(Jae),C=ce.useMemo(()=>({message:Object.assign(Object.assign({},v.message),o),notification:Object.assign(Object.assign({},v.notification),s)}),[o,s,v.message,v.notification]),[y,b]=_Ge(C.message),[S,w]=LDt(C.notification),[x,E]=OWe(),R=ce.useMemo(()=>({message:y,notification:S,modal:x}),[y,S,x]);_y()(!(p&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const O=l===!1?ce.Fragment:l,T={className:m,style:a};return h(ce.createElement(IWe.Provider,{value:R},ce.createElement(Jae.Provider,{value:C},ce.createElement(O,Object.assign({},l===!1?void 0:T),E,b,w,n))))};MWe.useApp=zDt;function PWe(e){return t=>d.createElement(Wg,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const ppe=(e,t,n,r,i)=>PWe(s=>{const{prefixCls:a,style:l}=s,c=d.useRef(null),[u,f]=d.useState(0),[h,g]=d.useState(0),[p,m]=ir(!1,{value:s.open}),{getPrefixCls:v}=d.useContext(vn),C=v(r||"select",a);d.useEffect(()=>{if(m(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(x=>{const E=x[0].target;f(E.offsetHeight+8),g(E.offsetWidth)}),w=setInterval(()=>{var x;const E=i?`.${i(C)}`:`.${C}-dropdown`,R=(x=c.current)===null||x===void 0?void 0:x.querySelector(E);R&&(clearInterval(w),S.observe(R))},10);return()=>{clearInterval(w),S.disconnect()}}},[]);let y=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:h};return d.createElement("div",{ref:c,style:b},d.createElement(e,Object.assign({},y)))}),uV=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var dV=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,o=t.children,s=t.onMouseDown,a=t.onClick,l=typeof r=="function"?r(i):r;return d.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),s==null||s(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:d.createElement("span",{className:we(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},o))},BDt=function(t,n,r,i,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=ce.useMemo(function(){if(nn(i)==="object")return i.clearIcon;if(o)return o},[i,o]),u=ce.useMemo(function(){return!!(!s&&i&&(r.length||a)&&!(l==="combobox"&&a===""))},[i,s,r.length,a,l]);return{allowClear:u,clearIcon:ce.createElement(dV,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},_We=d.createContext(null);function fV(){return d.useContext(_We)}function HDt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=Ce(t,2),r=n[0],i=n[1],o=d.useRef(null),s=function(){window.clearTimeout(o.current)};d.useEffect(function(){return s},[]);var a=function(c,u){s(),o.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,a,s]}function AWe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function jDt(e,t,n,r){var i=d.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function o(s){var a;if(!((a=i.current)!==null&&a!==void 0&&a.customizedTrigger)){var l=s.target;l.shadowRoot&&s.composed&&(l=s.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function VDt(e){return e&&![lt.ESC,lt.SHIFT,lt.BACKSPACE,lt.TAB,lt.WIN_KEY,lt.ALT,lt.META,lt.WIN_KEY_RIGHT,lt.CTRL,lt.SEMICOLON,lt.EQUALS,lt.CAPS_LOCK,lt.CONTEXT_MENU,lt.F1,lt.F2,lt.F3,lt.F4,lt.F5,lt.F6,lt.F7,lt.F8,lt.F9,lt.F10,lt.F11,lt.F12].includes(e)}var GDt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],o5=void 0;function WDt(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,s=e.responsive,a=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,h=e.children,g=e.display,p=e.order,m=e.component,v=m===void 0?"div":m,C=on(e,GDt),y=s&&!g;function b(R){l(c,R)}d.useEffect(function(){return function(){b(null)}},[]);var S=o&&i!==o5?o(i):h,w;r||(w={opacity:y?0:1,height:y?0:o5,overflowY:y?"hidden":o5,order:s?p:o5,pointerEvents:y?"none":o5,position:y?"absolute":o5});var x={};y&&(x["aria-hidden"]=!0);var E=d.createElement(v,V({className:we(!r&&n,u),style:se(se({},w),f)},x,C,{ref:t}),S);return s&&(E=d.createElement(oa,{onResize:function(O){var T=O.offsetWidth;b(T)},disabled:a},E)),E}var U$=d.forwardRef(WDt);U$.displayName="Item";function UDt(e){if(typeof MessageChannel>"u")Rr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function qDt(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],UDt(function(){fo.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function YE(e,t){var n=d.useState(t),r=Ce(n,2),i=r[0],o=r[1],s=Hn(function(a){e(function(){o(a)})});return[i,s]}var Kz=ce.createContext(null),KDt=["component"],YDt=["className"],XDt=["className"],QDt=function(t,n){var r=d.useContext(Kz);if(!r){var i=t.component,o=i===void 0?"div":i,s=on(t,KDt);return d.createElement(o,V({},s,{ref:n}))}var a=r.className,l=on(r,YDt),c=t.className,u=on(t,XDt);return d.createElement(Kz.Provider,{value:null},d.createElement(U$,V({ref:n,className:we(a,c)},l,u)))},DWe=d.forwardRef(QDt);DWe.displayName="RawItem";var ZDt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],LWe="responsive",FWe="invalidate";function JDt(e){return"+ ".concat(e.length," ...")}function eLt(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,s=e.renderItem,a=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,h=e.style,g=e.className,p=e.maxCount,m=e.renderRest,v=e.renderRawRest,C=e.suffix,y=e.component,b=y===void 0?"div":y,S=e.itemComponent,w=e.onVisibleChange,x=on(e,ZDt),E=f==="full",R=qDt(),O=YE(R,null),T=Ce(O,2),M=T[0],_=T[1],F=M||0,D=YE(R,new Map),k=Ce(D,2),L=k[0],I=k[1],A=YE(R,0),N=Ce(A,2),B=N[0],z=N[1],j=YE(R,0),W=Ce(j,2),G=W[0],K=W[1],q=YE(R,0),X=Ce(q,2),Q=X[0],te=X[1],ne=d.useState(null),Z=Ce(ne,2),ee=Z[0],J=Z[1],oe=d.useState(null),le=Ce(oe,2),ge=le[0],he=le[1],ye=d.useMemo(function(){return ge===null&&E?Number.MAX_SAFE_INTEGER:ge||0},[ge,M]),ue=d.useState(!1),ve=Ce(ue,2),de=ve[0],xe=ve[1],Ee="".concat(r,"-item"),De=Math.max(B,G),Be=p===LWe,Ge=o.length&&Be,Ue=p===FWe,We=Ge||typeof p=="number"&&o.length>p,Ve=d.useMemo(function(){var Ct=o;return Ge?M===null&&E?Ct=o:Ct=o.slice(0,Math.min(o.length,F/u)):typeof p=="number"&&(Ct=o.slice(0,p)),Ct},[o,u,M,p,Ge]),Fe=d.useMemo(function(){return Ge?o.slice(ye+1):o.slice(Ve.length)},[o,Ve,Ge,ye]),ke=d.useCallback(function(Ct,ot){var nt;return typeof l=="function"?l(Ct):(nt=l&&(Ct==null?void 0:Ct[l]))!==null&&nt!==void 0?nt:ot},[l]),Ye=d.useCallback(s||function(Ct){return Ct},[s]);function ze(Ct,ot,nt){ge===Ct&&(ot===void 0||ot===ee)||(he(Ct),nt||(xe(Ct<o.length-1),w==null||w(Ct)),ot!==void 0&&J(ot))}function Re(Ct,ot){_(ot.clientWidth)}function Le(Ct,ot){I(function(nt){var fe=new Map(nt);return ot===null?fe.delete(Ct):fe.set(Ct,ot),fe})}function Me(Ct,ot){K(ot),z(G)}function be(Ct,ot){te(ot)}function je(Ct){return L.get(ke(Ve[Ct],Ct))}Zn(function(){if(F&&typeof De=="number"&&Ve){var Ct=Q,ot=Ve.length,nt=ot-1;if(!ot){ze(0,null);return}for(var fe=0;fe<ot;fe+=1){var Te=je(fe);if(E&&(Te=Te||0),Te===void 0){ze(fe-1,void 0,!0);break}if(Ct+=Te,nt===0&&Ct<=F||fe===nt-1&&Ct+je(nt)<=F){ze(nt,null);break}else if(Ct+De>F){ze(fe-1,Ct-Te-Q+G);break}}C&&je(0)+Q>F&&J(null)}},[F,L,G,Q,ke,Ve]);var Xe=de&&!!Fe.length,ft={};ee!==null&&Ge&&(ft={position:"absolute",left:ee,top:0});var Tt={prefixCls:Ee,responsive:Ge,component:S,invalidate:Ue},tt=a?function(Ct,ot){var nt=ke(Ct,ot);return d.createElement(Kz.Provider,{key:nt,value:se(se({},Tt),{},{order:ot,item:Ct,itemKey:nt,registerSize:Le,display:ot<=ye})},a(Ct,ot))}:function(Ct,ot){var nt=ke(Ct,ot);return d.createElement(U$,V({},Tt,{order:ot,key:nt,item:Ct,renderItem:Ye,itemKey:nt,registerSize:Le,display:ot<=ye}))},pt,$t={order:Xe?ye:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:Me,display:Xe};if(v)v&&(pt=d.createElement(Kz.Provider,{value:se(se({},Tt),$t)},v(Fe)));else{var wt=m||JDt;pt=d.createElement(U$,V({},Tt,$t),typeof wt=="function"?wt(Fe):wt)}var It=d.createElement(b,V({className:we(!Ue&&r,g),style:h,ref:t},x),Ve.map(tt),We?pt:null,C&&d.createElement(U$,V({},Tt,{responsive:Be,responsiveDisabled:!Ge,order:ye,className:"".concat(Ee,"-suffix"),registerSize:be,display:!0,style:ft}),C));return Be&&(It=d.createElement(oa,{onResize:Re,disabled:!Ge},It)),It}var Eg=d.forwardRef(eLt);Eg.displayName="Overflow";Eg.Item=DWe;Eg.RESPONSIVE=LWe;Eg.INVALIDATE=FWe;var tLt=function(t,n){var r,i=t.prefixCls,o=t.id,s=t.inputElement,a=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,h=t.activeDescendantId,g=t.value,p=t.maxLength,m=t.onKeyDown,v=t.onMouseDown,C=t.onChange,y=t.onPaste,b=t.onCompositionStart,S=t.onCompositionEnd,w=t.open,x=t.attrs,E=s||d.createElement("input",null),R=E,O=R.ref,T=R.props,M=T.onKeyDown,_=T.onChange,F=T.onMouseDown,D=T.onCompositionStart,k=T.onCompositionEnd,L=T.style;return"maxLength"in E.props,E=d.cloneElement(E,se(se(se({type:"search"},T),{},{id:o,ref:Ws(n,O),disabled:a,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:we("".concat(i,"-selection-search-input"),(r=E)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?h:void 0},x),{},{value:f?g:"",maxLength:p,readOnly:!f,unselectable:f?null:"on",style:se(se({},L),{},{opacity:f?null:0}),onKeyDown:function(A){m(A),M&&M(A)},onMouseDown:function(A){v(A),F&&F(A)},onChange:function(A){C(A),_&&_(A)},onCompositionStart:function(A){b(A),D&&D(A)},onCompositionEnd:function(A){S(A),k&&k(A)},onPaste:y})),E},NWe=d.forwardRef(tLt);function kWe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var nLt=typeof window<"u"&&window.document&&window.document.documentElement,rLt=nLt;function iLt(e){return e!=null}function oLt(e){return!e&&e!==0}function uwe(e){return["string","number"].includes(nn(e))}function zWe(e){var t=void 0;return e&&(uwe(e.title)?t=e.title.toString():uwe(e.label)&&(t=e.label.toString())),t}function sLt(e,t){rLt?d.useLayoutEffect(e,t):d.useEffect(e,t)}function aLt(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var dwe=function(t){t.preventDefault(),t.stopPropagation()},lLt=function(t){var n=t.id,r=t.prefixCls,i=t.values,o=t.open,s=t.searchValue,a=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,h=t.showSearch,g=t.autoFocus,p=t.autoComplete,m=t.activeDescendantId,v=t.tabIndex,C=t.removeIcon,y=t.maxTagCount,b=t.maxTagTextLength,S=t.maxTagPlaceholder,w=S===void 0?function(J){return"+ ".concat(J.length," ...")}:S,x=t.tagRender,E=t.onToggleOpen,R=t.onRemove,O=t.onInputChange,T=t.onInputPaste,M=t.onInputKeyDown,_=t.onInputMouseDown,F=t.onInputCompositionStart,D=t.onInputCompositionEnd,k=d.useRef(null),L=d.useState(0),I=Ce(L,2),A=I[0],N=I[1],B=d.useState(!1),z=Ce(B,2),j=z[0],W=z[1],G="".concat(r,"-selection"),K=o||f==="multiple"&&a===!1||f==="tags"?s:"",q=f==="tags"||f==="multiple"&&a===!1||h&&(o||j);sLt(function(){N(k.current.scrollWidth)},[K]);var X=function(oe,le,ge,he,ye){return d.createElement("span",{title:zWe(oe),className:we("".concat(G,"-item"),ie({},"".concat(G,"-item-disabled"),ge))},d.createElement("span",{className:"".concat(G,"-item-content")},le),he&&d.createElement(dV,{className:"".concat(G,"-item-remove"),onMouseDown:dwe,onClick:ye,customizeIcon:C},"×"))},Q=function(oe,le,ge,he,ye,ue){var ve=function(xe){dwe(xe),E(!o)};return d.createElement("span",{onMouseDown:ve},x({label:le,value:oe,disabled:ge,closable:he,onClose:ye,isMaxTag:!!ue}))},te=function(oe){var le=oe.disabled,ge=oe.label,he=oe.value,ye=!u&&!le,ue=ge;if(typeof b=="number"&&(typeof ge=="string"||typeof ge=="number")){var ve=String(ue);ve.length>b&&(ue="".concat(ve.slice(0,b),"..."))}var de=function(Ee){Ee&&Ee.stopPropagation(),R(oe)};return typeof x=="function"?Q(he,ue,le,ye,de):X(oe,ue,le,ye,de)},ne=function(oe){var le=typeof w=="function"?w(oe):w;return typeof x=="function"?Q(void 0,le,!1,!1,void 0,!0):X({title:le},le,!1)},Z=d.createElement("div",{className:"".concat(G,"-search"),style:{width:A},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},d.createElement(NWe,{ref:l,open:o,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:g,autoComplete:p,editable:q,activeDescendantId:m,value:K,onKeyDown:M,onMouseDown:_,onChange:O,onPaste:T,onCompositionStart:F,onCompositionEnd:D,tabIndex:v,attrs:$o(t,!0)}),d.createElement("span",{ref:k,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},K," ")),ee=d.createElement(Eg,{prefixCls:"".concat(G,"-overflow"),data:i,renderItem:te,renderRest:ne,suffix:Z,itemKey:aLt,maxCount:y});return d.createElement("span",{className:"".concat(G,"-wrap")},ee,!i.length&&!K&&d.createElement("span",{className:"".concat(G,"-placeholder")},c))},cLt=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,o=t.inputRef,s=t.disabled,a=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,h=t.values,g=t.placeholder,p=t.tabIndex,m=t.showSearch,v=t.searchValue,C=t.activeValue,y=t.maxLength,b=t.onInputKeyDown,S=t.onInputMouseDown,w=t.onInputChange,x=t.onInputPaste,E=t.onInputCompositionStart,R=t.onInputCompositionEnd,O=t.title,T=d.useState(!1),M=Ce(T,2),_=M[0],F=M[1],D=u==="combobox",k=D||m,L=h[0],I=v||"";D&&C&&!_&&(I=C),d.useEffect(function(){D&&F(!1)},[D,C]);var A=u!=="combobox"&&!f&&!m?!1:!!I,N=O===void 0?zWe(L):O,B=d.useMemo(function(){return L?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},g)},[L,A,g,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(NWe,{ref:o,prefixCls:r,id:i,open:f,inputElement:n,disabled:s,autoFocus:a,autoComplete:l,editable:k,activeDescendantId:c,value:I,onKeyDown:b,onMouseDown:S,onChange:function(j){F(!0),w(j)},onPaste:x,onCompositionStart:E,onCompositionEnd:R,tabIndex:p,attrs:$o(t,!0),maxLength:D?y:void 0})),!D&&L?d.createElement("span",{className:"".concat(r,"-selection-item"),title:N,style:A?{visibility:"hidden"}:void 0},L.label):null,B)},uLt=function(t,n){var r=d.useRef(null),i=d.useRef(!1),o=t.prefixCls,s=t.open,a=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,h=t.autoClearSearchValue,g=t.onSearch,p=t.onSearchSubmit,m=t.onToggleOpen,v=t.onInputKeyDown,C=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(N){r.current.focus(N)},blur:function(){r.current.blur()}}});var y=AWe(0),b=Ce(y,2),S=b[0],w=b[1],x=function(N){var B=N.which,z=r.current instanceof HTMLTextAreaElement;!z&&s&&(B===lt.UP||B===lt.DOWN)&&N.preventDefault(),v&&v(N),B===lt.ENTER&&a==="tags"&&!i.current&&!s&&(p==null||p(N.target.value)),!(z&&!s&&~[lt.UP,lt.DOWN,lt.LEFT,lt.RIGHT].indexOf(B))&&VDt(B)&&m(!0)},E=function(){w(!0)},R=d.useRef(null),O=function(N){g(N,!0,i.current)!==!1&&m(!0)},T=function(){i.current=!0},M=function(N){i.current=!1,a!=="combobox"&&O(N.target.value)},_=function(N){var B=N.target.value;if(c&&R.current&&/[\r\n]/.test(R.current)){var z=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(z,R.current)}R.current=null,O(B)},F=function(N){var B=N.clipboardData,z=B==null?void 0:B.getData("text");R.current=z||""},D=function(N){var B=N.target;if(B!==r.current){var z=document.body.style.msTouchAction!==void 0;z?setTimeout(function(){r.current.focus()}):r.current.focus()}},k=function(N){var B=S();N.target!==r.current&&!B&&!(a==="combobox"&&u)&&N.preventDefault(),(a!=="combobox"&&(!l||!B)||!s)&&(s&&h!==!1&&g("",!0,!1),m())},L={inputRef:r,onInputKeyDown:x,onInputMouseDown:E,onInputChange:_,onInputPaste:F,onInputCompositionStart:T,onInputCompositionEnd:M},I=a==="multiple"||a==="tags"?d.createElement(lLt,V({},t,L)):d.createElement(cLt,V({},t,L));return d.createElement("div",{ref:C,className:"".concat(o,"-selector"),onClick:D,onMouseDown:k},f&&d.createElement("div",{className:"".concat(o,"-prefix")},f),I)},dLt=d.forwardRef(uLt);function fLt(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},s=o.className,a=o.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,h=d.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],m=n.points[1],v=p[0],C=p[1],y=m[0],b=m[1];v===y||!["t","b"].includes(v)?g.top=f:v==="t"?g.top=0:g.bottom=0,C===b||!["l","r"].includes(C)?g.left=c:C==="l"?g.left=0:g.right=0}return d.createElement("div",{ref:h,className:we("".concat(t,"-arrow"),s),style:g},a)}function hLt(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?d.createElement(Hs,V({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(s){var a=s.className;return d.createElement("div",{style:{zIndex:r},className:we("".concat(t,"-mask"),a)})}):null}var gLt=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),pLt=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,s=e.target,a=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,h=e.mask,g=e.arrow,p=e.arrowPos,m=e.align,v=e.motion,C=e.maskMotion,y=e.forceRender,b=e.getPopupContainer,S=e.autoDestroy,w=e.portal,x=e.zIndex,E=e.onMouseEnter,R=e.onMouseLeave,O=e.onPointerEnter,T=e.onPointerDownCapture,M=e.ready,_=e.offsetX,F=e.offsetY,D=e.offsetR,k=e.offsetB,L=e.onAlign,I=e.onPrepare,A=e.stretch,N=e.targetWidth,B=e.targetHeight,z=typeof n=="function"?n():n,j=l||c,W=(b==null?void 0:b.length)>0,G=d.useState(!b||!W),K=Ce(G,2),q=K[0],X=K[1];if(Zn(function(){!q&&W&&s&&X(!0)},[q,W,s]),!q)return null;var Q="auto",te={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(M||!l){var ne,Z=m.points,ee=m.dynamicInset||((ne=m._experimental)===null||ne===void 0?void 0:ne.dynamicInset),J=ee&&Z[0][1]==="r",oe=ee&&Z[0][0]==="b";J?(te.right=D,te.left=Q):(te.left=_,te.right=Q),oe?(te.bottom=k,te.top=Q):(te.top=F,te.bottom=Q)}var le={};return A&&(A.includes("height")&&B?le.height=B:A.includes("minHeight")&&B&&(le.minHeight=B),A.includes("width")&&N?le.width=N:A.includes("minWidth")&&N&&(le.minWidth=N)),l||(le.pointerEvents="none"),d.createElement(w,{open:y||j,getContainer:b&&function(){return b(s)},autoDestroy:S},d.createElement(hLt,{prefixCls:i,open:l,zIndex:x,mask:h,motion:C}),d.createElement(oa,{onResize:L,disabled:!l},function(ge){return d.createElement(Hs,V({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:function(ye){var ue;v==null||(ue=v.onVisibleChanged)===null||ue===void 0||ue.call(v,ye),a(ye)}}),function(he,ye){var ue=he.className,ve=he.style,de=we(i,ue,r);return d.createElement("div",{ref:Ws(ge,t,ye),className:de,style:se(se(se(se({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},te),le),ve),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:E,onMouseLeave:R,onPointerEnter:O,onClick:f,onPointerDownCapture:T},g&&d.createElement(fLt,{prefixCls:i,arrow:g,arrowPos:p,align:m}),d.createElement(gLt,{cache:!l&&!u},z))})}))}),mLt=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Cd(n),o=d.useCallback(function(a){CT(t,r?r(a):a)},[r]),s=Od(o,v3(n));return i?d.cloneElement(n,{ref:s}):n}),fwe=d.createContext(null);function hwe(e){return e?Array.isArray(e)?e:[e]:[]}function vLt(e,t,n,r){return d.useMemo(function(){var i=hwe(n??t),o=hwe(r??t),s=new Set(i),a=new Set(o);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[s,a]},[e,t,n,r])}function CLt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function yLt(e,t,n,r){for(var i=n.points,o=Object.keys(e),s=0;s<o.length;s+=1){var a,l=o[s];if(CLt((a=e[l])===null||a===void 0?void 0:a.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function gwe(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function nM(e){return e.ownerDocument.defaultView}function ele(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=nM(n).getComputedStyle(n),o=i.overflowX,s=i.overflowY,a=i.overflow;[o,s,a].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function IT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function XE(e){return IT(parseFloat(e),0)}function pwe(e,t){var n=se({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=nM(r).getComputedStyle(r),o=i.overflow,s=i.overflowClipMargin,a=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),h=r.offsetHeight,g=r.clientHeight,p=r.offsetWidth,m=r.clientWidth,v=XE(a),C=XE(l),y=XE(c),b=XE(u),S=IT(Math.round(f.width/p*1e3)/1e3),w=IT(Math.round(f.height/h*1e3)/1e3),x=(p-m-y-b)*S,E=(h-g-v-C)*w,R=v*w,O=C*w,T=y*S,M=b*S,_=0,F=0;if(o==="clip"){var D=XE(s);_=D*S,F=D*w}var k=f.x+T-_,L=f.y+R-F,I=k+f.width+2*_-T-M-x,A=L+f.height+2*F-R-O-E;n.left=Math.max(n.left,k),n.top=Math.max(n.top,L),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,A)}}),n}function mwe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function vwe(e,t){var n=t||[],r=Ce(n,2),i=r[0],o=r[1];return[mwe(e.width,i),mwe(e.height,o)]}function Cwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function s5(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Fv(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function bLt(e,t,n,r,i,o,s){var a=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Ce(a,2),c=l[0],u=l[1],f=d.useRef(0),h=d.useMemo(function(){return t?ele(t):[]},[t]),g=d.useRef({}),p=function(){g.current={}};e||p();var m=Hn(function(){if(t&&n&&e){let In=function(si,To){var Oi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:De,pa=G.x+si,vl=G.y+To,Dd=pa+J,ph=vl+ee,Ld=Math.max(pa,Oi.left),Pn=Math.max(vl,Oi.top),er=Math.min(Dd,Oi.right),Ni=Math.min(ph,Oi.bottom);return Math.max(0,(er-Ld)*(Ni-Pn))},jn=function(){kt=G.y+nt,pn=kt+ee,ln=G.x+ot,Lt=ln+J};var y,b,S,w,x=t,E=x.ownerDocument,R=nM(x),O=R.getComputedStyle(x),T=O.width,M=O.height,_=O.position,F=x.style.left,D=x.style.top,k=x.style.right,L=x.style.bottom,I=x.style.overflow,A=se(se({},i[r]),o),N=E.createElement("div");(y=x.parentElement)===null||y===void 0||y.appendChild(N),N.style.left="".concat(x.offsetLeft,"px"),N.style.top="".concat(x.offsetTop,"px"),N.style.position=_,N.style.height="".concat(x.offsetHeight,"px"),N.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var z,j,W=n.getBoundingClientRect();W.x=(z=W.x)!==null&&z!==void 0?z:W.left,W.y=(j=W.y)!==null&&j!==void 0?j:W.top,B={x:W.x,y:W.y,width:W.width,height:W.height}}var G=x.getBoundingClientRect();G.x=(b=G.x)!==null&&b!==void 0?b:G.left,G.y=(S=G.y)!==null&&S!==void 0?S:G.top;var K=E.documentElement,q=K.clientWidth,X=K.clientHeight,Q=K.scrollWidth,te=K.scrollHeight,ne=K.scrollTop,Z=K.scrollLeft,ee=G.height,J=G.width,oe=B.height,le=B.width,ge={left:0,top:0,right:q,bottom:X},he={left:-Z,top:-ne,right:Q-Z,bottom:te-ne},ye=A.htmlRegion,ue="visible",ve="visibleFirst";ye!=="scroll"&&ye!==ve&&(ye=ue);var de=ye===ve,xe=pwe(he,h),Ee=pwe(ge,h),De=ye===ue?Ee:xe,Be=de?Ee:De;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ge=x.getBoundingClientRect();x.style.left=F,x.style.top=D,x.style.right=k,x.style.bottom=L,x.style.overflow=I,(w=x.parentElement)===null||w===void 0||w.removeChild(N);var Ue=IT(Math.round(J/parseFloat(T)*1e3)/1e3),We=IT(Math.round(ee/parseFloat(M)*1e3)/1e3);if(Ue===0||We===0||vT(n)&&!Gx(n))return;var Ve=A.offset,Fe=A.targetOffset,ke=vwe(G,Ve),Ye=Ce(ke,2),ze=Ye[0],Re=Ye[1],Le=vwe(B,Fe),Me=Ce(Le,2),be=Me[0],je=Me[1];B.x-=be,B.y-=je;var Xe=A.points||[],ft=Ce(Xe,2),Tt=ft[0],tt=ft[1],pt=Cwe(tt),$t=Cwe(Tt),wt=s5(B,pt),It=s5(G,$t),Ct=se({},A),ot=wt.x-It.x+ze,nt=wt.y-It.y+Re,fe=In(ot,nt),Te=In(ot,nt,Ee),$e=s5(B,["t","l"]),He=s5(G,["t","l"]),it=s5(B,["b","r"]),at=s5(G,["b","r"]),gt=A.overflow||{},yt=gt.adjustX,st=gt.adjustY,Ze=gt.shiftX,dt=gt.shiftY,At=function(To){return typeof To=="boolean"?To:To>=0},kt,pn,ln,Lt;jn();var xt=At(st),Rt=$t[0]===pt[0];if(xt&&$t[0]==="t"&&(pn>Be.bottom||g.current.bt)){var Ft=nt;Rt?Ft-=ee-oe:Ft=$e.y-at.y-Re;var hn=In(ot,Ft),Mt=In(ot,Ft,Ee);hn>fe||hn===fe&&(!de||Mt>=Te)?(g.current.bt=!0,nt=Ft,Re=-Re,Ct.points=[Fv($t,0),Fv(pt,0)]):g.current.bt=!1}if(xt&&$t[0]==="b"&&(kt<Be.top||g.current.tb)){var mt=nt;Rt?mt+=ee-oe:mt=it.y-He.y-Re;var jt=In(ot,mt),tn=In(ot,mt,Ee);jt>fe||jt===fe&&(!de||tn>=Te)?(g.current.tb=!0,nt=mt,Re=-Re,Ct.points=[Fv($t,0),Fv(pt,0)]):g.current.tb=!1}var Cn=At(yt),Ln=$t[1]===pt[1];if(Cn&&$t[1]==="l"&&(Lt>Be.right||g.current.rl)){var cn=ot;Ln?cn-=J-le:cn=$e.x-at.x-ze;var Dt=In(cn,nt),sn=In(cn,nt,Ee);Dt>fe||Dt===fe&&(!de||sn>=Te)?(g.current.rl=!0,ot=cn,ze=-ze,Ct.points=[Fv($t,1),Fv(pt,1)]):g.current.rl=!1}if(Cn&&$t[1]==="r"&&(ln<Be.left||g.current.lr)){var Sn=ot;Ln?Sn+=J-le:Sn=it.x-He.x-ze;var Tn=In(Sn,nt),Jn=In(Sn,nt,Ee);Tn>fe||Tn===fe&&(!de||Jn>=Te)?(g.current.lr=!0,ot=Sn,ze=-ze,Ct.points=[Fv($t,1),Fv(pt,1)]):g.current.lr=!1}jn();var Ar=Ze===!0?0:Ze;typeof Ar=="number"&&(ln<Ee.left&&(ot-=ln-Ee.left-ze,B.x+le<Ee.left+Ar&&(ot+=B.x-Ee.left+le-Ar)),Lt>Ee.right&&(ot-=Lt-Ee.right-ze,B.x>Ee.right-Ar&&(ot+=B.x-Ee.right+Ar)));var Vr=dt===!0?0:dt;typeof Vr=="number"&&(kt<Ee.top&&(nt-=kt-Ee.top-Re,B.y+oe<Ee.top+Vr&&(nt+=B.y-Ee.top+oe-Vr)),pn>Ee.bottom&&(nt-=pn-Ee.bottom-Re,B.y>Ee.bottom-Vr&&(nt+=B.y-Ee.bottom+Vr)));var Ui=G.x+ot,Bi=Ui+J,Gr=G.y+nt,Fi=Gr+ee,bn=B.x,Qt=bn+le,Wn=B.y,$r=Wn+oe,Yt=Math.max(Ui,bn),Jt=Math.min(Bi,Qt),sr=(Yt+Jt)/2,br=sr-Ui,Jr=Math.max(Gr,Wn),oi=Math.min(Fi,$r),Br=(Jr+oi)/2,Pi=Br-Gr;s==null||s(t,Ct);var Bn=Ge.right-G.x-(ot+G.width),rn=Ge.bottom-G.y-(nt+G.height);Ue===1&&(ot=Math.round(ot),Bn=Math.round(Bn)),We===1&&(nt=Math.round(nt),rn=Math.round(rn));var En={ready:!0,offsetX:ot/Ue,offsetY:nt/We,offsetR:Bn/Ue,offsetB:rn/We,arrowX:br/Ue,arrowY:Pi/We,scaleX:Ue,scaleY:We,align:Ct};u(En)}}),v=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&m()})},C=function(){u(function(b){return se(se({},b),{},{ready:!1})})};return Zn(C,[r]),Zn(function(){e||C()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function SLt(e,t,n,r,i){Zn(function(){if(e&&t&&n){let f=function(){r(),i()};var o=t,s=n,a=ele(o),l=ele(s),c=nM(s),u=new Set([c].concat(ut(a),ut(l)));return u.forEach(function(h){h.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function wLt(e,t,n,r,i,o,s,a){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!i||o)){var f=function(){c.current=!1},h=function(v){var C;l.current&&!s(((C=v.composedPath)===null||C===void 0||(C=C.call(v))===null||C===void 0?void 0:C[0])||v.target)&&!c.current&&a(!1)},g=nM(r);g.addEventListener("pointerdown",f,!0),g.addEventListener("mousedown",h,!0),g.addEventListener("contextmenu",h,!0);var p=Gz(n);return p&&(p.addEventListener("mousedown",h,!0),p.addEventListener("contextmenu",h,!0)),function(){g.removeEventListener("pointerdown",f,!0),g.removeEventListener("mousedown",h,!0),g.removeEventListener("contextmenu",h,!0),p&&(p.removeEventListener("mousedown",h,!0),p.removeEventListener("contextmenu",h,!0))}}},[t,n,r,i,o]);function u(){c.current=!0}return u}var xLt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ELt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ly,t=d.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,s=n.children,a=n.action,l=a===void 0?"hover":a,c=n.showAction,u=n.hideAction,f=n.popupVisible,h=n.defaultPopupVisible,g=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,m=n.mouseEnterDelay,v=n.mouseLeaveDelay,C=v===void 0?.1:v,y=n.focusDelay,b=n.blurDelay,S=n.mask,w=n.maskClosable,x=w===void 0?!0:w,E=n.getPopupContainer,R=n.forceRender,O=n.autoDestroy,T=n.destroyPopupOnHide,M=n.popup,_=n.popupClassName,F=n.popupStyle,D=n.popupPlacement,k=n.builtinPlacements,L=k===void 0?{}:k,I=n.popupAlign,A=n.zIndex,N=n.stretch,B=n.getPopupClassNameFromAlign,z=n.fresh,j=n.alignPoint,W=n.onPopupClick,G=n.onPopupAlign,K=n.arrow,q=n.popupMotion,X=n.maskMotion,Q=n.popupTransitionName,te=n.popupAnimation,ne=n.maskTransitionName,Z=n.maskAnimation,ee=n.className,J=n.getTriggerDOMNode,oe=on(n,xLt),le=O||T||!1,ge=d.useState(!1),he=Ce(ge,2),ye=he[0],ue=he[1];Zn(function(){ue(uV())},[]);var ve=d.useRef({}),de=d.useContext(fwe),xe=d.useMemo(function(){return{registerSubPopup:function(er,Ni){ve.current[er]=Ni,de==null||de.registerSubPopup(er,Ni)}}},[de]),Ee=iV(),De=d.useState(null),Be=Ce(De,2),Ge=Be[0],Ue=Be[1],We=d.useRef(null),Ve=Hn(function(Pn){We.current=Pn,vT(Pn)&&Ge!==Pn&&Ue(Pn),de==null||de.registerSubPopup(Ee,Pn)}),Fe=d.useState(null),ke=Ce(Fe,2),Ye=ke[0],ze=ke[1],Re=d.useRef(null),Le=Hn(function(Pn){vT(Pn)&&Ye!==Pn&&(ze(Pn),Re.current=Pn)}),Me=d.Children.only(s),be=(Me==null?void 0:Me.props)||{},je={},Xe=Hn(function(Pn){var er,Ni,yo=Ye;return(yo==null?void 0:yo.contains(Pn))||((er=Gz(yo))===null||er===void 0?void 0:er.host)===Pn||Pn===yo||(Ge==null?void 0:Ge.contains(Pn))||((Ni=Gz(Ge))===null||Ni===void 0?void 0:Ni.host)===Pn||Pn===Ge||Object.values(ve.current).some(function(vi){return(vi==null?void 0:vi.contains(Pn))||Pn===vi})}),ft=gwe(o,q,te,Q),Tt=gwe(o,X,Z,ne),tt=d.useState(h||!1),pt=Ce(tt,2),$t=pt[0],wt=pt[1],It=f??$t,Ct=Hn(function(Pn){f===void 0&&wt(Pn)});Zn(function(){wt(f||!1)},[f]);var ot=d.useRef(It);ot.current=It;var nt=d.useRef([]);nt.current=[];var fe=Hn(function(Pn){var er;Ct(Pn),((er=nt.current[nt.current.length-1])!==null&&er!==void 0?er:It)!==Pn&&(nt.current.push(Pn),g==null||g(Pn))}),Te=d.useRef(),$e=function(){clearTimeout(Te.current)},He=function(er){var Ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;$e(),Ni===0?fe(er):Te.current=setTimeout(function(){fe(er)},Ni*1e3)};d.useEffect(function(){return $e},[]);var it=d.useState(!1),at=Ce(it,2),gt=at[0],yt=at[1];Zn(function(Pn){(!Pn||It)&&yt(!0)},[It]);var st=d.useState(null),Ze=Ce(st,2),dt=Ze[0],At=Ze[1],kt=d.useState(null),pn=Ce(kt,2),ln=pn[0],Lt=pn[1],xt=function(er){Lt([er.clientX,er.clientY])},Rt=bLt(It,Ge,j&&ln!==null?ln:Ye,D,L,I,G),Ft=Ce(Rt,11),hn=Ft[0],Mt=Ft[1],mt=Ft[2],jt=Ft[3],tn=Ft[4],Cn=Ft[5],Ln=Ft[6],cn=Ft[7],Dt=Ft[8],sn=Ft[9],Sn=Ft[10],Tn=vLt(ye,l,c,u),Jn=Ce(Tn,2),Ar=Jn[0],Vr=Jn[1],Ui=Ar.has("click"),Bi=Vr.has("click")||Vr.has("contextMenu"),Gr=Hn(function(){gt||Sn()}),Fi=function(){ot.current&&j&&Bi&&He(!1)};SLt(It,Ye,Ge,Gr,Fi),Zn(function(){Gr()},[ln,D]),Zn(function(){It&&!(L!=null&&L[D])&&Gr()},[JSON.stringify(I)]);var bn=d.useMemo(function(){var Pn=yLt(L,o,sn,j);return we(Pn,B==null?void 0:B(sn))},[sn,B,L,o,j]);d.useImperativeHandle(r,function(){return{nativeElement:Re.current,popupElement:We.current,forceAlign:Gr}});var Qt=d.useState(0),Wn=Ce(Qt,2),$r=Wn[0],Yt=Wn[1],Jt=d.useState(0),sr=Ce(Jt,2),br=sr[0],Jr=sr[1],oi=function(){if(N&&Ye){var er=Ye.getBoundingClientRect();Yt(er.width),Jr(er.height)}},Br=function(){oi(),Gr()},Pi=function(er){yt(!1),Sn(),p==null||p(er)},Bn=function(){return new Promise(function(er){oi(),At(function(){return er})})};Zn(function(){dt&&(Sn(),dt(),At(null))},[dt]);function rn(Pn,er,Ni,yo){je[Pn]=function(vi){var mh;yo==null||yo(vi),He(er,Ni);for(var vh=arguments.length,ki=new Array(vh>1?vh-1:0),Ci=1;Ci<vh;Ci++)ki[Ci-1]=arguments[Ci];(mh=be[Pn])===null||mh===void 0||mh.call.apply(mh,[be,vi].concat(ki))}}(Ui||Bi)&&(je.onClick=function(Pn){var er;ot.current&&Bi?He(!1):!ot.current&&Ui&&(xt(Pn),He(!0));for(var Ni=arguments.length,yo=new Array(Ni>1?Ni-1:0),vi=1;vi<Ni;vi++)yo[vi-1]=arguments[vi];(er=be.onClick)===null||er===void 0||er.call.apply(er,[be,Pn].concat(yo))});var En=wLt(It,Bi,Ye,Ge,S,x,Xe,He),In=Ar.has("hover"),jn=Vr.has("hover"),si,To;In&&(rn("onMouseEnter",!0,m,function(Pn){xt(Pn)}),rn("onPointerEnter",!0,m,function(Pn){xt(Pn)}),si=function(er){(It||gt)&&Ge!==null&&Ge!==void 0&&Ge.contains(er.target)&&He(!0,m)},j&&(je.onMouseMove=function(Pn){var er;(er=be.onMouseMove)===null||er===void 0||er.call(be,Pn)})),jn&&(rn("onMouseLeave",!1,C),rn("onPointerLeave",!1,C),To=function(){He(!1,C)}),Ar.has("focus")&&rn("onFocus",!0,y),Vr.has("focus")&&rn("onBlur",!1,b),Ar.has("contextMenu")&&(je.onContextMenu=function(Pn){var er;ot.current&&Vr.has("contextMenu")?He(!1):(xt(Pn),He(!0)),Pn.preventDefault();for(var Ni=arguments.length,yo=new Array(Ni>1?Ni-1:0),vi=1;vi<Ni;vi++)yo[vi-1]=arguments[vi];(er=be.onContextMenu)===null||er===void 0||er.call.apply(er,[be,Pn].concat(yo))}),ee&&(je.className=we(be.className,ee));var Oi=se(se({},be),je),pa={},vl=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];vl.forEach(function(Pn){oe[Pn]&&(pa[Pn]=function(){for(var er,Ni=arguments.length,yo=new Array(Ni),vi=0;vi<Ni;vi++)yo[vi]=arguments[vi];(er=Oi[Pn])===null||er===void 0||er.call.apply(er,[Oi].concat(yo)),oe[Pn].apply(oe,yo)})});var Dd=d.cloneElement(Me,se(se({},Oi),pa)),ph={x:Cn,y:Ln},Ld=K?se({},K!==!0?K:{}):null;return d.createElement(d.Fragment,null,d.createElement(oa,{disabled:!It,ref:Le,onResize:Br},d.createElement(mLt,{getTriggerDOMNode:J},Dd)),d.createElement(fwe.Provider,{value:xe},d.createElement(pLt,{portal:e,ref:Ve,prefixCls:o,popup:M,className:we(_,bn),style:F,target:Ye,onMouseEnter:si,onMouseLeave:To,onPointerEnter:si,zIndex:A,open:It,keepDom:gt,fresh:z,onClick:W,onPointerDownCapture:En,mask:S,motion:ft,maskMotion:Tt,onVisibleChanged:Pi,onPrepare:Bn,forceRender:R,autoDestroy:le,getPopupContainer:E,align:sn,arrow:Ld,arrowPos:ph,ready:hn,offsetX:Mt,offsetY:mt,offsetR:jt,offsetB:tn,onAlign:Gr,stretch:N,targetWidth:$r/cn,targetHeight:br/Dt})))});return t}const Ny=ELt(Ly);var RLt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],$Lt=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},OLt=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,o=t.children,s=t.popupElement,a=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,f=t.direction,h=f===void 0?"ltr":f,g=t.placement,p=t.builtinPlacements,m=t.dropdownMatchSelectWidth,v=t.dropdownRender,C=t.dropdownAlign,y=t.getPopupContainer,b=t.empty,S=t.getTriggerDOMNode,w=t.onPopupVisibleChange,x=t.onPopupMouseEnter,E=on(t,RLt),R="".concat(r,"-dropdown"),O=s;v&&(O=v(s));var T=d.useMemo(function(){return p||$Lt(m)},[p,m]),M=a?"".concat(R,"-").concat(a):l,_=typeof m=="number",F=d.useMemo(function(){return _?null:m===!1?"minWidth":"width"},[m,_]),D=c;_&&(D=se(se({},D),{},{width:m}));var k=d.useRef(null);return d.useImperativeHandle(n,function(){return{getPopupElement:function(){var I;return(I=k.current)===null||I===void 0?void 0:I.popupElement}}}),d.createElement(Ny,V({},E,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:g||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:R,popupTransitionName:M,popup:d.createElement("div",{onMouseEnter:x},O),ref:k,stretch:F,popupAlign:C,popupVisible:i,getPopupContainer:y,popupClassName:we(u,ie({},"".concat(R,"-empty"),b)),popupStyle:D,getTriggerDOMNode:S,onPopupVisibleChange:w}),o)},TLt=d.forwardRef(OLt);function ywe(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function tle(e){return typeof e<"u"&&!Number.isNaN(e)}function BWe(e,t){var n=e||{},r=n.label,i=n.value,o=n.options,s=n.groupLabel,a=r||(t?"children":"label");return{label:a,value:i||"value",options:o||"options",groupLabel:s||a}}function ILt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=BWe(n,!1),s=o.label,a=o.value,l=o.options,c=o.groupLabel;function u(f,h){Array.isArray(f)&&f.forEach(function(g){if(h||!(l in g)){var p=g[a];i.push({key:ywe(g,i.length),groupOption:h,data:g,label:g[s],value:p})}else{var m=g[c];m===void 0&&r&&(m=g.label),i.push({key:ywe(g,i.length),group:!0,data:g,label:m}),u(g[l],!0)}})}return u(e,!1),i}function nle(e){var t=se({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ui(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var MLt=function(t,n,r){if(!n||!n.length)return null;var i=!1,o=function a(l,c){var u=LVe(c),f=u[0],h=u.slice(1);if(!f)return[l];var g=l.split(f);return i=i||g.length>1,g.reduce(function(p,m){return[].concat(ut(p),ut(a(m,h)))},[]).filter(Boolean)},s=o(t,n);return i?typeof r<"u"?s.slice(0,r):s:null},mpe=d.createContext(null);function PLt(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var o=i.label,s=i.value;return["number","string"].includes(nn(o))?o:s}).join(", ")),n.length>r?", ...":null)}var _Lt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ALt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],rle=function(t){return t==="tags"||t==="multiple"},hV=d.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,o=e.className,s=e.showSearch,a=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,p=g===void 0?"Not Found":g,m=e.onClear,v=e.mode,C=e.disabled,y=e.loading,b=e.getInputElement,S=e.getRawInputElement,w=e.open,x=e.defaultOpen,E=e.onDropdownVisibleChange,R=e.activeValue,O=e.onActiveValueChange,T=e.activeDescendantId,M=e.searchValue,_=e.autoClearSearchValue,F=e.onSearch,D=e.onSearchSplit,k=e.tokenSeparators,L=e.allowClear,I=e.prefix,A=e.suffixIcon,N=e.clearIcon,B=e.OptionList,z=e.animation,j=e.transitionName,W=e.dropdownStyle,G=e.dropdownClassName,K=e.dropdownMatchSelectWidth,q=e.dropdownRender,X=e.dropdownAlign,Q=e.placement,te=e.builtinPlacements,ne=e.getPopupContainer,Z=e.showAction,ee=Z===void 0?[]:Z,J=e.onFocus,oe=e.onBlur,le=e.onKeyUp,ge=e.onKeyDown,he=e.onMouseDown,ye=on(e,_Lt),ue=rle(v),ve=(s!==void 0?s:ue)||v==="combobox",de=se({},ye);ALt.forEach(function(bn){delete de[bn]}),c==null||c.forEach(function(bn){delete de[bn]});var xe=d.useState(!1),Ee=Ce(xe,2),De=Ee[0],Be=Ee[1];d.useEffect(function(){Be(uV())},[]);var Ge=d.useRef(null),Ue=d.useRef(null),We=d.useRef(null),Ve=d.useRef(null),Fe=d.useRef(null),ke=d.useRef(!1),Ye=HDt(),ze=Ce(Ye,3),Re=ze[0],Le=ze[1],Me=ze[2];d.useImperativeHandle(t,function(){var bn,Qt;return{focus:(bn=Ve.current)===null||bn===void 0?void 0:bn.focus,blur:(Qt=Ve.current)===null||Qt===void 0?void 0:Qt.blur,scrollTo:function($r){var Yt;return(Yt=Fe.current)===null||Yt===void 0?void 0:Yt.scrollTo($r)},nativeElement:Ge.current||Ue.current}});var be=d.useMemo(function(){var bn;if(v!=="combobox")return M;var Qt=(bn=u[0])===null||bn===void 0?void 0:bn.value;return typeof Qt=="string"||typeof Qt=="number"?String(Qt):""},[M,v,u]),je=v==="combobox"&&typeof b=="function"&&b()||null,Xe=typeof S=="function"&&S(),ft=Od(Ue,Xe==null||(n=Xe.props)===null||n===void 0?void 0:n.ref),Tt=d.useState(!1),tt=Ce(Tt,2),pt=tt[0],$t=tt[1];Zn(function(){$t(!0)},[]);var wt=ir(!1,{defaultValue:x,value:w}),It=Ce(wt,2),Ct=It[0],ot=It[1],nt=pt?Ct:!1,fe=!p&&h;(C||fe&&nt&&v==="combobox")&&(nt=!1);var Te=fe?!1:nt,$e=d.useCallback(function(bn){var Qt=bn!==void 0?bn:!nt;C||(ot(Qt),nt!==Qt&&(E==null||E(Qt)))},[C,nt,ot,E]),He=d.useMemo(function(){return(k||[]).some(function(bn){return[`
|
||
`,`\r
|
||
`].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,inputElement:je,ref:Ve,id:r,prefix:I,showSearch:ve,autoClearSearchValue:_,mode:v,activeDescendantId:T,tagRender:a,values:u,open:nt,onToggleOpen:$e,activeValue:R,searchValue:be,onSearch:yt,onSearchSubmit:st,onRemove:xt,tokenWithEnter:He}))),Fi;return Xe?Fi=Gr:Fi=d.createElement("div",V({className:Bi},de,{ref:Ge,onMouseDown:mt,onKeyDown:ln,onKeyUp:Lt,onFocus:Ft,onBlur:hn}),d.createElement(PLt,{visible:Re&&!nt,values:u}),Gr,Sn,Ar&&Vr),d.createElement(_We.Provider,{value:Dt},Fi)}),gV=function(){return null};gV.isSelectOptGroup=!0;var pV=function(){return null};pV.isSelectOption=!0;var HWe=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,o=e.children,s=e.prefixCls,a=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,f={},h={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},h=se(se({},h),{},ie(ie(ie(ie(ie({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:f},d.createElement(oa,{onResize:function(p){var m=p.offsetHeight;m&&a&&a()}},d.createElement("div",V({style:h,className:we(ie({},"".concat(s,"-holder-inner"),s)),ref:t},l),o,u)))});HWe.displayName="Filler";function DLt(e){var t=e.children,n=e.setRef,r=d.useCallback(function(i){n(i)},[]);return d.cloneElement(t,{ref:r})}function LLt(e,t,n,r,i,o,s,a){var l=a.getKey;return e.slice(t,n+1).map(function(c,u){var f=t+u,h=s(c,f,{style:{width:r},offsetX:i}),g=l(c);return d.createElement(DLt,{key:g,setRef:function(m){return o(c,m)}},h)})}function FLt(e,t,n){var r=e.length,i=t.length,o,s;if(r===0&&i===0)return null;r<i?(o=e,s=t):(o=t,s=e);var a={__EMPTY_ITEM__:!0};function l(p){return p!==void 0?n(p):a}for(var c=null,u=Math.abs(r-i)!==1,f=0;f<s.length;f+=1){var h=l(o[f]),g=l(s[f]);if(h!==g){c=f,u=u||h!==l(s[f+1]);break}}return c===null?null:{index:c,multiple:u}}function NLt(e,t,n){var r=d.useState(e),i=Ce(r,2),o=i[0],s=i[1],a=d.useState(null),l=Ce(a,2),c=l[0],u=l[1];return d.useEffect(function(){var f=FLt(o||[],e,t);(f==null?void 0:f.index)!==void 0&&u(e[f.index]),s(e)},[e]),[c]}var bwe=(typeof navigator>"u"?"undefined":nn(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const jWe=function(e,t,n,r){var i=d.useRef(!1),o=d.useRef(null);function s(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var a=d.useRef({top:e,bottom:t,left:n,right:r});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&a.current.left||c>0&&a.current.right:c<0&&a.current.top||c>0&&a.current.bottom;return u&&f?(clearTimeout(o.current),i.current=!1):(!f||i.current)&&s(),!i.current&&f}};function kLt(e,t,n,r,i,o,s){var a=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=jWe(t,n,r,i);function h(y,b){if(Rr.cancel(l.current),!f(!1,b)){var S=y;if(!S._virtualHandled)S._virtualHandled=!0;else return;a.current+=b,c.current=b,bwe||S.preventDefault(),l.current=Rr(function(){var w=u.current?10:1;s(a.current*w,!1),a.current=0})}}function g(y,b){s(b,!0),bwe||y.preventDefault()}var p=d.useRef(null),m=d.useRef(null);function v(y){if(e){Rr.cancel(m.current),m.current=Rr(function(){p.current=null},2);var b=y.deltaX,S=y.deltaY,w=y.shiftKey,x=b,E=S;(p.current==="sx"||!p.current&&w&&S&&!b)&&(x=S,E=0,p.current="sx");var R=Math.abs(x),O=Math.abs(E);p.current===null&&(p.current=o&&R>O?"x":"y"),p.current==="y"?h(y,E):g(y,x)}}function C(y){e&&(u.current=y.detail===c.current)}return[v,C]}function zLt(e,t,n,r){var i=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Ce(i,2),s=o[0],a=o[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,h=s.get(u),g=s.get(f);if(h===void 0||g===void 0)for(var p=e.length,m=a.length;m<p;m+=1){var v,C=e[m],y=t(C);s.set(y,m);var b=(v=n.get(y))!==null&&v!==void 0?v:r;if(a[m]=(a[m-1]||0)+b,y===u&&(h=m),y===f&&(g=m),h!==void 0&&g!==void 0)break}return{top:a[h-1]||0,bottom:a[g]}};return l}var BLt=function(){function e(){qr(this,e),ie(this,"maps",void 0),ie(this,"id",0),ie(this,"diffKeys",new Set),this.maps=Object.create(null)}return Kr(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1,this.diffKeys.add(n)}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}();function Swe(e){var t=parseFloat(e);return isNaN(t)?0:t}function HLt(e,t,n){var r=d.useState(0),i=Ce(r,2),o=i[0],s=i[1],a=d.useRef(new Map),l=d.useRef(new BLt),c=d.useRef(0);function u(){c.current+=1}function f(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var p=function(){a.current.forEach(function(C,y){if(C&&C.offsetParent){var b=nC(C),S=b.offsetHeight,w=getComputedStyle(b),x=w.marginTop,E=w.marginBottom,R=Swe(x),O=Swe(E),T=S+R+O;l.current.get(y)!==T&&l.current.set(y,T)}}),s(function(C){return C+1})};if(g)p();else{c.current+=1;var m=c.current;Promise.resolve().then(function(){m===c.current&&p()})}}function h(g,p){var m=e(g);a.current.get(m),p?(a.current.set(m,p),f()):a.current.delete(m)}return d.useEffect(function(){return u},[]),[h,f,l.current,o]}var wwe=14/15;function jLt(e,t,n){var r=d.useRef(!1),i=d.useRef(0),o=d.useRef(0),s=d.useRef(null),a=d.useRef(null),l,c=function(g){if(r.current){var p=Math.ceil(g.touches[0].pageX),m=Math.ceil(g.touches[0].pageY),v=i.current-p,C=o.current-m,y=Math.abs(v)>Math.abs(C);y?i.current=p:o.current=m;var b=n(y,y?v:C,!1,g);b&&g.preventDefault(),clearInterval(a.current),b&&(a.current=setInterval(function(){y?v*=wwe:C*=wwe;var S=Math.floor(y?v:C);(!n(y,S,!0)||Math.abs(S)<=.1)&&clearInterval(a.current)},16))}},u=function(){r.current=!1,l()},f=function(g){l(),g.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),s.current=g.target,s.current.addEventListener("touchmove",c,{passive:!1}),s.current.addEventListener("touchend",u,{passive:!0}))};l=function(){s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},Zn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",f),l(),clearInterval(a.current)}},[e])}function xwe(e){return Math.floor(Math.pow(e,.5))}function ile(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function VLt(e,t,n){d.useEffect(function(){var r=t.current;if(e&&r){var i=!1,o,s,a=function(){Rr.cancel(o)},l=function h(){a(),o=Rr(function(){n(s),h()})},c=function(g){var p=g;p._virtualHandled||(p._virtualHandled=!0,i=!0)},u=function(){i=!1,a()},f=function(g){if(i){var p=ile(g,!1),m=r.getBoundingClientRect(),v=m.top,C=m.bottom;if(p<=v){var y=v-p;s=-xwe(y),l()}else if(p>=C){var b=p-C;s=xwe(b),l()}else a()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),a()}}},[e])}var GLt=10;function WLt(e,t,n,r,i,o,s,a){var l=d.useRef(),c=d.useState(null),u=Ce(c,2),f=u[0],h=u[1];return Zn(function(){if(f&&f.times<GLt){if(!e.current){h(function(N){return se({},N)});return}o();var g=f.targetAlign,p=f.originAlign,m=f.index,v=f.offset,C=e.current.clientHeight,y=!1,b=g,S=null;if(C){for(var w=g||p,x=0,E=0,R=0,O=Math.min(t.length-1,m),T=0;T<=O;T+=1){var M=i(t[T]);E=x;var _=n.get(M);R=E+(_===void 0?r:_),x=R}for(var F=w==="top"?v:C-v,D=O;D>=0;D-=1){var k=i(t[D]),L=n.get(k);if(L===void 0){y=!0;break}if(F-=L,F<=0)break}switch(w){case"top":S=E-v;break;case"bottom":S=R-C+v;break;default:{var I=e.current.scrollTop,A=I+C;E<I?b="top":R>A&&(b="bottom")}}S!==null&&s(S),S!==f.lastTop&&(y=!0)}y&&h(se(se({},f),{},{times:f.times+1,targetAlign:b,lastTop:S}))}},[f,e.current]),function(g){if(g==null){a();return}if(Rr.cancel(l.current),typeof g=="number")s(g);else if(g&&nn(g)==="object"){var p,m=g.align;"index"in g?p=g.index:p=t.findIndex(function(y){return i(y)===g.key});var v=g.offset,C=v===void 0?0:v;h({times:0,index:p,offset:C,originAlign:m})}}}var Ewe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,o=e.scrollRange,s=e.onStartMove,a=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,h=e.style,g=e.thumbStyle,p=d.useState(!1),m=Ce(p,2),v=m[0],C=m[1],y=d.useState(null),b=Ce(y,2),S=b[0],w=b[1],x=d.useState(null),E=Ce(x,2),R=E[0],O=E[1],T=!r,M=d.useRef(),_=d.useRef(),F=d.useState(!1),D=Ce(F,2),k=D[0],L=D[1],I=d.useRef(),A=function(){clearTimeout(I.current),L(!0),I.current=setTimeout(function(){L(!1)},3e3)},N=o-f||0,B=f-u||0,z=d.useMemo(function(){if(i===0||N===0)return 0;var ne=i/N;return ne*B},[i,N,B]),j=function(Z){Z.stopPropagation(),Z.preventDefault()},W=d.useRef({top:z,dragging:v,pageY:S,startTop:R});W.current={top:z,dragging:v,pageY:S,startTop:R};var G=function(Z){C(!0),w(ile(Z,c)),O(W.current.top),s(),Z.stopPropagation(),Z.preventDefault()};d.useEffect(function(){var ne=function(oe){oe.preventDefault()},Z=M.current,ee=_.current;return Z.addEventListener("touchstart",ne,{passive:!1}),ee.addEventListener("touchstart",G,{passive:!1}),function(){Z.removeEventListener("touchstart",ne),ee.removeEventListener("touchstart",G)}},[]);var K=d.useRef();K.current=N;var q=d.useRef();q.current=B,d.useEffect(function(){if(v){var ne,Z=function(oe){var le=W.current,ge=le.dragging,he=le.pageY,ye=le.startTop;Rr.cancel(ne);var ue=M.current.getBoundingClientRect(),ve=f/(c?ue.width:ue.height);if(ge){var de=(ile(oe,c)-he)*ve,xe=ye;!T&&c?xe-=de:xe+=de;var Ee=K.current,De=q.current,Be=De?xe/De:0,Ge=Math.ceil(Be*Ee);Ge=Math.max(Ge,0),Ge=Math.min(Ge,Ee),ne=Rr(function(){l(Ge,c)})}},ee=function(){C(!1),a()};return window.addEventListener("mousemove",Z,{passive:!0}),window.addEventListener("touchmove",Z,{passive:!0}),window.addEventListener("mouseup",ee,{passive:!0}),window.addEventListener("touchend",ee,{passive:!0}),function(){window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),Rr.cancel(ne)}}},[v]),d.useEffect(function(){return A(),function(){clearTimeout(I.current)}},[i]),d.useImperativeHandle(t,function(){return{delayHidden:A}});var X="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:k?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(Q.height=8,Q.left=0,Q.right=0,Q.bottom=0,te.height="100%",te.width=u,T?te.left=z:te.right=z):(Q.width=8,Q.top=0,Q.bottom=0,T?Q.right=0:Q.left=0,te.width="100%",te.height=u,te.top=z),d.createElement("div",{ref:M,className:we(X,ie(ie(ie({},"".concat(X,"-horizontal"),c),"".concat(X,"-vertical"),!c),"".concat(X,"-visible"),k)),style:se(se({},Q),h),onMouseDown:j,onMouseMove:A},d.createElement("div",{ref:_,className:we("".concat(X,"-thumb"),ie({},"".concat(X,"-thumb-moving"),v)),style:se(se({},te),g),onMouseDown:G}))}),ULt=20;function Rwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,ULt),Math.floor(n)}var qLt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],KLt=[],YLt={overflowY:"auto",overflowAnchor:"none"};function XLt(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,o=e.height,s=e.itemHeight,a=e.fullHeight,l=a===void 0?!0:a,c=e.style,u=e.data,f=e.children,h=e.itemKey,g=e.virtual,p=e.direction,m=e.scrollWidth,v=e.component,C=v===void 0?"div":v,y=e.onScroll,b=e.onVirtualScroll,S=e.onVisibleChange,w=e.innerProps,x=e.extraRender,E=e.styles,R=on(e,qLt),O=d.useCallback(function(xt){return typeof h=="function"?h(xt):xt==null?void 0:xt[h]},[h]),T=HLt(O),M=Ce(T,4),_=M[0],F=M[1],D=M[2],k=M[3],L=!!(g!==!1&&o&&s),I=d.useMemo(function(){return Object.values(D.maps).reduce(function(xt,Rt){return xt+Rt},0)},[D.id,D.maps]),A=L&&u&&(Math.max(s*u.length,I)>o||!!m),N=p==="rtl",B=we(r,ie({},"".concat(r,"-rtl"),N),i),z=u||KLt,j=d.useRef(),W=d.useRef(),G=d.useRef(),K=d.useState(0),q=Ce(K,2),X=q[0],Q=q[1],te=d.useState(0),ne=Ce(te,2),Z=ne[0],ee=ne[1],J=d.useState(!1),oe=Ce(J,2),le=oe[0],ge=oe[1],he=function(){ge(!0)},ye=function(){ge(!1)},ue={getKey:O};function ve(xt){Q(function(Rt){var Ft;typeof xt=="function"?Ft=xt(Rt):Ft=xt;var hn=tt(Ft);return j.current.scrollTop=hn,hn})}var de=d.useRef({start:0,end:z.length}),xe=d.useRef(),Ee=NLt(z,O),De=Ce(Ee,1),Be=De[0];xe.current=Be;var Ge=d.useMemo(function(){if(!L)return{scrollHeight:void 0,start:0,end:z.length-1,offset:void 0};if(!A){var xt;return{scrollHeight:((xt=W.current)===null||xt===void 0?void 0:xt.offsetHeight)||0,start:0,end:z.length-1,offset:void 0}}for(var Rt=0,Ft,hn,Mt,mt=z.length,jt=0;jt<mt;jt+=1){var tn=z[jt],Cn=O(tn),Ln=D.get(Cn),cn=Rt+(Ln===void 0?s:Ln);cn>=X&&Ft===void 0&&(Ft=jt,hn=Rt),cn>X+o&&Mt===void 0&&(Mt=jt),Rt=cn}return Ft===void 0&&(Ft=0,hn=0,Mt=Math.ceil(o/s)),Mt===void 0&&(Mt=z.length-1),Mt=Math.min(Mt+1,z.length-1),{scrollHeight:Rt,start:Ft,end:Mt,offset:hn}},[A,L,X,z,k,o]),Ue=Ge.scrollHeight,We=Ge.start,Ve=Ge.end,Fe=Ge.offset;de.current.start=We,de.current.end=Ve,d.useLayoutEffect(function(){var xt=D.getRecord();if(xt.size===1){var Rt=Array.from(xt)[0],Ft=O(z[We]);if(Ft===Rt){var hn=D.get(Rt),Mt=hn-s;ve(function(mt){return mt+Mt})}}D.resetRecord()},[Ue]);var ke=d.useState({width:0,height:o}),Ye=Ce(ke,2),ze=Ye[0],Re=Ye[1],Le=function(Rt){Re({width:Rt.offsetWidth,height:Rt.offsetHeight})},Me=d.useRef(),be=d.useRef(),je=d.useMemo(function(){return Rwe(ze.width,m)},[ze.width,m]),Xe=d.useMemo(function(){return Rwe(ze.height,Ue)},[ze.height,Ue]),ft=Ue-o,Tt=d.useRef(ft);Tt.current=ft;function tt(xt){var Rt=xt;return Number.isNaN(Tt.current)||(Rt=Math.min(Rt,Tt.current)),Rt=Math.max(Rt,0),Rt}var pt=X<=0,$t=X>=ft,wt=Z<=0,It=Z>=m,Ct=jWe(pt,$t,wt,It),ot=function(){return{x:N?-Z:Z,y:X}},nt=d.useRef(ot()),fe=Hn(function(xt){if(b){var Rt=se(se({},ot()),xt);(nt.current.x!==Rt.x||nt.current.y!==Rt.y)&&(b(Rt),nt.current=Rt)}});function Te(xt,Rt){var Ft=xt;Rt?(fo.flushSync(function(){ee(Ft)}),fe()):ve(Ft)}function $e(xt){var Rt=xt.currentTarget.scrollTop;Rt!==X&&ve(Rt),y==null||y(xt),fe()}var He=function(Rt){var Ft=Rt,hn=m?m-ze.width:0;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,hn),Ft},it=Hn(function(xt,Rt){Rt?(fo.flushSync(function(){ee(function(Ft){var hn=Ft+(N?-xt:xt);return He(hn)})}),fe()):ve(function(Ft){var hn=Ft+xt;return hn})}),at=kLt(L,pt,$t,wt,It,!!m,it),gt=Ce(at,2),yt=gt[0],st=gt[1];jLt(L,j,function(xt,Rt,Ft,hn){var Mt=hn;return Ct(xt,Rt,Ft)?!1:!Mt||!Mt._virtualHandled?(Mt&&(Mt._virtualHandled=!0),yt({preventDefault:function(){},deltaX:xt?Rt:0,deltaY:xt?0:Rt}),!0):!1}),VLt(A,j,function(xt){ve(function(Rt){return Rt+xt})}),Zn(function(){function xt(Ft){var hn=pt&&Ft.detail<0,Mt=$t&&Ft.detail>0;L&&!hn&&!Mt&&Ft.preventDefault()}var Rt=j.current;return Rt.addEventListener("wheel",yt,{passive:!1}),Rt.addEventListener("DOMMouseScroll",st,{passive:!0}),Rt.addEventListener("MozMousePixelScroll",xt,{passive:!1}),function(){Rt.removeEventListener("wheel",yt),Rt.removeEventListener("DOMMouseScroll",st),Rt.removeEventListener("MozMousePixelScroll",xt)}},[L,pt,$t]),Zn(function(){if(m){var xt=He(Z);ee(xt),fe({x:xt})}},[ze.width,m]);var Ze=function(){var Rt,Ft;(Rt=Me.current)===null||Rt===void 0||Rt.delayHidden(),(Ft=be.current)===null||Ft===void 0||Ft.delayHidden()},dt=WLt(j,z,D,s,O,function(){return F(!0)},ve,Ze);d.useImperativeHandle(t,function(){return{nativeElement:G.current,getScrollInfo:ot,scrollTo:function(Rt){function Ft(hn){return hn&&nn(hn)==="object"&&("left"in hn||"top"in hn)}Ft(Rt)?(Rt.left!==void 0&&ee(He(Rt.left)),dt(Rt.top)):dt(Rt)}}}),Zn(function(){if(S){var xt=z.slice(We,Ve+1);S(xt,z)}},[We,Ve,z]);var At=zLt(z,O,D,s),kt=x==null?void 0:x({start:We,end:Ve,virtual:A,offsetX:Z,offsetY:Fe,rtl:N,getSize:At}),pn=LLt(z,We,Ve,m,Z,_,f,ue),ln=null;o&&(ln=se(ie({},l?"height":"maxHeight",o),YLt),L&&(ln.overflowY="hidden",m&&(ln.overflowX="hidden"),le&&(ln.pointerEvents="none")));var Lt={};return N&&(Lt.dir="rtl"),d.createElement("div",V({ref:G,style:se(se({},c),{},{position:"relative"}),className:B},Lt,R),d.createElement(oa,{onResize:Le},d.createElement(C,{className:"".concat(r,"-holder"),style:ln,ref:j,onScroll:$e,onMouseEnter:Ze},d.createElement(HWe,{prefixCls:r,height:Ue,offsetX:Z,offsetY:Fe,scrollWidth:m,onInnerResize:F,ref:W,innerProps:w,rtl:N,extra:kt},pn))),A&&Ue>o&&d.createElement(Ewe,{ref:Me,prefixCls:r,scrollOffset:X,scrollRange:Ue,rtl:N,onScroll:Te,onStartMove:he,onStopMove:ye,spinSize:Xe,containerSize:ze.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),A&&m>ze.width&&d.createElement(Ewe,{ref:be,prefixCls:r,scrollOffset:Z,scrollRange:m,rtl:N,onScroll:Te,onStartMove:he,onStopMove:ye,spinSize:je,containerSize:ze.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var mV=d.forwardRef(XLt);mV.displayName="List";function QLt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ZLt=["disabled","title","children","style","className"];function $we(e){return typeof e=="string"||typeof e=="number"}var JLt=function(t,n){var r=fV(),i=r.prefixCls,o=r.id,s=r.open,a=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,h=r.onPopupScroll,g=d.useContext(mpe),p=g.maxCount,m=g.flattenOptions,v=g.onActiveValue,C=g.defaultActiveFirstOption,y=g.onSelect,b=g.menuItemSelectedIcon,S=g.rawValues,w=g.fieldNames,x=g.virtual,E=g.direction,R=g.listHeight,O=g.listItemHeight,T=g.optionRender,M="".concat(i,"-item"),_=Rm(function(){return m},[s,m],function(Z,ee){return ee[0]&&Z[1]!==ee[1]}),F=d.useRef(null),D=d.useMemo(function(){return a&&tle(p)&&(S==null?void 0:S.size)>=p},[a,p,S==null?void 0:S.size]),k=function(ee){ee.preventDefault()},L=function(ee){var J;(J=F.current)===null||J===void 0||J.scrollTo(typeof ee=="number"?{index:ee}:ee)},I=d.useCallback(function(Z){return l==="combobox"?!1:S.has(Z)},[l,ut(S).toString(),S.size]),A=function(ee){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=_.length,le=0;le<oe;le+=1){var ge=(ee+le*J+oe)%oe,he=_[ge]||{},ye=he.group,ue=he.data;if(!ye&&!(ue!=null&&ue.disabled)&&(I(ue.value)||!D))return ge}return-1},N=d.useState(function(){return A(0)}),B=Ce(N,2),z=B[0],j=B[1],W=function(ee){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;j(ee);var oe={source:J?"keyboard":"mouse"},le=_[ee];if(!le){v(null,-1,oe);return}v(le.value,ee,oe)};d.useEffect(function(){W(C!==!1?A(0):-1)},[_.length,c]);var G=d.useCallback(function(Z){return l==="combobox"?String(Z).toLowerCase()===c.toLowerCase():S.has(Z)},[l,c,ut(S).toString(),S.size]);d.useEffect(function(){var Z=setTimeout(function(){if(!a&&s&&S.size===1){var J=Array.from(S)[0],oe=_.findIndex(function(le){var ge=le.data;return ge.value===J});oe!==-1&&(W(oe),L(oe))}});if(s){var ee;(ee=F.current)===null||ee===void 0||ee.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[s,c]);var K=function(ee){ee!==void 0&&y(ee,{selected:!S.has(ee)}),a||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ee){var J=ee.which,oe=ee.ctrlKey;switch(J){case lt.N:case lt.P:case lt.UP:case lt.DOWN:{var le=0;if(J===lt.UP?le=-1:J===lt.DOWN?le=1:QLt()&&oe&&(J===lt.N?le=1:J===lt.P&&(le=-1)),le!==0){var ge=A(z+le,le);L(ge),W(ge,!0)}break}case lt.TAB:case lt.ENTER:{var he,ye=_[z];ye&&!(ye!=null&&(he=ye.data)!==null&&he!==void 0&&he.disabled)&&!D?K(ye.value):K(void 0),s&&ee.preventDefault();break}case lt.ESC:u(!1),s&&ee.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ee){L(ee)}}}),_.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(M,"-empty"),onMouseDown:k},f);var q=Object.keys(w).map(function(Z){return w[Z]}),X=function(ee){return ee.label};function Q(Z,ee){var J=Z.group;return{role:J?"presentation":"option",id:"".concat(o,"_list_").concat(ee)}}var te=function(ee){var J=_[ee];if(!J)return null;var oe=J.data||{},le=oe.value,ge=J.group,he=$o(oe,!0),ye=X(J);return J?d.createElement("div",V({"aria-label":typeof ye=="string"&&!ge?ye:null},he,{key:ee},Q(J,ee),{"aria-selected":G(le)}),le):null},ne={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,x&&d.createElement("div",V({},ne,{style:{height:0,width:0,overflow:"hidden"}}),te(z-1),te(z),te(z+1)),d.createElement(mV,{itemKey:"key",ref:F,data:_,height:R,itemHeight:O,fullHeight:!1,onMouseDown:k,onScroll:h,virtual:x,direction:E,innerProps:x?null:ne},function(Z,ee){var J=Z.group,oe=Z.groupOption,le=Z.data,ge=Z.label,he=Z.value,ye=le.key;if(J){var ue,ve=(ue=le.title)!==null&&ue!==void 0?ue:$we(ge)?ge.toString():void 0;return d.createElement("div",{className:we(M,"".concat(M,"-group"),le.className),title:ve},ge!==void 0?ge:ye)}var de=le.disabled,xe=le.title;le.children;var Ee=le.style,De=le.className,Be=on(le,ZLt),Ge=$i(Be,q),Ue=I(he),We=de||!Ue&&D,Ve="".concat(M,"-option"),Fe=we(M,Ve,De,ie(ie(ie(ie({},"".concat(Ve,"-grouped"),oe),"".concat(Ve,"-active"),z===ee&&!We),"".concat(Ve,"-disabled"),We),"".concat(Ve,"-selected"),Ue)),ke=X(Z),Ye=!b||typeof b=="function"||Ue,ze=typeof ke=="number"?ke:ke||he,Re=$we(ze)?ze.toString():void 0;return xe!==void 0&&(Re=xe),d.createElement("div",V({},$o(Ge),x?{}:Q(Z,ee),{"aria-selected":G(he),className:Fe,title:Re,onMouseMove:function(){z===ee||We||W(ee)},onClick:function(){We||K(he)},style:Ee}),d.createElement("div",{className:"".concat(Ve,"-content")},typeof T=="function"?T(Z,{index:ee}):ze),d.isValidElement(b)||Ue,Ye&&d.createElement(dV,{className:"".concat(M,"-option-state"),customizeIcon:b,customizeIconProps:{value:he,disabled:We,isSelected:Ue}},Ue?"✓":null))}))},eFt=d.forwardRef(JLt);const tFt=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var o=n.current,s=o.values,a=o.options,l=e.map(function(f){if(f.label===void 0){var h;return se(se({},f),{},{label:(h=s.get(f.value))===null||h===void 0?void 0:h.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||a.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=d.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]};function Xee(e,t){return kWe(e).join("").toUpperCase().includes(t)}const nFt=function(e,t,n,r,i){return d.useMemo(function(){if(!n||r===!1)return e;var o=t.options,s=t.label,a=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(g,p){return i?Xee(p[i],u):p[o]?Xee(p[s!=="children"?s:"label"],u):Xee(p[a],u)},h=c?function(g){return nle(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var p=f(n,h(g));if(p)l.push(g);else{var m=g[o].filter(function(v){return f(n,h(v))});m.length&&l.push(se(se({},g),{},ie({},o,m)))}return}f(n,h(g))&&l.push(g)}),l},[e,r,i,n,t])};var Owe=0,rFt=Bs();function iFt(){var e;return rFt?(e=Owe,Owe+=1):e="TEST_OR_SSR",e}function vpe(e){var t=d.useState(),n=Ce(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_select_".concat(iFt()))},[]),e||r}var oFt=["children","value"],sFt=["children"];function aFt(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,s=on(r,oFt);return se({key:n,value:o!==void 0?o:n,children:i},s)}function VWe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rs(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,s=i.key,a=i.props,l=a.children,c=on(a,sFt);return t||!o?aFt(n):se(se({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},c),{},{options:VWe(l)})}).filter(function(n){return n})}var lFt=function(t,n,r,i,o){return d.useMemo(function(){var s=t,a=!t;a&&(s=VWe(n));var l=new Map,c=new Map,u=function(g,p,m){m&&typeof m=="string"&&g.set(p[m],p)},f=function h(g){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m<g.length;m+=1){var v=g[m];!v[r.options]||p?(l.set(v[r.value],v),u(c,v,r.label),u(c,v,i),u(c,v,o)):h(v[r.options],!0)}};return f(s),{options:s,valueOptions:l,labelOptions:c}},[t,n,r,i,o])};function Twe(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var cFt=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],uFt=["inputValue"];function dFt(e){return!e||nn(e)!=="object"}var fFt=d.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,o=i===void 0?"rc-select":i,s=e.backfill,a=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,f=e.autoClearSearchValue,h=f===void 0?!0:f,g=e.onSelect,p=e.onDeselect,m=e.dropdownMatchSelectWidth,v=m===void 0?!0:m,C=e.filterOption,y=e.filterSort,b=e.optionFilterProp,S=e.optionLabelProp,w=e.options,x=e.optionRender,E=e.children,R=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,T=e.virtual,M=e.direction,_=e.listHeight,F=_===void 0?200:_,D=e.listItemHeight,k=D===void 0?20:D,L=e.labelRender,I=e.value,A=e.defaultValue,N=e.labelInValue,B=e.onChange,z=e.maxCount,j=on(e,cFt),W=vpe(n),G=rle(r),K=!!(!w&&E),q=d.useMemo(function(){return C===void 0&&r==="combobox"?!1:C},[C,r]),X=d.useMemo(function(){return BWe(a,K)},[JSON.stringify(a),K]),Q=ir("",{value:c!==void 0?c:l,postState:function(He){return He||""}}),te=Ce(Q,2),ne=te[0],Z=te[1],ee=lFt(w,E,X,b,S),J=ee.valueOptions,oe=ee.labelOptions,le=ee.options,ge=d.useCallback(function($e){var He=kWe($e);return He.map(function(it){var at,gt,yt,st,Ze;if(dFt(it))at=it;else{var dt;yt=it.key,gt=it.label,at=(dt=it.value)!==null&&dt!==void 0?dt:yt}var At=J.get(at);if(At){var kt;gt===void 0&&(gt=At==null?void 0:At[S||X.label]),yt===void 0&&(yt=(kt=At==null?void 0:At.key)!==null&&kt!==void 0?kt:at),st=At==null?void 0:At.disabled,Ze=At==null?void 0:At.title}return{label:gt,value:at,key:yt,disabled:st,title:Ze}})},[X,S,J]),he=ir(A,{value:I}),ye=Ce(he,2),ue=ye[0],ve=ye[1],de=d.useMemo(function(){var $e,He=G&&ue===null?[]:ue,it=ge(He);return r==="combobox"&&oLt(($e=it[0])===null||$e===void 0?void 0:$e.value)?[]:it},[ue,ge,r,G]),xe=tFt(de,J),Ee=Ce(xe,2),De=Ee[0],Be=Ee[1],Ge=d.useMemo(function(){if(!r&&De.length===1){var $e=De[0];if($e.value===null&&($e.label===null||$e.label===void 0))return[]}return De.map(function(He){var it;return se(se({},He),{},{label:(it=typeof L=="function"?L(He):He.label)!==null&&it!==void 0?it:He.value})})},[r,De,L]),Ue=d.useMemo(function(){return new Set(De.map(function($e){return $e.value}))},[De]);d.useEffect(function(){if(r==="combobox"){var $e,He=($e=De[0])===null||$e===void 0?void 0:$e.value;Z(iLt(He)?String(He):"")}},[De]);var We=Twe(function($e,He){var it=He??$e;return ie(ie({},X.value,$e),X.label,it)}),Ve=d.useMemo(function(){if(r!=="tags")return le;var $e=ut(le),He=function(at){return J.has(at)};return ut(De).sort(function(it,at){return it.value<at.value?-1:1}).forEach(function(it){var at=it.value;He(at)||$e.push(We(at,it.label))}),$e},[We,le,J,De,r]),Fe=nFt(Ve,X,ne,q,b),ke=d.useMemo(function(){return r!=="tags"||!ne||Fe.some(function($e){return $e[b||"value"]===ne})||Fe.some(function($e){return $e[X.value]===ne})?Fe:[We(ne)].concat(ut(Fe))},[We,b,r,Fe,ne,X]),Ye=function $e(He){var it=ut(He).sort(function(at,gt){return y(at,gt,{searchValue:ne})});return it.map(function(at){return Array.isArray(at.options)?se(se({},at),{},{options:at.options.length>0?$e(at.options):at.options}):at})},ze=d.useMemo(function(){return y?Ye(ke):ke},[ke,y,ne]),Re=d.useMemo(function(){return ILt(ze,{fieldNames:X,childrenAsData:K})},[ze,X,K]),Le=function(He){var it=ge(He);if(ve(it),B&&(it.length!==De.length||it.some(function(yt,st){var Ze;return((Ze=De[st])===null||Ze===void 0?void 0:Ze.value)!==(yt==null?void 0:yt.value)}))){var at=N?it:it.map(function(yt){return yt.value}),gt=it.map(function(yt){return nle(Be(yt.value))});B(G?at:at[0],G?gt:gt[0])}},Me=d.useState(null),be=Ce(Me,2),je=be[0],Xe=be[1],ft=d.useState(0),Tt=Ce(ft,2),tt=Tt[0],pt=Tt[1],$t=R!==void 0?R:r!=="combobox",wt=d.useCallback(function($e,He){var it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},at=it.source,gt=at===void 0?"keyboard":at;pt(He),s&&r==="combobox"&&$e!==null&>==="keyboard"&&Xe(String($e))},[s,r]),It=function(He,it,at){var gt=function(){var xt,Rt=Be(He);return[N?{label:Rt==null?void 0:Rt[X.label],value:He,key:(xt=Rt==null?void 0:Rt.key)!==null&&xt!==void 0?xt:He}:He,nle(Rt)]};if(it&&g){var yt=gt(),st=Ce(yt,2),Ze=st[0],dt=st[1];g(Ze,dt)}else if(!it&&p&&at!=="clear"){var At=gt(),kt=Ce(At,2),pn=kt[0],ln=kt[1];p(pn,ln)}},Ct=Twe(function($e,He){var it,at=G?He.selected:!0;at?it=G?[].concat(ut(De),[$e]):[$e]:it=De.filter(function(gt){return gt.value!==$e}),Le(it),It($e,at),r==="combobox"?Xe(""):(!rle||h)&&(Z(""),Xe(""))}),ot=function(He,it){Le(He);var at=it.type,gt=it.values;(at==="remove"||at==="clear")&>.forEach(function(yt){It(yt.value,!1,at)})},nt=function(He,it){if(Z(He),Xe(null),it.source==="submit"){var at=(He||"").trim();if(at){var gt=Array.from(new Set([].concat(ut(Ue),[at])));Le(gt),It(at,!0),Z("")}return}it.source!=="blur"&&(r==="combobox"&&Le(He),u==null||u(He))},fe=function(He){var it=He;r!=="tags"&&(it=He.map(function(gt){var yt=oe.get(gt);return yt==null?void 0:yt.value}).filter(function(gt){return gt!==void 0}));var at=Array.from(new Set([].concat(ut(Ue),ut(it))));Le(at),at.forEach(function(gt){It(gt,!0)})},Te=d.useMemo(function(){var $e=T!==!1&&v!==!1;return se(se({},ee),{},{flattenOptions:Re,onActiveValue:wt,defaultActiveFirstOption:$t,onSelect:Ct,menuItemSelectedIcon:O,rawValues:Ue,fieldNames:X,virtual:$e,direction:M,listHeight:F,listItemHeight:k,childrenAsData:K,maxCount:z,optionRender:x})},[z,ee,Re,wt,$t,Ct,O,Ue,X,T,v,M,F,k,K,x]);return d.createElement(mpe.Provider,{value:Te},d.createElement(hV,V({},j,{id:W,prefixCls:o,ref:t,omitDomProps:uFt,mode:r,displayValues:Ge,onDisplayValuesChange:ot,direction:M,searchValue:ne,onSearch:nt,autoClearSearchValue:h,onSearchSplit:fe,dropdownMatchSelectWidth:v,OptionList:eFt,emptyOptions:!Re.length,activeValue:je,activeDescendantId:"".concat(W,"_list_").concat(tt)})))}),vV=fFt;vV.Option=pV;vV.OptGroup=gV;const hFt=Object.freeze(Object.defineProperty({__proto__:null,BaseSelect:hV,OptGroup:gV,Option:pV,default:vV,useBaseProps:fV},Symbol.toStringTag,{value:"Module"}));function Z4(e,t,n){return we({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ky=(e,t)=>t||e,gFt=()=>{const[,e]=za(),[t]=ih("Empty"),r=new kr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},pFt=()=>{const[,e]=za(),[t]=ih("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:s,shadowColor:a,contentColor:l}=d.useMemo(()=>({borderColor:new kr(n).onBackground(o).toHexString(),shadowColor:new kr(r).onBackground(o).toHexString(),contentColor:new kr(i).onBackground(o).toHexString()}),[n,r,i,o]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:s},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},mFt=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:s}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},vFt=Yr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=yr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[mFt(i)]});var CFt=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 GWe=d.createElement(gFt,null),WWe=d.createElement(pFt,null),Wp=e=>{var t,n,r,i,o,s,a,l;const{className:c,rootClassName:u,prefixCls:f,image:h=GWe,description:g,children:p,imageStyle:m,style:v,classNames:C,styles:y}=e,b=CFt(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:S,direction:w,empty:x}=d.useContext(vn),E=S("empty",f),[R,O,T]=vFt(E),[M]=ih("Empty"),_=typeof g<"u"?g:M==null?void 0:M.description,F=typeof _=="string"?_:"empty";let D=null;return typeof h=="string"?D=d.createElement("img",{alt:F,src:h}):D=h,R(d.createElement("div",Object.assign({className:we(O,T,E,x==null?void 0:x.className,{[`${E}-normal`]:h===WWe,[`${E}-rtl`]:w==="rtl"},c,u,(t=x==null?void 0:x.classNames)===null||t===void 0?void 0:t.root,C==null?void 0:C.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=x==null?void 0:x.styles)===null||n===void 0?void 0:n.root),x==null?void 0:x.style),y==null?void 0:y.root),v)},b),d.createElement("div",{className:we(`${E}-image`,(r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.image,C==null?void 0:C.image),style:Object.assign(Object.assign(Object.assign({},m),(i=x==null?void 0:x.styles)===null||i===void 0?void 0:i.image),y==null?void 0:y.image)},D),_&&d.createElement("div",{className:we(`${E}-description`,(o=x==null?void 0:x.classNames)===null||o===void 0?void 0:o.description,C==null?void 0:C.description),style:Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.description),y==null?void 0:y.description)},_),p&&d.createElement("div",{className:we(`${E}-footer`,(a=x==null?void 0:x.classNames)===null||a===void 0?void 0:a.footer,C==null?void 0:C.footer),style:Object.assign(Object.assign({},(l=x==null?void 0:x.styles)===null||l===void 0?void 0:l.footer),y==null?void 0:y.footer)},p)))};Wp.PRESENTED_IMAGE_DEFAULT=GWe;Wp.PRESENTED_IMAGE_SIMPLE=WWe;const Cpe=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(vn),r=n("empty");switch(t){case"Table":case"List":return ce.createElement(Wp,{image:Wp.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(Wp,{image:Wp.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ce.createElement(Wp,null)}},rM=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:s}=d.useContext(vn),a=d.useContext(aWe),l=s==null?void 0:s.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=a??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=NOt.includes(c);return[c,u]},yFt=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function UWe(e,t){return e||yFt(t)}const Iwe=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},bFt=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ii(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
||
${i}${a}bottomLeft,
|
||
${o}${a}bottomLeft
|
||
`]:{animationName:npe},[`
|
||
${i}${a}topLeft,
|
||
${o}${a}topLeft,
|
||
${i}${a}topRight,
|
||
${o}${a}topRight
|
||
`]:{animationName:ipe},[`${s}${a}bottomLeft`]:{animationName:rpe},[`
|
||
${s}${a}topLeft,
|
||
${s}${a}topRight
|
||
`]:{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,
|
||
${n}-prefix + ${n}-selection-wrap
|
||
`]:{[`${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"}},[`
|
||
&${n}-show-arrow ${n}-selector,
|
||
&${n}-allow-clear ${n}-selector
|
||
`]:{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"}},[`
|
||
${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
|
||
`]:{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()},[`
|
||
&${t}-show-arrow ${t}-selection-item,
|
||
&${t}-show-arrow ${t}-selection-placeholder
|
||
`]:{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.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),MFt=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Ne(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),PFt=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},TFt(e)),IFt(e)),MFt(e))}),_Ft=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},AFt=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},DFt=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},ii(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},_Ft(e)),AFt(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Kf),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Kf),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},C3()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},LFt=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},DFt(e),$Ft(e),RFt(e),bFt(e),{[`${t}-rtl`]:{direction:"rtl"}},rV(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},YWe=Yr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=yr(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[LFt(r),PFt(r)]},OFt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var FFt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},NFt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:FFt}))},CV=d.forwardRef(NFt),kFt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},zFt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kFt}))},yV=d.forwardRef(zFt),BFt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},HFt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:BFt}))},iM=d.forwardRef(HFt);function XWe(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:s,hasFeedback:a,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:h}=e;const g=n??d.createElement(nv,null),p=y=>t===null&&!a&&!f?null:d.createElement(d.Fragment,null,c!==!1&&y,a&&u);let m=null;if(t!==void 0)m=p(t);else if(o)m=p(d.createElement(Tm,{spin:!0}));else{const y=`${l}-suffix`;m=b=>{let{open:S,showSearch:w}=b;return p(S&&w?d.createElement(iM,{className:y}):d.createElement(yV,{className:y}))}}let v=null;r!==void 0?v=r:s?v=d.createElement(CV,null):v=null;let C=null;return i!==void 0?C=i:C=d.createElement(Ug,null),{clearIcon:g,suffixIcon:m,itemIcon:v,removeIcon:C}}function QWe(e,t){return t!==void 0?t:e!==null}var jFt=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 ZWe="SECRET_COMBOBOX_MODE_DO_NOT_USE",VFt=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:o,rootClassName:s,getPopupContainer:a,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:h,size:g,disabled:p,notFoundContent:m,status:v,builtinPlacements:C,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:S,style:w,allowClear:x,variant:E,dropdownStyle:R,transitionName:O,tagRender:T,maxCount:M,prefix:_}=e,F=jFt(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:k,renderEmpty:L,direction:I,virtual:A,popupMatchSelectWidth:N,popupOverflow:B,select:z}=d.useContext(vn),[,j]=za(),W=h??(j==null?void 0:j.controlHeight),G=k("select",r),K=k(),q=S??I,{compactSize:X,compactItemClassnames:Q}=Dy(G,q),[te,ne]=rM("select",E,i),Z=Oo(G),[ee,J,oe]=YWe(G,Z),le=d.useMemo(()=>{const{mode:je}=e;if(je!=="combobox")return je===ZWe?"combobox":je},[e.mode]),ge=le==="multiple"||le==="tags",he=QWe(e.suffixIcon,e.showArrow),ye=(n=b??y)!==null&&n!==void 0?n:N,{status:ue,hasFeedback:ve,isFormItemInput:de,feedbackIcon:xe}=d.useContext(Na),Ee=ky(ue,v);let De;m!==void 0?De=m:le==="combobox"?De=null:De=(L==null?void 0:L("Select"))||d.createElement(Cpe,{componentName:"Select"});const{suffixIcon:Be,itemIcon:Ge,removeIcon:Ue,clearIcon:We}=XWe(Object.assign(Object.assign({},F),{multiple:ge,hasFeedback:ve,feedbackIcon:xe,showSuffixIcon:he,prefixCls:G,componentName:"Select"})),Ve=x===!0?{clearIcon:We}:x,Fe=$i(F,["suffixIcon","itemIcon"]),ke=we(l||c,{[`${G}-dropdown-${q}`]:q==="rtl"},s,oe,Z,J),Ye=fl(je=>{var Xe;return(Xe=g??X)!==null&&Xe!==void 0?Xe:je}),ze=d.useContext(yc),Re=p??ze,Le=we({[`${G}-lg`]:Ye==="large",[`${G}-sm`]:Ye==="small",[`${G}-rtl`]:q==="rtl",[`${G}-${te}`]:ne,[`${G}-in-form-item`]:de},Z4(G,Ee,ve),Q,z==null?void 0:z.className,o,s,oe,Z,J),Me=d.useMemo(()=>f!==void 0?f:q==="rtl"?"bottomRight":"bottomLeft",[f,q]),[be]=y3("SelectLike",R==null?void 0:R.zIndex);return ee(d.createElement(vV,Object.assign({ref:t,virtual:A,showSearch:z==null?void 0:z.showSearch},Fe,{style:Object.assign(Object.assign({},z==null?void 0:z.style),w),dropdownMatchSelectWidth:ye,transitionName:Cu(K,"slide-up",O),builtinPlacements:UWe(C,B),listHeight:u,listItemHeight:W,mode:le,prefixCls:G,placement:Me,direction:q,prefix:_,suffixIcon:Be,menuItemSelectedIcon:Ge,removeIcon:Ue,allowClear:Ve,notFoundContent:De,className:Le,getPopupContainer:a||D,dropdownClassName:ke,disabled:Re,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:be}),maxCount:ge?M:void 0,tagRender:ge?T:void 0})))},Qf=d.forwardRef(VFt),GFt=ppe(Qf,"dropdownAlign");Qf.SECRET_COMBOBOX_MODE_DO_NOT_USE=ZWe;Qf.Option=pV;Qf.OptGroup=gV;Qf._InternalPanelDoNotUseOrYouWillBeFired=GFt;const d7=["xxl","xl","lg","md","sm","xs"],WFt=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),UFt=e=>{const t=e,n=[].concat(d7).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),s=`screen${o}Min`,a=`screen${o}`;if(!(t[s]<=t[a]))throw new Error(`${s}<=${a} fails : !(${t[s]}<=${t[a]})`);if(i<n.length-1){const l=`screen${o}Max`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);const u=`screen${n[i+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function JWe(){const[,e]=za(),t=WFt(UFt(e));return ce.useMemo(()=>{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(s=>s(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const s=t[o],a=this.matchHandlers[s];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const s=t[o],a=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(s);l.addListener(a),this.matchHandlers[s]={mql:l,listener:a},a(l)})},responsiveMap:t}},[e])}function eUe(){const[,e]=d.useReducer(t=>t+1,0);return e}function tUe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=eUe(),r=JWe();return Zn(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const ole=d.createContext({}),qFt=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:o,containerSize:s,containerSizeLG:a,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:h,borderRadiusLG:g,borderRadiusSM:p,lineWidth:m,lineType:v}=e,C=(y,b,S)=>({width:y,height:y,borderRadius:"50%",[`&${n}-square`]:{borderRadius:S},[`&${n}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ii(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${Ne(m)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),C(s,c,h)),{"&-lg":Object.assign({},C(a,u,g)),"&-sm":Object.assign({},C(l,f,p)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},KFt=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},YFt=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:o,fontSizeXL:s,fontSizeHeading3:a,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((o+s)/2),textFontSizeLG:a,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},nUe=Yr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=yr(e,{avatarBg:n,avatarColor:t});return[qFt(r),KFt(r)]},YFt);var XFt=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 QFt=(e,t)=>{const[n,r]=d.useState(1),[i,o]=d.useState(!1),[s,a]=d.useState(!0),l=d.useRef(null),c=d.useRef(null),u=Ws(t,l),{getPrefixCls:f,avatar:h}=d.useContext(vn),g=d.useContext(ole),p=()=>{if(!c.current||!l.current)return;const Q=c.current.offsetWidth,te=l.current.offsetWidth;if(Q!==0&&te!==0){const{gap:ne=4}=e;ne*2<te&&r(te-ne*2<Q?(te-ne*2)/Q:1)}};d.useEffect(()=>{o(!0)},[]),d.useEffect(()=>{a(!0),r(1)},[e.src]),d.useEffect(p,[e.gap]);const m=()=>{const{onError:Q}=e;(Q==null?void 0:Q())!==!1&&a(!1)},{prefixCls:v,shape:C,size:y,src:b,srcSet:S,icon:w,className:x,rootClassName:E,alt:R,draggable:O,children:T,crossOrigin:M}=e,_=XFt(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),F=fl(Q=>{var te,ne;return(ne=(te=y??(g==null?void 0:g.size))!==null&&te!==void 0?te:Q)!==null&&ne!==void 0?ne:"default"}),D=Object.keys(typeof F=="object"?F||{}:{}).some(Q=>["xs","sm","md","lg","xl","xxl"].includes(Q)),k=tUe(D),L=d.useMemo(()=>{if(typeof F!="object")return{};const Q=d7.find(ne=>k[ne]),te=F[Q];return te?{width:te,height:te,fontSize:te&&(w||T)?te/2:18}:{}},[k,F]),I=f("avatar",v),A=Oo(I),[N,B,z]=nUe(I,A),j=we({[`${I}-lg`]:F==="large",[`${I}-sm`]:F==="small"}),W=d.isValidElement(b),G=C||(g==null?void 0:g.shape)||"circle",K=we(I,j,h==null?void 0:h.className,`${I}-${G}`,{[`${I}-image`]:W||b&&s,[`${I}-icon`]:!!w},z,A,x,E,B),q=typeof F=="number"?{width:F,height:F,fontSize:w?F/2:18}:{};let X;if(typeof b=="string"&&s)X=d.createElement("img",{src:b,draggable:O,srcSet:S,onError:m,alt:R,crossOrigin:M});else if(W)X=b;else if(w)X=w;else if(i||n!==1){const Q=`scale(${n})`,te={msTransform:Q,WebkitTransform:Q,transform:Q};X=d.createElement(oa,{onResize:p},d.createElement("span",{className:`${I}-string`,ref:c,style:Object.assign({},te)},T))}else X=d.createElement("span",{className:`${I}-string`,style:{opacity:0},ref:c},T);return delete _.onError,delete _.gap,N(d.createElement("span",Object.assign({},_,{style:Object.assign(Object.assign(Object.assign(Object.assign({},q),L),h==null?void 0:h.style),_.style),className:K,ref:u}),X))},rUe=d.forwardRef(QFt),Yz=e=>e?typeof e=="function"?e():e:null;function bV(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,s=e.className,a=e.style;return d.createElement("div",{className:we("".concat(n,"-content"),s),style:a},d.createElement("div",{className:we("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var a5={shiftX:64,adjustY:1},l5={adjustX:1,shiftY:!0},Ud=[0,0],ZFt={left:{points:["cr","cl"],overflow:l5,offset:[-4,0],targetOffset:Ud},right:{points:["cl","cr"],overflow:l5,offset:[4,0],targetOffset:Ud},top:{points:["bc","tc"],overflow:a5,offset:[0,-4],targetOffset:Ud},bottom:{points:["tc","bc"],overflow:a5,offset:[0,4],targetOffset:Ud},topLeft:{points:["bl","tl"],overflow:a5,offset:[0,-4],targetOffset:Ud},leftTop:{points:["tr","tl"],overflow:l5,offset:[-4,0],targetOffset:Ud},topRight:{points:["br","tr"],overflow:a5,offset:[0,-4],targetOffset:Ud},rightTop:{points:["tl","tr"],overflow:l5,offset:[4,0],targetOffset:Ud},bottomRight:{points:["tr","br"],overflow:a5,offset:[0,4],targetOffset:Ud},rightBottom:{points:["bl","br"],overflow:l5,offset:[4,0],targetOffset:Ud},bottomLeft:{points:["tl","bl"],overflow:a5,offset:[0,4],targetOffset:Ud},leftBottom:{points:["br","bl"],overflow:l5,offset:[-4,0],targetOffset:Ud}},JFt=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],eNt=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,s=t.mouseEnterDelay,a=s===void 0?0:s,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,g=t.children,p=t.onVisibleChange,m=t.afterVisibleChange,v=t.transitionName,C=t.animation,y=t.motion,b=t.placement,S=b===void 0?"right":b,w=t.align,x=w===void 0?{}:w,E=t.destroyTooltipOnHide,R=E===void 0?!1:E,O=t.defaultVisible,T=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,F=t.id,D=t.showArrow,k=D===void 0?!0:D,L=t.classNames,I=t.styles,A=on(t,JFt),N=d.useRef(null);d.useImperativeHandle(n,function(){return N.current});var B=se({},A);"visible"in t&&(B.popupVisible=t.visible);var z=function(){return d.createElement(bV,{key:"content",prefixCls:h,id:F,bodyClassName:L==null?void 0:L.body,overlayInnerStyle:se(se({},M),I==null?void 0:I.body)},_)};return d.createElement(Ny,V({popupClassName:we(r,L==null?void 0:L.root),prefixCls:h,popup:z,action:o,builtinPlacements:ZFt,popupPlacement:S,ref:N,popupAlign:x,getPopupContainer:T,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:C,popupMotion:y,defaultPopupVisible:O,autoDestroy:R,mouseLeaveDelay:c,popupStyle:se(se({},u),I==null?void 0:I.root),mouseEnterDelay:a,arrow:k},B),g)};const iUe=d.forwardRef(eNt),tNt=Object.freeze(Object.defineProperty({__proto__:null,Popup:bV,default:iUe},Symbol.toStringTag,{value:"Module"}));function ype(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,s=i,a=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,h=u,g=2*i-a,p=l,m=2*i-o,v=s,C=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),b=`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,S=`path('M ${o} ${s} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${h} L ${g} ${p} A ${r} ${r} 0 0 0 ${m} ${v} Z')`;return{arrowShadowWidth:C,arrowPath:S,arrowPolygon:b}}const nNt=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:s,borderRadiusXS:a,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ne(a)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},oUe=8;function SV(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?oUe:r}}function bD(e,t){return e?t:{}}function bpe(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:s}=e,{arrowDistance:a=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},nNt(e,t,i)),{"&:before":{background:t}})]},bD(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:a,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ne(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),bD(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:a,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ne(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),bD(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:a},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),bD(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:a},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function rNt(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const s=Object.assign(Object.assign({},o),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const _we={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},iNt={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},oNt=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function sUe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:s}=e,a=t/2,l={};return Object.keys(_we).forEach(c=>{const u=r&&iNt[c]||_we[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,oNt.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=a+i;break}const h=SV({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-h.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":f.offset[0]=h.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":f.offset[1]=-h.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":f.offset[1]=h.arrowOffsetHorizontal*2-a;break}f.overflow=rNt(c,h,t,n),s&&(f.htmlRegion="visibleFirst")}),l}const sNt=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:s,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:h,sizePopupArrow:g}=e,p=t(s).add(g).add(h).equal(),m=t(s).mul(2).add(g).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ii(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:m,minHeight:l,padding:`${Ne(e.calc(u).div(2).equal())} ${Ne(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:s,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,oUe)}},[`${n}-content`]:{position:"relative"}}),nGe(e,(v,C)=>{let{darkColor:y}=C;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},bpe(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},aNt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},SV({contentRadius:e.borderRadius,limitVerticalRadius:!0})),ype(yr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),aUe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Yr("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:s}=r,a=yr(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:s});return[sNt(a),Wx(r,"zoom-big-fast")]},aNt,{resetStyle:!1,injectStyle:t})(e)},lNt=NC.map(e=>`${e}-inverse`),cNt=["success","processing","error","default","warning"];function lUe(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ut(lNt),ut(NC)).includes(e):NC.includes(e)}function uNt(e){return cNt.includes(e)}function cUe(e,t){const n=lUe(t),r=we({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const dNt=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:s}=e,{getPrefixCls:a}=d.useContext(vn),l=a("tooltip",t),[c,u,f]=aUe(l),h=cUe(l,o),g=h.arrowStyle,p=Object.assign(Object.assign({},s),h.overlayStyle),m=we(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(d.createElement("div",{className:m,style:g},d.createElement("div",{className:`${l}-arrow`}),d.createElement(bV,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),i)))};var fNt=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 hNt=d.forwardRef((e,t)=>{var n,r,i,o,s,a;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:f,overlayInnerStyle:h,children:g,afterOpenChange:p,afterVisibleChange:m,destroyTooltipOnHide:v,arrow:C=!0,title:y,overlay:b,builtinPlacements:S,arrowPointAtCenter:w=!1,autoAdjustOverflow:x=!0}=e,E=!!C,[,R]=za(),{getPopupContainer:O,getPrefixCls:T,direction:M,tooltip:_}=d.useContext(vn),F=_y(),D=d.useRef(null),k=()=>{var Fe;(Fe=D.current)===null||Fe===void 0||Fe.forceAlign()};d.useImperativeHandle(t,()=>{var Fe;return{forceAlign:k,forcePopupAlign:()=>{F.deprecated(!1,"forcePopupAlign","forceAlign"),k()},nativeElement:(Fe=D.current)===null||Fe===void 0?void 0:Fe.nativeElement}});const[L,I]=ir(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!y&&!b&&y!==0,N=Fe=>{var ke,Ye;I(A?!1:Fe),A||((ke=e.onOpenChange)===null||ke===void 0||ke.call(e,Fe),(Ye=e.onVisibleChange)===null||Ye===void 0||Ye.call(e,Fe))},B=d.useMemo(()=>{var Fe,ke;let Ye=w;return typeof C=="object"&&(Ye=(ke=(Fe=C.pointAtCenter)!==null&&Fe!==void 0?Fe:C.arrowPointAtCenter)!==null&&ke!==void 0?ke:w),S||sUe({arrowPointAtCenter:Ye,autoAdjustOverflow:x,arrowWidth:E?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[w,C,S,R]),z=d.useMemo(()=>y===0?y:b||y||"",[b,y]),j=d.createElement(kC,{space:!0},typeof z=="function"?z():z),{getPopupContainer:W,placement:G="top",mouseEnterDelay:K=.1,mouseLeaveDelay:q=.1,overlayStyle:X,rootClassName:Q,overlayClassName:te,styles:ne,classNames:Z}=e,ee=fNt(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),J=T("tooltip",l),oe=T(),le=e["data-popover-inject"];let ge=L;!("open"in e)&&!("visible"in e)&&A&&(ge=!1);const he=d.isValidElement(g)&&!xGe(g)?g:d.createElement("span",null,g),ye=he.props,ue=!ye.className||typeof ye.className=="string"?we(ye.className,c||`${J}-open`):ye.className,[ve,de,xe]=aUe(J,!le),Ee=cUe(J,f),De=Ee.arrowStyle,Be=we(te,{[`${J}-rtl`]:M==="rtl"},Ee.className,Q,de,xe,_==null?void 0:_.className,(i=_==null?void 0:_.classNames)===null||i===void 0?void 0:i.root,Z==null?void 0:Z.root),Ge=we((o=_==null?void 0:_.classNames)===null||o===void 0?void 0:o.body,Z==null?void 0:Z.body),[Ue,We]=y3("Tooltip",ee.zIndex),Ve=d.createElement(iUe,Object.assign({},ee,{zIndex:Ue,showArrow:E,placement:G,mouseEnterDelay:K,mouseLeaveDelay:q,prefixCls:J,classNames:{root:Be,body:Ge},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},De),(s=_==null?void 0:_.styles)===null||s===void 0?void 0:s.root),_==null?void 0:_.style),X),ne==null?void 0:ne.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(a=_==null?void 0:_.styles)===null||a===void 0?void 0:a.body),h),ne==null?void 0:ne.body),Ee.overlayStyle)},getTooltipContainer:W||u||O,ref:D,builtinPlacements:B,overlay:j,visible:ge,onVisibleChange:N,afterVisibleChange:p??m,arrowContent:d.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:Cu(oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),ge?js(he,{className:ue}):he);return ve(d.createElement(Uj.Provider,{value:We},Ve))}),Gm=hNt;Gm._InternalPanelDoNotUseOrYouWillBeFired=dNt;const gNt=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:s,colorTextHeading:a,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:h,titleBorderBottom:g,innerContentPadding:p,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},ii(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:l,boxShadow:s,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:u,color:a,fontWeight:i,borderBottom:g,padding:m},[`${t}-inner-content`]:{color:n,padding:p}})},bpe(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},pNt=e=>{const{componentCls:t}=e;return{[t]:NC.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},mNt=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:o,zIndexPopupBase:s,borderRadiusLG:a,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,h=n-r,g=h/2,p=h/2-t,m=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},ype(e)),SV({contentRadius:a,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${g}px ${m}px ${p}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${f}px ${m}px`:0})},uUe=Yr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=yr(e,{popoverBg:t,popoverColor:n});return[gNt(r),pNt(r),Wx(r,"zoom-big")]},mNt,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var vNt=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 dUe=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},CNt=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:s,content:a,children:l}=e,c=Yz(s),u=Yz(a),f=we(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return d.createElement("div",{className:f,style:i},d.createElement("div",{className:`${n}-arrow`}),d.createElement(bV,Object.assign({},e,{className:t,prefixCls:n}),l||d.createElement(dUe,{prefixCls:n,title:c,content:u})))},yNt=e=>{const{prefixCls:t,className:n}=e,r=vNt(e,["prefixCls","className"]),{getPrefixCls:i}=d.useContext(vn),o=i("popover",t),[s,a,l]=uUe(o);return s(d.createElement(CNt,Object.assign({},r,{prefixCls:o,hashId:a,className:we(n,l)})))};var bNt=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 SNt=d.forwardRef((e,t)=>{var n,r,i,o,s,a;const{prefixCls:l,title:c,content:u,overlayClassName:f,placement:h="top",trigger:g="hover",children:p,mouseEnterDelay:m=.1,mouseLeaveDelay:v=.1,onOpenChange:C,overlayStyle:y={},styles:b,classNames:S}=e,w=bNt(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:x,getPrefixCls:E}=d.useContext(vn),R=E("popover",l),[O,T,M]=uUe(R),_=E(),F=we(f,T,M,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.root,S==null?void 0:S.root),D=we((r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.body,S==null?void 0:S.body),[k,L]=ir(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),I=(j,W)=>{L(j,!0),C==null||C(j,W)},A=j=>{j.keyCode===lt.ESC&&I(!1,j)},N=j=>{I(j)},B=Yz(c),z=Yz(u);return O(d.createElement(Gm,Object.assign({placement:h,trigger:g,mouseEnterDelay:m,mouseLeaveDelay:v},w,{prefixCls:R,classNames:{root:F,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.root),x==null?void 0:x.style),y),b==null?void 0:b.root),body:Object.assign(Object.assign({},(a=x==null?void 0:x.styles)===null||a===void 0?void 0:a.body),b==null?void 0:b.body)},ref:t,open:k,onOpenChange:N,overlay:B||z?d.createElement(dUe,{prefixCls:R,title:B,content:z}):null,transitionName:Cu(_,"zoom-big",w.transitionName),"data-popover-inject":!0}),js(p,{onKeyDown:j=>{var W,G;d.isValidElement(p)&&((G=p==null?void 0:(W=p.props).onKeyDown)===null||G===void 0||G.call(W,j)),A(j)}})))}),fUe=SNt;fUe._InternalPanelDoNotUseOrYouWillBeFired=yNt;const Awe=e=>{const{size:t,shape:n}=d.useContext(ole),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(ole.Provider,{value:r},e.children)},wNt=e=>{var t,n,r,i;const{getPrefixCls:o,direction:s}=d.useContext(vn),{prefixCls:a,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:h,size:g,shape:p,maxPopoverPlacement:m,maxPopoverTrigger:v,children:C,max:y}=e,b=o("avatar",a),S=`${b}-group`,w=Oo(b),[x,E,R]=nUe(b,w),O=we(S,{[`${S}-rtl`]:s==="rtl"},R,w,l,c,E),T=Rs(C).map((F,D)=>js(F,{key:`avatar-key-${D}`})),M=(y==null?void 0:y.count)||f,_=T.length;if(M&&M<_){const F=T.slice(0,M),D=T.slice(M,_),k=(y==null?void 0:y.style)||h,L=((t=y==null?void 0:y.popover)===null||t===void 0?void 0:t.trigger)||v||"hover",I=((n=y==null?void 0:y.popover)===null||n===void 0?void 0:n.placement)||m||"top",A=Object.assign(Object.assign({content:D},y==null?void 0:y.popover),{classNames:{root:we(`${S}-popover`,(i=(r=y==null?void 0:y.popover)===null||r===void 0?void 0:r.classNames)===null||i===void 0?void 0:i.root)},placement:I,trigger:L});return F.push(d.createElement(fUe,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},A),d.createElement(rUe,{style:k},`+${_-M}`))),x(d.createElement(Awe,{shape:p,size:g},d.createElement("div",{className:O,style:u},F)))}return x(d.createElement(Awe,{shape:p,size:g},d.createElement("div",{className:O,style:u},T)))},Xz=rUe;Xz.Group=wNt;var xNt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},ENt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xNt}))},RNt=d.forwardRef(ENt),$Nt=lt.ESC,ONt=lt.TAB;function TNt(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,s=d.useRef(!1),a=function(){if(t){var f,h;(f=n.current)===null||f===void 0||(h=f.focus)===null||h===void 0||h.call(f),r==null||r(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),s.current=!0,!0):!1},c=function(f){switch(f.keyCode){case $Nt:a();break;case ONt:{var h=!1;s.current||(h=l()),h?f.preventDefault():a();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Rr(l,3),function(){window.removeEventListener("keydown",c),s.current=!1}):function(){s.current=!1}},[t])}var INt=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=d.useMemo(function(){var a;return typeof n=="function"?a=n():a=n,a},[n]),s=Ws(t,v3(o));return ce.createElement(ce.Fragment,null,r&&ce.createElement("div",{className:"".concat(i,"-arrow")}),ce.cloneElement(o,{ref:Cd(o)?s:void 0}))}),c5={adjustX:1,adjustY:1},u5=[0,0],MNt={topLeft:{points:["bl","tl"],overflow:c5,offset:[0,-4],targetOffset:u5},top:{points:["bc","tc"],overflow:c5,offset:[0,-4],targetOffset:u5},topRight:{points:["br","tr"],overflow:c5,offset:[0,-4],targetOffset:u5},bottomLeft:{points:["tl","bl"],overflow:c5,offset:[0,4],targetOffset:u5},bottom:{points:["tc","bc"],overflow:c5,offset:[0,4],targetOffset:u5},bottomRight:{points:["tr","br"],overflow:c5,offset:[0,4],targetOffset:u5}},PNt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function _Nt(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,s=o===void 0?"rc-dropdown":o,a=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,h=e.placements,g=h===void 0?MNt:h,p=e.getPopupContainer,m=e.showAction,v=e.hideAction,C=e.overlayClassName,y=e.overlayStyle,b=e.visible,S=e.trigger,w=S===void 0?["hover"]:S,x=e.autoFocus,E=e.overlay,R=e.children,O=e.onVisibleChange,T=on(e,PNt),M=ce.useState(),_=Ce(M,2),F=_[0],D=_[1],k="visible"in e?b:F,L=ce.useRef(null),I=ce.useRef(null),A=ce.useRef(null);ce.useImperativeHandle(t,function(){return L.current});var N=function(Q){D(Q),O==null||O(Q)};TNt({visible:k,triggerRef:A,onVisibleChange:N,autoFocus:x,overlayRef:I});var B=function(Q){var te=e.onOverlayClick;D(!1),te&&te(Q)},z=function(){return ce.createElement(INt,{ref:I,overlay:E,prefixCls:s,arrow:i})},j=function(){return typeof E=="function"?z:z()},W=function(){var Q=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!te},G=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(s,"-open")},K=ce.cloneElement(R,{className:we((n=R.props)===null||n===void 0?void 0:n.className,k&&G()),ref:Cd(R)?Ws(A,v3(R)):void 0}),q=v;return!q&&w.indexOf("contextMenu")!==-1&&(q=["click"]),ce.createElement(Ny,V({builtinPlacements:g},T,{prefixCls:s,ref:L,popupClassName:we(C,ie({},"".concat(s,"-show-arrow"),i)),popupStyle:y,action:w,showAction:m,hideAction:q,popupPlacement:f,popupAlign:c,popupTransitionName:a,popupAnimation:l,popupVisible:k,stretch:W()?"minWidth":"",popup:j(),onPopupVisibleChange:N,onPopupClick:B,getPopupContainer:p}),K)}const Spe=ce.forwardRef(_Nt),ANt=Object.freeze(Object.defineProperty({__proto__:null,default:Spe},Symbol.toStringTag,{value:"Module"})),DNt=e=>typeof e!="object"&&typeof e!="function"||e===null;var hUe=d.createContext(null);function gUe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function pUe(e){var t=d.useContext(hUe);return gUe(t,e)}var LNt=["children","locked"],Ag=d.createContext(null);function FNt(e,t){var n=se({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function MT(e){var t=e.children,n=e.locked,r=on(e,LNt),i=d.useContext(Ag),o=Rm(function(){return FNt(i,r)},[i,r],function(s,a){return!n&&(s[0]!==a[0]||!Uf(s[1],a[1],!0))});return d.createElement(Ag.Provider,{value:o},t)}var NNt=[],mUe=d.createContext(null);function wV(){return d.useContext(mUe)}var vUe=d.createContext(NNt);function zy(e){var t=d.useContext(vUe);return d.useMemo(function(){return e!==void 0?[].concat(ut(t),[e]):t},[t,e])}var CUe=d.createContext(null),wpe=d.createContext({});function Dwe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Gx(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),s=null;return i&&!Number.isNaN(o)?s=o:r&&s===null&&(s=0),r&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function kNt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ut(e.querySelectorAll("*")).filter(function(r){return Dwe(r,t)});return Dwe(e,t)&&n.unshift(e),n}var sle=lt.LEFT,ale=lt.RIGHT,lle=lt.UP,hN=lt.DOWN,gN=lt.ENTER,yUe=lt.ESC,QE=lt.HOME,ZE=lt.END,Lwe=[lle,hN,sle,ale];function zNt(e,t,n,r){var i,o="prev",s="next",a="children",l="parent";if(e==="inline"&&r===gN)return{inlineTrigger:!0};var c=ie(ie({},lle,o),hN,s),u=ie(ie(ie(ie({},sle,n?s:o),ale,n?o:s),hN,a),gN,a),f=ie(ie(ie(ie(ie(ie({},lle,o),hN,s),gN,a),yUe,l),sle,n?a:l),ale,n?l:a),h={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},g=(i=h["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(g){case o:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case a:return{offset:1,sibling:!1};default:return null}}function BNt(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function HNt(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function xpe(e,t){var n=kNt(e,!0);return n.filter(function(r){return t.has(r)})}function Fwe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=xpe(e,t),o=i.length,s=i.findIndex(function(a){return n===a});return r<0?s===-1?s=o-1:s-=1:r>0&&(s+=1),s=(s+o)%o,i[s]}var cle=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(s){var a=document.querySelector("[data-menu-id='".concat(gUe(n,s),"']"));a&&(r.add(a),o.set(a,s),i.set(s,a))}),{elements:r,key2element:i,element2key:o}};function jNt(e,t,n,r,i,o,s,a,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var h=function(){Rr.cancel(u.current)};return d.useEffect(function(){return function(){h()}},[]),function(g){var p=g.which;if([].concat(Lwe,[gN,yUe,QE,ZE]).includes(p)){var m=o(),v=cle(m,r),C=v,y=C.elements,b=C.key2element,S=C.element2key,w=b.get(t),x=HNt(w,y),E=S.get(x),R=zNt(e,s(E,!0).length===1,n,p);if(!R&&p!==QE&&p!==ZE)return;(Lwe.includes(p)||[QE,ZE].includes(p))&&g.preventDefault();var O=function(I){if(I){var A=I,N=I.querySelector("a");N!=null&&N.getAttribute("href")&&(A=N);var B=S.get(I);a(B),h(),u.current=Rr(function(){f.current===B&&A.focus()})}};if([QE,ZE].includes(p)||R.sibling||!x){var T;!x||e==="inline"?T=i.current:T=BNt(x);var M,_=xpe(T,y);p===QE?M=_[0]:p===ZE?M=_[_.length-1]:M=Fwe(T,y,x,R.offset),O(M)}else if(R.inlineTrigger)l(E);else if(R.offset>0)l(E,!0),h(),u.current=Rr(function(){v=cle(m,r);var L=x.getAttribute("aria-controls"),I=document.getElementById(L),A=Fwe(I,v.elements);O(A)},5);else if(R.offset<0){var F=s(E,!0),D=F[F.length-2],k=b.get(D);l(D,!1),O(k)}}c==null||c(g)}}function VNt(e){Promise.resolve().then(e)}var Epe="__RC_UTIL_PATH_SPLIT__",Nwe=function(t){return t.join(Epe)},GNt=function(t){return t.split(Epe)},ule="rc-menu-more";function WNt(){var e=d.useState({}),t=Ce(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),o=d.useState([]),s=Ce(o,2),a=s[0],l=s[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},h=d.useCallback(function(b,S){var w=Nwe(S);i.current.set(w,b),r.current.set(b,w),c.current+=1;var x=c.current;VNt(function(){x===c.current&&f()})},[]),g=d.useCallback(function(b,S){var w=Nwe(S);i.current.delete(w),r.current.delete(b)},[]),p=d.useCallback(function(b){l(b)},[]),m=d.useCallback(function(b,S){var w=r.current.get(b)||"",x=GNt(w);return S&&a.includes(x[0])&&x.unshift(ule),x},[a]),v=d.useCallback(function(b,S){return b.filter(function(w){return w!==void 0}).some(function(w){var x=m(w,!0);return x.includes(S)})},[m]),C=function(){var S=ut(r.current.keys());return a.length&&S.push(ule),S},y=d.useCallback(function(b){var S="".concat(r.current.get(b)).concat(Epe),w=new Set;return ut(i.current.keys()).forEach(function(x){x.startsWith(S)&&w.add(i.current.get(x))}),w},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:g,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:m,getKeys:C,getSubPathKeys:y}}function i$(e){var t=d.useRef(e);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 e?n:void 0}var UNt=Math.random().toFixed(5).toString().slice(2),kwe=0;function qNt(e){var t=ir(e,{value:e}),n=Ce(t,2),r=n[0],i=n[1];return d.useEffect(function(){kwe+=1;var o="".concat(UNt,"-").concat(kwe);i("rc-menu-uuid-".concat(o))},[]),r}function bUe(e,t,n,r){var i=d.useContext(Ag),o=i.activeKey,s=i.onActive,a=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),s(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),a(e)}),l}function SUe(e){var t=d.useContext(Ag),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*i}:{paddingLeft:o*i}}function wUe(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=d.createElement(t,se({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var KNt=["item"];function Qz(e){var t=e.item,n=on(e,KNt);return Object.defineProperty(n,"item",{get:function(){return ui(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var YNt=["title","attribute","elementRef"],XNt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],QNt=["active"],ZNt=function(e){hs(n,e);var t=wc(n);function n(){return qr(this,n),t.apply(this,arguments)}return Kr(n,[{key:"render",value:function(){var i=this.props,o=i.title,s=i.attribute,a=i.elementRef,l=on(i,YNt),c=$i(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ui(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(Eg.Item,V({},s,{title:typeof o=="string"?o:void 0},c,{ref:a}))}}]),n}(d.Component),JNt=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,s=e.itemIcon,a=e.children,l=e.role,c=e.onMouseEnter,u=e.onMouseLeave,f=e.onClick,h=e.onKeyDown,g=e.onFocus,p=on(e,XNt),m=pUe(i),v=d.useContext(Ag),C=v.prefixCls,y=v.onItemClick,b=v.disabled,S=v.overflowDisabled,w=v.itemIcon,x=v.selectedKeys,E=v.onActive,R=d.useContext(wpe),O=R._internalRenderMenuItem,T="".concat(C,"-item"),M=d.useRef(),_=d.useRef(),F=b||o,D=Od(t,_),k=zy(i),L=function(te){return{key:i,keyPath:ut(k).reverse(),item:M.current,domEvent:te}},I=s||w,A=bUe(i,F,c,u),N=A.active,B=on(A,QNt),z=x.includes(i),j=SUe(k.length),W=function(te){if(!F){var ne=L(te);f==null||f(Qz(ne)),y(ne)}},G=function(te){if(h==null||h(te),te.which===lt.ENTER){var ne=L(te);f==null||f(Qz(ne)),y(ne)}},K=function(te){E(i),g==null||g(te)},q={};e.role==="option"&&(q["aria-selected"]=z);var X=d.createElement(ZNt,V({ref:M,elementRef:D,role:l===null?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":S&&m?null:m},$i(p,["extra"]),B,q,{component:"li","aria-disabled":o,style:se(se({},j),n),className:we(T,ie(ie(ie({},"".concat(T,"-active"),N),"".concat(T,"-selected"),z),"".concat(T,"-disabled"),F),r),onClick:W,onKeyDown:G,onFocus:K}),a,d.createElement(wUe,{props:se(se({},e),{},{isSelected:z}),icon:I}));return O&&(X=O(X,e,{selected:z})),X});function ekt(e,t){var n=e.eventKey,r=wV(),i=zy(n);return d.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:d.createElement(JNt,V({},e,{ref:t}))}const D0=d.forwardRef(ekt);var tkt=["className","children"],nkt=function(t,n){var r=t.className,i=t.children,o=on(t,tkt),s=d.useContext(Ag),a=s.prefixCls,l=s.mode,c=s.rtl;return d.createElement("ul",V({className:we(a,c&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),i)},Rpe=d.forwardRef(nkt);Rpe.displayName="SubMenuList";function $pe(e,t){return Rs(e).map(function(n,r){if(d.isValidElement(n)){var i,o,s=n.key,a=(i=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:s,l=a==null;l&&(a="tmp_key-".concat([].concat(ut(t),[r]).join("-")));var c={key:a,eventKey:a};return d.cloneElement(n,c)}return n})}var Ml={adjustX:1,adjustY:1},rkt={topLeft:{points:["bl","tl"],overflow:Ml},topRight:{points:["br","tr"],overflow:Ml},bottomLeft:{points:["tl","bl"],overflow:Ml},bottomRight:{points:["tr","br"],overflow:Ml},leftTop:{points:["tr","tl"],overflow:Ml},leftBottom:{points:["br","bl"],overflow:Ml},rightTop:{points:["tl","tr"],overflow:Ml},rightBottom:{points:["bl","br"],overflow:Ml}},ikt={topLeft:{points:["bl","tl"],overflow:Ml},topRight:{points:["br","tr"],overflow:Ml},bottomLeft:{points:["tl","bl"],overflow:Ml},bottomRight:{points:["tr","br"],overflow:Ml},rightTop:{points:["tr","tl"],overflow:Ml},rightBottom:{points:["br","bl"],overflow:Ml},leftTop:{points:["tl","tr"],overflow:Ml},leftBottom:{points:["bl","br"],overflow:Ml}};function xUe(e,t,n){if(t)return t;if(n)return n[e]||n.other}var okt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function skt(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,o=e.popupStyle,s=e.popupClassName,a=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,f=d.useContext(Ag),h=f.getPopupContainer,g=f.rtl,p=f.subMenuOpenDelay,m=f.subMenuCloseDelay,v=f.builtinPlacements,C=f.triggerSubMenuAction,y=f.forceSubMenuRender,b=f.rootClassName,S=f.motion,w=f.defaultMotions,x=d.useState(!1),E=Ce(x,2),R=E[0],O=E[1],T=se(g?se({},ikt):se({},rkt),v),M=okt[c],_=xUe(c,S,w),F=d.useRef(_);c!=="inline"&&(F.current=_);var D=se(se({},F.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),k=d.useRef();return d.useEffect(function(){return k.current=Rr(function(){O(n)}),function(){Rr.cancel(k.current)}},[n]),d.createElement(Ny,{prefixCls:t,popupClassName:we("".concat(t,"-popup"),ie({},"".concat(t,"-rtl"),g),s,b),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:T,popupPlacement:M,popupVisible:R,popup:i,popupStyle:o,popupAlign:a&&{offset:a},action:l?[]:[C],mouseEnterDelay:p,mouseLeaveDelay:m,onPopupVisibleChange:u,forceRender:y,popupMotion:D,fresh:!0},r)}function akt(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",s=d.useContext(Ag),a=s.prefixCls,l=s.forceSubMenuRender,c=s.motion,u=s.defaultMotions,f=s.mode,h=d.useRef(!1);h.current=f===o;var g=d.useState(!h.current),p=Ce(g,2),m=p[0],v=p[1],C=h.current?n:!1;d.useEffect(function(){h.current&&v(!1)},[f]);var y=se({},xUe(o,c,u));r.length>1&&(y.motionAppear=!1);var b=y.onVisibleChanged;return y.onVisibleChanged=function(S){return!h.current&&!S&&v(!0),b==null?void 0:b(S)},m?null:d.createElement(MT,{mode:o,locked:!h.current},d.createElement(Hs,V({visible:C},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(a,"-hidden")}),function(S){var w=S.className,x=S.style;return d.createElement(Rpe,{id:t,className:w,style:x},i)}))}var lkt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ckt=["active"],ukt=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var s=e.disabled,a=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,h=e.popupOffset,g=e.popupStyle,p=e.onClick,m=e.onMouseEnter,v=e.onMouseLeave,C=e.onTitleClick,y=e.onTitleMouseEnter,b=e.onTitleMouseLeave,S=on(e,lkt),w=pUe(o),x=d.useContext(Ag),E=x.prefixCls,R=x.mode,O=x.openKeys,T=x.disabled,M=x.overflowDisabled,_=x.activeKey,F=x.selectedKeys,D=x.itemIcon,k=x.expandIcon,L=x.onItemClick,I=x.onOpenChange,A=x.onActive,N=d.useContext(wpe),B=N._internalRenderSubMenuItem,z=d.useContext(CUe),j=z.isSubPathKey,W=zy(),G="".concat(E,"-submenu"),K=T||s,q=d.useRef(),X=d.useRef(),Q=c??D,te=u??k,ne=O.includes(o),Z=!M&&ne,ee=j(F,o),J=bUe(o,K,y,b),oe=J.active,le=on(J,ckt),ge=d.useState(!1),he=Ce(ge,2),ye=he[0],ue=he[1],ve=function(Le){K||ue(Le)},de=function(Le){ve(!0),m==null||m({key:o,domEvent:Le})},xe=function(Le){ve(!1),v==null||v({key:o,domEvent:Le})},Ee=d.useMemo(function(){return oe||(R!=="inline"?ye||j([_],o):!1)},[R,oe,_,ye,o,j]),De=SUe(W.length),Be=function(Le){K||(C==null||C({key:o,domEvent:Le}),R==="inline"&&I(o,!ne))},Ge=i$(function(Re){p==null||p(Qz(Re)),L(Re)}),Ue=function(Le){R!=="inline"&&I(o,Le)},We=function(){A(o)},Ve=w&&"".concat(w,"-popup"),Fe=d.createElement("div",V({role:"menuitem",style:De,className:"".concat(G,"-title"),tabIndex:K?null:-1,ref:q,title:typeof i=="string"?i:null,"data-menu-id":M&&w?null:w,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":Ve,"aria-disabled":K,onClick:Be,onFocus:We},le),i,d.createElement(wUe,{icon:R!=="horizontal"?te:void 0,props:se(se({},e),{},{isOpen:Z,isSubMenu:!0})},d.createElement("i",{className:"".concat(G,"-arrow")}))),ke=d.useRef(R);if(R!=="inline"&&W.length>1?ke.current="vertical":ke.current=R,!M){var Ye=ke.current;Fe=d.createElement(skt,{mode:Ye,prefixCls:G,visible:!a&&Z&&R!=="inline",popupClassName:f,popupOffset:h,popupStyle:g,popup:d.createElement(MT,{mode:Ye==="horizontal"?"vertical":Ye},d.createElement(Rpe,{id:Ve,ref:X},l)),disabled:K,onVisibleChange:Ue},Fe)}var ze=d.createElement(Eg.Item,V({ref:t,role:"none"},S,{component:"li",style:n,className:we(G,"".concat(G,"-").concat(R),r,ie(ie(ie(ie({},"".concat(G,"-open"),Z),"".concat(G,"-active"),Ee),"".concat(G,"-selected"),ee),"".concat(G,"-disabled"),K)),onMouseEnter:de,onMouseLeave:xe}),Fe,!M&&d.createElement(akt,{id:Ve,open:Z,keyPath:W},l));return B&&(ze=B(ze,e,{selected:ee,active:Ee,open:Z,disabled:K})),d.createElement(MT,{onItemClick:Ge,mode:R==="horizontal"?"vertical":R,itemIcon:Q,expandIcon:te},ze)}),oM=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=zy(n),o=$pe(r,i),s=wV();d.useEffect(function(){if(s)return s.registerPath(n,i),function(){s.unregisterPath(n,i)}},[i]);var a;return s?a=o:a=d.createElement(ukt,V({ref:t},e),o),d.createElement(vUe.Provider,{value:i},a)});function xV(e){var t=e.className,n=e.style,r=d.useContext(Ag),i=r.prefixCls,o=wV();return o?null:d.createElement("li",{role:"separator",className:we("".concat(i,"-item-divider"),t),style:n})}var dkt=["className","title","eventKey","children"],fkt=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=on(e,dkt),s=d.useContext(Ag),a=s.prefixCls,l="".concat(a,"-item-group");return d.createElement("li",V({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:we(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),PT=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=zy(n),o=$pe(r,i),s=wV();return s?o:d.createElement(fkt,V({ref:t},$i(e,["warnKey"])),o)}),hkt=["label","children","key","type","extra"];function dle(e,t,n){var r=t.item,i=t.group,o=t.submenu,s=t.divider;return(e||[]).map(function(a,l){if(a&&nn(a)==="object"){var c=a,u=c.label,f=c.children,h=c.key,g=c.type,p=c.extra,m=on(c,hkt),v=h??"tmp-".concat(l);return f||g==="group"?g==="group"?d.createElement(i,V({key:v},m,{title:u}),dle(f,t,n)):d.createElement(o,V({key:v},m,{title:u}),dle(f,t,n)):g==="divider"?d.createElement(s,V({key:v},m)):d.createElement(r,V({key:v},m,{extra:p}),u,(!!p||p===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},p))}return null}).filter(function(a){return a})}function zwe(e,t,n,r,i){var o=e,s=se({divider:xV,item:D0,group:PT,submenu:oM},r);return t&&(o=dle(t,s,i)),$pe(o,n)}var gkt=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],E6=[],pkt=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,s=r.rootClassName,a=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,h=r.children,g=r.direction,p=r.id,m=r.mode,v=m===void 0?"vertical":m,C=r.inlineCollapsed,y=r.disabled,b=r.disabledOverflow,S=r.subMenuOpenDelay,w=S===void 0?.1:S,x=r.subMenuCloseDelay,E=x===void 0?.1:x,R=r.forceSubMenuRender,O=r.defaultOpenKeys,T=r.openKeys,M=r.activeKey,_=r.defaultActiveFirst,F=r.selectable,D=F===void 0?!0:F,k=r.multiple,L=k===void 0?!1:k,I=r.defaultSelectedKeys,A=r.selectedKeys,N=r.onSelect,B=r.onDeselect,z=r.inlineIndent,j=z===void 0?24:z,W=r.motion,G=r.defaultMotions,K=r.triggerSubMenuAction,q=K===void 0?"hover":K,X=r.builtinPlacements,Q=r.itemIcon,te=r.expandIcon,ne=r.overflowedIndicator,Z=ne===void 0?"...":ne,ee=r.overflowedIndicatorPopupClassName,J=r.getPopupContainer,oe=r.onClick,le=r.onOpenChange,ge=r.onKeyDown;r.openAnimation,r.openTransitionName;var he=r._internalRenderMenuItem,ye=r._internalRenderSubMenuItem,ue=r._internalComponents,ve=on(r,gkt),de=d.useMemo(function(){return[zwe(h,f,E6,ue,o),zwe(h,f,E6,{},o)]},[h,f,ue]),xe=Ce(de,2),Ee=xe[0],De=xe[1],Be=d.useState(!1),Ge=Ce(Be,2),Ue=Ge[0],We=Ge[1],Ve=d.useRef(),Fe=qNt(p),ke=g==="rtl",Ye=ir(O,{value:T,postState:function(Qt){return Qt||E6}}),ze=Ce(Ye,2),Re=ze[0],Le=ze[1],Me=function(Qt){var Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function $r(){Le(Qt),le==null||le(Qt)}Wn?fo.flushSync($r):$r()},be=d.useState(Re),je=Ce(be,2),Xe=je[0],ft=je[1],Tt=d.useRef(!1),tt=d.useMemo(function(){return(v==="inline"||v==="vertical")&&C?["vertical",C]:[v,!1]},[v,C]),pt=Ce(tt,2),$t=pt[0],wt=pt[1],It=$t==="inline",Ct=d.useState($t),ot=Ce(Ct,2),nt=ot[0],fe=ot[1],Te=d.useState(wt),$e=Ce(Te,2),He=$e[0],it=$e[1];d.useEffect(function(){fe($t),it(wt),Tt.current&&(It?Le(Xe):Me(E6))},[$t,wt]);var at=d.useState(0),gt=Ce(at,2),yt=gt[0],st=gt[1],Ze=yt>=Ee.length-1||nt!=="horizontal"||b;d.useEffect(function(){It&&ft(Re)},[Re]),d.useEffect(function(){return Tt.current=!0,function(){Tt.current=!1}},[]);var dt=WNt(),At=dt.registerPath,kt=dt.unregisterPath,pn=dt.refreshOverflowKeys,ln=dt.isSubPathKey,Lt=dt.getKeyPath,xt=dt.getKeys,Rt=dt.getSubPathKeys,Ft=d.useMemo(function(){return{registerPath:At,unregisterPath:kt}},[At,kt]),hn=d.useMemo(function(){return{isSubPathKey:ln}},[ln]);d.useEffect(function(){pn(Ze?E6:Ee.slice(yt+1).map(function(bn){return bn.key}))},[yt,Ze]);var Mt=ir(M||_&&((n=Ee[0])===null||n===void 0?void 0:n.key),{value:M}),mt=Ce(Mt,2),jt=mt[0],tn=mt[1],Cn=i$(function(bn){tn(bn)}),Ln=i$(function(){tn(void 0)});d.useImperativeHandle(t,function(){return{list:Ve.current,focus:function(Qt){var Wn,$r=xt(),Yt=cle($r,Fe),Jt=Yt.elements,sr=Yt.key2element,br=Yt.element2key,Jr=xpe(Ve.current,Jt),oi=jt??(Jr[0]?br.get(Jr[0]):(Wn=Ee.find(function(Bn){return!Bn.props.disabled}))===null||Wn===void 0?void 0:Wn.key),Br=sr.get(oi);if(oi&&Br){var Pi;Br==null||(Pi=Br.focus)===null||Pi===void 0||Pi.call(Br,Qt)}}}});var cn=ir(I||[],{value:A,postState:function(Qt){return Array.isArray(Qt)?Qt:Qt==null?E6:[Qt]}}),Dt=Ce(cn,2),sn=Dt[0],Sn=Dt[1],Tn=function(Qt){if(D){var Wn=Qt.key,$r=sn.includes(Wn),Yt;L?$r?Yt=sn.filter(function(sr){return sr!==Wn}):Yt=[].concat(ut(sn),[Wn]):Yt=[Wn],Sn(Yt);var Jt=se(se({},Qt),{},{selectedKeys:Yt});$r?B==null||B(Jt):N==null||N(Jt)}!L&&Re.length&&nt!=="inline"&&Me(E6)},Jn=i$(function(bn){oe==null||oe(Qz(bn)),Tn(bn)}),Ar=i$(function(bn,Qt){var Wn=Re.filter(function(Yt){return Yt!==bn});if(Qt)Wn.push(bn);else if(nt!=="inline"){var $r=Rt(bn);Wn=Wn.filter(function(Yt){return!$r.has(Yt)})}Uf(Re,Wn,!0)||Me(Wn,!0)}),Vr=function(Qt,Wn){var $r=Wn??!Re.includes(Qt);Ar(Qt,$r)},Ui=jNt(nt,jt,ke,Fe,Ve,xt,Lt,tn,Vr,ge);d.useEffect(function(){We(!0)},[]);var Bi=d.useMemo(function(){return{_internalRenderMenuItem:he,_internalRenderSubMenuItem:ye}},[he,ye]),Gr=nt!=="horizontal"||b?Ee:Ee.map(function(bn,Qt){return d.createElement(MT,{key:bn.key,overflowDisabled:Qt>yt},bn)}),Fi=d.createElement(Eg,V({id:p,ref:Ve,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:D0,className:we(o,"".concat(o,"-root"),"".concat(o,"-").concat(nt),l,ie(ie({},"".concat(o,"-inline-collapsed"),He),"".concat(o,"-rtl"),ke),s),dir:g,style:a,role:"menu",tabIndex:u,data:Gr,renderRawItem:function(Qt){return Qt},renderRawRest:function(Qt){var Wn=Qt.length,$r=Wn?Ee.slice(-Wn):null;return d.createElement(oM,{eventKey:ule,title:Z,disabled:Ze,internalPopupClose:Wn===0,popupClassName:ee},$r)},maxCount:nt!=="horizontal"||b?Eg.INVALIDATE:Eg.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Qt){st(Qt)},onKeyDown:Ui},ve));return d.createElement(wpe.Provider,{value:Bi},d.createElement(hUe.Provider,{value:Fe},d.createElement(MT,{prefixCls:o,rootClassName:s,mode:nt,openKeys:Re,rtl:ke,disabled:y,motion:Ue?W:null,defaultMotions:Ue?G:null,activeKey:jt,onActive:Cn,onInactive:Ln,selectedKeys:sn,inlineIndent:j,subMenuOpenDelay:w,subMenuCloseDelay:E,forceSubMenuRender:R,builtinPlacements:X,triggerSubMenuAction:q,getPopupContainer:J,itemIcon:Q,expandIcon:te,onItemClick:Jn,onOpenChange:Ar},d.createElement(CUe.Provider,{value:hn},Fi),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(mUe.Provider,{value:Ft},De)))))}),b3=pkt;b3.Item=D0;b3.SubMenu=oM;b3.ItemGroup=PT;b3.Divider=xV;const mkt=Object.freeze(Object.defineProperty({__proto__:null,Divider:xV,Item:D0,ItemGroup:PT,MenuItem:D0,MenuItemGroup:PT,SubMenu:oM,default:b3,useFullPath:zy},Symbol.toStringTag,{value:"Module"}));var vkt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ckt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vkt}))},EUe=d.forwardRef(Ckt),ykt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},bkt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ykt}))},L0=d.forwardRef(bkt);const Skt=e=>!isNaN(parseFloat(e))&&isFinite(e),RUe=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),wkt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:s,headerColor:a,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:s,color:a,lineHeight:Ne(o),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},$Ue=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:s,colorTextLightSolid:a,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+s*2,triggerBg:"#002140",triggerColor:a,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},OUe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],TUe=Yr("Layout",e=>[wkt(e)],$Ue,{deprecatedTokens:OUe}),xkt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:s,triggerColor:a,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadius:h,lightSiderBg:g,lightTriggerColor:p,lightTriggerBg:m,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:a,lineHeight:Ne(s),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}},"&-light":{background:g,[`${t}-trigger`]:{color:p,background:m},[`${t}-zero-width-trigger`]:{color:p,background:m,border:`1px solid ${v}`,borderInlineStart:0}}}}},Ekt=Yr(["Layout","Sider"],e=>({[`${e.antCls}-layout`]:xkt(e)}),$Ue,{deprecatedTokens:OUe});var Rkt=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 Bwe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},EV=d.createContext({}),$kt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),IUe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:s=!1,theme:a="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:g,breakpoint:p,onCollapse:m,onBreakpoint:v}=e,C=Rkt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=d.useContext(RUe),[b,S]=d.useState("collapsed"in e?e.collapsed:s),[w,x]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const E=(I,A)=>{"collapsed"in e||S(I),m==null||m(I,A)},{getPrefixCls:R}=d.useContext(vn),O=R("layout-sider",n),[T,M,_]=Ekt(O),F=d.useRef(null);F.current=I=>{x(I.matches),v==null||v(I.matches),b!==I.matches&&E(I.matches,"responsive")},d.useEffect(()=>{function I(N){return F.current(N)}let A;if(typeof window<"u"){const{matchMedia:N}=window;if(N&&p&&p in Bwe){A=N(`screen and (max-width: ${Bwe[p]})`);try{A.addEventListener("change",I)}catch{A.addListener(I)}I(A)}}return()=>{try{A==null||A.removeEventListener("change",I)}catch{A==null||A.removeListener(I)}}},[p]),d.useEffect(()=>{const I=$kt("ant-sider-");return y.addSider(I),()=>y.removeSider(I)},[]);const D=()=>{E(!b,"clickTrigger")},k=()=>{const I=$i(C,["collapsed"]),A=b?h:f,N=Skt(A)?`${A}px`:String(A),B=parseFloat(String(h||0))===0?d.createElement("span",{onClick:D,className:we(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:g},i||d.createElement(EUe,null)):null,W={expanded:u?d.createElement(Xf,null):d.createElement(L0,null),collapsed:u?d.createElement(L0,null):d.createElement(Xf,null)}[b?"collapsed":"expanded"],G=i!==null?B||d.createElement("div",{className:`${O}-trigger`,onClick:D,style:{width:N}},i||W):null,K=Object.assign(Object.assign({},l),{flex:`0 0 ${N}`,maxWidth:N,minWidth:N,width:N}),q=we(O,`${O}-${a}`,{[`${O}-collapsed`]:!!b,[`${O}-has-trigger`]:c&&i!==null&&!B,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(N)===0},r,M,_);return d.createElement("aside",Object.assign({className:q},I,{style:K,ref:t}),d.createElement("div",{className:`${O}-children`},o),c||w&&B?G:null)},L=d.useMemo(()=>({siderCollapsed:b}),[b]);return T(d.createElement(EV.Provider,{value:L},k()))});var Okt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Tkt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Okt}))},rv=d.forwardRef(Tkt);const Zz=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Ikt=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 MUe=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=Ikt(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=d.useContext(vn),s=o("menu",t),a=we({[`${s}-item-divider-dashed`]:!!r},n);return d.createElement(xV,Object.assign({className:a},i))},PUe=e=>{var t;const{className:n,children:r,icon:i,title:o,danger:s,extra:a}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:h}=d.useContext(Zz),g=b=>{const S=r==null?void 0:r[0],w=d.createElement("span",{className:we(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!a||a===0})},r);return(!i||d.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof S=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},S.charAt(0)):w},{siderCollapsed:p}=d.useContext(EV);let m=o;typeof o>"u"?m=c?r:"":o===!1&&(m="");const v={title:m};!p&&!h&&(v.title=null,v.open=!1);const C=Rs(r).length;let y=d.createElement(D0,Object.assign({},$i(e,["title","icon","danger"]),{className:we({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:(i?C+1:C)===1},n),title:typeof o=="string"?o:void 0}),js(i,{className:we(d.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),g(h));return f||(y=d.createElement(Gm,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};var Mkt=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 Jz=d.createContext(null),Pkt=d.forwardRef((e,t)=>{const{children:n}=e,r=Mkt(e,["children"]),i=d.useContext(Jz),o=d.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=Qje(n),a=Od(t,s?v3(n):null);return d.createElement(Jz.Provider,{value:o},d.createElement(kC,{space:!0},s?d.cloneElement(n,{ref:a}):n))}),_kt=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:s,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Ne(o)} ${s} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,
|
||
> ${t}-item-active,
|
||
> ${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,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ne(n)},[`${t}-item-group-list ${t}-submenu-title,
|
||
${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,
|
||
> ${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
|
||
`]:{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}-submenu-title`]:{paddingInline:`${Ne(e.calc(r).mul(2).equal())} ${Ne(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},Gwe(e)),Wwe(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${s}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Wwe(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
||
&-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:w,dangerItemSelectedBg:p,menuSubMenuBg:f,horizontalItemSelectedColor:h,horizontalItemSelectedBg:g});return[Lkt(O),_kt(O),Dkt(O),jwe(O,"light"),jwe(T,"dark"),Akt(O),ZI(O),Y4(O,"slide-up"),Y4(O,"slide-down"),Wx(O,"zoom-big")]},Fkt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},_Ue=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,s=d.useContext(Zz),{prefixCls:a,inlineCollapsed:l,theme:c}=s,u=zy();let f;if(!r)f=l&&!u.length&&i&&typeof i=="string"?d.createElement("div",{className:`${a}-inline-collapsed-noicon`},i.charAt(0)):d.createElement("span",{className:`${a}-title-content`},i);else{const p=d.isValidElement(i)&&i.type==="span";f=d.createElement(d.Fragment,null,js(r,{className:we(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${a}-item-icon`)}),p?i:d.createElement("span",{className:`${a}-title-content`},i))}const h=d.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[g]=y3("Menu");return d.createElement(Zz.Provider,{value:h},d.createElement(oM,Object.assign({},$i(e,["icon"]),{title:f,popupClassName:we(a,n,`${a}-${o||c}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var kkt=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 Jee(e){return e===null||e===!1}const zkt={item:PUe,submenu:_Ue,divider:MUe},Bkt=d.forwardRef((e,t)=>{var n;const r=d.useContext(Jz),i=r||{},{getPrefixCls:o,getPopupContainer:s,direction:a,menu:l}=d.useContext(vn),c=o(),{prefixCls:u,className:f,style:h,theme:g="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:v,siderCollapsed:C,rootClassName:y,mode:b,selectable:S,onClick:w,overflowedIndicatorPopupClassName:x}=e,E=kkt(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=$i(E,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:b});const O=Hn(function(){var j;w==null||w.apply(void 0,arguments),(j=i.onClick)===null||j===void 0||j.call(i)}),T=i.mode||b,M=S??i.selectable,_=v??C,F={horizontal:{motionName:`${c}-slide-up`},inline:TT(c),other:{motionName:`${c}-zoom-big`}},D=o("menu",u||i.prefixCls),k=Oo(D),[L,I,A]=Nkt(D,k,!r),N=we(`${D}-${g}`,l==null?void 0:l.className,f),B=d.useMemo(()=>{var j,W;if(typeof p=="function"||Jee(p))return p||null;if(typeof i.expandIcon=="function"||Jee(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||Jee(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const G=(j=p??(i==null?void 0:i.expandIcon))!==null&&j!==void 0?j:l==null?void 0:l.expandIcon;return js(G,{className:we(`${D}-submenu-expand-icon`,d.isValidElement(G)?(W=G.props)===null||W===void 0?void 0:W.className:void 0)})},[p,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,D]),z=d.useMemo(()=>({prefixCls:D,inlineCollapsed:_||!1,direction:a,firstLevel:!0,theme:g,mode:T,disableMenuItemTitleTooltip:m}),[D,_,a,m,g]);return L(d.createElement(Jz.Provider,{value:null},d.createElement(Zz.Provider,{value:z},d.createElement(b3,Object.assign({getPopupContainer:s,overflowedIndicator:d.createElement(rv,null),overflowedIndicatorPopupClassName:we(D,`${D}-${g}`,x),mode:T,selectable:M,onClick:O},R,{inlineCollapsed:_,style:Object.assign(Object.assign({},l==null?void 0:l.style),h),className:N,prefixCls:D,direction:a,defaultMotions:F,expandIcon:B,ref:t,rootClassName:we(y,I,i.rootClassName,A,k),_internalComponents:zkt})))))}),J4=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(EV);return d.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),d.createElement(Bkt,Object.assign({ref:n},e,r))});J4.Item=PUe;J4.SubMenu=_Ue;J4.Divider=MUe;J4.ItemGroup=PT;const Hkt=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},jkt=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:o,antCls:s,iconCls:a,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:h,fontSizeIcon:g,controlPaddingHorizontal:p,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${a}-down, & > ${s}-btn-icon > ${a}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${a}-down`]:{fontSize:g},[`${a}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${a}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft,
|
||
&${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:npe},[`&${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:ipe},[`&${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:rpe},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft,
|
||
&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top,
|
||
&${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")),[W,G]=ir(!1,{value:g??m}),K=Hn(J=>{p==null||p(J,{source:"trigger"}),v==null||v(J),G(J)}),q=we(u,f,L,I,D,T==null?void 0:T.className,{[`${F}-rtl`]:O==="rtl"}),X=sUe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:b,offset:A.marginXXS,arrowWidth:r?A.sizePopupArrow:0,borderRadius:A.borderRadius}),Q=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(p==null||p(!1,{source:"menu"}),G(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),te=()=>{let J;return n!=null&&n.items?J=d.createElement(J4,Object.assign({},n)):typeof w=="function"?J=w():J=w,l&&(J=l(J)),J=d.Children.only(typeof J=="string"?d.createElement("span",null,J):J),d.createElement(Pkt,{prefixCls:`${F}-menu`,rootClassName:we(I,D),expandIcon:d.createElement("span",{className:`${F}-menu-submenu-arrow`},d.createElement(Xf,{className:`${F}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:oe=>{}},J)},[ne,Z]=y3("Dropdown",h==null?void 0:h.zIndex);let ee=d.createElement(Spe,Object.assign({alignPoint:j},$i(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:y,visible:W,builtinPlacements:X,arrow:!!r,overlayClassName:q,prefixCls:F,getPopupContainer:c||E,transitionName:M,trigger:z,overlay:te,placement:_,onVisibleChange:K,overlayStyle:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),h),{zIndex:ne})}),B);return ne&&(ee=d.createElement(Uj.Provider,{value:Z},ee)),k(ee)},Wkt=ppe(RV,"align",void 0,"dropdown",e=>e),Ukt=e=>d.createElement(Wkt,Object.assign({},e),d.createElement("span",null));RV._InternalPanelDoNotUseOrYouWillBeFired=Ukt;var AUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jo,function(){return function(n,r){r.prototype.weekday=function(i){var o=this.$locale().weekStart||0,s=this.$W,a=(s<o?s+7:s)-o;return this.$utils().u(i)?a:this.subtract(a,"day").add(i,"day")}}})})(AUe);var qkt=AUe.exports,DUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jo,function(){return function(n,r,i){var o=r.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},a=function(f,h,g,p,m){var v=f.name?f:f.$locale(),C=s(v[h]),y=s(v[g]),b=C||y.map(function(w){return w.slice(0,p)});if(!m)return b;var S=v.weekStart;return b.map(function(w,x){return b[(x+(S||0))%7]})},l=function(){return i.Ls[i.locale()]},c=function(f,h){return f.formats[h]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,m,v){return m||v.slice(1)})}(f.formats[h.toUpperCase()])},u=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):a(f,"months")},monthsShort:function(h){return h?h.format("MMM"):a(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):a(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):a(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):a(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},i.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(h){return c(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},i.months=function(){return a(l(),"months")},i.monthsShort=function(){return a(l(),"monthsShort","months",3)},i.weekdays=function(f){return a(l(),"weekdays",null,null,f)},i.weekdaysShort=function(f){return a(l(),"weekdaysShort","weekdays",3,f)},i.weekdaysMin=function(f){return a(l(),"weekdaysMin","weekdays",2,f)}}})})(DUe);var Kkt=DUe.exports,LUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jo,function(){var n="week",r="year";return function(i,o,s){var a=o.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(c),f=s(this).endOf(n);if(u.isBefore(f))return 1}var h=s(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(h,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(LUe);var Ykt=LUe.exports,FUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jo,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),o=this.week(),s=this.year();return o===1&&i===11?s+1:i===0&&o>=52?s-1:s}}})})(FUe);var Xkt=FUe.exports,NUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jo,function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(s){var a=this,l=this.$locale();if(!this.isValid())return o.bind(this)(s);var c=this.$utils(),u=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),f==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return f}});return o.bind(this)(u)}}})})(NUe);var Qkt=NUe.exports,kUe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Jo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(C){this[v]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var y=C.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b}(v)}],h=function(v){var C=l[v];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(v,C){var y,b=l.meridiem;if(b){for(var S=1;S<=24;S+=1)if(v.indexOf(b(S,0,C))>-1){y=S>12;break}}else y=v===(C?"pm":"PM");return y},p={A:[a,function(v){this.afternoon=g(v,!1)}],a:[a,function(v){this.afternoon=g(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[o,u("day")],Do:[a,function(v){var C=l.ordinal,y=v.match(/\d+/);if(this.day=y[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],w:[s,u("week")],ww:[o,u("week")],M:[s,u("month")],MM:[o,u("month")],MMM:[a,function(v){var C=h("months"),y=(h("monthsShort")||C.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[a,function(v){var C=h("months").indexOf(v)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function m(v){var C,y;C=v,y=l&&l.formats;for(var b=(v=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,M,_){var F=_&&_.toUpperCase();return M||y[_]||n[_]||y[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,k,L){return k||L.slice(1)})})).match(r),S=b.length,w=0;w<S;w+=1){var x=b[w],E=p[x],R=E&&E[0],O=E&&E[1];b[w]=O?{regex:R,parser:O}:x.replace(/^\[|\]$/g,"")}return function(T){for(var M={},_=0,F=0;_<S;_+=1){var D=b[_];if(typeof D=="string")F+=D.length;else{var k=D.regex,L=D.parser,I=T.slice(F),A=k.exec(I)[0];L.call(M,A),T=T.replace(A,"")}}return function(N){var B=N.afternoon;if(B!==void 0){var z=N.hours;B?z<12&&(N.hours+=12):z===12&&(N.hours=0),delete N.afternoon}}(M),M}}return function(v,C,y){y.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var b=C.prototype,S=b.parse;b.parse=function(w){var x=w.date,E=w.utc,R=w.args;this.$u=E;var O=R[1];if(typeof O=="string"){var T=R[2]===!0,M=R[3]===!0,_=T||M,F=R[2];M&&(F=R[2]),l=this.$locale(),!T&&F&&(l=y.Ls[F]),this.$d=function(I,A,N,B){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*I);var z=m(A)(I),j=z.year,W=z.month,G=z.day,K=z.hours,q=z.minutes,X=z.seconds,Q=z.milliseconds,te=z.zone,ne=z.week,Z=new Date,ee=G||(j||W?1:Z.getDate()),J=j||Z.getFullYear(),oe=0;j&&!W||(oe=W>0?W-1:Z.getMonth());var le,ge=K||0,he=q||0,ye=X||0,ue=Q||0;return te?new Date(Date.UTC(J,oe,ee,ge,he,ye,ue+60*te.offset*1e3)):N?new Date(Date.UTC(J,oe,ee,ge,he,ye,ue)):(le=new Date(J,oe,ee,ge,he,ye,ue),ne&&(le=B(le).week(ne).toDate()),le)}catch{return new Date("")}}(x,O,E,y),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),_&&x!=this.format(O)&&(this.$d=new Date("")),l={}}else if(O instanceof Array)for(var D=O.length,k=1;k<=D;k+=1){R[1]=O[k-1];var L=y.apply(this,R);if(L.isValid()){this.$d=L.$d,this.$L=L.$L,this.init();break}k===D&&(this.$d=new Date(""))}else S.call(this,w)}}})})(kUe);var Zkt=kUe.exports;function $V(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}function zUe(e,t){var n=$V(e,t),r=n==null?void 0:n.toLowerCase().endsWith("right"),i=r?"insetInlineEnd":"insetInlineStart";return t&&(i=["insetInlineStart","insetInlineEnd"].find(function(o){return o!==i})),i}var qg=d.createContext(null),Jkt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function BUe(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,o=e.transitionName,s=e.getPopupContainer,a=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,f=u===void 0?Jkt:u,h=e.direction,g=e.visible,p=e.onClose,m=d.useContext(qg),v=m.prefixCls,C="".concat(v,"-dropdown"),y=$V(c,h==="rtl");return d.createElement(Ny,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:f,prefixCls:C,popupTransitionName:o,popup:t,popupAlign:i,popupVisible:g,popupClassName:we(r,ie(ie({},"".concat(C,"-range"),l),"".concat(C,"-rtl"),h==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:function(S){S||p()}},a)}function Ope(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function By(e){return e==null?[]:Array.isArray(e)?e:[e]}function q$(e,t,n){var r=ut(e);return r[t]=n,r}function OV(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function HUe(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function jUe(e,t,n){var r=n!==void 0?n:t[t.length-1],i=t.find(function(o){return e[o]});return r!==i?e[i]:void 0}function VUe(e){return OV(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Tpe(e,t,n,r){var i=d.useMemo(function(){return e||function(s,a){var l=s;return t&&a.type==="date"?t(l,a.today):n&&a.type==="month"?n(l,a.locale):a.originNode}},[e,n,t]),o=d.useCallback(function(s,a){return i(s,se(se({},a),{},{range:r}))},[i,r]);return o}function GUe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),i=Ce(r,2),o=i[0],s=i[1],a=function(u,f){s(function(h){return q$(h,f,u)})},l=d.useMemo(function(){return o.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,o,t,n]);return[l,a]}function WUe(e,t,n,r,i){var o="",s=[];return e&&s.push(i?"hh":"HH"),t&&s.push("mm"),n&&s.push("ss"),o=s.join(":"),r&&(o+=".SSS"),i&&(o+=" A"),o}function ezt(e,t,n,r,i,o){var s=e.fieldDateTimeFormat,a=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,h=e.fieldQuarterFormat,g=e.yearFormat,p=e.cellYearFormat,m=e.cellQuarterFormat,v=e.dayFormat,C=e.cellDateFormat,y=WUe(t,n,r,i,o);return se(se({},e),{},{fieldDateTimeFormat:s||"YYYY-MM-DD ".concat(y),fieldDateFormat:a||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:p||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:C||v||"D"})}function UUe(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,o=t.showMillisecond,s=t.use12Hours;return ce.useMemo(function(){return ezt(e,n,r,i,o,s)},[e,n,r,i,o,s])}function JE(e,t,n){return n??t.some(function(r){return e.includes(r)})}var tzt=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function nzt(e){var t=OV(e,tzt),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=nn(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function rzt(e){return e&&typeof e=="string"}function qUe(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function KUe(e,t,n,r,i){var o=t,s=n,a=r;if(!e&&!o&&!s&&!a&&!i)o=!0,s=!0,a=!0;else if(e){var l,c,u,f=[o,s,a].some(function(p){return p===!1}),h=[o,s,a].some(function(p){return p===!0}),g=f?!0:!h;o=(l=o)!==null&&l!==void 0?l:g,s=(c=s)!==null&&c!==void 0?c:g,a=(u=a)!==null&&u!==void 0?u:g}return[o,s,a,i]}function YUe(e){var t=e.showTime,n=nzt(e),r=Ce(n,2),i=r[0],o=r[1],s=t&&nn(t)==="object"?t:{},a=se(se({defaultOpenValue:s.defaultOpenValue||s.defaultValue},i),s),l=a.showMillisecond,c=a.showHour,u=a.showMinute,f=a.showSecond,h=qUe(c,u,f,l),g=KUe(h,c,u,f,l),p=Ce(g,3);return c=p[0],u=p[1],f=p[2],[a,se(se({},a),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),a.format,o]}function XUe(e,t,n,r,i){var o=e==="time";if(e==="datetime"||o){for(var s=r,a=HUe(e,i,null),l=a,c=[t,n],u=0;u<c.length;u+=1){var f=By(c[u])[0];if(rzt(f)){l=f;break}}var h=s.showHour,g=s.showMinute,p=s.showSecond,m=s.showMillisecond,v=s.use12Hours,C=JE(l,["a","A","LT","LLL","LTS"],v),y=qUe(h,g,p,m);y||(h=JE(l,["H","h","k","LT","LLL"]),g=JE(l,["m","LT","LLL"]),p=JE(l,["s","LTS"]),m=JE(l,["SSS"]));var b=KUe(y,h,g,p,m),S=Ce(b,3);h=S[0],g=S[1],p=S[2];var w=t||WUe(h,g,p,m,C);return se(se({},s),{},{format:w,showHour:h,showMinute:g,showSecond:p,showMillisecond:m,use12Hours:C})}return null}function izt(e,t,n){if(t===!1)return null;var r=t&&nn(t)==="object"?t:{};return r.clearIcon||n||d.createElement("span",{className:"".concat(e,"-clear-btn")})}var ete=7;function S3(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function fle(e,t,n){return S3(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function zC(e,t,n){return S3(t,n,function(){return e.getYear(t)===e.getYear(n)})}function Uwe(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function ozt(e,t,n){return S3(t,n,function(){return zC(e,t,n)&&Uwe(e,t)===Uwe(e,n)})}function Ipe(e,t,n){return S3(t,n,function(){return zC(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function Mpe(e,t,n){return S3(t,n,function(){return zC(e,t,n)&&Ipe(e,t,n)&&e.getDate(t)===e.getDate(n)})}function QUe(e,t,n){return S3(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function ZUe(e,t,n){return S3(t,n,function(){return Mpe(e,t,n)&&QUe(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function o$(e,t,n,r){return S3(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return zC(e,i,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Hl(e,t,n,r,i){switch(i){case"date":return Mpe(e,n,r);case"week":return o$(e,t.locale,n,r);case"month":return Ipe(e,n,r);case"quarter":return ozt(e,n,r);case"year":return zC(e,n,r);case"decade":return fle(e,n,r);case"time":return QUe(e,n,r);default:return ZUe(e,n,r)}}function TV(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function SD(e,t,n,r,i){return Hl(e,t,n,r,i)?!0:e.isAfter(n,r)}function szt(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),o=t.getWeekDay(i),s=t.addDate(i,r-o);return t.getMonth(s)===t.getMonth(n)&&t.getDate(s)>1&&(s=t.addDate(s,-7)),s}function ia(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function eB(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(s,a){n?r=e[s](r,e[i[a]](n)):r=e[s](r,0)}),r}function azt(e,t,n,r,i){var o=Hn(function(s,a){return!!(n&&n(s,a)||r&&e.isAfter(r,s)&&!Hl(e,t,r,s,a.type)||i&&e.isAfter(s,i)&&!Hl(e,t,i,s,a.type))});return o}function lzt(e,t,n){return d.useMemo(function(){var r=HUe(e,t,n),i=By(r),o=i[0],s=nn(o)==="object"&&o.type==="mask"?o.format:null;return[i.map(function(a){return typeof a=="string"||typeof a=="function"?a:a.format}),s]},[e,t,n])}function czt(e,t,n){return typeof e[0]=="function"||n?!0:t}function uzt(e,t,n,r){var i=Hn(function(o,s){var a=se({type:t},s);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if((t==="date"||t==="time")&&r){var l,c=s&&s.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,o,c,{from:a.from}))||{},f=u.disabledHours,h=u.disabledMinutes,g=u.disabledSeconds,p=u.disabledMilliseconds,m=r.disabledHours,v=r.disabledMinutes,C=r.disabledSeconds,y=f||m,b=h||v,S=g||C,w=e.getHour(o),x=e.getMinute(o),E=e.getSecond(o),R=e.getMillisecond(o);if(y&&y().includes(w)||b&&b(w).includes(x)||S&&S(w,x).includes(E)||p&&p(w,x,E).includes(R))return!0}return!1});return i}function wD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&By(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function JUe(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,o=i===void 0?"date":i,s=e.prefixCls,a=s===void 0?"rc-picker":s,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,h=e.order,g=h===void 0?!0:h,p=e.components,m=p===void 0?{}:p,v=e.inputRender,C=e.allowClear,y=e.clearIcon,b=e.needConfirm,S=e.multiple,w=e.format,x=e.inputReadOnly,E=e.disabledDate,R=e.minDate,O=e.maxDate,T=e.showTime,M=e.value,_=e.defaultValue,F=e.pickerValue,D=e.defaultPickerValue,k=wD(M),L=wD(_),I=wD(F),A=wD(D),N=o==="date"&&T?"datetime":o,B=N==="time"||N==="datetime",z=B||S,j=b??B,W=YUe(e),G=Ce(W,4),K=G[0],q=G[1],X=G[2],Q=G[3],te=UUe(r,q),ne=d.useMemo(function(){return XUe(N,X,Q,K,te)},[N,X,Q,K,te]),Z=d.useMemo(function(){return se(se({},e),{},{prefixCls:a,locale:te,picker:o,styles:c,classNames:f,order:g,components:se({input:v},m),clearIcon:izt(a,C,y),showTime:ne,value:k,defaultValue:L,pickerValue:I,defaultPickerValue:A},t==null?void 0:t())},[e]),ee=lzt(N,te,w),J=Ce(ee,2),oe=J[0],le=J[1],ge=czt(oe,x,S),he=azt(n,r,E,R,O),ye=uzt(n,o,he,ne),ue=d.useMemo(function(){return se(se({},Z),{},{needConfirm:j,inputReadOnly:ge,disabledDate:he})},[Z,j,ge,he]);return[ue,N,z,oe,le,ye]}function dzt(e,t,n){var r=ir(t,{value:e}),i=Ce(r,2),o=i[0],s=i[1],a=ce.useRef(e),l=ce.useRef(),c=function(){Rr.cancel(l.current)},u=Hn(function(){s(a.current),n&&o!==a.current&&n(a.current)}),f=Hn(function(h,g){c(),a.current=h,h||g?u():l.current=Rr(u)});return ce.useEffect(function(){return c},[]),[o,f]}function eqe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,o=dzt(i,t||!1,r),s=Ce(o,2),a=s[0],l=s[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||a)&&l(u,f.force)}return[a,c]}function tqe(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var o;(o=t.current)===null||o===void 0||o.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function nqe(e,t){return d.useMemo(function(){return e||(t?(ui(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Ce(n,2),i=r[0],o=r[1];return{label:i,value:o}})):[])},[e,t])}function Ppe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,rC(function(){if(e)r.current(e);else{var i=Rr(function(){r.current(e)},n);return function(){Rr.cancel(i)}}},[e])}function rqe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),i=Ce(r,2),o=i[0],s=i[1],a=d.useState(!1),l=Ce(a,2),c=l[0],u=l[1],f=d.useRef([]),h=d.useRef(null),g=d.useRef(null),p=function(S){h.current=S},m=function(S){return h.current===S},v=function(S){u(S)},C=function(S){return S&&(g.current=S),g.current},y=function(S){var w=f.current,x=new Set(w.filter(function(R){return S[R]||t[R]})),E=w[w.length-1]===0?1:0;return x.size>=2||e[E]?null:E};return Ppe(c||n,function(){c||(f.current=[],p(null))}),d.useEffect(function(){c&&f.current.push(o)},[c,o]),[c,v,C,o,s,y,f.current,p,m]}function fzt(e,t,n,r,i,o){var s=n[n.length-1],a=function(c,u){var f=Ce(e,2),h=f[0],g=f[1],p=se(se({},u),{},{from:jUe(e,n)});return s===1&&t[0]&&h&&!Hl(r,i,h,c,p.type)&&r.isAfter(h,c)||s===0&&t[1]&&g&&!Hl(r,i,g,c,p.type)&&r.isAfter(c,g)?!0:o==null?void 0:o(c,p)};return a}function s$(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var tte=[];function iqe(e,t,n,r,i,o,s,a){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:tte,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:tte,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:tte,f=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,p=s==="time",m=o||0,v=function(I){var A=e.getNow();return p&&(A=eB(e,A)),l[I]||n[I]||A},C=Ce(c,2),y=C[0],b=C[1],S=ir(function(){return v(0)},{value:y}),w=Ce(S,2),x=w[0],E=w[1],R=ir(function(){return v(1)},{value:b}),O=Ce(R,2),T=O[0],M=O[1],_=d.useMemo(function(){var L=[x,T][m];return p?L:eB(e,L,u[m])},[p,x,T,m,e,u]),F=function(I){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",N=[E,M][m];N(I);var B=[x,T];B[m]=I,f&&(!Hl(e,t,x,B[0],s)||!Hl(e,t,T,B[1],s))&&f(B,{source:A,range:m===1?"end":"start",mode:r})},D=function(I,A){if(a){var N={date:"month",week:"month",month:"year",quarter:"year"},B=N[s];if(B&&!Hl(e,t,I,A,B))return s$(e,s,A,-1);if(s==="year"&&I){var z=Math.floor(e.getYear(I)/10),j=Math.floor(e.getYear(A)/10);if(z!==j)return s$(e,s,A,-1)}}return A},k=d.useRef(null);return Zn(function(){if(i&&!l[m]){var L=p?null:e.getNow();if(k.current!==null&&k.current!==m?L=[x,T][m^1]:n[m]?L=m===0?n[0]:D(n[0],n[1]):n[m^1]&&(L=n[m^1]),L){h&&e.isAfter(h,L)&&(L=h);var I=a?s$(e,s,L,1):L;g&&e.isAfter(I,g)&&(L=a?s$(e,s,g,-1):g),F(L,"reset")}}},[i,m,n[m]]),d.useEffect(function(){i?k.current=m:k.current=null},[i,m]),Zn(function(){i&&l&&l[m]&&F(l[m],"reset")},[i,m]),[_,F]}function oqe(e,t){var n=d.useRef(e),r=d.useState({}),i=Ce(r,2),o=i[1],s=function(c){return c&&t!==void 0?t:n.current},a=function(c){n.current=c,o({})};return[s,a,s(!0)]}var hzt=[];function sqe(e,t,n){var r=function(s){return s.map(function(a){return ia(a,{generateConfig:e,locale:t,format:n[0]})})},i=function(s,a){for(var l=Math.max(s.length,a.length),c=-1,u=0;u<l;u+=1){var f=s[u]||null,h=a[u]||null;if(f!==h&&!ZUe(e,f,h)){c=u;break}}return[c<0,c!==0]};return[r,i]}function aqe(e,t){return ut(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function gzt(e){var t=oqe(e),n=Ce(t,2),r=n[0],i=n[1],o=Hn(function(){i(e)});return d.useEffect(function(){o()},[e]),[r,i]}function lqe(e,t,n,r,i,o,s,a,l){var c=ir(o,{value:s}),u=Ce(c,2),f=u[0],h=u[1],g=f||hzt,p=gzt(g),m=Ce(p,2),v=m[0],C=m[1],y=sqe(e,t,n),b=Ce(y,2),S=b[0],w=b[1],x=Hn(function(R){var O=ut(R);if(r)for(var T=0;T<2;T+=1)O[T]=O[T]||null;else i&&(O=aqe(O.filter(function(L){return L}),e));var M=w(v(),O),_=Ce(M,2),F=_[0],D=_[1];if(!F&&(C(O),a)){var k=S(O);a(O,k,{range:D?"end":"start"})}}),E=function(){l&&l(v())};return[g,h,v,x,E]}function cqe(e,t,n,r,i,o,s,a,l,c){var u=e.generateConfig,f=e.locale,h=e.picker,g=e.onChange,p=e.allowEmpty,m=e.order,v=o.some(function(F){return F})?!1:m,C=sqe(u,f,s),y=Ce(C,2),b=y[0],S=y[1],w=oqe(t),x=Ce(w,2),E=x[0],R=x[1],O=Hn(function(){R(t)});d.useEffect(function(){O()},[t]);var T=Hn(function(F){var D=F===null,k=ut(F||E());if(D)for(var L=Math.max(o.length,k.length),I=0;I<L;I+=1)o[I]||(k[I]=null);v&&k[0]&&k[1]&&(k=aqe(k,u)),i(k);var A=k,N=Ce(A,2),B=N[0],z=N[1],j=!B,W=!z,G=p?(!j||p[0])&&(!W||p[1]):!0,K=!m||j||W||Hl(u,f,B,z,h)||u.isAfter(z,B),q=(o[0]||!B||!c(B,{activeIndex:0}))&&(o[1]||!z||!c(z,{from:B,activeIndex:1})),X=D||G&&K&&q;if(X){n(k);var Q=S(k,t),te=Ce(Q,1),ne=te[0];g&&!ne&&g(D&&k.every(function(Z){return!Z})?null:k,b(k))}return X}),M=Hn(function(F,D){var k=q$(E(),F,r()[F]);R(k),D&&T()}),_=!a&&!l;return Ppe(!_,function(){_&&(T(),i(t),O())},2),[M,T]}function uqe(e,t,n,r,i){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!i&&(e==="date"||e==="time")}function pzt(e,t,n,r,i,o){var s=e;function a(f,h,g){var p=o[f](s),m=g.find(function(b){return b.value===p});if(!m||m.disabled){var v=g.filter(function(b){return!b.disabled}),C=ut(v).reverse(),y=C.find(function(b){return b.value<=p})||v[0];y&&(p=y.value,s=o[h](s,p))}return p}var l=a("getHour","setHour",t()),c=a("getMinute","setMinute",n(l)),u=a("getSecond","setSecond",r(l,c));return a("getMillisecond","setMillisecond",i(l,c,u)),s}function xD(){return[]}function ED(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,s=[],a=n>=1?n|0:1,l=e;l<=t;l+=a){var c=i.includes(l);(!c||!r)&&s.push({label:Ope(l,o),value:l,disabled:c})}return s}function _pe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,o=r.hourStep,s=o===void 0?1:o,a=r.minuteStep,l=a===void 0?1:a,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,h=f===void 0?100:f,g=r.hideDisabledOptions,p=r.disabledTime,m=r.disabledHours,v=r.disabledMinutes,C=r.disabledSeconds,y=d.useMemo(function(){return n||e.getNow()},[n,e]),b=d.useCallback(function(A){var N=(p==null?void 0:p(A))||{};return[N.disabledHours||m||xD,N.disabledMinutes||v||xD,N.disabledSeconds||C||xD,N.disabledMilliseconds||xD]},[p,m,v,C]),S=d.useMemo(function(){return b(y)},[y,b]),w=Ce(S,4),x=w[0],E=w[1],R=w[2],O=w[3],T=d.useCallback(function(A,N,B,z){var j=ED(0,23,s,g,A()),W=i?j.map(function(X){return se(se({},X),{},{label:Ope(X.value%12||12,2)})}):j,G=function(Q){return ED(0,59,l,g,N(Q))},K=function(Q,te){return ED(0,59,u,g,B(Q,te))},q=function(Q,te,ne){return ED(0,999,h,g,z(Q,te,ne),3)};return[W,G,K,q]},[g,s,i,h,l,u]),M=d.useMemo(function(){return T(x,E,R,O)},[T,x,E,R,O]),_=Ce(M,4),F=_[0],D=_[1],k=_[2],L=_[3],I=function(N,B){var z=function(){return F},j=D,W=k,G=L;if(B){var K=b(B),q=Ce(K,4),X=q[0],Q=q[1],te=q[2],ne=q[3],Z=T(X,Q,te,ne),ee=Ce(Z,4),J=ee[0],oe=ee[1],le=ee[2],ge=ee[3];z=function(){return J},j=oe,W=le,G=ge}var he=pzt(N,z,j,W,G,e);return he};return[I,F,D,k,L]}function mzt(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,o=e.showTime,s=e.onSubmit,a=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,h=d.useContext(qg),g=h.prefixCls,p=h.locale,m=h.button,v=m===void 0?"button":m,C=u.getNow(),y=_pe(u,o,C),b=Ce(y,1),S=b[0],w=r==null?void 0:r(t),x=f(C,{type:t}),E=function(){if(!x){var D=S(C);a(D)}},R="".concat(g,"-now"),O="".concat(R,"-btn"),T=i&&d.createElement("li",{className:R},d.createElement("a",{className:we(O,x&&"".concat(O,"-disabled")),"aria-disabled":x,onClick:E},n==="date"?p.today:p.now)),M=c&&d.createElement("li",{className:"".concat(g,"-ok")},d.createElement(v,{disabled:l,onClick:s},p.ok)),_=(T||M)&&d.createElement("ul",{className:"".concat(g,"-ranges")},T,M);return!w&&!_?null:d.createElement("div",{className:"".concat(g,"-footer")},w&&d.createElement("div",{className:"".concat(g,"-footer-extra")},w),_)}function dqe(e,t,n){function r(i,o){var s=i.findIndex(function(l){return Hl(e,t,l,o,n)});if(s===-1)return[].concat(ut(i),[o]);var a=ut(i);return a.splice(s,1),a}return r}var Hy=d.createContext(null);function IV(){return d.useContext(Hy)}function qx(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,o=e.disabledDate,s=e.minDate,a=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,h=e.values,g=e.pickerValue,p=e.onSelect,m=e.prevIcon,v=e.nextIcon,C=e.superPrevIcon,y=e.superNextIcon,b=r.getNow(),S={now:b,values:h,pickerValue:g,prefixCls:n,disabledDate:o,minDate:s,maxDate:a,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:i,generateConfig:r,onSelect:p,panelType:t,prevIcon:m,nextIcon:v,superPrevIcon:C,superNextIcon:y};return[S,b]}var v4=d.createContext({});function sM(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,o=e.prefixColumn,s=e.rowClassName,a=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,h=f===void 0?!0:f,g=e.disabledDate,p=IV(),m=p.prefixCls,v=p.panelType,C=p.now,y=p.disabledDate,b=p.cellRender,S=p.onHover,w=p.hoverValue,x=p.hoverRangeValue,E=p.generateConfig,R=p.values,O=p.locale,T=p.onSelect,M=g||y,_="".concat(m,"-cell"),F=d.useContext(v4),D=F.onCellDblClick,k=function(W){return R.some(function(G){return G&&Hl(E,O,W,G,v)})},L=[],I=0;I<t;I+=1){for(var A=[],N=void 0,B=function(){var W=I*n+z,G=i(r,W),K=M==null?void 0:M(G,{type:v});z===0&&(N=G,o&&A.push(o(N)));var q=!1,X=!1,Q=!1;if(h&&x){var te=Ce(x,2),ne=te[0],Z=te[1];q=TV(E,ne,Z,G),X=Hl(E,O,G,ne,v),Q=Hl(E,O,G,Z,v)}var ee=a?ia(G,{locale:O,format:a,generateConfig:E}):void 0,J=d.createElement("div",{className:"".concat(_,"-inner")},l(G));A.push(d.createElement("td",{key:z,title:ee,className:we(_,se(ie(ie(ie(ie(ie(ie({},"".concat(_,"-disabled"),K),"".concat(_,"-hover"),(w||[]).some(function(oe){return Hl(E,O,G,oe,v)})),"".concat(_,"-in-range"),q&&!X&&!Q),"".concat(_,"-range-start"),X),"".concat(_,"-range-end"),Q),"".concat(m,"-cell-selected"),!x&&v!=="week"&&k(G)),c(G))),onClick:function(){K||T(G)},onDoubleClick:function(){!K&&D&&D()},onMouseEnter:function(){K||S==null||S(G)},onMouseLeave:function(){K||S==null||S(null)}},b?b(G,{prefixCls:m,originNode:J,today:C,type:v,locale:O}):J))},z=0;z<n;z+=1)B();L.push(d.createElement("tr",{key:I,className:s==null?void 0:s(N)},A))}return d.createElement("div",{className:"".concat(m,"-body")},d.createElement("table",{className:"".concat(m,"-content")},u&&d.createElement("thead",null,d.createElement("tr",null,u)),d.createElement("tbody",null,L)))}var RD={visibility:"hidden"};function Kx(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,o=e.getEnd,s=e.children,a=IV(),l=a.prefixCls,c=a.prevIcon,u=c===void 0?"‹":c,f=a.nextIcon,h=f===void 0?"›":f,g=a.superPrevIcon,p=g===void 0?"«":g,m=a.superNextIcon,v=m===void 0?"»":m,C=a.minDate,y=a.maxDate,b=a.generateConfig,S=a.locale,w=a.pickerValue,x=a.panelType,E="".concat(l,"-header"),R=d.useContext(v4),O=R.hidePrev,T=R.hideNext,M=R.hideHeader,_=d.useMemo(function(){if(!C||!t||!o)return!1;var j=o(t(-1,w));return!SD(b,S,j,C,x)},[C,t,w,o,b,S,x]),F=d.useMemo(function(){if(!C||!n||!o)return!1;var j=o(n(-1,w));return!SD(b,S,j,C,x)},[C,n,w,o,b,S,x]),D=d.useMemo(function(){if(!y||!t||!i)return!1;var j=i(t(1,w));return!SD(b,S,y,j,x)},[y,t,w,i,b,S,x]),k=d.useMemo(function(){if(!y||!n||!i)return!1;var j=i(n(1,w));return!SD(b,S,y,j,x)},[y,n,w,i,b,S,x]),L=function(W){t&&r(t(W,w))},I=function(W){n&&r(n(W,w))};if(M)return null;var A="".concat(E,"-prev-btn"),N="".concat(E,"-next-btn"),B="".concat(E,"-super-prev-btn"),z="".concat(E,"-super-next-btn");return d.createElement("div",{className:E},n&&d.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return I(-1)},tabIndex:-1,className:we(B,F&&"".concat(B,"-disabled")),disabled:F,style:O?RD:{}},p),t&&d.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return L(-1)},tabIndex:-1,className:we(A,_&&"".concat(A,"-disabled")),disabled:_,style:O?RD:{}},u),d.createElement("div",{className:"".concat(E,"-view")},s),t&&d.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return L(1)},tabIndex:-1,className:we(N,D&&"".concat(N,"-disabled")),disabled:D,style:T?RD:{}},h),n&&d.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return I(1)},tabIndex:-1,className:we(z,k&&"".concat(z,"-disabled")),disabled:k,style:T?RD:{}},v))}function MV(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,i=e.locale,o=e.generateConfig,s=e.pickerValue,a=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,f=e.disabledDate,h=e.onSelect,g=e.onHover,p=e.showWeek,m="".concat(t,"-").concat(r,"-panel"),v="".concat(t,"-cell"),C=u==="week",y=qx(e,u),b=Ce(y,2),S=b[0],w=b[1],x=o.locale.getWeekFirstDay(i.locale),E=o.setDate(s,1),R=szt(i.locale,o,E),O=o.getMonth(s),T=p===void 0?C:p,M=T?function(j){var W=f==null?void 0:f(j,{type:"week"});return d.createElement("td",{key:"week",className:we(v,"".concat(v,"-week"),ie({},"".concat(v,"-disabled"),W)),onClick:function(){W||h(j)},onMouseEnter:function(){W||g==null||g(j)},onMouseLeave:function(){W||g==null||g(null)}},d.createElement("div",{className:"".concat(v,"-inner")},o.locale.getWeek(i.locale,j)))}:null,_=[],F=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);M&&_.push(d.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var D=0;D<ete;D+=1)_.push(d.createElement("th",{key:D},F[(D+x)%ete]));var k=function(W,G){return o.addDate(W,G)},L=function(W){return ia(W,{locale:i,format:i.cellDateFormat,generateConfig:o})},I=function(W){var G=ie(ie({},"".concat(t,"-cell-in-view"),Ipe(o,W,s)),"".concat(t,"-cell-today"),Mpe(o,W,w));return G},A=i.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(i.locale):[]),N=d.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){l("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},ia(s,{locale:i,format:i.yearFormat,generateConfig:o})),B=d.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){l("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?ia(s,{locale:i,format:i.monthFormat,generateConfig:o}):A[O]),z=i.monthBeforeYear?[B,N]:[N,B];return d.createElement(Hy.Provider,{value:S},d.createElement("div",{className:we(m,p&&"".concat(m,"-show-week"))},d.createElement(Kx,{offset:function(W){return o.addMonth(s,W)},superOffset:function(W){return o.addYear(s,W)},onChange:a,getStart:function(W){return o.setDate(W,1)},getEnd:function(W){var G=o.setDate(W,1);return G=o.addMonth(G,1),o.addDate(G,-1)}},z),d.createElement(sM,V({titleFormat:i.fieldDateFormat},e,{colNum:ete,rowNum:6,baseDate:R,headerCells:_,getCellDate:k,getCellText:L,getCellClassName:I,prefixColumn:M,cellSelection:!C}))))}var vzt=1/3;function Czt(e,t){var n=d.useRef(!1),r=d.useRef(null),i=d.useRef(null),o=function(){return n.current},s=function(){Rr.cancel(r.current),n.current=!1},a=d.useRef(),l=function(){var f=e.current;if(i.current=null,a.current=0,f){var h=f.querySelector('[data-value="'.concat(t,'"]')),g=f.querySelector("li"),p=function m(){s(),n.current=!0,a.current+=1;var v=f.scrollTop,C=g.offsetTop,y=h.offsetTop,b=y-C;if(y===0&&h!==g||!Gx(f)){a.current<=5&&(r.current=Rr(m));return}var S=v+(b-v)*vzt,w=Math.abs(b-S);if(i.current!==null&&i.current<w){s();return}if(i.current=w,w<=1){f.scrollTop=b,s();return}f.scrollTop=S,r.current=Rr(m)};h&&g&&p()}},c=Hn(l);return[c,s,o]}var yzt=300;function bzt(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function eR(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,o=e.onChange,s=e.onHover,a=e.onDblClick,l=e.changeOnScroll,c=IV(),u=c.prefixCls,f=c.cellRender,h=c.now,g=c.locale,p="".concat(u,"-time-panel"),m="".concat(u,"-time-panel-cell"),v=d.useRef(null),C=d.useRef(),y=function(){clearTimeout(C.current)},b=Czt(v,n??r),S=Ce(b,3),w=S[0],x=S[1],E=S[2];Zn(function(){return w(),y(),function(){x(),y()}},[n,r,bzt(t)]);var R=function(M){y();var _=M.target;!E()&&l&&(C.current=setTimeout(function(){var F=v.current,D=F.querySelector("li").offsetTop,k=Array.from(F.querySelectorAll("li")),L=k.map(function(z){return z.offsetTop-D}),I=L.map(function(z,j){return t[j].disabled?Number.MAX_SAFE_INTEGER:Math.abs(z-_.scrollTop)}),A=Math.min.apply(Math,ut(I)),N=I.findIndex(function(z){return z===A}),B=t[N];B&&!B.disabled&&o(B.value)},yzt))},O="".concat(p,"-column");return d.createElement("ul",{className:O,ref:v,"data-type":i,onScroll:R},t.map(function(T){var M=T.label,_=T.value,F=T.disabled,D=d.createElement("div",{className:"".concat(m,"-inner")},M);return d.createElement("li",{key:_,className:we(m,ie(ie({},"".concat(m,"-selected"),n===_),"".concat(m,"-disabled"),F)),onClick:function(){F||o(_)},onDoubleClick:function(){!F&&a&&a()},onMouseEnter:function(){s(_)},onMouseLeave:function(){s(null)},"data-value":_},f?f(_,{prefixCls:u,originNode:D,today:h,type:"time",subType:i,locale:g}):D)}))}function Nv(e){return e<12}function Szt(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,o=e.use12Hours,s=e.changeOnScroll,a=IV(),l=a.prefixCls,c=a.values,u=a.generateConfig,f=a.locale,h=a.onSelect,g=a.onHover,p=g===void 0?function(){}:g,m=a.pickerValue,v=(c==null?void 0:c[0])||null,C=d.useContext(v4),y=C.onCellDblClick,b=_pe(u,e,v),S=Ce(b,5),w=S[0],x=S[1],E=S[2],R=S[3],O=S[4],T=function(je){var Xe=v&&u[je](v),ft=m&&u[je](m);return[Xe,ft]},M=T("getHour"),_=Ce(M,2),F=_[0],D=_[1],k=T("getMinute"),L=Ce(k,2),I=L[0],A=L[1],N=T("getSecond"),B=Ce(N,2),z=B[0],j=B[1],W=T("getMillisecond"),G=Ce(W,2),K=G[0],q=G[1],X=F===null?null:Nv(F)?"am":"pm",Q=d.useMemo(function(){return o?Nv(F)?x.filter(function(be){return Nv(be.value)}):x.filter(function(be){return!Nv(be.value)}):x},[F,x,o]),te=function(je,Xe){var ft,Tt=je.filter(function(tt){return!tt.disabled});return Xe??(Tt==null||(ft=Tt[0])===null||ft===void 0?void 0:ft.value)},ne=te(x,F),Z=d.useMemo(function(){return E(ne)},[E,ne]),ee=te(Z,I),J=d.useMemo(function(){return R(ne,ee)},[R,ne,ee]),oe=te(J,z),le=d.useMemo(function(){return O(ne,ee,oe)},[O,ne,ee,oe]),ge=te(le,K),he=d.useMemo(function(){if(!o)return[];var be=u.getNow(),je=u.setHour(be,6),Xe=u.setHour(be,18),ft=function(tt,pt){var $t=f.cellMeridiemFormat;return $t?ia(tt,{generateConfig:u,locale:f,format:$t}):pt};return[{label:ft(je,"AM"),value:"am",disabled:x.every(function(Tt){return Tt.disabled||!Nv(Tt.value)})},{label:ft(Xe,"PM"),value:"pm",disabled:x.every(function(Tt){return Tt.disabled||Nv(Tt.value)})}]},[x,o,u,f]),ye=function(je){var Xe=w(je);h(Xe)},ue=d.useMemo(function(){var be=v||m||u.getNow(),je=function(ft){return ft!=null};return je(F)?(be=u.setHour(be,F),be=u.setMinute(be,I),be=u.setSecond(be,z),be=u.setMillisecond(be,K)):je(D)?(be=u.setHour(be,D),be=u.setMinute(be,A),be=u.setSecond(be,j),be=u.setMillisecond(be,q)):je(ne)&&(be=u.setHour(be,ne),be=u.setMinute(be,ee),be=u.setSecond(be,oe),be=u.setMillisecond(be,ge)),be},[v,m,F,I,z,K,ne,ee,oe,ge,D,A,j,q,u]),ve=function(je,Xe){return je===null?null:u[Xe](ue,je)},de=function(je){return ve(je,"setHour")},xe=function(je){return ve(je,"setMinute")},Ee=function(je){return ve(je,"setSecond")},De=function(je){return ve(je,"setMillisecond")},Be=function(je){return je===null?null:je==="am"&&!Nv(F)?u.setHour(ue,F-12):je==="pm"&&Nv(F)?u.setHour(ue,F+12):ue},Ge=function(je){ye(de(je))},Ue=function(je){ye(xe(je))},We=function(je){ye(Ee(je))},Ve=function(je){ye(De(je))},Fe=function(je){ye(Be(je))},ke=function(je){p(de(je))},Ye=function(je){p(xe(je))},ze=function(je){p(Ee(je))},Re=function(je){p(De(je))},Le=function(je){p(Be(je))},Me={onDblClick:y,changeOnScroll:s};return d.createElement("div",{className:"".concat(l,"-content")},t&&d.createElement(eR,V({units:Q,value:F,optionalValue:D,type:"hour",onChange:Ge,onHover:ke},Me)),n&&d.createElement(eR,V({units:Z,value:I,optionalValue:A,type:"minute",onChange:Ue,onHover:Ye},Me)),r&&d.createElement(eR,V({units:J,value:z,optionalValue:j,type:"second",onChange:We,onHover:ze},Me)),i&&d.createElement(eR,V({units:le,value:K,optionalValue:q,type:"millisecond",onChange:Ve,onHover:Re},Me)),o&&d.createElement(eR,V({units:he,value:X,type:"meridiem",onChange:Fe,onHover:Le},Me)))}function fqe(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,o=e.showTime,s=o||{},a=s.format,l="".concat(t,"-time-panel"),c=qx(e,"time"),u=Ce(c,1),f=u[0];return d.createElement(Hy.Provider,{value:f},d.createElement("div",{className:we(l)},d.createElement(Kx,null,n?ia(n,{locale:r,format:a,generateConfig:i}):" "),d.createElement(Szt,o)))}function wzt(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,o=e.value,s=e.pickerValue,a=e.onHover,l="".concat(t,"-datetime-panel"),c=_pe(n,r),u=Ce(c,1),f=u[0],h=function(v){return o?eB(n,v,o):eB(n,v,s)},g=function(v){a==null||a(v&&h(v))},p=function(v){var C=h(v);i(f(C,C))};return d.createElement("div",{className:l},d.createElement(MV,V({},e,{onSelect:p,onHover:g})),d.createElement(fqe,e))}function xzt(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,s=e.onPickerValueChange,a="".concat(t,"-decade-panel"),l=qx(e,"decade"),c=Ce(l,1),u=c[0],f=function(x){var E=Math.floor(r.getYear(x)/100)*100;return r.setYear(x,E)},h=function(x){var E=f(x);return r.addYear(E,99)},g=f(i),p=h(i),m=r.addYear(g,-10),v=function(x,E){return r.addYear(x,E*10)},C=function(x){var E=n.cellYearFormat,R=ia(x,{locale:n,format:E,generateConfig:r}),O=ia(r.addYear(x,9),{locale:n,format:E,generateConfig:r});return"".concat(R,"-").concat(O)},y=function(x){return ie({},"".concat(t,"-cell-in-view"),fle(r,x,g)||fle(r,x,p)||TV(r,g,p,x))},b=o?function(w,x){var E=r.setDate(w,1),R=r.setMonth(E,0),O=r.setYear(R,Math.floor(r.getYear(R)/10)*10),T=r.addYear(O,10),M=r.addDate(T,-1);return o(O,x)&&o(M,x)}:null,S="".concat(ia(g,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(ia(p,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(Hy.Provider,{value:u},d.createElement("div",{className:a},d.createElement(Kx,{superOffset:function(x){return r.addYear(i,x*100)},onChange:s,getStart:f,getEnd:h},S),d.createElement(sM,V({},e,{disabledDate:b,colNum:3,rowNum:4,baseDate:m,getCellDate:v,getCellText:C,getCellClassName:y}))))}function Ezt(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,s=e.onPickerValueChange,a=e.onModeChange,l="".concat(t,"-month-panel"),c=qx(e,"month"),u=Ce(c,1),f=u[0],h=r.setMonth(i,0),g=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),p=function(S,w){return r.addMonth(S,w)},m=function(S){var w=r.getMonth(S);return n.monthFormat?ia(S,{locale:n,format:n.monthFormat,generateConfig:r}):g[w]},v=function(){return ie({},"".concat(t,"-cell-in-view"),!0)},C=o?function(b,S){var w=r.setDate(b,1),x=r.setMonth(w,r.getMonth(w)+1),E=r.addDate(x,-1);return o(w,S)&&o(E,S)}:null,y=d.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},ia(i,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(Hy.Provider,{value:f},d.createElement("div",{className:l},d.createElement(Kx,{superOffset:function(S){return r.addYear(i,S)},onChange:s,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},y),d.createElement(sM,V({},e,{disabledDate:C,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:p,getCellText:m,getCellClassName:v}))))}function Rzt(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.onPickerValueChange,s=e.onModeChange,a="".concat(t,"-quarter-panel"),l=qx(e,"quarter"),c=Ce(l,1),u=c[0],f=r.setMonth(i,0),h=function(C,y){return r.addMonth(C,y*3)},g=function(C){return ia(C,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},p=function(){return ie({},"".concat(t,"-cell-in-view"),!0)},m=d.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},ia(i,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(Hy.Provider,{value:u},d.createElement("div",{className:a},d.createElement(Kx,{superOffset:function(C){return r.addYear(i,C)},onChange:o,getStart:function(C){return r.setMonth(C,0)},getEnd:function(C){return r.setMonth(C,11)}},m),d.createElement(sM,V({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:h,getCellText:g,getCellClassName:p}))))}function $zt(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,o=e.hoverValue,s=e.hoverRangeValue,a=r.locale,l="".concat(t,"-week-panel-row"),c=function(f){var h={};if(s){var g=Ce(s,2),p=g[0],m=g[1],v=o$(n,a,p,f),C=o$(n,a,m,f);h["".concat(l,"-range-start")]=v,h["".concat(l,"-range-end")]=C,h["".concat(l,"-range-hover")]=!v&&!C&&TV(n,p,m,f)}return o&&(h["".concat(l,"-hover")]=o.some(function(y){return o$(n,a,f,y)})),we(l,ie({},"".concat(l,"-selected"),!s&&o$(n,a,i,f)),h)};return d.createElement(MV,V({},e,{mode:"week",panelName:"week",rowClassName:c}))}function Ozt(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,s=e.onPickerValueChange,a=e.onModeChange,l="".concat(t,"-year-panel"),c=qx(e,"year"),u=Ce(c,1),f=u[0],h=function(E){var R=Math.floor(r.getYear(E)/10)*10;return r.setYear(E,R)},g=function(E){var R=h(E);return r.addYear(R,9)},p=h(i),m=g(i),v=r.addYear(p,-1),C=function(E,R){return r.addYear(E,R)},y=function(E){return ia(E,{locale:n,format:n.cellYearFormat,generateConfig:r})},b=function(E){return ie({},"".concat(t,"-cell-in-view"),zC(r,E,p)||zC(r,E,m)||TV(r,p,m,E))},S=o?function(x,E){var R=r.setMonth(x,0),O=r.setDate(R,1),T=r.addYear(O,1),M=r.addDate(T,-1);return o(O,E)&&o(M,E)}:null,w=d.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){a("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},ia(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-",ia(m,{locale:n,format:n.yearFormat,generateConfig:r}));return d.createElement(Hy.Provider,{value:f},d.createElement("div",{className:l},d.createElement(Kx,{superOffset:function(E){return r.addYear(i,E*10)},onChange:s,getStart:h,getEnd:g},w),d.createElement(sM,V({},e,{disabledDate:S,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:C,getCellText:y,getCellClassName:b}))))}var Tzt={date:MV,datetime:wzt,week:$zt,month:Ezt,quarter:Rzt,year:Ozt,decade:xzt,time:fqe};function Izt(e,t){var n,r=e.locale,i=e.generateConfig,o=e.direction,s=e.prefixCls,a=e.tabIndex,l=a===void 0?0:a,c=e.multiple,u=e.defaultValue,f=e.value,h=e.onChange,g=e.onSelect,p=e.defaultPickerValue,m=e.pickerValue,v=e.onPickerValueChange,C=e.mode,y=e.onPanelChange,b=e.picker,S=b===void 0?"date":b,w=e.showTime,x=e.hoverValue,E=e.hoverRangeValue,R=e.cellRender,O=e.dateRender,T=e.monthCellRender,M=e.components,_=M===void 0?{}:M,F=e.hideHeader,D=((n=d.useContext(qg))===null||n===void 0?void 0:n.prefixCls)||s||"rc-picker",k=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:k.current}});var L=YUe(e),I=Ce(L,4),A=I[0],N=I[1],B=I[2],z=I[3],j=UUe(r,N),W=S==="date"&&w?"datetime":S,G=d.useMemo(function(){return XUe(W,B,z,A,j)},[W,B,z,A,j]),K=i.getNow(),q=ir(S,{value:C,postState:function(Le){return Le||"date"}}),X=Ce(q,2),Q=X[0],te=X[1],ne=Q==="date"&&G?"datetime":Q,Z=dqe(i,r,W),ee=ir(u,{value:f}),J=Ce(ee,2),oe=J[0],le=J[1],ge=d.useMemo(function(){var Re=By(oe).filter(function(Le){return Le});return c?Re:Re.slice(0,1)},[oe,c]),he=Hn(function(Re){le(Re),h&&(Re===null||ge.length!==Re.length||ge.some(function(Le,Me){return!Hl(i,r,Le,Re[Me],W)}))&&(h==null||h(c?Re:Re[0]))}),ye=Hn(function(Re){if(g==null||g(Re),Q===S){var Le=c?Z(ge,Re):[Re];he(Le)}}),ue=ir(p||ge[0]||K,{value:m}),ve=Ce(ue,2),de=ve[0],xe=ve[1];d.useEffect(function(){ge[0]&&!m&&xe(ge[0])},[ge[0]]);var Ee=function(Le,Me){y==null||y(Le||m,Me||Q)},De=function(Le){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe(Le),v==null||v(Le),Me&&Ee(Le)},Be=function(Le,Me){te(Le),Me&&De(Me),Ee(Me,Le)},Ge=function(Le){if(ye(Le),De(Le),Q!==S){var Me=["decade","year"],be=[].concat(Me,["month"]),je={quarter:[].concat(Me,["quarter"]),week:[].concat(ut(be),["week"]),date:[].concat(ut(be),["date"])},Xe=je[S]||be,ft=Xe.indexOf(Q),Tt=Xe[ft+1];Tt&&Be(Tt,Le)}},Ue=d.useMemo(function(){var Re,Le;if(Array.isArray(E)){var Me=Ce(E,2);Re=Me[0],Le=Me[1]}else Re=E;return!Re&&!Le?null:(Re=Re||Le,Le=Le||Re,i.isAfter(Re,Le)?[Le,Re]:[Re,Le])},[E,i]),We=Tpe(R,O,T),Ve=_[ne]||Tzt[ne]||MV,Fe=d.useContext(v4),ke=d.useMemo(function(){return se(se({},Fe),{},{hideHeader:F})},[Fe,F]),Ye="".concat(D,"-panel"),ze=OV(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(v4.Provider,{value:ke},d.createElement("div",{ref:k,tabIndex:l,className:we(Ye,ie({},"".concat(Ye,"-rtl"),o==="rtl"))},d.createElement(Ve,V({},ze,{showTime:G,prefixCls:D,locale:j,generateConfig:i,onModeChange:Be,pickerValue:de,onPickerValueChange:function(Le){De(Le,!0)},value:ge[0],onSelect:Ge,values:ge,cellRender:We,hoverRangeValue:Ue,hoverValue:x}))))}var pN=d.memo(d.forwardRef(Izt));function Mzt(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,o=e.needConfirm,s=e.onSubmit,a=e.range,l=e.hoverValue,c=d.useContext(qg),u=c.prefixCls,f=c.generateConfig,h=d.useCallback(function(y,b){return s$(f,t,y,b)},[f,t]),g=d.useMemo(function(){return h(r,1)},[r,h]),p=function(b){i(h(b,-1))},m={onCellDblClick:function(){o&&s()}},v=t==="time",C=se(se({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return a?C.hoverRangeValue=l:C.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(v4.Provider,{value:se(se({},m),{},{hideNext:!0})},d.createElement(pN,C)),d.createElement(v4.Provider,{value:se(se({},m),{},{hidePrev:!0})},d.createElement(pN,V({},C,{pickerValue:g,onPickerValueChange:p})))):d.createElement(v4.Provider,{value:se({},m)},d.createElement(pN,C))}function qwe(e){return typeof e=="function"?e():e}function Pzt(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(o,s){var a=o.label,l=o.value;return d.createElement("li",{key:s,onClick:function(){r(qwe(l))},onMouseEnter:function(){i(qwe(l))},onMouseLeave:function(){i(null)}},a)}))):null}function hqe(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,o=e.range,s=e.multiple,a=e.activeOffset,l=a===void 0?0:a,c=e.placement,u=e.presets,f=e.onPresetHover,h=e.onPresetSubmit,g=e.onFocus,p=e.onBlur,m=e.onPanelMouseDown,v=e.direction,C=e.value,y=e.onSelect,b=e.isInvalid,S=e.defaultOpenValue,w=e.onOk,x=e.onSubmit,E=d.useContext(qg),R=E.prefixCls,O="".concat(R,"-panel"),T=v==="rtl",M=d.useRef(null),_=d.useRef(null),F=d.useState(0),D=Ce(F,2),k=D[0],L=D[1],I=d.useState(0),A=Ce(I,2),N=A[0],B=A[1],z=function(he){he.offsetWidth&&L(he.offsetWidth)};d.useEffect(function(){if(o){var ge,he=((ge=M.current)===null||ge===void 0?void 0:ge.offsetWidth)||0,ye=k-he;l<=ye?B(0):B(l+he-k)}},[k,l,o]);function j(ge){return ge.filter(function(he){return he})}var W=d.useMemo(function(){return j(By(C))},[C]),G=r==="time"&&!W.length,K=d.useMemo(function(){return G?j([S]):W},[G,W,S]),q=G?S:W,X=d.useMemo(function(){return K.length?K.some(function(ge){return b(ge)}):!0},[K,b]),Q=function(){G&&y(S),w(),x()},te=d.createElement("div",{className:"".concat(R,"-panel-layout")},d.createElement(Pzt,{prefixCls:R,presets:u,onClick:h,onHover:f}),d.createElement("div",null,d.createElement(Mzt,V({},e,{value:q})),d.createElement(mzt,V({},e,{showNow:s?!1:i,invalid:X,onSubmit:Q}))));t&&(te=t(te));var ne="".concat(O,"-container"),Z="marginLeft",ee="marginRight",J=d.createElement("div",{onMouseDown:m,tabIndex:-1,className:we(ne,"".concat(R,"-").concat(n,"-panel-container")),style:ie(ie({},T?ee:Z,N),T?Z:ee,"auto"),onFocus:g,onBlur:p},te);if(o){var oe=$V(c,T),le=zUe(oe,T);J=d.createElement("div",{onMouseDown:m,ref:_,className:we("".concat(R,"-range-wrapper"),"".concat(R,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:M,className:"".concat(R,"-range-arrow"),style:ie({},le,l)}),d.createElement(oa,{onResize:z},J))}return J}function gqe(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,o=e.locale,s=e.preserveInvalidOnBlur,a=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,h=e.onBlur,g=e.onInputChange,p=e.onInvalid,m=e.open,v=e.onOpenChange,C=e.onKeyDown,y=e.onChange,b=e.activeHelp,S=e.name,w=e.autoComplete,x=e.id,E=e.value,R=e.invalid,O=e.placeholder,T=e.disabled,M=e.activeIndex,_=e.allHelp,F=e.picker,D=function(j,W){var G=i.locale.parse(o.locale,j,[W]);return G&&i.isValidate(G)?G:null},k=n[0],L=d.useCallback(function(z){return ia(z,{locale:o,format:k,generateConfig:i})},[o,i,k]),I=d.useMemo(function(){return E.map(L)},[E,L]),A=d.useMemo(function(){var z=F==="time"?8:10,j=typeof k=="function"?k(i.getNow()).length:k.length;return Math.max(z,j)+2},[k,F,i]),N=function(j){for(var W=0;W<n.length;W+=1){var G=n[W];if(typeof G=="string"){var K=D(j,G);if(K)return K}}return!1},B=function(j){function W(q){return j!==void 0?q[j]:q}var G=$o(e,{aria:!0,data:!0}),K=se(se({},G),{},{format:r,validateFormat:function(X){return!!N(X)},preserveInvalidOnBlur:s,readOnly:a,required:l,"aria-required":c,name:S,autoComplete:w,size:A,id:W(x),value:W(I)||"",invalid:W(R),placeholder:W(O),active:M===j,helped:_||b&&M===j,disabled:W(T),onFocus:function(X){f(X,j)},onBlur:function(X){h(X,j)},onSubmit:u,onChange:function(X){g();var Q=N(X);if(Q){p(!1,j),y(Q,j);return}p(!!X,j)},onHelp:function(){v(!0,{index:j})},onKeyDown:function(X){var Q=!1;if(C==null||C(X,function(){Q=!0}),!X.defaultPrevented&&!Q)switch(X.key){case"Escape":v(!1,{index:j});break;case"Enter":m||v(!0);break}}},t==null?void 0:t({valueTexts:I}));return Object.keys(K).forEach(function(q){K[q]===void 0&&delete K[q]}),K};return[B,L]}var _zt=["onMouseEnter","onMouseLeave"];function pqe(e){return d.useMemo(function(){return OV(e,_zt)},[e])}var Azt=["icon","type"],Dzt=["onClear"];function PV(e){var t=e.icon,n=e.type,r=on(e,Azt),i=d.useContext(qg),o=i.prefixCls;return t?d.createElement("span",V({className:"".concat(o,"-").concat(n)},r),t):null}function hle(e){var t=e.onClear,n=on(e,Dzt);return d.createElement(PV,V({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}var nte=["YYYY","MM","DD","HH","mm","ss","SSS"],Kwe="顧",Lzt=function(){function e(t){qr(this,e),ie(this,"format",void 0),ie(this,"maskFormat",void 0),ie(this,"cells",void 0),ie(this,"maskCells",void 0),this.format=t;var n=nte.map(function(a){return"(".concat(a,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(a){return Kwe.repeat(a.length)});var i=new RegExp("(".concat(nte.join("|"),")")),o=(t.split(i)||[]).filter(function(a){return a}),s=0;this.cells=o.map(function(a){var l=nte.includes(a),c=s,u=s+a.length;return s=u,{text:a,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(a){return a.mask})}return Kr(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},i=r.start,o=r.end;return[i||0,o||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var i=this.maskFormat[r],o=n[r];if(!o||i!==Kwe&&i!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,i=0,o=0;o<this.maskCells.length;o+=1){var s=this.maskCells[o],a=s.start,l=s.end;if(n>=a&&n<=l)return o;var c=Math.min(Math.abs(n-a),Math.abs(n-l));c<r&&(r=c,i=o)}return i}}]),e}();function Fzt(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var Nzt=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],gle=d.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,i=r===void 0?!0:r,o=e.suffixIcon,s=e.format,a=e.validateFormat,l=e.onChange;e.onInput;var c=e.helped,u=e.onHelp,f=e.onSubmit,h=e.onKeyDown,g=e.preserveInvalidOnBlur,p=g===void 0?!1:g,m=e.invalid,v=e.clearIcon,C=on(e,Nzt),y=e.value,b=e.onFocus,S=e.onBlur,w=e.onMouseUp,x=d.useContext(qg),E=x.prefixCls,R=x.input,O=R===void 0?"input":R,T="".concat(E,"-input"),M=d.useState(!1),_=Ce(M,2),F=_[0],D=_[1],k=d.useState(y),L=Ce(k,2),I=L[0],A=L[1],N=d.useState(""),B=Ce(N,2),z=B[0],j=B[1],W=d.useState(null),G=Ce(W,2),K=G[0],q=G[1],X=d.useState(null),Q=Ce(X,2),te=Q[0],ne=Q[1],Z=I||"";d.useEffect(function(){A(y)},[y]);var ee=d.useRef(),J=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:ee.current,inputElement:J.current,focus:function(Re){J.current.focus(Re)},blur:function(){J.current.blur()}}});var oe=d.useMemo(function(){return new Lzt(s||"")},[s]),le=d.useMemo(function(){return c?[0,0]:oe.getSelection(K)},[oe,K,c]),ge=Ce(le,2),he=ge[0],ye=ge[1],ue=function(Re){Re&&Re!==s&&Re!==y&&u()},ve=Hn(function(ze){a(ze)&&l(ze),A(ze),ue(ze)}),de=function(Re){if(!s){var Le=Re.target.value;ue(Le),A(Le),l(Le)}},xe=function(Re){var Le=Re.clipboardData.getData("text");a(Le)&&ve(Le)},Ee=d.useRef(!1),De=function(){Ee.current=!0},Be=function(Re){var Le=Re.target,Me=Le.selectionStart,be=oe.getMaskCellIndex(Me);q(be),ne({}),w==null||w(Re),Ee.current=!1},Ge=function(Re){D(!0),q(0),j(""),b(Re)},Ue=function(Re){S(Re)},We=function(Re){D(!1),Ue(Re)};Ppe(n,function(){!n&&!p&&A(y)});var Ve=function(Re){Re.key==="Enter"&&a(Z)&&f(),h==null||h(Re)},Fe=function(Re){Ve(Re);var Le=Re.key,Me=null,be=null,je=ye-he,Xe=s.slice(he,ye),ft=function($t){q(function(wt){var It=wt+$t;return It=Math.max(It,0),It=Math.min(It,oe.size()-1),It})},Tt=function($t){var wt=Fzt(Xe),It=Ce(wt,3),Ct=It[0],ot=It[1],nt=It[2],fe=Z.slice(he,ye),Te=Number(fe);if(isNaN(Te))return String(nt||($t>0?Ct:ot));var $e=Te+$t,He=ot-Ct+1;return String(Ct+(He+$e-Ct)%He)};switch(Le){case"Backspace":case"Delete":Me="",be=Xe;break;case"ArrowLeft":Me="",ft(-1);break;case"ArrowRight":Me="",ft(1);break;case"ArrowUp":Me="",be=Tt(1);break;case"ArrowDown":Me="",be=Tt(-1);break;default:isNaN(Number(Le))||(Me=z+Le,be=Me);break}if(Me!==null&&(j(Me),Me.length>=je&&(ft(1),j(""))),be!==null){var tt=Z.slice(0,he)+Ope(be,je)+Z.slice(ye);ve(tt.slice(0,s.length))}ne({})},ke=d.useRef();Zn(function(){if(!(!F||!s||Ee.current)){if(!oe.match(Z)){ve(s);return}return J.current.setSelectionRange(he,ye),ke.current=Rr(function(){J.current.setSelectionRange(he,ye)}),function(){Rr.cancel(ke.current)}}},[oe,s,F,Z,K,he,ye,te,ve]);var Ye=s?{onFocus:Ge,onBlur:We,onKeyDown:Fe,onMouseDown:De,onMouseUp:Be,onPaste:xe}:{};return d.createElement("div",{ref:ee,className:we(T,ie(ie({},"".concat(T,"-active"),n&&i),"".concat(T,"-placeholder"),c))},d.createElement(O,V({ref:J,"aria-invalid":m,autoComplete:"off"},C,{onKeyDown:Ve,onBlur:Ue},Ye,{value:Z,onChange:de})),d.createElement(PV,{type:"suffix",icon:o}),v)}),kzt=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],zzt=["index"],Bzt=["insetInlineStart","insetInlineEnd"];function Hzt(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,o=e.suffixIcon,s=e.separator,a=s===void 0?"~":s,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,h=e.style,g=e.onClick,p=e.onClear,m=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,C=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var b=e.onActiveOffset,S=e.placement,w=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,E=e.tabIndex,R=on(e,kzt),O=y==="rtl",T=d.useContext(qg),M=T.prefixCls,_=d.useMemo(function(){if(typeof n=="string")return[n];var J=n||{};return[J.start,J.end]},[n]),F=d.useRef(),D=d.useRef(),k=d.useRef(),L=function(oe){var le;return(le=[D,k][oe])===null||le===void 0?void 0:le.current};d.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(oe){if(nn(oe)==="object"){var le,ge=oe||{},he=ge.index,ye=he===void 0?0:he,ue=on(ge,zzt);(le=L(ye))===null||le===void 0||le.focus(ue)}else{var ve;(ve=L(oe??0))===null||ve===void 0||ve.focus()}},blur:function(){var oe,le;(oe=L(0))===null||oe===void 0||oe.blur(),(le=L(1))===null||le===void 0||le.blur()}}});var I=pqe(R),A=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),N=gqe(se(se({},e),{},{id:_,placeholder:A})),B=Ce(N,1),z=B[0],j=$V(S,O),W=zUe(j,O),G=j==null?void 0:j.toLowerCase().endsWith("right"),K=d.useState({position:"absolute",width:0}),q=Ce(K,2),X=q[0],Q=q[1],te=Hn(function(){var J=L(l);if(J){var oe=J.nativeElement,le=oe.offsetWidth,ge=oe.offsetLeft,he=oe.offsetParent,ye=(he==null?void 0:he.offsetWidth)||0,ue=G?ye-le-ge:ge;Q(function(ve){ve.insetInlineStart,ve.insetInlineEnd;var de=on(ve,Bzt);return se(se({},de),{},ie({width:le},W,ue))}),b(ue)}});d.useEffect(function(){te()},[l]);var ne=i&&(m[0]&&!v[0]||m[1]&&!v[1]),Z=x&&!v[0],ee=x&&!Z&&!v[1];return d.createElement(oa,{onResize:te},d.createElement("div",V({},I,{className:we(M,"".concat(M,"-range"),ie(ie(ie(ie({},"".concat(M,"-focused"),c),"".concat(M,"-disabled"),v.every(function(J){return J})),"".concat(M,"-invalid"),C.some(function(J){return J})),"".concat(M,"-rtl"),O),f),style:h,ref:F,onClick:g,onMouseDown:function(oe){var le=oe.target;le!==D.current.inputElement&&le!==k.current.inputElement&&oe.preventDefault(),w==null||w(oe)}}),r&&d.createElement("div",{className:"".concat(M,"-prefix")},r),d.createElement(gle,V({ref:D},z(0),{autoFocus:Z,tabIndex:E,"date-range":"start"})),d.createElement("div",{className:"".concat(M,"-range-separator")},a),d.createElement(gle,V({ref:k},z(1),{autoFocus:ee,tabIndex:E,"date-range":"end"})),d.createElement("div",{className:"".concat(M,"-active-bar"),style:X}),d.createElement(PV,{type:"suffix",icon:o}),ne&&d.createElement(hle,{icon:i,onClear:p})))}var jzt=d.forwardRef(Hzt);function Ywe(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function $D(e){return e===1?"end":"start"}function Vzt(e,t){var n=JUe(e,function(){var rn=e.disabled,En=e.allowEmpty,In=Ywe(rn,!1),jn=Ywe(En,!1);return{disabled:In,allowEmpty:jn}}),r=Ce(n,6),i=r[0],o=r[1],s=r[2],a=r[3],l=r[4],c=r[5],u=i.prefixCls,f=i.styles,h=i.classNames,g=i.placement,p=i.defaultValue,m=i.value,v=i.needConfirm,C=i.onKeyDown,y=i.disabled,b=i.allowEmpty,S=i.disabledDate,w=i.minDate,x=i.maxDate,E=i.defaultOpen,R=i.open,O=i.onOpenChange,T=i.locale,M=i.generateConfig,_=i.picker,F=i.showNow,D=i.showToday,k=i.showTime,L=i.mode,I=i.onPanelChange,A=i.onCalendarChange,N=i.onOk,B=i.defaultPickerValue,z=i.pickerValue,j=i.onPickerValueChange,W=i.inputReadOnly,G=i.suffixIcon,K=i.onFocus,q=i.onBlur,X=i.presets,Q=i.ranges,te=i.components,ne=i.cellRender,Z=i.dateRender,ee=i.monthCellRender,J=i.onClick,oe=tqe(t),le=eqe(R,E,y,O),ge=Ce(le,2),he=ge[0],ye=ge[1],ue=function(En,In){(y.some(function(jn){return!jn})||!En)&&ye(En,In)},ve=lqe(M,T,a,!0,!1,p,m,A,N),de=Ce(ve,5),xe=de[0],Ee=de[1],De=de[2],Be=de[3],Ge=de[4],Ue=De(),We=rqe(y,b,he),Ve=Ce(We,9),Fe=Ve[0],ke=Ve[1],Ye=Ve[2],ze=Ve[3],Re=Ve[4],Le=Ve[5],Me=Ve[6],be=Ve[7],je=Ve[8],Xe=function(En,In){ke(!0),K==null||K(En,{range:$D(In??ze)})},ft=function(En,In){ke(!1),q==null||q(En,{range:$D(In??ze)})},Tt=d.useMemo(function(){if(!k)return null;var rn=k.disabledTime,En=rn?function(In){var jn=$D(ze),si=jUe(Ue,Me,ze);return rn(In,jn,{from:si})}:void 0;return se(se({},k),{},{disabledTime:En})},[k,ze,Ue,Me]),tt=ir([_,_],{value:L}),pt=Ce(tt,2),$t=pt[0],wt=pt[1],It=$t[ze]||_,Ct=It==="date"&&Tt?"datetime":It,ot=Ct===_&&Ct!=="time",nt=uqe(_,It,F,D,!0),fe=cqe(i,xe,Ee,De,Be,y,a,Fe,he,c),Te=Ce(fe,2),$e=Te[0],He=Te[1],it=fzt(Ue,y,Me,M,T,S),at=GUe(Ue,c,b),gt=Ce(at,2),yt=gt[0],st=gt[1],Ze=iqe(M,T,Ue,$t,he,ze,o,ot,B,z,Tt==null?void 0:Tt.defaultOpenValue,j,w,x),dt=Ce(Ze,2),At=dt[0],kt=dt[1],pn=Hn(function(rn,En,In){var jn=q$($t,ze,En);if((jn[0]!==$t[0]||jn[1]!==$t[1])&&wt(jn),I&&In!==!1){var si=ut(Ue);rn&&(si[ze]=rn),I(si,jn)}}),ln=function(En,In){return q$(Ue,In,En)},Lt=function(En,In){var jn=Ue;En&&(jn=ln(En,ze)),be(ze);var si=Le(jn);Be(jn),$e(ze,si===null),si===null?ue(!1,{force:!0}):In||oe.current.focus({index:si})},xt=function(En){var In,jn=En.target.getRootNode();if(!oe.current.nativeElement.contains((In=jn.activeElement)!==null&&In!==void 0?In:document.activeElement)){var si=y.findIndex(function(To){return!To});si>=0&&oe.current.focus({index:si})}ue(!0),J==null||J(En)},Rt=function(){He(null),ue(!1,{force:!0})},Ft=d.useState(null),hn=Ce(Ft,2),Mt=hn[0],mt=hn[1],jt=d.useState(null),tn=Ce(jt,2),Cn=tn[0],Ln=tn[1],cn=d.useMemo(function(){return Cn||Ue},[Ue,Cn]);d.useEffect(function(){he||Ln(null)},[he]);var Dt=d.useState(0),sn=Ce(Dt,2),Sn=sn[0],Tn=sn[1],Jn=nqe(X,Q),Ar=function(En){Ln(En),mt("preset")},Vr=function(En){var In=He(En);In&&ue(!1,{force:!0})},Ui=function(En){Lt(En)},Bi=function(En){Ln(En?ln(En,ze):null),mt("cell")},Gr=function(En){ue(!0),Xe(En)},Fi=function(){Ye("panel")},bn=function(En){var In=q$(Ue,ze,En);Be(In),!v&&!s&&o===Ct&&Lt(En)},Qt=function(){ue(!1)},Wn=Tpe(ne,Z,ee,$D(ze)),$r=Ue[ze]||null,Yt=Hn(function(rn){return c(rn,{activeIndex:ze})}),Jt=d.useMemo(function(){var rn=$o(i,!1),En=$i(i,[].concat(ut(Object.keys(rn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return En},[i]),sr=d.createElement(hqe,V({},Jt,{showNow:nt,showTime:Tt,range:!0,multiplePanel:ot,activeOffset:Sn,placement:g,disabledDate:it,onFocus:Gr,onBlur:ft,onPanelMouseDown:Fi,picker:_,mode:It,internalMode:Ct,onPanelChange:pn,format:l,value:$r,isInvalid:Yt,onChange:null,onSelect:bn,pickerValue:At,defaultOpenValue:By(k==null?void 0:k.defaultOpenValue)[ze],onPickerValueChange:kt,hoverValue:cn,onHover:Bi,needConfirm:v,onSubmit:Lt,onOk:Ge,presets:Jn,onPresetHover:Ar,onPresetSubmit:Vr,onNow:Ui,cellRender:Wn})),br=function(En,In){var jn=ln(En,In);Be(jn)},Jr=function(){Ye("input")},oi=function(En,In){var jn=Me.length,si=Me[jn-1];if(jn&&si!==In&&v&&!b[si]&&!je(si)&&Ue[si]){oe.current.focus({index:si});return}Ye("input"),ue(!0,{inherit:!0}),ze!==In&&he&&!v&&s&&Lt(null,!0),Re(In),Xe(En,In)},Br=function(En,In){if(ue(!1),!v&&Ye()==="input"){var jn=Le(Ue);$e(ze,jn===null)}ft(En,In)},Pi=function(En,In){En.key==="Tab"&&Lt(null,!0),C==null||C(En,In)},Bn=d.useMemo(function(){return{prefixCls:u,locale:T,generateConfig:M,button:te.button,input:te.input}},[u,T,M,te.button,te.input]);return Zn(function(){he&&ze!==void 0&&pn(null,_,!1)},[he,ze,_]),Zn(function(){var rn=Ye();!he&&rn==="input"&&(ue(!1),Lt(null,!0)),!he&&s&&!v&&rn==="panel"&&(ue(!0),Lt())},[he]),d.createElement(qg.Provider,{value:Bn},d.createElement(BUe,V({},VUe(i),{popupElement:sr,popupStyle:f.popup,popupClassName:h.popup,visible:he,onClose:Qt,range:!0}),d.createElement(jzt,V({},i,{ref:oe,suffixIcon:G,activeIndex:Fe||he?ze:null,activeHelp:!!Cn,allHelp:!!Cn&&Mt==="preset",focused:Fe,onFocus:oi,onBlur:Br,onKeyDown:Pi,onSubmit:Lt,value:cn,maskFormat:l,onChange:br,onInputChange:Jr,format:a,inputReadOnly:W,disabled:y,open:he,onOpenChange:ue,onClick:xt,onClear:Rt,invalid:yt,onInvalid:st,onActiveOffset:Tn}))))}var Gzt=d.forwardRef(Vzt);function Wzt(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,o=i===void 0?"×":i,s=e.formatDate,a=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),h="".concat(f,"-overflow");function g(v,C){return d.createElement("span",{className:we("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!a&&C&&d.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:C,className:"".concat(f,"-item-remove")},o))}function p(v){var C=s(v),y=function(S){S&&S.stopPropagation(),r(v)};return g(C,y)}function m(v){var C="+ ".concat(v.length," ...");return g(C)}return d.createElement("div",{className:u},d.createElement(Eg,{prefixCls:h,data:n,renderItem:p,renderRest:m,itemKey:function(C){return s(C)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var Uzt=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function qzt(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var a=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,h=e.onClick,g=e.onClear,p=e.internalPicker,m=e.value,v=e.onChange,C=e.onSubmit;e.onInputChange;var y=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,w=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var R=e.autoFocus,O=e.tabIndex,T=e.removeIcon,M=on(e,Uzt),_=x==="rtl",F=d.useContext(qg),D=F.prefixCls,k=d.useRef(),L=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:k.current,focus:function(X){var Q;(Q=L.current)===null||Q===void 0||Q.focus(X)},blur:function(){var X;(X=L.current)===null||X===void 0||X.blur()}}});var I=pqe(M),A=function(X){v([X])},N=function(X){var Q=m.filter(function(te){return te&&!Hl(l,a,te,X,p)});v(Q),n||C()},B=gqe(se(se({},e),{},{onChange:A}),function(q){var X=q.valueTexts;return{value:X[0]||"",active:s}}),z=Ce(B,2),j=z[0],W=z[1],G=!!(i&&m.length&&!S),K=y?d.createElement(d.Fragment,null,d.createElement(Wzt,{prefixCls:D,value:m,onRemove:N,formatDate:W,maxTagCount:b,disabled:S,removeIcon:T,placeholder:c}),d.createElement("input",{className:"".concat(D,"-multiple-input"),value:m.map(W).join(","),ref:L,readOnly:!0,autoFocus:R,tabIndex:O}),d.createElement(PV,{type:"suffix",icon:o}),G&&d.createElement(hle,{icon:i,onClear:g})):d.createElement(gle,V({ref:L},j(),{autoFocus:R,tabIndex:O,suffixIcon:o,clearIcon:G&&d.createElement(hle,{icon:i,onClear:g}),showActiveCls:!1}));return d.createElement("div",V({},I,{className:we(D,ie(ie(ie(ie(ie({},"".concat(D,"-multiple"),y),"".concat(D,"-focused"),s),"".concat(D,"-disabled"),S),"".concat(D,"-invalid"),w),"".concat(D,"-rtl"),_),u),style:f,ref:k,onClick:h,onMouseDown:function(X){var Q,te=X.target;te!==((Q=L.current)===null||Q===void 0?void 0:Q.inputElement)&&X.preventDefault(),E==null||E(X)}}),r&&d.createElement("div",{className:"".concat(D,"-prefix")},r),K)}var Kzt=d.forwardRef(qzt);function Yzt(e,t){var n=JUe(e),r=Ce(n,6),i=r[0],o=r[1],s=r[2],a=r[3],l=r[4],c=r[5],u=i,f=u.prefixCls,h=u.styles,g=u.classNames,p=u.order,m=u.defaultValue,v=u.value,C=u.needConfirm,y=u.onChange,b=u.onKeyDown,S=u.disabled,w=u.disabledDate,x=u.minDate,E=u.maxDate,R=u.defaultOpen,O=u.open,T=u.onOpenChange,M=u.locale,_=u.generateConfig,F=u.picker,D=u.showNow,k=u.showToday,L=u.showTime,I=u.mode,A=u.onPanelChange,N=u.onCalendarChange,B=u.onOk,z=u.multiple,j=u.defaultPickerValue,W=u.pickerValue,G=u.onPickerValueChange,K=u.inputReadOnly,q=u.suffixIcon,X=u.removeIcon,Q=u.onFocus,te=u.onBlur,ne=u.presets,Z=u.components,ee=u.cellRender,J=u.dateRender,oe=u.monthCellRender,le=u.onClick,ge=tqe(t);function he(Yt){return Yt===null?null:z?Yt:Yt[0]}var ye=dqe(_,M,o),ue=eqe(O,R,[S],T),ve=Ce(ue,2),de=ve[0],xe=ve[1],Ee=function(Jt,sr,br){if(N){var Jr=se({},br);delete Jr.range,N(he(Jt),he(sr),Jr)}},De=function(Jt){B==null||B(he(Jt))},Be=lqe(_,M,a,!1,p,m,v,Ee,De),Ge=Ce(Be,5),Ue=Ge[0],We=Ge[1],Ve=Ge[2],Fe=Ge[3],ke=Ge[4],Ye=Ve(),ze=rqe([S]),Re=Ce(ze,4),Le=Re[0],Me=Re[1],be=Re[2],je=Re[3],Xe=function(Jt){Me(!0),Q==null||Q(Jt,{})},ft=function(Jt){Me(!1),te==null||te(Jt,{})},Tt=ir(F,{value:I}),tt=Ce(Tt,2),pt=tt[0],$t=tt[1],wt=pt==="date"&&L?"datetime":pt,It=uqe(F,pt,D,k),Ct=y&&function(Yt,Jt){y(he(Yt),he(Jt))},ot=cqe(se(se({},i),{},{onChange:Ct}),Ue,We,Ve,Fe,[],a,Le,de,c),nt=Ce(ot,2),fe=nt[1],Te=GUe(Ye,c),$e=Ce(Te,2),He=$e[0],it=$e[1],at=d.useMemo(function(){return He.some(function(Yt){return Yt})},[He]),gt=function(Jt,sr){if(G){var br=se(se({},sr),{},{mode:sr.mode[0]});delete br.range,G(Jt[0],br)}},yt=iqe(_,M,Ye,[pt],de,je,o,!1,j,W,By(L==null?void 0:L.defaultOpenValue),gt,x,E),st=Ce(yt,2),Ze=st[0],dt=st[1],At=Hn(function(Yt,Jt,sr){if($t(Jt),A&&sr!==!1){var br=Yt||Ye[Ye.length-1];A(br,Jt)}}),kt=function(){fe(Ve()),xe(!1,{force:!0})},pn=function(Jt){!S&&!ge.current.nativeElement.contains(document.activeElement)&&ge.current.focus(),xe(!0),le==null||le(Jt)},ln=function(){fe(null),xe(!1,{force:!0})},Lt=d.useState(null),xt=Ce(Lt,2),Rt=xt[0],Ft=xt[1],hn=d.useState(null),Mt=Ce(hn,2),mt=Mt[0],jt=Mt[1],tn=d.useMemo(function(){var Yt=[mt].concat(ut(Ye)).filter(function(Jt){return Jt});return z?Yt:Yt.slice(0,1)},[Ye,mt,z]),Cn=d.useMemo(function(){return!z&&mt?[mt]:Ye.filter(function(Yt){return Yt})},[Ye,mt,z]);d.useEffect(function(){de||jt(null)},[de]);var Ln=nqe(ne),cn=function(Jt){jt(Jt),Ft("preset")},Dt=function(Jt){var sr=z?ye(Ve(),Jt):[Jt],br=fe(sr);br&&!z&&xe(!1,{force:!0})},sn=function(Jt){Dt(Jt)},Sn=function(Jt){jt(Jt),Ft("cell")},Tn=function(Jt){xe(!0),Xe(Jt)},Jn=function(Jt){if(be("panel"),!(z&&wt!==F)){var sr=z?ye(Ve(),Jt):[Jt];Fe(sr),!C&&!s&&o===wt&&kt()}},Ar=function(){xe(!1)},Vr=Tpe(ee,J,oe),Ui=d.useMemo(function(){var Yt=$o(i,!1),Jt=$i(i,[].concat(ut(Object.keys(Yt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return se(se({},Jt),{},{multiple:i.multiple})},[i]),Bi=d.createElement(hqe,V({},Ui,{showNow:It,showTime:L,disabledDate:w,onFocus:Tn,onBlur:ft,picker:F,mode:pt,internalMode:wt,onPanelChange:At,format:l,value:Ye,isInvalid:c,onChange:null,onSelect:Jn,pickerValue:Ze,defaultOpenValue:L==null?void 0:L.defaultOpenValue,onPickerValueChange:dt,hoverValue:tn,onHover:Sn,needConfirm:C,onSubmit:kt,onOk:ke,presets:Ln,onPresetHover:cn,onPresetSubmit:Dt,onNow:sn,cellRender:Vr})),Gr=function(Jt){Fe(Jt)},Fi=function(){be("input")},bn=function(Jt){be("input"),xe(!0,{inherit:!0}),Xe(Jt)},Qt=function(Jt){xe(!1),ft(Jt)},Wn=function(Jt,sr){Jt.key==="Tab"&&kt(),b==null||b(Jt,sr)},$r=d.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:_,button:Z.button,input:Z.input}},[f,M,_,Z.button,Z.input]);return Zn(function(){de&&je!==void 0&&At(null,F,!1)},[de,je,F]),Zn(function(){var Yt=be();!de&&Yt==="input"&&(xe(!1),kt()),!de&&s&&!C&&Yt==="panel"&&(xe(!0),kt())},[de]),d.createElement(qg.Provider,{value:$r},d.createElement(BUe,V({},VUe(i),{popupElement:Bi,popupStyle:h.popup,popupClassName:g.popup,visible:de,onClose:Ar}),d.createElement(Kzt,V({},i,{ref:ge,suffixIcon:q,removeIcon:X,activeHelp:!!mt,allHelp:!!mt&&Rt==="preset",focused:Le,onFocus:bn,onBlur:Qt,onKeyDown:Wn,onSubmit:kt,value:Cn,maskFormat:l,onChange:Gr,onInputChange:Fi,internalPicker:o,format:a,inputReadOnly:K,disabled:S,open:de,onOpenChange:xe,onClick:pn,onClear:ln,invalid:at,onInvalid:function(Jt){it(Jt,0)}}))))}var Xwe=d.forwardRef(Yzt);const Xzt=Object.freeze(Object.defineProperty({__proto__:null,Picker:Xwe,PickerPanel:pN,RangePicker:Gzt,default:Xwe},Symbol.toStringTag,{value:"Module"})),mqe=d.createContext(null),Qzt=mqe.Provider,vqe=d.createContext(null),Zzt=vqe.Provider;var Jzt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],tB=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,o=e.style,s=e.checked,a=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,h=e.title,g=e.onChange,p=on(e,Jzt),m=d.useRef(null),v=d.useRef(null),C=ir(c,{value:s}),y=Ce(C,2),b=y[0],S=y[1];d.useImperativeHandle(t,function(){return{focus:function(R){var O;(O=m.current)===null||O===void 0||O.focus(R)},blur:function(){var R;(R=m.current)===null||R===void 0||R.blur()},input:m.current,nativeElement:v.current}});var w=we(r,i,ie(ie({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),a)),x=function(R){a||("checked"in e||S(R.target.checked),g==null||g({target:se(se({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return d.createElement("span",{className:w,title:h,style:o,ref:v},d.createElement("input",V({},p,{className:"".concat(r,"-input"),ref:m,onChange:x,disabled:a,checked:!!b,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});const eBt=Object.freeze(Object.defineProperty({__proto__:null,Checkbox:tB,default:tB},Symbol.toStringTag,{value:"Module"}));function Cqe(e){const t=ce.useRef(null),n=()=>{Rr.cancel(t.current),t.current=null};return[()=>{n(),t.current=Rr(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const tBt=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},ii(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},nBt=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:a,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:h,paddingXS:g,dotColorDisabled:p,lineType:m,radioColor:v,radioBgColor:C,calc:y}=e,b=`${t}-inner`,w=y(i).sub(y(4).mul(2)),x=y(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},ii(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ne(u)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},ii(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
||
&: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:_,"&:hover":{color:S,background:F,borderColor:F},"&:active":{color:S,background:D,borderColor:D}},"&-disabled":{color:w,backgroundColor:x,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:x,borderColor:s}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:E,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},iBt=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:o,colorText:s,colorBgContainer:a,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:h,colorPrimaryActive:g,colorWhite:p}=e,m=4,v=o,C=t?v-m*2:v-(m+i)*2;return{radioSize:v,dotSize:C,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:g,buttonBg:a,buttonCheckedBg:a,buttonColor:s,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?a:f}},yqe=Yr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Ne(n)} ${t}`,o=yr(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[tBt(o),nBt(o),rBt(o)]},iBt,{unitless:{radioSize:!0,dotSize:!0}});var oBt=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 sBt=(e,t)=>{var n,r;const i=d.useContext(mqe),o=d.useContext(vqe),{getPrefixCls:s,direction:a,radio:l}=d.useContext(vn),c=d.useRef(null),u=Ws(t,c),{isFormItemInput:f}=d.useContext(Na),h=L=>{var I,A;(I=e.onChange)===null||I===void 0||I.call(e,L),(A=i==null?void 0:i.onChange)===null||A===void 0||A.call(i,L)},{prefixCls:g,className:p,rootClassName:m,children:v,style:C,title:y}=e,b=oBt(e,["prefixCls","className","rootClassName","children","style","title"]),S=s("radio",g),w=((i==null?void 0:i.optionType)||o)==="button",x=w?`${S}-button`:S,E=Oo(S),[R,O,T]=yqe(S,E),M=Object.assign({},b),_=d.useContext(yc);i&&(M.name=i.name,M.onChange=h,M.checked=e.value===i.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:i.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:_;const F=we(`${x}-wrapper`,{[`${x}-wrapper-checked`]:M.checked,[`${x}-wrapper-disabled`]:M.disabled,[`${x}-wrapper-rtl`]:a==="rtl",[`${x}-wrapper-in-form-item`]:f,[`${x}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,p,m,O,T,E),[D,k]=Cqe(M.onClick);return R(d.createElement(QI,{component:"Radio",disabled:M.disabled},d.createElement("label",{className:F,style:Object.assign(Object.assign({},l==null?void 0:l.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:D},d.createElement(tB,Object.assign({},M,{className:we(M.className,{[Kj]:!w}),type:"radio",prefixCls:x,ref:u,onClick:k})),v!==void 0?d.createElement("span",null,v):null)))},nB=d.forwardRef(sBt),aBt=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(vn),i=iV(),{prefixCls:o,className:s,rootClassName:a,options:l,buttonStyle:c="outline",disabled:u,children:f,size:h,style:g,id:p,optionType:m,name:v=i,defaultValue:C,value:y,block:b=!1,onChange:S,onMouseEnter:w,onMouseLeave:x,onFocus:E,onBlur:R}=e,[O,T]=ir(C,{value:y}),M=d.useCallback(j=>{const W=O,G=j.target.value;"value"in e||T(G),G!==W&&(S==null||S(j))},[O,T,S]),_=n("radio",o),F=`${_}-group`,D=Oo(_),[k,L,I]=yqe(_,D);let A=f;l&&l.length>0&&(A=l.map(j=>typeof j=="string"||typeof j=="number"?d.createElement(nB,{key:j.toString(),prefixCls:_,disabled:u,value:j,checked:O===j},j):d.createElement(nB,{key:`radio-group-value-options-${j.value}`,prefixCls:_,disabled:j.disabled||u,value:j.value,checked:O===j.value,title:j.title,style:j.style,id:j.id,required:j.required},j.label)));const N=fl(h),B=we(F,`${F}-${c}`,{[`${F}-${N}`]:N,[`${F}-rtl`]:r==="rtl",[`${F}-block`]:b},s,a,L,I,D),z=d.useMemo(()=>({onChange:M,value:O,disabled:u,name:v,optionType:m,block:b}),[M,O,u,v,m,b]);return k(d.createElement("div",Object.assign({},$o(e,{aria:!0,data:!0}),{className:B,style:g,onMouseEnter:w,onMouseLeave:x,onFocus:E,onBlur:R,id:p,ref:t}),d.createElement(Qzt,{value:z},A)))}),lBt=d.memo(aBt);var cBt=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 uBt=(e,t)=>{const{getPrefixCls:n}=d.useContext(vn),{prefixCls:r}=e,i=cBt(e,["prefixCls"]),o=n("radio",r);return d.createElement(Zzt,{value:"button"},d.createElement(nB,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},dBt=d.forwardRef(uBt),M8=nB;M8.Button=dBt;M8.Group=lBt;M8.__ANT_RADIO=!0;function _V(e){return yr(e,{inputAffixPadding:e.paddingXXS})}const AV=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:s,fontSizeLG:a,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:h,colorPrimaryHover:g,colorPrimary:p,controlOutlineWidth:m,controlOutline:v,colorErrorOutline:C,colorWarningOutline:y,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((s-a*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:h,activeBorderColor:p,hoverBorderColor:g,activeShadow:`0 0 0 ${m}px ${v}`,errorActiveShadow:`0 0 0 ${m}px ${C}`,warningActiveShadow:`0 0 0 ${m}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:a,inputFontSizeSM:n}},fBt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),DV=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},fBt(yr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ape=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Qwe=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ape(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),bqe=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ape(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},DV(e))}),Qwe(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Qwe(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Zwe=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Sqe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Zwe(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Zwe(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},DV(e))}})}),wqe=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},xqe=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Jwe=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},xqe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Eqe=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xqe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},DV(e))}),Jwe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Jwe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),e7e=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Rqe=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},e7e(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),e7e(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),$qe=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Oqe=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Ne(t)} ${Ne(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Dpe=e=>({padding:`${Ne(e.paddingBlockSM)} ${Ne(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),aM=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ne(e.paddingBlock)} ${Ne(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},$qe(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Oqe(e)),"&-sm":Object.assign({},Dpe(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Tqe=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Oqe(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Dpe(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ne(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ne(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ne(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ne(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ne(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},$m()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
||
& > ${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},
|
||
& > ${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).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
||
> ${t},
|
||
${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"}},[`
|
||
&-allow-clear > ${t},
|
||
&-affix-wrapper${r}-has-feedback ${t}
|
||
`]:{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.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",_,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",M)}},[])}function Iqe(e){var t=d.useState(0),n=Ce(t,2),r=n[0],i=n[1],o=d.useRef(0),s=d.useRef();return s.current=e,rC(function(){var a;(a=s.current)===null||a===void 0||a.call(s)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function $Bt(e){var t=d.useRef([]),n=d.useState({}),r=Ce(n,2),i=r[1],o=d.useRef(typeof e=="function"?e():e),s=Iqe(function(){var l=o.current;t.current.forEach(function(c){l=c(l)}),t.current=[],o.current=l,i({})});function a(l){t.current.push(l),s()}return[o.current,a]}var o7e={width:0,height:0,left:0,top:0,right:0};function OBt(e,t,n,r,i,o,s){var a=s.tabs,l=s.tabPosition,c=s.rtl,u,f,h;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",h=Math.abs(n)):(u="height",f="top",h=-n),d.useMemo(function(){if(!a.length)return[0,0];for(var g=a.length,p=g,m=0;m<g;m+=1){var v=e.get(a[m].key)||o7e;if(Math.floor(v[f]+v[u])>Math.floor(h+t)){p=m-1;break}}for(var C=0,y=g-1;y>=0;y-=1){var b=e.get(a[y].key)||o7e;if(b[f]<h){C=y+1;break}}return C>=p?[0,0]:[C,p]},[e,t,r,i,o,h,l,a.map(function(g){return g.key}).join("_"),c])}function s7e(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var TBt="TABS_DQ";function Mqe(e){return String(e).replace(/"/g,TBt)}function Fpe(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Pqe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(a){r.onEdit("add",{event:a})}},r.addIcon||"+")}),a7e=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,s={};return nn(i)==="object"&&!d.isValidElement(i)?s=i:s.right=i,n==="right"&&(o=s.right),n==="left"&&(o=s.left),o?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),IBt=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,s=e.mobile,a=e.more,l=a===void 0?{}:a,c=e.style,u=e.className,f=e.editable,h=e.tabBarGutter,g=e.rtl,p=e.removeAriaLabel,m=e.onTabClick,v=e.getPopupContainer,C=e.popupClassName,y=d.useState(!1),b=Ce(y,2),S=b[0],w=b[1],x=d.useState(null),E=Ce(x,2),R=E[0],O=E[1],T=l.icon,M=T===void 0?"More":T,_="".concat(r,"-more-popup"),F="".concat(n,"-dropdown"),D=R!==null?"".concat(_,"-").concat(R):null,k=o==null?void 0:o.dropdownAriaLabel;function L(W,G){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:G,event:W})}var I=d.createElement(b3,{onClick:function(G){var K=G.key,q=G.domEvent;m(K,q),w(!1)},prefixCls:"".concat(F,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[R],"aria-label":k!==void 0?k:"expanded dropdown"},i.map(function(W){var G=W.closable,K=W.disabled,q=W.closeIcon,X=W.key,Q=W.label,te=Fpe(G,q,f,K);return d.createElement(D0,{key:X,id:"".concat(_,"-").concat(X),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(X),disabled:K},d.createElement("span",null,Q),te&&d.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(F,"-menu-item-remove"),onClick:function(Z){Z.stopPropagation(),L(Z,X)}},q||f.removeIcon||"×"))}));function A(W){for(var G=i.filter(function(te){return!te.disabled}),K=G.findIndex(function(te){return te.key===R})||0,q=G.length,X=0;X<q;X+=1){K=(K+W+q)%q;var Q=G[K];if(!Q.disabled){O(Q.key);return}}}function N(W){var G=W.which;if(!S){[lt.DOWN,lt.SPACE,lt.ENTER].includes(G)&&(w(!0),W.preventDefault());return}switch(G){case lt.UP:A(-1),W.preventDefault();break;case lt.DOWN:A(1),W.preventDefault();break;case lt.ESC:w(!1);break;case lt.SPACE:case lt.ENTER:R!==null&&m(R,W);break}}d.useEffect(function(){var W=document.getElementById(D);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[R]),d.useEffect(function(){S||O(null)},[S]);var B=ie({},g?"marginRight":"marginLeft",h);i.length||(B.visibility="hidden",B.order=1);var z=we(ie({},"".concat(F,"-rtl"),g)),j=s?null:d.createElement(Spe,V({prefixCls:F,overlay:I,visible:i.length?S:!1,onVisibleChange:w,overlayClassName:we(z,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},l),d.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:B,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":_,id:"".concat(r,"-more"),"aria-expanded":S,onKeyDown:N},M));return d.createElement("div",{className:we("".concat(n,"-nav-operations"),u),style:c,ref:t},j,d.createElement(Pqe,{prefixCls:n,locale:o,editable:f}))});const MBt=d.memo(IBt,function(e,t){return t.tabMoving});var PBt=function(t){var n=t.prefixCls,r=t.id,i=t.active,o=t.focus,s=t.tab,a=s.key,l=s.label,c=s.disabled,u=s.closeIcon,f=s.icon,h=t.closable,g=t.renderWrapper,p=t.removeAriaLabel,m=t.editable,v=t.onClick,C=t.onFocus,y=t.onBlur,b=t.onKeyDown,S=t.onMouseDown,w=t.onMouseUp,x=t.style,E=t.tabCount,R=t.currentPosition,O="".concat(n,"-tab"),T=Fpe(h,u,m,c);function M(L){c||v(L)}function _(L){L.preventDefault(),L.stopPropagation(),m.onEdit("remove",{key:a,event:L})}var F=d.useMemo(function(){return f&&typeof l=="string"?d.createElement("span",null,l):l},[l,f]),D=d.useRef(null);d.useEffect(function(){o&&D.current&&D.current.focus()},[o]);var k=d.createElement("div",{key:a,"data-node-key":Mqe(a),className:we(O,ie(ie(ie(ie({},"".concat(O,"-with-remove"),T),"".concat(O,"-active"),i),"".concat(O,"-disabled"),c),"".concat(O,"-focus"),o)),style:x,onClick:M},d.createElement("div",{ref:D,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(O,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:i?0:-1,onClick:function(I){I.stopPropagation(),M(I)},onKeyDown:b,onMouseDown:S,onMouseUp:w,onFocus:C,onBlur:y},o&&d.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(R," of ").concat(E)),f&&d.createElement("span",{className:"".concat(O,"-icon")},f),l&&F),T&&d.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:i?0:-1,className:"".concat(O,"-remove"),onClick:function(I){I.stopPropagation(),_(I)}},u||m.removeIcon||"×"));return g?g(k):k},_Bt=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,o=t.offsetTop,s=t.offsetLeft,a=t.getBoundingClientRect(),l=a.width,c=a.height,u=a.left,f=a.top;return Math.abs(l-r)<1?[l,c,u-n.left,f-n.top]:[r,i,s,o]},d5=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,o=n.offsetHeight,s=o===void 0?0:o;if(t.current){var a=t.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-i)<1)return[l,c]}return[i,s]},OD=function(t,n){return t[n?0:1]},l7e=d.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,o=e.animated,s=e.activeKey,a=e.rtl,l=e.extra,c=e.editable,u=e.locale,f=e.tabPosition,h=e.tabBarGutter,g=e.children,p=e.onTabClick,m=e.onTabScroll,v=e.indicator,C=d.useContext(LV),y=C.prefixCls,b=C.tabs,S=d.useRef(null),w=d.useRef(null),x=d.useRef(null),E=d.useRef(null),R=d.useRef(null),O=d.useRef(null),T=d.useRef(null),M=f==="top"||f==="bottom",_=n7e(0,function(Mt,mt){M&&m&&m({direction:Mt>mt?"left":"right"})}),F=Ce(_,2),D=F[0],k=F[1],L=n7e(0,function(Mt,mt){!M&&m&&m({direction:Mt>mt?"top":"bottom"})}),I=Ce(L,2),A=I[0],N=I[1],B=d.useState([0,0]),z=Ce(B,2),j=z[0],W=z[1],G=d.useState([0,0]),K=Ce(G,2),q=K[0],X=K[1],Q=d.useState([0,0]),te=Ce(Q,2),ne=te[0],Z=te[1],ee=d.useState([0,0]),J=Ce(ee,2),oe=J[0],le=J[1],ge=$Bt(new Map),he=Ce(ge,2),ye=he[0],ue=he[1],ve=xBt(b,ye,q[0]),de=OD(j,M),xe=OD(q,M),Ee=OD(ne,M),De=OD(oe,M),Be=Math.floor(de)<Math.floor(xe+Ee),Ge=Be?de-De:de-Ee,Ue="".concat(y,"-nav-operations-hidden"),We=0,Ve=0;M&&a?(We=0,Ve=Math.max(0,xe-Ge)):(We=Math.min(0,Ge-xe),Ve=0);function Fe(Mt){return Mt<We?We:Mt>Ve?Ve:Mt}var ke=d.useRef(null),Ye=d.useState(),ze=Ce(Ye,2),Re=ze[0],Le=ze[1];function Me(){Le(Date.now())}function be(){ke.current&&clearTimeout(ke.current)}RBt(E,function(Mt,mt){function jt(tn,Cn){tn(function(Ln){var cn=Fe(Ln+Cn);return cn})}return Be?(M?jt(k,Mt):jt(N,mt),be(),Me(),!0):!1}),d.useEffect(function(){return be(),Re&&(ke.current=setTimeout(function(){Le(0)},100)),be},[Re]);var je=OBt(ve,Ge,M?D:A,xe,Ee,De,se(se({},e),{},{tabs:b})),Xe=Ce(je,2),ft=Xe[0],Tt=Xe[1],tt=Hn(function(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,mt=ve.get(Mt)||{width:0,height:0,left:0,right:0,top:0};if(M){var jt=D;a?mt.right<D?jt=mt.right:mt.right+mt.width>D+Ge&&(jt=mt.right+mt.width-Ge):mt.left<-D?jt=-mt.left:mt.left+mt.width>-D+Ge&&(jt=-(mt.left+mt.width-Ge)),N(0),k(Fe(jt))}else{var tn=A;mt.top<-A?tn=-mt.top:mt.top+mt.height>-A+Ge&&(tn=-(mt.top+mt.height-Ge)),k(0),N(Fe(tn))}}),pt=d.useState(),$t=Ce(pt,2),wt=$t[0],It=$t[1],Ct=d.useState(!1),ot=Ce(Ct,2),nt=ot[0],fe=ot[1],Te=b.filter(function(Mt){return!Mt.disabled}).map(function(Mt){return Mt.key}),$e=function(mt){var jt=Te.indexOf(wt||s),tn=Te.length,Cn=(jt+mt+tn)%tn,Ln=Te[Cn];It(Ln)},He=function(mt){var jt=mt.code,tn=a&&M,Cn=Te[0],Ln=Te[Te.length-1];switch(jt){case"ArrowLeft":{M&&$e(tn?1:-1);break}case"ArrowRight":{M&&$e(tn?-1:1);break}case"ArrowUp":{mt.preventDefault(),M||$e(-1);break}case"ArrowDown":{mt.preventDefault(),M||$e(1);break}case"Home":{mt.preventDefault(),It(Cn);break}case"End":{mt.preventDefault(),It(Ln);break}case"Enter":case"Space":{mt.preventDefault(),p(wt,mt);break}case"Backspace":case"Delete":{var cn=Te.indexOf(wt),Dt=b.find(function(Sn){return Sn.key===wt}),sn=Fpe(Dt==null?void 0:Dt.closable,Dt==null?void 0:Dt.closeIcon,c,Dt==null?void 0:Dt.disabled);sn&&(mt.preventDefault(),mt.stopPropagation(),c.onEdit("remove",{key:wt,event:mt}),cn===Te.length-1?$e(-1):$e(1));break}}},it={};M?it[a?"marginRight":"marginLeft"]=h:it.marginTop=h;var at=b.map(function(Mt,mt){var jt=Mt.key;return d.createElement(PBt,{id:i,prefixCls:y,key:jt,tab:Mt,style:mt===0?void 0:it,closable:Mt.closable,editable:c,active:jt===s,focus:jt===wt,renderWrapper:g,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:Te.length,currentPosition:mt+1,onClick:function(Cn){p(jt,Cn)},onKeyDown:He,onFocus:function(){nt||It(jt),tt(jt),Me(),E.current&&(a||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:function(){It(void 0)},onMouseDown:function(){fe(!0)},onMouseUp:function(){fe(!1)}})}),gt=function(){return ue(function(){var mt,jt=new Map,tn=(mt=R.current)===null||mt===void 0?void 0:mt.getBoundingClientRect();return b.forEach(function(Cn){var Ln,cn=Cn.key,Dt=(Ln=R.current)===null||Ln===void 0?void 0:Ln.querySelector('[data-node-key="'.concat(Mqe(cn),'"]'));if(Dt){var sn=_Bt(Dt,tn),Sn=Ce(sn,4),Tn=Sn[0],Jn=Sn[1],Ar=Sn[2],Vr=Sn[3];jt.set(cn,{width:Tn,height:Jn,left:Ar,top:Vr})}}),jt})};d.useEffect(function(){gt()},[b.map(function(Mt){return Mt.key}).join("_")]);var yt=Iqe(function(){var Mt=d5(S),mt=d5(w),jt=d5(x);W([Mt[0]-mt[0]-jt[0],Mt[1]-mt[1]-jt[1]]);var tn=d5(T);Z(tn);var Cn=d5(O);le(Cn);var Ln=d5(R);X([Ln[0]-tn[0],Ln[1]-tn[1]]),gt()}),st=b.slice(0,ft),Ze=b.slice(Tt+1),dt=[].concat(ut(st),ut(Ze)),At=ve.get(s),kt=wBt({activeTabOffset:At,horizontal:M,indicator:v,rtl:a}),pn=kt.style;d.useEffect(function(){tt()},[s,We,Ve,s7e(At),s7e(ve),M]),d.useEffect(function(){yt()},[a]);var ln=!!dt.length,Lt="".concat(y,"-nav-wrap"),xt,Rt,Ft,hn;return M?a?(Rt=D>0,xt=D!==Ve):(xt=D<0,Rt=D!==We):(Ft=A<0,hn=A!==We),d.createElement(oa,{onResize:yt},d.createElement("div",{ref:Od(t,S),role:"tablist","aria-orientation":M?"horizontal":"vertical",className:we("".concat(y,"-nav"),n),style:r,onKeyDown:function(){Me()}},d.createElement(a7e,{ref:w,position:"left",extra:l,prefixCls:y}),d.createElement(oa,{onResize:yt},d.createElement("div",{className:we(Lt,ie(ie(ie(ie({},"".concat(Lt,"-ping-left"),xt),"".concat(Lt,"-ping-right"),Rt),"".concat(Lt,"-ping-top"),Ft),"".concat(Lt,"-ping-bottom"),hn)),ref:E},d.createElement(oa,{onResize:yt},d.createElement("div",{ref:R,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(A,"px)"),transition:Re?"none":void 0}},at,d.createElement(Pqe,{ref:T,prefixCls:y,locale:u,editable:c,style:se(se({},at.length===0?void 0:it),{},{visibility:ln?"hidden":null})}),d.createElement("div",{className:we("".concat(y,"-ink-bar"),ie({},"".concat(y,"-ink-bar-animated"),o.inkBar)),style:pn}))))),d.createElement(MBt,V({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:y,tabs:dt,className:!ln&&Ue,tabMoving:!!Re})),d.createElement(a7e,{ref:x,position:"right",extra:l,prefixCls:y})))}),_qe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,s=e.active,a=e.tabKey,l=e.children;return d.createElement("div",{id:o&&"".concat(o,"-panel-").concat(a),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(a),"aria-hidden":!s,style:i,className:we(n,s&&"".concat(n,"-active"),r),ref:t},l)}),ABt=["renderTabBar"],DBt=["label","key"],LBt=function(t){var n=t.renderTabBar,r=on(t,ABt),i=d.useContext(LV),o=i.tabs;if(n){var s=se(se({},r),{},{panes:o.map(function(a){var l=a.label,c=a.key,u=on(a,DBt);return d.createElement(_qe,V({tab:l,key:c,tabKey:c},u))})});return n(s,l7e)}return d.createElement(l7e,r)},FBt=["key","forceRender","style","className","destroyInactiveTabPane"],NBt=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,s=t.destroyInactiveTabPane,a=d.useContext(LV),l=a.prefixCls,c=a.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:we("".concat(l,"-content-holder"))},d.createElement("div",{className:we("".concat(l,"-content"),"".concat(l,"-content-").concat(o),ie({},"".concat(l,"-content-animated"),u))},c.map(function(h){var g=h.key,p=h.forceRender,m=h.style,v=h.className,C=h.destroyInactiveTabPane,y=on(h,FBt),b=g===r;return d.createElement(Hs,V({key:g,visible:b,forceRender:p,removeOnLeave:!!(s||C),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(S,w){var x=S.style,E=S.className;return d.createElement(_qe,V({},y,{prefixCls:f,id:n,tabKey:g,animated:u,active:b,style:se(se({},m),x),className:we(v,E),ref:w}))})})))};function kBt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=se({inkBar:!0},nn(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var zBt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],c7e=0,Aqe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,s=e.items,a=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,h=e.tabPosition,g=h===void 0?"top":h,p=e.tabBarGutter,m=e.tabBarStyle,v=e.tabBarExtraContent,C=e.locale,y=e.more,b=e.destroyInactiveTabPane,S=e.renderTabBar,w=e.onChange,x=e.onTabClick,E=e.onTabScroll,R=e.getPopupContainer,O=e.popupClassName,T=e.indicator,M=on(e,zBt),_=d.useMemo(function(){return(s||[]).filter(function(oe){return oe&&nn(oe)==="object"&&"key"in oe})},[s]),F=a==="rtl",D=kBt(f),k=d.useState(!1),L=Ce(k,2),I=L[0],A=L[1];d.useEffect(function(){A(uV())},[]);var N=ir(function(){var oe;return(oe=_[0])===null||oe===void 0?void 0:oe.key},{value:l,defaultValue:c}),B=Ce(N,2),z=B[0],j=B[1],W=d.useState(function(){return _.findIndex(function(oe){return oe.key===z})}),G=Ce(W,2),K=G[0],q=G[1];d.useEffect(function(){var oe=_.findIndex(function(ge){return ge.key===z});if(oe===-1){var le;oe=Math.max(0,Math.min(K,_.length-1)),j((le=_[oe])===null||le===void 0?void 0:le.key)}q(oe)},[_.map(function(oe){return oe.key}).join("_"),z,K]);var X=ir(null,{value:n}),Q=Ce(X,2),te=Q[0],ne=Q[1];d.useEffect(function(){n||(ne("rc-tabs-".concat(c7e)),c7e+=1)},[]);function Z(oe,le){x==null||x(oe,le);var ge=oe!==z;j(oe),ge&&(w==null||w(oe))}var ee={id:te,activeKey:z,animated:D,tabPosition:g,rtl:F,mobile:I},J=se(se({},ee),{},{editable:u,locale:C,more:y,tabBarGutter:p,onTabClick:Z,onTabScroll:E,extra:v,style:m,panes:null,getPopupContainer:R,popupClassName:O,indicator:T});return d.createElement(LV.Provider,{value:{tabs:_,prefixCls:i}},d.createElement("div",V({ref:t,id:n,className:we(i,"".concat(i,"-").concat(g),ie(ie(ie({},"".concat(i,"-mobile"),I),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),F),o)},M),d.createElement(LBt,V({},J,{renderTabBar:S})),d.createElement(NBt,V({destroyInactiveTabPane:b},ee,{animated:D}))))});const BBt=Object.freeze(Object.defineProperty({__proto__:null,default:Aqe},Symbol.toStringTag,{value:"Module"})),HBt={motionAppear:!1,motionEnter:!0,motionLeave:!0};function jBt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},HBt),{motionName:Cu(e,"switch")})),n}var VBt=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 GBt(e){return e.filter(t=>t)}function WBt(e,t){if(e)return e;const n=Rs(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:o}=r,s=o||{},{tab:a}=s,l=VBt(s,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:a})}return null});return GBt(n)}const UBt=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Y4(e,"slide-up"),Y4(e,"slide-down")]]},qBt=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Ne(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},Om(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Ne(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ne(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ne(e.borderRadiusLG)} 0 0 ${Ne(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},KBt=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ii(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Ne(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Kf),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ne(e.paddingXXS)} ${Ne(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},YBt=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:s,calc:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ne(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
||
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,
|
||
> 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}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},ZBt=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Ne(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ne(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ne(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},JBt=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:s,colorBorderSecondary:a}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ii(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:Ne(e.paddingXS),background:"transparent",border:`${Ne(e.lineWidth)} ${e.lineType} ${a}`,borderRadius:`${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:s}},Yf(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),QBt(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Yf(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},eHt=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},tHt=Yr("Tabs",e=>{const t=yr(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ne(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ne(e.horizontalItemGutter)}`});return[XBt(t),ZBt(t),YBt(t),KBt(t),qBt(t),JBt(t),UBt(t)]},eHt),nHt=()=>null;var rHt=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 Dqe=e=>{var t,n,r,i,o,s,a,l,c,u,f;const{type:h,className:g,rootClassName:p,size:m,onEdit:v,hideAdd:C,centered:y,addIcon:b,removeIcon:S,moreIcon:w,more:x,popupClassName:E,children:R,items:O,animated:T,style:M,indicatorSize:_,indicator:F}=e,D=rHt(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=D,{direction:L,tabs:I,getPrefixCls:A,getPopupContainer:N}=d.useContext(vn),B=A("tabs",k),z=Oo(B),[j,W,G]=tHt(B,z);let K;h==="editable-card"&&(K={onEdit:(ee,J)=>{let{key:oe,event:le}=J;v==null||v(ee==="add"?le:oe,ee)},removeIcon:(t=S??(I==null?void 0:I.removeIcon))!==null&&t!==void 0?t:d.createElement(Ug,null),addIcon:(b??(I==null?void 0:I.addIcon))||d.createElement(Zf,null),showAdd:C!==!0});const q=A(),X=fl(m),Q=WBt(O,R),te=jBt(B,T),ne=Object.assign(Object.assign({},I==null?void 0:I.style),M),Z={align:(n=F==null?void 0:F.align)!==null&&n!==void 0?n:(r=I==null?void 0:I.indicator)===null||r===void 0?void 0:r.align,size:(a=(o=(i=F==null?void 0:F.size)!==null&&i!==void 0?i:_)!==null&&o!==void 0?o:(s=I==null?void 0:I.indicator)===null||s===void 0?void 0:s.size)!==null&&a!==void 0?a:I==null?void 0:I.indicatorSize};return j(d.createElement(Aqe,Object.assign({direction:L,getPopupContainer:N},D,{items:Q,className:we({[`${B}-${X}`]:X,[`${B}-card`]:["card","editable-card"].includes(h),[`${B}-editable-card`]:h==="editable-card",[`${B}-centered`]:y},I==null?void 0:I.className,g,p,W,G,z),popupClassName:we(E,W,G,z),style:ne,editable:K,more:Object.assign({icon:(f=(u=(c=(l=I==null?void 0:I.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:I==null?void 0:I.moreIcon)!==null&&u!==void 0?u:w)!==null&&f!==void 0?f:d.createElement(rv,null),transitionName:`${q}-slide-up`},x),prefixCls:B,animated:te,indicator:Z})))};Dqe.TabPane=nHt;var iHt=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 Lqe=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=iHt(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=d.useContext(vn),s=o("card",t),a=we(`${s}-grid`,n,{[`${s}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:a}))},oHt=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Ne(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)} 0 0`},$m()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Kf),{[`
|
||
> ${n}-typography,
|
||
> ${n}-typography-edit-content
|
||
`]:{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:`
|
||
${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;
|
||
`,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,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},gHt=Yr("Card",e=>{const t=yr(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[dHt(t),fHt(t)]},hHt);var u7e=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 pHt=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,o)=>{const s=`action-${o}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:s},d.createElement("span",null,i))}))},mHt=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:s,headStyle:a={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:h,type:g,cover:p,actions:m,tabList:v,children:C,activeTabKey:y,defaultActiveTabKey:b,tabBarExtraContent:S,hoverable:w,tabProps:x={},classNames:E,styles:R}=e,O=u7e(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:T,direction:M,card:_}=d.useContext(vn),F=ye=>{var ue;(ue=e.onTabChange)===null||ue===void 0||ue.call(e,ye)},D=ye=>{var ue;return we((ue=_==null?void 0:_.classNames)===null||ue===void 0?void 0:ue[ye],E==null?void 0:E[ye])},k=ye=>{var ue;return Object.assign(Object.assign({},(ue=_==null?void 0:_.styles)===null||ue===void 0?void 0:ue[ye]),R==null?void 0:R[ye])},L=d.useMemo(()=>{let ye=!1;return d.Children.forEach(C,ue=>{(ue==null?void 0:ue.type)===Lqe&&(ye=!0)}),ye},[C]),I=T("card",n),[A,N,B]=gHt(I),z=d.createElement(yu,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),j=y!==void 0,W=Object.assign(Object.assign({},x),{[j?"activeKey":"defaultActiveKey"]:j?y:b,tabBarExtraContent:S});let G;const K=fl(h),q=!K||K==="default"?"large":K,X=v?d.createElement(Dqe,Object.assign({size:q},W,{className:`${I}-head-tabs`,onChange:F,items:v.map(ye=>{var{tab:ue}=ye,ve=u7e(ye,["tab"]);return Object.assign({label:ue},ve)})})):null;if(c||s||X){const ye=we(`${I}-head`,D("header")),ue=we(`${I}-head-title`,D("title")),ve=we(`${I}-extra`,D("extra")),de=Object.assign(Object.assign({},a),k("header"));G=d.createElement("div",{className:ye,style:de},d.createElement("div",{className:`${I}-head-wrapper`},c&&d.createElement("div",{className:ue,style:k("title")},c),s&&d.createElement("div",{className:ve,style:k("extra")},s)),X)}const Q=we(`${I}-cover`,D("cover")),te=p?d.createElement("div",{className:Q,style:k("cover")},p):null,ne=we(`${I}-body`,D("body")),Z=Object.assign(Object.assign({},l),k("body")),ee=d.createElement("div",{className:ne,style:Z},u?z:C),J=we(`${I}-actions`,D("actions")),oe=m!=null&&m.length?d.createElement(pHt,{actionClasses:J,actionStyle:k("actions"),actions:m}):null,le=$i(O,["onTabChange"]),ge=we(I,_==null?void 0:_.className,{[`${I}-loading`]:u,[`${I}-bordered`]:f,[`${I}-hoverable`]:w,[`${I}-contain-grid`]:L,[`${I}-contain-tabs`]:v==null?void 0:v.length,[`${I}-${K}`]:K,[`${I}-type-${g}`]:!!g,[`${I}-rtl`]:M==="rtl"},r,i,N,B),he=Object.assign(Object.assign({},_==null?void 0:_.style),o);return A(d.createElement("div",Object.assign({ref:t},le,{className:ge,style:he}),G,te,ee,oe))});var vHt=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 CHt=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,s=vHt(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:a}=d.useContext(vn),l=a("card",t),c=we(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?d.createElement("div",{className:`${l}-meta-title`},i):null,h=o?d.createElement("div",{className:`${l}-meta-description`},o):null,g=f||h?d.createElement("div",{className:`${l}-meta-detail`},f,h):null;return d.createElement("div",Object.assign({},s,{className:c}),u,g)},Npe=mHt;Npe.Grid=Lqe;Npe.Meta=CHt;var yHt={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function Fqe(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,s=r.noLeading,a=s===void 0?!1:s,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,h=0;function g(){u&&clearTimeout(u)}function p(v){var C=v||{},y=C.upcomingOnly,b=y===void 0?!1:y;g(),f=!b}function m(){for(var v=arguments.length,C=new Array(v),y=0;y<v;y++)C[y]=arguments[y];var b=this,S=Date.now()-h;if(f)return;function w(){h=Date.now(),t.apply(b,C)}function x(){u=void 0}!a&&c&&!u&&w(),g(),c===void 0&&S>e?a?(h=Date.now(),o||(u=setTimeout(c?x:w,e))):w():o!==!0&&(u=setTimeout(c?x:w,c===void 0?e-S:e))}return m.cancel=p,m}function kpe(e,t,n){var r=n||{},i=r.atBegin,o=i===void 0?!1:i;return Fqe(e,t,{debounceMode:o!==!1})}const bHt=Object.freeze(Object.defineProperty({__proto__:null,debounce:kpe,throttle:Fqe},Symbol.toStringTag,{value:"Module"}));var ple={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(t){return ce.createElement("ul",{style:{display:"block"}},t)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(t){return ce.createElement("button",null,t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function mle(e,t,n){return Math.max(t,Math.min(e,n))}var QS=function(t){var n=["onTouchStart","onTouchMove","onWheel"];n.includes(t._reactName)||t.preventDefault()},rB=function(t){for(var n=[],r=Nqe(t),i=kqe(t),o=r;o<i;o++)t.lazyLoadedList.indexOf(o)<0&&n.push(o);return n},Nqe=function(t){return t.currentSlide-SHt(t)},kqe=function(t){return t.currentSlide+wHt(t)},SHt=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(parseInt(t.centerPadding)>0?1:0):0},wHt=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},vle=function(t){return t&&t.offsetWidth||0},zpe=function(t){return t&&t.offsetHeight||0},zqe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,i,o,s;return r=t.startX-t.curX,i=t.startY-t.curY,o=Math.atan2(i,r),s=Math.round(o*180/Math.PI),s<0&&(s=360-Math.abs(s)),s<=45&&s>=0||s<=360&&s>=315?"left":s>=135&&s<=225?"right":n===!0?s>=35&&s<=135?"up":"down":"vertical"},FV=function(t){var n=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(n=!1),n},rte=function(t,n){var r={};return n.forEach(function(i){return r[i]=t[i]}),r},xHt=function(t){var n=ce.Children.count(t.children),r=t.listRef,i=Math.ceil(vle(r)),o=t.trackRef&&t.trackRef.node,s=Math.ceil(vle(o)),a;if(t.vertical)a=i;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=i/100),a=Math.ceil((i-l)/t.slidesToShow)}var c=r&&zpe(r.querySelector('[data-index="0"]')),u=c*t.slidesToShow,f=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(f=n-1-t.initialSlide);var h=t.lazyLoadedList||[],g=rB(se(se({},t),{},{currentSlide:f,lazyLoadedList:h}));h=h.concat(g);var p={slideCount:n,slideWidth:a,listWidth:i,trackWidth:s,currentSlide:f,slideHeight:c,listHeight:u,lazyLoadedList:h};return t.autoplaying===null&&t.autoplay&&(p.autoplaying="playing"),p},EHt=function(t){var n=t.waitForAnimate,r=t.animating,i=t.fade,o=t.infinite,s=t.index,a=t.slideCount,l=t.lazyLoad,c=t.currentSlide,u=t.centerMode,f=t.slidesToScroll,h=t.slidesToShow,g=t.useCSS,p=t.lazyLoadedList;if(n&&r)return{};var m=s,v,C,y,b={},S={},w=o?s:mle(s,0,a-1);if(i){if(!o&&(s<0||s>=a))return{};s<0?m=s+a:s>=a&&(m=s-a),l&&p.indexOf(m)<0&&(p=p.concat(m)),b={animating:!0,currentSlide:m,lazyLoadedList:p,targetSlide:m},S={animating:!1,targetSlide:m}}else v=m,m<0?(v=m+a,o?a%f!==0&&(v=a-a%f):v=0):!FV(t)&&m>c?m=v=c:u&&m>=a?(m=o?a:a-1,v=o?0:a-1):m>=a&&(v=m-a,o?a%f!==0&&(v=0):v=a-h),!o&&m+h>=a&&(v=a-h),C=AT(se(se({},t),{},{slideIndex:m})),y=AT(se(se({},t),{},{slideIndex:v})),o||(C===y&&(m=v),C=y),l&&(p=p.concat(rB(se(se({},t),{},{currentSlide:m})))),g?(b={animating:!0,currentSlide:v,trackStyle:Bqe(se(se({},t),{},{left:C})),lazyLoadedList:p,targetSlide:w},S={animating:!1,currentSlide:v,trackStyle:_T(se(se({},t),{},{left:y})),swipeLeft:null,targetSlide:w}):b={currentSlide:v,trackStyle:_T(se(se({},t),{},{left:y})),lazyLoadedList:p,targetSlide:w};return{state:b,nextState:S}},RHt=function(t,n){var r,i,o,s,a,l=t.slidesToScroll,c=t.slidesToShow,u=t.slideCount,f=t.currentSlide,h=t.targetSlide,g=t.lazyLoad,p=t.infinite;if(s=u%l!==0,r=s?0:(u-f)%l,n.message==="previous")o=r===0?l:c-r,a=f-o,g&&!p&&(i=f-o,a=i===-1?u-1:i),p||(a=h-l);else if(n.message==="next")o=r===0?l:r,a=f+o,g&&!p&&(a=(f+l)%u+r),p||(a=h+l);else if(n.message==="dots")a=n.index*n.slidesToScroll;else if(n.message==="children"){if(a=n.index,p){var m=_Ht(se(se({},t),{},{targetSlide:a}));a>n.currentSlide&&m==="left"?a=a-u:a<n.currentSlide&&m==="right"&&(a=a+u)}}else n.message==="index"&&(a=Number(n.index));return a},$Ht=function(t,n,r){return t.target.tagName.match("TEXTAREA|INPUT|SELECT")||!n?"":t.keyCode===37?r?"next":"previous":t.keyCode===39?r?"previous":"next":""},OHt=function(t,n,r){return t.target.tagName==="IMG"&&QS(t),!n||!r&&t.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:t.touches?t.touches[0].pageX:t.clientX,startY:t.touches?t.touches[0].pageY:t.clientY,curX:t.touches?t.touches[0].pageX:t.clientX,curY:t.touches?t.touches[0].pageY:t.clientY}}},THt=function(t,n){var r=n.scrolling,i=n.animating,o=n.vertical,s=n.swipeToSlide,a=n.verticalSwiping,l=n.rtl,c=n.currentSlide,u=n.edgeFriction,f=n.edgeDragged,h=n.onEdge,g=n.swiped,p=n.swiping,m=n.slideCount,v=n.slidesToScroll,C=n.infinite,y=n.touchObject,b=n.swipeEvent,S=n.listHeight,w=n.listWidth;if(!r){if(i)return QS(t);o&&s&&a&&QS(t);var x,E={},R=AT(n);y.curX=t.touches?t.touches[0].pageX:t.clientX,y.curY=t.touches?t.touches[0].pageY:t.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var O=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!a&&!p&&O>10)return{scrolling:!0};a&&(y.swipeLength=O);var T=(l?-1:1)*(y.curX>y.startX?1:-1);a&&(T=y.curY>y.startY?1:-1);var M=Math.ceil(m/v),_=zqe(n.touchObject,a),F=y.swipeLength;return C||(c===0&&(_==="right"||_==="down")||c+1>=M&&(_==="left"||_==="up")||!FV(n)&&(_==="left"||_==="up"))&&(F=y.swipeLength*u,f===!1&&h&&(h(_),E.edgeDragged=!0)),!g&&b&&(b(_),E.swiped=!0),o?x=R+F*(S/w)*T:l?x=R-F*T:x=R+F*T,a&&(x=R+F*T),E=se(se({},E),{},{touchObject:y,swipeLeft:x,trackStyle:_T(se(se({},n),{},{left:x}))}),Math.abs(y.curX-y.startX)<Math.abs(y.curY-y.startY)*.8||y.swipeLength>10&&(E.swiping=!0,QS(t)),E}},IHt=function(t,n){var r=n.dragging,i=n.swipe,o=n.touchObject,s=n.listWidth,a=n.touchThreshold,l=n.verticalSwiping,c=n.listHeight,u=n.swipeToSlide,f=n.scrolling,h=n.onSwipe,g=n.targetSlide,p=n.currentSlide,m=n.infinite;if(!r)return i&&QS(t),{};var v=l?c/a:s/a,C=zqe(o,l),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f||!o.swipeLength)return y;if(o.swipeLength>v){QS(t),h&&h(C);var b,S,w=m?p:g;switch(C){case"left":case"up":S=w+f7e(n),b=u?d7e(n,S):S,y.currentDirection=0;break;case"right":case"down":S=w-f7e(n),b=u?d7e(n,S):S,y.currentDirection=1;break;default:b=w}y.triggerSlideHandler=b}else{var x=AT(n);y.trackStyle=Bqe(se(se({},n),{},{left:x}))}return y},MHt=function(t){for(var n=t.infinite?t.slideCount*2:t.slideCount,r=t.infinite?t.slidesToShow*-1:0,i=t.infinite?t.slidesToShow*-1:0,o=[];r<n;)o.push(r),r=i+t.slidesToScroll,i+=Math.min(t.slidesToScroll,t.slidesToShow);return o},d7e=function(t,n){var r=MHt(t),i=0;if(n>r[r.length-1])n=r[r.length-1];else for(var o in r){if(n<r[o]){n=i;break}i=r[o]}return n},f7e=function(t){var n=t.centerMode?t.slideWidth*Math.floor(t.slidesToShow/2):0;if(t.swipeToSlide){var r,i=t.listRef,o=i.querySelectorAll&&i.querySelectorAll(".slick-slide")||[];if(Array.from(o).every(function(l){if(t.vertical){if(l.offsetTop+zpe(l)/2>t.swipeLeft*-1)return r=l,!1}else if(l.offsetLeft-n+vle(l)/2>t.swipeLeft*-1)return r=l,!1;return!0}),!r)return 0;var s=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,a=Math.abs(r.dataset.index-s)||1;return a}else return t.slidesToScroll},Bpe=function(t,n){return n.reduce(function(r,i){return r&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing:",t)},_T=function(t){Bpe(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n,r;if(!t.vertical)n=PHt(t)*t.slideWidth;else{var i=t.unslick?t.slideCount:t.slideCount+2*t.slidesToShow;r=i*t.slideHeight}var o={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",a=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";o=se(se({},o),{},{WebkitTransform:s,transform:a,msTransform:l})}else t.vertical?o.top=t.left:o.left=t.left;return t.fade&&(o={opacity:1}),n&&(o.width=n),r&&(o.height=r),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?o.marginTop=t.left+"px":o.marginLeft=t.left+"px"),o},Bqe=function(t){Bpe(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var n=_T(t);return t.useTransform?(n.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,n.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?n.transition="top "+t.speed+"ms "+t.cssEase:n.transition="left "+t.speed+"ms "+t.cssEase,n},AT=function(t){if(t.unslick)return 0;Bpe(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var n=t.slideIndex,r=t.trackRef,i=t.infinite,o=t.centerMode,s=t.slideCount,a=t.slidesToShow,l=t.slidesToScroll,c=t.slideWidth,u=t.listWidth,f=t.variableWidth,h=t.slideHeight,g=t.fade,p=t.vertical,m=0,v,C,y=0;if(g||t.slideCount===1)return 0;var b=0;if(i?(b=-c0(t),s%l!==0&&n+l>s&&(b=-(n>s?a-(n-s):s%l)),o&&(b+=parseInt(a/2))):(s%l!==0&&n+l>s&&(b=a-s%l),o&&(b=parseInt(a/2))),m=b*c,y=b*h,p?v=n*h*-1+y:v=n*c*-1+m,f===!0){var S,w=r&&r.node;if(S=n+c0(t),C=w&&w.childNodes[S],v=C?C.offsetLeft*-1:0,o===!0){S=i?n+c0(t):n,C=w&&w.children[S],v=0;for(var x=0;x<S;x++)v-=w&&w.children[x]&&w.children[x].offsetWidth;v-=parseInt(t.centerPadding),v+=C&&(u-C.offsetWidth)/2}}return v},c0=function(t){return t.unslick||!t.infinite?0:t.variableWidth?t.slideCount:t.slidesToShow+(t.centerMode?1:0)},vN=function(t){return t.unslick||!t.infinite?0:t.slideCount},PHt=function(t){return t.slideCount===1?1:c0(t)+t.slideCount+vN(t)},_Ht=function(t){return t.targetSlide>t.currentSlide?t.targetSlide>t.currentSlide+AHt(t)?"left":"right":t.targetSlide<t.currentSlide-DHt(t)?"right":"left"},AHt=function(t){var n=t.slidesToShow,r=t.centerMode,i=t.rtl,o=t.centerPadding;if(r){var s=(n-1)/2+1;return parseInt(o)>0&&(s+=1),i&&n%2===0&&(s+=1),s}return i?0:n-1},DHt=function(t){var n=t.slidesToShow,r=t.centerMode,i=t.rtl,o=t.centerPadding;if(r){var s=(n-1)/2+1;return parseInt(o)>0&&(s+=1),!i&&n%2===0&&(s+=1),s}return i?n-1:0},h7e=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},LHt=Object.keys(ple);function FHt(e){return LHt.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}function NHt(e,t,n){return t=ul(t),Py(e,tv()?Reflect.construct(t,n,ul(e).constructor):t.apply(e,n))}var ite=function(t){var n,r,i,o,s;t.rtl?s=t.slideCount-1-t.index:s=t.index,i=s<0||s>=t.slideCount,t.centerMode?(o=Math.floor(t.slidesToShow/2),r=(s-t.currentSlide)%t.slideCount===0,s>t.currentSlide-o-1&&s<=t.currentSlide+o&&(n=!0)):n=t.currentSlide<=s&&s<t.currentSlide+t.slidesToShow;var a;t.targetSlide<0?a=t.targetSlide+t.slideCount:t.targetSlide>=t.slideCount?a=t.targetSlide-t.slideCount:a=t.targetSlide;var l=s===a;return{"slick-slide":!0,"slick-active":n,"slick-center":r,"slick-cloned":i,"slick-current":l}},kHt=function(t){var n={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(n.width=t.slideWidth),t.fade&&(n.position="relative",t.vertical&&t.slideHeight?n.top=-t.index*parseInt(t.slideHeight):n.left=-t.index*parseInt(t.slideWidth),n.opacity=t.currentSlide===t.index?1:0,n.zIndex=t.currentSlide===t.index?999:998,t.useCSS&&(n.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),n},ote=function(t,n){return t.key+"-"+n},zHt=function(t){var n,r=[],i=[],o=[],s=ce.Children.count(t.children),a=Nqe(t),l=kqe(t);return ce.Children.forEach(t.children,function(c,u){var f,h={message:"children",index:u,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(u)>=0?f=c:f=ce.createElement("div",null);var g=kHt(se(se({},t),{},{index:u})),p=f.props.className||"",m=ite(se(se({},t),{},{index:u}));if(r.push(ce.cloneElement(f,{key:"original"+ote(f,u),"data-index":u,className:we(m,p),tabIndex:"-1","aria-hidden":!m["slick-active"],style:se(se({outline:"none"},f.props.style||{}),g),onClick:function(y){f.props&&f.props.onClick&&f.props.onClick(y),t.focusOnSelect&&t.focusOnSelect(h)}})),t.infinite&&s>1&&t.fade===!1&&!t.unslick){var v=s-u;v<=c0(t)&&(n=-v,n>=a&&(f=c),m=ite(se(se({},t),{},{index:n})),i.push(ce.cloneElement(f,{key:"precloned"+ote(f,n),"data-index":n,tabIndex:"-1",className:we(m,p),"aria-hidden":!m["slick-active"],style:se(se({},f.props.style||{}),g),onClick:function(y){f.props&&f.props.onClick&&f.props.onClick(y),t.focusOnSelect&&t.focusOnSelect(h)}}))),n=s+u,n<l&&(f=c),m=ite(se(se({},t),{},{index:n})),o.push(ce.cloneElement(f,{key:"postcloned"+ote(f,n),"data-index":n,tabIndex:"-1",className:we(m,p),"aria-hidden":!m["slick-active"],style:se(se({},f.props.style||{}),g),onClick:function(y){f.props&&f.props.onClick&&f.props.onClick(y),t.focusOnSelect&&t.focusOnSelect(h)}}))}}),t.rtl?i.concat(r,o).reverse():i.concat(r,o)},BHt=function(e){function t(){var n;qr(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=NHt(this,t,[].concat(i)),ie(n,"node",null),ie(n,"handleRef",function(s){n.node=s}),n}return hs(t,e),Kr(t,[{key:"render",value:function(){var r=zHt(this.props),i=this.props,o=i.onMouseEnter,s=i.onMouseOver,a=i.onMouseLeave,l={onMouseEnter:o,onMouseOver:s,onMouseLeave:a};return ce.createElement("div",V({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},l),r)}}])}(ce.PureComponent);function HHt(e,t,n){return t=ul(t),Py(e,tv()?Reflect.construct(t,n||[],ul(e).constructor):t.apply(e,n))}var jHt=function(t){var n;return t.infinite?n=Math.ceil(t.slideCount/t.slidesToScroll):n=Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1,n},VHt=function(e){function t(){return qr(this,t),HHt(this,t,arguments)}return hs(t,e),Kr(t,[{key:"clickHandler",value:function(r,i){i.preventDefault(),this.props.clickHandler(r)}},{key:"render",value:function(){for(var r=this.props,i=r.onMouseEnter,o=r.onMouseOver,s=r.onMouseLeave,a=r.infinite,l=r.slidesToScroll,c=r.slidesToShow,u=r.slideCount,f=r.currentSlide,h=jHt({slideCount:u,slidesToScroll:l,slidesToShow:c,infinite:a}),g={onMouseEnter:i,onMouseOver:o,onMouseLeave:s},p=[],m=0;m<h;m++){var v=(m+1)*l-1,C=a?v:mle(v,0,u-1),y=C-(l-1),b=a?y:mle(y,0,u-1),S=we({"slick-active":a?f>=b&&f<=C:f===b}),w={message:"dots",index:m,slidesToScroll:l,currentSlide:f},x=this.clickHandler.bind(this,w);p=p.concat(ce.createElement("li",{key:m,className:S},ce.cloneElement(this.props.customPaging(m),{onClick:x})))}return ce.cloneElement(this.props.appendDots(p),se({className:this.props.dotsClass},g))}}])}(ce.PureComponent);function Hqe(e,t,n){return t=ul(t),Py(e,tv()?Reflect.construct(t,n||[],ul(e).constructor):t.apply(e,n))}var GHt=function(e){function t(){return qr(this,t),Hqe(this,t,arguments)}return hs(t,e),Kr(t,[{key:"clickHandler",value:function(r,i){i&&i.preventDefault(),this.props.clickHandler(r,i)}},{key:"render",value:function(){var r={"slick-arrow":!0,"slick-prev":!0},i=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(r["slick-disabled"]=!0,i=null);var o={key:"0","data-role":"none",className:we(r),style:{display:"block"},onClick:i},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},a;return this.props.prevArrow?a=ce.cloneElement(this.props.prevArrow,se(se({},o),s)):a=ce.createElement("button",V({key:"0",type:"button"},o)," ","Previous"),a}}])}(ce.PureComponent),WHt=function(e){function t(){return qr(this,t),Hqe(this,t,arguments)}return hs(t,e),Kr(t,[{key:"clickHandler",value:function(r,i){i&&i.preventDefault(),this.props.clickHandler(r,i)}},{key:"render",value:function(){var r={"slick-arrow":!0,"slick-next":!0},i=this.clickHandler.bind(this,{message:"next"});FV(this.props)||(r["slick-disabled"]=!0,i=null);var o={key:"1","data-role":"none",className:we(r),style:{display:"block"},onClick:i},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},a;return this.props.nextArrow?a=ce.cloneElement(this.props.nextArrow,se(se({},o),s)):a=ce.createElement("button",V({key:"1",type:"button"},o)," ","Next"),a}}])}(ce.PureComponent),UHt=["animating"];function qHt(e,t,n){return t=ul(t),Py(e,tv()?Reflect.construct(t,n,ul(e).constructor):t.apply(e,n))}var KHt=function(e){function t(n){var r;qr(this,t),r=qHt(this,t,[n]),ie(r,"listRefHandler",function(o){return r.list=o}),ie(r,"trackRefHandler",function(o){return r.track=o}),ie(r,"adaptHeight",function(){if(r.props.adaptiveHeight&&r.list){var o=r.list.querySelector('[data-index="'.concat(r.state.currentSlide,'"]'));r.list.style.height=zpe(o)+"px"}}),ie(r,"componentDidMount",function(){if(r.props.onInit&&r.props.onInit(),r.props.lazyLoad){var o=rB(se(se({},r.props),r.state));o.length>0&&(r.setState(function(a){return{lazyLoadedList:a.lazyLoadedList.concat(o)}}),r.props.onLazyLoad&&r.props.onLazyLoad(o))}var s=se({listRef:r.list,trackRef:r.track},r.props);r.updateState(s,!0,function(){r.adaptHeight(),r.props.autoplay&&r.autoPlay("playing")}),r.props.lazyLoad==="progressive"&&(r.lazyLoadTimer=setInterval(r.progressiveLazyLoad,1e3)),r.ro=new rVe(function(){r.state.animating?(r.onWindowResized(!1),r.callbackTimers.push(setTimeout(function(){return r.onWindowResized()},r.props.speed))):r.onWindowResized()}),r.ro.observe(r.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(a){a.onfocus=r.props.pauseOnFocus?r.onSlideFocus:null,a.onblur=r.props.pauseOnFocus?r.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",r.onWindowResized):window.attachEvent("onresize",r.onWindowResized)}),ie(r,"componentWillUnmount",function(){r.animationEndCallback&&clearTimeout(r.animationEndCallback),r.lazyLoadTimer&&clearInterval(r.lazyLoadTimer),r.callbackTimers.length&&(r.callbackTimers.forEach(function(o){return clearTimeout(o)}),r.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",r.onWindowResized):window.detachEvent("onresize",r.onWindowResized),r.autoplayTimer&&clearInterval(r.autoplayTimer),r.ro.disconnect()}),ie(r,"componentDidUpdate",function(o){if(r.checkImagesLoad(),r.props.onReInit&&r.props.onReInit(),r.props.lazyLoad){var s=rB(se(se({},r.props),r.state));s.length>0&&(r.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(s)}}),r.props.onLazyLoad&&r.props.onLazyLoad(s))}r.adaptHeight();var a=se(se({listRef:r.list,trackRef:r.track},r.props),r.state),l=r.didPropsChange(o);l&&r.updateState(a,l,function(){r.state.currentSlide>=ce.Children.count(r.props.children)&&r.changeSlide({message:"index",index:ce.Children.count(r.props.children)-r.props.slidesToShow,currentSlide:r.state.currentSlide}),(o.autoplay!==r.props.autoplay||o.autoplaySpeed!==r.props.autoplaySpeed)&&(!o.autoplay&&r.props.autoplay?r.autoPlay("playing"):r.props.autoplay?r.autoPlay("update"):r.pause("paused"))})}),ie(r,"onWindowResized",function(o){r.debouncedResize&&r.debouncedResize.cancel(),r.debouncedResize=kpe(50,function(){return r.resizeWindow(o)}),r.debouncedResize()}),ie(r,"resizeWindow",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=!!(r.track&&r.track.node);if(s){var a=se(se({listRef:r.list,trackRef:r.track},r.props),r.state);r.updateState(a,o,function(){r.props.autoplay?r.autoPlay("update"):r.pause("paused")}),r.setState({animating:!1}),clearTimeout(r.animationEndCallback),delete r.animationEndCallback}}),ie(r,"updateState",function(o,s,a){var l=xHt(o);o=se(se(se({},o),l),{},{slideIndex:l.currentSlide});var c=AT(o);o=se(se({},o),{},{left:c});var u=_T(o);(s||ce.Children.count(r.props.children)!==ce.Children.count(o.children))&&(l.trackStyle=u),r.setState(l,a)}),ie(r,"ssrInit",function(){if(r.props.variableWidth){var o=0,s=0,a=[],l=c0(se(se(se({},r.props),r.state),{},{slideCount:r.props.children.length})),c=vN(se(se(se({},r.props),r.state),{},{slideCount:r.props.children.length}));r.props.children.forEach(function(x){a.push(x.props.style.width),o+=x.props.style.width});for(var u=0;u<l;u++)s+=a[a.length-1-u],o+=a[a.length-1-u];for(var f=0;f<c;f++)o+=a[f];for(var h=0;h<r.state.currentSlide;h++)s+=a[h];var g={width:o+"px",left:-s+"px"};if(r.props.centerMode){var p="".concat(a[r.state.currentSlide],"px");g.left="calc(".concat(g.left," + (100% - ").concat(p,") / 2 ) ")}return{trackStyle:g}}var m=ce.Children.count(r.props.children),v=se(se(se({},r.props),r.state),{},{slideCount:m}),C=c0(v)+vN(v)+m,y=100/r.props.slidesToShow*C,b=100/C,S=-b*(c0(v)+r.state.currentSlide)*y/100;r.props.centerMode&&(S+=(100-b*y/100)/2);var w={width:y+"%",left:S+"%"};return{slideWidth:b+"%",trackStyle:w}}),ie(r,"checkImagesLoad",function(){var o=r.list&&r.list.querySelectorAll&&r.list.querySelectorAll(".slick-slide img")||[],s=o.length,a=0;Array.prototype.forEach.call(o,function(l){var c=function(){return++a&&a>=s&&r.onWindowResized()};if(!l.onclick)l.onclick=function(){return l.parentNode.focus()};else{var u=l.onclick;l.onclick=function(f){u(f),l.parentNode.focus()}}l.onload||(r.props.lazyLoad?l.onload=function(){r.adaptHeight(),r.callbackTimers.push(setTimeout(r.onWindowResized,r.props.speed))}:(l.onload=c,l.onerror=function(){c(),r.props.onLazyLoadError&&r.props.onLazyLoadError()}))})}),ie(r,"progressiveLazyLoad",function(){for(var o=[],s=se(se({},r.props),r.state),a=r.state.currentSlide;a<r.state.slideCount+vN(s);a++)if(r.state.lazyLoadedList.indexOf(a)<0){o.push(a);break}for(var l=r.state.currentSlide-1;l>=-c0(s);l--)if(r.state.lazyLoadedList.indexOf(l)<0){o.push(l);break}o.length>0?(r.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(o)}}),r.props.onLazyLoad&&r.props.onLazyLoad(o)):r.lazyLoadTimer&&(clearInterval(r.lazyLoadTimer),delete r.lazyLoadTimer)}),ie(r,"slideHandler",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=r.props,l=a.asNavFor,c=a.beforeChange,u=a.onLazyLoad,f=a.speed,h=a.afterChange,g=r.state.currentSlide,p=EHt(se(se(se({index:o},r.props),r.state),{},{trackRef:r.track,useCSS:r.props.useCSS&&!s})),m=p.state,v=p.nextState;if(m){c&&c(g,m.currentSlide);var C=m.lazyLoadedList.filter(function(y){return r.state.lazyLoadedList.indexOf(y)<0});u&&C.length>0&&u(C),!r.props.waitForAnimate&&r.animationEndCallback&&(clearTimeout(r.animationEndCallback),h&&h(g),delete r.animationEndCallback),r.setState(m,function(){l&&r.asNavForIndex!==o&&(r.asNavForIndex=o,l.innerSlider.slideHandler(o)),v&&(r.animationEndCallback=setTimeout(function(){var y=v.animating,b=on(v,UHt);r.setState(b,function(){r.callbackTimers.push(setTimeout(function(){return r.setState({animating:y})},10)),h&&h(m.currentSlide),delete r.animationEndCallback})},f))})}}),ie(r,"changeSlide",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=se(se({},r.props),r.state),l=RHt(a,o);if(!(l!==0&&!l)&&(s===!0?r.slideHandler(l,s):r.slideHandler(l),r.props.autoplay&&r.autoPlay("update"),r.props.focusOnSelect)){var c=r.list.querySelectorAll(".slick-current");c[0]&&c[0].focus()}}),ie(r,"clickHandler",function(o){r.clickable===!1&&(o.stopPropagation(),o.preventDefault()),r.clickable=!0}),ie(r,"keyHandler",function(o){var s=$Ht(o,r.props.accessibility,r.props.rtl);s!==""&&r.changeSlide({message:s})}),ie(r,"selectHandler",function(o){r.changeSlide(o)}),ie(r,"disableBodyScroll",function(){var o=function(a){a=a||window.event,a.preventDefault&&a.preventDefault(),a.returnValue=!1};window.ontouchmove=o}),ie(r,"enableBodyScroll",function(){window.ontouchmove=null}),ie(r,"swipeStart",function(o){r.props.verticalSwiping&&r.disableBodyScroll();var s=OHt(o,r.props.swipe,r.props.draggable);s!==""&&r.setState(s)}),ie(r,"swipeMove",function(o){var s=THt(o,se(se(se({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));s&&(s.swiping&&(r.clickable=!1),r.setState(s))}),ie(r,"swipeEnd",function(o){var s=IHt(o,se(se(se({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));if(s){var a=s.triggerSlideHandler;delete s.triggerSlideHandler,r.setState(s),a!==void 0&&(r.slideHandler(a),r.props.verticalSwiping&&r.enableBodyScroll())}}),ie(r,"touchEnd",function(o){r.swipeEnd(o),r.clickable=!0}),ie(r,"slickPrev",function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:"previous"})},0))}),ie(r,"slickNext",function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:"next"})},0))}),ie(r,"slickGoTo",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o=Number(o),isNaN(o))return"";r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:"index",index:o,currentSlide:r.state.currentSlide},s)},0))}),ie(r,"play",function(){var o;if(r.props.rtl)o=r.state.currentSlide-r.props.slidesToScroll;else if(FV(se(se({},r.props),r.state)))o=r.state.currentSlide+r.props.slidesToScroll;else return!1;r.slideHandler(o)}),ie(r,"autoPlay",function(o){r.autoplayTimer&&clearInterval(r.autoplayTimer);var s=r.state.autoplaying;if(o==="update"){if(s==="hovered"||s==="focused"||s==="paused")return}else if(o==="leave"){if(s==="paused"||s==="focused")return}else if(o==="blur"&&(s==="paused"||s==="hovered"))return;r.autoplayTimer=setInterval(r.play,r.props.autoplaySpeed+50),r.setState({autoplaying:"playing"})}),ie(r,"pause",function(o){r.autoplayTimer&&(clearInterval(r.autoplayTimer),r.autoplayTimer=null);var s=r.state.autoplaying;o==="paused"?r.setState({autoplaying:"paused"}):o==="focused"?(s==="hovered"||s==="playing")&&r.setState({autoplaying:"focused"}):s==="playing"&&r.setState({autoplaying:"hovered"})}),ie(r,"onDotsOver",function(){return r.props.autoplay&&r.pause("hovered")}),ie(r,"onDotsLeave",function(){return r.props.autoplay&&r.state.autoplaying==="hovered"&&r.autoPlay("leave")}),ie(r,"onTrackOver",function(){return r.props.autoplay&&r.pause("hovered")}),ie(r,"onTrackLeave",function(){return r.props.autoplay&&r.state.autoplaying==="hovered"&&r.autoPlay("leave")}),ie(r,"onSlideFocus",function(){return r.props.autoplay&&r.pause("focused")}),ie(r,"onSlideBlur",function(){return r.props.autoplay&&r.state.autoplaying==="focused"&&r.autoPlay("blur")}),ie(r,"render",function(){var o=we("slick-slider",r.props.className,{"slick-vertical":r.props.vertical,"slick-initialized":!0}),s=se(se({},r.props),r.state),a=rte(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),l=r.props.pauseOnHover;a=se(se({},a),{},{onMouseEnter:l?r.onTrackOver:null,onMouseLeave:l?r.onTrackLeave:null,onMouseOver:l?r.onTrackOver:null,focusOnSelect:r.props.focusOnSelect&&r.clickable?r.selectHandler:null});var c;if(r.props.dots===!0&&r.state.slideCount>=r.props.slidesToShow){var u=rte(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=r.props.pauseOnDotsHover;u=se(se({},u),{},{clickHandler:r.changeSlide,onMouseEnter:f?r.onDotsLeave:null,onMouseOver:f?r.onDotsOver:null,onMouseLeave:f?r.onDotsLeave:null}),c=ce.createElement(VHt,u)}var h,g,p=rte(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=r.changeSlide,r.props.arrows&&(h=ce.createElement(GHt,p),g=ce.createElement(WHt,p));var m=null;r.props.vertical&&(m={height:r.state.listHeight});var v=null;r.props.vertical===!1?r.props.centerMode===!0&&(v={padding:"0px "+r.props.centerPadding}):r.props.centerMode===!0&&(v={padding:r.props.centerPadding+" 0px"});var C=se(se({},m),v),y=r.props.touchMove,b={className:"slick-list",style:C,onClick:r.clickHandler,onMouseDown:y?r.swipeStart:null,onMouseMove:r.state.dragging&&y?r.swipeMove:null,onMouseUp:y?r.swipeEnd:null,onMouseLeave:r.state.dragging&&y?r.swipeEnd:null,onTouchStart:y?r.swipeStart:null,onTouchMove:r.state.dragging&&y?r.swipeMove:null,onTouchEnd:y?r.touchEnd:null,onTouchCancel:r.state.dragging&&y?r.swipeEnd:null,onKeyDown:r.props.accessibility?r.keyHandler:null},S={className:o,dir:"ltr",style:r.props.style};return r.props.unslick&&(b={className:"slick-list"},S={className:o,style:r.props.style}),ce.createElement("div",S,r.props.unslick?"":h,ce.createElement("div",V({ref:r.listRefHandler},b),ce.createElement(BHt,V({ref:r.trackRefHandler},a),r.props.children)),r.props.unslick?"":g,r.props.unslick?"":c)}),r.list=null,r.track=null,r.state=se(se({},yHt),{},{currentSlide:r.props.initialSlide,targetSlide:r.props.initialSlide?r.props.initialSlide:0,slideCount:ce.Children.count(r.props.children)}),r.callbackTimers=[],r.clickable=!0,r.debouncedResize=null;var i=r.ssrInit();return r.state=se(se({},r.state),i),r}return hs(t,e),Kr(t,[{key:"didPropsChange",value:function(r){for(var i=!1,o=0,s=Object.keys(this.props);o<s.length;o++){var a=s[o];if(!r.hasOwnProperty(a)){i=!0;break}if(!(nn(r[a])==="object"||typeof r[a]=="function"||isNaN(r[a]))&&r[a]!==this.props[a]){i=!0;break}}return i||ce.Children.count(this.props.children)!==ce.Children.count(r.children)}}])}(ce.Component),YHt=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},XHt=YHt,QHt=XHt,ZHt=function(e){var t=/[height|width]$/;return t.test(e)},g7e=function(e){var t="",n=Object.keys(e);return n.forEach(function(r,i){var o=e[r];r=QHt(r),ZHt(r)&&typeof o=="number"&&(o=o+"px"),o===!0?t+=r:o===!1?t+="not "+r:t+="("+r+": "+o+")",i<n.length-1&&(t+=" and ")}),t},JHt=function(e){var t="";return typeof e=="string"?e:e instanceof Array?(e.forEach(function(n,r){t+=g7e(n),r<e.length-1&&(t+=", ")}),t):g7e(e)},ejt=JHt;const ste=Bm(ejt);function tjt(e,t,n){return t=ul(t),Py(e,tv()?Reflect.construct(t,n,ul(e).constructor):t.apply(e,n))}var jqe=function(e){function t(n){var r;return qr(this,t),r=tjt(this,t,[n]),ie(r,"innerSliderRefHandler",function(i){return r.innerSlider=i}),ie(r,"slickPrev",function(){return r.innerSlider.slickPrev()}),ie(r,"slickNext",function(){return r.innerSlider.slickNext()}),ie(r,"slickGoTo",function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return r.innerSlider.slickGoTo(i,o)}),ie(r,"slickPause",function(){return r.innerSlider.pause("paused")}),ie(r,"slickPlay",function(){return r.innerSlider.autoPlay("play")}),r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return hs(t,e),Kr(t,[{key:"media",value:function(r,i){var o=window.matchMedia(r),s=function(l){var c=l.matches;c&&i()};o.addListener(s),s(o),this._responsiveMediaHandlers.push({mql:o,query:r,listener:s})}},{key:"componentDidMount",value:function(){var r=this;if(this.props.responsive){var i=this.props.responsive.map(function(s){return s.breakpoint});i.sort(function(s,a){return s-a}),i.forEach(function(s,a){var l;a===0?l=ste({minWidth:0,maxWidth:s}):l=ste({minWidth:i[a-1]+1,maxWidth:s}),h7e()&&r.media(l,function(){r.setState({breakpoint:s})})});var o=ste({minWidth:i.slice(-1)[0]});h7e()&&this.media(o,function(){r.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(r){r.mql.removeListener(r.listener)})}},{key:"render",value:function(){var r=this,i,o;this.state.breakpoint?(o=this.props.responsive.filter(function(m){return m.breakpoint===r.state.breakpoint}),i=o[0].settings==="unslick"?"unslick":se(se(se({},ple),this.props),o[0].settings)):i=se(se({},ple),this.props),i.centerMode&&(i.slidesToScroll>1,i.slidesToScroll=1),i.fade&&(i.slidesToShow>1,i.slidesToScroll>1,i.slidesToShow=1,i.slidesToScroll=1);var s=ce.Children.toArray(this.props.children);s=s.filter(function(m){return typeof m=="string"?!!m.trim():!!m}),i.variableWidth&&(i.rows>1||i.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),i.variableWidth=!1);for(var a=[],l=null,c=0;c<s.length;c+=i.rows*i.slidesPerRow){for(var u=[],f=c;f<c+i.rows*i.slidesPerRow;f+=i.slidesPerRow){for(var h=[],g=f;g<f+i.slidesPerRow&&(i.variableWidth&&s[g].props.style&&(l=s[g].props.style.width),!(g>=s.length));g+=1)h.push(ce.cloneElement(s[g],{key:100*c+10*f+g,tabIndex:-1,style:{width:"".concat(100/i.slidesPerRow,"%"),display:"inline-block"}}));u.push(ce.createElement("div",{key:10*c+f},h))}i.variableWidth?a.push(ce.createElement("div",{key:c,style:{width:l}},u)):a.push(ce.createElement("div",{key:c},u))}if(i==="unslick"){var p="regular slider "+(this.props.className||"");return ce.createElement("div",{className:p},s)}else a.length<=i.slidesToShow&&!i.infinite&&(i.unslick=!0);return ce.createElement(KHt,V({style:this.props.style,ref:this.innerSliderRefHandler},FHt(i)),a)}}])}(ce.Component);const njt=Object.freeze(Object.defineProperty({__proto__:null,default:jqe},Symbol.toStringTag,{value:"Module"})),rjt=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},ii(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},ijt=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:r,arrowOffset:i}=e,o=e.calc(r).div(Math.SQRT2).equal();return[{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:r,height:r,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(r).sub(o).div(2).equal(),insetInlineStart:e.calc(r).sub(o).div(2).equal(),display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:i,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:i,"&::after":{transform:"rotate(135deg)"}}}}]},ojt=e=>{const{componentCls:t,dotOffset:n,dotWidth:r,dotHeight:i,dotGap:o,colorBgContainer:s,motionDurationSlow:a}=e;return[{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:r,height:i,marginInline:o,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${a}`,button:{position:"relative",display:"block",width:"100%",height:i,padding:0,color:"transparent",fontSize:0,background:s,border:0,borderRadius:i,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${a}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(o).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:s,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},sjt=e=>{const{componentCls:t,dotOffset:n,arrowOffset:r,marginXXS:i}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:r,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:r,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},o),{margin:`${Ne(i)} 0`,verticalAlign:"baseline",button:o,"&.slick-active":Object.assign(Object.assign({},o),{button:o})})}}}},ajt=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},ljt=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),cjt=Yr("Carousel",e=>[rjt(e),ijt(e),ojt(e),sjt(e),ajt(e)],ljt,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var Vqe=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 p7e="slick-dots",m7e=e=>{var t=Vqe(e,["currentSlide","slideCount"]);return d.createElement("button",Object.assign({type:"button"},t))},ujt=d.forwardRef((e,t)=>{const{dots:n=!0,arrows:r=!1,prevArrow:i=d.createElement(m7e,{"aria-label":"prev"}),nextArrow:o=d.createElement(m7e,{"aria-label":"next"}),draggable:s=!1,waitForAnimate:a=!1,dotPosition:l="bottom",vertical:c=l==="left"||l==="right",rootClassName:u,className:f,style:h,id:g}=e,p=Vqe(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:m,direction:v,carousel:C}=d.useContext(vn),y=d.useRef(null),b=function(F){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;y.current.slickGoTo(F,D)};d.useImperativeHandle(t,()=>({goTo:b,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext}),[y.current]);const S=d.useRef(d.Children.count(e.children));d.useEffect(()=>{S.current!==d.Children.count(e.children)&&(b(e.initialSlide||0,!1),S.current=d.Children.count(e.children))},[e.children]);const w=Object.assign({vertical:c,className:we(f,C==null?void 0:C.className),style:Object.assign(Object.assign({},C==null?void 0:C.style),h)},p);w.effect==="fade"&&(w.fade=!0);const x=m("carousel",w.prefixCls),E=!!n,R=we(p7e,`${p7e}-${l}`,typeof n=="boolean"?!1:n==null?void 0:n.className),[O,T,M]=cjt(x),_=we(x,{[`${x}-rtl`]:v==="rtl",[`${x}-vertical`]:w.vertical},T,M,u);return O(d.createElement("div",{className:_,id:g},d.createElement(jqe,Object.assign({ref:y},w,{dots:E,dotsClass:R,arrows:r,prevArrow:i,nextArrow:o,draggable:s,verticalSwiping:c,waitForAnimate:a}))))});var Yx=d.createContext({}),ZS="__rc_cascader_search_mark__",djt=function(t,n,r){var i=r.label,o=i===void 0?"":i;return n.some(function(s){return String(s[o]).toLowerCase().includes(t.toLowerCase())})},fjt=function(t,n,r,i){return n.map(function(o){return o[i.label]}).join(" / ")},hjt=function(t,n,r,i,o,s){var a=o.filter,l=a===void 0?djt:a,c=o.render,u=c===void 0?fjt:c,f=o.limit,h=f===void 0?50:f,g=o.sort;return d.useMemo(function(){var p=[];if(!t)return[];function m(v,C){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(b){if(!(!g&&h!==!1&&h>0&&p.length>=h)){var S=[].concat(ut(C),[b]),w=b[r.children],x=y||b.disabled;(!w||w.length===0||s)&&l(t,S,{label:r.label})&&p.push(se(se({},b),{},ie(ie(ie({disabled:x},r.label,u(t,S,i,r)),ZS,S),r.children,void 0))),w&&m(b[r.children],S,x)}})}return m(n,[]),g&&p.sort(function(v,C){return g(v[ZS],C[ZS],t,r)}),h!==!1&&h>0?p.slice(0,h):p},[t,n,r,i,u,s,l,g,h])},Hpe="__RC_CASCADER_SPLIT__",Gqe="SHOW_PARENT",Wqe="SHOW_CHILD";function Rg(e){return e.join(Hpe)}function f7(e){return e.map(Rg)}function gjt(e){return e.split(Hpe)}function Uqe(e){var t=e||{},n=t.label,r=t.value,i=t.children,o=r||"value";return{label:n||"label",value:o,key:o,children:i||"children"}}function a$(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function pjt(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function qqe(e,t){return e.map(function(n){var r;return(r=n[ZS])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function mjt(e){return Array.isArray(e)&&Array.isArray(e[0])}function iB(e){return e?mjt(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function Kqe(e,t,n){var r=new Set(e),i=t();return e.filter(function(o){var s=i[o],a=s?s.parent:null,l=s?s.children:null;return s&&s.node.disabled?!0:n===Wqe?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(a&&!a.node.disabled&&r.has(a.key))})}function h7(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,o=[],s=function(){var c,u,f,h=e[a],g=(c=i)===null||c===void 0?void 0:c.findIndex(function(m){var v=m[n.value];return r?String(v)===String(h):v===h}),p=g!==-1?(u=i)===null||u===void 0?void 0:u[g]:null;o.push({value:(f=p==null?void 0:p[n.value])!==null&&f!==void 0?f:h,index:g,option:p}),i=p==null?void 0:p[n.children]},a=0;a<e.length;a+=1)s();return o}const vjt=function(e,t,n,r,i){return d.useMemo(function(){var o=i||function(s){var a=r?s.slice(-1):s,l=" / ";return a.every(function(c){return["string","number"].includes(nn(c))})?a.join(l):a.reduce(function(c,u,f){var h=d.isValidElement(u)?d.cloneElement(u,{key:f}):u;return f===0?[h]:[].concat(ut(c),[l,h])},[])};return e.map(function(s){var a,l=h7(s,t,n),c=o(l.map(function(f){var h,g=f.option,p=f.value;return(h=g==null?void 0:g[n.label])!==null&&h!==void 0?h:p}),l.map(function(f){var h=f.option;return h})),u=Rg(s);return{label:c,value:u,key:u,valueCells:s,disabled:(a=l[l.length-1])===null||a===void 0||(a=a.option)===null||a===void 0?void 0:a.disabled}})},[e,t,n,i,r])};function Yqe(e,t){return d.useCallback(function(n){var r=[],i=[];return n.forEach(function(o){var s=h7(o,e,t);s.every(function(a){return a.option})?i.push(o):r.push(o)}),[i,r]},[e,t])}function tu(e,t){return e[t]}var Cjt=["children"];function Xqe(e,t){return"".concat(e,"-").concat(t)}function yjt(e){return e&&e.type&&e.type.isTreeNode}function lM(e,t){return e??t}function oB(e){var t=e||{},n=t.title,r=t._title,i=t.key,o=t.children,s=n||"title";return{title:s,_title:r||[s],key:i||"key",children:o||"children"}}function bjt(e){function t(n){var r=Rs(n);return r.map(function(i){if(!yjt(i))return ui(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var o=i.key,s=i.props,a=s.children,l=on(s,Cjt),c=se({key:o},l),u=t(a);return u.length&&(c.children=u),c}).filter(function(i){return i})}return t(e)}function ate(e,t,n){var r=oB(n),i=r._title,o=r.key,s=r.children,a=new Set(t===!0?[]:t),l=[];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(h,g){for(var p=Xqe(f?f.pos:"0",g),m=lM(h[o],p),v,C=0;C<i.length;C+=1){var y=i[C];if(h[y]!==void 0){v=h[y];break}}var b=Object.assign($i(h,[].concat(ut(i),[o,s])),{title:v,key:m,parent:f,pos:p,children:null,data:h,isStart:[].concat(ut(f?f.isStart:[]),[g===0]),isEnd:[].concat(ut(f?f.isEnd:[]),[g===u.length-1])});return l.push(b),t===!0||a.has(m)?b.children=c(h[s]||[],b):b.children=[],b})}return c(e),l}function Sjt(e,t,n){var r={};nn(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,o=i.childrenPropName,s=i.externalGetKey,a=i.fieldNames,l=oB(a),c=l.key,u=l.children,f=o||u,h;s?typeof s=="string"?h=function(m){return m[s]}:typeof s=="function"&&(h=function(m){return s(m)}):h=function(m,v){return lM(m[c],v)};function g(p,m,v,C){var y=p?p[f]:e,b=p?Xqe(v.pos,m):"0",S=p?[].concat(ut(C),[p]):[];if(p){var w=h(p,b),x={node:p,index:m,pos:b,key:w,parentPos:v.node?v.pos:null,level:v.level+1,nodes:S};t(x)}y&&y.forEach(function(E,R){g(E,R,{node:p,pos:b,level:v?v.level+1:-1},S)})}g(null)}function jpe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,o=t.externalGetKey,s=t.childrenPropName,a=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=o||l,u={},f={},h={posEntities:u,keyEntities:f};return n&&(h=n(h)||h),Sjt(e,function(g){var p=g.node,m=g.index,v=g.pos,C=g.key,y=g.parentPos,b=g.level,S=g.nodes,w={node:p,nodes:S,index:m,key:C,pos:v,level:b},x=lM(C,v);u[v]=w,f[x]=w,w.parent=u[y],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,h)},{externalGetKey:c,childrenPropName:s,fieldNames:a}),i&&i(h),h}function K$(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,s=t.checkedKeys,a=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=tu(u,e),h={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:s.indexOf(e)!==-1,halfChecked:a.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return h}function As(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,s=e.loading,a=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,h=e.active,g=e.eventKey,p=se(se({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:s,halfChecked:a,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:h,key:g});return"props"in p||Object.defineProperty(p,"props",{get:function(){return ui(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}const wjt=function(e,t){var n=d.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=d.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=jpe(e,{fieldNames:t,initWrapper:function(o){return se(se({},o),{},{pathKeyEntities:{}})},processEntity:function(o,s){var a=o.nodes.map(function(l){return l[t.value]}).join(Hpe);s.pathKeyEntities[a]=o,o.key=a}})),n.current.info.pathKeyEntities},[t,e]);return r};function Qqe(e,t){var n=d.useMemo(function(){return t||[]},[t]),r=wjt(n,e),i=d.useCallback(function(o){var s=r();return o.map(function(a){var l=s[a].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,i]}function xjt(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&nn(e)==="object"&&(t=se(se({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function Zqe(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Ejt(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function Rjt(e,t,n,r){for(var i=new Set(e),o=new Set,s=0;s<=n;s+=1){var a=t.get(s)||new Set;a.forEach(function(f){var h=f.key,g=f.node,p=f.children,m=p===void 0?[]:p;i.has(h)&&!r(g)&&m.filter(function(v){return!r(v.node)}).forEach(function(v){i.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var h=f.parent,g=f.node;if(!(r(g)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(h.key);return}var p=!0,m=!1;(h.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var C=v.key,y=i.has(C);p&&!y&&(p=!1),!m&&(y||o.has(C))&&(m=!0)}),p&&i.add(h.key),m&&o.add(h.key),l.add(h.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Zqe(o,i))}}function $jt(e,t,n,r,i){for(var o=new Set(e),s=new Set(t),a=0;a<=r;a+=1){var l=n.get(a)||new Set;l.forEach(function(h){var g=h.key,p=h.node,m=h.children,v=m===void 0?[]:m;!o.has(g)&&!s.has(g)&&!i(p)&&v.filter(function(C){return!i(C.node)}).forEach(function(C){o.delete(C.key)})})}s=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(h){var g=h.parent,p=h.node;if(!(i(p)||!h.parent||c.has(h.parent.key))){if(i(h.parent.node)){c.add(g.key);return}var m=!0,v=!1;(g.children||[]).filter(function(C){return!i(C.node)}).forEach(function(C){var y=C.key,b=o.has(y);m&&!b&&(m=!1),!v&&(b||s.has(y))&&(v=!0)}),m||o.delete(g.key),v&&s.add(g.key),c.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Zqe(s,o))}}function p0(e,t,n,r){var i=[],o;o=Ejt;var s=new Set(e.filter(function(u){var f=!!tu(n,u);return f||i.push(u),f})),a=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],h=f.level,g=a.get(h);g||(g=new Set,a.set(h,g)),g.add(f),l=Math.max(l,h)}),ui(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=Rjt(s,a,l,o):c=$jt(s,t.halfCheckedKeys,a,l,o),c}function Jqe(e,t,n,r,i,o,s,a){return function(l){if(!e)t(l);else{var c=Rg(l),u=f7(n),f=f7(r),h=u.includes(c),g=i.some(function(x){return Rg(x)===c}),p=n,m=i;if(g&&!h)m=i.filter(function(x){return Rg(x)!==c});else{var v=h?u.filter(function(x){return x!==c}):[].concat(ut(u),[c]),C=o(),y;if(h){var b=p0(v,{checked:!1,halfCheckedKeys:f},C);y=b.checkedKeys}else{var S=p0(v,!0,C);y=S.checkedKeys}var w=Kqe(y,o,a);p=s(w)}t([].concat(ut(m),ut(p)))}}}function eKe(e,t,n,r,i){return d.useMemo(function(){var o=i(t),s=Ce(o,2),a=s[0],l=s[1];if(!e||!t.length)return[a,[],l];var c=f7(a),u=n(),f=p0(c,!0,u),h=f.checkedKeys,g=f.halfCheckedKeys;return[r(h),r(g),l]},[e,t,n,r,i])}var Ojt=d.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function Tjt(e){var t=e.prefixCls,n=e.checked,r=e.halfChecked,i=e.disabled,o=e.onClick,s=e.disableCheckbox,a=d.useContext(Yx),l=a.checkable,c=typeof l!="boolean"?l:null;return d.createElement("span",{className:we("".concat(t),ie(ie(ie({},"".concat(t,"-checked"),n),"".concat(t,"-indeterminate"),!n&&r),"".concat(t,"-disabled"),i||s)),onClick:o},c)}var tKe="__cascader_fix_label__";function Ijt(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,o=e.prevValuePath,s=e.onToggleOpen,a=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,f=e.loadingKeys,h=e.isSelectable,g=e.disabled,p="".concat(t,"-menu"),m="".concat(t,"-menu-item"),v=d.useContext(Yx),C=v.fieldNames,y=v.changeOnSelect,b=v.expandTrigger,S=v.expandIcon,w=v.loadingIcon,x=v.dropdownMenuColumnStyle,E=v.optionRender,R=b==="hover",O=function(_){return g||_},T=d.useMemo(function(){return r.map(function(M){var _,F=M.disabled,D=M.disableCheckbox,k=M[ZS],L=(_=M[tKe])!==null&&_!==void 0?_:M[C.label],I=M[C.value],A=a$(M,C),N=k?k.map(function(G){return G[C.value]}):[].concat(ut(o),[I]),B=Rg(N),z=f.includes(B),j=c.has(B),W=u.has(B);return{disabled:F,label:L,value:I,isLeaf:A,isLoading:z,checked:j,halfChecked:W,option:M,disableCheckbox:D,fullPath:N,fullPathKey:B}})},[r,c,C,u,f,o]);return d.createElement("ul",{className:p,role:"menu"},T.map(function(M){var _=M.disabled,F=M.label,D=M.value,k=M.isLeaf,L=M.isLoading,I=M.checked,A=M.halfChecked,N=M.option,B=M.fullPath,z=M.fullPathKey,j=M.disableCheckbox,W=function(){if(!O(_)){var X=ut(B);R&&k&&X.pop(),l(X)}},G=function(){h(N)&&!O(_)&&a(B,k)},K;return typeof N.title=="string"?K=N.title:typeof F=="string"&&(K=F),d.createElement("li",{key:z,className:we(m,ie(ie(ie(ie({},"".concat(m,"-expand"),!k),"".concat(m,"-active"),i===D||i===z),"".concat(m,"-disabled"),O(_)),"".concat(m,"-loading"),L)),style:x,role:"menuitemcheckbox",title:K,"aria-checked":I,"data-path-key":z,onClick:function(){W(),!j&&(!n||k)&&G()},onDoubleClick:function(){y&&s(!1)},onMouseEnter:function(){R&&W()},onMouseDown:function(X){X.preventDefault()}},n&&d.createElement(Tjt,{prefixCls:"".concat(t,"-checkbox"),checked:I,halfChecked:A,disabled:O(_)||j,disableCheckbox:j,onClick:function(X){j||(X.stopPropagation(),G())}}),d.createElement("div",{className:"".concat(m,"-content")},E?E(N):F),!L&&S&&!k&&d.createElement("div",{className:"".concat(m,"-expand-icon")},S),L&&w&&d.createElement("div",{className:"".concat(m,"-loading-icon")},w))}))}var Mjt=function(t,n){var r=d.useContext(Yx),i=r.values,o=i[0],s=d.useState([]),a=Ce(s,2),l=a[0],c=a[1];return d.useEffect(function(){t||c(o||[])},[n,o]),[l,c]};const Pjt=function(e,t,n,r,i,o,s){var a=s.direction,l=s.searchValue,c=s.toggleOpen,u=s.open,f=a==="rtl",h=d.useMemo(function(){for(var x=-1,E=t,R=[],O=[],T=r.length,M=qqe(t,n),_=function(I){var A=E.findIndex(function(N,B){return(M[B]?Rg(M[B]):N[n.value])===r[I]});if(A===-1)return 1;x=A,R.push(x),O.push(r[I]),E=E[x][n.children]},F=0;F<T&&E&&!_(F);F+=1);for(var D=t,k=0;k<R.length-1;k+=1)D=D[R[k]][n.children];return[O,x,D,M]},[r,n,t]),g=Ce(h,4),p=g[0],m=g[1],v=g[2],C=g[3],y=function(E){i(E)},b=function(E){var R=v.length,O=m;O===-1&&E<0&&(O=R);for(var T=0;T<R;T+=1){O=(O+E+R)%R;var M=v[O];if(M&&!M.disabled){var _=p.slice(0,-1).concat(C[O]?Rg(C[O]):M[n.value]);y(_);return}}},S=function(){if(p.length>1){var E=p.slice(0,-1);y(E)}else c(!1)},w=function(){var E,R=((E=v[m])===null||E===void 0?void 0:E[n.children])||[],O=R.find(function(M){return!M.disabled});if(O){var T=[].concat(ut(p),[O[n.value]]);y(T)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(E){var R=E.which;switch(R){case lt.UP:case lt.DOWN:{var O=0;R===lt.UP?O=-1:R===lt.DOWN&&(O=1),O!==0&&b(O);break}case lt.LEFT:{if(l)break;f?w():S();break}case lt.RIGHT:{if(l)break;f?S():w();break}case lt.BACKSPACE:{l||S();break}case lt.ENTER:{if(p.length){var T=v[m],M=(T==null?void 0:T[ZS])||[];M.length?o(M.map(function(_){return _[n.value]}),M[M.length-1]):o(p,v[m])}break}case lt.ESC:c(!1),u&&E.stopPropagation()}},onKeyUp:function(){}}})};var nKe=d.forwardRef(function(e,t){var n,r=e.prefixCls,i=e.multiple,o=e.searchValue,s=e.toggleOpen,a=e.notFoundContent,l=e.direction,c=e.open,u=e.disabled,f=d.useRef(null),h=l==="rtl",g=d.useContext(Yx),p=g.options,m=g.values,v=g.halfValues,C=g.fieldNames,y=g.changeOnSelect,b=g.onSelect,S=g.searchOptions,w=g.dropdownPrefixCls,x=g.loadData,E=g.expandTrigger,R=w||r,O=d.useState([]),T=Ce(O,2),M=T[0],_=T[1],F=function(ee){if(!(!x||o)){var J=h7(ee,p,C),oe=J.map(function(he){var ye=he.option;return ye}),le=oe[oe.length-1];if(le&&!a$(le,C)){var ge=Rg(ee);_(function(he){return[].concat(ut(he),[ge])}),x(oe)}}};d.useEffect(function(){M.length&&M.forEach(function(Z){var ee=gjt(Z),J=h7(ee,p,C,!0).map(function(le){var ge=le.option;return ge}),oe=J[J.length-1];(!oe||oe[C.children]||a$(oe,C))&&_(function(le){return le.filter(function(ge){return ge!==Z})})})},[p,M,C]);var D=d.useMemo(function(){return new Set(f7(m))},[m]),k=d.useMemo(function(){return new Set(f7(v))},[v]),L=Mjt(i,c),I=Ce(L,2),A=I[0],N=I[1],B=function(ee){N(ee),F(ee)},z=function(ee){if(u)return!1;var J=ee.disabled,oe=a$(ee,C);return!J&&(oe||y||i)},j=function(ee,J){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;b(ee),!i&&(J||y&&(E==="hover"||oe))&&s(!1)},W=d.useMemo(function(){return o?S:p},[o,S,p]),G=d.useMemo(function(){for(var Z=[{options:W}],ee=W,J=qqe(ee,C),oe=function(){var he=A[le],ye=ee.find(function(ve,de){return(J[de]?Rg(J[de]):ve[C.value])===he}),ue=ye==null?void 0:ye[C.children];if(!(ue!=null&&ue.length))return 1;ee=ue,Z.push({options:ue})},le=0;le<A.length&&!oe();le+=1);return Z},[W,A,C]),K=function(ee,J){z(J)&&j(ee,a$(J,C),!0)};Pjt(t,W,C,A,B,K,{direction:l,searchValue:o,toggleOpen:s,open:c}),d.useEffect(function(){if(!o)for(var Z=0;Z<A.length;Z+=1){var ee,J=A.slice(0,Z+1),oe=Rg(J),le=(ee=f.current)===null||ee===void 0?void 0:ee.querySelector('li[data-path-key="'.concat(oe.replace(/\\{0,2}"/g,'\\"'),'"]'));le&&pjt(le)}},[A,o]);var q=!((n=G[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),X=[ie(ie(ie({},C.value,"__EMPTY__"),tKe,a),"disabled",!0)],Q=se(se({},e),{},{multiple:!q&&i,onSelect:j,onActive:B,onToggleOpen:s,checkedSet:D,halfCheckedSet:k,loadingKeys:M,isSelectable:z}),te=q?[{options:X}]:G,ne=te.map(function(Z,ee){var J=A.slice(0,ee),oe=A[ee];return d.createElement(Ijt,V({key:ee},Q,{prefixCls:R,options:Z.options,prevValuePath:J,activeValue:oe}))});return d.createElement(Ojt,{open:c},d.createElement("div",{className:we("".concat(R,"-menus"),ie(ie({},"".concat(R,"-menu-empty"),q),"".concat(R,"-rtl"),h)),ref:f},ne))}),_jt=d.forwardRef(function(e,t){var n=fV();return d.createElement(nKe,V({},e,n,{ref:t}))});function Ajt(){}function rKe(e){var t=e,n=t.prefixCls,r=n===void 0?"rc-cascader":n,i=t.style,o=t.className,s=t.options,a=t.checkable,l=t.defaultValue,c=t.value,u=t.fieldNames,f=t.changeOnSelect,h=t.onChange,g=t.showCheckedStrategy,p=t.loadData,m=t.expandTrigger,v=t.expandIcon,C=v===void 0?">":v,y=t.loadingIcon,b=t.direction,S=t.notFoundContent,w=S===void 0?"Not Found":S,x=t.disabled,E=!!a,R=ir(l,{value:c,postState:iB}),O=Ce(R,2),T=O[0],M=O[1],_=d.useMemo(function(){return Uqe(u)},[JSON.stringify(u)]),F=Qqe(_,s),D=Ce(F,3),k=D[0],L=D[1],I=D[2],A=Yqe(k,_),N=eKe(E,T,L,I,A),B=Ce(N,3),z=B[0],j=B[1],W=B[2],G=Hn(function(ne){if(M(ne),h){var Z=iB(ne),ee=Z.map(function(le){return h7(le,k,_).map(function(ge){return ge.option})}),J=E?Z:Z[0],oe=E?ee:ee[0];h(J,oe)}}),K=Jqe(E,G,z,j,W,L,I,g),q=Hn(function(ne){K(ne)}),X=d.useMemo(function(){return{options:k,fieldNames:_,values:z,halfValues:j,changeOnSelect:f,onSelect:q,checkable:a,searchOptions:[],dropdownPrefixCls:void 0,loadData:p,expandTrigger:m,expandIcon:C,loadingIcon:y,dropdownMenuColumnStyle:void 0}},[k,_,z,j,f,q,a,p,m,C,y]),Q="".concat(r,"-panel"),te=!k.length;return d.createElement(Yx.Provider,{value:X},d.createElement("div",{className:we(Q,ie(ie({},"".concat(Q,"-rtl"),b==="rtl"),"".concat(Q,"-empty"),te),o),style:i},te?w:d.createElement(nKe,{prefixCls:r,searchValue:"",multiple:E,toggleOpen:Ajt,open:!0,direction:b,disabled:x})))}var Djt=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],NV=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,o=e.fieldNames,s=e.defaultValue,a=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,f=e.checkable,h=e.autoClearSearchValue,g=h===void 0?!0:h,p=e.searchValue,m=e.onSearch,v=e.showSearch,C=e.expandTrigger,y=e.options,b=e.dropdownPrefixCls,S=e.loadData,w=e.popupVisible,x=e.open,E=e.popupClassName,R=e.dropdownClassName,O=e.dropdownMenuColumnStyle,T=e.dropdownStyle,M=e.popupPlacement,_=e.placement,F=e.onDropdownVisibleChange,D=e.onPopupVisibleChange,k=e.expandIcon,L=k===void 0?">":k,I=e.loadingIcon,A=e.children,N=e.dropdownMatchSelectWidth,B=N===void 0?!1:N,z=e.showCheckedStrategy,j=z===void 0?Gqe:z,W=e.optionRender,G=on(e,Djt),K=vpe(n),q=!!f,X=ir(s,{value:a,postState:iB}),Q=Ce(X,2),te=Q[0],ne=Q[1],Z=d.useMemo(function(){return Uqe(o)},[JSON.stringify(o)]),ee=Qqe(Z,y),J=Ce(ee,3),oe=J[0],le=J[1],ge=J[2],he=ir("",{value:p,postState:function(Ct){return Ct||""}}),ye=Ce(he,2),ue=ye[0],ve=ye[1],de=function(Ct,ot){ve(Ct),ot.source!=="blur"&&m&&m(Ct)},xe=xjt(v),Ee=Ce(xe,2),De=Ee[0],Be=Ee[1],Ge=hjt(ue,oe,Z,b||i,Be,l||q),Ue=Yqe(oe,Z),We=eKe(q,te,le,ge,Ue),Ve=Ce(We,3),Fe=Ve[0],ke=Ve[1],Ye=Ve[2],ze=d.useMemo(function(){var It=f7(Fe),Ct=Kqe(It,le,j);return[].concat(ut(Ye),ut(ge(Ct)))},[Fe,le,ge,Ye,j]),Re=vjt(ze,oe,Z,q,u),Le=Hn(function(It){if(ne(It),c){var Ct=iB(It),ot=Ct.map(function(Te){return h7(Te,oe,Z).map(function($e){return $e.option})}),nt=q?Ct:Ct[0],fe=q?ot:ot[0];c(nt,fe)}}),Me=Jqe(q,Le,Fe,ke,Ye,le,ge,j),be=Hn(function(It){(!q||g)&&ve(""),Me(It)}),je=function(Ct,ot){if(ot.type==="clear"){Le([]);return}var nt=ot.values[0],fe=nt.valueCells;be(fe)},Xe=x!==void 0?x:w,ft=R||E,Tt=_||M,tt=function(Ct){F==null||F(Ct),D==null||D(Ct)},pt=d.useMemo(function(){return{options:oe,fieldNames:Z,values:Fe,halfValues:ke,changeOnSelect:l,onSelect:be,checkable:f,searchOptions:Ge,dropdownPrefixCls:b,loadData:S,expandTrigger:C,expandIcon:L,loadingIcon:I,dropdownMenuColumnStyle:O,optionRender:W}},[oe,Z,Fe,ke,l,be,f,Ge,b,S,C,L,I,O,W]),$t=!(ue?Ge:oe).length,wt=ue&&Be.matchInputWidth||$t?{}:{minWidth:"auto"};return d.createElement(Yx.Provider,{value:pt},d.createElement(hV,V({},G,{ref:t,id:K,prefixCls:i,autoClearSearchValue:g,dropdownMatchSelectWidth:B,dropdownStyle:se(se({},wt),T),displayValues:Re,onDisplayValuesChange:je,mode:q?"multiple":void 0,searchValue:ue,onSearch:de,showSearch:De,OptionList:_jt,emptyOptions:$t,open:Xe,dropdownClassName:ft,placement:Tt,onDropdownVisibleChange:tt,getRawInputElement:function(){return A}})))});NV.SHOW_PARENT=Gqe;NV.SHOW_CHILD=Wqe;NV.Panel=rKe;const Ljt=Object.freeze(Object.defineProperty({__proto__:null,Panel:rKe,default:NV},Symbol.toStringTag,{value:"Module"})),Fjt=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},ii(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},ii(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},ii(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Om(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Ne(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
||
${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)
|
||
`]:{[`&: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=="number"?{label:k,value:k}:k),[i]),y=k=>{v(L=>L.filter(I=>I!==k))},b=k=>{v(L=>[].concat(ut(L),[k]))},S=k=>{const L=g.indexOf(k.value),I=ut(g);L===-1?I.push(k.value):I.splice(L,1),"value"in u||p(I),c==null||c(I.filter(A=>m.includes(A)).sort((A,N)=>{const B=C.findIndex(j=>j.value===A),z=C.findIndex(j=>j.value===N);return B-z}))},w=f("checkbox",o),x=`${w}-group`,E=Oo(w),[R,O,T]=iKe(w,E),M=$i(u,["value","disabled"]),_=i.length?C.map(k=>d.createElement(sKe,{prefixCls:w,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:g.includes(k.value),onChange:k.onChange,className:`${x}-item`,style:k.style,title:k.title,id:k.id,required:k.required},k.label)):r,F={toggleOption:S,value:g,disabled:u.disabled,name:u.name,registerValue:b,cancelValue:y},D=we(x,{[`${x}-rtl`]:h==="rtl"},s,a,T,E,O);return R(d.createElement("div",Object.assign({className:D,style:l},M,{ref:t}),d.createElement(oKe.Provider,{value:F},_)))}),BC=sKe;BC.Group=Bjt;BC.__ANT_CHECKBOX=!0;const aKe=d.createContext({});var Hjt=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 v7e(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const jjt=["xs","sm","md","lg","xl","xxl"],DT=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(vn),{gutter:i,wrap:o}=d.useContext(aKe),{prefixCls:s,span:a,order:l,offset:c,push:u,pull:f,className:h,children:g,flex:p,style:m}=e,v=Hjt(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",s),[y,b,S]=XAt(C),w={};let x={};jjt.forEach(O=>{let T={};const M=e[O];typeof M=="number"?T.span=M:typeof M=="object"&&(T=M||{}),delete v[O],x=Object.assign(Object.assign({},x),{[`${C}-${O}-${T.span}`]:T.span!==void 0,[`${C}-${O}-order-${T.order}`]:T.order||T.order===0,[`${C}-${O}-offset-${T.offset}`]:T.offset||T.offset===0,[`${C}-${O}-push-${T.push}`]:T.push||T.push===0,[`${C}-${O}-pull-${T.pull}`]:T.pull||T.pull===0,[`${C}-rtl`]:r==="rtl"}),T.flex&&(x[`${C}-${O}-flex`]=!0,w[`--${C}-${O}-flex`]=v7e(T.flex))});const E=we(C,{[`${C}-${a}`]:a!==void 0,[`${C}-order-${l}`]:l,[`${C}-offset-${c}`]:c,[`${C}-push-${u}`]:u,[`${C}-pull-${f}`]:f},h,x,b,S),R={};if(i&&i[0]>0){const O=i[0]/2;R.paddingLeft=O,R.paddingRight=O}return p&&(R.flex=v7e(p),o===!1&&!R.minWidth&&(R.minWidth=0)),y(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},R),m),w),className:E,ref:t}),g))});var Vjt=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 C7e(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<d7.length;o++){const s=d7[o];if(!t[s])continue;const a=e[s];if(a!==void 0){r(a);return}}};return d.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const Gpe=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:s,children:a,gutter:l=0,wrap:c}=e,u=Vjt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=d.useContext(vn),[g,p]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,v]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=C7e(i,m),y=C7e(r,m),b=d.useRef(l),S=JWe();d.useEffect(()=>{const I=S.subscribe(A=>{v(A);const N=b.current||0;(!Array.isArray(N)&&typeof N=="object"||Array.isArray(N)&&(typeof N[0]=="object"||typeof N[1]=="object"))&&p(A)});return()=>S.unsubscribe(I)},[]);const w=()=>{const I=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((N,B)=>{if(typeof N=="object")for(let z=0;z<d7.length;z++){const j=d7[z];if(g[j]&&N[j]!==void 0){I[B]=N[j];break}}else I[B]=N}),I},x=f("row",n),[E,R,O]=YAt(x),T=w(),M=we(x,{[`${x}-no-wrap`]:c===!1,[`${x}-${y}`]:y,[`${x}-${C}`]:C,[`${x}-rtl`]:h==="rtl"},o,R,O),_={},F=T[0]!=null&&T[0]>0?T[0]/-2:void 0;F&&(_.marginLeft=F,_.marginRight=F);const[D,k]=T;_.rowGap=k;const L=d.useMemo(()=>({gutter:[D,k],wrap:c}),[D,k,c]);return E(d.createElement(aKe.Provider,{value:L},d.createElement("div",Object.assign({},u,{className:M,style:Object.assign(Object.assign({},_),s),ref:t}),a)))}),Gjt=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:s,verticalMarginInline:a}=e;return{[t]:Object.assign(Object.assign({},ii(e)),{borderBlockStart:`${Ne(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:a,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ne(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ne(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ne(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Ne(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Ne(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Ne(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Wjt=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Ujt=Yr("Divider",e=>{const t=yr(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Gjt(t)]},Wjt,{unitless:{orientationMargin:!0}});var qjt=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=>{const{getPrefixCls:t,direction:n,divider:r}=d.useContext(vn),{prefixCls:i,type:o="horizontal",orientation:s="center",orientationMargin:a,className:l,rootClassName:c,children:u,dashed:f,variant:h="solid",plain:g,style:p}=e,m=qjt(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[C,y,b]=Ujt(v),S=!!u,w=s==="left"&&a!=null,x=s==="right"&&a!=null,E=we(v,r==null?void 0:r.className,y,b,`${v}-${o}`,{[`${v}-with-text`]:S,[`${v}-with-text-${s}`]:S,[`${v}-dashed`]:!!f,[`${v}-${h}`]:h!=="solid",[`${v}-plain`]:!!g,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:x},l,c),R=d.useMemo(()=>typeof a=="number"?a:/^\d+$/.test(a)?Number(a):a,[a]),O=Object.assign(Object.assign({},w&&{marginLeft:R}),x&&{marginRight:R});return C(d.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r==null?void 0:r.style),p)},m,{role:"separator"}),u&&o!=="vertical"&&d.createElement("span",{className:`${v}-inner-text`,style:O},u)))};var y7e=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},bp=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Yjt(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,o=e.motionName,s=e.onMotionStart,a=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,f=d.useRef(null),h=d.useState(r),g=Ce(h,2),p=g[0],m=g[1],v=function(k){var L,I=i(k),A=(L=n.current)===null||L===void 0?void 0:L.querySelectorAll(".".concat(t,"-item"))[I];return(A==null?void 0:A.offsetParent)&&A},C=d.useState(null),y=Ce(C,2),b=y[0],S=y[1],w=d.useState(null),x=Ce(w,2),E=x[0],R=x[1];Zn(function(){if(p!==r){var D=v(p),k=v(r),L=y7e(D,u),I=y7e(k,u);m(r),S(L),R(I),D&&k?s():a()}},[r]);var O=d.useMemo(function(){if(u){var D;return bp((D=b==null?void 0:b.top)!==null&&D!==void 0?D:0)}return bp(l==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[u,l,b]),T=d.useMemo(function(){if(u){var D;return bp((D=E==null?void 0:E.top)!==null&&D!==void 0?D:0)}return bp(l==="rtl"?-(E==null?void 0:E.right):E==null?void 0:E.left)},[u,l,E]),M=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},_=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},F=function(){S(null),R(null),a()};return!b||!E?null:d.createElement(Hs,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:M,onAppearActive:_,onVisibleChanged:F},function(D,k){var L=D.className,I=D.style,A=se(se({},I),{},{"--thumb-start-left":O,"--thumb-start-width":bp(b==null?void 0:b.width),"--thumb-active-left":T,"--thumb-active-width":bp(E==null?void 0:E.width),"--thumb-start-top":O,"--thumb-start-height":bp(b==null?void 0:b.height),"--thumb-active-top":T,"--thumb-active-height":bp(E==null?void 0:E.height)}),N={ref:Ws(f,k),style:A,className:we("".concat(t,"-thumb"),L)};return d.createElement("div",N)})}var Xjt=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function Qjt(e){if(typeof e.title<"u")return e.title;if(nn(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Zjt(e){return e.map(function(t){if(nn(t)==="object"&&t!==null){var n=Qjt(t);return se(se({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Jjt=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,o=t.checked,s=t.label,a=t.title,l=t.value,c=t.name,u=t.onChange,f=t.onFocus,h=t.onBlur,g=t.onKeyDown,p=t.onKeyUp,m=t.onMouseDown,v=function(y){i||u(y,l)};return d.createElement("label",{className:we(r,ie({},"".concat(n,"-item-disabled"),i)),onMouseDown:m},d.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:o,onChange:v,onFocus:f,onBlur:h,onKeyDown:g,onKeyUp:p}),d.createElement("div",{className:"".concat(n,"-item-label"),title:a,"aria-selected":o},s))},eVt=d.forwardRef(function(e,t){var n,r,i=e.prefixCls,o=i===void 0?"rc-segmented":i,s=e.direction,a=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,f=e.defaultValue,h=e.value,g=e.name,p=e.onChange,m=e.className,v=m===void 0?"":m,C=e.motionName,y=C===void 0?"thumb-motion":C,b=on(e,Xjt),S=d.useRef(null),w=d.useMemo(function(){return Ws(S,t)},[S,t]),x=d.useMemo(function(){return Zjt(c)},[c]),E=ir((n=x[0])===null||n===void 0?void 0:n.value,{value:h,defaultValue:f}),R=Ce(E,2),O=R[0],T=R[1],M=d.useState(!1),_=Ce(M,2),F=_[0],D=_[1],k=function(ee,J){T(J),p==null||p(J)},L=$i(b,["children"]),I=d.useState(!1),A=Ce(I,2),N=A[0],B=A[1],z=d.useState(!1),j=Ce(z,2),W=j[0],G=j[1],K=function(){G(!0)},q=function(){G(!1)},X=function(){B(!1)},Q=function(ee){ee.key==="Tab"&&B(!0)},te=function(ee){var J=x.findIndex(function(he){return he.value===O}),oe=x.length,le=(J+ee+oe)%oe,ge=x[le];ge&&(T(ge.value),p==null||p(ge.value))},ne=function(ee){switch(ee.key){case"ArrowLeft":case"ArrowUp":te(-1);break;case"ArrowRight":case"ArrowDown":te(1);break}};return d.createElement("div",V({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},L,{className:we(o,(r={},ie(r,"".concat(o,"-rtl"),s==="rtl"),ie(r,"".concat(o,"-disabled"),u),ie(r,"".concat(o,"-vertical"),a),r),v),ref:w}),d.createElement("div",{className:"".concat(o,"-group")},d.createElement(Yjt,{vertical:a,prefixCls:o,value:O,containerRef:S,motionName:"".concat(o,"-").concat(y),direction:s,getValueIndex:function(ee){return x.findIndex(function(J){return J.value===ee})},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),x.map(function(Z){var ee;return d.createElement(Jjt,V({},Z,{name:g,key:Z.value,prefixCls:o,className:we(Z.className,"".concat(o,"-item"),(ee={},ie(ee,"".concat(o,"-item-selected"),Z.value===O&&!F),ie(ee,"".concat(o,"-item-focused"),W&&N&&Z.value===O),ee)),checked:Z.value===O,onChange:k,onFocus:K,onBlur:q,onKeyDown:ne,onKeyUp:Q,onMouseDown:X,disabled:!!u||!!Z.disabled}))})))}),tVt=eVt;const nVt=Object.freeze(Object.defineProperty({__proto__:null,default:tVt},Symbol.toStringTag,{value:"Module"}));var rVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},iVt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:rVt}))},lKe=d.forwardRef(iVt);function Cle(){return typeof BigInt=="function"}function cKe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function sC(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",s=i[1]||"0";o==="0"&&s==="0"&&(n=!1);var a=n?"-":"";return{negative:n,negativeStr:a,trimStr:r,integerStr:o,decimalStr:s,fullStr:"".concat(a).concat(r)}}function Wpe(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function P8(e){var t=String(e);if(Wpe(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Upe(t)?t.length-t.indexOf(".")-1:0}function kV(e){var t=String(e);if(Wpe(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Cle()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Cle()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(P8(t))}return sC(t).fullStr}function Upe(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var oVt=function(){function e(t){if(qr(this,e),ie(this,"origin",""),ie(this,"negative",void 0),ie(this,"integer",void 0),ie(this,"decimal",void 0),ie(this,"decimalLen",void 0),ie(this,"empty",void 0),ie(this,"nan",void 0),cKe(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Wpe(n)&&(n=Number(n)),n=typeof n=="string"?n:kV(n),Upe(n)){var r=sC(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return Kr(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,i){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),s=this.alignDecimal(o),a=n.alignDecimal(o),l=r(s,a).toString(),c=i(o),u=sC(l),f=u.negativeStr,h=u.trimStr,g="".concat(f).concat(h.padStart(c+1,"0"));return new e("".concat(g.slice(0,-c),".").concat(g.slice(-c)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(i,o){return i+o},function(i){return i})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(i,o){return i*o},function(i){return i*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":sC("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),sVt=function(){function e(t){if(qr(this,e),ie(this,"origin",""),ie(this,"number",void 0),ie(this,"empty",void 0),cKe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Kr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(P8(this.number),P8(r));return new e(i.toFixed(o))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var i=this.number*r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(P8(this.number),P8(r));return new e(i.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":kV(this.number):this.origin}}]),e}();function Fh(e){return Cle()?new oVt(e):new sVt(e)}function CN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=sC(e),o=i.negativeStr,s=i.integerStr,a=i.decimalStr,l="".concat(t).concat(a),c="".concat(o).concat(s);if(n>=0){var u=Number(a[n]);if(u>=5&&!r){var f=Fh(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return CN(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(a.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function aVt(e){return!!(e.addonBefore||e.addonAfter)}function lVt(e){return!!(e.prefix||e.suffix||e.allowClear)}function b7e(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function sB(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=b7e(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=b7e(t,e,r),n(i);return}n(i)}}function qpe(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var cM=ce.forwardRef(function(e,t){var n,r,i,o=e.inputElement,s=e.children,a=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,h=e.className,g=e.style,p=e.disabled,m=e.readOnly,v=e.focused,C=e.triggerFocus,y=e.allowClear,b=e.value,S=e.handleReset,w=e.hidden,x=e.classes,E=e.classNames,R=e.dataAttrs,O=e.styles,T=e.components,M=e.onClear,_=s??o,F=(T==null?void 0:T.affixWrapper)||"span",D=(T==null?void 0:T.groupWrapper)||"span",k=(T==null?void 0:T.wrapper)||"span",L=(T==null?void 0:T.groupAddon)||"span",I=d.useRef(null),A=function(le){var ge;(ge=I.current)!==null&&ge!==void 0&&ge.contains(le.target)&&(C==null||C())},N=lVt(e),B=d.cloneElement(_,{value:b,className:we((n=_.props)===null||n===void 0?void 0:n.className,!N&&(E==null?void 0:E.variant))||null}),z=d.useRef(null);if(ce.useImperativeHandle(t,function(){return{nativeElement:z.current||I.current}}),N){var j=null;if(y){var W=!p&&!m&&b,G="".concat(a,"-clear-icon"),K=nn(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";j=ce.createElement("button",{type:"button",onClick:function(le){S==null||S(le),M==null||M()},onMouseDown:function(le){return le.preventDefault()},className:we(G,ie(ie({},"".concat(G,"-hidden"),!W),"".concat(G,"-has-suffix"),!!c))},K)}var q="".concat(a,"-affix-wrapper"),X=we(q,ie(ie(ie(ie(ie({},"".concat(a,"-disabled"),p),"".concat(q,"-disabled"),p),"".concat(q,"-focused"),v),"".concat(q,"-readonly"),m),"".concat(q,"-input-with-clear-btn"),c&&y&&b),x==null?void 0:x.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),Q=(c||y)&&ce.createElement("span",{className:we("".concat(a,"-suffix"),E==null?void 0:E.suffix),style:O==null?void 0:O.suffix},j,c);B=ce.createElement(F,V({className:X,style:O==null?void 0:O.affixWrapper,onClick:A},R==null?void 0:R.affixWrapper,{ref:I}),l&&ce.createElement("span",{className:we("".concat(a,"-prefix"),E==null?void 0:E.prefix),style:O==null?void 0:O.prefix},l),B,Q)}if(aVt(e)){var te="".concat(a,"-group"),ne="".concat(te,"-addon"),Z="".concat(te,"-wrapper"),ee=we("".concat(a,"-wrapper"),te,x==null?void 0:x.wrapper,E==null?void 0:E.wrapper),J=we(Z,ie({},"".concat(Z,"-disabled"),p),x==null?void 0:x.group,E==null?void 0:E.groupWrapper);B=ce.createElement(D,{className:J,ref:z},ce.createElement(k,{className:ee},u&&ce.createElement(L,{className:ne},u),B,f&&ce.createElement(L,{className:ne},f)))}return ce.cloneElement(B,{className:we((r=B.props)===null||r===void 0?void 0:r.className,h)||null,style:se(se({},(i=B.props)===null||i===void 0?void 0:i.style),g),hidden:w})}),cVt=["show"];function uKe(e,t){return d.useMemo(function(){var n={};t&&(n.show=nn(t)==="object"&&t.formatter?t.formatter:!!t),n=se(se({},n),e);var r=n,i=r.show,o=on(r,cVt);return se(se({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(s){return s.length}})},[e,t])}var uVt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],dKe=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,o=e.onBlur,s=e.onPressEnter,a=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,h=e.htmlSize,g=e.className,p=e.maxLength,m=e.suffix,v=e.showCount,C=e.count,y=e.type,b=y===void 0?"text":y,S=e.classes,w=e.classNames,x=e.styles,E=e.onCompositionStart,R=e.onCompositionEnd,O=on(e,uVt),T=d.useState(!1),M=Ce(T,2),_=M[0],F=M[1],D=d.useRef(!1),k=d.useRef(!1),L=d.useRef(null),I=d.useRef(null),A=function(De){L.current&&qpe(L.current,De)},N=ir(e.defaultValue,{value:e.value}),B=Ce(N,2),z=B[0],j=B[1],W=z==null?"":String(z),G=d.useState(null),K=Ce(G,2),q=K[0],X=K[1],Q=uKe(C,v),te=Q.max||p,ne=Q.strategy(W),Z=!!te&&ne>te;d.useImperativeHandle(t,function(){var Ee;return{focus:A,blur:function(){var Be;(Be=L.current)===null||Be===void 0||Be.blur()},setSelectionRange:function(Be,Ge,Ue){var We;(We=L.current)===null||We===void 0||We.setSelectionRange(Be,Ge,Ue)},select:function(){var Be;(Be=L.current)===null||Be===void 0||Be.select()},input:L.current,nativeElement:((Ee=I.current)===null||Ee===void 0?void 0:Ee.nativeElement)||L.current}}),d.useEffect(function(){k.current&&(k.current=!1),F(function(Ee){return Ee&&f?!1:Ee})},[f]);var ee=function(De,Be,Ge){var Ue=Be;if(!D.current&&Q.exceedFormatter&&Q.max&&Q.strategy(Be)>Q.max){if(Ue=Q.exceedFormatter(Be,{max:Q.max}),Be!==Ue){var We,Ve;X([((We=L.current)===null||We===void 0?void 0:We.selectionStart)||0,((Ve=L.current)===null||Ve===void 0?void 0:Ve.selectionEnd)||0])}}else if(Ge.source==="compositionEnd")return;j(Ue),L.current&&sB(L.current,De,r,Ue)};d.useEffect(function(){if(q){var Ee;(Ee=L.current)===null||Ee===void 0||Ee.setSelectionRange.apply(Ee,ut(q))}},[q]);var J=function(De){ee(De,De.target.value,{source:"change"})},oe=function(De){D.current=!1,ee(De,De.currentTarget.value,{source:"compositionEnd"}),R==null||R(De)},le=function(De){s&&De.key==="Enter"&&!k.current&&(k.current=!0,s(De)),a==null||a(De)},ge=function(De){De.key==="Enter"&&(k.current=!1),l==null||l(De)},he=function(De){F(!0),i==null||i(De)},ye=function(De){k.current&&(k.current=!1),F(!1),o==null||o(De)},ue=function(De){j(""),A(),L.current&&sB(L.current,De,r)},ve=Z&&"".concat(u,"-out-of-range"),de=function(){var De=$i(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ce.createElement("input",V({autoComplete:n},De,{onChange:J,onFocus:he,onBlur:ye,onKeyDown:le,onKeyUp:ge,className:we(u,ie({},"".concat(u,"-disabled"),f),w==null?void 0:w.input),style:x==null?void 0:x.input,ref:L,size:h,type:b,onCompositionStart:function(Ge){D.current=!0,E==null||E(Ge)},onCompositionEnd:oe}))},xe=function(){var De=Number(te)>0;if(m||Q.show){var Be=Q.showFormatter?Q.showFormatter({value:W,count:ne,maxLength:te}):"".concat(ne).concat(De?" / ".concat(te):"");return ce.createElement(ce.Fragment,null,Q.show&&ce.createElement("span",{className:we("".concat(u,"-show-count-suffix"),ie({},"".concat(u,"-show-count-has-suffix"),!!m),w==null?void 0:w.count),style:se({},x==null?void 0:x.count)},Be),m)}return null};return ce.createElement(cM,V({},O,{prefixCls:u,className:we(g,ve),handleReset:ue,value:W,focused:_,triggerFocus:A,suffix:xe(),disabled:f,classes:S,classNames:w,styles:x}),de())});const dVt=Object.freeze(Object.defineProperty({__proto__:null,BaseInput:cM,default:dKe},Symbol.toStringTag,{value:"Module"}));function fVt(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function hVt(e,t){var n=d.useRef(null);function r(){try{var o=e.selectionStart,s=e.selectionEnd,a=e.value,l=a.substring(0,o),c=a.substring(s);n.current={start:o,end:s,value:a,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,s=n.current,a=s.beforeTxt,l=s.afterTxt,c=s.start,u=o.length;if(o.startsWith(a))u=a.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var f=a[c-1],h=o.indexOf(f,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch(g){ui(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,i]}var gVt=function(){var t=d.useState(!1),n=Ce(t,2),r=n[0],i=n[1];return Zn(function(){i(uV())},[]),r},pVt=200,mVt=600;function vVt(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,s=e.onStep,a=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=s;var u=function(){clearTimeout(a.current)},f=function(b,S){b.preventDefault(),u(),c.current(S);function w(){c.current(S),a.current=setTimeout(w,pVt)}a.current=setTimeout(w,mVt)};d.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Rr.cancel(y)})}},[]);var h=gVt();if(h)return null;var g="".concat(t,"-handler"),p=we(g,"".concat(g,"-up"),ie({},"".concat(g,"-up-disabled"),i)),m=we(g,"".concat(g,"-down"),ie({},"".concat(g,"-down-disabled"),o)),v=function(){return l.current.push(Rr(u))},C={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(g,"-wrap")},d.createElement("span",V({},C,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":i,className:p}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",V({},C,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:m}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function S7e(e){var t=typeof e=="number"?kV(e):sC(e).fullStr,n=t.includes(".");return n?sC(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const CVt=function(){var e=d.useRef(0),t=function(){Rr.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=Rr(function(){n()})}};var yVt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],bVt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],w7e=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},x7e=function(t){var n=Fh(t);return n.isInvalidate()?null:n},SVt=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,s=e.max,a=e.step,l=a===void 0?1:a,c=e.defaultValue,u=e.value,f=e.disabled,h=e.readOnly,g=e.upHandler,p=e.downHandler,m=e.keyboard,v=e.changeOnWheel,C=v===void 0?!1:v,y=e.controls,b=y===void 0?!0:y;e.classNames;var S=e.stringMode,w=e.parser,x=e.formatter,E=e.precision,R=e.decimalSeparator,O=e.onChange,T=e.onInput,M=e.onPressEnter,_=e.onStep,F=e.changeOnBlur,D=F===void 0?!0:F,k=e.domRef,L=on(e,yVt),I="".concat(n,"-input"),A=d.useRef(null),N=d.useState(!1),B=Ce(N,2),z=B[0],j=B[1],W=d.useRef(!1),G=d.useRef(!1),K=d.useRef(!1),q=d.useState(function(){return Fh(u??c)}),X=Ce(q,2),Q=X[0],te=X[1];function ne(tt){u===void 0&&te(tt)}var Z=d.useCallback(function(tt,pt){if(!pt)return E>=0?E:Math.max(P8(tt),P8(l))},[E,l]),ee=d.useCallback(function(tt){var pt=String(tt);if(w)return w(pt);var $t=pt;return R&&($t=$t.replace(R,".")),$t.replace(/[^\w.-]+/g,"")},[w,R]),J=d.useRef(""),oe=d.useCallback(function(tt,pt){if(x)return x(tt,{userTyping:pt,input:String(J.current)});var $t=typeof tt=="number"?kV(tt):tt;if(!pt){var wt=Z($t,pt);if(Upe($t)&&(R||wt>=0)){var It=R||".";$t=CN($t,It,wt)}}return $t},[x,Z,R]),le=d.useState(function(){var tt=c??u;return Q.isInvalidate()&&["string","number"].includes(nn(tt))?Number.isNaN(tt)?"":tt:oe(Q.toString(),!1)}),ge=Ce(le,2),he=ge[0],ye=ge[1];J.current=he;function ue(tt,pt){ye(oe(tt.isInvalidate()?tt.toString(!1):tt.toString(!pt),pt))}var ve=d.useMemo(function(){return x7e(s)},[s,E]),de=d.useMemo(function(){return x7e(o)},[o,E]),xe=d.useMemo(function(){return!ve||!Q||Q.isInvalidate()?!1:ve.lessEquals(Q)},[ve,Q]),Ee=d.useMemo(function(){return!de||!Q||Q.isInvalidate()?!1:Q.lessEquals(de)},[de,Q]),De=hVt(A.current,z),Be=Ce(De,2),Ge=Be[0],Ue=Be[1],We=function(pt){return ve&&!pt.lessEquals(ve)?ve:de&&!de.lessEquals(pt)?de:null},Ve=function(pt){return!We(pt)},Fe=function(pt,$t){var wt=pt,It=Ve(wt)||wt.isEmpty();if(!wt.isEmpty()&&!$t&&(wt=We(wt)||wt,It=!0),!h&&!f&&It){var Ct=wt.toString(),ot=Z(Ct,$t);return ot>=0&&(wt=Fh(CN(Ct,".",ot)),Ve(wt)||(wt=Fh(CN(Ct,".",ot,!0)))),wt.equals(Q)||(ne(wt),O==null||O(wt.isEmpty()?null:w7e(S,wt)),u===void 0&&ue(wt,$t)),wt}return Q},ke=CVt(),Ye=function tt(pt){if(Ge(),J.current=pt,ye(pt),!G.current){var $t=ee(pt),wt=Fh($t);wt.isNaN()||Fe(wt,!0)}T==null||T(pt),ke(function(){var It=pt;w||(It=pt.replace(/。/g,".")),It!==pt&&tt(It)})},ze=function(){G.current=!0},Re=function(){G.current=!1,Ye(A.current.value)},Le=function(pt){Ye(pt.target.value)},Me=function(pt){var $t;if(!(pt&&xe||!pt&&Ee)){W.current=!1;var wt=Fh(K.current?S7e(l):l);pt||(wt=wt.negate());var It=(Q||Fh(0)).add(wt.toString()),Ct=Fe(It,!1);_==null||_(w7e(S,Ct),{offset:K.current?S7e(l):l,type:pt?"up":"down"}),($t=A.current)===null||$t===void 0||$t.focus()}},be=function(pt){var $t=Fh(ee(he)),wt;$t.isNaN()?wt=Fe(Q,pt):wt=Fe($t,pt),u!==void 0?ue(Q,!1):wt.isNaN()||ue(wt,!1)},je=function(){W.current=!0},Xe=function(pt){var $t=pt.key,wt=pt.shiftKey;W.current=!0,K.current=wt,$t==="Enter"&&(G.current||(W.current=!1),be(!1),M==null||M(pt)),m!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes($t)&&(Me($t==="Up"||$t==="ArrowUp"),pt.preventDefault())},ft=function(){W.current=!1,K.current=!1};d.useEffect(function(){if(C&&z){var tt=function(wt){Me(wt.deltaY<0),wt.preventDefault()},pt=A.current;if(pt)return pt.addEventListener("wheel",tt,{passive:!1}),function(){return pt.removeEventListener("wheel",tt)}}});var Tt=function(){D&&be(!1),j(!1),W.current=!1};return rC(function(){Q.isInvalidate()||ue(Q,!1)},[E,x]),rC(function(){var tt=Fh(u);te(tt);var pt=Fh(ee(he));(!tt.equals(pt)||!W.current||x)&&ue(tt,W.current)},[u]),rC(function(){x&&Ue()},[he]),d.createElement("div",{ref:k,className:we(n,r,ie(ie(ie(ie(ie({},"".concat(n,"-focused"),z),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),Q.isNaN()),"".concat(n,"-out-of-range"),!Q.isInvalidate()&&!Ve(Q))),style:i,onFocus:function(){j(!0)},onBlur:Tt,onKeyDown:Xe,onKeyUp:ft,onCompositionStart:ze,onCompositionEnd:Re,onBeforeInput:je},b&&d.createElement(vVt,{prefixCls:n,upNode:g,downNode:p,upDisabled:xe,downDisabled:Ee,onStep:Me}),d.createElement("div",{className:"".concat(I,"-wrap")},d.createElement("input",V({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:l},L,{ref:Ws(A,t),className:I,value:he,onChange:Le,disabled:f,readOnly:h}))))}),fKe=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,s=e.value,a=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.classNames,g=on(e,bVt),p=d.useRef(null),m=d.useRef(null),v=d.useRef(null),C=function(b){v.current&&qpe(v.current,b)};return d.useImperativeHandle(t,function(){return fVt(v.current,{focus:C,nativeElement:p.current.nativeElement||m.current})}),d.createElement(cM,{className:f,triggerFocus:C,prefixCls:o,value:s,disabled:n,style:r,prefix:a,suffix:l,addonAfter:u,addonBefore:c,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},d.createElement(SVt,V({prefixCls:o,disabled:n,ref:v,domRef:m,className:h==null?void 0:h.input},g)))});const wVt=Object.freeze(Object.defineProperty({__proto__:null,default:fKe},Symbol.toStringTag,{value:"Module"})),xVt=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},AV(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new kr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},E7e=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},EVt=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:s,controlHeightLG:a,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:h,paddingInlineLG:g,colorTextDescription:p,motionDurationMid:m,handleHoverColor:v,handleOpacity:C,paddingInline:y,paddingBlock:b,handleBg:S,handleActiveBg:w,colorTextDisabled:x,borderRadiusSM:E,borderRadiusLG:R,controlWidth:O,handleBorderColor:T,filledHandleBg:M,lineHeightLG:_,calc:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ii(e)),aM(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:i}),bqe(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${Ne(n)} ${r} ${T}`}}})),Eqe(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${Ne(n)} ${r} ${T}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),wqe(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:s,lineHeight:_,borderRadius:R,[`input${t}-input`]:{height:F(a).sub(F(n).mul(2)).equal(),padding:`${Ne(h)} ${Ne(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:F(l).sub(F(n).mul(2)).equal(),padding:`${Ne(f)} ${Ne(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},ii(e)),Tqe(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ii(e)),{width:"100%",padding:`${Ne(b)} ${Ne(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),$qe(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:C,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
||
${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
|
||
`]:{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"}},[`
|
||
${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
|
||
`]:{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.createElement(hKe,Object.assign({},e)));gKe._InternalPanelDoNotUseOrYouWillBeFired=TVt;const IVt=e=>{const{getPrefixCls:t,direction:n}=d.useContext(vn),{prefixCls:r,className:i}=e,o=t("input-group",r),s=t("input"),[a,l]=Lpe(s),c=we(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},l,i),u=d.useContext(Na),f=d.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return a(d.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(Na.Provider,{value:f},e.children)))},pKe=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ce.createElement(nv,null)}),t};function mKe(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,o,s,a;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((a=e.current)===null||a===void 0||a.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function MVt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var PVt=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 zV=d.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:o,size:s,disabled:a,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:h,addonBefore:g,className:p,style:m,styles:v,rootClassName:C,onChange:y,classNames:b,variant:S}=e,w=PVt(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:E,input:R}=ce.useContext(vn),O=x("input",r),T=d.useRef(null),M=Oo(O),[_,F,D]=Lpe(O,M),{compactSize:k,compactItemClassnames:L}=Dy(O,E),I=fl(J=>{var oe;return(oe=s??k)!==null&&oe!==void 0?oe:J}),A=ce.useContext(yc),N=a??A,{status:B,hasFeedback:z,feedbackIcon:j}=d.useContext(Na),W=ky(B,o),G=MVt(e)||!!z;d.useRef(G);const K=mKe(T,!0),q=J=>{K(),l==null||l(J)},X=J=>{K(),c==null||c(J)},Q=J=>{K(),y==null||y(J)},te=(z||u)&&ce.createElement(ce.Fragment,null,u,z&&j),ne=pKe(f??(R==null?void 0:R.allowClear)),[Z,ee]=rM("input",S,i);return _(ce.createElement(dKe,Object.assign({ref:Ws(t,T),prefixCls:O,autoComplete:R==null?void 0:R.autoComplete},w,{disabled:N,onBlur:q,onFocus:X,style:Object.assign(Object.assign({},R==null?void 0:R.style),m),styles:Object.assign(Object.assign({},R==null?void 0:R.styles),v),suffix:te,allowClear:ne,className:we(p,C,D,M,L,R==null?void 0:R.className),onChange:Q,addonBefore:g&&ce.createElement(kC,{form:!0,space:!0},g),addonAfter:h&&ce.createElement(kC,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},b),R==null?void 0:R.classNames),{input:we({[`${O}-sm`]:I==="small",[`${O}-lg`]:I==="large",[`${O}-rtl`]:E==="rtl"},b==null?void 0:b.input,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.input,F),variant:we({[`${O}-${Z}`]:ee},Z4(O,W)),affixWrapper:we({[`${O}-affix-wrapper-sm`]:I==="small",[`${O}-affix-wrapper-lg`]:I==="large",[`${O}-affix-wrapper-rtl`]:E==="rtl"},F),wrapper:we({[`${O}-group-rtl`]:E==="rtl"},F),groupWrapper:we({[`${O}-group-wrapper-sm`]:I==="small",[`${O}-group-wrapper-lg`]:I==="large",[`${O}-group-wrapper-rtl`]:E==="rtl",[`${O}-group-wrapper-${Z}`]:ee},Z4(`${O}-group-wrapper`,W,z),F)})})))}),_Vt=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},AVt=Yr(["Input","OTP"],e=>{const t=yr(e,_V(e));return[_Vt(t)]},AV);var DVt=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 LVt=d.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:o,mask:s}=e,a=DVt(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof s=="string"?s:n,c=p=>{r(o,p.target.value)},u=d.useRef(null);d.useImperativeHandle(t,()=>u.current);const f=()=>{Rr(()=>{var p;const m=(p=u.current)===null||p===void 0?void 0:p.input;document.activeElement===m&&m&&m.select()})},h=p=>{const{key:m,ctrlKey:v,metaKey:C}=p;m==="ArrowLeft"?i(o-1):m==="ArrowRight"?i(o+1):m==="z"&&(v||C)&&p.preventDefault(),f()},g=p=>{p.key==="Backspace"&&!n&&i(o-1),f()};return d.createElement(zV,Object.assign({type:s===!0?"password":"text"},a,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:h,onKeyUp:g,onMouseDown:f,onMouseUp:f}))});var FVt=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 TD(e){return(e||"").split("")}const NVt=d.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:s,onChange:a,formatter:l,variant:c,disabled:u,status:f,autoFocus:h,mask:g,type:p,onInput:m,inputMode:v}=e,C=FVt(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:b}=d.useContext(vn),S=y("otp",n),w=$o(C,{aria:!0,data:!0,attr:!0}),x=Oo(S),[E,R,O]=AVt(S,x),T=fl(G=>i??G),M=d.useContext(Na),_=ky(M.status,f),F=d.useMemo(()=>Object.assign(Object.assign({},M),{status:_,hasFeedback:!1,feedbackIcon:null}),[M,_]),D=d.useRef(null),k=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var G;(G=k.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let K=0;K<r;K+=1)(G=k.current[K])===null||G===void 0||G.blur()},nativeElement:D.current}));const L=G=>l?l(G):G,[I,A]=d.useState(TD(L(o||"")));d.useEffect(()=>{s!==void 0&&A(TD(s))},[s]);const N=Hn(G=>{A(G),m&&m(G),a&&G.length===r&&G.every(K=>K)&&G.some((K,q)=>I[q]!==K)&&a(G.join(""))}),B=Hn((G,K)=>{let q=ut(I);for(let Q=0;Q<G;Q+=1)q[Q]||(q[Q]="");K.length<=1?q[G]=K:q=q.slice(0,G).concat(TD(K)),q=q.slice(0,r);for(let Q=q.length-1;Q>=0&&!q[Q];Q-=1)q.pop();const X=L(q.map(Q=>Q||" ").join(""));return q=TD(X).map((Q,te)=>Q===" "&&!q[te]?q[te]:Q),q}),z=(G,K)=>{var q;const X=B(G,K),Q=Math.min(G+K.length,r-1);Q!==G&&X[G]!==void 0&&((q=k.current[Q])===null||q===void 0||q.focus()),N(X)},j=G=>{var K;(K=k.current[G])===null||K===void 0||K.focus()},W={variant:c,disabled:u,status:_,mask:g,type:p,inputMode:v};return E(d.createElement("div",Object.assign({},w,{ref:D,className:we(S,{[`${S}-sm`]:T==="small",[`${S}-lg`]:T==="large",[`${S}-rtl`]:b==="rtl"},O,R)}),d.createElement(Na.Provider,{value:F},Array.from({length:r}).map((G,K)=>{const q=`otp-${K}`,X=I[K]||"";return d.createElement(LVt,Object.assign({ref:Q=>{k.current[K]=Q},key:q,index:K,size:T,htmlSize:1,className:`${S}-input`,onChange:z,value:X,onActiveChange:j,autoFocus:K===0&&h},W))}))))});var kVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},zVt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kVt}))},vKe=d.forwardRef(zVt),BVt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},HVt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:BVt}))},w3=d.forwardRef(HVt),jVt=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 VVt=e=>e?d.createElement(w3,null):d.createElement(vKe,null),GVt={click:"onClick",hover:"onMouseOver"},WVt=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=VVt}=e,s=d.useContext(yc),a=n??s,l=typeof i=="object"&&i.visible!==void 0,[c,u]=d.useState(()=>l?i.visible:!1),f=d.useRef(null);d.useEffect(()=>{l&&u(i.visible)},[l,i]);const h=mKe(f),g=()=>{var T;if(a)return;c&&h();const M=!c;u(M),typeof i=="object"&&((T=i.onVisibleChange)===null||T===void 0||T.call(i,M))},p=T=>{const M=GVt[r]||"",_=o(c),F={[M]:g,className:`${T}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return d.cloneElement(d.isValidElement(_)?_:d.createElement("span",null,_),F)},{className:m,prefixCls:v,inputPrefixCls:C,size:y}=e,b=jVt(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=d.useContext(vn),w=S("input",C),x=S("input-password",v),E=i&&p(x),R=we(x,m,{[`${x}-${y}`]:!!y}),O=Object.assign(Object.assign({},$i(b,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:w,suffix:E});return y&&(O.size=y),d.createElement(zV,Object.assign({ref:Ws(t,f)},O))});var UVt=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 qVt=d.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:o,suffix:s,enterButton:a=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:h,onCompositionStart:g,onCompositionEnd:p}=e,m=UVt(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:C}=d.useContext(vn),y=d.useRef(!1),b=v("input-search",n),S=v("input",r),{compactSize:w}=Dy(b,C),x=fl(z=>{var j;return(j=o??w)!==null&&j!==void 0?j:z}),E=d.useRef(null),R=z=>{z!=null&&z.target&&z.type==="click"&&f&&f(z.target.value,z,{source:"clear"}),h==null||h(z)},O=z=>{var j;document.activeElement===((j=E.current)===null||j===void 0?void 0:j.input)&&z.preventDefault()},T=z=>{var j,W;f&&f((W=(j=E.current)===null||j===void 0?void 0:j.input)===null||W===void 0?void 0:W.value,z,{source:"input"})},M=z=>{y.current||c||T(z)},_=typeof a=="boolean"?d.createElement(iM,null):null,F=`${b}-button`;let D;const k=a||{},L=k.type&&k.type.__ANT_BUTTON===!0;L||k.type==="button"?D=js(k,Object.assign({onMouseDown:O,onClick:z=>{var j,W;(W=(j=k==null?void 0:k.props)===null||j===void 0?void 0:j.onClick)===null||W===void 0||W.call(j,z),T(z)},key:"enterButton"},L?{className:F,size:x}:{})):D=d.createElement(Cr,{className:F,type:a?"primary":void 0,size:x,disabled:u,key:"enterButton",onMouseDown:O,onClick:T,loading:c,icon:_},a),l&&(D=[D,js(l,{key:"addonAfter"})]);const I=we(b,{[`${b}-rtl`]:C==="rtl",[`${b}-${x}`]:!!x,[`${b}-with-button`]:!!a},i),A=Object.assign(Object.assign({},m),{className:I,prefixCls:S,type:"search"}),N=z=>{y.current=!0,g==null||g(z)},B=z=>{y.current=!1,p==null||p(z)};return d.createElement(zV,Object.assign({ref:Ws(E,t),onPressEnter:M},A,{size:x,onCompositionStart:N,onCompositionEnd:B,addonAfter:D,suffix:s,onChange:R,disabled:u}))});var KVt=`
|
||
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;
|
||
`,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&<e[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.showCount,v=e.count,C=e.className,y=e.style,b=e.disabled,S=e.hidden,w=e.classNames,x=e.styles,E=e.onResize,R=e.onClear,O=e.onPressEnter,T=e.readOnly,M=e.autoSize,_=e.onKeyDown,F=on(e,JVt),D=ir(r,{value:i,defaultValue:r}),k=Ce(D,2),L=k[0],I=k[1],A=L==null?"":String(L),N=ce.useState(!1),B=Ce(N,2),z=B[0],j=B[1],W=ce.useRef(!1),G=ce.useState(null),K=Ce(G,2),q=K[0],X=K[1],Q=d.useRef(null),te=d.useRef(null),ne=function(){var Re;return(Re=te.current)===null||Re===void 0?void 0:Re.textArea},Z=function(){ne().focus()};d.useImperativeHandle(t,function(){var ze;return{resizableTextArea:te.current,focus:Z,blur:function(){ne().blur()},nativeElement:((ze=Q.current)===null||ze===void 0?void 0:ze.nativeElement)||ne()}}),d.useEffect(function(){j(function(ze){return!b&&ze})},[b]);var ee=ce.useState(null),J=Ce(ee,2),oe=J[0],le=J[1];ce.useEffect(function(){if(oe){var ze;(ze=ne()).setSelectionRange.apply(ze,ut(oe))}},[oe]);var ge=uKe(v,m),he=(n=ge.max)!==null&&n!==void 0?n:c,ye=Number(he)>0,ue=ge.strategy(A),ve=!!he&&ue>he,de=function(Re,Le){var Me=Le;!W.current&&ge.exceedFormatter&&ge.max&&ge.strategy(Le)>ge.max&&(Me=ge.exceedFormatter(Le,{max:ge.max}),Le!==Me&&le([ne().selectionStart||0,ne().selectionEnd||0])),I(Me),sB(Re.currentTarget,Re,a,Me)},xe=function(Re){W.current=!0,u==null||u(Re)},Ee=function(Re){W.current=!1,de(Re,Re.currentTarget.value),f==null||f(Re)},De=function(Re){de(Re,Re.target.value)},Be=function(Re){Re.key==="Enter"&&O&&O(Re),_==null||_(Re)},Ge=function(Re){j(!0),o==null||o(Re)},Ue=function(Re){j(!1),s==null||s(Re)},We=function(Re){I(""),Z(),sB(ne(),Re,a)},Ve=h,Fe;ge.show&&(ge.showFormatter?Fe=ge.showFormatter({value:A,count:ue,maxLength:he}):Fe="".concat(ue).concat(ye?" / ".concat(he):""),Ve=ce.createElement(ce.Fragment,null,Ve,ce.createElement("span",{className:we("".concat(p,"-data-count"),w==null?void 0:w.count),style:x==null?void 0:x.count},Fe)));var ke=function(Re){var Le;E==null||E(Re),(Le=ne())!==null&&Le!==void 0&&Le.style.height&&X(!0)},Ye=!M&&!m&&!l;return ce.createElement(cM,{ref:Q,value:A,allowClear:l,handleReset:We,suffix:Ve,prefixCls:p,classNames:se(se({},w),{},{affixWrapper:we(w==null?void 0:w.affixWrapper,ie(ie({},"".concat(p,"-show-count"),m),"".concat(p,"-textarea-allow-clear"),l))}),disabled:b,focused:z,className:we(C,ve&&"".concat(p,"-out-of-range")),style:se(se({},y),q&&!Ye?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Fe=="string"?Fe:void 0}},hidden:S,readOnly:T,onClear:R},ce.createElement(CKe,V({},F,{autoSize:M,maxLength:c,onKeyDown:Be,onChange:De,onFocus:Ge,onBlur:Ue,onCompositionStart:xe,onCompositionEnd:Ee,className:we(w==null?void 0:w.textarea),style:se(se({},x==null?void 0:x.textarea),{},{resize:y==null?void 0:y.resize}),disabled:b,prefixCls:p,onResize:ke,ref:te,readOnly:T})))});const eGt=Object.freeze(Object.defineProperty({__proto__:null,ResizableTextArea:CKe,default:Kpe},Symbol.toStringTag,{value:"Module"}));var tGt=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 yKe=d.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:s,disabled:a,status:l,allowClear:c,classNames:u,rootClassName:f,className:h,style:g,styles:p,variant:m}=e,v=tGt(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:C,direction:y,textArea:b}=d.useContext(vn),S=fl(s),w=d.useContext(yc),x=a??w,{status:E,hasFeedback:R,feedbackIcon:O}=d.useContext(Na),T=ky(E,l),M=d.useRef(null);d.useImperativeHandle(t,()=>{var B;return{resizableTextArea:(B=M.current)===null||B===void 0?void 0:B.resizableTextArea,focus:z=>{var j,W;qpe((W=(j=M.current)===null||j===void 0?void 0:j.resizableTextArea)===null||W===void 0?void 0:W.textArea,z)},blur:()=>{var z;return(z=M.current)===null||z===void 0?void 0:z.blur()}}});const _=C("input",i),F=Oo(_),[D,k,L]=Lpe(_,F),[I,A]=rM("textArea",m,o),N=pKe(c??(b==null?void 0:b.allowClear));return D(d.createElement(Kpe,Object.assign({autoComplete:b==null?void 0:b.autoComplete},v,{style:Object.assign(Object.assign({},b==null?void 0:b.style),g),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),p),disabled:x,allowClear:N,className:we(L,F,h,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},u),b==null?void 0:b.classNames),{textarea:we({[`${_}-sm`]:S==="small",[`${_}-lg`]:S==="large"},k,u==null?void 0:u.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:we({[`${_}-${I}`]:A},Z4(_,T)),affixWrapper:we(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:y==="rtl",[`${_}-affix-wrapper-sm`]:S==="small",[`${_}-affix-wrapper-lg`]:S==="large",[`${_}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},k)}),prefixCls:_,suffix:R&&d.createElement("span",{className:`${_}-textarea-suffix`},O),ref:M})))}),Ai=zV;Ai.Group=IVt;Ai.Search=qVt;Ai.TextArea=yKe;Ai.Password=WVt;Ai.OTP=NVt;function yle(e,t,n){return(e-t)/(n-t)}function Ype(e,t,n,r){var i=yle(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function p8(e,t){return Array.isArray(e)?e[t]:e}var jy=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),bKe=d.createContext({}),nGt=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],R7e=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,s=e.onDelete,a=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,h=e.onChangeComplete,g=e.onFocus,p=e.onMouseEnter,m=on(e,nGt),v=d.useContext(jy),C=v.min,y=v.max,b=v.direction,S=v.disabled,w=v.keyboard,x=v.range,E=v.tabIndex,R=v.ariaLabelForHandle,O=v.ariaLabelledByForHandle,T=v.ariaRequired,M=v.ariaValueTextFormatterForHandle,_=v.styles,F=v.classNames,D="".concat(n,"-handle"),k=function(K){S||o(K,i)},L=function(K){g==null||g(K,i)},I=function(K){p(K,i)},A=function(K){if(!S&&w){var q=null;switch(K.which||K.keyCode){case lt.LEFT:q=b==="ltr"||b==="btt"?-1:1;break;case lt.RIGHT:q=b==="ltr"||b==="btt"?1:-1;break;case lt.UP:q=b!=="ttb"?1:-1;break;case lt.DOWN:q=b!=="ttb"?-1:1;break;case lt.HOME:q="min";break;case lt.END:q="max";break;case lt.PAGE_UP:q=2;break;case lt.PAGE_DOWN:q=-2;break;case lt.BACKSPACE:case lt.DELETE:s(i);break}q!==null&&(K.preventDefault(),f(q,i))}},N=function(K){switch(K.which||K.keyCode){case lt.LEFT:case lt.RIGHT:case lt.UP:case lt.DOWN:case lt.HOME:case lt.END:case lt.PAGE_UP:case lt.PAGE_DOWN:h==null||h();break}},B=Ype(b,r,C,y),z={};if(i!==null){var j;z={tabIndex:S?null:p8(E,i),role:"slider","aria-valuemin":C,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":S,"aria-label":p8(R,i),"aria-labelledby":p8(O,i),"aria-required":p8(T,i),"aria-valuetext":(j=p8(M,i))===null||j===void 0?void 0:j(r),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:k,onTouchStart:k,onFocus:L,onMouseEnter:I,onKeyDown:A,onKeyUp:N}}var W=d.createElement("div",V({ref:t,className:we(D,ie(ie(ie({},"".concat(D,"-").concat(i+1),i!==null&&x),"".concat(D,"-dragging"),c),"".concat(D,"-dragging-delete"),u),F.handle),style:se(se(se({},B),a),_.handle)},z,m));return l&&(W=l(W,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),W}),rGt=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],iGt=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,s=e.values,a=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,h=on(e,rGt),g=d.useRef({}),p=d.useState(!1),m=Ce(p,2),v=m[0],C=m[1],y=d.useState(-1),b=Ce(y,2),S=b[0],w=b[1],x=function(M){w(M),C(!0)},E=function(M,_){x(_),f==null||f(M)},R=function(M,_){x(_)};d.useImperativeHandle(t,function(){return{focus:function(M){var _;(_=g.current[M])===null||_===void 0||_.focus()},hideHelp:function(){fo.flushSync(function(){C(!1)})}}});var O=se({prefixCls:n,onStartMove:i,onOffsetChange:o,render:a,onFocus:E,onMouseEnter:R},h);return d.createElement(d.Fragment,null,s.map(function(T,M){var _=c===M;return d.createElement(R7e,V({ref:function(D){D?g.current[M]=D:delete g.current[M]},dragging:_,draggingDelete:_&&u,style:p8(r,M),key:M,value:T,valueIndex:M},O))}),l&&v&&d.createElement(R7e,V({key:"a11y"},O,{value:s[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),oGt=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,s=t.onClick,a=d.useContext(jy),l=a.min,c=a.max,u=a.direction,f=a.includedStart,h=a.includedEnd,g=a.included,p="".concat(n,"-text"),m=Ype(u,o,l,c);return d.createElement("span",{className:we(p,ie({},"".concat(p,"-active"),g&&f<=o&&o<=h)),style:se(se({},m),r),onMouseDown:function(C){C.stopPropagation()},onClick:function(){s(o)}},i)},sGt=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?d.createElement("div",{className:o},r.map(function(s){var a=s.value,l=s.style,c=s.label;return d.createElement(oGt,{key:a,prefixCls:o,style:l,value:a,onClick:i},c)})):null},aGt=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,s=d.useContext(jy),a=s.min,l=s.max,c=s.direction,u=s.included,f=s.includedStart,h=s.includedEnd,g="".concat(n,"-dot"),p=u&&f<=r&&r<=h,m=se(se({},Ype(c,r,a,l)),typeof i=="function"?i(r):i);return p&&(m=se(se({},m),typeof o=="function"?o(r):o)),d.createElement("span",{className:we(g,ie({},"".concat(g,"-active"),p)),style:m})},lGt=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,s=t.activeStyle,a=d.useContext(jy),l=a.min,c=a.max,u=a.step,f=d.useMemo(function(){var h=new Set;if(r.forEach(function(p){h.add(p.value)}),i&&u!==null)for(var g=l;g<=c;)h.add(g),g+=u;return Array.from(h)},[l,c,u,i,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(h){return d.createElement(aGt,{prefixCls:n,key:h,value:h,style:o,activeStyle:s})}))},$7e=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,s=t.index,a=t.onStartMove,l=t.replaceCls,c=d.useContext(jy),u=c.direction,f=c.min,h=c.max,g=c.disabled,p=c.range,m=c.classNames,v="".concat(n,"-track"),C=yle(i,f,h),y=yle(o,f,h),b=function(E){!g&&a&&a(E,-1)},S={};switch(u){case"rtl":S.right="".concat(C*100,"%"),S.width="".concat(y*100-C*100,"%");break;case"btt":S.bottom="".concat(C*100,"%"),S.height="".concat(y*100-C*100,"%");break;case"ttb":S.top="".concat(C*100,"%"),S.height="".concat(y*100-C*100,"%");break;default:S.left="".concat(C*100,"%"),S.width="".concat(y*100-C*100,"%")}var w=l||we(v,ie(ie({},"".concat(v,"-").concat(s+1),s!==null&&p),"".concat(n,"-track-draggable"),a),m.track);return d.createElement("div",{className:w,style:se(se({},S),r),onMouseDown:b,onTouchStart:b})},cGt=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,s=t.onStartMove,a=d.useContext(jy),l=a.included,c=a.range,u=a.min,f=a.styles,h=a.classNames,g=d.useMemo(function(){if(!c){if(i.length===0)return[];var m=o??u,v=i[0];return[{start:Math.min(m,v),end:Math.max(m,v)}]}for(var C=[],y=0;y<i.length-1;y+=1)C.push({start:i[y],end:i[y+1]});return C},[i,c,o,u]);if(!l)return null;var p=g!=null&&g.length&&(h.tracks||f.tracks)?d.createElement($7e,{index:null,prefixCls:n,start:g[0].start,end:g[g.length-1].end,replaceCls:we(h.tracks,"".concat(n,"-tracks")),style:f.tracks}):null;return d.createElement(d.Fragment,null,p,g.map(function(m,v){var C=m.start,y=m.end;return d.createElement($7e,{index:v,prefixCls:n,style:se(se({},p8(r,v)),f.track),start:C,end:y,key:v,onStartMove:s})}))},uGt=130;function O7e(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function dGt(e,t,n,r,i,o,s,a,l,c,u){var f=d.useState(null),h=Ce(f,2),g=h[0],p=h[1],m=d.useState(-1),v=Ce(m,2),C=v[0],y=v[1],b=d.useState(!1),S=Ce(b,2),w=S[0],x=S[1],E=d.useState(n),R=Ce(E,2),O=R[0],T=R[1],M=d.useState(n),_=Ce(M,2),F=_[0],D=_[1],k=d.useRef(null),L=d.useRef(null),I=d.useRef(null),A=d.useContext(bKe),N=A.onDragStart,B=A.onDragChange;Zn(function(){C===-1&&T(n)},[n,C]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",k.current),document.removeEventListener("mouseup",L.current),I.current&&(I.current.removeEventListener("touchmove",k.current),I.current.removeEventListener("touchend",L.current))}},[]);var z=function(q,X,Q){X!==void 0&&p(X),T(q);var te=q;Q&&(te=q.filter(function(ne,Z){return Z!==C})),s(te),B&&B({rawValues:q,deleteIndex:Q?C:-1,draggingIndex:C,draggingValue:X})},j=Hn(function(K,q,X){if(K===-1){var Q=F[0],te=F[F.length-1],ne=r-Q,Z=i-te,ee=q*(i-r);ee=Math.max(ee,ne),ee=Math.min(ee,Z);var J=o(Q+ee);ee=J-Q;var oe=F.map(function(ye){return ye+ee});z(oe)}else{var le=(i-r)*q,ge=ut(O);ge[K]=F[K];var he=l(ge,le,K,"dist");z(he.values,he.value,X)}}),W=function(q,X,Q){q.stopPropagation();var te=Q||n,ne=te[X];y(X),p(ne),D(te),T(te),x(!1);var Z=O7e(q),ee=Z.pageX,J=Z.pageY,oe=!1;N&&N({rawValues:te,draggingIndex:X,draggingValue:ne});var le=function(ye){ye.preventDefault();var ue=O7e(ye),ve=ue.pageX,de=ue.pageY,xe=ve-ee,Ee=de-J,De=e.current.getBoundingClientRect(),Be=De.width,Ge=De.height,Ue,We;switch(t){case"btt":Ue=-Ee/Ge,We=xe;break;case"ttb":Ue=Ee/Ge,We=xe;break;case"rtl":Ue=-xe/Be,We=Ee;break;default:Ue=xe/Be,We=Ee}oe=c?Math.abs(We)>uGt&&u<O.length:!1,x(oe),j(X,Ue,oe)},ge=function he(ye){ye.preventDefault(),document.removeEventListener("mouseup",he),document.removeEventListener("mousemove",le),I.current&&(I.current.removeEventListener("touchmove",k.current),I.current.removeEventListener("touchend",L.current)),k.current=null,L.current=null,I.current=null,a(oe),y(-1),x(!1)};document.addEventListener("mouseup",ge),document.addEventListener("mousemove",le),q.currentTarget.addEventListener("touchend",ge),q.currentTarget.addEventListener("touchmove",le),k.current=le,L.current=ge,I.current=q.currentTarget},G=d.useMemo(function(){var K=ut(n).sort(function(ne,Z){return ne-Z}),q=ut(O).sort(function(ne,Z){return ne-Z}),X={};q.forEach(function(ne){X[ne]=(X[ne]||0)+1}),K.forEach(function(ne){X[ne]=(X[ne]||0)-1});var Q=c?1:0,te=Object.values(X).reduce(function(ne,Z){return ne+Math.abs(Z)},0);return te<=Q?O:n},[n,O,c]);return[C,g,w,G,W]}function fGt(e,t,n,r,i,o){var s=d.useCallback(function(g){return Math.max(e,Math.min(t,g))},[e,t]),a=d.useCallback(function(g){if(n!==null){var p=e+Math.round((s(g)-e)/n)*n,m=function(b){return(String(b).split(".")[1]||"").length},v=Math.max(m(n),m(t),m(e)),C=Number(p.toFixed(v));return e<=C&&C<=t?C:null}return null},[n,e,t,s]),l=d.useCallback(function(g){var p=s(g),m=r.map(function(y){return y.value});n!==null&&m.push(a(g)),m.push(e,t);var v=m[0],C=t-e;return m.forEach(function(y){var b=Math.abs(p-y);b<=C&&(v=y,C=b)}),v},[e,t,r,n,s,a]),c=function g(p,m,v){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var y,b=p[v],S=b+m,w=[];r.forEach(function(T){w.push(T.value)}),w.push(e,t),w.push(a(b));var x=m>0?1:-1;C==="unit"?w.push(a(b+x*n)):w.push(a(S)),w=w.filter(function(T){return T!==null}).filter(function(T){return m<0?T<=b:T>=b}),C==="unit"&&(w=w.filter(function(T){return T!==b}));var E=C==="unit"?b:S;y=w[0];var R=Math.abs(y-E);if(w.forEach(function(T){var M=Math.abs(T-E);M<R&&(y=T,R=M)}),y===void 0)return m<0?e:t;if(C==="dist")return y;if(Math.abs(m)>1){var O=ut(p);return O[v]=y,g(O,m-x,v,C)}return y}else{if(m==="min")return e;if(m==="max")return t}},u=function(p,m,v){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p[v],b=c(p,m,v,C);return{value:b,changed:b!==y}},f=function(p){return o===null&&p===0||typeof o=="number"&&p<o},h=function(p,m,v){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(l),b=y[v],S=c(y,m,v,C);if(y[v]=S,i===!1){var w=o||0;v>0&&y[v-1]!==b&&(y[v]=Math.max(y[v],y[v-1]+w)),v<y.length-1&&y[v+1]!==b&&(y[v]=Math.min(y[v],y[v+1]-w))}else if(typeof o=="number"||o===null){for(var x=v+1;x<y.length;x+=1)for(var E=!0;f(y[x]-y[x-1])&&E;){var R=u(y,1,x);y[x]=R.value,E=R.changed}for(var O=v;O>0;O-=1)for(var T=!0;f(y[O]-y[O-1])&&T;){var M=u(y,-1,O-1);y[O-1]=M.value,T=M.changed}for(var _=y.length-1;_>0;_-=1)for(var F=!0;f(y[_]-y[_-1])&&F;){var D=u(y,-1,_-1);y[_-1]=D.value,F=D.changed}for(var k=0;k<y.length-1;k+=1)for(var L=!0;f(y[k+1]-y[k])&&L;){var I=u(y,1,k+1);y[k+1]=I.value,L=I.changed}}return{value:y[v],values:y}};return[l,h]}function hGt(e){return d.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,i=e.maxCount;return[!0,t,!t&&n,r||0,i]},[e])}var gGt=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,i=e.className,o=e.style,s=e.classNames,a=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,f=e.keyboard,h=f===void 0?!0:f,g=e.autoFocus,p=e.onFocus,m=e.onBlur,v=e.min,C=v===void 0?0:v,y=e.max,b=y===void 0?100:y,S=e.step,w=S===void 0?1:S,x=e.value,E=e.defaultValue,R=e.range,O=e.count,T=e.onChange,M=e.onBeforeChange,_=e.onAfterChange,F=e.onChangeComplete,D=e.allowCross,k=D===void 0?!0:D,L=e.pushable,I=L===void 0?!1:L,A=e.reverse,N=e.vertical,B=e.included,z=B===void 0?!0:B,j=e.startPoint,W=e.trackStyle,G=e.handleStyle,K=e.railStyle,q=e.dotStyle,X=e.activeDotStyle,Q=e.marks,te=e.dots,ne=e.handleRender,Z=e.activeHandleRender,ee=e.track,J=e.tabIndex,oe=J===void 0?0:J,le=e.ariaLabelForHandle,ge=e.ariaLabelledByForHandle,he=e.ariaRequired,ye=e.ariaValueTextFormatterForHandle,ue=d.useRef(null),ve=d.useRef(null),de=d.useMemo(function(){return N?A?"ttb":"btt":A?"rtl":"ltr"},[A,N]),xe=hGt(R),Ee=Ce(xe,5),De=Ee[0],Be=Ee[1],Ge=Ee[2],Ue=Ee[3],We=Ee[4],Ve=d.useMemo(function(){return isFinite(C)?C:0},[C]),Fe=d.useMemo(function(){return isFinite(b)?b:100},[b]),ke=d.useMemo(function(){return w!==null&&w<=0?1:w},[w]),Ye=d.useMemo(function(){return typeof I=="boolean"?I?ke:!1:I>=0?I:!1},[I,ke]),ze=d.useMemo(function(){return Object.keys(Q||{}).map(function(Mt){var mt=Q[Mt],jt={value:Number(Mt)};return mt&&nn(mt)==="object"&&!d.isValidElement(mt)&&("label"in mt||"style"in mt)?(jt.style=mt.style,jt.label=mt.label):jt.label=mt,jt}).filter(function(Mt){var mt=Mt.label;return mt||typeof mt=="number"}).sort(function(Mt,mt){return Mt.value-mt.value})},[Q]),Re=fGt(Ve,Fe,ke,ze,k,Ye),Le=Ce(Re,2),Me=Le[0],be=Le[1],je=ir(E,{value:x}),Xe=Ce(je,2),ft=Xe[0],Tt=Xe[1],tt=d.useMemo(function(){var Mt=ft==null?[]:Array.isArray(ft)?ft:[ft],mt=Ce(Mt,1),jt=mt[0],tn=jt===void 0?Ve:jt,Cn=ft===null?[]:[tn];if(De){if(Cn=ut(Mt),O||ft===void 0){var Ln=O>=0?O+1:2;for(Cn=Cn.slice(0,Ln);Cn.length<Ln;){var cn;Cn.push((cn=Cn[Cn.length-1])!==null&&cn!==void 0?cn:Ve)}}Cn.sort(function(Dt,sn){return Dt-sn})}return Cn.forEach(function(Dt,sn){Cn[sn]=Me(Dt)}),Cn},[ft,De,Ve,O,Me]),pt=function(mt){return De?mt:mt[0]},$t=Hn(function(Mt){var mt=ut(Mt).sort(function(jt,tn){return jt-tn});T&&!Uf(mt,tt,!0)&&T(pt(mt)),Tt(mt)}),wt=Hn(function(Mt){Mt&&ue.current.hideHelp();var mt=pt(tt);_==null||_(mt),ui(!_,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),F==null||F(mt)}),It=function(mt){if(!(u||!Be||tt.length<=Ue)){var jt=ut(tt);jt.splice(mt,1),M==null||M(pt(jt)),$t(jt);var tn=Math.max(0,mt-1);ue.current.hideHelp(),ue.current.focus(tn)}},Ct=dGt(ve,de,tt,Ve,Fe,Me,$t,wt,be,Be,Ue),ot=Ce(Ct,5),nt=ot[0],fe=ot[1],Te=ot[2],$e=ot[3],He=ot[4],it=function(mt,jt){if(!u){var tn=ut(tt),Cn=0,Ln=0,cn=Fe-Ve;tt.forEach(function(Jn,Ar){var Vr=Math.abs(mt-Jn);Vr<=cn&&(cn=Vr,Cn=Ar),Jn<mt&&(Ln=Ar)});var Dt=Cn;Be&&cn!==0&&(!We||tt.length<We)?(tn.splice(Ln+1,0,mt),Dt=Ln+1):tn[Cn]=mt,De&&!tt.length&&O===void 0&&tn.push(mt);var sn=pt(tn);if(M==null||M(sn),$t(tn),jt){var Sn,Tn;(Sn=document.activeElement)===null||Sn===void 0||(Tn=Sn.blur)===null||Tn===void 0||Tn.call(Sn),ue.current.focus(Dt),He(jt,Dt,tn)}else _==null||_(sn),ui(!_,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),F==null||F(sn)}},at=function(mt){mt.preventDefault();var jt=ve.current.getBoundingClientRect(),tn=jt.width,Cn=jt.height,Ln=jt.left,cn=jt.top,Dt=jt.bottom,sn=jt.right,Sn=mt.clientX,Tn=mt.clientY,Jn;switch(de){case"btt":Jn=(Dt-Tn)/Cn;break;case"ttb":Jn=(Tn-cn)/Cn;break;case"rtl":Jn=(sn-Sn)/tn;break;default:Jn=(Sn-Ln)/tn}var Ar=Ve+Jn*(Fe-Ve);it(Me(Ar),mt)},gt=d.useState(null),yt=Ce(gt,2),st=yt[0],Ze=yt[1],dt=function(mt,jt){if(!u){var tn=be(tt,mt,jt);M==null||M(pt(tt)),$t(tn.values),Ze(tn.value)}};d.useEffect(function(){if(st!==null){var Mt=tt.indexOf(st);Mt>=0&&ue.current.focus(Mt)}Ze(null)},[st]);var At=d.useMemo(function(){return Ge&&ke===null?!1:Ge},[Ge,ke]),kt=Hn(function(Mt,mt){He(Mt,mt),M==null||M(pt(tt))}),pn=nt!==-1;d.useEffect(function(){if(!pn){var Mt=tt.lastIndexOf(fe);ue.current.focus(Mt)}},[pn]);var ln=d.useMemo(function(){return ut($e).sort(function(Mt,mt){return Mt-mt})},[$e]),Lt=d.useMemo(function(){return De?[ln[0],ln[ln.length-1]]:[Ve,ln[0]]},[ln,De,Ve]),xt=Ce(Lt,2),Rt=xt[0],Ft=xt[1];d.useImperativeHandle(t,function(){return{focus:function(){ue.current.focus(0)},blur:function(){var mt,jt=document,tn=jt.activeElement;(mt=ve.current)!==null&&mt!==void 0&&mt.contains(tn)&&(tn==null||tn.blur())}}}),d.useEffect(function(){g&&ue.current.focus(0)},[]);var hn=d.useMemo(function(){return{min:Ve,max:Fe,direction:de,disabled:u,keyboard:h,step:ke,included:z,includedStart:Rt,includedEnd:Ft,range:De,tabIndex:oe,ariaLabelForHandle:le,ariaLabelledByForHandle:ge,ariaRequired:he,ariaValueTextFormatterForHandle:ye,styles:a||{},classNames:s||{}}},[Ve,Fe,de,u,h,ke,z,Rt,Ft,De,oe,le,ge,he,ye,a,s]);return d.createElement(jy.Provider,{value:hn},d.createElement("div",{ref:ve,className:we(r,i,ie(ie(ie(ie({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),N),"".concat(r,"-horizontal"),!N),"".concat(r,"-with-marks"),ze.length)),style:o,onMouseDown:at,id:l},d.createElement("div",{className:we("".concat(r,"-rail"),s==null?void 0:s.rail),style:se(se({},K),a==null?void 0:a.rail)}),ee!==!1&&d.createElement(cGt,{prefixCls:r,style:W,values:tt,startPoint:j,onStartMove:At?kt:void 0}),d.createElement(lGt,{prefixCls:r,marks:ze,dots:te,style:q,activeStyle:X}),d.createElement(iGt,{ref:ue,prefixCls:r,style:G,values:$e,draggingIndex:nt,draggingDelete:Te,onStartMove:kt,onOffsetChange:dt,onFocus:p,onBlur:m,handleRender:ne,activeHandleRender:Z,onChangeComplete:wt,onDelete:Be?It:void 0}),d.createElement(sGt,{prefixCls:r,marks:ze,onClick:it})))});const pGt=Object.freeze(Object.defineProperty({__proto__:null,UnstableContext:bKe,default:gGt},Symbol.toStringTag,{value:"Module"}));var mGt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},vGt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mGt}))},SKe=d.forwardRef(vGt),CGt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},yGt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:CGt}))},bGt=d.forwardRef(yGt),SGt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},wGt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:SGt}))},xGt=d.forwardRef(wGt),T7e=d.createContext(null),wKe=d.createContext({}),EGt=["prefixCls","className","containerRef"],RGt=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=on(t,EGt),s=d.useContext(wKe),a=s.panel,l=Od(a,i);return d.createElement("div",V({className:we("".concat(n,"-content"),r),role:"dialog",ref:l},$o(t,{aria:!0}),{"aria-modal":"true"},o))};function I7e(e){return typeof e=="string"&&String(Number(e))===e?(ui(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var M7e={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function $Gt(e,t){var n,r,i,o=e.prefixCls,s=e.open,a=e.placement,l=e.inline,c=e.push,u=e.forceRender,f=e.autoFocus,h=e.keyboard,g=e.classNames,p=e.rootClassName,m=e.rootStyle,v=e.zIndex,C=e.className,y=e.id,b=e.style,S=e.motion,w=e.width,x=e.height,E=e.children,R=e.mask,O=e.maskClosable,T=e.maskMotion,M=e.maskClassName,_=e.maskStyle,F=e.afterOpenChange,D=e.onClose,k=e.onMouseEnter,L=e.onMouseOver,I=e.onMouseLeave,A=e.onClick,N=e.onKeyDown,B=e.onKeyUp,z=e.styles,j=e.drawerRender,W=d.useRef(),G=d.useRef(),K=d.useRef();d.useImperativeHandle(t,function(){return W.current});var q=function(xe){var Ee=xe.keyCode,De=xe.shiftKey;switch(Ee){case lt.TAB:{if(Ee===lt.TAB){if(!De&&document.activeElement===K.current){var Be;(Be=G.current)===null||Be===void 0||Be.focus({preventScroll:!0})}else if(De&&document.activeElement===G.current){var Ge;(Ge=K.current)===null||Ge===void 0||Ge.focus({preventScroll:!0})}}break}case lt.ESC:{D&&h&&(xe.stopPropagation(),D(xe));break}}};d.useEffect(function(){if(s&&f){var de;(de=W.current)===null||de===void 0||de.focus({preventScroll:!0})}},[s]);var X=d.useState(!1),Q=Ce(X,2),te=Q[0],ne=Q[1],Z=d.useContext(T7e),ee;typeof c=="boolean"?ee=c?{}:{distance:0}:ee=c||{};var J=(n=(r=(i=ee)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:Z==null?void 0:Z.pushDistance)!==null&&n!==void 0?n:180,oe=d.useMemo(function(){return{pushDistance:J,push:function(){ne(!0)},pull:function(){ne(!1)}}},[J]);d.useEffect(function(){if(s){var de;Z==null||(de=Z.push)===null||de===void 0||de.call(Z)}else{var xe;Z==null||(xe=Z.pull)===null||xe===void 0||xe.call(Z)}},[s]),d.useEffect(function(){return function(){var de;Z==null||(de=Z.pull)===null||de===void 0||de.call(Z)}},[]);var le=R&&d.createElement(Hs,V({key:"mask"},T,{visible:s}),function(de,xe){var Ee=de.className,De=de.style;return d.createElement("div",{className:we("".concat(o,"-mask"),Ee,g==null?void 0:g.mask,M),style:se(se(se({},De),_),z==null?void 0:z.mask),onClick:O&&s?D:void 0,ref:xe})}),ge=typeof S=="function"?S(a):S,he={};if(te&&J)switch(a){case"top":he.transform="translateY(".concat(J,"px)");break;case"bottom":he.transform="translateY(".concat(-J,"px)");break;case"left":he.transform="translateX(".concat(J,"px)");break;default:he.transform="translateX(".concat(-J,"px)");break}a==="left"||a==="right"?he.width=I7e(w):he.height=I7e(x);var ye={onMouseEnter:k,onMouseOver:L,onMouseLeave:I,onClick:A,onKeyDown:N,onKeyUp:B},ue=d.createElement(Hs,V({key:"panel"},ge,{visible:s,forceRender:u,onVisibleChanged:function(xe){F==null||F(xe)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(de,xe){var Ee=de.className,De=de.style,Be=d.createElement(RGt,V({id:y,containerRef:xe,prefixCls:o,className:we(C,g==null?void 0:g.content),style:se(se({},b),z==null?void 0:z.content)},$o(e,{aria:!0}),ye),E);return d.createElement("div",V({className:we("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,Ee),style:se(se(se({},he),De),z==null?void 0:z.wrapper)},$o(e,{data:!0})),j?j(Be):Be)}),ve=se({},m);return v&&(ve.zIndex=v),d.createElement(T7e.Provider,{value:oe},d.createElement("div",{className:we(o,"".concat(o,"-").concat(a),p,ie(ie({},"".concat(o,"-open"),s),"".concat(o,"-inline"),l)),style:ve,tabIndex:-1,ref:W,onKeyDown:q},le,d.createElement("div",{tabIndex:0,ref:G,style:M7e,"aria-hidden":"true","data-sentinel":"start"}),ue,d.createElement("div",{tabIndex:0,ref:K,style:M7e,"aria-hidden":"true","data-sentinel":"end"})))}var OGt=d.forwardRef($Gt),TGt=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,o=i===void 0?"rc-drawer":i,s=t.placement,a=s===void 0?"right":s,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,f=u===void 0?!0:u,h=t.width,g=h===void 0?378:h,p=t.mask,m=p===void 0?!0:p,v=t.maskClosable,C=v===void 0?!0:v,y=t.getContainer,b=t.forceRender,S=t.afterOpenChange,w=t.destroyOnClose,x=t.onMouseEnter,E=t.onMouseOver,R=t.onMouseLeave,O=t.onClick,T=t.onKeyDown,M=t.onKeyUp,_=t.panelRef,F=d.useState(!1),D=Ce(F,2),k=D[0],L=D[1],I=d.useState(!1),A=Ce(I,2),N=A[0],B=A[1];Zn(function(){B(!0)},[]);var z=N?r:!1,j=d.useRef(),W=d.useRef();Zn(function(){z&&(W.current=document.activeElement)},[z]);var G=function(te){var ne;if(L(te),S==null||S(te),!te&&W.current&&!((ne=j.current)!==null&&ne!==void 0&&ne.contains(W.current))){var Z;(Z=W.current)===null||Z===void 0||Z.focus({preventScroll:!0})}},K=d.useMemo(function(){return{panel:_}},[_]);if(!b&&!k&&!z&&w)return null;var q={onMouseEnter:x,onMouseOver:E,onMouseLeave:R,onClick:O,onKeyDown:T,onKeyUp:M},X=se(se({},t),{},{open:z,prefixCls:o,placement:a,autoFocus:c,keyboard:f,width:g,mask:m,maskClosable:C,inline:y===!1,afterOpenChange:G,ref:j},q);return d.createElement(wKe.Provider,{value:K},d.createElement(Ly,{open:z||b||k,autoDestroy:!1,getContainer:y,autoLock:m&&(z||k)},d.createElement(OGt,X)))};const IGt=Object.freeze(Object.defineProperty({__proto__:null,default:TGt},Symbol.toStringTag,{value:"Module"}));function P7e(e){return["small","middle","large"].includes(e)}function _7e(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const xKe=ce.createContext({latestIndex:0}),MGt=xKe.Provider,PGt=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:s}=d.useContext(xKe);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:o},r),n<s&&i&&d.createElement("span",{className:`${t}-split`},i))};var _Gt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 AGt=d.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:o,space:s,direction:a}=d.useContext(vn),{size:l=(n=s==null?void 0:s.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:h,direction:g="horizontal",prefixCls:p,split:m,style:v,wrap:C=!1,classNames:y,styles:b}=e,S=_Gt(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(l)?l:[l,l],E=P7e(x),R=P7e(w),O=_7e(x),T=_7e(w),M=Rs(h,{keepEmpty:!0}),_=c===void 0&&g==="horizontal"?"center":c,F=o("space",p),[D,k,L]=AGe(F),I=we(F,s==null?void 0:s.className,k,`${F}-${g}`,{[`${F}-rtl`]:a==="rtl",[`${F}-align-${_}`]:_,[`${F}-gap-row-${x}`]:E,[`${F}-gap-col-${w}`]:R},u,f,L),A=we(`${F}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(i=s==null?void 0:s.classNames)===null||i===void 0?void 0:i.item);let N=0;const B=M.map((W,G)=>{var K,q;W!=null&&(N=G);const X=(W==null?void 0:W.key)||`${A}-${G}`;return d.createElement(PGt,{className:A,key:X,index:G,split:m,style:(K=b==null?void 0:b.item)!==null&&K!==void 0?K:(q=s==null?void 0:s.styles)===null||q===void 0?void 0:q.item},W)}),z=d.useMemo(()=>({latestIndex:N}),[N]);if(M.length===0)return null;const j={};return C&&(j.flexWrap="wrap"),!R&&T&&(j.columnGap=w),!E&&O&&(j.rowGap=x),D(d.createElement("div",Object.assign({ref:t,className:I,style:Object.assign(Object.assign(Object.assign({},j),s==null?void 0:s.style),v)},S),d.createElement(MGt,{value:z},B)))}),C4=AGt;C4.Compact=yMt;var DGt=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 EKe=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(vn),{prefixCls:i,type:o="default",danger:s,disabled:a,loading:l,onClick:c,htmlType:u,children:f,className:h,menu:g,arrow:p,autoFocus:m,overlay:v,trigger:C,align:y,open:b,onOpenChange:S,placement:w,getPopupContainer:x,href:E,icon:R=d.createElement(rv,null),title:O,buttonsRender:T=Q=>Q,mouseEnterDelay:M,mouseLeaveDelay:_,overlayClassName:F,overlayStyle:D,destroyPopupOnHide:k,dropdownRender:L}=e,I=DGt(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),A=n("dropdown",i),N=`${A}-button`,B={menu:g,arrow:p,autoFocus:m,align:y,disabled:a,trigger:a?[]:C,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:M,mouseLeaveDelay:_,overlayClassName:F,overlayStyle:D,destroyPopupOnHide:k,dropdownRender:L},{compactSize:z,compactItemClassnames:j}=Dy(A,r),W=we(N,j,h);"overlay"in e&&(B.overlay=v),"open"in e&&(B.open=b),"placement"in e?B.placement=w:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const G=d.createElement(Cr,{type:o,danger:s,disabled:a,loading:l,onClick:c,htmlType:u,href:E,title:O},f),K=d.createElement(Cr,{type:o,danger:s,icon:R}),[q,X]=T([G,K]);return d.createElement(C4.Compact,Object.assign({className:W,size:z,block:!0},I),q,d.createElement(RV,Object.assign({},B),X))};EKe.__ANT_BUTTON=!0;const RKe=RV;RKe.Button=EKe;var LGt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},FGt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:LGt}))},Xpe=d.forwardRef(FGt);function aB(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const NGt=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
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,
|
||
${r}-col-24${n}-label,
|
||
${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,
|
||
${n}-col-24${t}-label,
|
||
${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","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=fl(c),_=d.useContext(NVe),F=d.useMemo(()=>S!==void 0?S:C?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[C,S,o]),D=h??(o==null?void 0:o.colon),k=r("form",s),L=Oo(k),[I,A,N]=Qpe(k,L),B=we(k,`${k}-${y}`,{[`${k}-hide-required-mark`]:F===!1,[`${k}-rtl`]:i==="rtl",[`${k}-${M}`]:M},N,L,A,o==null?void 0:o.className,a,l),[z]=F0(f),{__INTERNAL__:j}=z;j.name=x;const W=d.useMemo(()=>({name:x,labelAlign:g,labelCol:m,labelWrap:p,wrapperCol:v,vertical:y==="vertical",colon:D,requiredMark:F,itemRef:j.itemRef,form:z,feedbackIcons:R}),[x,g,m,v,y,D,F,z,R]),G=d.useRef(null);d.useImperativeHandle(t,()=>{var X;return Object.assign(Object.assign({},z),{nativeElement:(X=G.current)===null||X===void 0?void 0:X.nativeElement})});const K=(X,Q)=>{if(X){let te={block:"nearest"};typeof X=="object"&&(te=Object.assign(Object.assign({},te),X)),z.scrollToField(Q,te),te.focus&&z.focusField(Q)}},q=X=>{if(w==null||w(X),X.errorFields.length){const Q=X.errorFields[0].name;if(b!==void 0){K(b,Q);return}o&&o.scrollToFirstError!==void 0&&K(o.scrollToFirstError,Q)}};return I(d.createElement(aWe.Provider,{value:O},d.createElement(Vge,{disabled:u},d.createElement(LC.Provider,{value:M},d.createElement(sWe,{validateMessages:_},d.createElement(A0.Provider,{value:W},d.createElement(Fy,Object.assign({id:x},T,{name:x,onFinishFailed:q,form:z,ref:G,style:Object.assign(Object.assign({},o==null?void 0:o.style),E),className:B}))))))))},YGt=d.forwardRef(KGt);function XGt(e){if(typeof e=="function")return e;const t=Rs(e);return t.length<=1?t[0]:t}const PKe=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(Na);return{status:e,errors:t,warnings:n}};PKe.Context=Na;function QGt(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),o=d.useRef(!1);d.useEffect(()=>(o.current=!1,()=>{o.current=!0,Rr.cancel(r.current),r.current=null}),[]);function s(a){o.current||(r.current===null&&(i.current=[],r.current=Rr(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(a))}return[t,s]}function ZGt(){const{itemRef:e}=d.useContext(A0),t=d.useRef({});function n(r,i){const o=i&&typeof i=="object"&&v3(i),s=r.join("_");return(t.current.name!==s||t.current.originRef!==o)&&(t.current.name=s,t.current.originRef=o,t.current.ref=Ws(e(r),o)),t.current.ref}return n}const JGt=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},eWt=Hx(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=OKe(e,n);return[JGt(r)]});var tWt=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 nWt=24,rWt=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:o,errors:s,warnings:a,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:h,onErrorVisibleChanged:g,label:p}=e,m=`${t}-item`,v=d.useContext(A0),C=d.useMemo(()=>{let D=Object.assign({},i||v.wrapperCol||{});return p===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(L=>{const I=L?[L]:[],A=Bl(v.labelCol,I),N=typeof A=="object"?A:{},B=Bl(D,I),z=typeof B=="object"?B:{};"span"in N&&!("offset"in z)&&N.span<nWt&&(D=Xu(D,[].concat(I,["offset"]),N.span))}),D},[i,v]),y=we(`${m}-control`,C.className),b=d.useMemo(()=>tWt(v,["labelCol","wrapperCol"]),[v]),S=d.useRef(null),[w,x]=d.useState(0);Zn(()=>{c&&S.current?x(S.current.clientHeight):x(0)},[c]);const E=d.createElement("div",{className:`${m}-control-input`},d.createElement("div",{className:`${m}-control-input-content`},o)),R=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=h!==null||s.length||a.length?d.createElement(gpe.Provider,{value:R},d.createElement(TKe,{fieldId:f,errors:s,warnings:a,help:u,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:g})):null,T={};f&&(T.id=`${f}_extra`);const M=c?d.createElement("div",Object.assign({},T,{className:`${m}-extra`,ref:S}),c):null,_=O||M?d.createElement("div",{className:`${m}-additional`,style:h?{minHeight:h+w}:{}},O,M):null,F=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:E,errorList:O,extra:M}):d.createElement(d.Fragment,null,E,_);return d.createElement(A0.Provider,{value:b},d.createElement(DT,Object.assign({},C,{className:y}),F),d.createElement(eWt,{prefixCls:t}))};var iWt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},oWt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:iWt}))},_Ke=d.forwardRef(oWt),sWt=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 aWt(e){return e?typeof e=="object"&&!d.isValidElement(e)?e:{title:e}:null}const lWt=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:s,required:a,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[h]=ih("Form"),{labelAlign:g,labelCol:p,labelWrap:m,colon:v}=d.useContext(A0);if(!n)return null;const C=i||p||{},y=o||g,b=`${t}-item-label`,S=we(b,y==="left"&&`${b}-left`,C.className,{[`${b}-wrap`]:!!m});let w=n;const x=s===!0||v!==!1&&s!==!1;x&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const R=aWt(c);if(R){const{icon:_=d.createElement(_Ke,null)}=R,F=sWt(R,["icon"]),D=d.createElement(Gm,Object.assign({},F),d.cloneElement(_,{className:`${t}-item-tooltip`,title:"",onClick:k=>{k.preventDefault()},tabIndex:null}));w=d.createElement(d.Fragment,null,w,D)}const O=l==="optional",T=typeof l=="function";T?w=l(w,{required:!!a}):O&&!a&&(w=d.createElement(d.Fragment,null,w,d.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((f=yd.Form)===null||f===void 0?void 0:f.optional))));const M=we({[`${t}-item-required`]:a,[`${t}-item-required-mark-optional`]:O||T,[`${t}-item-no-colon`]:!x});return d.createElement(DT,Object.assign({},C,{className:S}),d.createElement("label",{htmlFor:r,className:M,title:typeof n=="string"?n:""},w))},cWt={success:Ay,warning:Vx,error:nv,validating:Tm};function AKe(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:s,meta:a,noStyle:l}=e;const c=`${s}-item`,{feedbackIcons:u}=d.useContext(A0),f=MKe(n,r,a,null,!!i,o),{isFormItemInput:h,status:g,hasFeedback:p,feedbackIcon:m}=d.useContext(Na),v=d.useMemo(()=>{var C;let y;if(i){const S=i!==!0&&i.icons||u,w=f&&((C=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||C===void 0?void 0:C[f]),x=f&&cWt[f];y=w!==!1&&x?d.createElement("span",{className:we(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},w||d.createElement(x,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:y,isFormItemInput:!0};return l&&(b.status=(f??g)||"",b.isFormItemInput=h,b.hasFeedback=!!(i??p),b.feedbackIcon=i!==void 0?b.feedbackIcon:m),b},[f,i,l,h,g]);return d.createElement(Na.Provider,{value:v},t)}var uWt=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 dWt(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:o,errors:s,warnings:a,validateStatus:l,meta:c,hasFeedback:u,hidden:f,children:h,fieldId:g,required:p,isRequired:m,onSubItemMetaChange:v,layout:C}=e,y=uWt(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),b=`${t}-item`,{requiredMark:S,vertical:w}=d.useContext(A0),x=w||C==="vertical",E=d.useRef(null),R=aB(s),O=aB(a),T=o!=null,M=!!(T||s.length||a.length),_=!!E.current&&Gx(E.current),[F,D]=d.useState(null);Zn(()=>{if(M&&E.current){const N=getComputedStyle(E.current);D(parseInt(N.marginBottom,10))}},[M,_]);const k=N=>{N||D(null)},I=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const B=N?R:c.errors,z=N?O:c.warnings;return MKe(B,z,c,"",!!u,l)}(),A=we(b,n,r,{[`${b}-with-help`]:T||R.length||O.length,[`${b}-has-feedback`]:I&&u,[`${b}-has-success`]:I==="success",[`${b}-has-warning`]:I==="warning",[`${b}-has-error`]:I==="error",[`${b}-is-validating`]:I==="validating",[`${b}-hidden`]:f,[`${b}-${C}`]:C});return d.createElement("div",{className:A,style:i,ref:E},d.createElement(Gpe,Object.assign({className:`${b}-row`},$i(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(lWt,Object.assign({htmlFor:g},e,{requiredMark:S,required:p??m,prefixCls:t,vertical:x})),d.createElement(rWt,Object.assign({},e,c,{errors:R,warnings:O,prefixCls:t,status:I,help:o,marginBottom:F,onErrorVisibleChanged:k}),d.createElement(oWe.Provider,{value:v},d.createElement(AKe,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:I},h)))),!!F&&d.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-F}}))}const fWt="__SPLIT__";function hWt(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],s=t[i];return o===s||typeof o=="function"||typeof s=="function"})}const gWt=d.memo(e=>{let{children:t}=e;return t},(e,t)=>hWt(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function k7e(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function pWt(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:s,rules:a,children:l,required:c,label:u,messageVariables:f,trigger:h="onChange",validateTrigger:g,hidden:p,help:m,layout:v}=e,{getPrefixCls:C}=d.useContext(vn),{name:y}=d.useContext(A0),b=XGt(l),S=typeof b=="function",w=d.useContext(oWe),{validateTrigger:x}=d.useContext(Q4),E=g!==void 0?g:x,R=t!=null,O=C("form",o),T=Oo(O),[M,_,F]=Qpe(O,T);_y();const D=d.useContext(u7),k=d.useRef(null),[L,I]=QGt({}),[A,N]=FC(()=>k7e()),B=X=>{const Q=D==null?void 0:D.getKey(X.name);if(N(X.destroy?k7e():X,!0),n&&m!==!1&&w){let te=X.name;if(X.destroy)te=k.current||te;else if(Q!==void 0){const[ne,Z]=Q;te=[ne].concat(ut(Z)),k.current=te}w(X,te)}},z=(X,Q)=>{I(te=>{const ne=Object.assign({},te),ee=[].concat(ut(X.name.slice(0,-1)),ut(Q)).join(fWt);return X.destroy?delete ne[ee]:ne[ee]=X,ne})},[j,W]=d.useMemo(()=>{const X=ut(A.errors),Q=ut(A.warnings);return Object.values(L).forEach(te=>{X.push.apply(X,ut(te.errors||[])),Q.push.apply(Q,ut(te.warnings||[]))}),[X,Q]},[L,A.errors,A.warnings]),G=ZGt();function K(X,Q,te){return n&&!p?d.createElement(AKe,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:A,errors:j,warnings:W,noStyle:!0},X):d.createElement(dWt,Object.assign({key:"row"},e,{className:we(r,F,T,_),prefixCls:O,fieldId:Q,isRequired:te,errors:j,warnings:W,meta:A,onSubItemMetaChange:z,layout:v}),X)}if(!R&&!S&&!i)return M(K(b));let q={};return typeof u=="string"?q.label=u:t&&(q.label=String(t)),f&&(q=Object.assign(Object.assign({},q),f)),M(d.createElement(sV,Object.assign({},e,{messageVariables:q,trigger:h,validateTrigger:E,onMetaChange:B}),(X,Q,te)=>{const ne=Y$(t).length&&Q?Q.name:[],Z=IKe(ne,y),ee=c!==void 0?c:!!(a!=null&&a.some(le=>{if(le&&typeof le=="object"&&le.required&&!le.warningOnly)return!0;if(typeof le=="function"){const ge=le(te);return(ge==null?void 0:ge.required)&&!(ge!=null&&ge.warningOnly)}return!1})),J=Object.assign({},X);let oe=null;if(Array.isArray(b)&&R)oe=b;else if(!(S&&(!(s||i)||R))){if(!(i&&!S&&!R))if(d.isValidElement(b)){const le=Object.assign(Object.assign({},b.props),J);if(le.id||(le.id=Z),m||j.length>0||W.length>0||e.extra){const ye=[];(m||j.length>0)&&ye.push(`${Z}_help`),e.extra&&ye.push(`${Z}_extra`),le["aria-describedby"]=ye.join(" ")}j.length>0&&(le["aria-invalid"]="true"),ee&&(le["aria-required"]="true"),Cd(b)&&(le.ref=G(ne,b)),new Set([].concat(ut(Y$(h)),ut(Y$(E)))).forEach(ye=>{le[ye]=function(){for(var ue,ve,de,xe,Ee,De=arguments.length,Be=new Array(De),Ge=0;Ge<De;Ge++)Be[Ge]=arguments[Ge];(de=J[ye])===null||de===void 0||(ue=de).call.apply(ue,[J].concat(Be)),(Ee=(xe=b.props)[ye])===null||Ee===void 0||(ve=Ee).call.apply(ve,[xe].concat(Be))}});const he=[le["aria-required"],le["aria-invalid"],le["aria-describedby"]];oe=d.createElement(gWt,{control:J,update:b,childProps:he},js(b,le))}else S&&(s||i)&&!R?oe=b(te):oe=b}return K(oe,Z,ee)}))}const DKe=pWt;DKe.useStatus=PKe;var mWt=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 vWt=e=>{var{prefixCls:t,children:n}=e,r=mWt(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(vn),o=i("form",t),s=d.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return d.createElement(dpe,Object.assign({},r),(a,l,c)=>d.createElement(gpe.Provider,{value:s},n(a.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function CWt(){const{form:e}=d.useContext(A0);return e}const Rn=YGt;Rn.Item=DKe;Rn.List=vWt;Rn.ErrorList=TKe;Rn.useForm=F0;Rn.useFormInstance=CWt;Rn.useWatch=hpe;Rn.Provider=sWe;Rn.create=()=>{};function LKe(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function ble(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Yp(e,t,n,r){var i=Hw.unstable_batchedUpdates?function(s){Hw.unstable_batchedUpdates(n,s)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var uM=d.createContext(null),yWt=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,o=t.prefixCls,s=t.rootClassName,a=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,h=t.transform,g=t.count,p=t.scale,m=t.minScale,v=t.maxScale,C=t.closeIcon,y=t.onActive,b=t.onClose,S=t.onZoomIn,w=t.onZoomOut,x=t.onRotateRight,E=t.onRotateLeft,R=t.onFlipX,O=t.onFlipY,T=t.onReset,M=t.toolbarRender,_=t.zIndex,F=t.image,D=d.useContext(uM),k=a.rotateLeft,L=a.rotateRight,I=a.zoomIn,A=a.zoomOut,N=a.close,B=a.left,z=a.right,j=a.flipX,W=a.flipY,G="".concat(o,"-operations-operation");d.useEffect(function(){var ge=function(ye){ye.keyCode===lt.ESC&&b()};return n&&window.addEventListener("keydown",ge),function(){window.removeEventListener("keydown",ge)}},[n]);var K=function(he,ye){he.preventDefault(),he.stopPropagation(),y(ye)},q=d.useCallback(function(ge){var he=ge.type,ye=ge.disabled,ue=ge.onClick,ve=ge.icon;return d.createElement("div",{key:he,className:we(G,"".concat(o,"-operations-operation-").concat(he),ie({},"".concat(o,"-operations-operation-disabled"),!!ye)),onClick:ue},ve)},[G,o]),X=c?q({icon:B,onClick:function(he){return K(he,-1)},type:"prev",disabled:f===0}):void 0,Q=c?q({icon:z,onClick:function(he){return K(he,1)},type:"next",disabled:f===g-1}):void 0,te=q({icon:W,onClick:O,type:"flipY"}),ne=q({icon:j,onClick:R,type:"flipX"}),Z=q({icon:k,onClick:E,type:"rotateLeft"}),ee=q({icon:L,onClick:x,type:"rotateRight"}),J=q({icon:A,onClick:w,type:"zoomOut",disabled:p<=m}),oe=q({icon:I,onClick:S,type:"zoomIn",disabled:p===v}),le=d.createElement("div",{className:"".concat(o,"-operations")},te,ne,Z,ee,J,oe);return d.createElement(Hs,{visible:n,motionName:r},function(ge){var he=ge.className,ye=ge.style;return d.createElement(Ly,{open:!0,getContainer:i??document.body},d.createElement("div",{className:we("".concat(o,"-operations-wrapper"),he,s),style:se(se({},ye),{},{zIndex:_})},C===null?null:d.createElement("button",{className:"".concat(o,"-close"),onClick:b},C||N),c&&d.createElement(d.Fragment,null,d.createElement("div",{className:we("".concat(o,"-switch-left"),ie({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:function(ve){return K(ve,-1)}},B),d.createElement("div",{className:we("".concat(o,"-switch-right"),ie({},"".concat(o,"-switch-right-disabled"),f===g-1)),onClick:function(ve){return K(ve,1)}},z)),d.createElement("div",{className:"".concat(o,"-footer")},u&&d.createElement("div",{className:"".concat(o,"-progress")},l?l(f+1,g):"".concat(f+1," / ").concat(g)),M?M(le,se(se({icons:{prevIcon:X,nextIcon:Q,flipYIcon:te,flipXIcon:ne,rotateLeftIcon:Z,rotateRightIcon:ee,zoomOutIcon:J,zoomInIcon:oe},actions:{onActive:y,onFlipY:O,onFlipX:R,onRotateLeft:E,onRotateRight:x,onZoomOut:w,onZoomIn:S,onReset:T,onClose:b},transform:h},D?{current:f,total:g}:{}),{},{image:F})):le)))})},ID={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function bWt(e,t,n,r){var i=d.useRef(null),o=d.useRef([]),s=d.useState(ID),a=Ce(s,2),l=a[0],c=a[1],u=function(p){c(ID),Uf(ID,l)||r==null||r({transform:ID,action:p})},f=function(p,m){i.current===null&&(o.current=[],i.current=Rr(function(){c(function(v){var C=v;return o.current.forEach(function(y){C=se(se({},C),y)}),i.current=null,r==null||r({transform:C,action:m}),C})})),o.current.push(se(se({},l),p))},h=function(p,m,v,C,y){var b=e.current,S=b.width,w=b.height,x=b.offsetWidth,E=b.offsetHeight,R=b.offsetLeft,O=b.offsetTop,T=p,M=l.scale*p;M>n?(M=n,T=n/l.scale):M<t&&(M=y?M:t,T=M/l.scale);var _=v??innerWidth/2,F=C??innerHeight/2,D=T-1,k=D*S*.5,L=D*w*.5,I=D*(_-l.x-R),A=D*(F-l.y-O),N=l.x-(I-k),B=l.y-(A-L);if(p<1&&M===1){var z=x*M,j=E*M,W=LKe(),G=W.width,K=W.height;z<=G&&j<=K&&(N=0,B=0)}f({x:N,y:B,scale:M},m)};return{transform:l,resetTransform:u,updateTransform:f,dispatchZoomChange:h}}function z7e(e,t,n,r){var i=t+n,o=(n-r)/2;if(n>r){if(t>0)return ie({},e,o);if(t<0&&i<r)return ie({},e,-o)}else if(t<0||i>r)return ie({},e,t<0?o:-o);return{}}function FKe(e,t,n,r){var i=LKe(),o=i.width,s=i.height,a=null;return e<=o&&t<=s?a={x:0,y:0}:(e>o||t>s)&&(a=se(se({},z7e("x",n,e,o)),z7e("y",r,t,s))),a}var $S=1,SWt=1;function wWt(e,t,n,r,i,o,s){var a=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),h=Ce(f,2),g=h[0],p=h[1],m=d.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(w){!t||w.button!==0||(w.preventDefault(),w.stopPropagation(),m.current={diffX:w.pageX-c,diffY:w.pageY-u,transformX:c,transformY:u},p(!0))},C=function(w){n&&g&&o({x:w.pageX-m.current.diffX,y:w.pageY-m.current.diffY},"move")},y=function(){if(n&&g){p(!1);var w=m.current,x=w.transformX,E=w.transformY,R=c!==x&&u!==E;if(!R)return;var O=e.current.offsetWidth*l,T=e.current.offsetHeight*l,M=e.current.getBoundingClientRect(),_=M.left,F=M.top,D=a%180!==0,k=FKe(D?T:O,D?O:T,_,F);k&&o(se({},k),"dragRebound")}},b=function(w){if(!(!n||w.deltaY==0)){var x=Math.abs(w.deltaY/100),E=Math.min(x,SWt),R=$S+E*r;w.deltaY>0&&(R=$S/R),s(R,"wheel",w.clientX,w.clientY)}};return d.useEffect(function(){var S,w,x,E;if(t){x=Yp(window,"mouseup",y,!1),E=Yp(window,"mousemove",C,!1);try{window.top!==window.self&&(S=Yp(window.top,"mouseup",y,!1),w=Yp(window.top,"mousemove",C,!1))}catch{}}return function(){var R,O,T,M;(R=x)===null||R===void 0||R.remove(),(O=E)===null||O===void 0||O.remove(),(T=S)===null||T===void 0||T.remove(),(M=w)===null||M===void 0||M.remove()}},[n,g,c,u,a,t]),{isMoving:g,onMouseDown:v,onMouseMove:C,onMouseUp:y,onWheel:b}}function xWt(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function NKe(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=d.useState(n?"loading":"normal"),o=Ce(i,2),s=o[0],a=o[1],l=d.useRef(!1),c=s==="error";d.useEffect(function(){var g=!0;return xWt(t).then(function(p){!p&&g&&a("error")}),function(){g=!1}},[t]),d.useEffect(function(){n&&!l.current?a("loading"):c&&a("normal")},[t]);var u=function(){a("normal")},f=function(p){l.current=!1,s==="loading"&&p!==null&&p!==void 0&&p.complete&&(p.naturalWidth||p.naturalHeight)&&(l.current=!0,u())},h=c&&r?{src:r}:{onLoad:u,src:t};return[f,h,s]}function lB(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function EWt(e,t,n,r){var i=lB(e,n),o=lB(t,r);if(i===0&&o===0)return[e.x,e.y];var s=i/(i+o),a=e.x+s*(t.x-e.x),l=e.y+s*(t.y-e.y);return[a,l]}function RWt(e,t,n,r,i,o,s){var a=i.rotate,l=i.scale,c=i.x,u=i.y,f=d.useState(!1),h=Ce(f,2),g=h[0],p=h[1],m=d.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(w){m.current=se(se({},m.current),w)},C=function(w){if(t){w.stopPropagation(),p(!0);var x=w.touches,E=x===void 0?[]:x;E.length>1?v({point1:{x:E[0].clientX,y:E[0].clientY},point2:{x:E[1].clientX,y:E[1].clientY},eventType:"touchZoom"}):v({point1:{x:E[0].clientX-c,y:E[0].clientY-u},eventType:"move"})}},y=function(w){var x=w.touches,E=x===void 0?[]:x,R=m.current,O=R.point1,T=R.point2,M=R.eventType;if(E.length>1&&M==="touchZoom"){var _={x:E[0].clientX,y:E[0].clientY},F={x:E[1].clientX,y:E[1].clientY},D=EWt(O,T,_,F),k=Ce(D,2),L=k[0],I=k[1],A=lB(_,F)/lB(O,T);s(A,"touchZoom",L,I,!0),v({point1:_,point2:F,eventType:"touchZoom"})}else M==="move"&&(o({x:E[0].clientX-O.x,y:E[0].clientY-O.y},"move"),v({eventType:"move"}))},b=function(){if(n){if(g&&p(!1),v({eventType:"none"}),r>l)return o({x:0,y:0,scale:r},"touchZoom");var w=e.current.offsetWidth*l,x=e.current.offsetHeight*l,E=e.current.getBoundingClientRect(),R=E.left,O=E.top,T=a%180!==0,M=FKe(T?x:w,T?w:x,R,O);M&&o(se({},M),"dragRebound")}};return d.useEffect(function(){var S;return n&&t&&(S=Yp(window,"touchmove",function(w){return w.preventDefault()},{passive:!1})),function(){var w;(w=S)===null||w===void 0||w.remove()}},[n,t]),{isTouching:g,onTouchStart:C,onTouchMove:y,onTouchEnd:b}}var $Wt=["fallback","src","imgRef"],OWt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],TWt=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=on(t,$Wt),s=NKe({src:r,fallback:n}),a=Ce(s,2),l=a[0],c=a[1];return ce.createElement("img",V({ref:function(f){i.current=f,l(f)}},o,c))},kKe=function(t){var n=t.prefixCls,r=t.src,i=t.alt,o=t.imageInfo,s=t.fallback,a=t.movable,l=a===void 0?!0:a,c=t.onClose,u=t.visible,f=t.icons,h=f===void 0?{}:f,g=t.rootClassName,p=t.closeIcon,m=t.getContainer,v=t.current,C=v===void 0?0:v,y=t.count,b=y===void 0?1:y,S=t.countRender,w=t.scaleStep,x=w===void 0?.5:w,E=t.minScale,R=E===void 0?1:E,O=t.maxScale,T=O===void 0?50:O,M=t.transitionName,_=M===void 0?"zoom":M,F=t.maskTransitionName,D=F===void 0?"fade":F,k=t.imageRender,L=t.imgCommonProps,I=t.toolbarRender,A=t.onTransform,N=t.onChange,B=on(t,OWt),z=d.useRef(),j=d.useContext(uM),W=j&&b>1,G=j&&b>=1,K=d.useState(!0),q=Ce(K,2),X=q[0],Q=q[1],te=bWt(z,R,T,A),ne=te.transform,Z=te.resetTransform,ee=te.updateTransform,J=te.dispatchZoomChange,oe=wWt(z,l,u,x,ne,ee,J),le=oe.isMoving,ge=oe.onMouseDown,he=oe.onWheel,ye=RWt(z,l,u,R,ne,ee,J),ue=ye.isTouching,ve=ye.onTouchStart,de=ye.onTouchMove,xe=ye.onTouchEnd,Ee=ne.rotate,De=ne.scale,Be=we(ie({},"".concat(n,"-moving"),le));d.useEffect(function(){X||Q(!0)},[X]);var Ge=function(){Z("close")},Ue=function(){J($S+x,"zoomIn")},We=function(){J($S/($S+x),"zoomOut")},Ve=function(){ee({rotate:Ee+90},"rotateRight")},Fe=function(){ee({rotate:Ee-90},"rotateLeft")},ke=function(){ee({flipX:!ne.flipX},"flipX")},Ye=function(){ee({flipY:!ne.flipY},"flipY")},ze=function(){Z("reset")},Re=function(ft){var Tt=C+ft;!Number.isInteger(Tt)||Tt<0||Tt>b-1||(Q(!1),Z(ft<0?"prev":"next"),N==null||N(Tt,C))},Le=function(ft){!u||!W||(ft.keyCode===lt.LEFT?Re(-1):ft.keyCode===lt.RIGHT&&Re(1))},Me=function(ft){u&&(De!==1?ee({x:0,y:0,scale:1},"doubleClick"):J($S+x,"doubleClick",ft.clientX,ft.clientY))};d.useEffect(function(){var Xe=Yp(window,"keydown",Le,!1);return function(){Xe.remove()}},[u,W,C]);var be=ce.createElement(TWt,V({},L,{width:t.width,height:t.height,imgRef:z,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ne.x,"px, ").concat(ne.y,"px, 0) scale3d(").concat(ne.flipX?"-":"").concat(De,", ").concat(ne.flipY?"-":"").concat(De,", 1) rotate(").concat(Ee,"deg)"),transitionDuration:(!X||ue)&&"0s"},fallback:s,src:r,onWheel:he,onMouseDown:ge,onDoubleClick:Me,onTouchStart:ve,onTouchMove:de,onTouchEnd:xe,onTouchCancel:xe})),je=se({url:r,alt:i},o);return ce.createElement(ce.Fragment,null,ce.createElement(oV,V({transitionName:_,maskTransitionName:D,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Be},rootClassName:g,getContainer:m},B,{afterClose:Ge}),ce.createElement("div",{className:"".concat(n,"-img-wrapper")},k?k(be,se({transform:ne,image:je},j?{current:C}:{})):be)),ce.createElement(yWt,{visible:u,transform:ne,maskTransitionName:D,closeIcon:p,getContainer:m,prefixCls:n,rootClassName:g,icons:h,countRender:S,showSwitch:W,showProgress:G,current:C,count:b,scale:De,minScale:R,maxScale:T,toolbarRender:I,onActive:Re,onZoomIn:Ue,onZoomOut:We,onRotateRight:Ve,onRotateLeft:Fe,onFlipX:ke,onFlipY:Ye,onClose:c,onReset:ze,zIndex:B.zIndex!==void 0?B.zIndex+1:void 0,image:je}))},Sle=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function IWt(e){var t=d.useState({}),n=Ce(t,2),r=n[0],i=n[1],o=d.useCallback(function(a,l){return i(function(c){return se(se({},c),{},ie({},a,l))}),function(){i(function(c){var u=se({},c);return delete u[a],u})}},[]),s=d.useMemo(function(){return e?e.map(function(a){if(typeof a=="string")return{data:{src:a}};var l={};return Object.keys(a).forEach(function(c){["src"].concat(ut(Sle)).includes(c)&&(l[c]=a[c])}),{data:l}}):Object.keys(r).reduce(function(a,l){var c=r[l],u=c.canPreview,f=c.data;return u&&a.push({data:f,id:l}),a},[])},[e,r]);return[s,o,!!e]}var MWt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],PWt=["src"],_Wt=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,o=t.children,s=t.icons,a=s===void 0?{}:s,l=t.items,c=t.preview,u=t.fallback,f=nn(c)==="object"?c:{},h=f.visible,g=f.onVisibleChange,p=f.getContainer,m=f.current,v=f.movable,C=f.minScale,y=f.maxScale,b=f.countRender,S=f.closeIcon,w=f.onChange,x=f.onTransform,E=f.toolbarRender,R=f.imageRender,O=on(f,MWt),T=IWt(l),M=Ce(T,3),_=M[0],F=M[1],D=M[2],k=ir(0,{value:m}),L=Ce(k,2),I=L[0],A=L[1],N=d.useState(!1),B=Ce(N,2),z=B[0],j=B[1],W=((n=_[I])===null||n===void 0?void 0:n.data)||{},G=W.src,K=on(W,PWt),q=ir(!!h,{value:h,onChange:function(ue,ve){g==null||g(ue,ve,I)}}),X=Ce(q,2),Q=X[0],te=X[1],ne=d.useState(null),Z=Ce(ne,2),ee=Z[0],J=Z[1],oe=d.useCallback(function(ye,ue,ve,de){var xe=D?_.findIndex(function(Ee){return Ee.data.src===ue}):_.findIndex(function(Ee){return Ee.id===ye});A(xe<0?0:xe),te(!0),J({x:ve,y:de}),j(!0)},[_,D]);d.useEffect(function(){Q?z||A(0):j(!1)},[Q]);var le=function(ue,ve){A(ue),w==null||w(ue,ve)},ge=function(){te(!1),J(null)},he=d.useMemo(function(){return{register:F,onPreview:oe}},[F,oe]);return d.createElement(uM.Provider,{value:he},o,d.createElement(kKe,V({"aria-hidden":!Q,movable:v,visible:Q,prefixCls:i,closeIcon:S,onClose:ge,mousePosition:ee,imgCommonProps:K,src:G,fallback:u,icons:a,minScale:C,maxScale:y,getContainer:p,current:I,count:_.length,countRender:b,onTransform:x,toolbarRender:E,imageRender:R,onChange:le},O)))},B7e=0;function AWt(e,t){var n=d.useState(function(){return B7e+=1,String(B7e)}),r=Ce(n,1),i=r[0],o=d.useContext(uM),s={data:t,canPreview:e};return d.useEffect(function(){if(o)return o.register(i,s)},[]),d.useEffect(function(){o&&o.register(i,s)},[e,t]),i}var DWt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],LWt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],BV=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,o=t.prefixCls,s=o===void 0?"rc-image":o,a=t.previewPrefixCls,l=a===void 0?"".concat(s,"-preview"):a,c=t.placeholder,u=t.fallback,f=t.width,h=t.height,g=t.style,p=t.preview,m=p===void 0?!0:p,v=t.className,C=t.onClick,y=t.onError,b=t.wrapperClassName,S=t.wrapperStyle,w=t.rootClassName,x=on(t,DWt),E=c&&c!==!0,R=nn(m)==="object"?m:{},O=R.src,T=R.visible,M=T===void 0?void 0:T,_=R.onVisibleChange,F=_===void 0?i:_,D=R.getContainer,k=D===void 0?void 0:D,L=R.mask,I=R.maskClassName,A=R.movable,N=R.icons,B=R.scaleStep,z=R.minScale,j=R.maxScale,W=R.imageRender,G=R.toolbarRender,K=on(R,LWt),q=O??n,X=ir(!!M,{value:M,onChange:F}),Q=Ce(X,2),te=Q[0],ne=Q[1],Z=NKe({src:n,isCustomPlaceholder:E,fallback:u}),ee=Ce(Z,3),J=ee[0],oe=ee[1],le=ee[2],ge=d.useState(null),he=Ce(ge,2),ye=he[0],ue=he[1],ve=d.useContext(uM),de=!!m,xe=function(){ne(!1),ue(null)},Ee=we(s,b,w,ie({},"".concat(s,"-error"),le==="error")),De=d.useMemo(function(){var We={};return Sle.forEach(function(Ve){t[Ve]!==void 0&&(We[Ve]=t[Ve])}),We},Sle.map(function(We){return t[We]})),Be=d.useMemo(function(){return se(se({},De),{},{src:q})},[q,De]),Ge=AWt(de,Be),Ue=function(Ve){var Fe=ble(Ve.target),ke=Fe.left,Ye=Fe.top;ve?ve.onPreview(Ge,q,ke,Ye):(ue({x:ke,y:Ye}),ne(!0)),C==null||C(Ve)};return d.createElement(d.Fragment,null,d.createElement("div",V({},x,{className:Ee,onClick:de?Ue:C,style:se({width:f,height:h},S)}),d.createElement("img",V({},De,{className:we("".concat(s,"-img"),ie({},"".concat(s,"-img-placeholder"),c===!0),v),style:se({height:h},g),ref:J},oe,{width:f,height:h,onError:y})),le==="loading"&&d.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},c),L&&de&&d.createElement("div",{className:we("".concat(s,"-mask"),I),style:{display:(g==null?void 0:g.display)==="none"?"none":void 0}},L)),!ve&&de&&d.createElement(kKe,V({"aria-hidden":!te,visible:te,prefixCls:l,onClose:xe,mousePosition:ye,src:q,alt:r,imageInfo:{width:f,height:h},fallback:u,getContainer:k,icons:N,movable:A,scaleStep:B,minScale:z,maxScale:j,rootClassName:w,imageRender:W,imgCommonProps:De,toolbarRender:G},K)))};BV.PreviewGroup=_Wt;const FWt=Object.freeze(Object.defineProperty({__proto__:null,default:BV},Symbol.toStringTag,{value:"Module"}));var NWt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},kWt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:NWt}))},zKe=d.forwardRef(kWt),zWt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},BWt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:zWt}))},BKe=d.forwardRef(BWt),HWt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},jWt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:HWt}))},cB=d.forwardRef(jWt),VWt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},GWt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:VWt}))},HKe=d.forwardRef(GWt),WWt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},UWt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:WWt}))},jKe=d.forwardRef(UWt);const wle=e=>({position:e||"absolute",inset:0}),qWt=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o,colorTextLightSolid:s}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:s,background:new kr("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},Kf),{padding:`0 ${Ne(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},KWt=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:o,paddingLG:s,previewOperationColorDisabled:a,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,h=new kr(n).setA(.1),g=h.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:h.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ne(s)}`,backgroundColor:h.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:a,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},YWt=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:s}=e,a=new kr(t).setA(.1),l=a.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${s}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},XWt=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},wle()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},wle()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[KWt(e),YWt(e)]}]},QWt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},qWt(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},wle())}}},ZWt=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Wx(e,"zoom"),"&":tpe(e,!0)}},JWt=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new kr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new kr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new kr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),VKe=Yr("Image",e=>{const t=`${e.componentCls}-preview`,n=yr(e,{previewCls:t,modalMaskBg:new kr("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[QWt(n),XWt(n),hWe(yr(n,{componentCls:t})),ZWt(n)]},JWt);var eUt=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 GKe={rotateLeft:d.createElement(zKe,null),rotateRight:d.createElement(BKe,null),zoomIn:d.createElement(HKe,null),zoomOut:d.createElement(jKe,null),close:d.createElement(Ug,null),left:d.createElement(L0,null),right:d.createElement(Xf,null),flipX:d.createElement(cB,null),flipY:d.createElement(cB,{rotate:90})},tUt=e=>{var{previewPrefixCls:t,preview:n}=e,r=eUt(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=d.useContext(vn),o=i("image",t),s=`${o}-preview`,a=i(),l=Oo(o),[c,u,f]=VKe(o,l),[h]=y3("ImagePreview",typeof n=="object"?n.zIndex:void 0),g=d.useMemo(()=>{var p;if(n===!1)return n;const m=typeof n=="object"?n:{},v=we(u,f,l,(p=m.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},m),{transitionName:Cu(a,"zoom",m.transitionName),maskTransitionName:Cu(a,"fade",m.maskTransitionName),rootClassName:v,zIndex:h})},[n]);return c(d.createElement(BV.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:GKe},r)))};var H7e=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 uB=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:s}=e,a=H7e(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=yd,getPopupContainer:u,image:f}=d.useContext(vn),h=l("image",n),g=l(),p=c.Image||yd.Image,m=Oo(h),[v,C,y]=VKe(h,m),b=we(o,C,y,m),S=we(i,C,f==null?void 0:f.className),[w]=y3("ImagePreview",typeof r=="object"?r.zIndex:void 0),x=d.useMemo(()=>{var R;if(r===!1)return r;const O=typeof r=="object"?r:{},{getContainer:T,closeIcon:M,rootClassName:_}=O,F=H7e(O,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:d.createElement("div",{className:`${h}-mask-info`},d.createElement(w3,null),p==null?void 0:p.preview),icons:GKe},F),{rootClassName:we(b,_),getContainer:T??u,transitionName:Cu(g,"zoom",O.transitionName),maskTransitionName:Cu(g,"fade",O.maskTransitionName),zIndex:w,closeIcon:M??((R=f==null?void 0:f.preview)===null||R===void 0?void 0:R.closeIcon)})},[r,p,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),E=Object.assign(Object.assign({},f==null?void 0:f.style),s);return v(d.createElement(BV,Object.assign({prefixCls:h,preview:x,rootClassName:b,className:S,style:E},a)))};uB.PreviewGroup=tUt;function nUt(e,t,n){return typeof n=="boolean"?n:e.length?!0:Rs(t).some(i=>i.type===IUe)}var WKe=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 HV(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>d.forwardRef((s,a)=>d.createElement(i,Object.assign({ref:a,suffixCls:t,tagName:n},s)))}const Zpe=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,s=WKe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:a}=d.useContext(vn),l=a("layout",n),[c,u,f]=TUe(l),h=r?`${l}-${r}`:l;return c(d.createElement(o,Object.assign({className:we(n||h,i,u,f),ref:t},s)))}),rUt=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(vn),[r,i]=d.useState([]),{prefixCls:o,className:s,rootClassName:a,children:l,hasSider:c,tagName:u,style:f}=e,h=WKe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=$i(h,["suffixCls"]),{getPrefixCls:p,layout:m}=d.useContext(vn),v=p("layout",o),C=nUt(r,l,c),[y,b,S]=TUe(v),w=we(v,{[`${v}-has-sider`]:C,[`${v}-rtl`]:n==="rtl"},m==null?void 0:m.className,s,a,b,S),x=d.useMemo(()=>({siderHook:{addSider:E=>{i(R=>[].concat(ut(R),[E]))},removeSider:E=>{i(R=>R.filter(O=>O!==E))}}}),[]);return y(d.createElement(RUe.Provider,{value:x},d.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},m==null?void 0:m.style),f)},g),l)))}),iUt=HV({tagName:"div",displayName:"Layout"})(rUt),oUt=HV({suffixCls:"header",tagName:"header",displayName:"Header"})(Zpe),sUt=HV({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Zpe),aUt=HV({suffixCls:"content",tagName:"main",displayName:"Content"})(Zpe),Mm=iUt;Mm.Header=oUt;Mm.Footer=sUt;Mm.Content=aUt;Mm.Sider=IUe;Mm._InternalSiderContext=EV;var lUt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},cUt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lUt}))},xle=d.forwardRef(cUt),uUt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},dUt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:uUt}))},Ele=d.forwardRef(dUt),fUt={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},hUt=[10,20,50,100],gUt=function(t){var n=t.pageSizeOptions,r=n===void 0?hUt:n,i=t.locale,o=t.changeSize,s=t.pageSize,a=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,h=t.showSizeChanger,g=t.sizeChangerRender,p=ce.useState(""),m=Ce(p,2),v=m[0],C=m[1],y=function(){return!v||Number.isNaN(v)?void 0:Number(v)},b=typeof f=="function"?f:function(_){return"".concat(_," ").concat(i.items_per_page)},S=function(F){C(F.target.value)},w=function(F){a||v===""||(C(""),!(F.relatedTarget&&(F.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||F.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(y())))},x=function(F){v!==""&&(F.keyCode===lt.ENTER||F.type==="click")&&(C(""),l==null||l(y()))},E=function(){return r.some(function(F){return F.toString()===s.toString()})?r:r.concat([s]).sort(function(F,D){var k=Number.isNaN(Number(F))?0:Number(F),L=Number.isNaN(Number(D))?0:Number(D);return k-L})},R="".concat(c,"-options");if(!h&&!l)return null;var O=null,T=null,M=null;return h&&g&&(O=g({disabled:u,size:s,onSizeChange:function(F){o==null||o(Number(F))},"aria-label":i.page_size,className:"".concat(R,"-size-changer"),options:E().map(function(_){return{label:b(_),value:_}})})),l&&(a&&(M=typeof a=="boolean"?ce.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:u,className:"".concat(R,"-quick-jumper-button")},i.jump_to_confirm):ce.createElement("span",{onClick:x,onKeyUp:x},a)),T=ce.createElement("div",{className:"".concat(R,"-quick-jumper")},i.jump_to,ce.createElement("input",{disabled:u,type:"text",value:v,onChange:S,onKeyUp:x,onBlur:w,"aria-label":i.page}),i.page,M)),ce.createElement("li",{className:R},O,T)},tR=function(t){var n,r=t.rootPrefixCls,i=t.page,o=t.active,s=t.className,a=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),h=we(f,"".concat(f,"-").concat(i),(n={},ie(n,"".concat(f,"-active"),o),ie(n,"".concat(f,"-disabled"),!i),n),s),g=function(){l(i)},p=function(C){c(C,l,i)},m=u(i,"page",ce.createElement("a",{rel:"nofollow"},i));return m?ce.createElement("li",{title:a?String(i):null,className:h,onClick:g,onKeyDown:p,tabIndex:0},m):null},pUt=function(t,n,r){return r};function j7e(){}function V7e(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function R6(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var UKe=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,o=t.selectPrefixCls,s=o===void 0?"rc-select":o,a=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,h=f===void 0?0:f,g=t.pageSize,p=t.defaultPageSize,m=p===void 0?10:p,v=t.onChange,C=v===void 0?j7e:v,y=t.hideOnSinglePage,b=t.align,S=t.showPrevNextJumpers,w=S===void 0?!0:S,x=t.showQuickJumper,E=t.showLessItems,R=t.showTitle,O=R===void 0?!0:R,T=t.onShowSizeChange,M=T===void 0?j7e:T,_=t.locale,F=_===void 0?fUt:_,D=t.style,k=t.totalBoundaryShowSizeChanger,L=k===void 0?50:k,I=t.disabled,A=t.simple,N=t.showTotal,B=t.showSizeChanger,z=B===void 0?h>L:B,j=t.sizeChangerRender,W=t.pageSizeOptions,G=t.itemRender,K=G===void 0?pUt:G,q=t.jumpPrevIcon,X=t.jumpNextIcon,Q=t.prevIcon,te=t.nextIcon,ne=ce.useRef(null),Z=ir(10,{value:g,defaultValue:m}),ee=Ce(Z,2),J=ee[0],oe=ee[1],le=ir(1,{value:l,defaultValue:u,postState:function(sn){return Math.max(1,Math.min(sn,R6(void 0,J,h)))}}),ge=Ce(le,2),he=ge[0],ye=ge[1],ue=ce.useState(he),ve=Ce(ue,2),de=ve[0],xe=ve[1];d.useEffect(function(){xe(he)},[he]);var Ee=Math.max(1,he-(E?3:5)),De=Math.min(R6(void 0,J,h),he+(E?3:5));function Be(Dt,sn){var Sn=Dt||ce.createElement("button",{type:"button","aria-label":sn,className:"".concat(i,"-item-link")});return typeof Dt=="function"&&(Sn=ce.createElement(Dt,se({},t))),Sn}function Ge(Dt){var sn=Dt.target.value,Sn=R6(void 0,J,h),Tn;return sn===""?Tn=sn:Number.isNaN(Number(sn))?Tn=de:sn>=Sn?Tn=Sn:Tn=Number(sn),Tn}function Ue(Dt){return V7e(Dt)&&Dt!==he&&V7e(h)&&h>0}var We=h>J?x:!1;function Ve(Dt){(Dt.keyCode===lt.UP||Dt.keyCode===lt.DOWN)&&Dt.preventDefault()}function Fe(Dt){var sn=Ge(Dt);switch(sn!==de&&xe(sn),Dt.keyCode){case lt.ENTER:ze(sn);break;case lt.UP:ze(sn-1);break;case lt.DOWN:ze(sn+1);break}}function ke(Dt){ze(Ge(Dt))}function Ye(Dt){var sn=R6(Dt,J,h),Sn=he>sn&&sn!==0?sn:he;oe(Dt),xe(Sn),M==null||M(he,Dt),ye(Sn),C==null||C(Sn,Dt)}function ze(Dt){if(Ue(Dt)&&!I){var sn=R6(void 0,J,h),Sn=Dt;return Dt>sn?Sn=sn:Dt<1&&(Sn=1),Sn!==de&&xe(Sn),ye(Sn),C==null||C(Sn,J),Sn}return he}var Re=he>1,Le=he<R6(void 0,J,h);function Me(){Re&&ze(he-1)}function be(){Le&&ze(he+1)}function je(){ze(Ee)}function Xe(){ze(De)}function ft(Dt,sn){if(Dt.key==="Enter"||Dt.charCode===lt.ENTER||Dt.keyCode===lt.ENTER){for(var Sn=arguments.length,Tn=new Array(Sn>2?Sn-2:0),Jn=2;Jn<Sn;Jn++)Tn[Jn-2]=arguments[Jn];sn.apply(void 0,Tn)}}function Tt(Dt){ft(Dt,Me)}function tt(Dt){ft(Dt,be)}function pt(Dt){ft(Dt,je)}function $t(Dt){ft(Dt,Xe)}function wt(Dt){var sn=K(Dt,"prev",Be(Q,"prev page"));return ce.isValidElement(sn)?ce.cloneElement(sn,{disabled:!Re}):sn}function It(Dt){var sn=K(Dt,"next",Be(te,"next page"));return ce.isValidElement(sn)?ce.cloneElement(sn,{disabled:!Le}):sn}function Ct(Dt){(Dt.type==="click"||Dt.keyCode===lt.ENTER)&&ze(de)}var ot=null,nt=$o(t,{aria:!0,data:!0}),fe=N&&ce.createElement("li",{className:"".concat(i,"-total-text")},N(h,[h===0?0:(he-1)*J+1,he*J>h?h:he*J])),Te=null,$e=R6(void 0,J,h);if(y&&h<=J)return null;var He=[],it={rootPrefixCls:i,onClick:ze,onKeyPress:ft,showTitle:O,itemRender:K,page:-1},at=he-1>0?he-1:0,gt=he+1<$e?he+1:$e,yt=x&&x.goButton,st=nn(A)==="object"?A.readOnly:!A,Ze=yt,dt=null;A&&(yt&&(typeof yt=="boolean"?Ze=ce.createElement("button",{type:"button",onClick:Ct,onKeyUp:Ct},F.jump_to_confirm):Ze=ce.createElement("span",{onClick:Ct,onKeyUp:Ct},yt),Ze=ce.createElement("li",{title:O?"".concat(F.jump_to).concat(he,"/").concat($e):null,className:"".concat(i,"-simple-pager")},Ze)),dt=ce.createElement("li",{title:O?"".concat(he,"/").concat($e):null,className:"".concat(i,"-simple-pager")},st?de:ce.createElement("input",{type:"text",value:de,disabled:I,onKeyDown:Ve,onKeyUp:Fe,onChange:Fe,onBlur:ke,size:3}),ce.createElement("span",{className:"".concat(i,"-slash")},"/"),$e));var At=E?1:2;if($e<=3+At*2){$e||He.push(ce.createElement(tR,V({},it,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var kt=1;kt<=$e;kt+=1)He.push(ce.createElement(tR,V({},it,{key:kt,page:kt,active:he===kt})))}else{var pn=E?F.prev_3:F.prev_5,ln=E?F.next_3:F.next_5,Lt=K(Ee,"jump-prev",Be(q,"prev page")),xt=K(De,"jump-next",Be(X,"next page"));w&&(ot=Lt?ce.createElement("li",{title:O?pn:null,key:"prev",onClick:je,tabIndex:0,onKeyDown:pt,className:we("".concat(i,"-jump-prev"),ie({},"".concat(i,"-jump-prev-custom-icon"),!!q))},Lt):null,Te=xt?ce.createElement("li",{title:O?ln:null,key:"next",onClick:Xe,tabIndex:0,onKeyDown:$t,className:we("".concat(i,"-jump-next"),ie({},"".concat(i,"-jump-next-custom-icon"),!!X))},xt):null);var Rt=Math.max(1,he-At),Ft=Math.min(he+At,$e);he-1<=At&&(Ft=1+At*2),$e-he<=At&&(Rt=$e-At*2);for(var hn=Rt;hn<=Ft;hn+=1)He.push(ce.createElement(tR,V({},it,{key:hn,page:hn,active:he===hn})));if(he-1>=At*2&&he!==3&&(He[0]=ce.cloneElement(He[0],{className:we("".concat(i,"-item-after-jump-prev"),He[0].props.className)}),He.unshift(ot)),$e-he>=At*2&&he!==$e-2){var Mt=He[He.length-1];He[He.length-1]=ce.cloneElement(Mt,{className:we("".concat(i,"-item-before-jump-next"),Mt.props.className)}),He.push(Te)}Rt!==1&&He.unshift(ce.createElement(tR,V({},it,{key:1,page:1}))),Ft!==$e&&He.push(ce.createElement(tR,V({},it,{key:$e,page:$e})))}var mt=wt(at);if(mt){var jt=!Re||!$e;mt=ce.createElement("li",{title:O?F.prev_page:null,onClick:Me,tabIndex:jt?null:0,onKeyDown:Tt,className:we("".concat(i,"-prev"),ie({},"".concat(i,"-disabled"),jt)),"aria-disabled":jt},mt)}var tn=It(gt);if(tn){var Cn,Ln;A?(Cn=!Le,Ln=Re?0:null):(Cn=!Le||!$e,Ln=Cn?null:0),tn=ce.createElement("li",{title:O?F.next_page:null,onClick:be,tabIndex:Ln,onKeyDown:tt,className:we("".concat(i,"-next"),ie({},"".concat(i,"-disabled"),Cn)),"aria-disabled":Cn},tn)}var cn=we(i,a,(n={},ie(n,"".concat(i,"-start"),b==="start"),ie(n,"".concat(i,"-center"),b==="center"),ie(n,"".concat(i,"-end"),b==="end"),ie(n,"".concat(i,"-simple"),A),ie(n,"".concat(i,"-disabled"),I),n));return ce.createElement("ul",V({className:cn,style:D,ref:ne},nt),fe,mt,A?dt:He,tn,ce.createElement(gUt,{locale:F,rootPrefixCls:i,disabled:I,selectPrefixCls:s,changeSize:Ye,pageSize:J,pageSizeOptions:W,quickGo:We?ze:null,goButton:Ze,showSizeChanger:z,sizeChangerRender:j}))};const mUt=Object.freeze(Object.defineProperty({__proto__:null,default:UKe},Symbol.toStringTag,{value:"Module"})),vUt=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},CUt=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Ne(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ne(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Ne(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
||
&${t}-mini ${t}-prev ${t}-item-link,
|
||
&${t}-mini ${t}-next ${t}-item-link
|
||
`]:{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{[`
|
||
&${t}-simple ${t}-prev,
|
||
&${t}-simple ${t}-next
|
||
`]:{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}}},[`
|
||
${t}-prev,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{marginInlineEnd:e.marginXS},[`
|
||
${t}-prev,
|
||
${t}-next,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{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.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},AV(e)),KKe=e=>yr(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},_V(e)),EUt=Yr("Pagination",e=>{const t=KKe(e);return[wUt(t),xUt(t)]},qKe),RUt=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},$Ut=Hx(["Pagination","bordered"],e=>{const t=KKe(e);return[RUt(t)]},qKe);function G7e(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var OUt=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 YKe=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:o,style:s,size:a,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:h}=e,g=OUt(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:p}=tUe(c),[,m]=za(),{getPrefixCls:v,direction:C,pagination:y={}}=d.useContext(vn),b=v("pagination",n),[S,w,x]=EUt(b),E=fl(a),R=E==="small"||!!(p&&!E&&c),[O]=ih("Pagination",kVe),T=Object.assign(Object.assign({},O),l),[M,_]=G7e(u),[F,D]=G7e(y.showSizeChanger),k=M??F,L=_??D,I=f||Qf,A=d.useMemo(()=>h?h.map(G=>Number(G)):void 0,[h]),N=G=>{var K;const{disabled:q,size:X,onSizeChange:Q,"aria-label":te,className:ne,options:Z}=G,{className:ee,onChange:J}=L||{},oe=(K=Z.find(le=>String(le.value)===String(X)))===null||K===void 0?void 0:K.value;return d.createElement(I,Object.assign({disabled:q,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:le=>le.parentNode,"aria-label":te,options:Z},L,{value:oe,onChange:(le,ge)=>{Q==null||Q(le),J==null||J(le,ge)},size:R?"small":"middle",className:we(ne,ee)}))},B=d.useMemo(()=>{const G=d.createElement("span",{className:`${b}-item-ellipsis`},"•••"),K=d.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},C==="rtl"?d.createElement(Xf,null):d.createElement(L0,null)),q=d.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},C==="rtl"?d.createElement(L0,null):d.createElement(Xf,null)),X=d.createElement("a",{className:`${b}-item-link`},d.createElement("div",{className:`${b}-item-container`},C==="rtl"?d.createElement(Ele,{className:`${b}-item-link-icon`}):d.createElement(xle,{className:`${b}-item-link-icon`}),G)),Q=d.createElement("a",{className:`${b}-item-link`},d.createElement("div",{className:`${b}-item-container`},C==="rtl"?d.createElement(xle,{className:`${b}-item-link-icon`}):d.createElement(Ele,{className:`${b}-item-link-icon`}),G));return{prevIcon:K,nextIcon:q,jumpPrevIcon:X,jumpNextIcon:Q}},[C,b]),z=v("select",r),j=we({[`${b}-${t}`]:!!t,[`${b}-mini`]:R,[`${b}-rtl`]:C==="rtl",[`${b}-bordered`]:m.wireframe},y==null?void 0:y.className,i,o,w,x),W=Object.assign(Object.assign({},y==null?void 0:y.style),s);return S(d.createElement(d.Fragment,null,m.wireframe&&d.createElement($Ut,{prefixCls:b}),d.createElement(UKe,Object.assign({},B,g,{style:W,prefixCls:b,selectPrefixCls:z,className:j,locale:T,pageSizeOptions:A,showSizeChanger:k,sizeChangerRender:N}))))},dB=100,XKe=dB/5,QKe=dB/2-XKe/2,hte=QKe*2*Math.PI,W7e=50,U7e=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:we(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:QKe,cx:W7e,cy:W7e,strokeWidth:XKe,style:n})},TUt=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,o=`${i}-hidden`,[s,a]=d.useState(!1);Zn(()=>{t!==0&&a(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!s)return null;const c={strokeDashoffset:`${hte/4}`,strokeDasharray:`${hte*l/100} ${hte*(100-l)/100}`};return d.createElement("span",{className:we(i,`${r}-progress`,l<=0&&o)},d.createElement("svg",{viewBox:`0 0 ${dB} ${dB}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},d.createElement(U7e,{dotClassName:r,hasCircleCls:!0}),d.createElement(U7e,{dotClassName:r,style:c})))};function IUt(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:we(i,n>0&&o)},d.createElement("span",{className:we(r,`${t}-dot-spin`)},[1,2,3,4].map(s=>d.createElement("i",{className:`${t}-dot-item`,key:s})))),d.createElement(TUt,{prefixCls:t,percent:n}))}function MUt(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&d.isValidElement(n)?js(n,{className:we(n.props.className,i),percent:r}):d.createElement(IUt,{prefixCls:t,percent:r})}const PUt=new Pr("antSpinMove",{to:{opacity:1}}),_Ut=new Pr("antRotate",{to:{transform:"rotate(405deg)"}}),AUt=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ii(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:PUt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:_Ut,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},DUt=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},LUt=Yr("Spin",e=>{const t=yr(e,{spinDotDefault:e.colorTextDescription});return[AUt(t)]},DUt),FUt=200,q7e=[[30,.05],[70,.03],[96,.01]];function NUt(e,t){const[n,r]=d.useState(0),i=d.useRef(null),o=t==="auto";return d.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(s=>{const a=100-s;for(let l=0;l<q7e.length;l+=1){const[c,u]=q7e[l];if(s<=c)return s+a*u}return s})},FUt)),()=>{clearInterval(i.current)}),[o,e]),o?n:t}var kUt=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 ZKe;function zUt(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const iv=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:o,rootClassName:s,size:a="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:h=!1,indicator:g,percent:p}=e,m=kUt(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:C,spin:y}=d.useContext(vn),b=v("spin",n),[S,w,x]=LUt(b),[E,R]=d.useState(()=>r&&!zUt(r,i)),O=NUt(E,p);d.useEffect(()=>{if(r){const L=kpe(i,()=>{R(!0)});return L(),()=>{var I;(I=L==null?void 0:L.cancel)===null||I===void 0||I.call(L)}}R(!1)},[i,r]);const T=d.useMemo(()=>typeof f<"u"&&!h,[f,h]),M=we(b,y==null?void 0:y.className,{[`${b}-sm`]:a==="small",[`${b}-lg`]:a==="large",[`${b}-spinning`]:E,[`${b}-show-text`]:!!l,[`${b}-rtl`]:C==="rtl"},o,!h&&s,w,x),_=we(`${b}-container`,{[`${b}-blur`]:E}),F=(t=g??(y==null?void 0:y.indicator))!==null&&t!==void 0?t:ZKe,D=Object.assign(Object.assign({},y==null?void 0:y.style),u),k=d.createElement("div",Object.assign({},m,{style:D,className:M,"aria-live":"polite","aria-busy":E}),d.createElement(MUt,{prefixCls:b,indicator:F,percent:O}),l&&(T||h)?d.createElement("div",{className:`${b}-text`},l):null);return S(T?d.createElement("div",Object.assign({},m,{className:we(`${b}-nested-loading`,c,w,x)}),E&&d.createElement("div",{key:"loading"},k),d.createElement("div",{className:_,key:"container"},f)):h?d.createElement("div",{className:we(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:E},s,w,x)},k):k)};iv.setDefaultIndicator=e=>{ZKe=e};function BUt(){var e=d.useState({id:0,callback:null}),t=Ce(e,2),n=t[0],r=t[1],i=d.useCallback(function(o){r(function(s){var a=s.id;return{id:a+1,callback:o}})},[]);return d.useEffect(function(){var o;(o=n.callback)===null||o===void 0||o.call(n)},[n]),i}var JKe=d.createContext(null);function HUt(e){var t=d.useContext(JKe),n=t.notFoundContent,r=t.activeIndex,i=t.setActiveIndex,o=t.selectOption,s=t.onFocus,a=t.onBlur,l=t.onScroll,c=e.prefixCls,u=e.options,f=u[r]||{};return d.createElement(b3,{prefixCls:"".concat(c,"-menu"),activeKey:f.key,onSelect:function(g){var p=g.key,m=u.find(function(v){var C=v.key;return C===p});o(m)},onFocus:s,onBlur:a,onScroll:l},u.map(function(h,g){var p=h.key,m=h.disabled,v=h.className,C=h.style,y=h.label;return d.createElement(D0,{key:p,disabled:m,className:v,style:C,onMouseEnter:function(){i(g)}},y)}),!u.length&&d.createElement(D0,{disabled:!0},n))}var jUt={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},VUt=function(t){var n=t.prefixCls,r=t.options,i=t.children,o=t.visible,s=t.transitionName,a=t.getPopupContainer,l=t.dropdownClassName,c=t.direction,u=t.placement,f="".concat(n,"-dropdown"),h=d.createElement(HUt,{prefixCls:f,options:r}),g=d.useMemo(function(){var p;return c==="rtl"?p=u==="top"?"topLeft":"bottomLeft":p=u==="top"?"topRight":"bottomRight",p},[c,u]);return d.createElement(Ny,{prefixCls:f,popupVisible:o,popup:h,popupPlacement:g,popupTransitionName:s,builtinPlacements:jUt,getPopupContainer:a,popupClassName:l},i)},GUt=function(){return null};function WUt(e){var t=e.selectionStart;return e.value.slice(0,t)}function UUt(e,t){return t.reduce(function(n,r){var i=e.lastIndexOf(r);return i>n.location?{location:i,prefix:r}:n},{location:-1,prefix:""})}function K7e(e){return(e||"").toLowerCase()}function qUt(e,t,n){var r=e[0];if(!r||r===n)return e;for(var i=e,o=t.length,s=0;s<o;s+=1)if(K7e(i[s])!==K7e(t[s])){i=i.slice(s);break}else s===o-1&&(i=i.slice(o));return i}function KUt(e,t){var n=t.measureLocation,r=t.prefix,i=t.targetText,o=t.selectionStart,s=t.split,a=e.slice(0,n);a[a.length-s.length]===s&&(a=a.slice(0,a.length-s.length)),a&&(a="".concat(a).concat(s));var l=qUt(e.slice(o),i.slice(o-n-r.length),s);l.slice(0,s.length)===s&&(l=l.slice(s.length));var c="".concat(a).concat(r).concat(i).concat(s);return{text:"".concat(c).concat(l),selectionLocation:c.length}}function YUt(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}function XUt(e,t){return!t||e.indexOf(t)===-1}function QUt(e,t){var n=t.value,r=n===void 0?"":n,i=e.toLowerCase();return r.toLowerCase().indexOf(i)!==-1}var ZUt=["prefixCls","className","style","prefix","split","notFoundContent","value","defaultValue","children","options","open","allowClear","silent","validateSearch","filterOption","onChange","onKeyDown","onKeyUp","onPressEnter","onSearch","onSelect","onFocus","onBlur","transitionName","placement","direction","getPopupContainer","dropdownClassName","rows","visible","onPopupScroll"],JUt=["suffix","prefixCls","defaultValue","value","allowClear","onChange","classNames","className","disabled","onClear"],eqt=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.prefix,s=o===void 0?"@":o,a=e.split,l=a===void 0?" ":a,c=e.notFoundContent,u=c===void 0?"Not Found":c,f=e.value,h=e.defaultValue,g=e.children,p=e.options,m=e.open;e.allowClear;var v=e.silent,C=e.validateSearch,y=C===void 0?XUt:C,b=e.filterOption,S=b===void 0?QUt:b,w=e.onChange,x=e.onKeyDown,E=e.onKeyUp,R=e.onPressEnter,O=e.onSearch,T=e.onSelect,M=e.onFocus,_=e.onBlur,F=e.transitionName,D=e.placement,k=e.direction,L=e.getPopupContainer,I=e.dropdownClassName,A=e.rows,N=A===void 0?1:A;e.visible;var B=e.onPopupScroll,z=on(e,ZUt),j=d.useMemo(function(){return Array.isArray(s)?s:[s]},[s]),W=d.useRef(null),G=d.useRef(null),K=d.useRef(null),q=function(){var Ze;return(Ze=G.current)===null||Ze===void 0||(Ze=Ze.resizableTextArea)===null||Ze===void 0?void 0:Ze.textArea};ce.useImperativeHandle(t,function(){var st;return{focus:function(){var dt;return(dt=G.current)===null||dt===void 0?void 0:dt.focus()},blur:function(){var dt;return(dt=G.current)===null||dt===void 0?void 0:dt.blur()},textarea:(st=G.current)===null||st===void 0||(st=st.resizableTextArea)===null||st===void 0?void 0:st.textArea,nativeElement:W.current}});var X=d.useState(!1),Q=Ce(X,2),te=Q[0],ne=Q[1],Z=d.useState(""),ee=Ce(Z,2),J=ee[0],oe=ee[1],le=d.useState(""),ge=Ce(le,2),he=ge[0],ye=ge[1],ue=d.useState(0),ve=Ce(ue,2),de=ve[0],xe=ve[1],Ee=d.useState(0),De=Ce(Ee,2),Be=De[0],Ge=De[1],Ue=d.useState(!1),We=Ce(Ue,2),Ve=We[0],Fe=We[1],ke=ir("",{defaultValue:h,value:f}),Ye=Ce(ke,2),ze=Ye[0],Re=Ye[1];d.useEffect(function(){te&&K.current&&(K.current.scrollTop=q().scrollTop)},[te]);var Le=ce.useMemo(function(){if(m)for(var st=0;st<j.length;st+=1){var Ze=j[st],dt=ze.lastIndexOf(Ze);if(dt>=0)return[!0,"",Ze,dt]}return[te,J,he,de]},[m,te,j,ze,J,he,de]),Me=Ce(Le,4),be=Me[0],je=Me[1],Xe=Me[2],ft=Me[3],Tt=ce.useCallback(function(st){var Ze;return p&&p.length>0?Ze=p.map(function(dt){var At;return se(se({},dt),{},{key:(At=dt==null?void 0:dt.key)!==null&&At!==void 0?At:dt.value})}):Ze=Rs(g).map(function(dt){var At=dt.props,kt=dt.key;return se(se({},At),{},{label:At.children,key:kt||At.value})}),Ze.filter(function(dt){return S===!1?!0:S(st,dt)})},[g,p,S]),tt=ce.useMemo(function(){return Tt(je)},[Tt,je]),pt=BUt(),$t=function(Ze,dt,At){ne(!0),oe(Ze),ye(dt),xe(At),Ge(0)},wt=function(Ze){ne(!1),xe(0),oe(""),pt(Ze)},It=function(Ze){Re(Ze),w==null||w(Ze)},Ct=function(Ze){var dt=Ze.target.value;It(dt)},ot=function(Ze){var dt,At=Ze.value,kt=At===void 0?"":At,pn=KUt(ze,{measureLocation:ft,targetText:kt,prefix:Xe,selectionStart:(dt=q())===null||dt===void 0?void 0:dt.selectionStart,split:l}),ln=pn.text,Lt=pn.selectionLocation;It(ln),wt(function(){YUt(q(),Lt)}),T==null||T(Ze,Xe)},nt=function(Ze){var dt=Ze.which;if(x==null||x(Ze),!!be){if(dt===lt.UP||dt===lt.DOWN){var At=tt.length,kt=dt===lt.UP?-1:1,pn=(Be+kt+At)%At;Ge(pn),Ze.preventDefault()}else if(dt===lt.ESC)wt();else if(dt===lt.ENTER){if(Ze.preventDefault(),v)return;if(!tt.length){wt();return}var ln=tt[Be];ot(ln)}}},fe=function(Ze){var dt=Ze.key,At=Ze.which,kt=Ze.target,pn=WUt(kt),ln=UUt(pn,j),Lt=ln.location,xt=ln.prefix;if(E==null||E(Ze),[lt.ESC,lt.UP,lt.DOWN,lt.ENTER].indexOf(At)===-1)if(Lt!==-1){var Rt=pn.slice(Lt+xt.length),Ft=y(Rt,l),hn=!!Tt(Rt).length;Ft?(dt===xt||dt==="Shift"||At===lt.ALT||dt==="AltGraph"||be||Rt!==je&&hn)&&$t(Rt,xt,Lt):be&&wt(),O&&Ft&&O(Rt,xt)}else be&&wt()},Te=function(Ze){!be&&R&&R(Ze)},$e=d.useRef(),He=function(Ze){window.clearTimeout($e.current),!Ve&&Ze&&M&&M(Ze),Fe(!0)},it=function(Ze){$e.current=window.setTimeout(function(){Fe(!1),wt(),_==null||_(Ze)},0)},at=function(){He()},gt=function(){it()},yt=function(Ze){B==null||B(Ze)};return ce.createElement("div",{className:we(n,r),style:i,ref:W},ce.createElement(Kpe,V({ref:G,value:ze},z,{rows:N,onChange:Ct,onKeyDown:nt,onKeyUp:fe,onPressEnter:Te,onFocus:He,onBlur:it})),be&&ce.createElement("div",{ref:K,className:"".concat(n,"-measure")},ze.slice(0,ft),ce.createElement(JKe.Provider,{value:{notFoundContent:u,activeIndex:Be,setActiveIndex:Ge,selectOption:ot,onFocus:at,onBlur:gt,onScroll:yt}},ce.createElement(VUt,{prefixCls:n,transitionName:F,placement:D,direction:k,options:tt,visible:!0,getPopupContainer:L,dropdownClassName:I},ce.createElement("span",null,Xe))),ze.slice(ft+Xe.length)))}),eYe=d.forwardRef(function(e,t){var n=e.suffix,r=e.prefixCls,i=r===void 0?"rc-mentions":r,o=e.defaultValue,s=e.value,a=e.allowClear,l=e.onChange,c=e.classNames,u=e.className,f=e.disabled,h=e.onClear,g=on(e,JUt),p=d.useRef(null),m=d.useRef(null);d.useImperativeHandle(t,function(){var x,E;return se(se({},m.current),{},{nativeElement:((x=p.current)===null||x===void 0?void 0:x.nativeElement)||((E=m.current)===null||E===void 0?void 0:E.nativeElement)})});var v=ir("",{defaultValue:o,value:s}),C=Ce(v,2),y=C[0],b=C[1],S=function(E){b(E),l==null||l(E)},w=function(){S("")};return ce.createElement(cM,{suffix:n,prefixCls:i,value:y,allowClear:a,handleReset:w,className:u,classNames:c,disabled:f,ref:p,onClear:h},ce.createElement(eqt,V({className:c==null?void 0:c.mentions,prefixCls:i,ref:m,onChange:S,disabled:f},g)))});eYe.Option=GUt;const tqt=Object.freeze(Object.defineProperty({__proto__:null,default:eYe},Symbol.toStringTag,{value:"Module"}));function nqt(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let mf=null,_8=e=>e(),LT=[],FT={};function Y7e(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=FT,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const rqt=ce.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=d.useContext(vn),o=FT.prefixCls||i("message"),s=d.useContext(Jae),[a,l]=PGe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),s.message));return ce.useImperativeHandle(t,()=>{const c=Object.assign({},a);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),a[u].apply(a,arguments)}}),{instance:c,sync:r}}),l}),iqt=ce.forwardRef((e,t)=>{const[n,r]=ce.useState(Y7e),i=()=>{r(Y7e)};ce.useEffect(i,[]);const o=vGe(),s=o.getRootPrefixCls(),a=o.getIconPrefixCls(),l=o.getTheme(),c=ce.createElement(rqt,{ref:t,sync:i,messageConfig:n});return ce.createElement(Wg,{prefixCls:s,iconPrefixCls:a,theme:l},o.holderRender?o.holderRender(c):c)});function jV(){if(!mf){const e=document.createDocumentFragment(),t={fragment:e};mf=t,_8(()=>{epe()(ce.createElement(iqt,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,jV())})}}),e)});return}mf.instance&&(LT.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{_8(()=>{const r=mf.instance.open(Object.assign(Object.assign({},FT),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":_8(()=>{mf==null||mf.instance.destroy(e.key)});break;default:_8(()=>{var r;const i=(r=mf.instance)[t].apply(r,ut(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),LT=[])}function oqt(e){FT=Object.assign(Object.assign({},FT),e),_8(()=>{var t;(t=mf==null?void 0:mf.sync)===null||t===void 0||t.call(mf)})}function sqt(e){const t=Jge(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return LT.push(i),()=>{r?_8(()=>{r()}):i.skipped=!0}});return jV(),t}function aqt(e,t){const n=Jge(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:s=>{i=s}};return LT.push(o),()=>{i?_8(()=>{i()}):o.skipped=!0}});return jV(),n}const lqt=e=>{LT.push({type:"destroy",key:e}),jV()},cqt=["success","info","warning","error","loading"],uqt={open:sqt,destroy:lqt,config:oqt,useMessage:_Ge,_InternalPanelDoNotUseOrYouWillBeFired:HIt},li=uqt;cqt.forEach(e=>{li[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aqt(e,n)}});var dqt=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 fqt=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:s,children:a,footer:l}=e,c=dqt(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(vn),f=u(),h=t||u("modal"),g=Oo(f),[p,m,v]=mWe(h,g),C=`${h}-confirm`;let y={};return o?y={closable:i??!1,title:"",footer:"",children:d.createElement(CWe,Object.assign({},e,{prefixCls:h,confirmPrefixCls:C,rootPrefixCls:f,content:a}))}:y={closable:i??!0,title:s,footer:l!==null&&d.createElement(dWe,Object.assign({},e)),children:a},p(d.createElement(cpe,Object.assign({prefixCls:h,className:we(m,`${h}-pure-panel`,o&&C,o&&`${C}-${o}`,n,v,g)},c,{closeIcon:uWe(h,r),closable:i},y)))},hqt=PWe(fqt);function tYe(e){return tM(wWe(e))}const la=vWe;la.useModal=OWe;la.info=function(t){return tM(xWe(t))};la.success=function(t){return tM(EWe(t))};la.error=function(t){return tM(RWe(t))};la.warning=tYe;la.warn=tYe;la.confirm=function(t){return tM($We(t))};la.destroyAll=function(){for(;I8.length;){const t=I8.pop();t&&t()}};la.config=aDt;la._InternalPanelDoNotUseOrYouWillBeFired=hqt;var nYe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},rYe=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(o){if(o){i=!0;var s=o.style;s.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(s.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},gqt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],iYe=function(t){var n=se(se({},nYe),t),r=n.className,i=n.percent,o=n.prefixCls,s=n.strokeColor,a=n.strokeLinecap,l=n.strokeWidth,c=n.style,u=n.trailColor,f=n.trailWidth,h=n.transition,g=on(n,gqt);delete g.gapPosition;var p=Array.isArray(i)?i:[i],m=Array.isArray(s)?s:[s],v=rYe(),C=l/2,y=100-l/2,b="M ".concat(a==="round"?C:0,",").concat(C,`
|
||
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:"".concat(i,"-circle-path"),r:w,cx:y,cy:y,stroke:Q,strokeWidth:s,opacity:1,style:te,ref:function(Z){A[q]=Z}})})};return d.createElement("svg",V({className:we("".concat(i,"-circle"),p),viewBox:"0 0 ".concat(l$," ").concat(l$),style:g,id:r,role:"presentation"},C),!T&&d.createElement("circle",{className:"".concat(i,"-circle-trail"),r:w,cx:y,cy:y,stroke:f,strokeLinecap:L,strokeWidth:a||s,style:I}),T?B():N())};const bqt={Line:iYe,Circle:Jpe},Sqt=Object.freeze(Object.defineProperty({__proto__:null,Circle:Jpe,Line:iYe,default:bqt},Symbol.toStringTag,{value:"Module"}));function y4(e){return!e||e<0?0:e>100?100:e}function fB(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const wqt=e=>{let{percent:t,success:n,successPercent:r}=e;const i=y4(fB({success:n,successPercent:r}));return[i,y4(y4(t)-i)]},xqt=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||oC.green,n||null]},VV=(e,t,n)=>{var r,i,o,s;let a=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(a=e==="small"?2:14,l=u??8):typeof e=="number"?[a,l]=[e,e]:[a=14,l=8]=Array.isArray(e)?e:[e.width,e.height],a*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[a,l]=[e,e]:[a=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[a,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,l]=[e,e]:Array.isArray(e)&&(a=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(s=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&s!==void 0?s:120));return[a,l]},Eqt=3,Rqt=e=>Eqt/e*100,$qt=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:s=120,type:a,children:l,success:c,size:u=s,steps:f}=e,[h,g]=VV(u,"circle");let{strokeWidth:p}=e;p===void 0&&(p=Math.max(Rqt(h),6));const m={width:h,height:g,fontSize:h*.15+6},v=d.useMemo(()=>{if(o||o===0)return o;if(a==="dashboard")return 75},[o,a]),C=wqt(e),y=i||a==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=xqt({success:c,strokeColor:e.strokeColor}),w=we(`${t}-inner`,{[`${t}-circle-gradient`]:b}),x=d.createElement(Jpe,{steps:f,percent:f?C[1]:C,strokeWidth:p,trailWidth:p,strokeColor:f?S[1]:S,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:y}),E=h<=20,R=d.createElement("div",{className:w,style:m},x,!E&&l);return E?d.createElement(Gm,{title:l},R):R},hB="--progress-line-stroke-color",oYe="--progress-percent",exe=e=>{const t=e?"100%":"-100%";return new Pr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Oqt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},ii(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${hB})`]},height:"100%",width:`calc(1 / var(${oYe}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Ne(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:exe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:exe(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Tqt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Iqt=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Mqt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Pqt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),_qt=Yr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=yr(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Oqt(n),Tqt(n),Iqt(n),Mqt(n)]},Pqt);var Aqt=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 Dqt=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},Lqt=(e,t)=>{const{from:n=oC.blue,to:r=oC.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=Aqt(e,["from","to","direction"]);if(Object.keys(o).length!==0){const a=Dqt(o),l=`linear-gradient(${i}, ${a})`;return{background:l,[hB]:l}}const s=`linear-gradient(${i}, ${n}, ${r})`;return{background:s,[hB]:s}},Fqt=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:s,strokeLinecap:a="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:h,type:g}=u,p=s&&typeof s!="string"?Lqt(s,n):{[hB]:s,background:s},m=a==="square"||a==="butt"?0:void 0,v=i??[-1,o||(i==="small"?6:8)],[C,y]=VV(v,"line",{strokeWidth:o}),b={backgroundColor:c||void 0,borderRadius:m},S=Object.assign(Object.assign({width:`${y4(r)}%`,height:y,borderRadius:m},p),{[oYe]:y4(r)/100}),w=fB(e),x={width:`${y4(w)}%`,height:y,borderRadius:m,backgroundColor:f==null?void 0:f.strokeColor},E={width:C<0?"100%":C},R=d.createElement("div",{className:`${t}-inner`,style:b},d.createElement("div",{className:we(`${t}-bg`,`${t}-bg-${g}`),style:S},g==="inner"&&l),w!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:x})),O=g==="outer"&&h==="start",T=g==="outer"&&h==="end";return g==="outer"&&h==="center"?d.createElement("div",{className:`${t}-layout-bottom`},R,l):d.createElement("div",{className:`${t}-outer`,style:E},O&&l,R,T&&l)},Nqt=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:s=null,prefixCls:a,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[h,g]=VV(f,"step",{steps:n,strokeWidth:i}),p=h/n,m=new Array(n);for(let v=0;v<n;v++){const C=Array.isArray(o)?o[v]:o;m[v]=d.createElement("div",{key:v,className:we(`${a}-steps-item`,{[`${a}-steps-item-active`]:v<=c-1}),style:{backgroundColor:v<=c-1?C:s,width:p,height:g}})}return d.createElement("div",{className:`${a}-steps-outer`},m,l)};var kqt=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 zqt=["normal","exception","active","success"],eme=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:s,percent:a=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:h,style:g,percentPosition:p={}}=e,m=kqt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:C="outer"}=p,y=Array.isArray(s)?s[0]:s,b=typeof s=="string"||Array.isArray(s)?s:void 0,S=d.useMemo(()=>{if(y){const N=typeof y=="string"?y:Object.values(y)[0];return new kr(N).isLight()}return!1},[s]),w=d.useMemo(()=>{var N,B;const z=fB(e);return parseInt(z!==void 0?(N=z??0)===null||N===void 0?void 0:N.toString():(B=a??0)===null||B===void 0?void 0:B.toString(),10)},[a,e.success,e.successPercent]),x=d.useMemo(()=>!zqt.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:E,direction:R,progress:O}=d.useContext(vn),T=E("progress",n),[M,_,F]=_qt(T),D=u==="line",k=D&&!o,L=d.useMemo(()=>{if(!c)return null;const N=fB(e);let B;const z=h||(W=>`${W}%`),j=D&&S&&C==="inner";return C==="inner"||h||x!=="exception"&&x!=="success"?B=z(y4(a),y4(N)):x==="exception"?B=D?d.createElement(nv,null):d.createElement(Ug,null):x==="success"&&(B=D?d.createElement(Ay,null):d.createElement(CV,null)),d.createElement("span",{className:we(`${T}-text`,{[`${T}-text-bright`]:j,[`${T}-text-${v}`]:k,[`${T}-text-${C}`]:k}),title:typeof B=="string"?B:void 0},B)},[c,a,w,x,u,T,h]);let I;u==="line"?I=o?d.createElement(Nqt,Object.assign({},e,{strokeColor:b,prefixCls:T,steps:typeof o=="object"?o.count:o}),L):d.createElement(Fqt,Object.assign({},e,{strokeColor:y,prefixCls:T,direction:R,percentPosition:{align:v,type:C}}),L):(u==="circle"||u==="dashboard")&&(I=d.createElement($qt,Object.assign({},e,{strokeColor:y,prefixCls:T,progressStatus:x}),L));const A=we(T,`${T}-status-${x}`,{[`${T}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${T}-inline-circle`]:u==="circle"&&VV(l,"circle")[0]<=20,[`${T}-line`]:k,[`${T}-line-align-${v}`]:k,[`${T}-line-position-${C}`]:k,[`${T}-steps`]:o,[`${T}-show-info`]:c,[`${T}-${l}`]:typeof l=="string",[`${T}-rtl`]:R==="rtl"},O==null?void 0:O.className,r,i,_,F);return M(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},O==null?void 0:O.style),g),className:A,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},$i(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),I))});function A8(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Bj(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,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.slice());this.drawFunctionPatterns();var c=this.addEccAndInterleave(r);if(this.drawCodewords(c),o==-1)for(var u=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var h=this.getPenaltyScore();h<u&&(o=f,u=h),this.applyMask(f)}Lu(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return Kr(e,[{key:"getModule",value:function(n,r){return 0<=n&&n<this.size&&0<=r&&r<this.size&&this.modules[r][n]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),i=r.length,o=0;o<i;o++)for(var s=0;s<i;s++)o==0&&s==0||o==0&&s==i-1||o==i-1&&s==0||this.drawAlignmentPattern(r[o],r[s]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(n){for(var r=this.errorCorrectionLevel.formatBits<<3|n,i=r,o=0;o<10;o++)i=i<<1^(i>>>9)*1335;var s=(r<<10|i)^21522;Lu(s>>>15==0);for(var a=0;a<=5;a++)this.setFunctionModule(8,a,w1(s,a));this.setFunctionModule(8,7,w1(s,6)),this.setFunctionModule(8,8,w1(s,7)),this.setFunctionModule(7,8,w1(s,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,w1(s,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,w1(s,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,w1(s,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var i=this.version<<12|n;Lu(i>>>18==0);for(var o=0;o<18;o++){var s=w1(i,o),a=this.size-11+o%3,l=Math.floor(o/3);this.setFunctionModule(a,l,s),this.setFunctionModule(l,a,s)}}}},{key:"drawFinderPattern",value:function(n,r){for(var i=-4;i<=4;i++)for(var o=-4;o<=4;o++){var s=Math.max(Math.abs(o),Math.abs(i)),a=n+o,l=r+i;0<=a&&a<this.size&&0<=l&&l<this.size&&this.setFunctionModule(a,l,s!=2&&s!=4)}}},{key:"drawAlignmentPattern",value:function(n,r){for(var i=-2;i<=2;i++)for(var o=-2;o<=2;o++)this.setFunctionModule(n+o,r+i,Math.max(Math.abs(o),Math.abs(i))!=1)}},{key:"setFunctionModule",value:function(n,r,i){this.modules[r][n]=i,this.isFunction[r][n]=!0}},{key:"addEccAndInterleave",value:function(n){var r=this.version,i=this.errorCorrectionLevel;if(n.length!=e.getNumDataCodewords(r,i))throw new RangeError("Invalid argument");for(var o=e.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][r],s=e.ECC_CODEWORDS_PER_BLOCK[i.ordinal][r],a=Math.floor(e.getNumRawDataModules(r)/8),l=o-a%o,c=Math.floor(a/o),u=[],f=e.reedSolomonComputeDivisor(s),h=0,g=0;h<o;h++){var p=n.slice(g,g+c-s+(h<l?0:1));g+=p.length;var m=e.reedSolomonComputeRemainder(p,f);h<l&&p.push(0),u.push(p.concat(m))}for(var v=[],C=function(S){u.forEach(function(w,x){(S!=c-s||x>=l)&&v.push(w[S])})},y=0;y<u[0].length;y++)C(y);return Lu(v.length==a),v}},{key:"drawCodewords",value:function(n){if(n.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,i=this.size-1;i>=1;i-=2){i==6&&(i=5);for(var o=0;o<this.size;o++)for(var s=0;s<2;s++){var a=i-s,l=(i+1&2)==0,c=l?this.size-1-o:o;!this.isFunction[c][a]&&r<n.length*8&&(this.modules[c][a]=w1(n[r>>>3],7-(r&7)),r++)}}Lu(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var i=0;i<this.size;i++){var o=void 0;switch(n){case 0:o=(i+r)%2==0;break;case 1:o=r%2==0;break;case 2:o=i%3==0;break;case 3:o=(i+r)%3==0;break;case 4:o=(Math.floor(i/3)+Math.floor(r/2))%2==0;break;case 5:o=i*r%2+i*r%3==0;break;case 6:o=(i*r%2+i*r%3)%2==0;break;case 7:o=((i+r)%2+i*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][i]&&o&&(this.modules[r][i]=!this.modules[r][i])}}},{key:"getPenaltyScore",value:function(){for(var n=0,r=0;r<this.size;r++){for(var i=!1,o=0,s=[0,0,0,0,0,0,0],a=0;a<this.size;a++)this.modules[r][a]==i?(o++,o==5?n+=e.PENALTY_N1:o>5&&n++):(this.finderPenaltyAddHistory(o,s),i||(n+=this.finderPenaltyCountPatterns(s)*e.PENALTY_N3),i=this.modules[r][a],o=1);n+=this.finderPenaltyTerminateAndCount(i,o,s)*e.PENALTY_N3}for(var l=0;l<this.size;l++){for(var c=!1,u=0,f=[0,0,0,0,0,0,0],h=0;h<this.size;h++)this.modules[h][l]==c?(u++,u==5?n+=e.PENALTY_N1:u>5&&n++):(this.finderPenaltyAddHistory(u,f),c||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),c=this.modules[h][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,f)*e.PENALTY_N3}for(var g=0;g<this.size-1;g++)for(var p=0;p<this.size-1;p++){var m=this.modules[g][p];m==this.modules[g][p+1]&&m==this.modules[g+1][p]&&m==this.modules[g+1][p+1]&&(n+=e.PENALTY_N2)}var v=0,C=A8(this.modules),y;try{for(C.s();!(y=C.n()).done;){var b=y.value;v=b.reduce(function(x,E){return x+(E?1:0)},v)}}catch(x){C.e(x)}finally{C.f()}var S=this.size*this.size,w=Math.ceil(Math.abs(v*20-S*10)/S)-1;return Lu(0<=w&&w<=9),n+=w*e.PENALTY_N4,Lu(0<=n&&n<=2568888),n}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var n=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(n*2-2))*2,i=[6],o=this.size-7;i.length<n;o-=r)i.splice(1,0,o);return i}},{key:"finderPenaltyCountPatterns",value:function(n){var r=n[1];Lu(r<=this.size*3);var i=r>0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(i&&n[0]>=r*4&&n[6]>=r?1:0)+(i&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,i){var o=r;return n&&(this.finderPenaltyAddHistory(o,i),o=0),o+=this.size,this.finderPenaltyAddHistory(o,i),this.finderPenaltyCountPatterns(i)}},{key:"finderPenaltyAddHistory",value:function(n,r){var i=n;r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}],[{key:"encodeText",value:function(n,r){var i=aC.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=aC.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=i&&i<=o&&o<=e.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");var l,c;for(l=i;;l++){var u=e.getNumDataCodewords(l,r)*8,f=aC.getTotalBits(n,l);if(f<=u){c=f;break}if(l>=o)throw new RangeError("Data too long")}for(var h=r,g=0,p=[Af.MEDIUM,Af.QUARTILE,Af.HIGH];g<p.length;g++){var m=p[g];a&&c<=e.getNumDataCodewords(l,m)*8&&(h=m)}var v=[],C=A8(n),y;try{for(C.s();!(y=C.n()).done;){var b=y.value;Qc(b.mode.modeBits,4,v),Qc(b.numChars,b.mode.numCharCountBits(l),v);var S=A8(b.getData()),w;try{for(S.s();!(w=S.n()).done;){var x=w.value;v.push(x)}}catch(T){S.e(T)}finally{S.f()}}}catch(T){C.e(T)}finally{C.f()}Lu(v.length==c);var E=e.getNumDataCodewords(l,h)*8;Lu(v.length<=E),Qc(0,Math.min(4,E-v.length),v),Qc(0,(8-v.length%8)%8,v),Lu(v.length%8==0);for(var R=236;v.length<E;R^=253)Qc(R,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(T,M){return O[M>>>3]|=T<<7-(M&7)}),new e(l,h,O,s)}},{key:"getNumRawDataModules",value:function(n){if(n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var i=Math.floor(n/7)+2;r-=(25*i-10)*i-55,n>=7&&(r-=36)}return Lu(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],i=0;i<n-1;i++)r.push(0);r.push(1);for(var o=1,s=0;s<n;s++){for(var a=0;a<r.length;a++)r[a]=e.reedSolomonMultiply(r[a],o),a+1<r.length&&(r[a]^=r[a+1]);o=e.reedSolomonMultiply(o,2)}return r}},{key:"reedSolomonComputeRemainder",value:function(n,r){var i=r.map(function(){return 0}),o=A8(n),s;try{var a=function(){var c=s.value,u=c^i.shift();i.push(0),r.forEach(function(f,h){return i[h]^=e.reedSolomonMultiply(f,u)})};for(o.s();!(s=o.n()).done;)a()}catch(l){o.e(l)}finally{o.f()}return i}},{key:"reedSolomonMultiply",value:function(n,r){if(n>>>8||r>>>8)throw new RangeError("Byte out of range");for(var i=0,o=7;o>=0;o--)i=i<<1^(i>>>7)*285,i^=(r>>>o&1)*n;return Lu(i>>>8==0),i}}]),e}();ie(ov,"MIN_VERSION",1);ie(ov,"MAX_VERSION",40);ie(ov,"PENALTY_N1",3);ie(ov,"PENALTY_N2",3);ie(ov,"PENALTY_N3",40);ie(ov,"PENALTY_N4",10);ie(ov,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);ie(ov,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var sYe={L:Af.LOW,M:Af.MEDIUM,Q:Af.QUARTILE,H:Af.HIGH},tme=128,nme="L",rme="#FFFFFF",ime="#000000",ome=!1,sme=1,aYe=4,lYe=0,cYe=.1;function ame(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,i){var o=null;r.forEach(function(s,a){if(!s&&o!==null){n.push("M".concat(o+t," ").concat(i+t,"h").concat(a-o,"v1H").concat(o+t,"z")),o=null;return}if(a===r.length-1){if(!s)return;o===null?n.push("M".concat(a+t,",").concat(i+t," h1v1H").concat(a+t,"z")):n.push("M".concat(o+t,",").concat(i+t," h").concat(a+1-o,"v1H").concat(o+t,"z"));return}s&&o===null&&(o=a)})}),n.join("")}function lme(e,t){return e.slice().map(function(n,r){return r<t.y||r>=t.y+t.h?n:n.map(function(i,o){return o<t.x||o>=t.x+t.w?i:!1})})}function uYe(e,t,n,r){if(r==null)return null;var i=e.length+n*2,o=Math.floor(t*cYe),s=i/t,a=(r.width||o)*s,l=(r.height||o)*s,c=r.x==null?e.length/2-a/2:r.x*s,u=r.y==null?e.length/2-l/2:r.y*s,f=r.opacity==null?1:r.opacity,h=null;if(r.excavate){var g=Math.floor(c),p=Math.floor(u),m=Math.ceil(a+c-g),v=Math.ceil(l+u-p);h={x:g,y:p,w:m,h:v}}var C=r.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:h,opacity:f,crossOrigin:C}}function dYe(e,t){return t!=null?Math.floor(t):e?aYe:lYe}var fYe=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function hYe(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,o=e.marginSize,s=e.imageSettings,a=e.size,l=d.useMemo(function(){var p=aC.makeSegments(t);return ov.encodeSegments(p,sYe[n],r)},[t,n,r]),c=d.useMemo(function(){var p=l.getModules(),m=dYe(i,o),v=p.length+m*2,C=uYe(p,a,m,s);return{cells:p,margin:m,numCells:v,calculatedImageSettings:C}},[l,a,s,i,o]),u=c.cells,f=c.margin,h=c.numCells,g=c.calculatedImageSettings;return{qrcode:l,margin:f,cells:u,numCells:h,calculatedImageSettings:g}}var Bqt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],gYe=ce.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?tme:i,s=t.level,a=s===void 0?nme:s,l=t.bgColor,c=l===void 0?rme:l,u=t.fgColor,f=u===void 0?ime:u,h=t.includeMargin,g=h===void 0?ome:h,p=t.minVersion,m=p===void 0?sme:p,v=t.marginSize,C=t.style,y=t.imageSettings,b=on(t,Bqt),S=y==null?void 0:y.src,w=d.useRef(null),x=d.useRef(null),E=d.useCallback(function(A){w.current=A,typeof n=="function"?n(A):n&&(n.current=A)},[n]),R=d.useState(!1),O=Ce(R,2),T=O[1],M=hYe({value:r,level:a,minVersion:m,includeMargin:g,marginSize:v,imageSettings:y,size:o}),_=M.margin,F=M.cells,D=M.numCells,k=M.calculatedImageSettings;d.useEffect(function(){if(w.current!=null){var A=w.current,N=A.getContext("2d");if(!N)return;var B=F,z=x.current,j=k!=null&&z!==null&&z.complete&&z.naturalHeight!==0&&z.naturalWidth!==0;j&&k.excavation!=null&&(B=lme(F,k.excavation));var W=window.devicePixelRatio||1;A.height=A.width=o*W;var G=o/D*W;N.scale(G,G),N.fillStyle=c,N.fillRect(0,0,D,D),N.fillStyle=f,fYe?N.fill(new Path2D(ame(B,_))):F.forEach(function(K,q){K.forEach(function(X,Q){X&&N.fillRect(Q+_,q+_,1,1)})}),k&&(N.globalAlpha=k.opacity),j&&N.drawImage(z,k.x+_,k.y+_,k.w,k.h)}}),d.useEffect(function(){T(!1)},[S]);var L=se({height:o,width:o},C),I=null;return S!=null&&(I=ce.createElement("img",{src:S,key:S,style:{display:"none"},onLoad:function(){T(!0)},ref:x,crossOrigin:k==null?void 0:k.crossOrigin})),ce.createElement(ce.Fragment,null,ce.createElement("canvas",V({style:L,height:o,width:o,ref:E,role:"img"},b)),I)});gYe.displayName="QRCodeCanvas";var Hqt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],pYe=ce.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?tme:i,s=t.level,a=s===void 0?nme:s,l=t.bgColor,c=l===void 0?rme:l,u=t.fgColor,f=u===void 0?ime:u,h=t.includeMargin,g=h===void 0?ome:h,p=t.minVersion,m=p===void 0?sme:p,v=t.title,C=t.marginSize,y=t.imageSettings,b=on(t,Hqt),S=hYe({value:r,level:a,minVersion:m,includeMargin:g,marginSize:C,imageSettings:y,size:o}),w=S.margin,x=S.cells,E=S.numCells,R=S.calculatedImageSettings,O=x,T=null;y!=null&&R!=null&&(R.excavation!=null&&(O=lme(x,R.excavation)),T=ce.createElement("image",{href:y.src,height:R.h,width:R.w,x:R.x+w,y:R.y+w,preserveAspectRatio:"none",opacity:R.opacity,crossOrigin:R.crossOrigin}));var M=ame(O,w);return ce.createElement("svg",V({height:o,width:o,viewBox:"0 0 ".concat(E," ").concat(E),ref:n,role:"img"},b),!!v&&ce.createElement("title",null,v),ce.createElement("path",{fill:c,d:"M0,0 h".concat(E,"v").concat(E,"H0z"),shapeRendering:"crispEdges"}),ce.createElement("path",{fill:f,d:M,shapeRendering:"crispEdges"}),T)});pYe.displayName="QRCodeSVG";const jqt=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_BACKGROUND_COLOR:rme,DEFAULT_FRONT_COLOR:ime,DEFAULT_IMG_SCALE:cYe,DEFAULT_LEVEL:nme,DEFAULT_MARGIN_SIZE:lYe,DEFAULT_MINVERSION:sme,DEFAULT_NEED_MARGIN:ome,DEFAULT_SIZE:tme,ERROR_LEVEL_MAP:sYe,QRCodeCanvas:gYe,QRCodeSVG:pYe,SPEC_MARGIN_SIZE:aYe,excavateModules:lme,generatePath:ame,getImageSettings:uYe,getMarginSize:dYe,isSupportPath2d:fYe},Symbol.toStringTag,{value:"Module"}));var Vqt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 018.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z"}}]},name:"account-book",theme:"filled"},Gqt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Vqt}))},Wqt=d.forwardRef(Gqt),Uqt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 00-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z"}}]},name:"account-book",theme:"outlined"},qqt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Uqt}))},Kqt=d.forwardRef(qqt),Yqt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-65.6 121.8l-89.3 164.1h49.1c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4v33.7h65.4c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4V752c0 4.4-3.6 8-8 8h-41.3c-4.4 0-8-3.6-8-8v-53.8h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8h65.1v-33.7h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8H467l-89.3-164c-2.1-3.9-.7-8.8 3.2-10.9 1.1-.7 2.5-1 3.8-1h46a8 8 0 017.1 4.4l73.4 145.4h2.8l73.4-145.4c1.3-2.7 4.1-4.4 7.1-4.4h45c4.5 0 8 3.6 7.9 8 0 1.3-.4 2.6-1 3.8z",fill:n}},{tag:"path",attrs:{d:"M639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 00-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z",fill:t}},{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z",fill:t}}]}},name:"account-book",theme:"twotone"},Xqt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Yqt}))},Qqt=d.forwardRef(Xqt),Zqt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"},Jqt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zqt}))},eKt=d.forwardRef(Jqt),tKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"},nKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:tKt}))},rKt=d.forwardRef(nKt),iKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"},oKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:iKt}))},sKt=d.forwardRef(oKt),aKt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M340 585c0-5.5 4.5-10 10-10h44c5.5 0 10 4.5 10 10v171h355V563c0-136.4-110.6-247-247-247S265 426.6 265 563v193h75V585z",fill:n}},{tag:"path",attrs:{d:"M216.9 310.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8zm348 712H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zm-639-96c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563z",fill:t}}]}},name:"alert",theme:"twotone"},lKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:aKt}))},cKt=d.forwardRef(lKt),uKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M602.9 669.8c-37.2 2.6-33.6-17.3-11.5-46.2 50.4-67.2 143.7-158.5 147.9-225.2 5.8-86.6-81.3-113.4-171-113.4-62.4 1.6-127 18.9-171 34.6-151.6 53.5-246.6 137.5-306.9 232-62.4 93.4-43 183.2 91.8 185.8 101.8-4.2 170.5-32.5 239.7-68.2.5 0-192.5 55.1-263.9 14.7-7.9-4.2-15.7-10-17.8-26.2 0-33.1 54.6-67.7 86.6-78.7v-56.7c64.5 22.6 140.6 16.3 205.7-32 2.1 5.8 4.2 13.1 3.7 21h11c2.6-22.6-12.6-44.6-37.8-46.2 7.3 5.8 12.6 10.5 15.2 14.7l-1 1-.5.5c-83.9 58.8-165.3 31.5-173.1 29.9l46.7-45.7-13.1-33.1c92.9-32.5 169.5-56.2 296.9-78.7l-28.5-23 14.7-8.9c75.5 21 126.4 36.7 123.8 76.6-1 6.8-3.7 14.7-7.9 23.1C660.1 466.1 594 538 567.2 569c-17.3 20.5-34.6 39.4-46.7 58.3-13.6 19.4-20.5 37.3-21 53.5 2.6 131.8 391.4-61.9 468-112.9-111.7 47.8-232.9 93.5-364.6 101.9zm85-302.9c2.8 5.2 4.1 11.6 4.1 19.1-.1-6.8-1.4-13.3-4.1-19.1z"}}]},name:"alibaba",theme:"outlined"},dKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:uKt}))},fKt=d.forwardRef(dKt),hKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-center",theme:"outlined"},gKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hKt}))},pKt=d.forwardRef(gKt),mKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"},vKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mKt}))},CKt=d.forwardRef(vKt),yKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-right",theme:"outlined"},bKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:yKt}))},SKt=d.forwardRef(bKt),wKt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.42 0 448 200.58 448 448S759.42 960 512 960 64 759.42 64 512 264.58 64 512 64m32.5 168c-69.67 0-86.06 16.84-86.72 39.08l-.02 1.43v46.62H291.45c-9.92 0-14.28 23.05-14.27 39.3 0 2.7 2.08 4.93 4.77 4.93h175.81v58.3h-116.5c-9.96 0-14.3 23.76-14.27 39.47a4.77 4.77 0 004.77 4.76h233.45c-4.53 41.06-15.43 77.59-30.72 109.32l-1.22 2.5-.32-.28c-60.24-28.47-120.43-52.57-194.4-52.57l-2.62.01c-84.98 1.11-144.71 56.5-145.91 127.04l-.02 1.22.02 2.13c1.24 70.4 63.56 126.45 148.52 126.45 61.25 0 116.38-16.85 163.46-45.02a138.58 138.58 0 0014.07-7.96 345.6 345.6 0 0050.3-41.16l9.45 6.35 12.46 8.32c57.53 38.26 113.76 72.62 169.86 79.27a142.62 142.62 0 0018.31 1.16c43.02 0 55-52.68 57.39-95.51l.14-2.84c.4-8.46-6.2-15.6-14.65-15.86-75.46-2.37-136.45-22.05-192-46.11l-6.27-2.75c35.15-56.8 56.66-121.81 57.15-186.66l.09-1.08c.4-5.51-4-10.2-9.52-10.2H549.33v-58.3h165.73c9.92 0 14.28-22.12 14.27-39.31a4.85 4.85 0 00-4.78-4.92H549.32v-82.35a4.8 4.8 0 00-4.83-4.78M328 583.85c54.63 0 107.08 22.41 158.1 52.19l5.76 3.4c-103.57 119.84-247.17 95.9-261.72 26.37a66.89 66.89 0 01-1.14-9.83l-.06-2.34.02-.9c.97-40.12 45.33-68.9 99.04-68.9"}}]},name:"alipay-circle",theme:"filled"},xKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:wKt}))},EKt=d.forwardRef(xKt),RKt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.42 0 448 200.58 448 448S759.42 960 512 960 64 759.42 64 512 264.58 64 512 64m32.5 168c-69.67 0-86.06 16.84-86.72 39.08l-.02 1.43v46.62H291.45c-9.92 0-14.28 23.05-14.27 39.3 0 2.7 2.08 4.93 4.77 4.93h175.81v58.3h-116.5c-9.96 0-14.3 23.76-14.27 39.47a4.77 4.77 0 004.77 4.76h233.45c-4.53 41.06-15.43 77.59-30.72 109.32l-1.22 2.5-.32-.28c-60.24-28.47-120.43-52.57-194.4-52.57l-2.62.01c-84.98 1.11-144.71 56.5-145.91 127.04l-.02 1.22.02 2.13c1.24 70.4 63.56 126.45 148.52 126.45 61.25 0 116.38-16.85 163.46-45.02a138.58 138.58 0 0014.07-7.96 345.6 345.6 0 0050.3-41.16l9.45 6.35 12.46 8.32c57.53 38.26 113.76 72.62 169.86 79.27a142.62 142.62 0 0018.31 1.16c43.02 0 55-52.68 57.39-95.51l.14-2.84c.4-8.46-6.2-15.6-14.65-15.86-75.46-2.37-136.45-22.05-192-46.11l-6.27-2.75c35.15-56.8 56.66-121.81 57.15-186.66l.09-1.08c.4-5.51-4-10.2-9.52-10.2H549.33v-58.3h165.73c9.92 0 14.28-22.12 14.27-39.31a4.85 4.85 0 00-4.78-4.92H549.32v-82.35a4.8 4.8 0 00-4.83-4.78M328 583.85c54.63 0 107.08 22.41 158.1 52.19l5.76 3.4c-103.57 119.84-247.17 95.9-261.72 26.37a66.89 66.89 0 01-1.14-9.83l-.06-2.34.02-.9c.97-40.12 45.33-68.9 99.04-68.9"}}]},name:"alipay-circle",theme:"outlined"},$Kt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:RKt}))},OKt=d.forwardRef($Kt),TKt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M557.2 129a6.68 6.68 0 016.72 6.65V250.2h243.8a6.74 6.74 0 016.65 6.84c.02 23.92-6.05 54.69-19.85 54.69H563.94v81.1h166.18c7.69 0 13.8 6.51 13.25 14.18l-.11 1.51c-.7 90.2-30.63 180.64-79.52 259.65l8.71 3.82c77.3 33.48 162.15 60.85 267.15 64.14a21.08 21.08 0 0120.38 22.07l-.2 3.95c-3.34 59.57-20 132.85-79.85 132.85-8.8 0-17.29-.55-25.48-1.61-78.04-9.25-156.28-57.05-236.32-110.27l-17.33-11.57-13.15-8.83a480.83 480.83 0 01-69.99 57.25 192.8 192.8 0 01-19.57 11.08c-65.51 39.18-142.21 62.6-227.42 62.62-118.2 0-204.92-77.97-206.64-175.9l-.03-2.95.03-1.7c1.66-98.12 84.77-175.18 203-176.72l3.64-.03c102.92 0 186.66 33.54 270.48 73.14l.44.38 1.7-3.47c21.27-44.14 36.44-94.95 42.74-152.06h-324.8a6.64 6.64 0 01-6.63-6.62c-.04-21.86 6-54.91 19.85-54.91h162.1v-81.1H191.92a6.71 6.71 0 01-6.64-6.85c-.01-22.61 6.06-54.68 19.86-54.68h231.4v-64.85l.02-1.99c.9-30.93 23.72-54.36 120.64-54.36M256.9 619c-74.77 0-136.53 39.93-137.88 95.6l-.02 1.26.08 3.24a92.55 92.55 0 001.58 13.64c20.26 96.5 220.16 129.71 364.34-36.59l-8.03-4.72C405.95 650.11 332.94 619 256.9 619"}}]},name:"alipay",theme:"outlined"},IKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:TKt}))},MKt=d.forwardRef(IKt),PKt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M894.6 116.54a30.9 30.9 0 0112.86 12.85c2.96 5.54 4.54 11.04 4.54 26.2V868.4c0 15.16-1.58 20.66-4.54 26.2a30.9 30.9 0 01-12.85 12.85c-5.54 2.96-11.04 4.54-26.2 4.54H155.6c-15.16 0-20.66-1.58-26.2-4.54a30.9 30.9 0 01-12.85-12.85c-2.92-5.47-4.5-10.9-4.54-25.59V155.6c0-15.16 1.58-20.66 4.54-26.2a30.9 30.9 0 0112.85-12.85c5.47-2.92 10.9-4.5 25.59-4.54H868.4c15.16 0 20.66 1.58 26.2 4.54M541 262c-62.2 0-76.83 15.04-77.42 34.9l-.02 1.27v41.62H315.08c-8.86 0-12.75 20.59-12.74 35.1a4.3 4.3 0 004.26 4.4h156.97v52.05H359.56c-8.9 0-12.77 21.22-12.75 35.25a4.26 4.26 0 004.26 4.25h208.44c-4.04 36.66-13.78 69.27-27.43 97.6l-1.09 2.23-.28-.25c-53.8-25.42-107.53-46.94-173.58-46.94l-2.33.01c-75.88 1-129.21 50.45-130.28 113.43l-.02 1.1.02 1.89c1.1 62.85 56.75 112.9 132.6 112.9 54.7 0 103.91-15.04 145.95-40.2a123.73 123.73 0 0012.56-7.1 308.6 308.6 0 0044.92-36.75l8.44 5.67 11.12 7.43c51.36 34.15 101.57 64.83 151.66 70.77a127.34 127.34 0 0016.35 1.04c38.4 0 49.1-47.04 51.24-85.28l.13-2.53a13.53 13.53 0 00-13.08-14.17c-67.39-2.1-121.84-19.68-171.44-41.17l-5.6-2.44c31.39-50.72 50.6-108.77 51.04-166.67l.07-.96a8.51 8.51 0 00-8.5-9.1H545.33v-52.06H693.3c8.86 0 12.75-19.75 12.75-35.1-.01-2.4-1.87-4.4-4.27-4.4H545.32v-73.52a4.29 4.29 0 00-4.31-4.27m-193.3 314.15c48.77 0 95.6 20.01 141.15 46.6l5.15 3.04c-92.48 107-220.69 85.62-233.68 23.54a59.72 59.72 0 01-1.02-8.78l-.05-2.08.01-.81c.87-35.82 40.48-61.51 88.44-61.51"}}]},name:"alipay-square",theme:"filled"},_Kt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:PKt}))},AKt=d.forwardRef(_Kt),DKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 00-120.5-81.2A375.65 375.65 0 00519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 00-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0029.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-325.2 79c0 20.4-16.6 37.1-37.1 37.1-20.4 0-37.1-16.7-37.1-37.1v-55.1c0-20.4 16.6-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1zm175.2 0c0 20.4-16.6 37.1-37.1 37.1S644 476.8 644 456.4v-55.1c0-20.4 16.7-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1z"}}]},name:"aliwangwang",theme:"filled"},LKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:DKt}))},FKt=d.forwardRef(LKt),NKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 00-120.5-81.2A375.65 375.65 0 00519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 00-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10.1 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0029.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-66.4 266.5a307.08 307.08 0 01-65.9 98c-28.4 28.5-61.3 50.7-97.7 65.9h-.1c-38 16-78.3 24.2-119.9 24.2a306.51 306.51 0 01-217.5-90.2c-28.4-28.5-50.6-61.4-65.8-97.8v-.1c-16-37.8-24.1-78.2-24.1-119.9 0-55.4 14.8-109.7 42.8-157l13.2-22.1-9.5-23.9L206 192c14.9.6 35.9 2.1 59.7 5.6 43.8 6.5 82.5 17.5 114.9 32.6l19 8.9 19.9-6.8c31.5-10.8 64.8-16.2 98.9-16.2a306.51 306.51 0 01217.5 90.2c28.4 28.5 50.6 61.4 65.8 97.8l.1.1.1.1c16 37.6 24.1 78 24.2 119.8-.1 41.7-8.3 82-24.3 119.8zM681.1 364.2c-20.4 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.6 37.1 37.1 37.1s37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1zm-175.2 0c-20.5 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.7 37.1 37.1 37.1 20.5 0 37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1z"}}]},name:"aliwangwang",theme:"outlined"},kKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:NKt}))},zKt=d.forwardRef(kKt),BKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M959.2 383.9c-.3-82.1-66.9-148.6-149.1-148.6H575.9l21.6 85.2 201 43.7a42.58 42.58 0 0132.9 39.7c.1.5.1 216.1 0 216.6a42.58 42.58 0 01-32.9 39.7l-201 43.7-21.6 85.3h234.2c82.1 0 148.8-66.5 149.1-148.6V383.9zM225.5 660.4a42.58 42.58 0 01-32.9-39.7c-.1-.6-.1-216.1 0-216.6.8-19.4 14.6-35.5 32.9-39.7l201-43.7 21.6-85.2H213.8c-82.1 0-148.8 66.4-149.1 148.6V641c.3 82.1 67 148.6 149.1 148.6H448l-21.6-85.3-200.9-43.9zm200.9-158.8h171v21.3h-171z"}}]},name:"aliyun",theme:"outlined"},HKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:BKt}))},jKt=d.forwardRef(HKt),VKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm35.8 262.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 00-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9 4.7-12.2 11.8-23.9 21.4-35 9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0125.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 017.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 01-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7z"}}]},name:"amazon-circle",theme:"filled"},GKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:VKt}))},WKt=d.forwardRef(GKt),UKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M825 768.9c-3.3-.9-7.3-.4-11.9 1.3-61.6 28.2-121.5 48.3-179.7 60.2C507.7 856 385.2 842.6 266 790.3c-33.1-14.6-79.1-39.2-138-74a9.36 9.36 0 00-5.3-2c-2-.1-3.7.1-5.3.9-1.6.8-2.8 1.8-3.7 3.1-.9 1.3-1.1 3.1-.4 5.4.6 2.2 2.1 4.7 4.6 7.4 10.4 12.2 23.3 25.2 38.6 39s35.6 29.4 60.9 46.8c25.3 17.4 51.8 32.9 79.3 46.4 27.6 13.5 59.6 24.9 96.1 34.1s73 13.8 109.4 13.8c36.2 0 71.4-3.7 105.5-10.9 34.2-7.3 63-15.9 86.5-25.9 23.4-9.9 45-21 64.8-33 19.8-12 34.4-22.2 43.9-30.3 9.5-8.2 16.3-14.6 20.2-19.4 4.6-5.7 6.9-10.6 6.9-14.9.1-4.5-1.7-7.1-5-7.9zM527.4 348.1c-15.2 1.3-33.5 4.1-55 8.3-21.5 4.1-41.4 9.3-59.8 15.4s-37.2 14.6-56.3 25.4c-19.2 10.8-35.5 23.2-49 37s-24.5 31.1-33.1 52c-8.6 20.8-12.9 43.7-12.9 68.7 0 27.1 4.7 51.2 14.3 72.5 9.5 21.3 22.2 38 38.2 50.4 15.9 12.4 34 22.1 54 29.2 20 7.1 41.2 10.3 63.2 9.4 22-.9 43.5-4.3 64.4-10.3 20.8-5.9 40.4-15.4 58.6-28.3 18.2-12.9 33.1-28.2 44.8-45.7 4.3 6.6 8.1 11.5 11.5 14.7l8.7 8.9c5.8 5.9 14.7 14.6 26.7 26.1 11.9 11.5 24.1 22.7 36.3 33.7l104.4-99.9-6-4.9c-4.3-3.3-9.4-8-15.2-14.3-5.8-6.2-11.6-13.1-17.2-20.5-5.7-7.4-10.6-16.1-14.7-25.9-4.1-9.8-6.2-19.3-6.2-28.5V258.7c0-10.1-1.9-21-5.7-32.8-3.9-11.7-10.7-24.5-20.7-38.3-10-13.8-22.4-26.2-37.2-37-14.9-10.8-34.7-20-59.6-27.4-24.8-7.4-52.6-11.1-83.2-11.1-31.3 0-60.4 3.7-87.6 10.9-27.1 7.3-50.3 17-69.7 29.2-19.3 12.2-35.9 26.3-49.7 42.4-13.8 16.1-24.1 32.9-30.8 50.4-6.7 17.5-10.1 35.2-10.1 53.1L408 310c5.5-16.4 12.9-30.6 22-42.8 9.2-12.2 17.9-21 25.8-26.5 8-5.5 16.6-9.9 25.7-13.2 9.2-3.3 15.4-5 18.6-5.4 3.2-.3 5.7-.4 7.6-.4 26.7 0 45.2 7.9 55.6 23.6 6.5 9.5 9.7 23.9 9.7 43.3v56.6c-15.2.6-30.4 1.6-45.6 2.9zM573.1 500c0 16.6-2.2 31.7-6.5 45-9.2 29.1-26.7 47.4-52.4 54.8-22.4 6.6-43.7 3.3-63.9-9.8-21.5-14-32.2-33.8-32.2-59.3 0-19.9 5-36.9 15-51.1 10-14.1 23.3-24.7 40-31.7s33-12 49-14.9c15.9-3 33-4.8 51-5.4V500zm335.2 218.9c-4.3-5.4-15.9-8.9-34.9-10.7-19-1.8-35.5-1.7-49.7.4-15.3 1.8-31.1 6.2-47.3 13.4-16.3 7.1-23.4 13.1-21.6 17.8l.7 1.3.9.7 1.4.2h4.6c.8 0 1.8-.1 3.2-.2 1.4-.1 2.7-.3 3.9-.4 1.2-.1 2.9-.3 5.1-.4 2.1-.1 4.1-.4 6-.7.3 0 3.7-.3 10.3-.9 6.6-.6 11.4-1 14.3-1.3 2.9-.3 7.8-.6 14.5-.9 6.7-.3 12.1-.3 16.1 0 4 .3 8.5.7 13.6 1.1 5.1.4 9.2 1.3 12.4 2.7 3.2 1.3 5.6 3 7.1 5.1 5.2 6.6 4.2 21.2-3 43.9s-14 40.8-20.4 54.2c-2.8 5.7-2.8 9.2 0 10.7s6.7.1 11.9-4c15.6-12.2 28.6-30.6 39.1-55.3 6.1-14.6 10.5-29.8 13.1-45.7 2.4-15.9 2-26.2-1.3-31z"}}]},name:"amazon",theme:"outlined"},qKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:UKt}))},KKt=d.forwardRef(qKt),YKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM547.8 326.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 00-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9s11.8-23.9 21.4-35c9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0125.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 017.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 01-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7zM485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4z"}}]},name:"amazon-square",theme:"filled"},XKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:YKt}))},QKt=d.forwardRef(XKt),ZKt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1126.9-26.9 26.97 26.97 0 01-26.9 26.9zm208.4 0a26.9 26.9 0 1126.9-26.9 26.97 26.97 0 01-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c.1-30.6-24.3-55.3-54.6-55.3zm-658.6 0c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c0-30.6-24.5-55.3-54.6-55.3z"}}]},name:"android",theme:"filled"},JKt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ZKt}))},eYt=d.forwardRef(JKt),tYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448.3 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32-13.4 32-31.9.1-18.4-13.4-31.9-32-31.9zm393.9 96.4c-13.8-13.8-32.7-21.5-53.2-21.5-3.9 0-7.4.4-10.7 1v-1h-3.6c-5.5-30.6-18.6-60.5-38.1-87.4-18.7-25.7-43-47.9-70.8-64.9l25.1-35.8v-3.3c0-.8.4-2.3.7-3.8.6-2.4 1.4-5.5 1.4-8.9 0-18.5-13.5-31.9-32-31.9-9.8 0-19.5 5.7-25.9 15.4l-29.3 42.1c-30-9.8-62.4-15-93.8-15-31.3 0-63.7 5.2-93.8 15L389 79.4c-6.6-9.6-16.1-15.4-26-15.4-18.6 0-32 13.4-32 31.9 0 6.2 2.5 12.8 6.7 17.4l22.6 32.3c-28.7 17-53.5 39.4-72.2 65.1-19.4 26.9-32 56.8-36.7 87.4h-5.5v1c-3.2-.6-6.7-1-10.7-1-20.3 0-39.2 7.5-53.1 21.3-13.8 13.8-21.5 32.6-21.5 53v235c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 3.9 0 7.4-.4 10.7-1v93.5c0 29.2 23.9 53.1 53.2 53.1H331v58.3c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-58.2H544v58.1c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.4 0 39.2-7.5 53.1-21.6 13.8-13.8 21.5-32.6 21.5-53v-58.2h31.9c29.3 0 53.2-23.8 53.2-53.1v-91.4c3.2.6 6.7 1 10.7 1 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-235c-.1-20.3-7.6-39-21.4-52.9zM246 609.6c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zm131.1-396.8c37.5-27.3 85.3-42.3 135-42.3s97.5 15.1 135 42.5c32.4 23.7 54.2 54.2 62.7 87.5H314.4c8.5-33.4 30.5-64 62.7-87.7zm39.3 674.7c-.6 5.6-4.4 8.7-10.5 8.7-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1zm202.3 8.7c-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1c-.6 5.6-4.3 8.7-10.5 8.7zm95.8-132.6H309.9V364h404.6v399.6zm85.2-154c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zM576.1 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32.1-13.4 32.1-32-.1-18.6-13.4-31.8-32.1-31.8z"}}]},name:"android",theme:"outlined"},nYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:tYt}))},rYt=d.forwardRef(nYt),iYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M378.9 738c-3.1 0-6.1-.5-8.8-1.5l4.4 30.7h26.3l-15.5-29.9c-2.1.5-4.2.7-6.4.7zm421-291.2c-12.6 0-24.8 1.5-36.5 4.2-21.4-38.4-62.3-64.3-109.3-64.3-6.9 0-13.6.6-20.2 1.6-35.4-77.4-113.4-131.1-203.9-131.1-112.3 0-205.3 82.6-221.6 190.4C127.3 455.5 64 523.8 64 607c0 88.4 71.6 160.1 160 160.2h50l13.2-27.6c-26.2-8.3-43.3-29-39.1-48.8 4.6-21.6 32.8-33.9 63.1-27.5 22.9 4.9 40.4 19.1 45.5 35.1a26.1 26.1 0 0122.1-12.4h.2c-.8-3.2-1.2-6.5-1.2-9.9 0-20.1 14.8-36.7 34.1-39.6v-25.4c0-4.4 3.6-8 8-8s8 3.6 8 8v26.3c4.6 1.2 8.8 3.2 12.6 5.8l19.5-21.4c3-3.3 8-3.5 11.3-.5 3.3 3 3.5 8 .5 11.3l-20 22-.2.2a40 40 0 01-46.9 59.2c-.4 5.6-2.6 10.7-6 14.8l20 38.4H804v-.1c86.5-2.2 156-73 156-160.1 0-88.5-71.7-160.2-160.1-160.2zM338.2 737.2l-4.3 30h24.4l-5.9-41.5c-3.5 4.6-8.3 8.5-14.2 11.5zM797.5 305a48 48 0 1096 0 48 48 0 10-96 0zm-65.7 61.3a24 24 0 1048 0 24 24 0 10-48 0zM303.4 742.9l-11.6 24.3h26l3.5-24.7c-5.7.8-11.7 1-17.9.4z"}}]},name:"ant-cloud",theme:"outlined"},oYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:iYt}))},sYt=d.forwardRef(oYt),aYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"}}]},name:"ant-design",theme:"outlined"},lYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:aYt}))},cYt=d.forwardRef(lYt),uYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},dYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:uYt}))},fYt=d.forwardRef(dYt),hYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM578.9 546.7a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 68.9-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2z"}}]},name:"api",theme:"filled"},gYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hYt}))},pYt=d.forwardRef(gYt),mYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},vYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mYt}))},CYt=d.forwardRef(vYt),yYt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M148.2 674.6zm106.7-92.3c-25 25-38.7 58.1-38.7 93.4s13.8 68.5 38.7 93.4c25 25 58.1 38.7 93.4 38.7 35.3 0 68.5-13.8 93.4-38.7l59.4-59.4-186.8-186.8-59.4 59.4zm420.8-366.1c-35.3 0-68.5 13.8-93.4 38.7l-59.4 59.4 186.8 186.8 59.4-59.4c24.9-25 38.7-58.1 38.7-93.4s-13.8-68.5-38.7-93.4c-25-25-58.1-38.7-93.4-38.7z",fill:n}},{tag:"path",attrs:{d:"M578.9 546.7a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2a199.45 199.45 0 00-58.6 140.4c-.2 39.5 11.2 79.1 34.3 113.1l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7-24.9-24.9-38.7-58.1-38.7-93.4s13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4zm476-620.3l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7s68.4 13.7 93.4 38.7c24.9 24.9 38.7 58.1 38.7 93.4s-13.8 68.4-38.7 93.4z",fill:t}}]}},name:"api",theme:"twotone"},bYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:yYt}))},SYt=d.forwardRef(bYt),wYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"}}]},name:"apple",theme:"filled"},xYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:wYt}))},EYt=d.forwardRef(xYt),RYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-10.6 267c-14.3 19.9-28.7 35.6-41.9 45.7-10.5 8-18.6 11.4-24 11.6-9-.1-17.7-2.3-34.7-8.8-1.2-.5-2.5-1-4.2-1.6l-4.4-1.7c-17.4-6.7-27.8-10.3-41.1-13.8-18.6-4.8-37.1-7.4-56.9-7.4-20.2 0-39.2 2.5-58.1 7.2-13.9 3.5-25.6 7.4-42.7 13.8-.7.3-8.1 3.1-10.2 3.9-3.5 1.3-6.2 2.3-8.7 3.2-10.4 3.6-17 5.1-22.9 5.2-.7 0-1.3-.1-1.8-.2-1.1-.2-2.5-.6-4.1-1.3-4.5-1.8-9.9-5.1-16-9.8-14-10.9-29.4-28-45.1-49.9-27.5-38.6-53.5-89.8-66-125.7-15.4-44.8-23-87.7-23-128.6 0-60.2 17.8-106 48.4-137.1 26.3-26.6 61.7-41.5 97.8-42.3 5.9.1 14.5 1.5 25.4 4.5 8.6 2.3 18 5.4 30.7 9.9 3.8 1.4 16.9 6.1 18.5 6.7 7.7 2.8 13.5 4.8 19.2 6.6 18.2 5.8 32.3 9 47.6 9 15.5 0 28.8-3.3 47.7-9.8 7.1-2.4 32.9-12 37.5-13.6 25.6-9.1 44.5-14 60.8-15.2 4.8-.4 9.1-.4 13.2-.1 22.7 1.8 42.1 6.3 58.6 13.8-37.6 43.4-57 96.5-56.9 158.4-.3 14.7.9 31.7 5.1 51.8 6.4 30.5 18.6 60.7 37.9 89 14.7 21.5 32.9 40.9 54.7 57.8-11.5 23.7-25.6 48.2-40.4 68.8zm-94.5-572c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"}}]},name:"apple",theme:"outlined"},$Yt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:RYt}))},OYt=d.forwardRef($Yt),TYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"appstore-add",theme:"outlined"},IYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:TYt}))},MYt=d.forwardRef(IYt),PYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"}}]},name:"appstore",theme:"filled"},_Yt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:PYt}))},AYt=d.forwardRef(_Yt),DYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},LYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:DYt}))},FYt=d.forwardRef(LYt),NYt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm52-668H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z",fill:t}},{tag:"path",attrs:{d:"M212 212h200v200H212zm400 0h200v200H612zM212 612h200v200H212zm400 0h200v200H612z",fill:n}}]}},name:"appstore",theme:"twotone"},kYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:NYt}))},zYt=d.forwardRef(kYt),BYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-616-64h536c4.4 0 8-3.6 8-8V284c0-7.2-8.7-10.7-13.7-5.7L592 488.6l-125.4-124a8.03 8.03 0 00-11.3 0l-189 189.6a7.87 7.87 0 00-2.3 5.6V720c0 4.4 3.6 8 8 8z"}}]},name:"area-chart",theme:"outlined"},HYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:BYt}))},jYt=d.forwardRef(HYt),VYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},GYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:VYt}))},WYt=d.forwardRef(GYt),UYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},qYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:UYt}))},mYe=d.forwardRef(qYt),KYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},YYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:KYt}))},vYe=d.forwardRef(YYt),XYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},QYt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:XYt}))},ZYt=d.forwardRef(QYt),JYt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},eXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:JYt}))},tXt=d.forwardRef(eXt),nXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z"}}]},name:"audio",theme:"filled"},rXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nXt}))},iXt=d.forwardRef(rXt),oXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},sXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oXt}))},aXt=d.forwardRef(sXt),lXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},cXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lXt}))},uXt=d.forwardRef(cXt),dXt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 552c54.3 0 98-43.2 98-96V232c0-52.8-43.7-96-98-96s-98 43.2-98 96v224c0 52.8 43.7 96 98 96z",fill:n}},{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z",fill:t}},{tag:"path",attrs:{d:"M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-98-392c0-52.8 43.7-96 98-96s98 43.2 98 96v224c0 52.8-43.7 96-98 96s-98-43.2-98-96V232z",fill:t}}]}},name:"audio",theme:"twotone"},fXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dXt}))},hXt=d.forwardRef(fXt),gXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"},pXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gXt}))},mXt=d.forwardRef(pXt),vXt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 00-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z"}}]},name:"backward",theme:"filled"},CXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vXt}))},yXt=d.forwardRef(CXt),bXt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 00-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z"}}]},name:"backward",theme:"outlined"},SXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bXt}))},wXt=d.forwardRef(SXt),xXt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M250.02 547.04c92.37-19.8 79.77-130.07 76.95-154.18-4.56-37.2-48.26-102.16-107.63-97.02-74.7 6.7-85.65 114.58-85.65 114.58-10.04 49.88 24.2 156.43 116.33 136.62m84.7 214.14c10.28 38.7 43.95 40.43 43.95 40.43H427V683.55h-51.74c-23.22 6.96-34.5 25.1-36.98 32.8-2.74 7.8-8.71 27.6-3.57 44.83m169.07-531.1c0-72.42-41.13-131.08-92.2-131.08-50.92 0-92.21 58.66-92.21 131.07 0 72.5 41.3 131.16 92.2 131.16 51.08 0 92.21-58.66 92.21-131.16m248.1 9.1c8.86-54.92-35.08-118.88-83.34-129.82-48.34-11.1-108.7 66.28-114.18 116.74-6.55 61.72 8.79 123.28 76.86 132.06 68.16 8.87 112.03-63.87 120.65-118.97m46.35 433.02s-105.47-81.53-167-169.6c-83.4-129.91-201.98-77.05-241.62-11.02-39.47 66.03-101 107.87-109.7 118.9-8.87 10.93-127.36 74.8-101.07 191.55 26.28 116.65 118.73 114.5 118.73 114.5s68.08 6.7 147.1-10.94C523.7 888.03 591.7 910 591.7 910s184.57 61.72 235.07-57.18c50.41-118.97-28.53-180.61-28.53-180.61M362.42 849.17c-51.83-10.36-72.47-45.65-75.13-51.7-2.57-6.13-17.24-34.55-9.45-82.85 22.39-72.41 86.23-77.63 86.23-77.63h63.85v-78.46l54.4.82.08 289.82zm205.38-.83c-53.56-13.75-56.05-51.78-56.05-51.78V643.95l56.05-.92v137.12c3.4 14.59 21.65 17.32 21.65 17.32h56.88V643.95h59.62v204.39zm323.84-397.72c0-26.35-21.89-105.72-103.15-105.72-81.43 0-92.29 74.9-92.29 127.84 0 50.54 4.31 121.13 105.4 118.8 101.15-2.15 90.04-114.41 90.04-140.92"}}]},name:"baidu",theme:"outlined"},EXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xXt}))},RXt=d.forwardRef(EXt),$Xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374z"}}]},name:"bank",theme:"filled"},OXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$Xt}))},TXt=d.forwardRef(OXt),IXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z"}}]},name:"bank",theme:"outlined"},MXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:IXt}))},PXt=d.forwardRef(MXt),_Xt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M240.9 393.9h542.2L512 196.7z",fill:n}},{tag:"path",attrs:{d:"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374zM240.9 393.9L512 196.7l271.1 197.2H240.9z",fill:t}}]}},name:"bank",theme:"twotone"},AXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_Xt}))},DXt=d.forwardRef(AXt),LXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"},FXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:LXt}))},NXt=d.forwardRef(FXt),kXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 160H72c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm833 0h-48c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zM200 736h112c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm321 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm126 0h178c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H647c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-255 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-79 64H201c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm257 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm256 0H648c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h178c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-385 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"barcode",theme:"outlined"},zXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kXt}))},BXt=d.forwardRef(zXt),HXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M420.3 470.3c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 00-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1a50.5 50.5 0 0017.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm86.5 286.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 01-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 01-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 01-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0138.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 00-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7z"}}]},name:"behance-circle",theme:"filled"},jXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:HXt}))},VXt=d.forwardRef(jXt),GXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M634 294.3h199.5v48.4H634zM434.1 485.8c44.1-21.1 67.2-53.2 67.2-102.8 0-98.1-73-121.9-157.3-121.9H112v492.4h238.5c89.4 0 173.3-43 173.3-143 0-61.8-29.2-107.5-89.7-124.7zM220.2 345.1h101.5c39.1 0 74.2 10.9 74.2 56.3 0 41.8-27.3 58.6-66 58.6H220.2V345.1zm115.5 324.8H220.1V534.3H338c47.6 0 77.7 19.9 77.7 70.3 0 49.6-35.9 65.3-80 65.3zm575.8-89.5c0-105.5-61.7-193.4-173.3-193.4-108.5 0-182.3 81.7-182.3 188.8 0 111 69.9 187.2 182.3 187.2 85.1 0 140.2-38.3 166.7-120h-86.3c-9.4 30.5-47.6 46.5-77.3 46.5-57.4 0-87.4-33.6-87.4-90.7h256.9c.3-5.9.7-12.1.7-18.4zM653.9 537c3.1-46.9 34.4-76.2 81.2-76.2 49.2 0 73.8 28.9 78.1 76.2H653.9z"}}]},name:"behance",theme:"outlined"},WXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:GXt}))},UXt=d.forwardRef(WXt),qXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 01-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 01-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 01-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0138.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 00-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 00-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z"}}]},name:"behance-square",theme:"filled"},KXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qXt}))},YXt=d.forwardRef(KXt),XXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 01-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 01-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 01-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0138.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 00-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 00-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z"}}]},name:"behance-square",theme:"outlined"},QXt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:XXt}))},ZXt=d.forwardRef(QXt),JXt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},eQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:JXt}))},tQt=d.forwardRef(eQt),nQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"},rQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nQt}))},iQt=d.forwardRef(rQt),oQt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 220c-55.6 0-107.8 21.6-147.1 60.9S304 372.4 304 428v340h416V428c0-55.6-21.6-107.8-60.9-147.1S567.6 220 512 220zm280 208c0-141.1-104.3-257.8-240-277.2v.1c135.7 19.4 240 136 240 277.1zM472 150.9v-.1C336.3 170.2 232 286.9 232 428c0-141.1 104.3-257.7 240-277.1z",fill:n}},{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zm208-120H304V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340z",fill:t}}]}},name:"bell",theme:"twotone"},sQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oQt}))},aQt=d.forwardRef(sQt),lQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M766.4 744.3c43.7 0 79.4-36.2 79.4-80.5 0-53.5-79.4-140.8-79.4-140.8S687 610.3 687 663.8c0 44.3 35.7 80.5 79.4 80.5zm-377.1-44.1c7.1 7.1 18.6 7.1 25.6 0l256.1-256c7.1-7.1 7.1-18.6 0-25.6l-256-256c-.6-.6-1.3-1.2-2-1.7l-78.2-78.2a9.11 9.11 0 00-12.8 0l-48 48a9.11 9.11 0 000 12.8l67.2 67.2-207.8 207.9c-7.1 7.1-7.1 18.6 0 25.6l255.9 256zm12.9-448.6l178.9 178.9H223.4l178.8-178.9zM904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8z"}}]},name:"bg-colors",theme:"outlined"},cQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lQt}))},uQt=d.forwardRef(cQt),dQt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M310.13 596.45c-8-4.46-16.5-8.43-25-11.9a273.55 273.55 0 00-26.99-7.44c-2.5-.99-2.5 1-2.5 1.49 0 7.93.5 18.84 1.5 27.77 1 7.44 2 15.37 4 22.8 0 .5 0 1 .5 1.5 1 .99 2 1.48 3 .49 8-4.46 16-8.43 23-13.39 7.5-5.45 15.5-11.9 22-18.35 1.5-1.48 0-2.47.5-2.97m323.95-11.9a273.55 273.55 0 00-27-7.44c-2.5-.99-2.5 1-2.5 1.49 0 7.93.5 18.84 1.5 27.77 1 7.43 2 15.37 4 22.8 0 .5 0 1 .5 1.5 1 .99 2 1.48 3 .49 8-4.46 16-8.43 23-13.39 7.5-5.45 15.5-11.9 22-18.35 2-1.48.5-2.47.5-2.97-7.5-4.46-16.5-8.43-25-11.9"}},{tag:"path",attrs:{d:"M741.5 112H283c-94.5 0-171 76.5-171 171.5v458c.5 94 77 170.5 171 170.5h458c94.5 0 171-76.5 171-170.5v-458c.5-95-76-171.5-170.5-171.5m95 343.5H852v48h-15.5zM741 454l2 43-13.5 1.5-5-44.5zm-23.5 0l4 45.5L707 501l-6.5-47.5h17zM487 455.5h15v48h-15zm-96-1.5l2 43-13.5 1.5-5-44.5zm-23.5 0l4 45.5-14.5 2-6-47.5zM364 603c-20.5 65.5-148 59.5-159.5 57.5-9-161.5-23-196.5-34.5-275.5l54.5-22.5c1 71.5 9 185 9 185s108.5-15.5 132 47c.5 3 0 6-1.5 8.5m20.5 35.5l-23.5-124h35.5l13 123zm44.5-8l-27-235 33.5-1.5 21 236H429zm34-175h17.5v48H467zm41 190h-26.5l-9.5-126h36zm210-43C693.5 668 566 662 554.5 660c-9-161-23-196-34.5-275l54.5-22.5c1 71.5 9 185 9 185S692 532 715.5 594c.5 3 0 6-1.5 8.5m19.5 36l-23-124H746l13 123zm45.5-8l-27.5-235L785 394l21 236h-27zm33.5-175H830v48h-13zm41 190H827l-9.5-126h36z"}}]},name:"bilibili",theme:"filled"},fQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dQt}))},hQt=d.forwardRef(fQt),gQt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M235.52 616.57c16.73-.74 32.28-1.77 47.69-2.07 66.8-1.18 132.4 6.81 194.76 32 30.5 12.3 59.98 26.52 86.5 46.51 21.76 16.45 26.5 36.9 16.58 67.11-6.22 18.67-18.66 32.74-34.36 45.04-37.03 28.88-75.83 54.96-120.41 69.62A595.87 595.87 0 01330 898.04c-42.8 6.67-86.2 9.63-129.45 13.63-8.88.89-17.92-.3-26.8-.3-4.6 0-5.78-2.37-5.93-6.37-1.18-19.7-2.07-39.55-3.85-59.25a2609.47 2609.47 0 00-7.7-76.3c-4-35.4-8.44-70.66-12.89-105.92-4.59-37.18-9.33-74.21-13.77-111.4-4.44-36.3-8.44-72.73-13.18-109.03-5.34-41.48-11.26-82.96-16.89-124.44-6.66-49.03-15.85-97.62-28.43-145.47-.6-2.07 1.18-6.67 2.96-7.26 41.91-16.89 83.98-33.33 125.89-50.07 13.92-5.63 15.1-7.26 15.25 10.37.15 75.1.45 150.21 1.63 225.32.6 39.11 2.08 78.22 4.74 117.18 3.26 47.55 8.3 95.1 12.6 142.66 0 2.07.88 4 1.33 5.19m83.68 218.06a74372.3 74372.3 0 00114.78-86.96c-4.74-6.82-109.3-47.85-133.89-53.33 6.22 46.37 12.59 92.59 19.1 140.29m434.13-14.39c-19.94-202.14-36.78-406.5-75.32-609.67 12.55-1.48 25.1-3.25 37.8-4.3 14.63-1.32 29.4-1.92 44.01-3.1 12.26-1.04 16.84 2.22 17.58 14.22 2.21 32.13 4.13 64.26 6.35 96.4 2.95 43.39 6.05 86.92 9.15 130.31 2.22 31.25 4.14 62.64 6.65 93.89 2.8 34.2 5.9 68.27 9 102.47 2.22 25.18 4.3 50.5 6.8 75.68 2.66 27.24 5.61 54.49 8.42 81.74.74 7.85 1.62 15.7 2.21 23.54.3 4.3-2.06 4.89-6.05 4.45-21.7-2.23-43.42-3.85-66.6-5.63M572 527.15c17.62-2.51 34.64-5.32 51.66-7.25 12.29-1.48 24.72-1.63 37.01-2.81 6.66-.6 10.95 1.77 11.99 8.29 2.81 17.32 5.77 34.79 7.85 52.26 3.4 29.02 6.07 58.18 9.17 87.2 2.67 25.46 5.33 50.78 8.3 76.24 3.25 27.24 6.8 54.33 10.2 81.42 1.04 8 1.78 16.14 2.82 24.88a9507.1 9507.1 0 00-74.76 9.62C614.93 747.15 593.61 638.19 572 527.15m382 338.83c-24.08 0-47.28.14-70.47-.3-1.93 0-5.35-3.4-5.5-5.48-3.57-37.05-6.69-73.96-9.96-111l-9.37-103.16c-3.27-35.42-6.39-70.84-9.66-106.26-.15-2.07-.6-4-1.04-7.11 8.62-1.04 16.8-2.67 25.12-2.67 22.45 0 44.9.6 67.5 1.19 5.8.14 8.32 4 8.62 9.33.75 11.12 1.79 22.08 1.79 33.2.14 52.17-.15 104.48.3 156.65.44 41.65 1.78 83.44 2.67 125.08zM622.07 480c-5.3-42.57-10.62-84.1-16.07-127.4 13.86-.16 27.71-.6 41.42-.6 4.57 0 6.64 2.51 7.08 7.54 3.69 38.72 7.52 77.45 11.5 117.65-14.3.74-29.04 1.78-43.93 2.81M901 364.07c11.94 0 24.62-.15 37.45 0 6.42.14 9.55 2.67 9.55 10.24-.45 36.22-.15 72.45-.15 108.53V491c-15.37-.74-30.14-1.49-46.7-2.23-.15-41.12-.15-82.4-.15-124.7M568.57 489c-7.43-41.2-15-82.1-22.57-124.02 13.51-2.07 27.02-4.29 40.39-5.9 5.94-.75 4.9 4.42 5.2 7.67 1.63 13.88 2.81 27.6 4.3 41.49 2.37 21.7 4.75 43.4 6.98 64.96.3 2.8 0 5.76 0 8.86-11.29 2.36-22.57 4.58-34.3 6.94M839 365.16c12.72 0 25.43.15 38-.15 5.69-.15 7.78 1.04 7.63 7.56-.44 17.36.15 34.7.3 52.2.15 21.51 0 43.17 0 64.52-12.86 1.34-24.09 2.37-36.2 3.71-3.15-41.97-6.44-83.8-9.73-127.84"}}]},name:"bilibili",theme:"outlined"},pQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gQt}))},mQt=d.forwardRef(pQt),vQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z"}}]},name:"block",theme:"outlined"},CQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vQt}))},yQt=d.forwardRef(CQt),bQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z"}}]},name:"bold",theme:"outlined"},SQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bQt}))},CYe=d.forwardRef(SQt),wQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM668 345.9L621.5 312 572 347.4V124h96v221.9z"}}]},name:"book",theme:"filled"},xQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:wQt}))},EQt=d.forwardRef(xQt),RQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},$Qt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:RQt}))},GV=d.forwardRef($Qt),OQt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zM232 888V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752H232z",fill:t}},{tag:"path",attrs:{d:"M668 345.9V136h-96v211.4l49.5-35.4z",fill:n}},{tag:"path",attrs:{d:"M727.9 136v296.5c0 8.8-7.2 16-16 16-3.4 0-6.7-1.1-9.4-3.1L621.1 386l-83.8 59.9a15.9 15.9 0 01-22.3-3.7c-2-2.7-3-6-3-9.3V136H232v752h559.9V136h-64z",fill:n}}]}},name:"book",theme:"twotone"},TQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:OQt}))},IQt=d.forwardRef(TQt),MQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"border-bottom",theme:"outlined"},PQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:MQt}))},_Qt=d.forwardRef(PQt),AQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M540 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-horizontal",theme:"outlined"},DQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:AQt}))},LQt=d.forwardRef(DQt),FQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 476H548V144h-72v332H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v332h72V548h324c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-426h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 260h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-inner",theme:"outlined"},NQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:FQt}))},kQt=d.forwardRef(NQt),zQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-left",theme:"outlined"},BQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:zQt}))},HQt=d.forwardRef(BQt),jQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM484 366h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM302 548h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm364 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-182 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 182h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"border-outer",theme:"outlined"},VQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jQt}))},GQt=d.forwardRef(VQt),WQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"},UQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:WQt}))},qQt=d.forwardRef(UQt),KQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-right",theme:"outlined"},YQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:KQt}))},XQt=d.forwardRef(YQt),QQt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-top",theme:"outlined"},ZQt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:QQt}))},JQt=d.forwardRef(ZQt),eZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 476H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM152 382h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 642h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-verticle",theme:"outlined"},tZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:eZt}))},nZt=d.forwardRef(tZt),rZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M117 368h231v64H117zm559 0h241v64H676zm-264 0h200v64H412zm0 224h200v64H412zm264 0h241v64H676zm-559 0h231v64H117zm295-160V179h-64v666h64V592zm264-64V179h-64v666h64V432z"}}]},name:"borderless-table",theme:"outlined"},iZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:rZt}))},oZt=d.forwardRef(iZt),sZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H448v432h344c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-728 80v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h152V296H232c-4.4 0-8 3.6-8 8z"}}]},name:"box-plot",theme:"filled"},aZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:sZt}))},lZt=d.forwardRef(aZt),cZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM296 368h88v288h-88V368zm432 288H448V368h280v288z"}}]},name:"box-plot",theme:"outlined"},uZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:cZt}))},dZt=d.forwardRef(uZt),fZt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 368h88v288h-88zm152 0h280v288H448z",fill:n}},{tag:"path",attrs:{d:"M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM384 656h-88V368h88v288zm344 0H448V368h280v288z",fill:t}}]}},name:"box-plot",theme:"twotone"},hZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:fZt}))},gZt=d.forwardRef(hZt),pZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},mZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:pZt}))},vZt=d.forwardRef(mZt),CZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h416c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5 28.9 16.9 61 28.8 95.3 34.5 4.4 0 8-3.6 8-8V484c0-4.4 3.6-8 8-8h60c4.4 0 8 3.6 8 8v464.2c0 4.4 3.6 8 8 8 34.3-5.7 66.4-17.6 95.3-34.5a281.38 281.38 0 00123.2-149.5A120.4 120.4 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"bug",theme:"filled"},yZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:CZt}))},bZt=d.forwardRef(yZt),SZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},wZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:SZt}))},xZt=d.forwardRef(wZt),EZt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0073.3 73.3A202.68 202.68 0 00512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0073.3-73.3A202.68 202.68 0 00716 680V412H308zm484 172v96c0 6.5-.22 12.95-.66 19.35C859.94 728.64 908 796.7 908 876a8 8 0 01-8 8h-56a8 8 0 01-8-8c0-44.24-23.94-82.89-59.57-103.7a278.63 278.63 0 01-22.66 49.02 281.39 281.39 0 01-100.45 100.45C611.84 946.07 563.55 960 512 960s-99.84-13.93-141.32-38.23a281.39 281.39 0 01-100.45-100.45 278.63 278.63 0 01-22.66-49.02A119.95 119.95 0 00188 876a8 8 0 01-8 8h-56a8 8 0 01-8-8c0-79.3 48.07-147.36 116.66-176.65A284.12 284.12 0 01232 680v-96H84a8 8 0 01-8-8v-56a8 8 0 018-8h148V412c-76.77 0-139-62.23-139-139a8 8 0 018-8h60a8 8 0 018 8 63 63 0 0063 63h560a63 63 0 0063-63 8 8 0 018-8h60a8 8 0 018 8c0 76.77-62.23 139-139 139v100h148a8 8 0 018 8v56a8 8 0 01-8 8H792zM368 272a8 8 0 01-8 8h-56a8 8 0 01-8-8c0-40.04 8.78-76.75 25.9-108.07a184.57 184.57 0 0174.03-74.03C427.25 72.78 463.96 64 504 64h16c40.04 0 76.75 8.78 108.07 25.9a184.57 184.57 0 0174.03 74.03C719.22 195.25 728 231.96 728 272a8 8 0 01-8 8h-56a8 8 0 01-8-8c0-28.33-5.94-53.15-17.08-73.53a112.56 112.56 0 00-45.39-45.4C573.15 141.95 548.33 136 520 136h-16c-28.33 0-53.15 5.94-73.53 17.08a112.56 112.56 0 00-45.4 45.39C373.95 218.85 368 243.67 368 272z",fill:t}},{tag:"path",attrs:{d:"M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0073.3 73.3A202.68 202.68 0 00512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0073.3-73.3A202.68 202.68 0 00716 680V412H308z",fill:n}}]}},name:"bug",theme:"twotone"},RZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:EZt}))},$Zt=d.forwardRef(RZt),OZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM612 746H412V546h200v200zm268-268H680V278h200v200z"}}]},name:"build",theme:"filled"},TZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:OZt}))},IZt=d.forwardRef(TZt),MZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"}}]},name:"build",theme:"outlined"},PZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:MZt}))},_Zt=d.forwardRef(PZt),AZt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M144 546h200v200H144zm268-268h200v200H412z",fill:n}},{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM344 746H144V546h200v200zm268 0H412V546h200v200zm0-268H412V278h200v200zm268 0H680V278h200v200z",fill:t}}]}},name:"build",theme:"twotone"},DZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:AZt}))},LZt=d.forwardRef(DZt),FZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M348 676.1C250 619.4 184 513.4 184 392c0-181.1 146.9-328 328-328s328 146.9 328 328c0 121.4-66 227.4-164 284.1V792c0 17.7-14.3 32-32 32H380c-17.7 0-32-14.3-32-32V676.1zM392 888h240c4.4 0 8 3.6 8 8v32c0 17.7-14.3 32-32 32H416c-17.7 0-32-14.3-32-32v-32c0-4.4 3.6-8 8-8z"}}]},name:"bulb",theme:"filled"},NZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:FZt}))},kZt=d.forwardRef(NZt),zZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},BZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:zZt}))},HZt=d.forwardRef(BZt),jZt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 136c-141.4 0-256 114.6-256 256 0 92.5 49.4 176.3 128.1 221.8l35.9 20.8V752h184V634.6l35.9-20.8C718.6 568.3 768 484.5 768 392c0-141.4-114.6-256-256-256z",fill:n}},{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z",fill:t}}]}},name:"bulb",theme:"twotone"},VZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jZt}))},GZt=d.forwardRef(VZt),WZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM440.2 765h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 01-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zm7.8-382c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48zm328 369c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-104c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-265c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48z"}}]},name:"calculator",theme:"filled"},UZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:WZt}))},qZt=d.forwardRef(UZt),KZt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 00-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-36 732H180V180h664v664z"}}]},name:"calculator",theme:"outlined"},YZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:KZt}))},XZt=d.forwardRef(YZt),QZt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm256.2-75h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 01-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zM576 335c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 265c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 104c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zM248 335c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48z",fill:n}},{tag:"path",attrs:{d:"M383.5 675l61.3-74.8c4.3-5.2.7-13.1-5.9-13.1h-50.8c-2.3 0-4.4 1-5.9 2.9l-34 41.6-34-41.6a7.69 7.69 0 00-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.4-1 5.9-2.9l35.5-43.5 35.5 43.5c1.4 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 6-13.2L383.5 675zM251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 369h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4z",fill:t}}]}},name:"calculator",theme:"twotone"},ZZt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:QZt}))},JZt=d.forwardRef(ZZt),eJt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 880c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V460H112v420zm768-696H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v176h800V216c0-17.7-14.3-32-32-32z"}}]},name:"calendar",theme:"filled"},tJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:eJt}))},nJt=d.forwardRef(tJt),rJt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z",fill:n}},{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z",fill:t}}]}},name:"calendar",theme:"twotone"},iJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:rJt}))},oJt=d.forwardRef(iJt),sJt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 260H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 260H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V340c0-44.2-35.8-80-80-80zM512 716c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160zm-96-160a96 96 0 10192 0 96 96 0 10-192 0z"}}]},name:"camera",theme:"filled"},aJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:sJt}))},lJt=d.forwardRef(aJt),cJt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"}}]},name:"camera",theme:"outlined"},uJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:cJt}))},dJt=d.forwardRef(uJt),fJt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 320H677.2l-17.1-47.8-22.9-64.2H386.7l-22.9 64.2-17.1 47.8H160c-4.4 0-8 3.6-8 8v456c0 4.4 3.6 8 8 8h704c4.4 0 8-3.6 8-8V328c0-4.4-3.6-8-8-8zM512 704c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160z",fill:n}},{tag:"path",attrs:{d:"M512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z",fill:t}},{tag:"path",attrs:{d:"M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456z",fill:t}}]}},name:"camera",theme:"twotone"},hJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:fJt}))},gJt=d.forwardRef(hJt),pJt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M959 413.4L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM220 418l72.7-199.9.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220z"}}]},name:"car",theme:"filled"},mJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:pJt}))},vJt=d.forwardRef(mJt),CJt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1080 0 40 40 0 10-80 0zm239-167.6L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"car",theme:"outlined"},yJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:CJt}))},bJt=d.forwardRef(yJt),SJt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M199.6 474L184 517v237h656V517l-15.6-43H199.6zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z",fill:n}},{tag:"path",attrs:{d:"M720 581a40 40 0 1080 0 40 40 0 10-80 0z",fill:t}},{tag:"path",attrs:{d:"M959 413.4L935.3 372a8 8 0 00-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 00-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 00-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 003-10.8zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM840 754H184V517l15.6-43h624.8l15.6 43v237z",fill:t}},{tag:"path",attrs:{d:"M224 581a40 40 0 1080 0 40 40 0 10-80 0zm420 23h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"car",theme:"twotone"},wJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:SJt}))},xJt=d.forwardRef(wJt),EJt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},RJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:EJt}))},yYe=d.forwardRef(RJt),$Jt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},OJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$Jt}))},bYe=d.forwardRef(OJt),TJt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"}}]},name:"caret-left",theme:"filled"},IJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:TJt}))},MJt=d.forwardRef(IJt),PJt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"}}]},name:"caret-left",theme:"outlined"},_Jt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:PJt}))},AJt=d.forwardRef(_Jt),DJt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"filled"},LJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:DJt}))},FJt=d.forwardRef(LJt),NJt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},kJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:NJt}))},SYe=d.forwardRef(kJt),zJt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"filled"},BJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:zJt}))},HJt=d.forwardRef(BJt),jJt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},VJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jJt}))},GJt=d.forwardRef(VJt),WJt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM694.5 432.7L481.9 725.4a16.1 16.1 0 01-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z"}}]},name:"carry-out",theme:"filled"},UJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:WJt}))},qJt=d.forwardRef(UJt),KJt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z"}}]},name:"carry-out",theme:"outlined"},YJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:KJt}))},XJt=d.forwardRef(YJt),QJt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z",fill:t}},{tag:"path",attrs:{d:"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-17.5 128.8L481.9 725.5a16.1 16.1 0 01-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.9-6.6 13-6.6H688c6.5 0 10.3 7.4 6.5 12.8z",fill:n}},{tag:"path",attrs:{d:"M688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z",fill:t}}]}},name:"carry-out",theme:"twotone"},ZJt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:QJt}))},JJt=d.forwardRef(ZJt),een={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},ten=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:een}))},cme=d.forwardRef(ten),nen={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:n}},{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z",fill:t}}]}},name:"check-circle",theme:"twotone"},ren=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nen}))},ien=d.forwardRef(ren),oen={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM695.5 365.7l-210.6 292a31.8 31.8 0 01-51.7 0L308.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H689c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-square",theme:"filled"},sen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oen}))},aen=d.forwardRef(sen),len={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"check-square",theme:"outlined"},cen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:len}))},uen=d.forwardRef(cen),den={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm130-367.8h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H688c6.5 0 10.3 7.4 6.5 12.7l-210.6 292a31.8 31.8 0 01-51.7 0L307.5 484.9c-3.8-5.3 0-12.7 6.5-12.7z",fill:n}},{tag:"path",attrs:{d:"M432.2 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7h-46.9c-10.3 0-19.9 5-25.9 13.3L458 584.3l-71.2-98.8c-6-8.4-15.7-13.3-25.9-13.3H314c-6.5 0-10.3 7.4-6.5 12.7l124.7 172.8z",fill:t}}]}},name:"check-square",theme:"twotone"},fen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:den}))},hen=d.forwardRef(fen),gen={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512 589.5 371.8 512 371.8 371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2 180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0096 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7 653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z"}}]},name:"chrome",theme:"filled"},pen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gen}))},men=d.forwardRef(pen),ven={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"},Cen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ven}))},yen=d.forwardRef(Cen),ben={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-63.6 656c-103 0-162.4-68.6-162.4-182.6v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-4-46.1-37.6-77.6-87-77.6-61.1 0-95.6 45.4-95.6 126.9v49.3c0 80.3 34.5 125.1 95.6 125.1 49.3 0 82.8-29.5 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z"}}]},name:"ci-circle",theme:"filled"},Sen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ben}))},wen=d.forwardRef(Sen),xen={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm218-572.1h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z"}}]},name:"ci-circle",theme:"outlined"},Een=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xen}))},Ren=d.forwardRef(Een),$en={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-63.5 522.8c49.3 0 82.8-29.4 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5C345.4 720 286 651.4 286 537.4v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-3.9-46.1-37.5-77.6-87-77.6-61.1 0-95.6 45.4-95.7 126.8v49.3c0 80.3 34.5 125.2 95.6 125.2zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z",fill:n}},{tag:"path",attrs:{d:"M730 311.9h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z",fill:t}}]}},name:"ci-circle",theme:"twotone"},Oen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$en}))},Ten=d.forwardRef(Oen),Ien={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm218-572.1h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z"}}]},name:"ci",theme:"outlined"},Men=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ien}))},Pen=d.forwardRef(Men),_en={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-63.5 522.8c49.3 0 82.8-29.4 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5C345.4 720 286 651.4 286 537.4v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-3.9-46.1-37.5-77.6-87-77.6-61.1 0-95.6 45.4-95.7 126.8v49.3c0 80.3 34.5 125.2 95.6 125.2zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z",fill:n}},{tag:"path",attrs:{d:"M730 311.9h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z",fill:t}}]}},name:"ci",theme:"twotone"},Aen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_en}))},Den=d.forwardRef(Aen),Len={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},Fen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Len}))},Nen=d.forwardRef(Fen),ken={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z"}}]},name:"clock-circle",theme:"filled"},zen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ken}))},Ben=d.forwardRef(zen),Hen={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm176.5 509.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z",fill:n}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z",fill:t}}]}},name:"clock-circle",theme:"twotone"},jen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Hen}))},Ven=d.forwardRef(jen),Gen={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Wen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Gen}))},wYe=d.forwardRef(Wen),Uen={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 01-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z",fill:n}},{tag:"path",attrs:{d:"M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z",fill:t}}]}},name:"close-circle",theme:"twotone"},qen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Uen}))},Ken=d.forwardRef(qen),Yen={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zM639.98 338.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-square",theme:"filled"},Xen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Yen}))},Qen=d.forwardRef(Xen),Zen={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-square",theme:"outlined"},Jen=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zen}))},etn=d.forwardRef(Jen),ttn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm163.9-473.9A7.95 7.95 0 01354 353h58.9c4.7 0 9.2 2.1 12.3 5.7L512 462.2l86.8-103.5c3-3.6 7.5-5.7 12.3-5.7H670c6.8 0 10.5 7.9 6.1 13.1L553.8 512l122.3 145.9c4.4 5.2.7 13.1-6.1 13.1h-58.9c-4.7 0-9.2-2.1-12.3-5.7L512 561.8l-86.8 103.5c-3 3.6-7.5 5.7-12.3 5.7H354c-6.8 0-10.5-7.9-6.1-13.1L470.2 512 347.9 366.1z",fill:n}},{tag:"path",attrs:{d:"M354 671h58.9c4.8 0 9.3-2.1 12.3-5.7L512 561.8l86.8 103.5c3.1 3.6 7.6 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.3-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.8 0-9.3 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3.1-3.6-7.6-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 00354 671z",fill:t}}]}},name:"close-square",theme:"twotone"},ntn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ttn}))},rtn=d.forwardRef(ntn),itn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-download",theme:"outlined"},otn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:itn}))},stn=d.forwardRef(otn),atn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud",theme:"filled"},ltn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:atn}))},ctn=d.forwardRef(ltn),utn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 01-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 01140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0166.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z"}}]},name:"cloud",theme:"outlined"},dtn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:utn}))},xYe=d.forwardRef(dtn),ftn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},htn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ftn}))},gtn=d.forwardRef(htn),ptn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"},mtn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ptn}))},vtn=d.forwardRef(mtn),Ctn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M791.9 492l-37.8-10-13.8-36.5c-8.6-22.7-20.6-44.1-35.7-63.4a245.73 245.73 0 00-52.4-49.9c-41.1-28.9-89.5-44.2-140-44.2s-98.9 15.3-140 44.2a245.6 245.6 0 00-52.4 49.9 240.47 240.47 0 00-35.7 63.4l-13.9 36.6-37.9 9.9a125.7 125.7 0 00-66.1 43.7A123.1 123.1 0 00140 612c0 33.1 12.9 64.3 36.3 87.7 23.4 23.4 54.5 36.3 87.6 36.3h496.2c33.1 0 64.2-12.9 87.6-36.3A123.3 123.3 0 00884 612c0-56.2-37.8-105.5-92.1-120z",fill:n}},{tag:"path",attrs:{d:"M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 01-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 01140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0166.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z",fill:t}}]}},name:"cloud",theme:"twotone"},ytn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ctn}))},btn=d.forwardRef(ytn),Stn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},wtn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Stn}))},xtn=d.forwardRef(wtn),Etn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"},Rtn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Etn}))},$tn=d.forwardRef(Rtn),Otn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM513.1 518.1l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 01-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3zM716 673c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8h185c4.1 0 7.5 3.6 7.5 8v48z"}}]},name:"code",theme:"filled"},Ttn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Otn}))},Itn=d.forwardRef(Ttn),Mtn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},Ptn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Mtn}))},_tn=d.forwardRef(Ptn),Atn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm243.7 589.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zM307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zm203.9-151.8L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8zm20 352l97.3-56.2v-94.1l87-49.5V418.5L531.8 525z"}}]},name:"code-sandbox-circle",theme:"filled"},Dtn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Atn}))},Ltn=d.forwardRef(Dtn),Ftn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M709.6 210l.4-.2h.2L512 96 313.9 209.8h-.2l.7.3L151.5 304v416L512 928l360.5-208V304l-162.9-94zM482.7 843.6L339.6 761V621.4L210 547.8V372.9l272.7 157.3v313.4zM238.2 321.5l134.7-77.8 138.9 79.7 139.1-79.9 135.2 78-273.9 158-274-158zM814 548.3l-128.8 73.1v139.1l-143.9 83V530.4L814 373.1v175.2z"}}]},name:"code-sandbox",theme:"outlined"},Ntn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ftn}))},ktn=d.forwardRef(Ntn),ztn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM755.7 653.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zm-223.9 83.7l97.3-56.2v-94.1l87-49.5V418.5L531.8 525zm-20-352L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8z"}}]},name:"code-sandbox-square",theme:"filled"},Btn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ztn}))},Htn=d.forwardRef(Btn),jtn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm339.5-223h185c4.1 0 7.5 3.6 7.5 8v48c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8zM308 610.3c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 01-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7z",fill:n}},{tag:"path",attrs:{d:"M321.1 679.1l192-161c3.9-3.2 3.9-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48z",fill:t}}]}},name:"code",theme:"twotone"},Vtn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jtn}))},Gtn=d.forwardRef(Vtn),Wtn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 01-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 01-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 01.8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z"}}]},name:"codepen-circle",theme:"filled"},Utn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Wtn}))},qtn=d.forwardRef(Utn),Ktn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 01-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 01-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 01.8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z"}}]},name:"codepen-circle",theme:"outlined"},Ytn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ktn}))},Xtn=d.forwardRef(Ytn),Qtn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M911.7 385.3l-.3-1.5c-.2-1-.3-1.9-.6-2.9-.2-.6-.4-1.1-.5-1.7-.3-.8-.5-1.7-.9-2.5-.2-.6-.5-1.1-.8-1.7-.4-.8-.8-1.5-1.2-2.3-.3-.5-.6-1.1-1-1.6-.8-1.2-1.7-2.4-2.6-3.6-.5-.6-1.1-1.3-1.7-1.9-.4-.5-.9-.9-1.4-1.3-.6-.6-1.3-1.1-1.9-1.6-.5-.4-1-.8-1.6-1.2-.2-.1-.4-.3-.6-.4L531.1 117.8a34.3 34.3 0 00-38.1 0L127.3 361.3c-.2.1-.4.3-.6.4-.5.4-1 .8-1.6 1.2-.7.5-1.3 1.1-1.9 1.6-.5.4-.9.9-1.4 1.3-.6.6-1.2 1.2-1.7 1.9-1 1.1-1.8 2.3-2.6 3.6-.3.5-.7 1-1 1.6-.4.7-.8 1.5-1.2 2.3-.3.5-.5 1.1-.8 1.7-.3.8-.6 1.7-.9 2.5-.2.6-.4 1.1-.5 1.7-.2.9-.4 1.9-.6 2.9l-.3 1.5c-.2 1.5-.3 3-.3 4.5v243.5c0 1.5.1 3 .3 4.5l.3 1.5.6 2.9c.2.6.3 1.1.5 1.7.3.9.6 1.7.9 2.5.2.6.5 1.1.8 1.7.4.8.7 1.5 1.2 2.3.3.5.6 1.1 1 1.6.5.7.9 1.4 1.5 2.1l1.2 1.5c.5.6 1.1 1.3 1.7 1.9.4.5.9.9 1.4 1.3.6.6 1.3 1.1 1.9 1.6.5.4 1 .8 1.6 1.2.2.1.4.3.6.4L493 905.7c5.6 3.8 12.3 5.8 19.1 5.8 6.6 0 13.3-1.9 19.1-5.8l365.6-243.5c.2-.1.4-.3.6-.4.5-.4 1-.8 1.6-1.2.7-.5 1.3-1.1 1.9-1.6.5-.4.9-.9 1.4-1.3.6-.6 1.2-1.2 1.7-1.9l1.2-1.5 1.5-2.1c.3-.5.7-1 1-1.6.4-.8.8-1.5 1.2-2.3.3-.5.5-1.1.8-1.7.3-.8.6-1.7.9-2.5.2-.5.4-1.1.5-1.7.3-.9.4-1.9.6-2.9l.3-1.5c.2-1.5.3-3 .3-4.5V389.8c-.3-1.5-.4-3-.6-4.5zM546.4 210.5l269.4 179.4-120.3 80.4-149-99.6V210.5zm-68.8 0v160.2l-149 99.6-120.3-80.4 269.3-179.4zM180.7 454.1l86 57.5-86 57.5v-115zm296.9 358.5L208.3 633.2l120.3-80.4 149 99.6v160.2zM512 592.8l-121.6-81.2L512 430.3l121.6 81.2L512 592.8zm34.4 219.8V652.4l149-99.6 120.3 80.4-269.3 179.4zM843.3 569l-86-57.5 86-57.5v115z"}}]},name:"codepen",theme:"outlined"},Ztn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Qtn}))},Jtn=d.forwardRef(Ztn),enn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723.1 428L535.9 303.4v111.3l103.6 69.1zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zm23.9 154.2v111.3L723.1 597l-83.6-55.8zm-151.4-69.1L300.9 597l187.2 124.6V610.3l-103.6-69.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-90 485c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 01-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 01-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 01.8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-47.8-44.6v-79.8l-59.8 39.9zm-460.4-79.8v79.8l59.8-39.9zm206.3-57.9V303.4L300.9 428l83.6 55.8z"}}]},name:"codepen-square",theme:"filled"},tnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:enn}))},nnn=d.forwardRef(tnn),rnn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z"}}]},name:"coffee",theme:"outlined"},inn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:rnn}))},onn=d.forwardRef(inn),snn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z"}}]},name:"column-height",theme:"outlined"},ann=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:snn}))},lnn=d.forwardRef(ann),cnn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"},unn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:cnn}))},dnn=d.forwardRef(unn),fnn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},hnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:fnn}))},gnn=d.forwardRef(hnn),pnn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM327.3 702.4c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2l98.7-225.5 132.1 132.1-225.5 98.7zm375.1-375.1l-98.7 225.5-132.1-132.1L697.1 322c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z"}}]},name:"compass",theme:"filled"},mnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:pnn}))},vnn=d.forwardRef(mnn),Cnn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z"}}]},name:"compass",theme:"outlined"},ynn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Cnn}))},bnn=d.forwardRef(ynn),Snn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM327.6 701.7c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2L421 470.9 553.1 603l-225.5 98.7zm375.1-375.1L604 552.1 471.9 420l225.5-98.7c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z",fill:n}},{tag:"path",attrs:{d:"M322.3 696.4c-.4 1-.4 2.2 0 3.2.9 2.1 3.3 3 5.3 2.1L553.1 603 421 470.9l-98.7 225.5zm375.1-375.1L471.9 420 604 552.1l98.7-225.5c.4-1.1.4-2.2 0-3.2-.9-2.1-3.3-3-5.3-2.1z",fill:t}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}}]}},name:"compass",theme:"twotone"},wnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Snn}))},xnn=d.forwardRef(wnn),Enn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"},Rnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Enn}))},$nn=d.forwardRef(Rnn),Onn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"},Tnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Onn}))},Inn=d.forwardRef(Tnn),Mnn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM661 736h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.6-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H363a8 8 0 01-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 01-29.1-75.5c0-61.9 49.9-112 111.4-112 61.5 0 111.4 50.1 111.4 112 0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zM512 474c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52c28.5 0 51.7-23.3 51.7-52s-23.2-52-51.7-52z"}}]},name:"contacts",theme:"filled"},Pnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Mnn}))},_nn=d.forwardRef(Pnn),Ann={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"},Dnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ann}))},Lnn=d.forwardRef(Dnn),Fnn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M460.3 526a51.7 52 0 10103.4 0 51.7 52 0 10-103.4 0z",fill:n}},{tag:"path",attrs:{d:"M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM661 736h-43.8c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 39.9-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5h-43.9a8 8 0 01-8-8.4c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.7 26.4 71.9 72.8 74.7 126.1a8 8 0 01-8 8.4z",fill:n}},{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52z",fill:t}},{tag:"path",attrs:{d:"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z",fill:t}}]}},name:"contacts",theme:"twotone"},Nnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Fnn}))},knn=d.forwardRef(Nnn),znn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v529c0-.6.4-1 1-1h219.3l5.2 24.7C397.6 708.5 450.8 752 512 752s114.4-43.5 126.4-103.3l5.2-24.7H863c.6 0 1 .4 1 1V96c0-17.7-14.3-32-32-32zM712 493c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm0-160c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm151 354H694.1c-11.6 32.8-32 62.3-59.1 84.7-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 01-59.1-84.7H161c-.6 0-1-.4-1-1v242c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V686c0 .6-.4 1-1 1z"}}]},name:"container",theme:"filled"},Bnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:znn}))},Hnn=d.forwardRef(Bnn),jnn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"},Vnn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jnn}))},Gnn=d.forwardRef(Vnn),Wnn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M635 771.7c-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 01-59.1-84.7H232v201h560V687h-97.9c-11.6 32.8-32 62.3-59.1 84.7z",fill:n}},{tag:"path",attrs:{d:"M320 501h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z",fill:t}},{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v201zm0-264H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v488z",fill:t}},{tag:"path",attrs:{d:"M320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z",fill:t}}]}},name:"container",theme:"twotone"},Unn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Wnn}))},qnn=d.forwardRef(Unn),Knn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM404 683v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99zm279.6-143.9c.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1zM616 440a36 36 0 1072 0 36 36 0 10-72 0zM403.4 566.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 00-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5z"}}]},name:"control",theme:"filled"},Ynn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Knn}))},Xnn=d.forwardRef(Ynn),Qnn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z"}}]},name:"control",theme:"outlined"},Znn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Qnn}))},Jnn=d.forwardRef(Znn),ern={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M616 440a36 36 0 1072 0 36 36 0 10-72 0zM340.4 601.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 00-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5z",fill:n}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm436.4-499.1c-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1zM340 485V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99z",fill:n}},{tag:"path",attrs:{d:"M340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c41.7-13.5 72-52.8 72-99s-30.3-85.4-72-99V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c-41.7 13.5-72 52.8-72 99s30.3 85.4 72 99zm.1-116c.1-.2.2-.3.3-.5l1.5-2.4c0-.1.1-.1.1-.2l.9-1.2c0-.1.1-.2.2-.3 1-1.2 2.1-2.5 3.2-3.6l.2-.2c.4-.4.8-.7 1.2-1.1.8-.7 1.7-1.4 2.6-2.1h.1l1.2-.9c.1-.1.3-.2.4-.3 1.3-.8 2.6-1.5 3.9-2.2.2-.2.5-.3.7-.4.4-.2.7-.3 1.1-.5.3-.1.7-.3 1-.4.5-.1 1-.3 1.5-.5.4-.1.9-.3 1.3-.4l.9-.3 1.4-.3c.2-.1.5-.1.7-.2.7-.2 1.4-.3 2.1-.4.2-.1.4-.1.6-.1.5-.1 1.1-.2 1.7-.2.3-.1.5-.1.7-.1.8-.1 1.5-.1 2.3-.1s1.5.1 2.3.1c.3.1.5.1.7.1.6.1 1.1.1 1.7.2.2.1.4.1.6.1.7.1 1.4.3 2.1.4.2.1.5.1.7.2l1.4.3.9.3c.4.1.9.3 1.3.4.5.1 1 .3 1.5.5.3.1.7.3 1 .4.4.2.7.3 1.1.5.2.2.5.3.7.4 1.4.6 2.7 1.4 3.9 2.2.1.1.3.2.4.3l1.2.9h.1c.9.6 1.8 1.3 2.6 2.1.4.3.8.7 1.2 1.1l.2.2c1.2 1.1 2.2 2.3 3.2 3.6 0 .1.1.2.2.3l.9 1.2c0 .1.1.1.1.2l1.5 2.4A36.03 36.03 0 01408 584c0 6.1-1.6 11.9-4.3 17-.1.2-.2.3-.3.5l-1.5 2.4c0 .1-.1.1-.1.2l-.9 1.2c0 .1-.1.2-.2.3-1 1.2-2.1 2.5-3.2 3.6l-.2.2c-.4.4-.8.7-1.2 1.1-.8.7-1.7 1.4-2.6 2.1h-.1l-1.2.9c-.1.1-.3.2-.4.3-1.3.8-2.6 1.5-3.9 2.2-.2.2-.5.3-.7.4-.4.2-.7.3-1.1.5-.3.1-.7.3-1 .4-.5.1-1 .3-1.5.5-.4.1-.9.3-1.3.4l-.9.3-1.4.3c-.2.1-.5.1-.7.2-.7.2-1.4.3-2.1.4-.2.1-.4.1-.6.1-.5.1-1.1.2-1.7.2-.3.1-.5.1-.7.1-.8.1-1.5.1-2.3.1s-1.5-.1-2.3-.1c-.3-.1-.5-.1-.7-.1-.6-.1-1.1-.1-1.7-.2-.2-.1-.4-.1-.6-.1-.7-.1-1.4-.3-2.1-.4-.2-.1-.5-.1-.7-.2l-1.4-.3-.9-.3c-.4-.1-.9-.3-1.3-.4-.5-.1-1-.3-1.5-.5-.3-.1-.7-.3-1-.4-.4-.2-.7-.3-1.1-.5-.2-.2-.5-.3-.7-.4-1.4-.6-2.7-1.4-3.9-2.2-.1-.1-.3-.2-.4-.3l-1.2-.9h-.1c-.9-.6-1.8-1.3-2.6-2.1-.4-.3-.8-.7-1.2-1.1l-.2-.2c-1.2-1.1-2.2-2.3-3.2-3.6 0-.1-.1-.2-.2-.3l-.9-1.2c0-.1-.1-.1-.1-.2l-1.5-2.4c-.1-.2-.2-.3-.3-.5-2.7-5-4.3-10.9-4.3-17s1.6-11.9 4.3-17zm280.3-27.9c-.1 0-.2-.1-.4-.1v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-.1 0-.2.1-.4.1 42-13.4 72.4-52.7 72.4-99.1 0-46.4-30.4-85.7-72.4-99.1.1 0 .2.1.4.1v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c.1 0 .2-.1.4-.1-42 13.4-72.4 52.7-72.4 99.1 0 46.4 30.4 85.7 72.4 99.1zM652 404c19.9 0 36 16.1 36 36s-16.1 36-36 36-36-16.1-36-36 16.1-36 36-36z",fill:t}}]}},name:"control",theme:"twotone"},trn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ern}))},nrn=d.forwardRef(trn),rrn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM382 896h-.2L232 746.2v-.2h150v150z"}}]},name:"copy",theme:"filled"},irn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:rrn}))},orn=d.forwardRef(irn),srn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},arn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:srn}))},EYe=d.forwardRef(arn),lrn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M232 706h142c22.1 0 40 17.9 40 40v142h250V264H232v442z",fill:n}},{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32z",fill:t}},{tag:"path",attrs:{d:"M704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z",fill:t}}]}},name:"copy",theme:"twotone"},crn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lrn}))},urn=d.forwardRef(crn),drn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm5.4 670c-110 0-173.4-73.2-173.4-194.9v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.6-3.2-8-7.4-4-49.5-40-83.4-93-83.4-65.3 0-102.1 48.5-102.1 135.5v52.6c0 85.7 36.9 133.6 102.1 133.6 52.8 0 88.7-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4z"}}]},name:"copyright-circle",theme:"filled"},frn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:drn}))},hrn=d.forwardRef(frn),grn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright-circle",theme:"outlined"},prn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:grn}))},mrn=d.forwardRef(prn),vrn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm5.5 533c52.9 0 88.8-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4C407.4 734 344 660.8 344 539.1v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.7-3.2-8-7.4-4-49.6-40-83.4-93-83.4-65.2 0-102.1 48.5-102.2 135.5v52.6c0 85.7 36.8 133.6 102.1 133.6z",fill:n}},{tag:"path",attrs:{d:"M517.6 351.3c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z",fill:t}}]}},name:"copyright-circle",theme:"twotone"},Crn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vrn}))},yrn=d.forwardRef(Crn),brn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},Srn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:brn}))},wrn=d.forwardRef(Srn),xrn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm5.5 533c52.9 0 88.8-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4C407.4 734 344 660.8 344 539.1v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.7-3.2-8-7.4-4-49.6-40-83.4-93-83.4-65.2 0-102.1 48.5-102.2 135.5v52.6c0 85.7 36.8 133.6 102.1 133.6z",fill:n}},{tag:"path",attrs:{d:"M517.6 351.3c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z",fill:t}}]}},name:"copyright",theme:"twotone"},Ern=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xrn}))},Rrn=d.forwardRef(Ern),$rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v160h896V192c0-17.7-14.3-32-32-32zM64 832c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V440H64v392zm579-184c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72z"}}]},name:"credit-card",theme:"filled"},Orn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$rn}))},Trn=d.forwardRef(Orn),Irn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-792 72h752v120H136V232zm752 560H136V440h752v352zm-237-64h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z"}}]},name:"credit-card",theme:"outlined"},Mrn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Irn}))},Prn=d.forwardRef(Mrn),_rn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 792h752V440H136v352zm507-144c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72zM136 232h752v120H136z",fill:n}},{tag:"path",attrs:{d:"M651 728h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z",fill:t}},{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V440h752v352zm0-440H136V232h752v120z",fill:t}}]}},name:"credit-card",theme:"twotone"},Arn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_rn}))},Drn=d.forwardRef(Arn),Lrn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zM512 734.2c-62.1 0-112.6-50.5-112.6-112.6S449.9 509 512 509s112.6 50.5 112.6 112.6S574.1 734.2 512 734.2zm0-160.9c-26.6 0-48.2 21.6-48.2 48.3 0 26.6 21.6 48.3 48.2 48.3s48.2-21.6 48.2-48.3c0-26.6-21.6-48.3-48.2-48.3z"}}]},name:"crown",theme:"filled"},Frn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Lrn}))},Nrn=d.forwardRef(Frn),krn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z"}}]},name:"crown",theme:"outlined"},zrn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:krn}))},Brn=d.forwardRef(zrn),Hrn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M911.9 283.9v.5L835.5 865c-1 8-7.9 14-15.9 14H204.5c-8.1 0-14.9-6.1-16-14l-76.4-580.6v-.6 1.6L188.5 866c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.1-.5.1-1 0-1.5z",fill:n}},{tag:"path",attrs:{d:"M773.6 810.6l53.9-409.4-139.8 86.1L512 252.9 336.3 487.3l-139.8-86.1 53.8 409.4h523.3zm-374.2-189c0-62.1 50.5-112.6 112.6-112.6s112.6 50.5 112.6 112.6v1c0 62.1-50.5 112.6-112.6 112.6s-112.6-50.5-112.6-112.6v-1z",fill:n}},{tag:"path",attrs:{d:"M512 734.2c61.9 0 112.3-50.2 112.6-112.1v-.5c0-62.1-50.5-112.6-112.6-112.6s-112.6 50.5-112.6 112.6v.5c.3 61.9 50.7 112.1 112.6 112.1zm0-160.9c26.6 0 48.2 21.6 48.2 48.3 0 26.6-21.6 48.3-48.2 48.3s-48.2-21.6-48.2-48.3c0-26.6 21.6-48.3 48.2-48.3z",fill:t}},{tag:"path",attrs:{d:"M188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6v-.5c.3-6.4-6.7-10.8-12.3-7.4L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.5-3.4-12.6.9-12.2 7.3v.6L188.5 865zm147.8-377.7L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4H250.3l-53.8-409.4 139.8 86.1z",fill:t}}]}},name:"crown",theme:"twotone"},jrn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Hrn}))},Vrn=d.forwardRef(jrn),Grn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384z"}}]},name:"customer-service",theme:"filled"},Wrn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Grn}))},Urn=d.forwardRef(Wrn),qrn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},Krn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qrn}))},Yrn=d.forwardRef(Krn),Xrn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 632h128v192H696zm-496 0h128v192H200z",fill:n}},{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z",fill:t}}]}},name:"customer-service",theme:"twotone"},Qrn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Xrn}))},Zrn=d.forwardRef(Qrn),Jrn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z"}}]},name:"dash",theme:"outlined"},ein=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Jrn}))},tin=d.forwardRef(ein),nin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM482 232c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.5l-31.1 31.1a8.03 8.03 0 01-11.3 0L261.7 352a8.03 8.03 0 010-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.6l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 01-79.2 0 55.95 55.95 0 010-79.2 55.87 55.87 0 0154.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.1 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 010-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 01-11.3 0zM846 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44z"}}]},name:"dashboard",theme:"filled"},rin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nin}))},iin=d.forwardRef(rin),oin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},sin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oin}))},ain=d.forwardRef(sin),lin={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 188c-99.3 0-192.7 38.7-263 109-70.3 70.2-109 163.6-109 263 0 105.6 44.5 205.5 122.6 276h498.8A371.12 371.12 0 00884 560c0-99.3-38.7-192.7-109-263-70.2-70.3-163.6-109-263-109zm-30 44c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.4l-31.1 31.1a8.03 8.03 0 01-11.3 0l-56.6-56.6a8.03 8.03 0 010-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.5l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 01-79.2 0 55.95 55.95 0 010-79.2 55.87 55.87 0 0154.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.2 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 010-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 01-11.3 0zM846 538v44c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8z",fill:n}},{tag:"path",attrs:{d:"M623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8z",fill:t}},{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276z",fill:t}},{tag:"path",attrs:{d:"M762.7 340.8l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zM750 538v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zM304.1 309.7a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"dashboard",theme:"twotone"},cin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lin}))},uin=d.forwardRef(cin),din={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"}}]},name:"database",theme:"filled"},fin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:din}))},hin=d.forwardRef(fin),gin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"},pin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gin}))},min=d.forwardRef(pin),vin={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M232 616h560V408H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 888h560V680H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 344h560V136H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z",fill:n}},{tag:"path",attrs:{d:"M304 512a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0-544a40 40 0 1080 0 40 40 0 10-80 0z",fill:t}},{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z",fill:t}}]}},name:"database",theme:"twotone"},Cin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vin}))},yin=d.forwardRef(Cin),bin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M651.1 641.9a7.84 7.84 0 00-5.1-1.9h-54.7c-2.4 0-4.6 1.1-6.1 2.9L512 730.7l-73.1-87.8a8.1 8.1 0 00-6.1-2.9H378c-1.9 0-3.7.7-5.1 1.9a7.97 7.97 0 00-1 11.3L474.2 776 371.8 898.9a8.06 8.06 0 006.1 13.2h54.7c2.4 0 4.6-1.1 6.1-2.9l73.1-87.8 73.1 87.8a8.1 8.1 0 006.1 2.9h55c1.9 0 3.7-.7 5.1-1.9 3.4-2.8 3.9-7.9 1-11.3L549.8 776l102.4-122.9c2.8-3.4 2.3-8.4-1.1-11.2zM472 544h80c4.4 0 8-3.6 8-8V120c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8zM350 386H184V136c0-3.3-2.7-6-6-6h-60c-3.3 0-6 2.7-6 6v292c0 16.6 13.4 30 30 30h208c3.3 0 6-2.7 6-6v-60c0-3.3-2.7-6-6-6zm556-256h-60c-3.3 0-6 2.7-6 6v250H674c-3.3 0-6 2.7-6 6v60c0 3.3 2.7 6 6 6h208c16.6 0 30-13.4 30-30V136c0-3.3-2.7-6-6-6z"}}]},name:"delete-column",theme:"outlined"},Sin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bin}))},win=d.forwardRef(Sin),xin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},Ein=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xin}))},Rin=d.forwardRef(Ein),$in={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Oin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$in}))},Dg=d.forwardRef(Oin),Tin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M819.8 512l102.4-122.9a8.06 8.06 0 00-6.1-13.2h-54.7c-2.4 0-4.6 1.1-6.1 2.9L782 466.7l-73.1-87.8a8.1 8.1 0 00-6.1-2.9H648c-1.9 0-3.7.7-5.1 1.9a7.97 7.97 0 00-1 11.3L744.2 512 641.8 634.9a8.06 8.06 0 006.1 13.2h54.7c2.4 0 4.6-1.1 6.1-2.9l73.1-87.8 73.1 87.8a8.1 8.1 0 006.1 2.9h55c1.9 0 3.7-.7 5.1-1.9 3.4-2.8 3.9-7.9 1-11.3L819.8 512zM536 464H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h416c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-84 204h-60c-3.3 0-6 2.7-6 6v166H136c-3.3 0-6 2.7-6 6v60c0 3.3 2.7 6 6 6h292c16.6 0 30-13.4 30-30V674c0-3.3-2.7-6-6-6zM136 184h250v166c0 3.3 2.7 6 6 6h60c3.3 0 6-2.7 6-6V142c0-16.6-13.4-30-30-30H136c-3.3 0-6 2.7-6 6v60c0 3.3 2.7 6 6 6z"}}]},name:"delete-row",theme:"outlined"},Iin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Tin}))},Min=d.forwardRef(Iin),Pin={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M292.7 840h438.6l24.2-512h-487z",fill:n}},{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z",fill:t}}]}},name:"delete",theme:"twotone"},_in=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Pin}))},Ain=d.forwardRef(_in),Din={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},Lin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Din}))},Fin=d.forwardRef(Lin),Nin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"},kin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Nin}))},zin=d.forwardRef(kin),Bin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},Hin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Bin}))},jin=d.forwardRef(Hin),Vin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z"}}]},name:"diff",theme:"filled"},Gin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Vin}))},Win=d.forwardRef(Gin),Uin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z"}}]},name:"diff",theme:"outlined"},qin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Uin}))},Kin=d.forwardRef(qin),Yin={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M232 264v624h432V413.8L514.2 264H232zm336 489c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-262v42c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7z",fill:n}},{tag:"path",attrs:{d:"M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z",fill:t}},{tag:"path",attrs:{d:"M553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888z",fill:t}},{tag:"path",attrs:{d:"M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7z",fill:t}}]}},name:"diff",theme:"twotone"},Xin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Yin}))},Qin=d.forwardRef(Xin),Zin={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},Jin=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zin}))},eon=d.forwardRef(Jin),ton={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm227 385.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z"}}]},name:"dingtalk-circle",theme:"filled"},non=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ton}))},ron=d.forwardRef(non),ion={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingtalk",theme:"outlined"},oon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ion}))},son=d.forwardRef(oon),aon={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM739 449.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z"}}]},name:"dingtalk-square",theme:"filled"},lon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:aon}))},con=d.forwardRef(lon),uon={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832.6 191.4c-84.6-84.6-221.5-84.6-306 0l-96.9 96.9 51 51 96.9-96.9c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204l-96.9 96.9 51.1 51.1 96.9-96.9c84.4-84.6 84.4-221.5-.1-306.1zM446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l96.9-96.9-51.1-51.1-96.9 96.9c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l96.9-96.9-51-51-96.8 97zM260.3 209.4a8.03 8.03 0 00-11.3 0L209.4 249a8.03 8.03 0 000 11.3l554.4 554.4c3.1 3.1 8.2 3.1 11.3 0l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3L260.3 209.4z"}}]},name:"disconnect",theme:"outlined"},don=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:uon}))},fon=d.forwardRef(don),hon={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.15 87c51.16 0 92.41 41.36 94.85 90.03V960l-97.4-82.68-53.48-48.67-58.35-50.85 24.37 80.2H210.41c-51 0-92.41-38.74-92.41-90.06V177.21c0-48.67 41.48-90.1 92.6-90.1h600.3zM588.16 294.1h-1.09l-7.34 7.28c75.38 21.8 111.85 55.86 111.85 55.86-48.58-24.28-92.36-36.42-136.14-41.32-31.64-4.91-63.28-2.33-90 0h-7.28c-17.09 0-53.45 7.27-102.18 26.7-16.98 7.39-26.72 12.22-26.72 12.22s36.43-36.42 116.72-55.86l-4.9-4.9s-60.8-2.33-126.44 46.15c0 0-65.64 114.26-65.64 255.13 0 0 36.36 63.24 136.11 65.64 0 0 14.55-19.37 29.27-36.42-56-17-77.82-51.02-77.82-51.02s4.88 2.4 12.19 7.27h2.18c1.09 0 1.6.54 2.18 1.09v.21c.58.59 1.09 1.1 2.18 1.1 12 4.94 24 9.8 33.82 14.53a297.58 297.58 0 0065.45 19.48c33.82 4.9 72.59 7.27 116.73 0 21.82-4.9 43.64-9.7 65.46-19.44 14.18-7.27 31.63-14.54 50.8-26.79 0 0-21.82 34.02-80.19 51.03 12 16.94 28.91 36.34 28.91 36.34 99.79-2.18 138.55-65.42 140.73-62.73 0-140.65-66-255.13-66-255.13-59.45-44.12-115.09-45.8-124.91-45.8l2.04-.72zM595 454c25.46 0 46 21.76 46 48.41 0 26.83-20.65 48.59-46 48.59s-46-21.76-46-48.37c.07-26.84 20.75-48.52 46-48.52zm-165.85 0c25.35 0 45.85 21.76 45.85 48.41 0 26.83-20.65 48.59-46 48.59s-46-21.76-46-48.37c0-26.84 20.65-48.52 46-48.52z"}}]},name:"discord",theme:"filled"},gon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hon}))},pon=d.forwardRef(gon),mon={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M405 158l-25 3s-112.13 12.26-194.02 78.02h-.96l-1.02.96c-18.37 16.9-26.37 37.67-39 68.04a982.08 982.08 0 00-38 112C83.27 505.87 64 609.87 64 705v8l4 8c29.63 52 82.24 85.12 131 108 48.74 22.88 90.89 35 120 36l19.02.99 9.98-17 35-62c37.13 8.38 79.88 14 129 14 49.12 0 91.87-5.62 129-14l35 62 10.02 17 18.97-1c29.12-.98 71.27-13.11 120-36 48.77-22.87 101.38-56 131.01-108l4-8v-8c0-95.13-19.26-199.13-43-284.98a982.08 982.08 0 00-38-112c-12.63-30.4-20.63-51.14-39-68l-1-1.03h-1.02C756.16 173.26 644 161.01 644 161.01L619 158l-9.02 23s-9.24 23.37-14.97 50.02a643.04 643.04 0 00-83.01-6.01c-17.12 0-46.72 1.12-83 6.01a359.85 359.85 0 00-15.02-50.01zm-44 73.02c1.37 4.48 2.74 8.36 4 12-41.38 10.24-85.51 25.86-126 50.98l34 54.02C356 296.5 475.22 289 512 289c36.74 0 156 7.49 239 59L785 294c-40.49-25.12-84.62-40.74-126-51 1.26-3.62 2.63-7.5 4-12 29.86 6 86.89 19.77 134 57.02-.26.12 12 18.62 23 44.99 11.26 27.13 23.74 63.26 35 104 21.64 78.11 38.63 173.25 40 256.99-20.15 30.75-57.5 58.5-97.02 77.02A311.8 311.8 0 01720 795.98l-16-26.97c9.5-3.52 18.88-7.36 27-11.01 49.26-21.63 76-45 76-45l-42-48s-18 16.52-60 35.02C663.03 718.52 598.87 737 512 737s-151-18.5-193-37c-42-18.49-60-35-60-35l-42 48s26.74 23.36 76 44.99a424.47 424.47 0 0027 11l-16 27.02a311.8 311.8 0 01-78.02-25.03c-39.48-18.5-76.86-46.24-96.96-76.99 1.35-83.74 18.34-178.88 40-257A917.22 917.22 0 01204 333c11-26.36 23.26-44.86 23-44.98 47.11-37.25 104.14-51.01 134-57m39 217.99c-24.74 0-46.62 14.11-60 32-13.38 17.89-20 39.87-20 64s6.62 46.11 20 64c13.38 17.89 35.26 32 60 32 24.74 0 46.62-14.11 60-32 13.38-17.89 20-39.87 20-64s-6.62-46.11-20-64c-13.38-17.89-35.26-32-60-32m224 0c-24.74 0-46.62 14.11-60 32-13.38 17.89-20 39.87-20 64s6.62 46.11 20 64c13.38 17.89 35.26 32 60 32 24.74 0 46.62-14.11 60-32 13.38-17.89 20-39.87 20-64s-6.62-46.11-20-64c-13.38-17.89-35.26-32-60-32m-224 64c1.76 0 4 .64 8 6.01 4 5.35 8 14.72 8 25.99 0 11.26-4 20.64-8 26.01-4 5.35-6.24 5.99-8 5.99-1.76 0-4-.64-8-6.02a44.83 44.83 0 01-8-25.98c0-11.27 4-20.64 8-26.02 4-5.34 6.24-5.98 8-5.98m224 0c1.76 0 4 .64 8 6.01 4 5.35 8 14.72 8 25.99 0 11.26-4 20.64-8 26.01-4 5.35-6.24 5.99-8 5.99-1.76 0-4-.64-8-6.02a44.83 44.83 0 01-8-25.98c0-11.27 4-20.64 8-26.02 4-5.34 6.24-5.98 8-5.98"}}]},name:"discord",theme:"outlined"},von=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mon}))},Con=d.forwardRef(von),yon={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H273v428h.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32z"}}]},name:"dislike",theme:"filled"},bon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:yon}))},Son=d.forwardRef(bon),won={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 01-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0133.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0119.6 43c0 19.1-11 37.5-28.8 48.4z"}}]},name:"dislike",theme:"outlined"},xon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:won}))},Eon=d.forwardRef(xon),Ron={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M273 100.1v428h.3l-.3-428zM820.4 525l-21.9-19 14-25.5a56.2 56.2 0 006.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 006.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 006.9-27.3c0-22.4-13.2-42.6-33.6-51.8H345v345.2c18.6 67.2 46.4 168 83.5 302.5a44.28 44.28 0 0042.2 32.3c7.5.1 15-2.2 21.1-6.7 9.9-7.4 15.2-18.6 14.6-30.5l-9.6-198.4h314.4C829 605.5 840 587.1 840 568c0-16.5-7.1-32.2-19.6-43z",fill:n}},{tag:"path",attrs:{d:"M112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32zm773.9 358.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 00-26.5-5.4H273l.3 428 85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zm-74.7 126.1H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 01-42.2-32.3c-37.1-134.4-64.9-235.2-83.5-302.5V172h399.4a56.85 56.85 0 0133.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0119.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0119.6 43c0 19.1-11 37.5-28.8 48.4z",fill:t}}]}},name:"dislike",theme:"twotone"},$on=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ron}))},Oon=d.forwardRef($on),Ton={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M555.88 488.24h-92.62v-82.79h92.62zm0-286.24h-92.62v85.59h92.62zm109.45 203.45H572.7v82.79h92.62zm-218.9-101.02h-92.61v84.18h92.6zm109.45 0h-92.61v84.18h92.6zm388.69 140.3c-19.65-14.02-67.36-18.23-102.44-11.22-4.2-33.67-23.85-63.14-57.53-89.8l-19.65-12.62-12.62 19.64c-25.26 39.29-32.28 103.83-5.62 145.92-12.63 7.02-36.48 15.44-67.35 15.44H67.56c-12.63 71.56 8.42 164.16 61.74 227.3C181.22 801.13 259.8 832 360.83 832c220.3 0 384.48-101.02 460.25-286.24 29.47 0 95.42 0 127.7-63.14 1.4-2.8 9.82-18.24 11.22-23.85zm-717.04-39.28h-92.61v82.79h92.6zm109.45 0h-92.61v82.79h92.6zm109.45 0h-92.61v82.79h92.6zM336.98 304.43h-92.61v84.19h92.6z"}}]},name:"docker",theme:"outlined"},Ion=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ton}))},Mon=d.forwardRef(Ion),Pon={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm22.3 665.2l.2 31.7c0 4.4-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4C401.3 723 359.5 672.4 355 617.4c-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.7 29.8 55.4 74.1 61.3V533.9l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-72.9 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.9 46.9 125.9 109.2.5 4.7-3.2 8.8-8 8.8h-44.9c-4 0-7.4-3-7.9-6.9-4-29.2-27.4-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 108.9 116.4 0 75.3-56 117.3-134.3 124.1zM426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-36.9 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.8-.6-5.6-1.3-8.8-2.2V677c42.6-3.8 72-27.2 72-66.4 0-30.7-15.9-50.7-63.2-65.1z"}}]},name:"dollar-circle",theme:"filled"},_on=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Pon}))},Aon=d.forwardRef(_on),Don={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z"}}]},name:"dollar-circle",theme:"outlined"},Lon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Don}))},Fon=d.forwardRef(Lon),Non={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-37 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.9-.6-5.7-1.3-8.8-2.2V677c42.6-3.8 72-27.3 72-66.4 0-30.7-15.9-50.7-63.2-65.1z",fill:n}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm22.4 589.2l.2 31.7c0 4.5-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4c-89-6.5-130.7-57.1-135.2-112.1-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.8 29.9 55.4 74.1 61.3V534l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-73 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.8 46.9 125.9 109.2a8.1 8.1 0 01-8 8.8h-44.9c-4 0-7.4-2.9-7.9-6.9-4-29.2-27.5-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 109 116.4 0 75.2-56 117.1-134.3 124z",fill:n}},{tag:"path",attrs:{d:"M559.7 488.8l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z",fill:t}}]}},name:"dollar-circle",theme:"twotone"},kon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Non}))},zon=d.forwardRef(kon),Bon={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z"}}]},name:"dollar",theme:"outlined"},Hon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Bon}))},jon=d.forwardRef(Hon),Von={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-37 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.9-.6-5.7-1.3-8.8-2.2V677c42.6-3.8 72-27.3 72-66.4 0-30.7-15.9-50.7-63.2-65.1z",fill:n}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm22.4 589.2l.2 31.7c0 4.5-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4c-89-6.5-130.7-57.1-135.2-112.1-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.8 29.9 55.4 74.1 61.3V534l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-73 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.8 46.9 125.9 109.2a8.1 8.1 0 01-8 8.8h-44.9c-4 0-7.4-2.9-7.9-6.9-4-29.2-27.5-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 109 116.4 0 75.2-56 117.1-134.3 124z",fill:n}},{tag:"path",attrs:{d:"M559.7 488.8l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z",fill:t}}]}},name:"dollar",theme:"twotone"},Gon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Von}))},Won=d.forwardRef(Gon),Uon={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},qon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Uon}))},Kon=d.forwardRef(qon),Yon={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"g",attrs:{"fill-opacity":".88"},children:[{tag:"path",attrs:{d:"M101.28 662c-10.65 0-19.53-3.3-26.63-9.89-7.1-6.6-10.65-14.7-10.65-24.32 0-9.89 3.65-18 10.96-24.31 7.3-6.32 16.42-9.48 27.35-9.48 11.06 0 20.1 3.2 27.14 9.58 7.03 6.39 10.55 14.46 10.55 24.21 0 10.03-3.58 18.24-10.76 24.63-7.17 6.39-16.49 9.58-27.96 9.58M458 657h-66.97l-121.4-185.35c-7.13-10.84-12.06-19-14.8-24.48h-.82c1.1 10.42 1.65 26.33 1.65 47.72V657H193V362h71.49l116.89 179.6a423.23 423.23 0 0114.79 24.06h.82c-1.1-6.86-1.64-20.37-1.64-40.53V362H458zM702 657H525V362h170.2v54.1H591.49v65.63H688v53.9h-96.52v67.47H702zM960 416.1h-83.95V657h-66.5V416.1H726V362h234z"}}]}]},name:"dot-net",theme:"outlined"},Xon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Yon}))},Qon=d.forwardRef(Xon),Zon={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm184.5 353.7l-178 246a7.95 7.95 0 01-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"down-circle",theme:"filled"},Jon=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zon}))},esn=d.forwardRef(Jon),tsn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"down-circle",theme:"outlined"},nsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:tsn}))},rsn=d.forwardRef(nsn),isn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm184.4 277.7l-178 246a7.95 7.95 0 01-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7z",fill:n}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z",fill:t}}]}},name:"down-circle",theme:"twotone"},osn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:isn}))},ssn=d.forwardRef(osn),asn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM696.5 412.7l-178 246a7.95 7.95 0 01-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"down-square",theme:"filled"},lsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:asn}))},csn=d.forwardRef(lsn),usn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.8-5.3 0-12.7-6.5-12.7H643c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"down-square",theme:"outlined"},dsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:usn}))},fsn=d.forwardRef(dsn),hsn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm150-440h46.9c10.3 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7l-178 246a7.95 7.95 0 01-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7z",fill:n}},{tag:"path",attrs:{d:"M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z",fill:t}}]}},name:"down-square",theme:"twotone"},gsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hsn}))},psn=d.forwardRef(gsn),msn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},vsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:msn}))},RYe=d.forwardRef(vsn),Csn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"},ysn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Csn}))},ume=d.forwardRef(ysn),bsn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M675.1 328.3a245.2 245.2 0 00-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6zm47.7-11.9c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 736c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm53.1-346.2c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm30.6 82.5c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4z"}}]},name:"dribbble-circle",theme:"filled"},Ssn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bsn}))},wsn=d.forwardRef(Ssn),xsn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 96C282.6 96 96 282.6 96 512s186.6 416 416 416 416-186.6 416-416S741.4 96 512 96zm275.1 191.8c49.5 60.5 79.5 137.5 80.2 221.4-11.7-2.5-129.2-26.3-247.4-11.4-2.5-6.1-5-12.2-7.6-18.3-7.4-17.3-15.3-34.6-23.6-51.5C720 374.3 779.6 298 787.1 287.8zM512 157.2c90.3 0 172.8 33.9 235.5 89.5-6.4 9.1-59.9 81-186.2 128.4-58.2-107-122.7-194.8-132.6-208 27.3-6.6 55.2-9.9 83.3-9.9zM360.9 191c9.4 12.8 72.9 100.9 131.7 205.5C326.4 440.6 180 440 164.1 439.8c23.1-110.3 97.4-201.9 196.8-248.8zM156.7 512.5c0-3.6.1-7.3.2-10.9 15.5.3 187.7 2.5 365.2-50.6 10.2 19.9 19.9 40.1 28.8 60.3-4.7 1.3-9.4 2.7-14 4.2C353.6 574.9 256.1 736.4 248 750.1c-56.7-63-91.3-146.3-91.3-237.6zM512 867.8c-82.2 0-157.9-28-218.1-75 6.4-13.1 78.3-152 278.7-221.9l2.3-.8c49.9 129.6 70.5 238.3 75.8 269.5A350.46 350.46 0 01512 867.8zm198.5-60.7c-3.6-21.6-22.5-125.6-69-253.3C752.9 536 850.7 565.2 862.8 569c-15.8 98.8-72.5 184.2-152.3 238.1z"}}]},name:"dribbble",theme:"outlined"},Esn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xsn}))},Rsn=d.forwardRef(Esn),$sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 00-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z"}}]},name:"dribbble-square",theme:"filled"},Osn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$sn}))},Tsn=d.forwardRef(Osn),Isn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 00-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z"}}]},name:"dribbble-square",theme:"outlined"},Msn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Isn}))},Psn=d.forwardRef(Msn),_sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M663.8 455.5zm-151.5-93.8l-151.8 93.8 151.8 93.9 151.5-93.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm151.2 595.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1z"}}]},name:"dropbox-circle",theme:"filled"},Asn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_sn}))},Dsn=d.forwardRef(Asn),Lsn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M64 556.9l264.2 173.5L512.5 577 246.8 412.7zm896-290.3zm0 0L696.8 95 512.5 248.5l265.2 164.2L512.5 577l184.3 153.4L960 558.8 777.7 412.7zM513 609.8L328.2 763.3l-79.4-51.5v57.8L513 928l263.7-158.4v-57.8l-78.9 51.5zM328.2 95L64 265.1l182.8 147.6 265.7-164.2zM64 556.9z"}}]},name:"dropbox",theme:"outlined"},Fsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Lsn}))},Nsn=d.forwardRef(Fsn),ksn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM663.2 659.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1zM512.3 361.7l-151.8 93.8 151.8 93.9 151.5-93.9zm151.5 93.8z"}}]},name:"dropbox-square",theme:"filled"},zsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ksn}))},Bsn=d.forwardRef(zsn),Hsn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z"}}]},name:"edit",theme:"filled"},jsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Hsn}))},WV=d.forwardRef(jsn),Vsn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Gsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Vsn}))},dme=d.forwardRef(Gsn),Wsn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:n}},{tag:"path",attrs:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z",fill:t}}]}},name:"edit",theme:"twotone"},Usn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Wsn}))},$Ye=d.forwardRef(Usn),qsn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Ksn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qsn}))},OYe=d.forwardRef(Ksn),Ysn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 327c-29.9 0-58 11.6-79.2 32.8A111.6 111.6 0 00400 439c0 29.9 11.7 58 32.8 79.2A111.6 111.6 0 00512 551c29.9 0 58-11.7 79.2-32.8C612.4 497 624 468.9 624 439c0-29.9-11.6-58-32.8-79.2S541.9 327 512 327zm342.6-37.9a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"environment",theme:"filled"},Xsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ysn}))},Qsn=d.forwardRef(Xsn),Zsn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"},Jsn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zsn}))},ean=d.forwardRef(Jsn),tan={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724.4 224.9C667.7 169.5 592.3 139 512 139s-155.7 30.5-212.4 85.8C243.1 280 212 353.2 212 431.1c0 241.3 234.1 407.2 300 449.1 65.9-41.9 300-207.8 300-449.1 0-77.9-31.1-151.1-87.6-206.2zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z",fill:n}},{tag:"path",attrs:{d:"M512 263c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8S624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z",fill:t}},{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1z",fill:t}}]}},name:"environment",theme:"twotone"},nan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:tan}))},ran=d.forwardRef(nan),ian={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm63.5 375.8c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8h-136c-.3 4.4-.3 9.1-.3 13.8v36h136.2c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H444.9c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.2 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.3 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.8.3-12.8H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.7c19.7-94.2 92-149.9 198.6-149.9 20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346h.1c0 5.1-4.6 8.8-9.6 7.8-14.7-2.9-31.8-4.4-51.7-4.4-65.4 0-110.4 33.5-127.6 90.4h128.4z"}}]},name:"euro-circle",theme:"filled"},oan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ian}))},san=d.forwardRef(oan),aan={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm117.7-588.6c-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H344c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H344c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H439.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H447.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 009.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8z"}}]},name:"euro-circle",theme:"outlined"},lan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:aan}))},can=d.forwardRef(lan),uan={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm117.1 581.1c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.4 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.7.3-12.8H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.8C388.5 345.7 460.7 290 567.4 290c20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346a8 8 0 01-9.6 7.8c-14.6-2.9-31.8-4.4-51.7-4.4-65.3 0-110.4 33.5-127.6 90.4h128.3c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8H432.5c-.3 4.4-.3 9.1-.3 13.8v36h136.4c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H438c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.3 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8z",fill:n}},{tag:"path",attrs:{d:"M619.6 670.5c-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H432.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H440.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 009.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H337c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H337c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8z",fill:t}}]}},name:"euro-circle",theme:"twotone"},dan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:uan}))},fan=d.forwardRef(dan),han={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm117.7-588.6c-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H344c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H344c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H439.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H447.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 009.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8z"}}]},name:"euro",theme:"outlined"},gan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:han}))},pan=d.forwardRef(gan),man={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm117.1 581.1c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.4 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.7.3-12.8H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.8C388.5 345.7 460.7 290 567.4 290c20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346a8 8 0 01-9.6 7.8c-14.6-2.9-31.8-4.4-51.7-4.4-65.3 0-110.4 33.5-127.6 90.4h128.3c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8H432.5c-.3 4.4-.3 9.1-.3 13.8v36h136.4c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H438c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.3 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8z",fill:n}},{tag:"path",attrs:{d:"M619.6 670.5c-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H432.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H440.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 009.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H337c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H337c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8z",fill:t}}]}},name:"euro",theme:"twotone"},van=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:man}))},Can=d.forwardRef(van),yan={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM640 812a32 32 0 1064 0 32 32 0 10-64 0zm12-64h40c4.4 0 8-3.6 8-8V628c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"exception",theme:"outlined"},ban=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:yan}))},San=d.forwardRef(ban),wan={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},xan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:wan}))},Ean=d.forwardRef(xan),Ran={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:n}},{tag:"path",attrs:{d:"M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"exclamation-circle",theme:"twotone"},$an=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ran}))},Oan=d.forwardRef($an),Tan={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 804a64 64 0 10128 0 64 64 0 10-128 0zm32-168h64c4.4 0 8-3.6 8-8V164c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"exclamation",theme:"outlined"},Ian=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Tan}))},Man=d.forwardRef(Ian),Pan={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"expand-alt",theme:"outlined"},_an=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Pan}))},Aan=d.forwardRef(_an),Dan={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M342 88H120c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V168h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm578 576h-48c-8.8 0-16 7.2-16 16v176H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V680c0-8.8-7.2-16-16-16zM342 856H168V680c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM904 88H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V120c0-17.7-14.3-32-32-32z"}}]},name:"expand",theme:"outlined"},Lan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Dan}))},Fan=d.forwardRef(Lan),Nan={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M218.9 636.3l42.6 26.6c.1.1.3.2.4.3l12.7 8 .3.3a186.9 186.9 0 0094.1 25.1c44.9 0 87.2-15.7 121-43.8a256.27 256.27 0 01164.9-59.9c52.3 0 102.2 15.7 144.6 44.5l7.9 5-111.6-289V179.8h63.5c4.4 0 8-3.6 8-8V120c0-4.4-3.6-8-8-8H264.7c-4.4 0-8 3.6-8 8v51.9c0 4.4 3.6 8 8 8h63.5v173.6L218.9 636.3zm333-203.1c22 0 39.9 17.9 39.9 39.9S573.9 513 551.9 513 512 495.1 512 473.1s17.9-39.9 39.9-39.9zM878 825.1l-29.9-77.4-85.7-53.5-.1.1c-.7-.5-1.5-1-2.2-1.5l-8.1-5-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 01-164.9 59.9c-53 0-103.5-16.1-146.2-45.6l-28.9-18.1L146 825.1c-2.8 7.4-4.3 15.2-4.3 23 0 35.2 28.6 63.8 63.8 63.8h612.9c7.9 0 15.7-1.5 23-4.3a63.6 63.6 0 0036.6-82.5z"}}]},name:"experiment",theme:"filled"},kan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Nan}))},zan=d.forwardRef(kan),Ban={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"}}]},name:"experiment",theme:"outlined"},Han=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ban}))},jan=d.forwardRef(Han),Van={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M551.9 513c19.6 0 35.9-14.2 39.3-32.8A40.02 40.02 0 01552 512a40 40 0 01-40-39.4v.5c0 22 17.9 39.9 39.9 39.9zM752 687.8l-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 01-164.9 59.9c-41.2 0-81-9.8-116.7-28L210.5 844h603l-59.9-155.2-1.6-1z",fill:n}},{tag:"path",attrs:{d:"M879 824.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.6-107.6.1-.2c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1l.6 1.6L813.5 844h-603z",fill:t}},{tag:"path",attrs:{d:"M552 512c19.3 0 35.4-13.6 39.2-31.8.6-2.7.8-5.4.8-8.2 0-22.1-17.9-40-40-40s-40 17.9-40 40v.6a40 40 0 0040 39.4z",fill:t}}]}},name:"experiment",theme:"twotone"},Gan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Van}))},Wan=d.forwardRef(Gan),Uan={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},qan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Uan}))},Kan=d.forwardRef(qan),Yan={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},Xan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Yan}))},Qan=d.forwardRef(Xan),Zan={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M508 624a112 112 0 00112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 00-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 000 11.31L155.25 889a8 8 0 0011.31 0l712.16-712.12a8 8 0 000-11.32zM332 512a176 176 0 01258.88-155.28l-48.62 48.62a112.08 112.08 0 00-140.92 140.92l-48.62 48.62A175.09 175.09 0 01332 512z"}},{tag:"path",attrs:{d:"M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 01445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5z"}}]},name:"eye-invisible",theme:"filled"},Jan=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zan}))},eln=d.forwardRef(Jan),tln={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M254.89 758.85l125.57-125.57a176 176 0 01248.82-248.82L757 256.72Q651.69 186.07 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q69.27 145.91 173.09 221.05zM942.2 486.2Q889.46 375.11 816.7 305L672.48 449.27a176.09 176.09 0 01-227.22 227.21L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5z",fill:n}},{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zM878.63 165.56L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z",fill:t}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z",fill:t}}]}},name:"eye-invisible",theme:"twotone"},nln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:tln}))},rln=d.forwardRef(nln),iln={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M81.8 537.8a60.3 60.3 0 010-51.5C176.6 286.5 319.8 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c-192.1 0-335.4-100.5-430.2-300.2z",fill:n}},{tag:"path",attrs:{d:"M512 258c-161.3 0-279.4 81.8-362.7 254C232.6 684.2 350.7 766 512 766c161.4 0 279.5-81.8 362.7-254C791.4 339.8 673.3 258 512 258zm-4 430c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z",fill:n}},{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258s279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z",fill:t}},{tag:"path",attrs:{d:"M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z",fill:t}}]}},name:"eye",theme:"twotone"},oln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:iln}))},sln=d.forwardRef(oln),aln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-92.4 233.5h-63.9c-50.1 0-59.8 23.8-59.8 58.8v77.1h119.6l-15.6 120.7h-104V912H539.2V602.2H434.9V481.4h104.3v-89c0-103.3 63.1-159.6 155.3-159.6 44.2 0 82.1 3.3 93.2 4.8v107.9z"}}]},name:"facebook",theme:"filled"},lln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:aln}))},cln=d.forwardRef(lln),uln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 736H663.9V602.2h104l15.6-120.7H663.9v-77.1c0-35 9.7-58.8 59.8-58.8h63.9v-108c-11.1-1.5-49-4.8-93.2-4.8-92.2 0-155.3 56.3-155.3 159.6v89H434.9v120.7h104.3V848H176V176h672v672z"}}]},name:"facebook",theme:"outlined"},dln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:uln}))},fln=d.forwardRef(dln),hln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M925.9 804l-24-199.2c-.8-6.6-8.9-9.4-13.6-4.7L829 659.5 557.7 388.3c-6.3-6.2-16.4-6.2-22.6 0L433.3 490 156.6 213.3a8.03 8.03 0 00-11.3 0l-45 45.2a8.03 8.03 0 000 11.3L422 591.7c6.2 6.3 16.4 6.3 22.6 0L546.4 490l226.1 226-59.3 59.3a8.01 8.01 0 004.7 13.6l199.2 24c5.1.7 9.5-3.7 8.8-8.9z"}}]},name:"fall",theme:"outlined"},gln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hln}))},pln=d.forwardRef(gln),mln={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M517.6 273.5L230.2 499.3a16.14 16.14 0 000 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 000 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z"}}]},name:"fast-backward",theme:"filled"},vln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mln}))},Cln=d.forwardRef(vln),yln={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M517.6 273.5L230.2 499.3a16.14 16.14 0 000 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 000 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z"}}]},name:"fast-backward",theme:"outlined"},bln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:yln}))},Sln=d.forwardRef(bln),wln={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 000-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z"}}]},name:"fast-forward",theme:"filled"},xln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:wln}))},Eln=d.forwardRef(xln),Rln={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 000-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z"}}]},name:"fast-forward",theme:"outlined"},$ln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Rln}))},Oln=d.forwardRef($ln),Tln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M600 395.4h91V649h79V267c0-4.4-3.6-8-8-8h-48.2c-3.7 0-7 2.6-7.7 6.3-2.6 12.1-6.9 22.3-12.9 30.9a86.14 86.14 0 01-26.3 24.4c-10.3 6.2-22 10.5-35 12.9-10.4 1.9-21 3-32 3.1a8 8 0 00-7.9 8v42.8c0 4.4 3.6 8 8 8zM871 702H567c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM443.9 312.7c-16.1-19-34.4-32.4-55.2-40.4-21.3-8.2-44.1-12.3-68.4-12.3-23.9 0-46.4 4.1-67.7 12.3-20.8 8-39 21.4-54.8 40.3-15.9 19.1-28.7 44.7-38.3 77-9.6 32.5-14.5 73-14.5 121.5 0 49.9 4.9 91.4 14.5 124.4 9.6 32.8 22.4 58.7 38.3 77.7 15.8 18.9 34 32.3 54.8 40.3 21.3 8.2 43.8 12.3 67.7 12.3 24.4 0 47.2-4.1 68.4-12.3 20.8-8 39.2-21.4 55.2-40.4 16.1-19 29-44.9 38.6-77.7 9.6-33 14.5-74.5 14.5-124.4 0-48.4-4.9-88.9-14.5-121.5-9.5-32.1-22.4-57.7-38.6-76.8zm-29.5 251.7c-1 21.4-4.2 42-9.5 61.9-5.5 20.7-14.5 38.5-27 53.4-13.6 16.3-33.2 24.3-57.6 24.3-24 0-43.2-8.1-56.7-24.4-12.2-14.8-21.1-32.6-26.6-53.3-5.3-19.9-8.5-40.6-9.5-61.9-1-20.8-1.5-38.5-1.5-53.2 0-8.8.1-19.4.4-31.8.2-12.7 1.1-25.8 2.6-39.2 1.5-13.6 4-27.1 7.6-40.5 3.7-13.8 8.8-26.3 15.4-37.4 6.9-11.6 15.8-21.1 26.7-28.3 11.4-7.6 25.3-11.3 41.5-11.3 16.1 0 30.1 3.7 41.7 11.2a87.94 87.94 0 0127.4 28.2c6.9 11.2 12.1 23.8 15.6 37.7 3.3 13.2 5.8 26.6 7.5 40.1 1.8 13.5 2.8 26.6 3 39.4.2 12.4.4 23 .4 31.8.1 14.8-.4 32.5-1.4 53.3z"}}]},name:"field-binary",theme:"outlined"},Iln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Tln}))},Mln=d.forwardRef(Iln),Pln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M508 280h-63.3c-3.3 0-6 2.7-6 6v340.2H433L197.4 282.6c-1.1-1.6-3-2.6-4.9-2.6H126c-3.3 0-6 2.7-6 6v464c0 3.3 2.7 6 6 6h62.7c3.3 0 6-2.7 6-6V405.1h5.7l238.2 348.3c1.1 1.6 3 2.6 5 2.6H508c3.3 0 6-2.7 6-6V286c0-3.3-2.7-6-6-6zm378 413H582c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-152.2-63c52.9 0 95.2-17.2 126.2-51.7 29.4-32.9 44-75.8 44-128.8 0-53.1-14.6-96.5-44-129.3-30.9-34.8-73.2-52.2-126.2-52.2-53.7 0-95.9 17.5-126.3 52.8-29.2 33.1-43.4 75.9-43.4 128.7 0 52.4 14.3 95.2 43.5 128.3 30.6 34.7 73 52.2 126.2 52.2zm-71.5-263.7c16.9-20.6 40.3-30.9 71.4-30.9 31.5 0 54.8 9.6 71 29.1 16.4 20.3 24.9 48.6 24.9 84.9 0 36.3-8.4 64.1-24.8 83.9-16.5 19.4-40 29.2-71.1 29.2-31.2 0-55-10.3-71.4-30.4-16.3-20.1-24.5-47.3-24.5-82.6.1-35.8 8.2-63 24.5-83.2z"}}]},name:"field-number",theme:"outlined"},_ln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Pln}))},Aln=d.forwardRef(_ln),Dln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M875.6 515.9c2.1.8 4.4-.3 5.2-2.4.2-.4.2-.9.2-1.4v-58.3c0-1.8-1.1-3.3-2.8-3.8-6-1.8-17.2-3-27.2-3-32.9 0-61.7 16.7-73.5 41.2v-28.6c0-4.4-3.6-8-8-8H717c-4.4 0-8 3.6-8 8V729c0 4.4 3.6 8 8 8h54.8c4.4 0 8-3.6 8-8V572.7c0-36.2 26.1-60.2 65.1-60.2 10.4.1 26.6 1.8 30.7 3.4zm-537-40.5l-54.7-12.6c-61.2-14.2-87.7-34.8-87.7-70.7 0-44.6 39.1-73.5 96.9-73.5 52.8 0 91.4 26.5 99.9 68.9h70C455.9 311.6 387.6 259 293.4 259c-103.3 0-171 55.5-171 139 0 68.6 38.6 109.5 122.2 128.5l61.6 14.3c63.6 14.9 91.6 37.1 91.6 75.1 0 44.1-43.5 75.2-102.5 75.2-60.6 0-104.5-27.2-112.8-70.5H111c7.2 79.9 75.6 130.4 179.1 130.4C402.3 751 471 695.2 471 605.3c0-70.2-38.6-108.5-132.4-129.9zM841 729a36 36 0 1072 0 36 36 0 10-72 0zM653 457.8h-51.4V396c0-4.4-3.6-8-8-8h-54.7c-4.4 0-8 3.6-8 8v61.8H495c-4.4 0-8 3.6-8 8v42.3c0 4.4 3.6 8 8 8h35.9v147.5c0 56.2 27.4 79.4 93.1 79.4 11.7 0 23.6-1.2 33.8-3.1 1.9-.3 3.2-2 3.2-3.9v-49.3c0-2.2-1.8-4-4-4h-.4c-4.9.5-6.2.6-8.3.8-4.1.3-7.8.5-12.6.5-24.1 0-34.1-10.3-34.1-35.6V516.1H653c4.4 0 8-3.6 8-8v-42.3c0-4.4-3.6-8-8-8z"}}]},name:"field-string",theme:"outlined"},Lln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Dln}))},Fln=d.forwardRef(Lln),Nln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M945 412H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h256c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM811 548H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h122c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM477.3 322.5H434c-6.2 0-11.2 5-11.2 11.2v248c0 3.6 1.7 6.9 4.6 9l148.9 108.6c5 3.6 12 2.6 15.6-2.4l25.7-35.1v-.1c3.6-5 2.5-12-2.5-15.6l-126.7-91.6V333.7c.1-6.2-5-11.2-11.1-11.2z"}},{tag:"path",attrs:{d:"M804.8 673.9H747c-5.6 0-10.9 2.9-13.9 7.7a321 321 0 01-44.5 55.7 317.17 317.17 0 01-101.3 68.3c-39.3 16.6-81 25-124 25-43.1 0-84.8-8.4-124-25-37.9-16-72-39-101.3-68.3s-52.3-63.4-68.3-101.3c-16.6-39.2-25-80.9-25-124 0-43.1 8.4-84.7 25-124 16-37.9 39-72 68.3-101.3 29.3-29.3 63.4-52.3 101.3-68.3 39.2-16.6 81-25 124-25 43.1 0 84.8 8.4 124 25 37.9 16 72 39 101.3 68.3a321 321 0 0144.5 55.7c3 4.8 8.3 7.7 13.9 7.7h57.8c6.9 0 11.3-7.2 8.2-13.3-65.2-129.7-197.4-214-345-215.7-216.1-2.7-395.6 174.2-396 390.1C71.6 727.5 246.9 903 463.2 903c149.5 0 283.9-84.6 349.8-215.8a9.18 9.18 0 00-8.2-13.3z"}}]},name:"field-time",theme:"outlined"},kln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Nln}))},zln=d.forwardRef(kln),Bln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M480 580H372a8 8 0 00-8 8v48a8 8 0 008 8h108v108a8 8 0 008 8h48a8 8 0 008-8V644h108a8 8 0 008-8v-48a8 8 0 00-8-8H544V472a8 8 0 00-8-8h-48a8 8 0 00-8 8v108zm374.6-291.3c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z"}}]},name:"file-add",theme:"filled"},Hln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Bln}))},jln=d.forwardRef(Hln),Vln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"},Gln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Vln}))},Wln=d.forwardRef(Gln),Uln={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-42zm126 236v48c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V644H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V472c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8z",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}},{tag:"path",attrs:{d:"M544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z",fill:t}}]}},name:"file-add",theme:"twotone"},qln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Uln}))},Kln=d.forwardRef(qln),Yln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"},Xln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Yln}))},Qln=d.forwardRef(Xln),Zln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},Jln=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zln}))},ecn=d.forwardRef(Jln),tcn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"},ncn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:tcn}))},fme=d.forwardRef(ncn),rcn={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-42zm51.6 120h35.7a12.04 12.04 0 0110.1 18.5L546.1 623l84 130.4c3.6 5.6 2 13-3.6 16.6-2 1.2-4.2 1.9-6.5 1.9h-37.5c-4.1 0-8-2.1-10.2-5.7L510 664.8l-62.7 101.5c-2.2 3.5-6 5.7-10.2 5.7h-34.5a12.04 12.04 0 01-10.2-18.4l83.4-132.8-82.3-130.4c-3.6-5.7-1.9-13.1 3.7-16.6 1.9-1.3 4.1-1.9 6.4-1.9H442c4.2 0 8.1 2.2 10.3 5.8l61.8 102.4 61.2-102.3c2.2-3.6 6.1-5.8 10.3-5.8z",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}},{tag:"path",attrs:{d:"M514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z",fill:t}}]}},name:"file-excel",theme:"twotone"},icn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:rcn}))},ocn=d.forwardRef(icn),scn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 784a40 40 0 100-80 40 40 0 000 80zm32-152V448a8 8 0 00-8-8h-48a8 8 0 00-8 8v184a8 8 0 008 8h48a8 8 0 008-8z"}}]},name:"file-exclamation",theme:"filled"},acn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:scn}))},lcn=d.forwardRef(acn),ccn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM472 744a40 40 0 1080 0 40 40 0 10-80 0zm16-104h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8z"}}]},name:"file-exclamation",theme:"outlined"},ucn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ccn}))},dcn=d.forwardRef(ucn),fcn={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-42zm-54 96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V448zm32 336c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z",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}},{tag:"path",attrs:{d:"M488 640h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm-16 104a40 40 0 1080 0 40 40 0 10-80 0z",fill:t}}]}},name:"file-exclamation",theme:"twotone"},hcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:fcn}))},gcn=d.forwardRef(hcn),pcn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z"}}]},name:"file",theme:"filled"},mcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:pcn}))},vcn=d.forwardRef(mcn),Ccn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M551.5 490.5H521c-4.6 0-8.4 3.7-8.4 8.4V720c0 4.6 3.7 8.4 8.4 8.4h30.5c4.6 0 8.4-3.7 8.4-8.4V498.9c-.1-4.6-3.8-8.4-8.4-8.4zM477.3 600h-88.1c-4.6 0-8.4 3.7-8.4 8.4v23.8c0 4.6 3.7 8.4 8.4 8.4h47.6v.7c-.6 29.9-23 49.8-56.5 49.8-39.2 0-63.6-30.7-63.6-81.4 0-50.1 23.9-80.6 62.3-80.6 28.1 0 47.5 13.5 55.4 38.3l.9 2.8h49.2l-.7-4.6C475.9 515.9 434.7 484 379 484c-68.8 0-113 49.4-113 125.9 0 77.5 43.7 126.1 113.6 126.1 64.4 0 106-40.3 106-102.9v-24.8c0-4.6-3.7-8.3-8.3-8.3z"}},{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"}},{tag:"path",attrs:{d:"M608.2 727.8h32.3c4.6 0 8.4-3.7 8.4-8.4v-84.8h87.8c4.6 0 8.4-3.7 8.4-8.4v-25.5c0-4.6-3.7-8.4-8.4-8.4h-87.8v-58.9h96.8c4.6 0 8.4-3.7 8.4-8.4v-26.8c0-4.6-3.7-8.4-8.4-8.4H608.2c-4.6 0-8.4 3.7-8.4 8.4v221.1c0 4.8 3.8 8.5 8.4 8.5z"}}]},name:"file-gif",theme:"outlined"},ycn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ccn}))},bcn=d.forwardRef(ycn),Scn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-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.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},wcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Scn}))},xcn=d.forwardRef(wcn),Ecn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-image",theme:"outlined"},Rcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ecn}))},TYe=d.forwardRef(Rcn),$cn={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-42zm-134 50c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328.1c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8.1 8.1 0 0112.7 0l136.5 174c4.1 5.2.4 12.9-6.3 12.9z",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}},{tag:"path",attrs:{d:"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0z",fill:t}}]}},name:"file-image",theme:"twotone"},Ocn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$cn}))},Tcn=d.forwardRef(Ocn),Icn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M874.6 301.8L596.8 21.3c-4.5-4.5-9.4-8.3-14.7-11.5-1.4-.8-2.8-1.6-4.3-2.3-.9-.5-1.9-.9-2.8-1.3-9-4-18.9-6.2-29-6.2H201c-39.8 0-73 32.2-73 72v880c0 39.8 33.2 72 73 72h623c39.8 0 71-32.2 71-72V352.5c0-19-7-37.2-20.4-50.7zM583 110.4L783.8 312H583V110.4zM823 952H200V72h311v240c0 39.8 33.2 72 73 72h239v568zM350 696.5c0 24.2-7.5 31.4-21.9 31.4-9 0-18.4-5.8-24.8-18.5L272.9 732c13.4 22.9 32.3 34.2 61.3 34.2 41.6 0 60.8-29.9 60.8-66.2V577h-45v119.5zM501.3 577H437v186h44v-62h21.6c39.1 0 73.1-19.6 73.1-63.6 0-45.8-33.5-60.4-74.4-60.4zm-.8 89H481v-53h18.2c21.5 0 33.4 6.2 33.4 24.9 0 18.1-10.5 28.1-32.1 28.1zm182.5-9v36h30v30.1c-4 2.9-11 4.7-17.7 4.7-34.3 0-50.7-21.4-50.7-58.2 0-36.1 19.7-57.4 47.1-57.4 15.3 0 25 6.2 34 14.4l23.7-28.3c-12.7-12.8-32.1-24.2-59.2-24.2-49.6 0-91.1 35.3-91.1 97 0 62.7 40 95.1 91.5 95.1 25.9 0 49.2-10.2 61.5-22.6V657H683z"}}]},name:"file-jpg",theme:"outlined"},Mcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Icn}))},Pcn=d.forwardRef(Mcn),_cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},Acn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_cn}))},Dcn=d.forwardRef(Acn),Lcn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0011 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z"}}]},name:"file-markdown",theme:"outlined"},Fcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Lcn}))},Ncn=d.forwardRef(Fcn),kcn={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-42zm72.3 122H641c6.6 0 12 5.4 12 12v272c0 6.6-5.4 12-12 12h-27.2c-6.6 0-12-5.4-12-12V581.7L535 732.3c-2 4.3-6.3 7.1-11 7.1h-24.1a12 12 0 01-11-7.1l-66.8-150.2V758c0 6.6-5.4 12-12 12H383c-6.6 0-12-5.4-12-12V486c0-6.6 5.4-12 12-12h35c4.8 0 9.1 2.8 11 7.2l83.2 191 83.1-191c1.9-4.4 6.2-7.2 11-7.2z",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}},{tag:"path",attrs:{d:"M429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0011 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z",fill:t}}]}},name:"file-markdown",theme:"twotone"},zcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kcn}))},Bcn=d.forwardRef(zcn),Hcn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},jcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Hcn}))},IYe=d.forwardRef(jcn),Vcn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},Gcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Vcn}))},Wcn=d.forwardRef(Gcn),Ucn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"},qcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ucn}))},MYe=d.forwardRef(qcn),Kcn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M509.2 490.8c-.7-1.3-1.4-1.9-2.2-2-2.9 3.3-2.2 31.5 2.7 51.4 4-13.6 4.7-40.5-.5-49.4zm-1.6 120.5c-7.7 20-18.8 47.3-32.1 71.4 4-1.6 8.1-3.3 12.3-5 17.6-7.2 37.3-15.3 58.9-20.2-14.9-11.8-28.4-27.7-39.1-46.2z",fill:n}},{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm55 287.6c16.1-1.9 30.6-2.8 44.3-2.3 12.8.4 23.6 2 32 5.1.2.1.3.1.5.2.4.2.8.3 1.2.5.5.2 1.1.4 1.6.7.1.1.3.1.4.2 4.1 1.8 7.5 4 10.1 6.6 9.1 9.1 11.8 26.1 6.2 39.6-3.2 7.7-11.7 20.5-33.3 20.5-21.8 0-53.9-9.7-82.1-24.8-25.5 4.3-53.7 13.9-80.9 23.1-5.8 2-11.8 4-17.6 5.9-38 65.2-66.5 79.4-84.1 79.4-4.2 0-7.8-.9-10.8-2-6.9-2.6-12.8-8-16.5-15-.9-1.7-1.6-3.4-2.2-5.2-1.6-4.8-2.1-9.6-1.3-13.6l.6-2.7c.1-.2.1-.4.2-.6.2-.7.4-1.4.7-2.1 0-.1.1-.2.1-.3 4.1-11.9 13.6-23.4 27.7-34.6 12.3-9.8 27.1-18.7 45.9-28.4 15.9-28 37.6-75.1 51.2-107.4-10.8-41.8-16.7-74.6-10.1-98.6.9-3.3 2.5-6.4 4.6-9.1.2-.2.3-.4.5-.6.1-.1.1-.2.2-.2 6.3-7.5 16.9-11.9 28.1-11.5 16.6.7 29.7 11.5 33 30.1 1.7 8 2.2 16.5 1.9 25.7v.7c0 .5 0 1-.1 1.5-.7 13.3-3 26.6-7.3 44.7-.4 1.6-.8 3.2-1.2 5.2l-1 4.1-.1.3c.1.2.1.3.2.5l1.8 4.5c.1.3.3.7.4 1 .7 1.6 1.4 3.3 2.1 4.8v.1c8.7 18.8 19.7 33.4 33.9 45.1 4.3 3.5 8.9 6.7 13.9 9.8 1.8-.5 3.5-.7 5.3-.9z",fill:n}},{tag:"path",attrs:{d:"M391.5 761c5.7-4.4 16.2-14.5 30.1-34.7-10.3 9.4-23.4 22.4-30.1 34.7zm270.9-83l.2-.3h.2c.6-.4.5-.7.4-.9-.1-.1-4.5-9.3-45.1-7.4 35.3 13.9 43.5 9.1 44.3 8.6z",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}},{tag:"path",attrs:{d:"M535.9 585.3c-.8-1.7-1.5-3.3-2.2-4.9-.1-.3-.3-.7-.4-1l-1.8-4.5c-.1-.2-.1-.3-.2-.5l.1-.3.2-1.1c4-16.3 8.6-35.3 9.4-54.4v-.7c.3-8.6-.2-17.2-2-25.6-3.8-21.3-19.5-29.6-32.9-30.2-11.3-.5-21.8 4-28.1 11.4-.1.1-.1.2-.2.2-.2.2-.4.4-.5.6-2.1 2.7-3.7 5.8-4.6 9.1-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.4-51.2 107.4v.1c-27.7 14.3-64.1 35.8-73.6 62.9 0 .1-.1.2-.1.3-.2.7-.5 1.4-.7 2.1-.1.2-.1.4-.2.6-.2.9-.5 1.8-.6 2.7-.9 4-.4 8.8 1.3 13.6.6 1.8 1.3 3.5 2.2 5.2 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-2.6-2.6-6-4.8-10.1-6.6-.1-.1-.3-.1-.4-.2-.5-.2-1.1-.4-1.6-.7-.4-.2-.8-.3-1.2-.5-.2-.1-.3-.1-.5-.2-16.2-5.8-41.7-6.7-76.3-2.8l-5.3.6c-5-3-9.6-6.3-13.9-9.8-14.2-11.3-25.1-25.8-33.8-44.7zM391.5 761c6.7-12.3 19.8-25.3 30.1-34.7-13.9 20.2-24.4 30.3-30.1 34.7zM507 488.8c.8.1 1.5.7 2.2 2 5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4zm-19.2 188.9c-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4 10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2zm175.4-.9c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4z",fill:t}}]}},name:"file-pdf",theme:"twotone"},Ycn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Kcn}))},Xcn=d.forwardRef(Ycn),Qcn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},Zcn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Qcn}))},Jcn=d.forwardRef(Zcn),eun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M424 476c-4.4 0-8 3.6-8 8v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.3c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1zm280-281.7L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-ppt",theme:"outlined"},tun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:eun}))},PYe=d.forwardRef(tun),nun={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464.5 516.2v108.4h38.9c44.7 0 71.2-10.9 71.2-54.3 0-34.4-20.1-54.1-53.9-54.1h-56.2z",fill:n}},{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm90 218.4c0 55.2-36.8 94.1-96.2 94.1h-63.3V760c0 4.4-3.6 8-8 8H424c-4.4 0-8-3.6-8-8V484c0-4.4 3.6-8 8-8v.1h104c59.7 0 96 39.8 96 94.3z",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}},{tag:"path",attrs:{d:"M424 476.1c-4.4-.1-8 3.5-8 7.9v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.2c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1z",fill:t}}]}},name:"file-ppt",theme:"twotone"},run=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nun}))},iun=d.forwardRef(run),oun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M644.7 669.2a7.92 7.92 0 00-6.5-3.3H594c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.8-5.3 0-12.7-6.5-12.7h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-22.9-31.9zM688 306v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 458H208V148h560v296c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h312c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm402.6-320.8l-192-66.7c-.9-.3-1.7-.4-2.6-.4s-1.8.1-2.6.4l-192 66.7a7.96 7.96 0 00-5.4 7.5v251.1c0 2.5 1.1 4.8 3.1 6.3l192 150.2c1.4 1.1 3.2 1.7 4.9 1.7s3.5-.6 4.9-1.7l192-150.2c1.9-1.5 3.1-3.8 3.1-6.3V538.7c0-3.4-2.2-6.4-5.4-7.5zM826 763.7L688 871.6 550 763.7V577l138-48 138 48v186.7z"}}]},name:"file-protect",theme:"outlined"},sun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oun}))},aun=d.forwardRef(sun),lun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},cun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lun}))},_Ye=d.forwardRef(cun),uun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8zm-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 003 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 00-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 00-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0012.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7.2-4.5-3.5-8.3-8-8.3z"}}]},name:"file-sync",theme:"outlined"},dun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:uun}))},fun=d.forwardRef(dun),hun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},gun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hun}))},pun=d.forwardRef(gun),mun={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-42zm-22 322c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm200-184v48c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8z",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}},{tag:"path",attrs:{d:"M312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8zm192 128H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"file-text",theme:"twotone"},vun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mun}))},Cun=d.forwardRef(vun),yun={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"},bun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:yun}))},AYe=d.forwardRef(bun),Sun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm110 227a32 32 0 100-64 32 32 0 000 64z"}}]},name:"file-unknown",theme:"filled"},wun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Sun}))},xun=d.forwardRef(wun),Eun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-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.6-9.4-22.6zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm78 195a32 32 0 1064 0 32 32 0 10-64 0z"}}]},name:"file-unknown",theme:"outlined"},Run=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Eun}))},DYe=d.forwardRef(Run),$un={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-42zm-22 424c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm110-228.4c.7 44.9-29.7 84.5-74.3 98.9-5.7 1.8-9.7 7.3-9.7 13.3V672c0 5.5-4.5 10-10 10h-32c-5.5 0-10-4.5-10-10v-32c.2-19.8 15.4-37.3 34.7-40.1C549 596.2 570 574.3 570 549c0-28.1-25.8-51.5-58-51.5s-58 23.4-58 51.6c0 5.2-4.4 9.4-9.8 9.4h-32.4c-5.4 0-9.8-4.1-9.8-9.5 0-57.4 50.1-103.7 111.5-103 59.3.8 107.7 46.1 108.5 101.6z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-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.6-9.4-22.6zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}},{tag:"path",attrs:{d:"M480 744a32 32 0 1064 0 32 32 0 10-64 0zm-78-195c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103z",fill:t}}]}},name:"file-unknown",theme:"twotone"},Oun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$un}))},Tun=d.forwardRef(Oun),Iun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},Mun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Iun}))},Pun=d.forwardRef(Mun),_un={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z"}}]},name:"file-word",theme:"outlined"},Aun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_un}))},LYe=d.forwardRef(Aun),Dun={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-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",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}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:t}}]}},name:"file-word",theme:"twotone"},Lun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Dun}))},Fun=d.forwardRef(Lun),Nun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},kun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Nun}))},zun=d.forwardRef(kun),Bun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h64v64h64v-64h174v216a42 42 0 0042 42h216v494z"}}]},name:"file-zip",theme:"outlined"},Hun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Bun}))},FYe=d.forwardRef(Hun),jun={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M344 630h32v2h-32z",fill:n}},{tag:"path",attrs:{d:"M534 352V136H360v64h64v64h-64v64h64v64h-64v64h64v64h-64v62h64v160H296V520h64v-64h-64v-64h64v-64h-64v-64h64v-64h-64v-64h-64v752h560V394H576a42 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 888H232V136h64v64h64v-64h174v216a42 42 0 0042 42h216v494z",fill:t}},{tag:"path",attrs:{d:"M296 392h64v64h-64zm0-128h64v64h-64zm0 318v160h128V582h-64v-62h-64v62zm48 50v-2h32v64h-32v-62zm16-432h64v64h-64zm0 256h64v64h-64zm0-128h64v64h-64z",fill:t}}]}},name:"file-zip",theme:"twotone"},Vun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jun}))},Gun=d.forwardRef(Vun),Wun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Uun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Wun}))},qun=d.forwardRef(Uun),Kun={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},Yun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Kun}))},Xun=d.forwardRef(Yun),Qun={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M420.6 798h182.9V642H420.6zM411 561.4l9.5 16.6h183l9.5-16.6L811.3 226H212.7z",fill:n}},{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V642h182.9v156zm9.5-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z",fill:t}}]}},name:"filter",theme:"twotone"},Zun=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Qun}))},Jun=d.forwardRef(Zun),edn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9z"}}]},name:"fire",theme:"filled"},tdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:edn}))},ndn=d.forwardRef(tdn),rdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},idn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:rdn}))},odn=d.forwardRef(idn),sdn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M737 438.6c-9.6 15.5-21.1 30.7-34.4 45.6a73.1 73.1 0 01-51 24.4 73.36 73.36 0 01-53.4-18.8 74.01 74.01 0 01-24.4-59.8c3-47.4-12.4-103.1-45.8-165.7-16.9-31.4-37.1-58.2-61.2-80.4a240 240 0 01-12.1 46.5 354.26 354.26 0 01-58.2 101 349.6 349.6 0 01-58.6 56.8c-34 26.1-62 60-80.8 97.9a275.96 275.96 0 00-29.1 124c0 74.9 29.5 145.3 83 198.4 53.7 53.2 125 82.4 201 82.4s147.3-29.2 201-82.4c53.5-53 83-123.5 83-198.4 0-39.2-8.1-77.3-24-113.1-9.3-21-21-40.5-35-58.4z",fill:n}},{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z",fill:t}}]}},name:"fire",theme:"twotone"},adn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:sdn}))},ldn=d.forwardRef(adn),cdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32z"}}]},name:"flag",theme:"filled"},udn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:cdn}))},ddn=d.forwardRef(udn),fdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"},hdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:fdn}))},gdn=d.forwardRef(hdn),pdn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M184 232h368v336H184z",fill:n}},{tag:"path",attrs:{d:"M624 632c0 4.4-3.6 8-8 8H504v73h336V377H624v255z",fill:n}},{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z",fill:t}}]}},name:"flag",theme:"twotone"},mdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:pdn}))},vdn=d.forwardRef(mdn),Cdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM632 577c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.2 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.8 0 7 3.2 7 7.1V528h84.5c4.1 0 7.5 3.2 7.5 7v42z"}}]},name:"folder-add",theme:"filled"},ydn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Cdn}))},bdn=d.forwardRef(ydn),Sdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},wdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Sdn}))},xdn=d.forwardRef(wdn),Edn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M372.5 256H184v512h656V370.4H492.1L372.5 256zM540 443.1V528h84.5c4.1 0 7.5 3.1 7.5 7v42c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1z",fill:n}},{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z",fill:t}},{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1z",fill:t}}]}},name:"folder-add",theme:"twotone"},Rdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Edn}))},$dn=d.forwardRef(Rdn),Odn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z"}}]},name:"folder",theme:"filled"},Tdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Odn}))},Idn=d.forwardRef(Tdn),Mdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z"}}]},name:"folder-open",theme:"filled"},Pdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Mdn}))},_dn=d.forwardRef(Pdn),Adn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Ddn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Adn}))},Ldn=d.forwardRef(Ddn),Fdn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M159 768h612.3l103.4-256H262.3z",fill:n}},{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z",fill:t}}]}},name:"folder-open",theme:"twotone"},Ndn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Fdn}))},kdn=d.forwardRef(Ndn),zdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Bdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:zdn}))},Hdn=d.forwardRef(Bdn),jdn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z",fill:t}},{tag:"path",attrs:{d:"M372.5 256H184v512h656V370.4H492.1z",fill:n}}]}},name:"folder",theme:"twotone"},Vdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jdn}))},Gdn=d.forwardRef(Vdn),Wdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M309.1 554.3a42.92 42.92 0 000 36.4C353.3 684 421.6 732 512.5 732s159.2-48.1 203.4-141.3c5.4-11.5 5.4-24.8.1-36.3l-.1-.1-.1-.1C671.7 461 603.4 413 512.5 413s-159.2 48.1-203.4 141.3zM512.5 477c62.1 0 107.4 30 141.1 95.5C620 638 574.6 668 512.5 668s-107.4-30-141.1-95.5c33.7-65.5 79-95.5 141.1-95.5z"}},{tag:"path",attrs:{d:"M457 573a56 56 0 10112 0 56 56 0 10-112 0z"}},{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-view",theme:"outlined"},Udn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Wdn}))},qdn=d.forwardRef(Udn),Kdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 006-12.4L573.6 118.6a9.9 9.9 0 00-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z"}}]},name:"font-colors",theme:"outlined"},Ydn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Kdn}))},Xdn=d.forwardRef(Ydn),Qdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z"}}]},name:"font-size",theme:"outlined"},Zdn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Qdn}))},NYe=d.forwardRef(Zdn),Jdn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 100c-61.8 0-112 50.2-112 112 0 47.7 29.9 88.5 72 104.6v27.6L512 601.4 312 344.2v-27.6c42.1-16.1 72-56.9 72-104.6 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 50.6 33.8 93.5 80 107.3v34.4c0 9.7 3.3 19.3 9.3 27L476 672.3v33.6c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-33.6l226.7-291.6c6-7.7 9.3-17.3 9.3-27v-34.4c46.2-13.8 80-56.7 80-107.3 0-61.8-50.2-112-112-112zM224 212a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm336 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm192-552a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"fork",theme:"outlined"},efn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Jdn}))},tfn=d.forwardRef(efn),nfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},rfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nfn}))},ifn=d.forwardRef(rfn),ofn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 1.1.2 2.2.6 3.1-.4 1.6-.6 3.2-.6 4.9 0 46.4 37.6 84 84 84s84-37.6 84-84c0-1.7-.2-3.3-.6-4.9.4-1 .6-2 .6-3.1V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40z"}}]},name:"format-painter",theme:"filled"},sfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ofn}))},afn=d.forwardRef(sfn),lfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 .6.1 1.3.2 1.9A83.99 83.99 0 00457 960c46.4 0 84-37.6 84-84 0-2.1-.1-4.1-.2-6.1.1-.6.2-1.2.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z"}}]},name:"format-painter",theme:"outlined"},cfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lfn}))},ufn=d.forwardRef(cfn),dfn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z"}}]},name:"forward",theme:"filled"},ffn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dfn}))},hfn=d.forwardRef(ffn),gfn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z"}}]},name:"forward",theme:"outlined"},pfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gfn}))},mfn=d.forwardRef(pfn),vfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 01-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 01-8 8.4zm24-224a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"frown",theme:"filled"},Cfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vfn}))},yfn=d.forwardRef(Cfn),bfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z"}}]},name:"frown",theme:"outlined"},Sfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bfn}))},wfn=d.forwardRef(Sfn),xfn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 01-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 01-8 8.4zm24-224a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:n}},{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm224 112c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4 3.7-49.5 45.3-88.6 95.8-88.6s92 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533zm128-112a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"frown",theme:"twotone"},Efn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xfn}))},Rfn=d.forwardRef(Efn),$fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},Ofn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$fn}))},Tfn=d.forwardRef(Ofn),Ifn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},Mfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ifn}))},Pfn=d.forwardRef(Mfn),_fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M841 370c3-3.3 2.7-8.3-.6-11.3a8.24 8.24 0 00-5.3-2.1h-72.6c-2.4 0-4.6 1-6.1 2.8L633.5 504.6a7.96 7.96 0 01-13.4-1.9l-63.5-141.3a7.9 7.9 0 00-7.3-4.7H380.7l.9-4.7 8-42.3c10.5-55.4 38-81.4 85.8-81.4 18.6 0 35.5 1.7 48.8 4.7l14.1-66.8c-22.6-4.7-35.2-6.1-54.9-6.1-103.3 0-156.4 44.3-175.9 147.3l-9.4 49.4h-97.6c-3.8 0-7.1 2.7-7.8 6.4L181.9 415a8.07 8.07 0 007.8 9.7H284l-89 429.9a8.07 8.07 0 007.8 9.7H269c3.8 0 7.1-2.7 7.8-6.4l89.7-433.1h135.8l68.2 139.1c1.4 2.9 1 6.4-1.2 8.8l-180.6 203c-2.9 3.3-2.6 8.4.7 11.3 1.5 1.3 3.4 2 5.3 2h72.7c2.4 0 4.6-1 6.1-2.8l123.7-146.7c2.8-3.4 7.9-3.8 11.3-1 .9.8 1.6 1.7 2.1 2.8L676.4 784c1.3 2.8 4.1 4.7 7.3 4.7h64.6a8.02 8.02 0 007.2-11.5l-95.2-198.9c-1.4-2.9-.9-6.4 1.3-8.8L841 370z"}}]},name:"function",theme:"outlined"},Afn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_fn}))},Dfn=d.forwardRef(Afn),Lfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-92.3 194.4l-297 297.2a8.03 8.03 0 01-11.3 0L410.9 541.1 238.4 713.7a8.03 8.03 0 01-11.3 0l-36.8-36.8a8.03 8.03 0 010-11.3l214.9-215c3.1-3.1 8.2-3.1 11.3 0L531 565l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.2 3 3.2 8.1.1 11.2z"}}]},name:"fund",theme:"filled"},Ffn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Lfn}))},Nfn=d.forwardRef(Ffn),kfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L531 565 416.6 450.5a8.03 8.03 0 00-11.3 0l-214.9 215a8.03 8.03 0 000 11.3l36.7 36.9z"}}]},name:"fund",theme:"outlined"},zfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kfn}))},Bfn=d.forwardRef(zfn),Hfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L517 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L275.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8z"}},{tag:"path",attrs:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1a7.92 7.92 0 00-2.3 11l30.3 47.2v.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-.1l30.3-47.2a8 8 0 00-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 512H160V232h704v440z"}}]},name:"fund-projection-screen",theme:"outlined"},jfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Hfn}))},Vfn=d.forwardRef(jfn),Gfn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z",fill:t}},{tag:"path",attrs:{d:"M136 792h752V232H136v560zm56.4-130.5l214.9-215c3.1-3.1 8.2-3.1 11.3 0L533 561l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.1 3.1 3.1 8.2 0 11.3l-297 297.2a8.03 8.03 0 01-11.3 0L412.9 537.2 240.4 709.7a8.03 8.03 0 01-11.3 0l-36.7-36.9a8.03 8.03 0 010-11.3z",fill:n}},{tag:"path",attrs:{d:"M229.1 709.7c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L533 561 418.6 446.5a8.03 8.03 0 00-11.3 0l-214.9 215a8.03 8.03 0 000 11.3l36.7 36.9z",fill:t}}]}},name:"fund",theme:"twotone"},Wfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Gfn}))},Ufn=d.forwardRef(Wfn),qfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M956 686.5l-.1-.1-.1-.1C911.7 593 843.4 545 752.5 545s-159.2 48.1-203.4 141.3v.1a42.92 42.92 0 000 36.4C593.3 816 661.6 864 752.5 864s159.2-48.1 203.4-141.3c5.4-11.5 5.4-24.8.1-36.2zM752.5 800c-62.1 0-107.4-30-141.1-95.5C645 639 690.4 609 752.5 609c62.1 0 107.4 30 141.1 95.5C860 770 814.6 800 752.5 800z"}},{tag:"path",attrs:{d:"M697 705a56 56 0 10112 0 56 56 0 10-112 0zM136 232h704v253h72V192c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h352v-72H136V232z"}},{tag:"path",attrs:{d:"M724.9 338.1l-36.8-36.8a8.03 8.03 0 00-11.3 0L493 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L251.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.2-3.1 3.2-8.2 0-11.3z"}}]},name:"fund-view",theme:"outlined"},Kfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qfn}))},Yfn=d.forwardRef(Kfn),Xfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M336.7 586h350.6l84.9-148H251.8zm543.4-432H143.9c-24.5 0-39.8 26.7-27.5 48L215 374h594l98.7-172c12.2-21.3-3.1-48-27.6-48zM349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V650H349v188z"}}]},name:"funnel-plot",theme:"filled"},Qfn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Xfn}))},Zfn=d.forwardRef(Qfn),Jfn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V650h182.9v148zm9.6-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z"}}]},name:"funnel-plot",theme:"outlined"},ehn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Jfn}))},thn=d.forwardRef(ehn),nhn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M420.6 798h182.9V650H420.6zM297.7 374h428.6l85-148H212.7zm113.2 197.4l8.4 14.6h185.3l8.4-14.6L689.6 438H334.4z",fill:n}},{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V650h182.9v148zm9.5-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z",fill:t}}]}},name:"funnel-plot",theme:"twotone"},rhn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nhn}))},ihn=d.forwardRef(rhn),ohn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 392c8.8 0 16-7.2 16-16V192c0-8.8-7.2-16-16-16H744c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h56v240H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16V648c0-8.8-7.2-16-16-16h-56V392h56zM792 240h88v88h-88v-88zm-648 88v-88h88v88h-88zm88 456h-88v-88h88v88zm648-88v88h-88v-88h88zm-80-64h-56c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16h-56V392h56c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h56v240z"}}]},name:"gateway",theme:"outlined"},shn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ohn}))},ahn=d.forwardRef(shn),lhn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M944 299H692c-4.4 0-8 3.6-8 8v406c0 4.4 3.6 8 8 8h59.2c4.4 0 8-3.6 8-8V549.9h168.2c4.4 0 8-3.6 8-8V495c0-4.4-3.6-8-8-8H759.2V364.2H944c4.4 0 8-3.6 8-8V307c0-4.4-3.6-8-8-8zm-356 1h-56c-4.4 0-8 3.6-8 8v406c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V308c0-4.4-3.6-8-8-8zM452 500.9H290.5c-4.4 0-8 3.6-8 8v43.7c0 4.4 3.6 8 8 8h94.9l-.3 8.9c-1.2 58.8-45.6 98.5-110.9 98.5-76.2 0-123.9-59.7-123.9-156.7 0-95.8 46.8-155.2 121.5-155.2 54.8 0 93.1 26.9 108.5 75.4h76.2c-13.6-87.2-86-143.4-184.7-143.4C150 288 72 375.2 72 511.9 72 650.2 149.1 736 273 736c114.1 0 187-70.7 187-181.6v-45.5c0-4.4-3.6-8-8-8z"}}]},name:"gif",theme:"outlined"},chn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lhn}))},uhn=d.forwardRef(chn),dhn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M160 894c0 17.7 14.3 32 32 32h286V550H160v344zm386 32h286c17.7 0 32-14.3 32-32V550H546v376zm334-616H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v140h366V310h68v172h366V342c0-17.7-14.3-32-32-32zm-402-4h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm138 0h-70v-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70z"}}]},name:"gift",theme:"filled"},fhn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dhn}))},hhn=d.forwardRef(fhn),ghn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z"}}]},name:"gift",theme:"outlined"},phn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ghn}))},mhn=d.forwardRef(phn),vhn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M546 378h298v104H546zM228 550h250v308H228zm-48-172h298v104H180zm366 172h250v308H546z",fill:n}},{tag:"path",attrs:{d:"M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zM478 858H228V550h250v308zm0-376H180V378h298v104zm0-176h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm68-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm250 622H546V550h250v308zm48-376H546V378h298v104z",fill:t}}]}},name:"gift",theme:"twotone"},Chn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vhn}))},yhn=d.forwardRef(Chn),bhn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"filled"},Shn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bhn}))},whn=d.forwardRef(Shn),xhn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},Ehn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xhn}))},Rhn=d.forwardRef(Ehn),$hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M910.5 553.2l-109-370.8c-6.8-20.4-23.1-34.1-44.9-34.1s-39.5 12.3-46.3 32.7l-72.2 215.4H386.2L314 181.1c-6.8-20.4-24.5-32.7-46.3-32.7s-39.5 13.6-44.9 34.1L113.9 553.2c-4.1 13.6 1.4 28.6 12.3 36.8l385.4 289 386.7-289c10.8-8.1 16.3-23.1 12.2-36.8z"}}]},name:"gitlab",theme:"filled"},Ohn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$hn}))},Thn=d.forwardRef(Ohn),Ihn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z"}}]},name:"gitlab",theme:"outlined"},Mhn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ihn}))},Phn=d.forwardRef(Mhn),_hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},Ahn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_hn}))},Dhn=d.forwardRef(Ahn),Lhn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M905.9 806.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zm-470.2-248c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8z"}}]},name:"gold",theme:"filled"},Fhn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Lhn}))},Nhn=d.forwardRef(Fhn),khn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128zm2.5 282.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5z"}}]},name:"gold",theme:"outlined"},zhn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:khn}))},Bhn=d.forwardRef(zhn),Hhn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M435.7 558.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128z",fill:t}},{tag:"path",attrs:{d:"M592.7 276H433.2l-20.8 128h201zM217.2 620l-20.7 128h200.9l-20.7-128zm430 0l-20.7 128h200.9l-20.7-128z",fill:n}}]}},name:"gold",theme:"twotone"},jhn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Hhn}))},Vhn=d.forwardRef(jhn),Ghn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M905.9 806.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zm-470.2-248c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8z"}}]},name:"golden",theme:"filled"},Whn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ghn}))},Uhn=d.forwardRef(Whn),qhn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm167 633.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9C281.5 589 272 551.6 272 512s9.5-77 26.1-110.1c40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z"}}]},name:"google-circle",theme:"filled"},Khn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qhn}))},Yhn=d.forwardRef(Khn),Xhn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"}}]},name:"google",theme:"outlined"},Qhn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Xhn}))},Zhn=d.forwardRef(Qhn),Jhn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm36.5 558.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z"}}]},name:"google-plus-circle",theme:"filled"},egn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Jhn}))},tgn=d.forwardRef(egn),ngn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M879.5 470.4c-.3-27-.4-54.2-.5-81.3h-80.8c-.3 27-.5 54.1-.7 81.3-27.2.1-54.2.3-81.2.6v80.9c27 .3 54.2.5 81.2.8.3 27 .3 54.1.5 81.1h80.9c.1-27 .3-54.1.5-81.3 27.2-.3 54.2-.4 81.2-.7v-80.9c-26.9-.2-54.1-.2-81.1-.5zm-530 .4c-.1 32.3 0 64.7.1 97 54.2 1.8 108.5 1 162.7 1.8-23.9 120.3-187.4 159.3-273.9 80.7-89-68.9-84.8-220 7.7-284 64.7-51.6 156.6-38.9 221.3 5.8 25.4-23.5 49.2-48.7 72.1-74.7-53.8-42.9-119.8-73.5-190-70.3-146.6-4.9-281.3 123.5-283.7 270.2-9.4 119.9 69.4 237.4 180.6 279.8 110.8 42.7 252.9 13.6 323.7-86 46.7-62.9 56.8-143.9 51.3-220-90.7-.7-181.3-.6-271.9-.3z"}}]},name:"google-plus",theme:"outlined"},rgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ngn}))},ign=d.forwardRef(rgn),ogn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM548.5 622.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z"}}]},name:"google-plus-square",theme:"filled"},sgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ogn}))},agn=d.forwardRef(sgn),lgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM679 697.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9A245.02 245.02 0 01272 512c0-39.6 9.5-77 26.1-110.1 40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z"}}]},name:"google-square",theme:"filled"},cgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lgn}))},ugn=d.forwardRef(cgn),dgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M912 820.1V203.9c28-9.9 48-36.6 48-67.9 0-39.8-32.2-72-72-72-31.3 0-58 20-67.9 48H203.9C194 84 167.3 64 136 64c-39.8 0-72 32.2-72 72 0 31.3 20 58 48 67.9v616.2C84 830 64 856.7 64 888c0 39.8 32.2 72 72 72 31.3 0 58-20 67.9-48h616.2c9.9 28 36.6 48 67.9 48 39.8 0 72-32.2 72-72 0-31.3-20-58-48-67.9zM888 112c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zM136 912c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-752c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm704 680H184V184h656v656zm48 72c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24z"}},{tag:"path",attrs:{d:"M288 474h448c8.8 0 16-7.2 16-16V282c0-8.8-7.2-16-16-16H288c-8.8 0-16 7.2-16 16v176c0 8.8 7.2 16 16 16zm56-136h336v64H344v-64zm-56 420h448c8.8 0 16-7.2 16-16V566c0-8.8-7.2-16-16-16H288c-8.8 0-16 7.2-16 16v176c0 8.8 7.2 16 16 16zm56-136h336v64H344v-64z"}}]},name:"group",theme:"outlined"},fgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dgn}))},hgn=d.forwardRef(fgn),ggn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.5 65C719.99 65 889 234.01 889 442.5S719.99 820 511.5 820 134 650.99 134 442.5 303.01 65 511.5 65m0 64C338.36 129 198 269.36 198 442.5S338.36 756 511.5 756 825 615.64 825 442.5 684.64 129 511.5 129M745 889v72H278v-72z"}}]},name:"harmony-o-s",theme:"outlined"},pgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ggn}))},mgn=d.forwardRef(pgn),vgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM456 216c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm576-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm96-152c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48z"}}]},name:"hdd",theme:"filled"},Cgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vgn}))},ygn=d.forwardRef(Cgn),bgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"},Sgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bgn}))},wgn=d.forwardRef(Sgn),xgn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M232 888h560V680H232v208zm448-140c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 616h560V408H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48zm-72-144h560V136H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48z",fill:n}},{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z",fill:t}},{tag:"path",attrs:{d:"M312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-272h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 516a40 40 0 1080 0 40 40 0 10-80 0z",fill:t}}]}},name:"hdd",theme:"twotone"},Egn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xgn}))},Rgn=d.forwardRef(Egn),$gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},Ogn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$gn}))},Tgn=d.forwardRef(Ogn),Ign={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"},Mgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ign}))},Pgn=d.forwardRef(Mgn),_gn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z",fill:t}},{tag:"path",attrs:{d:"M679.7 201c-73.1 0-136.5 40.8-167.7 100.4C480.8 241.8 417.4 201 344.3 201c-104 0-188.3 82.6-188.3 184.5 0 201.2 356 429.3 356 429.3s356-228.1 356-429.3C868 283.6 783.7 201 679.7 201z",fill:n}}]}},name:"heart",theme:"twotone"},Agn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_gn}))},Dgn=d.forwardRef(Agn),Lgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-790.4-23.9L512 231.9 858.7 832H165.3zm319-474.1l-228 394c-12.3 21.3 3.1 48 27.7 48h455.8c24.7 0 40.1-26.7 27.7-48L539.7 358c-6.2-10.7-17-16-27.7-16-10.8 0-21.6 5.3-27.7 16zm214 386H325.7L512 422l186.3 322zm-214-194.1l-57 98.4C415 669.5 430.4 696 455 696h114c24.6 0 39.9-26.5 27.7-47.7l-57-98.4c-6.1-10.6-16.9-15.9-27.7-15.9s-21.5 5.3-27.7 15.9zm57.1 98.4h-58.7l29.4-50.7 29.3 50.7z"}}]},name:"heat-map",theme:"outlined"},Fgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Lgn}))},Ngn=d.forwardRef(Fgn),kgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M957.6 507.4L603.2 158.2a7.9 7.9 0 00-11.2 0L353.3 393.4a8.03 8.03 0 00-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 00-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0011.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0011.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2z"}}]},name:"highlight",theme:"filled"},zgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kgn}))},Bgn=d.forwardRef(zgn),Hgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M957.6 507.4L603.2 158.2a7.9 7.9 0 00-11.2 0L353.3 393.4a8.03 8.03 0 00-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 00-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0011.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0011.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z"}}]},name:"highlight",theme:"outlined"},jgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Hgn}))},Vgn=d.forwardRef(jgn),Ggn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M229.6 796.3h160.2l54.3-54.1-80.1-78.9zm220.7-397.1l262.8 258.9 147.3-145-262.8-259zm-77.1 166.1l171.4 168.9 68.6-67.6-171.4-168.9z",fill:n}},{tag:"path",attrs:{d:"M957.6 507.5L603.2 158.3a7.9 7.9 0 00-11.2 0L353.3 393.5a8.03 8.03 0 00-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 00-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8v55.2c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6L539 830a7.9 7.9 0 0011.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0011.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.3H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.3l68.6-67.6 171.4 168.9-68.6 67.6zm168.5-76.1L450.3 399.2l147.3-145.1 262.8 259-147.3 145z",fill:t}}]}},name:"highlight",theme:"twotone"},Wgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ggn}))},Ugn=d.forwardRef(Wgn),qgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},Kgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qgn}))},Ygn=d.forwardRef(Kgn),Xgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Qgn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Xgn}))},Zgn=d.forwardRef(Qgn),Jgn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L534.6 93.4a31.93 31.93 0 00-45.2 0L77.5 505c-12 12-18.8 28.3-18.8 45.3 0 35.3 28.7 64 64 64h43.4V908c0 17.7 14.3 32 32 32H448V716h112v224h265.9c17.7 0 32-14.3 32-32V614.3h43.4c17 0 33.3-6.7 45.3-18.8 24.9-25 24.9-65.5-.1-90.5z"}}]},name:"home",theme:"filled"},epn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Jgn}))},tpn=d.forwardRef(epn),npn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},rpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:npn}))},kYe=d.forwardRef(rpn),ipn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.1 172.6l-370 369.7h96V868H392V640c0-22.1 17.9-40 40-40h160c22.1 0 40 17.9 40 40v228h153.9V542.3H882L535.2 195.7l-23.1-23.1zm434.5 422.9c-6 6-13.1 10.8-20.8 13.9 7.7-3.2 14.8-7.9 20.8-13.9zm-887-34.7c5 30.3 31.4 53.5 63.1 53.5h.9c-31.9 0-58.9-23-64-53.5zm-.9-10.5v-1.9 1.9zm.1-2.6c.1-3.1.5-6.1 1-9.1-.6 2.9-.9 6-1 9.1z",fill:n}},{tag:"path",attrs:{d:"M951 510c0-.1-.1-.1-.1-.2l-1.8-2.1c-.1-.1-.2-.3-.4-.4-.7-.8-1.5-1.6-2.2-2.4L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.6 63.6 0 00-16 26.6l-.6 2.1-.3 1.1-.3 1.2c-.2.7-.3 1.4-.4 2.1 0 .1 0 .3-.1.4-.6 3-.9 6-1 9.1v3.3c0 .5 0 1 .1 1.5 0 .5 0 .9.1 1.4 0 .5.1 1 .1 1.5 0 .6.1 1.2.2 1.8 0 .3.1.6.1.9l.3 2.5v.1c5.1 30.5 32.2 53.5 64 53.5h42.5V940h691.7V614.3h43.4c8.6 0 16.9-1.7 24.5-4.9s14.7-7.9 20.8-13.9a63.6 63.6 0 0018.7-45.3c0-14.7-5-28.8-14.3-40.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z",fill:t}}]}},name:"home",theme:"twotone"},opn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ipn}))},spn=d.forwardRef(opn),apn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194z"}}]},name:"hourglass",theme:"filled"},lpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:apn}))},cpn=d.forwardRef(lpn),upn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 01354 318V184h316v134z"}}]},name:"hourglass",theme:"outlined"},dpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:upn}))},fpn=d.forwardRef(dpn),hpn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 548c-42.2 0-81.9 16.4-111.7 46.3A156.63 156.63 0 00354 706v134h316V706c0-42.2-16.4-81.9-46.3-111.7A156.63 156.63 0 00512 548zM354 318c0 42.2 16.4 81.9 46.3 111.7C430.1 459.6 469.8 476 512 476s81.9-16.4 111.7-46.3C653.6 399.9 670 360.2 670 318V184H354v134z",fill:n}},{tag:"path",attrs:{d:"M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 01354 318V184h316v134z",fill:t}}]}},name:"hourglass",theme:"twotone"},gpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hpn}))},ppn=d.forwardRef(gpn),mpn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M145.2 96l66 746.6L512 928l299.6-85.4L878.9 96H145.2zm595 177.1l-4.8 47.2-1.7 19.5H382.3l8.2 94.2h335.1l-3.3 24.3-21.2 242.2-1.7 16.2-187 51.6v.3h-1.2l-.3.1v-.1h-.1l-188.6-52L310.8 572h91.1l6.5 73.2 102.4 27.7h.4l102-27.6 11.4-118.6H510.9v-.1H306l-22.8-253.5-1.7-24.3h460.3l-1.6 24.3z"}}]},name:"html5",theme:"filled"},vpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mpn}))},Cpn=d.forwardRef(vpn),ypn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2zM281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z"}}]},name:"html5",theme:"outlined"},bpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ypn}))},Spn=d.forwardRef(bpn),wpn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2z",fill:t}},{tag:"path",attrs:{d:"M209.9 155.4l56.7 641.2 245.2 69.6 244.1-69.6 57.8-641.2H209.9zm530.4 117.9l-4.8 47.2-1.7 19.5H381.7l8.2 94.2H511v-.2h214.7l-3.2 24.3-21.2 242.2-1.7 16.3-187.7 51.7v.4h-1.7l-188.6-52-11.3-144.7h91l6.5 73.2 102.4 27.7h.8v-.2l102.4-27.7 11.4-118.5H511.9v.1H305.4l-22.7-253.5L281 249h461l-1.7 24.3z",fill:n}},{tag:"path",attrs:{d:"M281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z",fill:t}}]}},name:"html5",theme:"twotone"},xpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:wpn}))},Epn=d.forwardRef(xpn),Rpn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52 51.7-23.3 51.7-52-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 01-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 01-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z"}}]},name:"idcard",theme:"filled"},$pn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Rpn}))},Opn=d.forwardRef($pn),Tpn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z"}}]},name:"idcard",theme:"outlined"},Ipn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Tpn}))},zYe=d.forwardRef(Ipn),Mpn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z",fill:t}},{tag:"path",attrs:{d:"M136 792h752V232H136v560zm472-372c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm0 144c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48c0 4.4-3.2 8-7.1 8H615.1c-3.9 0-7.1-3.6-7.1-8v-48zM216.2 664.6c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.6 26.4 71.8 72.8 74.6 126.1a8 8 0 01-8 8.4h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224c-4.6 0-8.2-3.8-7.8-8.4z",fill:n}},{tag:"path",attrs:{d:"M321.3 463a51.7 52 0 10103.4 0 51.7 52 0 10-103.4 0z",fill:n}},{tag:"path",attrs:{d:"M610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z",fill:t}}]}},name:"idcard",theme:"twotone"},Ppn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Mpn}))},_pn=d.forwardRef(Ppn),Apn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},Dpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Apn}))},Lpn=d.forwardRef(Dpn),Fpn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M852.6 367.6c16.3-36.9 32.1-90.7 32.1-131.8 0-109.1-119.5-147.6-314.5-57.9-161.4-10.8-316.8 110.5-355.6 279.7 46.3-52.3 117.4-123.4 183-151.7C316.1 378.3 246.7 470 194 565.6c-31.1 56.9-66 148.8-66 217.5 0 147.9 139.3 129.8 270.4 63 47.1 23.1 99.8 23.4 152.5 23.4 145.7 0 276.4-81.4 325.2-219H694.9c-78.8 132.9-295.2 79.5-295.2-71.2h493.2c9.6-65.4-2.5-143.6-40.3-211.7zM224.8 648.3c26.6 76.7 80.6 143.8 150.4 185-133.1 73.4-259.9 43.6-150.4-185zm174-163.3c3-82.7 75.4-142.3 156-142.3 80.1 0 153 59.6 156 142.3h-312zm276.8-281.4c32.1-15.4 72.8-33 108.8-33 47.1 0 81.4 32.6 81.4 80.6 0 30-11.1 73.5-21.9 101.8-39.3-63.5-98.9-122.4-168.3-149.4z"}}]},name:"ie",theme:"outlined"},Npn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Fpn}))},kpn=d.forwardRef(Npn),zpn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM765.9 556.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zm-72.3-272.5c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-square",theme:"filled"},Bpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:zpn}))},Hpn=d.forwardRef(Bpn),jpn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},Vpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jpn}))},hme=d.forwardRef(Vpn),Gpn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Wpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Gpn}))},BYe=d.forwardRef(Wpn),Upn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},qpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Upn}))},Kpn=d.forwardRef(qpn),Ypn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm32 588c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:n}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"info-circle",theme:"twotone"},Xpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ypn}))},Qpn=d.forwardRef(Xpn),Zpn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M448 224a64 64 0 10128 0 64 64 0 10-128 0zm96 168h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z"}}]},name:"info",theme:"outlined"},Jpn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zpn}))},emn=d.forwardRef(Jpn),tmn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M878.7 336H145.3c-18.4 0-33.3 14.3-33.3 32v464c0 17.7 14.9 32 33.3 32h733.3c18.4 0 33.3-14.3 33.3-32V368c.1-17.7-14.8-32-33.2-32zM360 792H184V632h176v160zm0-224H184V408h176v160zm240 224H424V632h176v160zm0-224H424V408h176v160zm240 224H664V632h176v160zm0-224H664V408h176v160zm64-408H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8z"}}]},name:"insert-row-above",theme:"outlined"},nmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:tmn}))},rmn=d.forwardRef(nmn),imn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M904 768H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-25.3-608H145.3c-18.4 0-33.3 14.3-33.3 32v464c0 17.7 14.9 32 33.3 32h733.3c18.4 0 33.3-14.3 33.3-32V192c.1-17.7-14.8-32-33.2-32zM360 616H184V456h176v160zm0-224H184V232h176v160zm240 224H424V456h176v160zm0-224H424V232h176v160zm240 224H664V456h176v160zm0-224H664V232h176v160z"}}]},name:"insert-row-below",theme:"outlined"},omn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:imn}))},smn=d.forwardRef(omn),amn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M248 112h-80c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V120c0-4.4-3.6-8-8-8zm584 0H368c-17.7 0-32 14.9-32 33.3v733.3c0 18.4 14.3 33.3 32 33.3h464c17.7 0 32-14.9 32-33.3V145.3c0-18.4-14.3-33.3-32-33.3zM568 840H408V664h160v176zm0-240H408V424h160v176zm0-240H408V184h160v176zm224 480H632V664h160v176zm0-240H632V424h160v176zm0-240H632V184h160v176z"}}]},name:"insert-row-left",theme:"outlined"},lmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:amn}))},cmn=d.forwardRef(lmn),umn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M856 112h-80c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V120c0-4.4-3.6-8-8-8zm-200 0H192c-17.7 0-32 14.9-32 33.3v733.3c0 18.4 14.3 33.3 32 33.3h464c17.7 0 32-14.9 32-33.3V145.3c0-18.4-14.3-33.3-32-33.3zM392 840H232V664h160v176zm0-240H232V424h160v176zm0-240H232V184h160v176zm224 480H456V664h160v176zm0-240H456V424h160v176zm0-240H456V184h160v176z"}}]},name:"insert-row-right",theme:"outlined"},dmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:umn}))},fmn=d.forwardRef(dmn),hmn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 378.7c-73.4 0-133.3 59.9-133.3 133.3S438.6 645.3 512 645.3 645.3 585.4 645.3 512 585.4 378.7 512 378.7zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zM512 717.1c-113.5 0-205.1-91.6-205.1-205.1S398.5 306.9 512 306.9 717.1 398.5 717.1 512 625.5 717.1 512 717.1zm213.5-370.7c-26.5 0-47.9-21.4-47.9-47.9s21.4-47.9 47.9-47.9 47.9 21.4 47.9 47.9a47.84 47.84 0 01-47.9 47.9z"}}]},name:"instagram",theme:"filled"},gmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hmn}))},pmn=d.forwardRef(gmn),mmn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 306.9c-113.5 0-205.1 91.6-205.1 205.1S398.5 717.1 512 717.1 717.1 625.5 717.1 512 625.5 306.9 512 306.9zm0 338.4c-73.4 0-133.3-59.9-133.3-133.3S438.6 378.7 512 378.7 645.3 438.6 645.3 512 585.4 645.3 512 645.3zm213.5-394.6c-26.5 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9 47.9-21.3 47.9-47.9a47.84 47.84 0 00-47.9-47.9zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zm-88 235.8c-7.3 18.2-16.1 31.8-30.2 45.8-14.1 14.1-27.6 22.9-45.8 30.2C695.2 844.7 570.3 840 512 840c-58.3 0-183.3 4.7-235.9-16.1-18.2-7.3-31.8-16.1-45.8-30.2-14.1-14.1-22.9-27.6-30.2-45.8C179.3 695.2 184 570.3 184 512c0-58.3-4.7-183.3 16.1-235.9 7.3-18.2 16.1-31.8 30.2-45.8s27.6-22.9 45.8-30.2C328.7 179.3 453.7 184 512 184s183.3-4.7 235.9 16.1c18.2 7.3 31.8 16.1 45.8 30.2 14.1 14.1 22.9 27.6 30.2 45.8C844.7 328.7 840 453.7 840 512c0 58.3 4.7 183.2-16.2 235.8z"}}]},name:"instagram",theme:"outlined"},vmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mmn}))},Cmn=d.forwardRef(vmn),ymn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M519.9 358.8h97.9v41.6h-97.9zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM411.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 01-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 01-33.6 79V656zm296.5-49.2l-26.3 35.3a5.92 5.92 0 01-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a5.9 5.9 0 01-8.9-1.4L430 605.7a6 6 0 011.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5z"}}]},name:"insurance",theme:"filled"},bmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ymn}))},Smn=d.forwardRef(bmn),wmn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M441.6 306.8L403 288.6a6.1 6.1 0 00-8.4 3.7c-17.5 58.5-45.2 110.1-82.2 153.6a6.05 6.05 0 00-1.2 5.6l13.2 43.5c1.3 4.4 7 5.7 10.2 2.4 7.7-8.1 15.4-16.9 23.1-26V656c0 4.4 3.6 8 8 8H403c4.4 0 8-3.6 8-8V393.1a429.2 429.2 0 0033.6-79c1-2.9-.3-6-3-7.3zm26.8 9.2v127.2c0 4.4 3.6 8 8 8h65.9v18.6h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 00-1.6 8.1l22.8 36.5c1.9 3.1 6.2 3.8 8.9 1.4 31.6-26.8 58.7-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V536c21.3 41.7 47.5 77.5 78.1 106.9 2.6 2.5 6.8 2.1 8.9-.7l26.3-35.3c2-2.7 1.4-6.5-1.2-8.4-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8V478c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H476.4c-4.4 0-8 3.6-8 8zm51.5 42.8h97.9v41.6h-97.9v-41.6zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z"}}]},name:"insurance",theme:"outlined"},xmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:wmn}))},Emn=d.forwardRef(xmn),Rmn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z",fill:t}},{tag:"path",attrs:{d:"M521.9 358.8h97.9v41.6h-97.9z",fill:n}},{tag:"path",attrs:{d:"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM413.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 01-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 01-33.6 79V656zm257.9-340v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5l-26.3 35.3a5.92 5.92 0 01-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a6.38 6.38 0 01-4.8 1.4c-1.7-.3-3.2-1.3-4.1-2.8L432 605.7a6 6 0 011.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8z",fill:n}},{tag:"path",attrs:{d:"M443.7 306.9l-38.6-18.3c-3.4-1.6-7.3.2-8.4 3.7-17.5 58.5-45.2 110.2-82.2 153.6a5.7 5.7 0 00-1.2 5.6l13.2 43.5c1.4 4.5 7 5.8 10.2 2.4 7.7-8.1 15.4-16.8 23.1-26V656c0 4.4 3.6 8 8 8h37.3c4.4 0 8-3.6 8-8h.2V393.1a429.2 429.2 0 0033.6-79c.9-2.8-.5-5.9-3.2-7.2zm26.8 9.1v127.4c0 4.4 3.6 8 8 8h65.9V470h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 00-1.6 8.1l22.8 36.5c.9 1.5 2.4 2.5 4.1 2.8 1.7.3 3.5-.2 4.8-1.4 31.6-26.8 58.6-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V535.9c21.3 41.7 47.5 77.6 78.1 106.9 2.6 2.5 6.7 2.2 8.9-.7l26.3-35.3c2-2.6 1.4-6.4-1.2-8.5-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8v-35.6c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H478.5c-4.4 0-8 3.6-8 8zm51.4 42.8h97.9v41.6h-97.9v-41.6z",fill:t}}]}},name:"insurance",theme:"twotone"},$mn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Rmn}))},Omn=d.forwardRef($mn),Tmn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z"}}]},name:"interaction",theme:"filled"},Imn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Tmn}))},Mmn=d.forwardRef(Imn),Pmn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z"}}]},name:"interaction",theme:"outlined"},_mn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Pmn}))},Amn=d.forwardRef(_mn),Dmn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm114-401.9c0-55.3 44.6-100.1 99.7-100.1h205.8v-53.4c0-5.6 6.5-8.8 10.9-5.3L723.5 365c3.5 2.7 3.5 8 0 10.7l-109.1 85.7c-4.4 3.5-10.9.4-10.9-5.3v-53.4H397.8c-19.6 0-35.5 15.9-35.5 35.6v78.9c0 3.8-3.1 6.8-6.8 6.8h-50.7c-3.8 0-6.8-3-6.8-7v-78.9zm2.6 210.3l109.1-85.7c4.4-3.5 10.9-.4 10.9 5.3v53.4h205.6c19.6 0 35.5-15.9 35.5-35.6v-78.9c0-3.8 3.1-6.8 6.8-6.8h50.7c3.8 0 6.8 3.1 6.8 6.8v78.9c0 55.3-44.6 100.1-99.7 100.1H420.6v53.4c0 5.6-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.5z",fill:n}},{tag:"path",attrs:{d:"M304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z",fill:t}}]}},name:"interaction",theme:"twotone"},Lmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Dmn}))},Fmn=d.forwardRef(Lmn),Nmn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm72-112c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48zm400-188h-59.3c-2.6 0-5 1.2-6.5 3.3L763.7 538.1l-49.9-68.8a7.92 7.92 0 00-6.5-3.3H648c-6.5 0-10.3 7.4-6.5 12.7l109.2 150.7a16.1 16.1 0 0026 0l165.8-228.7c3.8-5.3 0-12.7-6.5-12.7zm-44 306h-64.2c-5.5 0-10.6 2.9-13.6 7.5a352.2 352.2 0 01-49.8 62.2A355.92 355.92 0 01651.1 840a355 355 0 01-138.7 27.9c-48.1 0-94.8-9.4-138.7-27.9a355.92 355.92 0 01-113.3-76.3A353.06 353.06 0 01184 650.5c-18.6-43.8-28-90.5-28-138.5s9.4-94.7 28-138.5c17.9-42.4 43.6-80.5 76.4-113.2 32.8-32.7 70.9-58.4 113.3-76.3a355 355 0 01138.7-27.9c48.1 0 94.8 9.4 138.7 27.9 42.4 17.9 80.5 43.6 113.3 76.3 19 19 35.6 39.8 49.8 62.2 2.9 4.7 8.1 7.5 13.6 7.5H892c6 0 9.8-6.3 7.2-11.6C828.8 178.5 684.7 82 517.7 80 278.9 77.2 80.5 272.5 80 511.2 79.5 750.1 273.3 944 512.4 944c169.2 0 315.6-97 386.7-238.4A8 8 0 00892 694z"}}]},name:"issues-close",theme:"outlined"},kmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Nmn}))},zmn=d.forwardRef(kmn),Bmn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"italic",theme:"outlined"},Hmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Bmn}))},jmn=d.forwardRef(Hmn),Vmn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M394.68 756.99s-34.33 19.95 24.34 26.6c71.1 8.05 107.35 7 185.64-7.87 0 0 20.66 12.94 49.38 24.14-175.47 75.08-397.18-4.37-259.36-42.87m-21.37-98.17s-38.35 28.35 20.32 34.47c75.83 7.88 135.9 8.4 239.57-11.55 0 0 14.36 14.53 36.95 22.4-212.43 62.13-448.84 5.08-296.84-45.32m180.73-166.43c43.26 49.7-11.38 94.5-11.38 94.5s109.8-56.7 59.37-127.57c-47.11-66.15-83.19-99.05 112.25-212.27.18 0-306.82 76.65-160.24 245.35m232.22 337.04s25.4 20.82-27.85 37.1c-101.4 30.62-421.7 39.9-510.66 1.22-32.05-13.82 28.02-33.25 46.93-37.27 19.62-4.2 31-3.5 31-3.5-35.55-25.03-229.94 49.17-98.77 70.35 357.6 58.1 652.16-26.08 559.35-67.9m-375.12-272.3s-163.04 38.68-57.79 52.68c44.48 5.95 133.1 4.55 215.58-2.28 67.42-5.6 135.2-17.85 135.2-17.85s-23.82 10.15-40.98 21.88c-165.5 43.57-485.1 23.27-393.16-21.18 77.93-37.45 141.15-33.25 141.15-33.25M703.6 720.42c168.3-87.33 90.37-171.33 36.08-159.95-13.31 2.8-19.27 5.25-19.27 5.25s4.9-7.7 14.36-11.03C842.12 516.9 924.78 666 700.1 724.97c0-.18 2.63-2.45 3.5-4.55M602.03 64s93.16 93.1-88.44 236.25c-145.53 114.8-33.27 180.42 0 255.14-84.94-76.65-147.28-144.02-105.42-206.84C469.63 256.67 639.68 211.87 602.03 64M427.78 957.19C589.24 967.5 837.22 951.4 843 875.1c0 0-11.2 28.88-133.44 51.98-137.83 25.9-307.87 22.92-408.57 6.3 0-.18 20.66 16.97 126.79 23.8"}}]},name:"java",theme:"outlined"},Gmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Vmn}))},Wmn=d.forwardRef(Gmn),Umn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M416 176H255.54v425.62c0 105.3-36.16 134.71-99.1 134.71-29.5 0-56.05-5.05-76.72-12.14L63 848.79C92.48 858.91 137.73 865 173.13 865 317.63 865 416 797.16 416 602.66zm349.49-16C610.26 160 512 248.13 512 364.6c0 100.32 75.67 163.13 185.7 203.64 79.57 28.36 111.03 53.7 111.03 95.22 0 45.57-36.36 74.96-105.13 74.96-63.87 0-121.85-21.31-161.15-42.58v-.04L512 822.43C549.36 843.73 619.12 865 694.74 865 876.52 865 961 767.75 961 653.3c0-97.25-54.04-160.04-170.94-204.63-86.47-34.44-122.81-53.67-122.81-97.23 0-34.45 31.45-65.84 96.3-65.84 63.83 0 107.73 21.45 133.3 34.64l38.34-128.19C895.1 174.46 841.11 160 765.5 160"}}]},name:"java-script",theme:"outlined"},qmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Umn}))},Kmn=d.forwardRef(qmn),Ymn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"},Xmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ymn}))},Qmn=d.forwardRef(Xmn),Zmn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.99 111a61.55 61.55 0 00-26.8 6.13l-271.3 131a61.71 61.71 0 00-33.32 41.85L113.53 584.5a61.77 61.77 0 0011.86 52.06L313.2 872.71a61.68 61.68 0 0048.26 23.27h301.05a61.68 61.68 0 0048.26-23.27l187.81-236.12v-.03a61.73 61.73 0 0011.9-52.03v-.03L843.4 289.98v-.04a61.72 61.72 0 00-33.3-41.8l-271.28-131a17.43 17.43 0 00-.03-.04 61.76 61.76 0 00-26.8-6.1m0 35.1c3.94 0 7.87.87 11.55 2.64l271.3 131a26.54 26.54 0 0114.36 18.02l67.04 294.52a26.56 26.56 0 01-5.1 22.45L683.31 850.88a26.51 26.51 0 01-20.8 10H361.45a26.45 26.45 0 01-20.77-10L152.88 614.73a26.59 26.59 0 01-5.14-22.45l67.07-294.49a26.51 26.51 0 0114.32-18.02v-.04l271.3-131A26.52 26.52 0 01512 146.1m-.14 73.82c-2.48 0-4.99.5-7.4 1.51-9.65 4.21-14.22 15.44-10.01 25.09 4.04 9.48 5.42 18.94 6.48 28.41.35 4.92.55 9.66.37 14.4.53 4.74-1.94 9.48-5.45 14.22-3.68 4.74-4.03 9.49-4.55 14.23-48.16 4.72-91.51 25.83-124.65 57.54l-.31-.17c-4.04-2.63-7.88-5.27-14.02-5.45-5.79-.35-11.06-1.4-14.4-4.9-3.68-2.8-7.35-5.95-10.69-9.29-6.84-6.67-13.36-13.87-18.1-23a19.66 19.66 0 00-11.58-9.5 19.27 19.27 0 00-23.68 13.17c-2.98 10 2.98 20.7 13.16 23.51 9.83 2.99 18.08 7.9 26.15 13.16a127.38 127.38 0 0111.24 8.6c4.04 2.64 6.13 7.55 7.71 13.17 1.16 5.62 4.39 8.88 7.54 12.03a209.26 209.26 0 00-37.08 142.61c-3.94 1.38-7.83 2.88-11.17 6.82-3.86 4.39-8.08 7.88-12.82 8.23a94.03 94.03 0 01-14.02 2.64c-9.47 1.23-19.13 1.93-29.13-.17a19.53 19.53 0 00-14.74 3.32c-8.6 5.97-10.52 17.9-4.56 26.5a19.13 19.13 0 0026.67 4.59c8.42-5.97 17.37-9.32 26.5-12.3 4.55-1.41 9.13-2.62 13.87-3.5 4.56-1.58 9.64-.2 15.08 2.09 4.52 2.33 8.52 2.15 12.48 1.75 15.44 50.08 49.22 92.03 93.32 118.52-1.5 4.21-2.92 8.6-1.57 14.15 1.05 5.8 1.22 11.25-1.24 15.29a172.58 172.58 0 01-6.3 12.78c-4.92 8.07-10.17 16.15-17.9 23.17a18.97 18.97 0 00-6.33 13.5 19.06 19.06 0 0018.43 19.68A19.21 19.21 0 00409 787.88c.17-10.35 2.97-19.46 6.13-28.59 1.58-4.38 3.52-8.77 5.62-12.99 1.58-4.56 5.78-7.92 10.87-10.72 5.07-2.62 7.35-6.32 9.63-10.22a209.09 209.09 0 0070.74 12.51c25.26 0 49.4-4.72 71.87-12.92 2.37 4.06 4.82 7.91 9.9 10.63 5.1 2.98 9.29 6.16 10.87 10.72 2.1 4.4 3.87 8.78 5.45 13.17 3.15 9.12 5.78 18.23 6.13 28.58 0 5.09 2.1 10.02 6.14 13.71a19.32 19.32 0 0027.04-1.23 19.32 19.32 0 00-1.24-27.05c-7.72-6.84-12.98-15.09-17.72-23.34-2.28-4.03-4.37-8.4-6.3-12.6-2.46-4.22-2.3-9.5-1.06-15.3 1.4-5.96-.18-10.34-1.58-14.9l-.14-.45c43.76-26.75 77.09-68.83 92.2-118.9l.58.04c4.91.35 9.64.85 14.9-2.13 5.27-2.46 10.56-3.87 15.12-2.47 4.56.7 9.29 1.76 13.85 2.99 9.12 2.63 18.27 5.79 26.87 11.58a19.5 19.5 0 0014.73 2.64 18.99 18.99 0 0014.57-22.62 19.11 19.11 0 00-22.82-14.57c-10.18 2.28-19.66 1.9-29.3 1.03-4.75-.53-9.32-1.2-14.06-2.26-4.74-.35-8.92-3.5-12.96-7.71-4.03-4.74-8.6-5.97-13.16-7.37l-.3-.1c.6-6.51.99-13.08.99-19.75 0-43.5-13.28-83.99-35.99-117.6 3.33-3.5 6.7-6.82 7.92-12.78 1.58-5.61 3.68-10.53 7.71-13.16 3.51-3.16 7.38-5.96 11.24-8.77 7.9-5.27 16.16-10.36 25.98-13.16a18.5 18.5 0 0011.55-9.67 18.8 18.8 0 00-8.22-25.6 18.84 18.84 0 00-25.64 8.22c-4.74 9.13-11.22 16.33-17.89 23-3.51 3.34-7 6.51-10.7 9.5-3.33 3.5-8.6 4.55-14.39 4.9-6.14.17-10.01 2.99-14.05 5.62a210 210 0 00-127.4-60.02c-.52-4.73-.87-9.48-4.55-14.22-3.51-4.74-5.98-9.48-5.45-14.22-.17-4.74.03-9.48.38-14.4 1.05-9.47 2.44-18.94 6.48-28.41 1.93-4.56 2.1-10 0-15.08a19.23 19.23 0 00-17.69-11.52m-25.16 133.91l-.85 6.75c-2.46 18.96-4.21 38.08-5.97 57.04a876 876 0 00-2.64 30.2c-8.6-6.15-17.2-12.66-26.32-18.45-15.79-10.7-31.6-21.42-47.91-31.6l-5.52-3.43a174.43 174.43 0 0189.21-40.5m50.59 0a174.38 174.38 0 0192.16 43.21l-5.86 3.7c-16.14 10.35-31.74 21.07-47.54 31.77a491.28 491.28 0 00-18.44 13 7.3 7.3 0 01-11.58-5.46c-.53-7.54-1.22-14.9-1.92-22.45-1.75-18.95-3.5-38.08-5.96-57.03zm-173 78.82l5.58 5.83c13.33 13.86 26.86 27.2 40.54 40.71 5.8 5.8 11.58 11.26 17.55 16.7a7.19 7.19 0 01-2.81 12.27c-8.6 2.63-17.21 5.07-25.8 7.88-18.08 5.97-36.32 11.6-54.4 18.1l-7.95 2.77c-.17-3.2-.48-6.37-.48-9.63 0-34.92 10.27-67.33 27.76-94.63m297.52 3.46a174.67 174.67 0 0125.67 91.17c0 2.93-.3 5.78-.44 8.67l-6.24-1.98c-18.25-5.97-36.48-11.09-54.9-16.35a900.54 900.54 0 00-35.82-9.63c8.95-8.6 18.27-17.04 26.87-25.81 13.51-13.51 27-27.02 40.17-41.06zM501.12 492.2h21.39c3.33 0 6.5 1.58 8.26 4.04l13.67 17.2a10.65 10.65 0 012.13 8.57l-4.94 21.25c-.52 3.34-2.81 5.96-5.62 7.54l-19.64 9.12a9.36 9.36 0 01-9.11 0l-19.67-9.12c-2.81-1.58-5.27-4.2-5.63-7.54l-4.9-21.25c-.52-2.98.2-6.28 2.13-8.56l13.67-17.2a10.25 10.25 0 018.26-4.05m-63.37 83.7c5.44-.88 9.85 4.57 7.75 9.66a784.28 784.28 0 00-9.5 26.15 1976.84 1976.84 0 00-18.78 54.22l-2.4 7.54a175.26 175.26 0 01-68-87.3l9.33-.78c19.13-1.76 37.9-4.06 57.03-6.34 8.25-.88 16.33-2.1 24.57-3.16m151.63 2.47c8.24.88 16.32 1.77 24.57 2.47 19.13 1.75 38.07 3.5 57.2 4.73l6.1.34a175.25 175.25 0 01-66.6 86.58l-1.98-6.38c-5.79-18.25-12.1-36.32-18.23-54.22a951.58 951.58 0 00-8.6-23.85 7.16 7.16 0 017.54-9.67m-76.1 34.62c2.5 0 5.01 1.26 6.42 3.8a526.47 526.47 0 0012.13 21.77c9.48 16.5 18.92 33.17 29.1 49.32l4.15 6.71a176.03 176.03 0 01-53.1 8.2 176.14 176.14 0 01-51.57-7.72l4.38-7.02c10.18-16.15 19.83-32.66 29.48-49.15a451.58 451.58 0 0012.65-22.1 7.2 7.2 0 016.37-3.81"}}]},name:"kubernetes",theme:"outlined"},Jmn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zmn}))},e1n=d.forwardRef(Jmn),t1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z"}}]},name:"laptop",theme:"outlined"},n1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:t1n}))},r1n=d.forwardRef(n1n),i1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M384 912h496c17.7 0 32-14.3 32-32V340H384v572zm496-800H384v164h528V144c0-17.7-14.3-32-32-32zm-768 32v736c0 17.7 14.3 32 32 32h176V112H144c-17.7 0-32 14.3-32 32z"}}]},name:"layout",theme:"filled"},o1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:i1n}))},s1n=d.forwardRef(o1n),a1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z"}}]},name:"layout",theme:"outlined"},l1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:a1n}))},c1n=d.forwardRef(l1n),u1n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M384 185h456v136H384zm-200 0h136v656H184zm696-73H144c-17.7 0-32 14.3-32 32v1c0-17.7 14.3-32 32-32h736c17.7 0 32 14.3 32 32v-1c0-17.7-14.3-32-32-32zM384 385h456v456H384z",fill:n}},{tag:"path",attrs:{d:"M880 113H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V145c0-17.7-14.3-32-32-32zM320 841H184V185h136v656zm520 0H384V385h456v456zm0-520H384V185h456v136z",fill:t}}]}},name:"layout",theme:"twotone"},d1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:u1n}))},f1n=d.forwardRef(d1n),h1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178a8 8 0 0112.7 6.5v46.8z"}}]},name:"left-circle",theme:"filled"},g1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:h1n}))},p1n=d.forwardRef(g1n),m1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M603.3 327.5l-246 178a7.95 7.95 0 000 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"left-circle",theme:"outlined"},v1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:m1n}))},C1n=d.forwardRef(v1n),y1n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm104 240.9c0 10.3-4.9 19.9-13.2 25.9L457.4 512l145.4 105.1c8.3 6 13.2 15.7 13.2 25.9v46.9c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9z",fill:n}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M603.3 327.5l-246 178a7.95 7.95 0 000 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z",fill:t}}]}},name:"left-circle",theme:"twotone"},b1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:y1n}))},S1n=d.forwardRef(b1n),w1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM624 380.9c0 10.2-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.8z"}}]},name:"left-square",theme:"filled"},x1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:w1n}))},E1n=d.forwardRef(x1n),R1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 000 13z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"left-square",theme:"outlined"},$1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:R1n}))},O1n=d.forwardRef($1n),T1n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm181.3-334.5l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9c0 10.3-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.7 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.4l-246-178a7.95 7.95 0 010-12.9z",fill:n}},{tag:"path",attrs:{d:"M365.3 518.4l246 178c5.3 3.9 12.7.1 12.7-6.4v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a7.95 7.95 0 000 12.9z",fill:t}}]}},name:"left-square",theme:"twotone"},I1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:T1n}))},M1n=d.forwardRef(I1n),P1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z"}}]},name:"like",theme:"filled"},_1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:P1n}))},A1n=d.forwardRef(_1n),D1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},L1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:D1n}))},F1n=d.forwardRef(L1n),N1n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M273 495.9v428l.3-428zm538.2-88.3H496.8l9.6-198.4c.6-11.9-4.7-23.1-14.6-30.5-6.1-4.5-13.6-6.8-21.1-6.7-19.6.1-36.9 13.4-42.2 32.3-37.1 134.4-64.9 235.2-83.5 302.5V852h399.4a56.85 56.85 0 0033.6-51.8c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0019.6-43c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0019.6-43c0-9.7-2.3-18.9-6.9-27.3l-14-25.5 21.9-19a56.76 56.76 0 0019.6-43c0-19.1-11-37.5-28.8-48.4z",fill:n}},{tag:"path",attrs:{d:"M112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32zm773.9 5.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.5-65.5-111a67.67 67.67 0 00-34.3-9.3H572.3l6-122.9c1.5-29.7-9-57.9-29.5-79.4a106.4 106.4 0 00-77.9-33.4c-52 0-98 35-111.8 85.1l-85.8 310.8-.3 428h472.1c9.3 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37zM820.4 499l-21.9 19 14 25.5a56.2 56.2 0 016.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H345V506.8c18.6-67.2 46.4-168 83.5-302.5a44.28 44.28 0 0142.2-32.3c7.5-.1 15 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.1 32.2-19.6 43z",fill:t}}]}},name:"like",theme:"twotone"},k1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:N1n}))},z1n=d.forwardRef(k1n),B1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"},H1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:B1n}))},j1n=d.forwardRef(H1n),V1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7a7.14 7.14 0 00-11.3 0L713.6 306.3a7.23 7.23 0 005.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5a7.2 7.2 0 00-5.6-11.7z"}}]},name:"line-height",theme:"outlined"},G1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:V1n}))},W1n=d.forwardRef(G1n),U1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 476H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"line",theme:"outlined"},q1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:U1n}))},K1n=d.forwardRef(q1n),Y1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},X1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Y1n}))},HYe=d.forwardRef(X1n),Q1n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM349.3 793.7H230.6V411.9h118.7v381.8zm-59.3-434a68.8 68.8 0 1168.8-68.8c-.1 38-30.9 68.8-68.8 68.8zm503.7 434H675.1V608c0-44.3-.8-101.2-61.7-101.2-61.7 0-71.2 48.2-71.2 98v188.9H423.7V411.9h113.8v52.2h1.6c15.8-30 54.5-61.7 112.3-61.7 120.2 0 142.3 79.1 142.3 181.9v209.4z"}}]},name:"linkedin",theme:"filled"},Z1n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Q1n}))},J1n=d.forwardRef(Z1n),e0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 10-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z"}}]},name:"linkedin",theme:"outlined"},t0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:e0n}))},n0n=d.forwardRef(t0n),r0n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M530.8 64c-5.79 0-11.76.3-17.88.78-157.8 12.44-115.95 179.45-118.34 235.11-2.88 40.8-11.2 72.95-39.24 112.78-33.03 39.23-79.4 102.66-101.39 168.77-10.37 31.06-15.3 62.87-10.71 92.92a15.83 15.83 0 00-4.14 5.04c-9.7 10-16.76 22.43-24.72 31.32-7.42 7.43-18.1 9.96-29.75 14.93-11.68 5.08-24.56 10.04-32.25 25.42a49.7 49.7 0 00-4.93 22.43c0 7.43 1 14.97 2.05 20.01 2.17 14.9 4.33 27.22 1.46 36.21-9.26 25.39-10.42 42.79-3.92 55.44 6.5 12.47 19.97 17.51 35.05 22.44 30.28 7.46 71.3 5.04 103.6 22.36 34.56 17.43 69.66 25.05 97.65 17.54a66.01 66.01 0 0045.1-35.27c21.91-.12 45.92-10.05 84.37-12.47 26.09-2.17 58.75 9.97 96.23 7.43.94 5.04 2.36 7.43 4.26 12.47l.11.1c14.6 29.05 41.55 42.27 70.33 39.99 28.78-2.24 59.43-20.01 84.26-48.76 23.55-28.55 62.83-40.46 88.77-56.1 12.99-7.43 23.48-17.51 24.23-31.85.86-14.93-7.43-30.3-26.66-51.4v-3.62l-.1-.11c-6.35-7.47-9.34-19.98-12.63-34.57-3.17-14.97-6.8-29.34-18.36-39.05h-.11c-2.2-2.02-4.6-2.5-7.02-5.04a13.33 13.33 0 00-7.1-2.39c16.1-47.7 9.86-95.2-6.45-137.9-19.9-52.63-54.7-98.48-81.2-130.02-29.71-37.52-58.83-73.06-58.27-125.77 1-80.33 8.85-228.95-132.3-229.17m19.75 127.11h.48c7.95 0 14.79 2.31 21.8 7.4 7.13 5.03 12.32 12.39 16.4 19.89 3.91 9.67 5.89 17.13 6.19 27.03 0-.75.22-1.5.22-2.2v3.88a3.21 3.21 0 01-.15-.79l-.15-.9a67.46 67.46 0 01-5.6 26.36 35.58 35.58 0 01-7.95 12.5 26.5 26.5 0 00-3.28-1.56c-3.92-1.68-7.43-2.39-10.64-4.96a48.98 48.98 0 00-8.18-2.47c1.83-2.2 5.42-4.96 6.8-7.39a44.22 44.22 0 003.28-15v-.72a45.17 45.17 0 00-2.27-14.93c-1.68-5.04-3.77-7.5-6.84-12.47-3.13-2.46-6.23-4.92-9.96-4.92h-.6c-3.47 0-6.57 1.12-9.78 4.92a29.86 29.86 0 00-7.65 12.47 44.05 44.05 0 00-3.36 14.93v.71c.07 3.33.3 6.69.74 9.97-7.2-2.5-16.35-5.04-22.66-7.54-.37-2.46-.6-4.94-.67-7.43v-.75a66.15 66.15 0 015.6-28.7 40.45 40.45 0 0116.05-19.9 36.77 36.77 0 0122.18-7.43m-110.58 2.2h1.35c5.3 0 10.08 1.8 14.9 5.04a51.6 51.6 0 0112.83 17.36c3.36 7.43 5.27 14.97 5.72 24.9v.15c.26 5 .22 7.5-.08 9.93v2.99c-1.12.26-2.09.67-3.1.9-5.67 2.05-10.23 5.03-14.67 7.46.45-3.32.49-6.68.11-9.97v-.56c-.44-4.96-1.45-7.43-3.06-12.43a22.88 22.88 0 00-6.2-9.97 9.26 9.26 0 00-6.83-2.39h-.78c-2.65.23-4.85 1.53-6.94 4.93a20.6 20.6 0 00-4.48 10.08 35.24 35.24 0 00-.86 12.36v.52c.45 5.04 1.38 7.5 3.02 12.47 1.68 5 3.62 7.46 6.16 10 .41.34.79.67 1.27.9-2.61 2.13-4.37 2.61-6.57 5.08a11.39 11.39 0 01-4.89 2.53 97.84 97.84 0 01-10.27-15 66.15 66.15 0 01-5.78-24.9 65.67 65.67 0 012.98-24.94 53.38 53.38 0 0110.57-19.97c4.78-4.97 9.7-7.47 15.6-7.47M491.15 257c12.36 0 27.33 2.43 45.36 14.9 10.94 7.46 19.52 10.04 39.31 17.47h.11c9.52 5.07 15.12 9.93 17.84 14.9v-4.9a21.32 21.32 0 01.6 17.55c-4.59 11.6-19.26 24.04-39.72 31.47v.07c-10 5.04-18.7 12.43-28.93 17.36-10.3 5.04-21.95 10.9-37.78 9.97a42.52 42.52 0 01-16.72-2.5 133.12 133.12 0 01-12.02-7.4c-7.28-5.04-13.55-12.39-22.85-17.36v-.18h-.19c-14.93-9.19-22.99-19.12-25.6-26.54-2.58-10-.19-17.51 7.2-22.4 8.36-5.04 14.19-10.12 18.03-12.55 3.88-2.76 5.34-3.8 6.57-4.89h.08v-.1c6.3-7.55 16.27-17.52 31.32-22.44a68.65 68.65 0 0117.4-2.43m104.48 80c13.4 52.9 44.69 129.72 64.8 166.98 10.68 19.93 31.93 61.93 41.15 112.89 5.82-.19 12.28.67 19.15 2.39 24.11-62.38-20.39-129.43-40.66-148.06-8.25-7.5-8.66-12.5-4.59-12.5 21.99 19.93 50.96 58.68 61.45 102.92 4.81 19.97 5.93 41.21.78 62.34 2.5 1.05 5.04 2.28 7.65 2.5 38.53 19.94 52.75 35.02 45.92 57.38v-1.6c-2.27-.12-4.48 0-6.75 0h-.56c5.63-17.44-6.8-30.8-39.76-45.7-34.16-14.93-61.45-12.54-66.11 17.36-.27 1.6-.45 2.46-.64 5.04-2.54.86-5.19 1.98-7.8 2.39-16.05 10-24.71 24.97-29.6 44.31-4.86 19.9-6.35 43.16-7.66 69.77v.11c-.78 12.47-6.38 31.29-11.9 50.44-56 40.01-133.65 57.41-199.69 12.46a98.74 98.74 0 00-15-19.9 54.13 54.13 0 00-10.27-12.46c6.8 0 12.62-1.08 17.36-2.5a22.96 22.96 0 0011.72-12.47c4.03-9.97 0-26.02-12.88-43.42C398.87 730.24 377 710.53 345 690.9c-23.51-14.89-36.8-32.47-42.93-52.1-6.16-19.94-5.33-40.51-.56-61.42 9.15-39.94 32.6-78.77 47.56-103.14 4-2.43 1.38 5.04-15.23 36.36-14.78 28.03-42.6 93.21-4.55 143.87a303.27 303.27 0 0124.15-107.36c21.06-47.71 65.07-130.81 68.54-196.66 1.8 1.34 8.1 5.04 10.79 7.54 8.14 4.96 14.18 12.43 22.02 17.36 7.88 7.5 17.81 12.5 32.7 12.5 1.46.12 2.8.23 4.15.23 15.34 0 27.21-5 37.18-10 10.83-5 19.45-12.48 27.63-14.94h.18c17.44-5.04 31.21-15 39.01-26.13m81.6 334.4c1.39 22.44 12.81 46.48 32.93 51.41 21.95 5 53.53-12.43 66.86-28.56l7.88-.33c11.76-.3 21.54.37 31.62 9.97l.1.1c7.77 7.44 11.4 19.83 14.6 32.7 3.18 14.98 5.75 29.13 15.27 39.8 18.15 19.68 24.08 33.82 23.75 42.56l.1-.22v.67l-.1-.45c-.56 9.78-6.91 14.78-18.6 22.21-23.51 14.97-65.17 26.58-91.72 58.61-23.07 27.51-51.18 42.52-76 44.46-24.79 1.98-46.18-7.46-58.76-33.52l-.19-.11c-7.84-14.97-4.48-38.27 2.1-63.1 6.56-24.93 15.97-50.2 17.28-70.85 1.38-26.65 2.83-49.83 7.28-67.71 4.48-17.36 11.5-29.76 23.93-36.74l1.68-.82zm-403.72 1.84h.37c1.98 0 3.92.18 5.86.52 14.04 2.05 26.35 12.43 38.19 28.07l33.97 62.12.11.11c9.07 19.9 28.15 39.72 44.39 61.15 16.2 22.32 28.74 42.22 27.21 58.61v.22c-2.13 27.78-17.88 42.86-42 48.3-24.07 5.05-56.74.08-89.4-17.31-36.14-20.01-79.07-17.51-106.66-22.48-13.77-2.46-22.8-7.5-26.99-14.97-4.14-7.42-4.21-22.43 4.6-45.91v-.11l.07-.12c4.37-12.46 1.12-28.1-1-41.77-2.06-14.97-3.1-26.47 1.6-35.09 5.97-12.47 14.78-14.9 25.72-19.9 11.01-5.04 23.93-7.54 34.2-17.5h.07v-.12c9.55-10 16.61-22.43 24.93-31.28 7.1-7.5 14.19-12.54 24.75-12.54M540.76 334.5c-16.24 7.5-35.27 19.97-55.54 19.97-20.24 0-36.21-9.97-47.75-17.4-5.79-5-10.45-10-13.96-12.5-6.12-5-5.38-12.47-2.76-12.47 4.07.6 4.81 5.04 7.43 7.5 3.58 2.47 8.02 7.43 13.47 12.43 10.86 7.47 25.39 17.44 43.53 17.44 18.1 0 39.3-9.97 52.19-17.4 7.28-5.04 16.6-12.47 24.19-17.43 5.82-5.12 5.56-10 10.41-10 4.82.6 1.27 5-5.48 12.42a302.3 302.3 0 01-25.76 17.47v-.03zm-40.39-59.13v-.83c-.22-.7.49-1.56 1.09-1.86 2.76-1.6 6.72-1.01 9.7.15 2.35 0 5.97 2.5 5.6 5.04-.22 1.83-3.17 2.46-5.04 2.46-2.05 0-3.43-1.6-5.26-2.54-1.94-.67-5.45-.3-6.09-2.42m-20.57 0c-.74 2.16-4.22 1.82-6.2 2.46-1.75.93-3.2 2.54-5.18 2.54-1.9 0-4.9-.71-5.12-2.54-.33-2.47 3.29-4.97 5.6-4.97 3.03-1.15 6.87-1.75 9.67-.18.71.33 1.35 1.12 1.12 1.86v.79h.11z"}}]},name:"linux",theme:"outlined"},i0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:r0n}))},o0n=d.forwardRef(i0n),s0n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z"}}]},name:"loading-3-quarters",theme:"outlined"},a0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:s0n}))},l0n=d.forwardRef(a0n),c0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1156 0zm152-237H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224z"}}]},name:"lock",theme:"filled"},u0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:c0n}))},d0n=d.forwardRef(u0n),f0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},h0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:f0n}))},g0n=d.forwardRef(h0n),p0n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z",fill:t}},{tag:"path",attrs:{d:"M232 840h560V536H232v304zm280-226a48.01 48.01 0 0128 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0128-87z",fill:n}},{tag:"path",attrs:{d:"M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z",fill:t}}]}},name:"lock",theme:"twotone"},m0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:p0n}))},v0n=d.forwardRef(m0n),C0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 01520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 01270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 010 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]},name:"login",theme:"outlined"},y0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:C0n}))},jYe=d.forwardRef(y0n),b0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},S0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:b0n}))},VYe=d.forwardRef(S0n),w0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M624 672a48.01 48.01 0 0096 0c0-26.5-21.5-48-48-48h-48v48zm96-320a48.01 48.01 0 00-96 0v48h48c26.5 0 48-21.5 48-48z"}},{tag:"path",attrs:{d:"M928 64H96c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM672 560c61.9 0 112 50.1 112 112s-50.1 112-112 112-112-50.1-112-112v-48h-96v48c0 61.9-50.1 112-112 112s-112-50.1-112-112 50.1-112 112-112h48v-96h-48c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112v48h96v-48c0-61.9 50.1-112 112-112s112 50.1 112 112-50.1 112-112 112h-48v96h48z"}},{tag:"path",attrs:{d:"M464 464h96v96h-96zM352 304a48.01 48.01 0 000 96h48v-48c0-26.5-21.5-48-48-48zm-48 368a48.01 48.01 0 0096 0v-48h-48c-26.5 0-48 21.5-48 48z"}}]},name:"mac-command",theme:"filled"},x0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:w0n}))},E0n=d.forwardRef(x0n),R0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}},{tag:"path",attrs:{d:"M370.8 554.4c-54.6 0-98.8 44.2-98.8 98.8s44.2 98.8 98.8 98.8 98.8-44.2 98.8-98.8v-42.4h84.7v42.4c0 54.6 44.2 98.8 98.8 98.8s98.8-44.2 98.8-98.8-44.2-98.8-98.8-98.8h-42.4v-84.7h42.4c54.6 0 98.8-44.2 98.8-98.8 0-54.6-44.2-98.8-98.8-98.8s-98.8 44.2-98.8 98.8v42.4h-84.7v-42.4c0-54.6-44.2-98.8-98.8-98.8S272 316.2 272 370.8s44.2 98.8 98.8 98.8h42.4v84.7h-42.4zm42.4 98.8c0 23.4-19 42.4-42.4 42.4s-42.4-19-42.4-42.4 19-42.4 42.4-42.4h42.4v42.4zm197.6-282.4c0-23.4 19-42.4 42.4-42.4s42.4 19 42.4 42.4-19 42.4-42.4 42.4h-42.4v-42.4zm0 240h42.4c23.4 0 42.4 19 42.4 42.4s-19 42.4-42.4 42.4-42.4-19-42.4-42.4v-42.4zM469.6 469.6h84.7v84.7h-84.7v-84.7zm-98.8-56.4c-23.4 0-42.4-19-42.4-42.4s19-42.4 42.4-42.4 42.4 19 42.4 42.4v42.4h-42.4z"}}]},name:"mac-command",theme:"outlined"},$0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:R0n}))},O0n=d.forwardRef($0n),T0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-80.8 108.9L531.7 514.4c-7.8 6.1-18.7 6.1-26.5 0L189.6 268.9A7.2 7.2 0 01194 256h648.8a7.2 7.2 0 014.4 12.9z"}}]},name:"mail",theme:"filled"},I0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:T0n}))},M0n=d.forwardRef(I0n),P0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},_0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:P0n}))},GYe=d.forwardRef(_0n),A0n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 01-68.7 0z",fill:n}},{tag:"path",attrs:{d:"M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z",fill:n}},{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z",fill:t}}]}},name:"mail",theme:"twotone"},D0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:A0n}))},L0n=d.forwardRef(D0n),F0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M874 120H622c-3.3 0-6 2.7-6 6v56c0 3.3 2.7 6 6 6h160.4L583.1 387.3c-50-38.5-111-59.3-175.1-59.3-76.9 0-149.3 30-203.6 84.4S120 539.1 120 616s30 149.3 84.4 203.6C258.7 874 331.1 904 408 904s149.3-30 203.6-84.4C666 765.3 696 692.9 696 616c0-64.1-20.8-124.9-59.2-174.9L836 241.9V402c0 3.3 2.7 6 6 6h56c3.3 0 6-2.7 6-6V150c0-16.5-13.5-30-30-30zM408 828c-116.9 0-212-95.1-212-212s95.1-212 212-212 212 95.1 212 212-95.1 212-212 212z"}}]},name:"man",theme:"outlined"},N0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:F0n}))},k0n=d.forwardRef(N0n),z0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.2 278.1a32 32 0 00-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 00-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48zm4-372H360v-72h304v72z"}}]},name:"medicine-box",theme:"filled"},B0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:z0n}))},H0n=d.forwardRef(B0n),j0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.2 278.1a32 32 0 00-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 00-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840zM652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"medicine-box",theme:"outlined"},V0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:j0n}))},G0n=d.forwardRef(V0n),W0n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M244.3 328L184 513.4V840h656V513.4L779.7 328H244.3zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48z",fill:n}},{tag:"path",attrs:{d:"M652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:t}},{tag:"path",attrs:{d:"M839.2 278.1a32 32 0 00-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 00-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840z",fill:t}}]}},name:"medicine-box",theme:"twotone"},U0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:W0n}))},q0n=d.forwardRef(U0n),K0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm256 253.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 007-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z"}}]},name:"medium-circle",theme:"filled"},Y0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:K0n}))},X0n=d.forwardRef(Y0n),Q0n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 01-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 016.8-17.2z"}}]},name:"medium",theme:"outlined"},Z0n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Q0n}))},J0n=d.forwardRef(Z0n),evn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM768 317.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 007-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z"}}]},name:"medium-square",theme:"filled"},tvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:evn}))},nvn=d.forwardRef(tvn),rvn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M517.2 590.55c0 3.55 0 4.36 2.4 6.55l13.43 13.25v.57h-59.57v-25.47a41.44 41.44 0 01-39.5 27.65c-30.61 0-52.84-24.25-52.84-68.87 0-41.8 23.99-69.69 57.65-69.69a35.15 35.15 0 0134.61 21.67v-56.19a6.99 6.99 0 00-2.71-6.79l-12.8-12.45v-.56l59.33-7.04v177.37zm-43.74-8.09v-83.83a22.2 22.2 0 00-17.74-8.4c-14.48 0-28.47 13.25-28.47 52.62 0 36.86 12.07 49.88 27.1 49.88a23.91 23.91 0 0019.11-10.27zm83.23 28.46V497.74a7.65 7.65 0 00-2.4-6.79l-13.19-13.74v-.57h59.56v114.8c0 3.55 0 4.36 2.4 6.54l13.12 12.45v.57l-59.49-.08zm-2.16-175.67c0-13.4 10.74-24.25 23.99-24.25 13.25 0 23.98 10.86 23.98 24.25 0 13.4-10.73 24.25-23.98 24.25s-23.99-10.85-23.99-24.25zm206.83 155.06c0 3.55 0 4.6 2.4 6.79l13.43 13.25v.57h-59.88V581.9a43.4 43.4 0 01-41.01 31.2c-26.55 0-40.78-19.56-40.78-56.59 0-17.86 0-37.43.56-59.41a6.91 6.91 0 00-2.4-6.55L620.5 477.2v-.57h59.09v73.81c0 24.25 3.51 40.42 18.54 40.42a23.96 23.96 0 0019.35-12.2v-80.85a7.65 7.65 0 00-2.4-6.79l-13.27-13.82v-.57h59.56V590.3zm202.76 20.6c0-4.36.8-59.97.8-72.75 0-24.25-3.76-40.98-20.63-40.98a26.7 26.7 0 00-21.19 11.64 99.68 99.68 0 012.4 23.04c0 16.81-.56 38.23-.8 59.66a6.91 6.91 0 002.4 6.55l13.43 12.45v.56h-60.12c0-4.04.8-59.98.8-72.76 0-24.65-3.76-40.98-20.39-40.98-8.2.3-15.68 4.8-19.83 11.96v82.46c0 3.56 0 4.37 2.4 6.55l13.11 12.45v.56h-59.48V498.15a7.65 7.65 0 00-2.4-6.8l-13.19-14.14v-.57H841v28.78c5.53-19 23.13-31.76 42.7-30.96 19.82 0 33.26 11.16 38.93 32.34a46.41 46.41 0 0144.77-32.34c26.55 0 41.58 19.8 41.58 57.23 0 17.87-.56 38.24-.8 59.66a6.5 6.5 0 002.72 6.55l13.11 12.45v.57h-59.88zM215.87 593.3l17.66 17.05v.57h-89.62v-.57l17.99-17.05a6.91 6.91 0 002.4-6.55V477.69c0-4.6 0-10.83.8-16.16L104.66 613.1h-.72l-62.6-139.45c-1.37-3.47-1.77-3.72-2.65-6.06v91.43a32.08 32.08 0 002.96 17.87l25.19 33.46v.57H0v-.57l25.18-33.55a32.16 32.16 0 002.96-17.78V457.97A19.71 19.71 0 0024 444.15L6.16 420.78v-.56h63.96l53.56 118.1 47.17-118.1h62.6v.56l-17.58 19.8a6.99 6.99 0 00-2.72 6.8v139.37a6.5 6.5 0 002.72 6.55zm70.11-54.65v.56c0 34.6 17.67 48.5 38.38 48.5a43.5 43.5 0 0040.77-24.97h.56c-7.2 34.2-28.14 50.36-59.48 50.36-33.82 0-65.72-20.61-65.72-68.39 0-50.2 31.98-70.25 67.32-70.25 28.46 0 58.76 13.58 58.76 57.24v6.95h-80.59zm0-6.95h39.42v-7.04c0-35.57-7.28-45.03-18.23-45.03-13.27 0-21.35 14.15-21.35 52.07h.16z"}}]},name:"medium-workmark",theme:"outlined"},ivn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:rvn}))},ovn=d.forwardRef(ivn),svn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"meh",theme:"filled"},avn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:svn}))},lvn=d.forwardRef(avn),cvn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"meh",theme:"outlined"},uvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:cvn}))},dvn=d.forwardRef(uvn),fvn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:n}},{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm376 144H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-24-144a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"meh",theme:"twotone"},hvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:fvn}))},gvn=d.forwardRef(hvn),pvn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},mvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:pvn}))},vvn=d.forwardRef(mvn),Cvn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},yvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Cvn}))},bvn=d.forwardRef(yvn),Svn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},wvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Svn}))},xvn=d.forwardRef(wvn),Evn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482.2 508.4L331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"}}]},name:"merge-cells",theme:"outlined"},Rvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Evn}))},$vn=d.forwardRef(Rvn),Ovn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M284 924c61.86 0 112-50.14 112-112 0-49.26-31.8-91.1-76-106.09V421.63l386.49 126.55.01 95.92C661 658.34 628 700.8 628 751c0 61.86 50.14 112 112 112s112-50.14 112-112c0-48.33-30.6-89.5-73.5-105.2l-.01-113.04a50.73 50.73 0 00-34.95-48.2L320 345.85V318.1c43.64-14.8 75.2-55.78 75.99-104.24L396 212c0-61.86-50.14-112-112-112s-112 50.14-112 112c0 49.26 31.8 91.1 76 106.09V705.9c-44.2 15-76 56.83-76 106.09 0 61.86 50.14 112 112 112"}}]},name:"merge",theme:"filled"},Tvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ovn}))},Ivn=d.forwardRef(Tvn),Mvn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M248 752h72V264h-72z"}},{tag:"path",attrs:{d:"M740 863c61.86 0 112-50.14 112-112 0-48.33-30.6-89.5-73.5-105.2l-.01-113.04a50.73 50.73 0 00-34.95-48.2l-434.9-142.41-22.4 68.42 420.25 137.61.01 95.92C661 658.34 628 700.8 628 751c0 61.86 50.14 112 112 112m-456 61c61.86 0 112-50.14 112-112s-50.14-112-112-112-112 50.14-112 112 50.14 112 112 112m456-125a48 48 0 110-96 48 48 0 010 96m-456 61a48 48 0 110-96 48 48 0 010 96m0-536c61.86 0 112-50.14 112-112s-50.14-112-112-112-112 50.14-112 112 50.14 112 112 112m0-64a48 48 0 110-96 48 48 0 010 96"}}]},name:"merge",theme:"outlined"},Pvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Mvn}))},_vn=d.forwardRef(Pvn),Avn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"},Dvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Avn}))},Lvn=d.forwardRef(Dvn),Fvn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},Nvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Fvn}))},kvn=d.forwardRef(Nvn),zvn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M775.3 248.9a369.62 369.62 0 00-119-80A370.2 370.2 0 00512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 00-80-119zM312 560a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:n}},{tag:"path",attrs:{d:"M664 512a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z",fill:t}},{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"message",theme:"twotone"},Bvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:zvn}))},Hvn=d.forwardRef(Bvn),jvn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"},Vvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jvn}))},Gvn=d.forwardRef(Vvn),Wvn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Uvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Wvn}))},qvn=d.forwardRef(Uvn),Kvn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z",fill:n}},{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"minus-circle",theme:"twotone"},Yvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Kvn}))},Xvn=d.forwardRef(Yvn),Qvn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},Zvn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Qvn}))},Jvn=d.forwardRef(Zvn),e2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-square",theme:"filled"},t2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:e2n}))},n2n=d.forwardRef(t2n),r2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},i2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:r2n}))},WYe=d.forwardRef(i2n),o2n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48z",fill:n}},{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z",fill:t}}]}},name:"minus-square",theme:"twotone"},s2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:o2n}))},a2n=d.forwardRef(s2n),l2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z"}}]},name:"mobile",theme:"filled"},c2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:l2n}))},u2n=d.forwardRef(c2n),d2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},f2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:d2n}))},h2n=d.forwardRef(f2n),g2n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 64H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H288V136h448v752z",fill:t}},{tag:"path",attrs:{d:"M288 888h448V136H288v752zm224-142c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z",fill:n}},{tag:"path",attrs:{d:"M472 786a40 40 0 1080 0 40 40 0 10-80 0z",fill:t}}]}},name:"mobile",theme:"twotone"},p2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:g2n}))},m2n=d.forwardRef(p2n),v2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M911.5 699.7a8 8 0 00-10.3-4.8L840 717.2V179c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V762c0 3.3 2.1 6.3 5.3 7.5L501 909.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zm-243.8-377L564 514.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V703c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 322.8c-2.1-3.8-.7-8.7 3.2-10.8 1.2-.7 2.5-1 3.8-1h55.7a8 8 0 017.1 4.4L511 484.2h3.3L599 315.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8z"}}]},name:"money-collect",theme:"filled"},C2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:v2n}))},y2n=d.forwardRef(C2n),b2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M911.5 700.7a8 8 0 00-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM512 837.5l-256-93.1V184h512v560.4l-256 93.1zM660.6 312h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 00-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9z"}}]},name:"money-collect",theme:"outlined"},S2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:b2n}))},w2n=d.forwardRef(S2n),x2n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M256 744.4l256 93.1 256-93.1V184H256v560.4zM359.7 313c1.2-.7 2.5-1 3.8-1h55.7a8 8 0 017.1 4.4L511 485.2h3.3L599 316.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8L564 515.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V704c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 323.8c-2.1-3.8-.7-8.7 3.2-10.8z",fill:n}},{tag:"path",attrs:{d:"M911.5 700.7a8 8 0 00-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM768 744.4l-256 93.1-256-93.1V184h512v560.4z",fill:t}},{tag:"path",attrs:{d:"M460.4 515.4h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 00-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6z",fill:t}}]}},name:"money-collect",theme:"twotone"},E2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:x2n}))},R2n=d.forwardRef(E2n),$2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M692.8 412.7l.2-.2-34.6-44.3a7.97 7.97 0 00-11.2-1.4l-50.4 39.3-70.5-90.1a7.97 7.97 0 00-11.2-1.4l-37.9 29.7a7.97 7.97 0 00-1.4 11.2l70.5 90.2-.2.1 34.6 44.3c2.7 3.5 7.7 4.1 11.2 1.4l50.4-39.3 64.1 82c2.7 3.5 7.7 4.1 11.2 1.4l37.9-29.6c3.5-2.7 4.1-7.7 1.4-11.2l-64.1-82.1zM608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z"}}]},name:"monitor",theme:"outlined"},O2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$2n}))},T2n=d.forwardRef(O2n),I2n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01z"}}]},name:"moon",theme:"filled"},M2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:I2n}))},P2n=d.forwardRef(M2n),_2n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},A2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_2n}))},D2n=d.forwardRef(A2n),L2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},F2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:L2n}))},N2n=d.forwardRef(F2n),k2n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M771.91 115a31.65 31.65 0 00-17.42 5.27L400 351.97H236a16 16 0 00-16 16v288.06a16 16 0 0016 16h164l354.5 231.7a31.66 31.66 0 0017.42 5.27c16.65 0 32.08-13.25 32.08-32.06V147.06c0-18.8-15.44-32.06-32.09-32.06"}}]},name:"muted",theme:"filled"},z2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:k2n}))},B2n=d.forwardRef(z2n),H2n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M771.91 115a31.65 31.65 0 00-17.42 5.27L400 351.97H236a16 16 0 00-16 16v288.06a16 16 0 0016 16h164l354.5 231.7a31.66 31.66 0 0017.42 5.27c16.65 0 32.08-13.25 32.08-32.06V147.06c0-18.8-15.44-32.06-32.09-32.06M732 221v582L439.39 611.75l-17.95-11.73H292V423.98h129.44l17.95-11.73z"}}]},name:"muted",theme:"outlined"},j2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:H2n}))},V2n=d.forwardRef(j2n),G2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 612c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H298a95.92 95.92 0 00-89-60c-53 0-96 43-96 96s43 96 96 96c40.3 0 74.8-24.8 89-60h150.3v152c0 55.2 44.8 100 100 100H952c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H548.3c-15.5 0-28-12.5-28-28V612H952zM451.7 313.7l172.5 136.2c6.3 5.1 15.8.5 15.8-7.7V344h264c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H640v-98.2c0-8.1-9.4-12.8-15.8-7.7L451.7 298.3a9.9 9.9 0 000 15.4z"}}]},name:"node-collapse",theme:"outlined"},W2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:G2n}))},U2n=d.forwardRef(W2n),q2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 612c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H298a95.92 95.92 0 00-89-60c-53 0-96 43-96 96s43 96 96 96c40.3 0 74.8-24.8 89-60h150.3v152c0 55.2 44.8 100 100 100H952c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H548.3c-15.5 0-28-12.5-28-28V612H952zM456 344h264v98.2c0 8.1 9.5 12.8 15.8 7.7l172.5-136.2c5-3.9 5-11.4 0-15.3L735.8 162.1c-6.4-5.1-15.8-.5-15.8 7.7V268H456c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8z"}}]},name:"node-expand",theme:"outlined"},K2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:q2n}))},Y2n=d.forwardRef(K2n),X2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z"}}]},name:"node-index",theme:"outlined"},Q2n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:X2n}))},Z2n=d.forwardRef(Q2n),J2n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.6c-3.7 11.6-5.6 23.9-5.6 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1z"}}]},name:"notification",theme:"filled"},e4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:J2n}))},t4n=d.forwardRef(e4n),n4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"}}]},name:"notification",theme:"outlined"},r4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:n4n}))},i4n=d.forwardRef(r4n),o4n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M229.6 678.1c-3.7 11.6-5.6 23.9-5.6 36.4 0-12.5 2-24.8 5.7-36.4h-.1zm76.3-260.2H184v188.2h121.9l12.9 5.2L840 820.7V203.3L318.8 412.7z",fill:n}},{tag:"path",attrs:{d:"M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z",fill:t}}]}},name:"notification",theme:"twotone"},s4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:o4n}))},a4n=d.forwardRef(s4n),l4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 394c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H400V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v236H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h228v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h164c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V394h164zM628 630H400V394h228v236z"}}]},name:"number",theme:"outlined"},c4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:l4n}))},u4n=d.forwardRef(c4n),d4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M316 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8zm196-50c22.1 0 40-17.9 40-39 0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39zm0-140c22.1 0 40-17.9 40-39 0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}},{tag:"path",attrs:{d:"M648 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8z"}}]},name:"one-to-one",theme:"outlined"},f4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:d4n}))},h4n=d.forwardRef(f4n),g4n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M475.6 112c-74.03 0-139.72 42.38-172.92 104.58v237.28l92.27 56.48 3.38-235.7 189-127.45A194.33 194.33 0 00475.6 112m202.9 62.25c-13.17 0-26.05 1.76-38.8 4.36L453.2 304.36l-1.37 96.15 186.58-125.25 231.22 137.28a195.5 195.5 0 004.87-42.33c0-108.04-87.93-195.96-195.99-195.96M247.34 266C167.34 290.7 109 365.22 109 453.2c0 27.92 5.9 54.83 16.79 79.36l245.48 139.77 90.58-56.12-214.5-131.38zm392.88 74.67l-72.7 48.85L771.5 517.58 797.3 753C867.41 723.11 916 653.97 916 573.1c0-27.55-5.86-54.12-16.57-78.53zm-123 82.6l-66.36 44.56-1.05 76.12 64.7 39.66 69.54-43.04-1.84-76.48zm121.2 76.12l5.87 248.34L443 866.9A195.65 195.65 0 00567.84 912c79.22 0 147.8-46.52 178.62-114.99L719.4 550.22zm-52.86 105.3L372.43 736.68 169.56 621.15a195.35 195.35 0 00-5.22 44.16c0 102.94 79.84 187.41 180.81 195.18L588.2 716.6z"}}]},name:"open-a-i",theme:"filled"},p4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:g4n}))},m4n=d.forwardRef(p4n),v4n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482.88 128c-84.35 0-156.58 52.8-185.68 126.98-60.89 8.13-115.3 43.63-146.6 97.84-42.16 73-32.55 161.88 17.14 224.16-23.38 56.75-19.85 121.6 11.42 175.78 42.18 73.02 124.1 109.15 202.94 97.23C419.58 898.63 477.51 928 540.12 928c84.35 0 156.58-52.8 185.68-126.98 60.89-8.13 115.3-43.62 146.6-97.84 42.16-73 32.55-161.88-17.14-224.16 23.38-56.75 19.85-121.6-11.42-175.78-42.18-73.02-124.1-109.15-202.94-97.23C603.42 157.38 545.49 128 482.88 128m0 61.54c35.6 0 68.97 13.99 94.22 37.74-1.93 1.03-3.92 1.84-5.83 2.94l-136.68 78.91a46.11 46.11 0 00-23.09 39.78l-.84 183.6-65.72-38.34V327.4c0-76 61.9-137.86 137.94-137.86m197.7 75.9c44.19 3.14 86.16 27.44 109.92 68.57 17.8 30.8 22.38 66.7 14.43 100.42-1.88-1.17-3.6-2.49-5.53-3.6l-136.73-78.91a46.23 46.23 0 00-46-.06l-159.47 91.1.36-76.02 144.5-83.41a137.19 137.19 0 0178.53-18.09m-396.92 55.4c-.07 2.2-.3 4.35-.3 6.56v157.75a46.19 46.19 0 0022.91 39.9l158.68 92.5-66.02 37.67-144.55-83.35c-65.86-38-88.47-122.53-50.45-188.34 17.78-30.78 46.55-52.69 79.73-62.68m340.4 79.93l144.54 83.35c65.86 38 88.47 122.53 50.45 188.34-17.78 30.78-46.55 52.69-79.73 62.68.07-2.19.3-4.34.3-6.55V570.85a46.19 46.19 0 00-22.9-39.9l-158.69-92.5zM511.8 464.84l54.54 31.79-.3 63.22-54.84 31.31-54.54-31.85.3-63.16zm100.54 58.65l65.72 38.35V728.6c0 76-61.9 137.86-137.94 137.86-35.6 0-68.97-13.99-94.22-37.74 1.93-1.03 3.92-1.84 5.83-2.94l136.68-78.9a46.11 46.11 0 0023.09-39.8zm-46.54 89.55l-.36 76.02-144.5 83.41c-65.85 38-150.42 15.34-188.44-50.48-17.8-30.8-22.38-66.7-14.43-100.42 1.88 1.17 3.6 2.5 5.53 3.6l136.74 78.91a46.23 46.23 0 0046 .06z"}}]},name:"open-a-i",theme:"outlined"},C4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:v4n}))},y4n=d.forwardRef(C4n),b4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},S4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:b4n}))},w4n=d.forwardRef(S4n),x4n={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 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},E4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:x4n}))},UYe=d.forwardRef(E4n),R4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z"}}]},name:"partition",theme:"outlined"},$4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:R4n}))},O4n=d.forwardRef($4n),T4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z"}}]},name:"pause-circle",theme:"filled"},I4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:T4n}))},M4n=d.forwardRef(I4n),P4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},_4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:P4n}))},A4n=d.forwardRef(_4n),D4n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-80 524c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z",fill:n}},{tag:"path",attrs:{d:"M424 352h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"pause-circle",theme:"twotone"},L4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:D4n}))},F4n=d.forwardRef(L4n),N4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"},k4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:N4n}))},z4n=d.forwardRef(k4n),B4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm166.6 246.8L567.5 515.6h62c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V603h82c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V717c0 4.4-3.6 8-8 8h-54.3c-4.4 0-8-3.6-8-8v-68.1h-81.7c-4.4 0-8-3.6-8-8V611c0-4.4 3.6-8 8-8h81.7v-41.5h-81.7c-4.4 0-8-3.6-8-8v-29.9c0-4.4 3.6-8 8-8h61.4L345.4 310.8a8.07 8.07 0 017-11.9h60.7c3 0 5.8 1.7 7.1 4.4l90.6 180h3.4l90.6-180a8 8 0 017.1-4.4h59.5c4.4 0 8 3.6 8 8 .2 1.4-.2 2.7-.8 3.9z"}}]},name:"pay-circle",theme:"filled"},H4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:B4n}))},j4n=d.forwardRef(H4n),V4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 00-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8-.1-4.4-3.7-8-8.1-8z"}}]},name:"pay-circle",theme:"outlined"},G4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:V4n}))},W4n=d.forwardRef(G4n),U4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855.7 210.8l-42.4-42.4a8.03 8.03 0 00-11.3 0L168.3 801.9a8.03 8.03 0 000 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z"}}]},name:"percentage",theme:"outlined"},q4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:U4n}))},K4n=d.forwardRef(q4n),Y4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.6 230.2L779.1 123.8a80.83 80.83 0 00-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L549.8 238.4a80.83 80.83 0 00-23.8 57.3c0 21.7 8.5 42.1 23.8 57.4l83.8 83.8A393.82 393.82 0 01553.1 553 395.34 395.34 0 01437 633.8L353.2 550a80.83 80.83 0 00-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L123.8 664.5a80.89 80.89 0 00-23.8 57.4c0 21.7 8.5 42.1 23.8 57.4l106.3 106.3c24.4 24.5 58.1 38.4 92.7 38.4 7.3 0 14.3-.6 21.2-1.8 134.8-22.2 268.5-93.9 376.4-201.7C828.2 612.8 899.8 479.2 922.3 344c6.8-41.3-6.9-83.8-36.7-113.8z"}}]},name:"phone",theme:"filled"},X4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Y4n}))},Q4n=d.forwardRef(X4n),Z4n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"}}]},name:"phone",theme:"outlined"},J4n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Z4n}))},gme=d.forwardRef(J4n),e3n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M721.7 184.9L610.9 295.8l120.8 120.7-8 21.6A481.29 481.29 0 01438 723.9l-21.6 8-.9-.9-119.8-120-110.8 110.9 104.5 104.5c10.8 10.7 26 15.7 40.8 13.2 117.9-19.5 235.4-82.9 330.9-178.4s158.9-213.1 178.4-331c2.5-14.8-2.5-30-13.3-40.8L721.7 184.9z",fill:n}},{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z",fill:t}}]}},name:"phone",theme:"twotone"},t3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:e3n}))},n3n=d.forwardRef(t3n),r3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM848 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H176c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h672zM232 436h560v152H232V436z"}}]},name:"pic-center",theme:"outlined"},i3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:r3n}))},o3n=d.forwardRef(i3n),s3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM608 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM152 436h400v152H152V436zm552 210c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"pic-left",theme:"outlined"},a3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:s3n}))},l3n=d.forwardRef(a3n),c3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-24 500c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H416c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM472 436h400v152H472V436zM80 646c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"pic-right",theme:"outlined"},u3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:c3n}))},d3n=d.forwardRef(u3n),f3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1a8.11 8.11 0 01-5.2 1.9H177.2c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2l170.3-202c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l99.4 118 158.1-187.5c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l229.6 271.6c2.6 3.3 2.2 8.4-1.2 11.2z"}}]},name:"picture",theme:"filled"},h3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:f3n}))},g3n=d.forwardRef(h3n),p3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},m3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:p3n}))},qYe=d.forwardRef(m3n),v3n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},C3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:v3n}))},KYe=d.forwardRef(C3n),y3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M863.1 518.5H505.5V160.9c0-4.4-3.6-8-8-8h-26a398.57 398.57 0 00-282.5 117 397.47 397.47 0 00-85.6 127C82.6 446.2 72 498.5 72 552.5S82.6 658.7 103.4 708c20.1 47.5 48.9 90.3 85.6 127 36.7 36.7 79.4 65.5 127 85.6a396.64 396.64 0 00155.6 31.5 398.57 398.57 0 00282.5-117c36.7-36.7 65.5-79.4 85.6-127a396.64 396.64 0 0031.5-155.6v-26c-.1-4.4-3.7-8-8.1-8zM951 463l-2.6-28.2c-8.5-92-49.3-178.8-115.1-244.3A398.5 398.5 0 00588.4 75.6L560.1 73c-4.7-.4-8.7 3.2-8.7 7.9v383.7c0 4.4 3.6 8 8 8l383.6-1c4.7-.1 8.4-4 8-8.6z"}}]},name:"pie-chart",theme:"filled"},b3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:y3n}))},S3n=d.forwardRef(b3n),w3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"}}]},name:"pie-chart",theme:"outlined"},x3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:w3n}))},E3n=d.forwardRef(x3n),R3n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M316.2 920.5c-47.6-20.1-90.4-49-127.1-85.7a398.19 398.19 0 01-85.7-127.1A397.12 397.12 0 0172 552.2v.2a398.57 398.57 0 00117 282.5c36.7 36.7 79.4 65.5 127 85.6A396.64 396.64 0 00471.6 952c27 0 53.6-2.7 79.7-7.9-25.9 5.2-52.4 7.8-79.3 7.8-54 .1-106.4-10.5-155.8-31.4zM560 472c-4.4 0-8-3.6-8-8V79.9c0-1.3.3-2.5.9-3.6-.9 1.3-1.5 2.9-1.5 4.6v383.7c0 4.4 3.6 8 8 8l383.6-1c1.6 0 3.1-.5 4.4-1.3-1 .5-2.2.7-3.4.7l-384 1z",fill:n}},{tag:"path",attrs:{d:"M619.8 147.6v256.6l256.4-.7c-13-62.5-44.3-120.5-90-166.1a332.24 332.24 0 00-166.4-89.8z",fill:n}},{tag:"path",attrs:{d:"M438 221.7c-75.9 7.6-146.2 40.9-200.8 95.5C174.5 379.9 140 463.3 140 552s34.5 172.1 97.2 234.8c62.3 62.3 145.1 96.8 233.2 97.2 88.2.4 172.7-34.1 235.3-96.2C761 733 794.6 662.3 802.3 586H438V221.7z",fill:n}},{tag:"path",attrs:{d:"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552v.2c0 53.9 10.6 106.2 31.4 155.5 20.1 47.6 49 90.4 85.7 127.1 36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952c26.9 0 53.4-2.6 79.3-7.8 26.1-5.3 51.7-13.1 76.4-23.6 47.6-20.1 90.4-49 127.1-85.7 36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552s34.5-172.1 97.2-234.8c54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8z",fill:t}},{tag:"path",attrs:{d:"M952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-3.4-.3-6.4 1.5-7.8 4.3a8.7 8.7 0 00-.9 3.6V464c0 4.4 3.6 8 8 8l384-1c1.2 0 2.3-.3 3.4-.7a8.1 8.1 0 004.6-7.9zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z",fill:t}}]}},name:"pie-chart",theme:"twotone"},$3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:R3n}))},O3n=d.forwardRef($3n),T3n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.97 64 64 264.97 64 512c0 192.53 122.08 357.04 292.88 420.28-4.92-43.86-4.14-115.68 3.97-150.46 7.6-32.66 49.11-208.16 49.11-208.16s-12.53-25.1-12.53-62.16c0-58.24 33.74-101.7 75.77-101.7 35.74 0 52.97 26.83 52.97 58.98 0 35.96-22.85 89.66-34.7 139.43-9.87 41.7 20.91 75.7 62.02 75.7 74.43 0 131.64-78.5 131.64-191.77 0-100.27-72.03-170.38-174.9-170.38-119.15 0-189.08 89.38-189.08 181.75 0 35.98 13.85 74.58 31.16 95.58 3.42 4.16 3.92 7.78 2.9 12-3.17 13.22-10.22 41.67-11.63 47.5-1.82 7.68-6.07 9.28-14 5.59-52.3-24.36-85-100.81-85-162.25 0-132.1 95.96-253.43 276.71-253.43 145.29 0 258.18 103.5 258.18 241.88 0 144.34-91.02 260.49-217.31 260.49-42.44 0-82.33-22.05-95.97-48.1 0 0-21 79.96-26.1 99.56-8.82 33.9-46.55 104.13-65.49 136.03A446.16 446.16 0 00512 960c247.04 0 448-200.97 448-448S759.04 64 512 64"}}]},name:"pinterest",theme:"filled"},I3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:T3n}))},M3n=d.forwardRef(I3n),P3n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.8 64 64 264.8 64 512s200.8 448 448 448 448-200.8 448-448S759.2 64 512 64m0 38.96c226.14 0 409.04 182.9 409.04 409.04 0 226.14-182.9 409.04-409.04 409.04-41.37 0-81.27-6.19-118.89-17.57 16.76-28.02 38.4-68.06 46.99-101.12 5.1-19.6 26.1-99.56 26.1-99.56 13.64 26.04 53.5 48.09 95.94 48.09 126.3 0 217.34-116.15 217.34-260.49 0-138.37-112.91-241.88-258.2-241.88-180.75 0-276.69 121.32-276.69 253.4 0 61.44 32.68 137.91 85 162.26 7.92 3.7 12.17 2.1 14-5.59 1.4-5.83 8.46-34.25 11.63-47.48 1.02-4.22.53-7.86-2.89-12.02-17.31-21-31.2-59.58-31.2-95.56 0-92.38 69.94-181.78 189.08-181.78 102.88 0 174.93 70.13 174.93 170.4 0 113.28-57.2 191.78-131.63 191.78-41.11 0-71.89-34-62.02-75.7 11.84-49.78 34.7-103.49 34.7-139.44 0-32.15-17.25-58.97-53-58.97-42.02 0-75.78 43.45-75.78 101.7 0 37.06 12.56 62.16 12.56 62.16s-41.51 175.5-49.12 208.17c-7.62 32.64-5.58 76.6-2.43 109.34C208.55 830.52 102.96 683.78 102.96 512c0-226.14 182.9-409.04 409.04-409.04"}}]},name:"pinterest",theme:"outlined"},_3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:P3n}))},A3n=d.forwardRef(_3n),D3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},L3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:D3n}))},F3n=d.forwardRef(L3n),N3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},k3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:N3n}))},YYe=d.forwardRef(k3n),z3n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm164.1 378.2L457.7 677.1a8.02 8.02 0 01-12.7-6.5V353a8 8 0 0112.7-6.5l218.4 158.8a7.9 7.9 0 010 12.9z",fill:n}},{tag:"path",attrs:{d:"M676.1 505.3L457.7 346.5A8 8 0 00445 353v317.6a8.02 8.02 0 0012.7 6.5l218.4-158.9a7.9 7.9 0 000-12.9z",fill:t}}]}},name:"play-circle",theme:"twotone"},B3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:z3n}))},H3n=d.forwardRef(B3n),j3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 010 17.6z"}}]},name:"play-square",theme:"filled"},V3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:j3n}))},G3n=d.forwardRef(V3n),W3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M442.3 677.6l199.4-156.7a11.3 11.3 0 000-17.7L442.3 346.4c-7.4-5.8-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.7 18.3 8.9z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"play-square",theme:"outlined"},U3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:W3n}))},q3n=d.forwardRef(U3n),K3n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm240-484.7c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 010 17.6L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3z",fill:n}},{tag:"path",attrs:{d:"M442.3 677.6l199.4-156.8a11.2 11.2 0 000-17.6L442.3 346.5c-7.4-5.9-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.6 18.3 8.8z",fill:t}}]}},name:"play-square",theme:"twotone"},Y3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:K3n}))},X3n=d.forwardRef(Y3n),Q3n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z"}}]},name:"plus-circle",theme:"filled"},Z3n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Q3n}))},J3n=d.forwardRef(Z3n),e6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},t6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:e6n}))},n6n=d.forwardRef(t6n),r6n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z",fill:n}},{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"plus-circle",theme:"twotone"},i6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:r6n}))},o6n=d.forwardRef(i6n),s6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z"}}]},name:"plus-square",theme:"filled"},a6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:s6n}))},l6n=d.forwardRef(a6n),c6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},u6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:c6n}))},XYe=d.forwardRef(u6n),d6n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48z",fill:n}},{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z",fill:t}}]}},name:"plus-square",theme:"twotone"},f6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:d6n}))},h6n=d.forwardRef(f6n),g6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm146 658c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 01-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8V722z"}}]},name:"pound-circle",theme:"filled"},p6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:g6n}))},m6n=d.forwardRef(p6n),v6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm138-209.8H469.8v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.9-5.3-41H607c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8H495c-7.2-22.6-13.4-45.7-13.4-70.5 0-43.5 34-70.2 87.3-70.2 21.5 0 42.5 4.1 60.4 10.5 5.2 1.9 10.6-2 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.8-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.3 6.9 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.1c3.4 14.7 5.9 29.4 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8V722c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z"}}]},name:"pound-circle",theme:"outlined"},C6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:v6n}))},y6n=d.forwardRef(C6n),b6n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm146 582.1c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 01-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8v39.8z",fill:n}},{tag:"path",attrs:{d:"M650 674.3H470v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.8-5.3-41h98.6c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8h-112c-7.2-22.6-13.4-45.8-13.4-70.5 0-43.6 34-70.2 87.3-70.2 21.4 0 42.5 4.1 60.4 10.5a8 8 0 0010.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.9-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.4 6.8 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.2c3.4 14.8 5.9 29.5 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8v38.5c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"pound-circle",theme:"twotone"},S6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:b6n}))},w6n=d.forwardRef(S6n),x6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm138-209.8H469.8v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.9-5.3-41H607c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8H495c-7.2-22.6-13.4-45.7-13.4-70.5 0-43.5 34-70.2 87.3-70.2 21.5 0 42.5 4.1 60.4 10.5 5.2 1.9 10.6-2 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.8-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.3 6.9 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.1c3.4 14.7 5.9 29.4 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8V722c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z"}}]},name:"pound",theme:"outlined"},E6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:x6n}))},R6n=d.forwardRef(E6n),$6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},O6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$6n}))},T6n=d.forwardRef(O6n),I6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M732 120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v148h440V120zm120 212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM664 844H360V568h304v276zm164-360c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z"}}]},name:"printer",theme:"filled"},M6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:I6n}))},P6n=d.forwardRef(M6n),_6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z"}}]},name:"printer",theme:"outlined"},A6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_6n}))},D6n=d.forwardRef(A6n),L6n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 180h304v152H360zm492 220H172c-6.6 0-12 5.4-12 12v292h132V500h440v204h132V412c0-6.6-5.4-12-12-12zm-24 84c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z",fill:n}},{tag:"path",attrs:{d:"M852 332H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z",fill:t}},{tag:"path",attrs:{d:"M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"printer",theme:"twotone"},F6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:L6n}))},N6n=d.forwardRef(F6n),k6n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M160 144h304a16 16 0 0116 16v304a16 16 0 01-16 16H160a16 16 0 01-16-16V160a16 16 0 0116-16m564.31-25.33l181.02 181.02a16 16 0 010 22.62L724.31 503.33a16 16 0 01-22.62 0L520.67 322.31a16 16 0 010-22.62l181.02-181.02a16 16 0 0122.62 0M160 544h304a16 16 0 0116 16v304a16 16 0 01-16 16H160a16 16 0 01-16-16V560a16 16 0 0116-16m400 0h304a16 16 0 0116 16v304a16 16 0 01-16 16H560a16 16 0 01-16-16V560a16 16 0 0116-16"}}]},name:"product",theme:"filled"},z6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:k6n}))},B6n=d.forwardRef(z6n),H6n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144a16 16 0 0116 16v304a16 16 0 01-16 16H160a16 16 0 01-16-16V160a16 16 0 0116-16zm-52 68H212v200h200zm493.33 87.69a16 16 0 010 22.62L724.31 503.33a16 16 0 01-22.62 0L520.67 322.31a16 16 0 010-22.62l181.02-181.02a16 16 0 0122.62 0zm-84.85 11.3L713 203.53 605.52 311 713 418.48zM464 544a16 16 0 0116 16v304a16 16 0 01-16 16H160a16 16 0 01-16-16V560a16 16 0 0116-16zm-52 68H212v200h200zm452-68a16 16 0 0116 16v304a16 16 0 01-16 16H560a16 16 0 01-16-16V560a16 16 0 0116-16zm-52 68H612v200h200z"}}]},name:"product",theme:"outlined"},j6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:H6n}))},V6n=d.forwardRef(j6n),G6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM380 696c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm304 272c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48z"}}]},name:"profile",theme:"filled"},W6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:G6n}))},U6n=d.forwardRef(W6n),q6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"},K6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:q6n}))},Y6n=d.forwardRef(K6n),X6n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm300-496c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zM380 328c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z",fill:n}},{tag:"path",attrs:{d:"M340 656a40 40 0 1080 0 40 40 0 10-80 0zm0-144a40 40 0 1080 0 40 40 0 10-80 0zm0-144a40 40 0 1080 0 40 40 0 10-80 0zm152 320h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z",fill:t}}]}},name:"profile",theme:"twotone"},Q6n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:X6n}))},Z6n=d.forwardRef(Q6n),J6n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM368 744c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464zm192-280c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184zm192 72c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256z"}}]},name:"project",theme:"filled"},e8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:J6n}))},t8n=d.forwardRef(e8n),n8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"},r8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:n8n}))},i8n=d.forwardRef(r8n),o8n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm472-560c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280z",fill:n}},{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8z",fill:t}}]}},name:"project",theme:"twotone"},s8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:o8n}))},a8n=d.forwardRef(s8n),l8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM648.3 332.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 018.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z"}}]},name:"property-safety",theme:"filled"},c8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:l8n}))},u8n=d.forwardRef(c8n),d8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM430.5 318h-46c-1.7 0-3.3.4-4.8 1.2a10.1 10.1 0 00-4 13.6l88 161.1h-45.2c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7h-63.1c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1a10.05 10.05 0 00-8.8-14.8h-45c-3.8 0-7.2 2.1-8.9 5.5l-73.2 144.3-72.9-144.3c-1.7-3.4-5.2-5.5-9-5.5z"}}]},name:"property-safety",theme:"outlined"},f8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:d8n}))},h8n=d.forwardRef(f8n),g8n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z",fill:t}},{tag:"path",attrs:{d:"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM593.9 318h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3L585 323.5a10 10 0 018.9-5.5z",fill:n}},{tag:"path",attrs:{d:"M438.9 323.5a9.88 9.88 0 00-8.9-5.5h-46c-1.7 0-3.3.4-4.8 1.2-4.9 2.7-6.6 8.8-4 13.6l88 161.1H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1c.8-1.5 1.2-3.1 1.1-4.8 0-5.5-4.5-10-10-10h-45a10 10 0 00-8.9 5.5l-73.2 144.3-72.9-144.3z",fill:t}}]}},name:"property-safety",theme:"twotone"},p8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:g8n}))},m8n=d.forwardRef(p8n),v8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 010-96 48.01 48.01 0 010 96zM384 212c0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0z"}}]},name:"pull-request",theme:"outlined"},C8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:v8n}))},y8n=d.forwardRef(C8n),b8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z"}}]},name:"pushpin",theme:"filled"},S8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:b8n}))},w8n=d.forwardRef(S8n),x8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 00-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 01-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z"}}]},name:"pushpin",theme:"outlined"},E8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:x8n}))},R8n=d.forwardRef(E8n),$8n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M474.8 357.7l-24.5 24.5-34.4-3.8c-9.6-1.1-19.3-1.6-28.9-1.6-29 0-57.5 4.7-84.7 14.1-14 4.8-27.4 10.8-40.3 17.9l353.1 353.3a259.92 259.92 0 0030.4-153.9l-3.8-34.4 24.5-24.5L800 415.5 608.5 224 474.8 357.7z",fill:n}},{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 00-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 01-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z",fill:t}}]}},name:"pushpin",theme:"twotone"},O8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$8n}))},T8n=d.forwardRef(O8n),I8n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M555 790.5a28.5 28.5 0 1057 0 28.5 28.5 0 00-57 0m-143-557a28.5 28.5 0 1057 0 28.5 28.5 0 00-57 0"}},{tag:"path",attrs:{d:"M821.52 297.71H726.3v-95.23c0-49.9-40.58-90.48-90.48-90.48H388.19c-49.9 0-90.48 40.57-90.48 90.48v95.23h-95.23c-49.9 0-90.48 40.58-90.48 90.48v247.62c0 49.9 40.57 90.48 90.48 90.48h95.23v95.23c0 49.9 40.58 90.48 90.48 90.48h247.62c49.9 0 90.48-40.57 90.48-90.48V726.3h95.23c49.9 0 90.48-40.58 90.48-90.48V388.19c0-49.9-40.57-90.48-90.48-90.48M202.48 669.14a33.37 33.37 0 01-33.34-33.33V388.19a33.37 33.37 0 0133.34-33.33h278.57a28.53 28.53 0 0028.57-28.57 28.53 28.53 0 00-28.57-28.58h-126.2v-95.23a33.37 33.37 0 0133.34-33.34h247.62a33.37 33.37 0 0133.33 33.34v256.47a24.47 24.47 0 01-24.47 24.48H379.33c-45.04 0-81.62 36.66-81.62 81.62v104.1zm652.38-33.33a33.37 33.37 0 01-33.34 33.33H542.95a28.53 28.53 0 00-28.57 28.57 28.53 28.53 0 0028.57 28.58h126.2v95.23a33.37 33.37 0 01-33.34 33.34H388.19a33.37 33.37 0 01-33.33-33.34V565.05a24.47 24.47 0 0124.47-24.48h265.34c45.04 0 81.62-36.67 81.62-81.62v-104.1h95.23a33.37 33.37 0 0133.34 33.34z"}}]},name:"python",theme:"outlined"},M8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:I8n}))},P8n=d.forwardRef(M8n),_8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm210.5 612.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z"}}]},name:"qq-circle",theme:"filled"},A8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_8n}))},D8n=d.forwardRef(A8n),L8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z"}}]},name:"qq",theme:"outlined"},F8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:L8n}))},N8n=d.forwardRef(F8n),k8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM722.5 676.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z"}}]},name:"qq-square",theme:"filled"},z8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:k8n}))},B8n=d.forwardRef(z8n),H8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"qrcode",theme:"outlined"},j8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:H8n}))},V8n=d.forwardRef(j8n),G8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},W8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:G8n}))},U8n=d.forwardRef(W8n),q8n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm0 632c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z",fill:n}},{tag:"path",attrs:{d:"M472 732a40 40 0 1080 0 40 40 0 10-80 0zm151.6-415.3C593.6 290.5 554 276 512 276s-81.6 14.4-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.2 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5 0-39.3-17.2-76-48.4-103.3z",fill:t}}]}},name:"question-circle",theme:"twotone"},K8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:q8n}))},Y8n=d.forwardRef(K8n),X8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 00-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z"}}]},name:"question",theme:"outlined"},Q8n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:X8n}))},Z8n=d.forwardRef(Q8n),J8n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926.8 397.1l-396-288a31.81 31.81 0 00-37.6 0l-396 288a31.99 31.99 0 00-11.6 35.8l151.3 466a32 32 0 0030.4 22.1h489.5c13.9 0 26.1-8.9 30.4-22.1l151.3-466c4.2-13.2-.5-27.6-11.7-35.8zM838.6 417l-98.5 32-200-144.7V199.9L838.6 417zM466 567.2l-89.1 122.3-55.2-169.2L466 567.2zm-116.3-96.8L484 373.3v140.8l-134.3-43.7zM512 599.2l93.9 128.9H418.1L512 599.2zm28.1-225.9l134.2 97.1L540.1 514V373.3zM558 567.2l144.3-46.9-55.2 169.2L558 567.2zm-74-367.3v104.4L283.9 449l-98.5-32L484 199.9zM169.3 470.8l86.5 28.1 80.4 246.4-53.8 73.9-113.1-348.4zM327.1 853l50.3-69h269.3l50.3 69H327.1zm414.5-33.8l-53.8-73.9 80.4-246.4 86.5-28.1-113.1 348.4z"}}]},name:"radar-chart",theme:"outlined"},eCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:J8n}))},tCn=d.forwardRef(eCn),nCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M712 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm2-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM136 374h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-174h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm752 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-230 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 624H358c-87.3 0-158-70.7-158-158V484c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v182c0 127 103 230 230 230h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"radius-bottomleft",theme:"outlined"},rCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nCn}))},iCn=d.forwardRef(rCn),oCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M368 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-58-624h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm578 102h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm292 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm174 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 276h-56c-4.4 0-8 3.6-8 8v182c0 87.3-70.7 158-158 158H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c127 0 230-103 230-230V484c0-4.4-3.6-8-8-8z"}}]},name:"radius-bottomright",theme:"outlined"},sCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oCn}))},aCn=d.forwardRef(sCn),lCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 140h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-44 684h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm524-204h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 344h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm320 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm160 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm140-284c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V370c0-127-103-230-230-230H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h170c87.3 0 158 70.7 158 158v170zM236 96H92c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2zM920 780H776c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V788c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2z"}}]},name:"radius-setting",theme:"outlined"},cCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lCn}))},uCn=d.forwardRef(cCn),dCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M656 200h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm58 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 650h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm696-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174-696H358c-127 0-230 103-230 230v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-87.3 70.7-158 158-158h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"radius-upleft",theme:"outlined"},fCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dCn}))},hCn=d.forwardRef(fCn),gCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M368 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-2 696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm522-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-48-696H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c87.3 0 158 70.7 158 158v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-127-103-230-230-230z"}}]},name:"radius-upright",theme:"outlined"},pCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gCn}))},mCn=d.forwardRef(pCn),vCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM404 553.5c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm416 140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45z"}}]},name:"read",theme:"filled"},CCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vCn}))},yCn=d.forwardRef(CCn),bCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"},SCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bCn}))},wCn=d.forwardRef(SCn),xCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M676 623c-18.8 0-34 15.2-34 34s15.2 34 34 34 34-15.2 34-34-15.2-34-34-34zm204-455H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zM448 848H176V616h272v232zm0-296H176v-88h272v88zm20-272v-48h72v-56h64v56h72v48H468zm180 168v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8zm28 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-245c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v96zm-92 61c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z"}}]},name:"reconciliation",theme:"filled"},ECn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xCn}))},RCn=d.forwardRef(ECn),$Cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34zm204-523H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552zM704 408v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zM592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"reconciliation",theme:"outlined"},OCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$Cn}))},TCn=d.forwardRef(OCn),ICn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 344H404V240H304v160h176c17.7 0 32 14.3 32 32v360h328V240H740v104zM584 448c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56zm92 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-341v96c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z",fill:n}},{tag:"path",attrs:{d:"M642 657a34 34 0 1068 0 34 34 0 10-68 0z",fill:n}},{tag:"path",attrs:{d:"M592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm112-104v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z",fill:t}},{tag:"path",attrs:{d:"M880 168H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552z",fill:t}},{tag:"path",attrs:{d:"M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z",fill:t}}]}},name:"reconciliation",theme:"twotone"},MCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ICn}))},PCn=d.forwardRef(MCn),_Cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM647 470.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4v25.1c0 4.6-3.8 8.4-8.4 8.4h-63.3v28.6h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.6-3.6 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4l-87.5-161c-2.2-4.1-.7-9.1 3.4-11.4 1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.9 141.8 71.9-141.9a8.5 8.5 0 017.5-4.6h47.8c4.6 0 8.4 3.8 8.4 8.4-.1 1.5-.5 2.9-1.1 4.1zM512.6 323L289 148h446L512.6 323z"}}]},name:"red-envelope",theme:"filled"},ACn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_Cn}))},DCn=d.forwardRef(ACn),LCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M440.6 462.6a8.38 8.38 0 00-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 00-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 00-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142zM832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z"}}]},name:"red-envelope",theme:"outlined"},FCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:LCn}))},NCn=d.forwardRef(FCn),kCn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z",fill:t}},{tag:"path",attrs:{d:"M492.3 397.2L232 193.1V888h560V193.1L531.8 397.2a31.99 31.99 0 01-39.5 0zm99.4 60.9h47.8a8.45 8.45 0 017.4 12.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4V665c0 4.6-3.8 8.4-8.4 8.4h-63.3V702h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.7-3.5 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4L377 470.4a8.4 8.4 0 013.4-11.4c1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.7 142 71.9-141.9a8.6 8.6 0 017.5-4.6z",fill:n}},{tag:"path",attrs:{d:"M232 136.7h31.7L512 331.3l248.3-194.6H792v-.7H232z",fill:n}},{tag:"path",attrs:{d:"M440.6 462.6a8.38 8.38 0 00-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 00-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 00-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142z",fill:t}}]}},name:"red-envelope",theme:"twotone"},zCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kCn}))},BCn=d.forwardRef(zCn),HCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M584 548a36 36 0 1072 0 36 36 0 10-72 0zm144-108a35.9 35.9 0 00-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 00728 440zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm245 477.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 01296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 01101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zm-171.3 83c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 00-30.1-3.6zM296 440a35.98 35.98 0 00-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 00296 440zm72 108a36 36 0 1072 0 36 36 0 10-72 0z"}}]},name:"reddit-circle",theme:"filled"},jCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:HCn}))},VCn=d.forwardRef(jCn),GCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 568a56 56 0 10112 0 56 56 0 10-112 0zm338.7 119.7c-23.1 18.2-68.9 37.8-114.7 37.8s-91.6-19.6-114.7-37.8c-14.4-11.3-35.3-8.9-46.7 5.5s-8.9 35.3 5.5 46.7C396.3 771.6 457.5 792 512 792s115.7-20.4 155.9-52.1a33.25 33.25 0 10-41.2-52.2zM960 456c0-61.9-50.1-112-112-112-42.1 0-78.7 23.2-97.9 57.6-57.6-31.5-127.7-51.8-204.1-56.5L612.9 195l127.9 36.9c11.5 32.6 42.6 56.1 79.2 56.1 46.4 0 84-37.6 84-84s-37.6-84-84-84c-32 0-59.8 17.9-74 44.2L603.5 123a33.2 33.2 0 00-39.6 18.4l-90.8 203.9c-74.5 5.2-142.9 25.4-199.2 56.2A111.94 111.94 0 00176 344c-61.9 0-112 50.1-112 112 0 45.8 27.5 85.1 66.8 102.5-7.1 21-10.8 43-10.8 65.5 0 154.6 175.5 280 392 280s392-125.4 392-280c0-22.6-3.8-44.5-10.8-65.5C932.5 541.1 960 501.8 960 456zM820 172.5a31.5 31.5 0 110 63 31.5 31.5 0 010-63zM120 456c0-30.9 25.1-56 56-56a56 56 0 0150.6 32.1c-29.3 22.2-53.5 47.8-71.5 75.9a56.23 56.23 0 01-35.1-52zm392 381.5c-179.8 0-325.5-95.6-325.5-213.5S332.2 410.5 512 410.5 837.5 506.1 837.5 624 691.8 837.5 512 837.5zM868.8 508c-17.9-28.1-42.2-53.7-71.5-75.9 9-18.9 28.3-32.1 50.6-32.1 30.9 0 56 25.1 56 56 .1 23.5-14.5 43.7-35.1 52zM624 568a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"reddit",theme:"outlined"},WCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:GCn}))},UCn=d.forwardRef(WCn),qCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 440a35.98 35.98 0 00-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 00296 440zm289.7 184.9c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 00-30.1-3.6zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM757 541.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 01296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 01101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zM584 548a36 36 0 1072 0 36 36 0 10-72 0zm144-108a35.9 35.9 0 00-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 00728 440zM368 548a36 36 0 1072 0 36 36 0 10-72 0z"}}]},name:"reddit-square",theme:"filled"},KCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qCn}))},YCn=d.forwardRef(KCn),XCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"},QCn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:XCn}))},ZCn=d.forwardRef(QCn),JCn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},eyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:JCn}))},tyn=d.forwardRef(eyn),nyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0031.9 29.3h429.2a32 32 0 0031.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zM508 704c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zM291 256l22.4-76h397.2l22.4 76H291zm137 304a80 80 0 10160 0 80 80 0 10-160 0z"}}]},name:"rest",theme:"filled"},ryn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nyn}))},iyn=d.forwardRef(ryn),oyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}},{tag:"path",attrs:{d:"M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0031.9 29.3h429.2a32 32 0 0031.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z"}}]},name:"rest",theme:"outlined"},syn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oyn}))},ayn=d.forwardRef(syn),lyn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326.4 844h363.2l44.3-520H282l44.4 520zM508 416c79.5 0 144 64.5 144 144s-64.5 144-144 144-144-64.5-144-144 64.5-144 144-144z",fill:n}},{tag:"path",attrs:{d:"M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z",fill:t}},{tag:"path",attrs:{d:"M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0031.9 29.3h429.2a32 32 0 0031.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z",fill:t}}]}},name:"rest",theme:"twotone"},cyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lyn}))},uyn=d.forwardRef(cyn),dyn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},fyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dyn}))},hyn=d.forwardRef(fyn),gyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z"}}]},name:"right-circle",theme:"filled"},pyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gyn}))},myn=d.forwardRef(pyn),vyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M666.7 505.5l-246-178A8 8 0 00408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"right-circle",theme:"outlined"},Cyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vyn}))},yyn=d.forwardRef(Cyn),byn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm154.7 378.4l-246 178c-5.3 3.8-12.7 0-12.7-6.5V643c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9z",fill:n}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M666.7 505.5l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L566.6 512 421.2 617.1c-8.3 6-13.2 15.7-13.2 25.9v46.9c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.7 0-12.9z",fill:t}}]}},name:"right-circle",theme:"twotone"},Syn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:byn}))},wyn=d.forwardRef(Syn),xyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM658.7 518.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z"}}]},name:"right-square",theme:"filled"},Eyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xyn}))},Ryn=d.forwardRef(Eyn),$yn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"right-square",theme:"outlined"},Oyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$yn}))},Tyn=d.forwardRef(Oyn),Iyn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm216-196.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9l-246 178c-5.3 3.9-12.7.1-12.7-6.4v-46.9z",fill:n}},{tag:"path",attrs:{d:"M412.7 696.4l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.7-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.4z",fill:t}}]}},name:"right-square",theme:"twotone"},Myn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Iyn}))},Pyn=d.forwardRef(Myn),_yn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"},Ayn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_yn}))},Dyn=d.forwardRef(Ayn),Lyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM300 328c0-33.1 26.9-60 60-60s60 26.9 60 60-26.9 60-60 60-60-26.9-60-60zm372 248c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-60c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v60zm-8-188c-33.1 0-60-26.9-60-60s26.9-60 60-60 60 26.9 60 60-26.9 60-60 60zm135 476H225c-13.8 0-25 14.3-25 32v56c0 4.4 2.8 8 6.2 8h611.5c3.4 0 6.2-3.6 6.2-8v-56c.1-17.7-11.1-32-24.9-32z"}}]},name:"robot",theme:"filled"},Fyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Lyn}))},Nyn=d.forwardRef(Fyn),kyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},zyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kyn}))},Byn=d.forwardRef(zyn),Hyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zM512 352a48.01 48.01 0 010 96 48.01 48.01 0 010-96zm116.1 432.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5z"}}]},name:"rocket",theme:"filled"},jyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Hyn}))},Vyn=d.forwardRef(jyn),Gyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},Wyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Gyn}))},Uyn=d.forwardRef(Wyn),qyn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M261.7 621.4c-9.4 14.6-17 30.3-22.5 46.6H324V558.7c-24.8 16.2-46 37.5-62.3 62.7zM700 558.7V668h84.8c-5.5-16.3-13.1-32-22.5-46.6a211.6 211.6 0 00-62.3-62.7zm-64-239.9l-124-147-124 147V668h248V318.8zM512 448a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:n}},{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zm-540-68h-84.8c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668zm64-184.9V318.8l124-147 124 147V668H388V483.1zm240.1 301.1c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM700 668V558.7a211.6 211.6 0 0162.3 62.7c9.4 14.6 17 30.3 22.5 46.6H700z",fill:t}},{tag:"path",attrs:{d:"M464 400a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"rocket",theme:"twotone"},Kyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qyn}))},Yyn=d.forwardRef(Kyn),Xyn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},Qyn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Xyn}))},Zyn=d.forwardRef(Qyn),Jyn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M509.81 112.02c-.73.05-1.46.12-2.2.21h-4.32l-3.4 1.7a36.33 36.33 0 00-8.88 4.4l-145.96 73.02-153.7 153.7-72.65 145.24a36.33 36.33 0 00-4.9 9.86l-1.56 3.12v3.98a36.33 36.33 0 000 8.3v298.23l6.88 9.5a198.7 198.7 0 0020.58 24.42c37.86 37.85 87.66 57.16 142.62 62.01a36.34 36.34 0 0011.57 1.77h575.75c3.14.54 6.34.66 9.51.36a36.34 36.34 0 002.56-.35h29.8v-29.95a36.33 36.33 0 000-11.92V293.88a36.33 36.33 0 00-1.78-11.57c-4.84-54.95-24.16-104.75-62.01-142.62h-.07v-.07a203.92 203.92 0 00-24.27-20.43l-9.58-6.96H515.14a36.34 36.34 0 00-5.32-.21M643 184.89h145.96c2.47 2.08 5.25 4.06 7.45 6.25 26.59 26.63 40.97 64.74 42.3 111.18zM510.31 190l65.71 39.38-25.47 156.1-64.36 64.36-100.7 100.69L229.4 576l-39.38-65.7 61.1-122.26 136.94-136.95zm132.76 79.61l123.19 73.94-138.09 17.24zM821.9 409.82c-21.21 68.25-62.66 142.58-122.4 211.88l-65.85-188.4zm-252.54 59.6l53.64 153.56-153.55-53.65 68.12-68.12zm269.5 81.04v237L738.44 687.04c40.1-43.74 73.73-89.83 100.4-136.59m-478.04 77.7l-17.24 138.08-73.94-123.18zm72.52 5.46l188.32 65.85c-69.28 59.71-143.57 101.2-211.8 122.4zM184.9 643l117.43 195.7c-46.5-1.33-84.63-15.74-111.26-42.37-2.16-2.16-4.11-4.93-6.17-7.38zm502.17 95.43l100.4 100.4h-237c46.77-26.67 92.86-60.3 136.6-100.4"}}]},name:"ruby",theme:"outlined"},ebn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Jyn}))},tbn=d.forwardRef(ebn),nbn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM694.5 340.7L481.9 633.4a16.1 16.1 0 01-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z"}}]},name:"safety-certificate",theme:"filled"},rbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nbn}))},ibn=d.forwardRef(rbn),obn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},sbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:obn}))},abn=d.forwardRef(sbn),lbn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z",fill:t}},{tag:"path",attrs:{d:"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 01-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z",fill:n}},{tag:"path",attrs:{d:"M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z",fill:t}}]}},name:"safety-certificate",theme:"twotone"},cbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lbn}))},ubn=d.forwardRef(cbn),dbn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"},fbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dbn}))},QYe=d.forwardRef(fbn),hbn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},gbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hbn}))},pbn=d.forwardRef(gbn),mbn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},vbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mbn}))},UV=d.forwardRef(vbn),Cbn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:n}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:t}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:t}}]}},name:"save",theme:"twotone"},ybn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Cbn}))},bbn=d.forwardRef(ybn),Sbn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"scan",theme:"outlined"},wbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Sbn}))},xbn=d.forwardRef(wbn),Ebn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.5-91.3l-165 228.7a15.9 15.9 0 01-25.8 0L493.5 531.2c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.5 12.9 6.6l52.8 73.1 103.7-143.7c3-4.2 7.8-6.6 12.9-6.6H792c6.5.1 10.3 7.5 6.5 12.8z"}}]},name:"schedule",theme:"filled"},Rbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ebn}))},$bn=d.forwardRef(Rbn),Obn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 136H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm308.2-177.4L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0025.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5z"}}]},name:"schedule",theme:"outlined"},Tbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Obn}))},Ibn=d.forwardRef(Tbn),Mbn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.4-91.2l-165 228.7a15.9 15.9 0 01-25.8 0L493.5 531.3c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.4 12.9 6.6l52.8 73.1 103.6-143.7c3-4.1 7.8-6.6 12.8-6.5h54.9c6.5 0 10.3 7.4 6.5 12.7z",fill:n}},{tag:"path",attrs:{d:"M724.2 454.6L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0025.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:t}},{tag:"path",attrs:{d:"M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z",fill:t}},{tag:"path",attrs:{d:"M416 632H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"schedule",theme:"twotone"},Pbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Mbn}))},_bn=d.forwardRef(Pbn),Abn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M567.1 512l318.5-319.3c5-5 1.5-13.7-5.6-13.7h-90.5c-2.1 0-4.2.8-5.6 2.3l-273.3 274-90.2-90.5c12.5-22.1 19.7-47.6 19.7-74.8 0-83.9-68.1-152-152-152s-152 68.1-152 152 68.1 152 152 152c27.7 0 53.6-7.4 75.9-20.3l90 90.3-90.1 90.3A151.04 151.04 0 00288 582c-83.9 0-152 68.1-152 152s68.1 152 152 152 152-68.1 152-152c0-27.2-7.2-52.7-19.7-74.8l90.2-90.5 273.3 274c1.5 1.5 3.5 2.3 5.6 2.3H880c7.1 0 10.7-8.6 5.6-13.7L567.1 512zM288 370c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm0 444c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}}]},name:"scissor",theme:"outlined"},Dbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Abn}))},Lbn=d.forwardRef(Dbn),Fbn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM626.8 554c-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 01-11.3 0l-34-34a8.03 8.03 0 010-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0 56.3 56.3 56.3 147.5 0 203.8zm-158.54-45.27a80.1 80.1 0 10113.27-113.28 80.1 80.1 0 10-113.27 113.28z"}}]},name:"security-scan",theme:"filled"},Nbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Fbn}))},kbn=d.forwardRef(Nbn),zbn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 000 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z"}}]},name:"security-scan",theme:"outlined"},Bbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:zbn}))},Hbn=d.forwardRef(Bbn),jbn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z",fill:t}},{tag:"path",attrs:{d:"M460.7 451.1a80.1 80.1 0 10160.2 0 80.1 80.1 0 10-160.2 0z",fill:n}},{tag:"path",attrs:{d:"M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zm428.7 122.5c56.3 56.3 56.3 147.5 0 203.8-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 01-11.3 0l-34-34a8.03 8.03 0 010-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0z",fill:n}},{tag:"path",attrs:{d:"M418.8 527.8l-77.5 77.5a8.03 8.03 0 000 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.6 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 122.9-20.1 178.6zm65.4-133.3a80.1 80.1 0 01113.3 0 80.1 80.1 0 010 113.3c-31.3 31.3-82 31.3-113.3 0s-31.3-82 0-113.3z",fill:t}}]}},name:"security-scan",theme:"twotone"},Vbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jbn}))},Gbn=d.forwardRef(Vbn),Wbn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"},Ubn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Wbn}))},qbn=d.forwardRef(Ubn),Kbn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},Ybn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Kbn}))},Xbn=d.forwardRef(Ybn),Qbn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1a110.96 110.96 0 00-79.1-32.8zm412.3 235.5l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9a32.03 32.03 0 009.3-35.2l-.9-2.6a442.5 442.5 0 00-79.6-137.7l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52-9.4-106.8-9.4-158.8 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.3a353.44 353.44 0 00-98.9 57.3l-81.8-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a445.93 445.93 0 00-79.6 137.7l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3a32.05 32.05 0 0025.8 25.7l2.7.5a448.27 448.27 0 00158.8 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c4.3-12.4.6-26.3-9.5-35zm-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z"}}]},name:"setting",theme:"filled"},Zbn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Qbn}))},Jbn=d.forwardRef(Zbn),e5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},t5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:e5n}))},pme=d.forwardRef(t5n),n5n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.3 569.7l.2.1c3.1-18.9 4.6-38.2 4.6-57.3 0-17.1-1.3-34.3-3.7-51.1 2.4 16.7 3.6 33.6 3.6 50.5 0 19.4-1.6 38.8-4.7 57.8zM99 398.1c-.5-.4-.9-.8-1.4-1.3.7.7 1.4 1.4 2.2 2.1l65.5 55.9v-.1L99 398.1zm536.6-216h.1l-15.5-83.8c-.2-1-.4-1.9-.7-2.8.1.5.3 1.1.4 1.6l15.7 85zm54 546.5l31.4-25.8 92.8 32.9c17-22.9 31.3-47.5 42.6-73.6l-74.7-63.9 6.6-40.1c2.5-15.1 3.8-30.6 3.8-46.1s-1.3-31-3.8-46.1l-6.5-39.9 74.7-63.9c-11.4-26-25.6-50.7-42.6-73.6l-92.8 32.9-31.4-25.8c-23.9-19.6-50.6-35-79.3-45.8l-38.1-14.3-17.9-97a377.5 377.5 0 00-85 0l-17.9 97.2-37.9 14.3c-28.5 10.8-55 26.2-78.7 45.7l-31.4 25.9-93.4-33.2c-17 22.9-31.3 47.5-42.6 73.6l75.5 64.5-6.5 40c-2.5 14.9-3.7 30.2-3.7 45.5 0 15.2 1.3 30.6 3.7 45.5l6.5 40-75.5 64.5c11.4 26 25.6 50.7 42.6 73.6l93.4-33.2 31.4 25.9c23.7 19.5 50.2 34.9 78.7 45.7l37.8 14.5 17.9 97.2c28.2 3.2 56.9 3.2 85 0l17.9-97 38.1-14.3c28.8-10.8 55.4-26.2 79.3-45.8zm-177.1-50.3c-30.5 0-59.2-7.8-84.3-21.5C373.3 627 336 568.9 336 502c0-97.2 78.8-176 176-176 66.9 0 125 37.3 154.8 92.2 13.7 25 21.5 53.7 21.5 84.3 0 97.1-78.7 175.8-175.8 175.8zM207.2 812.8c-5.5 1.9-11.2 2.3-16.6 1.2 5.7 1.2 11.7 1 17.5-1l81.4-29c-.1-.1-.3-.2-.4-.3l-81.9 29.1zm717.6-414.7l-65.5 56c0 .2.1.5.1.7l65.4-55.9c7.1-6.1 11.1-14.9 11.2-24-.3 8.8-4.3 17.3-11.2 23.2z",fill:n}},{tag:"path",attrs:{d:"M935.8 646.6c.5 4.7 0 9.5-1.7 14.1l-.9 2.6a446.02 446.02 0 01-79.7 137.9l-1.8 2.1a32 32 0 01-35.1 9.5l-81.3-28.9a350 350 0 01-99.7 57.6l-15.7 85a32.05 32.05 0 01-25.8 25.7l-2.7.5a445.2 445.2 0 01-79.2 7.1h.3c26.7 0 53.4-2.4 79.4-7.1l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c1.6-4.7 2.1-9.7 1.5-14.5z",fill:n}},{tag:"path",attrs:{d:"M688 502c0-30.3-7.7-58.9-21.2-83.8C637 363.3 578.9 326 512 326c-97.2 0-176 78.8-176 176 0 66.9 37.3 125 92.2 154.8 24.9 13.5 53.4 21.2 83.8 21.2 97.2 0 176-78.8 176-176zm-288 0c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502z",fill:t}},{tag:"path",attrs:{d:"M594.1 952.2a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c1.7-4.6 2.2-9.4 1.7-14.1-.9-7.9-4.7-15.4-11-20.9l-65.3-55.9-.2-.1c3.1-19 4.7-38.4 4.7-57.8 0-16.9-1.2-33.9-3.6-50.5-.3-2.2-.7-4.4-1-6.6 0-.2-.1-.5-.1-.7l65.5-56c6.9-5.9 10.9-14.4 11.2-23.2.1-4-.5-8.1-1.9-12l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.4-44-99.6-57.6h-.1l-15.7-85c-.1-.5-.2-1.1-.4-1.6a32.08 32.08 0 00-25.4-24.1l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6a32.09 32.09 0 007.9 33.9c.5.4.9.9 1.4 1.3l66.3 56.6v.1c-3.1 18.8-4.6 37.9-4.6 57 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1c4.9 5.7 11.4 9.4 18.5 10.7 5.4 1 11.1.7 16.6-1.2l81.9-29.1c.1.1.3.2.4.3 29.7 24.3 62.8 43.6 98.6 57.1l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5c26.1 4.7 52.8 7.1 79.5 7.1h.3c26.6 0 53.3-2.4 79.2-7.1l2.7-.5zm-39.8-66.5a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97z",fill:t}}]}},name:"setting",theme:"twotone"},r5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:n5n}))},i5n=d.forwardRef(r5n),o5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M324 666a48 48 0 1096 0 48 48 0 10-96 0zm616.7-309.6L667.6 83.2C655.2 70.9 638.7 64 621.1 64s-34.1 6.8-46.5 19.2L83.3 574.5a65.85 65.85 0 000 93.1l273.2 273.2c12.3 12.3 28.9 19.2 46.5 19.2s34.1-6.8 46.5-19.2l491.3-491.3c25.6-25.7 25.6-67.5-.1-93.1zM403 880.1L143.9 621l477.2-477.2 259 259.2L403 880.1zM152.8 373.7a7.9 7.9 0 0011.2 0L373.7 164a7.9 7.9 0 000-11.2l-38.4-38.4a7.9 7.9 0 00-11.2 0L114.3 323.9a7.9 7.9 0 000 11.2l38.5 38.6zm718.6 276.6a7.9 7.9 0 00-11.2 0L650.3 860.1a7.9 7.9 0 000 11.2l38.4 38.4a7.9 7.9 0 0011.2 0L909.7 700a7.9 7.9 0 000-11.2l-38.3-38.5z"}}]},name:"shake",theme:"outlined"},s5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:o5n}))},a5n=d.forwardRef(s5n),l5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},c5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:l5n}))},u5n=d.forwardRef(c5n),d5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0014.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h274V736h128v176h274c17.7 0 32-14.3 32-32V535a175 175 0 0015.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zm-72 568H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm0-568.1H214v-88h596v88z"}}]},name:"shop",theme:"filled"},f5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:d5n}))},h5n=d.forwardRef(f5n),g5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0014.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0015.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm30-404.4c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 01512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 01-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z"}}]},name:"shop",theme:"outlined"},p5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:g5n}))},m5n=d.forwardRef(p5n),v5n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.5 344h-655c-.3 0-.5.2-.5.5v91.2c0 59.8 49 108.3 109.3 108.3 40.7 0 76.2-22 95.1-54.7 2.9-5.1 8.4-8.3 14.3-8.3s11.3 3.2 14.3 8.3c18.8 32.7 54.3 54.7 95 54.7 40.8 0 76.4-22.1 95.1-54.9 2.9-5 8.2-8.1 13.9-8.1h.6c5.8 0 11 3.1 13.9 8.1 18.8 32.8 54.4 54.9 95.2 54.9C791 544 840 495.5 840 435.7v-91.2c0-.3-.2-.5-.5-.5z",fill:n}},{tag:"path",attrs:{d:"M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0014.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0015.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234.4 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c3-1.3 6-2.6 9-4v242.2zM840 435.7c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 01512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 01-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z",fill:t}}]}},name:"shop",theme:"twotone"},C5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:v5n}))},y5n=d.forwardRef(C5n),b5n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 00-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 100 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 00-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 00-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6z"}}]},name:"shopping-cart",theme:"outlined"},S5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:b5n}))},w5n=d.forwardRef(S5n),x5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-208 0H400v-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16z"}}]},name:"shopping",theme:"filled"},E5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:x5n}))},R5n=d.forwardRef(E5n),$5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z"}}]},name:"shopping",theme:"outlined"},O5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$5n}))},T5n=d.forwardRef(O5n),I5n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 472c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88H400v88c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88h-96v456h560V384h-96v88z",fill:n}},{tag:"path",attrs:{d:"M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z",fill:t}}]}},name:"shopping",theme:"twotone"},M5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:I5n}))},P5n=d.forwardRef(M5n),_5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},A5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_5n}))},D5n=d.forwardRef(A5n),L5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M584 352H440c-17.7 0-32 14.3-32 32v544c0 17.7 14.3 32 32 32h144c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32zM892 64H748c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h144c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM276 640H132c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h144c17.7 0 32-14.3 32-32V672c0-17.7-14.3-32-32-32z"}}]},name:"signal",theme:"filled"},F5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:L5n}))},N5n=d.forwardRef(F5n),k5n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M145.71 752c2 0 4-.2 5.98-.5L319.9 722c1.99-.4 3.88-1.3 5.28-2.8l423.91-423.87a9.93 9.93 0 000-14.06L582.88 114.9C581 113 578.5 112 575.82 112s-5.18 1-7.08 2.9L144.82 538.76c-1.5 1.5-2.4 3.29-2.8 5.28l-29.5 168.17a33.59 33.59 0 009.37 29.81c6.58 6.48 14.95 9.97 23.82 9.97m453.12-184.07c27.69-14.81 57.29-20.85 85.54-15.52 32.37 6.1 59.72 26.53 78.96 59.4 29.97 51.22 21.64 102.34-18.48 144.26-17.58 18.36-41.07 35.01-70 50.3l-.3.15.86.26a147.88 147.88 0 0041.54 6.2l1.17.01c61.07 0 100.98-22.1 125.28-67.87a36 36 0 0163.6 33.76C869.7 849.1 804.9 885 718.12 885c-47.69 0-91.94-15.03-128.19-41.36l-1.05-.78-1.36.47c-46.18 16-98.74 29.95-155.37 41.94l-2.24.47a1931.1 1931.1 0 01-139.16 23.96 36 36 0 11-9.5-71.38 1860.1 1860.1 0 00133.84-23.04c42.8-9 83-19.13 119.35-30.34l.24-.08-.44-.69c-16.46-26.45-25.86-55.43-26.14-83.24v-1.3c0-49.9 39.55-104.32 90.73-131.7M671 623.17c-10.74-2.03-24.1.7-38.22 8.26-29.55 15.8-52.7 47.64-52.7 68.2 0 18.2 8.9 40.14 24.71 59.73l.24.3 1.22-.52c39.17-16.58 68.49-34.27 85.93-52.18l.64-.67c18.74-19.57 21.39-35.84 8.36-58.1-9.06-15.47-19.03-22.92-30.18-25.02"}}]},name:"signature",theme:"filled"},z5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:k5n}))},B5n=d.forwardRef(z5n),H5n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M145.71 752c2 0 4-.2 5.98-.5L319.9 722c1.99-.4 3.88-1.3 5.28-2.8l423.91-423.87a9.93 9.93 0 000-14.06L582.88 114.9C581 113 578.5 112 575.82 112s-5.18 1-7.08 2.9L144.82 538.76c-1.5 1.5-2.4 3.29-2.8 5.28l-29.5 168.17a33.59 33.59 0 009.37 29.81c6.58 6.48 14.95 9.97 23.82 9.97m51.75-85.43l15.65-88.92 362.7-362.67 73.28 73.27-362.7 362.67zm401.37-98.64c27.69-14.81 57.29-20.85 85.54-15.52 32.37 6.1 59.72 26.53 78.96 59.4 29.97 51.22 21.64 102.34-18.48 144.26-17.58 18.36-41.07 35.01-70 50.3l-.3.15.86.26a147.88 147.88 0 0041.54 6.2l1.17.01c61.07 0 100.98-22.1 125.28-67.87a36 36 0 0163.6 33.76C869.7 849.1 804.9 885 718.12 885c-47.69 0-91.94-15.03-128.19-41.36l-1.05-.78-1.36.47c-46.18 16-98.74 29.95-155.37 41.94l-2.24.47a1931.1 1931.1 0 01-139.16 23.96 36 36 0 11-9.5-71.38 1860.1 1860.1 0 00133.84-23.04c42.8-9 83-19.13 119.35-30.34l.24-.08-.44-.69c-16.46-26.45-25.86-55.43-26.14-83.24v-1.3c0-49.9 39.55-104.32 90.73-131.7M671 623.17c-10.74-2.03-24.1.7-38.22 8.26-29.55 15.8-52.7 47.64-52.7 68.2 0 18.2 8.9 40.14 24.71 59.73l.24.3 1.22-.52c39.17-16.58 68.49-34.27 85.93-52.18l.64-.67c18.74-19.57 21.39-35.84 8.36-58.1-9.06-15.47-19.03-22.92-30.18-25.02"}}]},name:"signature",theme:"outlined"},j5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:H5n}))},V5n=d.forwardRef(j5n),G5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 432c-120.3 0-219.9 88.5-237.3 204H320c-15.5 0-28-12.5-28-28V244h291c14.2 35.2 48.7 60 89 60 53 0 96-43 96-96s-43-96-96-96c-40.3 0-74.8 24.8-89 60H112v72h108v364c0 55.2 44.8 100 100 100h114.7c17.4 115.5 117 204 237.3 204 132.5 0 240-107.5 240-240S804.5 432 672 432zm128 266c0 4.4-3.6 8-8 8h-86v86c0 4.4-3.6 8-8 8h-52c-4.4 0-8-3.6-8-8v-86h-86c-4.4 0-8-3.6-8-8v-52c0-4.4 3.6-8 8-8h86v-86c0-4.4 3.6-8 8-8h52c4.4 0 8 3.6 8 8v86h86c4.4 0 8 3.6 8 8v52z"}}]},name:"sisternode",theme:"outlined"},W5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:G5n}))},U5n=d.forwardRef(W5n),q5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M582.3 625.6l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zm-274.7 36L512 684.5l114.4-225.2zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm286.7 380.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 01-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 010 6.6zm-190.5-20.9L512 326.1l-96.2 97.2zM420.3 301.1l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8zm-222.4 7.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3z"}}]},name:"sketch-circle",theme:"filled"},K5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:q5n}))},Y5n=d.forwardRef(K5n),X5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M925.6 405.1l-203-253.7a6.5 6.5 0 00-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 00.2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 00.2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7l-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4L345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7l-44.1-171.5 137.2 171.5h-93.1z"}}]},name:"sketch",theme:"outlined"},Q5n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:X5n}))},Z5n=d.forwardRef(Q5n),J5n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608.2 423.3L512 326.1l-96.2 97.2zm-25.9 202.3l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-81.3 332.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 01-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 010 6.6zm-401.1 15.1L512 684.5l114.4-225.2zm-16.3-151.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3zm126.5-158.2l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8z"}}]},name:"sketch-square",theme:"filled"},eSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:J5n}))},tSn=d.forwardRef(eSn),nSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44z"}}]},name:"skin",theme:"filled"},rSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nSn}))},iSn=d.forwardRef(rSn),oSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"}}]},name:"skin",theme:"outlined"},sSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oSn}))},aSn=d.forwardRef(sSn),lSn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 318c-79.2 0-148.5-48.8-176.7-120H182v196h119v432h422V394h119V198H688.7c-28.2 71.2-97.5 120-176.7 120z",fill:n}},{tag:"path",attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z",fill:t}}]}},name:"skin",theme:"twotone"},cSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lSn}))},uSn=d.forwardRef(cSn),dSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 00-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 00335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 00112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-370 162.9c-134.2 0-194.2-66-194.2-115.4 0-25.4 18.7-43.1 44.5-43.1 57.4 0 42.6 82.5 149.7 82.5 54.9 0 85.2-29.8 85.2-60.3 0-18.3-9-38.7-45.2-47.6l-119.4-29.8c-96.1-24.1-113.6-76.1-113.6-124.9 0-101.4 95.5-139.5 185.2-139.5 82.6 0 180 45.7 180 106.5 0 26.1-22.6 41.2-48.4 41.2-49 0-40-67.8-138.7-67.8-49 0-76.1 22.2-76.1 53.9s38.7 41.8 72.3 49.5l88.4 19.6c96.8 21.6 121.3 78.1 121.3 131.3 0 82.3-63.3 143.9-191 143.9z"}}]},name:"skype",theme:"filled"},fSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dSn}))},hSn=d.forwardRef(fSn),gSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 00-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 00335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 00112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-88.1 216C766.9 823.4 729 839 688.4 839c-26.1 0-51.8-6.8-74.6-19.7l-22.5-12.7-25.5 4.5c-17.8 3.2-35.8 4.8-53.6 4.8-41.4 0-81.3-8.1-119.1-24.1-36.3-15.3-69-37.3-97.2-65.5a304.29 304.29 0 01-65.5-97.1c-16-37.7-24-77.6-24-119 0-17.4 1.6-35.2 4.6-52.8l4.4-25.1L203 410a151.02 151.02 0 01-19.1-73.4c0-40.6 15.7-78.5 44.4-107.2C257.1 200.7 295 185 335.6 185a153 153 0 0171.4 17.9l22.4 11.8 24.8-4.8c18.9-3.6 38.4-5.5 58-5.5 41.4 0 81.3 8.1 119 24 36.5 15.4 69.1 37.4 97.2 65.5 28.2 28.1 50.2 60.8 65.6 97.2 16 37.7 24 77.6 24 119 0 18.4-1.7 37-5.1 55.5l-4.7 25.5 12.6 22.6c12.6 22.5 19.2 48 19.2 73.7 0 40.7-15.7 78.5-44.4 107.2zM583.4 466.2L495 446.6c-33.6-7.7-72.3-17.8-72.3-49.5s27.1-53.9 76.1-53.9c98.7 0 89.7 67.8 138.7 67.8 25.8 0 48.4-15.2 48.4-41.2 0-60.8-97.4-106.5-180-106.5-89.7 0-185.2 38.1-185.2 139.5 0 48.8 17.4 100.8 113.6 124.9l119.4 29.8c36.1 8.9 45.2 29.2 45.2 47.6 0 30.5-30.3 60.3-85.2 60.3-107.2 0-92.3-82.5-149.7-82.5-25.8 0-44.5 17.8-44.5 43.1 0 49.4 60 115.4 194.2 115.4 127.7 0 191-61.5 191-144 0-53.1-24.5-109.6-121.3-131.2z"}}]},name:"skype",theme:"outlined"},pSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gSn}))},mSn=d.forwardRef(pSn),vSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 01-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0150.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm83.7-50.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM579.3 765c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134c-13.3 0-26.1-5.3-35.6-14.8S529 593.6 529 580.2c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z"}}]},name:"slack-circle",theme:"filled"},CSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vSn}))},ySn=d.forwardRef(CSn),bSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M409.4 128c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0054.3 22.5h76.7v-76.8c0-42.3-34.3-76.7-76.7-76.8zm0 204.8H204.7c-42.4 0-76.7 34.4-76.7 76.8s34.4 76.8 76.7 76.8h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.8-76.6-76.8zM614 486.4c42.4 0 76.8-34.4 76.7-76.8V204.8c0-42.4-34.3-76.8-76.7-76.8-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.5 34.3 76.8 76.7 76.8zm281.4-76.8c0-42.4-34.4-76.8-76.7-76.8S742 367.2 742 409.6v76.8h76.7c42.3 0 76.7-34.4 76.7-76.8zm-76.8 128H614c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0054.3 22.5h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM614 742.4h-76.7v76.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM409.4 537.6c-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8V614.4c0-20.3-8.1-39.9-22.4-54.3a76.92 76.92 0 00-54.3-22.5zM128 614.4c0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0054.3 22.5c42.4 0 76.8-34.4 76.7-76.8v-76.8h-76.7c-42.3 0-76.7 34.4-76.7 76.8z"}}]},name:"slack",theme:"outlined"},SSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bSn}))},wSn=d.forwardRef(SSn),xSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 01-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0150.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 01-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z"}}]},name:"slack-square",theme:"filled"},ESn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xSn}))},RSn=d.forwardRef(ESn),$Sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 01-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0150.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 01-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z"}}]},name:"slack-square",theme:"outlined"},OSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$Sn}))},TSn=d.forwardRef(OSn),ISn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-584-72h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm292 180h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8z"}}]},name:"sliders",theme:"filled"},MSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ISn}))},PSn=d.forwardRef(MSn),_Sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 01-3 3h-74a3 3 0 01-3-3v-74a3 3 0 013-3h74a3 3 0 013 3v74z"}}]},name:"sliders",theme:"outlined"},ASn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_Sn}))},DSn=d.forwardRef(ASn),LSn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 292h80v440h-80zm369 180h-74a3 3 0 00-3 3v74a3 3 0 003 3h74a3 3 0 003-3v-74a3 3 0 00-3-3zm215-108h80v296h-80z",fill:n}},{tag:"path",attrs:{d:"M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 01-3 3h-74a3 3 0 01-3-3v-74a3 3 0 013-3h74a3 3 0 013 3v74zM320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440z",fill:t}}]}},name:"sliders",theme:"twotone"},FSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:LSn}))},NSn=d.forwardRef(FSn),kSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h72v72h-72zm182 0h72v72h-72zm364 0h72v72h-72zm182 0h72v72h-72zm-364 0h72v72h-72z"}}]},name:"small-dash",theme:"outlined"},zSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kSn}))},BSn=d.forwardRef(zSn),HSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 018-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 018 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"smile",theme:"filled"},jSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:HSn}))},VSn=d.forwardRef(jSn),GSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},WSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:GSn}))},USn=d.forwardRef(WSn),qSn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 018-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 018 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:n}},{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4zm-24-112a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"smile",theme:"twotone"},KSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qSn}))},YSn=d.forwardRef(KSn),XSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 486H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z"}}]},name:"snippets",theme:"filled"},QSn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:XSn}))},ZSn=d.forwardRef(QSn),JSn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z"}}]},name:"snippets",theme:"outlined"},ewn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:JSn}))},twn=d.forwardRef(ewn),nwn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M450 510V336H232v552h432V550H490c-22.1 0-40-17.9-40-40z",fill:n}},{tag:"path",attrs:{d:"M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z",fill:t}}]}},name:"snippets",theme:"twotone"},rwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nwn}))},iwn=d.forwardRef(rwn),own={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},swn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:own}))},awn=d.forwardRef(swn),lwn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0012.6 0l112-141.9c4.1-5.2.4-13-6.3-13z"}}]},name:"sort-ascending",theme:"outlined"},cwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lwn}))},uwn=d.forwardRef(cwn),dwn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM310.3 167.1a8 8 0 00-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z"}}]},name:"sort-descending",theme:"outlined"},fwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dwn}))},hwn=d.forwardRef(fwn),gwn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892.1 737.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344zm174 132H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1z"}}]},name:"sound",theme:"filled"},pwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gwn}))},mwn=d.forwardRef(pwn),vwn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"},Cwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vwn}))},ywn=d.forwardRef(Cwn),bwn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M275.4 424H146v176h129.4l18 11.7L586 803V221L293.3 412.3z",fill:n}},{tag:"path",attrs:{d:"M892.1 737.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM934 476H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582z",fill:t}}]}},name:"sound",theme:"twotone"},Swn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bwn}))},wwn=d.forwardRef(Swn),xwn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M938.2 508.4L787.3 389c-3-2.4-7.3-.2-7.3 3.6V478H636V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H596c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H636V546h144v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM428 116H144c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H244v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h144v294H184V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"}}]},name:"split-cells",theme:"outlined"},Ewn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xwn}))},Rwn=d.forwardRef(Ewn),$wn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M721.42 695.17c0-12.45-5.84-22.36-17.5-29.75-75.06-44.73-161.98-67.09-260.75-67.09-51.73 0-107.53 6.61-167.42 19.84-16.33 3.5-24.5 13.6-24.5 30.33 0 7.78 2.63 14.49 7.88 20.13 5.25 5.63 12.15 8.45 20.7 8.45 1.95 0 9.14-1.55 21.59-4.66 51.33-10.5 98.58-15.75 141.75-15.75 87.89 0 165.08 20.02 231.58 60.08 7.39 4.28 13.8 6.42 19.25 6.42 7.39 0 13.8-2.63 19.25-7.88 5.44-5.25 8.17-11.96 8.17-20.12m56-125.42c0-15.56-6.8-27.42-20.42-35.58-92.17-54.84-198.72-82.25-319.67-82.25-59.5 0-118.41 8.16-176.75 24.5-18.66 5.05-28 17.5-28 37.33 0 9.72 3.4 17.99 10.21 24.8 6.8 6.8 15.07 10.2 24.8 10.2 2.72 0 9.91-1.56 21.58-4.67a558.27 558.27 0 01146.41-19.25c108.5 0 203.4 24.11 284.67 72.34 9.33 5.05 16.72 7.58 22.17 7.58 9.72 0 17.98-3.4 24.79-10.2 6.8-6.81 10.2-15.08 10.2-24.8m63-144.67c0-18.27-7.77-31.89-23.33-40.83-49-28.39-105.97-49.88-170.91-64.46-64.95-14.58-131.64-21.87-200.09-21.87-79.33 0-150.1 9.14-212.33 27.41a46.3 46.3 0 00-22.46 14.88c-6.03 7.2-9.04 16.62-9.04 28.29 0 12.06 3.99 22.17 11.96 30.33 7.97 8.17 17.98 12.25 30.04 12.25 4.28 0 12.06-1.55 23.33-4.66 51.73-14.4 111.42-21.59 179.09-21.59 61.83 0 122.01 6.61 180.54 19.84 58.53 13.22 107.82 31.7 147.87 55.41 8.17 4.67 15.95 7 23.34 7 11.27 0 21.1-3.98 29.46-11.96 8.36-7.97 12.54-17.98 12.54-30.04M960 512c0 81.28-20.03 156.24-60.08 224.88-40.06 68.63-94.4 122.98-163.04 163.04C668.24 939.97 593.27 960 512 960s-156.24-20.03-224.88-60.08c-68.63-40.06-122.98-94.4-163.04-163.04C84.03 668.24 64 593.27 64 512s20.03-156.24 60.08-224.88c40.06-68.63 94.4-122.98 163.05-163.04C355.75 84.03 430.73 64 512 64c81.28 0 156.24 20.03 224.88 60.08 68.63 40.06 122.98 94.4 163.04 163.05C939.97 355.75 960 430.73 960 512"}}]},name:"spotify",theme:"filled"},Own=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$wn}))},Twn=d.forwardRef(Own),Iwn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.52 64 64 264.52 64 512s200.52 448 448 448 448-200.52 448-448S759.48 64 512 64m0 74.66a371.86 371.86 0 01264.43 108.91A371.86 371.86 0 01885.33 512a371.86 371.86 0 01-108.9 264.43A371.86 371.86 0 01512 885.33a371.86 371.86 0 01-264.43-108.9A371.86 371.86 0 01138.67 512a371.86 371.86 0 01108.9-264.43A371.86 371.86 0 01512 138.67M452.49 316c-72.61 0-135.9 6.72-196 25.68-15.9 3.18-29.16 15.16-29.16 37.34 0 22.14 16.35 41.7 38.5 38.45 9.48 0 15.9-3.47 22.17-3.47 50.59-12.7 107.63-18.67 164.49-18.67 110.55 0 224 24.64 299.82 68.85 9.49 3.2 12.7 6.98 22.18 6.98 22.18 0 37.63-16.32 40.84-38.5 0-18.96-9.48-31.06-22.17-37.33C698.36 341.65 572.52 316 452.49 316M442 454.84c-66.34 0-113.6 9.49-161.02 22.18-15.72 6.23-24.49 16.05-24.49 34.98 0 15.76 12.54 31.51 31.51 31.51 6.42 0 9.18-.3 18.67-3.51 34.72-9.48 82.4-15.16 133.02-15.16 104.23 0 194.95 25.39 261.33 66.5 6.23 3.2 12.7 5.82 22.14 5.82 18.96 0 31.5-16.06 31.5-34.98 0-12.7-5.97-25.24-18.66-31.51-82.13-50.59-186.52-75.83-294-75.83m10.49 136.5c-53.65 0-104.53 5.97-155.16 18.66-12.69 3.21-22.17 12.24-22.17 28 0 12.7 9.93 25.68 25.68 25.68 3.21 0 12.4-3.5 18.67-3.5a581.73 581.73 0 01129.5-15.2c78.9 0 151.06 18.97 211.17 53.69 6.42 3.2 13.55 5.82 19.82 5.82 12.7 0 24.79-9.48 28-22.14 0-15.9-6.87-21.76-16.35-28-69.55-41.14-150.8-63.02-239.16-63.02"}}]},name:"spotify",theme:"outlined"},Mwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Iwn}))},Pwn=d.forwardRef(Mwn),_wn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Awn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_wn}))},Dwn=d.forwardRef(Awn),Lwn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"},Fwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Lwn}))},ZYe=d.forwardRef(Fwn),Nwn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:n}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:t}}]}},name:"star",theme:"twotone"},kwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Nwn}))},zwn=d.forwardRef(kwn),Bwn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"filled"},Hwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Bwn}))},jwn=d.forwardRef(Hwn),Vwn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"outlined"},Gwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Vwn}))},Wwn=d.forwardRef(Gwn),Uwn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 010 33.9M694 864h64a8 8 0 008-8V168a8 8 0 00-8-8h-64a8 8 0 00-8 8v688a8 8 0 008 8"}}]},name:"step-forward",theme:"filled"},qwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Uwn}))},Kwn=d.forwardRef(qwn),Ywn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 010 33.9M694 864h64a8 8 0 008-8V168a8 8 0 00-8-8h-64a8 8 0 00-8 8v688a8 8 0 008 8"}}]},name:"step-forward",theme:"outlined"},Xwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Ywn}))},Qwn=d.forwardRef(Xwn),Zwn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 747H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM165.7 621.8l39.7 39.5c3.1 3.1 8.2 3.1 11.3 0l234.7-233.9 97.6 97.3a32.11 32.11 0 0045.2 0l264.2-263.2c3.1-3.1 3.1-8.2 0-11.3l-39.7-39.6a8.03 8.03 0 00-11.3 0l-235.7 235-97.7-97.3a32.11 32.11 0 00-45.2 0L165.7 610.5a7.94 7.94 0 000 11.3z"}}]},name:"stock",theme:"outlined"},Jwn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zwn}))},e7n=d.forwardRef(Jwn),t7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm234.8 736.5L223.5 277.2c16-19.7 34-37.7 53.7-53.7l523.3 523.3c-16 19.6-34 37.7-53.7 53.7z"}}]},name:"stop",theme:"filled"},n7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:t7n}))},r7n=d.forwardRef(n7n),i7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},o7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:i7n}))},s7n=d.forwardRef(o7n),a7n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm288.5 682.8L277.7 224C258 240 240 258 224 277.7l522.8 522.8C682.8 852.7 601 884 512 884c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372c89 0 170.8-31.3 234.8-83.5L224 277.7c16-19.7 34-37.7 53.7-53.7l522.8 522.8C852.7 682.8 884 601 884 512c0-205.4-166.6-372-372-372z",fill:n}}]}},name:"stop",theme:"twotone"},l7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:a7n}))},c7n=d.forwardRef(l7n),u7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 474H569.9c-10-2-20.5-4-31.6-6-15.9-2.9-22.2-4.1-30.8-5.8-51.3-10-82.2-20-106.8-34.2-35.1-20.5-52.2-48.3-52.2-85.1 0-37 15.2-67.7 44-89 28.4-21 68.8-32.1 116.8-32.1 54.8 0 97.1 14.4 125.8 42.8 14.6 14.4 25.3 32.1 31.8 52.6 1.3 4.1 2.8 10 4.3 17.8.9 4.8 5.2 8.2 9.9 8.2h72.8c5.6 0 10.1-4.6 10.1-10.1v-1c-.7-6.8-1.3-12.1-2-16-7.3-43.5-28-81.7-59.7-110.3-44.4-40.5-109.7-61.8-188.7-61.8-72.3 0-137.4 18.1-183.3 50.9-25.6 18.4-45.4 41.2-58.6 67.7-13.5 27.1-20.3 58.4-20.3 92.9 0 29.5 5.7 54.5 17.3 76.5 8.3 15.7 19.6 29.5 34.1 42H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h433.2c2.1.4 3.9.8 5.9 1.2 30.9 6.2 49.5 10.4 66.6 15.2 23 6.5 40.6 13.3 55.2 21.5 35.8 20.2 53.3 49.2 53.3 89 0 35.3-15.5 66.8-43.6 88.8-30.5 23.9-75.6 36.4-130.5 36.4-43.7 0-80.7-8.5-110.2-25-29.1-16.3-49.1-39.8-59.7-69.5-.8-2.2-1.7-5.2-2.7-9-1.2-4.4-5.3-7.5-9.7-7.5h-79.7c-5.6 0-10.1 4.6-10.1 10.1v1c.2 2.3.4 4.2.6 5.7 6.5 48.8 30.3 88.8 70.7 118.8 47.1 34.8 113.4 53.2 191.8 53.2 84.2 0 154.8-19.8 204.2-57.3 25-18.9 44.2-42.2 57.1-69 13-27.1 19.7-57.9 19.7-91.5 0-31.8-5.8-58.4-17.8-81.4-5.8-11.2-13.1-21.5-21.8-30.8H952c4.4 0 8-3.6 8-8v-60a8 8 0 00-8-7.9z"}}]},name:"strikethrough",theme:"outlined"},d7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:u7n}))},f7n=d.forwardRef(d7n),h7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M688 240c-138 0-252 102.8-269.6 236H249a95.92 95.92 0 00-89-60c-53 0-96 43-96 96s43 96 96 96c40.3 0 74.8-24.8 89-60h169.3C436 681.2 550 784 688 784c150.2 0 272-121.8 272-272S838.2 240 688 240zm128 298c0 4.4-3.6 8-8 8h-86v86c0 4.4-3.6 8-8 8h-52c-4.4 0-8-3.6-8-8v-86h-86c-4.4 0-8-3.6-8-8v-52c0-4.4 3.6-8 8-8h86v-86c0-4.4 3.6-8 8-8h52c4.4 0 8 3.6 8 8v86h86c4.4 0 8 3.6 8 8v52z"}}]},name:"subnode",theme:"outlined"},g7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:h7n}))},p7n=d.forwardRef(g7n),m7n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"filled"},v7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:m7n}))},C7n=d.forwardRef(v7n),y7n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},b7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:y7n}))},S7n=d.forwardRef(b7n),w7n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 572H266.8l144.3-183c4.1-5.2.4-13-6.3-13H340c-9.8 0-19.1 4.5-25.1 12.2l-164 208c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap-left",theme:"outlined"},x7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:w7n}))},E7n=d.forwardRef(x7n),R7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zM596 606c0 4.4-3.6 8-8 8H308c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h280c4.4 0 8 3.6 8 8v48zm284-494H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z"}}]},name:"switcher",theme:"filled"},$7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:R7n}))},O7n=d.forwardRef($7n),T7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528zm168-728H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM300 550h296v64H300z"}}]},name:"switcher",theme:"outlined"},I7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:T7n}))},M7n=d.forwardRef(I7n),P7n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M184 840h528V312H184v528zm116-290h296v64H300v-64z",fill:n}},{tag:"path",attrs:{d:"M880 112H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z",fill:t}},{tag:"path",attrs:{d:"M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528z",fill:t}},{tag:"path",attrs:{d:"M300 550h296v64H300z",fill:t}}]}},name:"switcher",theme:"twotone"},_7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:P7n}))},A7n=d.forwardRef(_7n),D7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},L7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:D7n}))},JYe=d.forwardRef(L7n),F7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},N7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:F7n}))},k7n=d.forwardRef(N7n),z7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z"}}]},name:"tablet",theme:"filled"},B7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:z7n}))},H7n=d.forwardRef(B7n),j7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"tablet",theme:"outlined"},V7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:j7n}))},G7n=d.forwardRef(V7n),W7n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752z",fill:t}},{tag:"path",attrs:{d:"M232 888h560V136H232v752zm280-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z",fill:n}},{tag:"path",attrs:{d:"M472 784a40 40 0 1080 0 40 40 0 10-80 0z",fill:t}}]}},name:"tablet",theme:"twotone"},U7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:W7n}))},q7n=d.forwardRef(U7n),K7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 000 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM699 387c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"}}]},name:"tag",theme:"filled"},Y7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:K7n}))},X7n=d.forwardRef(Y7n),Q7n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 000 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"}}]},name:"tag",theme:"outlined"},Z7n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Q7n}))},J7n=d.forwardRef(Z7n),exn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M589 164.6L189.3 564.3l270.4 270.4L859.4 435 836 188l-247-23.4zM680 432c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88z",fill:n}},{tag:"path",attrs:{d:"M680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z",fill:t}},{tag:"path",attrs:{d:"M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 000 14.1l363.8 363.8a9.9 9.9 0 007.1 2.9c2.7 0 5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7z",fill:t}}]}},name:"tag",theme:"twotone"},txn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:exn}))},nxn=d.forwardRef(txn),rxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm122.7-533.4c18.7-18.7 49.1-18.7 67.9 0 18.7 18.7 18.7 49.1 0 67.9-18.7 18.7-49.1 18.7-67.9 0-18.7-18.7-18.7-49.1 0-67.9zm283.8 282.9l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"filled"},ixn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:rxn}))},oxn=d.forwardRef(ixn),sxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"outlined"},axn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:sxn}))},eXe=d.forwardRef(axn),lxn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M477.5 694l311.9-311.8-19-224.6-224.6-19-311.9 311.9L477.5 694zm116-415.5a47.81 47.81 0 0133.9-33.9c16.6-4.4 34.2.3 46.4 12.4a47.93 47.93 0 0112.4 46.4 47.81 47.81 0 01-33.9 33.9c-16.6 4.4-34.2-.3-46.4-12.4a48.3 48.3 0 01-12.4-46.4z",fill:n}},{tag:"path",attrs:{d:"M476.6 792.6c-1.7-.2-3.4-1-4.7-2.3L137.7 456.1a8.03 8.03 0 010-11.3L515.9 66.6c1.2-1.3 2.9-2.1 4.7-2.3h-.4c-2.3-.2-4.7.6-6.3 2.3L135.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c1.8 1.9 4.3 2.6 6.7 2.3z",fill:n}},{tag:"path",attrs:{d:"M889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3zM652.3 337.3a47.81 47.81 0 0033.9-33.9c4.4-16.6-.3-34.2-12.4-46.4a47.93 47.93 0 00-46.4-12.4 47.81 47.81 0 00-33.9 33.9c-4.4 16.6.3 34.2 12.4 46.4a48.3 48.3 0 0046.4 12.4z",fill:t}},{tag:"path",attrs:{d:"M137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c1.3 1.3 2.9 2.1 4.7 2.3 2.4.3 4.8-.5 6.6-2.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3h-1.6c-1.8.2-3.4 1-4.7 2.3L137.7 444.8zm408.1-306.2l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9z",fill:t}}]}},name:"tags",theme:"twotone"},cxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lxn}))},uxn=d.forwardRef(cxn),dxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 110-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z"}}]},name:"taobao-circle",theme:"filled"},fxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dxn}))},hxn=d.forwardRef(fxn),gxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 110-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z"}}]},name:"taobao-circle",theme:"outlined"},pxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gxn}))},mxn=d.forwardRef(pxn),vxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168.5 273.7a68.7 68.7 0 10137.4 0 68.7 68.7 0 10-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z"}}]},name:"taobao",theme:"outlined"},Cxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vxn}))},yxn=d.forwardRef(Cxn),bxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 110-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z"}}]},name:"taobao-square",theme:"filled"},Sxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bxn}))},wxn=d.forwardRef(Sxn),xxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"},Exn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xxn}))},qV=d.forwardRef(Exn),Rxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7z"}}]},name:"thunderbolt",theme:"filled"},$xn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Rxn}))},Oxn=d.forwardRef($xn),Txn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"},Ixn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Txn}))},Mxn=d.forwardRef(Ixn),Pxn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M695.4 164.1H470.8L281.2 491.5h157.4l-60.3 241 319.8-305.1h-211z",fill:n}},{tag:"path",attrs:{d:"M848.1 359.3H627.8L825.9 109c4.1-5.3.4-13-6.3-13H436.1c-2.8 0-5.5 1.5-6.9 4L170.1 547.5c-3.1 5.3.7 12 6.9 12h174.4L262 917.1c-1.9 7.8 7.5 13.3 13.3 7.7L853.6 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.3 732.5l60.3-241H281.2l189.6-327.4h224.6L487.1 427.4h211L378.3 732.5z",fill:t}}]}},name:"thunderbolt",theme:"twotone"},_xn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Pxn}))},Axn=d.forwardRef(_xn),Dxn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 224.96C912 162.57 861.42 112 799.04 112H224.96C162.57 112 112 162.57 112 224.96v574.08C112 861.43 162.58 912 224.96 912h574.08C861.42 912 912 861.43 912 799.04zM774.76 460.92c-51.62.57-99.71-15.03-141.94-43.93v202.87a192.3 192.3 0 01-149 187.85c-119.06 27.17-219.86-58.95-232.57-161.83-13.3-102.89 52.32-193.06 152.89-213.29 19.65-4.04 49.2-4.04 64.46-.57v108.66c-4.7-1.15-9.09-2.31-13.71-2.89-39.3-6.94-77.37 12.72-92.98 48.55-15.6 35.84-5.16 77.45 26.63 101.73 26.59 20.8 56.09 23.7 86.14 9.82 30.06-13.29 46.21-37.56 49.68-70.5.58-4.63.54-9.84.54-15.04V222.21c0-10.99.09-10.5 11.07-10.5h86.12c6.36 0 8.67.9 9.25 8.43 4.62 67.04 55.53 124.14 120.84 132.81 6.94 1.16 14.37 1.62 22.58 2.2z"}}]},name:"tik-tok",theme:"filled"},Lxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Dxn}))},Fxn=d.forwardRef(Lxn),Nxn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M530.01 112.67c43.67-.67 87-.34 130.33-.67 2.67 51 21 103 58.33 139 37.33 37 90 54 141.33 59.66V445c-48-1.67-96.33-11.67-140-32.34-19-8.66-36.66-19.66-54-31-.33 97.33.34 194.67-.66 291.67-2.67 46.66-18 93-45 131.33-43.66 64-119.32 105.66-196.99 107-47.66 2.66-95.33-10.34-136-34.34C220.04 837.66 172.7 765 165.7 687c-.67-16.66-1-33.33-.34-49.66 6-63.34 37.33-124 86-165.34 55.33-48 132.66-71 204.99-57.33.67 49.34-1.33 98.67-1.33 148-33-10.67-71.67-7.67-100.67 12.33-21 13.67-37 34.67-45.33 58.34-7 17-5 35.66-4.66 53.66 8 54.67 60.66 100.67 116.66 95.67 37.33-.34 73-22 92.33-53.67 6.33-11 13.33-22.33 13.66-35.33 3.34-59.67 2-119 2.34-178.66.33-134.34-.34-268.33.66-402.33"}}]},name:"tik-tok",theme:"outlined"},kxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Nxn}))},zxn=d.forwardRef(kxn),Bxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885 780H165c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM400 325.7h73.9V664c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V325.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 171a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13z"}}]},name:"to-top",theme:"outlined"},Hxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Bxn}))},jxn=d.forwardRef(Hxn),Vxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},Gxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Vxn}))},Wxn=d.forwardRef(Gxn),Uxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},qxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Uxn}))},Kxn=d.forwardRef(qxn),Yxn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M706.8 488.7a32.05 32.05 0 01-45.3 0L537 364.2a32.05 32.05 0 010-45.3l132.9-132.8a184.2 184.2 0 00-144 53.5c-58.1 58.1-69.3 145.3-33.6 214.6L439.5 507c-.1 0-.1-.1-.1-.1L209.3 737l79.2 79.2 274-274.1.1.1 8.8-8.8c69.3 35.7 156.5 24.5 214.6-33.6 39.2-39.1 57.3-92.1 53.6-143.9L706.8 488.7z",fill:n}},{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z",fill:t}}]}},name:"tool",theme:"twotone"},Xxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Yxn}))},Qxn=d.forwardRef(Xxn),Zxn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm164.7 660.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H378c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7zM523.9 357h-83.4v148H522c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z"}}]},name:"trademark-circle",theme:"filled"},Jxn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Zxn}))},e9n=d.forwardRef(Jxn),t9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm87.5-334.7c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.5-131.1-144.2-131.1H378c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.5c4.4 0 8-3.6 8-8V561.2h88.7l74.6 159.2c1.3 2.8 4.1 4.6 7.2 4.6h62a7.9 7.9 0 007.1-11.5l-80.6-164.2zM522 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.5 0 46.9-29.8 72.5-82.8 72.5z"}}]},name:"trademark-circle",theme:"outlined"},n9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:t9n}))},r9n=d.forwardRef(n9n),i9n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm170.7 584.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H384c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7z",fill:n}},{tag:"path",attrs:{d:"M529.9 357h-83.4v148H528c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z",fill:n}},{tag:"path",attrs:{d:"M605.4 549.3c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.4-131.1-144.2-131.1H384c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.7c4.4 0 8-3.6 8-8V561.2h88.7L610 720.4c1.3 2.8 4.1 4.6 7.2 4.6h62c1.2 0 2.4-.3 3.5-.8 3.9-2 5.6-6.8 3.5-10.7l-80.8-164.2zM528 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.6 0 46.8-29.8 72.4-82.8 72.4z",fill:t}}]}},name:"trademark-circle",theme:"twotone"},o9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:i9n}))},s9n=d.forwardRef(o9n),a9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm87.5-334.7c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.5-131.1-144.2-131.1H378c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.5c4.4 0 8-3.6 8-8V561.2h88.7l74.6 159.2c1.3 2.8 4.1 4.6 7.2 4.6h62a7.9 7.9 0 007.1-11.5l-80.6-164.2zM522 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.5 0 46.9-29.8 72.5-82.8 72.5z"}}]},name:"trademark",theme:"outlined"},l9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:a9n}))},c9n=d.forwardRef(l9n),u9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M668.6 320c0-4.4-3.6-8-8-8h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 00-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.5-1.1.9-2.4.9-3.7zM157.9 504.2a352.7 352.7 0 01103.5-242.4c32.5-32.5 70.3-58.1 112.4-75.9 43.6-18.4 89.9-27.8 137.6-27.8 47.8 0 94.1 9.3 137.6 27.8 42.1 17.8 79.9 43.4 112.4 75.9 10 10 19.3 20.5 27.9 31.4l-50 39.1a8 8 0 003 14.1l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3l-47.8 37.4C770.7 146.3 648.6 82 511.5 82 277 82 86.3 270.1 82 503.8a8 8 0 008 8.2h60c4.3 0 7.8-3.5 7.9-7.8zM934 512h-60c-4.3 0-7.9 3.5-8 7.8a352.7 352.7 0 01-103.5 242.4 352.57 352.57 0 01-112.4 75.9c-43.6 18.4-89.9 27.8-137.6 27.8s-94.1-9.3-137.6-27.8a352.57 352.57 0 01-112.4-75.9c-10-10-19.3-20.5-27.9-31.4l49.9-39.1a8 8 0 00-3-14.1l-156.8-38.3c-5-1.2-9.9 2.6-9.9 7.7l-.8 161.7c0 6.7 7.7 10.5 12.9 6.3l47.8-37.4C253.3 877.7 375.4 942 512.5 942 747 942 937.7 753.9 942 520.2a8 8 0 00-8-8.2z"}}]},name:"transaction",theme:"outlined"},d9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:u9n}))},f9n=d.forwardRef(d9n),h9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M140 188h584v164h76V144c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h544v-76H140V188z"}},{tag:"path",attrs:{d:"M414.3 256h-60.6c-3.4 0-6.4 2.2-7.6 5.4L219 629.4c-.3.8-.4 1.7-.4 2.6 0 4.4 3.6 8 8 8h55.1c3.4 0 6.4-2.2 7.6-5.4L322 540h196.2L422 261.4a8.42 8.42 0 00-7.7-5.4zm12.4 228h-85.5L384 360.2 426.7 484zM936 528H800v-93c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v93H592c-13.3 0-24 10.7-24 24v176c0 13.3 10.7 24 24 24h136v152c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V752h136c13.3 0 24-10.7 24-24V552c0-13.3-10.7-24-24-24zM728 680h-88v-80h88v80zm160 0h-88v-80h88v80z"}}]},name:"translation",theme:"outlined"},g9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:h9n}))},p9n=d.forwardRef(g9n),m9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 00-44 44v148c0 81.7 60 149.6 138.2 162C265.6 630.2 359 721.8 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.8 758.4 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 00-44-44zM248 439.6c-37.1-11.9-64-46.7-64-87.6V232h64v207.6zM840 352c0 41-26.9 75.8-64 87.6V232h64v120z"}}]},name:"trophy",theme:"filled"},v9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:m9n}))},C9n=d.forwardRef(v9n),y9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 00-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 00-44-44zM184 352V232h64v207.6a91.99 91.99 0 01-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z"}}]},name:"trophy",theme:"outlined"},b9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:y9n}))},S9n=d.forwardRef(b9n),w9n={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M320 480c0 49.1 19.1 95.3 53.9 130.1 34.7 34.8 81 53.9 130.1 53.9h16c49.1 0 95.3-19.1 130.1-53.9 34.8-34.7 53.9-81 53.9-130.1V184H320v296zM184 352c0 41 26.9 75.8 64 87.6-37.1-11.9-64-46.7-64-87.6zm364 382.5C665 721.8 758.4 630.2 773.8 514 758.3 630.2 665 721.7 548 734.5zM250.2 514C265.6 630.2 359 721.8 476 734.5 359 721.7 265.7 630.2 250.2 514z",fill:n}},{tag:"path",attrs:{d:"M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 00-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 00-44-44zM248 439.6a91.99 91.99 0 01-64-87.6V232h64v207.6zM704 480c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z",fill:t}}]}},name:"trophy",theme:"twotone"},x9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:w9n}))},E9n=d.forwardRef(x9n),R9n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640m93.63-192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448H332a12 12 0 00-12 12v40a12 12 0 0012 12h168a12 12 0 0012-12v-40a12 12 0 00-12-12M308 320H204a12 12 0 00-12 12v40a12 12 0 0012 12h104a12 12 0 0012-12v-40a12 12 0 00-12-12"}}]},name:"truck",theme:"filled"},$9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:R9n}))},O9n=d.forwardRef($9n),T9n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z"}}]},name:"truck",theme:"outlined"},I9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:T9n}))},M9n=d.forwardRef(I9n),P9n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"filter",attrs:{filterUnits:"objectBoundingBox",height:"102.3%",id:"a",width:"102.3%",x:"-1.2%",y:"-1.2%"},children:[{tag:"feOffset",attrs:{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}},{tag:"feGaussianBlur",attrs:{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"2"}},{tag:"feColorMatrix",attrs:{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"}},{tag:"feMerge",attrs:{},children:[{tag:"feMergeNode",attrs:{in:"shadowMatrixOuter1"}},{tag:"feMergeNode",attrs:{in:"SourceGraphic"}}]}]}]},{tag:"g",attrs:{filter:"url(#a)",transform:"translate(9 9)"},children:[{tag:"path",attrs:{d:"M185.14 112L128 254.86V797.7h171.43V912H413.7L528 797.71h142.86l200-200V112zm314.29 428.57H413.7V310.21h85.72zm200 0H613.7V310.21h85.72z"}}]}]},name:"twitch",theme:"filled"},_9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:P9n}))},A9n=d.forwardRef(_9n),D9n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M166.13 112L114 251.17v556.46h191.2V912h104.4l104.23-104.4h156.5L879 599V112zm69.54 69.5H809.5v382.63L687.77 685.87H496.5L392.27 790.1V685.87h-156.6zM427 529.4h69.5V320.73H427zm191.17 0h69.53V320.73h-69.53z"}}]},name:"twitch",theme:"outlined"},L9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:D9n}))},F9n=d.forwardRef(L9n),N9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm215.3 337.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 01-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 01-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 00229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z"}}]},name:"twitter-circle",theme:"filled"},k9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:N9n}))},z9n=d.forwardRef(k9n),B9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0075-94 336.64 336.64 0 01-108.2 41.2A170.1 170.1 0 00672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 00-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 01-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 01-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z"}}]},name:"twitter",theme:"outlined"},H9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:B9n}))},j9n=d.forwardRef(H9n),V9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM727.3 401.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 01-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 01-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 00229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z"}}]},name:"twitter-square",theme:"filled"},G9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:V9n}))},W9n=d.forwardRef(G9n),U9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824 804H200c-4.4 0-8 3.4-8 7.6v60.8c0 4.2 3.6 7.6 8 7.6h624c4.4 0 8-3.4 8-7.6v-60.8c0-4.2-3.6-7.6-8-7.6zm-312-76c69.4 0 134.6-27.1 183.8-76.2C745 602.7 772 537.4 772 468V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 97-79 176-176 176s-176-79-176-176V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 69.4 27.1 134.6 76.2 183.8C377.3 701 442.6 728 512 728z"}}]},name:"underline",theme:"outlined"},q9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:U9n}))},K9n=d.forwardRef(q9n),Y9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},X9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Y9n}))},Q9n=d.forwardRef(X9n),Z9n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M736 550H288c-8.8 0-16 7.2-16 16v176c0 8.8 7.2 16 16 16h448c8.8 0 16-7.2 16-16V566c0-8.8-7.2-16-16-16zm-56 136H344v-64h336v64zm208 130c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm0 96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zM736 266H288c-8.8 0-16 7.2-16 16v176c0 8.8 7.2 16 16 16h448c8.8 0 16-7.2 16-16V282c0-8.8-7.2-16-16-16zm-56 136H344v-64h336v64zm208-194c39.8 0 72-32.2 72-72s-32.2-72-72-72-72 32.2-72 72 32.2 72 72 72zm0-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zM136 64c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm0 96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0 656c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm0 96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24z"}}]},name:"ungroup",theme:"outlined"},J9n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:Z9n}))},eEn=d.forwardRef(J9n),tEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1156 0z"}}]},name:"unlock",theme:"filled"},nEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:tEn}))},rEn=d.forwardRef(nEn),iEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"},oEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:iEn}))},sEn=d.forwardRef(oEn),aEn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M232 840h560V536H232v304zm280-226a48.01 48.01 0 0128 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0128-87z",fill:n}},{tag:"path",attrs:{d:"M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304z",fill:t}}]}},name:"unlock",theme:"twotone"},lEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:aEn}))},cEn=d.forwardRef(lEn),uEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"},dEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:uEn}))},fEn=d.forwardRef(dEn),hEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm178 555h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z"}}]},name:"up-circle",theme:"filled"},gEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:hEn}))},pEn=d.forwardRef(gEn),mEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.5 360.3a7.95 7.95 0 00-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"up-circle",theme:"outlined"},vEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:mEn}))},CEn=d.forwardRef(vEn),yEn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm178 479h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z",fill:n}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M518.4 360.3a7.95 7.95 0 00-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7h46.9c10.3 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246z",fill:t}}]}},name:"up-circle",theme:"twotone"},bEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:yEn}))},SEn=d.forwardRef(bEn),wEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM690 624h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z"}}]},name:"up-square",theme:"filled"},xEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:wEn}))},EEn=d.forwardRef(xEn),REn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M334 624h46.9c10.2 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246a7.95 7.95 0 00-12.9 0l-178 246A7.96 7.96 0 00334 624z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"up-square",theme:"outlined"},$En=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:REn}))},OEn=d.forwardRef($En),TEn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V184H184v656zm143.5-228.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7z",fill:n}},{tag:"path",attrs:{d:"M334 624h46.9c10.3 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246a7.95 7.95 0 00-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7z",fill:t}}]}},name:"up-square",theme:"twotone"},IEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:TEn}))},MEn=d.forwardRef(IEn),PEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},_En=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:PEn}))},tXe=d.forwardRef(_En),AEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm352 120V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-72 0H336V184h352v248zM568 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"usb",theme:"filled"},DEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:AEn}))},LEn=d.forwardRef(DEn),FEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-424 0V184h352v248H336zm120-184h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"usb",theme:"outlined"},NEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:FEn}))},kEn=d.forwardRef(NEn),zEn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M759.9 504H264.1c-26.5 0-48.1 19.7-48.1 44v292h592V548c0-24.3-21.6-44-48.1-44z",fill:n}},{tag:"path",attrs:{d:"M456 248h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:t}},{tag:"path",attrs:{d:"M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zM336 184h352v248H336V184zm472 656H216V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v292z",fill:t}}]}},name:"usb",theme:"twotone"},BEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:zEn}))},HEn=d.forwardRef(BEn),jEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},VEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jEn}))},GEn=d.forwardRef(VEn),WEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 655.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 518 759.6 444.7 759.6 362c0-137-110.8-248-247.5-248S264.7 225 264.7 362c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 901.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 641.2 432.2 610 512.2 610c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 534c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 362c0-45.9 17.9-89.1 50.3-121.6S466.3 190 512.2 190s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 362c0 45.9-17.9 89.1-50.3 121.6C601.1 516.1 558 534 512.2 534zM880 772H640c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-delete",theme:"outlined"},UEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:WEn}))},qEn=d.forwardRef(UEn),KEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},YEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:KEn}))},fM=d.forwardRef(YEn),XEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M759 335c0-137-111-248-248-248S263 198 263 335c0 82.8 40.6 156.2 103 201.2-.4.2-.7.3-.9.4-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00136 874.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C356 614.2 431 583 511 583c137 0 248-111 248-248zM511 507c-95 0-172-77-172-172s77-172 172-172 172 77 172 172-77 172-172 172zm105 221h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H703.5l47.2-60.1a8.1 8.1 0 001.7-4.9c0-4.4-3.6-8-8-8h-72.6c-4.9 0-9.5 2.3-12.6 6.1l-68.5 87.1c-4.4 5.6-6.8 12.6-6.8 19.8.1 17.7 14.4 32 32.1 32zm240 64H592c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h176.5l-47.2 60.1a8.1 8.1 0 00-1.7 4.9c0 4.4 3.6 8 8 8h72.6c4.9 0 9.5-2.3 12.6-6.1l68.5-87.1c4.4-5.6 6.8-12.6 6.8-19.8-.1-17.7-14.4-32-32.1-32z"}}]},name:"user-switch",theme:"outlined"},QEn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:XEn}))},ZEn=d.forwardRef(QEn),JEn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-add",theme:"outlined"},eRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:JEn}))},tRn=d.forwardRef(eRn),nRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 784H664c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7zM824 484c0-109.4-87.9-198.3-196.9-200C516.3 282.3 424 373.2 424 484c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 754.6 326 826.8 324 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 707.7 563 684 624 684c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 598.7 658.2 612 624 612s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-delete",theme:"outlined"},rRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nRn}))},iRn=d.forwardRef(rRn),oRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M447.8 588.8l-7.3-32.5c-.2-1-.6-1.9-1.1-2.7a7.94 7.94 0 00-11.1-2.2L405 567V411c0-4.4-3.6-8-8-8h-81c-4.4 0-8 3.6-8 8v36c0 4.4 3.6 8 8 8h37v192.4a8 8 0 0012.7 6.5l79-56.8c2.6-1.9 3.8-5.1 3.1-8.3zm-56.7-216.6l.2.2c3.2 3 8.3 2.8 11.3-.5l24.1-26.2a8.1 8.1 0 00-.3-11.2l-53.7-52.1a8 8 0 00-11.2.1l-24.7 24.7c-3.1 3.1-3.1 8.2.1 11.3l54.2 53.7z"}},{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z"}},{tag:"path",attrs:{d:"M452 297v36c0 4.4 3.6 8 8 8h108v274h-38V405c0-4.4-3.6-8-8-8h-35c-4.4 0-8 3.6-8 8v210h-31c-4.4 0-8 3.6-8 8v37c0 4.4 3.6 8 8 8h244c4.4 0 8-3.6 8-8v-37c0-4.4-3.6-8-8-8h-72V493h58c4.4 0 8-3.6 8-8v-35c0-4.4-3.6-8-8-8h-58V341h63c4.4 0 8-3.6 8-8v-36c0-4.4-3.6-8-8-8H460c-4.4 0-8 3.6-8 8z"}}]},name:"verified",theme:"outlined"},sRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oRn}))},aRn=d.forwardRef(sRn),lRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},cRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lRn}))},uRn=d.forwardRef(cRn),dRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"},fRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dRn}))},hRn=d.forwardRef(fRn),gRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M762 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm-508 0v72.4c0 9.5 4.2 18.4 11.4 24.5L564.6 512 265.4 763.1c-7.2 6.1-11.4 15-11.4 24.5V860c0 6.8 7.9 10.5 13.1 6.1L689 512 267.1 157.9A7.95 7.95 0 00254 164z"}}]},name:"vertical-left",theme:"outlined"},pRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gRn}))},mRn=d.forwardRef(pRn),vRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm444 72.4V164c0-6.8-7.9-10.5-13.1-6.1L335 512l421.9 354.1c5.2 4.4 13.1.7 13.1-6.1v-72.4c0-9.4-4.2-18.4-11.4-24.5L459.4 512l299.2-251.1c7.2-6.1 11.4-15.1 11.4-24.5z"}}]},name:"vertical-right",theme:"outlined"},CRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:vRn}))},yRn=d.forwardRef(CRn),bRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M368 724H252V608c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v116H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h116v116c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V788h116c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v352h72V232h576v560H448v72h272c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM888 625l-104-59.8V458.9L888 399v226z"}},{tag:"path",attrs:{d:"M320 360c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112z"}}]},name:"video-camera-add",theme:"outlined"},SRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bRn}))},wRn=d.forwardRef(SRn),xRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z"}}]},name:"video-camera",theme:"filled"},ERn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:xRn}))},RRn=d.forwardRef(ERn),$Rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"video-camera",theme:"outlined"},ORn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$Rn}))},TRn=d.forwardRef(ORn),IRn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 792h576V232H136v560zm64-488c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48z",fill:n}},{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226z",fill:t}},{tag:"path",attrs:{d:"M208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z",fill:t}}]}},name:"video-camera",theme:"twotone"},MRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:IRn}))},PRn=d.forwardRef(MRn),_Rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 464H528V448h320v128zm-268-64a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"wallet",theme:"filled"},ARn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_Rn}))},DRn=d.forwardRef(ARn),LRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"wallet",theme:"outlined"},FRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:LRn}))},NRn=d.forwardRef(FRn),kRn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0-192H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200H184V184h656v200z",fill:t}},{tag:"path",attrs:{d:"M528 576h312V448H528v128zm92-104c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z",fill:n}},{tag:"path",attrs:{d:"M580 512a40 40 0 1080 0 40 40 0 10-80 0z",fill:t}},{tag:"path",attrs:{d:"M184 840h656V640H496c-17.7 0-32-14.3-32-32V416c0-17.7 14.3-32 32-32h344V184H184v656z",fill:n}}]}},name:"wallet",theme:"twotone"},zRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:kRn}))},BRn=d.forwardRef(zRn),HRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},jRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:HRn}))},VRn=d.forwardRef(jRn),GRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},WRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:GRn}))},URn=d.forwardRef(WRn),qRn={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z",fill:t}},{tag:"path",attrs:{d:"M172.2 828.1h679.6L512 239.9 172.2 828.1zM560 720a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm-16-304v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z",fill:n}},{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z",fill:t}}]}},name:"warning",theme:"twotone"},KRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:qRn}))},YRn=d.forwardRef(KRn),XRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 019.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 006.4-2.6 9 9 0 002.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 01-36 35.9z"}}]},name:"wechat",theme:"filled"},QRn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:XRn}))},ZRn=d.forwardRef(QRn),JRn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 019.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 006.4-2.6 9 9 0 002.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 01-36 35.9z"}}]},name:"wechat",theme:"outlined"},e$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:JRn}))},t$n=d.forwardRef(e$n),n$n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M805.33 112H218.67C159.76 112 112 159.76 112 218.67v586.66C112 864.24 159.76 912 218.67 912h586.66C864.24 912 912 864.24 912 805.33V218.67C912 159.76 864.24 112 805.33 112m-98.17 417.86a102.13 102.13 0 0028.1 52.46l2.13 2.06c.41.27.8.57 1.16.9l.55.64.2.02a7.96 7.96 0 01-.98 10.82 7.96 7.96 0 01-10.85-.18c-1.1-1.05-2.14-2.14-3.24-3.24a102.49 102.49 0 00-53.82-28.36l-2-.27c-.66-.12-1.34-.39-1.98-.39a33.27 33.27 0 1140.37-37.66c.17 1.09.36 2.16.36 3.2m-213.1 153.82a276.78 276.78 0 01-61.7.17 267.3 267.3 0 01-44.67-8.6l-68.44 34.4c-.33.24-.77.43-1.15.71h-.27a18.29 18.29 0 01-27.52-15.9c.03-.59.1-1.17.2-1.74.13-1.97.6-3.9 1.37-5.72l2.75-11.15 9.56-39.56a277.57 277.57 0 01-49.25-54.67A185.99 185.99 0 01223.1 478.1a182.42 182.42 0 0119.08-81.04 203.98 203.98 0 0137.19-52.32c38.91-39.94 93.26-65.52 153.1-72.03a278.25 278.25 0 0130.17-1.64c10.5.03 20.99.65 31.42 1.86 59.58 6.79 113.65 32.48 152.26 72.36a202.96 202.96 0 0137 52.48 182.3 182.3 0 0118.17 94.67c-.52-.57-1.02-1.2-1.57-1.76a33.26 33.26 0 00-40.84-4.8c.22-2.26.22-4.54.22-6.79a143.64 143.64 0 00-14.76-63.38 164.07 164.07 0 00-29.68-42.15c-31.78-32.76-76.47-53.95-125.89-59.55a234.37 234.37 0 00-51.67-.14c-49.61 5.41-94.6 26.45-126.57 59.26a163.63 163.63 0 00-29.82 41.95 143.44 143.44 0 00-15.12 63.93 147.16 147.16 0 0025.29 81.51 170.5 170.5 0 0024.93 29.4 172.31 172.31 0 0017.56 14.75 17.6 17.6 0 016.35 19.62l-6.49 24.67-1.86 7.14-1.62 6.45a2.85 2.85 0 002.77 2.88 3.99 3.99 0 001.93-.68l43.86-25.93 1.44-.78a23.2 23.2 0 0118.24-1.84 227.38 227.38 0 0033.87 7.12l5.22.69a227.26 227.26 0 0051.67-.14 226.58 226.58 0 0042.75-9.07 33.2 33.2 0 0022.72 34.76 269.27 269.27 0 01-60.37 14.12m89.07-24.87a33.33 33.33 0 01-33.76-18.75 33.32 33.32 0 016.64-38.03 33.16 33.16 0 0118.26-9.31c1.07-.14 2.19-.36 3.24-.36a102.37 102.37 0 0052.47-28.05l2.2-2.33a10.21 10.21 0 011.57-1.68v-.03a7.97 7.97 0 1110.64 11.81l-3.24 3.24a102.44 102.44 0 00-28.56 53.74c-.09.63-.28 1.35-.28 2l-.39 2.01a33.3 33.3 0 01-28.79 25.74m94.44 93.87a33.3 33.3 0 01-36.18-24.25 28 28 0 01-1.1-6.73 102.4 102.4 0 00-28.15-52.39l-2.3-2.25a7.2 7.2 0 01-1.11-.9l-.54-.6h-.03v.05a7.96 7.96 0 01.96-10.82 7.96 7.96 0 0110.85.18l3.22 3.24a102.29 102.29 0 0053.8 28.35l2 .28a33.27 33.27 0 11-1.42 65.84m113.67-103.34a32.84 32.84 0 01-18.28 9.31 26.36 26.36 0 01-3.24.36 102.32 102.32 0 00-52.44 28.1 49.57 49.57 0 00-3.14 3.41l-.68.56h.02l.09.05a7.94 7.94 0 11-10.6-11.81l3.23-3.24a102.05 102.05 0 0028.37-53.7 33.26 33.26 0 1162.4-12.1 33.21 33.21 0 01-5.73 39.06"}}]},name:"wechat-work",theme:"filled"},r$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:n$n}))},i$n=d.forwardRef(r$n),o$n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.78 729.59a135.87 135.87 0 00-47.04 19.04 114.24 114.24 0 01-51.4 31.08 76.29 76.29 0 0124.45-45.42 169.3 169.3 0 0023.4-55.02 50.41 50.41 0 1150.6 50.32zm-92.21-120.76a168.83 168.83 0 00-54.81-23.68 50.41 50.41 0 01-50.4-50.42 50.41 50.41 0 11100.8 0 137.5 137.5 0 0018.82 47.2 114.8 114.8 0 0130.76 51.66 76.08 76.08 0 01-45.02-24.76h-.19zm-83.04-177.71c-15.19-127.33-146.98-227.1-306.44-227.1-169.87 0-308.09 113.1-308.09 252.2A235.81 235.81 0 00230.06 647.6a311.28 311.28 0 0033.6 21.59L250 723.76c4.93 2.31 9.7 4.78 14.75 6.9l69-34.5c10.07 2.61 20.68 4.3 31.2 6.08 6.73 1.2 13.45 2.43 20.35 3.25a354.83 354.83 0 00128.81-7.4 248.88 248.88 0 0010.15 55.06 425.64 425.64 0 01-96.17 11.24 417.98 417.98 0 01-86.4-9.52L216.52 817.4a27.62 27.62 0 01-29.98-3.14 28.02 28.02 0 01-9.67-28.61l22.4-90.24A292.26 292.26 0 0164 456.21C64 285.98 227 148 428.09 148c190.93 0 347.29 124.53 362.52 282.82a244.97 244.97 0 00-26.47-2.62c-9.9.38-19.79 1.31-29.6 2.88zm-116.3 198.81a135.76 135.76 0 0047.05-19.04 114.24 114.24 0 0151.45-31 76.47 76.47 0 01-24.5 45.34 169.48 169.48 0 00-23.4 55.05 50.41 50.41 0 01-100.8.23 50.41 50.41 0 0150.2-50.58m90.8 121.32a168.6 168.6 0 0054.66 23.9 50.44 50.44 0 0135.64 86.08 50.38 50.38 0 01-86.04-35.66 136.74 136.74 0 00-18.67-47.28 114.71 114.71 0 01-30.54-51.8 76 76 0 0144.95 25.06z"}}]},name:"wechat-work",theme:"outlined"},s$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:o$n}))},a$n=d.forwardRef(s$n),l$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-circle",theme:"filled"},c$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:l$n}))},u$n=d.forwardRef(c$n),d$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-circle",theme:"outlined"},f$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:d$n}))},h$n=d.forwardRef(f$n),g$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 00-106-34.3 28.45 28.45 0 00-21.9 33.8 28.39 28.39 0 0033.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0111.3 53.3 28.45 28.45 0 0018.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 00-25.4 39.3 33.12 33.12 0 0039.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z"}}]},name:"weibo",theme:"outlined"},p$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:g$n}))},m$n=d.forwardRef(p$n),v$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-square",theme:"filled"},C$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:v$n}))},y$n=d.forwardRef(C$n),b$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-square",theme:"outlined"},S$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:b$n}))},w$n=d.forwardRef(S$n),x$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M713.5 599.9c-10.9-5.6-65.2-32.2-75.3-35.8-10.1-3.8-17.5-5.6-24.8 5.6-7.4 11.1-28.4 35.8-35 43.3-6.4 7.4-12.9 8.3-23.8 2.8-64.8-32.4-107.3-57.8-150-131.1-11.3-19.5 11.3-18.1 32.4-60.2 3.6-7.4 1.8-13.7-1-19.3-2.8-5.6-24.8-59.8-34-81.9-8.9-21.5-18.1-18.5-24.8-18.9-6.4-.4-13.7-.4-21.1-.4-7.4 0-19.3 2.8-29.4 13.7-10.1 11.1-38.6 37.8-38.6 92s39.5 106.7 44.9 114.1c5.6 7.4 77.7 118.6 188.4 166.5 70 30.2 97.4 32.8 132.4 27.6 21.3-3.2 65.2-26.6 74.3-52.5 9.1-25.8 9.1-47.9 6.4-52.5-2.7-4.9-10.1-7.7-21-13z"}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"whats-app",theme:"outlined"},E$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:x$n}))},R$n=d.forwardRef(E$n),$$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},O$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:$$n}))},T$n=d.forwardRef(O$n),I$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M523.8 191.4v288.9h382V128.1zm0 642.2l382 62.2v-352h-382zM120.1 480.2H443V201.9l-322.9 53.5zm0 290.4L443 823.2V543.8H120.1z"}}]},name:"windows",theme:"filled"},M$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:I$n}))},P$n=d.forwardRef(M$n),_$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120.1 770.6L443 823.2V543.8H120.1v226.8zm63.4-163.5h196.2v141.6l-196.2-31.9V607.1zm340.3 226.5l382 62.2v-352h-382v289.8zm63.4-226.5h255.3v214.4l-255.3-41.6V607.1zm-63.4-415.7v288.8h382V128.1l-382 63.3zm318.7 225.5H587.3V245l255.3-42.3v214.2zm-722.4 63.3H443V201.9l-322.9 53.5v224.8zM183.5 309l196.2-32.5v140.4H183.5V309z"}}]},name:"windows",theme:"outlined"},A$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:_$n}))},D$n=d.forwardRef(A$n),L$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M712.8 548.8c53.6-53.6 83.2-125 83.2-200.8 0-75.9-29.5-147.2-83.2-200.8C659.2 93.6 587.8 64 512 64s-147.2 29.5-200.8 83.2C257.6 200.9 228 272.1 228 348c0 63.8 20.9 124.4 59.4 173.9 7.3 9.4 15.2 18.3 23.7 26.9 8.5 8.5 17.5 16.4 26.8 23.7 39.6 30.8 86.3 50.4 136.1 57V736H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h114v140c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V812h114c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H550V629.5c61.5-8.2 118.2-36.1 162.8-80.7zM512 556c-55.6 0-107.7-21.6-147.1-60.9C325.6 455.8 304 403.6 304 348s21.6-107.7 60.9-147.1C404.2 161.5 456.4 140 512 140s107.7 21.6 147.1 60.9C698.4 240.2 720 292.4 720 348s-21.6 107.7-60.9 147.1C619.7 534.4 567.6 556 512 556z"}}]},name:"woman",theme:"outlined"},F$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:L$n}))},N$n=d.forwardRef(F$n),k$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"g",attrs:{"fill-rule":"evenodd"},children:[{tag:"path",attrs:{d:"M823.11 912H200.9A88.9 88.9 0 01112 823.11V200.9A88.9 88.9 0 01200.89 112H823.1A88.9 88.9 0 01912 200.89V823.1A88.9 88.9 0 01823.11 912"}},{tag:"path",attrs:{d:"M740 735H596.94L286 291h143.06zm-126.01-37.65h56.96L412 328.65h-56.96z","fill-rule":"nonzero"}},{tag:"path",attrs:{d:"M331.3 735L491 549.73 470.11 522 286 735zM521 460.39L541.21 489 715 289h-44.67z","fill-rule":"nonzero"}}]}]},name:"x",theme:"filled"},z$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:k$n}))},B$n=d.forwardRef(z$n),H$n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M921 912L601.11 445.75l.55.43L890.08 112H793.7L558.74 384 372.15 112H119.37l298.65 435.31-.04-.04L103 912h96.39L460.6 609.38 668.2 912zM333.96 184.73l448.83 654.54H706.4L257.2 184.73z"}}]},name:"x",theme:"outlined"},j$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:H$n}))},V$n=d.forwardRef(j$n),G$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M937.3 231H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7zm-77.4 450.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm225.2 225.2h-65.3L458.9 559.8v65.3h84.4v56.3H318.2v-56.3h84.4v-65.3L242.9 399.9h-37v-56.3h168.5v56.3h-37l93.4 93.5 28.1-28.1V400h168.8v56.2z"}}]},name:"yahoo",theme:"filled"},W$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:G$n}))},U$n=d.forwardRef(W$n),q$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 681.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm0 507C245.1 738 121 634.6 121 512.5c0-62.3 32.3-119.7 84.9-161v48.4h37l159.8 159.9v65.3h-84.4v56.3h225.1v-56.3H459v-65.3l103.5-103.6h65.3v-56.3H459v65.3l-28.1 28.1-93.4-93.5h37v-56.3H216.4c49.4-35 114.3-56.6 186.2-56.6 157.6 0 281.6 103.4 281.6 225.5S560.2 738 402.6 738zm534.7-507H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7z"}}]},name:"yahoo",theme:"outlined"},K$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:q$n}))},Y$n=d.forwardRef(K$n),X$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M941.3 296.1a112.3 112.3 0 00-79.2-79.3C792.2 198 512 198 512 198s-280.2 0-350.1 18.7A112.12 112.12 0 0082.7 296C64 366 64 512 64 512s0 146 18.7 215.9c10.3 38.6 40.7 69 79.2 79.3C231.8 826 512 826 512 826s280.2 0 350.1-18.8c38.6-10.3 68.9-40.7 79.2-79.3C960 658 960 512 960 512s0-146-18.7-215.9zM423 646V378l232 133-232 135z"}}]},name:"youtube",theme:"filled"},Q$n=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:X$n}))},Z$n=d.forwardRef(Q$n),J$n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M960 509.2c0-2.2 0-4.7-.1-7.6-.1-8.1-.3-17.2-.5-26.9-.8-27.9-2.2-55.7-4.4-81.9-3-36.1-7.4-66.2-13.4-88.8a139.52 139.52 0 00-98.3-98.5c-28.3-7.6-83.7-12.3-161.7-15.2-37.1-1.4-76.8-2.3-116.5-2.8-13.9-.2-26.8-.3-38.4-.4h-29.4c-11.6.1-24.5.2-38.4.4-39.7.5-79.4 1.4-116.5 2.8-78 3-133.5 7.7-161.7 15.2A139.35 139.35 0 0082.4 304C76.3 326.6 72 356.7 69 392.8c-2.2 26.2-3.6 54-4.4 81.9-.3 9.7-.4 18.8-.5 26.9 0 2.9-.1 5.4-.1 7.6v5.6c0 2.2 0 4.7.1 7.6.1 8.1.3 17.2.5 26.9.8 27.9 2.2 55.7 4.4 81.9 3 36.1 7.4 66.2 13.4 88.8 12.8 47.9 50.4 85.7 98.3 98.5 28.2 7.6 83.7 12.3 161.7 15.2 37.1 1.4 76.8 2.3 116.5 2.8 13.9.2 26.8.3 38.4.4h29.4c11.6-.1 24.5-.2 38.4-.4 39.7-.5 79.4-1.4 116.5-2.8 78-3 133.5-7.7 161.7-15.2 47.9-12.8 85.5-50.5 98.3-98.5 6.1-22.6 10.4-52.7 13.4-88.8 2.2-26.2 3.6-54 4.4-81.9.3-9.7.4-18.8.5-26.9 0-2.9.1-5.4.1-7.6v-5.6zm-72 5.2c0 2.1 0 4.4-.1 7.1-.1 7.8-.3 16.4-.5 25.7-.7 26.6-2.1 53.2-4.2 77.9-2.7 32.2-6.5 58.6-11.2 76.3-6.2 23.1-24.4 41.4-47.4 47.5-21 5.6-73.9 10.1-145.8 12.8-36.4 1.4-75.6 2.3-114.7 2.8-13.7.2-26.4.3-37.8.3h-28.6l-37.8-.3c-39.1-.5-78.2-1.4-114.7-2.8-71.9-2.8-124.9-7.2-145.8-12.8-23-6.2-41.2-24.4-47.4-47.5-4.7-17.7-8.5-44.1-11.2-76.3-2.1-24.7-3.4-51.3-4.2-77.9-.3-9.3-.4-18-.5-25.7 0-2.7-.1-5.1-.1-7.1v-4.8c0-2.1 0-4.4.1-7.1.1-7.8.3-16.4.5-25.7.7-26.6 2.1-53.2 4.2-77.9 2.7-32.2 6.5-58.6 11.2-76.3 6.2-23.1 24.4-41.4 47.4-47.5 21-5.6 73.9-10.1 145.8-12.8 36.4-1.4 75.6-2.3 114.7-2.8 13.7-.2 26.4-.3 37.8-.3h28.6l37.8.3c39.1.5 78.2 1.4 114.7 2.8 71.9 2.8 124.9 7.2 145.8 12.8 23 6.2 41.2 24.4 47.4 47.5 4.7 17.7 8.5 44.1 11.2 76.3 2.1 24.7 3.4 51.3 4.2 77.9.3 9.3.4 18 .5 25.7 0 2.7.1 5.1.1 7.1v4.8zM423 646l232-135-232-133z"}}]},name:"youtube",theme:"outlined"},eOn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:J$n}))},tOn=d.forwardRef(eOn),nOn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.9-8.1-195-3-195-3s87.4 55.6 52.4 154.7c-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6z"}}]},name:"yuque",theme:"filled"},rOn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:nOn}))},iOn=d.forwardRef(rOn),oOn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.8-8.1-194.9-3-195-3 .1 0 87.4 55.6 52.4 154.7-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6zm-204.1 334c-10.6 0-26.2.1-46.8.3l-23.6.2-17.8 15.5c-47.1 41-104.4 71.5-171.4 87.6-52.5 12.6-110 16.2-172.7 9.6 18-20.5 36.5-41.6 55.4-63.1 92-104.6 173.8-197.5 236.9-268.5l1.4-1.4 1.3-1.5c4.1-4.6 20.6-23.3 24.7-28.1 9.7-11.1 17.3-19.9 24.5-28.6 30.7-36.7 52.2-67.8 69-102.2l1.6-3.3 1.2-3.4c13.7-38.8 15.4-76.9 6.2-112.8 22.5.7 46.5 1.9 71.7 3.6 33.3 2.3 55.5 12.9 71.1 29.2 5.8 6 10.2 12.5 13.4 18.7 1 2 1.7 3.6 2.3 5l5 17.7c-15.7 34.5-19.9 73.3-11.4 107.2 3 11.8 6.9 22.4 12.3 34.4 2.1 4.7 9.5 20.1 11 23.3 10.3 22.7 15.4 43 16.7 78.7 3.3 94.6-82.7 181.9-182 181.9z"}}]},name:"yuque",theme:"outlined"},sOn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:oOn}))},aOn=d.forwardRef(sOn),lOn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-90.7 477.8l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24-18.1 71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7H421.3zm346.5 167h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z"}}]},name:"zhihu-circle",theme:"filled"},cOn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:lOn}))},uOn=d.forwardRef(cOn),dOn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z"}}]},name:"zhihu",theme:"outlined"},fOn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:dOn}))},hOn=d.forwardRef(fOn),gOn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM432.3 592.8l71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7h-110l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24.1-18.1zm335.5 116h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z"}}]},name:"zhihu-square",theme:"filled"},pOn=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:gOn}))},mOn=d.forwardRef(pOn),vOn=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],mme=d.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,o=e.spin,s=e.rotate,a=e.tabIndex,l=e.onClick,c=e.children,u=on(e,vOn),f=d.useRef(),h=Od(f,t);Aae(!!(r||c),"Should have `component` prop or `children`."),SGe(f);var g=d.useContext(qI),p=g.prefixCls,m=p===void 0?"anticon":p,v=g.rootClassName,C=we(v,m,ie({},"".concat(m,"-spin"),!!o&&!!r),n),y=we(ie({},"".concat(m,"-spin"),!!o)),b=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,S=se(se({},WTt),{},{className:y,style:b,viewBox:i});i||delete S.viewBox;var w=function(){return r?d.createElement(r,S,c):c?(Aae(!!i||d.Children.count(c)===1&&d.isValidElement(c)&&d.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",V({},S,{viewBox:i}),c)):null},x=a;return x===void 0&&l&&(x=-1),d.createElement("span",V({role:"img"},u,{ref:h,tabIndex:x,onClick:l,className:C}),w())});mme.displayName="AntdIcon";var COn=["type","children"],nXe=new Set;function yOn(e){return!!(typeof e=="string"&&e.length&&!nXe.has(e))}function gB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(yOn(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){gB(e,t+1)},r.onerror=function(){gB(e,t+1)}),nXe.add(n),document.body.appendChild(r)}}function bOn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?gB(t.reverse()):gB([t]));var i=d.forwardRef(function(o,s){var a=o.type,l=o.children,c=on(o,COn),u=null;return o.type&&(u=d.createElement("use",{xlinkHref:"#".concat(a)})),l&&(u=l),d.createElement(mme,V({},r,c,{ref:s}),u)});return i.displayName="Iconfont",i}var SOn=qI.Provider;const wOn=Object.freeze(Object.defineProperty({__proto__:null,AccountBookFilled:Wqt,AccountBookOutlined:Kqt,AccountBookTwoTone:Qqt,AimOutlined:eKt,AlertFilled:rKt,AlertOutlined:sKt,AlertTwoTone:cKt,AlibabaOutlined:fKt,AlignCenterOutlined:pKt,AlignLeftOutlined:CKt,AlignRightOutlined:SKt,AlipayCircleFilled:EKt,AlipayCircleOutlined:OKt,AlipayOutlined:MKt,AlipaySquareFilled:AKt,AliwangwangFilled:FKt,AliwangwangOutlined:zKt,AliyunOutlined:jKt,AmazonCircleFilled:WKt,AmazonOutlined:KKt,AmazonSquareFilled:QKt,AndroidFilled:eYt,AndroidOutlined:rYt,AntCloudOutlined:sYt,AntDesignOutlined:cYt,ApartmentOutlined:fYt,ApiFilled:pYt,ApiOutlined:CYt,ApiTwoTone:SYt,AppleFilled:EYt,AppleOutlined:OYt,AppstoreAddOutlined:MYt,AppstoreFilled:AYt,AppstoreOutlined:FYt,AppstoreTwoTone:zYt,AreaChartOutlined:jYt,ArrowDownOutlined:WYt,ArrowLeftOutlined:mYe,ArrowRightOutlined:vYe,ArrowUpOutlined:ZYt,ArrowsAltOutlined:tXt,AudioFilled:iXt,AudioMutedOutlined:aXt,AudioOutlined:uXt,AudioTwoTone:hXt,AuditOutlined:mXt,BackwardFilled:yXt,BackwardOutlined:wXt,BaiduOutlined:RXt,BankFilled:TXt,BankOutlined:PXt,BankTwoTone:DXt,BarChartOutlined:NXt,BarcodeOutlined:BXt,BarsOutlined:EUe,BehanceCircleFilled:VXt,BehanceOutlined:UXt,BehanceSquareFilled:YXt,BehanceSquareOutlined:ZXt,BellFilled:tQt,BellOutlined:iQt,BellTwoTone:aQt,BgColorsOutlined:uQt,BilibiliFilled:hQt,BilibiliOutlined:mQt,BlockOutlined:yQt,BoldOutlined:CYe,BookFilled:EQt,BookOutlined:GV,BookTwoTone:IQt,BorderBottomOutlined:_Qt,BorderHorizontalOutlined:LQt,BorderInnerOutlined:kQt,BorderLeftOutlined:HQt,BorderOuterOutlined:GQt,BorderOutlined:qQt,BorderRightOutlined:XQt,BorderTopOutlined:JQt,BorderVerticleOutlined:nZt,BorderlessTableOutlined:oZt,BoxPlotFilled:lZt,BoxPlotOutlined:dZt,BoxPlotTwoTone:gZt,BranchesOutlined:vZt,BugFilled:bZt,BugOutlined:xZt,BugTwoTone:$Zt,BuildFilled:IZt,BuildOutlined:_Zt,BuildTwoTone:LZt,BulbFilled:kZt,BulbOutlined:HZt,BulbTwoTone:GZt,CalculatorFilled:qZt,CalculatorOutlined:XZt,CalculatorTwoTone:JZt,CalendarFilled:nJt,CalendarOutlined:SKe,CalendarTwoTone:oJt,CameraFilled:lJt,CameraOutlined:dJt,CameraTwoTone:gJt,CarFilled:vJt,CarOutlined:bJt,CarTwoTone:xJt,CaretDownFilled:yYe,CaretDownOutlined:bYe,CaretLeftFilled:MJt,CaretLeftOutlined:AJt,CaretRightFilled:FJt,CaretRightOutlined:SYe,CaretUpFilled:HJt,CaretUpOutlined:GJt,CarryOutFilled:qJt,CarryOutOutlined:XJt,CarryOutTwoTone:JJt,CheckCircleFilled:Ay,CheckCircleOutlined:cme,CheckCircleTwoTone:ien,CheckOutlined:CV,CheckSquareFilled:aen,CheckSquareOutlined:uen,CheckSquareTwoTone:hen,ChromeFilled:men,ChromeOutlined:yen,CiCircleFilled:wen,CiCircleOutlined:Ren,CiCircleTwoTone:Ten,CiOutlined:Pen,CiTwoTone:Den,ClearOutlined:Nen,ClockCircleFilled:Ben,ClockCircleOutlined:bGt,ClockCircleTwoTone:Ven,CloseCircleFilled:nv,CloseCircleOutlined:wYe,CloseCircleTwoTone:Ken,CloseOutlined:Ug,CloseSquareFilled:Qen,CloseSquareOutlined:etn,CloseSquareTwoTone:rtn,CloudDownloadOutlined:stn,CloudFilled:ctn,CloudOutlined:xYe,CloudServerOutlined:gtn,CloudSyncOutlined:vtn,CloudTwoTone:btn,CloudUploadOutlined:xtn,ClusterOutlined:$tn,CodeFilled:Itn,CodeOutlined:_tn,CodeSandboxCircleFilled:Ltn,CodeSandboxOutlined:ktn,CodeSandboxSquareFilled:Htn,CodeTwoTone:Gtn,CodepenCircleFilled:qtn,CodepenCircleOutlined:Xtn,CodepenOutlined:Jtn,CodepenSquareFilled:nnn,CoffeeOutlined:onn,ColumnHeightOutlined:lnn,ColumnWidthOutlined:dnn,CommentOutlined:gnn,CompassFilled:vnn,CompassOutlined:bnn,CompassTwoTone:xnn,CompressOutlined:$nn,ConsoleSqlOutlined:Inn,ContactsFilled:_nn,ContactsOutlined:Lnn,ContactsTwoTone:knn,ContainerFilled:Hnn,ContainerOutlined:Gnn,ContainerTwoTone:qnn,ControlFilled:Xnn,ControlOutlined:Jnn,ControlTwoTone:nrn,CopyFilled:orn,CopyOutlined:EYe,CopyTwoTone:urn,CopyrightCircleFilled:hrn,CopyrightCircleOutlined:mrn,CopyrightCircleTwoTone:yrn,CopyrightOutlined:wrn,CopyrightTwoTone:Rrn,CreditCardFilled:Trn,CreditCardOutlined:Prn,CreditCardTwoTone:Drn,CrownFilled:Nrn,CrownOutlined:Brn,CrownTwoTone:Vrn,CustomerServiceFilled:Urn,CustomerServiceOutlined:Yrn,CustomerServiceTwoTone:Zrn,DashOutlined:tin,DashboardFilled:iin,DashboardOutlined:ain,DashboardTwoTone:uin,DatabaseFilled:hin,DatabaseOutlined:min,DatabaseTwoTone:yin,DeleteColumnOutlined:win,DeleteFilled:Rin,DeleteOutlined:Dg,DeleteRowOutlined:Min,DeleteTwoTone:Ain,DeliveredProcedureOutlined:Fin,DeploymentUnitOutlined:zin,DesktopOutlined:jin,DiffFilled:Win,DiffOutlined:Kin,DiffTwoTone:Qin,DingdingOutlined:eon,DingtalkCircleFilled:ron,DingtalkOutlined:son,DingtalkSquareFilled:con,DisconnectOutlined:fon,DiscordFilled:pon,DiscordOutlined:Con,DislikeFilled:Son,DislikeOutlined:Eon,DislikeTwoTone:Oon,DockerOutlined:Mon,DollarCircleFilled:Aon,DollarCircleOutlined:Fon,DollarCircleTwoTone:zon,DollarOutlined:jon,DollarTwoTone:Won,DotChartOutlined:Kon,DotNetOutlined:Qon,DoubleLeftOutlined:xle,DoubleRightOutlined:Ele,DownCircleFilled:esn,DownCircleOutlined:rsn,DownCircleTwoTone:ssn,DownOutlined:yV,DownSquareFilled:csn,DownSquareOutlined:fsn,DownSquareTwoTone:psn,DownloadOutlined:RYe,DragOutlined:ume,DribbbleCircleFilled:wsn,DribbbleOutlined:Rsn,DribbbleSquareFilled:Tsn,DribbbleSquareOutlined:Psn,DropboxCircleFilled:Dsn,DropboxOutlined:Nsn,DropboxSquareFilled:Bsn,EditFilled:WV,EditOutlined:dme,EditTwoTone:$Ye,EllipsisOutlined:rv,EnterOutlined:OYe,EnvironmentFilled:Qsn,EnvironmentOutlined:ean,EnvironmentTwoTone:ran,EuroCircleFilled:san,EuroCircleOutlined:can,EuroCircleTwoTone:fan,EuroOutlined:pan,EuroTwoTone:Can,ExceptionOutlined:San,ExclamationCircleFilled:Vx,ExclamationCircleOutlined:Ean,ExclamationCircleTwoTone:Oan,ExclamationOutlined:Man,ExpandAltOutlined:Aan,ExpandOutlined:Fan,ExperimentFilled:zan,ExperimentOutlined:jan,ExperimentTwoTone:Wan,ExportOutlined:Kan,EyeFilled:Qan,EyeInvisibleFilled:eln,EyeInvisibleOutlined:vKe,EyeInvisibleTwoTone:rln,EyeOutlined:w3,EyeTwoTone:sln,FacebookFilled:cln,FacebookOutlined:fln,FallOutlined:pln,FastBackwardFilled:Cln,FastBackwardOutlined:Sln,FastForwardFilled:Eln,FastForwardOutlined:Oln,FieldBinaryOutlined:Mln,FieldNumberOutlined:Aln,FieldStringOutlined:Fln,FieldTimeOutlined:zln,FileAddFilled:jln,FileAddOutlined:Wln,FileAddTwoTone:Kln,FileDoneOutlined:Qln,FileExcelFilled:ecn,FileExcelOutlined:fme,FileExcelTwoTone:ocn,FileExclamationFilled:lcn,FileExclamationOutlined:dcn,FileExclamationTwoTone:gcn,FileFilled:vcn,FileGifOutlined:bcn,FileImageFilled:xcn,FileImageOutlined:TYe,FileImageTwoTone:Tcn,FileJpgOutlined:Pcn,FileMarkdownFilled:Dcn,FileMarkdownOutlined:Ncn,FileMarkdownTwoTone:Bcn,FileOutlined:IYe,FilePdfFilled:Wcn,FilePdfOutlined:MYe,FilePdfTwoTone:Xcn,FilePptFilled:Jcn,FilePptOutlined:PYe,FilePptTwoTone:iun,FileProtectOutlined:aun,FileSearchOutlined:_Ye,FileSyncOutlined:fun,FileTextFilled:pun,FileTextOutlined:Xpe,FileTextTwoTone:Cun,FileTwoTone:AYe,FileUnknownFilled:xun,FileUnknownOutlined:DYe,FileUnknownTwoTone:Tun,FileWordFilled:Pun,FileWordOutlined:LYe,FileWordTwoTone:Fun,FileZipFilled:zun,FileZipOutlined:FYe,FileZipTwoTone:Gun,FilterFilled:qun,FilterOutlined:Xun,FilterTwoTone:Jun,FireFilled:ndn,FireOutlined:odn,FireTwoTone:ldn,FlagFilled:ddn,FlagOutlined:gdn,FlagTwoTone:vdn,FolderAddFilled:bdn,FolderAddOutlined:xdn,FolderAddTwoTone:$dn,FolderFilled:Idn,FolderOpenFilled:_dn,FolderOpenOutlined:Ldn,FolderOpenTwoTone:kdn,FolderOutlined:Hdn,FolderTwoTone:Gdn,FolderViewOutlined:qdn,FontColorsOutlined:Xdn,FontSizeOutlined:NYe,ForkOutlined:tfn,FormOutlined:ifn,FormatPainterFilled:afn,FormatPainterOutlined:ufn,ForwardFilled:hfn,ForwardOutlined:mfn,FrownFilled:yfn,FrownOutlined:wfn,FrownTwoTone:Rfn,FullscreenExitOutlined:Tfn,FullscreenOutlined:Pfn,FunctionOutlined:Dfn,FundFilled:Nfn,FundOutlined:Bfn,FundProjectionScreenOutlined:Vfn,FundTwoTone:Ufn,FundViewOutlined:Yfn,FunnelPlotFilled:Zfn,FunnelPlotOutlined:thn,FunnelPlotTwoTone:ihn,GatewayOutlined:ahn,GifOutlined:uhn,GiftFilled:hhn,GiftOutlined:mhn,GiftTwoTone:yhn,GithubFilled:whn,GithubOutlined:Rhn,GitlabFilled:Thn,GitlabOutlined:Phn,GlobalOutlined:Dhn,GoldFilled:Nhn,GoldOutlined:Bhn,GoldTwoTone:Vhn,GoldenFilled:Uhn,GoogleCircleFilled:Yhn,GoogleOutlined:Zhn,GooglePlusCircleFilled:tgn,GooglePlusOutlined:ign,GooglePlusSquareFilled:agn,GoogleSquareFilled:ugn,GroupOutlined:hgn,HarmonyOSOutlined:mgn,HddFilled:ygn,HddOutlined:wgn,HddTwoTone:Rgn,HeartFilled:Tgn,HeartOutlined:Pgn,HeartTwoTone:Dgn,HeatMapOutlined:Ngn,HighlightFilled:Bgn,HighlightOutlined:Vgn,HighlightTwoTone:Ugn,HistoryOutlined:Ygn,HolderOutlined:Zgn,HomeFilled:tpn,HomeOutlined:kYe,HomeTwoTone:spn,HourglassFilled:cpn,HourglassOutlined:fpn,HourglassTwoTone:ppn,Html5Filled:Cpn,Html5Outlined:Spn,Html5TwoTone:Epn,IconProvider:SOn,IdcardFilled:Opn,IdcardOutlined:zYe,IdcardTwoTone:_pn,IeCircleFilled:Lpn,IeOutlined:kpn,IeSquareFilled:Hpn,ImportOutlined:hme,InboxOutlined:BYe,InfoCircleFilled:YI,InfoCircleOutlined:Kpn,InfoCircleTwoTone:Qpn,InfoOutlined:emn,InsertRowAboveOutlined:rmn,InsertRowBelowOutlined:smn,InsertRowLeftOutlined:cmn,InsertRowRightOutlined:fmn,InstagramFilled:pmn,InstagramOutlined:Cmn,InsuranceFilled:Smn,InsuranceOutlined:Emn,InsuranceTwoTone:Omn,InteractionFilled:Mmn,InteractionOutlined:Amn,InteractionTwoTone:Fmn,IssuesCloseOutlined:zmn,ItalicOutlined:jmn,JavaOutlined:Wmn,JavaScriptOutlined:Kmn,KeyOutlined:Qmn,KubernetesOutlined:e1n,LaptopOutlined:r1n,LayoutFilled:s1n,LayoutOutlined:c1n,LayoutTwoTone:f1n,LeftCircleFilled:p1n,LeftCircleOutlined:C1n,LeftCircleTwoTone:S1n,LeftOutlined:L0,LeftSquareFilled:E1n,LeftSquareOutlined:O1n,LeftSquareTwoTone:M1n,LikeFilled:A1n,LikeOutlined:F1n,LikeTwoTone:z1n,LineChartOutlined:j1n,LineHeightOutlined:W1n,LineOutlined:K1n,LinkOutlined:HYe,LinkedinFilled:J1n,LinkedinOutlined:n0n,LinuxOutlined:o0n,Loading3QuartersOutlined:l0n,LoadingOutlined:Tm,LockFilled:d0n,LockOutlined:g0n,LockTwoTone:v0n,LoginOutlined:jYe,LogoutOutlined:VYe,MacCommandFilled:E0n,MacCommandOutlined:O0n,MailFilled:M0n,MailOutlined:GYe,MailTwoTone:L0n,ManOutlined:k0n,MedicineBoxFilled:H0n,MedicineBoxOutlined:G0n,MedicineBoxTwoTone:q0n,MediumCircleFilled:X0n,MediumOutlined:J0n,MediumSquareFilled:nvn,MediumWorkmarkOutlined:ovn,MehFilled:lvn,MehOutlined:dvn,MehTwoTone:gvn,MenuFoldOutlined:vvn,MenuOutlined:bvn,MenuUnfoldOutlined:xvn,MergeCellsOutlined:$vn,MergeFilled:Ivn,MergeOutlined:_vn,MessageFilled:Lvn,MessageOutlined:kvn,MessageTwoTone:Hvn,MinusCircleFilled:Gvn,MinusCircleOutlined:qvn,MinusCircleTwoTone:Xvn,MinusOutlined:Jvn,MinusSquareFilled:n2n,MinusSquareOutlined:WYe,MinusSquareTwoTone:a2n,MobileFilled:u2n,MobileOutlined:h2n,MobileTwoTone:m2n,MoneyCollectFilled:y2n,MoneyCollectOutlined:w2n,MoneyCollectTwoTone:R2n,MonitorOutlined:T2n,MoonFilled:P2n,MoonOutlined:D2n,MoreOutlined:N2n,MutedFilled:B2n,MutedOutlined:V2n,NodeCollapseOutlined:U2n,NodeExpandOutlined:Y2n,NodeIndexOutlined:Z2n,NotificationFilled:t4n,NotificationOutlined:i4n,NotificationTwoTone:a4n,NumberOutlined:u4n,OneToOneOutlined:h4n,OpenAIFilled:m4n,OpenAIOutlined:y4n,OrderedListOutlined:w4n,PaperClipOutlined:UYe,PartitionOutlined:O4n,PauseCircleFilled:M4n,PauseCircleOutlined:A4n,PauseCircleTwoTone:F4n,PauseOutlined:z4n,PayCircleFilled:j4n,PayCircleOutlined:W4n,PercentageOutlined:K4n,PhoneFilled:Q4n,PhoneOutlined:gme,PhoneTwoTone:n3n,PicCenterOutlined:o3n,PicLeftOutlined:l3n,PicRightOutlined:d3n,PictureFilled:g3n,PictureOutlined:qYe,PictureTwoTone:KYe,PieChartFilled:S3n,PieChartOutlined:E3n,PieChartTwoTone:O3n,PinterestFilled:M3n,PinterestOutlined:A3n,PlayCircleFilled:F3n,PlayCircleOutlined:YYe,PlayCircleTwoTone:H3n,PlaySquareFilled:G3n,PlaySquareOutlined:q3n,PlaySquareTwoTone:X3n,PlusCircleFilled:J3n,PlusCircleOutlined:n6n,PlusCircleTwoTone:o6n,PlusOutlined:Zf,PlusSquareFilled:l6n,PlusSquareOutlined:XYe,PlusSquareTwoTone:h6n,PoundCircleFilled:m6n,PoundCircleOutlined:y6n,PoundCircleTwoTone:w6n,PoundOutlined:R6n,PoweroffOutlined:T6n,PrinterFilled:P6n,PrinterOutlined:D6n,PrinterTwoTone:N6n,ProductFilled:B6n,ProductOutlined:V6n,ProfileFilled:U6n,ProfileOutlined:Y6n,ProfileTwoTone:Z6n,ProjectFilled:t8n,ProjectOutlined:i8n,ProjectTwoTone:a8n,PropertySafetyFilled:u8n,PropertySafetyOutlined:h8n,PropertySafetyTwoTone:m8n,PullRequestOutlined:y8n,PushpinFilled:w8n,PushpinOutlined:R8n,PushpinTwoTone:T8n,PythonOutlined:P8n,QqCircleFilled:D8n,QqOutlined:N8n,QqSquareFilled:B8n,QrcodeOutlined:V8n,QuestionCircleFilled:U8n,QuestionCircleOutlined:_Ke,QuestionCircleTwoTone:Y8n,QuestionOutlined:Z8n,RadarChartOutlined:tCn,RadiusBottomleftOutlined:iCn,RadiusBottomrightOutlined:aCn,RadiusSettingOutlined:uCn,RadiusUpleftOutlined:hCn,RadiusUprightOutlined:mCn,ReadFilled:yCn,ReadOutlined:wCn,ReconciliationFilled:RCn,ReconciliationOutlined:TCn,ReconciliationTwoTone:PCn,RedEnvelopeFilled:DCn,RedEnvelopeOutlined:NCn,RedEnvelopeTwoTone:BCn,RedditCircleFilled:VCn,RedditOutlined:UCn,RedditSquareFilled:YCn,RedoOutlined:ZCn,ReloadOutlined:tyn,RestFilled:iyn,RestOutlined:ayn,RestTwoTone:uyn,RetweetOutlined:hyn,RightCircleFilled:myn,RightCircleOutlined:yyn,RightCircleTwoTone:wyn,RightOutlined:Xf,RightSquareFilled:Ryn,RightSquareOutlined:Tyn,RightSquareTwoTone:Pyn,RiseOutlined:Dyn,RobotFilled:Nyn,RobotOutlined:Byn,RocketFilled:Vyn,RocketOutlined:Uyn,RocketTwoTone:Yyn,RollbackOutlined:Zyn,RotateLeftOutlined:zKe,RotateRightOutlined:BKe,RubyOutlined:tbn,SafetyCertificateFilled:ibn,SafetyCertificateOutlined:abn,SafetyCertificateTwoTone:ubn,SafetyOutlined:QYe,SaveFilled:pbn,SaveOutlined:UV,SaveTwoTone:bbn,ScanOutlined:xbn,ScheduleFilled:$bn,ScheduleOutlined:Ibn,ScheduleTwoTone:_bn,ScissorOutlined:Lbn,SearchOutlined:iM,SecurityScanFilled:kbn,SecurityScanOutlined:Hbn,SecurityScanTwoTone:Gbn,SelectOutlined:qbn,SendOutlined:Xbn,SettingFilled:Jbn,SettingOutlined:pme,SettingTwoTone:i5n,ShakeOutlined:a5n,ShareAltOutlined:u5n,ShopFilled:h5n,ShopOutlined:m5n,ShopTwoTone:y5n,ShoppingCartOutlined:w5n,ShoppingFilled:R5n,ShoppingOutlined:T5n,ShoppingTwoTone:P5n,ShrinkOutlined:D5n,SignalFilled:N5n,SignatureFilled:B5n,SignatureOutlined:V5n,SisternodeOutlined:U5n,SketchCircleFilled:Y5n,SketchOutlined:Z5n,SketchSquareFilled:tSn,SkinFilled:iSn,SkinOutlined:aSn,SkinTwoTone:uSn,SkypeFilled:hSn,SkypeOutlined:mSn,SlackCircleFilled:ySn,SlackOutlined:wSn,SlackSquareFilled:RSn,SlackSquareOutlined:TSn,SlidersFilled:PSn,SlidersOutlined:DSn,SlidersTwoTone:NSn,SmallDashOutlined:BSn,SmileFilled:VSn,SmileOutlined:USn,SmileTwoTone:YSn,SnippetsFilled:ZSn,SnippetsOutlined:twn,SnippetsTwoTone:iwn,SolutionOutlined:awn,SortAscendingOutlined:uwn,SortDescendingOutlined:hwn,SoundFilled:mwn,SoundOutlined:ywn,SoundTwoTone:wwn,SplitCellsOutlined:Rwn,SpotifyFilled:Twn,SpotifyOutlined:Pwn,StarFilled:Dwn,StarOutlined:ZYe,StarTwoTone:zwn,StepBackwardFilled:jwn,StepBackwardOutlined:Wwn,StepForwardFilled:Kwn,StepForwardOutlined:Qwn,StockOutlined:e7n,StopFilled:r7n,StopOutlined:s7n,StopTwoTone:c7n,StrikethroughOutlined:f7n,SubnodeOutlined:p7n,SunFilled:C7n,SunOutlined:S7n,SwapLeftOutlined:E7n,SwapOutlined:cB,SwapRightOutlined:xGt,SwitcherFilled:O7n,SwitcherOutlined:M7n,SwitcherTwoTone:A7n,SyncOutlined:JYe,TableOutlined:k7n,TabletFilled:H7n,TabletOutlined:G7n,TabletTwoTone:q7n,TagFilled:X7n,TagOutlined:J7n,TagTwoTone:nxn,TagsFilled:oxn,TagsOutlined:eXe,TagsTwoTone:uxn,TaobaoCircleFilled:hxn,TaobaoCircleOutlined:mxn,TaobaoOutlined:yxn,TaobaoSquareFilled:wxn,TeamOutlined:qV,ThunderboltFilled:Oxn,ThunderboltOutlined:Mxn,ThunderboltTwoTone:Axn,TikTokFilled:Fxn,TikTokOutlined:zxn,ToTopOutlined:jxn,ToolFilled:Wxn,ToolOutlined:Kxn,ToolTwoTone:Qxn,TrademarkCircleFilled:e9n,TrademarkCircleOutlined:r9n,TrademarkCircleTwoTone:s9n,TrademarkOutlined:c9n,TransactionOutlined:f9n,TranslationOutlined:p9n,TrophyFilled:C9n,TrophyOutlined:S9n,TrophyTwoTone:E9n,TruckFilled:O9n,TruckOutlined:M9n,TwitchFilled:A9n,TwitchOutlined:F9n,TwitterCircleFilled:z9n,TwitterOutlined:j9n,TwitterSquareFilled:W9n,UnderlineOutlined:K9n,UndoOutlined:Q9n,UngroupOutlined:eEn,UnlockFilled:rEn,UnlockOutlined:sEn,UnlockTwoTone:cEn,UnorderedListOutlined:fEn,UpCircleFilled:pEn,UpCircleOutlined:CEn,UpCircleTwoTone:SEn,UpOutlined:lKe,UpSquareFilled:EEn,UpSquareOutlined:OEn,UpSquareTwoTone:MEn,UploadOutlined:tXe,UsbFilled:LEn,UsbOutlined:kEn,UsbTwoTone:HEn,UserAddOutlined:GEn,UserDeleteOutlined:qEn,UserOutlined:fM,UserSwitchOutlined:ZEn,UsergroupAddOutlined:tRn,UsergroupDeleteOutlined:iRn,VerifiedOutlined:aRn,VerticalAlignBottomOutlined:uRn,VerticalAlignMiddleOutlined:hRn,VerticalAlignTopOutlined:RNt,VerticalLeftOutlined:mRn,VerticalRightOutlined:yRn,VideoCameraAddOutlined:wRn,VideoCameraFilled:RRn,VideoCameraOutlined:TRn,VideoCameraTwoTone:PRn,WalletFilled:DRn,WalletOutlined:NRn,WalletTwoTone:BRn,WarningFilled:VRn,WarningOutlined:URn,WarningTwoTone:YRn,WechatFilled:ZRn,WechatOutlined:t$n,WechatWorkFilled:i$n,WechatWorkOutlined:a$n,WeiboCircleFilled:u$n,WeiboCircleOutlined:h$n,WeiboOutlined:m$n,WeiboSquareFilled:y$n,WeiboSquareOutlined:w$n,WhatsAppOutlined:R$n,WifiOutlined:T$n,WindowsFilled:P$n,WindowsOutlined:D$n,WomanOutlined:N$n,XFilled:B$n,XOutlined:V$n,YahooFilled:U$n,YahooOutlined:Y$n,YoutubeFilled:Z$n,YoutubeOutlined:tOn,YuqueFilled:iOn,YuqueOutlined:aOn,ZhihuCircleFilled:uOn,ZhihuOutlined:hOn,ZhihuSquareFilled:mOn,ZoomInOutlined:HKe,ZoomOutOutlined:jKe,createFromIconfontCN:bOn,default:mme,getTwoToneColor:wGe,setTwoToneColor:qge},Symbol.toStringTag,{value:"Module"}));function xOn(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,o=e.characterRender,s=e.index,a=e.count,l=e.value,c=e.allowHalf,u=e.focused,f=e.onHover,h=e.onClick,g=function(w){f(w,s)},p=function(w){h(w,s)},m=function(w){w.keyCode===lt.ENTER&&h(w,s)},v=s+1,C=new Set([r]);l===0&&s===0&&u?C.add("".concat(r,"-focused")):c&&l+.5>=v&&l<v?(C.add("".concat(r,"-half")),C.add("".concat(r,"-active")),u&&C.add("".concat(r,"-focused"))):(v<=l?C.add("".concat(r,"-full")):C.add("".concat(r,"-zero")),v===l&&u&&C.add("".concat(r,"-focused")));var y=typeof i=="function"?i(e):i,b=ce.createElement("li",{className:we(Array.from(C)),ref:t},ce.createElement("div",{onClick:n?null:p,onKeyDown:n?null:m,onMouseMove:n?null:g,role:"radio","aria-checked":l>s?"true":"false","aria-posinset":s+1,"aria-setsize":a,tabIndex:n?-1:0},ce.createElement("div",{className:"".concat(r,"-first")},y),ce.createElement("div",{className:"".concat(r,"-second")},y)));return o&&(b=o(b,e)),b}const EOn=ce.forwardRef(xOn);function ROn(){var e=d.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function $On(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function OOn(e){var t,n,r=e.ownerDocument,i=r.body,o=r&&r.documentElement,s=e.getBoundingClientRect();return t=s.left,n=s.top,t-=o.clientLeft||i.clientLeft||0,n-=o.clientTop||i.clientTop||0,{left:t,top:n}}function TOn(e){var t=OOn(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=$On(r),t.left}var IOn=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function MOn(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,o=e.defaultValue,s=e.value,a=e.count,l=a===void 0?5:a,c=e.allowHalf,u=c===void 0?!1:c,f=e.allowClear,h=f===void 0?!0:f,g=e.keyboard,p=g===void 0?!0:g,m=e.character,v=m===void 0?"★":m,C=e.characterRender,y=e.disabled,b=e.direction,S=b===void 0?"ltr":b,w=e.tabIndex,x=w===void 0?0:w,E=e.autoFocus,R=e.onHoverChange,O=e.onChange,T=e.onFocus,M=e.onBlur,_=e.onKeyDown,F=e.onMouseLeave,D=on(e,IOn),k=ROn(),L=Ce(k,2),I=L[0],A=L[1],N=ce.useRef(null),B=function(){if(!y){var We;(We=N.current)===null||We===void 0||We.focus()}};ce.useImperativeHandle(t,function(){return{focus:B,blur:function(){if(!y){var We;(We=N.current)===null||We===void 0||We.blur()}}}});var z=ir(o||0,{value:s}),j=Ce(z,2),W=j[0],G=j[1],K=ir(null),q=Ce(K,2),X=q[0],Q=q[1],te=function(We,Ve){var Fe=S==="rtl",ke=We+1;if(u){var Ye=I(We),ze=TOn(Ye),Re=Ye.clientWidth;(Fe&&Ve-ze>Re/2||!Fe&&Ve-ze<Re/2)&&(ke-=.5)}return ke},ne=function(We){G(We),O==null||O(We)},Z=ce.useState(!1),ee=Ce(Z,2),J=ee[0],oe=ee[1],le=function(){oe(!0),T==null||T()},ge=function(){oe(!1),M==null||M()},he=ce.useState(null),ye=Ce(he,2),ue=ye[0],ve=ye[1],de=function(We,Ve){var Fe=te(Ve,We.pageX);Fe!==X&&(ve(Fe),Q(null)),R==null||R(Fe)},xe=function(We){y||(ve(null),Q(null),R==null||R(void 0)),We&&(F==null||F(We))},Ee=function(We,Ve){var Fe=te(Ve,We.pageX),ke=!1;h&&(ke=Fe===W),xe(),ne(ke?0:Fe),Q(ke?Fe:null)},De=function(We){var Ve=We.keyCode,Fe=S==="rtl",ke=u?.5:1;p&&(Ve===lt.RIGHT&&W<l&&!Fe?(ne(W+ke),We.preventDefault()):Ve===lt.LEFT&&W>0&&!Fe||Ve===lt.RIGHT&&W>0&&Fe?(ne(W-ke),We.preventDefault()):Ve===lt.LEFT&&W<l&&Fe&&(ne(W+ke),We.preventDefault())),_==null||_(We)};ce.useEffect(function(){E&&!y&&B()},[]);var Be=new Array(l).fill(0).map(function(Ue,We){return ce.createElement(EOn,{ref:A(We),index:We,count:l,disabled:y,prefixCls:"".concat(r,"-star"),allowHalf:u,value:ue===null?W:ue,onClick:Ee,onHover:de,key:Ue||We,character:v,characterRender:C,focused:J})}),Ge=we(r,i,ie(ie({},"".concat(r,"-disabled"),y),"".concat(r,"-rtl"),S==="rtl"));return ce.createElement("ul",V({className:Ge,onMouseLeave:xe,tabIndex:y?-1:x,onFocus:y?null:le,onBlur:y?null:ge,onKeyDown:y?null:De,ref:N,role:"radiogroup"},$o(D,{aria:!0,data:!0,attr:!0})),Be)}const POn=ce.forwardRef(MOn),_On=Object.freeze(Object.defineProperty({__proto__:null,default:POn},Symbol.toStringTag,{value:"Module"}));var AOn=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function txe(e){return typeof e=="string"}function vme(e){var t,n=e.className,r=e.prefixCls,i=e.style,o=e.active,s=e.status,a=e.iconPrefix,l=e.icon;e.wrapperStyle;var c=e.stepNumber,u=e.disabled,f=e.description,h=e.title,g=e.subTitle,p=e.progressDot,m=e.stepIcon,v=e.tailContent,C=e.icons,y=e.stepIndex,b=e.onStepClick,S=e.onClick,w=e.render,x=on(e,AOn),E=!!b&&!u,R={};E&&(R.role="button",R.tabIndex=0,R.onClick=function(D){S==null||S(D),b(y)},R.onKeyDown=function(D){var k=D.which;(k===lt.ENTER||k===lt.SPACE)&&b(y)});var O=function(){var k,L,I=we("".concat(r,"-icon"),"".concat(a,"icon"),(k={},ie(k,"".concat(a,"icon-").concat(l),l&&txe(l)),ie(k,"".concat(a,"icon-check"),!l&&s==="finish"&&(C&&!C.finish||!C)),ie(k,"".concat(a,"icon-cross"),!l&&s==="error"&&(C&&!C.error||!C)),k)),A=d.createElement("span",{className:"".concat(r,"-icon-dot")});return p?typeof p=="function"?L=d.createElement("span",{className:"".concat(r,"-icon")},p(A,{index:c-1,status:s,title:h,description:f})):L=d.createElement("span",{className:"".concat(r,"-icon")},A):l&&!txe(l)?L=d.createElement("span",{className:"".concat(r,"-icon")},l):C&&C.finish&&s==="finish"?L=d.createElement("span",{className:"".concat(r,"-icon")},C.finish):C&&C.error&&s==="error"?L=d.createElement("span",{className:"".concat(r,"-icon")},C.error):l||s==="finish"||s==="error"?L=d.createElement("span",{className:I}):L=d.createElement("span",{className:"".concat(r,"-icon")},c),m&&(L=m({index:c-1,status:s,title:h,description:f,node:L})),L},T=s||"wait",M=we("".concat(r,"-item"),"".concat(r,"-item-").concat(T),n,(t={},ie(t,"".concat(r,"-item-custom"),l),ie(t,"".concat(r,"-item-active"),o),ie(t,"".concat(r,"-item-disabled"),u===!0),t)),_=se({},i),F=d.createElement("div",V({},x,{className:M,style:_}),d.createElement("div",V({onClick:S},R,{className:"".concat(r,"-item-container")}),d.createElement("div",{className:"".concat(r,"-item-tail")},v),d.createElement("div",{className:"".concat(r,"-item-icon")},O()),d.createElement("div",{className:"".concat(r,"-item-content")},d.createElement("div",{className:"".concat(r,"-item-title")},h,g&&d.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&d.createElement("div",{className:"".concat(r,"-item-description")},f))));return w&&(F=w(F)||null),F}var DOn=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function rXe(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,i=e.style,o=i===void 0?{}:i,s=e.className;e.children;var a=e.direction,l=a===void 0?"horizontal":a,c=e.type,u=c===void 0?"default":c,f=e.labelPlacement,h=f===void 0?"horizontal":f,g=e.iconPrefix,p=g===void 0?"rc":g,m=e.status,v=m===void 0?"process":m,C=e.size,y=e.current,b=y===void 0?0:y,S=e.progressDot,w=S===void 0?!1:S,x=e.stepIcon,E=e.initial,R=E===void 0?0:E,O=e.icons,T=e.onChange,M=e.itemRender,_=e.items,F=_===void 0?[]:_,D=on(e,DOn),k=u==="navigation",L=u==="inline",I=L||w,A=L?"horizontal":l,N=L?void 0:C,B=I?"vertical":h,z=we(r,"".concat(r,"-").concat(A),s,(t={},ie(t,"".concat(r,"-").concat(N),N),ie(t,"".concat(r,"-label-").concat(B),A==="horizontal"),ie(t,"".concat(r,"-dot"),!!I),ie(t,"".concat(r,"-navigation"),k),ie(t,"".concat(r,"-inline"),L),t)),j=function(K){T&&b!==K&&T(K)},W=function(K,q){var X=se({},K),Q=R+q;return v==="error"&&q===b-1&&(X.className="".concat(r,"-next-error")),X.status||(Q===b?X.status=v:Q<b?X.status="finish":X.status="wait"),L&&(X.icon=void 0,X.subTitle=void 0),!X.render&&M&&(X.render=function(te){return M(X,te)}),ce.createElement(vme,V({},X,{active:Q===b,stepNumber:Q+1,stepIndex:Q,key:Q,prefixCls:r,iconPrefix:p,wrapperStyle:o,progressDot:I,stepIcon:x,icons:O,onStepClick:T&&j}))};return ce.createElement("div",V({className:z,style:o},D),F.filter(function(G){return G}).map(W))}rXe.Step=vme;const LOn=Object.freeze(Object.defineProperty({__proto__:null,Step:vme,default:rXe},Symbol.toStringTag,{value:"Module"}));var FOn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Cme=d.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,o=e.className,s=e.checked,a=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,h=e.onClick,g=e.onChange,p=e.onKeyDown,m=on(e,FOn),v=ir(!1,{value:s,defaultValue:a}),C=Ce(v,2),y=C[0],b=C[1];function S(R,O){var T=y;return l||(T=R,b(T),g==null||g(T,O)),T}function w(R){R.which===lt.LEFT?S(!1,R):R.which===lt.RIGHT&&S(!0,R),p==null||p(R)}function x(R){var O=S(!y,R);h==null||h(O,R)}var E=we(i,o,(n={},ie(n,"".concat(i,"-checked"),y),ie(n,"".concat(i,"-disabled"),l),n));return d.createElement("button",V({},m,{type:"button",role:"switch","aria-checked":y,disabled:l,className:E,ref:t,onKeyDown:w,onClick:x}),c,d.createElement("span",{className:"".concat(i,"-inner")},d.createElement("span",{className:"".concat(i,"-inner-checked")},u),d.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});Cme.displayName="Switch";const NOn=Object.freeze(Object.defineProperty({__proto__:null,default:Cme},Symbol.toStringTag,{value:"Module"})),kOn=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:s,handleSizeSM:a,calc:l}=e,c=`${t}-inner`,u=Ne(l(a).add(l(r).mul(2)).equal()),f=Ne(l(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Ne(n),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:a,height:a},[`${t}-loading-icon`]:{top:l(l(a).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:s,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Ne(l(a).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},zOn=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},BOn=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:s}=e,a=`${t}-handle`;return{[t]:{[a]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:s(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${a}`]:{insetInlineStart:`calc(100% - ${Ne(s(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${a}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${a}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},HOn=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:s,calc:a}=e,l=`${t}-inner`,c=Ne(a(s).add(a(r).mul(2)).equal()),u=Ne(a(o).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:a(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:a(r).mul(2).equal(),marginInlineEnd:a(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:a(r).mul(-1).mul(2).equal(),marginInlineEnd:a(r).mul(2).equal()}}}}}},jOn=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ii(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Ne(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Yf(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},VOn=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,s=r/2,a=2,l=o-a*2,c=s-a*2;return{trackHeight:o,trackHeightSM:s,trackMinWidth:l*2+a*4,trackMinWidthSM:c*2+a*2,trackPadding:a,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new kr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+a+a*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+a+a*2}},GOn=Yr("Switch",e=>{const t=yr(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[jOn(t),HOn(t),BOn(t),zOn(t),kOn(t)]},VOn);var WOn=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 UOn=d.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:i,loading:o,className:s,rootClassName:a,style:l,checked:c,value:u,defaultChecked:f,defaultValue:h,onChange:g}=e,p=WOn(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,v]=ir(!1,{value:c??u,defaultValue:f??h}),{getPrefixCls:C,direction:y,switch:b}=d.useContext(vn),S=d.useContext(yc),w=(i??S)||o,x=C("switch",n),E=d.createElement("div",{className:`${x}-handle`},o&&d.createElement(Tm,{className:`${x}-loading-icon`})),[R,O,T]=GOn(x),M=fl(r),_=we(b==null?void 0:b.className,{[`${x}-small`]:M==="small",[`${x}-loading`]:o,[`${x}-rtl`]:y==="rtl"},s,a,O,T),F=Object.assign(Object.assign({},b==null?void 0:b.style),l),D=function(){v(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return R(d.createElement(QI,{component:"Switch"},d.createElement(Cme,Object.assign({},p,{checked:m,onChange:D,prefixCls:x,className:_,style:F,disabled:w,ref:t,loadingIcon:E}))))}),iXe=UOn;iXe.__ANT_SWITCH=!0;var K1={},hM="rc-table-internal-hook";function yme(e){var t=d.createContext(void 0),n=function(i){var o=i.value,s=i.children,a=d.useRef(o);a.current=o;var l=d.useState(function(){return{getValue:function(){return a.current},listeners:new Set}}),c=Ce(l,1),u=c[0];return Zn(function(){fo.unstable_batchedUpdates(function(){u.listeners.forEach(function(f){f(o)})})},[o]),d.createElement(t.Provider,{value:u},s)};return{Context:t,Provider:n,defaultValue:e}}function dl(e,t){var n=Hn(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var h={};return t.forEach(function(g){h[g]=f[g]}),h}),r=d.useContext(e==null?void 0:e.Context),i=r||{},o=i.listeners,s=i.getValue,a=d.useRef();a.current=n(r?s():e==null?void 0:e.defaultValue);var l=d.useState({}),c=Ce(l,2),u=c[1];return Zn(function(){if(!r)return;function f(h){var g=n(h);Uf(a.current,g,!0)||u({})}return o.add(f),function(){o.delete(f)}},[r]),a.current}function qOn(){var e=d.createContext(null);function t(){return d.useContext(e)}function n(i,o){var s=Cd(i),a=function(c,u){var f=s?{ref:u}:{},h=d.useRef(0),g=d.useRef(c),p=t();return p!==null?d.createElement(i,V({},c,f)):((!o||o(g.current,c))&&(h.current+=1),g.current=c,d.createElement(e.Provider,{value:h.current},d.createElement(i,V({},c,f))))};return s?d.forwardRef(a):a}function r(i,o){var s=Cd(i),a=function(c,u){var f=s?{ref:u}:{};return t(),d.createElement(i,V({},c,f))};return s?d.memo(d.forwardRef(a),o):d.memo(a,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var bme=qOn(),oXe=bme.makeImmutable,Qx=bme.responseImmutable,KOn=bme.useImmutableMark,xc=yme(),sXe=d.createContext({renderWithProps:!1}),YOn="RC_TABLE_KEY";function XOn(e){return e==null?[]:Array.isArray(e)?e:[e]}function KV(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},o=i.key,s=i.dataIndex,a=o||XOn(s).join("-")||YOn;n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)}),t}function Rle(e){return e!=null}function QOn(e){return typeof e=="number"&&!Number.isNaN(e)}function ZOn(e){return e&&nn(e)==="object"&&!Array.isArray(e)&&!d.isValidElement(e)}function JOn(e,t,n,r,i,o){var s=d.useContext(sXe),a=KOn(),l=Rm(function(){if(Rle(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Bl(e,c),f=u,h=void 0;if(i){var g=i(u,e,n);ZOn(g)?(f=g.children,h=g.props,s.renderWithProps=!0):f=g}return[f,h]},[a,e,r,t,i,n],function(c,u){if(o){var f=Ce(c,2),h=f[1],g=Ce(u,2),p=g[1];return o(p,h)}return s.renderWithProps?!0:!Uf(c,u,!0)});return l}function eTn(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function tTn(e,t){return dl(xc,function(n){var r=eTn(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var nTn=function(t){var n=t.ellipsis,r=t.rowType,i=t.children,o,s=n===!0?{showTitle:!0}:n;return s&&(s.showTitle||r==="header")&&(typeof i=="string"||typeof i=="number"?o=i.toString():d.isValidElement(i)&&typeof i.props.children=="string"&&(o=i.props.children)),o};function rTn(e){var t,n,r,i,o,s,a,l,c=e.component,u=e.children,f=e.ellipsis,h=e.scope,g=e.prefixCls,p=e.className,m=e.align,v=e.record,C=e.render,y=e.dataIndex,b=e.renderIndex,S=e.shouldCellUpdate,w=e.index,x=e.rowType,E=e.colSpan,R=e.rowSpan,O=e.fixLeft,T=e.fixRight,M=e.firstFixLeft,_=e.lastFixLeft,F=e.firstFixRight,D=e.lastFixRight,k=e.appendNode,L=e.additionalProps,I=L===void 0?{}:L,A=e.isSticky,N="".concat(g,"-cell"),B=dl(xc,["supportSticky","allColumnsFixedLeft","rowHoverable"]),z=B.supportSticky,j=B.allColumnsFixedLeft,W=B.rowHoverable,G=JOn(v,y,b,u,C,S),K=Ce(G,2),q=K[0],X=K[1],Q={},te=typeof O=="number"&&z,ne=typeof T=="number"&&z;te&&(Q.position="sticky",Q.left=O),ne&&(Q.position="sticky",Q.right=T);var Z=(t=(n=(r=X==null?void 0:X.colSpan)!==null&&r!==void 0?r:I.colSpan)!==null&&n!==void 0?n:E)!==null&&t!==void 0?t:1,ee=(i=(o=(s=X==null?void 0:X.rowSpan)!==null&&s!==void 0?s:I.rowSpan)!==null&&o!==void 0?o:R)!==null&&i!==void 0?i:1,J=tTn(w,ee),oe=Ce(J,2),le=oe[0],ge=oe[1],he=Hn(function(De){var Be;v&&ge(w,w+ee-1),I==null||(Be=I.onMouseEnter)===null||Be===void 0||Be.call(I,De)}),ye=Hn(function(De){var Be;v&&ge(-1,-1),I==null||(Be=I.onMouseLeave)===null||Be===void 0||Be.call(I,De)});if(Z===0||ee===0)return null;var ue=(a=I.title)!==null&&a!==void 0?a:nTn({rowType:x,ellipsis:f,children:q}),ve=we(N,p,(l={},ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(l,"".concat(N,"-fix-left"),te&&z),"".concat(N,"-fix-left-first"),M&&z),"".concat(N,"-fix-left-last"),_&&z),"".concat(N,"-fix-left-all"),_&&j&&z),"".concat(N,"-fix-right"),ne&&z),"".concat(N,"-fix-right-first"),F&&z),"".concat(N,"-fix-right-last"),D&&z),"".concat(N,"-ellipsis"),f),"".concat(N,"-with-append"),k),"".concat(N,"-fix-sticky"),(te||ne)&&A&&z),ie(l,"".concat(N,"-row-hover"),!X&&le)),I.className,X==null?void 0:X.className),de={};m&&(de.textAlign=m);var xe=se(se(se(se({},X==null?void 0:X.style),Q),de),I.style),Ee=q;return nn(Ee)==="object"&&!Array.isArray(Ee)&&!d.isValidElement(Ee)&&(Ee=null),f&&(_||F)&&(Ee=d.createElement("span",{className:"".concat(N,"-content")},Ee)),d.createElement(c,V({},X,I,{className:ve,style:xe,title:ue,scope:h,onMouseEnter:W?he:void 0,onMouseLeave:W?ye:void 0,colSpan:Z!==1?Z:null,rowSpan:ee!==1?ee:null}),k,Ee)}const Zx=d.memo(rTn);function Sme(e,t,n,r,i){var o=n[e]||{},s=n[t]||{},a,l;o.fixed==="left"?a=r.left[i==="rtl"?t:e]:s.fixed==="right"&&(l=r.right[i==="rtl"?e:t]);var c=!1,u=!1,f=!1,h=!1,g=n[t+1],p=n[e-1],m=g&&!g.fixed||p&&!p.fixed||n.every(function(S){return S.fixed==="left"});if(i==="rtl"){if(a!==void 0){var v=p&&p.fixed==="left";h=!v&&m}else if(l!==void 0){var C=g&&g.fixed==="right";f=!C&&m}}else if(a!==void 0){var y=g&&g.fixed==="left";c=!y&&m}else if(l!==void 0){var b=p&&p.fixed==="right";u=!b&&m}return{fixLeft:a,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:f,firstFixLeft:h,isSticky:r.isSticky}}var aXe=d.createContext({});function iTn(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,o=i===void 0?1:i,s=e.rowSpan,a=e.align,l=dl(xc,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,f=d.useContext(aXe),h=f.scrollColumnIndex,g=f.stickyOffsets,p=f.flattenColumns,m=n+o-1,v=m+1===h?o+1:o,C=Sme(n,n+v-1,p,g,u);return d.createElement(Zx,V({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:a,colSpan:v,rowSpan:s,render:function(){return r}},C))}var oTn=["children"];function sTn(e){var t=e.children,n=on(e,oTn);return d.createElement("tr",n,t)}function YV(e){var t=e.children;return t}YV.Row=sTn;YV.Cell=iTn;function aTn(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=dl(xc,"prefixCls"),o=r.length-1,s=r[o],a=d.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:s!=null&&s.scrollbar?o:null}},[s,r,o,n]);return d.createElement(aXe.Provider,{value:a},d.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const MD=Qx(aTn);var lXe=YV;function cXe(e){return null}function uXe(e){return null}function dXe(e,t,n,r,i,o,s){e.push({record:t,indent:n,index:s});var a=o(t),l=i==null?void 0:i.has(a);if(t&&Array.isArray(t[r])&&l)for(var c=0;c<t[r].length;c+=1)dXe(e,t[r][c],n+1,r,i,o,c)}function fXe(e,t,n,r){var i=d.useMemo(function(){if(n!=null&&n.size){for(var o=[],s=0;s<(e==null?void 0:e.length);s+=1){var a=e[s];dXe(o,a,0,t,n,r,s)}return o}return e==null?void 0:e.map(function(l,c){return{record:l,indent:0,index:c}})},[e,t,n,r]);return i}function hXe(e,t,n,r){var i=dl(xc,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),o=i.flattenColumns,s=i.expandableType,a=i.expandedKeys,l=i.childrenColumnName,c=i.onTriggerExpand,u=i.rowExpandable,f=i.onRow,h=i.expandRowByClick,g=i.rowClassName,p=s==="nest",m=s==="row"&&(!u||u(e)),v=m||p,C=a&&a.has(t),y=l&&e&&e[l],b=Hn(c),S=f==null?void 0:f(e,n),w=S==null?void 0:S.onClick,x=function(T){h&&v&&c(e,T);for(var M=arguments.length,_=new Array(M>1?M-1:0),F=1;F<M;F++)_[F-1]=arguments[F];w==null||w.apply(void 0,[T].concat(_))},E;typeof g=="string"?E=g:typeof g=="function"&&(E=g(e,n,r));var R=KV(o);return se(se({},i),{},{columnsKey:R,nestExpandable:p,expanded:C,hasNestChildren:y,record:e,onTriggerExpand:b,rowSupportExpand:m,expandable:v,rowProps:se(se({},S),{},{className:we(E,S==null?void 0:S.className),onClick:x})})}function gXe(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,o=e.className,s=e.expanded,a=e.colSpan,l=e.isEmpty,c=dl(xc,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),u=c.scrollbarSize,f=c.fixHeader,h=c.fixColumn,g=c.componentWidth,p=c.horizonScroll,m=n;return(l?p&&g:h)&&(m=d.createElement("div",{style:{width:g-(f&&!l?u:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},m)),d.createElement(r,{className:o,style:{display:s?null:"none"}},d.createElement(Zx,{component:i,prefixCls:t,colSpan:a},m))}function lTn(e){var t=e.prefixCls,n=e.record,r=e.onExpand,i=e.expanded,o=e.expandable,s="".concat(t,"-row-expand-icon");if(!o)return d.createElement("span",{className:we(s,"".concat(t,"-row-spaced"))});var a=function(c){r(n,c),c.stopPropagation()};return d.createElement("span",{className:we(s,ie(ie({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:a})}function cTn(e,t,n){var r=[];function i(o){(o||[]).forEach(function(s,a){r.push(t(s,a)),i(s[n])})}return i(e),r}function pXe(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function mXe(e,t,n,r,i){var o=e.record,s=e.prefixCls,a=e.columnsKey,l=e.fixedInfoList,c=e.expandIconColumnIndex,u=e.nestExpandable,f=e.indentSize,h=e.expandIcon,g=e.expanded,p=e.hasNestChildren,m=e.onTriggerExpand,v=a[n],C=l[n],y;n===(c||0)&&u&&(y=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(s,"-row-indent indent-level-").concat(r)}),h({prefixCls:s,expanded:g,expandable:p,record:o,onExpand:m})));var b;return t.onCell&&(b=t.onCell(o,i)),{key:v,fixedInfo:C,appendCellNode:y,additionalCellProps:b||{}}}function uTn(e){var t=e.className,n=e.style,r=e.record,i=e.index,o=e.renderIndex,s=e.rowKey,a=e.indent,l=a===void 0?0:a,c=e.rowComponent,u=e.cellComponent,f=e.scopeCellComponent,h=hXe(r,s,i,l),g=h.prefixCls,p=h.flattenColumns,m=h.expandedRowClassName,v=h.expandedRowRender,C=h.rowProps,y=h.expanded,b=h.rowSupportExpand,S=d.useRef(!1);S.current||(S.current=y);var w=pXe(m,r,i,l),x=d.createElement(c,V({},C,{"data-row-key":s,className:we(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(l),C==null?void 0:C.className,ie({},w,l>=1)),style:se(se({},n),C==null?void 0:C.style)}),p.map(function(O,T){var M=O.render,_=O.dataIndex,F=O.className,D=mXe(h,O,T,l,i),k=D.key,L=D.fixedInfo,I=D.appendCellNode,A=D.additionalCellProps;return d.createElement(Zx,V({className:F,ellipsis:O.ellipsis,align:O.align,scope:O.rowScope,component:O.rowScope?f:u,prefixCls:g,key:k,record:r,index:i,renderIndex:o,dataIndex:_,render:M,shouldCellUpdate:O.shouldCellUpdate},L,{appendNode:I,additionalProps:A}))})),E;if(b&&(S.current||y)){var R=v(r,i,l+1,y);E=d.createElement(gXe,{expanded:y,className:we("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(l+1),w),prefixCls:g,component:c,cellComponent:u,colSpan:p.length,isEmpty:!1},R)}return d.createElement(d.Fragment,null,x,E)}const dTn=Qx(uTn);function fTn(e){var t=e.columnKey,n=e.onColumnResize,r=d.useRef();return d.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),d.createElement(oa,{data:t},d.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function hTn(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return d.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},d.createElement(oa.Collection,{onBatchResize:function(o){o.forEach(function(s){var a=s.data,l=s.size;r(a,l.offsetWidth)})}},n.map(function(i){return d.createElement(fTn,{key:i,columnKey:i,onColumnResize:r})})))}function gTn(e){var t=e.data,n=e.measureColumnWidth,r=dl(xc,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,o=r.getComponent,s=r.onColumnResize,a=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,f=r.emptyNode,h=fXe(t,u,c,l),g=d.useRef({renderWithProps:!1}),p=o(["body","wrapper"],"tbody"),m=o(["body","row"],"tr"),v=o(["body","cell"],"td"),C=o(["body","cell"],"th"),y;t.length?y=h.map(function(S,w){var x=S.record,E=S.indent,R=S.index,O=l(x,w);return d.createElement(dTn,{key:O,rowKey:O,record:x,index:w,renderIndex:R,rowComponent:m,cellComponent:v,scopeCellComponent:C,indent:E})}):y=d.createElement(gXe,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:m,cellComponent:v,colSpan:a.length,isEmpty:!0},f);var b=KV(a);return d.createElement(sXe.Provider,{value:g.current},d.createElement(p,{className:"".concat(i,"-tbody")},n&&d.createElement(hTn,{prefixCls:i,columnsKey:b,onColumnResize:s}),y))}const pTn=Qx(gTn);var mTn=["expandable"],wme="RC_TABLE_INTERNAL_COL_DEFINE";function vTn(e){var t=e.expandable,n=on(e,mTn),r;return"expandable"in e?r=se(se({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var CTn=["columnType"];function vXe(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=dl(xc,["tableLayout"]),o=i.tableLayout,s=[],a=r||n.length,l=!1,c=a-1;c>=0;c-=1){var u=t[c],f=n&&n[c],h=void 0,g=void 0;if(f&&(h=f[wme],o==="auto"&&(g=f.minWidth)),u||g||h||l){var p=h||{};p.columnType;var m=on(p,CTn);s.unshift(d.createElement("col",V({key:c,style:{width:u,minWidth:g}},m))),l=!0}}return d.createElement("colgroup",null,s)}var yTn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function bTn(e,t){return d.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var i=e[r];if(i!==void 0)n[r]=i;else return null}return n},[e.join("_"),t])}var STn=d.forwardRef(function(e,t){var n=e.className,r=e.noData,i=e.columns,o=e.flattenColumns,s=e.colWidths,a=e.columCount,l=e.stickyOffsets,c=e.direction,u=e.fixHeader,f=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,p=e.onScroll,m=e.maxContentScroll,v=e.children,C=on(e,yTn),y=dl(xc,["prefixCls","scrollbarSize","isSticky","getComponent"]),b=y.prefixCls,S=y.scrollbarSize,w=y.isSticky,x=y.getComponent,E=x(["header","table"],"table"),R=w&&!u?0:S,O=d.useRef(null),T=d.useCallback(function(A){CT(t,A),CT(O,A)},[]);d.useEffect(function(){var A;function N(B){var z=B,j=z.currentTarget,W=z.deltaX;W&&(p({currentTarget:j,scrollLeft:j.scrollLeft+W}),B.preventDefault())}return(A=O.current)===null||A===void 0||A.addEventListener("wheel",N,{passive:!1}),function(){var B;(B=O.current)===null||B===void 0||B.removeEventListener("wheel",N)}},[]);var M=d.useMemo(function(){return o.every(function(A){return A.width})},[o]),_=o[o.length-1],F={fixed:_?_.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(b,"-cell-scrollbar")}}},D=d.useMemo(function(){return R?[].concat(ut(i),[F]):i},[R,i]),k=d.useMemo(function(){return R?[].concat(ut(o),[F]):o},[R,o]),L=d.useMemo(function(){var A=l.right,N=l.left;return se(se({},l),{},{left:c==="rtl"?[].concat(ut(N.map(function(B){return B+R})),[0]):N,right:c==="rtl"?A:[].concat(ut(A.map(function(B){return B+R})),[0]),isSticky:w})},[R,l,w]),I=bTn(s,a);return d.createElement("div",{style:se({overflow:"hidden"},w?{top:f,bottom:h}:{}),ref:T,className:we(n,ie({},g,!!g))},d.createElement(E,{style:{tableLayout:"fixed",visibility:r||I?null:"hidden"}},(!r||!m||M)&&d.createElement(vXe,{colWidths:I?[].concat(ut(I),[R]):[],columCount:a+1,columns:k}),v(se(se({},C),{},{stickyOffsets:L,columns:D,flattenColumns:k}))))});const nxe=d.memo(STn);var wTn=function(t){var n=t.cells,r=t.stickyOffsets,i=t.flattenColumns,o=t.rowComponent,s=t.cellComponent,a=t.onHeaderRow,l=t.index,c=dl(xc,["prefixCls","direction"]),u=c.prefixCls,f=c.direction,h;a&&(h=a(n.map(function(p){return p.column}),l));var g=KV(n.map(function(p){return p.column}));return d.createElement(o,h,n.map(function(p,m){var v=p.column,C=Sme(p.colStart,p.colEnd,i,r,f),y;return v&&v.onHeaderCell&&(y=p.column.onHeaderCell(v)),d.createElement(Zx,V({},p,{scope:v.title?p.colSpan>1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:s,prefixCls:u,key:g[m]},C,{additionalProps:y,rowType:"header"}))}))};function xTn(e){var t=[];function n(s,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=a,u=s.filter(Boolean).map(function(f){var h={key:f.key,className:f.className||"",children:f.title,column:f,colStart:c},g=1,p=f.children;return p&&p.length>0&&(g=n(p,c,l+1).reduce(function(m,v){return m+v},0),h.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(h.rowSpan=f.rowSpan),h.colSpan=g,h.colEnd=h.colStart+g-1,t[l].push(h),c+=g,g});return u}n(e,0);for(var r=t.length,i=function(a){t[a].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-a)})},o=0;o<r;o+=1)i(o);return t}var ETn=function(t){var n=t.stickyOffsets,r=t.columns,i=t.flattenColumns,o=t.onHeaderRow,s=dl(xc,["prefixCls","getComponent"]),a=s.prefixCls,l=s.getComponent,c=d.useMemo(function(){return xTn(r)},[r]),u=l(["header","wrapper"],"thead"),f=l(["header","row"],"tr"),h=l(["header","cell"],"th");return d.createElement(u,{className:"".concat(a,"-thead")},c.map(function(g,p){var m=d.createElement(wTn,{key:p,flattenColumns:i,cells:g,stickyOffsets:n,rowComponent:f,cellComponent:h,onHeaderRow:o,index:p});return m}))};const rxe=Qx(ETn);function ixe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function RTn(e,t,n){return d.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(h){var g=ixe(t,h.width);g?r+=g:i+=1});var o=Math.max(t,n),s=Math.max(o-r,i),a=i,l=s/i,c=0,u=e.map(function(h){var g=se({},h),p=ixe(t,g.width);if(p)g.width=p;else{var m=Math.floor(l);g.width=a===1?s:m,s-=m,a-=1}return c+=g.width,g});if(c<o){var f=o/c;s=o,u.forEach(function(h,g){var p=Math.floor(h.width*f);h.width=g===u.length-1?s:p,s-=p})}return[u,Math.max(c,o)]}return[e,t]},[e,t,n])}var $Tn=["children"],OTn=["fixed"];function CXe(e){return Rs(e).filter(function(t){return d.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,i=r.children,o=on(r,$Tn),s=se({key:n},o);return i&&(s.children=CXe(i)),s})}function yXe(e){return e.filter(function(t){return t&&nn(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?se(se({},t),{},{children:yXe(n)}):t})}function $le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&nn(n)==="object"}).reduce(function(n,r,i){var o=r.fixed,s=o===!0?"left":o,a="".concat(t,"-").concat(i),l=r.children;return l&&l.length>0?[].concat(ut(n),ut($le(l,a).map(function(c){return se({fixed:s},c)}))):[].concat(ut(n),[se(se({key:a},r),{},{fixed:s})])},[])}function TTn(e){return e.map(function(t){var n=t.fixed,r=on(t,OTn),i=n;return n==="left"?i="right":n==="right"&&(i="left"),se({fixed:i},r)})}function ITn(e,t){var n=e.prefixCls,r=e.columns,i=e.children,o=e.expandable,s=e.expandedKeys,a=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,h=e.expandIconColumnIndex,g=e.direction,p=e.expandRowByClick,m=e.columnWidth,v=e.fixed,C=e.scrollWidth,y=e.clientWidth,b=d.useMemo(function(){var _=r||CXe(i)||[];return yXe(_.slice())},[r,i]),S=d.useMemo(function(){if(o){var _=b.slice();if(!_.includes(K1)){var F=h||0;F>=0&&(F||v==="left"||!v)&&_.splice(F,0,K1),v==="right"&&_.splice(b.length,0,K1)}var D=_.indexOf(K1);_=_.filter(function(A,N){return A!==K1||N===D});var k=b[D],L;v?L=v:L=k?k.fixed:null;var I=ie(ie(ie(ie(ie(ie({},wme,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",a),"fixed",L),"className","".concat(n,"-row-expand-icon-cell")),"width",m),"render",function(N,B,z){var j=l(B,z),W=s.has(j),G=f?f(B):!0,K=u({prefixCls:n,expanded:W,expandable:G,record:B,onExpand:c});return p?d.createElement("span",{onClick:function(X){return X.stopPropagation()}},K):K});return _.map(function(A){return A===K1?I:A})}return b.filter(function(A){return A!==K1})},[o,b,l,s,u,g]),w=d.useMemo(function(){var _=S;return t&&(_=t(_)),_.length||(_=[{render:function(){return null}}]),_},[t,S,g]),x=d.useMemo(function(){return g==="rtl"?TTn($le(w)):$le(w)},[w,g,C]),E=d.useMemo(function(){for(var _=-1,F=x.length-1;F>=0;F-=1){var D=x[F].fixed;if(D==="left"||D===!0){_=F;break}}if(_>=0)for(var k=0;k<=_;k+=1){var L=x[k].fixed;if(L!=="left"&&L!==!0)return!0}var I=x.findIndex(function(B){var z=B.fixed;return z==="right"});if(I>=0)for(var A=I;A<x.length;A+=1){var N=x[A].fixed;if(N!=="right")return!0}return!1},[x]),R=RTn(x,C,y),O=Ce(R,2),T=O[0],M=O[1];return[w,T,M,E]}function MTn(e,t,n){var r=vTn(e),i=r.expandIcon,o=r.expandedRowKeys,s=r.defaultExpandedRowKeys,a=r.defaultExpandAllRows,l=r.expandedRowRender,c=r.onExpand,u=r.onExpandedRowsChange,f=r.childrenColumnName,h=i||lTn,g=f||"children",p=d.useMemo(function(){return l?"row":e.expandable&&e.internalHooks===hM&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(w){return w&&nn(w)==="object"&&w[g]})?"nest":!1},[!!l,t]),m=d.useState(function(){return s||(a?cTn(t,n,g):[])}),v=Ce(m,2),C=v[0],y=v[1],b=d.useMemo(function(){return new Set(o||C||[])},[o,C]),S=d.useCallback(function(w){var x=n(w,t.indexOf(w)),E,R=b.has(x);R?(b.delete(x),E=ut(b)):E=[].concat(ut(b),[x]),y(E),c&&c(!R,w),u&&u(E)},[n,b,t,c,u]);return[r,p,b,h,g,S]}function PTn(e,t,n){var r=e.map(function(i,o){return Sme(o,o,e,t,n)});return Rm(function(){return r},[r],function(i,o){return!Uf(i,o)})}function bXe(e){var t=d.useRef(e),n=d.useState({}),r=Ce(n,2),i=r[1],o=d.useRef(null),s=d.useRef([]);function a(l){s.current.push(l);var c=Promise.resolve();o.current=c,c.then(function(){if(o.current===c){var u=s.current,f=t.current;s.current=[],u.forEach(function(h){t.current=h(t.current)}),o.current=null,f!==t.current&&i({})}})}return d.useEffect(function(){return function(){o.current=null}},[]),[t.current,a]}function _Tn(e){var t=d.useRef(null),n=d.useRef();function r(){window.clearTimeout(n.current)}function i(s){t.current=s,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function o(){return t.current}return d.useEffect(function(){return r},[]),[i,o]}function ATn(){var e=d.useState(-1),t=Ce(e,2),n=t[0],r=t[1],i=d.useState(-1),o=Ce(i,2),s=o[0],a=o[1],l=d.useCallback(function(c,u){r(c),a(u)},[]);return[n,s,l]}var oxe=Bs()?window:null;function DTn(e,t){var n=nn(e)==="object"?e:{},r=n.offsetHeader,i=r===void 0?0:r,o=n.offsetSummary,s=o===void 0?0:o,a=n.offsetScroll,l=a===void 0?0:a,c=n.getContainer,u=c===void 0?function(){return oxe}:c,f=u()||oxe,h=!!e;return d.useMemo(function(){return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:s,offsetScroll:l,container:f}},[h,l,i,s,t,f])}function LTn(e,t,n){var r=d.useMemo(function(){var i=t.length,o=function(c,u,f){for(var h=[],g=0,p=c;p!==u;p+=f)h.push(g),t[p].fixed&&(g+=e[p]||0);return h},s=o(0,i,1),a=o(i-1,-1,-1).reverse();return n==="rtl"?{left:a,right:s}:{left:s,right:a}},[e,t,n]);return r}function sxe(e){var t=e.className,n=e.children;return d.createElement("div",{className:t},n)}var FTn=function(t,n){var r,i,o=t.scrollBodyRef,s=t.onScroll,a=t.offsetScroll,l=t.container,c=t.direction,u=dl(xc,"prefixCls"),f=((r=o.current)===null||r===void 0?void 0:r.scrollWidth)||0,h=((i=o.current)===null||i===void 0?void 0:i.clientWidth)||0,g=f&&h*(h/f),p=d.useRef(),m=bXe({scrollLeft:0,isHiddenScrollBar:!0}),v=Ce(m,2),C=v[0],y=v[1],b=d.useRef({delta:0,x:0}),S=d.useState(!1),w=Ce(S,2),x=w[0],E=w[1],R=d.useRef(null);d.useEffect(function(){return function(){Rr.cancel(R.current)}},[]);var O=function(){E(!1)},T=function(k){k.persist(),b.current.delta=k.pageX-C.scrollLeft,b.current.x=0,E(!0),k.preventDefault()},M=function(k){var L,I=k||((L=window)===null||L===void 0?void 0:L.event),A=I.buttons;if(!x||A===0){x&&E(!1);return}var N=b.current.x+k.pageX-b.current.x-b.current.delta,B=c==="rtl";N=Math.max(B?g-h:0,Math.min(B?0:h-g,N));var z=!B||Math.abs(N)+Math.abs(g)<h;z&&(s({scrollLeft:N/h*(f+2)}),b.current.x=k.pageX)},_=function(){R.current=Rr(function(){if(o.current){var k=ble(o.current).top,L=k+o.current.offsetHeight,I=l===window?document.documentElement.scrollTop+window.innerHeight:ble(l).top+l.clientHeight;L-kSe()<=I||k>=I-a?y(function(A){return se(se({},A),{},{isHiddenScrollBar:!0})}):y(function(A){return se(se({},A),{},{isHiddenScrollBar:!1})})}})},F=function(k){y(function(L){return se(se({},L),{},{scrollLeft:k/f*h||0})})};return d.useImperativeHandle(n,function(){return{setScrollLeft:F,checkScrollBarVisible:_}}),d.useEffect(function(){var D=Yp(document.body,"mouseup",O,!1),k=Yp(document.body,"mousemove",M,!1);return _(),function(){D.remove(),k.remove()}},[g,x]),d.useEffect(function(){var D=Yp(l,"scroll",_,!1),k=Yp(window,"resize",_,!1);return function(){D.remove(),k.remove()}},[l]),d.useEffect(function(){C.isHiddenScrollBar||y(function(D){var k=o.current;return k?se(se({},D),{},{scrollLeft:k.scrollLeft/k.scrollWidth*k.clientWidth}):D})},[C.isHiddenScrollBar]),f<=h||!g||C.isHiddenScrollBar?null:d.createElement("div",{style:{height:kSe(),width:h,bottom:a},className:"".concat(u,"-sticky-scroll")},d.createElement("div",{onMouseDown:T,ref:p,className:we("".concat(u,"-sticky-scroll-bar"),ie({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))};const NTn=d.forwardRef(FTn);var SXe="rc-table",kTn=[],zTn={};function BTn(){return"No Data"}function HTn(e,t){var n=se({rowKey:"key",prefixCls:SXe,emptyText:BTn},e),r=n.prefixCls,i=n.className,o=n.rowClassName,s=n.style,a=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,f=n.direction,h=n.title,g=n.footer,p=n.summary,m=n.caption,v=n.id,C=n.showHeader,y=n.components,b=n.emptyText,S=n.onRow,w=n.onHeaderRow,x=n.onScroll,E=n.internalHooks,R=n.transformColumns,O=n.internalRefs,T=n.tailor,M=n.getContainerWidth,_=n.sticky,F=n.rowHoverable,D=F===void 0?!0:F,k=a||kTn,L=!!k.length,I=E===hM,A=d.useCallback(function(Bn,rn){return Bl(y,Bn)||rn},[y]),N=d.useMemo(function(){return typeof l=="function"?l:function(Bn){var rn=Bn&&Bn[l];return rn}},[l]),B=A(["body"]),z=ATn(),j=Ce(z,3),W=j[0],G=j[1],K=j[2],q=MTn(n,k,N),X=Ce(q,6),Q=X[0],te=X[1],ne=X[2],Z=X[3],ee=X[4],J=X[5],oe=c==null?void 0:c.x,le=d.useState(0),ge=Ce(le,2),he=ge[0],ye=ge[1],ue=ITn(se(se(se({},n),Q),{},{expandable:!!Q.expandedRowRender,columnTitle:Q.columnTitle,expandedKeys:ne,getRowKey:N,onTriggerExpand:J,expandIcon:Z,expandIconColumnIndex:Q.expandIconColumnIndex,direction:f,scrollWidth:I&&T&&typeof oe=="number"?oe:null,clientWidth:he}),I?R:null),ve=Ce(ue,4),de=ve[0],xe=ve[1],Ee=ve[2],De=ve[3],Be=Ee??oe,Ge=d.useMemo(function(){return{columns:de,flattenColumns:xe}},[de,xe]),Ue=d.useRef(),We=d.useRef(),Ve=d.useRef(),Fe=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:Ue.current,scrollTo:function(rn){var En;if(Ve.current instanceof HTMLElement){var In=rn.index,jn=rn.top,si=rn.key;if(QOn(jn)){var To;(To=Ve.current)===null||To===void 0||To.scrollTo({top:jn})}else{var Oi,pa=si??N(k[In]);(Oi=Ve.current.querySelector('[data-row-key="'.concat(pa,'"]')))===null||Oi===void 0||Oi.scrollIntoView()}}else(En=Ve.current)!==null&&En!==void 0&&En.scrollTo&&Ve.current.scrollTo(rn)}}});var ke=d.useRef(),Ye=d.useState(!1),ze=Ce(Ye,2),Re=ze[0],Le=ze[1],Me=d.useState(!1),be=Ce(Me,2),je=be[0],Xe=be[1],ft=bXe(new Map),Tt=Ce(ft,2),tt=Tt[0],pt=Tt[1],$t=KV(xe),wt=$t.map(function(Bn){return tt.get(Bn)}),It=d.useMemo(function(){return wt},[wt.join("_")]),Ct=LTn(It,xe,f),ot=c&&Rle(c.y),nt=c&&Rle(Be)||!!Q.fixed,fe=nt&&xe.some(function(Bn){var rn=Bn.fixed;return rn}),Te=d.useRef(),$e=DTn(_,r),He=$e.isSticky,it=$e.offsetHeader,at=$e.offsetSummary,gt=$e.offsetScroll,yt=$e.stickyClassName,st=$e.container,Ze=d.useMemo(function(){return p==null?void 0:p(k)},[p,k]),dt=(ot||He)&&d.isValidElement(Ze)&&Ze.type===YV&&Ze.props.fixed,At,kt,pn;ot&&(kt={overflowY:L?"scroll":"auto",maxHeight:c.y}),nt&&(At={overflowX:"auto"},ot||(kt={overflowY:"hidden"}),pn={width:Be===!0?"auto":Be,minWidth:"100%"});var ln=d.useCallback(function(Bn,rn){Gx(Ue.current)&&pt(function(En){if(En.get(Bn)!==rn){var In=new Map(En);return In.set(Bn,rn),In}return En})},[]),Lt=_Tn(),xt=Ce(Lt,2),Rt=xt[0],Ft=xt[1];function hn(Bn,rn){rn&&(typeof rn=="function"?rn(Bn):rn.scrollLeft!==Bn&&(rn.scrollLeft=Bn,rn.scrollLeft!==Bn&&setTimeout(function(){rn.scrollLeft=Bn},0)))}var Mt=Hn(function(Bn){var rn=Bn.currentTarget,En=Bn.scrollLeft,In=f==="rtl",jn=typeof En=="number"?En:rn.scrollLeft,si=rn||zTn;if(!Ft()||Ft()===si){var To;Rt(si),hn(jn,We.current),hn(jn,Ve.current),hn(jn,ke.current),hn(jn,(To=Te.current)===null||To===void 0?void 0:To.setScrollLeft)}var Oi=rn||We.current;if(Oi){var pa=I&&T&&typeof Be=="number"?Be:Oi.scrollWidth,vl=Oi.clientWidth;if(pa===vl){Le(!1),Xe(!1);return}In?(Le(-jn<pa-vl),Xe(-jn>0)):(Le(jn>0),Xe(jn<pa-vl))}}),mt=Hn(function(Bn){Mt(Bn),x==null||x(Bn)}),jt=function(){if(nt&&Ve.current){var rn;Mt({currentTarget:Oge(Ve.current),scrollLeft:(rn=Ve.current)===null||rn===void 0?void 0:rn.scrollLeft})}else Le(!1),Xe(!1)},tn=function(rn){var En,In=rn.width;(En=Te.current)===null||En===void 0||En.checkScrollBarVisible();var jn=Ue.current?Ue.current.offsetWidth:In;I&&M&&Ue.current&&(jn=M(Ue.current,jn)||jn),jn!==he&&(jt(),ye(jn))},Cn=d.useRef(!1);d.useEffect(function(){Cn.current&&jt()},[nt,a,de.length]),d.useEffect(function(){Cn.current=!0},[]);var Ln=d.useState(0),cn=Ce(Ln,2),Dt=cn[0],sn=cn[1],Sn=d.useState(!0),Tn=Ce(Sn,2),Jn=Tn[0],Ar=Tn[1];d.useEffect(function(){(!T||!I)&&(Ve.current instanceof Element?sn(zae(Ve.current).width):sn(zae(Fe.current).width)),Ar(Xae("position","sticky"))},[]),d.useEffect(function(){I&&O&&(O.body.current=Ve.current)});var Vr=d.useCallback(function(Bn){return d.createElement(d.Fragment,null,d.createElement(rxe,Bn),dt==="top"&&d.createElement(MD,Bn,Ze))},[dt,Ze]),Ui=d.useCallback(function(Bn){return d.createElement(MD,Bn,Ze)},[Ze]),Bi=A(["table"],"table"),Gr=d.useMemo(function(){return u||(fe?Be==="max-content"?"auto":"fixed":ot||He||xe.some(function(Bn){var rn=Bn.ellipsis;return rn})?"fixed":"auto")},[ot,fe,xe,u,He]),Fi,bn={colWidths:It,columCount:xe.length,stickyOffsets:Ct,onHeaderRow:w,fixHeader:ot,scroll:c},Qt=d.useMemo(function(){return L?null:typeof b=="function"?b():b},[L,b]),Wn=d.createElement(pTn,{data:k,measureColumnWidth:ot||nt||He}),$r=d.createElement(vXe,{colWidths:xe.map(function(Bn){var rn=Bn.width;return rn}),columns:xe}),Yt=m!=null?d.createElement("caption",{className:"".concat(r,"-caption")},m):void 0,Jt=$o(n,{data:!0}),sr=$o(n,{aria:!0});if(ot||He){var br;typeof B=="function"?(br=B(k,{scrollbarSize:Dt,ref:Ve,onScroll:Mt}),bn.colWidths=xe.map(function(Bn,rn){var En=Bn.width,In=rn===xe.length-1?En-Dt:En;return typeof In=="number"&&!Number.isNaN(In)?In:0})):br=d.createElement("div",{style:se(se({},At),kt),onScroll:mt,ref:Ve,className:we("".concat(r,"-body"))},d.createElement(Bi,V({style:se(se({},pn),{},{tableLayout:Gr})},sr),Yt,$r,Wn,!dt&&Ze&&d.createElement(MD,{stickyOffsets:Ct,flattenColumns:xe},Ze)));var Jr=se(se(se({noData:!k.length,maxContentScroll:nt&&Be==="max-content"},bn),Ge),{},{direction:f,stickyClassName:yt,onScroll:Mt});Fi=d.createElement(d.Fragment,null,C!==!1&&d.createElement(nxe,V({},Jr,{stickyTopOffset:it,className:"".concat(r,"-header"),ref:We}),Vr),br,dt&&dt!=="top"&&d.createElement(nxe,V({},Jr,{stickyBottomOffset:at,className:"".concat(r,"-summary"),ref:ke}),Ui),He&&Ve.current&&Ve.current instanceof Element&&d.createElement(NTn,{ref:Te,offsetScroll:gt,scrollBodyRef:Ve,onScroll:Mt,container:st,direction:f}))}else Fi=d.createElement("div",{style:se(se({},At),kt),className:we("".concat(r,"-content")),onScroll:Mt,ref:Ve},d.createElement(Bi,V({style:se(se({},pn),{},{tableLayout:Gr})},sr),Yt,$r,C!==!1&&d.createElement(rxe,V({},bn,Ge)),Wn,Ze&&d.createElement(MD,{stickyOffsets:Ct,flattenColumns:xe},Ze)));var oi=d.createElement("div",V({className:we(r,i,ie(ie(ie(ie(ie(ie(ie(ie(ie(ie({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),Re),"".concat(r,"-ping-right"),je),"".concat(r,"-layout-fixed"),u==="fixed"),"".concat(r,"-fixed-header"),ot),"".concat(r,"-fixed-column"),fe),"".concat(r,"-fixed-column-gapped"),fe&&De),"".concat(r,"-scroll-horizontal"),nt),"".concat(r,"-has-fix-left"),xe[0]&&xe[0].fixed),"".concat(r,"-has-fix-right"),xe[xe.length-1]&&xe[xe.length-1].fixed==="right")),style:s,id:v,ref:Ue},Jt),h&&d.createElement(sxe,{className:"".concat(r,"-title")},h(k)),d.createElement("div",{ref:Fe,className:"".concat(r,"-container")},Fi),g&&d.createElement(sxe,{className:"".concat(r,"-footer")},g(k)));nt&&(oi=d.createElement(oa,{onResize:tn},oi));var Br=PTn(xe,Ct,f),Pi=d.useMemo(function(){return{scrollX:Be,prefixCls:r,getComponent:A,scrollbarSize:Dt,direction:f,fixedInfoList:Br,isSticky:He,supportSticky:Jn,componentWidth:he,fixHeader:ot,fixColumn:fe,horizonScroll:nt,tableLayout:Gr,rowClassName:o,expandedRowClassName:Q.expandedRowClassName,expandIcon:Z,expandableType:te,expandRowByClick:Q.expandRowByClick,expandedRowRender:Q.expandedRowRender,onTriggerExpand:J,expandIconColumnIndex:Q.expandIconColumnIndex,indentSize:Q.indentSize,allColumnsFixedLeft:xe.every(function(Bn){return Bn.fixed==="left"}),emptyNode:Qt,columns:de,flattenColumns:xe,onColumnResize:ln,hoverStartRow:W,hoverEndRow:G,onHover:K,rowExpandable:Q.rowExpandable,onRow:S,getRowKey:N,expandedKeys:ne,childrenColumnName:ee,rowHoverable:D}},[Be,r,A,Dt,f,Br,He,Jn,he,ot,fe,nt,Gr,o,Q.expandedRowClassName,Z,te,Q.expandRowByClick,Q.expandedRowRender,J,Q.expandIconColumnIndex,Q.indentSize,Qt,de,xe,ln,W,G,K,Q.rowExpandable,S,N,ne,ee,D]);return d.createElement(xc.Provider,{value:Pi},oi)}var jTn=d.forwardRef(HTn);function wXe(e){return oXe(jTn,e)}var Vy=wXe();Vy.EXPAND_COLUMN=K1;Vy.INTERNAL_HOOKS=hM;Vy.Column=cXe;Vy.ColumnGroup=uXe;Vy.Summary=lXe;var xme=yme(null),xXe=yme(null);function VTn(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function GTn(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,o=e.index,s=e.component,a=e.renderIndex,l=e.record,c=e.style,u=e.className,f=e.inverse,h=e.getHeight,g=n.render,p=n.dataIndex,m=n.className,v=n.width,C=dl(xXe,["columnsOffset"]),y=C.columnsOffset,b=mXe(t,n,r,i,o),S=b.key,w=b.fixedInfo,x=b.appendCellNode,E=b.additionalCellProps,R=E.style,O=E.colSpan,T=O===void 0?1:O,M=E.rowSpan,_=M===void 0?1:M,F=r-1,D=VTn(F,T,y),k=T>1?v-D:0,L=se(se(se({},R),c),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:k,pointerEvents:"auto"}),I=d.useMemo(function(){return f?_<=1:T===0||_===0||_>1},[_,T,f]);I?L.visibility="hidden":f&&(L.height=h==null?void 0:h(_));var A=I?function(){return null}:g,N={};return(_===0||T===0)&&(N.rowSpan=1,N.colSpan=1),d.createElement(Zx,V({className:we(m,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:S,record:l,index:o,renderIndex:a,dataIndex:p,render:A,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:x,additionalProps:se(se({},E),{},{style:L},N)}))}var WTn=["data","index","className","rowKey","style","extra","getHeight"],UTn=d.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,o=e.rowKey,s=e.style,a=e.extra,l=e.getHeight,c=on(e,WTn),u=n.record,f=n.indent,h=n.index,g=dl(xc,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=g.scrollX,m=g.flattenColumns,v=g.prefixCls,C=g.fixColumn,y=g.componentWidth,b=dl(xme,["getComponent"]),S=b.getComponent,w=hXe(u,o,r,f),x=S(["body","row"],"div"),E=S(["body","cell"],"div"),R=w.rowSupportExpand,O=w.expanded,T=w.rowProps,M=w.expandedRowRender,_=w.expandedRowClassName,F;if(R&&O){var D=M(u,r,f+1,O),k=pXe(_,u,r,f),L={};C&&(L={style:ie({},"--virtual-width","".concat(y,"px"))});var I="".concat(v,"-expanded-row-cell");F=d.createElement(x,{className:we("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),k)},d.createElement(Zx,{component:E,prefixCls:v,className:we(I,ie({},"".concat(I,"-fixed"),C)),additionalProps:L},D))}var A=se(se({},s),{},{width:p});a&&(A.position="absolute",A.pointerEvents="none");var N=d.createElement(x,V({},T,c,{"data-row-key":o,ref:R?null:t,className:we(i,"".concat(v,"-row"),T==null?void 0:T.className,ie({},"".concat(v,"-row-extra"),a)),style:se(se({},A),T==null?void 0:T.style)}),m.map(function(B,z){return d.createElement(GTn,{key:z,component:E,rowInfo:w,column:B,colIndex:z,indent:f,index:r,renderIndex:h,record:u,inverse:a,getHeight:l})}));return R?d.createElement("div",{ref:t},N,F):N}),axe=Qx(UTn),qTn=d.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=dl(xc,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=i.flattenColumns,s=i.onColumnResize,a=i.getRowKey,l=i.expandedKeys,c=i.prefixCls,u=i.childrenColumnName,f=i.scrollX,h=i.direction,g=dl(xme),p=g.sticky,m=g.scrollY,v=g.listItemHeight,C=g.getComponent,y=g.onScroll,b=d.useRef(),S=fXe(n,u,l,a),w=d.useMemo(function(){var F=0;return o.map(function(D){var k=D.width,L=D.key;return F+=k,[L,k,F]})},[o]),x=d.useMemo(function(){return w.map(function(F){return F[2]})},[w]);d.useEffect(function(){w.forEach(function(F){var D=Ce(F,2),k=D[0],L=D[1];s(k,L)})},[w]),d.useImperativeHandle(t,function(){var F,D={scrollTo:function(L){var I;(I=b.current)===null||I===void 0||I.scrollTo(L)},nativeElement:(F=b.current)===null||F===void 0?void 0:F.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var L;return((L=b.current)===null||L===void 0?void 0:L.getScrollInfo().x)||0},set:function(L){var I;(I=b.current)===null||I===void 0||I.scrollTo({left:L})}}),D});var E=function(D,k){var L,I=(L=S[k])===null||L===void 0?void 0:L.record,A=D.onCell;if(A){var N,B=A(I,k);return(N=B==null?void 0:B.rowSpan)!==null&&N!==void 0?N:1}return 1},R=function(D){var k=D.start,L=D.end,I=D.getSize,A=D.offsetY;if(L<0)return null;for(var N=o.filter(function(Z){return E(Z,k)===0}),B=k,z=function(ee){if(N=N.filter(function(J){return E(J,ee)===0}),!N.length)return B=ee,1},j=k;j>=0&&!z(j);j-=1);for(var W=o.filter(function(Z){return E(Z,L)!==1}),G=L,K=function(ee){if(W=W.filter(function(J){return E(J,ee)!==1}),!W.length)return G=Math.max(ee-1,L),1},q=L;q<S.length&&!K(q);q+=1);for(var X=[],Q=function(ee){var J=S[ee];if(!J)return 1;o.some(function(oe){return E(oe,ee)>1})&&X.push(ee)},te=B;te<=G;te+=1)Q(te);var ne=X.map(function(Z){var ee=S[Z],J=a(ee.record,Z),oe=function(he){var ye=Z+he-1,ue=a(S[ye].record,ye),ve=I(J,ue);return ve.bottom-ve.top},le=I(J);return d.createElement(axe,{key:Z,data:ee,rowKey:J,index:Z,style:{top:-A+le.top},extra:!0,getHeight:oe})});return ne},O=d.useMemo(function(){return{columnsOffset:x}},[x]),T="".concat(c,"-tbody"),M=C(["body","wrapper"]),_={};return p&&(_.position="sticky",_.bottom=0,nn(p)==="object"&&p.offsetScroll&&(_.bottom=p.offsetScroll)),d.createElement(xXe.Provider,{value:O},d.createElement(mV,{fullHeight:!1,ref:b,prefixCls:"".concat(T,"-virtual"),styles:{horizontalScrollBar:_},className:T,height:m,itemHeight:v||24,data:S,itemKey:function(D){return a(D.record)},component:M,scrollWidth:f,direction:h,onVirtualScroll:function(D){var k,L=D.x;r({currentTarget:(k=b.current)===null||k===void 0?void 0:k.nativeElement,scrollLeft:L})},onScroll:y,extraRender:R},function(F,D,k){var L=a(F.record,D);return d.createElement(axe,{data:F,rowKey:L,index:D,style:k.style})}))}),KTn=Qx(qTn),YTn=function(t,n){var r=n.ref,i=n.onScroll;return d.createElement(KTn,{ref:r,data:t,onScroll:i})};function XTn(e,t){var n=e.data,r=e.columns,i=e.scroll,o=e.sticky,s=e.prefixCls,a=s===void 0?SXe:s,l=e.className,c=e.listItemHeight,u=e.components,f=e.onScroll,h=i||{},g=h.x,p=h.y;typeof g!="number"&&(g=1),typeof p!="number"&&(p=500);var m=Hn(function(y,b){return Bl(u,y)||b}),v=Hn(f),C=d.useMemo(function(){return{sticky:o,scrollY:p,listItemHeight:c,getComponent:m,onScroll:v}},[o,p,c,m,v]);return d.createElement(xme.Provider,{value:C},d.createElement(Vy,V({},e,{className:we(l,"".concat(a,"-virtual")),scroll:se(se({},i),{},{x:g}),components:se(se({},u),{},{body:n!=null&&n.length?YTn:void 0}),columns:r,internalHooks:hM,tailor:!0,ref:t})))}var QTn=d.forwardRef(XTn);function EXe(e){return oXe(QTn,e)}const ZTn=EXe(),JTn=Object.freeze(Object.defineProperty({__proto__:null,Column:cXe,ColumnGroup:uXe,EXPAND_COLUMN:K1,INTERNAL_COL_DEFINE:wme,INTERNAL_HOOKS:hM,Summary:lXe,VirtualTable:ZTn,default:Vy,genTable:wXe,genVirtualTable:EXe},Symbol.toStringTag,{value:"Module"}));var Eme=d.createContext(null),Rme=d.createContext({}),eIn=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,o=t.isEnd,s="".concat(n,"-indent-unit"),a=[],l=0;l<r;l+=1)a.push(d.createElement("span",{key:l,className:we(s,ie(ie({},"".concat(s,"-start"),i[l]),"".concat(s,"-end"),o[l]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},a)};const tIn=d.memo(eIn);var nIn=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],lxe="open",cxe="close",rIn="---",NT=function(t){var n,r,i=t.eventKey,o=t.className,s=t.style,a=t.dragOver,l=t.dragOverGapTop,c=t.dragOverGapBottom,u=t.isLeaf,f=t.isStart,h=t.isEnd,g=t.expanded,p=t.selected,m=t.checked,v=t.halfChecked,C=t.loading,y=t.domRef,b=t.active,S=t.data,w=t.onMouseMove,x=t.selectable,E=on(t,nIn),R=ce.useContext(Eme),O=ce.useContext(Rme),T=ce.useRef(null),M=ce.useState(!1),_=Ce(M,2),F=_[0],D=_[1],k=ce.useMemo(function(){var Fe;return!!(R.disabled||t.disabled||(Fe=O.nodeDisabled)!==null&&Fe!==void 0&&Fe.call(O,S))},[R.disabled,t.disabled,O.nodeDisabled,S]),L=ce.useMemo(function(){return!R.checkable||t.checkable===!1?!1:R.checkable},[R.checkable,t.checkable]),I=function(ke){k||R.onNodeSelect(ke,As(t))},A=function(ke){k||!L||t.disableCheckbox||R.onNodeCheck(ke,As(t),!m)},N=ce.useMemo(function(){return typeof x=="boolean"?x:R.selectable},[x,R.selectable]),B=function(ke){R.onNodeClick(ke,As(t)),N?I(ke):A(ke)},z=function(ke){R.onNodeDoubleClick(ke,As(t))},j=function(ke){R.onNodeMouseEnter(ke,As(t))},W=function(ke){R.onNodeMouseLeave(ke,As(t))},G=function(ke){R.onNodeContextMenu(ke,As(t))},K=ce.useMemo(function(){return!!(R.draggable&&(!R.draggable.nodeDraggable||R.draggable.nodeDraggable(S)))},[R.draggable,S]),q=function(ke){ke.stopPropagation(),D(!0),R.onNodeDragStart(ke,t);try{ke.dataTransfer.setData("text/plain","")}catch{}},X=function(ke){ke.preventDefault(),ke.stopPropagation(),R.onNodeDragEnter(ke,t)},Q=function(ke){ke.preventDefault(),ke.stopPropagation(),R.onNodeDragOver(ke,t)},te=function(ke){ke.stopPropagation(),R.onNodeDragLeave(ke,t)},ne=function(ke){ke.stopPropagation(),D(!1),R.onNodeDragEnd(ke,t)},Z=function(ke){ke.preventDefault(),ke.stopPropagation(),D(!1),R.onNodeDrop(ke,t)},ee=function(ke){C||R.onNodeExpand(ke,As(t))},J=ce.useMemo(function(){var Fe=tu(R.keyEntities,i)||{},ke=Fe.children;return!!(ke||[]).length},[R.keyEntities,i]),oe=ce.useMemo(function(){return u===!1?!1:u||!R.loadData&&!J||R.loadData&&t.loaded&&!J},[u,R.loadData,J,t.loaded]);ce.useEffect(function(){C||typeof R.loadData=="function"&&g&&!oe&&!t.loaded&&R.onNodeLoad(As(t))},[C,R.loadData,R.onNodeLoad,g,oe,t]);var le=ce.useMemo(function(){var Fe;return(Fe=R.draggable)!==null&&Fe!==void 0&&Fe.icon?ce.createElement("span",{className:"".concat(R.prefixCls,"-draggable-icon")},R.draggable.icon):null},[R.draggable]),ge=function(ke){var Ye=t.switcherIcon||R.switcherIcon;return typeof Ye=="function"?Ye(se(se({},t),{},{isLeaf:ke})):Ye},he=function(){if(oe){var ke=ge(!0);return ke!==!1?ce.createElement("span",{className:we("".concat(R.prefixCls,"-switcher"),"".concat(R.prefixCls,"-switcher-noop"))},ke):null}var Ye=ge(!1);return Ye!==!1?ce.createElement("span",{onClick:ee,className:we("".concat(R.prefixCls,"-switcher"),"".concat(R.prefixCls,"-switcher_").concat(g?lxe:cxe))},Ye):null},ye=ce.useMemo(function(){if(!L)return null;var Fe=typeof L!="boolean"?L:null;return ce.createElement("span",{className:we("".concat(R.prefixCls,"-checkbox"),ie(ie(ie({},"".concat(R.prefixCls,"-checkbox-checked"),m),"".concat(R.prefixCls,"-checkbox-indeterminate"),!m&&v),"".concat(R.prefixCls,"-checkbox-disabled"),k||t.disableCheckbox)),onClick:A,role:"checkbox","aria-checked":v?"mixed":m,"aria-disabled":k||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Fe)},[L,m,v,k,t.disableCheckbox,t.title]),ue=ce.useMemo(function(){return oe?null:g?lxe:cxe},[oe,g]),ve=ce.useMemo(function(){return ce.createElement("span",{className:we("".concat(R.prefixCls,"-iconEle"),"".concat(R.prefixCls,"-icon__").concat(ue||"docu"),ie({},"".concat(R.prefixCls,"-icon_loading"),C))})},[R.prefixCls,ue,C]),de=ce.useMemo(function(){var Fe=!!R.draggable,ke=!t.disabled&&Fe&&R.dragOverNodeKey===i;return ke?R.dropIndicatorRender({dropPosition:R.dropPosition,dropLevelOffset:R.dropLevelOffset,indent:R.indent,prefixCls:R.prefixCls,direction:R.direction}):null},[R.dropPosition,R.dropLevelOffset,R.indent,R.prefixCls,R.direction,R.draggable,R.dragOverNodeKey,R.dropIndicatorRender]),xe=ce.useMemo(function(){var Fe=t.title,ke=Fe===void 0?rIn:Fe,Ye="".concat(R.prefixCls,"-node-content-wrapper"),ze;if(R.showIcon){var Re=t.icon||R.icon;ze=Re?ce.createElement("span",{className:we("".concat(R.prefixCls,"-iconEle"),"".concat(R.prefixCls,"-icon__customize"))},typeof Re=="function"?Re(t):Re):ve}else R.loadData&&C&&(ze=ve);var Le;return typeof ke=="function"?Le=ke(S):R.titleRender?Le=R.titleRender(S):Le=ke,ce.createElement("span",{ref:T,title:typeof ke=="string"?ke:"",className:we(Ye,"".concat(Ye,"-").concat(ue||"normal"),ie({},"".concat(R.prefixCls,"-node-selected"),!k&&(p||F))),onMouseEnter:j,onMouseLeave:W,onContextMenu:G,onClick:B,onDoubleClick:z},ze,ce.createElement("span",{className:"".concat(R.prefixCls,"-title")},Le),de)},[R.prefixCls,R.showIcon,t,R.icon,ve,R.titleRender,S,ue,j,W,G,B,z]),Ee=$o(E,{aria:!0,data:!0}),De=tu(R.keyEntities,i)||{},Be=De.level,Ge=h[h.length-1],Ue=!k&&K,We=R.draggingNodeKey===i,Ve=x!==void 0?{"aria-selected":!!x}:void 0;return ce.createElement("div",V({ref:y,role:"treeitem","aria-expanded":u?void 0:g,className:we(o,"".concat(R.prefixCls,"-treenode"),(r={},ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(r,"".concat(R.prefixCls,"-treenode-disabled"),k),"".concat(R.prefixCls,"-treenode-switcher-").concat(g?"open":"close"),!u),"".concat(R.prefixCls,"-treenode-checkbox-checked"),m),"".concat(R.prefixCls,"-treenode-checkbox-indeterminate"),v),"".concat(R.prefixCls,"-treenode-selected"),p),"".concat(R.prefixCls,"-treenode-loading"),C),"".concat(R.prefixCls,"-treenode-active"),b),"".concat(R.prefixCls,"-treenode-leaf-last"),Ge),"".concat(R.prefixCls,"-treenode-draggable"),K),"dragging",We),ie(ie(ie(ie(ie(ie(r,"drop-target",R.dropTargetKey===i),"drop-container",R.dropContainerKey===i),"drag-over",!k&&a),"drag-over-gap-top",!k&&l),"drag-over-gap-bottom",!k&&c),"filter-node",(n=R.filterTreeNode)===null||n===void 0?void 0:n.call(R,As(t))))),style:s,draggable:Ue,onDragStart:Ue?q:void 0,onDragEnter:K?X:void 0,onDragOver:K?Q:void 0,onDragLeave:K?te:void 0,onDrop:K?Z:void 0,onDragEnd:K?ne:void 0,onMouseMove:w},Ve,Ee),ce.createElement(tIn,{prefixCls:R.prefixCls,level:Be,isStart:f,isEnd:h}),le,he(),ye,xe)};NT.isTreeNode=1;function x1(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function kv(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function $me(e){return e.split("-")}function iIn(e,t){var n=[],r=tu(t,e);function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(s){var a=s.key,l=s.children;n.push(a),i(l)})}return i(r.children),n}function oIn(e){if(e.parent){var t=$me(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function sIn(e){var t=$me(e.pos);return Number(t[t.length-1])===0}function uxe(e,t,n,r,i,o,s,a,l,c){var u,f=e.clientX,h=e.clientY,g=e.target.getBoundingClientRect(),p=g.top,m=g.height,v=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-f),C=(v-12)/r,y=l.filter(function(L){var I;return(I=a[L])===null||I===void 0||(I=I.children)===null||I===void 0?void 0:I.length}),b=tu(a,n.eventKey);if(h<p+m/2){var S=s.findIndex(function(L){return L.key===b.key}),w=S<=0?0:S-1,x=s[w].key;b=tu(a,x)}var E=b.key,R=b,O=b.key,T=0,M=0;if(!y.includes(E))for(var _=0;_<C&&oIn(b);_+=1)b=b.parent,M+=1;var F=t.data,D=b.node,k=!0;return sIn(b)&&b.level===0&&h<p+m/2&&o({dragNode:F,dropNode:D,dropPosition:-1})&&b.key===n.eventKey?T=-1:(R.children||[]).length&&y.includes(O)?o({dragNode:F,dropNode:D,dropPosition:0})?T=0:k=!1:M===0?C>-1.5?o({dragNode:F,dropNode:D,dropPosition:1})?T=1:k=!1:o({dragNode:F,dropNode:D,dropPosition:0})?T=0:o({dragNode:F,dropNode:D,dropPosition:1})?T=1:k=!1:o({dragNode:F,dropNode:D,dropPosition:1})?T=1:k=!1,{dropPosition:T,dropLevelOffset:M,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:O,dropContainerKey:T===0?null:((u=b.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:k}}function dxe(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function pte(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(nn(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return ui(!1,"`checkedKeys` is not an array or an object"),null;return t}function fxe(e,t){var n=new Set;function r(i){if(!n.has(i)){var o=tu(t,i);if(o){n.add(i);var s=o.parent,a=o.node;a.disabled||s&&r(s.key)}}}return(e||[]).forEach(function(i){r(i)}),ut(n)}function hxe(e){const[t,n]=d.useState(null);return[d.useCallback((o,s,a)=>{const l=t??o,c=Math.min(l||0,o),u=Math.max(l||0,o),f=s.slice(c,u+1).map(p=>e(p)),h=f.some(p=>!a.has(p)),g=[];return f.forEach(p=>{h?(a.has(p)||g.push(p),a.add(p)):(a.delete(p),g.push(p))}),n(h?u:null),g},[t]),o=>{n(o)}]}var aIn=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*i;break;case 1:o.bottom=0,o.left=-r*i;break;case 0:o.bottom=0,o.left=i;break}return ce.createElement("div",{style:o})};function RXe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function lIn(e,t){var n=d.useState(!1),r=Ce(n,2),i=r[0],o=r[1];Zn(function(){if(i)return e(),function(){t()}},[i]),Zn(function(){return o(!0),function(){o(!1)}},[])}var cIn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],uIn=d.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,o=e.motionNodes,s=e.motionType,a=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=on(e,cIn),h=d.useState(!0),g=Ce(h,2),p=g[0],m=g[1],v=d.useContext(Eme),C=v.prefixCls,y=o&&s!=="hide";Zn(function(){o&&y!==p&&m(y)},[o]);var b=function(){o&&a()},S=d.useRef(!1),w=function(){o&&!S.current&&(S.current=!0,l())};lIn(b,w);var x=function(R){y===R&&w()};return o?d.createElement(Hs,V({ref:t,visible:p},i,{motionAppear:s==="show",onVisibleChanged:x}),function(E,R){var O=E.className,T=E.style;return d.createElement("div",{ref:R,className:we("".concat(C,"-treenode-motion"),O),style:T},o.map(function(M){var _=Object.assign({},(RXe(M.data),M.data)),F=M.title,D=M.key,k=M.isStart,L=M.isEnd;delete _.children;var I=K$(D,u);return d.createElement(NT,V({},_,I,{title:F,active:c,data:M.data,key:D,isStart:k,isEnd:L}))}))}):d.createElement(NT,V({domRef:t,className:n,style:r},f,{active:c}))});function dIn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(o,s){var a=new Map;o.forEach(function(c){a.set(c,!0)});var l=s.filter(function(c){return!a.has(c)});return l.length===1?l[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function gxe(e,t,n){var r=e.findIndex(function(a){return a.key===n}),i=e[r+1],o=t.findIndex(function(a){return a.key===n});if(i){var s=t.findIndex(function(a){return a.key===i.key});return t.slice(o+1,s)}return t.slice(o+1)}var fIn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],pxe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},hIn=function(){},HC="RC_TREE_MOTION_".concat(Math.random()),Ole={key:HC},$Xe={key:HC,level:0,index:0,pos:"0",node:Ole,nodes:[Ole]},mxe={parent:null,children:[],pos:$Xe.pos,data:Ole,title:null,key:HC,isStart:[],isEnd:[]};function vxe(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Cxe(e){var t=e.key,n=e.pos;return lM(t,n)}function gIn(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var pIn=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,o=e.selectedKeys,s=e.checkedKeys,a=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,h=e.dragging,g=e.dragOverNodeKey,p=e.dropPosition,m=e.motion,v=e.height,C=e.itemHeight,y=e.virtual,b=e.scrollWidth,S=e.focusable,w=e.activeItem,x=e.focused,E=e.tabIndex,R=e.onKeyDown,O=e.onFocus,T=e.onBlur,M=e.onActiveChange,_=e.onListChangeStart,F=e.onListChangeEnd,D=on(e,fIn),k=d.useRef(null),L=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(xe){k.current.scrollTo(xe)},getIndentWidth:function(){return L.current.offsetWidth}}});var I=d.useState(i),A=Ce(I,2),N=A[0],B=A[1],z=d.useState(r),j=Ce(z,2),W=j[0],G=j[1],K=d.useState(r),q=Ce(K,2),X=q[0],Q=q[1],te=d.useState([]),ne=Ce(te,2),Z=ne[0],ee=ne[1],J=d.useState(null),oe=Ce(J,2),le=oe[0],ge=oe[1],he=d.useRef(r);he.current=r;function ye(){var de=he.current;G(de),Q(de),ee([]),ge(null),F()}Zn(function(){B(i);var de=dIn(N,i);if(de.key!==null)if(de.add){var xe=W.findIndex(function(We){var Ve=We.key;return Ve===de.key}),Ee=vxe(gxe(W,r,de.key),y,v,C),De=W.slice();De.splice(xe+1,0,mxe),Q(De),ee(Ee),ge("show")}else{var Be=r.findIndex(function(We){var Ve=We.key;return Ve===de.key}),Ge=vxe(gxe(r,W,de.key),y,v,C),Ue=r.slice();Ue.splice(Be+1,0,mxe),Q(Ue),ee(Ge),ge("hide")}else W!==r&&(G(r),Q(r))},[i,r]),d.useEffect(function(){h||ye()},[h]);var ue=m?X:r,ve={expandedKeys:i,selectedKeys:o,loadedKeys:a,loadingKeys:l,checkedKeys:s,halfCheckedKeys:c,dragOverNodeKey:g,dropPosition:p,keyEntities:u};return d.createElement(d.Fragment,null,x&&w&&d.createElement("span",{style:pxe,"aria-live":"assertive"},gIn(w)),d.createElement("div",null,d.createElement("input",{style:pxe,disabled:S===!1||f,tabIndex:S!==!1?E:null,onKeyDown:R,onFocus:O,onBlur:T,value:"",onChange:hIn,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:L,className:"".concat(n,"-indent-unit")}))),d.createElement(mV,V({},D,{data:ue,itemKey:Cxe,height:v,fullHeight:!1,virtual:y,itemHeight:C,scrollWidth:b,prefixCls:"".concat(n,"-list"),ref:k,role:"tree",onVisibleChange:function(xe){xe.every(function(Ee){return Cxe(Ee)!==HC})&&ye()}}),function(de){var xe=de.pos,Ee=Object.assign({},(RXe(de.data),de.data)),De=de.title,Be=de.key,Ge=de.isStart,Ue=de.isEnd,We=lM(Be,xe);delete Ee.key,delete Ee.children;var Ve=K$(We,ve);return d.createElement(uIn,V({},Ee,Ve,{title:De,active:!!w&&Be===w.key,pos:xe,data:de.data,isStart:Ge,isEnd:Ue,motion:m,motionNodes:Be===HC?Z:null,motionType:le,onMotionStart:_,onMotionEnd:ye,treeNodeRequiredProps:ve,onMouseMove:function(){M(null)}}))}))}),mIn=10,XV=function(e){hs(n,e);var t=wc(n);function n(){var r;qr(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ie(dn(r),"destroyed",!1),ie(dn(r),"delayedDragEnterLogic",void 0),ie(dn(r),"loadingRetryTimes",{}),ie(dn(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:oB()}),ie(dn(r),"dragStartMousePosition",null),ie(dn(r),"dragNodeProps",null),ie(dn(r),"currentMouseOverDroppableNodeKey",null),ie(dn(r),"listRef",d.createRef()),ie(dn(r),"onNodeDragStart",function(a,l){var c=r.state,u=c.expandedKeys,f=c.keyEntities,h=r.props.onDragStart,g=l.eventKey;r.dragNodeProps=l,r.dragStartMousePosition={x:a.clientX,y:a.clientY};var p=x1(u,g);r.setState({draggingNodeKey:g,dragChildrenKeys:iIn(g,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(p),window.addEventListener("dragend",r.onWindowDragEnd),h==null||h({event:a,node:As(l)})}),ie(dn(r),"onNodeDragEnter",function(a,l){var c=r.state,u=c.expandedKeys,f=c.keyEntities,h=c.dragChildrenKeys,g=c.flattenNodes,p=c.indent,m=r.props,v=m.onDragEnter,C=m.onExpand,y=m.allowDrop,b=m.direction,S=l.pos,w=l.eventKey;if(r.currentMouseOverDroppableNodeKey!==w&&(r.currentMouseOverDroppableNodeKey=w),!r.dragNodeProps){r.resetDragState();return}var x=uxe(a,r.dragNodeProps,l,p,r.dragStartMousePosition,y,g,f,u,b),E=x.dropPosition,R=x.dropLevelOffset,O=x.dropTargetKey,T=x.dropContainerKey,M=x.dropTargetPos,_=x.dropAllowed,F=x.dragOverNodeKey;if(h.includes(O)||!_){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(D){clearTimeout(r.delayedDragEnterLogic[D])}),r.dragNodeProps.eventKey!==l.eventKey&&(a.persist(),r.delayedDragEnterLogic[S]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var D=ut(u),k=tu(f,l.eventKey);k&&(k.children||[]).length&&(D=kv(u,l.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(D),C==null||C(D,{node:As(l),expanded:!0,nativeEvent:a.nativeEvent})}},800)),r.dragNodeProps.eventKey===O&&R===0){r.resetDragState();return}r.setState({dragOverNodeKey:F,dropPosition:E,dropLevelOffset:R,dropTargetKey:O,dropContainerKey:T,dropTargetPos:M,dropAllowed:_}),v==null||v({event:a,node:As(l),expandedKeys:u})}),ie(dn(r),"onNodeDragOver",function(a,l){var c=r.state,u=c.dragChildrenKeys,f=c.flattenNodes,h=c.keyEntities,g=c.expandedKeys,p=c.indent,m=r.props,v=m.onDragOver,C=m.allowDrop,y=m.direction;if(r.dragNodeProps){var b=uxe(a,r.dragNodeProps,l,p,r.dragStartMousePosition,C,f,h,g,y),S=b.dropPosition,w=b.dropLevelOffset,x=b.dropTargetKey,E=b.dropContainerKey,R=b.dropTargetPos,O=b.dropAllowed,T=b.dragOverNodeKey;u.includes(x)||!O||(r.dragNodeProps.eventKey===x&&w===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():S===r.state.dropPosition&&w===r.state.dropLevelOffset&&x===r.state.dropTargetKey&&E===r.state.dropContainerKey&&R===r.state.dropTargetPos&&O===r.state.dropAllowed&&T===r.state.dragOverNodeKey||r.setState({dropPosition:S,dropLevelOffset:w,dropTargetKey:x,dropContainerKey:E,dropTargetPos:R,dropAllowed:O,dragOverNodeKey:T}),v==null||v({event:a,node:As(l)}))}}),ie(dn(r),"onNodeDragLeave",function(a,l){r.currentMouseOverDroppableNodeKey===l.eventKey&&!a.currentTarget.contains(a.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var c=r.props.onDragLeave;c==null||c({event:a,node:As(l)})}),ie(dn(r),"onWindowDragEnd",function(a){r.onNodeDragEnd(a,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),ie(dn(r),"onNodeDragEnd",function(a,l){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:a,node:As(l)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),ie(dn(r),"onNodeDrop",function(a,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,h=f.dragChildrenKeys,g=f.dropPosition,p=f.dropTargetKey,m=f.dropTargetPos,v=f.dropAllowed;if(v){var C=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),p!==null){var y=se(se({},K$(p,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===p,data:tu(r.state.keyEntities,p).node}),b=h.includes(p);ui(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=$me(m),w={event:a,node:As(y),dragNode:r.dragNodeProps?As(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(h),dropToGap:g!==0,dropPosition:g+Number(S[S.length-1])};u||C==null||C(w),r.dragNodeProps=null}}}),ie(dn(r),"cleanDragState",function(){var a=r.state.draggingNodeKey;a!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ie(dn(r),"triggerExpandActionExpand",function(a,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,h=l.expanded,g=l.key,p=l.isLeaf;if(!(p||a.shiftKey||a.metaKey||a.ctrlKey)){var m=f.filter(function(C){return C.key===g})[0],v=As(se(se({},K$(g,r.getTreeNodeRequiredProps())),{},{data:m.data}));r.setExpandedKeys(h?x1(u,g):kv(u,g)),r.onNodeExpand(a,v)}}),ie(dn(r),"onNodeClick",function(a,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(a,l),u==null||u(a,l)}),ie(dn(r),"onNodeDoubleClick",function(a,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(a,l),u==null||u(a,l)}),ie(dn(r),"onNodeSelect",function(a,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,h=u.fieldNames,g=r.props,p=g.onSelect,m=g.multiple,v=l.selected,C=l[h.key],y=!v;y?m?c=kv(c,C):c=[C]:c=x1(c,C);var b=c.map(function(S){var w=tu(f,S);return w?w.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),p==null||p(c,{event:"select",selected:y,node:l,selectedNodes:b,nativeEvent:a.nativeEvent})}),ie(dn(r),"onNodeCheck",function(a,l,c){var u=r.state,f=u.keyEntities,h=u.checkedKeys,g=u.halfCheckedKeys,p=r.props,m=p.checkStrictly,v=p.onCheck,C=l.key,y,b={event:"check",node:l,checked:c,nativeEvent:a.nativeEvent};if(m){var S=c?kv(h,C):x1(h,C),w=x1(g,C);y={checked:S,halfChecked:w},b.checkedNodes=S.map(function(M){return tu(f,M)}).filter(Boolean).map(function(M){return M.node}),r.setUncontrolledState({checkedKeys:S})}else{var x=p0([].concat(ut(h),[C]),!0,f),E=x.checkedKeys,R=x.halfCheckedKeys;if(!c){var O=new Set(E);O.delete(C);var T=p0(Array.from(O),{checked:!1,halfCheckedKeys:R},f);E=T.checkedKeys,R=T.halfCheckedKeys}y=E,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=R,E.forEach(function(M){var _=tu(f,M);if(_){var F=_.node,D=_.pos;b.checkedNodes.push(F),b.checkedNodesPositions.push({node:F,pos:D})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:R})}v==null||v(y,b)}),ie(dn(r),"onNodeLoad",function(a){var l,c=a.key,u=r.state.keyEntities,f=tu(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var h=new Promise(function(g,p){r.setState(function(m){var v=m.loadedKeys,C=v===void 0?[]:v,y=m.loadingKeys,b=y===void 0?[]:y,S=r.props,w=S.loadData,x=S.onLoad;if(!w||C.includes(c)||b.includes(c))return null;var E=w(a);return E.then(function(){var R=r.state.loadedKeys,O=kv(R,c);x==null||x(O,{event:"load",node:a}),r.setUncontrolledState({loadedKeys:O}),r.setState(function(T){return{loadingKeys:x1(T.loadingKeys,c)}}),g()}).catch(function(R){if(r.setState(function(T){return{loadingKeys:x1(T.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=mIn){var O=r.state.loadedKeys;ui(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:kv(O,c)}),g()}p(R)}),{loadingKeys:kv(b,c)}})});return h.catch(function(){}),h}}),ie(dn(r),"onNodeMouseEnter",function(a,l){var c=r.props.onMouseEnter;c==null||c({event:a,node:l})}),ie(dn(r),"onNodeMouseLeave",function(a,l){var c=r.props.onMouseLeave;c==null||c({event:a,node:l})}),ie(dn(r),"onNodeContextMenu",function(a,l){var c=r.props.onRightClick;c&&(a.preventDefault(),c({event:a,node:l}))}),ie(dn(r),"onFocus",function(){var a=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];a==null||a.apply(void 0,c)}),ie(dn(r),"onBlur",function(){var a=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];a==null||a.apply(void 0,c)}),ie(dn(r),"getTreeNodeRequiredProps",function(){var a=r.state,l=a.expandedKeys,c=a.selectedKeys,u=a.loadedKeys,f=a.loadingKeys,h=a.checkedKeys,g=a.halfCheckedKeys,p=a.dragOverNodeKey,m=a.dropPosition,v=a.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:f||[],checkedKeys:h||[],halfCheckedKeys:g||[],dragOverNodeKey:p,dropPosition:m,keyEntities:v}}),ie(dn(r),"setExpandedKeys",function(a){var l=r.state,c=l.treeData,u=l.fieldNames,f=ate(c,a,u);r.setUncontrolledState({expandedKeys:a,flattenNodes:f},!0)}),ie(dn(r),"onNodeExpand",function(a,l){var c=r.state.expandedKeys,u=r.state,f=u.listChanging,h=u.fieldNames,g=r.props,p=g.onExpand,m=g.loadData,v=l.expanded,C=l[h.key];if(!f){var y=c.includes(C),b=!v;if(ui(v&&y||!v&&!y,"Expand state not sync with index check"),c=b?kv(c,C):x1(c,C),r.setExpandedKeys(c),p==null||p(c,{node:l,expanded:b,nativeEvent:a.nativeEvent}),b&&m){var S=r.onNodeLoad(l);S&&S.then(function(){var w=ate(r.state.treeData,c,h);r.setUncontrolledState({flattenNodes:w})}).catch(function(){var w=r.state.expandedKeys,x=x1(w,C);r.setExpandedKeys(x)})}}}),ie(dn(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),ie(dn(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),ie(dn(r),"onActiveChange",function(a){var l=r.state.activeKey,c=r.props,u=c.onActiveChange,f=c.itemScrollOffset,h=f===void 0?0:f;l!==a&&(r.setState({activeKey:a}),a!==null&&r.scrollTo({key:a,offset:h}),u==null||u(a))}),ie(dn(r),"getActiveItem",function(){var a=r.state,l=a.activeKey,c=a.flattenNodes;return l===null?null:c.find(function(u){var f=u.key;return f===l})||null}),ie(dn(r),"offsetActiveKey",function(a){var l=r.state,c=l.flattenNodes,u=l.activeKey,f=c.findIndex(function(p){var m=p.key;return m===u});f===-1&&a<0&&(f=c.length),f=(f+a+c.length)%c.length;var h=c[f];if(h){var g=h.key;r.onActiveChange(g)}else r.onActiveChange(null)}),ie(dn(r),"onKeyDown",function(a){var l=r.state,c=l.activeKey,u=l.expandedKeys,f=l.checkedKeys,h=l.fieldNames,g=r.props,p=g.onKeyDown,m=g.checkable,v=g.selectable;switch(a.which){case lt.UP:{r.offsetActiveKey(-1),a.preventDefault();break}case lt.DOWN:{r.offsetActiveKey(1),a.preventDefault();break}}var C=r.getActiveItem();if(C&&C.data){var y=r.getTreeNodeRequiredProps(),b=C.data.isLeaf===!1||!!(C.data[h.children]||[]).length,S=As(se(se({},K$(c,y)),{},{data:C.data,active:!0}));switch(a.which){case lt.LEFT:{b&&u.includes(c)?r.onNodeExpand({},S):C.parent&&r.onActiveChange(C.parent.key),a.preventDefault();break}case lt.RIGHT:{b&&!u.includes(c)?r.onNodeExpand({},S):C.children&&C.children.length&&r.onActiveChange(C.children[0].key),a.preventDefault();break}case lt.ENTER:case lt.SPACE:{m&&!S.disabled&&S.checkable!==!1&&!S.disableCheckbox?r.onNodeCheck({},S,!f.includes(c)):!m&&v&&!S.disabled&&S.selectable!==!1&&r.onNodeSelect({},S);break}}}p==null||p(a)}),ie(dn(r),"setUncontrolledState",function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,h={};Object.keys(a).forEach(function(g){if(r.props.hasOwnProperty(g)){f=!1;return}u=!0,h[g]=a[g]}),u&&(!l||f)&&r.setState(se(se({},h),c))}}),ie(dn(r),"scrollTo",function(a){r.listRef.current.scrollTo(a)}),r}return Kr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,o=i.activeKey,s=i.itemScrollOffset,a=s===void 0?0:s;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:a}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,o=i.focused,s=i.flattenNodes,a=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,f=i.dropContainerKey,h=i.dropTargetKey,g=i.dropPosition,p=i.dragOverNodeKey,m=i.indent,v=this.props,C=v.prefixCls,y=v.className,b=v.style,S=v.showLine,w=v.focusable,x=v.tabIndex,E=x===void 0?0:x,R=v.selectable,O=v.showIcon,T=v.icon,M=v.switcherIcon,_=v.draggable,F=v.checkable,D=v.checkStrictly,k=v.disabled,L=v.motion,I=v.loadData,A=v.filterTreeNode,N=v.height,B=v.itemHeight,z=v.scrollWidth,j=v.virtual,W=v.titleRender,G=v.dropIndicatorRender,K=v.onContextMenu,q=v.onScroll,X=v.direction,Q=v.rootClassName,te=v.rootStyle,ne=$o(this.props,{aria:!0,data:!0}),Z;_&&(nn(_)==="object"?Z=_:typeof _=="function"?Z={nodeDraggable:_}:Z={});var ee={prefixCls:C,selectable:R,showIcon:O,icon:T,switcherIcon:M,draggable:Z,draggingNodeKey:l,checkable:F,checkStrictly:D,disabled:k,keyEntities:a,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:h,dropPosition:g,dragOverNodeKey:p,indent:m,direction:X,dropIndicatorRender:G,loadData:I,filterTreeNode:A,titleRender:W,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return d.createElement(Eme.Provider,{value:ee},d.createElement("div",{className:we(C,y,Q,ie(ie(ie({},"".concat(C,"-show-line"),S),"".concat(C,"-focused"),o),"".concat(C,"-active-focused"),c!==null)),style:te},d.createElement(pIn,V({ref:this.listRef,prefixCls:C,style:b,data:s,disabled:k,selectable:R,checkable:!!F,motion:L,dragging:l!==null,height:N,itemHeight:B,virtual:j,focusable:w,focused:o,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:K,onScroll:q,scrollWidth:z},this.getTreeNodeRequiredProps(),ne))))}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,a={prevProps:i};function l(E){return!s&&i.hasOwnProperty(E)||s&&s[E]!==i[E]}var c,u=o.fieldNames;if(l("fieldNames")&&(u=oB(i.fieldNames),a.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(ui(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=bjt(i.children)),c){a.treeData=c;var f=jpe(c,{fieldNames:u});a.keyEntities=se(ie({},HC,$Xe),f.keyEntities)}var h=a.keyEntities||o.keyEntities;if(l("expandedKeys")||s&&l("autoExpandParent"))a.expandedKeys=i.autoExpandParent||!s&&i.defaultExpandParent?fxe(i.expandedKeys,h):i.expandedKeys;else if(!s&&i.defaultExpandAll){var g=se({},h);delete g[HC];var p=[];Object.keys(g).forEach(function(E){var R=g[E];R.children&&R.children.length&&p.push(R.key)}),a.expandedKeys=p}else!s&&i.defaultExpandedKeys&&(a.expandedKeys=i.autoExpandParent||i.defaultExpandParent?fxe(i.defaultExpandedKeys,h):i.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,c||a.expandedKeys){var m=ate(c||o.treeData,a.expandedKeys||o.expandedKeys,u);a.flattenNodes=m}if(i.selectable&&(l("selectedKeys")?a.selectedKeys=dxe(i.selectedKeys,i):!s&&i.defaultSelectedKeys&&(a.selectedKeys=dxe(i.defaultSelectedKeys,i))),i.checkable){var v;if(l("checkedKeys")?v=pte(i.checkedKeys)||{}:!s&&i.defaultCheckedKeys?v=pte(i.defaultCheckedKeys)||{}:c&&(v=pte(i.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),v){var C=v,y=C.checkedKeys,b=y===void 0?[]:y,S=C.halfCheckedKeys,w=S===void 0?[]:S;if(!i.checkStrictly){var x=p0(b,!0,h);b=x.checkedKeys,w=x.halfCheckedKeys}a.checkedKeys=b,a.halfCheckedKeys=w}}return l("loadedKeys")&&(a.loadedKeys=i.loadedKeys),a}}]),n}(d.Component);ie(XV,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:aIn,allowDrop:function(){return!0},expandAction:!1});ie(XV,"TreeNode",NT);const vIn=Object.freeze(Object.defineProperty({__proto__:null,TreeNode:NT,UnstableContext:Rme,default:XV},Symbol.toStringTag,{value:"Module"})),CIn=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:o,borderRadius:s,controlItemBgHover:a}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:s},"&:hover:before":{background:a}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},yIn=new Pr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),bIn=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),SIn=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ne(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),wIn=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:o,indentSize:s,nodeSelectedBg:a,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},ii(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Om(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:yIn,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:Ne(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:s}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},bIn(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},SIn(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Ne(t.calc(o).div(2).equal())} !important`}})}},OXe=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=yr(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[wIn(e,o),CIn(o)]},TXe=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},xIn=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},TXe(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})};Yr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Vpe(`${n}-checkbox`,e)},OXe(n,e),ZI(e)]},xIn);const EIn=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:s,expanded:a,loading:l}=r;if(l)return d.isValidElement(o)?o:d.createElement(Tm,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),s){if(!i)return null;if(typeof c!="boolean"&&c){const h=typeof c=="function"?c(r):c,g=`${t}-switcher-line-custom-icon`;return d.isValidElement(h)?js(h,{className:we(h.props.className||"",g)}):h}return c?d.createElement(IYe,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return d.isValidElement(f)?js(f,{className:we(f.props.className||"",u)}):f!==void 0?f:i?a?d.createElement(WYe,{className:`${t}-switcher-line-icon`}):d.createElement(XYe,{className:`${t}-switcher-line-icon`}):d.createElement(yYe,{className:u})},RIn=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:o}=e,s=o(r).sub(n).equal(),a=o(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},ii(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:a,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:s}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Ome=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return yr(e,{tagFontSize:i,tagLineHeight:Ne(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Tme=e=>({defaultBg:new kr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),IXe=Yr("Tag",e=>{const t=Ome(e);return RIn(t)},Tme);var $In=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 OIn=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:o,onChange:s,onClick:a}=e,l=$In(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=d.useContext(vn),f=C=>{s==null||s(!o),a==null||a(C)},h=c("tag",n),[g,p,m]=IXe(h),v=we(h,`${h}-checkable`,{[`${h}-checkable-checked`]:o},u==null?void 0:u.className,i,p,m);return g(d.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))}),TIn=e=>nGe(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:o,darkColor:s}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:s,borderColor:s},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),IIn=Hx(["Tag","preset"],e=>{const t=Ome(e);return TIn(t)},Tme);function MIn(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const PD=(e,t,n)=>{const r=MIn(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},PIn=Hx(["Tag","status"],e=>{const t=Ome(e);return[PD(t,"success","Success"),PD(t,"processing","Info"),PD(t,"error","Error"),PD(t,"warning","Warning")]},Tme);var _In=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 AIn=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,children:s,icon:a,color:l,onClose:c,bordered:u=!0,visible:f}=e,h=_In(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:p,tag:m}=d.useContext(vn),[v,C]=d.useState(!0),y=$i(h,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&C(f)},[f]);const b=lUe(l),S=uNt(l),w=b||S,x=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},m==null?void 0:m.style),o),E=g("tag",n),[R,O,T]=IXe(E),M=we(E,m==null?void 0:m.className,{[`${E}-${l}`]:w,[`${E}-has-color`]:l&&!w,[`${E}-hidden`]:!v,[`${E}-rtl`]:p==="rtl",[`${E}-borderless`]:!u},r,i,O,T),_=A=>{A.stopPropagation(),c==null||c(A),!A.defaultPrevented&&C(!1)},[,F]=lWe(qz(e),qz(m),{closable:!1,closeIconRender:A=>{const N=d.createElement("span",{className:`${E}-close-icon`,onClick:_},A);return Kge(A,N,B=>({onClick:z=>{var j;(j=B==null?void 0:B.onClick)===null||j===void 0||j.call(B,z),_(z)},className:we(B==null?void 0:B.className,`${E}-close-icon`)}))}}),D=typeof h.onClick=="function"||s&&s.type==="a",k=a||null,L=k?d.createElement(d.Fragment,null,k,s&&d.createElement("span",null,s)):s,I=d.createElement("span",Object.assign({},y,{ref:t,className:M,style:x}),L,F,b&&d.createElement(IIn,{key:"preset",prefixCls:E}),S&&d.createElement(PIn,{key:"status",prefixCls:E}));return R(D?d.createElement(QI,{component:"Tag"},I):I)}),jC=AIn;jC.CheckableTag=OIn;const DIn=e=>{const t=e!=null&&e.algorithm?o7(e.algorithm):o7(KI),n=Object.assign(Object.assign({},c7),e==null?void 0:e.token);return Nge(n,{override:e==null?void 0:e.token},t,Gge)};function LIn(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const FIn=(e,t)=>{const n=t??KI(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),LIn(t??e)),WVe(r)),{controlHeight:i}),GVe(Object.assign(Object.assign({},n),{controlHeight:i})))},qd=(e,t)=>new kr(e).setA(t).toRgbString(),f5=(e,t)=>new kr(e).lighten(t).toHexString(),NIn=e=>{const t=K4(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},kIn=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:qd(r,.85),colorTextSecondary:qd(r,.65),colorTextTertiary:qd(r,.45),colorTextQuaternary:qd(r,.25),colorFill:qd(r,.18),colorFillSecondary:qd(r,.12),colorFillTertiary:qd(r,.08),colorFillQuaternary:qd(r,.04),colorBgSolid:qd(r,.95),colorBgSolidHover:qd(r,1),colorBgSolidActive:qd(r,.9),colorBgElevated:f5(n,12),colorBgContainer:f5(n,8),colorBgLayout:f5(n,0),colorBgSpotlight:f5(n,26),colorBgBlur:qd(r,.04),colorBorder:f5(n,26),colorBorderSecondary:f5(n,19)}},zIn=(e,t)=>{const n=Object.keys(Hge).map(i=>{const o=K4(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((s,a,l)=>(s[`${i}-${l+1}`]=o[l],s[`${i}${l+1}`]=o[l],s),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),r=t??KI(e);return Object.assign(Object.assign(Object.assign({},r),n),VVe(e,{generateColorPalettes:NIn,generateNeutralColorPalettes:kIn}))};function BIn(){const[e,t,n]=za();return{theme:e,token:t,hashId:n}}const Wm={defaultSeed:$T.token,useToken:BIn,defaultAlgorithm:KI,darkAlgorithm:zIn,compactAlgorithm:FIn,getDesignToken:DIn,defaultConfig:$T,_internalContext:jge};function yxe(e){return e!==null&&nn(e)==="object"}function bxe(e,t,n){if(e===!1||t===!1&&(!yxe(e)||!e.closeIcon))return null;var r=typeof t!="boolean"?t:void 0;if(yxe(e)){var i;return se(se({},e),{},{closeIcon:(i=e.closeIcon)!==null&&i!==void 0?i:r})}return n||e||t?{closeIcon:r}:"empty"}function HIn(e,t,n,r){return d.useMemo(function(){var i=bxe(e,t,!1),o=bxe(n,r,!0);return i!=="empty"?i:o},[n,r,e,t])}function jIn(e){var t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,r=e.getBoundingClientRect(),i=r.top,o=r.right,s=r.bottom,a=r.left;return i>=0&&a>=0&&o<=t&&s<=n}function VIn(e,t,n){var r;return(r=n??t)!==null&&r!==void 0?r:e===null?"center":"bottom"}function GIn(e){return typeof e=="number"&&!Number.isNaN(e)}function WIn(e,t,n,r){var i=d.useState(void 0),o=Ce(i,2),s=o[0],a=o[1];Zn(function(){var m=typeof e=="function"?e():e;a(m||null)});var l=d.useState(null),c=Ce(l,2),u=c[0],f=c[1],h=Hn(function(){if(s){!jIn(s)&&t&&s.scrollIntoView(r);var m=s.getBoundingClientRect(),v=m.left,C=m.top,y=m.width,b=m.height,S={left:v,top:C,width:y,height:b,radius:0};f(function(w){return JSON.stringify(w)!==JSON.stringify(S)?S:w})}else f(null)}),g=function(v){var C;return(C=Array.isArray(n==null?void 0:n.offset)?n==null?void 0:n.offset[v]:n==null?void 0:n.offset)!==null&&C!==void 0?C:6};Zn(function(){return h(),window.addEventListener("resize",h),function(){window.removeEventListener("resize",h)}},[s,t,h]);var p=d.useMemo(function(){if(!u)return u;var m=g(0),v=g(1),C=GIn(n==null?void 0:n.radius)?n==null?void 0:n.radius:2;return{left:u.left-m,top:u.top-v,width:u.width+m*2,height:u.height+v*2,radius:C}},[u,n]);return[p,s]}var _D={fill:"transparent",pointerEvents:"auto"},UIn=function(t){var n=t.prefixCls,r=t.rootClassName,i=t.pos,o=t.showMask,s=t.style,a=s===void 0?{}:s,l=t.fill,c=l===void 0?"rgba(0,0,0,0.5)":l,u=t.open,f=t.animated,h=t.zIndex,g=t.disabledInteraction,p=iV(),m="".concat(n,"-mask-").concat(p),v=nn(f)==="object"?f==null?void 0:f.placeholder:f,C=typeof navigator<"u"&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),y=C?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return ce.createElement(Ly,{open:u,autoLock:!0},ce.createElement("div",{className:we("".concat(n,"-mask"),r),style:se({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:h,pointerEvents:i&&!g?"none":"auto"},a)},o?ce.createElement("svg",{style:{width:"100%",height:"100%"}},ce.createElement("defs",null,ce.createElement("mask",{id:m},ce.createElement("rect",V({x:"0",y:"0"},y,{fill:"white"})),i&&ce.createElement("rect",{x:i.left,y:i.top,rx:i.radius,width:i.width,height:i.height,fill:"black",className:v?"".concat(n,"-placeholder-animated"):""}))),ce.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:c,mask:"url(#".concat(m,")")}),i&&ce.createElement(ce.Fragment,null,ce.createElement("rect",V({},_D,{x:"0",y:"0",width:"100%",height:i.top})),ce.createElement("rect",V({},_D,{x:"0",y:"0",width:i.left,height:"100%"})),ce.createElement("rect",V({},_D,{x:"0",y:i.top+i.height,width:"100%",height:"calc(100vh - ".concat(i.top+i.height,"px)")})),ce.createElement("rect",V({},_D,{x:i.left+i.width,y:"0",width:"calc(100vw - ".concat(i.left+i.width,"px)"),height:"100%"})))):null))},qIn=[0,0],Sxe={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function MXe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t={};return Object.keys(Sxe).forEach(function(n){t[n]=se(se({},Sxe[n]),{},{autoArrow:e,targetOffset:qIn})}),t}MXe();function KIn(e){var t,n=e.prefixCls,r=e.current,i=e.total,o=e.title,s=e.description,a=e.onClose,l=e.onPrev,c=e.onNext,u=e.onFinish,f=e.className,h=e.closable,g=$o(h||{},!0),p=(t=h==null?void 0:h.closeIcon)!==null&&t!==void 0?t:d.createElement("span",{className:"".concat(n,"-close-x")},"×"),m=!!h;return d.createElement("div",{className:we("".concat(n,"-content"),f)},d.createElement("div",{className:"".concat(n,"-inner")},m&&d.createElement("button",V({type:"button",onClick:a,"aria-label":"Close"},g,{className:"".concat(n,"-close")}),p),d.createElement("div",{className:"".concat(n,"-header")},d.createElement("div",{className:"".concat(n,"-title")},o)),d.createElement("div",{className:"".concat(n,"-description")},s),d.createElement("div",{className:"".concat(n,"-footer")},d.createElement("div",{className:"".concat(n,"-sliders")},i>1?ut(Array.from({length:i}).keys()).map(function(v,C){return d.createElement("span",{key:v,className:C===r?"active":""})}):null),d.createElement("div",{className:"".concat(n,"-buttons")},r!==0?d.createElement("button",{className:"".concat(n,"-prev-btn"),onClick:l},"Prev"):null,r===i-1?d.createElement("button",{className:"".concat(n,"-finish-btn"),onClick:u},"Finish"):d.createElement("button",{className:"".concat(n,"-next-btn"),onClick:c},"Next")))))}var YIn=function(t){var n=t.current,r=t.renderPanel;return d.createElement(d.Fragment,null,typeof r=="function"?r(t,n):d.createElement(KIn,t))},XIn=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],QIn={left:"50%",top:"50%",width:1,height:1},wxe={block:"center",inline:"center"},ZIn=function(t){var n=t.prefixCls,r=n===void 0?"rc-tour":n,i=t.steps,o=i===void 0?[]:i,s=t.defaultCurrent,a=t.current,l=t.onChange,c=t.onClose,u=t.onFinish,f=t.open,h=t.mask,g=h===void 0?!0:h,p=t.arrow,m=p===void 0?!0:p,v=t.rootClassName,C=t.placement,y=t.renderPanel,b=t.gap,S=t.animated,w=t.scrollIntoViewOptions,x=w===void 0?wxe:w,E=t.zIndex,R=E===void 0?1001:E,O=t.closeIcon,T=t.closable,M=t.builtinPlacements,_=t.disabledInteraction,F=on(t,XIn),D=d.useRef(),k=ir(0,{value:a,defaultValue:s}),L=Ce(k,2),I=L[0],A=L[1],N=ir(void 0,{value:f,postState:function(be){return I<0||I>=o.length?!1:be??!0}}),B=Ce(N,2),z=B[0],j=B[1],W=d.useState(z),G=Ce(W,2),K=G[0],q=G[1],X=d.useRef(z);Zn(function(){z&&(X.current||A(0),q(!0)),X.current=z},[z]);var Q=o[I]||{},te=Q.target,ne=Q.placement,Z=Q.style,ee=Q.arrow,J=Q.className,oe=Q.mask,le=Q.scrollIntoViewOptions,ge=le===void 0?wxe:le,he=Q.closeIcon,ye=Q.closable,ue=HIn(ye,he,T,O),ve=z&&(oe??g),de=ge??x,xe=WIn(te,f,b,de),Ee=Ce(xe,2),De=Ee[0],Be=Ee[1],Ge=VIn(Be,C,ne),Ue=Be?typeof ee>"u"?m:ee:!1,We=nn(Ue)==="object"?Ue.pointAtCenter:!1;Zn(function(){var Me;(Me=D.current)===null||Me===void 0||Me.forceAlign()},[We,I]);var Ve=function(be){A(be),l==null||l(be)},Fe=d.useMemo(function(){return M?typeof M=="function"?M({arrowPointAtCenter:We}):M:MXe(We)},[M,We]);if(Be===void 0||!K)return null;var ke=function(){j(!1),c==null||c(I)},Ye=function(){return d.createElement(YIn,V({arrow:Ue,key:"content",prefixCls:r,total:o.length,renderPanel:y,onPrev:function(){Ve(I-1)},onNext:function(){Ve(I+1)},onClose:ke,current:I,onFinish:function(){ke(),u==null||u()}},o[I],{closable:ue}))},ze=typeof ve=="boolean"?ve:!!ve,Re=typeof ve=="boolean"?void 0:ve,Le=function(be){return be||Be||document.body};return d.createElement(d.Fragment,null,d.createElement(UIn,{zIndex:R,prefixCls:r,pos:De,showMask:ze,style:Re==null?void 0:Re.style,fill:Re==null?void 0:Re.color,open:z,animated:S,rootClassName:v,disabledInteraction:_}),d.createElement(Ny,V({},F,{builtinPlacements:Fe,ref:D,popupStyle:Z,popupPlacement:Ge,popupVisible:z,popupClassName:we(v,J),prefixCls:r,popup:Ye,forceRender:!1,destroyPopupOnHide:!0,zIndex:R,getTriggerDOMNode:Le,arrow:!!Ue}),d.createElement(Ly,{open:z,autoLock:!0},d.createElement("div",{className:we(v,"".concat(r,"-target-placeholder")),style:se(se({},De||QIn),{},{position:"fixed",pointerEvents:"none"})}))))};const JIn=Object.freeze(Object.defineProperty({__proto__:null,default:ZIn},Symbol.toStringTag,{value:"Module"})),pB=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},eMn=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:i,key:o}=n;i&&t.set(o,r)}),t},tMn=(e,t,n)=>{const r=d.useMemo(()=>(e||[]).map(s=>t?Object.assign(Object.assign({},s),{key:t(s)}):s),[e,t]),[i,o]=d.useMemo(()=>{const s=[],a=new Array((n||[]).length),l=pB(n||[]);return r.forEach(c=>{l.has(c.key)?a[l.get(c.key)]=c:s.push(c)}),[s,a]},[r,n,t]);return[r,i,o]},nMn=[];function AD(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function xxe(e){return Array.from(e).join(";")}function rMn(e,t,n){const[r,i]=d.useMemo(()=>[new Set(e.map(f=>f.key)),new Set(t.map(f=>f.key))],[e,t]),[o,s]=ir(nMn,{value:n}),a=d.useMemo(()=>AD(o,r),[o,r]),l=d.useMemo(()=>AD(o,i),[o,i]);d.useEffect(()=>{s([].concat(ut(AD(o,r)),ut(AD(o,i))))},[xxe(r),xxe(i)]);const c=Hn(f=>{s([].concat(ut(f),ut(l)))}),u=Hn(f=>{s([].concat(ut(a),ut(f)))});return[a,l,c,u]}const iMn=e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:o,prefixCls:s,onClick:a,onRemove:l,showRemove:c}=e,u=we(`${s}-content-item`,{[`${s}-content-item-disabled`]:o||r.disabled,[`${s}-content-item-checked`]:i&&!r.disabled});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[h]=ih("Transfer",yd.Transfer),g={className:u,title:f},p=d.createElement("span",{className:`${s}-content-item-text`},n);return c?d.createElement("li",Object.assign({},g),p,d.createElement("button",{type:"button",disabled:o||r.disabled,className:`${s}-content-item-remove`,"aria-label":h==null?void 0:h.remove,onClick:()=>l==null?void 0:l(r)},d.createElement(Dg,null))):(g.onClick=o||r.disabled?void 0:m=>a(r,m),d.createElement("li",Object.assign({},g),d.createElement(BC,{className:`${s}-checkbox`,checked:i,disabled:o||r.disabled}),p))},oMn=d.memo(iMn),sMn=["handleFilter","handleClear","checkedKeys"],aMn=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),lMn=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:o,showRemove:s,pagination:a,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[f,h]=d.useState(1),g=d.useMemo(()=>a?aMn(typeof a=="object"?a:{}):null,[a]),[p,m]=ir(10,{value:g==null?void 0:g.pageSize});d.useEffect(()=>{if(g){const E=Math.ceil(r.length/p);h(Math.min(f,E))}},[r,g,p]);const v=(E,R)=>{c(E.key,!i.includes(E.key),R)},C=E=>{u==null||u([E.key])},y=E=>{h(E)},b=(E,R)=>{h(E),m(R)},S=d.useMemo(()=>g?r.slice((f-1)*p,f*p):r,[f,r,g,p]);d.useImperativeHandle(t,()=>({items:S}));const w=g?d.createElement(YKe,{size:"small",disabled:o,simple:g.simple,pageSize:p,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:y,onShowSizeChange:b}):null,x=we(`${n}-content`,{[`${n}-content-show-remove`]:s});return d.createElement(d.Fragment,null,d.createElement("ul",{className:x,onScroll:l},(S||[]).map(E=>{let{renderedEl:R,renderedText:O,item:T}=E;return d.createElement(oMn,{key:T.key,item:T,renderedText:O,renderedEl:R,prefixCls:n,showRemove:s,onClick:v,onRemove:C,checked:i.includes(T.key),disabled:o||T.disabled})})),w)},cMn=d.forwardRef(lMn),PXe=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:o,handleClear:s}=e,a=d.useCallback(l=>{o==null||o(l),l.target.value===""&&(s==null||s())},[o]);return d.createElement(Ai,{placeholder:t,className:r,value:n,onChange:a,disabled:i,allowClear:!0,prefix:d.createElement(iM,null)})},uMn=()=>null;function dMn(e){return!!(e&&!ce.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function nR(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const fMn=e=>e!==void 0,hMn=e=>e&&typeof e=="object"?Object.assign(Object.assign({},e),{defaultValue:e.defaultValue||""}):{defaultValue:"",placeholder:""},Tle=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:i,disabled:o,showSearch:s=!1,style:a,searchPlaceholder:l,notFoundContent:c,selectAll:u,deselectAll:f,selectCurrent:h,selectInvert:g,removeAll:p,removeCurrent:m,showSelectAll:v=!0,showRemove:C,pagination:y,direction:b,itemsUnit:S,itemUnit:w,selectAllLabel:x,selectionsIcon:E,footer:R,renderList:O,onItemSelectAll:T,onItemRemove:M,handleFilter:_,handleClear:F,filterOption:D,render:k=uMn}=e,L=hMn(s),[I,A]=d.useState(L.defaultValue),N=d.useRef({}),B=ue=>{A(ue.target.value),_(ue)},z=()=>{A(""),F()},j=(ue,ve)=>D?D(I,ve,b):ue.includes(I),W=ue=>{let ve=O?O(Object.assign(Object.assign({},ue),{onItemSelect:(xe,Ee)=>ue.onItemSelect(xe,Ee)})):null;const de=!!ve;return de||(ve=ce.createElement(cMn,Object.assign({ref:N},ue))),{customize:de,bodyContent:ve}},G=ue=>{const ve=k(ue),de=dMn(ve);return{item:ue,renderedEl:de?ve.label:ve,renderedText:de?ve.value:ve}},K=d.useMemo(()=>Array.isArray(c)?c[b==="left"?0:1]:c,[c,b]),[q,X]=d.useMemo(()=>{const ue=[],ve=[];return n.forEach(de=>{const xe=G(de);I&&!j(xe.renderedText,de)||(ue.push(de),ve.push(xe))}),[ue,ve]},[n,I]),Q=d.useMemo(()=>q.filter(ue=>i.includes(ue.key)&&!ue.disabled),[i,q]),te=d.useMemo(()=>{if(Q.length===0)return"none";const ue=pB(i);return q.every(ve=>ue.has(ve.key)||!!ve.disabled)?"all":"part"},[i,Q]),ne=d.useMemo(()=>{const ue=s?ce.createElement("div",{className:`${t}-body-search-wrapper`},ce.createElement(PXe,{prefixCls:`${t}-search`,onChange:B,handleClear:z,placeholder:L.placeholder||l,value:I,disabled:o})):null,{customize:ve,bodyContent:de}=W(Object.assign(Object.assign({},$i(e,sMn)),{filteredItems:q,filteredRenderItems:X,selectedKeys:i}));let xe;return ve?xe=ce.createElement("div",{className:`${t}-body-customize-wrapper`},de):xe=q.length?de:ce.createElement("div",{className:`${t}-body-not-found`},K),ce.createElement("div",{className:we(`${t}-body`,{[`${t}-body-with-search`]:s})},ue,xe)},[s,t,l,I,o,i,q,X,K]),Z=ce.createElement(BC,{disabled:n.filter(ue=>!ue.disabled).length===0||o,checked:te==="all",indeterminate:te==="part",className:`${t}-checkbox`,onChange:()=>{T==null||T(q.filter(ue=>!ue.disabled).map(ue=>{let{key:ve}=ue;return ve}),te!=="all")}}),ee=(ue,ve)=>{if(x)return typeof x=="function"?x({selectedCount:ue,totalCount:ve}):x;const de=ve>1?S:w;return ce.createElement(ce.Fragment,null,(ue>0?`${ue}/`:"")+ve," ",de)},J=R&&(R.length<2?R(e):R(e,{direction:b})),oe=we(t,{[`${t}-with-pagination`]:!!y,[`${t}-with-footer`]:!!J}),le=J?ce.createElement("div",{className:`${t}-footer`},J):null,ge=!C&&!y&&Z;let he;C?he=[y?{key:"removeCurrent",label:m,onClick(){var ue;const ve=nR((((ue=N.current)===null||ue===void 0?void 0:ue.items)||[]).map(de=>de.item));M==null||M(ve)}}:null,{key:"removeAll",label:p,onClick(){M==null||M(nR(q))}}].filter(Boolean):he=[{key:"selectAll",label:te==="all"?f:u,onClick(){const ue=nR(q);T==null||T(ue,ue.length!==i.length)}},y?{key:"selectCurrent",label:h,onClick(){var ue;const ve=((ue=N.current)===null||ue===void 0?void 0:ue.items)||[];T==null||T(nR(ve.map(de=>de.item)),!0)}}:null,{key:"selectInvert",label:g,onClick(){var ue;const ve=nR((((ue=N.current)===null||ue===void 0?void 0:ue.items)||[]).map(Ee=>Ee.item)),de=new Set(i),xe=new Set(de);ve.forEach(Ee=>{de.has(Ee)?xe.delete(Ee):xe.add(Ee)}),T==null||T(Array.from(xe),"replace")}}];const ye=ce.createElement(RKe,{className:`${t}-header-dropdown`,menu:{items:he},disabled:o},fMn(E)?E:ce.createElement(yV,null));return ce.createElement("div",{className:oe,style:a},ce.createElement("div",{className:`${t}-header`},v?ce.createElement(ce.Fragment,null,ge,ye):null,ce.createElement("span",{className:`${t}-header-selected`},ee(Q.length,q.length)),ce.createElement("span",{className:`${t}-header-title`},r)),ne,le)},_Xe=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:o="",leftActive:s,rightActive:a,className:l,style:c,direction:u,oneWay:f}=e;return d.createElement("div",{className:l,style:c},d.createElement(Cr,{type:"primary",size:"small",disabled:t||!a,onClick:r,icon:u!=="rtl"?d.createElement(Xf,null):d.createElement(L0,null)},o),!f&&d.createElement(Cr,{type:"primary",size:"small",disabled:t||!s,onClick:n,icon:u!=="rtl"?d.createElement(L0,null):d.createElement(Xf,null)},i))},gMn=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,o=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${o}-wrapper`]:{[`${o}-small`]:{border:0,borderRadius:0,[`${o}-selection-column`]:{width:i,minWidth:i}},[`${o}-pagination${o}-pagination`]:{margin:0,padding:e.paddingXS}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},Exe=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},pMn=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},Exe(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},Exe(e,e.colorWarning))}},mMn=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:o,headerHeight:s,transferHeaderVerticalPadding:a,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:f,listHeight:h,listWidth:g,listWidthLG:p,fontSizeIcon:m,marginXS:v,paddingSM:C,lineType:y,antCls:b,iconCls:S,motionDurationSlow:w,controlItemBgHover:x,borderRadiusLG:E,colorBgContainer:R,colorText:O,controlItemBgActiveHover:T}=e,M=Ne(e.calc(E).sub(i).equal());return{display:"flex",flexDirection:"column",width:g,height:h,border:`${Ne(i)} ${y} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:p,height:"auto"},"&-search":{[`${S}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:s,padding:`${Ne(e.calc(a).sub(i).equal())} ${Ne(C)} ${Ne(a)}`,color:O,background:R,borderBottom:`${Ne(i)} ${y} ${r}`,borderRadius:`${Ne(E)} ${Ne(E)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Kf),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},C3()),{fontSize:m,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:C}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${M} ${M}`,"&-item":{display:"flex",alignItems:"center",minHeight:o,padding:`${Ne(l)} ${Ne(C)}`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Kf),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},Wge(e)),{color:n,"&:hover, &:focus":{color:f}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:T}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${Ne(i)} ${y} ${r}`,[`${b}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${Ne(i)} ${y} ${r}`},"&-checkbox":{lineHeight:1}}},vMn=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:o,fontSizeIcon:s,colorBgContainerDisabled:a}=e;return{[r]:Object.assign(Object.assign({},ii(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:a}},[`${r}-list`]:mMn(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${Ne(i)}`,verticalAlign:"middle",gap:o,[`${t}-btn ${n}`]:{fontSize:s}}})}},CMn=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},yMn=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:o}=e,s=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-s)/2,transferHeaderVerticalPadding:Math.ceil((i-o-s)/2)}},bMn=Yr("Transfer",e=>{const t=yr(e);return[vMn(t),gMn(t),pMn(t),CMn(t)]},yMn),QV=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:i=[],operations:o=[],style:s={},listStyle:a={},locale:l={},titles:c,disabled:u,showSearch:f=!1,operationStyle:h,showSelectAll:g,oneWay:p,pagination:m,status:v,prefixCls:C,className:y,rootClassName:b,selectionsIcon:S,filterOption:w,render:x,footer:E,children:R,rowKey:O,onScroll:T,onChange:M,onSearch:_,onSelectChange:F}=e,{getPrefixCls:D,renderEmpty:k,direction:L,transfer:I}=d.useContext(vn),A=D("transfer",C),[N,B,z]=bMn(A),[j,W,G]=tMn(t,O,n),[K,q,X,Q]=rMn(W,G,r),[te,ne]=hxe(fe=>fe.key),[Z,ee]=hxe(fe=>fe.key),J=d.useCallback((fe,Te)=>{if(fe==="left"){const $e=typeof Te=="function"?Te(K||[]):Te;X($e)}else{const $e=typeof Te=="function"?Te(q||[]):Te;Q($e)}},[K,q]),oe=(fe,Te)=>{(fe==="left"?ne:ee)(Te)},le=d.useCallback((fe,Te)=>{fe==="left"?F==null||F(Te,q):F==null||F(K,Te)},[K,q]),ge=fe=>{var Te;return(Te=c??fe.titles)!==null&&Te!==void 0?Te:[]},he=fe=>{T==null||T("left",fe)},ye=fe=>{T==null||T("right",fe)},ue=fe=>{const Te=fe==="right"?K:q,$e=eMn(j),He=Te.filter(yt=>!$e.has(yt)),it=pB(He),at=fe==="right"?He.concat(n):n.filter(yt=>!it.has(yt)),gt=fe==="right"?"left":"right";J(gt,[]),le(gt,[]),M==null||M(at,fe,He)},ve=()=>{ue("left"),oe("left",null)},de=()=>{ue("right"),oe("right",null)},xe=(fe,Te,$e)=>{J(fe,He=>{let it=[];if($e==="replace")it=Te;else if($e)it=Array.from(new Set([].concat(ut(He),ut(Te))));else{const at=pB(Te);it=He.filter(gt=>!at.has(gt))}return le(fe,it),it}),oe(fe,null)},Ee=(fe,Te)=>{xe("left",fe,Te)},De=(fe,Te)=>{xe("right",fe,Te)},Be=fe=>_==null?void 0:_("left",fe.target.value),Ge=fe=>_==null?void 0:_("right",fe.target.value),Ue=()=>_==null?void 0:_("left",""),We=()=>_==null?void 0:_("right",""),Ve=(fe,Te,$e,He,it)=>{Te.has($e)&&(Te.delete($e),oe(fe,null)),He&&(Te.add($e),oe(fe,it))},Fe=(fe,Te,$e,He)=>{(fe==="left"?te:Z)(He,Te,$e)},ke=(fe,Te,$e,He)=>{const it=fe==="left",at=ut(it?K:q),gt=new Set(at),yt=ut(it?W:G).filter(dt=>!(dt!=null&&dt.disabled)),st=yt.findIndex(dt=>dt.key===Te);He&&at.length>0?Fe(fe,yt,gt,st):Ve(fe,gt,Te,$e,st);const Ze=Array.from(gt);le(fe,Ze),e.selectedKeys||J(fe,Ze)},Ye=(fe,Te,$e)=>{ke("left",fe,Te,$e==null?void 0:$e.shiftKey)},ze=(fe,Te,$e)=>{ke("right",fe,Te,$e==null?void 0:$e.shiftKey)},Re=fe=>{J("right",[]),M==null||M(n.filter(Te=>!fe.includes(Te)),"left",ut(fe))},Le=fe=>typeof a=="function"?a({direction:fe}):a||{},Me=d.useContext(Na),{hasFeedback:be,status:je}=Me,Xe=fe=>Object.assign(Object.assign(Object.assign({},fe),{notFoundContent:(k==null?void 0:k("Transfer"))||ce.createElement(Cpe,{componentName:"Transfer"})}),l),ft=ky(je,v),Tt=!R&&m,tt=G.filter(fe=>q.includes(fe.key)&&!fe.disabled).length>0,pt=W.filter(fe=>K.includes(fe.key)&&!fe.disabled).length>0,$t=we(A,{[`${A}-disabled`]:u,[`${A}-customize-list`]:!!R,[`${A}-rtl`]:L==="rtl"},Z4(A,ft,be),I==null?void 0:I.className,y,b,B,z),[wt]=ih("Transfer",yd.Transfer),It=Xe(wt),[Ct,ot]=ge(It),nt=S??(I==null?void 0:I.selectionsIcon);return N(ce.createElement("div",{className:$t,style:Object.assign(Object.assign({},I==null?void 0:I.style),s)},ce.createElement(Tle,Object.assign({prefixCls:`${A}-list`,titleText:Ct,dataSource:W,filterOption:w,style:Le("left"),checkedKeys:K,handleFilter:Be,handleClear:Ue,onItemSelect:Ye,onItemSelectAll:Ee,render:x,showSearch:f,renderList:R,footer:E,onScroll:he,disabled:u,direction:L==="rtl"?"right":"left",showSelectAll:g,selectAllLabel:i[0],pagination:Tt,selectionsIcon:nt},It)),ce.createElement(_Xe,{className:`${A}-operation`,rightActive:pt,rightArrowText:o[0],moveToRight:de,leftActive:tt,leftArrowText:o[1],moveToLeft:ve,style:h,disabled:u,direction:L,oneWay:p}),ce.createElement(Tle,Object.assign({prefixCls:`${A}-list`,titleText:ot,dataSource:G,filterOption:w,style:Le("right"),checkedKeys:q,handleFilter:Ge,handleClear:We,onItemSelect:ze,onItemSelectAll:De,onItemRemove:Re,render:x,showSearch:f,renderList:R,footer:E,onScroll:ye,disabled:u,direction:L==="rtl"?"left":"right",showSelectAll:g,selectAllLabel:i[1],showRemove:p,pagination:Tt,selectionsIcon:nt},It))))};QV.List=Tle;QV.Search=PXe;QV.Operation=_Xe;const SMn=function(e){var t=d.useRef({valueLabels:new Map});return d.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(o){var s=o.value,a=o.label,l=a??n.get(s);return r.set(s,l),se(se({},o),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var wMn=function(t,n,r,i){return d.useMemo(function(){var o=function(g){return g.map(function(p){var m=p.value;return m})},s=o(t),a=o(n),l=s.filter(function(h){return!i[h]}),c=s,u=a;if(r){var f=p0(s,!0,i);c=f.checkedKeys,u=f.halfCheckedKeys}return[Array.from(new Set([].concat(ut(l),ut(c)))),u]},[t,n,r,i])},xMn=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},EMn=function(t){var n=t||{},r=n.label,i=n.value,o=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:o||"children"}},Ile=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},RMn=function(t,n){var r=[],i=function o(s){s.forEach(function(a){var l=a[n.children];l&&(r.push(a[n.value]),o(l))})};return i(t),r},Rxe=function(t){return t==null};const $Mn=function(e,t){return d.useMemo(function(){var n=jpe(e,{fieldNames:t,initWrapper:function(i){return se(se({},i),{},{valueEntities:new Map})},processEntity:function(i,o){var s=i.node[t.value];o.valueEntities.set(s,i)}});return n},[e,t])};var ZV=function(){return null},OMn=["children","value"];function AXe(e){return Rs(e).map(function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,o=i.children,s=i.value,a=on(i,OMn),l=se({key:r,value:s},a),c=AXe(o);return c.length&&(l.children=c),l}).filter(function(t){return t})}function Mle(e){if(!e)return e;var t=se({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ui(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function TMn(e,t,n,r,i,o){var s=null,a=null;function l(){function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(g,p){var m="".concat(f,"-").concat(p),v=g[o.value],C=n.includes(v),y=c(g[o.children]||[],m,C),b=d.createElement(ZV,g,y.map(function(w){return w.node}));if(t===v&&(s=b),C){var S={pos:m,node:b,children:y};return h||a.push(S),S}return null}).filter(function(g){return g})}a||(a=[],c(r),a.sort(function(u,f){var h=u.node.props.value,g=f.node.props.value,p=n.indexOf(h),m=n.indexOf(g);return p-m}))}Object.defineProperty(e,"triggerNode",{get:function(){return ui(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),s}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return ui(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?a:a.map(function(u){var f=u.node;return f})}})}var IMn=function(t,n,r){var i=r.fieldNames,o=r.treeNodeFilterProp,s=r.filterTreeNode,a=i.children;return d.useMemo(function(){if(!n||s===!1)return t;var l=typeof s=="function"?s:function(u,f){return String(f[o]).toUpperCase().includes(n.toUpperCase())},c=function u(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(g,p){var m=p[a],v=h||l(n,Mle(p)),C=u(m||[],v);return(v||C.length)&&g.push(se(se({},p),{},ie({isLeaf:void 0},a,C))),g},[])};return c(t)},[t,n,a,o,s])};function $xe(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function MMn(e,t){var n=t.id,r=t.pId,i=t.rootPId,o=new Map,s=[];return e.forEach(function(a){var l=a[n],c=se(se({},a),{},{key:a.key||l});o.set(l,c)}),o.forEach(function(a){var l=a[r],c=o.get(l);c?(c.children=c.children||[],c.children.push(a)):(l===i||i===null)&&s.push(a)}),s}function PMn(e,t,n){return d.useMemo(function(){if(e){if(n){var r=se({id:"id",pId:"pId",rootPId:null},nn(n)==="object"?n:{});return MMn(e,r)}return e}return AXe(t)},[t,n,e])}var DXe=d.createContext(null),LXe=d.createContext(null),_Mn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},AMn=function(t,n){var r=fV(),i=r.prefixCls,o=r.multiple,s=r.searchValue,a=r.toggleOpen,l=r.open,c=r.notFoundContent,u=d.useContext(LXe),f=u.virtual,h=u.listHeight,g=u.listItemHeight,p=u.listItemScrollOffset,m=u.treeData,v=u.fieldNames,C=u.onSelect,y=u.dropdownMatchSelectWidth,b=u.treeExpandAction,S=u.treeTitleRender,w=u.onPopupScroll,x=u.leftMaxCount,E=u.leafCountOnly,R=u.valueEntities,O=d.useContext(DXe),T=O.checkable,M=O.checkedKeys,_=O.halfCheckedKeys,F=O.treeExpandedKeys,D=O.treeDefaultExpandAll,k=O.treeDefaultExpandedKeys,L=O.onTreeExpand,I=O.treeIcon,A=O.showTreeIcon,N=O.switcherIcon,B=O.treeLine,z=O.treeNodeFilterProp,j=O.loadData,W=O.treeLoadedKeys,G=O.treeMotion,K=O.onTreeLoad,q=O.keyEntities,X=d.useRef(),Q=Rm(function(){return m},[l,m],function(Xe,ft){return ft[0]&&Xe[1]!==ft[1]}),te=d.useMemo(function(){return T?{checked:M,halfChecked:_}:null},[T,M,_]);d.useEffect(function(){if(l&&!o&&M.length){var Xe;(Xe=X.current)===null||Xe===void 0||Xe.scrollTo({key:M[0]})}},[l]);var ne=function(ft){ft.preventDefault()},Z=function(ft,Tt){var tt=Tt.node;T&&Ile(tt)||(C(tt.key,{selected:!M.includes(tt.key)}),o||a(!1))},ee=d.useState(k),J=Ce(ee,2),oe=J[0],le=J[1],ge=d.useState(null),he=Ce(ge,2),ye=he[0],ue=he[1],ve=d.useMemo(function(){return F?ut(F):s?ye:oe},[oe,ye,F,s]),de=function(ft){le(ft),ue(ft),L&&L(ft)},xe=String(s).toLowerCase(),Ee=function(ft){return xe?String(ft[z]).toLowerCase().includes(xe):!1};d.useEffect(function(){s&&ue(RMn(m,v))},[s]);var De=d.useState(function(){return new Map}),Be=Ce(De,2),Ge=Be[0],Ue=Be[1];d.useEffect(function(){x&&Ue(new Map)},[x]);function We(Xe){var ft=Xe[v.value];if(!Ge.has(ft)){var Tt=R.get(ft),tt=(Tt.children||[]).length===0;if(tt)Ge.set(ft,!1);else{var pt=Tt.children.filter(function(wt){return!wt.node.disabled&&!wt.node.disableCheckbox&&!M.includes(wt.node[v.value])}),$t=pt.length;Ge.set(ft,$t>x)}}return Ge.get(ft)}var Ve=Hn(function(Xe){var ft=Xe[v.value];return M.includes(ft)||x===null?!1:x<=0?!0:E&&x?We(Xe):!1}),Fe=function Xe(ft){var Tt=A8(ft),tt;try{for(Tt.s();!(tt=Tt.n()).done;){var pt=tt.value;if(!(pt.disabled||pt.selectable===!1)){if(s){if(Ee(pt))return pt}else return pt;if(pt[v.children]){var $t=Xe(pt[v.children]);if($t)return $t}}}}catch(wt){Tt.e(wt)}finally{Tt.f()}return null},ke=d.useState(null),Ye=Ce(ke,2),ze=Ye[0],Re=Ye[1],Le=q[ze];d.useEffect(function(){if(l){var Xe=null,ft=function(){var tt=Fe(Q);return tt?tt[v.value]:null};!o&&M.length&&!s?Xe=M[0]:Xe=ft(),Re(Xe)}},[l,s]),d.useImperativeHandle(n,function(){var Xe;return{scrollTo:(Xe=X.current)===null||Xe===void 0?void 0:Xe.scrollTo,onKeyDown:function(Tt){var tt,pt=Tt.which;switch(pt){case lt.UP:case lt.DOWN:case lt.LEFT:case lt.RIGHT:(tt=X.current)===null||tt===void 0||tt.onKeyDown(Tt);break;case lt.ENTER:{if(Le){var $t=Ve(Le.node),wt=(Le==null?void 0:Le.node)||{},It=wt.selectable,Ct=wt.value,ot=wt.disabled;It!==!1&&!ot&&!$t&&Z(null,{node:{key:ze},selected:!M.includes(Ct)})}break}case lt.ESC:a(!1)}},onKeyUp:function(){}}});var Me=Rm(function(){return!s},[s,F||oe],function(Xe,ft){var Tt=Ce(Xe,1),tt=Tt[0],pt=Ce(ft,2),$t=pt[0],wt=pt[1];return tt!==$t&&!!($t||wt)}),be=Me?j:null;if(Q.length===0)return d.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:ne},c);var je={fieldNames:v};return W&&(je.loadedKeys=W),ve&&(je.expandedKeys=ve),d.createElement("div",{onMouseDown:ne},Le&&l&&d.createElement("span",{style:_Mn,"aria-live":"assertive"},Le.node.value),d.createElement(Rme.Provider,{value:{nodeDisabled:Ve}},d.createElement(XV,V({ref:X,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:Q,height:h,itemHeight:g,itemScrollOffset:p,virtual:f!==!1&&y!==!1,multiple:o,icon:I,showIcon:A,switcherIcon:N,showLine:B,loadData:be,motion:G,activeKey:ze,checkable:T,checkStrictly:!0,checkedKeys:te,selectedKeys:T?[]:M,defaultExpandAll:D,titleRender:S},je,{onActiveChange:Re,onSelect:Z,onCheck:Z,onExpand:de,onLoad:K,filterTreeNode:Ee,expandAction:b,onScroll:w}))))},DMn=d.forwardRef(AMn),JV="SHOW_ALL",eG="SHOW_PARENT",gM="SHOW_CHILD";function Oxe(e,t,n,r){var i=new Set(e);return t===gM?e.filter(function(o){var s=n[o];return!s||!s.children||!s.children.some(function(a){var l=a.node;return i.has(l[r.value])})||!s.children.every(function(a){var l=a.node;return Ile(l)||i.has(l[r.value])})}):t===eG?e.filter(function(o){var s=n[o],a=s?s.parent:null;return!a||Ile(a.node)||!i.has(a.key)}):e}var LMn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function FMn(e){return!e||nn(e)!=="object"}var NMn=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,o=e.value,s=e.defaultValue,a=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,f=e.inputValue,h=e.onSearch,g=e.autoClearSearchValue,p=g===void 0?!0:g,m=e.filterTreeNode,v=e.treeNodeFilterProp,C=v===void 0?"value":v,y=e.showCheckedStrategy,b=e.treeNodeLabelProp,S=e.multiple,w=e.treeCheckable,x=e.treeCheckStrictly,E=e.labelInValue,R=e.maxCount,O=e.fieldNames,T=e.treeDataSimpleMode,M=e.treeData,_=e.children,F=e.loadData,D=e.treeLoadedKeys,k=e.onTreeLoad,L=e.treeDefaultExpandAll,I=e.treeExpandedKeys,A=e.treeDefaultExpandedKeys,N=e.onTreeExpand,B=e.treeExpandAction,z=e.virtual,j=e.listHeight,W=j===void 0?200:j,G=e.listItemHeight,K=G===void 0?20:G,q=e.listItemScrollOffset,X=q===void 0?0:q,Q=e.onDropdownVisibleChange,te=e.dropdownMatchSelectWidth,ne=te===void 0?!0:te,Z=e.treeLine,ee=e.treeIcon,J=e.showTreeIcon,oe=e.switcherIcon,le=e.treeMotion,ge=e.treeTitleRender,he=e.onPopupScroll,ye=on(e,LMn),ue=vpe(n),ve=w&&!x,de=w||x,xe=x||E,Ee=de||S,De=ir(s,{value:o}),Be=Ce(De,2),Ge=Be[0],Ue=Be[1],We=d.useMemo(function(){return w?y||gM:JV},[y,w]),Ve=d.useMemo(function(){return EMn(O)},[JSON.stringify(O)]),Fe=ir("",{value:u!==void 0?u:f,postState:function(xt){return xt||""}}),ke=Ce(Fe,2),Ye=ke[0],ze=ke[1],Re=function(xt){ze(xt),h==null||h(xt)},Le=PMn(M,_,T),Me=$Mn(Le,Ve),be=Me.keyEntities,je=Me.valueEntities,Xe=d.useCallback(function(Lt){var xt=[],Rt=[];return Lt.forEach(function(Ft){je.has(Ft)?Rt.push(Ft):xt.push(Ft)}),{missingRawValues:xt,existRawValues:Rt}},[je]),ft=IMn(Le,Ye,{fieldNames:Ve,treeNodeFilterProp:C,filterTreeNode:m}),Tt=d.useCallback(function(Lt){if(Lt){if(b)return Lt[b];for(var xt=Ve._title,Rt=0;Rt<xt.length;Rt+=1){var Ft=Lt[xt[Rt]];if(Ft!==void 0)return Ft}}},[Ve,b]),tt=d.useCallback(function(Lt){var xt=xMn(Lt);return xt.map(function(Rt){return FMn(Rt)?{value:Rt}:Rt})},[]),pt=d.useCallback(function(Lt){var xt=tt(Lt);return xt.map(function(Rt){var Ft=Rt.label,hn=Rt.value,Mt=Rt.halfChecked,mt,jt=je.get(hn);if(jt){var tn;Ft=ge?ge(jt.node):(tn=Ft)!==null&&tn!==void 0?tn:Tt(jt.node),mt=jt.node.disabled}else if(Ft===void 0){var Cn=tt(Ge).find(function(Ln){return Ln.value===hn});Ft=Cn.label}return{label:Ft,value:hn,halfChecked:Mt,disabled:mt}})},[je,Tt,tt,Ge]),$t=d.useMemo(function(){return tt(Ge===null?[]:Ge)},[tt,Ge]),wt=d.useMemo(function(){var Lt=[],xt=[];return $t.forEach(function(Rt){Rt.halfChecked?xt.push(Rt):Lt.push(Rt)}),[Lt,xt]},[$t]),It=Ce(wt,2),Ct=It[0],ot=It[1],nt=d.useMemo(function(){return Ct.map(function(Lt){return Lt.value})},[Ct]),fe=wMn(Ct,ot,ve,be),Te=Ce(fe,2),$e=Te[0],He=Te[1],it=d.useMemo(function(){var Lt=Oxe($e,We,be,Ve),xt=Lt.map(function(Mt){var mt,jt;return(mt=(jt=be[Mt])===null||jt===void 0||(jt=jt.node)===null||jt===void 0?void 0:jt[Ve.value])!==null&&mt!==void 0?mt:Mt}),Rt=xt.map(function(Mt){var mt=Ct.find(function(tn){return tn.value===Mt}),jt=E?mt==null?void 0:mt.label:ge==null?void 0:ge(mt);return{value:Mt,label:jt}}),Ft=pt(Rt),hn=Ft[0];return!Ee&&hn&&Rxe(hn.value)&&Rxe(hn.label)?[]:Ft.map(function(Mt){var mt;return se(se({},Mt),{},{label:(mt=Mt.label)!==null&&mt!==void 0?mt:Mt.value})})},[Ve,Ee,$e,Ct,pt,We,be]),at=SMn(it),gt=Ce(at,1),yt=gt[0],st=d.useMemo(function(){return Ee&&(We==="SHOW_CHILD"||x||!w)?R:null},[R,Ee,x,We,w]),Ze=$xe(function(Lt,xt,Rt){var Ft=Oxe(Lt,We,be,Ve);if(!(st&&Ft.length>st)){var hn=pt(Lt);if(Ue(hn),p&&ze(""),a){var Mt=Lt;ve&&(Mt=Ft.map(function(Tn){var Jn=je.get(Tn);return Jn?Jn.node[Ve.value]:Tn}));var mt=xt||{triggerValue:void 0,selected:void 0},jt=mt.triggerValue,tn=mt.selected,Cn=Mt;if(x){var Ln=ot.filter(function(Tn){return!Mt.includes(Tn.value)});Cn=[].concat(ut(Cn),ut(Ln))}var cn=pt(Cn),Dt={preValue:Ct,triggerValue:jt},sn=!0;(x||Rt==="selection"&&!tn)&&(sn=!1),TMn(Dt,jt,Lt,Le,sn,Ve),de?Dt.checked=tn:Dt.selected=tn;var Sn=xe?cn:cn.map(function(Tn){return Tn.value});a(Ee?Sn:Sn[0],xe?null:cn.map(function(Tn){return Tn.label}),Dt)}}}),dt=d.useCallback(function(Lt,xt){var Rt,Ft=xt.selected,hn=xt.source,Mt=be[Lt],mt=Mt==null?void 0:Mt.node,jt=(Rt=mt==null?void 0:mt[Ve.value])!==null&&Rt!==void 0?Rt:Lt;if(!Ee)Ze([jt],{selected:!0,triggerValue:jt},"option");else{var tn=Ft?[].concat(ut(nt),[jt]):$e.filter(function(Jn){return Jn!==jt});if(ve){var Cn=Xe(tn),Ln=Cn.missingRawValues,cn=Cn.existRawValues,Dt=cn.map(function(Jn){return je.get(Jn).key}),sn;if(Ft){var Sn=p0(Dt,!0,be);sn=Sn.checkedKeys}else{var Tn=p0(Dt,{checked:!1,halfCheckedKeys:He},be);sn=Tn.checkedKeys}tn=[].concat(ut(Ln),ut(sn.map(function(Jn){return be[Jn].node[Ve.value]})))}Ze(tn,{selected:Ft,triggerValue:jt},hn||"option")}Ft||!Ee?l==null||l(jt,Mle(mt)):c==null||c(jt,Mle(mt))},[Xe,je,be,Ve,Ee,nt,Ze,ve,l,c,$e,He,R]),At=d.useCallback(function(Lt){if(Q){var xt={};Object.defineProperty(xt,"documentClickClose",{get:function(){return ui(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Q(Lt,xt)}},[Q]),kt=$xe(function(Lt,xt){var Rt=Lt.map(function(Ft){return Ft.value});if(xt.type==="clear"){Ze(Rt,{},"selection");return}xt.values.length&&dt(xt.values[0].value,{selected:!1,source:"selection"})}),pn=d.useMemo(function(){return{virtual:z,dropdownMatchSelectWidth:ne,listHeight:W,listItemHeight:K,listItemScrollOffset:X,treeData:ft,fieldNames:Ve,onSelect:dt,treeExpandAction:B,treeTitleRender:ge,onPopupScroll:he,leftMaxCount:R===void 0?null:R-yt.length,leafCountOnly:We==="SHOW_CHILD"&&!x&&!!w,valueEntities:je}},[z,ne,W,K,X,ft,Ve,dt,B,ge,he,R,yt.length,We,x,w,je]),ln=d.useMemo(function(){return{checkable:de,loadData:F,treeLoadedKeys:D,onTreeLoad:k,checkedKeys:$e,halfCheckedKeys:He,treeDefaultExpandAll:L,treeExpandedKeys:I,treeDefaultExpandedKeys:A,onTreeExpand:N,treeIcon:ee,treeMotion:le,showTreeIcon:J,switcherIcon:oe,treeLine:Z,treeNodeFilterProp:C,keyEntities:be}},[de,F,D,k,$e,He,L,I,A,N,ee,le,J,oe,Z,C,be]);return d.createElement(LXe.Provider,{value:pn},d.createElement(DXe.Provider,{value:ln},d.createElement(hV,V({ref:t},ye,{id:ue,prefixCls:i,mode:Ee?"multiple":void 0,displayValues:yt,onDisplayValuesChange:kt,searchValue:Ye,onSearch:Re,OptionList:DMn,emptyOptions:!Le.length,onDropdownVisibleChange:At,dropdownMatchSelectWidth:ne}))))}),Jx=NMn;Jx.TreeNode=ZV;Jx.SHOW_ALL=JV;Jx.SHOW_PARENT=eG;Jx.SHOW_CHILD=gM;const kMn=Object.freeze(Object.defineProperty({__proto__:null,SHOW_ALL:JV,SHOW_CHILD:gM,SHOW_PARENT:eG,TreeNode:ZV,default:Jx},Symbol.toStringTag,{value:"Module"})),zMn=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${Ne(e.paddingXS)} ${Ne(e.calc(e.paddingXS).div(2).equal())}`},OXe(n,yr(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},Vpe(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function BMn(e,t,n){return Yr("TreeSelect",r=>{const i=yr(r,{treePrefixCls:t});return[zMn(i)]},TXe)(e,n)}var HMn=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 jMn=(e,t)=>{var n;const{prefixCls:r,size:i,disabled:o,bordered:s=!0,className:a,rootClassName:l,treeCheckable:c,multiple:u,listHeight:f=256,listItemHeight:h,placement:g,notFoundContent:p,switcherIcon:m,treeLine:v,getPopupContainer:C,popupClassName:y,dropdownClassName:b,treeIcon:S=!1,transitionName:w,choiceTransitionName:x="",status:E,treeExpandAction:R,builtinPlacements:O,dropdownMatchSelectWidth:T,popupMatchSelectWidth:M,allowClear:_,variant:F,dropdownStyle:D,tagRender:k,maxCount:L,showCheckedStrategy:I,treeCheckStrictly:A}=e,N=HMn(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:B,getPrefixCls:z,renderEmpty:j,direction:W,virtual:G,popupMatchSelectWidth:K,popupOverflow:q}=d.useContext(vn),[,X]=za(),Q=h??(X==null?void 0:X.controlHeightSM)+(X==null?void 0:X.paddingXXS),te=z(),ne=z("select",r),Z=z("select-tree",r),ee=z("tree-select",r),{compactSize:J,compactItemClassnames:oe}=Dy(ne,W),le=Oo(ne),ge=Oo(ee),[he,ye,ue]=YWe(ne,le),[ve]=BMn(ee,Z,ge),[de,xe]=rM("treeSelect",F,s),Ee=we(y||b,`${ee}-dropdown`,{[`${ee}-dropdown-rtl`]:W==="rtl"},l,ue,le,ge,ye),De=!!(c||u),Be=d.useMemo(()=>{if(!(L&&(I==="SHOW_ALL"&&!A||I==="SHOW_PARENT")))return L},[L,I,A]),Ge=QWe(e.suffixIcon,e.showArrow),Ue=(n=M??T)!==null&&n!==void 0?n:K,{status:We,hasFeedback:Ve,isFormItemInput:Fe,feedbackIcon:ke}=d.useContext(Na),Ye=ky(We,E),{suffixIcon:ze,removeIcon:Re,clearIcon:Le}=XWe(Object.assign(Object.assign({},N),{multiple:De,showSuffixIcon:Ge,hasFeedback:Ve,feedbackIcon:ke,prefixCls:ne,componentName:"TreeSelect"})),Me=_===!0?{clearIcon:Le}:_;let be;p!==void 0?be=p:be=(j==null?void 0:j("Select"))||d.createElement(Cpe,{componentName:"Select"});const je=$i(N,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Xe=d.useMemo(()=>g!==void 0?g:W==="rtl"?"bottomRight":"bottomLeft",[g,W]),ft=fl(Ct=>{var ot;return(ot=i??J)!==null&&ot!==void 0?ot:Ct}),Tt=d.useContext(yc),tt=o??Tt,pt=we(!r&&ee,{[`${ne}-lg`]:ft==="large",[`${ne}-sm`]:ft==="small",[`${ne}-rtl`]:W==="rtl",[`${ne}-${de}`]:xe,[`${ne}-in-form-item`]:Fe},Z4(ne,Ye,Ve),oe,a,l,ue,le,ge,ye),$t=Ct=>d.createElement(EIn,{prefixCls:Z,switcherIcon:m,treeNodeProps:Ct,showLine:v}),[wt]=y3("SelectLike",D==null?void 0:D.zIndex),It=d.createElement(Jx,Object.assign({virtual:G,disabled:tt},je,{dropdownMatchSelectWidth:Ue,builtinPlacements:UWe(O,q),ref:t,prefixCls:ne,className:pt,listHeight:f,listItemHeight:Q,treeCheckable:c&&d.createElement("span",{className:`${ne}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:ze,multiple:De,placement:Xe,removeIcon:Re,allowClear:Me,switcherIcon:$t,showTreeIcon:S,notFoundContent:be,getPopupContainer:C||B,treeMotion:null,dropdownClassName:Ee,dropdownStyle:Object.assign(Object.assign({},D),{zIndex:wt}),choiceTransitionName:Cu(te,"",x),transitionName:Cu(te,"slide-up",w),treeExpandAction:R,tagRender:De?k:void 0,maxCount:Be,showCheckedStrategy:I,treeCheckStrictly:A}));return he(ve(It))},VMn=d.forwardRef(jMn),Pm=VMn,GMn=ppe(Pm,"dropdownAlign",e=>$i(e,["visible"]));Pm.TreeNode=ZV;Pm.SHOW_ALL=JV;Pm.SHOW_PARENT=eG;Pm.SHOW_CHILD=gM;Pm._InternalPanelDoNotUseOrYouWillBeFired=GMn;const WMn=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},UMn=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
||
h${r}&,
|
||
div&-h${r},
|
||
div&-h${r} > textarea,
|
||
h${r}
|
||
`]=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)),{[`
|
||
& + 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}}}),KMn(e)),qMn(e)),{[`
|
||
${t}-expand,
|
||
${t}-collapse,
|
||
${t}-edit,
|
||
${t}-copy
|
||
`]: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&&(c.format=t.format),d.useEffect(()=>l,[]);const u=Hn(f=>aPn(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;sPn(g||nqt(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}};function mte(e,t){return d.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const cPn=e=>{const t=d.useRef(void 0);return d.useEffect(()=>{t.current=e}),t.current},uPn=(e,t,n)=>d.useMemo(()=>e===!0?{title:t??n}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var dPn=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 kXe=d.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:o,setContentRef:s,children:a,direction:l,style:c}=e,u=dPn(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:h,typography:g}=d.useContext(vn),p=l??h,m=s?Ws(t,s):t,v=f("typography",n),[C,y,b]=FXe(v),S=we(v,g==null?void 0:g.className,{[`${v}-rtl`]:p==="rtl"},i,o,y,b),w=Object.assign(Object.assign({},g==null?void 0:g.style),c);return C(d.createElement(r,Object.assign({className:S,style:w,ref:m},u),a))});function Ixe(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function vte(e,t,n){return e===!0||e===void 0?t:e||n&&t}function fPn(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const Ime=e=>["string","number"].includes(typeof e),hPn=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:o,icon:s,tabIndex:a,onCopy:l,loading:c}=e;const u=Ixe(o),f=Ixe(s),{copied:h,copy:g}=r??{},p=n?h:g,m=vte(u[n?1:0],p),v=typeof m=="string"?m:p;return d.createElement(Gm,{title:m},d.createElement("button",{type:"button",className:we(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":v,tabIndex:a},n?vte(f[1],d.createElement(CV,null),!0):vte(f[0],c?d.createElement(Tm,null):d.createElement(EYe,null),!0)))},DD=d.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=d.useRef(null);return d.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),gPn=e=>e.reduce((t,n)=>t+(Ime(n)?String(n).length:1),0);function Mxe(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const o=e[i],a=Ime(o)?String(o).length:1,l=n+a;if(l>t){const c=t-n;return r.push(String(o).slice(0,c)),r}r.push(o),n=l}return e}const Cte=0,yte=1,bte=2,Ste=3,Pxe=4,LD={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function pPn(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:s,miscDeps:a,onEllipsis:l}=e,c=d.useMemo(()=>Rs(r),[r]),u=d.useMemo(()=>gPn(c),[r]),f=d.useMemo(()=>i(c,!1),[r]),[h,g]=d.useState(null),p=d.useRef(null),m=d.useRef(null),v=d.useRef(null),C=d.useRef(null),y=d.useRef(null),[b,S]=d.useState(!1),[w,x]=d.useState(Cte),[E,R]=d.useState(0),[O,T]=d.useState(null);Zn(()=>{x(t&&n&&u?yte:Cte)},[n,r,o,t,c]),Zn(()=>{var D,k,L,I;if(w===yte){x(bte);const A=m.current&&getComputedStyle(m.current).whiteSpace;T(A)}else if(w===bte){const A=!!(!((D=v.current)===null||D===void 0)&&D.isExceed());x(A?Ste:Pxe),g(A?[0,u]:null),S(A);const N=((k=v.current)===null||k===void 0?void 0:k.getHeight())||0,B=o===1?0:((L=C.current)===null||L===void 0?void 0:L.getHeight())||0,z=((I=y.current)===null||I===void 0?void 0:I.getHeight())||0,j=Math.max(N,B+z);R(j+1),l(A)}},[w]);const M=h?Math.ceil((h[0]+h[1])/2):0;Zn(()=>{var D;const[k,L]=h||[0,0];if(k!==L){const A=(((D=p.current)===null||D===void 0?void 0:D.getHeight())||0)>E;let N=M;L-k===1&&(N=A?k:L),g(A?[k,N]:[N,L])}},[h,M]);const _=d.useMemo(()=>{if(!t)return i(c,!1);if(w!==Ste||!h||h[0]!==h[1]){const D=i(c,!1);return[Pxe,Cte].includes(w)?D:d.createElement("span",{style:Object.assign(Object.assign({},LD),{WebkitLineClamp:o})},D)}return i(s?c:Mxe(c,h[0]),b)},[s,w,h,c].concat(ut(a))),F={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,_,w===bte&&d.createElement(d.Fragment,null,d.createElement(DD,{style:Object.assign(Object.assign(Object.assign({},F),LD),{WebkitLineClamp:o}),ref:v},f),d.createElement(DD,{style:Object.assign(Object.assign(Object.assign({},F),LD),{WebkitLineClamp:o-1}),ref:C},f),d.createElement(DD,{style:Object.assign(Object.assign(Object.assign({},F),LD),{WebkitLineClamp:1}),ref:y},i([],!0))),w===Ste&&h&&h[0]!==h[1]&&d.createElement(DD,{style:Object.assign(Object.assign({},F),{top:400}),ref:p},i(Mxe(c,M),!0)),w===yte&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const mPn=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:d.createElement(Gm,Object.assign({open:n?void 0:!1},i),r)};var vPn=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 CPn(e,t){let{mark:n,code:r,underline:i,delete:o,strong:s,keyboard:a,italic:l}=e,c=t;function u(f,h){h&&(c=d.createElement(f,{},c))}return u("strong",s),u("u",i),u("del",o),u("code",r),u("mark",n),u("kbd",a),u("i",l),c}const yPn="...",tG=d.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:o,type:s,disabled:a,children:l,ellipsis:c,editable:u,copyable:f,component:h,title:g}=e,p=vPn(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:m,direction:v}=d.useContext(vn),[C]=ih("Text"),y=d.useRef(null),b=d.useRef(null),S=m("typography",r),w=$i(p,["mark","code","delete","underline","strong","keyboard","italic"]),[x,E]=mte(u),[R,O]=ir(!1,{value:E.editing}),{triggerType:T=["icon"]}=E,M=Me=>{var be;Me&&((be=E.onStart)===null||be===void 0||be.call(E)),O(Me)},_=cPn(R);Zn(()=>{var Me;!R&&_&&((Me=b.current)===null||Me===void 0||Me.focus())},[R]);const F=Me=>{Me==null||Me.preventDefault(),M(!0)},D=Me=>{var be;(be=E.onChange)===null||be===void 0||be.call(E,Me),M(!1)},k=()=>{var Me;(Me=E.onCancel)===null||Me===void 0||Me.call(E),M(!1)},[L,I]=mte(f),{copied:A,copyLoading:N,onClick:B}=lPn({copyConfig:I,children:l}),[z,j]=d.useState(!1),[W,G]=d.useState(!1),[K,q]=d.useState(!1),[X,Q]=d.useState(!1),[te,ne]=d.useState(!0),[Z,ee]=mte(c,{expandable:!1,symbol:Me=>Me?C==null?void 0:C.collapse:C==null?void 0:C.expand}),[J,oe]=ir(ee.defaultExpanded||!1,{value:ee.expanded}),le=Z&&(!J||ee.expandable==="collapsible"),{rows:ge=1}=ee,he=d.useMemo(()=>le&&(ee.suffix!==void 0||ee.onEllipsis||ee.expandable||x||L),[le,ee,x,L]);Zn(()=>{Z&&!he&&(j(Xae("webkitLineClamp")),G(Xae("textOverflow")))},[he,Z]);const[ye,ue]=d.useState(le),ve=d.useMemo(()=>he?!1:ge===1?W:z,[he,W,z]);Zn(()=>{ue(ve&&le)},[ve,le]);const de=le&&(ye?X:K),xe=le&&ge===1&&ye,Ee=le&&ge>1&&ye,De=(Me,be)=>{var je;oe(be.expanded),(je=ee.onExpand)===null||je===void 0||je.call(ee,Me,be)},[Be,Ge]=d.useState(0),Ue=Me=>{let{offsetWidth:be}=Me;Ge(be)},We=Me=>{var be;q(Me),K!==Me&&((be=ee.onEllipsis)===null||be===void 0||be.call(ee,Me))};d.useEffect(()=>{const Me=y.current;if(Z&&ye&&Me){const be=fPn(Me);X!==be&&Q(be)}},[Z,ye,l,Ee,te,Be]),d.useEffect(()=>{const Me=y.current;if(typeof IntersectionObserver>"u"||!Me||!ye||!le)return;const be=new IntersectionObserver(()=>{ne(!!Me.offsetParent)});return be.observe(Me),()=>{be.disconnect()}},[ye,le]);const Ve=uPn(ee.tooltip,E.text,l),Fe=d.useMemo(()=>{if(!(!Z||ye))return[E.text,l,g,Ve.title].find(Ime)},[Z,ye,g,Ve.title,de]);if(R)return d.createElement(ePn,{value:(n=E.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:D,onCancel:k,onEnd:E.onEnd,prefixCls:S,className:i,style:o,direction:v,component:h,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const ke=()=>{const{expandable:Me,symbol:be}=ee;return Me?d.createElement("button",{type:"button",key:"expand",className:`${S}-${J?"collapse":"expand"}`,onClick:je=>De(je,{expanded:!J}),"aria-label":J?C.collapse:C==null?void 0:C.expand},typeof be=="function"?be(J):be):null},Ye=()=>{if(!x)return;const{icon:Me,tooltip:be,tabIndex:je}=E,Xe=Rs(be)[0]||(C==null?void 0:C.edit),ft=typeof Xe=="string"?Xe:"";return T.includes("icon")?d.createElement(Gm,{key:"edit",title:be===!1?"":Xe},d.createElement("button",{type:"button",ref:b,className:`${S}-edit`,onClick:F,"aria-label":ft,tabIndex:je},Me||d.createElement(dme,{role:"button"}))):null},ze=()=>L?d.createElement(hPn,Object.assign({key:"copy"},I,{prefixCls:S,copied:A,locale:C,onCopy:B,loading:N,iconOnly:l==null})):null,Re=Me=>[Me&&ke(),Ye(),ze()],Le=Me=>[Me&&!J&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},yPn),ee.suffix,Re(Me)];return d.createElement(oa,{onResize:Ue,disabled:!le},Me=>d.createElement(mPn,{tooltipProps:Ve,enableEllipsis:le,isEllipsis:de},d.createElement(kXe,Object.assign({className:we({[`${S}-${s}`]:s,[`${S}-disabled`]:a,[`${S}-ellipsis`]:Z,[`${S}-ellipsis-single-line`]:xe,[`${S}-ellipsis-multiple-line`]:Ee},i),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Ee?ge:void 0}),component:h,ref:Ws(Me,y,t),direction:v,onClick:T.includes("text")?F:void 0,"aria-label":Fe==null?void 0:Fe.toString(),title:g},w),d.createElement(pPn,{enableMeasure:le&&!ye,text:l,rows:ge,width:Be,onEllipsis:We,expanded:J,miscDeps:[A,J,N,x,L,C]},(be,je)=>CPn(e,d.createElement(d.Fragment,null,be.length>0&&je&&!J&&Fe?d.createElement("span",{key:"show-content","aria-hidden":!0},be):be,Le(je)))))))});var bPn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const SPn=d.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=bPn(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,d.createElement(tG,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),wPn=d.forwardRef((e,t)=>d.createElement(tG,Object.assign({ref:t},e,{component:"div"})));var xPn=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 EPn=(e,t)=>{var{ellipsis:n}=e,r=xPn(e,["ellipsis"]);const i=d.useMemo(()=>n&&typeof n=="object"?$i(n,["expandable","rows"]):n,[n]);return d.createElement(tG,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},RPn=d.forwardRef(EPn);var $Pn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 OPn=[1,2,3,4,5],TPn=d.forwardRef((e,t)=>{const{level:n=1}=e,r=$Pn(e,["level"]),i=OPn.includes(n)?`h${n}`:"h1";return d.createElement(tG,Object.assign({ref:t},r,{component:i}))}),Kg=kXe;Kg.Text=RPn;Kg.Link=SPn;Kg.Title=TPn;Kg.Paragraph=wPn;const wte=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some(function(s){var a=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(a.charAt(0)==="."){var l=r.toLowerCase(),c=a.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(a)?o===a.replace(/\/.*$/,""):i===a?!0:/^\w+$/.test(a)?(ui(!1,"Upload takes an invalidate 'accept' type '".concat(a,"'.Skip for check.")),!0):!1})}return!0};function IPn(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function _xe(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function MPn(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var o=e.data[i];if(Array.isArray(o)){o.forEach(function(s){n.append("".concat(i,"[]"),s)});return}n.append(i,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(IPn(e,t),_xe(t)):e.onSuccess(_xe(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var PPn=function(){var e=rd(mo().mark(function t(n,r){var i,o,s,a,l,c,u,f;return mo().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:c=function(){return c=rd(mo().mark(function m(v){return mo().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(b){v.file(function(S){r(S)?(v.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),b(S)):b(null)})}));case 1:case"end":return y.stop()}},m)})),c.apply(this,arguments)},l=function(m){return c.apply(this,arguments)},a=function(){return a=rd(mo().mark(function m(v){var C,y,b,S,w;return mo().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:C=v.createReader(),y=[];case 2:return E.next=5,new Promise(function(R){C.readEntries(R,function(){return R([])})});case 5:if(b=E.sent,S=b.length,S){E.next=9;break}return E.abrupt("break",12);case 9:for(w=0;w<S;w++)y.push(b[w]);E.next=2;break;case 12:return E.abrupt("return",y);case 13:case"end":return E.stop()}},m)})),a.apply(this,arguments)},s=function(m){return a.apply(this,arguments)},i=[],o=[],n.forEach(function(p){return o.push(p.webkitGetAsEntry())}),u=function(){var p=rd(mo().mark(function m(v,C){var y,b;return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(v){w.next=2;break}return w.abrupt("return");case 2:if(v.path=C||"",!v.isFile){w.next=10;break}return w.next=6,l(v);case 6:y=w.sent,y&&i.push(y),w.next=15;break;case 10:if(!v.isDirectory){w.next=15;break}return w.next=13,s(v);case 13:b=w.sent,o.push.apply(o,ut(b));case 15:case"end":return w.stop()}},m)}));return function(v,C){return p.apply(this,arguments)}}(),f=0;case 9:if(!(f<o.length)){g.next=15;break}return g.next=12,u(o[f]);case 12:f++,g.next=9;break;case 15:return g.abrupt("return",i);case 16:case"end":return g.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),_Pn=+new Date,APn=0;function xte(){return"rc-upload-".concat(_Pn,"-").concat(++APn)}var DPn=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],LPn=function(e){hs(n,e);var t=wc(n);function n(){var r;qr(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ie(dn(r),"state",{uid:xte()}),ie(dn(r),"reqs",{}),ie(dn(r),"fileInput",void 0),ie(dn(r),"_isMounted",void 0),ie(dn(r),"onChange",function(a){var l=r.props,c=l.accept,u=l.directory,f=a.target.files,h=ut(f).filter(function(g){return!u||wte(g,c)});r.uploadFiles(h),r.reset()}),ie(dn(r),"onClick",function(a){var l=r.fileInput;if(l){var c=a.target,u=r.props.onClick;if(c&&c.tagName==="BUTTON"){var f=l.parentNode;f.focus(),c.blur()}l.click(),u&&u(a)}}),ie(dn(r),"onKeyDown",function(a){a.key==="Enter"&&r.onClick(a)}),ie(dn(r),"onFileDrop",function(){var a=rd(mo().mark(function l(c){var u,f,h;return mo().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(u=r.props.multiple,c.preventDefault(),c.type!=="dragover"){p.next=4;break}return p.abrupt("return");case 4:if(!r.props.directory){p.next=11;break}return p.next=7,PPn(Array.prototype.slice.call(c.dataTransfer.items),function(m){return wte(m,r.props.accept)});case 7:f=p.sent,r.uploadFiles(f),p.next=14;break;case 11:h=ut(c.dataTransfer.files).filter(function(m){return wte(m,r.props.accept)}),u===!1&&(h=h.slice(0,1)),r.uploadFiles(h);case 14:case"end":return p.stop()}},l)}));return function(l){return a.apply(this,arguments)}}()),ie(dn(r),"uploadFiles",function(a){var l=ut(a),c=l.map(function(u){return u.uid=xte(),r.processFile(u,l)});Promise.all(c).then(function(u){var f=r.props.onBatchStart;f==null||f(u.map(function(h){var g=h.origin,p=h.parsedFile;return{file:g,parsedFile:p}})),u.filter(function(h){return h.parsedFile!==null}).forEach(function(h){r.post(h)})})}),ie(dn(r),"processFile",function(){var a=rd(mo().mark(function l(c,u){var f,h,g,p,m,v,C,y,b;return mo().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(f=r.props.beforeUpload,h=c,!f){w.next=14;break}return w.prev=3,w.next=6,f(c,u);case 6:h=w.sent,w.next=12;break;case 9:w.prev=9,w.t0=w.catch(3),h=!1;case 12:if(h!==!1){w.next=14;break}return w.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(g=r.props.action,typeof g!="function"){w.next=21;break}return w.next=18,g(c);case 18:p=w.sent,w.next=22;break;case 21:p=g;case 22:if(m=r.props.data,typeof m!="function"){w.next=29;break}return w.next=26,m(c);case 26:v=w.sent,w.next=30;break;case 29:v=m;case 30:return C=(nn(h)==="object"||typeof h=="string")&&h?h:c,C instanceof File?y=C:y=new File([C],c.name,{type:c.type}),b=y,b.uid=c.uid,w.abrupt("return",{origin:c,data:v,parsedFile:b,action:p});case 35:case"end":return w.stop()}},l,null,[[3,9]])}));return function(l,c){return a.apply(this,arguments)}}()),ie(dn(r),"saveFileInput",function(a){r.fileInput=a}),r}return Kr(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(i){var o=this,s=i.data,a=i.origin,l=i.action,c=i.parsedFile;if(this._isMounted){var u=this.props,f=u.onStart,h=u.customRequest,g=u.name,p=u.headers,m=u.withCredentials,v=u.method,C=a.uid,y=h||MPn,b={action:l,filename:g,data:s,file:c,headers:p,withCredentials:m,method:v||"post",onProgress:function(w){var x=o.props.onProgress;x==null||x(w,c)},onSuccess:function(w,x){var E=o.props.onSuccess;E==null||E(w,c,x),delete o.reqs[C]},onError:function(w,x){var E=o.props.onError;E==null||E(w,x,c),delete o.reqs[C]}};f(a),this.reqs[C]=y(b)}}},{key:"reset",value:function(){this.setState({uid:xte()})}},{key:"abort",value:function(i){var o=this.reqs;if(i){var s=i.uid?i.uid:i;o[s]&&o[s].abort&&o[s].abort(),delete o[s]}else Object.keys(o).forEach(function(a){o[a]&&o[a].abort&&o[a].abort(),delete o[a]})}},{key:"render",value:function(){var i=this.props,o=i.component,s=i.prefixCls,a=i.className,l=i.classNames,c=l===void 0?{}:l,u=i.disabled,f=i.id,h=i.name,g=i.style,p=i.styles,m=p===void 0?{}:p,v=i.multiple,C=i.accept,y=i.capture,b=i.children,S=i.directory,w=i.openFileDialogOnClick,x=i.onMouseEnter,E=i.onMouseLeave,R=i.hasControlInside,O=on(i,DPn),T=we(ie(ie(ie({},s,!0),"".concat(s,"-disabled"),u),a,a)),M=S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},_=u?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:E,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:R?void 0:"0"};return ce.createElement(o,V({},_,{className:T,role:R?void 0:"button",style:g}),ce.createElement("input",V({},$o(O,{aria:!0,data:!0}),{id:f,name:h,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(D){return D.stopPropagation()},key:this.state.uid,style:se({display:"none"},m.input),className:c.input,accept:C},M,{multiple:v,onChange:this.onChange},y!=null?{capture:y}:{})),b)}}]),n}(d.Component);function Ete(){}var mB=function(e){hs(n,e);var t=wc(n);function n(){var r;qr(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ie(dn(r),"uploader",void 0),ie(dn(r),"saveUploader",function(a){r.uploader=a}),r}return Kr(n,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return ce.createElement(LPn,V({},this.props,{ref:this.saveUploader}))}}]),n}(d.Component);ie(mB,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ete,onError:Ete,onSuccess:Ete,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const FPn=Object.freeze(Object.defineProperty({__proto__:null,default:mB},Symbol.toStringTag,{value:"Module"})),NPn=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
||
&: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
|
||
`]:{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}`},[`
|
||
${l}:focus-visible,
|
||
&.picture ${l}
|
||
`]:{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`]:{[`
|
||
${s}${s}-picture,
|
||
${s}${s}-picture-card,
|
||
${s}${s}-picture-circle
|
||
`]:{[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{[`
|
||
${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
|
||
`]:{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(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:M!=="uploading"});L=d.createElement("div",{className:J},k)}else{const J=g!=null&&g(a)?d.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${n}-list-item-image`,crossOrigin:a.crossOrigin}):k,oe=we(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(a)});L=d.createElement("a",{className:oe,onClick:le=>w(a,le),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},J)}const I=we(`${n}-list-item`,`${n}-list-item-${M}`),A=typeof a.linkProps=="string"?JSON.parse(a.linkProps):a.linkProps,N=(typeof m=="function"?m(a):m)?f((typeof y=="function"?y(a):y)||d.createElement(Dg,null),()=>E(a),n,o.removeFile,!0):null,B=(typeof v=="function"?v(a):v)&&M==="done"?f((typeof b=="function"?b(a):b)||d.createElement(RYe,null),()=>x(a),n,o.downloadFile):null,z=s!=="picture-card"&&s!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:we(`${n}-list-item-actions`,{picture:s==="picture"})},B,N),j=typeof S=="function"?S(a):S,W=j&&d.createElement("span",{className:`${n}-list-item-extra`},j),G=we(`${n}-list-item-name`),K=a.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:G,title:a.name},A,{href:a.url,onClick:J=>w(a,J)}),a.name,W):d.createElement("span",{key:"view",className:G,onClick:J=>w(a,J),title:a.name},a.name,W),q=(typeof p=="function"?p(a):p)&&(a.url||a.thumbUrl)?d.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:J=>w(a,J),title:o.previewFile},typeof C=="function"?C(a):C||d.createElement(w3,null)):null,X=(s==="picture-card"||s==="picture-circle")&&M!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},q,M==="done"&&B,N),{getPrefixCls:Q}=d.useContext(vn),te=Q(),ne=d.createElement("div",{className:I},L,K,z,X,F&&d.createElement(Hs,{motionName:`${te}-fade`,visible:M==="uploading",motionDeadline:2e3},J=>{let{className:oe}=J;const le="percent"in a?d.createElement(eme,Object.assign({},c,{type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]})):null;return d.createElement("div",{className:we(`${n}-list-item-progress`,oe)},le)})),Z=a.response&&typeof a.response=="string"?a.response:((R=a.error)===null||R===void 0?void 0:R.statusText)||((O=a.error)===null||O===void 0?void 0:O.message)||o.uploadError,ee=M==="error"?d.createElement(Gm,{title:Z,getPopupContainer:J=>J.parentNode},ne):ne;return d.createElement("div",{className:we(`${n}-list-item-container`,r),style:i,ref:t},h?h(ee,a,l,{download:x.bind(null,a),preview:w.bind(null,a),remove:E.bind(null,a)}):ee)}),QPn=(e,t)=>{const{listType:n="text",previewFile:r=YPn,onPreview:i,onDownload:o,onRemove:s,locale:a,iconRender:l,isImageUrl:c=KPn,prefixCls:u,items:f=[],showPreviewIcon:h=!0,showRemoveIcon:g=!0,showDownloadIcon:p=!1,removeIcon:m,previewIcon:v,downloadIcon:C,extra:y,progress:b={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:w=!0,itemRender:x,disabled:E}=e,R=eUe(),[O,T]=d.useState(!1),M=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(W=>{!(W.originFileObj instanceof File||W.originFileObj instanceof Blob)||W.thumbUrl!==void 0||(W.thumbUrl="",r==null||r(W.originFileObj).then(G=>{W.thumbUrl=G||"",R()}))})},[n,f,r]),d.useEffect(()=>{T(!0)},[]);const _=(W,G)=>{if(i)return G==null||G.preventDefault(),i(W)},F=W=>{typeof o=="function"?o(W):W.url&&window.open(W.url)},D=W=>{s==null||s(W)},k=W=>{if(l)return l(W,n);const G=W.status==="uploading";if(n.startsWith("picture")){const K=n==="picture"?d.createElement(Tm,null):a.uploading,q=c!=null&&c(W)?d.createElement(KYe,null):d.createElement(AYe,null);return G?K:q}return G?d.createElement(Tm,null):d.createElement(UYe,null)},L=(W,G,K,q,X)=>{const Q={type:"text",size:"small",title:q,onClick:te=>{var ne,Z;G(),d.isValidElement(W)&&((Z=(ne=W.props).onClick)===null||Z===void 0||Z.call(ne,te))},className:`${K}-list-item-action`};return X&&(Q.disabled=E),d.isValidElement(W)?d.createElement(Cr,Object.assign({},Q,{icon:js(W,Object.assign(Object.assign({},W.props),{onClick:()=>{}}))})):d.createElement(Cr,Object.assign({},Q),d.createElement("span",null,W))};d.useImperativeHandle(t,()=>({handlePreview:_,handleDownload:F}));const{getPrefixCls:I}=d.useContext(vn),A=I("upload",u),N=I(),B=we(`${A}-list`,`${A}-list-${n}`),z=d.useMemo(()=>$i(TT(N),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[N]),j=Object.assign(Object.assign({},M?{}:z),{motionDeadline:2e3,motionName:`${A}-${M?"animate-inline":"animate"}`,keys:ut(f.map(W=>({key:W.uid,file:W}))),motionAppear:O});return d.createElement("div",{className:B},d.createElement(Wj,Object.assign({},j,{component:!1}),W=>{let{key:G,file:K,className:q,style:X}=W;return d.createElement(XPn,{key:G,locale:a,prefixCls:A,className:q,style:X,file:K,items:f,progress:b,listType:n,isImgUrl:c,showPreviewIcon:h,showRemoveIcon:g,showDownloadIcon:p,removeIcon:m,previewIcon:v,downloadIcon:C,extra:y,iconRender:k,actionIconRender:L,itemRender:x,onPreview:_,onDownload:F,onClose:D})}),S&&d.createElement(Hs,Object.assign({},j,{visible:w,forceRender:!0}),W=>{let{className:G,style:K}=W;return js(S,q=>({className:we(q.className,G),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:G?"none":void 0}),q.style)}))}))},ZPn=d.forwardRef(QPn);var JPn=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,[])).next())})};const c$=`__LIST_IGNORE_${Date.now()}__`,e_n=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:o=!0,listType:s="text",onPreview:a,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:h,locale:g,iconRender:p,isImageUrl:m,progress:v,prefixCls:C,className:y,type:b="select",children:S,style:w,itemRender:x,maxCount:E,data:R={},multiple:O=!1,hasControlInside:T=!0,action:M="",accept:_="",supportServerRender:F=!0,rootClassName:D}=e,k=d.useContext(yc),L=h??k,[I,A]=ir(r||[],{value:n,postState:Re=>Re??[]}),[N,B]=d.useState("drop"),z=d.useRef(null),j=d.useRef(null);d.useMemo(()=>{const Re=Date.now();(n||[]).forEach((Le,Me)=>{!Le.uid&&!Object.isFrozen(Le)&&(Le.uid=`__AUTO__${Re}_${Me}__`)})},[n]);const W=(Re,Le,Me)=>{let be=ut(Le),je=!1;E===1?be=be.slice(-1):E&&(je=be.length>E,be=be.slice(0,E)),fo.flushSync(()=>{A(be)});const Xe={file:Re,fileList:be};Me&&(Xe.event=Me),(!je||Re.status==="removed"||be.some(ft=>ft.uid===Re.uid))&&fo.flushSync(()=>{c==null||c(Xe)})},G=(Re,Le)=>JPn(void 0,void 0,void 0,function*(){const{beforeUpload:Me,transformFile:be}=e;let je=Re;if(Me){const Xe=yield Me(Re,Le);if(Xe===!1)return!1;if(delete Re[c$],Xe===c$)return Object.defineProperty(Re,c$,{value:!0,configurable:!0}),!1;typeof Xe=="object"&&Xe&&(je=Xe)}return be&&(je=yield be(je)),je}),K=Re=>{const Le=Re.filter(je=>!je.file[c$]);if(!Le.length)return;const Me=Le.map(je=>FD(je.file));let be=ut(I);Me.forEach(je=>{be=ND(je,be)}),Me.forEach((je,Xe)=>{let ft=je;if(Le[Xe].parsedFile)je.status="uploading";else{const{originFileObj:Tt}=je;let tt;try{tt=new File([Tt],Tt.name,{type:Tt.type})}catch{tt=new Blob([Tt],{type:Tt.type}),tt.name=Tt.name,tt.lastModifiedDate=new Date,tt.lastModified=new Date().getTime()}tt.uid=je.uid,ft=tt}W(ft,be)})},q=(Re,Le,Me)=>{try{typeof Re=="string"&&(Re=JSON.parse(Re))}catch{}if(!Rte(Le,I))return;const be=FD(Le);be.status="done",be.percent=100,be.response=Re,be.xhr=Me;const je=ND(be,I);W(be,je)},X=(Re,Le)=>{if(!Rte(Le,I))return;const Me=FD(Le);Me.status="uploading",Me.percent=Re.percent;const be=ND(Me,I);W(Me,be,Re)},Q=(Re,Le,Me)=>{if(!Rte(Me,I))return;const be=FD(Me);be.error=Re,be.response=Le,be.status="error";const je=ND(be,I);W(be,je)},te=Re=>{let Le;Promise.resolve(typeof i=="function"?i(Re):i).then(Me=>{var be;if(Me===!1)return;const je=UPn(Re,I);je&&(Le=Object.assign(Object.assign({},Re),{status:"removed"}),I==null||I.forEach(Xe=>{const ft=Le.uid!==void 0?"uid":"name";Xe[ft]===Le[ft]&&!Object.isFrozen(Xe)&&(Xe.status="removed")}),(be=z.current)===null||be===void 0||be.abort(Le),W(Le,je))})},ne=Re=>{B(Re.type),Re.type==="drop"&&(u==null||u(Re))};d.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:q,onProgress:X,onError:Q,fileList:I,upload:z.current,nativeElement:j.current}));const{getPrefixCls:Z,direction:ee,upload:J}=d.useContext(vn),oe=Z("upload",C),le=Object.assign(Object.assign({onBatchStart:K,onError:Q,onProgress:X,onSuccess:q},e),{data:R,multiple:O,action:M,accept:_,supportServerRender:F,prefixCls:oe,disabled:L,beforeUpload:G,onChange:void 0,hasControlInside:T});delete le.className,delete le.style,(!S||L)&&delete le.id;const ge=`${oe}-wrapper`,[he,ye,ue]=WPn(oe,ge),[ve]=ih("Upload",yd.Upload),{showRemoveIcon:de,showPreviewIcon:xe,showDownloadIcon:Ee,removeIcon:De,previewIcon:Be,downloadIcon:Ge,extra:Ue}=typeof o=="boolean"?{}:o,We=typeof de>"u"?!L:de,Ve=(Re,Le)=>o?d.createElement(ZPn,{prefixCls:oe,listType:s,items:I,previewFile:f,onPreview:a,onDownload:l,onRemove:te,showRemoveIcon:We,showPreviewIcon:xe,showDownloadIcon:Ee,removeIcon:De,previewIcon:Be,downloadIcon:Ge,iconRender:p,extra:Ue,locale:Object.assign(Object.assign({},ve),g),isImageUrl:m,progress:v,appendAction:Re,appendActionVisible:Le,itemRender:x,disabled:L}):Re,Fe=we(ge,y,D,ye,ue,J==null?void 0:J.className,{[`${oe}-rtl`]:ee==="rtl",[`${oe}-picture-card-wrapper`]:s==="picture-card",[`${oe}-picture-circle-wrapper`]:s==="picture-circle"}),ke=Object.assign(Object.assign({},J==null?void 0:J.style),w);if(b==="drag"){const Re=we(ye,oe,`${oe}-drag`,{[`${oe}-drag-uploading`]:I.some(Le=>Le.status==="uploading"),[`${oe}-drag-hover`]:N==="dragover",[`${oe}-disabled`]:L,[`${oe}-rtl`]:ee==="rtl"});return he(d.createElement("span",{className:Fe,ref:j},d.createElement("div",{className:Re,style:ke,onDrop:ne,onDragOver:ne,onDragLeave:ne},d.createElement(mB,Object.assign({},le,{ref:z,className:`${oe}-btn`}),d.createElement("div",{className:`${oe}-drag-container`},S))),Ve()))}const Ye=we(oe,`${oe}-select`,{[`${oe}-disabled`]:L,[`${oe}-hidden`]:!S}),ze=d.createElement("div",{className:Ye},d.createElement(mB,Object.assign({},le,{ref:z})));return he(s==="picture-card"||s==="picture-circle"?d.createElement("span",{className:Fe,ref:j},Ve(ze,!!S)):d.createElement("span",{className:Fe,ref:j},ze,Ve()))},BXe=d.forwardRef(e_n);var t_n=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 n_n=d.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,o=t_n(e,["style","height","hasControlInside"]);return d.createElement(BXe,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),kT=BXe;kT.Dragger=n_n;kT.LIST_IGNORE=c$;var r_n=function(e){hs(n,e);var t=wc(n);function n(){return qr(this,n),t.apply(this,arguments)}return Kr(n,[{key:"render",value:function(){return this.props.children}}]),n}(ce.Component),i_n={subtree:!0,childList:!0,attributeFilter:["style","class"]};function HXe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i_n;d.useEffect(function(){if(!(!Bs()||!e)){var r,i=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),i.forEach(function(o){r.observe(o,n)})),function(){var o,s;(o=r)===null||o===void 0||o.takeRecords(),(s=r)===null||s===void 0||s.disconnect()}}},[n,e])}var o_n=function(t){var n=t.children,r=t.options,i=t.onMutate,o=i===void 0?function(){}:i,s=Hn(o),a=ce.useRef(null),l=ce.useRef(null),c=ce.isValidElement(n)&&Cd(n),u=Od(l,c?n.ref:null),f=ce.useState(null),h=Ce(f,2),g=h[0],p=h[1];return HXe(g,s,r),Zn(function(){p(nC(l.current)||nC(a.current))}),n?ce.createElement(r_n,{ref:a},c?ce.cloneElement(n,{ref:u}):n):null};const s_n=Object.freeze(Object.defineProperty({__proto__:null,default:o_n,useMutateObserver:HXe},Symbol.toStringTag,{value:"Module"}));function Axe(){return H.jsx("div",{className:"pt-48 flex justify-center items-center text-tertiary",children:H.jsx(Wp,{description:"您无权访问此页面"})})}function qu({options:e={},children:t}){const{isAuthenticated:n,user:r,hasEveryPermissions:i,hasSomePermissions:o,isLoading:s}=Wi(),a=jm();if(s)return H.jsx("div",{className:" flex items-center justify-center pt-64",children:H.jsx(iv,{size:"large"})});if(!n)return H.jsx(oyt,{to:`/login?redirect_url=${a.pathname}`});if(r){if(e.orPermissions&&!o(...e.orPermissions))return H.jsx(Axe,{});if(e.andPermissions&&!i(...e.andPermissions))return H.jsx(Axe,{})}return t}function bu({defaultValue:e,value:t,onChange:n,className:r,placeholder:i="选择单位",multiple:o=!1,rootId:s=null,disabled:a=!1,domain:l=void 0}){const c=an.useUtils(),[u,f]=d.useState([]),h=d.useCallback(async(y,b)=>{const S=Array.isArray(y)?y:[y];try{return await c.department.getParentSimpleTree.fetch({deptIds:S,rootId:b,domain:l})}catch(w){throw console.error("Error fetching parent departments for deptIds",S,":",w),w}},[c]),g=d.useCallback(async()=>{try{let b=[...await c.department.getChildSimpleTree.fetch({deptIds:[s],domain:l})];if(e){const S=await h(e,s);b=e4([...u,...b,...S],"id")}if(t){const S=await h(t,s);b=e4([...u,...b,...S],"id")}f(b)}catch(y){console.error("Error fetching departments:",y)}},[e,t,s,c,h]);d.useEffect(()=>{g()},[e,t,s,g]);const p=y=>{if(n){const b=o&&Array.isArray(y)?y.map(S=>S.value):y;n(b)}},m=async({id:y})=>{try{const b=await c.department.getChildSimpleTree.fetch({deptIds:[y],domain:l}),S=e4([...u,...b],"id");f(S)}catch(b){console.error("Error loading data for node with id",y,":",b)}},v=async y=>{try{const b=y.map(E=>E.toString()).filter(Boolean)||[],w=(await c.department.getChildSimpleTree.fetch({deptIds:b,domain:l})).flat(),x=e4([...u,...w],"id");f(x)}catch(b){console.error("Error expanding nodes with keys",y,":",b)}},C=async y=>{if(y){const b=u.map(S=>S.id);await v(b)}};return H.jsx(Pm,{treeDataSimpleMode:!0,disabled:a,showSearch:!0,allowClear:!0,defaultValue:e,value:t,className:r,placeholder:i,onChange:p,loadData:m,treeData:u,treeCheckable:o,showCheckedStrategy:Pm.SHOW_ALL,treeCheckStrictly:o,onClear:()=>p(o?[]:void 0),onTreeExpand:v,onDropdownVisibleChange:C})}const Dxe=({width:e,height:t})=>{const n=d.useRef(null);d.useEffect(()=>{if(n.current){const i=n.current.getContext("2d");i&&r(i)}},[e,t]);function r(i){let o=0;const s=[{baseAmplitude:t*.13,amplitudeModifier:c=>Math.sin(Math.PI*c/e),phase:Math.PI/2,lineWidth:3,cycle:e*Math.random()*1e-4,opacityModifier:c=>{const u=Math.abs(c-e/2),f=e/2;return 1-Math.pow(u/f,2)}},{baseAmplitude:t*.12,amplitudeModifier:c=>Math.sin(Math.PI*c/e),phase:0,lineWidth:1.5,cycle:e*Math.random()*.001,opacityModifier:c=>{const u=Math.abs(c-e/2),f=e/2;return 1-Math.pow(u/f,2)}},{baseAmplitude:t*.1,amplitudeModifier:c=>Math.sin(Math.PI*c/e),phase:Math.PI,lineWidth:.5,cycle:e*Math.random()*.01,opacityModifier:c=>{const u=Math.abs(c-e/2),f=e/2;return 1-Math.pow(u/f,2)}},{baseAmplitude:t*.11,amplitudeModifier:c=>Math.sin(Math.PI*c/e),phase:Math.random()*Math.PI*2,lineWidth:1.3,cycle:e*Math.random()*.1,opacityModifier:c=>{const u=Math.abs(c-e/2),f=e/2;return 1-Math.pow(u/f,2)}}],a=i.createLinearGradient(0,0,e,0);a.addColorStop(0,"rgba(255, 255, 255, 0)"),a.addColorStop(.5,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)");function l(){i.clearRect(0,0,e,t),o+=.1,s==null||s.forEach(c=>{i.beginPath();for(let u=0;u<e;u++){let f=t/2+c.baseAmplitude*c.amplitudeModifier(u)*Math.sin(u*c.cycle+o+c.phase);i.strokeStyle=a,i.lineTo(u,f)}i.lineWidth=c.lineWidth,i.stroke()}),requestAnimationFrame(l)}l()}return H.jsx("canvas",{ref:n,width:e,height:t,className:"block"})},a_n=()=>{const[e,t]=d.useState(!0),[n,r]=d.useState(!1),{login:i,isAuthenticated:o,signup:s}=Wi(),a=d.useRef(null),l=d.useRef(null),c=jm(),u=Gs(),f=async g=>{var p,m;try{const{username:v,password:C}=g;await i(v,C)}catch(v){li.error(((m=(p=v==null?void 0:v.response)==null?void 0:p.data)==null?void 0:m.message)||"帐号或密码错误!"),console.error(v)}},h=async g=>{var b,S;r(!0);const{username:p,password:m,deptId:v,officerId:C,showname:y}=g;try{await s({username:p,password:m,deptId:v,officerId:C,showname:y}),li.success("注册成功!"),t(!0)}catch(w){li.error((S=(b=w==null?void 0:w.response)==null?void 0:b.data)==null?void 0:S.message)}finally{r(!1)}};return d.useEffect(()=>{if(o){const p=new URLSearchParams(c.search).get("redirect_url")||"/";u(p,{replace:!0})}},[o,c]),H.jsx("div",{className:"flex justify-center items-center h-screen w-full bg-gray-200",style:{},children:H.jsxs("div",{className:"flex items-center transition-all hover:bg-white overflow-hidden border-2 border-white bg-gray-50 shadow-elegant rounded-xl ",style:{width:800,height:600},children:[H.jsx("div",{className:"transition-all h-full flex-1 text-white p-10 flex items-center justify-center bg-primary",children:e?H.jsxs("div",{className:"flex flex-col",children:[H.jsx(Dxe,{width:300,height:200}),H.jsx("div",{className:"text-2xl my-4",children:"没有账号?"}),H.jsx("div",{className:"my-4 font-thin text-sm",children:"点击注册一个属于你自己的账号吧!"}),H.jsx("div",{onClick:()=>t(!1),className:"hover:translate-y-1 my-8 p-2 text-center rounded-xl border-white border hover:bg-white hover:text-primary hover:shadow-xl hover:cursor-pointer transition-all",children:"注册"})]}):H.jsxs("div",{className:"flex flex-col",children:[H.jsx("div",{className:"text-2xl my-4",children:"注册小贴士"}),H.jsx("div",{className:"my-4 font-thin text-sm",children:"请认真填写用户信息哦!"}),H.jsx("div",{onClick:()=>t(!0),className:"hover:translate-y-1 my-8 rounded-xl text-center border-white border p-2 hover:bg-white hover:text-primary hover:shadow-xl hover:cursor-pointer transition-all",children:"返回登录"}),H.jsx(Dxe,{width:300,height:200})]})}),H.jsx("div",{className:"flex-1 py-10 px-10",children:e?H.jsxs(H.Fragment,{children:[H.jsx("div",{className:"text-center text-2xl text-primary select-none",children:H.jsx("span",{className:"px-2",children:"登录"})}),H.jsxs(Rn,{ref:a,onFinish:f,layout:"vertical",requiredMark:"optional",size:"large",children:[H.jsx(Rn.Item,{name:"username",label:"帐号",rules:[{required:!0,message:"请输入帐号"}],children:H.jsx(Ai,{})}),H.jsx(Rn.Item,{name:"password",label:"密码",rules:[{required:!0,message:"请输入密码"}],children:H.jsx(Ai.Password,{})}),H.jsx("div",{className:"flex items-center justify-center",children:H.jsx(Cr,{type:"primary",htmlType:"submit",children:"登录"})})]})]}):H.jsxs("div",{children:[H.jsx("div",{className:"text-center text-2xl text-primary",children:"注册"}),H.jsxs(Rn,{requiredMark:"optional",ref:l,onFinish:h,layout:"vertical",size:"large",children:[H.jsx(Rn.Item,{name:"deptId",label:"所属单位",rules:[{required:!0,message:"请选择单位"}],children:H.jsx(bu,{domain:!0})}),H.jsxs(Gpe,{gutter:8,children:[H.jsx(DT,{span:12,children:H.jsx(Rn.Item,{name:"username",label:"帐号",rules:[{required:!0,message:"请输入帐号"},{min:2,max:15,message:"帐号长度为 2 到 15 个字符"}],children:H.jsx(Ai,{})})}),H.jsx(DT,{span:12,children:H.jsx(Rn.Item,{name:"showname",label:"姓名",rules:[{required:!0,message:"请输入姓名"},{min:2,max:15,message:"姓名长度为 2 到 15 个字符"}],children:H.jsx(Ai,{})})})]}),H.jsx(Rn.Item,{name:"officerId",label:"证件号",rules:[{required:!0,pattern:/^\d{5,12}$/,message:"请输入正确的证件号(数字格式)"}],children:H.jsx(Ai,{})}),H.jsx(Rn.Item,{name:"password",label:"密码",rules:[{required:!0,message:"请输入密码"},{min:6,message:"密码长度不能小于 6 位"}],children:H.jsx(Ai.Password,{})}),H.jsx(Rn.Item,{name:"repeatPass",label:"确认密码",dependencies:["password"],hasFeedback:!0,rules:[{required:!0,message:"请再次输入密码"},({getFieldValue:g})=>({validator(p,m){return!m||g("password")===m?Promise.resolve():Promise.reject(new Error("两次输入的密码不一致"))}})],children:H.jsx(Ai.Password,{})}),H.jsx("div",{className:"flex items-center justify-center",children:H.jsx(Cr,{loading:n,type:"primary",htmlType:"submit",children:"注册"})})]})]})})]})})},l_n=()=>{const e=d.useRef(null),{statistics:t,slides:n}=pge(),[r,i]=d.useState(4),o=d.useMemo(()=>[{icon:H.jsx(qV,{}),value:t.staffs,label:"注册学员"},{icon:H.jsx(ZYe,{}),value:t.courses,label:"精品课程"},{icon:H.jsx(GV,{}),value:t.lectures,label:"课程章节"},{icon:H.jsx(w3,{}),value:t.reads,label:"播放次数"}],[t]),s=d.useCallback(()=>{var c;(c=e.current)==null||c.prev()},[]),a=d.useCallback(()=>{var c;(c=e.current)==null||c.next()},[]),l=c=>Object.values(c).filter(u=>u!==0).length;return d.useEffect(()=>{const c=l(t);console.log(c),i(c)},[t]),H.jsxs("section",{className:"relative ",children:[H.jsxs("div",{className:"group",children:[H.jsx(ujt,{ref:e,autoplay:!0,effect:"fade",className:"h-[600px] mb-24",dots:{className:"carousel-dots !bottom-32 !z-20"},children:Array.isArray(n)?n.map((c,u)=>H.jsxs("div",{className:"relative h-[600px]",children:[H.jsx("div",{className:"absolute inset-0 bg-cover bg-center transform transition-[transform,filter] duration-[2000ms] group-hover:scale-105 group-hover:brightness-110 will-change-[transform,filter]",style:{backgroundImage:`url(${c})`,backfaceVisibility:"hidden"}}),H.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"}),H.jsx("div",{className:"relative h-full max-w-7xl mx-auto px-6 lg:px-8"})]},u)):H.jsx("div",{})}),H.jsx("button",{onClick:s,className:"absolute left-4 md:left-8 top-1/2 -translate-y-1/2 z-10 opacity-0 group-hover:opacity-100 transition-all duration-300 bg-black/20 hover:bg-black/30 w-12 h-12 flex items-center justify-center rounded-full transform hover:scale-110 hover:shadow-lg","aria-label":"Previous slide",children:H.jsx(L0,{className:"text-white text-xl"})}),H.jsx("button",{onClick:a,className:"absolute right-4 md:right-8 top-1/2 -translate-y-1/2 z-10 opacity-0 group-hover:opacity-100 transition-all duration-300 bg-black/20 hover:bg-black/30 w-12 h-12 flex items-center justify-center rounded-full transform hover:scale-110 hover:shadow-lg","aria-label":"Next slide",children:H.jsx(Xf,{className:"text-white text-xl"})})]}),r>1&&H.jsx("div",{className:"absolute -bottom-20 left-1/2 -translate-x-1/2 w-3/5 max-w-6xl px-4",children:H.jsx("div",{className:`rounded-2xl grid grid-cols-${r} lg:grid-cols-${r} md:grid-cols-${r} gap-4 md:gap-8 p-6 md:p-8 bg-white border shadow-xl hover:shadow-2xl transition-shadow duration-500 will-change-[transform,box-shadow]`,children:o.map((c,u)=>c.value?H.jsxs("div",{className:"text-center transform hover:-translate-y-1 hover:scale-105 transition-transform duration-300 ease-out",children:[H.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-full bg-primary-50 text-primary-600 text-3xl transition-colors duration-300 group-hover:text-primary-700",children:c.icon}),H.jsx("div",{className:"text-2xl font-bold bg-gradient-to-r from-gray-800 to-gray-600 bg-clip-text text-transparent mb-1.5",children:c.value}),H.jsx("div",{className:"text-gray-600 font-medium",children:c.label})]},u):null)})})]})};function jXe({to:e}){const t=Gs();return H.jsx(H.Fragment,{children:H.jsxs("div",{className:"flex items-center gap-4 justify-between mt-12",children:[H.jsx("div",{className:"h-[1px] flex-grow bg-gradient-to-r from-transparent via-gray-300 to-transparent"}),H.jsx("div",{className:"flex justify-end",children:H.jsxs(Cr,{type:"link",onClick:()=>{t(e),window.scrollTo({top:0,behavior:"smooth"})},className:"flex items-center gap-2 text-gray-600 hover:text-blue-600 font-medium transition-colors duration-300",children:["查看更多",H.jsx(vYe,{})]})})]})})}function c_n({handleMouseClick:e,index:t,handleMouseEnter:n,handleMouseLeave:r,category:i,categoryColor:o,isHovered:s}){Gs();const{Title:a,Text:l}=Kg;return H.jsxs("div",{className:"group relative min-h-[130px] rounded-2xl transition-all duration-700 ease-out cursor-pointer will-change-transform hover:-translate-y-2",onMouseEnter:()=>n(t),onMouseLeave:r,role:"button",tabIndex:0,"aria-label":`查看${i.name}课程类别`,onClick:()=>{e(i.id)},children:[H.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-gray-200 to-gray-300 opacity-50 rounded-2xl transition-all duration-700 group-hover:opacity-75"}),H.jsx("div",{className:`absolute inset-0 rounded-2xl bg-gradient-to-br from-white to-gray-50 shadow-lg transition-all duration-700 ease-out ${s?"scale-[1.02] bg-opacity-95":"scale-100 bg-opacity-90"}`}),H.jsx("div",{className:`absolute inset-0 rounded-2xl transition-all duration-700 ease-out ${s?"shadow-[0_8px_30px_rgb(0,0,0,0.12)]":"shadow-none opacity-0"}`}),H.jsx("div",{className:"absolute w-1/2 top-0 left-1/2 -translate-x-1/2 h-1 rounded-full transition-all duration-500 ease-out ",style:{backgroundColor:o}}),H.jsxs("div",{className:"relative w-full h-full p-6",children:[H.jsx("div",{className:"flex w-2/3 absolute left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2 flex-col space-y-4 mb-4",children:H.jsx(l,{strong:!0,className:"text-xl font-medium tracking-wide",children:i.name})}),H.jsxs("div",{className:" mt-6 absolute bottom-4 right-6 text-sm font-medium flex items-center space-x-2 transition-all duration-500 ease-out ",style:{color:o},children:[H.jsx("span",{children:"了解更多"}),H.jsx("span",{className:"transform transition-all duration-500 ease-out ",children:"→"})]})]})]},t)}function u_n(e,t,n){var r=this,i=d.useRef(null),o=d.useRef(0),s=d.useRef(null),a=d.useRef([]),l=d.useRef(),c=d.useRef(),u=d.useRef(e),f=d.useRef(!0);u.current=e;var h=typeof window<"u",g=!t&&t!==0&&h;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,C="debounceOnServer"in n&&!!n.debounceOnServer,y=v?Math.max(+n.maxWait||0,t):null;d.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var b=d.useMemo(function(){var S=function(T){var M=a.current,_=l.current;return a.current=l.current=null,o.current=T,c.current=u.current.apply(_,M)},w=function(T,M){g&&cancelAnimationFrame(s.current),s.current=g?requestAnimationFrame(T):setTimeout(T,M)},x=function(T){if(!f.current)return!1;var M=T-i.current;return!i.current||M>=t||M<0||v&&T-o.current>=y},E=function(T){return s.current=null,m&&a.current?S(T):(a.current=l.current=null,c.current)},R=function T(){var M=Date.now();if(x(M))return E(M);if(f.current){var _=t-(M-i.current),F=v?Math.min(_,y-(M-o.current)):_;w(T,F)}},O=function(){if(h||C){var T=Date.now(),M=x(T);if(a.current=[].slice.call(arguments),l.current=r,i.current=T,M){if(!s.current&&f.current)return o.current=i.current,w(R,t),p?S(i.current):c.current;if(v)return w(R,t),S(i.current)}return s.current||w(R,t),c.current}};return O.cancel=function(){s.current&&(g?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,a.current=i.current=l.current=s.current=null},O.isPending=function(){return!!s.current},O.flush=function(){return s.current?E(Date.now()):c.current},O},[p,v,t,y,m,g,h,C]);return b}function d_n(e,t){return e===t}function f_n(e,t,n){var r=d_n,i=d.useRef(e),o=d.useState({})[1],s=u_n(d.useCallback(function(l){i.current=l,o({})},[o]),t,n),a=d.useRef(e);return r(a.current,e)||(s(e),a.current=e),[i.current,s]}const VXe=d.createContext(null);function h_n({children:e}){const[t,n]=d.useState("both"),[r,i]=d.useState(!1),[o,s]=d.useState(""),[a]=f_n(o,500),[l,c]=d.useState({}),u=d.useMemo(()=>{var g;return(g=Object.entries(l).filter(([,p])=>p.length>0))==null?void 0:g.map(([,p])=>p)},[l]),f=d.useMemo(()=>u&&(u==null?void 0:u.length)>0?{AND:u.map(g=>({terms:{some:{id:{in:g}}}}))}:{},[u]),h=d.useMemo(()=>{const g={contains:a,mode:"insensitive"};return a?{OR:[{title:g},{subTitle:g},{content:g},{terms:{some:{name:g}}}]}:{}},[a]);return H.jsx(VXe.Provider,{value:{searchValue:o,setSearchValue:s,selectedTerms:l,setSelectedTerms:c,searchCondition:h,termsCondition:f,searchMode:t,setSearchMode:n,showSearchMode:r,setShowSearchMode:i},children:e})}const ca=()=>{const e=d.useContext(VXe);if(!e)throw new Error("useMainContext must be used within MainProvider");return e},{Title:g_n,Text:p_n}=Kg,m_n=()=>{const[e,t]=d.useState(null),{selectedTerms:n,setSelectedTerms:r}=ca(),{data:i,isLoading:o}=an.term.findMany.useQuery({where:{taxonomy:{slug:Jw.CATEGORY},parentId:null},take:8}),s=Gs(),a=d.useCallback(u=>{t(u)},[]),l=d.useCallback(()=>{t(null)},[]),c=d.useCallback(u=>{r({...n,[Jw.CATEGORY]:[u]}),s("/courses"),window.scrollTo({top:0,behavior:"smooth"})},[]);return H.jsx("section",{className:"py-8 relative overflow-hidden",children:H.jsxs("div",{className:"max-w-screen-2xl mx-auto px-4 relative",children:[H.jsxs("div",{className:"text-center mb-12",children:[H.jsx(g_n,{level:2,className:"font-bold text-5xl mb-6 bg-gradient-to-r from-gray-900 via-gray-700 to-gray-800 bg-clip-text text-transparent motion-safe:animate-gradient-x",children:"探索课程分类"}),H.jsx(p_n,{type:"secondary",className:"text-xl font-light",children:"选择你感兴趣的方向,开启学习之旅"})]}),H.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:o?H.jsx(yu,{paragraph:{rows:4}}):i==null?void 0:i.map((u,f)=>{const h=QF(u.name),g=e===f;return H.jsx(c_n,{index:f,category:u,categoryColor:h,isHovered:g,handleMouseEnter:a,handleMouseLeave:l,handleMouseClick:c},f)})}),H.jsx(jXe,{to:"/courses"})]})})};function v_n({category:e,selectedCategory:t,setSelectedCategory:n}){return H.jsx(H.Fragment,{children:H.jsx(jC,{color:t===e?"blue":"default",onClick:()=>{n(e)},className:`px-6 py-2 text-base cursor-pointer rounded-full transition-all duration-300 ${t===e?"bg-blue-600 text-white shadow-lg":"bg-white text-gray-600 hover:bg-gray-100"}`,children:e},e)})}function x3({params:e,cols:t=3,showPagination:n=!0,renderItem:r}){const[i,o]=d.useState((e==null?void 0:e.page)||1),{data:s,isLoading:a}=an.post.findManyWithPagination.useQuery({select:hge,...e,page:i}),l=d.useMemo(()=>s&&!a?s==null?void 0:s.totalPages:1,[s,a]),c=d.useMemo(()=>s&&!a?s==null?void 0:s.items:[],[s,a]);d.useEffect(()=>{o((e==null?void 0:e.page)||1)},[e==null?void 0:e.page,e]);function u(f,h){o(f),window.scrollTo({top:0,behavior:"smooth"})}return a?H.jsx("div",{className:"space-y-6",children:H.jsx(yu,{paragraph:{rows:10}})}):H.jsx("div",{className:"space-y-6",children:c.length>0?H.jsxs(H.Fragment,{children:[H.jsx("div",{className:`grid lg:grid-cols-${t} gap-6`,children:a?H.jsx(yu,{paragraph:{rows:5}}):c.map(f=>H.jsx("div",{children:r(f)},f.id))}),n&&H.jsx("div",{className:"flex justify-center mt-8",children:H.jsx(YKe,{current:i,total:l*e.pageSize,pageSize:e==null?void 0:e.pageSize,onChange:u,showSizeChanger:!1})})]}):H.jsx("div",{className:"py-64",children:H.jsx(Wp,{description:"暂无数据"})})})}function C_n({type:e}){const{data:t,isLoading:n}=an.term.findMany.useQuery({where:{taxonomy:{slug:e},parentId:null},take:11});return{categories:d.useMemo(()=>{const i=n?[]:t==null?void 0:t.map(o=>o.name);return[...Array.from(new Set(i))]},[t]),isLoading:n}}const{Title:y_n,Text:b_n}=Kg,Lxe=({title:e,description:t,initialVisibleCoursesCount:n=8,postType:r,render:i,to:o})=>{const[s,a]=d.useState("全部"),l=C_n({type:Jw.CATEGORY});return H.jsx("section",{className:"relative py-16 overflow-hidden ",children:H.jsxs("div",{className:"max-w-screen-2xl mx-auto px-4 relative",children:[H.jsx("div",{className:"flex justify-between items-end mb-12 ",children:H.jsxs("div",{children:[H.jsx(y_n,{level:2,className:"font-bold text-5xl mb-6 bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:e}),H.jsx(b_n,{type:"secondary",className:"text-xl font-light text-gray-600",children:t})]})}),H.jsx("div",{className:"mb-12 flex flex-wrap gap-4",children:l.isLoading?H.jsx(yu,{paragraph:{rows:2}}):H.jsx(H.Fragment,{children:["全部",...l.categories].map((c,u)=>H.jsx(v_n,{category:c,selectedCategory:s,setSelectedCategory:a},u))})}),H.jsx(x3,{renderItem:c=>i(c),params:{page:1,pageSize:n,where:{terms:s!=="全部"?{some:{name:s}}:{},type:r}},showPagination:!1,cols:4}),H.jsx(jXe,{to:o})]})})},{Title:e8i,Text:Fxe}=Kg,S_n=({post:e})=>{var t,n,r,i,o,s;return H.jsxs("div",{className:"gap-1 flex items-center justify-between flex-grow",children:[H.jsxs("div",{className:" flex justify-start gap-1 items-center",children:[H.jsx(qV,{className:"text-blue-500 text-lg transform group-hover:scale-110 transition-transform duration-300"}),e!=null&&e.depts&&((t=e==null?void 0:e.depts)==null?void 0:t.length)>0?H.jsx(Fxe,{className:"font-medium text-blue-500 hover:text-blue-600 transition-colors duration-300 truncate max-w-[120px]",children:((n=e==null?void 0:e.depts)==null?void 0:n.length)>1?`${e.depts[0].name}等`:(i=(r=e==null?void 0:e.depts)==null?void 0:r[0])==null?void 0:i.name}):H.jsx(Fxe,{className:"font-medium text-blue-500 hover:text-blue-600 transition-colors duration-300 truncate max-w-[120px]",children:"未设置单位"})]}),e&&H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsxs("span",{className:"gap-1 text-xs font-medium text-gray-500 flex items-center",children:["浏览量",H.jsx(w3,{}),`${(e==null?void 0:e.views)||0}`]}),(e==null?void 0:e.studentIds)&&((o=e==null?void 0:e.studentIds)==null?void 0:o.length)>0&&H.jsxs("span",{className:"gap-1 text-xs font-medium text-gray-500 flex items-center",children:[H.jsx(GV,{}),`${((s=e==null?void 0:e.studentIds)==null?void 0:s.length)||0}`]})]})]})},GXe=({terms:e=[]})=>H.jsx("div",{children:e&&(e==null?void 0:e.length)>0?H.jsx("div",{className:"flex gap-2 mb-4",children:e==null?void 0:e.map(t=>{var n,r;return H.jsx(jC,{color:((n=t==null?void 0:t.taxonomy)==null?void 0:n.slug)===Jw.CATEGORY?"green":((r=t==null?void 0:t.taxonomy)==null?void 0:r.slug)===Jw.LEVEL?"blue":"orange",className:"px-3 py-1 rounded-full border-0",children:t.name},t.id)})}):H.jsx("div",{className:"flex gap-2 mb-4",children:H.jsx(jC,{color:"orange",className:"px-3 py-1 rounded-full border-0",children:"未设置分类"})})}),{Title:w_n}=Kg;function Mme({post:e,onClick:t}){var r,i;const n=o=>{t==null||t(o)};return H.jsx(Npe,{onClick:()=>n(e),hoverable:!0,className:"group overflow-hidden rounded-2xl border border-gray-200 shadow-xl hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2",cover:H.jsx("div",{className:"relative h-56 overflow-hidden group",children:(r=e==null?void 0:e.meta)!=null&&r.thumbnail?H.jsx("div",{className:"absolute inset-0 bg-cover bg-center transform transition-all duration-700 ease-out group-hover:scale-110",style:{backgroundImage:`url(${(i=e==null?void 0:e.meta)==null?void 0:i.thumbnail})`}}):H.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-primary-500 to-primary-700",children:H.jsx(qYe,{className:"text-white text-6xl"})})}),children:H.jsxs("div",{className:"px-4 ",children:[H.jsx("div",{className:"overflow-hidden hover:overflow-auto",children:H.jsx("div",{className:"flex gap-2 h-7 whiteSpace-nowrap",children:H.jsx(GXe,{terms:e.terms})})}),H.jsx(w_n,{level:4,className:"mb-4 mt-4 line-clamp-2 font-bold leading-snug text-gray-800 hover:text-blue-600 transition-colors duration-300 group-hover:scale-[1.02] transform origin-left",children:H.jsxs("button",{children:[" ",e==null?void 0:e.title]})}),H.jsx("div",{className:"flex items-center mb-4 rounded-lg transition-all duration-300 hover:bg-blue-50 group",children:H.jsx(S_n,{post:e})}),H.jsx("div",{className:"pt-4 border-t border-gray-100 text-center",children:H.jsx(Cr,{shape:"round",type:"primary",size:"large",className:`w-full shadow-[0_8px_20px_-6px_rgba(59,130,246,0.5)] hover:shadow-[0_12px_24px_-6px_rgba(59,130,246,0.6)]
|
||
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("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class O_n extends $_n{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Lme(e,t){return e?e[t]||e.default||e:void 0}const Ale=2e4;function KXe(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ale;)t+=n,r=e.next(t);return t>=Ale?1/0:t}function Fme(e){return typeof e=="function"}function kxe(e,t){e.timeline=t,e.onfinish=null}const Nme=e=>Array.isArray(e)&&typeof e[0]=="number",T_n={linearEasing:void 0};function I_n(e,t){const n=Dme(e);return()=>{var r;return(r=T_n[t])!==null&&r!==void 0?r:n()}}const vB=I_n(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),YXe=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(VC(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function XXe(e){return!!(typeof e=="function"&&vB()||!e||typeof e=="string"&&(e in Dle||vB())||Nme(e)||Array.isArray(e)&&e.every(XXe))}const u$=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dle={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:u$([0,.65,.55,1]),circOut:u$([.55,0,1,.45]),backIn:u$([.31,.01,.66,-.59]),backOut:u$([.33,1.53,.69,.99])};function QXe(e,t){if(e)return typeof e=="function"&&vB()?YXe(e,t):Nme(e)?u$(e):Array.isArray(e)?e.map(n=>QXe(n,t)||Dle.easeOut):Dle[e]}const Nh={x:!1,y:!1};function ZXe(){return Nh.x||Nh.y}function JXe(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function eQe(e,t){const n=JXe(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function zxe(e){return t=>{t.pointerType==="touch"||ZXe()||e(t)}}function M_n(e,t,n={}){const[r,i,o]=eQe(e,n),s=zxe(a=>{const{target:l}=a,c=t(a);if(!c||!l)return;const u=zxe(f=>{c(f),l.removeEventListener("pointerleave",u)});l.addEventListener("pointerleave",u,i)});return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const kme=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,d$=new WeakSet;function Bxe(e){return t=>{t.key==="Enter"&&e(t)}}function $te(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const P_n=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Bxe(()=>{if(d$.has(n))return;$te(n,"down");const i=Bxe(()=>{$te(n,"up")}),o=()=>$te(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},__n=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function A_n(e){return __n.has(e.tagName)||e.tabIndex!==-1}const tQe=(e,t)=>t?e===t?!0:tQe(e,t.parentElement):!1;function Hxe(e){return kme(e)&&!ZXe()}function D_n(e,t,n={}){const[r,i,o]=eQe(e,n),s=a=>{const l=a.currentTarget;if(!Hxe(a)||d$.has(l))return;d$.add(l);const c=t(a),u=(g,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!Hxe(g)||!d$.has(l))&&(d$.delete(l),c&&c(g,{success:p}))},f=g=>{u(g,n.useGlobalTarget||tQe(l,g.target))},h=g=>{u(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{A_n(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),a.addEventListener("focus",c=>P_n(c,i),i)}),o}function L_n(e){return e==="x"||e==="y"?Nh[e]?null:(Nh[e]=!0,()=>{Nh[e]=!1}):Nh.x||Nh.y?null:(Nh.x=Nh.y=!0,()=>{Nh.x=Nh.y=!1})}const vM=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gy=new Set(vM),F_n=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),N_n=e=>Ple(e)?e[e.length-1]||0:e,k_n={skipAnimations:!1,useManualTiming:!1};function z_n(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(c){o.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,u=!1,f=!1)=>{const g=f&&r?t:n;return u&&o.add(c),g.has(c)||g.add(c),c},cancel:c=>{n.delete(c),o.delete(c)},process:c=>{if(s=c,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(c))}};return l}const kD=["read","resolveKeyframes","update","preRender","render","postRender"],B_n=40;function nQe(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=kD.reduce((C,y)=>(C[y]=z_n(o),C),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:h}=s,g=()=>{const C=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(C-i.timestamp,B_n),1),i.timestamp=C,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},p=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:kD.reduce((C,y)=>{const b=s[y];return C[y]=(S,w=!1,x=!1)=>(n||p(),b.schedule(S,w,x)),C},{}),cancel:C=>{for(let y=0;y<kD.length;y++)s[kD[y]].cancel(C)},state:i,steps:s}}const{schedule:Gi,cancel:Lg,state:Ra,steps:Ote}=nQe(typeof requestAnimationFrame<"u"?requestAnimationFrame:pc,!0);let yN;function H_n(){yN=void 0}const lm={now:()=>(yN===void 0&&lm.set(Ra.isProcessing||k_n.useManualTiming?Ra.timestamp:performance.now()),yN),set:e=>{yN=e,queueMicrotask(H_n)}};function zme(e,t){e.indexOf(t)===-1&&e.push(t)}function Bme(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Hme{constructor(){this.subscriptions=[]}add(t){return zme(this.subscriptions,t),()=>Bme(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function jme(e,t){return t?e*(1e3/t):0}const jxe=30,j_n=e=>!isNaN(parseFloat(e)),X$={current:void 0};class V_n{constructor(t,n={}){this.version="11.16.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=lm.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=lm.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=j_n(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Hme);const r=this.events[t].add(n);return t==="change"?()=>{r(),Gi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return X$.current&&X$.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=lm.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jxe)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jxe);return jme(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qp(e,t){return new V_n(e,t)}function G_n(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qp(n))}function W_n(e,t){const n=rG(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=N_n(o[s]);G_n(e,s,a)}}const jl=e=>!!(e&&e.getVelocity);function U_n(e){return!!(jl(e)&&e.add)}function Lle(e,t){const n=e.getValue("willChange");if(U_n(n))return n.add(t)}const Vme=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),q_n="framerAppearId",rQe="data-"+Vme(q_n);function iQe(e){return e.props[rQe]}const oQe=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,K_n=1e-7,Y_n=12;function X_n(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=oQe(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>K_n&&++a<Y_n);return s}function CM(e,t,n,r){if(e===t&&n===r)return pc;const i=o=>X_n(o,0,1,e,n);return o=>o===0||o===1?o:oQe(i(o),t,r)}const sQe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,aQe=e=>t=>1-e(1-t),lQe=CM(.33,1.53,.69,.99),Gme=aQe(lQe),cQe=sQe(Gme),uQe=e=>(e*=2)<1?.5*Gme(e):.5*(2-Math.pow(2,-10*(e-1))),Wme=e=>1-Math.sin(Math.acos(e)),dQe=aQe(Wme),fQe=sQe(Wme),hQe=e=>/^0[^.\s]+$/u.test(e);function Q_n(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||hQe(e):!0}const gQe=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),pQe=e=>t=>typeof t=="string"&&t.startsWith(e),mQe=pQe("--"),Z_n=pQe("var(--"),Ume=e=>Z_n(e)?J_n.test(e.split("/*")[0].trim()):!1,J_n=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,eAn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tAn(e){const t=eAn.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function vQe(e,t,n=1){const[r,i]=tAn(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return gQe(s)?parseFloat(s):s}return Ume(i)?vQe(i,t,n+1):i}const N0=(e,t,n)=>n>t?t:n<e?e:n,e9={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},BT={...e9,transform:e=>N0(0,1,e)},zD={...e9,default:1},yM=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),g2=yM("deg"),cm=yM("%"),vr=yM("px"),nAn=yM("vh"),rAn=yM("vw"),Vxe={...cm,parse:e=>cm.parse(e)/100,transform:e=>cm.transform(e*100)},iAn=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gxe=e=>e===e9||e===vr,Wxe=(e,t)=>parseFloat(e.split(", ")[t]),Uxe=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Wxe(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Wxe(o[1],e):0}},oAn=new Set(["x","y","z"]),sAn=vM.filter(e=>!oAn.has(e));function aAn(e){const t=[];return sAn.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const g7={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Uxe(4,13),y:Uxe(5,14)};g7.translateX=g7.x;g7.translateY=g7.y;const CQe=e=>t=>t.test(e),lAn={test:e=>e==="auto",parse:e=>e},yQe=[e9,vr,cm,g2,rAn,nAn,lAn],qxe=e=>yQe.find(CQe(e)),lC=new Set;let Fle=!1,Nle=!1;function bQe(){if(Nle){const e=Array.from(lC).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=aAn(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Nle=!1,Fle=!1,lC.forEach(e=>e.complete()),lC.clear()}function SQe(){lC.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Nle=!0)})}function cAn(){SQe(),bQe()}class qme{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(lC.add(this),Fle||(Fle=!0,Gi.read(SQe),Gi.resolveKeyframes(bQe))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),lC.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,lC.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Q$=e=>Math.round(e*1e5)/1e5,Kme=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uAn(e){return e==null}const dAn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yme=(e,t)=>n=>!!(typeof n=="string"&&dAn.test(n)&&n.startsWith(e)||t&&!uAn(n)&&Object.prototype.hasOwnProperty.call(n,t)),wQe=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(Kme);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},fAn=e=>N0(0,255,e),Tte={...e9,transform:e=>Math.round(fAn(e))},D8={test:Yme("rgb","red"),parse:wQe("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Tte.transform(e)+", "+Tte.transform(t)+", "+Tte.transform(n)+", "+Q$(BT.transform(r))+")"};function hAn(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const kle={test:Yme("#"),parse:hAn,transform:D8.transform},OS={test:Yme("hsl","hue"),parse:wQe("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+cm.transform(Q$(t))+", "+cm.transform(Q$(n))+", "+Q$(BT.transform(r))+")"},Ol={test:e=>D8.test(e)||kle.test(e)||OS.test(e),parse:e=>D8.test(e)?D8.parse(e):OS.test(e)?OS.parse(e):kle.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?D8.transform(e):OS.transform(e)},gAn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pAn(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Kme))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(gAn))===null||n===void 0?void 0:n.length)||0)>0}const xQe="number",EQe="color",mAn="var",vAn="var(",Kxe="${}",CAn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function HT(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(CAn,l=>(Ol.test(l)?(r.color.push(o),i.push(EQe),n.push(Ol.parse(l))):l.startsWith(vAn)?(r.var.push(o),i.push(mAn),n.push(l)):(r.number.push(o),i.push(xQe),n.push(parseFloat(l))),++o,Kxe)).split(Kxe);return{values:n,split:a,indexes:r,types:i}}function RQe(e){return HT(e).values}function $Qe(e){const{split:t,types:n}=HT(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===xQe?o+=Q$(i[s]):a===EQe?o+=Ol.transform(i[s]):o+=i[s]}return o}}const yAn=e=>typeof e=="number"?0:e;function bAn(e){const t=RQe(e);return $Qe(e)(t.map(yAn))}const e3={test:pAn,parse:RQe,createTransformer:$Qe,getAnimatableNone:bAn},SAn=new Set(["brightness","contrast","saturate","opacity"]);function wAn(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kme)||[];if(!r)return e;const i=n.replace(r,"");let o=SAn.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const xAn=/\b([a-z-]*)\(.*?\)/gu,zle={...e3,getAnimatableNone:e=>{const t=e.match(xAn);return t?t.map(wAn).join(" "):e}},EAn={borderWidth:vr,borderTopWidth:vr,borderRightWidth:vr,borderBottomWidth:vr,borderLeftWidth:vr,borderRadius:vr,radius:vr,borderTopLeftRadius:vr,borderTopRightRadius:vr,borderBottomRightRadius:vr,borderBottomLeftRadius:vr,width:vr,maxWidth:vr,height:vr,maxHeight:vr,top:vr,right:vr,bottom:vr,left:vr,padding:vr,paddingTop:vr,paddingRight:vr,paddingBottom:vr,paddingLeft:vr,margin:vr,marginTop:vr,marginRight:vr,marginBottom:vr,marginLeft:vr,backgroundPositionX:vr,backgroundPositionY:vr},RAn={rotate:g2,rotateX:g2,rotateY:g2,rotateZ:g2,scale:zD,scaleX:zD,scaleY:zD,scaleZ:zD,skew:g2,skewX:g2,skewY:g2,distance:vr,translateX:vr,translateY:vr,translateZ:vr,x:vr,y:vr,z:vr,perspective:vr,transformPerspective:vr,opacity:BT,originX:Vxe,originY:Vxe,originZ:vr},Yxe={...e9,transform:Math.round},Xme={...EAn,...RAn,zIndex:Yxe,size:vr,fillOpacity:BT,strokeOpacity:BT,numOctaves:Yxe},$An={...Xme,color:Ol,backgroundColor:Ol,outlineColor:Ol,fill:Ol,stroke:Ol,borderColor:Ol,borderTopColor:Ol,borderRightColor:Ol,borderBottomColor:Ol,borderLeftColor:Ol,filter:zle,WebkitFilter:zle},Qme=e=>$An[e];function OQe(e,t){let n=Qme(e);return n!==zle&&(n=e3),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const OAn=new Set(["auto","none","0"]);function TAn(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!OAn.has(o)&&HT(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=OQe(n,i)}class TQe extends qme{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Ume(c))){const u=vQe(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!iAn.has(r)||t.length!==2)return;const[i,o]=t,s=qxe(i),a=qxe(o);if(s!==a)if(Gxe(s)&&Gxe(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Q_n(t[i])&&r.push(i);r.length&&TAn(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=g7[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,a=i[s];i[s]=g7[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Xxe=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(e3.test(e)||e==="0")&&!e.startsWith("url("));function IAn(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function MAn(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Xxe(i,t),a=Xxe(o,t);return!s||!a?!1:IAn(e)||(n==="spring"||Fme(n))&&r}const PAn=e=>e!==null;function iG(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(PAn),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const _An=40;class IQe{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=lm.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>_An?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&cAn(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=lm.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!MAn(t,r,i,o))if(s)this.options.duration=0;else{l==null||l(iG(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const es=(e,t,n)=>e+(t-e)*n;function Ite(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function AAn({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Ite(l,a,e+1/3),o=Ite(l,a,e),s=Ite(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function CB(e,t){return n=>n>0?t:e}const Mte=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},DAn=[kle,D8,OS],LAn=e=>DAn.find(t=>t.test(e));function Qxe(e){const t=LAn(e);if(!t)return!1;let n=t.parse(e);return t===OS&&(n=AAn(n)),n}const Zxe=(e,t)=>{const n=Qxe(e),r=Qxe(t);if(!n||!r)return CB(e,t);const i={...n};return o=>(i.red=Mte(n.red,r.red,o),i.green=Mte(n.green,r.green,o),i.blue=Mte(n.blue,r.blue,o),i.alpha=es(n.alpha,r.alpha,o),D8.transform(i))},FAn=(e,t)=>n=>t(e(n)),bM=(...e)=>e.reduce(FAn),Ble=new Set(["none","hidden"]);function NAn(e,t){return Ble.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kAn(e,t){return n=>es(e,t,n)}function Zme(e){return typeof e=="number"?kAn:typeof e=="string"?Ume(e)?CB:Ol.test(e)?Zxe:HAn:Array.isArray(e)?MQe:typeof e=="object"?Ol.test(e)?Zxe:zAn:CB}function MQe(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Zme(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function zAn(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Zme(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function BAn(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const HAn=(e,t)=>{const n=e3.createTransformer(t),r=HT(e),i=HT(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ble.has(e)&&!i.values.length||Ble.has(t)&&!r.values.length?NAn(e,t):bM(MQe(BAn(r,i),i.values),n):CB(e,t)};function PQe(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?es(e,t,n):Zme(e)(e,t)}const jAn=5;function _Qe(e,t,n){const r=Math.max(t-jAn,0);return jme(n-e(r),t-r)}const as={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Jxe=.001;function VAn({duration:e=as.duration,bounce:t=as.bounce,velocity:n=as.velocity,mass:r=as.mass}){let i,o,s=1-t;s=N0(as.minDamping,as.maxDamping,s),e=N0(as.minDuration,as.maxDuration,v0(e)),s<1?(i=c=>{const u=c*s,f=u*e,h=u-n,g=Hle(c,s),p=Math.exp(-f);return Jxe-h/g*p},o=c=>{const f=c*s*e,h=f*n+n,g=Math.pow(s,2)*Math.pow(c,2)*e,p=Math.exp(-f),m=Hle(Math.pow(c,2),s);return(-i(c)+Jxe>0?-1:1)*((h-g)*p)/m}):(i=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-.001+u*f},o=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const a=5/e,l=WAn(i,o,a);if(e=m0(e),isNaN(l))return{stiffness:as.stiffness,damping:as.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const GAn=12;function WAn(e,t,n){let r=n;for(let i=1;i<GAn;i++)r=r-e(r)/t(r);return r}function Hle(e,t){return e*Math.sqrt(1-t*t)}const UAn=["duration","bounce"],qAn=["stiffness","damping","mass"];function e9e(e,t){return t.some(n=>e[n]!==void 0)}function KAn(e){let t={velocity:as.velocity,stiffness:as.stiffness,damping:as.damping,mass:as.mass,isResolvedFromDuration:!1,...e};if(!e9e(e,qAn)&&e9e(e,UAn))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*N0(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:as.mass,stiffness:i,damping:o}}else{const n=VAn(e);t={...t,...n,mass:as.mass},t.isResolvedFromDuration=!0}return t}function AQe(e=as.visualDuration,t=as.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:f,velocity:h,isResolvedFromDuration:g}=KAn({...n,velocity:-v0(n.velocity||0)}),p=h||0,m=c/(2*Math.sqrt(l*u)),v=s-o,C=v0(Math.sqrt(l/u)),y=Math.abs(v)<5;r||(r=y?as.restSpeed.granular:as.restSpeed.default),i||(i=y?as.restDelta.granular:as.restDelta.default);let b;if(m<1){const w=Hle(C,m);b=x=>{const E=Math.exp(-m*C*x);return s-E*((p+m*C*v)/w*Math.sin(w*x)+v*Math.cos(w*x))}}else if(m===1)b=w=>s-Math.exp(-C*w)*(v+(p+C*v)*w);else{const w=C*Math.sqrt(m*m-1);b=x=>{const E=Math.exp(-m*C*x),R=Math.min(w*x,300);return s-E*((p+m*C*v)*Math.sinh(R)+w*v*Math.cosh(R))/w}}const S={calculatedDuration:g&&f||null,next:w=>{const x=b(w);if(g)a.done=w>=f;else{let E=0;m<1&&(E=w===0?m0(p):_Qe(b,w,x));const R=Math.abs(E)<=r,O=Math.abs(s-x)<=i;a.done=R&&O}return a.value=a.done?s:x,a},toString:()=>{const w=Math.min(KXe(S),Ale),x=YXe(E=>S.next(w*E).value,w,30);return w+"ms "+x}};return S}function t9e({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},g=R=>a!==void 0&&R<a||l!==void 0&&R>l,p=R=>a===void 0?l:l===void 0||Math.abs(a-R)<Math.abs(l-R)?a:l;let m=n*t;const v=f+m,C=s===void 0?v:s(v);C!==v&&(m=C-f);const y=R=>-m*Math.exp(-R/r),b=R=>C+y(R),S=R=>{const O=y(R),T=b(R);h.done=Math.abs(O)<=c,h.value=h.done?C:T};let w,x;const E=R=>{g(h.value)&&(w=R,x=AQe({keyframes:[h.value,p(h.value)],velocity:_Qe(b,R,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:R=>{let O=!1;return!x&&w===void 0&&(O=!0,S(R),E(R)),w!==void 0&&R>=w?x.next(R-w):(!O&&S(R),h)}}}const YAn=CM(.42,0,1,1),XAn=CM(0,0,.58,1),DQe=CM(.42,0,.58,1),QAn=e=>Array.isArray(e)&&typeof e[0]!="number",n9e={linear:pc,easeIn:YAn,easeInOut:DQe,easeOut:XAn,circIn:Wme,circInOut:fQe,circOut:dQe,backIn:Gme,backInOut:cQe,backOut:lQe,anticipate:uQe},r9e=e=>{if(Nme(e)){_le(e.length===4);const[t,n,r,i]=e;return CM(t,n,r,i)}else if(typeof e=="string")return _le(n9e[e]!==void 0),n9e[e];return e};function ZAn(e,t,n){const r=[],i=n||PQe,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||pc:t;a=bM(l,a)}r.push(a)}return r}function Jme(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(_le(o===t.length),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=ZAn(t,r,i),a=s.length,l=c=>{let u=0;if(a>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const f=VC(e[u],e[u+1],c);return s[u](f)};return n?c=>l(N0(e[0],e[o-1],c)):l}function JAn(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=VC(0,t,r);e.push(es(n,1,i))}}function LQe(e){const t=[0];return JAn(t,e.length-1),t}function eDn(e,t){return e.map(n=>n*t)}function tDn(e,t){return e.map(()=>t||DQe).splice(0,e.length-1)}function yB({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=QAn(r)?r.map(r9e):r9e(r),o={done:!1,value:t[0]},s=eDn(n&&n.length===t.length?n:LQe(t),e),a=Jme(s,t,{ease:Array.isArray(i)?i:tDn(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const nDn=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Gi.update(t,!0),stop:()=>Lg(t),now:()=>Ra.isProcessing?Ra.timestamp:lm.now()}},rDn={decay:t9e,inertia:t9e,tween:yB,keyframes:yB,spring:AQe},iDn=e=>e/100;class e1e extends IQe{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||qme,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(o,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=Fme(n)?n:rDn[n]||yB;let l,c;a!==yB&&typeof t[0]!="number"&&(l=bM(iDn,PQe(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});o==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=KXe(u));const{calculatedDuration:f}=u,h=f+i,g=h*(r+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:h,repeat:g,repeatType:p,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const C=this.currentTime-h*(this.speed>=0?1:-1),y=this.speed>=0?C<0:C>u;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let b=this.currentTime,S=o;if(g){const R=Math.min(this.currentTime,u)/f;let O=Math.floor(R),T=R%1;!T&&R>=1&&(T=1),T===1&&O--,O=Math.min(O,g+1),!!(O%2)&&(p==="reverse"?(T=1-T,m&&(T-=m/f)):p==="mirror"&&(S=s)),b=N0(0,1,T)*f}const w=y?{done:!1,value:l[0]}:S.next(b);a&&(w.value=a(w.value));let{done:x}=w;!y&&c!==null&&(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&x);return E&&i!==void 0&&(w.value=iG(l,this.options,i)),v&&v(w.value),E&&this.finish(),w}get duration(){const{resolved:t}=this;return t?v0(t.calculatedDuration):0}get time(){return v0(this.currentTime)}set time(t){t=m0(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=v0(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=nDn,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const oDn=new Set(["opacity","clipPath","filter","transform"]);function sDn(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=QXe(a,i);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const aDn=Dme(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bB=10,lDn=2e4;function cDn(e){return Fme(e.type)||e.type==="spring"||!XXe(e.ease)}function uDn(e,t){const n=new e1e({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<lDn;)r=n.sample(o),i.push(r.value),o+=bB;return{times:void 0,keyframes:i,duration:o-bB,ease:"linear"}}const FQe={anticipate:uQe,backInOut:cQe,circInOut:fQe};function dDn(e){return e in FQe}class i9e extends IQe{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new TQe(o,(s,a)=>this.onKeyframesResolved(s,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&vB()&&dDn(s)&&(s=FQe[s]),cDn(this.options)){const{onComplete:h,onUpdate:g,motionValue:p,element:m,...v}=this.options,C=uDn(t,v);t=C.keyframes,t.length===1&&(t[1]=t[0]),i=C.duration,o=C.times,s=C.ease,a="keyframes"}const f=sDn(l.owner.current,c,t,{...this.options,duration:i,times:o,ease:s});return f.startTime=u??this.calcStartTime(),this.pendingTimeline?(kxe(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:h}=this.options;l.set(iG(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return v0(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return v0(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=m0(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return pc;const{animation:r}=n;kxe(r,t)}return pc}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:f,element:h,...g}=this.options,p=new e1e({...g,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),m=m0(this.time);c.setWithVelocity(p.sample(m-bB).value,p.sample(m).value,bB)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=t;return aDn()&&r&&oDn.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}const fDn={type:"spring",stiffness:500,damping:25,restSpeed:10},hDn=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gDn={type:"keyframes",duration:.8},pDn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mDn=(e,{keyframes:t})=>t.length>2?gDn:Gy.has(e)?e.startsWith("scale")?hDn(t[1]):fDn:pDn;function vDn({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const t1e=(e,t,n,r={},i,o)=>s=>{const a=Lme(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-m0(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};vDn(a)||(u={...u,...mDn(e,u)}),u.duration&&(u.duration=m0(u.duration)),u.repeatDelay&&(u.repeatDelay=m0(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const h=iG(u.keyframes,a);if(h!==void 0)return Gi.update(()=>{u.onUpdate(h),u.onComplete()}),new O_n([])}return!o&&i9e.supports(u)?new i9e(u):new e1e(u)};function CDn({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function NQe(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const h=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),g=l[f];if(g===void 0||u&&CDn(u,f))continue;const p={delay:n,...Lme(s||{},f)};let m=!1;if(window.MotionHandoffAnimation){const C=iQe(e);if(C){const y=window.MotionHandoffAnimation(C,f,Gi);y!==null&&(p.startTime=y,m=!0)}}Lle(e,f),h.start(t1e(f,h,g,e.shouldReduceMotion&&Gy.has(f)?{type:!1}:p,e,m));const v=h.animation;v&&c.push(v)}return a&&Promise.all(c).then(()=>{Gi.update(()=>{a&&W_n(e,a)})}),c}function jle(e,t,n={}){var r;const i=rG(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(NQe(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:h}=o;return yDn(e,t,u+c,f,h,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function yDn(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(bDn).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(jle(c,t,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function bDn(e,t){return e.sortNodePosition(t)}function SDn(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>jle(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=jle(e,t,n);else{const i=typeof t=="function"?rG(e,t,n.custom):t;r=Promise.all(NQe(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const wDn=Ame.length;function kQe(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?kQe(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<wDn;n++){const r=Ame[n],i=e.props[r];(zT(i)||i===!1)&&(t[r]=i)}return t}const xDn=[..._me].reverse(),EDn=_me.length;function RDn(e){return t=>Promise.all(t.map(({animation:n,options:r})=>SDn(e,n,r)))}function $Dn(e){let t=RDn(e),n=o9e(),r=!0;const i=l=>(c,u)=>{var f;const h=rG(e,u,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:g,transitionEnd:p,...m}=h;c={...c,...m,...p}}return c};function o(l){t=l(e)}function s(l){const{props:c}=e,u=kQe(e.parent)||{},f=[],h=new Set;let g={},p=1/0;for(let v=0;v<EDn;v++){const C=xDn[v],y=n[C],b=c[C]!==void 0?c[C]:u[C],S=zT(b),w=C===l?y.isActive:null;w===!1&&(p=v);let x=b===u[C]&&b!==c[C]&&S;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),y.protectedKeys={...g},!y.isActive&&w===null||!b&&!y.prevProp||nG(b)||typeof b=="boolean")continue;const E=ODn(y.prevProp,b);let R=E||C===l&&y.isActive&&!x&&S||v>p&&S,O=!1;const T=Array.isArray(b)?b:[b];let M=T.reduce(i(C),{});w===!1&&(M={});const{prevResolvedValues:_={}}=y,F={..._,...M},D=I=>{R=!0,h.has(I)&&(O=!0,h.delete(I)),y.needsAnimating[I]=!0;const A=e.getValue(I);A&&(A.liveStyle=!1)};for(const I in F){const A=M[I],N=_[I];if(g.hasOwnProperty(I))continue;let B=!1;Ple(A)&&Ple(N)?B=!UXe(A,N):B=A!==N,B?A!=null?D(I):h.add(I):A!==void 0&&h.has(I)?D(I):y.protectedKeys[I]=!0}y.prevProp=b,y.prevResolvedValues=M,y.isActive&&(g={...g,...M}),r&&e.blockInitialAnimation&&(R=!1),R&&(!(x&&E)||O)&&f.push(...T.map(I=>({animation:I,options:{type:C}})))}if(h.size){const v={};h.forEach(C=>{const y=e.getBaseTarget(C),b=e.getValue(C);b&&(b.liveStyle=!0),v[C]=y??null}),f.push({animation:v})}let m=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=o9e(),r=!0}}}function ODn(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!UXe(t,e):!1}function $6(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function o9e(){return{animate:$6(!0),whileInView:$6(),whileHover:$6(),whileTap:$6(),whileDrag:$6(),whileFocus:$6(),exit:$6()}}class E3{constructor(t){this.isMounted=!1,this.node=t}update(){}}class TDn extends E3{constructor(t){super(t),t.animationState||(t.animationState=$Dn(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();nG(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let IDn=0;class MDn extends E3{constructor(){super(...arguments),this.id=IDn++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const PDn={animation:{Feature:TDn},exit:{Feature:MDn}};function jT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function SM(e){return{point:{x:e.pageX,y:e.pageY}}}const _Dn=e=>t=>kme(t)&&e(t,SM(t));function Z$(e,t,n,r){return jT(e,t,_Dn(n),r)}const s9e=(e,t)=>Math.abs(e-t);function ADn(e,t){const n=s9e(e.x,t.x),r=s9e(e.y,t.y);return Math.sqrt(n**2+r**2)}class zQe{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=_te(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=ADn(f.offset,{x:0,y:0})>=3;if(!h&&!g)return;const{point:p}=f,{timestamp:m}=Ra;this.history.push({...p,timestamp:m});const{onStart:v,onMove:C}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Pte(h,this.transformPagePoint),Gi.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:g,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=_te(f.type==="pointercancel"?this.lastMoveEventInfo:Pte(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,v),p&&p(f,v)},!kme(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=SM(t),a=Pte(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=Ra;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,_te(a,this.history)),this.removeListeners=bM(Z$(this.contextWindow,"pointermove",this.handlePointerMove),Z$(this.contextWindow,"pointerup",this.handlePointerUp),Z$(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lg(this.updatePoint)}}function Pte(e,t){return t?{point:t(e.point)}:e}function a9e(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _te({point:e},t){return{point:e,delta:a9e(e,BQe(t)),offset:a9e(e,DDn(t)),velocity:LDn(t,.1)}}function DDn(e){return e[0]}function BQe(e){return e[e.length-1]}function LDn(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=BQe(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>m0(t)));)n--;if(!r)return{x:0,y:0};const o=v0(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function TS(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const HQe=1e-4,FDn=1-HQe,NDn=1+HQe,jQe=.01,kDn=0-jQe,zDn=0+jQe;function bd(e){return e.max-e.min}function BDn(e,t,n){return Math.abs(e-t)<=n}function l9e(e,t,n,r=.5){e.origin=r,e.originPoint=es(t.min,t.max,e.origin),e.scale=bd(n)/bd(t),e.translate=es(n.min,n.max,e.origin)-e.originPoint,(e.scale>=FDn&&e.scale<=NDn||isNaN(e.scale))&&(e.scale=1),(e.translate>=kDn&&e.translate<=zDn||isNaN(e.translate))&&(e.translate=0)}function J$(e,t,n,r){l9e(e.x,t.x,n.x,r?r.originX:void 0),l9e(e.y,t.y,n.y,r?r.originY:void 0)}function c9e(e,t,n){e.min=n.min+t.min,e.max=e.min+bd(t)}function HDn(e,t,n){c9e(e.x,t.x,n.x),c9e(e.y,t.y,n.y)}function u9e(e,t,n){e.min=t.min-n.min,e.max=e.min+bd(t)}function eO(e,t,n){u9e(e.x,t.x,n.x),u9e(e.y,t.y,n.y)}function jDn(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?es(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?es(n,e,r.max):Math.min(e,n)),e}function d9e(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function VDn(e,{top:t,left:n,bottom:r,right:i}){return{x:d9e(e.x,n,i),y:d9e(e.y,t,r)}}function f9e(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function GDn(e,t){return{x:f9e(e.x,t.x),y:f9e(e.y,t.y)}}function WDn(e,t){let n=.5;const r=bd(e),i=bd(t);return i>r?n=VC(t.min,t.max-r,e.min):r>i&&(n=VC(e.min,e.max-i,t.min)),N0(0,1,n)}function UDn(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Vle=.35;function qDn(e=Vle){return e===!1?e=0:e===!0&&(e=Vle),{x:h9e(e,"left","right"),y:h9e(e,"top","bottom")}}function h9e(e,t,n){return{min:g9e(e,t),max:g9e(e,n)}}function g9e(e,t){return typeof e=="number"?e:e[t]||0}const p9e=()=>({translate:0,scale:1,origin:0,originPoint:0}),IS=()=>({x:p9e(),y:p9e()}),m9e=()=>({min:0,max:0}),ys=()=>({x:m9e(),y:m9e()});function af(e){return[e("x"),e("y")]}function VQe({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function KDn({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YDn(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ate(e){return e===void 0||e===1}function Gle({scale:e,scaleX:t,scaleY:n}){return!Ate(e)||!Ate(t)||!Ate(n)}function Z6(e){return Gle(e)||GQe(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function GQe(e){return v9e(e.x)||v9e(e.y)}function v9e(e){return e&&e!=="0%"}function SB(e,t,n){const r=e-n,i=t*r;return n+i}function C9e(e,t,n,r,i){return i!==void 0&&(e=SB(e,i,r)),SB(e,n,r)+t}function Wle(e,t=0,n=1,r,i){e.min=C9e(e.min,t,n,r,i),e.max=C9e(e.max,t,n,r,i)}function WQe(e,{x:t,y:n}){Wle(e.x,t.translate,t.scale,t.originPoint),Wle(e.y,n.translate,n.scale,n.originPoint)}const y9e=.999999999999,b9e=1.0000000000001;function XDn(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&PS(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,WQe(e,s)),r&&Z6(o.latestValues)&&PS(e,o.latestValues))}t.x<b9e&&t.x>y9e&&(t.x=1),t.y<b9e&&t.y>y9e&&(t.y=1)}function MS(e,t){e.min=e.min+t,e.max=e.max+t}function S9e(e,t,n,r,i=.5){const o=es(e.min,e.max,i);Wle(e,t,n,o,r)}function PS(e,t){S9e(e.x,t.x,t.scaleX,t.scale,t.originX),S9e(e.y,t.y,t.scaleY,t.scale,t.originY)}function UQe(e,t){return VQe(YDn(e.getBoundingClientRect(),t))}function QDn(e,t,n){const r=UQe(e,n),{scroll:i}=t;return i&&(MS(r.x,i.offset.x),MS(r.y,i.offset.y)),r}const qQe=({current:e})=>e?e.ownerDocument.defaultView:null,ZDn=new WeakMap;class JDn{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ys(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(SM(u).point)},o=(u,f)=>{const{drag:h,dragPropagation:g,onDragStart:p}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=L_n(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),af(v=>{let C=this.getAxisMotionValue(v).get()||0;if(cm.test(C)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[v];b&&(C=bd(b)*(parseFloat(C)/100))}}this.originPoint[v]=C}),p&&Gi.postRender(()=>p(u,f)),Lle(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(u,f)=>{const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:p,onDrag:m}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(g&&this.currentDirection===null){this.currentDirection=eLn(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),m&&m(u,f)},a=(u,f)=>this.stop(u,f),l=()=>af(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new zQe(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:qQe(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Gi.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!BD(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=jDn(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&TS(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=VDn(i.layoutBox,n):this.constraints=!1,this.elastic=qDn(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&af(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=UDn(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!TS(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=QDn(r,i.root,this.visualElement.getTransformPagePoint());let s=GDn(i.layout.layoutBox,o);if(n){const a=n(KDn(s));this.hasMutatedConstraints=!!a,a&&(s=VQe(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=af(u=>{if(!BD(u,n,this.currentDirection))return;let f=l[u]||{};s&&(f={min:0,max:0});const h=i?200:1e6,g=i?40:1e7,p={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Lle(this.visualElement,t),r.start(t1e(t,r,0,n,this.visualElement,!1))}stopAnimation(){af(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){af(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){af(n=>{const{drag:r}=this.getProps();if(!BD(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-es(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!TS(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};af(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=WDn({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),af(s=>{if(!BD(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(es(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;ZDn.set(this.visualElement,this);const t=this.visualElement.current,n=Z$(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();TS(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Gi.read(r);const s=jT(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(af(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Vle,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function BD(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function eLn(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class tLn extends E3{constructor(t){super(t),this.removeGroupControls=pc,this.removeListeners=pc,this.controls=new JDn(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pc}unmount(){this.removeGroupControls(),this.removeListeners()}}const w9e=e=>(t,n)=>{e&&Gi.postRender(()=>e(t,n))};class nLn extends E3{constructor(){super(...arguments),this.removePointerDownListener=pc}onPointerDown(t){this.session=new zQe(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qQe(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:w9e(t),onStart:w9e(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Gi.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Z$(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const oG=d.createContext(null);function rLn(){const e=d.useContext(oG);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=d.useId();d.useEffect(()=>r(i),[]);const o=d.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}const n1e=d.createContext({}),KQe=d.createContext({}),bN={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function x9e(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rR={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(vr.test(e))e=parseFloat(e);else return e;const n=x9e(e,t.target.x),r=x9e(e,t.target.y);return`${n}% ${r}%`}},iLn={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=e3.parse(e);if(i.length>5)return r;const o=e3.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=es(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}},wB={};function oLn(e){Object.assign(wB,e)}const{schedule:r1e,cancel:t8i}=nQe(queueMicrotask,!1);class sLn extends d.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;oLn(aLn),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),bN.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Gi.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),r1e.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function YQe(e){const[t,n]=rLn(),r=d.useContext(n1e);return H.jsx(sLn,{...e,layoutGroup:r,switchLayoutGroup:d.useContext(KQe),isPresent:t,safeToRemove:n})}const aLn={borderRadius:{...rR,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rR,borderTopRightRadius:rR,borderBottomLeftRadius:rR,borderBottomRightRadius:rR,boxShadow:iLn};function lLn(e,t,n){const r=jl(e)?e:Qp(e);return r.start(t1e("",r,t,n)),r.animation}function cLn(e){return e instanceof SVGElement&&e.tagName!=="svg"}const uLn=(e,t)=>e.depth-t.depth;class dLn{constructor(){this.children=[],this.isDirty=!1}add(t){zme(this.children,t),this.isDirty=!0}remove(t){Bme(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(uLn),this.isDirty=!1,this.children.forEach(t)}}function fLn(e,t){const n=lm.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Lg(r),e(o-t))};return Gi.read(r,!0),()=>Lg(r)}function SN(e){const t=jl(e)?e.get():e;return F_n(t)?t.toValue():t}const XQe=["TopLeft","TopRight","BottomLeft","BottomRight"],hLn=XQe.length,E9e=e=>typeof e=="string"?parseFloat(e):e,R9e=e=>typeof e=="number"||vr.test(e);function gLn(e,t,n,r,i,o){i?(e.opacity=es(0,n.opacity!==void 0?n.opacity:1,pLn(r)),e.opacityExit=es(t.opacity!==void 0?t.opacity:1,0,mLn(r))):o&&(e.opacity=es(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<hLn;s++){const a=`border${XQe[s]}Radius`;let l=$9e(t,a),c=$9e(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||R9e(l)===R9e(c)?(e[a]=Math.max(es(E9e(l),E9e(c),r),0),(cm.test(c)||cm.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=es(t.rotate||0,n.rotate||0,r))}function $9e(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pLn=QQe(0,.5,dQe),mLn=QQe(.5,.95,pc);function QQe(e,t,n){return r=>r<e?0:r>t?1:n(VC(e,t,r))}function O9e(e,t){e.min=t.min,e.max=t.max}function Kd(e,t){O9e(e.x,t.x),O9e(e.y,t.y)}function T9e(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function I9e(e,t,n,r,i){return e-=t,e=SB(e,1/n,r),i!==void 0&&(e=SB(e,1/i,r)),e}function vLn(e,t=0,n=1,r=.5,i,o=e,s=e){if(cm.test(t)&&(t=parseFloat(t),t=es(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=es(o.min,o.max,r);e===o&&(a-=t),e.min=I9e(e.min,t,n,a,i),e.max=I9e(e.max,t,n,a,i)}function M9e(e,t,[n,r,i],o,s){vLn(e,t[n],t[r],t[i],t.scale,o,s)}const CLn=["x","scaleX","originX"],yLn=["y","scaleY","originY"];function P9e(e,t,n,r){M9e(e.x,t,CLn,n?n.x:void 0,r?r.x:void 0),M9e(e.y,t,yLn,n?n.y:void 0,r?r.y:void 0)}function _9e(e){return e.translate===0&&e.scale===1}function ZQe(e){return _9e(e.x)&&_9e(e.y)}function A9e(e,t){return e.min===t.min&&e.max===t.max}function bLn(e,t){return A9e(e.x,t.x)&&A9e(e.y,t.y)}function D9e(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function JQe(e,t){return D9e(e.x,t.x)&&D9e(e.y,t.y)}function L9e(e){return bd(e.x)/bd(e.y)}function F9e(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class SLn{constructor(){this.members=[]}add(t){zme(this.members,t),t.scheduleRender()}remove(t){if(Bme(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function wLn(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:h,skewX:g,skewY:p}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),g&&(r+=`skewX(${g}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const J6={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},f$=typeof window<"u"&&window.MotionDebug!==void 0,Dte=["","X","Y","Z"],xLn={visibility:"hidden"},N9e=1e3;let ELn=0;function Lte(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eZe(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=iQe(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Gi,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&eZe(r)}function tZe({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=ELn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,f$&&(J6.totalNodes=J6.resolvedTargetDeltas=J6.recalculatedProjection=0),this.nodes.forEach(OLn),this.nodes.forEach(_Ln),this.nodes.forEach(ALn),this.nodes.forEach(TLn),f$&&window.MotionDebug.record(J6)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new dLn)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Hme),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=cLn(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=fLn(h,250),bN.hasAnimatedSinceResize&&(bN.hasAnimatedSinceResize=!1,this.nodes.forEach(z9e))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||kLn,{onLayoutAnimationStart:v,onLayoutAnimationComplete:C}=u.getProps(),y=!this.targetLayout||!JQe(this.targetLayout,p)||g,b=!h&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,b);const S={...Lme(m,"layout"),onPlay:v,onComplete:C};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else h||z9e(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lg(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(DLn),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&eZe(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(k9e);return}this.isUpdating||this.nodes.forEach(MLn),this.isUpdating=!1,this.nodes.forEach(PLn),this.nodes.forEach(RLn),this.nodes.forEach($Ln),this.clearAllSnapshots();const a=lm.now();Ra.delta=N0(0,1e3/60,a-Ra.timestamp),Ra.timestamp=a,Ra.isProcessing=!0,Ote.update.process(Ra),Ote.preRender.process(Ra),Ote.render.process(Ra),Ra.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,r1e.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ILn),this.sharedNodes.forEach(LLn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Gi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Gi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ys(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ZQe(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||Z6(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),zLn(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return ys();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(BLn))){const{scroll:u}=this.root;u&&(MS(l.x,u.offset.x),MS(l.y,u.offset.y))}return l}removeElementScroll(s){var a;const l=ys();if(Kd(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:f,options:h}=u;u!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&Kd(l,s),MS(l.x,f.offset.x),MS(l.y,f.offset.y))}return l}applyTransform(s,a=!1){const l=ys();Kd(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&PS(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Z6(u.latestValues)&&PS(l,u.latestValues)}return Z6(this.latestValues)&&PS(l,this.latestValues),l}removeTransform(s){const a=ys();Kd(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Z6(c.latestValues))continue;Gle(c.latestValues)&&c.updateSnapshot();const u=ys(),f=c.measurePageBox();Kd(u,f),P9e(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Z6(this.latestValues)&&P9e(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ra.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=Ra.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ys(),this.relativeTargetOrigin=ys(),eO(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Kd(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ys(),this.targetWithTransforms=ys()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HDn(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Kd(this.target,this.layout.layoutBox),WQe(this.target,this.targetDelta)):Kd(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ys(),this.relativeTargetOrigin=ys(),eO(this.relativeTargetOrigin,this.target,g.target),Kd(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}f$&&J6.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Gle(this.parent.latestValues)||GQe(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Ra.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;Kd(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;XDn(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ys());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(T9e(this.prevProjectionDelta.x,this.projectionDelta.x),T9e(this.prevProjectionDelta.y,this.projectionDelta.y)),J$(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==g||!F9e(this.projectionDelta.x,this.prevProjectionDelta.x)||!F9e(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),f$&&J6.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=IS(),this.projectionDelta=IS(),this.projectionDeltaWithTransform=IS()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=IS();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ys(),g=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=g!==p,v=this.getStack(),C=!v||v.members.length<=1,y=!!(m&&!C&&this.options.crossfade===!0&&!this.path.some(NLn));this.animationProgress=0;let b;this.mixTargetDelta=S=>{const w=S/1e3;B9e(f.x,s.x,w),B9e(f.y,s.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(eO(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),FLn(this.relativeTarget,this.relativeTargetOrigin,h,w),b&&bLn(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ys()),Kd(b,this.relativeTarget)),m&&(this.animationValues=u,gLn(u,c,this.latestValues,w,y,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lg(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Gi.update(()=>{bN.hasAnimatedSinceResize=!0,this.currentAnimation=lLn(0,N9e,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(N9e),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&nZe(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ys();const f=bd(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const h=bd(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Kd(a,l),PS(a,u),J$(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new SLn),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Lte("z",s,c,this.animationValues);for(let u=0;u<Dte.length;u++)Lte(`rotate${Dte[u]}`,s,c,this.animationValues),Lte(`skew${Dte[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return xLn;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=SN(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=SN(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Z6(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=wLn(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:g,y:p}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${p.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const m in wB){if(h[m]===void 0)continue;const{correct:v,applyTo:C}=wB[m],y=c.transform==="none"?h[m]:v(h[m],f);if(C){const b=C.length;for(let S=0;S<b;S++)c[C[S]]=y}else c[m]=y}return this.options.layoutId&&(c.pointerEvents=f===this?SN(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(k9e),this.root.sharedNodes.clear()}}}function RLn(e){e.updateLayout()}function $Ln(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?af(f=>{const h=s?n.measuredBox[f]:n.layoutBox[f],g=bd(h);h.min=r[f].min,h.max=h.min+g}):nZe(o,n.layoutBox,r)&&af(f=>{const h=s?n.measuredBox[f]:n.layoutBox[f],g=bd(r[f]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const a=IS();J$(a,r,n.layoutBox);const l=IS();s?J$(l,e.applyTransform(i,!0),n.measuredBox):J$(l,r,n.layoutBox);const c=!ZQe(a);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:g}=f;if(h&&g){const p=ys();eO(p,n.layoutBox,h.layoutBox);const m=ys();eO(m,r,g.layoutBox),JQe(p,m)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=p,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function OLn(e){f$&&J6.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function TLn(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ILn(e){e.clearSnapshot()}function k9e(e){e.clearMeasurements()}function MLn(e){e.isLayoutDirty=!1}function PLn(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function z9e(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _Ln(e){e.resolveTargetDelta()}function ALn(e){e.calcProjection()}function DLn(e){e.resetSkewAndRotation()}function LLn(e){e.removeLeadSnapshot()}function B9e(e,t,n){e.translate=es(t.translate,0,n),e.scale=es(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function H9e(e,t,n,r){e.min=es(t.min,n.min,r),e.max=es(t.max,n.max,r)}function FLn(e,t,n,r){H9e(e.x,t.x,n.x,r),H9e(e.y,t.y,n.y,r)}function NLn(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kLn={duration:.45,ease:[.4,0,.1,1]},j9e=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),V9e=j9e("applewebkit/")&&!j9e("chrome/")?Math.round:pc;function G9e(e){e.min=V9e(e.min),e.max=V9e(e.max)}function zLn(e){G9e(e.x),G9e(e.y)}function nZe(e,t,n){return e==="position"||e==="preserve-aspect"&&!BDn(L9e(t),L9e(n),.2)}function BLn(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const HLn=tZe({attachResizeListener:(e,t)=>jT(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fte={current:void 0},rZe=tZe({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fte.current){const e=new HLn({});e.mount(window),e.setOptions({layoutScroll:!0}),Fte.current=e}return Fte.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),jLn={pan:{Feature:nLn},drag:{Feature:tLn,ProjectionNode:rZe,MeasureLayout:YQe}};function W9e(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Gi.postRender(()=>o(t,SM(t)))}class VLn extends E3{mount(){const{current:t}=this.node;t&&(this.unmount=M_n(t,n=>(W9e(this.node,n,"Start"),r=>W9e(this.node,r,"End"))))}unmount(){}}class GLn extends E3{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=bM(jT(this.node.current,"focus",()=>this.onFocus()),jT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function U9e(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Gi.postRender(()=>o(t,SM(t)))}class WLn extends E3{mount(){const{current:t}=this.node;t&&(this.unmount=D_n(t,n=>(U9e(this.node,n,"Start"),(r,{success:i})=>U9e(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ule=new WeakMap,Nte=new WeakMap,ULn=e=>{const t=Ule.get(e.target);t&&t(e)},qLn=e=>{e.forEach(ULn)};function KLn({root:e,...t}){const n=e||document;Nte.has(n)||Nte.set(n,{});const r=Nte.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(qLn,{root:e,...t})),r[i]}function YLn(e,t,n){const r=KLn(t);return Ule.set(e,n),r.observe(e),()=>{Ule.delete(e),r.unobserve(e)}}const XLn={some:0,all:1};class QLn extends E3{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:XLn[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=c?u:f;h&&h(l)};return YLn(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ZLn(t,n))&&this.startObserver()}unmount(){}}function ZLn({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const JLn={inView:{Feature:QLn},tap:{Feature:WLn},focus:{Feature:GLn},hover:{Feature:VLn}},eFn={layout:{ProjectionNode:rZe,MeasureLayout:YQe}},sG=d.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),aG=d.createContext({}),i1e=typeof window<"u",lG=i1e?d.useLayoutEffect:d.useEffect,iZe=d.createContext({strict:!1});function tFn(e,t,n,r,i){var o,s;const{visualElement:a}=d.useContext(aG),l=d.useContext(iZe),c=d.useContext(oG),u=d.useContext(sG).reducedMotion,f=d.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const h=f.current,g=d.useContext(KQe);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&nFn(f.current,n,i,g);const p=d.useRef(!1);d.useInsertionEffect(()=>{h&&p.current&&h.update(n,c)});const m=n[rQe],v=d.useRef(!!m&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,m))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,m)));return lG(()=>{h&&(p.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),r1e.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),d.useEffect(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)===null||C===void 0||C.call(window,m)}),v.current=!1))}),h}function nFn(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:oZe(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&TS(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function oZe(e){if(e)return e.options.allowProjection!==!1?e.projection:oZe(e.parent)}function rFn(e,t,n){return d.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):TS(n)&&(n.current=r))},[t])}function cG(e){return nG(e.animate)||Ame.some(t=>zT(e[t]))}function sZe(e){return!!(cG(e)||e.variants)}function iFn(e,t){if(cG(e)){const{initial:n,animate:r}=e;return{initial:n===!1||zT(n)?n:void 0,animate:zT(r)?r:void 0}}return e.inherit!==!1?t:{}}function oFn(e){const{initial:t,animate:n}=iFn(e,d.useContext(aG));return d.useMemo(()=>({initial:t,animate:n}),[q9e(t),q9e(n)])}function q9e(e){return Array.isArray(e)?e.join(" "):e}const K9e={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},p7={};for(const e in K9e)p7[e]={isEnabled:t=>K9e[e].some(n=>!!t[n])};function sFn(e){for(const t in e)p7[t]={...p7[t],...e[t]}}const aFn=Symbol.for("motionComponentSymbol");function lFn({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&sFn(e);function o(a,l){let c;const u={...d.useContext(sG),...a,layoutId:cFn(a)},{isStatic:f}=u,h=oFn(a),g=r(a,f);if(!f&&i1e){uFn();const p=dFn(u);c=p.MeasureLayout,h.visualElement=tFn(i,g,u,t,p.ProjectionNode)}return H.jsxs(aG.Provider,{value:h,children:[c&&h.visualElement?H.jsx(c,{visualElement:h.visualElement,...u}):null,n(i,a,rFn(g,h.visualElement,l),g,f,h.visualElement)]})}const s=d.forwardRef(o);return s[aFn]=i,s}function cFn({layoutId:e}){const t=d.useContext(n1e).id;return t&&e!==void 0?t+"-"+e:e}function uFn(e,t){d.useContext(iZe).strict}function dFn(e){const{drag:t,layout:n}=p7;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const fFn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function o1e(e){return typeof e!="string"||e.includes("-")?!1:!!(fFn.indexOf(e)>-1||/[A-Z]/u.test(e))}function aZe(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const lZe=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cZe(e,t,n,r){aZe(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(lZe.has(i)?i:Vme(i),t.attrs[i])}function uZe(e,{layout:t,layoutId:n}){return Gy.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wB[e]||e==="opacity")}function s1e(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(jl(i[s])||t.style&&jl(t.style[s])||uZe(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function dZe(e,t,n){const r=s1e(e,t,n);for(const i in e)if(jl(e[i])||jl(t[i])){const o=vM.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function t9(e){const t=d.useRef(null);return t.current===null&&(t.current=e()),t.current}function hFn({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:gFn(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const fZe=e=>(t,n)=>{const r=d.useContext(aG),i=d.useContext(oG),o=()=>hFn(e,t,r,i);return n?o():t9(o)};function gFn(e,t,n,r){const i={},o=r(e,{});for(const h in o)i[h]=SN(o[h]);let{initial:s,animate:a}=e;const l=cG(e),c=sZe(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!nG(f)){const h=Array.isArray(f)?f:[f];for(let g=0;g<h.length;g++){const p=Pme(e,h[g]);if(p){const{transitionEnd:m,transition:v,...C}=p;for(const y in C){let b=C[y];if(Array.isArray(b)){const S=u?b.length-1:0;b=b[S]}b!==null&&(i[y]=b)}for(const y in m)i[y]=m[y]}}}return i}const a1e=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),hZe=()=>({...a1e(),attrs:{}}),gZe=(e,t)=>t&&typeof e=="number"?t.transform(e):e,pFn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mFn=vM.length;function vFn(e,t,n){let r="",i=!0;for(let o=0;o<mFn;o++){const s=vM[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=gZe(a,Xme[s]);if(!l){i=!1;const u=pFn[s]||s;r+=`${u}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function l1e(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(Gy.has(l)){s=!0;continue}else if(mQe(l)){i[l]=c;continue}else{const u=gZe(c,Xme[l]);l.startsWith("origin")?(a=!0,o[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=vFn(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;r.transformOrigin=`${l} ${c} ${u}`}}function Y9e(e,t,n){return typeof e=="string"?e:vr.transform(t+n*e)}function CFn(e,t,n){const r=Y9e(t,e.x,e.width),i=Y9e(n,e.y,e.height);return`${r} ${i}`}const yFn={offset:"stroke-dashoffset",array:"stroke-dasharray"},bFn={offset:"strokeDashoffset",array:"strokeDasharray"};function SFn(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?yFn:bFn;e[o.offset]=vr.transform(-r);const s=vr.transform(t),a=vr.transform(n);e[o.array]=`${s} ${a}`}function c1e(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f){if(l1e(e,c,f),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:p}=e;h.transform&&(p&&(g.transform=h.transform),delete h.transform),p&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=CFn(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&SFn(h,s,a,l,!1)}const u1e=e=>typeof e=="string"&&e.toLowerCase()==="svg",wFn={useVisualState:fZe({scrapeMotionValuesFromProps:dZe,createRenderState:hZe,onMount:(e,t,{renderState:n,latestValues:r})=>{Gi.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Gi.render(()=>{c1e(n,r,u1e(t.tagName),e.transformTemplate),cZe(t,n)})}})},xFn={useVisualState:fZe({scrapeMotionValuesFromProps:s1e,createRenderState:a1e})};function pZe(e,t,n){for(const r in t)!jl(t[r])&&!uZe(r,n)&&(e[r]=t[r])}function EFn({transformTemplate:e},t){return d.useMemo(()=>{const n=a1e();return l1e(n,t,e),Object.assign({},n.vars,n.style)},[t])}function RFn(e,t){const n=e.style||{},r={};return pZe(r,n,e),Object.assign(r,EFn(e,t)),r}function $Fn(e,t){const n={},r=RFn(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const OFn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xB(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||OFn.has(e)}let mZe=e=>!xB(e);function TFn(e){e&&(mZe=t=>t.startsWith("on")?!xB(t):e(t))}try{TFn(require("@emotion/is-prop-valid").default)}catch{}function IFn(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(mZe(i)||n===!0&&xB(i)||!t&&!xB(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function MFn(e,t,n,r){const i=d.useMemo(()=>{const o=hZe();return c1e(o,t,u1e(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};pZe(o,e.style,e),i.style={...o,...i.style}}return i}function PFn(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(o1e(n)?MFn:$Fn)(r,o,s,n),c=IFn(r,typeof n=="string",e),u=n!==d.Fragment?{...c,...l,ref:i}:{},{children:f}=r,h=d.useMemo(()=>jl(f)?f.get():f,[f]);return d.createElement(n,{...u,children:h})}}function _Fn(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...o1e(r)?wFn:xFn,preloadedFeatures:e,useRender:PFn(i),createVisualElement:t,Component:r};return lFn(s)}}const qle={current:null},vZe={current:!1};function AFn(){if(vZe.current=!0,!!i1e)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>qle.current=e.matches;e.addListener(t),t()}else qle.current=!1}function DFn(e,t,n){for(const r in t){const i=t[r],o=n[r];if(jl(i))e.addValue(r,i);else if(jl(o))e.addValue(r,Qp(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Qp(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const X9e=new WeakMap,LFn=[...yQe,Ol,e3],FFn=e=>LFn.find(CQe(e)),Q9e=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class NFn{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qme,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=lm.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Gi.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=cG(n),this.isVariantNode=sZe(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const g=f[h];l[h]!==void 0&&jl(g)&&g.set(l[h],!1)}}mount(t){this.current=t,X9e.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),vZe.current||AFn(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:qle.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){X9e.delete(this.current),this.projection&&this.projection.unmount(),Lg(this.notifyUpdate),Lg(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Gy.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Gi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in p7){const n=p7[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ys()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Q9e.length;r++){const i=Q9e[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=DFn(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Qp(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(gQe(i)||hQe(i))?i=parseFloat(i):!FFn(i)&&e3.test(n)&&(i=OQe(t,n)),this.setBaseTarget(t,jl(i)?i.get():i)),jl(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Pme(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!jl(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Hme),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class CZe extends NFn{constructor(){super(...arguments),this.KeyframeResolver=TQe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;jl(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function kFn(e){return window.getComputedStyle(e)}class zFn extends CZe{constructor(){super(...arguments),this.type="html",this.renderInstance=aZe}readValueFromInstance(t,n){if(Gy.has(n)){const r=Qme(n);return r&&r.default||0}else{const r=kFn(t),i=(mQe(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return UQe(t,n)}build(t,n,r){l1e(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return s1e(t,n,r)}}class BFn extends CZe{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ys}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gy.has(n)){const r=Qme(n);return r&&r.default||0}return n=lZe.has(n)?n:Vme(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return dZe(t,n,r)}build(t,n,r){c1e(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){cZe(t,n,r,i)}mount(t){this.isSVGTag=u1e(t.tagName),super.mount(t)}}const HFn=(e,t)=>o1e(e)?new BFn(t):new zFn(t,{allowProjection:e!==d.Fragment}),jFn=_Fn({...PDn,...JLn,...jLn,...eFn},HFn),mc=E_n(jFn);class VFn extends d.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function GFn({children:e,isPresent:t}){const n=d.useId(),r=d.useRef(null),i=d.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=d.useContext(sG);return d.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:c}=i.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return o&&(u.nonce=o),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
||
[data-motion-pop-id="${n}"] {
|
||
position: absolute !important;
|
||
width: ${s}px !important;
|
||
height: ${a}px !important;
|
||
top: ${l}px !important;
|
||
left: ${c}px !important;
|
||
}
|
||
`),()=>{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=()=>({time:0,x:eEe(),y:eEe()}),cNn={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function tEe(e,t,n,r){const i=n[t],{length:o,position:s}=cNn[t],a=i.current,l=n.time;i.current=e[`scroll${s}`],i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=VC(0,i.scrollLength,i.current);const c=r-l;i.velocity=c>aNn?0:jme(i.current-a,c)}function uNn(e,t,n){tEe(e,"x",t,n),tEe(e,"y",t,n),t.time=n}function dNn(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const o=r.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:o}=r.getBBox();n.x+=i,n.y+=o;let s=null,a=r.parentNode;for(;!s;)a.tagName==="svg"&&(s=a),a=r.parentNode;r=s}else break;return n}const fNn={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Kle={start:0,center:.5,end:1};function nEe(e,t,n=0){let r=0;if(e in Kle&&(e=Kle[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const hNn=[0,0];function gNn(e,t,n,r){let i=Array.isArray(e)?e:hNn,o=0,s=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,Kle[e]?e:"0"]),o=nEe(i[0],n,r),s=nEe(i[1],t),o-s}const pNn={x:0,y:0};function mNn(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function vNn(e,t,n){const{offset:r=fNn.All}=n,{target:i=e,axis:o="y"}=n,s=o==="y"?"height":"width",a=i!==e?dNn(i,e):pNn,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:mNn(i),c={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let u=!t[o].interpolate;const f=r.length;for(let h=0;h<f;h++){const g=gNn(r[h],c[s],l[s],a[o]);!u&&g!==t[o].interpolatorOffsets[h]&&(u=!0),t[o].offset[h]=g}u&&(t[o].interpolate=Jme(t[o].offset,LQe(r)),t[o].interpolatorOffsets=[...t[o].offset]),t[o].progress=t[o].interpolate(t[o].current)}function CNn(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function yNn(e,t,n,r={}){return{measure:()=>CNn(e,r.target,n),update:i=>{uNn(e,n,i),(r.offset||r.target)&&vNn(e,n,r)},notify:()=>t(n)}}const iR=new WeakMap,rEe=new WeakMap,kte=new WeakMap,iEe=e=>e===document.documentElement?window:e;function f1e(e,{container:t=document.documentElement,...n}={}){let r=kte.get(t);r||(r=new Set,kte.set(t,r));const i=lNn(),o=yNn(t,e,i,n);if(r.add(o),!iR.has(t)){const a=()=>{for(const h of r)h.measure()},l=()=>{for(const h of r)h.update(Ra.timestamp)},c=()=>{for(const h of r)h.notify()},u=()=>{Gi.read(a,!1,!0),Gi.read(l,!1,!0),Gi.update(c,!1,!0)};iR.set(t,u);const f=iEe(t);window.addEventListener("resize",u,{passive:!0}),t!==document.documentElement&&rEe.set(t,sNn(t,u)),f.addEventListener("scroll",u,{passive:!0})}const s=iR.get(t);return Gi.read(s,!1,!0),()=>{var a;Lg(s);const l=kte.get(t);if(!l||(l.delete(o),l.size))return;const c=iR.get(t);iR.delete(t),c&&(iEe(t).removeEventListener("scroll",c),(a=rEe.get(t))===null||a===void 0||a(),window.removeEventListener("resize",c))}}function bNn({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},i=f1e(o=>{r.value=o[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:i}}const zte=new Map;function SZe({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),zte.has(t)||zte.set(t,{});const r=zte.get(t);return r[n]||(r[n]=qXe()?new ScrollTimeline({source:t,axis:n}):bNn({source:t,axis:n})),r[n]}function SNn(e){return e.length===2}function wZe(e){return e&&(e.target||e.offset)}function wNn(e,t){return SNn(e)||wZe(t)?f1e(n=>{e(n[t.axis].progress,n)},t):bZe(e,SZe(t))}function xNn(e,t){if(e.flatten(),wZe(t))return e.pause(),f1e(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=SZe(t);return e.attachTimeline?e.attachTimeline(n,r=>(r.pause(),bZe(i=>{r.time=r.duration*i},n))):pc}}function ENn(e,{axis:t="y",...n}={}){const r={axis:t,...n};return typeof e=="function"?wNn(e,r):xNn(e,r)}function oEe(e,t){R_n(!!(!t||t.current))}const RNn=()=>({scrollX:Qp(0),scrollY:Qp(0),scrollXProgress:Qp(0),scrollYProgress:Qp(0)});function $Nn({container:e,target:t,layoutEffect:n=!0,...r}={}){const i=t9(RNn);return(n?lG:d.useEffect)(()=>(oEe("target",t),oEe("container",e),ENn((s,{x:a,y:l})=>{i.scrollX.set(a.current),i.scrollXProgress.set(a.progress),i.scrollY.set(l.current),i.scrollYProgress.set(l.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),i}const sEe=(e=0)=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`};function ONn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M3.22 3.22a.75.75 0 0 1 1.06 0l3.97 3.97V4.5a.75.75 0 0 1 1.5 0V9a.75.75 0 0 1-.75.75H4.5a.75.75 0 0 1 0-1.5h2.69L3.22 4.28a.75.75 0 0 1 0-1.06Zm17.56 0a.75.75 0 0 1 0 1.06l-3.97 3.97h2.69a.75.75 0 0 1 0 1.5H15a.75.75 0 0 1-.75-.75V4.5a.75.75 0 0 1 1.5 0v2.69l3.97-3.97a.75.75 0 0 1 1.06 0ZM3.75 15a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-2.69l-3.97 3.97a.75.75 0 0 1-1.06-1.06l3.97-3.97H4.5a.75.75 0 0 1-.75-.75Zm10.5 0a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-2.69l3.97 3.97a.75.75 0 1 1-1.06 1.06l-3.97-3.97v2.69a.75.75 0 0 1-1.5 0V15Z",clipRule:"evenodd"}))}const TNn=d.forwardRef(ONn);function INn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M15 3.75a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0V5.56l-3.97 3.97a.75.75 0 1 1-1.06-1.06l3.97-3.97h-2.69a.75.75 0 0 1-.75-.75Zm-12 0A.75.75 0 0 1 3.75 3h4.5a.75.75 0 0 1 0 1.5H5.56l3.97 3.97a.75.75 0 0 1-1.06 1.06L4.5 5.56v2.69a.75.75 0 0 1-1.5 0v-4.5Zm11.47 11.78a.75.75 0 1 1 1.06-1.06l3.97 3.97v-2.69a.75.75 0 0 1 1.5 0v4.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1 0-1.5h2.69l-3.97-3.97Zm-4.94-1.06a.75.75 0 0 1 0 1.06L5.56 19.5h2.69a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75v-4.5a.75.75 0 0 1 1.5 0v2.69l3.97-3.97a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))}const MNn=d.forwardRef(INn);function PNn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const _Nn=d.forwardRef(PNn);function ANn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M6.75 5.25a.75.75 0 0 1 .75-.75H9a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H7.5a.75.75 0 0 1-.75-.75V5.25Zm7.5 0A.75.75 0 0 1 15 4.5h1.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75H15a.75.75 0 0 1-.75-.75V5.25Z",clipRule:"evenodd"}))}const DNn=d.forwardRef(ANn);function LNn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{fillRule:"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z",clipRule:"evenodd"}))}const FNn=d.forwardRef(LNn);function NNn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06ZM18.584 5.106a.75.75 0 0 1 1.06 0c3.808 3.807 3.808 9.98 0 13.788a.75.75 0 0 1-1.06-1.06 8.25 8.25 0 0 0 0-11.668.75.75 0 0 1 0-1.06Z"}),d.createElement("path",{d:"M15.932 7.757a.75.75 0 0 1 1.061 0 6 6 0 0 1 0 8.486.75.75 0 0 1-1.06-1.061 4.5 4.5 0 0 0 0-6.364.75.75 0 0 1 0-1.06Z"}))}const kNn=d.forwardRef(NNn);function zNn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M13.5 4.06c0-1.336-1.616-2.005-2.56-1.06l-4.5 4.5H4.508c-1.141 0-2.318.664-2.66 1.905A9.76 9.76 0 0 0 1.5 12c0 .898.121 1.768.35 2.595.341 1.24 1.518 1.905 2.659 1.905h1.93l4.5 4.5c.945.945 2.561.276 2.561-1.06V4.06ZM17.78 9.22a.75.75 0 1 0-1.06 1.06L18.44 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06l1.72-1.72 1.72 1.72a.75.75 0 1 0 1.06-1.06L20.56 12l1.72-1.72a.75.75 0 1 0-1.06-1.06l-1.72 1.72-1.72-1.72Z"}))}const BNn=d.forwardRef(zNn);function HNn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M12 2.25a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-1.5 0V3a.75.75 0 0 1 .75-.75ZM7.5 12a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM18.894 6.166a.75.75 0 0 0-1.06-1.06l-1.591 1.59a.75.75 0 1 0 1.06 1.061l1.591-1.59ZM21.75 12a.75.75 0 0 1-.75.75h-2.25a.75.75 0 0 1 0-1.5H21a.75.75 0 0 1 .75.75ZM17.834 18.894a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 1 0-1.061 1.06l1.59 1.591ZM12 18a.75.75 0 0 1 .75.75V21a.75.75 0 0 1-1.5 0v-2.25A.75.75 0 0 1 12 18ZM7.758 17.303a.75.75 0 0 0-1.061-1.06l-1.591 1.59a.75.75 0 0 0 1.06 1.061l1.591-1.59ZM6 12a.75.75 0 0 1-.75.75H3a.75.75 0 0 1 0-1.5h2.25A.75.75 0 0 1 6 12ZM6.697 7.757a.75.75 0 0 0 1.06-1.06l-1.59-1.591a.75.75 0 0 0-1.061 1.06l1.59 1.591Z"}))}const jNn=d.forwardRef(HNn);function VNn(){const{isMuted:e,setIsMuted:t,volume:n,setVolume:r,videoRef:i}=d.useContext(Yg);return H.jsx(H.Fragment,{children:H.jsxs("div",{className:"group relative flex items-center",children:[H.jsx("div",{onClick:()=>t(!e),className:"text-white hover:text-primaryHover",children:e?H.jsx(BNn,{className:"w-10 h-10"}):H.jsx(kNn,{className:"w-10 h-10"})}),H.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:H.jsx("div",{className:"bg-black/80 rounded-lg p-2",children:H.jsx("input",{type:"range",min:"0",max:"1",step:"0.1",value:n,onChange:o=>{const s=parseFloat(o.target.value);r(s),i.current&&(i.current.volume=s)},className:"h-24 w-2 accent-primary-500 [-webkit-appearance:slider-vertical]"})})})]})})}function GNn(){const{brightness:e,setBrightness:t}=d.useContext(Yg);return H.jsx(H.Fragment,{children:H.jsxs("div",{className:"relative group flex items-center",children:[H.jsx("div",{className:"text-white hover:text-primaryHover",children:H.jsx(jNn,{className:"w-10 h-10"})}),H.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:H.jsx("div",{className:"bg-black/80 rounded-lg p-2",children:H.jsx("input",{type:"range",min:"0.1",max:"2",step:"0.1",value:e,onChange:n=>t(parseFloat(n.target.value)),className:"h-24 w-2 accent-primary-500 [-webkit-appearance:slider-vertical]"})})})]})})}function WNn(){const{setIsSpeedOpen:e,isSpeedOpen:t,playbackSpeed:n,setPlaybackSpeed:r,videoRef:i}=d.useContext(Yg);return H.jsx(H.Fragment,{children:H.jsxs("div",{className:"relative flex items-center",children:[H.jsxs("div",{onClick:()=>e(!t),className:"text-white hover:text-primaryHover flex items-center",children:[H.jsx("span",{className:"text-xl font-bold mr-1",children:n===1?"倍速":`${n}x`}),H.jsx(_Nn,{className:"w-10 h-10"})]}),t&&H.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2",children:H.jsx("div",{className:"bg-black/80 rounded-lg p-2",children:H.jsx("div",{className:"flex flex-col gap-1",children:[.5,.75,1,1.25,1.5,2].map(o=>H.jsxs("button",{onClick:()=>{r(o),i.current&&(i.current.playbackRate=o),e(!1)},className:`px-2 py-1 text-lg whitespace-nowrap ${n===o?"text-primary-500 font-bold":"text-white hover:text-primaryHover"}`,children:[o,"x"]},o))})})})]})})}function UNn(){const{isPlaying:e,videoRef:t}=d.useContext(Yg),n=r=>{var i,o;r.stopPropagation(),(i=t.current)!=null&&i.paused?t.current.play():(o=t.current)==null||o.pause()};return H.jsx(H.Fragment,{children:H.jsx("div",{onClick:n,className:"text-white hover:text-primaryHover",children:e?H.jsx(DNn,{className:"w-10 h-10"}):H.jsx(FNn,{className:"w-10 h-10"})})})}function qNn(){const{videoRef:e}=d.useContext(Yg);return H.jsx(H.Fragment,{children:H.jsx("div",{onClick:()=>{var t,n;document.fullscreenElement?document.exitFullscreen():(n=(t=e.current)==null?void 0:t.parentElement)==null||n.requestFullscreen()},className:"text-white hover:text-primary-400",children:document.fullscreenElement?H.jsx(TNn,{className:"w-10 h-10"}):H.jsx(MNn,{className:"w-10 h-10"})})})}function KNn(){const{currentTime:e,duration:t,progressRef:n,setIsDragging:r,videoRef:i,isDragging:o,isHovering:s}=d.useContext(Yg),a=l=>{if(!i.current||!n.current)return;const c=n.current.getBoundingClientRect(),u=(l.clientX-c.left)/c.width;i.current.currentTime=u*i.current.duration};return H.jsx(H.Fragment,{children:H.jsxs("div",{ref:n,className:"relative h-1 mb-4 cursor-pointer group",onClick:a,onMouseDown:l=>{r(!0),a(l)},children:[H.jsx("div",{className:"absolute w-full h-full bg-gray-500/70 rounded-full"}),H.jsx(mc.div,{className:"absolute h-full bg-primary rounded-full",style:{width:`${e/t*100}%`},transition:{type:"tween"}}),H.jsx(mc.div,{className:`z-20 absolute top-1/2 -translate-y-1/2 -translate-x-1/2 w-3 h-3 rounded-full bg-primaryHover border-primaryActive border shadow-lg
|
||
${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){if(typeof e!="object"||!e)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 must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZNn(e){var t=QNn(e,"string");return typeof t=="symbol"?t:String(t)}function JNn(e,t,n){return t=ZNn(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vs(){return Vs=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},Vs.apply(this,arguments)}const kn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},ekn=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=tkn},tkn=Number.MAX_SAFE_INTEGER||9007199254740991;let Se=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e}({}),wr=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),_t=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.UNKNOWN="unknown",e}({});const e8=function(){},Yle={trace:e8,debug:e8,log:e8,warn:e8,info:e8,error:e8};let nO=Yle;function nkn(e){const t=self.console[e];return t?t.bind(self.console,`[${e}] >`):e8}function rkn(e,...t){t.forEach(function(n){nO[n]=e[n]?e[n].bind(e):nkn(n)})}function ikn(e,t){if(typeof console=="object"&&e===!0||typeof e=="object"){rkn(e,"debug","log","info","warn","error");try{nO.log(`Debug logs enabled for "${t}" in hls.js version 1.5.18`)}catch{nO=Yle}}else nO=Yle}const bt=nO,okn=/^(\d+)x(\d+)$/,lEe=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Ko{constructor(t){typeof t=="string"&&(t=Ko.parseAttrList(t)),Vs(this,t)}get clientAttrs(){return Object.keys(this).filter(t=>t.substring(0,2)==="X-")}decimalInteger(t){const n=parseInt(this[t],10);return n>Number.MAX_SAFE_INTEGER?1/0:n}hexadecimalInteger(t){if(this[t]){let n=(this[t]||"0x").slice(2);n=(n.length&1?"0":"")+n;const r=new Uint8Array(n.length/2);for(let i=0;i<n.length/2;i++)r[i]=parseInt(n.slice(i*2,i*2+2),16);return r}else return null}hexadecimalIntegerAsNumber(t){const n=parseInt(this[t],16);return n>Number.MAX_SAFE_INTEGER?1/0:n}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,n){const r=this[t];return r?parseFloat(r):n}enumeratedString(t){return this[t]}bool(t){return this[t]==="YES"}decimalResolution(t){const n=okn.exec(this[t]);if(n!==null)return{width:parseInt(n[1],10),height:parseInt(n[2],10)}}static parseAttrList(t){let n;const r={},i='"';for(lEe.lastIndex=0;(n=lEe.exec(t))!==null;){let o=n[2];o.indexOf(i)===0&&o.lastIndexOf(i)===o.length-1&&(o=o.slice(1,-1));const s=n[1].trim();r[s]=o}return r}}function skn(e){return e!=="ID"&&e!=="CLASS"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function akn(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"}class EZe{constructor(t,n){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,n){const r=n.attr;for(const i in r)if(Object.prototype.hasOwnProperty.call(t,i)&&t[i]!==r[i]){bt.warn(`DATERANGE tag attribute: "${i}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=i;break}t=Vs(new Ko({}),r,t)}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const r=new Date(this.attr["END-DATE"]);kn(r.getTime())&&(this._endDate=r)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const t=this.duration;return t!==null?new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(kn(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isValid(){return!!this.id&&!this._badValueForSameId&&kn(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class uG{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var eo={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class RZe{constructor(t){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[eo.AUDIO]:null,[eo.VIDEO]:null,[eo.AUDIOVIDEO]:null},this.baseurl=t}setByteRange(t,n){const r=t.split("@",2);let i;r.length===1?i=(n==null?void 0:n.byteRangeEndOffset)||0:i=parseInt(r[1]),this._byteRange=[i,parseInt(r[0])+i]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=h1e.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(t){this._url=t}}class Bte extends RZe{constructor(t,n){super(n),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new uG,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=t}get decryptdata(){const{levelkeys:t}=this;if(!t&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const n=this.levelkeys.identity;if(n)this._decryptdata=n.getDecryptData(this.sn);else{const r=Object.keys(this.levelkeys);if(r.length===1)return this._decryptdata=this.levelkeys[r[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!kn(this.programDateTime))return null;const t=kn(this.duration)?this.duration:0;return this.programDateTime+t*1e3}get encrypted(){var t;if((t=this._decryptdata)!=null&&t.encrypted)return!0;if(this.levelkeys){const n=Object.keys(this.levelkeys),r=n.length;if(r>1||r===1&&this.levelkeys[n[0]].encrypted)return!0}return!1}setKeyFormat(t){if(this.levelkeys){const n=this.levelkeys[t];n&&!this._decryptdata&&(this._decryptdata=n.getDecryptData(this.sn))}}abortRequests(){var t,n;(t=this.loader)==null||t.abort(),(n=this.keyLoader)==null||n.abort()}setElementaryStreamInfo(t,n,r,i,o,s=!1){const{elementaryStreams:a}=this,l=a[t];if(!l){a[t]={startPTS:n,endPTS:r,startDTS:i,endDTS:o,partial:s};return}l.startPTS=Math.min(l.startPTS,n),l.endPTS=Math.max(l.endPTS,r),l.startDTS=Math.min(l.startDTS,i),l.endDTS=Math.max(l.endDTS,o)}clearElementaryStreamInfo(){const{elementaryStreams:t}=this;t[eo.AUDIO]=null,t[eo.VIDEO]=null,t[eo.AUDIOVIDEO]=null}}class lkn extends RZe{constructor(t,n,r,i,o){super(r),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new uG,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=n,this.index=i;const s=t.enumeratedString("BYTERANGE");s&&this.setByteRange(s,o),o&&(this.fragOffset=o.fragOffset+o.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}const ckn=10;class ukn{constructor(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t){this.advanced=!0,this.updated=!0;return}const n=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!n||!this.live,this.advanced=this.endSN>t.endSN||n>0||n===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?kn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||ckn}get drift(){const t=this.driftEndTime-this.driftStartTime;return t>0?(this.driftEnd-this.driftStart)*1e3/t:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var t;return(t=this.fragments)!=null&&t.length?this.fragments[this.fragments.length-1].end:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].index:-1}get lastPartSn(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function g1e(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function dkn(e){const t=Xle(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function fkn(e){const t=function(r,i,o){const s=r[i];r[i]=r[o],r[o]=s};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function hkn(e){const t=e.split(":");let n=null;if(t[0]==="data"&&t.length===2){const r=t[1].split(";"),i=r[r.length-1].split(",");if(i.length===2){const o=i[0]==="base64",s=i[1];o?(r.splice(-1,1),n=g1e(s)):n=dkn(s)}}return n}function Xle(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}const m7=typeof self<"u"?self:void 0;var Eo={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},nu={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function cEe(e){switch(e){case nu.FAIRPLAY:return Eo.FAIRPLAY;case nu.PLAYREADY:return Eo.PLAYREADY;case nu.WIDEVINE:return Eo.WIDEVINE;case nu.CLEARKEY:return Eo.CLEARKEY}}var h$={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function uEe(e){if(e===h$.WIDEVINE)return Eo.WIDEVINE;if(e===h$.PLAYREADY)return Eo.PLAYREADY;if(e===h$.CENC||e===h$.CLEARKEY)return Eo.CLEARKEY}function dEe(e){switch(e){case Eo.FAIRPLAY:return nu.FAIRPLAY;case Eo.PLAYREADY:return nu.PLAYREADY;case Eo.WIDEVINE:return nu.WIDEVINE;case Eo.CLEARKEY:return nu.CLEARKEY}}function Hte(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[Eo.FAIRPLAY,Eo.WIDEVINE,Eo.PLAYREADY,Eo.CLEARKEY].filter(i=>!!t[i]):[];return!r[Eo.WIDEVINE]&&n&&r.push(Eo.WIDEVINE),r}const $Ze=function(e){return m7!=null&&(e=m7.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function gkn(e,t,n,r){let i;switch(e){case Eo.FAIRPLAY:i=["cenc","sinf"];break;case Eo.WIDEVINE:case Eo.PLAYREADY:i=["cenc"];break;case Eo.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return pkn(i,t,n,r)}function pkn(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map(o=>({contentType:`audio/mp4; codecs="${o}"`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:n.map(o=>({contentType:`video/mp4; codecs="${o}"`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function cC(e,t,n){return Uint8Array.prototype.slice?e.slice(t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))}const p1e=(e,t)=>t+10<=e.length&&e[t]===73&&e[t+1]===68&&e[t+2]===51&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128,OZe=(e,t)=>t+10<=e.length&&e[t]===51&&e[t+1]===68&&e[t+2]===73&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128,VT=(e,t)=>{const n=t;let r=0;for(;p1e(e,t);){r+=10;const i=dG(e,t+6);r+=i,OZe(e,t+10)&&(r+=10),t+=r}if(r>0)return e.subarray(n,n+r)},dG=(e,t)=>{let n=0;return n=(e[t]&127)<<21,n|=(e[t+1]&127)<<14,n|=(e[t+2]&127)<<7,n|=e[t+3]&127,n},mkn=(e,t)=>p1e(e,t)&&dG(e,t+6)+10<=e.length-t,m1e=e=>{const t=IZe(e);for(let n=0;n<t.length;n++){const r=t[n];if(TZe(r))return wkn(r)}},TZe=e=>e&&e.key==="PRIV"&&e.info==="com.apple.streaming.transportStreamTimestamp",vkn=e=>{const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=dG(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}},IZe=e=>{let t=0;const n=[];for(;p1e(e,t);){const r=dG(e,t+6);t+=10;const i=t+r;for(;t+8<i;){const o=vkn(e.subarray(t)),s=Ckn(o);s&&n.push(s),t+=o.size+10}OZe(e,t)&&(t+=10)}return n},Ckn=e=>e.type==="PRIV"?ykn(e):e.type[0]==="W"?Skn(e):bkn(e),ykn=e=>{if(e.size<2)return;const t=um(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}},bkn=e=>{if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=um(e.data.subarray(n),!0);n+=r.length+1;const i=um(e.data.subarray(n));return{key:e.type,info:r,data:i}}const t=um(e.data.subarray(1));return{key:e.type,data:t}},Skn=e=>{if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=um(e.data.subarray(n),!0);n+=r.length+1;const i=um(e.data.subarray(n));return{key:e.type,info:r,data:i}}const t=um(e.data);return{key:e.type,data:t}},wkn=e=>{if(e.data.byteLength===8){const t=new Uint8Array(e.data),n=t[3]&1;let r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=4772185884e-2),Math.round(r)}},um=(e,t=!1)=>{const n=xkn();if(n){const c=n.decode(e);if(t){const u=c.indexOf("\0");return u!==-1?c.substring(0,u):c}return c.replace(/\0/g,"")}const r=e.length;let i,o,s,a="",l=0;for(;l<r;){if(i=e[l++],i===0&&t)return a;if(i===0||i===3)continue;switch(i>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(i);break;case 12:case 13:o=e[l++],a+=String.fromCharCode((i&31)<<6|o&63);break;case 14:o=e[l++],s=e[l++],a+=String.fromCharCode((i&15)<<12|(o&63)<<6|(s&63)<<0);break}}return a};let jte;function xkn(){if(!navigator.userAgent.includes("PlayStation 4"))return!jte&&typeof self.TextDecoder<"u"&&(jte=new self.TextDecoder("utf-8")),jte}const Lp={hexDump:function(e){let t="";for(let n=0;n<e.length;n++){let r=e[n].toString(16);r.length<2&&(r="0"+r),t+=r}return t}},EB=Math.pow(2,32)-1,Ekn=[].push,MZe={video:1,audio:2,id3:3,text:4};function Qs(e){return String.fromCharCode.apply(null,e)}function PZe(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function dr(e,t){const n=_Ze(e,t);return n<0?4294967296+n:n}function fEe(e,t){let n=dr(e,t);return n*=Math.pow(2,32),n+=dr(e,t+4),n}function _Ze(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function Vte(e,t,n){e[t]=n>>24,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n&255}function Rkn(e){const t=e.byteLength;for(let n=0;n<t;){const r=dr(e,n);if(r>8&&e[n+4]===109&&e[n+5]===111&&e[n+6]===111&&e[n+7]===102)return!0;n=r>1?n+r:t}return!1}function Nr(e,t){const n=[];if(!t.length)return n;const r=e.byteLength;for(let i=0;i<r;){const o=dr(e,i),s=Qs(e.subarray(i+4,i+8)),a=o>1?i+o:r;if(s===t[0])if(t.length===1)n.push(e.subarray(i+8,a));else{const l=Nr(e.subarray(i+8,a),t.slice(1));l.length&&Ekn.apply(n,l)}i=a}return n}function $kn(e){const t=[],n=e[0];let r=8;const i=dr(e,r);r+=4;let o=0,s=0;n===0?(o=dr(e,r),s=dr(e,r+4),r+=8):(o=fEe(e,r),s=fEe(e,r+8),r+=16),r+=2;let a=e.length+s;const l=PZe(e,r);r+=2;for(let c=0;c<l;c++){let u=r;const f=dr(e,u);u+=4;const h=f&2147483647;if((f&2147483648)>>>31===1)return bt.warn("SIDX has hierarchical references (not supported)"),null;const p=dr(e,u);u+=4,t.push({referenceSize:h,subsegmentDuration:p,info:{duration:p/i,start:a,end:a+h-1}}),a+=h,u+=4,r=u}return{earliestPresentationTime:o,timescale:i,version:n,referencesCount:l,references:t}}function AZe(e){const t=[],n=Nr(e,["moov","trak"]);for(let i=0;i<n.length;i++){const o=n[i],s=Nr(o,["tkhd"])[0];if(s){let a=s[0];const l=dr(s,a===0?12:20),c=Nr(o,["mdia","mdhd"])[0];if(c){a=c[0];const u=dr(c,a===0?12:20),f=Nr(o,["mdia","hdlr"])[0];if(f){const h=Qs(f.subarray(8,12)),g={soun:eo.AUDIO,vide:eo.VIDEO}[h];if(g){const p=Nr(o,["mdia","minf","stbl","stsd"])[0],m=Okn(p);t[l]={timescale:u,type:g},t[g]=ka({timescale:u,id:l},m)}}}}}return Nr(e,["moov","mvex","trex"]).forEach(i=>{const o=dr(i,4),s=t[o];s&&(s.default={duration:dr(i,12),flags:dr(i,20)})}),t}function Okn(e){const t=e.subarray(8),n=t.subarray(86),r=Qs(t.subarray(4,8));let i=r;const o=r==="enca"||r==="encv";if(o){const a=Nr(t,[r])[0].subarray(r==="enca"?28:78);Nr(a,["sinf"]).forEach(c=>{const u=Nr(c,["schm"])[0];if(u){const f=Qs(u.subarray(4,8));if(f==="cbcs"||f==="cenc"){const h=Nr(c,["frma"])[0];h&&(i=Qs(h))}}})}switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const s=Nr(n,["avcC"])[0];i+="."+jD(s[1])+jD(s[2])+jD(s[3]);break}case"mp4a":{const s=Nr(t,[r])[0],a=Nr(s.subarray(28),["esds"])[0];if(a&&a.length>12){let l=4;if(a[l++]!==3)break;l=Gte(a,l),l+=2;const c=a[l++];if(c&128&&(l+=2),c&64&&(l+=a[l++]),a[l++]!==4)break;l=Gte(a,l);const u=a[l++];if(u===64)i+="."+jD(u);else break;if(l+=12,a[l++]!==5)break;l=Gte(a,l);const f=a[l++];let h=(f&248)>>3;h===31&&(h+=1+((f&7)<<3)+((a[l]&224)>>5)),i+="."+h}break}case"hvc1":case"hev1":{const s=Nr(n,["hvcC"])[0],a=s[1],l=["","A","B","C"][a>>6],c=a&31,u=dr(s,2),f=(a&32)>>5?"H":"L",h=s[12],g=s.subarray(6,12);i+="."+l+c,i+="."+u.toString(16).toUpperCase(),i+="."+f+h;let p="";for(let m=g.length;m--;){const v=g[m];(v||p)&&(p="."+v.toString(16).toUpperCase()+p)}i+=p;break}case"dvh1":case"dvhe":{const s=Nr(n,["dvcC"])[0],a=s[2]>>1&127,l=s[2]<<5&32|s[3]>>3&31;i+="."+Sp(a)+"."+Sp(l);break}case"vp09":{const s=Nr(n,["vpcC"])[0],a=s[4],l=s[5],c=s[6]>>4&15;i+="."+Sp(a)+"."+Sp(l)+"."+Sp(c);break}case"av01":{const s=Nr(n,["av1C"])[0],a=s[1]>>>5,l=s[1]&31,c=s[2]>>>7?"H":"M",u=(s[2]&64)>>6,f=(s[2]&32)>>5,h=a===2&&u?f?12:10:u?10:8,g=(s[2]&16)>>4,p=(s[2]&8)>>3,m=(s[2]&4)>>2,v=s[2]&3;i+="."+a+"."+Sp(l)+c+"."+Sp(h)+"."+g+"."+p+m+v+"."+Sp(1)+"."+Sp(1)+"."+Sp(1)+"."+0;break}}return{codec:i,encrypted:o}}function Gte(e,t){const n=t+5;for(;e[t++]&128&&t<n;);return t}function jD(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function Sp(e){return(e<10?"0":"")+e}function Tkn(e,t){if(!e||!t)return e;const n=t.keyId;return n&&t.isCommonEncryption&&Nr(e,["moov","trak"]).forEach(i=>{const s=Nr(i,["mdia","minf","stbl","stsd"])[0].subarray(8);let a=Nr(s,["enca"]);const l=a.length>0;l||(a=Nr(s,["encv"])),a.forEach(c=>{const u=l?c.subarray(28):c.subarray(78);Nr(u,["sinf"]).forEach(h=>{const g=DZe(h);if(g){const p=g.subarray(8,24);p.some(m=>m!==0)||(bt.log(`[eme] Patching keyId in 'enc${l?"a":"v"}>sinf>>tenc' box: ${Lp.hexDump(p)} -> ${Lp.hexDump(n)}`),g.set(n,8))}})})}),e}function DZe(e){const t=Nr(e,["schm"])[0];if(t){const n=Qs(t.subarray(4,8));if(n==="cbcs"||n==="cenc")return Nr(e,["schi","tenc"])[0]}return null}function Ikn(e,t){return Nr(t,["moof","traf"]).reduce((n,r)=>{const i=Nr(r,["tfdt"])[0],o=i[0],s=Nr(r,["tfhd"]).reduce((a,l)=>{const c=dr(l,4),u=e[c];if(u){let f=dr(i,4);if(o===1){if(f===EB)return bt.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),a;f*=EB+1,f+=dr(i,8)}const h=u.timescale||9e4,g=f/h;if(kn(g)&&(a===null||g<a))return g}return a},null);return s!==null&&kn(s)&&(n===null||s<n)?s:n},null)}function Mkn(e,t){let n=0,r=0,i=0;const o=Nr(e,["moof","traf"]);for(let s=0;s<o.length;s++){const a=o[s],l=Nr(a,["tfhd"])[0],c=dr(l,4),u=t[c];if(!u)continue;const f=u.default,h=dr(l,0)|(f==null?void 0:f.flags);let g=f==null?void 0:f.duration;h&8&&(h&2?g=dr(l,12):g=dr(l,8));const p=u.timescale||9e4,m=Nr(a,["trun"]);for(let v=0;v<m.length;v++){if(n=Pkn(m[v]),!n&&g){const C=dr(m[v],4);n=g*C}u.type===eo.VIDEO?r+=n/p:u.type===eo.AUDIO&&(i+=n/p)}}if(r===0&&i===0){let s=1/0,a=0,l=0;const c=Nr(e,["sidx"]);for(let u=0;u<c.length;u++){const f=$kn(c[u]);if(f!=null&&f.references){s=Math.min(s,f.earliestPresentationTime/f.timescale);const h=f.references.reduce((g,p)=>g+p.info.duration||0,0);a=Math.max(a,h+f.earliestPresentationTime/f.timescale),l=a-s}}if(l&&kn(l))return l}return r||i}function Pkn(e){const t=dr(e,0);let n=8;t&1&&(n+=4),t&4&&(n+=4);let r=0;const i=dr(e,4);for(let o=0;o<i;o++){if(t&256){const s=dr(e,n);r+=s,n+=4}t&512&&(n+=4),t&1024&&(n+=4),t&2048&&(n+=4)}return r}function _kn(e,t,n){Nr(t,["moof","traf"]).forEach(r=>{Nr(r,["tfhd"]).forEach(i=>{const o=dr(i,4),s=e[o];if(!s)return;const a=s.timescale||9e4;Nr(r,["tfdt"]).forEach(l=>{const c=l[0],u=n*a;if(u){let f=dr(l,4);if(c===0)f-=u,f=Math.max(f,0),Vte(l,4,f);else{f*=Math.pow(2,32),f+=dr(l,8),f-=u,f=Math.max(f,0);const h=Math.floor(f/(EB+1)),g=Math.floor(f%(EB+1));Vte(l,4,h),Vte(l,8,g)}}})})})}function Akn(e){const t={valid:null,remainder:null},n=Nr(e,["moof"]);if(n.length<2)return t.remainder=e,t;const r=n[n.length-1];return t.valid=cC(e,0,r.byteOffset-8),t.remainder=cC(e,r.byteOffset-8),t}function Jf(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function hEe(e,t){const n=[],r=t.samples,i=t.timescale,o=t.id;let s=!1;return Nr(r,["moof"]).map(l=>{const c=l.byteOffset-8;Nr(l,["traf"]).map(f=>{const h=Nr(f,["tfdt"]).map(g=>{const p=g[0];let m=dr(g,4);return p===1&&(m*=Math.pow(2,32),m+=dr(g,8)),m/i})[0];return h!==void 0&&(e=h),Nr(f,["tfhd"]).map(g=>{const p=dr(g,4),m=dr(g,0)&16777215,v=(m&1)!==0,C=(m&2)!==0,y=(m&8)!==0;let b=0;const S=(m&16)!==0;let w=0;const x=(m&32)!==0;let E=8;p===o&&(v&&(E+=8),C&&(E+=4),y&&(b=dr(g,E),E+=4),S&&(w=dr(g,E),E+=4),x&&(E+=4),t.type==="video"&&(s=Dkn(t.codec)),Nr(f,["trun"]).map(R=>{const O=R[0],T=dr(R,0)&16777215,M=(T&1)!==0;let _=0;const F=(T&4)!==0,D=(T&256)!==0;let k=0;const L=(T&512)!==0;let I=0;const A=(T&1024)!==0,N=(T&2048)!==0;let B=0;const z=dr(R,4);let j=8;M&&(_=dr(R,j),j+=4),F&&(j+=4);let W=_+c;for(let G=0;G<z;G++){if(D?(k=dr(R,j),j+=4):k=b,L?(I=dr(R,j),j+=4):I=w,A&&(j+=4),N&&(O===0?B=dr(R,j):B=_Ze(R,j),j+=4),t.type===eo.VIDEO){let K=0;for(;K<I;){const q=dr(r,W);if(W+=4,Lkn(s,r[W])){const X=r.subarray(W,W+q);LZe(X,s?2:1,e+B/i,n)}W+=q,K+=q+4}}e+=k/i}}))})})}),n}function Dkn(e){if(!e)return!1;const t=e.indexOf("."),n=t<0?e:e.substring(0,t);return n==="hvc1"||n==="hev1"||n==="dvh1"||n==="dvhe"}function Lkn(e,t){if(e){const n=t>>1&63;return n===39||n===40}else return(t&31)===6}function LZe(e,t,n,r){const i=FZe(e);let o=0;o+=t;let s=0,a=0,l=0;for(;o<i.length;){s=0;do{if(o>=i.length)break;l=i[o++],s+=l}while(l===255);a=0;do{if(o>=i.length)break;l=i[o++],a+=l}while(l===255);const c=i.length-o;let u=o;if(a<c)o+=a;else if(a>c){bt.error(`Malformed SEI payload. ${a} is too small, only ${c} bytes left to parse.`);break}if(s===4){if(i[u++]===181){const h=PZe(i,u);if(u+=2,h===49){const g=dr(i,u);if(u+=4,g===1195456820){const p=i[u++];if(p===3){const m=i[u++],v=31&m,C=64&m,y=C?2+v*3:0,b=new Uint8Array(y);if(C){b[0]=m;for(let S=1;S<y;S++)b[S]=i[u++]}r.push({type:p,payloadType:s,pts:n,bytes:b})}}}}}else if(s===5&&a>16){const f=[];for(let p=0;p<16;p++){const m=i[u++].toString(16);f.push(m.length==1?"0"+m:m),(p===3||p===5||p===7||p===9)&&f.push("-")}const h=a-16,g=new Uint8Array(h);for(let p=0;p<h;p++)g[p]=i[u++];r.push({payloadType:s,pts:n,uuid:f.join(""),userData:um(g),userDataBytes:g})}}}function FZe(e){const t=e.byteLength,n=[];let r=1;for(;r<t-2;)e[r]===0&&e[r+1]===0&&e[r+2]===3?(n.push(r+2),r+=2):r++;if(n.length===0)return e;const i=t-n.length,o=new Uint8Array(i);let s=0;for(r=0;r<i;s++,r++)s===n[0]&&(s++,n.shift()),o[r]=e[s];return o}function Fkn(e){const t=e[0];let n="",r="",i=0,o=0,s=0,a=0,l=0,c=0;if(t===0){for(;Qs(e.subarray(c,c+1))!=="\0";)n+=Qs(e.subarray(c,c+1)),c+=1;for(n+=Qs(e.subarray(c,c+1)),c+=1;Qs(e.subarray(c,c+1))!=="\0";)r+=Qs(e.subarray(c,c+1)),c+=1;r+=Qs(e.subarray(c,c+1)),c+=1,i=dr(e,12),o=dr(e,16),a=dr(e,20),l=dr(e,24),c=28}else if(t===1){c+=4,i=dr(e,c),c+=4;const f=dr(e,c);c+=4;const h=dr(e,c);for(c+=4,s=2**32*f+h,ekn(s)||(s=Number.MAX_SAFE_INTEGER,bt.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),a=dr(e,c),c+=4,l=dr(e,c),c+=4;Qs(e.subarray(c,c+1))!=="\0";)n+=Qs(e.subarray(c,c+1)),c+=1;for(n+=Qs(e.subarray(c,c+1)),c+=1;Qs(e.subarray(c,c+1))!=="\0";)r+=Qs(e.subarray(c,c+1)),c+=1;r+=Qs(e.subarray(c,c+1)),c+=1}const u=e.subarray(c,e.byteLength);return{schemeIdUri:n,value:r,timeScale:i,presentationTime:s,presentationTimeDelta:o,eventDuration:a,id:l,payload:u}}function Nkn(e,...t){const n=t.length;let r=8,i=n;for(;i--;)r+=t[i].byteLength;const o=new Uint8Array(r);for(o[0]=r>>24&255,o[1]=r>>16&255,o[2]=r>>8&255,o[3]=r&255,o.set(e,4),i=0,r=8;i<n;i++)o.set(t[i],r),r+=t[i].byteLength;return o}function kkn(e,t,n){if(e.byteLength!==16)throw new RangeError("Invalid system id");let r,i;r=0,i=new Uint8Array;let o;r>0?(o=new Uint8Array(4),t.length>0&&new DataView(o.buffer).setUint32(0,t.length,!1)):o=new Uint8Array;const s=new Uint8Array(4);return n&&n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),Nkn([112,115,115,104],new Uint8Array([r,0,0,0]),e,o,i,s,n||new Uint8Array)}function zkn(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let r=0;for(;r+32<n;){const i=new DataView(e,r),o=Bkn(i);t.push(o),r+=o.size}}return t}function Bkn(e){const t=e.getUint32(0),n=e.byteOffset,r=e.byteLength;if(r<t)return{offset:n,size:r};if(e.getUint32(4)!==1886614376)return{offset:n,size:t};const o=e.getUint32(8)>>>24;if(o!==0&&o!==1)return{offset:n,size:t};const s=e.buffer,a=Lp.hexDump(new Uint8Array(s,n+12,16)),l=e.getUint32(28);let c=null,u=null;if(o===0){if(t-32<l||l<22)return{offset:n,size:t};u=new Uint8Array(s,n+32,l)}else if(o===1){if(!l||r<n+32+l*16+16)return{offset:n,size:t};c=[];for(let f=0;f<l;f++)c.push(new Uint8Array(s,n+32+f*16,16))}return{version:o,systemId:a,kids:c,data:u,offset:n,size:t}}let VD={};class GT{static clearKeyUriToKeyIdMap(){VD={}}constructor(t,n,r,i=[1],o=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=n,this.keyFormat=r,this.keyFormatVersions=i,this.iv=o,this.encrypted=t?t!=="NONE":!1,this.isCommonEncryption=this.encrypted&&t!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case nu.FAIRPLAY:case nu.WIDEVINE:case nu.PLAYREADY:case nu.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(t){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof t!="number"&&(this.method==="AES-128"&&!this.iv&&bt.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0);const r=Hkn(t);return new GT(this.method,this.uri,"identity",this.keyFormatVersions,r)}const n=hkn(this.uri);if(n)switch(this.keyFormat){case nu.WIDEVINE:this.pssh=n,n.length>=22&&(this.keyId=n.subarray(n.length-22,n.length-6));break;case nu.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=kkn(r,null,n);const i=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2),o=String.fromCharCode.apply(null,Array.from(i)),s=o.substring(o.indexOf("<"),o.length),c=new DOMParser().parseFromString(s,"text/xml").getElementsByTagName("KID")[0];if(c){const u=c.childNodes[0]?c.childNodes[0].nodeValue:c.getAttribute("VALUE");if(u){const f=g1e(u).subarray(0,16);fkn(f),this.keyId=f}}break}default:{let r=n.subarray(0,16);if(r.length!==16){const i=new Uint8Array(16);i.set(r,16-r.length),r=i}this.keyId=r;break}}if(!this.keyId||this.keyId.byteLength!==16){let r=VD[this.uri];if(!r){const i=Object.keys(VD).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,i),VD[this.uri]=r}this.keyId=r}return this}}function Hkn(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const NZe=/\{\$([a-zA-Z0-9-_]+)\}/g;function gEe(e){return NZe.test(e)}function jc(e,t,n){if(e.variableList!==null||e.hasVariableRefs)for(let r=n.length;r--;){const i=n[r],o=t[i];o&&(t[i]=Qle(e,o))}}function Qle(e,t){if(e.variableList!==null||e.hasVariableRefs){const n=e.variableList;return t.replace(NZe,r=>{const i=r.substring(2,r.length-1),o=n==null?void 0:n[i];return o===void 0?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),r):o})}return t}function pEe(e,t,n){let r=e.variableList;r||(e.variableList=r={});let i,o;if("QUERYPARAM"in t){i=t.QUERYPARAM;try{const s=new self.URL(n).searchParams;if(s.has(i))o=s.get(i);else throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`)}catch(s){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else i=t.NAME,o=t.VALUE;i in r?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):r[i]=o||""}function jkn(e,t,n){const r=t.IMPORT;if(n&&r in n){let i=e.variableList;i||(e.variableList=i={}),i[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}function GC(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Vkn(e){return typeof self<"u"&&e===self.ManagedMediaSource}const RB={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Gkn(e,t){const n=RB[t];return!!n&&!!n[e.slice(0,4)]}function Wte(e,t,n=!0){return!e.split(",").some(r=>!kZe(r,t,n))}function kZe(e,t,n=!0){var r;const i=GC(n);return(r=i==null?void 0:i.isTypeSupported(WT(e,t)))!=null?r:!1}function WT(e,t){return`${t}/mp4;codecs="${e}"`}function mEe(e){if(e){const t=e.substring(0,4);return RB.video[t]}return 2}function $B(e){return e.split(",").reduce((t,n)=>{const r=RB.video[n];return r?(r*2+t)/(t?3:2):(RB.audio[n]+t)/(t?2:1)},0)}const Ute={};function Wkn(e,t=!0){if(Ute[e])return Ute[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[e];for(let r=0;r<n.length;r++)if(kZe(n[r],"audio",t))return Ute[e]=n[r],n[r];return e}const Ukn=/flac|opus/i;function OB(e,t=!0){return e.replace(Ukn,n=>Wkn(n.toLowerCase(),t))}function vEe(e,t){return e&&e!=="mp4a"?e:t&&t.split(",")[0]}function qkn(e){const t=e.split(",");for(let n=0;n<t.length;n++){const r=t[n].split(".");if(r.length>2){let i=r.shift()+".";i+=parseInt(r.shift()).toString(16),i+=("000"+parseInt(r.shift()).toString(16)).slice(-4),t[n]=i}}return t.join(",")}const CEe=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,yEe=/#EXT-X-MEDIA:(.*)/g,Kkn=/^#EXT(?:INF|-X-TARGETDURATION):/m,bEe=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Ykn=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class Zp{static findGroup(t,n){for(let r=0;r<t.length;r++){const i=t[r];if(i.id===n)return i}}static resolve(t,n){return h1e.buildAbsoluteURL(n,t,{alwaysNormalize:!0})}static isMediaPlaylist(t){return Kkn.test(t)}static parseMasterPlaylist(t,n){const r=gEe(t),i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},o=[];CEe.lastIndex=0;let s;for(;(s=CEe.exec(t))!=null;)if(s[1]){var a;const c=new Ko(s[1]);jc(i,c,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const u=Qle(i,s[2]),f={attrs:c,bitrate:c.decimalInteger("BANDWIDTH")||c.decimalInteger("AVERAGE-BANDWIDTH"),name:c.NAME,url:Zp.resolve(u,n)},h=c.decimalResolution("RESOLUTION");h&&(f.width=h.width,f.height=h.height),Xkn(c.CODECS,f),(a=f.unknownCodecs)!=null&&a.length||o.push(f),i.levels.push(f)}else if(s[3]){const c=s[3],u=s[4];switch(c){case"SESSION-DATA":{const f=new Ko(u);jc(i,f,["DATA-ID","LANGUAGE","VALUE","URI"]);const h=f["DATA-ID"];h&&(i.sessionData===null&&(i.sessionData={}),i.sessionData[h]=f);break}case"SESSION-KEY":{const f=SEe(u,n,i);f.encrypted&&f.isSupported()?(i.sessionKeys===null&&(i.sessionKeys=[]),i.sessionKeys.push(f)):bt.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${u}"`);break}case"DEFINE":{{const f=new Ko(u);jc(i,f,["NAME","VALUE","QUERYPARAM"]),pEe(i,f,n)}break}case"CONTENT-STEERING":{const f=new Ko(u);jc(i,f,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:Zp.resolve(f["SERVER-URI"],n),pathwayId:f["PATHWAY-ID"]||"."};break}case"START":{i.startTimeOffset=wEe(u);break}}}const l=o.length>0&&o.length<i.levels.length;return i.levels=l?o:i.levels,i.levels.length===0&&(i.playlistParsingError=new Error("no levels found in manifest")),i}static parseMasterPlaylistMedia(t,n,r){let i;const o={},s=r.levels,a={AUDIO:s.map(c=>({id:c.attrs.AUDIO,audioCodec:c.audioCodec})),SUBTITLES:s.map(c=>({id:c.attrs.SUBTITLES,textCodec:c.textCodec})),"CLOSED-CAPTIONS":[]};let l=0;for(yEe.lastIndex=0;(i=yEe.exec(t))!==null;){const c=new Ko(i[1]),u=c.TYPE;if(u){const f=a[u],h=o[u]||[];o[u]=h,jc(r,c,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const g=c.LANGUAGE,p=c["ASSOC-LANGUAGE"],m=c.CHANNELS,v=c.CHARACTERISTICS,C=c["INSTREAM-ID"],y={attrs:c,bitrate:0,id:l++,groupId:c["GROUP-ID"]||"",name:c.NAME||g||"",type:u,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:g,url:c.URI?Zp.resolve(c.URI,n):""};if(p&&(y.assocLang=p),m&&(y.channels=m),v&&(y.characteristics=v),C&&(y.instreamId=C),f!=null&&f.length){const b=Zp.findGroup(f,y.groupId)||f[0];xEe(y,b,"audioCodec"),xEe(y,b,"textCodec")}h.push(y)}}return o}static parseLevelPlaylist(t,n,r,i,o,s){const a=new ukn(n),l=a.fragments;let c=null,u=0,f=0,h=0,g=0,p=null,m=new Bte(i,n),v,C,y,b=-1,S=!1,w=null;for(bEe.lastIndex=0,a.m3u8=t,a.hasVariableRefs=gEe(t);(v=bEe.exec(t))!==null;){S&&(S=!1,m=new Bte(i,n),m.start=h,m.sn=u,m.cc=g,m.level=r,c&&(m.initSegment=c,m.rawProgramDateTime=c.rawProgramDateTime,c.rawProgramDateTime=null,w&&(m.setByteRange(w),w=null)));const O=v[1];if(O){m.duration=parseFloat(O);const T=(" "+v[2]).slice(1);m.title=T||null,m.tagList.push(T?["INF",O,T]:["INF",O])}else if(v[3]){if(kn(m.duration)){m.start=h,y&&$Ee(m,y,a),m.sn=u,m.level=r,m.cc=g,l.push(m);const T=(" "+v[3]).slice(1);m.relurl=Qle(a,T),EEe(m,p),p=m,h+=m.duration,u++,f=0,S=!0}}else if(v[4]){const T=(" "+v[4]).slice(1);p?m.setByteRange(T,p):m.setByteRange(T)}else if(v[5])m.rawProgramDateTime=(" "+v[5]).slice(1),m.tagList.push(["PROGRAM-DATE-TIME",m.rawProgramDateTime]),b===-1&&(b=l.length);else{if(v=v[0].match(Ykn),!v){bt.warn("No matches on slow regex match for level playlist!");continue}for(C=1;C<v.length&&!(typeof v[C]<"u");C++);const T=(" "+v[C]).slice(1),M=(" "+v[C+1]).slice(1),_=v[C+2]?(" "+v[C+2]).slice(1):"";switch(T){case"PLAYLIST-TYPE":a.type=M.toUpperCase();break;case"MEDIA-SEQUENCE":u=a.startSN=parseInt(M);break;case"SKIP":{const F=new Ko(M);jc(a,F,["RECENTLY-REMOVED-DATERANGES"]);const D=F.decimalInteger("SKIPPED-SEGMENTS");if(kn(D)){a.skippedSegments=D;for(let L=D;L--;)l.unshift(null);u+=D}const k=F.enumeratedString("RECENTLY-REMOVED-DATERANGES");k&&(a.recentlyRemovedDateranges=k.split(" "));break}case"TARGETDURATION":a.targetduration=Math.max(parseInt(M),1);break;case"VERSION":a.version=parseInt(M);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":a.live=!1;break;case"#":(M||_)&&m.tagList.push(_?[M,_]:[M]);break;case"DISCONTINUITY":g++,m.tagList.push(["DIS"]);break;case"GAP":m.gap=!0,m.tagList.push([T]);break;case"BITRATE":m.tagList.push([T,M]);break;case"DATERANGE":{const F=new Ko(M);jc(a,F,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),jc(a,F,F.clientAttrs);const D=new EZe(F,a.dateRanges[F.ID]);D.isValid||a.skippedSegments?a.dateRanges[D.id]=D:bt.warn(`Ignoring invalid DATERANGE tag: "${M}"`),m.tagList.push(["EXT-X-DATERANGE",M]);break}case"DEFINE":{{const F=new Ko(M);jc(a,F,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in F?jkn(a,F,s):pEe(a,F,n)}break}case"DISCONTINUITY-SEQUENCE":g=parseInt(M);break;case"KEY":{const F=SEe(M,n,a);if(F.isSupported()){if(F.method==="NONE"){y=void 0;break}y||(y={}),y[F.keyFormat]&&(y=Vs({},y)),y[F.keyFormat]=F}else bt.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${M}"`);break}case"START":a.startTimeOffset=wEe(M);break;case"MAP":{const F=new Ko(M);if(jc(a,F,["BYTERANGE","URI"]),m.duration){const D=new Bte(i,n);REe(D,F,r,y),c=D,m.initSegment=c,c.rawProgramDateTime&&!m.rawProgramDateTime&&(m.rawProgramDateTime=c.rawProgramDateTime)}else{const D=m.byteRangeEndOffset;if(D){const k=m.byteRangeStartOffset;w=`${D-k}@${k}`}else w=null;REe(m,F,r,y),c=m,S=!0}break}case"SERVER-CONTROL":{const F=new Ko(M);a.canBlockReload=F.bool("CAN-BLOCK-RELOAD"),a.canSkipUntil=F.optionalFloat("CAN-SKIP-UNTIL",0),a.canSkipDateRanges=a.canSkipUntil>0&&F.bool("CAN-SKIP-DATERANGES"),a.partHoldBack=F.optionalFloat("PART-HOLD-BACK",0),a.holdBack=F.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const F=new Ko(M);a.partTarget=F.decimalFloatingPoint("PART-TARGET");break}case"PART":{let F=a.partList;F||(F=a.partList=[]);const D=f>0?F[F.length-1]:void 0,k=f++,L=new Ko(M);jc(a,L,["BYTERANGE","URI"]);const I=new lkn(L,m,n,k,D);F.push(I),m.duration+=I.duration;break}case"PRELOAD-HINT":{const F=new Ko(M);jc(a,F,["URI"]),a.preloadHint=F;break}case"RENDITION-REPORT":{const F=new Ko(M);jc(a,F,["URI"]),a.renditionReports=a.renditionReports||[],a.renditionReports.push(F);break}default:bt.warn(`line parsed but not handled: ${v}`);break}}}p&&!p.relurl?(l.pop(),h-=p.duration,a.partList&&(a.fragmentHint=p)):a.partList&&(EEe(m,p),m.cc=g,a.fragmentHint=m,y&&$Ee(m,y,a));const x=l.length,E=l[0],R=l[x-1];if(h+=a.skippedSegments*a.targetduration,h>0&&x&&R){a.averagetargetduration=h/x;const O=R.sn;a.endSN=O!=="initSegment"?O:0,a.live||(R.endList=!0),E&&(a.startCC=E.cc)}else a.endSN=0,a.startCC=0;return a.fragmentHint&&(h+=a.fragmentHint.duration),a.totalduration=h,a.endCC=g,b>0&&Qkn(l,b),a}}function SEe(e,t,n){var r,i;const o=new Ko(e);jc(n,o,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(r=o.METHOD)!=null?r:"",a=o.URI,l=o.hexadecimalInteger("IV"),c=o.KEYFORMATVERSIONS,u=(i=o.KEYFORMAT)!=null?i:"identity";a&&o.IV&&!l&&bt.error(`Invalid IV: ${o.IV}`);const f=a?Zp.resolve(a,t):"",h=(c||"1").split("/").map(Number).filter(Number.isFinite);return new GT(s,f,u,h,l)}function wEe(e){const n=new Ko(e).decimalFloatingPoint("TIME-OFFSET");return kn(n)?n:null}function Xkn(e,t){let n=(e||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const i=n.filter(o=>Gkn(o,r));i.length&&(t[`${r}Codec`]=i.join(","),n=n.filter(o=>i.indexOf(o)===-1))}),t.unknownCodecs=n}function xEe(e,t,n){const r=t[n];r&&(e[n]=r)}function Qkn(e,t){let n=e[t];for(let r=t;r--;){const i=e[r];if(!i)return;i.programDateTime=n.programDateTime-i.duration*1e3,n=i}}function EEe(e,t){e.rawProgramDateTime?e.programDateTime=Date.parse(e.rawProgramDateTime):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime),kn(e.programDateTime)||(e.programDateTime=null,e.rawProgramDateTime=null)}function REe(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function $Ee(e,t,n){e.levelkeys=t;const{encryptedFragments:r}=n;(!r.length||r[r.length-1].levelkeys!==t)&&Object.keys(t).some(i=>t[i].isCommonEncryption)&&r.push(e)}var Ii={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},fr={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function OEe(e){const{type:t}=e;switch(t){case Ii.AUDIO_TRACK:return fr.AUDIO;case Ii.SUBTITLE_TRACK:return fr.SUBTITLE;default:return fr.MAIN}}function qte(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class Zkn{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Se.LEVEL_LOADING,this.onLevelLoading,this),t.on(Se.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Se.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:t}=this;t.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Se.LEVEL_LOADING,this.onLevelLoading,this),t.off(Se.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Se.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(t){const n=this.hls.config,r=n.pLoader,i=n.loader,o=r||i,s=new o(n);return this.loaders[t.type]=s,s}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const n=this.loaders[t];n&&n.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,n){const{url:r}=n;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Ii.MANIFEST,url:r,deliveryDirectives:null})}onLevelLoading(t,n){const{id:r,level:i,pathwayId:o,url:s,deliveryDirectives:a}=n;this.load({id:r,level:i,pathwayId:o,responseType:"text",type:Ii.LEVEL,url:s,deliveryDirectives:a})}onAudioTrackLoading(t,n){const{id:r,groupId:i,url:o,deliveryDirectives:s}=n;this.load({id:r,groupId:i,level:null,responseType:"text",type:Ii.AUDIO_TRACK,url:o,deliveryDirectives:s})}onSubtitleTrackLoading(t,n){const{id:r,groupId:i,url:o,deliveryDirectives:s}=n;this.load({id:r,groupId:i,level:null,responseType:"text",type:Ii.SUBTITLE_TRACK,url:o,deliveryDirectives:s})}load(t){var n;const r=this.hls.config;let i=this.getInternalLoader(t);if(i){const c=i.context;if(c&&c.url===t.url&&c.level===t.level){bt.trace("[playlist-loader]: playlist request ongoing");return}bt.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),i.abort()}let o;if(t.type===Ii.MANIFEST?o=r.manifestLoadPolicy.default:o=Vs({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(t),kn((n=t.deliveryDirectives)==null?void 0:n.part)){let c;if(t.type===Ii.LEVEL&&t.level!==null?c=this.hls.levels[t.level].details:t.type===Ii.AUDIO_TRACK&&t.id!==null?c=this.hls.audioTracks[t.id].details:t.type===Ii.SUBTITLE_TRACK&&t.id!==null&&(c=this.hls.subtitleTracks[t.id].details),c){const u=c.partTarget,f=c.targetduration;if(u&&f){const h=Math.max(u*3,f*.8)*1e3;o=Vs({},o,{maxTimeToFirstByteMs:Math.min(h,o.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(h,o.maxTimeToFirstByteMs)})}}}const s=o.errorRetry||o.timeoutRetry||{},a={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},l={onSuccess:(c,u,f,h)=>{const g=this.getInternalLoader(f);this.resetInternalLoader(f.type);const p=c.data;if(p.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(c,f,new Error("no EXTM3U delimiter"),h||null,u);return}u.parsing.start=performance.now(),Zp.isMediaPlaylist(p)?this.handleTrackOrLevelPlaylist(c,u,f,h||null,g):this.handleMasterPlaylist(c,u,f,h)},onError:(c,u,f,h)=>{this.handleNetworkError(u,f,!1,c,h)},onTimeout:(c,u,f)=>{this.handleNetworkError(u,f,!0,void 0,c)}};i.load(t,a,l)}handleMasterPlaylist(t,n,r,i){const o=this.hls,s=t.data,a=qte(t,r),l=Zp.parseMasterPlaylist(s,a);if(l.playlistParsingError){this.handleManifestParsingError(t,r,l.playlistParsingError,i,n);return}const{contentSteering:c,levels:u,sessionData:f,sessionKeys:h,startTimeOffset:g,variableList:p}=l;this.variableList=p;const{AUDIO:m=[],SUBTITLES:v,"CLOSED-CAPTIONS":C}=Zp.parseMasterPlaylistMedia(s,a,l);m.length&&!m.some(b=>!b.url)&&u[0].audioCodec&&!u[0].attrs.AUDIO&&(bt.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Ko({}),bitrate:0,url:""})),o.trigger(Se.MANIFEST_LOADED,{levels:u,audioTracks:m,subtitles:v,captions:C,contentSteering:c,url:a,stats:n,networkDetails:i,sessionData:f,sessionKeys:h,startTimeOffset:g,variableList:p})}handleTrackOrLevelPlaylist(t,n,r,i,o){const s=this.hls,{id:a,level:l,type:c}=r,u=qte(t,r),f=0,h=kn(l)?l:kn(a)?a:0,g=OEe(r),p=Zp.parseLevelPlaylist(t.data,u,h,g,f,this.variableList);if(c===Ii.MANIFEST){const m={attrs:new Ko({}),bitrate:0,details:p,name:"",url:u};s.trigger(Se.MANIFEST_LOADED,{levels:[m],audioTracks:[],url:u,stats:n,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}n.parsing.end=performance.now(),r.levelDetails=p,this.handlePlaylistLoaded(p,t,n,r,i,o)}handleManifestParsingError(t,n,r,i,o){this.hls.trigger(Se.ERROR,{type:wr.NETWORK_ERROR,details:_t.MANIFEST_PARSING_ERROR,fatal:n.type===Ii.MANIFEST,url:t.url,err:r,error:r,reason:r.message,response:t,context:n,networkDetails:i,stats:o})}handleNetworkError(t,n,r=!1,i,o){let s=`A network ${r?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${t.type}`;t.type===Ii.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===Ii.AUDIO_TRACK||t.type===Ii.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const a=new Error(s);bt.warn(`[playlist-loader]: ${s}`);let l=_t.UNKNOWN,c=!1;const u=this.getInternalLoader(t);switch(t.type){case Ii.MANIFEST:l=r?_t.MANIFEST_LOAD_TIMEOUT:_t.MANIFEST_LOAD_ERROR,c=!0;break;case Ii.LEVEL:l=r?_t.LEVEL_LOAD_TIMEOUT:_t.LEVEL_LOAD_ERROR,c=!1;break;case Ii.AUDIO_TRACK:l=r?_t.AUDIO_TRACK_LOAD_TIMEOUT:_t.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case Ii.SUBTITLE_TRACK:l=r?_t.SUBTITLE_TRACK_LOAD_TIMEOUT:_t.SUBTITLE_LOAD_ERROR,c=!1;break}u&&this.resetInternalLoader(t.type);const f={type:wr.NETWORK_ERROR,details:l,fatal:c,url:t.url,loader:u,context:t,error:a,networkDetails:n,stats:o};if(i){const h=(n==null?void 0:n.url)||t.url;f.response=ka({url:h,data:void 0},i)}this.hls.trigger(Se.ERROR,f)}handlePlaylistLoaded(t,n,r,i,o,s){const a=this.hls,{type:l,level:c,id:u,groupId:f,deliveryDirectives:h}=i,g=qte(n,i),p=OEe(i),m=typeof i.level=="number"&&p===fr.MAIN?c:void 0;if(!t.fragments.length){const C=new Error("No Segments found in Playlist");a.trigger(Se.ERROR,{type:wr.NETWORK_ERROR,details:_t.LEVEL_EMPTY_ERROR,fatal:!1,url:g,error:C,reason:C.message,response:n,context:i,level:m,parent:p,networkDetails:o,stats:r});return}t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));const v=t.playlistParsingError;if(v){a.trigger(Se.ERROR,{type:wr.NETWORK_ERROR,details:_t.LEVEL_PARSING_ERROR,fatal:!1,url:g,error:v,reason:v.message,response:n,context:i,level:m,parent:p,networkDetails:o,stats:r});return}switch(t.live&&s&&(s.getCacheAge&&(t.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(t.ageHeader))&&(t.ageHeader=0)),l){case Ii.MANIFEST:case Ii.LEVEL:a.trigger(Se.LEVEL_LOADED,{details:t,level:m||0,id:u||0,stats:r,networkDetails:o,deliveryDirectives:h});break;case Ii.AUDIO_TRACK:a.trigger(Se.AUDIO_TRACK_LOADED,{details:t,id:u||0,groupId:f||"",stats:r,networkDetails:o,deliveryDirectives:h});break;case Ii.SUBTITLE_TRACK:a.trigger(Se.SUBTITLE_TRACK_LOADED,{details:t,id:u||0,groupId:f||"",stats:r,networkDetails:o,deliveryDirectives:h});break}}}function zZe(e,t){let n;try{n=new Event("addtrack")}catch{n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function BZe(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(r){bt.debug(`[texttrack-utils]: ${r}`);try{const i=new self.TextTrackCue(t.startTime,t.endTime,t.text);i.id=t.id,e.addCue(i)}catch(i){bt.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`)}}n==="disabled"&&(e.mode=n)}function _S(e){const t=e.mode;if(t==="disabled"&&(e.mode="hidden"),e.cues)for(let n=e.cues.length;n--;)e.removeCue(e.cues[n]);t==="disabled"&&(e.mode=t)}function Zle(e,t,n,r){const i=e.mode;if(i==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const o=ezn(e.cues,t,n);for(let s=0;s<o.length;s++)(!r||r(o[s]))&&e.removeCue(o[s])}i==="disabled"&&(e.mode=i)}function Jkn(e,t){if(t<e[0].startTime)return 0;const n=e.length-1;if(t>e[n].endTime)return-1;let r=0,i=n;for(;r<=i;){const o=Math.floor((i+r)/2);if(t<e[o].startTime)i=o-1;else if(t>e[o].startTime&&r<n)r=o+1;else return o}return e[r].startTime-t<t-e[i].startTime?r:i}function ezn(e,t,n){const r=[],i=Jkn(e,t);if(i>-1)for(let o=i,s=e.length;o<s;o++){const a=e[o];if(a.startTime>=t&&a.endTime<=n)r.push(a);else if(a.startTime>n)return r}return r}function EN(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&t.push(e[n])}return t}var eg={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const tzn=.25;function Jle(){if(!(typeof self>"u"))return self.VTTCue||self.TextTrackCue}function TEe(e,t,n,r,i){let o=new e(t,n,"");try{o.value=r,i&&(o.type=i)}catch{o=new e(t,n,JSON.stringify(i?ka({type:i},r):r))}return o}const GD=(()=>{const e=Jle();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Kte(e,t){return e.getTime()/1e3-t}function nzn(e){return Uint8Array.from(e.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class rzn{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=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.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Se.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Se.LEVEL_UPDATED,this.onLevelUpdated,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.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Se.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Se.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(t,n){this.media=n.media}onMediaDetaching(){this.id3Track&&(_S(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const n=this.getID3Track(t.textTracks);return n.mode="hidden",n}getID3Track(t){if(this.media){for(let n=0;n<t.length;n++){const r=t[n];if(r.kind==="metadata"&&r.label==="id3")return zZe(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(t,n){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:r,enableID3MetadataCues:i}}}=this;if(!r&&!i)return;const{samples:o}=n;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=Jle();if(s)for(let a=0;a<o.length;a++){const l=o[a].type;if(l===eg.emsg&&!r||!i)continue;const c=IZe(o[a].data);{const u=o[a].pts;let f=u+o[a].duration;f>GD&&(f=GD),f-u<=0&&(f=u+tzn);for(let g=0;g<c.length;g++){const p=c[g];if(!TZe(p)){this.updateId3CueEnds(u,l);const m=TEe(s,u,f,p,l);m&&this.id3Track.addCue(m)}}}}}updateId3CueEnds(t,n){var r;const i=(r=this.id3Track)==null?void 0:r.cues;if(i)for(let o=i.length;o--;){const s=i[o];s.type===n&&s.startTime<t&&s.endTime===GD&&(s.endTime=t)}}onBufferFlushing(t,{startOffset:n,endOffset:r,type:i}){const{id3Track:o,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:a,enableID3MetadataCues:l}}=s;if(o&&(a||l)){let c;i==="audio"?c=u=>u.type===eg.audioId3&&l:i==="video"?c=u=>u.type===eg.emsg&&a:c=u=>u.type===eg.audioId3&&l||u.type===eg.emsg&&a,Zle(o,n,r,c)}}onLevelUpdated(t,{details:n}){if(!this.media||!n.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:r,id3Track:i}=this,{dateRanges:o}=n,s=Object.keys(o);if(i){const u=Object.keys(r).filter(f=>!s.includes(f));for(let f=u.length;f--;){const h=u[f];Object.keys(r[h].cues).forEach(g=>{i.removeCue(r[h].cues[g])}),delete r[h]}}const a=n.fragments[n.fragments.length-1];if(s.length===0||!kn(a==null?void 0:a.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=a.programDateTime/1e3-a.start,c=Jle();for(let u=0;u<s.length;u++){const f=s[u],h=o[f],g=Kte(h.startDate,l),p=r[f],m=(p==null?void 0:p.cues)||{};let v=(p==null?void 0:p.durationKnown)||!1,C=GD;const y=h.endDate;if(y)C=Kte(y,l),v=!0;else if(h.endOnNext&&!v){const S=s.reduce((w,x)=>{if(x!==h.id){const E=o[x];if(E.class===h.class&&E.startDate>h.startDate&&(!w||h.startDate<w.startDate))return E}return w},null);S&&(C=Kte(S.startDate,l),v=!0)}const b=Object.keys(h.attr);for(let S=0;S<b.length;S++){const w=b[S];if(!skn(w))continue;const x=m[w];if(x)v&&!p.durationKnown&&(x.endTime=C);else if(c){let E=h.attr[w];akn(w)&&(E=nzn(E));const R=TEe(c,g,C,{key:w,data:E},eg.dateRange);R&&(R.id=f,this.id3Track.addCue(R),m[w]=R)}}r[f]={cues:m,dateRange:h,durationKnown:v}}}}class izn{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=t,this.config=t.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:t,levelDetails:n}=this;return t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const{levelDetails:t}=this;if(t===null)return null;const{holdBack:n,partHoldBack:r,targetduration:i}=t,{liveSyncDuration:o,liveSyncDurationCount:s,lowLatencyMode:a}=this.config,l=this.hls.userConfig;let c=a&&r||n;(l.liveSyncDuration||l.liveSyncDurationCount||c===0)&&(c=o!==void 0?o:s*i);const u=i;return c+Math.min(this.stallCount*1,u)}get liveSyncPosition(){const t=this.estimateLiveEdge(),n=this.targetLatency,r=this.levelDetails;if(t===null||n===null||r===null)return null;const i=r.edge,o=t-n-this.edgeStalled,s=i-r.totalduration,a=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(s,o),a)}get drift(){const{levelDetails:t}=this;return t===null?1:t.drift}get edgeStalled(){const{levelDetails:t}=this;if(t===null)return 0;const n=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-n,0)}get forwardBufferLength(){const{media:t,levelDetails:n}=this;if(!t||!n)return 0;const r=t.buffered.length;return(r?t.buffered.end(r-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(Se.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Se.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Se.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(Se.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(Se.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Se.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Se.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(Se.ERROR,this.onError,this)}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:n}){this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(t,n){var r;n.details===_t.BUFFER_STALLED_ERROR&&(this.stallCount++,(r=this.levelDetails)!=null&&r.live&&bt.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:t,levelDetails:n}=this;if(!t||!n)return;this.currentTime=t.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:o}=this.config;if(!i||o===1||!n.live)return;const s=this.targetLatency;if(s===null)return;const a=r-s,l=Math.min(this.maxLatency,s+n.targetduration);if(a<l&&a>.05&&this.forwardBufferLength>1){const u=Math.min(2,Math.max(1,o)),f=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20;t.playbackRate=Math.min(u,Math.max(1,f))}else t.playbackRate!==1&&t.playbackRate!==0&&(t.playbackRate=1)}estimateLiveEdge(){const{levelDetails:t}=this;return t===null?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return t===null?null:t-this.currentTime}}const ece=["NONE","TYPE-0","TYPE-1",null];function ozn(e){return ece.indexOf(e)>-1}const TB=["SDR","PQ","HLG"];function szn(e){return!!e&&TB.indexOf(e)>-1}var RN={No:"",Yes:"YES",v2:"v2"};function IEe(e){const{canSkipUntil:t,canSkipDateRanges:n,age:r}=e,i=r<t/2;return t&&i?n?RN.v2:RN.Yes:RN.No}class MEe{constructor(t,n,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=n,this.skip=r}addDirectives(t){const n=new self.URL(t);return this.msn!==void 0&&n.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&n.searchParams.set("_HLS_part",this.part.toString()),this.skip&&n.searchParams.set("_HLS_skip",this.skip),n.href}}class v7{constructor(t){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[t.url],this._attrs=[t.attrs],this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.frameRate=t.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=t.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.codecSet=[t.videoCodec,t.audioCodec].filter(n=>!!n).map(n=>n.substring(0,4)).join(","),this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return PEe(this._audioGroups,t)}hasSubtitleGroup(t){return PEe(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,n){if(n){if(t==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(n)===-1&&r.push(n)}else if(t==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(n)===-1&&r.push(n)}}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return(t=this.audioGroups)==null?void 0:t[0]}get textGroupId(){var t;return(t=this.subtitleGroups)==null?void 0:t[0]}addFallback(){}}function PEe(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function Yte(e,t){const n=t.startPTS;if(kn(n)){let r=0,i;t.sn>e.sn?(r=n-e.start,i=e):(r=e.start-n,i=t),i.duration!==r&&(i.duration=r)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.start=e.start+(e.minEndPTS-e.start):t.start=e.start+e.duration:t.start=Math.max(e.start-t.duration,0)}function HZe(e,t,n,r,i,o){r-n<=0&&(bt.warn("Fragment should have a positive duration",t),r=n+t.duration,o=i+t.duration);let a=n,l=r;const c=t.startPTS,u=t.endPTS;if(kn(c)){const v=Math.abs(c-n);kn(t.deltaPTS)?t.deltaPTS=Math.max(v,t.deltaPTS):t.deltaPTS=v,a=Math.max(n,c),n=Math.min(n,c),i=Math.min(i,t.startDTS),l=Math.min(r,u),r=Math.max(r,u),o=Math.max(o,t.endDTS)}const f=n-t.start;t.start!==0&&(t.start=n),t.duration=r-t.start,t.startPTS=n,t.maxStartPTS=a,t.startDTS=i,t.endPTS=r,t.minEndPTS=l,t.endDTS=o;const h=t.sn;if(!e||h<e.startSN||h>e.endSN)return 0;let g;const p=h-e.startSN,m=e.fragments;for(m[p]=t,g=p;g>0;g--)Yte(m[g],m[g-1]);for(g=p;g<m.length-1;g++)Yte(m[g],m[g+1]);return e.fragmentHint&&Yte(m[m.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,f}function azn(e,t){let n=null;const r=e.fragments;for(let l=r.length-1;l>=0;l--){const c=r[l].initSegment;if(c){n=c;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let i=0,o;if(uzn(e,t,(l,c)=>{l.relurl&&(i=l.cc-c.cc),kn(l.startPTS)&&kn(l.endPTS)&&(c.start=c.startPTS=l.startPTS,c.startDTS=l.startDTS,c.maxStartPTS=l.maxStartPTS,c.endPTS=l.endPTS,c.endDTS=l.endDTS,c.minEndPTS=l.minEndPTS,c.duration=l.endPTS-l.startPTS,c.duration&&(o=c),t.PTSKnown=t.alignedSliding=!0),c.elementaryStreams=l.elementaryStreams,c.loader=l.loader,c.stats=l.stats,l.initSegment&&(c.initSegment=l.initSegment,n=l.initSegment)}),n&&(t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments).forEach(c=>{var u;c&&(!c.initSegment||c.initSegment.relurl===((u=n)==null?void 0:u.relurl))&&(c.initSegment=n)}),t.skippedSegments)if(t.deltaUpdateFailed=t.fragments.some(l=>!l),t.deltaUpdateFailed){bt.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let l=t.skippedSegments;l--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}else t.canSkipDateRanges&&(t.dateRanges=lzn(e.dateRanges,t.dateRanges,t.recentlyRemovedDateranges));const s=t.fragments;if(i){bt.warn("discontinuity sliding from playlist, take drift into account");for(let l=0;l<s.length;l++)s[l].cc+=i}t.skippedSegments&&(t.startCC=t.fragments[0].cc),czn(e.partList,t.partList,(l,c)=>{c.elementaryStreams=l.elementaryStreams,c.stats=l.stats}),o?HZe(t,o,o.startPTS,o.endPTS,o.startDTS,o.endDTS):jZe(e,t),s.length&&(t.totalduration=t.edge-s[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const a=t.advancedDateTime;if(t.advanced&&a){const l=t.edge;t.driftStart||(t.driftStartTime=a,t.driftStart=l),t.driftEndTime=a,t.driftEnd=l}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime}function lzn(e,t,n){const r=Vs({},e);return n&&n.forEach(i=>{delete r[i]}),Object.keys(t).forEach(i=>{const o=new EZe(t[i].attr,r[i]);o.isValid?r[i]=o:bt.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(t[i].attr)}"`)}),r}function czn(e,t,n){if(e&&t){let r=0;for(let i=0,o=e.length;i<=o;i++){const s=e[i],a=t[i+r];s&&a&&s.index===a.index&&s.fragment.sn===a.fragment.sn?n(s,a):r--}}}function uzn(e,t,n){const r=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,o=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,a=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let c=i;c<=o;c++){const u=l[s+c];let f=a[c];r&&!f&&c<r&&(f=t.fragments[c]=u),u&&f&&n(u,f)}}function jZe(e,t){const n=t.startSN+t.skippedSegments-e.startSN,r=e.fragments;n<0||n>=r.length||tce(t,r[n].start)}function tce(e,t){if(t){const n=e.fragments;for(let r=e.skippedSegments;r<n.length;r++)n[r].start+=t;e.fragmentHint&&(e.fragmentHint.start+=t)}}function dzn(e,t=1/0){let n=1e3*e.targetduration;if(e.updated){const r=e.fragments;if(r.length&&n*4>t){const o=r[r.length-1].duration*1e3;o<n&&(n=o)}}else n/=2;return Math.round(n)}function fzn(e,t,n){if(!(e!=null&&e.details))return null;const r=e.details;let i=r.fragments[t-r.startSN];return i||(i=r.fragmentHint,i&&i.sn===t)?i:t<r.startSN&&n&&n.sn===t?n:null}function _Ee(e,t,n){var r;return e!=null&&e.details?VZe((r=e.details)==null?void 0:r.partList,t,n):null}function VZe(e,t,n){if(e)for(let r=e.length;r--;){const i=e[r];if(i.index===n&&i.fragment.sn===t)return i}return null}function GZe(e){e.forEach((t,n)=>{const{details:r}=t;r!=null&&r.fragments&&r.fragments.forEach(i=>{i.level=n})})}function IB(e){switch(e.details){case _t.FRAG_LOAD_TIMEOUT:case _t.KEY_LOAD_TIMEOUT:case _t.LEVEL_LOAD_TIMEOUT:case _t.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function AEe(e,t){const n=IB(t);return e.default[`${n?"timeout":"error"}Retry`]}function v1e(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function DEe(e){return ka(ka({},e),{errorRetry:null,timeoutRetry:null})}function MB(e,t,n,r){if(!e)return!1;const i=r==null?void 0:r.code,o=t<e.maxNumRetry&&(hzn(i)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,r,o):o}function hzn(e){return e===0&&navigator.onLine===!1||!!e&&(e<400||e>499)}const WZe={search:function(e,t){let n=0,r=e.length-1,i=null,o=null;for(;n<=r;){i=(n+r)/2|0,o=e[i];const s=t(o);if(s>0)n=i+1;else if(s<0)r=i-1;else return o}return null}};function gzn(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!kn(t))return null;const r=e[0].programDateTime;if(t<(r||0))return null;const i=e[e.length-1].endProgramDateTime;if(t>=(i||0))return null;n=n||0;for(let o=0;o<e.length;++o){const s=e[o];if(mzn(t,n,s))return s}return null}function PB(e,t,n=0,r=0,i=.005){let o=null;if(e){o=t[e.sn-t[0].sn+1]||null;const a=e.endDTS-n;a>0&&a<15e-7&&(n+=15e-7)}else n===0&&t[0].start===0&&(o=t[0]);if(o&&((!e||e.level===o.level)&&nce(n,r,o)===0||pzn(o,e,Math.min(i,r))))return o;const s=WZe.search(t,nce.bind(null,n,r));return s&&(s!==e||!o)?s:o}function pzn(e,t,n){if(t&&t.start===0&&t.level<e.level&&(t.endPTS||0)>0){const r=t.tagList.reduce((i,o)=>(o[0]==="INF"&&(i+=parseFloat(o[1])),i),n);return e.start<=r}return!1}function nce(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function mzn(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function vzn(e,t){return WZe.search(e,n=>n.cc<t?1:n.cc>t?-1:0)}var Ya={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},_h={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Czn{constructor(t){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=bt.log.bind(bt,"[info]:"),this.warn=bt.warn.bind(bt,"[warning]:"),this.error=bt.error.bind(bt,"[error]:"),this.registerListeners()}registerListeners(){const t=this.hls;t.on(Se.ERROR,this.onError,this),t.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Se.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Se.ERROR,this.onError,this),t.off(Se.ERROR,this.onErrorOut,this),t.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Se.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return(t==null?void 0:t.type)===fr.MAIN?t.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(t,n){var r,i;if(n.fatal)return;const o=this.hls,s=n.context;switch(n.details){case _t.FRAG_LOAD_ERROR:case _t.FRAG_LOAD_TIMEOUT:case _t.KEY_LOAD_ERROR:case _t.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case _t.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction={action:Ya.DoNothing,flags:_h.None};return}case _t.FRAG_GAP:case _t.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Ya.SendAlternateToPenaltyBox;return}case _t.LEVEL_EMPTY_ERROR:case _t.LEVEL_PARSING_ERROR:{var a,l;const c=n.parent===fr.MAIN?n.level:o.loadLevel;n.details===_t.LEVEL_EMPTY_ERROR&&((a=n.context)!=null&&(l=a.levelDetails)!=null&&l.live)?n.errorAction=this.getPlaylistRetryOrSwitchAction(n,c):(n.levelRetry=!1,n.errorAction=this.getLevelSwitchAction(n,c))}return;case _t.LEVEL_LOAD_ERROR:case _t.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,s.level));return;case _t.AUDIO_TRACK_LOAD_ERROR:case _t.AUDIO_TRACK_LOAD_TIMEOUT:case _t.SUBTITLE_LOAD_ERROR:case _t.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const c=o.levels[o.loadLevel];if(c&&(s.type===Ii.AUDIO_TRACK&&c.hasAudioGroup(s.groupId)||s.type===Ii.SUBTITLE_TRACK&&c.hasSubtitleGroup(s.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,o.loadLevel),n.errorAction.action=Ya.SendAlternateToPenaltyBox,n.errorAction.flags=_h.MoveAllAlternatesMatchingHost;return}}return;case _t.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=o.levels[o.loadLevel],u=c==null?void 0:c.attrs["HDCP-LEVEL"];u?n.errorAction={action:Ya.SendAlternateToPenaltyBox,flags:_h.MoveAllAlternatesMatchingHDCP,hdcpLevel:u}:this.keySystemError(n)}return;case _t.BUFFER_ADD_CODEC_ERROR:case _t.REMUX_ALLOC_ERROR:case _t.BUFFER_APPEND_ERROR:n.errorAction=this.getLevelSwitchAction(n,(i=n.level)!=null?i:o.loadLevel);return;case _t.INTERNAL_EXCEPTION:case _t.BUFFER_APPENDING_ERROR:case _t.BUFFER_FULL_ERROR:case _t.LEVEL_SWITCH_ERROR:case _t.BUFFER_STALLED_ERROR:case _t.BUFFER_SEEK_OVER_HOLE:case _t.BUFFER_NUDGE_ON_STALL:n.errorAction={action:Ya.DoNothing,flags:_h.None};return}n.type===wr.KEY_SYSTEM_ERROR&&this.keySystemError(n)}keySystemError(t){const n=this.getVariantLevelIndex(t.frag);t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,n)}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,i=AEe(r.config.playlistLoadPolicy,t),o=this.playlistError++;if(MB(i,o,IB(t),t.response))return{action:Ya.RetryRequest,flags:_h.None,retryConfig:i,retryCount:o};const a=this.getLevelSwitchAction(t,n);return i&&(a.retryConfig=i,a.retryCount=o),a}getFragRetryOrSwitchAction(t){const n=this.hls,r=this.getVariantLevelIndex(t.frag),i=n.levels[r],{fragLoadPolicy:o,keyLoadPolicy:s}=n.config,a=AEe(t.details.startsWith("key")?s:o,t),l=n.levels.reduce((u,f)=>u+f.fragmentError,0);if(i&&(t.details!==_t.FRAG_GAP&&i.fragmentError++,MB(a,l,IB(t),t.response)))return{action:Ya.RetryRequest,flags:_h.None,retryConfig:a,retryCount:l};const c=this.getLevelSwitchAction(t,r);return a&&(c.retryConfig=a,c.retryCount=l),c}getLevelSwitchAction(t,n){const r=this.hls;n==null&&(n=r.loadLevel);const i=this.hls.levels[n];if(i){var o,s;const c=t.details;i.loadError++,c===_t.BUFFER_APPEND_ERROR&&i.fragmentError++;let u=-1;const{levels:f,loadLevel:h,minAutoLevel:g,maxAutoLevel:p}=r;r.autoLevelEnabled||(r.loadLevel=-1);const m=(o=t.frag)==null?void 0:o.type,C=(m===fr.AUDIO&&c===_t.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(c===_t.BUFFER_ADD_CODEC_ERROR||c===_t.BUFFER_APPEND_ERROR))&&f.some(({audioCodec:x})=>i.audioCodec!==x),b=t.sourceBufferName==="video"&&(c===_t.BUFFER_ADD_CODEC_ERROR||c===_t.BUFFER_APPEND_ERROR)&&f.some(({codecSet:x,audioCodec:E})=>i.codecSet!==x&&i.audioCodec===E),{type:S,groupId:w}=(s=t.context)!=null?s:{};for(let x=f.length;x--;){const E=(x+h)%f.length;if(E!==h&&E>=g&&E<=p&&f[E].loadError===0){var a,l;const R=f[E];if(c===_t.FRAG_GAP&&m===fr.MAIN&&t.frag){const O=f[E].details;if(O){const T=PB(t.frag,O.fragments,t.frag.start);if(T!=null&&T.gap)continue}}else{if(S===Ii.AUDIO_TRACK&&R.hasAudioGroup(w)||S===Ii.SUBTITLE_TRACK&&R.hasSubtitleGroup(w))continue;if(m===fr.AUDIO&&(a=i.audioGroups)!=null&&a.some(O=>R.hasAudioGroup(O))||m===fr.SUBTITLE&&(l=i.subtitleGroups)!=null&&l.some(O=>R.hasSubtitleGroup(O))||C&&i.audioCodec===R.audioCodec||!C&&i.audioCodec!==R.audioCodec||b&&i.codecSet===R.codecSet)continue}u=E;break}}if(u>-1&&r.loadLevel!==u)return t.levelRetry=!0,this.playlistError=0,{action:Ya.SendAlternateToPenaltyBox,flags:_h.None,nextAutoLevel:u}}return{action:Ya.SendAlternateToPenaltyBox,flags:_h.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case Ya.DoNothing:break;case Ya.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==_t.FRAG_GAP?n.fatal=!0:/MediaSource readyState: ended/.test(n.error.message)&&(this.warn(`MediaSource ended after "${n.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(n.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(t){const n=this.hls,r=t.errorAction;if(!r)return;const{flags:i,hdcpLevel:o,nextAutoLevel:s}=r;switch(i){case _h.None:this.switchLevel(t,s);break;case _h.MoveAllAlternatesMatchingHDCP:o&&(n.maxHdcpLevel=ece[ece.indexOf(o)-1],r.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}r.resolved||this.switchLevel(t,s)}switchLevel(t,n){n!==void 0&&t.errorAction&&(this.warn(`switching to level ${n} after ${t.details}`),this.hls.nextAutoLevel=n,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}}class C1e{constructor(t,n){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=bt.log.bind(bt,`${n}:`),this.warn=bt.warn.bind(bt,`${n}:`),this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,n,r){const i=n==null?void 0:n.renditionReports;if(i){let o=-1;for(let s=0;s<i.length;s++){const a=i[s];let l;try{l=new self.URL(a.URI,n.url).href}catch(c){bt.warn(`Could not construct new URL for Rendition Report: ${c}`),l=a.URI||""}if(l===t){o=s;break}else l===t.substring(0,l.length)&&(o=s)}if(o!==-1){const s=i[o],a=parseInt(s["LAST-MSN"])||(n==null?void 0:n.lastPartSn);let l=parseInt(s["LAST-PART"])||(n==null?void 0:n.lastPartIndex);if(this.hls.config.lowLatencyMode){const u=Math.min(n.age-n.partTarget,n.targetduration);l>=0&&u>n.partTarget&&(l+=1)}const c=r&&IEe(r);return new MEe(a,l>=0?l:void 0,c)}}}loadPlaylist(t){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}shouldReloadPlaylist(t){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(t)}playlistLoaded(t,n,r){const{details:i,stats:o}=n,s=self.performance.now(),a=o.loading.first?Math.max(0,s-o.loading.first):0;if(i.advancedDateTime=Date.now()-a,i.live||r!=null&&r.live){if(i.reloaded(r),r&&this.log(`live playlist ${t} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),r&&i.fragments.length>0&&azn(r,i),!this.canLoad||!i.live)return;let l,c,u;if(i.canBlockReload&&i.endSN&&i.advanced){const v=this.hls.config.lowLatencyMode,C=i.lastPartSn,y=i.endSN,b=i.lastPartIndex,S=b!==-1,w=C===y,x=v?0:b;S?(c=w?y+1:C,u=w?x:b+1):c=y+1;const E=i.age,R=E+i.ageHeader;let O=Math.min(R-i.partTarget,i.targetduration*1.5);if(O>0){if(r&&O>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${O} with playlist age: ${i.age}`),O=0;else{const T=Math.floor(O/i.targetduration);if(c+=T,u!==void 0){const M=Math.round(O%i.targetduration/i.partTarget);u+=M}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${E.toFixed(2)}s goal: ${O} skip sn ${T} to part ${u}`)}i.tuneInGoal=O}if(l=this.getDeliveryDirectives(i,n.deliveryDirectives,c,u),v||!w){this.loadPlaylist(l);return}}else(i.canBlockReload||i.canSkipUntil)&&(l=this.getDeliveryDirectives(i,n.deliveryDirectives,c,u));const f=this.hls.mainForwardBufferInfo,h=f?f.end-f.len:0,g=(i.edge-h)*1e3,p=dzn(i,g);i.updated&&s>this.requestScheduled+p&&(this.requestScheduled=o.loading.start),c!==void 0&&i.canBlockReload?this.requestScheduled=o.loading.first+p-(i.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+p<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=p);let m=this.requestScheduled-s;m=Math.max(0,m),this.log(`reload live playlist ${t} in ${Math.round(m)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(l),m)}else this.clearTimer()}getDeliveryDirectives(t,n,r,i){let o=IEe(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,i=n.part,o=RN.No),new MEe(r,i,o)}checkRetry(t){const n=t.details,r=IB(t),i=t.errorAction,{action:o,retryCount:s=0,retryConfig:a}=i||{},l=!!i&&!!a&&(o===Ya.RetryRequest||!i.resolved&&o===Ya.SendAlternateToPenaltyBox);if(l){var c;if(this.requestScheduled=-1,s>=a.maxNumRetry)return!1;if(r&&(c=t.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${a.maxNumRetry} after "${n}" without delivery-directives`),this.loadPlaylist();else{const u=v1e(a,s);this.timer=self.setTimeout(()=>this.loadPlaylist(),u),this.warn(`Retrying playlist loading ${s+1}/${a.maxNumRetry} after "${n}" in ${u}ms`)}t.levelRetry=!0,i.resolved=!0}return l}}class h5{constructor(t,n=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=n,this.totalWeight_=r}sample(t,n){const r=Math.pow(this.alpha_,t);this.estimate_=n*(1-r)+r*this.estimate_,this.totalWeight_+=t}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_}}class yzn{constructor(t,n,r,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new h5(t),this.fast_=new h5(n),this.defaultTTFB_=i,this.ttfb_=new h5(t)}update(t,n){const{slow_:r,fast_:i,ttfb_:o}=this;r.halfLife!==t&&(this.slow_=new h5(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==n&&(this.fast_=new h5(n,i.getEstimate(),i.getTotalWeight())),o.halfLife!==t&&(this.ttfb_=new h5(t,o.getEstimate(),o.getTotalWeight()))}sample(t,n){t=Math.max(t,this.minDelayMs_);const r=8*n,i=t/1e3,o=r/i;this.fast_.sample(i,o),this.slow_.sample(i,o)}sampleTTFB(t){const n=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(n,2)/2);this.ttfb_.sample(r,Math.max(t,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}destroy(){}}const UZe={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},LEe={};function bzn(e,t,n,r,i,o){const s=e.audioCodec?e.audioGroups:null,a=o==null?void 0:o.audioCodec,l=o==null?void 0:o.channels,c=l?parseInt(l):a?1/0:2;let u=null;if(s!=null&&s.length)try{s.length===1&&s[0]?u=t.groups[s[0]].channels:u=s.reduce((f,h)=>{if(h){const g=t.groups[h];if(!g)throw new Error(`Audio track group ${h} not found`);Object.keys(g.channels).forEach(p=>{f[p]=(f[p]||0)+g.channels[p]})}return f},{2:0})}catch{return!0}return e.videoCodec!==void 0&&(e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||e.videoRange!=="SDR"&&e.videoRange!==n||e.bitrate>Math.max(i,8e6))||!!u&&kn(c)&&Object.keys(u).some(f=>parseInt(f)>c)}function Szn(e,t,n){const r=e.videoCodec,i=e.audioCodec;if(!r||!i||!n)return Promise.resolve(UZe);const o={width:e.width,height:e.height,bitrate:Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)),framerate:e.frameRate||30},s=e.videoRange;s!=="SDR"&&(o.transferFunction=s.toLowerCase());const a=r.split(",").map(l=>({type:"media-source",video:ka(ka({},o),{},{contentType:WT(l,"video")})}));return i&&e.audioGroups&&e.audioGroups.forEach(l=>{var c;l&&((c=t.groups[l])==null||c.tracks.forEach(u=>{if(u.groupId===l){const f=u.channels||"",h=parseFloat(f);kn(h)&&h>2&&a.push.apply(a,i.split(",").map(g=>({type:"media-source",audio:{contentType:WT(g,"audio"),channels:""+h}})))}}))}),Promise.all(a.map(l=>{const c=wzn(l);return LEe[c]||(LEe[c]=n.decodingInfo(l))})).then(l=>({supported:!l.some(c=>!c.supported),configurations:a,decodingInfoResults:l})).catch(l=>({supported:!1,configurations:a,decodingInfoResults:[],error:l}))}function wzn(e){const{audio:t,video:n}=e,r=n||t;if(r){const i=r.contentType.split('"')[1];if(n)return`r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${i}_${Math.ceil(n.bitrate/1e5)}`;if(t)return`c${t.channels}${t.spatialRendering?"s":"n"}_${i}`}return""}function xzn(){if(typeof matchMedia=="function"){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return e.matches===!0}return!1}function Ezn(e,t){let n=!1,r=[];return e&&(n=e!=="SDR",r=[e]),t&&(r=t.allowedVideoRanges||TB.slice(0),n=t.preferHDR!==void 0?t.preferHDR:xzn(),n?r=r.filter(i=>i!=="SDR"):r=["SDR"]),{preferHDR:n,allowedVideoRanges:r}}function Rzn(e,t,n,r,i){const o=Object.keys(e),s=r==null?void 0:r.channels,a=r==null?void 0:r.audioCodec,l=s&&parseInt(s)===2;let c=!0,u=!1,f=1/0,h=1/0,g=1/0,p=0,m=[];const{preferHDR:v,allowedVideoRanges:C}=Ezn(t,i);for(let w=o.length;w--;){const x=e[o[w]];c=x.channels[2]>0,f=Math.min(f,x.minHeight),h=Math.min(h,x.minFramerate),g=Math.min(g,x.minBitrate);const E=C.filter(R=>x.videoRanges[R]>0);E.length>0&&(u=!0,m=E)}f=kn(f)?f:0,h=kn(h)?h:0;const y=Math.max(1080,f),b=Math.max(30,h);return g=kn(g)?g:n,n=Math.max(g,n),u||(t=void 0,m=[]),{codecSet:o.reduce((w,x)=>{const E=e[x];if(x===w)return w;if(E.minBitrate>n)return E1(x,`min bitrate of ${E.minBitrate} > current estimate of ${n}`),w;if(!E.hasDefaultAudio)return E1(x,"no renditions with default or auto-select sound found"),w;if(a&&x.indexOf(a.substring(0,4))%5!==0)return E1(x,`audio codec preference "${a}" not found`),w;if(s&&!l){if(!E.channels[s])return E1(x,`no renditions with ${s} channel sound found (channels options: ${Object.keys(E.channels)})`),w}else if((!a||l)&&c&&E.channels[2]===0)return E1(x,"no renditions with stereo sound found"),w;return E.minHeight>y?(E1(x,`min resolution of ${E.minHeight} > maximum of ${y}`),w):E.minFramerate>b?(E1(x,`min framerate of ${E.minFramerate} > maximum of ${b}`),w):m.some(R=>E.videoRanges[R]>0)?E.maxScore<p?(E1(x,`max score of ${E.maxScore} < selected max of ${p}`),w):w&&($B(x)>=$B(w)||E.fragmentError>e[w].fragmentError)?w:(p=E.maxScore,x):(E1(x,`no variants with VIDEO-RANGE of ${JSON.stringify(m)} found`),w)},void 0),videoRanges:m,preferHDR:v,minFramerate:h,minBitrate:g}}function E1(e,t){bt.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function $zn(e){return e.reduce((t,n)=>{let r=t.groups[n.groupId];r||(r=t.groups[n.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(n);const i=n.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||n.default,r.hasAutoSelect=r.hasAutoSelect||n.autoselect,r.hasDefault&&(t.hasDefaultAudio=!0),r.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function Ozn(e,t,n,r){return e.slice(n,r+1).reduce((i,o)=>{if(!o.codecSet)return i;const s=o.audioGroups;let a=i[o.codecSet];a||(i[o.codecSet]=a={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!s,fragmentError:0}),a.minBitrate=Math.min(a.minBitrate,o.bitrate);const l=Math.min(o.height,o.width);return a.minHeight=Math.min(a.minHeight,l),a.minFramerate=Math.min(a.minFramerate,o.frameRate),a.maxScore=Math.max(a.maxScore,o.score),a.fragmentError+=o.fragmentError,a.videoRanges[o.videoRange]=(a.videoRanges[o.videoRange]||0)+1,s&&s.forEach(c=>{if(!c)return;const u=t.groups[c];u&&(a.hasDefaultAudio=a.hasDefaultAudio||t.hasDefaultAudio?u.hasDefault:u.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(u.channels).forEach(f=>{a.channels[f]=(a.channels[f]||0)+u.channels[f]}))}),i},{})}function Jp(e,t,n){if("attrs"in e){const r=t.indexOf(e);if(r!==-1)return r}for(let r=0;r<t.length;r++){const i=t[r];if(JS(e,i,n))return r}return-1}function JS(e,t,n){const{groupId:r,name:i,lang:o,assocLang:s,characteristics:a,default:l}=e,c=e.forced;return(r===void 0||t.groupId===r)&&(i===void 0||t.name===i)&&(o===void 0||t.lang===o)&&(o===void 0||t.assocLang===s)&&(l===void 0||t.default===l)&&(c===void 0||t.forced===c)&&(a===void 0||Tzn(a,t.characteristics))&&(n===void 0||n(e,t))}function Tzn(e,t=""){const n=e.split(","),r=t.split(",");return n.length===r.length&&!n.some(i=>r.indexOf(i)===-1)}function g5(e,t){const{audioCodec:n,channels:r}=e;return(n===void 0||(t.audioCodec||"").substring(0,4)===n.substring(0,4))&&(r===void 0||r===(t.channels||"2"))}function Izn(e,t,n,r,i){const o=t[r],a=t.reduce((h,g,p)=>{const m=g.uri;return(h[m]||(h[m]=[])).push(p),h},{})[o.uri];a.length>1&&(r=Math.max.apply(Math,a));const l=o.videoRange,c=o.frameRate,u=o.codecSet.substring(0,4),f=FEe(t,r,h=>{if(h.videoRange!==l||h.frameRate!==c||h.codecSet.substring(0,4)!==u)return!1;const g=h.audioGroups,p=n.filter(m=>!g||g.indexOf(m.groupId)!==-1);return Jp(e,p,i)>-1});return f>-1?f:FEe(t,r,h=>{const g=h.audioGroups,p=n.filter(m=>!g||g.indexOf(m.groupId)!==-1);return Jp(e,p,i)>-1})}function FEe(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r<e.length;r++)if(n(e[r]))return r;return-1}class Mzn{constructor(t){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:n,partCurrent:r,hls:i}=this,{autoLevelEnabled:o,media:s}=i;if(!n||!s)return;const a=performance.now(),l=r?r.stats:n.stats,c=r?r.duration:n.duration,u=a-l.loading.start,f=i.minAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||n.level<=f){this.clearTimer(),this._nextAutoLevel=-1;return}if(!o||s.paused||!s.playbackRate||!s.readyState)return;const h=i.mainForwardBufferInfo;if(h===null)return;const g=this.bwEstimator.getEstimateTTFB(),p=Math.abs(s.playbackRate);if(u<=Math.max(g,1e3*(c/(p*2))))return;const m=h.len/p,v=l.loading.first?l.loading.first-l.loading.start:-1,C=l.loaded&&v>-1,y=this.getBwEstimate(),b=i.levels,S=b[n.level],w=l.total||Math.max(l.loaded,Math.round(c*S.averageBitrate/8));let x=C?u-v:u;x<1&&C&&(x=Math.min(u,l.loaded*8/y));const E=C?l.loaded*1e3/x:0,R=E?(w-l.loaded)/E:w*8/y+g/1e3;if(R<=m)return;const O=E?E*8:y;let T=Number.POSITIVE_INFINITY,M;for(M=n.level-1;M>f;M--){const F=b[M].maxBitrate;if(T=this.getTimeToLoadFrag(g/1e3,O,c*F,!b[M].details),T<m)break}if(T>=R||T>c*10)return;i.nextLoadLevel=i.nextAutoLevel=M,C?this.bwEstimator.sample(u-Math.min(g,v),l.loaded):this.bwEstimator.sampleTTFB(u);const _=b[M].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>_&&this.resetEstimator(_),this.clearTimer(),bt.warn(`[abr] Fragment ${n.sn}${r?" part "+r.index:""} of level ${n.level} is loading too slowly;
|
||
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
|
||
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.sample(s,o.loaded),o.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==fr.MAIN||t.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,o=this.findBestLevel(r,n,t,0,i,1,1);if(o>-1)return o;const s=this.hls.firstLevel,a=Math.min(Math.max(s,n),t);return bt.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(t!==-1&&(!r||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return t;const o=r&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(t!==-1){const s=this.hls.levels;if(s.length>Math.max(t,o)&&s[t].loadError<=s[o].loadError)return t}return this._nextAutoLevel=o,this.nextAutoLevelKey=this.getAutoLevelKey(),o}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:n,hls:r}=this,{maxAutoLevel:i,config:o,minAutoLevel:s}=r,a=n?n.duration:t?t.duration:0,l=this.getBwEstimate(),c=this.getStarvationDelay();let u=o.abrBandWidthFactor,f=o.abrBandWidthUpFactor;if(c){const v=this.findBestLevel(l,s,i,c,0,u,f);if(v>=0)return v}let h=a?Math.min(a,o.maxStarvationDelay):o.maxStarvationDelay;if(!c){const v=this.bitrateTestDelay;v&&(h=(a?Math.min(a,o.maxLoadingDelay):o.maxLoadingDelay)-v,bt.info(`[abr] bitrate test took ${Math.round(1e3*v)}ms, set first fragment max fetchDuration to ${Math.round(1e3*h)} ms`),u=f=1)}const g=this.findBestLevel(l,s,i,c,h,u,f);if(bt.info(`[abr] ${c?"rebuffering expected":"buffer is empty"}, optimal quality level ${g}`),g>-1)return g;const p=r.levels[s],m=r.levels[r.loadLevel];return(p==null?void 0:p.bitrate)<(m==null?void 0:m.bitrate)?s:r.loadLevel}getStarvationDelay(){const t=this.hls,n=t.media;if(!n)return 1/0;const r=n&&n.playbackRate!==0?Math.abs(n.playbackRate):1,i=t.mainForwardBufferInfo;return(i?i.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(t,n,r,i,o,s,a){var l;const c=i+o,u=this.lastLoadedFragLevel,f=u===-1?this.hls.firstLevel:u,{fragCurrent:h,partCurrent:g}=this,{levels:p,allAudioTracks:m,loadLevel:v,config:C}=this.hls;if(p.length===1)return 0;const y=p[f],b=!!(y!=null&&(l=y.details)!=null&&l.live),S=v===-1||u===-1;let w,x="SDR",E=(y==null?void 0:y.frameRate)||0;const{audioPreference:R,videoPreference:O}=C,T=this.audioTracksByGroup||(this.audioTracksByGroup=$zn(m));if(S){if(this.firstSelection!==-1)return this.firstSelection;const k=this.codecTiers||(this.codecTiers=Ozn(p,T,n,r)),L=Rzn(k,x,t,R,O),{codecSet:I,videoRanges:A,minFramerate:N,minBitrate:B,preferHDR:z}=L;w=I,x=z?A[A.length-1]:A[0],E=N,t=Math.max(t,B),bt.log(`[abr] picked start tier ${JSON.stringify(L)}`)}else w=y==null?void 0:y.codecSet,x=y==null?void 0:y.videoRange;const M=g?g.duration:h?h.duration:0,_=this.bwEstimator.getEstimateTTFB()/1e3,F=[];for(let k=r;k>=n;k--){var D;const L=p[k],I=k>f;if(!L)continue;if(C.useMediaCapabilities&&!L.supportedResult&&!L.supportedPromise){const G=navigator.mediaCapabilities;typeof(G==null?void 0:G.decodingInfo)=="function"&&bzn(L,T,x,E,t,R)?(L.supportedPromise=Szn(L,T,G),L.supportedPromise.then(K=>{if(!this.hls)return;L.supportedResult=K;const q=this.hls.levels,X=q.indexOf(L);K.error?bt.warn(`[abr] MediaCapabilities decodingInfo error: "${K.error}" for level ${X} ${JSON.stringify(K)}`):K.supported||(bt.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${X} ${JSON.stringify(K)}`),X>-1&&q.length>1&&(bt.log(`[abr] Removing unsupported level ${X}`),this.hls.removeLevel(X)))})):L.supportedResult=UZe}if(w&&L.codecSet!==w||x&&L.videoRange!==x||I&&E>L.frameRate||!I&&E>0&&E<L.frameRate||L.supportedResult&&!((D=L.supportedResult.decodingInfoResults)!=null&&D[0].smooth)){F.push(k);continue}const A=L.details,N=(g?A==null?void 0:A.partTarget:A==null?void 0:A.averagetargetduration)||M;let B;I?B=a*t:B=s*t;const z=M&&i>=M*2&&o===0?p[k].averageBitrate:p[k].maxBitrate,j=this.getTimeToLoadFrag(_,B,z*N,A===void 0);if(B>=z&&(k===u||L.loadError===0&&L.fragmentError===0)&&(j<=_||!kn(j)||b&&!this.bitrateTestDelay||j<c)){const G=this.forcedAutoLevel;return k!==v&&(G===-1||G!==v)&&(F.length&&bt.trace(`[abr] Skipped level(s) ${F.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${p[F[0]].codecs}" ${p[F[0]].videoRange}; not compatible with "${y.codecs}" ${x}`),bt.info(`[abr] switch candidate:${f}->${k} adjustedbw(${Math.round(B)})-bitrate=${Math.round(B-z)} ttfb:${_.toFixed(1)} avgDuration:${N.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${j.toFixed(1)} firstSelection:${S} codecSet:${w} videoRange:${x} hls.loadLevel:${v}`)),S&&(this.firstSelection=k),k}}return-1}set nextAutoLevel(t){const{maxAutoLevel:n,minAutoLevel:r}=this.hls,i=Math.min(Math.max(t,r),n);this._nextAutoLevel!==i&&(this.nextAutoLevelKey="",this._nextAutoLevel=i)}}class Pzn{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var Ia={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class _zn{constructor(t){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(Se.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Se.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Se.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:t}=this;t.off(Se.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Se.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Se.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(t,n){const r=this.activePartLists[n];if(r)for(let i=r.length;i--;){const o=r[i];if(!o)break;const s=o.end;if(o.start<=t&&s!==null&&t<=s)return o}return this.getBufferedFrag(t,n)}getBufferedFrag(t,n){const{fragments:r}=this,i=Object.keys(r);for(let o=i.length;o--;){const s=r[i[o]];if((s==null?void 0:s.body.type)===n&&s.buffered){const a=s.body;if(a.start<=t&&t<=a.end)return a}}return null}detectEvictedFragments(t,n,r,i){this.timeRanges&&(this.timeRanges[t]=n);const o=(i==null?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach(s=>{const a=this.fragments[s];if(!a||o>=a.body.sn)return;if(!a.buffered&&!a.loaded){a.body.type===r&&this.removeFragment(a.body);return}const l=a.range[t];l&&l.time.some(c=>{const u=!this.isTimeBuffered(c.startPTS,c.endPTS,n);return u&&this.removeFragment(a.body),u})})}detectPartialFragments(t){const n=this.timeRanges,{frag:r,part:i}=t;if(!n||r.sn==="initSegment")return;const o=p5(r),s=this.fragments[o];if(!s||s.buffered&&r.gap)return;const a=!r.relurl;Object.keys(n).forEach(l=>{const c=r.elementaryStreams[l];if(!c)return;const u=n[l],f=a||c.partial===!0;s.range[l]=this.getBufferedTimes(r,i,f,u)}),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=r.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),WD(s)||this.removeParts(r.sn-1,r.type)):this.removeFragment(s.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=r.filter(i=>i.fragment.sn>=t))}fragBuffered(t,n){const r=p5(t);let i=this.fragments[r];!i&&n&&(i=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(t,n,r,i){const o={time:[],partial:r},s=t.start,a=t.end,l=t.minEndPTS||a,c=t.maxStartPTS||s;for(let u=0;u<i.length;u++){const f=i.start(u)-this.bufferPadding,h=i.end(u)+this.bufferPadding;if(c>=f&&l<=h){o.time.push({startPTS:Math.max(s,i.start(u)),endPTS:Math.min(a,i.end(u))});break}else if(s<h&&a>f){const g=Math.max(s,i.start(u)),p=Math.min(a,i.end(u));p>g&&(o.partial=!0,o.time.push({startPTS:g,endPTS:p}))}else if(a<=f)break}return o}getPartialFragment(t){let n=null,r,i,o,s=0;const{bufferPadding:a,fragments:l}=this;return Object.keys(l).forEach(c=>{const u=l[c];u&&WD(u)&&(i=u.body.start-a,o=u.body.end+a,t>=i&&t<=o&&(r=Math.min(t-i,o-t),s<=r&&(n=u.body,s=r)))}),n}isEndListAppended(t){const n=this.endListFragments[t];return n!==void 0&&(n.buffered||WD(n))}getState(t){const n=p5(t),r=this.fragments[n];return r?r.buffered?WD(r)?Ia.PARTIAL:Ia.OK:Ia.APPENDING:Ia.NOT_LOADED}isTimeBuffered(t,n,r){let i,o;for(let s=0;s<r.length;s++){if(i=r.start(s)-this.bufferPadding,o=r.end(s)+this.bufferPadding,t>=i&&n<=o)return!0;if(n<=i)return!1}return!1}onFragLoaded(t,n){const{frag:r,part:i}=n;if(r.sn==="initSegment"||r.bitrateTest)return;const o=i?null:n,s=p5(r);this.fragments[s]={body:r,appendedPTS:null,loaded:o,buffered:!1,range:Object.create(null)}}onBufferAppended(t,n){const{frag:r,part:i,timeRanges:o}=n;if(r.sn==="initSegment")return;const s=r.type;if(i){let a=this.activePartLists[s];a||(this.activePartLists[s]=a=[]),a.push(i)}this.timeRanges=o,Object.keys(o).forEach(a=>{const l=o[a];this.detectEvictedFragments(a,l,s,i)})}onFragBuffered(t,n){this.detectPartialFragments(n)}hasFragment(t){const n=p5(t);return!!this.fragments[n]}hasParts(t){var n;return!!((n=this.activePartLists[t])!=null&&n.length)}removeFragmentsInRange(t,n,r,i,o){i&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const a=this.fragments[s];if(!a)return;const l=a.body;l.type!==r||i&&!l.gap||l.start<n&&l.end>t&&(a.buffered||o)&&this.removeFragment(l)})}removeFragment(t){const n=p5(t);t.stats.loaded=0,t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const i=t.sn;this.activePartLists[t.type]=r.filter(o=>o.fragment.sn!==i)}delete this.fragments[n],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function WD(e){var t,n,r;return e.buffered&&(e.body.gap||((t=e.range.video)==null?void 0:t.partial)||((n=e.range.audio)==null?void 0:n.partial)||((r=e.range.audiovideo)==null?void 0:r.partial))}function p5(e){return`${e.type}_${e.level}_${e.sn}`}const Azn={length:0,start:()=>0,end:()=>0};class xo{static isBuffered(t,n){try{if(t){const r=xo.getBuffered(t);for(let i=0;i<r.length;i++)if(n>=r.start(i)&&n<=r.end(i))return!0}}catch{}return!1}static bufferInfo(t,n,r){try{if(t){const i=xo.getBuffered(t),o=[];let s;for(s=0;s<i.length;s++)o.push({start:i.start(s),end:i.end(s)});return this.bufferedInfo(o,n,r)}}catch{}return{len:0,start:n,end:n,nextStart:void 0}}static bufferedInfo(t,n,r){n=Math.max(0,n),t.sort(function(c,u){const f=c.start-u.start;return f||u.end-c.end});let i=[];if(r)for(let c=0;c<t.length;c++){const u=i.length;if(u){const f=i[u-1].end;t[c].start-f<r?t[c].end>f&&(i[u-1].end=t[c].end):i.push(t[c])}else i.push(t[c])}else i=t;let o=0,s,a=n,l=n;for(let c=0;c<i.length;c++){const u=i[c].start,f=i[c].end;if(n+r>=u&&n<f)a=u,l=f,o=l-n;else if(n+r<u){s=u;break}}return{len:o,start:a||0,end:l||0,nextStart:s}}static getBuffered(t){try{return t.buffered}catch(n){return bt.log("failed to get media.buffered",n),Azn}}}class y1e{constructor(t,n,r,i=0,o=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=UD(),this.buffering={audio:UD(),video:UD(),audiovideo:UD()},this.level=t,this.sn=n,this.id=r,this.size=i,this.part=o,this.partial=s}}function UD(){return{start:0,executeStart:0,executeEnd:0,end:0}}function $N(e,t){for(let r=0,i=e.length;r<i;r++){var n;if(((n=e[r])==null?void 0:n.cc)===t)return e[r]}return null}function Dzn(e,t,n){return!!(t&&(n.endCC>n.startCC||e&&e.cc<n.startCC))}function Lzn(e,t){const n=e.fragments,r=t.fragments;if(!r.length||!n.length){bt.log("No fragments to align");return}const i=$N(n,r[0].cc);if(!i||i&&!i.startPTS){bt.log("No frag in previous level to align on");return}return i}function NEe(e,t){if(e){const n=e.start+t;e.start=e.startPTS=n,e.endPTS=n+e.duration}}function qZe(e,t){const n=t.fragments;for(let r=0,i=n.length;r<i;r++)NEe(n[r],e);t.fragmentHint&&NEe(t.fragmentHint,e),t.alignedSliding=!0}function Fzn(e,t,n){t&&(Nzn(e,n,t),!n.alignedSliding&&t&&_B(n,t),!n.alignedSliding&&t&&!n.skippedSegments&&jZe(t,n))}function Nzn(e,t,n){if(Dzn(e,n,t)){const r=Lzn(n,t);r&&kn(r.start)&&(bt.log(`Adjusting PTS using last level due to CC increase within current level ${t.url}`),qZe(r.start,t))}}function _B(e,t){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;const n=e.fragments,r=t.fragments;if(!n.length||!r.length)return;let i,o;const s=Math.min(t.endCC,e.endCC);t.startCC<s&&e.startCC<s&&(i=$N(r,s),o=$N(n,s)),(!i||!o)&&(i=r[Math.floor(r.length/2)],o=$N(n,i.cc)||n[Math.floor(n.length/2)]);const a=i.programDateTime,l=o.programDateTime;if(!a||!l)return;const c=(l-a)/1e3-(o.start-i.start);qZe(c,e)}const kEe=Math.pow(2,17);class kzn{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,n){const r=t.url;if(!r)return Promise.reject(new Y1({type:wr.NETWORK_ERROR,details:_t.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const i=this.config,o=i.fLoader,s=i.loader;return new Promise((a,l)=>{if(this.loader&&this.loader.destroy(),t.gap)if(t.tagList.some(g=>g[0]==="GAP")){l(BEe(t));return}else t.gap=!1;const c=this.loader=t.loader=o?new o(i):new s(i),u=zEe(t),f=DEe(i.fragLoadPolicy.default),h={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:kEe};t.stats=c.stats,c.load(u,h,{onSuccess:(g,p,m,v)=>{this.resetLoader(t,c);let C=g.data;m.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(C.slice(0,16)),C=C.slice(16)),a({frag:t,part:null,payload:C,networkDetails:v})},onError:(g,p,m,v)=>{this.resetLoader(t,c),l(new Y1({type:wr.NETWORK_ERROR,details:_t.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:ka({url:r,data:void 0},g),error:new Error(`HTTP Error ${g.code} ${g.text}`),networkDetails:m,stats:v}))},onAbort:(g,p,m)=>{this.resetLoader(t,c),l(new Y1({type:wr.NETWORK_ERROR,details:_t.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:m,stats:g}))},onTimeout:(g,p,m)=>{this.resetLoader(t,c),l(new Y1({type:wr.NETWORK_ERROR,details:_t.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${h.timeout}ms`),networkDetails:m,stats:g}))},onProgress:(g,p,m,v)=>{n&&n({frag:t,part:null,payload:m,networkDetails:v})}})})}loadPart(t,n,r){this.abort();const i=this.config,o=i.fLoader,s=i.loader;return new Promise((a,l)=>{if(this.loader&&this.loader.destroy(),t.gap||n.gap){l(BEe(t,n));return}const c=this.loader=t.loader=o?new o(i):new s(i),u=zEe(t,n),f=DEe(i.fragLoadPolicy.default),h={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:kEe};n.stats=c.stats,c.load(u,h,{onSuccess:(g,p,m,v)=>{this.resetLoader(t,c),this.updateStatsFromPart(t,n);const C={frag:t,part:n,payload:g.data,networkDetails:v};r(C),a(C)},onError:(g,p,m,v)=>{this.resetLoader(t,c),l(new Y1({type:wr.NETWORK_ERROR,details:_t.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:ka({url:u.url,data:void 0},g),error:new Error(`HTTP Error ${g.code} ${g.text}`),networkDetails:m,stats:v}))},onAbort:(g,p,m)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,c),l(new Y1({type:wr.NETWORK_ERROR,details:_t.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:m,stats:g}))},onTimeout:(g,p,m)=>{this.resetLoader(t,c),l(new Y1({type:wr.NETWORK_ERROR,details:_t.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${h.timeout}ms`),networkDetails:m,stats:g}))}})})}updateStatsFromPart(t,n){const r=t.stats,i=n.stats,o=i.total;if(r.loaded+=i.loaded,o){const l=Math.round(t.duration/n.duration),c=Math.min(Math.round(r.loaded/o),l),f=(l-c)*Math.round(r.loaded/c);r.total=r.loaded+f}else r.total=Math.max(r.loaded,r.total);const s=r.loading,a=i.loading;s.start?s.first+=a.first-a.start:(s.start=a.start,s.first=a.first),s.end=a.end}resetLoader(t,n){t.loader=null,this.loader===n&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),n.destroy()}}function zEe(e,t=null){const n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},i=n.byteRangeStartOffset,o=n.byteRangeEndOffset;if(kn(i)&&kn(o)){var s;let a=i,l=o;if(e.sn==="initSegment"&&((s=e.decryptdata)==null?void 0:s.method)==="AES-128"){const c=o-i;c%16&&(l=o+(16-c%16)),i!==0&&(r.resetIV=!0,a=i-16)}r.rangeStart=a,r.rangeEnd=l}return r}function BEe(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:wr.MEDIA_ERROR,details:_t.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new Y1(r)}class Y1 extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class zzn{constructor(t,n){this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=n}decrypt(t,n){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t)}}class Bzn{constructor(t,n){this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=n}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function Hzn(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?cC(e,0,t-n):e}class jzn{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(t){const n=new DataView(t),r=new Uint32Array(4);for(let i=0;i<4;i++)r[i]=n.getUint32(i*4);return r}initTable(){const t=this.sBox,n=this.invSBox,r=this.subMix,i=r[0],o=r[1],s=r[2],a=r[3],l=this.invSubMix,c=l[0],u=l[1],f=l[2],h=l[3],g=new Uint32Array(256);let p=0,m=0,v=0;for(v=0;v<256;v++)v<128?g[v]=v<<1:g[v]=v<<1^283;for(v=0;v<256;v++){let C=m^m<<1^m<<2^m<<3^m<<4;C=C>>>8^C&255^99,t[p]=C,n[C]=p;const y=g[p],b=g[y],S=g[b];let w=g[C]*257^C*16843008;i[p]=w<<24|w>>>8,o[p]=w<<16|w>>>16,s[p]=w<<8|w>>>24,a[p]=w,w=S*16843009^b*65537^y*257^p*16843008,c[C]=w<<24|w>>>8,u[C]=w<<16|w>>>16,f[C]=w<<8|w>>>24,h[C]=w,p?(p=y^g[g[g[S^y]]],m^=g[g[m]]):p=m=1}}expandKey(t){const n=this.uint8ArrayToUint32Array_(t);let r=!0,i=0;for(;i<n.length&&r;)r=n[i]===this.key[i],i++;if(r)return;this.key=n;const o=this.keySize=n.length;if(o!==4&&o!==6&&o!==8)throw new Error("Invalid aes key size="+o);const s=this.ksRows=(o+6+1)*4;let a,l;const c=this.keySchedule=new Uint32Array(s),u=this.invKeySchedule=new Uint32Array(s),f=this.sBox,h=this.rcon,g=this.invSubMix,p=g[0],m=g[1],v=g[2],C=g[3];let y,b;for(a=0;a<s;a++){if(a<o){y=c[a]=n[a];continue}b=y,a%o===0?(b=b<<8|b>>>24,b=f[b>>>24]<<24|f[b>>>16&255]<<16|f[b>>>8&255]<<8|f[b&255],b^=h[a/o|0]<<24):o>6&&a%o===4&&(b=f[b>>>24]<<24|f[b>>>16&255]<<16|f[b>>>8&255]<<8|f[b&255]),c[a]=y=(c[a-o]^b)>>>0}for(l=0;l<s;l++)a=s-l,l&3?b=c[a]:b=c[a-4],l<4||a<=4?u[l]=b:u[l]=p[f[b>>>24]]^m[f[b>>>16&255]]^v[f[b>>>8&255]]^C[f[b&255]],u[l]=u[l]>>>0}networkToHostOrderSwap(t){return t<<24|(t&65280)<<8|(t&16711680)>>8|t>>>24}decrypt(t,n,r){const i=this.keySize+6,o=this.invKeySchedule,s=this.invSBox,a=this.invSubMix,l=a[0],c=a[1],u=a[2],f=a[3],h=this.uint8ArrayToUint32Array_(r);let g=h[0],p=h[1],m=h[2],v=h[3];const C=new Int32Array(t),y=new Int32Array(C.length);let b,S,w,x,E,R,O,T,M,_,F,D,k,L;const I=this.networkToHostOrderSwap;for(;n<C.length;){for(M=I(C[n]),_=I(C[n+1]),F=I(C[n+2]),D=I(C[n+3]),E=M^o[0],R=D^o[1],O=F^o[2],T=_^o[3],k=4,L=1;L<i;L++)b=l[E>>>24]^c[R>>16&255]^u[O>>8&255]^f[T&255]^o[k],S=l[R>>>24]^c[O>>16&255]^u[T>>8&255]^f[E&255]^o[k+1],w=l[O>>>24]^c[T>>16&255]^u[E>>8&255]^f[R&255]^o[k+2],x=l[T>>>24]^c[E>>16&255]^u[R>>8&255]^f[O&255]^o[k+3],E=b,R=S,O=w,T=x,k=k+4;b=s[E>>>24]<<24^s[R>>16&255]<<16^s[O>>8&255]<<8^s[T&255]^o[k],S=s[R>>>24]<<24^s[O>>16&255]<<16^s[T>>8&255]<<8^s[E&255]^o[k+1],w=s[O>>>24]<<24^s[T>>16&255]<<16^s[E>>8&255]<<8^s[R&255]^o[k+2],x=s[T>>>24]<<24^s[E>>16&255]<<16^s[R>>8&255]<<8^s[O&255]^o[k+3],y[n]=I(b^g),y[n+1]=I(x^p),y[n+2]=I(w^m),y[n+3]=I(S^v),g=M,p=_,m=F,v=D,n=n+4}return y.buffer}}const Vzn=16;class b1e{constructor(t,{removePKCS7Padding:n=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=t.enableSoftwareAES,this.removePKCS7Padding=n,n)try{const r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch{}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:t,remainderData:n}=this;if(!t||n)return this.reset(),null;const r=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?Hzn(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(t,n,r){return this.useSoftware?new Promise((i,o)=>{this.softwareDecrypt(new Uint8Array(t),n,r);const s=this.flush();s?i(s.buffer):o(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(t),n,r)}softwareDecrypt(t,n,r){const{currentIV:i,currentResult:o,remainderData:s}=this;this.logOnce("JS AES decrypt"),s&&(t=Jf(s,t),this.remainderData=null);const a=this.getValidChunk(t);if(!a.length)return null;i&&(r=i);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new jzn),l.expandKey(n);const c=o;return this.currentResult=l.decrypt(a.buffer,0,r),this.currentIV=cC(a,-16).buffer,c||null}webCryptoDecrypt(t,n,r){if(this.key!==n||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(t,n,r));this.key=n,this.fastAesKey=new Bzn(this.subtle,n)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new zzn(this.subtle,new Uint8Array(r)).decrypt(t.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(bt.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(t,n,r)))}onWebCryptoError(t,n,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,n,r);const i=this.flush();if(i)return i.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(t){let n=t;const r=t.length-t.length%Vzn;return r!==t.length&&(n=cC(t,0,r),this.remainderData=cC(t,r)),n}logOnce(t){this.logEnabled&&(bt.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const Gzn={toString:function(e){let t="";const n=e.length;for(let r=0;r<n;r++)t+=`[${e.start(r).toFixed(3)}-${e.end(r).toFixed(3)}]`;return t}},Xt={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class S1e extends Pzn{constructor(t,n,r,i,o){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Xt.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=o,this.logPrefix=i,this.log=bt.log.bind(bt,`${i}:`),this.warn=bt.warn.bind(bt,`${i}:`),this.hls=t,this.fragmentLoader=new kzn(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new b1e(t.config),t.on(Se.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;t!=null&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Xt.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(t,n){if(n.live||t.nextStart||!t.end||!this.media)return!1;const r=n.partList;if(r!=null&&r.length){const o=r[r.length-1];return xo.isBuffered(this.media,o.start+o.duration/2)}const i=n.fragments[n.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var t;return(t=this.levelLastLoaded)==null?void 0:t.details}}onMediaAttached(t,n){const r=this.media=this.mediaBuffer=n.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);const i=this.config;this.levels&&i.autoStartLoad&&this.state===Xt.STOPPED&&this.startLoad(i.startPosition)}onMediaDetaching(){const t=this.media;t!=null&&t.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&this.onvseeking&&this.onvended&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:t,fragCurrent:n,media:r,mediaBuffer:i,state:o}=this,s=r?r.currentTime:0,a=xo.bufferInfo(i||r,s,t.maxBufferHole);if(this.log(`media seeking to ${kn(s)?s.toFixed(3):s}, state: ${o}`),this.state===Xt.ENDED)this.resetLoadingState();else if(n){const l=t.maxFragLookUpTolerance,c=n.start-l,u=n.start+n.duration+l;if(!a.len||u<a.start||c>a.end){const f=s>u;(s<c||f)&&(f&&n.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),n.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(s,1/0,this.playlistType,!0),this.lastCurrentTime=s),!this.loadedmetadata&&!a.len&&(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(t,n){this.startTimeOffset=n.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(Se.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=Xt.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(t,n,r){this._loadFragForPlayback(t,n,r)}_loadFragForPlayback(t,n,r){const i=o=>{if(this.fragContextChanged(t)){this.warn(`Fragment ${t.sn}${o.part?" p: "+o.part.index:""} of level ${t.level} was dropped during download.`),this.fragmentTracker.removeFragment(t);return}t.stats.chunkCount++,this._handleFragmentLoadProgress(o)};this._doFragLoad(t,n,r,i).then(o=>{if(!o)return;const s=this.state;if(this.fragContextChanged(t)){(s===Xt.FRAG_LOADING||!this.fragCurrent&&s===Xt.PARSING)&&(this.fragmentTracker.removeFragment(t),this.state=Xt.IDLE);return}"payload"in o&&(this.log(`Loaded fragment ${t.sn} of level ${t.level}`),this.hls.trigger(Se.FRAG_LOADED,o)),this._handleFragmentLoadComplete(o)}).catch(o=>{this.state===Xt.STOPPED||this.state===Xt.ERROR||(this.warn(`Frag error: ${(o==null?void 0:o.message)||o}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===Ia.APPENDING){const o=t.type,s=this.getFwdBufferInfo(this.mediaBuffer,o),a=Math.max(t.duration,s?s.len:this.config.maxBufferLength),l=this.backtrackFragment;((l?t.sn-l.sn:0)===1||this.reduceMaxBufferLength(a,t.duration))&&r.removeFragment(t)}else((n=this.mediaBuffer)==null?void 0:n.buffered.length)===0?r.removeAllFragments():r.hasParts(t.type)&&(r.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),r.getState(t)===Ia.PARTIAL&&r.removeFragment(t))}checkLiveUpdate(t){if(t.updated&&!t.live){const n=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:n,part:null,stats:n.stats,id:n.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)}flushMainBuffer(t,n,r=null){if(!(t-n))return;const i={startOffset:t,endOffset:n,type:r};this.hls.trigger(Se.BUFFER_FLUSHING,i)}_loadInitSegment(t,n){this._doFragLoad(t,n).then(r=>{if(!r||this.fragContextChanged(t)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:i}=this,{payload:o}=r,s=t.decryptdata;if(o&&o.byteLength>0&&s!=null&&s.key&&s.iv&&s.method==="AES-128"){const a=self.performance.now();return this.decrypter.decrypt(new Uint8Array(o),s.key.buffer,s.iv.buffer).catch(l=>{throw i.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:t}),l}).then(l=>{const c=self.performance.now();return i.trigger(Se.FRAG_DECRYPTED,{frag:t,payload:l,stats:{tstart:a,tdecrypt:c}}),r.payload=l,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===Xt.STOPPED||this.state===Xt.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}completeInitSegmentLoad(t){const{levels:n}=this;if(!n)throw new Error("init load aborted, missing levels");const r=t.frag.stats;this.state=Xt.IDLE,t.frag.data=new Uint8Array(t.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}fragContextChanged(t){const{fragCurrent:n}=this;return!t||!n||t.sn!==n.sn||t.level!==n.level}fragBufferedComplete(t,n){var r,i,o,s;const a=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.playlistType===fr.MAIN?"level":"track"} ${t.level} (frag:[${((r=t.startPTS)!=null?r:NaN).toFixed(3)}-${((i=t.endPTS)!=null?i:NaN).toFixed(3)}] > buffer:${a?Gzn.toString(xo.getBuffered(a)):"(detached)"})`),t.sn!=="initSegment"){var l;if(t.type!==fr.SUBTITLE){const u=t.elementaryStreams;if(!Object.keys(u).some(f=>!!u[f])){this.state=Xt.IDLE;return}}const c=(l=this.levels)==null?void 0:l[t.level];c!=null&&c.fragmentError&&(this.log(`Resetting level fragment error count of ${c.fragmentError} on frag buffered`),c.fragmentError=0)}this.state=Xt.IDLE,a&&(!this.loadedmetadata&&t.type==fr.MAIN&&a.buffered.length&&((o=this.fragCurrent)==null?void 0:o.sn)===((s=this.fragPrevious)==null?void 0:s.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(t){const{transmuxer:n}=this;if(!n)return;const{frag:r,part:i,partsLoaded:o}=t,s=!o||o.length===0||o.some(l=>!l),a=new y1e(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!s);n.flush(a)}_handleFragmentLoadProgress(t){}_doFragLoad(t,n,r=null,i){var o;const s=n==null?void 0:n.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let a=null;if(t.encrypted&&!((o=t.decryptdata)!=null&&o.key)?(this.log(`Loading key for ${t.sn} of [${s.startSN}-${s.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${t.level}`),this.state=Xt.KEY_LOADING,this.fragCurrent=t,a=this.keyLoader.load(t).then(u=>{if(!this.fragContextChanged(u.frag))return this.hls.trigger(Se.KEY_LOADED,u),this.state===Xt.KEY_LOADING&&(this.state=Xt.IDLE),u}),this.hls.trigger(Se.KEY_LOADING,{frag:t}),this.fragCurrent===null&&(a=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!t.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(t,s.encryptedFragments),r=Math.max(t.start,r||0),this.config.lowLatencyMode&&t.sn!=="initSegment"){const u=s.partList;if(u&&i){r>t.end&&s.fragmentHint&&(t=s.fragmentHint);const f=this.getNextPart(u,t,r);if(f>-1){const h=u[f];this.log(`Loading part sn: ${t.sn} p: ${h.index} cc: ${t.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${f}-${u.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${t.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=h.start+h.duration,this.state=Xt.FRAG_LOADING;let g;return a?g=a.then(p=>!p||this.fragContextChanged(p.frag)?null:this.doFragPartsLoad(t,h,n,i)).catch(p=>this.handleFragLoadError(p)):g=this.doFragPartsLoad(t,h,n,i).catch(p=>this.handleFragLoadError(p)),this.hls.trigger(Se.FRAG_LOADING,{frag:t,part:h,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):g}else if(!t.url||this.loadedEndOfParts(u,r))return Promise.resolve(null)}}this.log(`Loading fragment ${t.sn} cc: ${t.cc} ${s?"of ["+s.startSN+"-"+s.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${t.level}, target: ${parseFloat(r.toFixed(3))}`),kn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Xt.FRAG_LOADING;const l=this.config.progressive;let c;return l&&a?c=a.then(u=>!u||this.fragContextChanged(u==null?void 0:u.frag)?null:this.fragmentLoader.load(t,i)).catch(u=>this.handleFragLoadError(u)):c=Promise.all([this.fragmentLoader.load(t,l?i:void 0),a]).then(([u])=>(!l&&u&&i&&i(u),u)).catch(u=>this.handleFragLoadError(u)),this.hls.trigger(Se.FRAG_LOADING,{frag:t,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c}doFragPartsLoad(t,n,r,i){return new Promise((o,s)=>{var a;const l=[],c=(a=r.details)==null?void 0:a.partList,u=f=>{this.fragmentLoader.loadPart(t,f,i).then(h=>{l[f.index]=h;const g=h.part;this.hls.trigger(Se.FRAG_LOADED,h);const p=_Ee(r,t.sn,f.index+1)||VZe(c,t.sn,f.index+1);if(p)u(p);else return o({frag:t,part:g,partsLoaded:l})}).catch(s)};u(n)})}handleFragLoadError(t){if("data"in t){const n=t.data;t.data&&n.details===_t.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):this.hls.trigger(Se.ERROR,n)}else this.hls.trigger(Se.ERROR,{type:wr.OTHER_ERROR,details:_t.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==Xt.PARSING){!this.fragCurrent&&this.state!==Xt.STOPPED&&this.state!==Xt.ERROR&&(this.state=Xt.IDLE);return}const{frag:r,part:i,level:o}=n,s=self.performance.now();r.stats.parsing.end=s,i&&(i.stats.parsing.end=s),this.updateLevelTiming(r,i,o,t.partial)}getCurrentContext(t){const{levels:n,fragCurrent:r}=this,{level:i,sn:o,part:s}=t;if(!(n!=null&&n[i]))return this.warn(`Levels object was unset while buffering fragment ${o} of level ${i}. The current chunk will not be buffered.`),null;const a=n[i],l=s>-1?_Ee(a,o,s):null,c=l?l.fragment:fzn(a,o,r);return c?(r&&r!==c&&(c.stats=r.stats),{frag:c,part:l,level:a}):null}bufferFragmentData(t,n,r,i,o){var s;if(!t||this.state!==Xt.PARSING)return;const{data1:a,data2:l}=t;let c=a;if(a&&l&&(c=Jf(a,l)),!((s=c)!=null&&s.length))return;const u={type:t.type,frag:n,part:r,chunkMeta:i,parent:n.type,data:c};if(this.hls.trigger(Se.BUFFER_APPENDING,u),t.dropped&&t.independent&&!r){if(o)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!xo.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,i=xo.bufferInfo(n,r,0),o=t.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,o*.25),a=Math.max(Math.min(t.start-s,i.end-s),r+s);t.start-a>s&&this.flushMainBuffer(a,t.start)}getFwdBufferInfo(t,n){const r=this.getLoadPosition();return kn(r)?this.getFwdBufferInfoAtPos(t,r,n):null}getFwdBufferInfoAtPos(t,n,r){const{config:{maxBufferHole:i}}=this,o=xo.bufferInfo(t,n,i);if(o.len===0&&o.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(n,r);if(s&&o.nextStart<s.end)return xo.bufferInfo(t,n,Math.max(o.nextStart,i))}return o}getMaxBufferLength(t){const{config:n}=this;let r;return t?r=Math.max(8*n.maxBufferSize/t,n.maxBufferLength):r=n.maxBufferLength,Math.min(r,n.maxMaxBufferLength)}reduceMaxBufferLength(t,n){const r=this.config,i=Math.max(Math.min(t-n,r.maxBufferLength),n),o=Math.max(t-n*3,r.maxMaxBufferLength/2,i);return o>=i?(r.maxMaxBufferLength=o,this.warn(`Reduce max buffer length to ${o}s`),!0):!1}getAppendedFrag(t,n=fr.MAIN){const r=this.fragmentTracker.getAppendedFrag(t,fr.MAIN);return r&&"fragment"in r?r.fragment:r}getNextFragment(t,n){const r=n.fragments,i=r.length;if(!i)return null;const{config:o}=this,s=r[0].start;let a;if(n.live){const l=o.initialLiveManifestSize;if(i<l)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${l})`),null;(!n.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||t<s)&&(a=this.getInitialLiveFragment(n,r),this.startPosition=this.nextLoadPosition=a?this.hls.liveSyncPosition||a.start:t)}else t<=s&&(a=r[0]);if(!a){const l=o.lowLatencyMode?n.partEnd:n.fragmentEnd;a=this.getFragmentAtPosition(t,l,n)}return this.mapToInitFragWhenRequired(a)}isLoopLoading(t,n){const r=this.fragmentTracker.getState(t);return(r===Ia.OK||r===Ia.PARTIAL&&!!t.gap)&&this.nextLoadPosition>n}getNextFragmentLoopLoading(t,n,r,i,o){const s=t.gap,a=this.getNextFragment(this.nextLoadPosition,n);if(a===null)return a;if(t=a,s&&t&&!t.gap&&r.nextStart){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i);if(l!==null&&r.len+l.len>=o)return this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${t.sn}`),null}return t}mapToInitFragWhenRequired(t){return t!=null&&t.initSegment&&!(t!=null&&t.initSegment.data)&&!this.bitrateTest?t.initSegment:t}getNextPart(t,n,r){let i=-1,o=!1,s=!0;for(let a=0,l=t.length;a<l;a++){const c=t[a];if(s=s&&!c.independent,i>-1&&r<c.start)break;const u=c.loaded;u?i=-1:(o||c.independent||s)&&c.fragment===n&&(i=a),o=u}return i}loadedEndOfParts(t,n){const r=t[t.length-1];return r&&n>r.start&&r.loaded}getInitialLiveFragment(t,n){const r=this.fragPrevious;let i=null;if(r){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),i=gzn(n,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const o=r.sn+1;if(o>=t.startSN&&o<=t.endSN){const s=n[o-t.startSN];r.cc===s.cc&&(i=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=vzn(n,r.cc),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const o=this.hls.liveSyncPosition;o!==null&&(i=this.getFragmentAtPosition(o,this.bitrateTest?t.fragmentEnd:t.edge,t))}return i}getFragmentAtPosition(t,n,r){const{config:i}=this;let{fragPrevious:o}=this,{fragments:s,endSN:a}=r;const{fragmentHint:l}=r,{maxFragLookUpTolerance:c}=i,u=r.partList,f=!!(i.lowLatencyMode&&u!=null&&u.length&&l);f&&l&&!this.bitrateTest&&(s=s.concat(l),a=l.sn);let h;if(t<n){const g=t>n-c?0:c;h=PB(o,s,t,g)}else h=s[s.length-1];if(h){const g=h.sn-r.startSN,p=this.fragmentTracker.getState(h);if((p===Ia.OK||p===Ia.PARTIAL&&h.gap)&&(o=h),o&&h.sn===o.sn&&(!f||u[0].fragment.sn>h.sn)&&o&&h.level===o.level){const v=s[g+1];h.sn<a&&this.fragmentTracker.getState(v)!==Ia.OK?h=v:h=null}}return h}synchronizeToLiveEdge(t){const{config:n,media:r}=this;if(!r)return;const i=this.hls.liveSyncPosition,o=r.currentTime,s=t.fragments[0].start,a=t.edge,l=o>=s-n.maxFragLookUpTolerance&&o<=a;if(i!==null&&r.duration>i&&(o<i||!l)){const c=n.liveMaxLatencyDuration!==void 0?n.liveMaxLatencyDuration:n.liveMaxLatencyDurationCount*t.targetduration;(!l&&r.readyState<4||o<a-c)&&(this.loadedmetadata||(this.nextLoadPosition=i),r.readyState&&(this.warn(`Playback: ${o.toFixed(3)} is located too far from the end of live sliding playlist: ${a}, reset currentTime to : ${i.toFixed(3)}`),r.currentTime=i))}}alignPlaylists(t,n,r){const i=t.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;const o=t.fragments[0].start,s=!n,a=t.alignedSliding&&kn(o);if(s||!a&&!o){const{fragPrevious:l}=this;Fzn(l,r,t);const c=t.fragments[0].start;return this.log(`Live playlist sliding: ${c.toFixed(2)} start-sn: ${n?n.startSN:"na"}->${t.startSN} prev-sn: ${l?l.sn:"na"} fragments: ${i}`),c}return o}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,t.partTarget*3)}setStartPosition(t,n){let r=this.startPosition;if(r<n&&(r=-1),r===-1||this.lastCurrentTime===-1){const i=this.startTimeOffset!==null,o=i?this.startTimeOffset:t.startTimeOffset;o!==null&&kn(o)?(r=n+o,o<0&&(r+=t.totalduration),r=Math.min(Math.max(n,r),n+t.totalduration),this.log(`Start time offset ${o} found in ${i?"multivariant":"media"} playlist, adjust startPosition to ${r}`),this.startPosition=r):t.live?r=this.hls.liveSyncPosition||n:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r}getLoadPosition(){const{media:t}=this;let n=0;return this.loadedmetadata&&t?n=t.currentTime:this.nextLoadPosition&&(n=this.nextLoadPosition),n}handleFragLoadAborted(t,n){this.transmuxer&&t.sn!=="initSegment"&&t.stats.aborted&&(this.warn(`Fragment ${t.sn}${n?" part "+n.index:""} of level ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){(!this.fragCurrent||!this.fragContextChanged(t)&&this.state!==Xt.FRAG_LOADING_WAITING_RETRY)&&(this.state=Xt.IDLE)}onFragmentOrKeyLoadError(t,n){if(n.chunkMeta&&!n.frag){const u=this.getCurrentContext(n.chunkMeta);u&&(n.frag=u.frag)}const r=n.frag;if(!r||r.type!==t||!this.levels)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const o=n.details===_t.FRAG_GAP;o&&this.fragmentTracker.fragBuffered(r,!0);const s=n.errorAction,{action:a,retryCount:l=0,retryConfig:c}=s||{};if(s&&a===Ya.RetryRequest&&c){this.resetStartWhenNotLoaded(this.levelLastLoaded);const u=v1e(c,l);this.warn(`Fragment ${r.sn} of ${t} ${r.level} errored with ${n.details}, retrying loading ${l+1}/${c.maxNumRetry} in ${u}ms`),s.resolved=!0,this.retryDate=self.performance.now()+u,this.state=Xt.FRAG_LOADING_WAITING_RETRY}else if(c&&s)if(this.resetFragmentErrors(t),l<c.maxNumRetry)!o&&a!==Ya.RemoveAlternatePermanently&&(s.resolved=!0);else{bt.warn(`${n.details} reached or exceeded max retry (${l})`);return}else(s==null?void 0:s.action)===Ya.SendAlternateToPenaltyBox?this.state=Xt.WAITING_LEVEL:this.state=Xt.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(t){if(this.state===Xt.PARSING||this.state===Xt.PARSED){const n=t.frag,r=t.parent,i=this.getFwdBufferInfo(this.mediaBuffer,r),o=i&&i.len>.5;o&&this.reduceMaxBufferLength(i.len,(n==null?void 0:n.duration)||10);const s=!o;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${r} buffer`),n&&(this.fragmentTracker.removeFragment(n),this.nextLoadPosition=n.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(t){t===fr.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Xt.STOPPED&&(this.state=Xt.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const i=xo.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,i,r),this.state===Xt.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Xt.IDLE}resetStartWhenNotLoaded(t){if(!this.loadedmetadata){this.startFragRequested=!1;const n=t?t.details:null;n!=null&&n.live?(this.startPosition=-1,this.setStartPosition(n,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.warn(`The loading context changed while buffering fragment ${t.sn} of level ${t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,n,r,i){var o;const s=r.details;if(!s){this.warn("level.details undefined");return}if(!Object.keys(t.elementaryStreams).reduce((l,c)=>{const u=t.elementaryStreams[c];if(u){const f=u.endPTS-u.startPTS;if(f<=0)return this.warn(`Could not parse fragment ${t.sn} ${c} duration reliably (${f})`),l||!1;const h=i?0:HZe(s,t,u.startPTS,u.endPTS,u.startDTS,u.endDTS);return this.hls.trigger(Se.LEVEL_PTS_UPDATED,{details:s,level:r,drift:h,type:c,frag:t,start:u.startPTS,end:u.endPTS}),!0}return l},!1)&&((o=this.transmuxer)==null?void 0:o.error)===null){const l=new Error(`Found no media in fragment ${t.sn} of level ${t.level} resetting transmuxer to fallback to playlist timing`);if(r.fragmentError===0&&(r.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)),this.warn(l.message),this.hls.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.FRAG_PARSING_ERROR,fatal:!1,error:l,frag:t,reason:`Found no media in msn ${t.sn} of level "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=Xt.PARSED,this.hls.trigger(Se.FRAG_PARSED,{frag:t,part:n})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(t){t.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(t){const n=this._state;n!==t&&(this._state=t,this.log(`${n}->${t}`))}get state(){return this._state}}class KZe{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:n}=this;let r;if(t.length)t.length===1?r=t[0]:r=Wzn(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function Wzn(e,t){const n=new Uint8Array(t);let r=0;for(let i=0;i<e.length;i++){const o=e[i];n.set(o,r),r+=o.length}return n}function Uzn(){return typeof __HLS_WORKER_BUNDLE__=="function"}function qzn(){const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e);return{worker:new self.Worker(t),objectURL:t}}function Kzn(e){const t=new self.URL(e,self.location.href).href;return{worker:new self.Worker(t),scriptURL:t}}function jp(e="",t=9e4){return{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}class w1e{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(t,n,r,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(t){this.initPTS=t,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(t,n){return!1}appendFrame(t,n,r){}demux(t,n){this.cachedData&&(t=Jf(this.cachedData,t),this.cachedData=null);let r=VT(t,0),i=r?r.length:0,o;const s=this._audioTrack,a=this._id3Track,l=r?m1e(r):void 0,c=t.length;for((this.basePTS===null||this.frameIndex===0&&kn(l))&&(this.basePTS=Yzn(l,n,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:eg.audioId3,duration:Number.POSITIVE_INFINITY});i<c;){if(this.canParse(t,i)){const u=this.appendFrame(s,t,i);u?(this.frameIndex++,this.lastPTS=u.sample.pts,i+=u.length,o=i):i=c}else mkn(t,i)?(r=VT(t,i),a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:eg.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,o=i):i++;if(i===c&&o!==c){const u=cC(t,o);this.cachedData?this.cachedData=Jf(this.cachedData,u):this.cachedData=u}}return{audioTrack:s,videoTrack:jp(),id3Track:a,textTrack:jp()}}demuxSampleAes(t,n,r){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(t){const n=this.cachedData;return n&&(this.cachedData=null,this.demux(n,0)),{audioTrack:this._audioTrack,videoTrack:jp(),id3Track:this._id3Track,textTrack:jp()}}destroy(){}}const Yzn=(e,t,n)=>{if(kn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};function Xzn(e,t,n,r){let i,o,s,a;const l=navigator.userAgent.toLowerCase(),c=r,u=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=((t[n+2]&192)>>>6)+1;const f=(t[n+2]&60)>>>2;if(f>u.length-1){const h=new Error(`invalid ADTS sampling index:${f}`);e.emit(Se.ERROR,Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.FRAG_PARSING_ERROR,fatal:!0,error:h,reason:h.message});return}return s=(t[n+2]&1)<<2,s|=(t[n+3]&192)>>>6,bt.log(`manifest codec:${r}, ADTS type:${i}, samplingIndex:${f}`),/firefox/i.test(l)?f>=6?(i=5,a=new Array(4),o=f-3):(i=2,a=new Array(2),o=f):l.indexOf("android")!==-1?(i=2,a=new Array(2),o=f):(i=5,a=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&f>=6?o=f-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(f>=6&&s===1||/vivaldi/i.test(l))||!r&&s===1)&&(i=2,a=new Array(2)),o=f)),a[0]=i<<3,a[0]|=(f&14)>>1,a[1]|=(f&1)<<7,a[1]|=s<<3,i===5&&(a[1]|=(o&14)>>1,a[2]=(o&1)<<7,a[2]|=8,a[3]=0),{config:a,samplerate:u[f],channelCount:s,codec:"mp4a.40."+i,manifestCodec:c}}function YZe(e,t){return e[t]===255&&(e[t+1]&246)===240}function XZe(e,t){return e[t+1]&1?7:9}function x1e(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function Qzn(e,t){return t+5<e.length}function AB(e,t){return t+1<e.length&&YZe(e,t)}function Zzn(e,t){return Qzn(e,t)&&YZe(e,t)&&x1e(e,t)<=e.length-t}function Jzn(e,t){if(AB(e,t)){const n=XZe(e,t);if(t+n>=e.length)return!1;const r=x1e(e,t);if(r<=n)return!1;const i=t+r;return i===e.length||AB(e,i)}return!1}function QZe(e,t,n,r,i){if(!e.samplerate){const o=Xzn(t,n,r,i);if(!o)return;e.config=o.config,e.samplerate=o.samplerate,e.channelCount=o.channelCount,e.codec=o.codec,e.manifestCodec=o.manifestCodec,bt.log(`parsed codec:${e.codec}, rate:${o.samplerate}, channels:${o.channelCount}`)}}function ZZe(e){return 1024*9e4/e}function eBn(e,t){const n=XZe(e,t);if(t+n<=e.length){const r=x1e(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function JZe(e,t,n,r,i){const o=ZZe(e.samplerate),s=r+i*o,a=eBn(t,n);let l;if(a){const{frameLength:f,headerLength:h}=a,g=h+f,p=Math.max(0,n+g-t.length);p?(l=new Uint8Array(g-h),l.set(t.subarray(n+h,t.length),0)):l=t.subarray(n+h,n+g);const m={unit:l,pts:s};return p||e.samples.push(m),{sample:m,length:g,missing:p}}const c=t.length-n;return l=new Uint8Array(c),l.set(t.subarray(n,t.length),0),{sample:{unit:l,pts:s},length:c,missing:-1}}let qD=null;const tBn=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],nBn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],rBn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],iBn=[0,1,1,4];function eJe(e,t,n,r,i){if(n+24>t.length)return;const o=tJe(t,n);if(o&&n+o.frameLength<=t.length){const s=o.samplesPerFrame*9e4/o.sampleRate,a=r+i*s,l={unit:t.subarray(n,n+o.frameLength),pts:a,dts:a};return e.config=[],e.channelCount=o.channelCount,e.samplerate=o.sampleRate,e.samples.push(l),{sample:l,length:o.frameLength,missing:0}}}function tJe(e,t){const n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,o=e[t+2]>>2&3;if(n!==1&&i!==0&&i!==15&&o!==3){const s=e[t+2]>>1&1,a=e[t+3]>>6,l=n===3?3-r:r===3?3:4,c=tBn[l*14+i-1]*1e3,f=nBn[(n===3?0:n===2?1:2)*3+o],h=a===3?1:2,g=rBn[n][r],p=iBn[r],m=g*8*p,v=Math.floor(g*c/f+s)*p;if(qD===null){const b=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);qD=b?parseInt(b[1]):0}return!!qD&&qD<=87&&r===2&&c>=224e3&&a===0&&(e[t+3]=e[t+3]|128),{sampleRate:f,channelCount:h,frameLength:v,samplesPerFrame:m}}}function E1e(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function nJe(e,t){return t+1<e.length&&E1e(e,t)}function oBn(e,t){return E1e(e,t)&&4<=e.length-t}function rJe(e,t){if(t+1<e.length&&E1e(e,t)){const r=tJe(e,t);let i=4;r!=null&&r.frameLength&&(i=r.frameLength);const o=t+i;return o===e.length||nJe(e,o)}return!1}class sBn extends w1e{constructor(t,n){super(),this.observer=void 0,this.config=void 0,this.observer=t,this.config=n}resetInitSegment(t,n,r,i){super.resetInitSegment(t,n,r,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;const n=VT(t,0);let r=(n==null?void 0:n.length)||0;if(rJe(t,r))return!1;for(let i=t.length;r<i;r++)if(Jzn(t,r))return bt.log("ADTS sync word found !"),!0;return!1}canParse(t,n){return Zzn(t,n)}appendFrame(t,n,r){QZe(t,this.observer,n,r,t.manifestCodec);const i=JZe(t,n,r,this.basePTS,this.frameIndex);if(i&&i.missing===0)return i}}const aBn=/\/emsg[-/]ID3/i;class lBn{constructor(t,n){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=n}resetTimeStamp(){}resetInitSegment(t,n,r,i){const o=this.videoTrack=jp("video",1),s=this.audioTrack=jp("audio",1),a=this.txtTrack=jp("text",1);if(this.id3Track=jp("id3",1),this.timeOffset=0,!(t!=null&&t.byteLength))return;const l=AZe(t);if(l.video){const{id:c,timescale:u,codec:f}=l.video;o.id=c,o.timescale=a.timescale=u,o.codec=f}if(l.audio){const{id:c,timescale:u,codec:f}=l.audio;s.id=c,s.timescale=u,s.codec=f}a.id=MZe.text,o.sampleDuration=0,o.duration=s.duration=i}resetContiguity(){this.remainderData=null}static probe(t){return Rkn(t)}demux(t,n){this.timeOffset=n;let r=t;const i=this.videoTrack,o=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Jf(this.remainderData,t));const a=Akn(r);this.remainderData=a.remainder,i.samples=a.valid||new Uint8Array}else i.samples=r;const s=this.extractID3Track(i,n);return o.samples=hEe(n,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const t=this.timeOffset,n=this.videoTrack,r=this.txtTrack;n.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(n,this.timeOffset);return r.samples=hEe(t,n),{videoTrack:n,audioTrack:jp(),id3Track:i,textTrack:jp()}}extractID3Track(t,n){const r=this.id3Track;if(t.samples.length){const i=Nr(t.samples,["emsg"]);i&&i.forEach(o=>{const s=Fkn(o);if(aBn.test(s.schemeIdUri)){const a=kn(s.presentationTime)?s.presentationTime/s.timeScale:n+s.presentationTimeDelta/s.timeScale;let l=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;l<=.001&&(l=Number.POSITIVE_INFINITY);const c=s.payload;r.samples.push({data:c,len:c.byteLength,dts:a,pts:a,type:eg.emsg,duration:l})}})}return r}demuxSampleAes(t,n,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const iJe=(e,t)=>{let n=0,r=5;t+=r;const i=new Uint32Array(1),o=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=e[t];const a=Math.min(r,8),l=8-a;o[0]=4278190080>>>24+l<<l,i[0]=(s[0]&o[0])>>l,n=n?n<<a|i[0]:i[0],t+=1,r-=a}return n};class cBn extends w1e{constructor(t){super(),this.observer=void 0,this.observer=t}resetInitSegment(t,n,r,i){super.resetInitSegment(t,n,r,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}canParse(t,n){return n+64<t.length}appendFrame(t,n,r){const i=oJe(t,n,r,this.basePTS,this.frameIndex);if(i!==-1)return{sample:t.samples[t.samples.length-1],length:i,missing:0}}static probe(t){if(!t)return!1;const n=VT(t,0);if(!n)return!1;const r=n.length;return t[r]===11&&t[r+1]===119&&m1e(n)!==void 0&&iJe(t,r)<16}}function oJe(e,t,n,r,i){if(n+8>t.length||t[n]!==11||t[n+1]!==119)return-1;const o=t[n+4]>>6;if(o>=3)return-1;const a=[48e3,44100,32e3][o],l=t[n+4]&63,u=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][l*3+o]*2;if(n+u>t.length)return-1;const f=t[n+6]>>5;let h=0;f===2?h+=2:(f&1&&f!==1&&(h+=2),f&4&&(h+=2));const g=(t[n+6]<<8|t[n+7])>>12-h&1,m=[2,1,2,3,3,4,4,5][f]+g,v=t[n+5]>>3,C=t[n+5]&7,y=new Uint8Array([o<<6|v<<1|C>>2,(C&3)<<6|f<<3|g<<2|l>>4,l<<4&224]),b=1536/a*9e4,S=r+i*b,w=t.subarray(n,n+u);return e.config=y,e.channelCount=m,e.samplerate=a,e.samples.push({unit:w,pts:S}),u}class uBn{constructor(){this.VideoSample=null}createVideoSample(t,n,r,i){return{key:t,frame:!1,pts:n,dts:r,units:[],debug:i,length:0}}getLastNalUnit(t){var n;let r=this.VideoSample,i;if((!r||r.units.length===0)&&(r=t[t.length-1]),(n=r)!=null&&n.units){const o=r.units;i=o[o.length-1]}return i}pushAccessUnit(t,n){if(t.units.length&&t.frame){if(t.pts===void 0){const r=n.samples,i=r.length;if(i){const o=r[i-1];t.pts=o.pts,t.dts=o.dts}else{n.dropped++;return}}n.samples.push(t)}t.debug.length&&bt.log(t.pts+"/"+t.dts+":"+t.debug)}}class HEe{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const t=this.data,n=this.bytesAvailable,r=t.byteLength-n,i=new Uint8Array(4),o=Math.min(4,n);if(o===0)throw new Error("no bytes available");i.set(t.subarray(r,r+o)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=o*8,this.bytesAvailable-=o}skipBits(t){let n;t=Math.min(t,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,n=t>>3,t-=n<<3,this.bytesAvailable-=n,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let n=Math.min(this.bitsAvailable,t);const r=this.word>>>32-n;if(t>32&&bt.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=n,this.bitsAvailable>0)this.word<<=n;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return n=t-n,n>0&&this.bitsAvailable?r<<n|this.readBits(n):r}skipLZ(){let t;for(t=0;t<this.bitsAvailable;++t)if(this.word&2147483648>>>t)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(t){let n=8,r=8,i;for(let o=0;o<t;o++)r!==0&&(i=this.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(){let t=0,n=0,r=0,i=0,o,s,a;const l=this.readUByte.bind(this),c=this.readBits.bind(this),u=this.readUEG.bind(this),f=this.readBoolean.bind(this),h=this.skipBits.bind(this),g=this.skipEG.bind(this),p=this.skipUEG.bind(this),m=this.skipScalingList.bind(this);l();const v=l();if(c(5),h(3),l(),p(),v===100||v===110||v===122||v===244||v===44||v===83||v===86||v===118||v===128){const x=u();if(x===3&&h(1),p(),p(),h(1),f())for(s=x!==3?8:12,a=0;a<s;a++)f()&&(a<6?m(16):m(64))}p();const C=u();if(C===0)u();else if(C===1)for(h(1),g(),g(),o=u(),a=0;a<o;a++)g();p(),h(1);const y=u(),b=u(),S=c(1);S===0&&h(1),h(1),f()&&(t=u(),n=u(),r=u(),i=u());let w=[1,1];if(f()&&f())switch(l()){case 1:w=[1,1];break;case 2:w=[12,11];break;case 3:w=[10,11];break;case 4:w=[16,11];break;case 5:w=[40,33];break;case 6:w=[24,11];break;case 7:w=[20,11];break;case 8:w=[32,11];break;case 9:w=[80,33];break;case 10:w=[18,11];break;case 11:w=[15,11];break;case 12:w=[64,33];break;case 13:w=[160,99];break;case 14:w=[4,3];break;case 15:w=[3,2];break;case 16:w=[2,1];break;case 255:{w=[l()<<8|l(),l()<<8|l()];break}}return{width:Math.ceil((y+1)*16-t*2-n*2),height:(2-S)*(b+1)*16-(S?2:4)*(r+i),pixelRatio:w}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class dBn extends uBn{parseAVCPES(t,n,r,i,o){const s=this.parseAVCNALu(t,r.data);let a=this.VideoSample,l,c=!1;r.data=null,a&&s.length&&!t.audFound&&(this.pushAccessUnit(a,t),a=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"")),s.forEach(u=>{var f;switch(u.type){case 1:{let m=!1;l=!0;const v=u.data;if(c&&v.length>4){const C=new HEe(v).readSliceType();(C===2||C===4||C===7||C===9)&&(m=!0)}if(m){var h;(h=a)!=null&&h.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null)}a||(a=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),a.frame=!0,a.key=m;break}case 5:l=!0,(f=a)!=null&&f.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),a.key=!0,a.frame=!0;break;case 6:{l=!0,LZe(u.data,1,r.pts,n.samples);break}case 7:{var g,p;l=!0,c=!0;const m=u.data,C=new HEe(m).readSPS();if(!t.sps||t.width!==C.width||t.height!==C.height||((g=t.pixelRatio)==null?void 0:g[0])!==C.pixelRatio[0]||((p=t.pixelRatio)==null?void 0:p[1])!==C.pixelRatio[1]){t.width=C.width,t.height=C.height,t.pixelRatio=C.pixelRatio,t.sps=[m],t.duration=o;const y=m.subarray(1,4);let b="avc1.";for(let S=0;S<3;S++){let w=y[S].toString(16);w.length<2&&(w="0"+w),b+=w}t.codec=b}break}case 8:l=!0,t.pps=[u.data];break;case 9:l=!0,t.audFound=!0,a&&this.pushAccessUnit(a,t),a=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"");break;case 12:l=!0;break;default:l=!1,a&&(a.debug+="unknown NAL "+u.type+" ");break}a&&l&&a.units.push(u)}),i&&a&&(this.pushAccessUnit(a,t),this.VideoSample=null)}parseAVCNALu(t,n){const r=n.byteLength;let i=t.naluState||0;const o=i,s=[];let a=0,l,c,u,f=-1,h=0;for(i===-1&&(f=0,h=n[0]&31,i=0,a=1);a<r;){if(l=n[a++],!i){i=l?0:1;continue}if(i===1){i=l?0:2;continue}if(!l)i=3;else if(l===1){if(c=a-i-1,f>=0){const g={data:n.subarray(f,c),type:h};s.push(g)}else{const g=this.getLastNalUnit(t.samples);g&&(o&&a<=4-o&&g.state&&(g.data=g.data.subarray(0,g.data.byteLength-o)),c>0&&(g.data=Jf(g.data,n.subarray(0,c)),g.state=0))}a<r?(u=n[a]&31,f=a,h=u,i=0):i=-1}else i=0}if(f>=0&&i>=0){const g={data:n.subarray(f,r),type:h,state:i};s.push(g)}if(s.length===0){const g=this.getLastNalUnit(t.samples);g&&(g.data=Jf(g.data,n))}return t.naluState=i,s}}class fBn{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new b1e(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(t,n,r){const i=t[n].unit;if(i.length<=16)return;const o=i.subarray(16,i.length-i.length%16),s=o.buffer.slice(o.byteOffset,o.byteOffset+o.length);this.decryptBuffer(s).then(a=>{const l=new Uint8Array(a);i.set(l,16),this.decrypter.isSync()||this.decryptAacSamples(t,n+1,r)})}decryptAacSamples(t,n,r){for(;;n++){if(n>=t.length){r();return}if(!(t[n].unit.length<32)&&(this.decryptAacSample(t,n,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const n=Math.floor((t.length-48)/160)*16+16,r=new Int8Array(n);let i=0;for(let o=32;o<t.length-16;o+=160,i+=16)r.set(t.subarray(o,o+16),i);return r}getAvcDecryptedUnit(t,n){const r=new Uint8Array(n);let i=0;for(let o=32;o<t.length-16;o+=160,i+=16)t.set(r.subarray(i,i+16),o);return t}decryptAvcSample(t,n,r,i,o){const s=FZe(o.data),a=this.getAvcEncryptedData(s);this.decryptBuffer(a.buffer).then(l=>{o.data=this.getAvcDecryptedUnit(s,l),this.decrypter.isSync()||this.decryptAvcSamples(t,n,r+1,i)})}decryptAvcSamples(t,n,r,i){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,r=0){if(n>=t.length){i();return}const o=t[n].units;for(;!(r>=o.length);r++){const s=o[r];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(t,n,r,i,s),!this.decrypter.isSync()))return}}}}const ya=188;class R2{constructor(t,n,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.videoParser=new dBn}static probe(t){const n=R2.syncOffset(t);return n>0&&bt.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(t){const n=t.length;let r=Math.min(ya*5,n-ya)+1,i=0;for(;i<r;){let o=!1,s=-1,a=0;for(let l=i;l<n;l+=ya)if(t[l]===71&&(n-l===ya||t[l+ya]===71)){if(a++,s===-1&&(s=l,s!==0&&(r=Math.min(s+ya*99,t.length-ya)+1)),o||(o=rce(t,l)===0),o&&a>1&&(s===0&&a>2||l+ya>r))return s}else{if(a)return-1;break}i++}return-1}static createTrack(t,n){return{container:t==="video"||t==="audio"?"video/mp2t":void 0,type:t,id:MZe[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:t==="audio"?n:void 0}}resetInitSegment(t,n,r,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=R2.createTrack("video"),this._audioTrack=R2.createTrack("audio",i),this._id3Track=R2.createTrack("id3"),this._txtTrack=R2.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r,this._duration=i}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:n,_id3Track:r}=this;t&&(t.pesData=null),n&&(n.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,n,r=!1,i=!1){r||(this.sampleAes=null);let o;const s=this._videoTrack,a=this._audioTrack,l=this._id3Track,c=this._txtTrack;let u=s.pid,f=s.pesData,h=a.pid,g=l.pid,p=a.pesData,m=l.pesData,v=null,C=this.pmtParsed,y=this._pmtId,b=t.length;if(this.remainderData&&(t=Jf(this.remainderData,t),b=t.length,this.remainderData=null),b<ya&&!i)return this.remainderData=t,{audioTrack:a,videoTrack:s,id3Track:l,textTrack:c};const S=Math.max(0,R2.syncOffset(t));b-=(b-S)%ya,b<t.byteLength&&!i&&(this.remainderData=new Uint8Array(t.buffer,b,t.buffer.byteLength-b));let w=0;for(let E=S;E<b;E+=ya)if(t[E]===71){const R=!!(t[E+1]&64),O=rce(t,E),T=(t[E+3]&48)>>4;let M;if(T>1){if(M=E+5+t[E+4],M===E+ya)continue}else M=E+4;switch(O){case u:R&&(f&&(o=m5(f))&&this.videoParser.parseAVCPES(s,c,o,!1,this._duration),f={data:[],size:0}),f&&(f.data.push(t.subarray(M,E+ya)),f.size+=E+ya-M);break;case h:if(R){if(p&&(o=m5(p)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,o);break;case"mp3":this.parseMPEGPES(a,o);break;case"ac3":this.parseAC3PES(a,o);break}p={data:[],size:0}}p&&(p.data.push(t.subarray(M,E+ya)),p.size+=E+ya-M);break;case g:R&&(m&&(o=m5(m))&&this.parseID3PES(l,o),m={data:[],size:0}),m&&(m.data.push(t.subarray(M,E+ya)),m.size+=E+ya-M);break;case 0:R&&(M+=t[M]+1),y=this._pmtId=hBn(t,M);break;case y:{R&&(M+=t[M]+1);const _=gBn(t,M,this.typeSupported,r,this.observer);u=_.videoPid,u>0&&(s.pid=u,s.segmentCodec=_.segmentVideoCodec),h=_.audioPid,h>0&&(a.pid=h,a.segmentCodec=_.segmentAudioCodec),g=_.id3Pid,g>0&&(l.pid=g),v!==null&&!C&&(bt.warn(`MPEG-TS PMT found at ${E} after unknown PID '${v}'. Backtracking to sync byte @${S} to parse all TS packets.`),v=null,E=S-188),C=this.pmtParsed=!0;break}case 17:case 8191:break;default:v=O;break}}else w++;w>0&&DB(this.observer,new Error(`Found ${w} TS packet/s that do not start with 0x47`)),s.pesData=f,a.pesData=p,l.pesData=m;const x={audioTrack:a,videoTrack:s,id3Track:l,textTrack:c};return i&&this.extractRemainingSamples(x),x}flush(){const{remainderData:t}=this;this.remainderData=null;let n;return t?n=this.demux(t,-1,!1,!0):n={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(n),this.sampleAes?this.decrypt(n,this.sampleAes):n}extractRemainingSamples(t){const{audioTrack:n,videoTrack:r,id3Track:i,textTrack:o}=t,s=r.pesData,a=n.pesData,l=i.pesData;let c;if(s&&(c=m5(s))?(this.videoParser.parseAVCPES(r,o,c,!0,this._duration),r.pesData=null):r.pesData=s,a&&(c=m5(a))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,c);break;case"mp3":this.parseMPEGPES(n,c);break;case"ac3":this.parseAC3PES(n,c);break}n.pesData=null}else a!=null&&a.size&&bt.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=a;l&&(c=m5(l))?(this.parseID3PES(i,c),i.pesData=null):i.pesData=l}demuxSampleAes(t,n,r){const i=this.demux(t,r,!0,!this.config.progressive),o=this.sampleAes=new fBn(this.observer,this.config,n);return this.decrypt(i,o)}decrypt(t,n){return new Promise(r=>{const{audioTrack:i,videoTrack:o}=t;i.samples&&i.segmentCodec==="aac"?n.decryptAacSamples(i.samples,0,()=>{o.samples?n.decryptAvcSamples(o.samples,0,0,()=>{r(t)}):r(t)}):o.samples&&n.decryptAvcSamples(o.samples,0,0,()=>{r(t)})})}destroy(){this._duration=0}parseAACPES(t,n){let r=0;const i=this.aacOverFlow;let o=n.data;if(i){this.aacOverFlow=null;const f=i.missing,h=i.sample.unit.byteLength;if(f===-1)o=Jf(i.sample.unit,o);else{const g=h-f;i.sample.unit.set(o.subarray(0,f),g),t.samples.push(i.sample),r=i.missing}}let s,a;for(s=r,a=o.length;s<a-1&&!AB(o,s);s++);if(s!==r){let f;const h=s<a-1;if(h?f=`AAC PES did not start with ADTS header,offset:${s}`:f="No ADTS header found in AAC PES",DB(this.observer,new Error(f),h),!h)return}QZe(t,this.observer,o,s,this.audioCodec);let l;if(n.pts!==void 0)l=n.pts;else if(i){const f=ZZe(t.samplerate);l=i.sample.pts+f}else{bt.warn("[tsdemuxer]: AAC PES unknown PTS");return}let c=0,u;for(;s<a;)if(u=JZe(t,o,s,l,c),s+=u.length,u.missing){this.aacOverFlow=u;break}else for(c++;s<a-1&&!AB(o,s);s++);}parseMPEGPES(t,n){const r=n.data,i=r.length;let o=0,s=0;const a=n.pts;if(a===void 0){bt.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<i;)if(nJe(r,s)){const l=eJe(t,r,s,a,o);if(l)s+=l.length,o++;else break}else s++}parseAC3PES(t,n){{const r=n.data,i=n.pts;if(i===void 0){bt.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const o=r.length;let s=0,a=0,l;for(;a<o&&(l=oJe(t,r,a,i,s++))>0;)a+=l}}parseID3PES(t,n){if(n.pts===void 0){bt.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=Vs({},n,{type:this._videoTrack?eg.emsg:eg.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function rce(e,t){return((e[t+1]&31)<<8)+e[t+2]}function hBn(e,t){return(e[t+10]&31)<<8|e[t+11]}function gBn(e,t,n,r,i){const o={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=(e[t+1]&15)<<8|e[t+2],a=t+3+s-4,l=(e[t+10]&15)<<8|e[t+11];for(t+=12+l;t<a;){const c=rce(e,t),u=(e[t+3]&15)<<8|e[t+4];switch(e[t]){case 207:if(!r){Xte("ADTS AAC");break}case 15:o.audioPid===-1&&(o.audioPid=c);break;case 21:o.id3Pid===-1&&(o.id3Pid=c);break;case 219:if(!r){Xte("H.264");break}case 27:o.videoPid===-1&&(o.videoPid=c,o.segmentVideoCodec="avc");break;case 3:case 4:!n.mpeg&&!n.mp3?bt.log("MPEG audio found, not supported in this browser"):o.audioPid===-1&&(o.audioPid=c,o.segmentAudioCodec="mp3");break;case 193:if(!r){Xte("AC-3");break}case 129:n.ac3?o.audioPid===-1&&(o.audioPid=c,o.segmentAudioCodec="ac3"):bt.log("AC-3 audio found, not supported in this browser");break;case 6:if(o.audioPid===-1&&u>0){let f=t+5,h=u;for(;h>2;){switch(e[f]){case 106:n.ac3!==!0?bt.log("AC-3 audio found, not supported in this browser for now"):(o.audioPid=c,o.segmentAudioCodec="ac3");break}const p=e[f+1]+2;f+=p,h-=p}}break;case 194:case 135:return DB(i,new Error("Unsupported EC-3 in M2TS found")),o;case 36:return DB(i,new Error("Unsupported HEVC in M2TS found")),o}t+=u+5}return o}function DB(e,t,n){bt.warn(`parsing error: ${t.message}`),e.emit(Se.ERROR,Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function Xte(e){bt.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function m5(e){let t=0,n,r,i,o,s;const a=e.data;if(!e||e.size===0)return null;for(;a[0].length<19&&a.length>1;)a[0]=Jf(a[0],a[1]),a.splice(1,1);if(n=a[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>e.size-6)return null;const c=n[7];c&192&&(o=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,c&64?(s=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,o-s>60*9e4&&(bt.warn(`${Math.round((o-s)/9e4)}s delta between PTS and DTS, align them`),o=s)):s=o),i=n[8];let u=i+9;if(e.size<=u)return null;e.size-=u;const f=new Uint8Array(e.size);for(let h=0,g=a.length;h<g;h++){n=a[h];let p=n.byteLength;if(u)if(u>p){u-=p;continue}else n=n.subarray(u),p-=u,u=0;f.set(n,t),t+=p}return r&&(r-=i+3),{data:f,pts:o,dts:s,len:r}}return null}class pBn extends w1e{resetInitSegment(t,n,r,i){super.resetInitSegment(t,n,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;const n=VT(t,0);let r=(n==null?void 0:n.length)||0;if(n&&t[r]===11&&t[r+1]===119&&m1e(n)!==void 0&&iJe(t,r)<=16)return!1;for(let i=t.length;r<i;r++)if(rJe(t,r))return bt.log("MPEG Audio sync word found !"),!0;return!1}canParse(t,n){return oBn(t,n)}appendFrame(t,n,r){if(this.basePTS!==null)return eJe(t,n,r,this.basePTS,this.frameIndex)}}class jEe{static getSilentFrame(t,n){switch(t){case"mp4a.40.2":if(n===1)return new Uint8Array([0,200,0,128,35,128]);if(n===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(n===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(n===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(n===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(n===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(n===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const Bv=Math.pow(2,32)-1;class Et{static init(){Et.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let t;for(t in Et.types)Et.types.hasOwnProperty(t)&&(Et.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);Et.HDLR_TYPES={video:n,audio:r};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),o=new Uint8Array([0,0,0,0,0,0,0,0]);Et.STTS=Et.STSC=Et.STCO=o,Et.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Et.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Et.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Et.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);Et.FTYP=Et.box(Et.types.ftyp,s,l,s,a),Et.DINF=Et.box(Et.types.dinf,Et.box(Et.types.dref,i))}static box(t,...n){let r=8,i=n.length;const o=i;for(;i--;)r+=n[i].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(t,4),i=0,r=8;i<o;i++)s.set(n[i],r),r+=n[i].byteLength;return s}static hdlr(t){return Et.box(Et.types.hdlr,Et.HDLR_TYPES[t])}static mdat(t){return Et.box(Et.types.mdat,t)}static mdhd(t,n){n*=t;const r=Math.floor(n/(Bv+1)),i=Math.floor(n%(Bv+1));return Et.box(Et.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(t){return Et.box(Et.types.mdia,Et.mdhd(t.timescale,t.duration),Et.hdlr(t.type),Et.minf(t))}static mfhd(t){return Et.box(Et.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]))}static minf(t){return t.type==="audio"?Et.box(Et.types.minf,Et.box(Et.types.smhd,Et.SMHD),Et.DINF,Et.stbl(t)):Et.box(Et.types.minf,Et.box(Et.types.vmhd,Et.VMHD),Et.DINF,Et.stbl(t))}static moof(t,n,r){return Et.box(Et.types.moof,Et.mfhd(t),Et.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=Et.trak(t[n]);return Et.box.apply(null,[Et.types.moov,Et.mvhd(t[0].timescale,t[0].duration)].concat(r).concat(Et.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=Et.trex(t[n]);return Et.box.apply(null,[Et.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Bv+1)),i=Math.floor(n%(Bv+1)),o=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Et.box(Et.types.mvhd,o)}static sdtp(t){const n=t.samples||[],r=new Uint8Array(4+n.length);let i,o;for(i=0;i<n.length;i++)o=n[i].flags,r[i+4]=o.dependsOn<<4|o.isDependedOn<<2|o.hasRedundancy;return Et.box(Et.types.sdtp,r)}static stbl(t){return Et.box(Et.types.stbl,Et.stsd(t),Et.box(Et.types.stts,Et.STTS),Et.box(Et.types.stsc,Et.STSC),Et.box(Et.types.stsz,Et.STSZ),Et.box(Et.types.stco,Et.STCO))}static avc1(t){let n=[],r=[],i,o,s;for(i=0;i<t.sps.length;i++)o=t.sps[i],s=o.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(o));for(i=0;i<t.pps.length;i++)o=t.pps[i],s=o.byteLength,r.push(s>>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(o));const a=Et.box(Et.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|t.sps.length].concat(n).concat([t.pps.length]).concat(r))),l=t.width,c=t.height,u=t.pixelRatio[0],f=t.pixelRatio[1];return Et.box(Et.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,l&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,Et.box(Et.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Et.box(Et.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,u&255,f>>24,f>>16&255,f>>8&255,f&255])))}static esds(t){const n=t.config.length;return new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(t.config).concat([6,1,2]))}static audioStsd(t){const n=t.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,n>>8&255,n&255,0,0])}static mp4a(t){return Et.box(Et.types.mp4a,Et.audioStsd(t),Et.box(Et.types.esds,Et.esds(t)))}static mp3(t){return Et.box(Et.types[".mp3"],Et.audioStsd(t))}static ac3(t){return Et.box(Et.types["ac-3"],Et.audioStsd(t),Et.box(Et.types.dac3,t.config))}static stsd(t){return t.type==="audio"?t.segmentCodec==="mp3"&&t.codec==="mp3"?Et.box(Et.types.stsd,Et.STSD,Et.mp3(t)):t.segmentCodec==="ac3"?Et.box(Et.types.stsd,Et.STSD,Et.ac3(t)):Et.box(Et.types.stsd,Et.STSD,Et.mp4a(t)):Et.box(Et.types.stsd,Et.STSD,Et.avc1(t))}static tkhd(t){const n=t.id,r=t.duration*t.timescale,i=t.width,o=t.height,s=Math.floor(r/(Bv+1)),a=Math.floor(r%(Bv+1));return Et.box(Et.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,a>>24,a>>16&255,a>>8&255,a&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,i&255,0,0,o>>8&255,o&255,0,0]))}static traf(t,n){const r=Et.sdtp(t),i=t.id,o=Math.floor(n/(Bv+1)),s=Math.floor(n%(Bv+1));return Et.box(Et.types.traf,Et.box(Et.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),Et.box(Et.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,o&255,s>>24,s>>16&255,s>>8&255,s&255])),Et.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,Et.box(Et.types.trak,Et.tkhd(t),Et.mdia(t))}static trex(t){const n=t.id;return Et.box(Et.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,n){const r=t.samples||[],i=r.length,o=12+16*i,s=new Uint8Array(o);let a,l,c,u,f,h;for(n+=8+o,s.set([t.type==="video"?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),a=0;a<i;a++)l=r[a],c=l.duration,u=l.size,f=l.flags,h=l.cts,s.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,f.isLeading<<2|f.dependsOn,f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|f.isNonSync,f.degradPrio&61440,f.degradPrio&15,h>>>24&255,h>>>16&255,h>>>8&255,h&255],12+16*a);return Et.box(Et.types.trun,s)}static initSegment(t){Et.types||Et.init();const n=Et.moov(t);return Jf(Et.FTYP,n)}}Et.types=void 0;Et.HDLR_TYPES=void 0;Et.STTS=void 0;Et.STSC=void 0;Et.STCO=void 0;Et.STSZ=void 0;Et.VMHD=void 0;Et.SMHD=void 0;Et.STSD=void 0;Et.FTYP=void 0;Et.DINF=void 0;const sJe=9e4;function R1e(e,t,n=1,r=!1){const i=e*t*n;return r?Math.round(i):i}function mBn(e,t,n=1,r=!1){return R1e(e,t,1/n,r)}function oR(e,t=!1){return R1e(e,1e3,1/sJe,t)}function vBn(e,t=1){return R1e(e,sJe,1/t)}const CBn=10*1e3,VEe=1024,yBn=1152,bBn=1536;let v5=null,Qte=null;class ON{constructor(t,n,r,i=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.ISGenerated=!1,v5===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);v5=s?parseInt(s[1]):0}if(Qte===null){const o=navigator.userAgent.match(/Safari\/(\d+)/i);Qte=o?parseInt(o[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(t){bt.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t}resetNextTimestamp(){bt.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){bt.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(t){let n=!1;const r=t[0].pts,i=t.reduce((o,s)=>{let a=s.pts,l=a-o;return l<-4294967296&&(n=!0,a=vf(a,r),l=a-o),l>0?o:a},r);return n&&bt.debug("PTS rollover detected"),i}remux(t,n,r,i,o,s,a,l){let c,u,f,h,g,p,m=o,v=o;const C=t.pid>-1,y=n.pid>-1,b=n.samples.length,S=t.samples.length>0,w=a&&b>0||b>1;if((!C||S)&&(!y||w)||this.ISGenerated||a){if(this.ISGenerated){var E,R,O,T;const D=this.videoTrackConfig;D&&(n.width!==D.width||n.height!==D.height||((E=n.pixelRatio)==null?void 0:E[0])!==((R=D.pixelRatio)==null?void 0:R[0])||((O=n.pixelRatio)==null?void 0:O[1])!==((T=D.pixelRatio)==null?void 0:T[1]))&&this.resetInitSegment()}else f=this.generateIS(t,n,o,s);const M=this.isVideoContiguous;let _=-1,F;if(w&&(_=SBn(n.samples),!M&&this.config.forceKeyFrameOnDiscontinuity))if(p=!0,_>0){bt.warn(`[mp4-remuxer]: Dropped ${_} out of ${b} video samples due to a missing keyframe`);const D=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(_),n.dropped+=_,v+=(n.samples[0].pts-D)/n.inputTimeScale,F=v}else _===-1&&(bt.warn(`[mp4-remuxer]: No keyframe found out of ${b} video samples`),p=!1);if(this.ISGenerated){if(S&&w){const D=this.getVideoStartPts(n.samples),L=(vf(t.samples[0].pts,D)-D)/n.inputTimeScale;m+=Math.max(0,L),v+=Math.max(0,-L)}if(S){if(t.samplerate||(bt.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),f=this.generateIS(t,n,o,s)),u=this.remuxAudio(t,m,this.isAudioContiguous,s,y||w||l===fr.AUDIO?v:void 0),w){const D=u?u.endPTS-u.startPTS:0;n.inputTimeScale||(bt.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),f=this.generateIS(t,n,o,s)),c=this.remuxVideo(n,v,M,D)}}else w&&(c=this.remuxVideo(n,v,M,0));c&&(c.firstKeyFrame=_,c.independent=_!==-1,c.firstKeyFramePTS=F)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=aJe(r,o,this._initPTS,this._initDTS)),i.samples.length&&(h=lJe(i,o,this._initPTS))),{audio:u,video:c,initSegment:f,independent:p,text:h,id3:g}}generateIS(t,n,r,i){const o=t.samples,s=n.samples,a=this.typeSupported,l={},c=this._initPTS;let u=!c||i,f="audio/mp4",h,g,p;if(u&&(h=g=1/0),t.config&&o.length){switch(t.timescale=t.samplerate,t.segmentCodec){case"mp3":a.mpeg?(f="audio/mpeg",t.codec=""):a.mp3&&(t.codec="mp3");break;case"ac3":t.codec="ac-3";break}l.audio={id:"audio",container:f,codec:t.codec,initSegment:t.segmentCodec==="mp3"&&a.mpeg?new Uint8Array(0):Et.initSegment([t]),metadata:{channelCount:t.channelCount}},u&&(p=t.inputTimeScale,!c||p!==c.timescale?h=g=o[0].pts-Math.round(p*r):u=!1)}if(n.sps&&n.pps&&s.length){if(n.timescale=n.inputTimeScale,l.video={id:"main",container:"video/mp4",codec:n.codec,initSegment:Et.initSegment([n]),metadata:{width:n.width,height:n.height}},u)if(p=n.inputTimeScale,!c||p!==c.timescale){const m=this.getVideoStartPts(s),v=Math.round(p*r);g=Math.min(g,vf(s[0].dts,m)-v),h=Math.min(h,m-v)}else u=!1;this.videoTrackConfig={width:n.width,height:n.height,pixelRatio:n.pixelRatio}}if(Object.keys(l).length)return this.ISGenerated=!0,u?(this._initPTS={baseTime:h,timescale:p},this._initDTS={baseTime:g,timescale:p}):h=p=void 0,{tracks:l,initPTS:h,timescale:p}}remuxVideo(t,n,r,i){const o=t.inputTimeScale,s=t.samples,a=[],l=s.length,c=this._initPTS;let u=this.nextAvcDts,f=8,h=this.videoSampleDuration,g,p,m=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,C=!1;if(!r||u===null){const N=n*o,B=s[0].pts-vf(s[0].dts,s[0].pts);v5&&u!==null&&Math.abs(N-B-u)<15e3?r=!0:u=N-B}const y=c.baseTime*o/c.timescale;for(let N=0;N<l;N++){const B=s[N];B.pts=vf(B.pts-y,u),B.dts=vf(B.dts-y,u),B.dts<s[N>0?N-1:N].dts&&(C=!0)}C&&s.sort(function(N,B){const z=N.dts-B.dts,j=N.pts-B.pts;return z||j}),g=s[0].dts,p=s[s.length-1].dts;const b=p-g,S=b?Math.round(b/(l-1)):h||t.inputTimeScale/30;if(r){const N=g-u,B=N>S,z=N<-1;if((B||z)&&(B?bt.warn(`AVC: ${oR(N,!0)} ms (${N}dts) hole between fragments detected at ${n.toFixed(3)}`):bt.warn(`AVC: ${oR(-N,!0)} ms (${N}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!z||u>=s[0].pts||v5)){g=u;const j=s[0].pts-N;if(B)s[0].dts=g,s[0].pts=j;else for(let W=0;W<s.length&&!(s[W].dts>j);W++)s[W].dts-=N,s[W].pts-=N;bt.log(`Video: Initial PTS/DTS adjusted: ${oR(j,!0)}/${oR(g,!0)}, delta: ${oR(N,!0)} ms`)}}g=Math.max(0,g);let w=0,x=0,E=g;for(let N=0;N<l;N++){const B=s[N],z=B.units,j=z.length;let W=0;for(let G=0;G<j;G++)W+=z[G].data.length;x+=W,w+=j,B.length=W,B.dts<E?(B.dts=E,E+=S/4|0||1):E=B.dts,m=Math.min(B.pts,m),v=Math.max(B.pts,v)}p=s[l-1].dts;const R=x+4*w+8;let O;try{O=new Uint8Array(R)}catch(N){this.observer.emit(Se.ERROR,Se.ERROR,{type:wr.MUX_ERROR,details:_t.REMUX_ALLOC_ERROR,fatal:!1,error:N,bytes:R,reason:`fail allocating video mdat ${R}`});return}const T=new DataView(O.buffer);T.setUint32(0,R),O.set(Et.types.mdat,4);let M=!1,_=Number.POSITIVE_INFINITY,F=Number.POSITIVE_INFINITY,D=Number.NEGATIVE_INFINITY,k=Number.NEGATIVE_INFINITY;for(let N=0;N<l;N++){const B=s[N],z=B.units;let j=0;for(let K=0,q=z.length;K<q;K++){const X=z[K],Q=X.data,te=X.data.byteLength;T.setUint32(f,te),f+=4,O.set(Q,f),f+=te,j+=4+te}let W;if(N<l-1)h=s[N+1].dts-B.dts,W=s[N+1].pts-B.pts;else{const K=this.config,q=N>0?B.dts-s[N-1].dts:S;if(W=N>0?B.pts-s[N-1].pts:S,K.stretchShortVideoTrack&&this.nextAudioPts!==null){const X=Math.floor(K.maxBufferHole*o),Q=(i?m+i*o:this.nextAudioPts)-B.pts;Q>X?(h=Q-q,h<0?h=q:M=!0,bt.log(`[mp4-remuxer]: It is approximately ${Q/90} ms to the next segment; using duration ${h/90} ms for the last video frame.`)):h=q}else h=q}const G=Math.round(B.pts-B.dts);_=Math.min(_,h),D=Math.max(D,h),F=Math.min(F,W),k=Math.max(k,W),a.push(new GEe(B.key,h,j,G))}if(a.length){if(v5){if(v5<70){const N=a[0].flags;N.dependsOn=2,N.isNonSync=0}}else if(Qte&&k-F<D-_&&S/D<.025&&a[0].cts===0){bt.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let N=g;for(let B=0,z=a.length;B<z;B++){const j=N+a[B].duration,W=N+a[B].cts;if(B<z-1){const G=j+a[B+1].cts;a[B].duration=G-W}else a[B].duration=B?a[B-1].duration:S;a[B].cts=0,N=j}}}h=M||!h?S:h,this.nextAvcDts=u=p+h,this.videoSampleDuration=h,this.isVideoContiguous=!0;const A={data1:Et.moof(t.sequenceNumber++,g,Vs({},t,{samples:a})),data2:O,startPTS:m/o,endPTS:(v+h)/o,startDTS:g/o,endDTS:u/o,type:"video",hasAudio:!1,hasVideo:!0,nb:a.length,dropped:t.dropped};return t.samples=[],t.dropped=0,A}getSamplesPerFrame(t){switch(t.segmentCodec){case"mp3":return yBn;case"ac3":return bBn;default:return VEe}}remuxAudio(t,n,r,i,o){const s=t.inputTimeScale,a=t.samplerate?t.samplerate:s,l=s/a,c=this.getSamplesPerFrame(t),u=c*l,f=this._initPTS,h=t.segmentCodec==="mp3"&&this.typeSupported.mpeg,g=[],p=o!==void 0;let m=t.samples,v=h?0:8,C=this.nextAudioPts||-1;const y=n*s,b=f.baseTime*s/f.timescale;if(this.isAudioContiguous=r=r||m.length&&C>0&&(i&&Math.abs(y-C)<9e3||Math.abs(vf(m[0].pts-b,y)-C)<20*u),m.forEach(function(L){L.pts=vf(L.pts-b,y)}),!r||C<0){if(m=m.filter(L=>L.pts>=0),!m.length)return;o===0?C=0:i&&!p?C=Math.max(0,y):C=m[0].pts}if(t.segmentCodec==="aac"){const L=this.config.maxAudioFramesDrift;for(let I=0,A=C;I<m.length;I++){const N=m[I],B=N.pts,z=B-A,j=Math.abs(1e3*z/s);if(z<=-L*u&&p)I===0&&(bt.warn(`Audio frame @ ${(B/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*z/s)} ms.`),this.nextAudioPts=C=A=B);else if(z>=L*u&&j<CBn&&p){let W=Math.round(z/u);A=B-W*u,A<0&&(W--,A+=u),I===0&&(this.nextAudioPts=C=A),bt.warn(`[mp4-remuxer]: Injecting ${W} audio frame @ ${(A/s).toFixed(3)}s due to ${Math.round(1e3*z/s)} ms gap.`);for(let G=0;G<W;G++){const K=Math.max(A,0);let q=jEe.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);q||(bt.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),q=N.unit.subarray()),m.splice(I,0,{unit:q,pts:K}),A+=u,I++}}N.pts=A,A+=u}}let S=null,w=null,x,E=0,R=m.length;for(;R--;)E+=m[R].unit.byteLength;for(let L=0,I=m.length;L<I;L++){const A=m[L],N=A.unit;let B=A.pts;if(w!==null){const j=g[L-1];j.duration=Math.round((B-w)/l)}else if(r&&t.segmentCodec==="aac"&&(B=C),S=B,E>0){E+=v;try{x=new Uint8Array(E)}catch(j){this.observer.emit(Se.ERROR,Se.ERROR,{type:wr.MUX_ERROR,details:_t.REMUX_ALLOC_ERROR,fatal:!1,error:j,bytes:E,reason:`fail allocating audio mdat ${E}`});return}h||(new DataView(x.buffer).setUint32(0,E),x.set(Et.types.mdat,4))}else return;x.set(N,v);const z=N.byteLength;v+=z,g.push(new GEe(!0,c,z,0)),w=B}const O=g.length;if(!O)return;const T=g[g.length-1];this.nextAudioPts=C=w+l*T.duration;const M=h?new Uint8Array(0):Et.moof(t.sequenceNumber++,S/l,Vs({},t,{samples:g}));t.samples=[];const _=S/s,F=C/s,k={data1:M,data2:x,startPTS:_,endPTS:F,startDTS:_,endDTS:F,type:"audio",hasAudio:!0,hasVideo:!1,nb:O};return this.isAudioContiguous=!0,k}remuxEmptyAudio(t,n,r,i){const o=t.inputTimeScale,s=t.samplerate?t.samplerate:o,a=o/s,l=this.nextAudioPts,c=this._initDTS,u=c.baseTime*9e4/c.timescale,f=(l!==null?l:i.startDTS*o)+u,h=i.endDTS*o+u,g=a*VEe,p=Math.ceil((h-f)/g),m=jEe.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(bt.warn("[mp4-remuxer]: remux empty Audio"),!m){bt.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const v=[];for(let C=0;C<p;C++){const y=f+C*g;v.push({unit:m,pts:y,dts:y})}return t.samples=v,this.remuxAudio(t,n,r,!1)}}function vf(e,t){let n;if(t===null)return e;for(t<e?n=-8589934592:n=8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}function SBn(e){for(let t=0;t<e.length;t++)if(e[t].key)return t;return-1}function aJe(e,t,n,r){const i=e.samples.length;if(!i)return;const o=e.inputTimeScale;for(let a=0;a<i;a++){const l=e.samples[a];l.pts=vf(l.pts-n.baseTime*o/n.timescale,t*o)/o,l.dts=vf(l.dts-r.baseTime*o/r.timescale,t*o)/o}const s=e.samples;return e.samples=[],{samples:s}}function lJe(e,t,n){const r=e.samples.length;if(!r)return;const i=e.inputTimeScale;for(let s=0;s<r;s++){const a=e.samples[s];a.pts=vf(a.pts-n.baseTime*i/n.timescale,t*i)/i}e.samples.sort((s,a)=>s.pts-a.pts);const o=e.samples;return e.samples=[],{samples:o}}class GEe{constructor(t,n,r,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=n,this.size=r,this.cts=i,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:t?2:1,isNonSync:t?0:1}}}class wBn{constructor(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}destroy(){}resetTimeStamp(t){this.initPTS=t,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(t,n,r,i){this.audioCodec=n,this.videoCodec=r,this.generateInitSegment(Tkn(t,i)),this.emitInitSegment=!0}generateInitSegment(t){let{audioCodec:n,videoCodec:r}=this;if(!(t!=null&&t.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const i=this.initData=AZe(t);i.audio&&(n=WEe(i.audio,eo.AUDIO)),i.video&&(r=WEe(i.video,eo.VIDEO));const o={};i.audio&&i.video?o.audiovideo={container:"video/mp4",codec:n+","+r,initSegment:t,id:"main"}:i.audio?o.audio={container:"audio/mp4",codec:n,initSegment:t,id:"audio"}:i.video?o.video={container:"video/mp4",codec:r,initSegment:t,id:"main"}:bt.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=o}remux(t,n,r,i,o,s){var a,l;let{initPTS:c,lastEndTime:u}=this;const f={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};kn(u)||(u=this.lastEndTime=o||0);const h=n.samples;if(!(h!=null&&h.length))return f;const g={initPTS:void 0,timescale:1};let p=this.initData;if((a=p)!=null&&a.length||(this.generateInitSegment(h),p=this.initData),!((l=p)!=null&&l.length))return bt.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),f;this.emitInitSegment&&(g.tracks=this.initTracks,this.emitInitSegment=!1);const m=Mkn(h,p),v=Ikn(p,h),C=v===null?o:v;(xBn(c,C,o,m)||g.timescale!==c.timescale&&s)&&(g.initPTS=C-o,c&&c.timescale===1&&bt.warn(`Adjusting initPTS by ${g.initPTS-c.baseTime}`),this.initPTS=c={baseTime:g.initPTS,timescale:1});const y=t?C-c.baseTime/c.timescale:u,b=y+m;_kn(p,h,c.baseTime/c.timescale),m>0?this.lastEndTime=b:(bt.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const S=!!p.audio,w=!!p.video;let x="";S&&(x+="audio"),w&&(x+="video");const E={data1:h,startPTS:y,startDTS:y,endPTS:b,endDTS:b,type:x,hasAudio:S,hasVideo:w,nb:1,dropped:0};return f.audio=E.type==="audio"?E:void 0,f.video=E.type!=="audio"?E:void 0,f.initSegment=g,f.id3=aJe(r,o,c,c),i.samples.length&&(f.text=lJe(i,o,c)),f}}function xBn(e,t,n,r){if(e===null)return!0;const i=Math.max(r,1),o=t-e.baseTime/e.timescale;return Math.abs(o-n)>i}function WEe(e,t){const n=e==null?void 0:e.codec;if(n&&n.length>4)return n;if(t===eo.AUDIO){if(n==="ec-3"||n==="ac-3"||n==="alac")return n;if(n==="fLaC"||n==="Opus")return OB(n,!1);const r="mp4a.40.5";return bt.info(`Parsed audio codec "${n}" or audio object type not handled. Using "${r}"`),r}return bt.warn(`Unhandled video codec "${n}"`),n==="hvc1"||n==="hev1"?"hvc1.1.6.L120.90":n==="av01"?"av01.0.04M.08":"avc1.42e01e"}let X1;try{X1=self.performance.now.bind(self.performance)}catch{bt.debug("Unable to use Performance API on this environment"),X1=m7==null?void 0:m7.Date.now}const TN=[{demux:lBn,remux:wBn},{demux:R2,remux:ON},{demux:sBn,remux:ON},{demux:pBn,remux:ON}];TN.splice(2,0,{demux:cBn,remux:ON});class UEe{constructor(t,n,r,i,o){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=n,this.config=r,this.vendor=i,this.id=o}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()}push(t,n,r,i){const o=r.transmuxing;o.executeStart=X1();let s=new Uint8Array(t);const{currentTransmuxState:a,transmuxConfig:l}=this;i&&(this.currentTransmuxState=i);const{contiguous:c,discontinuity:u,trackSwitch:f,accurateTimeOffset:h,timeOffset:g,initSegmentChange:p}=i||a,{audioCodec:m,videoCodec:v,defaultInitPts:C,duration:y,initSegmentData:b}=l,S=EBn(s,n);if(S&&S.method==="AES-128"){const R=this.getDecrypter();if(R.isSync()){let O=R.softwareDecrypt(s,S.key.buffer,S.iv.buffer);if(r.part>-1&&(O=R.flush()),!O)return o.executeEnd=X1(),Zte(r);s=new Uint8Array(O)}else return this.decryptionPromise=R.webCryptoDecrypt(s,S.key.buffer,S.iv.buffer).then(O=>{const T=this.push(O,null,r);return this.decryptionPromise=null,T}),this.decryptionPromise}const w=this.needsProbing(u,f);if(w){const R=this.configureTransmuxer(s);if(R)return bt.warn(`[transmuxer] ${R.message}`),this.observer.emit(Se.ERROR,Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.FRAG_PARSING_ERROR,fatal:!1,error:R,reason:R.message}),o.executeEnd=X1(),Zte(r)}(u||f||p||w)&&this.resetInitSegment(b,m,v,y,n),(u||p||w)&&this.resetInitialTimestamp(C),c||this.resetContiguity();const x=this.transmux(s,S,g,h,r),E=this.currentTransmuxState;return E.contiguous=!0,E.discontinuity=!1,E.trackSwitch=!1,o.executeEnd=X1(),x}flush(t){const n=t.transmuxing;n.executeStart=X1();const{decrypter:r,currentTransmuxState:i,decryptionPromise:o}=this;if(o)return o.then(()=>this.flush(t));const s=[],{timeOffset:a}=i;if(r){const f=r.flush();f&&s.push(this.push(f,null,t))}const{demuxer:l,remuxer:c}=this;if(!l||!c)return n.executeEnd=X1(),[Zte(t)];const u=l.flush(a);return IN(u)?u.then(f=>(this.flushRemux(s,f,t),s)):(this.flushRemux(s,u,t),s)}flushRemux(t,n,r){const{audioTrack:i,videoTrack:o,id3Track:s,textTrack:a}=n,{accurateTimeOffset:l,timeOffset:c}=this.currentTransmuxState;bt.log(`[transmuxer.ts]: Flushed fragment ${r.sn}${r.part>-1?" p: "+r.part:""} of level ${r.level}`);const u=this.remuxer.remux(i,o,s,a,c,l,!0,this.id);t.push({remuxResult:u,chunkMeta:r}),r.transmuxing.executeEnd=X1()}resetInitialTimestamp(t){const{demuxer:n,remuxer:r}=this;!n||!r||(n.resetTimeStamp(t),r.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetContiguity(),n.resetNextTimestamp())}resetInitSegment(t,n,r,i,o){const{demuxer:s,remuxer:a}=this;!s||!a||(s.resetInitSegment(t,n,r,i),a.resetInitSegment(t,n,r,o))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,n,r,i,o){let s;return n&&n.method==="SAMPLE-AES"?s=this.transmuxSampleAes(t,n,r,i,o):s=this.transmuxUnencrypted(t,r,i,o),s}transmuxUnencrypted(t,n,r,i){const{audioTrack:o,videoTrack:s,id3Track:a,textTrack:l}=this.demuxer.demux(t,n,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(o,s,a,l,n,r,!1,this.id),chunkMeta:i}}transmuxSampleAes(t,n,r,i,o){return this.demuxer.demuxSampleAes(t,n,r).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,r,i,!1,this.id),chunkMeta:o}))}configureTransmuxer(t){const{config:n,observer:r,typeSupported:i,vendor:o}=this;let s;for(let h=0,g=TN.length;h<g;h++){var a;if((a=TN[h].demux)!=null&&a.probe(t)){s=TN[h];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,c=this.remuxer,u=s.remux,f=s.demux;(!c||!(c instanceof u))&&(this.remuxer=new u(r,n,i,o)),(!l||!(l instanceof f))&&(this.demuxer=new f(r,n,i),this.probe=f.probe)}needsProbing(t,n){return!this.demuxer||!this.remuxer||t||n}getDecrypter(){let t=this.decrypter;return t||(t=this.decrypter=new b1e(this.config)),t}}function EBn(e,t){let n=null;return e.byteLength>0&&(t==null?void 0:t.key)!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const Zte=e=>({remuxResult:{},chunkMeta:e});function IN(e){return"then"in e&&e.then instanceof Function}class RBn{constructor(t,n,r,i,o){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=n,this.initSegmentData=r,this.duration=i,this.defaultInitPts=o||null}}class $Bn{constructor(t,n,r,i,o,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=n,this.accurateTimeOffset=r,this.trackSwitch=i,this.timeOffset=o,this.initSegmentChange=s}}var cJe={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,y)}else{var S=v.length,w;for(b=0;b<S;b++)switch(v[b].once&&this.removeListener(c,v[b].fn,void 0,!0),C){case 1:v[b].fn.call(v[b].context);break;case 2:v[b].fn.call(v[b].context,u);break;case 3:v[b].fn.call(v[b].context,u,f);break;case 4:v[b].fn.call(v[b].context,u,f,h);break;default:if(!y)for(w=1,y=new Array(C-1);w<C;w++)y[w-1]=arguments[w];v[b].fn.apply(v[b].context,y)}}return!0},a.prototype.on=function(c,u,f){return o(this,c,u,f,!1)},a.prototype.once=function(c,u,f){return o(this,c,u,f,!0)},a.prototype.removeListener=function(c,u,f,h){var g=n?n+c:c;if(!this._events[g])return this;if(!u)return s(this,g),this;var p=this._events[g];if(p.fn)p.fn===u&&(!h||p.once)&&(!f||p.context===f)&&s(this,g);else{for(var m=0,v=[],C=p.length;m<C;m++)(p[m].fn!==u||h&&!p[m].once||f&&p[m].context!==f)&&v.push(p[m]);v.length?this._events[g]=v.length===1?v[0]:v:s(this,g)}return this},a.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&s(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(cJe);var OBn=cJe.exports,$1e=XNn(OBn);class uJe{constructor(t,n,r,i){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const o=t.config;this.hls=t,this.id=n,this.useWorker=!!o.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;const s=(c,u)=>{u=u||{},u.frag=this.frag,u.id=this.id,c===Se.ERROR&&(this.error=u.error),this.hls.trigger(c,u)};this.observer=new $1e,this.observer.on(Se.FRAG_DECRYPTED,s),this.observer.on(Se.ERROR,s);const a=GC(o.preferManagedMediaSource)||{isTypeSupported:()=>!1},l={mpeg:a.isTypeSupported("audio/mpeg"),mp3:a.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:a.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker<"u"&&(o.workerPath||Uzn())){try{o.workerPath?(bt.log(`loading Web Worker ${o.workerPath} for "${n}"`),this.workerContext=Kzn(o.workerPath)):(bt.log(`injecting Web Worker for "${n}"`),this.workerContext=qzn()),this.onwmsg=f=>this.onWorkerMessage(f);const{worker:u}=this.workerContext;u.addEventListener("message",this.onwmsg),u.onerror=f=>{const h=new Error(`${f.message} (${f.filename}:${f.lineno})`);o.enableWorker=!1,bt.warn(`Error in "${n}" Web Worker, fallback to inline`),this.hls.trigger(Se.ERROR,{type:wr.OTHER_ERROR,details:_t.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:h})},u.postMessage({cmd:"init",typeSupported:l,vendor:"",id:n,config:JSON.stringify(o)})}catch(u){bt.warn(`Error setting up "${n}" Web Worker, fallback to inline`,u),this.resetWorker(),this.error=null,this.transmuxer=new UEe(this.observer,l,o,"",n)}return}this.transmuxer=new UEe(this.observer,l,o,"",n)}resetWorker(){if(this.workerContext){const{worker:t,objectURL:n}=this.workerContext;n&&self.URL.revokeObjectURL(n),t.removeEventListener("message",this.onwmsg),t.onerror=null,t.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(t,n,r,i,o,s,a,l,c,u){var f,h;c.transmuxing.start=self.performance.now();const{transmuxer:g}=this,p=s?s.start:o.start,m=o.decryptdata,v=this.frag,C=!(v&&o.cc===v.cc),y=!(v&&c.level===v.level),b=v?c.sn-v.sn:-1,S=this.part?c.part-this.part.index:-1,w=b===0&&c.id>1&&c.id===(v==null?void 0:v.stats.chunkCount),x=!y&&(b===1||b===0&&(S===1||w&&S<=0)),E=self.performance.now();(y||b||o.stats.parsing.start===0)&&(o.stats.parsing.start=E),s&&(S||!x)&&(s.stats.parsing.start=E);const R=!(v&&((f=o.initSegment)==null?void 0:f.url)===((h=v.initSegment)==null?void 0:h.url)),O=new $Bn(C,x,l,y,p,R);if(!x||C||R){bt.log(`[transmuxer-interface, ${o.type}]: Starting new transmux session for sn: ${c.sn} p: ${c.part} level: ${c.level} id: ${c.id}
|
||
discontinuity: ${C}
|
||
trackSwitch: ${y}
|
||
contiguous: ${x}
|
||
accurateTimeOffset: ${l}
|
||
timeOffset: ${p}
|
||
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(Se.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Se.ERROR,this.onError,this),t.off(Se.BUFFER_RESET,this.onBufferReset,this),t.off(Se.BUFFER_CREATED,this.onBufferCreated,this),t.off(Se.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Se.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Se.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Se.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(t,{frag:n,id:r,initPTS:i,timescale:o}){if(r==="main"){const s=n.cc;this.initPTS[n.cc]={baseTime:i,timescale:o},this.log(`InitPTS for cc: ${s} found from main: ${i}`),this.videoTrackCC=s,this.state===Xt.WAITING_INIT_PTS&&this.tick()}}startLoad(t){if(!this.levels){this.startPosition=t,this.state=Xt.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(qEe),n>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),t=n,this.state=Xt.IDLE):(this.loadedmetadata=!1,this.state=Xt.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}doTick(){switch(this.state){case Xt.IDLE:this.doTickIdle();break;case Xt.WAITING_TRACK:{var t;const{levels:r,trackId:i}=this,o=r==null||(t=r[i])==null?void 0:t.details;if(o){if(this.waitForCdnTuneIn(o))break;this.state=Xt.WAITING_INIT_PTS}break}case Xt.FRAG_LOADING_WAITING_RETRY:{var n;const r=performance.now(),i=this.retryDate;if(!i||r>=i||(n=this.media)!=null&&n.seeking){const{levels:o,trackId:s}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((o==null?void 0:o[s])||null),this.state=Xt.IDLE}break}case Xt.WAITING_INIT_PTS:{const r=this.waitingData;if(r){const{frag:i,part:o,cache:s,complete:a}=r;if(this.initPTS[i.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Xt.FRAG_LOADING;const l=s.flush(),c={frag:i,part:o,payload:l,networkDetails:null};this._handleFragmentLoadProgress(c),a&&super._handleFragmentLoadComplete(c)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${i.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const l=this.getLoadPosition(),c=xo.bufferInfo(this.mediaBuffer,l,this.config.maxBufferHole);nce(c.end,this.config.maxFragLookUpTolerance,i)<0&&(this.log(`Waiting fragment cc (${i.cc}) @ ${i.start} cancelled because another fragment at ${c.end} is needed`),this.clearWaitingFragment())}}else this.state=Xt.IDLE}}this.onTickEnd()}clearWaitingFragment(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Xt.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:t}=this;t!=null&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){const{hls:t,levels:n,media:r,trackId:i}=this,o=t.config;if(!this.buffering||!r&&(this.startFragRequested||!o.startFragPrefetch)||!(n!=null&&n[i]))return;const s=n[i],a=s.details;if(!a||a.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(a)){this.state=Xt.WAITING_TRACK;return}const l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,eo.AUDIO,fr.AUDIO));const c=this.getFwdBufferInfo(l,fr.AUDIO);if(c===null)return;const{bufferedTrack:u,switchingTrack:f}=this;if(!f&&this._streamEnded(c,a)){t.trigger(Se.BUFFER_EOS,{type:"audio"}),this.state=Xt.ENDED;return}const h=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,fr.MAIN),g=c.len,p=this.getMaxBufferLength(h==null?void 0:h.len),m=a.fragments,v=m[0].start;let C=this.flushing?this.getLoadPosition():c.end;if(f&&r){const w=this.getLoadPosition();u&&!C7(f.attrs,u.attrs)&&(C=w),a.PTSKnown&&w<v&&(c.end>v||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=v+.05)}if(g>=p&&!f&&C<m[m.length-1].start)return;let y=this.getNextFragment(C,a),b=!1;if(y&&this.isLoopLoading(y,C)&&(b=!!y.gap,y=this.getNextFragmentLoopLoading(y,a,c,fr.MAIN,p)),!y){this.bufferFlushed=!0;return}const S=h&&y.start>h.end+a.targetduration;if(S||!(h!=null&&h.len)&&c.len){const w=this.getAppendedFrag(y.start,fr.MAIN);if(w===null||(b||(b=!!w.gap||!!S&&h.len===0),S&&!b||b&&c.nextStart&&c.nextStart<w.end))return}this.loadFragment(y,s,C)}getMaxBufferLength(t){const n=super.getMaxBufferLength();return t?Math.min(Math.max(n,t),this.config.maxMaxBufferLength):n}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(t,{audioTracks:n}){this.resetTransmuxer(),this.levels=n.map(r=>new v7(r))}onAudioTrackSwitching(t,n){const r=!!n.url;this.trackId=n.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),r?this.setInterval(qEe):this.resetTransmuxer(),r?(this.switchingTrack=n,this.state=Xt.IDLE,this.flushAudioIfNeeded(n)):(this.switchingTrack=null,this.bufferedTrack=n,this.state=Xt.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(t,n){this.mainDetails=n.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(Se.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(t,n){var r;if(this.mainDetails==null){this.cachedTrackLoadedData=n;return}const{levels:i}=this,{details:o,id:s}=n;if(!i){this.warn(`Audio tracks were reset while loading level ${s}`);return}this.log(`Audio track ${s} loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""},duration:${o.totalduration}`);const a=i[s];let l=0;if(o.live||(r=a.details)!=null&&r.live){this.checkLiveUpdate(o);const u=this.mainDetails;if(o.deltaUpdateFailed||!u)return;if(!a.details&&o.hasProgramDateTime&&u.hasProgramDateTime)_B(o,u),l=o.fragments[0].start;else{var c;l=this.alignPlaylists(o,a.details,(c=this.levelLastLoaded)==null?void 0:c.details)}}a.details=o,this.levelLastLoaded=a,!this.startFragRequested&&(this.mainDetails||!o.live)&&this.setStartPosition(this.mainDetails||o,l),this.state===Xt.WAITING_TRACK&&!this.waitForCdnTuneIn(o)&&(this.state=Xt.IDLE),this.tick()}_handleFragmentLoadProgress(t){var n;const{frag:r,part:i,payload:o}=t,{config:s,trackId:a,levels:l}=this;if(!l){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const c=l[a];if(!c){this.warn("Audio track is undefined on fragment load progress");return}const u=c.details;if(!u){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const f=s.defaultAudioCodec||c.audioCodec||"mp4a.40.2";let h=this.transmuxer;h||(h=this.transmuxer=new uJe(this.hls,fr.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const g=this.initPTS[r.cc],p=(n=r.initSegment)==null?void 0:n.data;if(g!==void 0){const v=i?i.index:-1,C=v!==-1,y=new y1e(r.level,r.sn,r.stats.chunkCount,o.byteLength,v,C);h.push(o,p,f,"",r,i,u.totalduration,!1,y,g)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${u.startSN} ,${u.endSN}],track ${a}`);const{cache:m}=this.waitingData=this.waitingData||{frag:r,part:i,cache:new KZe,complete:!1};m.push(new Uint8Array(o)),this.waitingVideoCC=this.videoTrackCC,this.state=Xt.WAITING_INIT_PTS}}_handleFragmentLoadComplete(t){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(t,n){const r=n.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),n.tracks.video&&(this.videoBuffer=n.tracks.video.buffer||null)}onFragBuffered(t,n){const{frag:r,part:i}=n;if(r.type!==fr.AUDIO){if(!this.loadedmetadata&&r.type===fr.MAIN){const o=this.videoBuffer||this.media;o&&xo.getBuffered(o).length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(r.sn!=="initSegment"){this.fragPrevious=r;const o=this.switchingTrack;o&&(this.bufferedTrack=o,this.switchingTrack=null,this.hls.trigger(Se.AUDIO_TRACK_SWITCHED,ka({},o)))}this.fragBufferedComplete(r,i)}onError(t,n){var r;if(n.fatal){this.state=Xt.ERROR;return}switch(n.details){case _t.FRAG_GAP:case _t.FRAG_PARSING_ERROR:case _t.FRAG_DECRYPT_ERROR:case _t.FRAG_LOAD_ERROR:case _t.FRAG_LOAD_TIMEOUT:case _t.KEY_LOAD_ERROR:case _t.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(fr.AUDIO,n);break;case _t.AUDIO_TRACK_LOAD_ERROR:case _t.AUDIO_TRACK_LOAD_TIMEOUT:case _t.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===Xt.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===Ii.AUDIO_TRACK&&(this.state=Xt.IDLE);break;case _t.BUFFER_APPEND_ERROR:case _t.BUFFER_FULL_ERROR:if(!n.parent||n.parent!=="audio")return;if(n.details===_t.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case _t.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==eo.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==eo.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Xt.ENDED&&(this.state=Xt.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,fr.AUDIO),this.tick())}}_handleTransmuxComplete(t){var n;const r="audio",{hls:i}=this,{remuxResult:o,chunkMeta:s}=t,a=this.getCurrentContext(s);if(!a){this.resetWhenMissingContext(s);return}const{frag:l,part:c,level:u}=a,{details:f}=u,{audio:h,text:g,id3:p,initSegment:m}=o;if(this.fragContextChanged(l)||!f){this.fragmentTracker.removeFragment(l);return}if(this.state=Xt.PARSING,this.switchingTrack&&h&&this.completeAudioSwitch(this.switchingTrack),m!=null&&m.tracks){const v=l.initSegment||l;this._bufferInitSegment(u,m.tracks,v,s),i.trigger(Se.FRAG_PARSING_INIT_SEGMENT,{frag:v,id:r,tracks:m.tracks})}if(h){const{startPTS:v,endPTS:C,startDTS:y,endDTS:b}=h;c&&(c.elementaryStreams[eo.AUDIO]={startPTS:v,endPTS:C,startDTS:y,endDTS:b}),l.setElementaryStreamInfo(eo.AUDIO,v,C,y,b),this.bufferFragmentData(h,l,c,s)}if(p!=null&&(n=p.samples)!=null&&n.length){const v=Vs({id:r,frag:l,details:f},p);i.trigger(Se.FRAG_PARSING_METADATA,v)}if(g){const v=Vs({id:r,frag:l,details:f},g);i.trigger(Se.FRAG_PARSING_USERDATA,v)}}_bufferInitSegment(t,n,r,i){if(this.state!==Xt.PARSING)return;n.video&&delete n.video;const o=n.audio;if(!o)return;o.id="audio";const s=t.audioCodec;this.log(`Init audio buffer, container:${o.container}, codecs[level/parsed]=[${s}/${o.codec}]`),s&&s.split(",").length===1&&(o.levelCodec=s),this.hls.trigger(Se.BUFFER_CODECS,n);const a=o.initSegment;if(a!=null&&a.byteLength){const l={type:"audio",frag:r,part:null,chunkMeta:i,parent:r.type,data:a};this.hls.trigger(Se.BUFFER_APPENDING,l)}this.tickImmediate()}loadFragment(t,n,r){const i=this.fragmentTracker.getState(t);if(this.fragCurrent=t,this.switchingTrack||i===Ia.NOT_LOADED||i===Ia.PARTIAL){var o;if(t.sn==="initSegment")this._loadInitSegment(t,n);else if((o=n.details)!=null&&o.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=Xt.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==n.details.fragments[0].start&&_B(n.details,s)}else this.startFragRequested=!0,super.loadFragment(t,n,r)}else this.clearTrackerIfNeeded(t)}flushAudioIfNeeded(t){const{media:n,bufferedTrack:r}=this,i=r==null?void 0:r.attrs,o=t.attrs;n&&i&&(i.CHANNELS!==o.CHANNELS||r.name!==t.name||r.lang!==t.lang)&&(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}completeAudioSwitch(t){const{hls:n}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,n.trigger(Se.AUDIO_TRACK_SWITCHED,ka({},t))}}class IBn extends C1e{constructor(t){super(t,"[audio-track-controller]"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Se.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Se.LEVEL_LOADING,this.onLevelLoading,this),t.on(Se.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Se.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Se.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Se.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Se.LEVEL_LOADING,this.onLevelLoading,this),t.off(Se.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Se.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Se.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.audioTracks||[]}onAudioTrackLoaded(t,n){const{id:r,groupId:i,details:o}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==i){this.warn(`Audio track with id:${r} and group:${i} not found in active group ${s==null?void 0:s.groupId}`);return}const a=s.details;s.details=n.details,this.log(`Audio track ${r} "${s.name}" lang:${s.lang} group:${i} loaded [${o.startSN}-${o.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,a)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.audioGroups||null,i=this.groupIds;let o=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(a=>(i==null?void 0:i.indexOf(a))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const a=this.tracks.filter(h=>!r||r.indexOf(h.groupId)!==-1);if(a.length)this.selectDefaultTrack&&!a.some(h=>h.default)&&(this.selectDefaultTrack=!1),a.forEach((h,g)=>{h.id=g});else if(!o&&!this.tracksInGroup.length)return;this.tracksInGroup=a;const l=this.hls.config.audioPreference;if(!o&&l){const h=Jp(l,a,g5);if(h>-1)o=a[h];else{const g=Jp(l,this.tracks);o=this.tracks[g]}}let c=this.findTrackId(o);c===-1&&o&&(c=this.findTrackId(null));const u={audioTracks:a};this.log(`Updating audio tracks, ${a.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(Se.AUDIO_TRACKS_UPDATED,u);const f=this.trackId;if(c!==-1&&f===-1)this.setAudioTrack(c);else if(a.length&&f===-1){var s;const h=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${a.length}`);this.warn(h.message),this.hls.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:h})}}else this.shouldReloadPlaylist(o)&&this.setAudioTrack(this.trackId)}onError(t,n){n.fatal||!n.context||n.context.type===Ii.AUDIO_TRACK&&n.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&(this.requestScheduled=-1,this.checkRetry(n))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioOption(t){const n=this.hls;if(n.config.audioPreference=t,t){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const i=this.currentTrack;if(i&&JS(t,i,g5))return i;const o=Jp(t,this.tracksInGroup,g5);if(o>-1){const s=this.tracksInGroup[o];return this.setAudioTrack(o),s}else if(i){let s=n.loadLevel;s===-1&&(s=n.firstAutoLevel);const a=Izn(t,n.levels,r,s,g5);if(a===-1)return null;n.nextLoadLevel=a}if(t.channels||t.audioCodec){const s=Jp(t,r);if(s>-1)return r[s]}}}return null}setAudioTrack(t){const n=this.tracksInGroup;if(t<0||t>=n.length){this.warn(`Invalid audio track id: ${t}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=n[t],o=i.details&&!i.details.live;if(t===this.trackId&&i===r&&o||(this.log(`Switching to audio-track ${t} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=t,this.currentTrack=i,this.hls.trigger(Se.AUDIO_TRACK_SWITCHING,ka({},i)),o))return;const s=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(s)}findTrackId(t){const n=this.tracksInGroup;for(let r=0;r<n.length;r++){const i=n[r];if(!(this.selectDefaultTrack&&!i.default)&&(!t||JS(t,i,g5)))return r}if(t){const{name:r,lang:i,assocLang:o,characteristics:s,audioCodec:a,channels:l}=t;for(let c=0;c<n.length;c++){const u=n[c];if(JS({name:r,lang:i,assocLang:o,characteristics:s,audioCodec:a,channels:l},u,g5))return c}for(let c=0;c<n.length;c++){const u=n[c];if(C7(t.attrs,u.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return c}for(let c=0;c<n.length;c++){const u=n[c];if(C7(t.attrs,u.attrs,["LANGUAGE"]))return c}}return-1}loadPlaylist(t){const n=this.currentTrack;if(this.shouldLoadPlaylist(n)&&n){super.loadPlaylist();const r=n.id,i=n.groupId;let o=n.url;if(t)try{o=t.addDirectives(o)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`loading audio-track playlist ${r} "${n.name}" lang:${n.lang} group:${i}`),this.clearTimer(),this.hls.trigger(Se.AUDIO_TRACK_LOADING,{url:o,id:r,groupId:i,deliveryDirectives:t||null})}}}const KEe=500;class MBn extends S1e{constructor(t,n,r){super(t,n,r,"[subtitle-stream-controller]",fr.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=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.ERROR,this.onError,this),t.on(Se.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Se.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Se.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Se.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Se.BUFFER_FLUSHING,this.onBufferFlushing,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.ERROR,this.onError,this),t.off(Se.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Se.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Se.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Se.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Se.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Se.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(t){this.stopLoad(),this.state=Xt.IDLE,this.setInterval(KEe),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(t,n){this.mainDetails=n.details}onSubtitleFragProcessed(t,n){const{frag:r,success:i}=n;if(this.fragPrevious=r,this.state=Xt.IDLE,!i)return;const o=this.tracksBuffered[this.currentTrackId];if(!o)return;let s;const a=r.start;for(let c=0;c<o.length;c++)if(a>=o[c].start&&a<=o[c].end){s=o[c];break}const l=r.start+r.duration;s?s.end=l:(s={start:a,end:l},o.push(s)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}onBufferFlushing(t,n){const{startOffset:r,endOffset:i}=n;if(r===0&&i!==Number.POSITIVE_INFINITY){const o=i-1;if(o<=0)return;n.endOffsetSubtitles=Math.max(0,o),this.tracksBuffered.forEach(s=>{for(let a=0;a<s.length;){if(s[a].end<=o){s.shift();continue}else if(s[a].start<o)s[a].start=o;else break;a++}}),this.fragmentTracker.removeFragmentsInRange(r,o,fr.SUBTITLE)}}onFragBuffered(t,n){if(!this.loadedmetadata&&n.frag.type===fr.MAIN){var r;(r=this.media)!=null&&r.buffered.length&&(this.loadedmetadata=!0)}}onError(t,n){const r=n.frag;(r==null?void 0:r.type)===fr.SUBTITLE&&(n.details===_t.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Xt.STOPPED&&(this.state=Xt.IDLE))}onSubtitleTracksUpdated(t,{subtitleTracks:n}){if(this.levels&&dJe(this.levels,n)){this.levels=n.map(r=>new v7(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const i=new v7(r);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,fr.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(t,n){var r;if(this.currentTrackId=n.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const i=this.levels[this.currentTrackId];i!=null&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.setInterval(KEe)}onSubtitleTrackLoaded(t,n){var r;const{currentTrackId:i,levels:o}=this,{details:s,id:a}=n;if(!o){this.warn(`Subtitle tracks were reset while loading level ${a}`);return}const l=o[a];if(a>=o.length||!l)return;this.log(`Subtitle track ${a} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let c=0;if(s.live||(r=l.details)!=null&&r.live){const f=this.mainDetails;if(s.deltaUpdateFailed||!f)return;const h=f.fragments[0];if(!l.details)s.hasProgramDateTime&&f.hasProgramDateTime?(_B(s,f),c=s.fragments[0].start):h&&(c=h.start,tce(s,c));else{var u;c=this.alignPlaylists(s,l.details,(u=this.levelLastLoaded)==null?void 0:u.details),c===0&&h&&(c=h.start,tce(s,c))}}l.details=s,this.levelLastLoaded=l,a===i&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,c),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Xt.IDLE&&(PB(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),l.details=void 0)))}_handleFragmentLoadComplete(t){const{frag:n,payload:r}=t,i=n.decryptdata,o=this.hls;if(!this.fragContextChanged(n)&&r&&r.byteLength>0&&i!=null&&i.key&&i.iv&&i.method==="AES-128"){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer).catch(a=>{throw o.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.FRAG_DECRYPT_ERROR,fatal:!1,error:a,reason:a.message,frag:n}),a}).then(a=>{const l=performance.now();o.trigger(Se.FRAG_DECRYPTED,{frag:n,payload:a,stats:{tstart:s,tdecrypt:l}})}).catch(a=>{this.warn(`${a.name}: ${a.message}`),this.state=Xt.IDLE})}}doTick(){if(!this.media){this.state=Xt.IDLE;return}if(this.state===Xt.IDLE){const{currentTrackId:t,levels:n}=this,r=n==null?void 0:n[t];if(!r||!n.length||!r.details)return;const{config:i}=this,o=this.getLoadPosition(),s=xo.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],o,i.maxBufferHole),{end:a,len:l}=s,c=this.getFwdBufferInfo(this.media,fr.MAIN),u=r.details,f=this.getMaxBufferLength(c==null?void 0:c.len)+u.levelTargetDuration;if(l>f)return;const h=u.fragments,g=h.length,p=u.edge;let m=null;const v=this.fragPrevious;if(a<p){const C=i.maxFragLookUpTolerance,y=a>p-C?0:C;m=PB(v,h,Math.max(h[0].start,a),y),!m&&v&&v.start<h[0].start&&(m=h[0])}else m=h[g-1];if(!m)return;if(m=this.mapToInitFragWhenRequired(m),m.sn!=="initSegment"){const C=m.sn-u.startSN,y=h[C-1];y&&y.cc===m.cc&&this.fragmentTracker.getState(y)===Ia.NOT_LOADED&&(m=y)}this.fragmentTracker.getState(m)===Ia.NOT_LOADED&&this.loadFragment(m,r,a)}}getMaxBufferLength(t){const n=super.getMaxBufferLength();return t?Math.max(n,t):n}loadFragment(t,n,r){this.fragCurrent=t,t.sn==="initSegment"?this._loadInitSegment(t,n):(this.startFragRequested=!0,super.loadFragment(t,n,r))}get mediaBufferTimeRanges(){return new PBn(this.tracksBuffered[this.currentTrackId]||[])}}class PBn{constructor(t){this.buffered=void 0;const n=(r,i,o)=>{if(i=i>>>0,i>o-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${o})`);return t[i][r]};this.buffered={get length(){return t.length},end(r){return n("end",r,t.length)},start(r){return n("start",r,t.length)}}}}class _Bn extends C1e{constructor(t){super(t,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let n=null;const r=EN(this.media.textTracks);for(let o=0;o<r.length;o++)if(r[o].mode==="hidden")n=r[o];else if(r[o].mode==="showing"){n=r[o];break}const i=this.findTrackForTextTrack(n);this.subtitleTrack!==i&&this.setSubtitleTrack(i)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes()}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.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Se.LEVEL_LOADING,this.onLevelLoading,this),t.on(Se.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Se.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Se.ERROR,this.onError,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.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Se.LEVEL_LOADING,this.onLevelLoading,this),t.off(Se.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Se.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Se.ERROR,this.onError,this)}onMediaAttached(t,n){this.media=n.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),EN(this.media.textTracks).forEach(n=>{_S(n)}),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.subtitleTracks}onSubtitleTrackLoaded(t,n){const{id:r,groupId:i,details:o}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==i){this.warn(`Subtitle track with id:${r} and group:${i} not found in active group ${s==null?void 0:s.groupId}`);return}const a=s.details;s.details=n.details,this.log(`Subtitle track ${r} "${s.name}" lang:${s.lang} group:${i} loaded [${o.startSN}-${o.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,a)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.subtitleGroups||null,i=this.groupIds;let o=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(s=>(i==null?void 0:i.indexOf(s))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(u=>!r||r.indexOf(u.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(u=>u.default)&&(this.selectDefaultTrack=!1),s.forEach((u,f)=>{u.id=f});else if(!o&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const a=this.hls.config.subtitlePreference;if(!o&&a){this.selectDefaultTrack=!1;const u=Jp(a,s);if(u>-1)o=s[u];else{const f=Jp(a,this.tracks);o=this.tracks[f]}}let l=this.findTrackId(o);l===-1&&o&&(l=this.findTrackId(null));const c={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(Se.SUBTITLE_TRACKS_UPDATED,c),l!==-1&&this.trackId===-1&&this.setSubtitleTrack(l)}else this.shouldReloadPlaylist(o)&&this.setSubtitleTrack(this.trackId)}findTrackId(t){const n=this.tracksInGroup,r=this.selectDefaultTrack;for(let i=0;i<n.length;i++){const o=n[i];if(!(r&&!o.default||!r&&!t)&&(!t||JS(o,t)))return i}if(t){for(let i=0;i<n.length;i++){const o=n[i];if(C7(t.attrs,o.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return i}for(let i=0;i<n.length;i++){const o=n[i];if(C7(t.attrs,o.attrs,["LANGUAGE"]))return i}}return-1}findTrackForTextTrack(t){if(t){const n=this.tracksInGroup;for(let r=0;r<n.length;r++){const i=n[r];if(ice(i,t))return r}}return-1}onError(t,n){n.fatal||!n.context||n.context.type===Ii.SUBTITLE_TRACK&&n.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&this.checkRetry(n)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(t){this.selectDefaultTrack=!1,this.setSubtitleTrack(t)}setSubtitleOption(t){if(this.hls.config.subtitlePreference=t,t){const n=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&JS(t,r))return r;const i=Jp(t,this.tracksInGroup);if(i>-1){const o=this.tracksInGroup[i];return this.setSubtitleTrack(i),o}else{if(r)return null;{const o=Jp(t,n);if(o>-1)return n[o]}}}}return null}loadPlaylist(t){super.loadPlaylist();const n=this.currentTrack;if(this.shouldLoadPlaylist(n)&&n){const r=n.id,i=n.groupId;let o=n.url;if(t)try{o=t.addDirectives(o)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`Loading subtitle playlist for id ${r}`),this.hls.trigger(Se.SUBTITLE_TRACK_LOADING,{url:o,id:r,groupId:i,deliveryDirectives:t||null})}}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=EN(t.textTracks),r=this.currentTrack;let i;if(r&&(i=n.filter(o=>ice(r,o))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(n).forEach(o=>{o.mode!=="disabled"&&o!==i&&(o.mode="disabled")}),i){const o=this.subtitleDisplay?"showing":"hidden";i.mode!==o&&(i.mode=o)}}setSubtitleTrack(t){const n=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=t;return}if(t<-1||t>=n.length||!kn(t)){this.warn(`Invalid subtitle track id: ${t}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=n[t]||null;if(this.trackId=t,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(Se.SUBTITLE_TRACK_SWITCH,{id:t});return}const o=!!i.details&&!i.details.live;if(t===this.trackId&&i===r&&o)return;this.log(`Switching to subtitle-track ${t}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:s,groupId:a="",name:l,type:c,url:u}=i;this.hls.trigger(Se.SUBTITLE_TRACK_SWITCH,{id:s,groupId:a,name:l,type:c,url:u});const f=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(f)}}class ABn{constructor(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}append(t,n,r){const i=this.queues[n];i.push(t),i.length===1&&!r&&this.executeNext(n)}insertAbort(t,n){this.queues[n].unshift(t),this.executeNext(n)}appendBlocker(t){let n;const r=new Promise(o=>{n=o}),i={execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(i,t),r}executeNext(t){const n=this.queues[t];if(n.length){const r=n[0];try{r.execute()}catch(i){bt.warn(`[buffer-operation-queue]: Exception executing "${t}" SourceBuffer operation: ${i}`),r.onError(i);const o=this.buffers[t];o!=null&&o.updating||this.shiftAndExecuteNext(t)}}}shiftAndExecuteNext(t){this.queues[t].shift(),this.executeNext(t)}current(t){return this.queues[t][0]}}const YEe=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class DBn{constructor(t){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=r=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:r,mediaSource:i}=this;this.log("Media source opened"),r&&(r.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(Se.MEDIA_ATTACHED,{media:r,mediaSource:i})),i&&i.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:i}=this;r!==i&&bt.error(`Media element src was set while attaching MediaSource (${i} > ${r})`)},this.hls=t;const n="[buffer-controller]";this.appendSource=Vkn(GC(t.config.preferManagedMediaSource)),this.log=bt.log.bind(bt,n),this.warn=bt.warn.bind(bt,n),this.error=bt.error.bind(bt,n),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:t}=this;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_PARSED,this.onManifestParsed,this),t.on(Se.BUFFER_RESET,this.onBufferReset,this),t.on(Se.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Se.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Se.BUFFER_EOS,this.onBufferEos,this),t.on(Se.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Se.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Se.FRAG_PARSED,this.onFragParsed,this),t.on(Se.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){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_PARSED,this.onManifestParsed,this),t.off(Se.BUFFER_RESET,this.onBufferReset,this),t.off(Se.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Se.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Se.BUFFER_EOS,this.onBufferEos,this),t.off(Se.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Se.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Se.FRAG_PARSED,this.onFragParsed,this),t.off(Se.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new ABn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,n){let r=2;(n.audio&&!n.video||!n.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(t,n){const r=this.media=n.media,i=GC(this.appendSource);if(r&&i){var o;const s=this.mediaSource=new i;this.log(`created media source: ${(o=s.constructor)==null?void 0:o.name}`),s.addEventListener("sourceopen",this._onMediaSourceOpen),s.addEventListener("sourceended",this._onMediaSourceEnded),s.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(s.addEventListener("startstreaming",this._onStartStreaming),s.addEventListener("endstreaming",this._onEndStreaming));const a=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{r.removeAttribute("src");const l=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||l&&s instanceof l,XEe(r),LBn(r,a),r.load()}catch{r.src=a}else r.src=a;r.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:t,mediaSource:n,_objectUrl:r}=this;if(n){if(this.log("media source detaching"),n.readyState==="open")try{n.endOfStream()}catch(i){this.warn(`onMediaDetaching: ${i.message} while calling endOfStream`)}this.onBufferReset(),n.removeEventListener("sourceopen",this._onMediaSourceOpen),n.removeEventListener("sourceended",this._onMediaSourceEnded),n.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(n.removeEventListener("startstreaming",this._onStartStreaming),n.removeEventListener("endstreaming",this._onEndStreaming)),t&&(t.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(t.removeAttribute("src"),this.appendSource&&XEe(t),t.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(Se.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(t=>{this.resetBuffer(t)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(t){const n=this.sourceBuffer[t];try{if(n){var r;this.removeBufferListeners(t),this.sourceBuffer[t]=void 0,(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}}catch(i){this.warn(`onBufferReset ${t}`,i)}}onBufferCodecs(t,n){const r=this.getSourceBufferTypes().length,i=Object.keys(n);if(i.forEach(s=>{if(r){const l=this.tracks[s];if(l&&typeof l.buffer.changeType=="function"){var a;const{id:c,codec:u,levelCodec:f,container:h,metadata:g}=n[s],p=vEe(l.codec,l.levelCodec),m=p==null?void 0:p.replace(YEe,"$1");let v=vEe(u,f);const C=(a=v)==null?void 0:a.replace(YEe,"$1");if(v&&m!==C){s.slice(0,5)==="audio"&&(v=OB(v,this.appendSource));const y=`${h};codecs=${v}`;this.appendChangeType(s,y),this.log(`switching codec ${p} to ${v}`),this.tracks[s]={buffer:l.buffer,codec:u,container:h,levelCodec:f,metadata:g,id:c}}}}else this.pendingTracks[s]=n[s]}),r)return;const o=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==o&&(this.log(`${o} bufferCodec event(s) expected ${i.join(",")}`),this.bufferCodecEventsExpected=o),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(t,n){const{operationQueue:r}=this,i={execute:()=>{const o=this.sourceBuffer[t];o&&(this.log(`changing ${t} sourceBuffer type to ${n}`),o.changeType(n)),r.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:o=>{this.warn(`Failed to change ${t} SourceBuffer type`,o)}};r.append(i,t,!!this.pendingTracks[t])}onBufferAppending(t,n){const{hls:r,operationQueue:i,tracks:o}=this,{data:s,type:a,frag:l,part:c,chunkMeta:u}=n,f=u.buffering[a],h=self.performance.now();f.start=h;const g=l.stats.buffering,p=c?c.stats.buffering:null;g.start===0&&(g.start=h),p&&p.start===0&&(p.start=h);const m=o.audio;let v=!1;a==="audio"&&(m==null?void 0:m.container)==="audio/mpeg"&&(v=!this.lastMpegAudioChunk||u.id===1||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const C=l.start,y={execute:()=>{if(f.executeStart=self.performance.now(),v){const b=this.sourceBuffer[a];if(b){const S=C-b.timestampOffset;Math.abs(S)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${C} (delta: ${S}) sn: ${l.sn})`),b.timestampOffset=C)}}this.appendExecutor(s,a)},onStart:()=>{},onComplete:()=>{const b=self.performance.now();f.executeEnd=f.end=b,g.first===0&&(g.first=b),p&&p.first===0&&(p.first=b);const{sourceBuffer:S}=this,w={};for(const x in S)w[x]=xo.getBuffered(S[x]);this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Se.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:u,parent:l.type,timeRanges:w})},onError:b=>{const S={type:wr.MEDIA_ERROR,parent:l.type,details:_t.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:u,error:b,err:b,fatal:!1};if(b.code===DOMException.QUOTA_EXCEEDED_ERR)S.details=_t.BUFFER_FULL_ERROR;else{const w=++this.appendErrors[a];S.details=_t.BUFFER_APPEND_ERROR,this.warn(`Failed ${w}/${r.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer`),w>=r.config.appendErrorMaxRetry&&(S.fatal=!0)}r.trigger(Se.ERROR,S)}};i.append(y,a,!!this.pendingTracks[a])}onBufferFlushing(t,n){const{operationQueue:r}=this,i=o=>({execute:this.removeExecutor.bind(this,o,n.startOffset,n.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(Se.BUFFER_FLUSHED,{type:o})},onError:s=>{this.warn(`Failed to remove from ${o} SourceBuffer`,s)}});n.type?r.append(i(n.type),n.type):this.getSourceBufferTypes().forEach(o=>{r.append(i(o),o)})}onFragParsed(t,n){const{frag:r,part:i}=n,o=[],s=i?i.elementaryStreams:r.elementaryStreams;s[eo.AUDIOVIDEO]?o.push("audiovideo"):(s[eo.AUDIO]&&o.push("audio"),s[eo.VIDEO]&&o.push("video"));const a=()=>{const l=self.performance.now();r.stats.buffering.end=l,i&&(i.stats.buffering.end=l);const c=i?i.stats:r.stats;this.hls.trigger(Se.FRAG_BUFFERED,{frag:r,part:i,stats:c,id:r.type})};o.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(a,o)}onFragChanged(t,n){this.trimBuffers()}onBufferEos(t,n){this.getSourceBufferTypes().reduce((i,o)=>{const s=this.sourceBuffer[o];return s&&(!n.type||n.type===o)&&(s.ending=!0,s.ended||(s.ended=!0,this.log(`${o} sourceBuffer now EOS`))),i&&!!(!s||s.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(o=>{const s=this.sourceBuffer[o];s&&(s.ending=!1)});const{mediaSource:i}=this;if(!i||i.readyState!=="open"){i&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${i.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),i.endOfStream()}))}onLevelUpdated(t,{details:n}){n.fragments.length&&(this.details=n,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:t,details:n,media:r}=this;if(!r||n===null||!this.getSourceBufferTypes().length)return;const o=t.config,s=r.currentTime,a=n.levelTargetDuration,l=n.live&&o.liveBackBufferLength!==null?o.liveBackBufferLength:o.backBufferLength;if(kn(l)&&l>0){const c=Math.max(l,a),u=Math.floor(s/a)*a-c;this.flushBackBuffer(s,a,u)}if(kn(o.frontBufferFlushThreshold)&&o.frontBufferFlushThreshold>0){const c=Math.max(o.maxBufferLength,o.frontBufferFlushThreshold),u=Math.max(c,a),f=Math.floor(s/a)*a+u;this.flushFrontBuffer(s,a,f)}}flushBackBuffer(t,n,r){const{details:i,sourceBuffer:o}=this;this.getSourceBufferTypes().forEach(a=>{const l=o[a];if(l){const c=xo.getBuffered(l);if(c.length>0&&r>c.start(0)){if(this.hls.trigger(Se.BACK_BUFFER_REACHED,{bufferEnd:r}),i!=null&&i.live)this.hls.trigger(Se.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(l.ended&&c.end(c.length-1)-t<n*2){this.log(`Cannot flush ${a} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(Se.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:a})}}})}flushFrontBuffer(t,n,r){const{sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(s=>{const a=i[s];if(a){const l=xo.getBuffered(a),c=l.length;if(c<2)return;const u=l.start(c-1),f=l.end(c-1);if(r>u||t>=u&&t<=f)return;if(a.ended&&t-f<2*n){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(Se.BUFFER_FLUSHING,{startOffset:u,endOffset:1/0,type:s})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:t,hls:n,media:r,mediaSource:i}=this,o=t.fragments[0].start+t.totalduration,s=r.duration,a=kn(i.duration)?i.duration:0;t.live&&n.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(t)):(o>a&&o>s||!kn(s))&&(this.log(`Updating Media Source duration to ${o.toFixed(3)}`),i.duration=o)}updateSeekableRange(t){const n=this.mediaSource,r=t.fragments;if(r.length&&t.live&&n!=null&&n.setLiveSeekableRange){const o=Math.max(0,r[0].start),s=Math.max(o,o+t.totalduration);this.log(`Media Source duration is set to ${n.duration}. Setting seekable range to ${o}-${s}.`),n.setLiveSeekableRange(o,s)}}checkPendingTracks(){const{bufferCodecEventsExpected:t,operationQueue:n,pendingTracks:r}=this,i=Object.keys(r).length;if(i&&(!t||i===2||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};const o=this.getSourceBufferTypes();if(o.length)this.hls.trigger(Se.BUFFER_CREATED,{tracks:this.tracks}),o.forEach(s=>{n.executeNext(s)});else{const s=new Error("could not create source buffer for media codec(s)");this.hls.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:s,reason:s.message})}}}createSourceBuffers(t){const{sourceBuffer:n,mediaSource:r}=this;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(const o in t)if(!n[o]){var i;const s=t[o];if(!s)throw Error(`source buffer exists for track ${o}, however track does not`);let a=((i=s.levelCodec)==null?void 0:i.indexOf(","))===-1?s.levelCodec:s.codec;a&&o.slice(0,5)==="audio"&&(a=OB(a,this.appendSource));const l=`${s.container};codecs=${a}`;this.log(`creating sourceBuffer(${l})`);try{const c=n[o]=r.addSourceBuffer(l),u=o;this.addBufferListener(u,"updatestart",this._onSBUpdateStart),this.addBufferListener(u,"updateend",this._onSBUpdateEnd),this.addBufferListener(u,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(u,"bufferedchange",(f,h)=>{const g=h.removedRanges;g!=null&&g.length&&this.hls.trigger(Se.BUFFER_FLUSHED,{type:o})}),this.tracks[o]={buffer:c,codec:a,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(c){this.error(`error while trying to add sourceBuffer: ${c.message}`),this.hls.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:c,sourceBufferName:o,mimeType:l})}}}get mediaSrc(){var t,n;const r=((t=this.media)==null||(n=t.querySelector)==null?void 0:n.call(t,"source"))||this.media;return r==null?void 0:r.src}_onSBUpdateStart(t){const{operationQueue:n}=this;n.current(t).onStart()}_onSBUpdateEnd(t){var n;if(((n=this.mediaSource)==null?void 0:n.readyState)==="closed"){this.resetBuffer(t);return}const{operationQueue:r}=this;r.current(t).onComplete(),r.shiftAndExecuteNext(t)}_onSBUpdateError(t,n){var r;const i=new Error(`${t} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${i}`,n),this.hls.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:i,fatal:!1});const o=this.operationQueue.current(t);o&&o.onError(i)}removeExecutor(t,n,r){const{media:i,mediaSource:o,operationQueue:s,sourceBuffer:a}=this,l=a[t];if(!i||!o||!l){this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),s.shiftAndExecuteNext(t);return}const c=kn(i.duration)?i.duration:1/0,u=kn(o.duration)?o.duration:1/0,f=Math.max(0,n),h=Math.min(r,c,u);h>f&&(!l.ending||l.ended)?(l.ended=!1,this.log(`Removing [${f},${h}] from the ${t} SourceBuffer`),l.remove(f,h)):s.shiftAndExecuteNext(t)}appendExecutor(t,n){const r=this.sourceBuffer[n];if(!r){if(!this.pendingTracks[n])throw new Error(`Attempting to append to the ${n} SourceBuffer, but it does not exist`);return}r.ended=!1,r.appendBuffer(t)}blockBuffers(t,n=this.getSourceBufferTypes()){if(!n.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(t);return}const{operationQueue:r}=this,i=n.map(o=>r.appendBlocker(o));Promise.all(i).then(()=>{t(),n.forEach(o=>{const s=this.sourceBuffer[o];s!=null&&s.updating||r.shiftAndExecuteNext(o)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(t,n,r){const i=this.sourceBuffer[t];if(!i)return;const o=r.bind(this,t);this.listeners[t].push({event:n,listener:o}),i.addEventListener(n,o)}removeBufferListeners(t){const n=this.sourceBuffer[t];n&&this.listeners[t].forEach(r=>{n.removeEventListener(r.event,r.listener)})}}function XEe(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function LBn(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}const FBn={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},fJe=e=>String.fromCharCode(FBn[e]||e),kh=15,R1=100,NBn={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},kBn={17:2,18:4,21:6,22:8,23:10,19:13,20:15},zBn={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},BBn={25:2,26:4,29:6,30:8,31:10,27:13,28:15},HBn=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class jBn{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;bt.log(`${this.time} [${t}] ${r}`)}}}const O6=function(t){const n=[];for(let r=0;r<t.length;r++)n.push(t[r].toString(16));return n};class hJe{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(t){const n=["foreground","underline","italics","background","flash"];for(let r=0;r<n.length;r++){const i=n[r];t.hasOwnProperty(i)&&(this[i]=t[i])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash}copy(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class VBn{constructor(){this.uchar=" ",this.penState=new hJe}reset(){this.uchar=" ",this.penState.reset()}setChar(t,n){this.uchar=t,this.penState.copy(n)}setPenState(t){this.penState.copy(t)}equals(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)}copy(t){this.uchar=t.uchar,this.penState.copy(t.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}let GBn=class{constructor(t){this.chars=[],this.pos=0,this.currPenState=new hJe,this.cueStartTime=null,this.logger=void 0;for(let n=0;n<R1;n++)this.chars.push(new VBn);this.logger=t}equals(t){for(let n=0;n<R1;n++)if(!this.chars[n].equals(t.chars[n]))return!1;return!0}copy(t){for(let n=0;n<R1;n++)this.chars[n].copy(t.chars[n])}isEmpty(){let t=!0;for(let n=0;n<R1;n++)if(!this.chars[n].isEmpty()){t=!1;break}return t}setCursor(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>R1&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=R1)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r<n+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(n)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(t){t>=144&&this.backSpace();const n=fJe(t);if(this.pos>=R1){this.logger.log(0,()=>"Cannot insert "+t.toString(16)+" ("+n+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(n,this.currPenState),this.moveCursor(1)}clearFromPos(t){let n;for(n=t;n<R1;n++)this.chars[n].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const t=[];let n=!0;for(let r=0;r<R1;r++){const i=this.chars[r].uchar;i!==" "&&(n=!1),t.push(i)}return n?"":t.join("")}setPenStyles(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)}};class Jte{constructor(t){this.rows=[],this.currRow=kh-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let n=0;n<kh;n++)this.rows.push(new GBn(t));this.logger=t}reset(){for(let t=0;t<kh;t++)this.rows[t].clear();this.currRow=kh-1}equals(t){let n=!0;for(let r=0;r<kh;r++)if(!this.rows[r].equals(t.rows[r])){n=!1;break}return n}copy(t){for(let n=0;n<kh;n++)this.rows[n].copy(t.rows[n])}isEmpty(){let t=!0;for(let n=0;n<kh;n++)if(!this.rows[n].isEmpty()){t=!1;break}return t}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(t){this.rows[this.currRow].insertChar(t)}setPen(t){this.rows[this.currRow].setPenStyles(t)}moveCursor(t){this.rows[this.currRow].moveCursor(t)}setCursor(t){this.logger.log(2,"setCursor: "+t),this.rows[this.currRow].setCursor(t)}setPAC(t){this.logger.log(2,()=>"pacData = "+JSON.stringify(t));let n=t.row-1;if(this.nrRollUpRows&&n<this.nrRollUpRows-1&&(n=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==n){for(let a=0;a<kh;a++)this.rows[a].clear();const o=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const a=s.rows[o].cueStartTime,l=this.logger.time;if(a!==null&&l!==null&&a<l)for(let c=0;c<this.nrRollUpRows;c++)this.rows[n-this.nrRollUpRows+c+1].copy(s.rows[o+c])}}this.currRow=n;const r=this.rows[this.currRow];if(t.indent!==null){const o=t.indent,s=Math.max(o-1,0);r.setCursor(t.indent),t.color=r.chars[s].penState.foreground}const i={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(t){this.logger.log(2,()=>"bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const t=this.currRow+1-this.nrRollUpRows,n=this.rows.splice(t,1)[0];n.clear(),this.rows.splice(this.currRow,0,n),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const n=[];let r="",i=-1;for(let o=0;o<kh;o++){const s=this.rows[o].getTextString();s&&(i=o+1,t?n.push("Row "+i+": '"+s+"'"):n.push(s.trim()))}return n.length>0&&(t?r="["+n.join(" | ")+"]":r=n.join(`
|
||
`)),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.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class ZEe{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=UBn(),this.logger=void 0;const i=this.logger=new jBn;this.channels=[null,new QEe(t,n,i),new QEe(t+1,r,i)]}getHandler(t){return this.channels[t].getHandler()}setHandler(t,n){this.channels[t].setHandler(n)}addData(t,n){this.logger.time=t;for(let r=0;r<n.length;r+=2){const i=n[r]&127,o=n[r+1]&127;let s=!1,a=null;if(i===0&&o===0)continue;this.logger.log(3,()=>"["+O6([n[r],n[r+1]])+"] -> ("+O6([i,o])+")");const l=this.cmdHistory;if(i>=16&&i<=31){if(WBn(i,o,l)){KD(null,null,l),this.logger.log(3,()=>"Repeated command ("+O6([i,o])+") is dropped");continue}KD(i,o,this.cmdHistory),s=this.parseCmd(i,o),s||(s=this.parseMidrow(i,o)),s||(s=this.parsePAC(i,o)),s||(s=this.parseBackgroundAttributes(i,o))}else KD(null,null,l);if(!s&&(a=this.parseChars(i,o),a)){const u=this.currentChannel;u&&u>0?this.channels[u].insertChars(a):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!a&&this.logger.log(2,()=>"Couldn't parse cleaned data "+O6([i,o])+" orig: "+O6([n[r],n[r+1]]))}}parseCmd(t,n){const r=(t===20||t===28||t===21||t===29)&&n>=32&&n<=47,i=(t===23||t===31)&&n>=33&&n<=35;if(!(r||i))return!1;const o=t===20||t===21||t===23?1:2,s=this.channels[o];return t===20||t===21||t===28||t===29?n===32?s.ccRCL():n===33?s.ccBS():n===34?s.ccAOF():n===35?s.ccAON():n===36?s.ccDER():n===37?s.ccRU(2):n===38?s.ccRU(3):n===39?s.ccRU(4):n===40?s.ccFON():n===41?s.ccRDC():n===42?s.ccTR():n===43?s.ccRTD():n===44?s.ccEDM():n===45?s.ccCR():n===46?s.ccENM():n===47&&s.ccEOC():s.ccTO(n-32),this.currentChannel=o,!0}parseMidrow(t,n){let r=0;if((t===17||t===25)&&n>=32&&n<=47){if(t===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[r];return i?(i.ccMIDROW(n),this.logger.log(3,()=>"MIDROW ("+O6([t,n])+")"),!0):!1}return!1}parsePAC(t,n){let r;const i=(t>=17&&t<=23||t>=25&&t<=31)&&n>=64&&n<=127,o=(t===16||t===24)&&n>=64&&n<=95;if(!(i||o))return!1;const s=t<=23?1:2;n>=64&&n<=95?r=s===1?NBn[t]:zBn[t]:r=s===1?kBn[t]:BBn[t];const a=this.channels[s];return a?(a.setPAC(this.interpretPAC(r,n)),this.currentChannel=s,!0):!1}interpretPAC(t,n){let r;const i={color:null,italics:!1,indent:null,underline:!1,row:t};return n>95?r=n-96:r=n-64,i.underline=(r&1)===1,r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=Math.floor((r-16)/2)*4,i}parseChars(t,n){let r,i=null,o=null;if(t>=25?(r=2,o=t-8):(r=1,o=t),o>=17&&o<=19){let s;o===17?s=n+80:o===18?s=n+112:s=n+144,this.logger.log(2,()=>"Special char '"+fJe(s)+"' in channel "+r),i=[s]}else t>=32&&t<=127&&(i=n===0?[t]:[t,n]);return i&&this.logger.log(3,()=>"Char codes = "+O6(i).join(",")),i}parseBackgroundAttributes(t,n){const r=(t===16||t===24)&&n>=32&&n<=47,i=(t===23||t===31)&&n>=45&&n<=47;if(!(r||i))return!1;let o;const s={};t===16||t===24?(o=Math.floor((n-32)/2),s.background=HBn[o],n%2===1&&(s.background=s.background+"_semi")):n===45?s.background="transparent":(s.foreground="black",n===47&&(s.underline=!0));const a=t<=23?1:2;return this.channels[a].setBkgData(s),!0}reset(){for(let t=0;t<Object.keys(this.channels).length;t++){const n=this.channels[t];n&&n.reset()}KD(null,null,this.cmdHistory)}cueSplitAtTime(t){for(let n=0;n<this.channels.length;n++){const r=this.channels[n];r&&r.cueSplitAtTime(t)}}}function KD(e,t,n){n.a=e,n.b=t}function WBn(e,t,n){return n.a===e&&n.b===t}function UBn(){return{a:null,b:null}}class YD{constructor(t,n){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=n}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,n,r){(this.startTime===null||this.startTime>t)&&(this.startTime=t),this.endTime=n,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var O1e=function(){if(m7!=null&&m7.VTTCue)return self.VTTCue;const e=["","lr","rl"],t=["start","middle","end","left","right"];function n(a,l){if(typeof l!="string"||!Array.isArray(a))return!1;const c=l.toLowerCase();return~a.indexOf(c)?c:!1}function r(a){return n(e,a)}function i(a){return n(t,a)}function o(a,...l){let c=1;for(;c<arguments.length;c++){const u=arguments[c];for(const f in u)a[f]=u[f]}return a}function s(a,l,c){const u=this,f={enumerable:!0};u.hasBeenReset=!1;let h="",g=!1,p=a,m=l,v=c,C=null,y="",b=!0,S="auto",w="start",x=50,E="middle",R=50,O="middle";Object.defineProperty(u,"id",o({},f,{get:function(){return h},set:function(T){h=""+T}})),Object.defineProperty(u,"pauseOnExit",o({},f,{get:function(){return g},set:function(T){g=!!T}})),Object.defineProperty(u,"startTime",o({},f,{get:function(){return p},set:function(T){if(typeof T!="number")throw new TypeError("Start time must be set to a number.");p=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"endTime",o({},f,{get:function(){return m},set:function(T){if(typeof T!="number")throw new TypeError("End time must be set to a number.");m=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"text",o({},f,{get:function(){return v},set:function(T){v=""+T,this.hasBeenReset=!0}})),Object.defineProperty(u,"region",o({},f,{get:function(){return C},set:function(T){C=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"vertical",o({},f,{get:function(){return y},set:function(T){const M=r(T);if(M===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=M,this.hasBeenReset=!0}})),Object.defineProperty(u,"snapToLines",o({},f,{get:function(){return b},set:function(T){b=!!T,this.hasBeenReset=!0}})),Object.defineProperty(u,"line",o({},f,{get:function(){return S},set:function(T){if(typeof T!="number"&&T!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");S=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"lineAlign",o({},f,{get:function(){return w},set:function(T){const M=i(T);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");w=M,this.hasBeenReset=!0}})),Object.defineProperty(u,"position",o({},f,{get:function(){return x},set:function(T){if(T<0||T>100)throw new Error("Position must be between 0 and 100.");x=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"positionAlign",o({},f,{get:function(){return E},set:function(T){const M=i(T);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");E=M,this.hasBeenReset=!0}})),Object.defineProperty(u,"size",o({},f,{get:function(){return R},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");R=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"align",o({},f,{get:function(){return O},set:function(T){const M=i(T);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");O=M,this.hasBeenReset=!0}})),u.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class qBn{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function gJe(e){function t(r,i,o,s){return(r|0)*3600+(i|0)*60+(o|0)+parseFloat(s||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}class KBn{constructor(){this.values=Object.create(null)}set(t,n){!this.get(t)&&n!==""&&(this.values[t]=n)}get(t,n,r){return r?this.has(t)?this.values[t]:n[r]:this.has(t)?this.values[t]:n}has(t){return t in this.values}alt(t,n,r){for(let i=0;i<r.length;++i)if(n===r[i]){this.set(t,n);break}}integer(t,n){/^-?\d+$/.test(n)&&this.set(t,parseInt(n,10))}percent(t,n){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(n)){const r=parseFloat(n);if(r>=0&&r<=100)return this.set(t,r),!0}return!1}}function pJe(e,t,n,r){const i=r?e.split(r):[e];for(const o in i){if(typeof i[o]!="string")continue;const s=i[o].split(n);if(s.length!==2)continue;const a=s[0],l=s[1];t(a,l)}}const oce=new O1e(0,0,""),XD=oce.align==="middle"?"middle":"center";function YBn(e,t,n){const r=e;function i(){const a=gJe(e);if(a===null)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),a}function o(a,l){const c=new KBn;pJe(a,function(h,g){let p;switch(h){case"region":for(let m=n.length-1;m>=0;m--)if(n[m].id===g){c.set(h,n[m].region);break}break;case"vertical":c.alt(h,g,["rl","lr"]);break;case"line":p=g.split(","),c.integer(h,p[0]),c.percent(h,p[0])&&c.set("snapToLines",!1),c.alt(h,p[0],["auto"]),p.length===2&&c.alt("lineAlign",p[1],["start",XD,"end"]);break;case"position":p=g.split(","),c.percent(h,p[0]),p.length===2&&c.alt("positionAlign",p[1],["start",XD,"end","line-left","line-right","auto"]);break;case"size":c.percent(h,g);break;case"align":c.alt(h,g,["start",XD,"end","left","right"]);break}},/:/,/\s/),l.region=c.get("region",null),l.vertical=c.get("vertical","");let u=c.get("line","auto");u==="auto"&&oce.line===-1&&(u=-1),l.line=u,l.lineAlign=c.get("lineAlign","start"),l.snapToLines=c.get("snapToLines",!0),l.size=c.get("size",100),l.align=c.get("align",XD);let f=c.get("position","auto");f==="auto"&&oce.position===50&&(f=l.align==="start"||l.align==="left"?0:l.align==="end"||l.align==="right"?100:50),l.position=f}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=i(),s(),e.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);e=e.slice(3),s(),t.endTime=i(),s(),o(e,t)}function mJe(e){return e.replace(/<br(?: \/)?>/gi,`
|
||
`)}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]!==`
|
||
`;)++s;const a=o.slice(0,s);return o[s]==="\r"&&++s,o[s]===`
|
||
`&&++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+=`
|
||
`),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+=`
|
||
|
||
`,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,`
|
||
`).split(`
|
||
`),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,{frag:n,id:r,initPTS:i,timescale:o}){const{unparsedVttFrags:s}=this;r==="main"&&(this.initPTS[n.cc]={baseTime:i,timescale:o}),s.length&&(this.unparsedVttFrags=[],s.forEach(a=>{this.onFragLoaded(Se.FRAG_LOADED,a)}))}getExistingTrack(t,n){const{media:r}=this;if(r)for(let i=0;i<r.textTracks.length;i++){const o=r.textTracks[i];if(nRe(o,{name:t,lang:n,attrs:{}}))return o}return null}createCaptionsTrack(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)}createNativeTrack(t){if(this.captionsTracks[t])return;const{captionsProperties:n,captionsTracks:r,media:i}=this,{label:o,languageCode:s}=n[t],a=this.getExistingTrack(o,s);if(a)r[t]=a,_S(r[t]),zZe(r[t],i);else{const l=this.createTextTrack("captions",o,s);l&&(l[t]=!0,r[t]=l)}}createNonNativeTrack(t){if(this.nonNativeCaptionsTracks[t])return;const n=this.captionsProperties[t];if(!n)return;const r=n.label,i={_id:t,label:r,kind:"captions",default:n.media?!!n.media.default:!1,closedCaptions:n.media};this.nonNativeCaptionsTracks[t]=i,this.hls.trigger(Se.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}createTextTrack(t,n,r){const i=this.media;if(i)return i.addTextTrack(t,n,r)}onMediaAttaching(t,n){this.media=n.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:t}=this;Object.keys(t).forEach(n=>{_S(t[n]),delete t[n]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=rRe(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const n=t.textTracks;if(n)for(let r=0;r<n.length;r++)_S(n[r])}onSubtitleTracksUpdated(t,n){const r=n.subtitleTracks||[],i=r.some(o=>o.textCodec===nne);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(dJe(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,a=s?EN(s.textTracks):null;if(this.tracks.forEach((l,c)=>{let u;if(a){let f=null;for(let h=0;h<a.length;h++)if(a[h]&&nRe(a[h],l)){f=a[h],a[h]=null;break}f&&(u=f)}if(u)_S(u);else{const f=bJe(l);u=this.createTextTrack(f,l.name,l.lang),u&&(u.mode="disabled")}u&&this.textTracks.push(u)}),a!=null&&a.length){const l=a.filter(c=>c!==null).map(c=>c.label);l.length&&bt.warn(`Media element contains unused subtitle tracks: ${l.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(a=>({label:a.name,kind:a.type.toLowerCase(),default:a.default,subtitleTrack:a}));this.hls.trigger(Se.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(t,n){this.config.enableCEA708Captions&&n.captions&&n.captions.forEach(r=>{const i=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!i)return;const o=`textTrack${i[1]}`,s=this.captionsProperties[o];s&&(s.label=r.name,r.lang&&(s.languageCode=r.lang),s.media=r)})}closedCaptionsForLevel(t){const n=this.hls.levels[t.level];return n==null?void 0:n.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,n){if(this.enabled&&n.frag.type===fr.MAIN){var r,i;const{cea608Parser1:o,cea608Parser2:s,lastSn:a}=this,{cc:l,sn:c}=n.frag,u=(r=(i=n.part)==null?void 0:i.index)!=null?r:-1;o&&s&&(c!==a+1||c===a&&u!==this.lastPartIndex+1||l!==this.lastCc)&&(o.reset(),s.reset()),this.lastCc=l,this.lastSn=c,this.lastPartIndex=u}}onFragLoaded(t,n){const{frag:r,payload:i}=n;if(r.type===fr.SUBTITLE)if(i.byteLength){const o=r.decryptdata,s="stats"in n;if(o==null||!o.encrypted||s){const a=this.tracks[r.level],l=this.vttCCs;l[r.cc]||(l[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),a&&a.textCodec===nne?this._parseIMSC1(r,i):this._parseVTTs(n)}}else this.hls.trigger(Se.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;JEe(n,this.initPTS[t.cc],i=>{this._appendCues(i,t.level),r.trigger(Se.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},i=>{bt.log(`Failed to parse IMSC1: ${i}`),r.trigger(Se.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:i})})}_parseVTTs(t){var n;const{frag:r,payload:i}=t,{initPTS:o,unparsedVttFrags:s}=this,a=o.length-1;if(!o[r.cc]&&a===-1){s.push(t);return}const l=this.hls,c=(n=r.initSegment)!=null&&n.data?Jf(r.initSegment.data,new Uint8Array(i)):i;eHn(c,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,u=>{this._appendCues(u,r.level),l.trigger(Se.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},u=>{const f=u.message==="Missing initPTS for VTT MPEGTS";f?s.push(t):this._fallbackToIMSC1(r,i),bt.log(`Failed to parse VTT cue: ${u}`),!(f&&a>r.cc)&&l.trigger(Se.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:u})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||JEe(n,this.initPTS[t.cc],()=>{r.textCodec=nne,this._parseIMSC1(t,n)},()=>{r.textCodec="wvtt"})}_appendCues(t,n){const r=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[n];if(!i||i.mode==="disabled")return;t.forEach(o=>BZe(i,o))}else{const i=this.tracks[n];if(!i)return;const o=i.default?"default":"subtitles"+n;r.trigger(Se.CUES_PARSED,{type:"subtitles",cues:t,track:o})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===fr.SUBTITLE&&this.onFragLoaded(Se.FRAG_LOADED,n)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,n){this.initCea608Parsers();const{cea608Parser1:r,cea608Parser2:i}=this;if(!this.enabled||!r||!i)return;const{frag:o,samples:s}=n;if(!(o.type===fr.MAIN&&this.closedCaptionsForLevel(o)==="NONE"))for(let a=0;a<s.length;a++){const l=s[a].bytes;if(l){const c=this.extractCea608Data(l);r.addData(s[a].pts,c[0]),i.addData(s[a].pts,c[1])}}}onBufferFlushing(t,{startOffset:n,endOffset:r,endOffsetSubtitles:i,type:o}){const{media:s}=this;if(!(!s||s.currentTime<r)){if(!o||o==="video"){const{captionsTracks:a}=this;Object.keys(a).forEach(l=>Zle(a[l],n,r))}if(this.config.renderTextTracksNatively&&n===0&&i!==void 0){const{textTracks:a}=this;Object.keys(a).forEach(l=>Zle(a[l],n,i))}}}extractCea608Data(t){const n=[[],[]],r=t[0]&31;let i=2;for(let o=0;o<r;o++){const s=t[i++],a=127&t[i++],l=127&t[i++];if(a===0&&l===0)continue;if((4&s)!==0){const u=3&s;(u===0||u===1)&&(n[u].push(a),n[u].push(l))}}return n}}function bJe(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function nRe(e,t){return!!e&&e.kind===bJe(t)&&ice(t,e)}function aHn(e,t,n,r){return Math.min(t,r)-Math.max(e,n)}function rRe(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class I1e{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(Se.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Se.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Se.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Se.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Se.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Se.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Se.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Se.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Se.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Se.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Se.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Se.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,n){const r=this.hls.levels[n.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(t,n){this.media=n.media instanceof HTMLVideoElement?n.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(t,n){const r=this.hls;this.restrictedLevels=[],this.firstLevel=n.firstLevel,r.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onLevelsUpdated(t,n){this.timer&&kn(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(t,n){this.hls.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const t=this.hls.levels;if(t.length){const n=this.hls,r=this.getMaxLevel(t.length-1);r!==this.autoLevelCapping&&bt.log(`Setting autoLevelCapping to ${r}: ${t[r].height}p@${t[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),n.autoLevelCapping=r,n.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=n.autoLevelCapping}}}getMaxLevel(t){const n=this.hls.levels;if(!n.length)return-1;const r=n.filter((i,o)=>this.isLevelAllowed(i)&&o<=t);return this.clientRect=null,I1e.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,n={width:0,height:0};if(t){const r=t.getBoundingClientRect();n.width=r.width,n.height=r.height,!n.width&&!n.height&&(n.width=r.right-r.left||t.width||0,n.height=r.bottom-r.top||t.height||0)}return this.clientRect=n,n}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch{}return t}isLevelAllowed(t){return!this.restrictedLevels.some(r=>t.bitrate===r.bitrate&&t.width===r.width&&t.height===r.height)}static getMaxLevelByMediaSize(t,n,r){if(!(t!=null&&t.length))return-1;const i=(a,l)=>l?a.width!==l.width||a.height!==l.height:!0;let o=t.length-1;const s=Math.max(n,r);for(let a=0;a<t.length;a+=1){const l=t[a];if((l.width>=s||l.height>=s)&&i(l,t[a+1])){o=a;break}}return o}}class lHn{constructor(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(Se.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(Se.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,n){const r=this.hls.config;if(r.capLevelOnFPSDrop){const i=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=i,i&&typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}checkFPS(t,n,r){const i=performance.now();if(n){if(this.lastTime){const o=i-this.lastTime,s=r-this.lastDroppedFrames,a=n-this.lastDecodedFrames,l=1e3*s/o,c=this.hls;if(c.trigger(Se.FPS_DROP,{currentDropped:s,currentDecoded:a,totalDroppedFrames:r}),l>0&&s>c.config.fpsDroppedMonitoringThreshold*a){let u=c.currentLevel;bt.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(c.autoLevelCapping===-1||c.autoLevelCapping>=u)&&(u=u-1,c.trigger(Se.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:c.currentLevel}),c.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=n}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const n=t.getVideoPlaybackQuality();this.checkFPS(t,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}}const QD="[eme]";class ew{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=ew.CDMCleanupPromise?[ew.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=bt.debug.bind(bt,QD),this.log=bt.log.bind(bt,QD),this.warn=bt.warn.bind(bt,QD),this.error=bt.error.bind(bt,QD),this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}registerListeners(){this.hls.on(Se.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Se.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Se.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(Se.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Se.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Se.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,i=n[t];if(i)return i.licenseUrl;if(t===Eo.WIDEVINE&&r)return r;throw new Error(`no license server URL configured for key-system "${t}"`)}getServerCertificateUrl(t){const{drmSystems:n}=this.config,r=n[t];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const n=this.hls.levels,r=(s,a,l)=>!!s&&l.indexOf(s)===a,i=n.map(s=>s.audioCodec).filter(r),o=n.map(s=>s.videoCodec).filter(r);return i.length+o.length===0&&o.push("avc1.42e01e"),new Promise((s,a)=>{const l=c=>{const u=c.shift();this.getMediaKeysPromise(u,i,o).then(f=>s({keySystem:u,mediaKeys:f})).catch(f=>{c.length?l(c):f instanceof Yd?a(f):a(new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_NO_ACCESS,error:f,fatal:!0},f.message))})};l(t)})}requestMediaKeySystemAccess(t,n){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${r}`;return $Ze===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return r(t,n)}getMediaKeysPromise(t,n,r){const i=gkn(t,n,r,this.config.drmSystemOptions),o=this.keySystemAccessPromises[t];let s=o==null?void 0:o.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${t}" key-system access with config: ${JSON.stringify(i)}`),s=this.requestMediaKeySystemAccess(t,i);const a=this.keySystemAccessPromises[t]={keySystemAccess:s};return s.catch(l=>{this.log(`Failed to obtain access to key-system "${t}": ${l}`)}),s.then(l=>{this.log(`Access for key-system "${l.keySystem}" obtained`);const c=this.fetchServerCertificate(t);return this.log(`Create media-keys for "${t}"`),a.mediaKeys=l.createMediaKeys().then(u=>(this.log(`Media-keys created for "${t}"`),c.then(f=>f?this.setMediaKeysServerCertificate(u,t,f):u))),a.mediaKeys.catch(u=>{this.error(`Failed to create media-keys for "${t}"}: ${u}`)}),a.mediaKeys})}return s.then(()=>o.mediaKeys)}createMediaKeySessionContext({decryptdata:t,keySystem:n,mediaKeys:r}){this.log(`Creating key-system session "${n}" keyId: ${Lp.hexDump(t.keyId||[])}`);const i=r.createSession(),o={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(o),o}renewKeySession(t){const n=t.decryptdata;if(n.pssh){const r=this.createMediaKeySessionContext(t),i=this.getKeyIdString(n),o="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,o,n.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}getKeyIdString(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(t.keyId===null)throw new Error("keyId is null");return Lp.hexDump(t.keyId)}updateKeySession(t,n){var r;const i=t.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${Lp.hexDump(((r=t.decryptdata)==null?void 0:r.keyId)||[])}
|
||
} (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.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(n)});return this.setMediaKeysQueue.push(i),i.then(()=>{this.log(`Media-keys set for "${t}"`),r.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(o=>r.indexOf(o)===-1)})}generateRequestWithPreferredKeySession(t,n,r,i){var o,s;const a=(o=this.config.drmSystems)==null||(s=o[t.keySystem])==null?void 0:s.generateRequest;if(a)try{const p=a.call(this.hls,n,r,t);if(!p)throw new Error("Invalid response from configured generateRequest filter");n=p.initDataType,r=t.decryptdata.pssh=p.initData?new Uint8Array(p.initData):null}catch(p){var l;if(this.warn(p.message),(l=this.hls)!=null&&l.config.debug)throw p}if(r===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(t);const c=this.getKeyIdString(t.decryptdata);this.log(`Generating key-session request for "${i}": ${c} (init data type: ${n} length: ${r?r.byteLength:null})`);const u=new $1e,f=t._onmessage=p=>{const m=t.mediaKeysSession;if(!m){u.emit("error",new Error("invalid state"));return}const{messageType:v,message:C}=p;this.log(`"${v}" message event for session "${m.sessionId}" message size: ${C.byteLength}`),v==="license-request"||v==="license-renewal"?this.renewLicense(t,C).catch(y=>{this.handleError(y),u.emit("error",y)}):v==="license-release"?t.keySystem===Eo.FAIRPLAY&&(this.updateKeySession(t,Xle("acknowledged")),this.removeSession(t)):this.warn(`unhandled media key message type "${v}"`)},h=t._onkeystatuseschange=p=>{if(!t.mediaKeysSession){u.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(t);const v=t.keyStatus;u.emit("keyStatus",v),v==="expired"&&(this.warn(`${t.keySystem} expired for key ${c}`),this.renewKeySession(t))};t.mediaKeysSession.addEventListener("message",f),t.mediaKeysSession.addEventListener("keystatuseschange",h);const g=new Promise((p,m)=>{u.on("error",m),u.on("keyStatus",v=>{v.startsWith("usable")?p():v==="output-restricted"?m(new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):v==="internal-error"?m(new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${v}"`)):v==="expired"?m(new Error("key expired while generating request")):this.warn(`unhandled key status change "${v}"`)})});return t.mediaKeysSession.generateRequest(n,r).then(()=>{var p;this.log(`Request generated for key-session "${(p=t.mediaKeysSession)==null?void 0:p.sessionId}" keyId: ${c}`)}).catch(p=>{throw new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_NO_SESSION,error:p,fatal:!1},`Error generating key-session request: ${p}`)}).then(()=>g).catch(p=>{throw u.removeAllListeners(),this.removeSession(t),p}).then(()=>(u.removeAllListeners(),t))}onKeyStatusChange(t){t.mediaKeysSession.keyStatuses.forEach((n,r)=>{this.log(`key status change "${n}" for keyStatuses keyId: ${Lp.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${Lp.hexDump(new Uint8Array(t.decryptdata.keyId||[]))} uri: ${t.decryptdata.uri}`),t.keyStatus=n})}fetchServerCertificate(t){const n=this.config,r=n.loader,i=new r(n),o=this.getServerCertificateUrl(t);return o?(this.log(`Fetching server certificate for "${t}"`),new Promise((s,a)=>{const l={responseType:"arraybuffer",url:o},c=n.certLoadPolicy.default,u={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},f={onSuccess:(h,g,p,m)=>{s(h.data)},onError:(h,g,p,m)=>{a(new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:p,response:ka({url:l.url,data:void 0},h)},`"${t}" certificate request failed (${o}). Status: ${h.code} (${h.text})`))},onTimeout:(h,g,p)=>{a(new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:p,response:{url:l.url,data:void 0}},`"${t}" certificate request timed out (${o})`))},onAbort:(h,g,p)=>{a(new Error("aborted"))}};i.load(l,u,f)})):Promise.resolve()}setMediaKeysServerCertificate(t,n,r){return new Promise((i,o)=>{t.setServerCertificate(r).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${r==null?void 0:r.byteLength}) on "${n}"`),i(t)}).catch(s=>{o(new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(t,n){return this.requestLicense(t,new Uint8Array(n)).then(r=>this.updateKeySession(t,new Uint8Array(r)).catch(i=>{throw new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:i,fatal:!0},i.message)}))}unpackPlayReadyKeyMessage(t,n){const r=String.fromCharCode.apply(null,new Uint16Array(n.buffer));if(!r.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),n;const i=new DOMParser().parseFromString(r,"application/xml"),o=i.querySelectorAll("HttpHeader");if(o.length>0){let u;for(let f=0,h=o.length;f<h;f++){var s,a;u=o[f];const g=(s=u.querySelector("name"))==null?void 0:s.textContent,p=(a=u.querySelector("value"))==null?void 0:a.textContent;g&&p&&t.setRequestHeader(g,p)}}const l=i.querySelector("Challenge"),c=l==null?void 0:l.textContent;if(!c)throw new Error("Cannot find <Challenge> in key message");return Xle(atob(c))}setupLicenseXHR(t,n,r,i){const o=this.config.licenseXhrSetup;return o?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return o.call(this.hls,t,n,r,i)}).catch(s=>{if(!r.decryptdata)throw s;return t.open("POST",n,!0),o.call(this.hls,t,n,r,i)}).then(s=>(t.readyState||t.open("POST",n,!0),{xhr:t,licenseChallenge:s||i})):(t.open("POST",n,!0),Promise.resolve({xhr:t,licenseChallenge:i}))}requestLicense(t,n){const r=this.config.keyLoadPolicy.default;return new Promise((i,o)=>{const s=this.getLicenseServerUrl(t.keySystem);this.log(`Sending license request to URL: ${s}`);const a=new XMLHttpRequest;a.responseType="arraybuffer",a.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return o(new Error("invalid state"));if(a.readyState===4)if(a.status===200){this._requestLicenseFailureCount=0;let l=a.response;this.log(`License received ${l instanceof ArrayBuffer?l.byteLength:l}`);const c=this.config.licenseResponseCallback;if(c)try{l=c.call(this.hls,a,s,t)}catch(u){this.error(u)}i(l)}else{const l=r.errorRetry,c=l?l.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||a.status>=400&&a.status<500)o(new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:a,response:{url:s,data:void 0,code:a.status,text:a.statusText}},`License Request XHR failed (${s}). Status: ${a.status} (${a.statusText})`));else{const u=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${u} attempts left`),this.requestLicense(t,n).then(i,o)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=a,this.setupLicenseXHR(a,s,t,n).then(({xhr:l,licenseChallenge:c})=>{t.keySystem==Eo.PLAYREADY&&(c=this.unpackPlayReadyKeyMessage(l,c)),l.send(c)})})}onMediaAttached(t,n){if(!this.config.emeEnabled)return;const r=n.media;this.media=r,r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media,n=this.mediaKeySessions;t&&(t.removeEventListener("encrypted",this.onMediaEncrypted),t.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},GT.clearKeyUriToKeyIdMap();const r=n.length;ew.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat(t==null?void 0:t.setMediaKeys(null).catch(i=>{this.log(`Could not clear media keys: ${i}`)}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),n.length=0)}).catch(i=>{this.log(`Could not close sessions and clear media keys: ${i}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(t,{sessionKeys:n}){if(!(!n||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=n.reduce((i,o)=>(i.indexOf(o.keyFormat)===-1&&i.push(o.keyFormat),i),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(t){const{mediaKeysSession:n,licenseXhr:r}=t;if(n){this.log(`Remove licenses and keys and close session ${n.sessionId}`),t._onmessage&&(n.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(n.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(t);return i>-1&&this.mediaKeySessions.splice(i,1),n.remove().catch(o=>{this.log(`Could not remove session: ${o}`)}).then(()=>n.close()).catch(o=>{this.log(`Could not close session: ${o}`)})}}}ew.CDMCleanupPromise=void 0;class Yd extends Error{constructor(t,n){super(n),this.data=void 0,t.error||(t.error=new Error(n)),this.data=t,t.err=t.error}}var xl;(function(e){e.MANIFEST="m",e.AUDIO="a",e.VIDEO="v",e.MUXED="av",e.INIT="i",e.CAPTION="c",e.TIMED_TEXT="tt",e.KEY="k",e.OTHER="o"})(xl||(xl={}));var sce;(function(e){e.DASH="d",e.HLS="h",e.SMOOTH="s",e.OTHER="o"})(sce||(sce={}));var L8;(function(e){e.OBJECT="CMCD-Object",e.REQUEST="CMCD-Request",e.SESSION="CMCD-Session",e.STATUS="CMCD-Status"})(L8||(L8={}));const cHn={[L8.OBJECT]:["br","d","ot","tb"],[L8.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[L8.SESSION]:["cid","pr","sf","sid","st","v"],[L8.STATUS]:["bs","rtp"]};class y7{constructor(t,n){this.value=void 0,this.params=void 0,Array.isArray(t)&&(t=t.map(r=>r instanceof y7?r:new y7(r))),this.value=t,this.params=n}}class SJe{constructor(t){this.description=void 0,this.description=t}}const uHn="Dict";function dHn(e){return Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":typeof e=="object"?JSON.stringify(e):String(e)}function fHn(e,t,n,r){return new Error(`failed to ${e} "${dHn(t)}" as ${n}`,{cause:r})}const iRe="Bare Item",hHn="Boolean",gHn="Byte Sequence",pHn="Decimal",mHn="Integer";function vHn(e){return e<-999999999999999||999999999999999<e}const CHn=/[\x00-\x1f\x7f]+/,yHn="Token",bHn="Key";function _m(e,t,n){return fHn("serialize",e,t,n)}function SHn(e){if(typeof e!="boolean")throw _m(e,hHn);return e?"?1":"?0"}function wHn(e){return btoa(String.fromCharCode(...e))}function xHn(e){if(ArrayBuffer.isView(e)===!1)throw _m(e,gHn);return`:${wHn(e)}:`}function wJe(e){if(vHn(e))throw _m(e,mHn);return e.toString()}function EHn(e){return`@${wJe(e.getTime()/1e3)}`}function xJe(e,t){if(e<0)return-xJe(-e,t);const n=Math.pow(10,t);if(Math.abs(e*n%1-.5)<Number.EPSILON){const i=Math.floor(e*n);return(i%2===0?i:i+1)/n}else return Math.round(e*n)/n}function RHn(e){const t=xJe(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw _m(e,pHn);const n=t.toString();return n.includes(".")?n:`${n}.0`}const $Hn="String";function OHn(e){if(CHn.test(e))throw _m(e,$Hn);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function THn(e){return e.description||e.toString().slice(7,-1)}function oRe(e){const t=THn(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw _m(t,yHn);return t}function ace(e){switch(typeof e){case"number":if(!kn(e))throw _m(e,iRe);return Number.isInteger(e)?wJe(e):RHn(e);case"string":return OHn(e);case"symbol":return oRe(e);case"boolean":return SHn(e);case"object":if(e instanceof Date)return EHn(e);if(e instanceof Uint8Array)return xHn(e);if(e instanceof SJe)return oRe(e);default:throw _m(e,iRe)}}function lce(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw _m(e,bHn);return e}function M1e(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${lce(t)}`:`;${lce(t)}=${ace(n)}`).join("")}function EJe(e){return e instanceof y7?`${ace(e.value)}${M1e(e.params)}`:ace(e)}function IHn(e){return`(${e.value.map(EJe).join(" ")})${M1e(e.params)}`}function MHn(e,t={whitespace:!0}){if(typeof e!="object")throw _m(e,uHn);const n=e instanceof Map?e.entries():Object.entries(e),r=t!=null&&t.whitespace?" ":"";return Array.from(n).map(([i,o])=>{o instanceof y7||(o=new y7(o));let s=lce(i);return o.value===!0?s+=M1e(o.params):(s+="=",Array.isArray(o.value)?s+=IHn(o):s+=EJe(o)),s}).join(`,${r}`)}function PHn(e,t){return MHn(e,t)}const _Hn=e=>e==="ot"||e==="sf"||e==="st",AHn=e=>typeof e=="number"?kn(e):e!=null&&e!==""&&e!==!1;function DHn(e,t){const n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;const i=n.pathname.split("/").slice(1),o=r.pathname.split("/").slice(1,-1);for(;i[0]===o[0];)i.shift(),o.shift();for(;o.length;)o.shift(),i.unshift("..");return i.join("/")}function LHn(){try{return crypto.randomUUID()}catch{try{const t=URL.createObjectURL(new Blob),n=t.toString();return URL.revokeObjectURL(t),n.slice(n.lastIndexOf("/")+1)}catch{let n=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const o=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(i=="x"?o:o&3|8).toString(16)})}}}const MN=e=>Math.round(e),FHn=(e,t)=>(t!=null&&t.baseUrl&&(e=DHn(e,t.baseUrl)),encodeURIComponent(e)),ZD=e=>MN(e/100)*100,NHn={br:MN,d:MN,bl:ZD,dl:ZD,mtp:ZD,nor:FHn,rtp:ZD,tb:MN};function kHn(e,t){const n={};if(e==null||typeof e!="object")return n;const r=Object.keys(e).sort(),i=Vs({},NHn,t==null?void 0:t.formatters),o=t==null?void 0:t.filter;return r.forEach(s=>{if(o!=null&&o(s))return;let a=e[s];const l=i[s];l&&(a=l(a,t)),!(s==="v"&&a===1)&&(s=="pr"&&a===1||AHn(a)&&(_Hn(s)&&typeof a=="string"&&(a=new SJe(a)),n[s]=a))}),n}function RJe(e,t={}){return e?PHn(kHn(e,t),Vs({whitespace:!1},t)):""}function zHn(e,t={}){if(!e)return{};const n=Object.entries(e),r=Object.entries(cHn).concat(Object.entries((t==null?void 0:t.customHeaderMap)||{})),i=n.reduce((o,s)=>{var a,l;const[c,u]=s,f=((a=r.find(h=>h[1].includes(c)))==null?void 0:a[0])||L8.REQUEST;return(l=o[f])!=null||(o[f]={}),o[f][c]=u,o},{});return Object.entries(i).reduce((o,[s,a])=>(o[s]=RJe(a,t),o),{})}function BHn(e,t,n){return Vs(e,zHn(t,n))}const HHn="CMCD";function jHn(e,t={}){if(!e)return"";const n=RJe(e,t);return`${HHn}=${encodeURIComponent(n)}`}const sRe=/CMCD=[^&#]+/;function VHn(e,t,n){const r=jHn(t,n);if(!r)return e;if(sRe.test(e))return e.replace(sRe,r);const i=e.includes("?")?"&":"?";return`${e}${i}${r}`}class GHn{constructor(t){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=i=>{try{this.apply(i,{ot:xl.MANIFEST,su:!this.initialized})}catch(o){bt.warn("Could not generate manifest CMCD data.",o)}},this.applyFragmentData=i=>{try{const o=i.frag,s=this.hls.levels[o.level],a=this.getObjectType(o),l={d:o.duration*1e3,ot:a};(a===xl.VIDEO||a===xl.AUDIO||a==xl.MUXED)&&(l.br=s.bitrate/1e3,l.tb=this.getTopBandwidth(a)/1e3,l.bl=this.getBufferLength(a)),this.apply(i,l)}catch(o){bt.warn("Could not generate segment CMCD data.",o)}},this.hls=t;const n=this.config=t.config,{cmcd:r}=n;r!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||LHn(),this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const t=this.hls;t.on(Se.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Se.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Se.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Se.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Se.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Se.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,n){var r,i;this.audioBuffer=(r=n.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(i=n.tracks.video)==null?void 0:i.buffer}createData(){var t;return{v:1,sf:sce.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){Vs(n,this.createData());const r=n.ot===xl.INIT||n.ot===xl.VIDEO||n.ot===xl.MUXED;this.starved&&r&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering);const{includeKeys:i}=this;i&&(n=Object.keys(n).reduce((o,s)=>(i.includes(s)&&(o[s]=n[s]),o),{})),this.useHeaders?(t.headers||(t.headers={}),BHn(t.headers,n)):t.url=VHn(t.url,n)}getObjectType(t){const{type:n}=t;if(n==="subtitle")return xl.TIMED_TEXT;if(t.sn==="initSegment")return xl.INIT;if(n==="audio")return xl.AUDIO;if(n==="main")return this.hls.audioTracks.length?xl.VIDEO:xl.MUXED}getTopBandwidth(t){let n=0,r;const i=this.hls;if(t===xl.AUDIO)r=i.audioTracks;else{const o=i.maxAutoLevel,s=o>-1?o+1:i.levels.length;r=i.levels.slice(0,s)}for(const o of r)o.bitrate>n&&(n=o.bitrate);return n>0?n:NaN}getBufferLength(t){const n=this.hls.media,r=t===xl.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:xo.bufferInfo(r,n.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:t}=this.config,n=this.applyPlaylistData,r=t||this.config.loader;return class{constructor(o){this.loader=void 0,this.loader=new r(o)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(o,s,a){n(o),this.loader.load(o,s,a)}}}createFragmentLoader(){const{fLoader:t}=this.config,n=this.applyFragmentData,r=t||this.config.loader;return class{constructor(o){this.loader=void 0,this.loader=new r(o)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(o,s,a){n(o),this.loader.load(o,s,a)}}}}const WHn=3e5;class UHn{constructor(t){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.log=bt.log.bind(bt,"[content-steering]:"),this.registerListeners()}registerListeners(){const t=this.hls;t.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Se.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Se.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Se.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Se.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Se.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Se.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=this.timeToLoad*1e3-(performance.now()-this.updated);if(t>0){this.scheduleRefresh(this.uri,t);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const n=this.levels;n&&(this.levels=n.filter(r=>r!==t))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,n){const{contentSteering:r}=n;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(t,n){this.audioTracks=n.audioTracks,this.subtitleTracks=n.subtitleTracks}onError(t,n){const{errorAction:r}=n;if((r==null?void 0:r.action)===Ya.SendAlternateToPenaltyBox&&r.flags===_h.MoveAllAlternatesMatchingHost){const i=this.levels;let o=this.pathwayPriority,s=this.pathwayId;if(n.context){const{groupId:a,pathwayId:l,type:c}=n.context;a&&i?s=this.getPathwayForGroupId(a,c,s):l&&(s=l)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!o&&i&&(o=i.reduce((a,l)=>(a.indexOf(l.pathwayId)===-1&&a.push(l.pathwayId),a),[])),o&&o.length>1&&(this.updatePathwayPriority(o),r.resolved=this.pathwayId!==s),r.resolved||bt.warn(`Could not resolve ${n.details} ("${n.error.message}") with content-steering for Pathway: ${s} levels: ${i&&i.length} priorities: ${JSON.stringify(o)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(t){this.levels=t;let n=this.getLevelsForPathway(this.pathwayId);if(n.length===0){const r=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),n=this.getLevelsForPathway(r),this.pathwayId=r}return n.length!==t.length&&this.log(`Found ${n.length}/${t.length} levels in Pathway "${this.pathwayId}"`),n}getLevelsForPathway(t){return this.levels===null?[]:this.levels.filter(n=>t===n.pathwayId)}updatePathwayPriority(t){this.pathwayPriority=t;let n;const r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach(o=>{i-r[o]>WHn&&delete r[o]});for(let o=0;o<t.length;o++){const s=t[o];if(s in r)continue;if(s===this.pathwayId)return;const a=this.hls.nextLoadLevel,l=this.hls.levels[a];if(n=this.getLevelsForPathway(s),n.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,GZe(n),this.hls.trigger(Se.LEVELS_UPDATED,{levels:n});const c=this.hls.levels[a];l&&c&&this.levels&&(c.attrs["STABLE-VARIANT-ID"]!==l.attrs["STABLE-VARIANT-ID"]&&c.bitrate!==l.bitrate&&this.log(`Unstable Pathways change from bitrate ${l.bitrate} to ${c.bitrate}`),this.hls.nextLoadLevel=a);break}}}getPathwayForGroupId(t,n,r){const i=this.getLevelsForPathway(r).concat(this.levels||[]);for(let o=0;o<i.length;o++)if(n===Ii.AUDIO_TRACK&&i[o].hasAudioGroup(t)||n===Ii.SUBTITLE_TRACK&&i[o].hasSubtitleGroup(t))return i[o].pathwayId;return r}clonePathways(t){const n=this.levels;if(!n)return;const r={},i={};t.forEach(o=>{const{ID:s,"BASE-ID":a,"URI-REPLACEMENT":l}=o;if(n.some(u=>u.pathwayId===s))return;const c=this.getLevelsForPathway(a).map(u=>{const f=new Ko(u.attrs);f["PATHWAY-ID"]=s;const h=f.AUDIO&&`${f.AUDIO}_clone_${s}`,g=f.SUBTITLES&&`${f.SUBTITLES}_clone_${s}`;h&&(r[f.AUDIO]=h,f.AUDIO=h),g&&(i[f.SUBTITLES]=g,f.SUBTITLES=g);const p=$Je(u.uri,f["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",l),m=new v7({attrs:f,audioCodec:u.audioCodec,bitrate:u.bitrate,height:u.height,name:u.name,url:p,videoCodec:u.videoCodec,width:u.width});if(u.audioGroups)for(let v=1;v<u.audioGroups.length;v++)m.addGroupId("audio",`${u.audioGroups[v]}_clone_${s}`);if(u.subtitleGroups)for(let v=1;v<u.subtitleGroups.length;v++)m.addGroupId("text",`${u.subtitleGroups[v]}_clone_${s}`);return m});n.push(...c),aRe(this.audioTracks,r,l,s),aRe(this.subtitleTracks,i,l,s)})}loadSteeringManifest(t){const n=this.hls.config,r=n.loader;this.loader&&this.loader.destroy(),this.loader=new r(n);let i;try{i=new self.URL(t)}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${t}`);return}if(i.protocol!=="data:"){const u=(this.hls.bandwidthEstimate||n.abrEwmaDefaultEstimate)|0;i.searchParams.set("_HLS_pathway",this.pathwayId),i.searchParams.set("_HLS_throughput",""+u)}const o={responseType:"json",url:i.href},s=n.steeringManifestLoadPolicy.default,a=s.errorRetry||s.timeoutRetry||{},l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},c={onSuccess:(u,f,h,g)=>{this.log(`Loaded steering manifest: "${i}"`);const p=u.data;if(p.VERSION!==1){this.log(`Steering VERSION ${p.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=p.TTL;const{"RELOAD-URI":m,"PATHWAY-CLONES":v,"PATHWAY-PRIORITY":C}=p;if(m)try{this.uri=new self.URL(m,i).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${m}`);return}this.scheduleRefresh(this.uri||h.url),v&&this.clonePathways(v);const y={steeringManifest:p,url:i.toString()};this.hls.trigger(Se.STEERING_MANIFEST_LOADED,y),C&&this.updatePathwayPriority(C)},onError:(u,f,h,g)=>{if(this.log(`Error loading steering manifest: ${u.code} ${u.text} (${f.url})`),this.stopLoad(),u.code===410){this.enabled=!1,this.log(`Steering manifest ${f.url} no longer available`);return}let p=this.timeToLoad*1e3;if(u.code===429){const m=this.loader;if(typeof(m==null?void 0:m.getResponseHeader)=="function"){const v=m.getResponseHeader("Retry-After");v&&(p=parseFloat(v)*1e3)}this.log(`Steering manifest ${f.url} rate limited`);return}this.scheduleRefresh(this.uri||f.url,p)},onTimeout:(u,f,h)=>{this.log(`Timeout loading steering manifest (${f.url})`),this.scheduleRefresh(this.uri||f.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(o,l,c)}scheduleRefresh(t,n=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const i=(r=this.hls)==null?void 0:r.media;if(i&&!i.ended){this.loadSteeringManifest(t);return}this.scheduleRefresh(t,this.timeToLoad*1e3)},n)}}function aRe(e,t,n,r){e&&Object.keys(t).forEach(i=>{const o=e.filter(s=>s.groupId===i).map(s=>{const a=Vs({},s);return a.details=void 0,a.attrs=new Ko(a.attrs),a.url=a.attrs.URI=$Je(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),a.groupId=a.attrs["GROUP-ID"]=t[i],a.attrs["PATHWAY-ID"]=r,a});e.push(...o)})}function $Je(e,t,n,r){const{HOST:i,PARAMS:o,[n]:s}=r;let a;t&&(a=s==null?void 0:s[t],a&&(e=a));const l=new self.URL(e);return i&&!a&&(l.host=i),o&&Object.keys(o).sort().forEach(c=>{c&&l.searchParams.set(c,o[c])}),l.href}const qHn=/^age:\s*[\d.]+\s*$/im;class OJe{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new uG,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,t.readyState!==4&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,n,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=n,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:t,context:n}=this;if(!t||!n)return;const r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const o=this.xhrSetup;o?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return o(r,n.url)}).catch(s=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",n.url,!0),o(r,n.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,n,t)}).catch(s=>{this.callbacks.onError({code:r.status,text:s.message},n,r,i)}):this.openAndSendXhr(r,n,t)}openAndSendXhr(t,n,r){t.readyState||t.open("GET",n.url,!0);const i=n.headers,{maxTimeToFirstByteMs:o,maxLoadTimeMs:s}=r.loadPolicy;if(i)for(const a in i)t.setRequestHeader(a,i[a]);n.rangeEnd&&t.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=n.responseType,self.clearTimeout(this.requestTimeout),r.timeout=o&&kn(o)?o:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()}readystatechange(){const{context:t,loader:n,stats:r}=this;if(!t||!n)return;const i=n.readyState,o=this.config;if(!r.aborted&&i>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),o.timeout!==o.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),o.timeout=o.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),i===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const s=n.status,a=n.responseType==="text"?n.responseText:null;if(s>=200&&s<300){const f=a??n.response;if(f!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const h=n.responseType==="arraybuffer"?f.byteLength:f.length;if(r.loaded=r.total=h,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const g=this.callbacks.onProgress;if(g&&g(r,t,f,n),!this.callbacks)return;const p={url:n.responseURL,data:f,code:s};this.callbacks.onSuccess(p,r,t,n);return}}const l=o.loadPolicy.errorRetry,c=r.retry,u={url:t.url,data:void 0,code:s};MB(l,c,!1,u)?this.retry(l):(bt.error(`${s} while loading ${t.url}`),this.callbacks.onError({code:s,text:n.statusText},t,n,r))}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(MB(t,n,!0))this.retry(t);else{var r;bt.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:n,stats:r}=this;this.retryDelay=v1e(t,r.retry),r.retry++,bt.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${n==null?void 0:n.url}, retrying ${r.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const n=this.stats;n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total)}getCacheAge(){let t=null;if(this.loader&&qHn.test(this.loader.getAllResponseHeaders())){const n=this.loader.getResponseHeader("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}function KHn(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const YHn=/(\d+)-(\d+)\/(\d+)/;class lRe{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||JHn,this.controller=new self.AbortController,this.stats=new uG}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,n,r){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const o=XHn(t,this.controller.signal),s=r.onProgress,a=t.responseType==="arraybuffer",l=a?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:u}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=r,this.request=this.fetchSetup(t,o),self.clearTimeout(this.requestTimeout),n.timeout=c&&kn(c)?c:u,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,t,this.response)},n.timeout),self.fetch(this.request).then(f=>{this.response=this.loader=f;const h=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=u,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,t,this.response)},u-(h-i.loading.start)),!f.ok){const{status:g,statusText:p}=f;throw new ejn(p||"fetch, bad network response",g,f)}return i.loading.first=h,i.total=ZHn(f.headers)||i.total,s&&kn(n.highWaterMark)?this.loadProgressively(f,i,t,n.highWaterMark,s):a?f.arrayBuffer():t.responseType==="json"?f.json():f.text()}).then(f=>{const h=this.response;if(!h)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const g=f[l];g&&(i.loaded=i.total=g);const p={url:h.url,data:f,code:h.status};s&&!kn(n.highWaterMark)&&s(i,t,f,h),r.onSuccess(p,i,t,h)}).catch(f=>{if(self.clearTimeout(this.requestTimeout),i.aborted)return;const h=f&&f.code||0,g=f?f.message:null;r.onError({code:h,text:g},t,f?f.details:null,i)})}getCacheAge(){let t=null;if(this.response){const n=this.response.headers.get("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,n,r,i=0,o){const s=new KZe,a=t.body.getReader(),l=()=>a.read().then(c=>{if(c.done)return s.dataLength&&o(n,r,s.flush(),t),Promise.resolve(new ArrayBuffer(0));const u=c.value,f=u.length;return n.loaded+=f,f<i||s.dataLength?(s.push(u),s.dataLength>=i&&o(n,r,s.flush(),t)):o(n,r,u,t),l()}).catch(()=>Promise.reject());return l()}}function XHn(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(Vs({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function QHn(e){const t=YHn.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function ZHn(e){const t=e.get("Content-Range");if(t){const r=QHn(t);if(kn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function JHn(e,t){return new self.Request(e.url,t)}class ejn extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const tjn=/\s/,njn={newCue(e,t,n,r){const i=[];let o,s,a,l,c;const u=self.VTTCue||self.TextTrackCue;for(let h=0;h<r.rows.length;h++)if(o=r.rows[h],a=!0,l=0,c="",!o.isEmpty()){var f;for(let m=0;m<o.chars.length;m++)tjn.test(o.chars[m].uchar)&&a?l++:(c+=o.chars[m].uchar,a=!1);o.cueStartTime=t,t===n&&(n+=1e-4),l>=16?l--:l++;const g=mJe(c.trim()),p=T1e(t,n,g);e!=null&&(f=e.cues)!=null&&f.getCueById(p)||(s=new u(t,n,g),s.id=p,s.line=h+1,s.align="left",s.position=10+Math.min(80,Math.floor(l*8/32)*10),i.push(s))}return e&&i.length&&(i.sort((h,g)=>h.line==="auto"||g.line==="auto"?0:h.line>8&&g.line>8?g.line-h.line:h.line-g.line),i.forEach(h=>BZe(e,h))),i}},rjn={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},TJe=ka(ka({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:OJe,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Mzn,bufferController:DBn,capLevelController:I1e,errorController:Czn,fpsController:lHn,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:$Ze,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:rjn},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},ijn()),{},{subtitleStreamController:MBn,subtitleTrackController:_Bn,timelineController:sHn,audioStreamController:TBn,audioTrackController:IBn,emeController:ew,cmcdController:GHn,contentSteeringController:UHn});function ijn(){return{cueHandler:njn,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function ojn(e,t){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(t.liveMaxLatencyDurationCount!==void 0&&(t.liveSyncDurationCount===void 0||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==void 0&&(t.liveSyncDuration===void 0||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=cce(e),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(o=>{const s=`${o==="level"?"playlist":o}LoadPolicy`,a=t[s]===void 0,l=[];i.forEach(c=>{const u=`${o}Loading${c}`,f=t[u];if(f!==void 0&&a){l.push(u);const h=n[s].default;switch(t[s]={default:h},c){case"TimeOut":h.maxLoadTimeMs=f,h.maxTimeToFirstByteMs=f;break;case"MaxRetry":h.errorRetry.maxNumRetry=f,h.timeoutRetry.maxNumRetry=f;break;case"RetryDelay":h.errorRetry.retryDelayMs=f,h.timeoutRetry.retryDelayMs=f;break;case"MaxRetryTimeout":h.errorRetry.maxRetryDelayMs=f,h.timeoutRetry.maxRetryDelayMs=f;break}}}),l.length&&bt.warn(`hls.js config: "${l.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(t[s])}`)}),ka(ka({},n),t)}function cce(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(cce):Object.keys(e).reduce((t,n)=>(t[n]=cce(e[n]),t),{}):e}function sjn(e){const t=e.loader;t!==lRe&&t!==OJe?(bt.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):KHn()&&(e.loader=lRe,e.progressive=!0,e.enableSoftwareAES=!0,bt.log("[config]: Progressive streaming enabled, using FetchLoader"))}let sne;class ajn extends C1e{constructor(t,n){super(t,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=n,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Se.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Se.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Se.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Se.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Se.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Se.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Se.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Se.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Se.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Se.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,n){this.resetLevels()}onManifestLoaded(t,n){const r=this.hls.config.preferManagedMediaSource,i=[],o={},s={};let a=!1,l=!1,c=!1;n.levels.forEach(u=>{var f,h;const g=u.attrs;let{audioCodec:p,videoCodec:m}=u;((f=p)==null?void 0:f.indexOf("mp4a.40.34"))!==-1&&(sne||(sne=/chrome|firefox/i.test(navigator.userAgent)),sne&&(u.audioCodec=p=void 0)),p&&(u.audioCodec=p=OB(p,r)),((h=m)==null?void 0:h.indexOf("avc1"))===0&&(m=u.videoCodec=qkn(m));const{width:v,height:C,unknownCodecs:y}=u;if(a||(a=!!(v&&C)),l||(l=!!m),c||(c=!!p),y!=null&&y.length||p&&!Wte(p,"audio",r)||m&&!Wte(m,"video",r))return;const{CODECS:b,"FRAME-RATE":S,"HDCP-LEVEL":w,"PATHWAY-ID":x,RESOLUTION:E,"VIDEO-RANGE":R}=g,T=`${`${x||"."}-`}${u.bitrate}-${E}-${S}-${b}-${R}-${w}`;if(o[T])if(o[T].uri!==u.url&&!u.attrs["PATHWAY-ID"]){const M=s[T]+=1;u.attrs["PATHWAY-ID"]=new Array(M+1).join(".");const _=new v7(u);o[T]=_,i.push(_)}else o[T].addGroupId("audio",g.AUDIO),o[T].addGroupId("text",g.SUBTITLES);else{const M=new v7(u);o[T]=M,s[T]=1,i.push(M)}}),this.filterAndSortMediaOptions(i,n,a,l,c)}filterAndSortMediaOptions(t,n,r,i,o){let s=[],a=[],l=t;if((r||i)&&o&&(l=l.filter(({videoCodec:p,videoRange:m,width:v,height:C})=>(!!p||!!(v&&C))&&szn(m))),l.length===0){Promise.resolve().then(()=>{if(this.hls){n.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(n.levels[0].attrs)}`);const p=new Error("no level with compatible codecs found in manifest");this.hls.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:p,reason:p.message})}});return}if(n.audioTracks){const{preferManagedMediaSource:p}=this.hls.config;s=n.audioTracks.filter(m=>!m.audioCodec||Wte(m.audioCodec,"audio",p)),cRe(s)}n.subtitles&&(a=n.subtitles,cRe(a));const c=l.slice(0);l.sort((p,m)=>{if(p.attrs["HDCP-LEVEL"]!==m.attrs["HDCP-LEVEL"])return(p.attrs["HDCP-LEVEL"]||"")>(m.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&p.height!==m.height)return p.height-m.height;if(p.frameRate!==m.frameRate)return p.frameRate-m.frameRate;if(p.videoRange!==m.videoRange)return TB.indexOf(p.videoRange)-TB.indexOf(m.videoRange);if(p.videoCodec!==m.videoCodec){const v=mEe(p.videoCodec),C=mEe(m.videoCodec);if(v!==C)return C-v}if(p.uri===m.uri&&p.codecSet!==m.codecSet){const v=$B(p.codecSet),C=$B(m.codecSet);if(v!==C)return C-v}return p.averageBitrate!==m.averageBitrate?p.averageBitrate-m.averageBitrate:0});let u=c[0];if(this.steering&&(l=this.steering.filterParsedLevels(l),l.length!==c.length)){for(let p=0;p<c.length;p++)if(c[p].pathwayId===l[0].pathwayId){u=c[p];break}}this._levels=l;for(let p=0;p<l.length;p++)if(l[p]===u){var f;this._firstLevel=p;const m=u.bitrate,v=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${l.length} level(s) found, first bitrate: ${m}`),((f=this.hls.userConfig)==null?void 0:f.abrEwmaDefaultEstimate)===void 0){const C=Math.min(m,this.hls.config.abrEwmaDefaultEstimateMax);C>v&&v===TJe.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=C)}break}const h=o&&!i,g={levels:l,audioTracks:s,subtitleTracks:a,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:o,video:i,altAudio:!h&&s.some(p=>!!p.url)};this.hls.trigger(Se.MANIFEST_PARSED,g),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(t){const n=this._levels;if(n.length===0)return;if(t<0||t>=n.length){const u=new Error("invalid level idx"),f=t<0;if(this.hls.trigger(Se.ERROR,{type:wr.OTHER_ERROR,details:_t.LEVEL_SWITCH_ERROR,level:t,fatal:f,error:u,reason:u.message}),f)return;t=Math.min(t,n.length-1)}const r=this.currentLevelIndex,i=this.currentLevel,o=i?i.attrs["PATHWAY-ID"]:void 0,s=n[t],a=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=s,r===t&&s.details&&i&&o===a)return;this.log(`Switching to level ${t} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${a?" with Pathway "+a:""} from level ${r}${o?" with Pathway "+o:""}`);const l={level:t,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(Se.LEVEL_SWITCHING,l);const c=s.details;if(!c||c.live){const u=this.switchParams(s.uri,i==null?void 0:i.details,c);this.loadPlaylist(u)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,this._startLevel===void 0&&(this._startLevel=t),t!==-1&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(this._startLevel===void 0){const t=this.hls.config.startLevel;return t!==void 0?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}onError(t,n){n.fatal||!n.context||n.context.type===Ii.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===fr.MAIN){const r=n.elementaryStreams;if(!Object.keys(r).some(o=>!!r[o]))return;const i=this._levels[n.level];i!=null&&i.loadError&&(this.log(`Resetting level error count of ${i.loadError} on frag buffered`),i.loadError=0)}}onLevelLoaded(t,n){var r;const{level:i,details:o}=n,s=this._levels[i];if(!s){var a;this.warn(`Invalid level index ${i}`),(a=n.deliveryDirectives)!=null&&a.skip&&(o.deltaUpdateFailed=!0);return}i===this.currentLevelIndex?(s.fragmentError===0&&(s.loadError=0),this.playlistLoaded(i,n,s.details)):(r=n.deliveryDirectives)!=null&&r.skip&&(o.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist();const n=this.currentLevelIndex,r=this.currentLevel;if(r&&this.shouldLoadPlaylist(r)){let i=r.uri;if(t)try{i=t.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}const o=r.attrs["PATHWAY-ID"];this.log(`Loading level index ${n}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""} with${o?" Pathway "+o:""} ${i}`),this.clearTimer(),this.hls.trigger(Se.LEVEL_LOADING,{url:i,level:n,pathwayId:r.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}removeLevel(t){var n;const r=this._levels.filter((i,o)=>o!==t?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(s=>s.level=-1)),!1));GZe(r),this._levels=r,this.currentLevelIndex>-1&&(n=this.currentLevel)!=null&&n.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(Se.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(t,{levels:n}){this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:n,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(Se.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function cRe(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}class ljn{constructor(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const r in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[r].loader;if(i){var n;if(t&&t!==((n=i.context)==null?void 0:n.frag.type))return;i.abort()}}}detach(){for(const t in this.keyUriToKeyInfo){const n=this.keyUriToKeyInfo[t];(n.mediaKeySessionContext||n.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyUriToKeyInfo){const n=this.keyUriToKeyInfo[t].loader;n&&n.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(t,n=_t.KEY_LOAD_ERROR,r,i,o){return new Y1({type:wr.NETWORK_ERROR,details:n,fatal:!1,frag:t,response:o,error:r,networkDetails:i})}loadClear(t,n){if(this.emeController&&this.config.emeEnabled){const{sn:r,cc:i}=t;for(let o=0;o<n.length;o++){const s=n[o];if(i<=s.cc&&(r==="initSegment"||s.sn==="initSegment"||r<s.sn)){this.emeController.selectKeySystemFormat(s).then(a=>{s.setKeyFormat(a)});break}}}}load(t){return!t.decryptdata&&t.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(t).then(n=>this.loadInternal(t,n)):this.loadInternal(t)}loadInternal(t,n){var r,i;n&&t.setKeyFormat(n);const o=t.decryptdata;if(!o){const c=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(t,_t.KEY_LOAD_ERROR,c))}const s=o.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,_t.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let a=this.keyUriToKeyInfo[s];if((r=a)!=null&&r.decryptdata.key)return o.key=a.decryptdata.key,Promise.resolve({frag:t,keyInfo:a});if((i=a)!=null&&i.keyLoadPromise){var l;switch((l=a.mediaKeySessionContext)==null?void 0:l.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return a.keyLoadPromise.then(c=>(o.key=c.keyInfo.decryptdata.key,{frag:t,keyInfo:a}))}}switch(a=this.keyUriToKeyInfo[s]={decryptdata:o,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},o.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return o.keyFormat==="identity"?this.loadKeyHTTP(a,t):this.loadKeyEME(a,t);case"AES-128":return this.loadKeyHTTP(a,t);default:return Promise.reject(this.createKeyLoadError(t,_t.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${o.method}"`)))}}loadKeyEME(t,n){const r={frag:n,keyInfo:t};if(this.emeController&&this.config.emeEnabled){const i=this.emeController.loadKey(r);if(i)return(t.keyLoadPromise=i.then(o=>(t.mediaKeySessionContext=o,r))).catch(o=>{throw t.keyLoadPromise=null,o})}return Promise.resolve(r)}loadKeyHTTP(t,n){const r=this.config,i=r.loader,o=new i(r);return n.keyLoader=t.loader=o,t.keyLoadPromise=new Promise((s,a)=>{const l={keyInfo:t,frag:n,responseType:"arraybuffer",url:t.decryptdata.uri},c=r.keyLoadPolicy.default,u={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},f={onSuccess:(h,g,p,m)=>{const{frag:v,keyInfo:C,url:y}=p;if(!v.decryptdata||C!==this.keyUriToKeyInfo[y])return a(this.createKeyLoadError(v,_t.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),m));C.decryptdata.key=v.decryptdata.key=new Uint8Array(h.data),v.keyLoader=null,C.loader=null,s({frag:v,keyInfo:C})},onError:(h,g,p,m)=>{this.resetLoader(g),a(this.createKeyLoadError(n,_t.KEY_LOAD_ERROR,new Error(`HTTP Error ${h.code} loading key ${h.text}`),p,ka({url:l.url,data:void 0},h)))},onTimeout:(h,g,p)=>{this.resetLoader(g),a(this.createKeyLoadError(n,_t.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),p))},onAbort:(h,g,p)=>{this.resetLoader(g),a(this.createKeyLoadError(n,_t.INTERNAL_ABORTED,new Error("key loading aborted"),p))}};o.load(l,u,f)})}resetLoader(t){const{frag:n,keyInfo:r,url:i}=t,o=r.loader;n.keyLoader===o&&(n.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[i],o&&o.destroy()}}function IJe(){return self.SourceBuffer||self.WebKitSourceBuffer}function MJe(){if(!GC())return!1;const t=IJe();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function cjn(){if(!MJe())return!1;const e=GC();return typeof(e==null?void 0:e.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(WT(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(WT(t,"audio"))))}function ujn(){var e;const t=IJe();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const djn=250,PN=2,fjn=.1,hjn=.05;class gjn{constructor(t,n,r,i){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=n,this.fragmentTracker=r,this.hls=i}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(t,n){const{config:r,media:i,stalled:o}=this;if(i===null)return;const{currentTime:s,seeking:a}=i,l=this.seeking&&!a,c=!this.seeking&&a;if(this.seeking=a,s!==t){if(this.moved=!0,a||(this.nudgeRetry=0),o!==null){if(this.stallReported){const v=self.performance.now()-o;bt.warn(`playback not stuck anymore @${s}, after ${Math.round(v)}ms`),this.stallReported=!1}this.stalled=null}return}if(c||l){this.stalled=null;return}if(i.paused&&!a||i.ended||i.playbackRate===0||!xo.getBuffered(i).length){this.nudgeRetry=0;return}const u=xo.bufferInfo(i,s,0),f=u.nextStart||0;if(a){const v=u.len>PN,C=!f||n&&n.start<=s||f-s>PN&&!this.fragmentTracker.getPartialFragment(s);if(v||C)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var h;if(!(u.len>0)&&!f)return;const C=Math.max(f,u.start||0)-s,y=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,S=(y==null||(h=y.details)==null?void 0:h.live)?y.details.targetduration*2:PN,w=this.fragmentTracker.getPartialFragment(s);if(C>0&&(C<=S||w)){i.paused||this._trySkipBufferHole(w);return}}const g=self.performance.now();if(o===null){this.stalled=g;return}const p=g-o;if(!a&&p>=djn&&(this._reportStall(u),!this.media))return;const m=xo.bufferInfo(i,s,r.maxBufferHole);this._tryFixBufferStall(m,p)}_tryFixBufferStall(t,n){const{config:r,fragmentTracker:i,media:o}=this;if(o===null)return;const s=o.currentTime,a=i.getPartialFragment(s);a&&(this._trySkipBufferHole(a)||!this.media)||(t.len>r.maxBufferHole||t.nextStart&&t.nextStart-s<r.maxBufferHole)&&n>r.highBufferWatchdogPeriod*1e3&&(bt.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(t){const{hls:n,media:r,stallReported:i}=this;if(!i&&r){this.stallReported=!0;const o=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${JSON.stringify(t)})`);bt.warn(o.message),n.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.BUFFER_STALLED_ERROR,fatal:!1,error:o,buffer:t.len})}}_trySkipBufferHole(t){const{config:n,hls:r,media:i}=this;if(i===null)return 0;const o=i.currentTime,s=xo.bufferInfo(i,o,0),a=o<s.start?s.start:s.nextStart;if(a){const l=s.len<=n.maxBufferHole,c=s.len>0&&s.len<1&&i.readyState<3,u=a-o;if(u>0&&(l||c)){if(u>n.maxBufferHole){const{fragmentTracker:h}=this;let g=!1;if(o===0){const p=h.getAppendedFrag(0,fr.MAIN);p&&a<p.end&&(g=!0)}if(!g){const p=t||h.getAppendedFrag(o,fr.MAIN);if(p){let m=!1,v=p.end;for(;v<a;){const C=h.getPartialFragment(v);if(C)v+=C.duration;else{m=!0;break}}if(m)return 0}}}const f=Math.max(a+hjn,o+fjn);if(bt.warn(`skipping hole, adjusting currentTime from ${o} to ${f}`),this.moved=!0,this.stalled=null,i.currentTime=f,t&&!t.gap){const h=new Error(`fragment loaded with buffer holes, seeking from ${o} to ${f}`);r.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:h,reason:h.message,frag:t})}return f}}return 0}_tryNudgeBuffer(){const{config:t,hls:n,media:r,nudgeRetry:i}=this;if(r===null)return;const o=r.currentTime;if(this.nudgeRetry++,i<t.nudgeMaxRetry){const s=o+(i+1)*t.nudgeOffset,a=new Error(`Nudging 'currentTime' from ${o} to ${s}`);bt.warn(a.message),r.currentTime=s,n.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.BUFFER_NUDGE_ON_STALL,error:a,fatal:!1})}else{const s=new Error(`Playhead still not moving while enough data buffered @${o} after ${t.nudgeMaxRetry} nudges`);bt.error(s.message),n.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const pjn=100;class mjn extends S1e{constructor(t,n,r){super(t,n,r,"[stream-controller]",fr.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_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.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Se.LEVEL_LOADING,this.onLevelLoading,this),t.on(Se.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Se.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Se.ERROR,this.onError,this),t.on(Se.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Se.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Se.BUFFER_CREATED,this.onBufferCreated,this),t.on(Se.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Se.LEVELS_UPDATED,this.onLevelsUpdated,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.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Se.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Se.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Se.ERROR,this.onError,this),t.off(Se.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Se.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Se.BUFFER_CREATED,this.onBufferCreated,this),t.off(Se.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Se.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Se.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(pjn),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this.loadedmetadata=!1}n>0&&t===-1&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),t=n),this.state=Xt.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=Xt.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Xt.WAITING_LEVEL:{const{levels:n,level:r}=this,i=n==null?void 0:n[r],o=i==null?void 0:i.details;if(o&&(!o.live||this.levelLastLoaded===i)){if(this.waitForCdnTuneIn(o))break;this.state=Xt.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Xt.IDLE;break}break}case Xt.FRAG_LOADING_WAITING_RETRY:{var t;const n=self.performance.now(),r=this.retryDate;if(!r||n>=r||(t=this.media)!=null&&t.seeking){const{levels:i,level:o}=this,s=i==null?void 0:i[o];this.resetStartWhenNotLoaded(s||null),this.state=Xt.IDLE}}break}this.state===Xt.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:n,levels:r,media:i}=this;if(n===null||!i&&(this.startFragRequested||!t.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const o=this.buffering?t.nextLoadLevel:t.loadLevel;if(!(r!=null&&r[o]))return;const s=r[o],a=this.getMainFwdBufferInfo();if(a===null)return;const l=this.getLevelDetails();if(l&&this._streamEnded(a,l)){const m={};this.altAudio&&(m.type="video"),this.hls.trigger(Se.BUFFER_EOS,m),this.state=Xt.ENDED;return}if(!this.buffering)return;t.loadLevel!==o&&t.manualLevel===-1&&this.log(`Adapting to level ${o} from level ${this.level}`),this.level=t.nextLoadLevel=o;const c=s.details;if(!c||this.state===Xt.WAITING_LEVEL||c.live&&this.levelLastLoaded!==s){this.level=o,this.state=Xt.WAITING_LEVEL;return}const u=a.len,f=this.getMaxBufferLength(s.maxBitrate);if(u>=f)return;this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);const h=this.backtrackFragment?this.backtrackFragment.start:a.end;let g=this.getNextFragment(h,c);if(this.couldBacktrack&&!this.fragPrevious&&g&&g.sn!=="initSegment"&&this.fragmentTracker.getState(g)!==Ia.OK){var p;const v=((p=this.backtrackFragment)!=null?p:g).sn-c.startSN,C=c.fragments[v-1];C&&g.cc===C.cc&&(g=C,this.fragmentTracker.removeFragment(C))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(g&&this.isLoopLoading(g,h)){if(!g.gap){const v=this.audioOnly&&!this.altAudio?eo.AUDIO:eo.VIDEO,C=(v===eo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;C&&this.afterBufferFlushed(C,v,fr.MAIN)}g=this.getNextFragmentLoopLoading(g,c,a,fr.MAIN,f)}g&&(g.initSegment&&!g.initSegment.data&&!this.bitrateTest&&(g=g.initSegment),this.loadFragment(g,s,h))}loadFragment(t,n,r){const i=this.fragmentTracker.getState(t);this.fragCurrent=t,i===Ia.NOT_LOADED||i===Ia.PARTIAL?t.sn==="initSegment"?this._loadInitSegment(t,n):this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,n)):(this.startFragRequested=!0,super.loadFragment(t,n,r)):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,fr.MAIN)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:n}=this;if(n!=null&&n.readyState){let r;const i=this.getAppendedFrag(n.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const o=this.getLevelDetails();if(o!=null&&o.live){const a=this.getMainFwdBufferInfo();if(!a||a.len<o.targetduration*2)return}if(!n.paused&&t){const a=this.hls.nextLoadLevel,l=t[a],c=this.fragLastKbps;c&&this.fragCurrent?r=this.fragCurrent.duration*l.maxBitrate/(1e3*c)+1:r=0}else r=0;const s=this.getBufferedFrag(n.currentTime+r);if(s){const a=this.followingBufferedFrag(s);if(a){this.abortCurrentFrag();const l=a.maxStartPTS?a.maxStartPTS:a.start,c=a.duration,u=Math.max(s.end,l+Math.min(Math.max(c-this.config.maxFragLookUpTolerance,c*(this.couldBacktrack?.5:.125)),c*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(u,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case Xt.KEY_LOADING:case Xt.FRAG_LOADING:case Xt.FRAG_LOADING_WAITING_RETRY:case Xt.PARSING:case Xt.PARSED:this.state=Xt.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(t,n){super.flushMainBuffer(t,n,this.altAudio?"video":null)}onMediaAttached(t,n){super.onMediaAttached(t,n);const r=n.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new gjn(this.config,r,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:t}=this;t&&this.onvplaying&&this.onvseeked&&(t.removeEventListener("playing",this.onvplaying),t.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const t=this.media,n=t?t.currentTime:null;kn(n)&&this.log(`Media seeked to ${n.toFixed(3)}`);const r=this.getMainFwdBufferInfo();if(r===null||r.len===0){this.warn(`Main forward buffer length on "seeked" event ${r?r.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(Se.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(t,n){let r=!1,i=!1;n.levels.forEach(o=>{const s=o.audioCodec;s&&(r=r||s.indexOf("mp4a.40.2")!==-1,i=i||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=r&&i&&!ujn(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=n.levels,this.startFragRequested=!1}onLevelLoading(t,n){const{levels:r}=this;if(!r||this.state!==Xt.IDLE)return;const i=r[n.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=Xt.WAITING_LEVEL)}onLevelLoaded(t,n){var r;const{levels:i}=this,o=n.level,s=n.details,a=s.totalduration;if(!i){this.warn(`Levels were reset while loading level ${o}`);return}this.log(`Level ${o} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""}, cc [${s.startCC}, ${s.endCC}] duration:${a}`);const l=i[o],c=this.fragCurrent;c&&(this.state===Xt.FRAG_LOADING||this.state===Xt.FRAG_LOADING_WAITING_RETRY)&&c.level!==n.level&&c.loader&&this.abortCurrentFrag();let u=0;if(s.live||(r=l.details)!=null&&r.live){var f;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;u=this.alignPlaylists(s,l.details,(f=this.levelLastLoaded)==null?void 0:f.details)}if(l.details=s,this.levelLastLoaded=l,this.hls.trigger(Se.LEVEL_UPDATED,{details:s,level:o}),this.state===Xt.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=Xt.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,u),this.tick()}_handleFragmentLoadProgress(t){var n;const{frag:r,part:i,payload:o}=t,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const a=s[r.level],l=a.details;if(!l){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const c=a.videoCodec,u=l.PTSKnown||!l.live,f=(n=r.initSegment)==null?void 0:n.data,h=this._getAudioCodec(a),g=this.transmuxer=this.transmuxer||new uJe(this.hls,fr.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),p=i?i.index:-1,m=p!==-1,v=new y1e(r.level,r.sn,r.stats.chunkCount,o.byteLength,p,m),C=this.initPTS[r.cc];g.push(o,f,h,c,r,i,l.totalduration,u,v,C)}onAudioTrackSwitching(t,n){const r=this.altAudio;if(!!!n.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const o=this.hls;r&&(o.trigger(Se.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),o.trigger(Se.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=n.id,i=!!this.hls.audioTracks[r].url;if(i){const o=this.videoBuffer;o&&this.mediaBuffer!==o&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=o)}this.altAudio=i,this.tick()}onBufferCreated(t,n){const r=n.tracks;let i,o,s=!1;for(const a in r){const l=r[a];if(l.id==="main"){if(o=a,i=l,a==="video"){const c=r[a];c&&(this.videoBuffer=c.buffer)}}else s=!0}s&&i?(this.log(`Alternate track found, use ${o}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(t,n){const{frag:r,part:i}=n;if(r&&r.type!==fr.MAIN)return;if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Xt.PARSED&&(this.state=Xt.IDLE);return}const o=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*o.total/(o.buffering.end-o.loading.first)),r.sn!=="initSegment"&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}onError(t,n){var r;if(n.fatal){this.state=Xt.ERROR;return}switch(n.details){case _t.FRAG_GAP:case _t.FRAG_PARSING_ERROR:case _t.FRAG_DECRYPT_ERROR:case _t.FRAG_LOAD_ERROR:case _t.FRAG_LOAD_TIMEOUT:case _t.KEY_LOAD_ERROR:case _t.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(fr.MAIN,n);break;case _t.LEVEL_LOAD_ERROR:case _t.LEVEL_LOAD_TIMEOUT:case _t.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===Xt.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===Ii.LEVEL&&(this.state=Xt.IDLE);break;case _t.BUFFER_APPEND_ERROR:case _t.BUFFER_FULL_ERROR:if(!n.parent||n.parent!=="main")return;if(n.details===_t.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(n)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case _t.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}checkBuffer(){const{media:t,gapController:n}=this;if(!(!t||!n||!t.readyState)){if(this.loadedmetadata||!xo.getBuffered(t).length){const r=this.state!==Xt.IDLE?this.fragCurrent:null;n.poll(this.lastCurrentTime,r)}this.lastCurrentTime=t.currentTime}}onFragLoadEmergencyAborted(){this.state=Xt.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==eo.AUDIO||this.audioOnly&&!this.altAudio){const r=(n===eo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,n,fr.MAIN),this.tick()}}onLevelsUpdated(t,n){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=n.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const n=t.currentTime;let r=this.startPosition;if(r>=0&&n<r){if(t.seeking){this.log(`could not seek to ${r}, already seeking at ${n}`);return}const i=xo.getBuffered(t),s=(i.length?i.start(0):0)-r;s>0&&(s<this.config.maxBufferHole||s<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${s} to match buffer start`),r+=s,this.startPosition=r),this.log(`seek to target start position ${r} from current time ${n}`),t.currentTime=r}}_getAudioCodec(t){let n=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&n&&(this.log("Swapping audio codec"),n.indexOf("mp4a.40.5")!==-1?n="mp4a.40.2":n="mp4a.40.5"),n}_loadBitrateTestFrag(t,n){t.bitrateTest=!0,this._doFragLoad(t,n).then(r=>{const{hls:i}=this;if(!r||this.fragContextChanged(t))return;n.fragmentError=0,this.state=Xt.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const o=t.stats;o.parsing.start=o.parsing.end=o.buffering.start=o.buffering.end=self.performance.now(),i.trigger(Se.FRAG_LOADED,r),t.bitrateTest=!1})}_handleTransmuxComplete(t){var n;const r="main",{hls:i}=this,{remuxResult:o,chunkMeta:s}=t,a=this.getCurrentContext(s);if(!a){this.resetWhenMissingContext(s);return}const{frag:l,part:c,level:u}=a,{video:f,text:h,id3:g,initSegment:p}=o,{details:m}=u,v=this.altAudio?void 0:o.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=Xt.PARSING,p){if(p!=null&&p.tracks){const b=l.initSegment||l;this._bufferInitSegment(u,p.tracks,b,s),i.trigger(Se.FRAG_PARSING_INIT_SEGMENT,{frag:b,id:r,tracks:p.tracks})}const C=p.initPTS,y=p.timescale;kn(C)&&(this.initPTS[l.cc]={baseTime:C,timescale:y},i.trigger(Se.INIT_PTS_FOUND,{frag:l,id:r,initPTS:C,timescale:y}))}if(f&&m&&l.sn!=="initSegment"){const C=m.fragments[l.sn-1-m.startSN],y=l.sn===m.startSN,b=!C||l.cc>C.cc;if(o.independent!==!1){const{startPTS:S,endPTS:w,startDTS:x,endDTS:E}=f;if(c)c.elementaryStreams[f.type]={startPTS:S,endPTS:w,startDTS:x,endDTS:E};else if(f.firstKeyFrame&&f.independent&&s.id===1&&!b&&(this.couldBacktrack=!0),f.dropped&&f.independent){const R=this.getMainFwdBufferInfo(),O=(R?R.end:this.getLoadPosition())+this.config.maxBufferHole,T=f.firstKeyFramePTS?f.firstKeyFramePTS:S;if(!y&&O<T-this.config.maxBufferHole&&!b){this.backtrack(l);return}else b&&(l.gap=!0);l.setElementaryStreamInfo(f.type,l.start,w,l.start,E,!0)}else y&&S>PN&&(l.gap=!0);l.setElementaryStreamInfo(f.type,S,w,x,E),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(f,l,c,s,y||b)}else if(y||b)l.gap=!0;else{this.backtrack(l);return}}if(v){const{startPTS:C,endPTS:y,startDTS:b,endDTS:S}=v;c&&(c.elementaryStreams[eo.AUDIO]={startPTS:C,endPTS:y,startDTS:b,endDTS:S}),l.setElementaryStreamInfo(eo.AUDIO,C,y,b,S),this.bufferFragmentData(v,l,c,s)}if(m&&g!=null&&(n=g.samples)!=null&&n.length){const C={id:r,frag:l,details:m,samples:g.samples};i.trigger(Se.FRAG_PARSING_METADATA,C)}if(m&&h){const C={id:r,frag:l,details:m,samples:h.samples};i.trigger(Se.FRAG_PARSING_USERDATA,C)}}_bufferInitSegment(t,n,r,i){if(this.state!==Xt.PARSING)return;this.audioOnly=!!n.audio&&!n.video,this.altAudio&&!this.audioOnly&&delete n.audio;const{audio:o,video:s,audiovideo:a}=n;if(o){let l=t.audioCodec;const c=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){l&&(l.indexOf("mp4a.40.5")!==-1?l="mp4a.40.2":l="mp4a.40.5");const u=o.metadata;u&&"channelCount"in u&&(u.channelCount||1)!==1&&c.indexOf("firefox")===-1&&(l="mp4a.40.5")}l&&l.indexOf("mp4a.40.5")!==-1&&c.indexOf("android")!==-1&&o.container!=="audio/mpeg"&&(l="mp4a.40.2",this.log(`Android: force audio codec to ${l}`)),t.audioCodec&&t.audioCodec!==l&&this.log(`Swapping manifest audio codec "${t.audioCodec}" for "${l}"`),o.levelCodec=l,o.id="main",this.log(`Init audio buffer, container:${o.container}, codecs[selected/level/parsed]=[${l||""}/${t.audioCodec||""}/${o.codec}]`)}s&&(s.levelCodec=t.videoCodec,s.id="main",this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${t.videoCodec||""}/${s.codec}]`)),a&&this.log(`Init audiovideo buffer, container:${a.container}, codecs[level/parsed]=[${t.codecs}/${a.codec}]`),this.hls.trigger(Se.BUFFER_CODECS,n),Object.keys(n).forEach(l=>{const u=n[l].initSegment;u!=null&&u.byteLength&&this.hls.trigger(Se.BUFFER_APPENDING,{type:l,data:u,frag:r,part:null,chunkMeta:i,parent:r.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,fr.MAIN)}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=Xt.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(xo.isBuffered(t,r)?n=this.getAppendedFrag(r):xo.isBuffered(t,r+.1)&&(n=this.getAppendedFrag(r+.1)),n){this.backtrackFragment=null;const i=this.fragPlaying,o=n.level;(!i||n.sn!==i.sn||i.level!==o)&&(this.fragPlaying=n,this.hls.trigger(Se.FRAG_CHANGED,{frag:n}),(!i||i.level!==o)&&this.hls.trigger(Se.LEVEL_SWITCHED,{level:o}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){const t=this.media;return t?this.fragPlaying||this.getAppendedFrag(t.currentTime):null}get currentProgramDateTime(){const t=this.media;if(t){const n=t.currentTime,r=this.currentFrag;if(r&&kn(n)&&kn(r.programDateTime)){const i=r.programDateTime+(n-r.start)*1e3;return new Date(i)}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class Zc{static get version(){return"1.5.18"}static isMSESupported(){return MJe()}static isSupported(){return cjn()}static getMediaSource(){return GC()}static get Events(){return Se}static get ErrorTypes(){return wr}static get ErrorDetails(){return _t}static get DefaultConfig(){return Zc.defaultConfig?Zc.defaultConfig:TJe}static set DefaultConfig(t){Zc.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new $1e,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,ikn(t.debug||!1,"Hls instance");const n=this.config=ojn(Zc.DefaultConfig,t);this.userConfig=t,n.progressive&&sjn(n);const{abrController:r,bufferController:i,capLevelController:o,errorController:s,fpsController:a}=n,l=new s(this),c=this.abrController=new r(this),u=this.bufferController=new i(this),f=this.capLevelController=new o(this),h=new a(this),g=new Zkn(this),p=new rzn(this),m=n.contentSteeringController,v=m?new m(this):null,C=this.levelController=new ajn(this,v),y=new _zn(this),b=new ljn(this.config),S=this.streamController=new mjn(this,y,b);f.setStreamController(S),h.setStreamController(S);const w=[g,C,S];v&&w.splice(1,0,v),this.networkControllers=w;const x=[c,u,f,h,p,y];this.audioTrackController=this.createController(n.audioTrackController,w);const E=n.audioStreamController;E&&w.push(new E(this,y,b)),this.subtitleTrackController=this.createController(n.subtitleTrackController,w);const R=n.subtitleStreamController;R&&w.push(new R(this,y,b)),this.createController(n.timelineController,x),b.emeController=this.emeController=this.createController(n.emeController,x),this.cmcdController=this.createController(n.cmcdController,x),this.latencyController=this.createController(izn,x),this.coreComponents=x,w.push(l);const O=l.onErrorOut;typeof O=="function"&&this.on(Se.ERROR,O,l)}createController(t,n){if(t){const r=new t(this);return n&&n.push(r),r}return null}on(t,n,r=this){this._emitter.on(t,n,r)}once(t,n,r=this){this._emitter.once(t,n,r)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,n,r=this,i){this._emitter.off(t,n,r,i)}listeners(t){return this._emitter.listeners(t)}emit(t,n,r){return this._emitter.emit(t,n,r)}trigger(t,n){if(this.config.debug)return this.emit(t,t,n);try{return this.emit(t,t,n)}catch(r){if(bt.error("An internal error happened while handling event "+t+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const i=t===Se.ERROR;this.trigger(Se.ERROR,{type:wr.OTHER_ERROR,details:_t.INTERNAL_EXCEPTION,fatal:i,event:t,error:r}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){bt.log("destroy"),this.trigger(Se.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(n=>n.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(n=>n.destroy()),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){bt.log("attachMedia"),this._media=t,this.trigger(Se.MEDIA_ATTACHING,{media:t})}detachMedia(){bt.log("detachMedia"),this.trigger(Se.MEDIA_DETACHING,void 0),this._media=null}loadSource(t){this.stopLoad();const n=this.media,r=this.url,i=this.url=h1e.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,bt.log(`loadSource:${i}`),n&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(Se.MANIFEST_LOADING,{url:t})}startLoad(t=-1){bt.log(`startLoad(${t})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(t),!(!this.started||!this.networkControllers));n++);}stopLoad(){bt.log("stopLoad"),this.started=!1;for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].stopLoad(),!(this.started||!this.networkControllers));t++);}resumeBuffering(){bt.log("resume buffering"),this.networkControllers.forEach(t=>{t.resumeBuffering&&t.resumeBuffering()})}pauseBuffering(){bt.log("pause buffering"),this.networkControllers.forEach(t=>{t.pauseBuffering&&t.pauseBuffering()})}swapAudioCodec(){bt.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){bt.log("recoverMediaError");const t=this._media;this.detachMedia(),t&&this.attachMedia(t)}removeLevel(t){this.levelController.removeLevel(t)}get levels(){const t=this.levelController.levels;return t||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){bt.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){bt.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){bt.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){bt.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return t===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){bt.log(`set startLevel:${t}`),t!==-1&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const n=!!t;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(bt.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){ozn(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:n}}=this;if(!t)return 0;const r=t.length;for(let i=0;i<r;i++)if(t[i].maxBitrate>=n)return i;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:n,maxHdcpLevel:r}=this;let i;if(n===-1&&t!=null&&t.length?i=t.length-1:i=n,r)for(let o=i;o--;){const s=t[o].attrs["HDCP-LEVEL"];if(s&&s<=r)return o}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(t){var n;return(n=this.audioTrackController)==null?void 0:n.setAudioOption(t)}setSubtitleOption(t){var n;return(n=this.subtitleTrackController)==null||n.setSubtitleOption(t),null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const n=this.audioTrackController;n&&(n.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const n=this.subtitleTrackController;n&&(n.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return t?t.subtitleDisplay:!1}set subtitleDisplay(t){const n=this.subtitleTrackController;n&&(n.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Zc.defaultConfig=void 0;const vjn=({autoPlay:e=!1})=>{const{src:t,poster:n,onError:r,videoRef:i,setIsReady:o,setIsPlaying:s,setError:a,setBufferingState:l,isMuted:c,setLoadingProgress:u,setCurrentTime:f,setDuration:h,brightness:g,isDragging:p,setIsDragging:m,progressRef:v}=d.useContext(Yg),C=y=>{if(!p||!i.current||!v.current)return;const b=v.current.getBoundingClientRect(),S=Math.max(0,Math.min(1,(y.clientX-b.left)/b.width));i.current.currentTime=S*i.current.duration};return d.useEffect(()=>{const y=()=>m(!1),b=S=>C(S);return p&&(document.addEventListener("mousemove",b),document.addEventListener("mouseup",y)),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",y)}},[p]),d.useEffect(()=>{let y;const b=async()=>{if(!i.current)return;if(o(!1),a(null),u(0),l(!1),i.current.canPlayType("application/vnd.apple.mpegurl")){if(i.current.src=t,o(!0),h(i.current.duration),e)try{await i.current.play(),s(!0)}catch(_){console.log("Auto-play prevented:",_)}return}if(!Zc.isSupported()){const _="您的浏览器不支持 HLS 视频播放";a(_),r==null||r(_);return}y=new Zc({maxBufferLength:30,maxMaxBufferLength:600,enableWorker:!0,debug:!1}),y.loadSource(t),y.attachMedia(i.current),y.on(Zc.Events.MANIFEST_PARSED,async()=>{var _;if(o(!0),h(((_=i.current)==null?void 0:_.duration)||0),e&&i.current)try{await i.current.play(),s(!0)}catch(F){console.log("Auto-play prevented:",F)}}),y.on(Zc.Events.BUFFER_APPENDING,()=>{l(!0)}),y.on(Zc.Events.FRAG_BUFFERED,(_,F)=>{if(l(!1),F.stats){const D=F.stats.loaded/F.stats.total*100;u(Math.round(D))}});let T,M;y.on(Zc.Events.ERROR,(_,F)=>{if(F.fatal)switch(F.type){case Zc.ErrorTypes.NETWORK_ERROR:M=`网络错误: ${F.details}`,console.error(M),a(M),r==null||r(M),y.startLoad();break;case Zc.ErrorTypes.MEDIA_ERROR:console.error("Media error, attempting to recover"),a("视频解码错误,尝试恢复..."),y.recoverMediaError();break;default:T=`加载失败: ${F.details}`,console.error(T),a(T),r==null||r(T),y.destroy();break}})},S=()=>s(!0),w=()=>s(!1),x=()=>s(!1),E=()=>l(!0),R=()=>l(!1),O=()=>{i.current&&h(i.current.duration)};return i.current&&(i.current.addEventListener("play",S),i.current.addEventListener("pause",w),i.current.addEventListener("ended",x),i.current.addEventListener("waiting",E),i.current.addEventListener("playing",R),i.current.addEventListener("loadedmetadata",O)),b(),()=>{i.current&&(i.current.removeEventListener("play",S),i.current.removeEventListener("pause",w),i.current.removeEventListener("ended",x),i.current.removeEventListener("waiting",E),i.current.removeEventListener("playing",R),i.current.removeEventListener("loadedmetadata",O)),y&&y.destroy()}},[t,r,e]),H.jsx("div",{className:"relative w-full aspect-video",children:H.jsx("video",{ref:i,className:"w-full h-full",poster:n,controls:!1,playsInline:!0,muted:c,style:{filter:`brightness(${g})`},onTimeUpdate:()=>{i.current&&f(i.current.currentTime)}})})},Cjn=()=>{const{loadingProgress:e}=d.useContext(Yg);return H.jsx(mc.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 flex items-center justify-center bg-black/40 backdrop-blur-sm z-10",children:H.jsxs("div",{className:"text-white text-center",children:[H.jsx(mc.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"w-12 h-12 border-4 border-white border-t-transparent rounded-full mb-4"}),H.jsx("p",{className:"text-sm font-medium",children:e>0?`加载中... ${e}%`:"准备中..."})]})})};function yjn(){const{isReady:e,setIsHovering:t,setShowControls:n,showControls:r,isDragging:i}=d.useContext(Yg);return H.jsx(H.Fragment,{children:H.jsxs("div",{className:"relative w-full bg-black rounded-lg overflow-hidden",style:{aspectRatio:"16/9"},onMouseEnter:()=>{t(!0),n(!0)},children:[!e&&H.jsx(Cjn,{}),H.jsx(vjn,{}),H.jsx(d1e,{children:(r||i)&&H.jsx(YNn,{})})]})})}const Yg=d.createContext(null);function PJe({src:e,poster:t,onError:n}){const[r,i]=d.useState(!1),[o,s]=d.useState(!1),[a,l]=d.useState(1),c=d.useRef(null),[u,f]=d.useState(!1),[h,g]=d.useState(!1),[p,m]=d.useState(null),[v,C]=d.useState(!1),[y,b]=d.useState(1),[S,w]=d.useState(!1),[x,E]=d.useState(0),[R,O]=d.useState(0),[T,M]=d.useState(0),[_,F]=d.useState(1),[D,k]=d.useState(-1),[L,I]=d.useState([]),[A,N]=d.useState(!1),[B,z]=d.useState(!1),j=d.useRef(null),[W,G]=d.useState(!1),[K,q]=d.useState(!1),X=Q=>{Q.stopPropagation()};return H.jsx(Yg.Provider,{value:{src:e,poster:t,onError:n,showControls:r,setShowControls:i,isSettingsOpen:o,setIsSettingsOpen:s,playbackSpeed:a,setPlaybackSpeed:l,videoRef:c,isReady:u,setIsReady:f,isPlaying:h,setIsPlaying:g,error:p,setError:m,bufferingState:v,setBufferingState:C,volume:y,setVolume:b,isMuted:S,setIsMuted:w,loadingProgress:x,setLoadingProgress:E,currentTime:R,setCurrentTime:O,duration:T,setDuration:M,brightness:_,setBrightness:F,isDragging:A,setIsDragging:N,isHovering:B,setIsHovering:z,progressRef:j,isSpeedOpen:W,setIsSpeedOpen:G,isBrightnessOpen:K,setIsBrightnessOpen:q,resolution:D,setResolution:k,resolutions:L,setResolutions:I},children:H.jsx("div",{onClick:X,children:H.jsx(yjn,{})})})}const bjn=()=>{var f;const{post:e,canEdit:t,isLoading:n,selectedLectureId:r,setSelectedLectureId:i,userIsLearning:o,lecture:s=null}=d.useContext(sv),{Paragraph:a}=Kg,{user:l}=Wi(),{update:c}=Nx(),u=d.useMemo(()=>{var h,g,p,m;return(m=(p=(g=(h=e==null?void 0:e.sections)==null?void 0:h[0])==null?void 0:g.lectures)==null?void 0:p[0])==null?void 0:m.id},[e]);return Gs(),Z0(),H.jsx("div",{className:"w-full px-5 my-2",children:n||!e?H.jsx(yu,{active:!0,paragraph:{rows:4}}):H.jsxs("div",{className:"space-y-2",children:[!r&&H.jsxs("div",{className:"relative mb-4 overflow-hidden flex justify-center items-center",children:[H.jsx("div",{className:"w-full rounded-xl aspect-video bg-cover bg-center z-0",style:{backgroundImage:`url(${((f=e==null?void 0:e.meta)==null?void 0:f.thumbnail)||"/placeholder.webp"})`}}),H.jsx("div",{onClick:async()=>{i(u),o||await c.mutateAsync({where:{id:l==null?void 0:l.id},data:{learningPosts:{connect:{id:e.id}}}})},className:"absolute rounded-xl top-0 left-0 right-0 bottom-0 z-10 bg-[rgba(0,0,0,0.3)] transition-all duration-300 ease-in-out hover:bg-[rgba(0,0,0,0.7)] cursor-pointer group",children:H.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-white text-4xl z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:"点击进入学习"})})]}),H.jsx("div",{className:"text-lg font-bold",children:"课程简介:"}),H.jsxs("div",{className:"flex flex-col gap-2",children:[H.jsx("div",{className:"flex gap-2 flex-wrap items-center float-start",children:H.jsx(GXe,{terms:e.terms})}),H.jsx("div",{className:"flex gap-2 flex-wrap items-center float-start pl-2",children:(e==null?void 0:e.subTitle)&&H.jsx("div",{children:e==null?void 0:e.subTitle})})]}),H.jsx(a,{className:"text-gray-600 pl-2",ellipsis:{rows:3,expandable:!0,symbol:"展开",onExpand:()=>console.log("展开")},children:e==null?void 0:e.content})]})})},_Je=({content:e})=>{const t=d.useRef(null);return H.jsx("div",{className:" text-base ",children:H.jsx("div",{className:" flex flex-col gap-4 transition-all duration-300 ease-in-out rounded-xl p-6 ",children:H.jsx("div",{ref:t,children:H.jsx("div",{className:"ql-editor p-0 space-y-1 leading-relaxed",dangerouslySetInnerHTML:{__html:e||""}})})})})},Sjn=e=>{var n;switch((n=e.split(".").pop())==null?void 0:n.toLowerCase()){case"pdf":return H.jsx(MYe,{className:"text-red-500"});case"doc":case"docx":return H.jsx(LYe,{className:"text-blue-500"});case"xls":case"xlsx":return H.jsx(fme,{className:"text-green-600"});case"ppt":case"pptx":return H.jsx(PYe,{className:"text-orange-500"});case"txt":return H.jsx(Xpe,{className:"text-gray-600"});case"zip":case"rar":case"7z":return H.jsx(FYe,{className:"text-purple-500"});case"png":case"jpg":case"jpeg":case"gif":case"webp":return H.jsx(TYe,{className:"text-pink-400"});default:return H.jsx(DYe,{className:"text-gray-500"})}};var wjn=(e,t)=>{const{emptyBehavior:n="return-undefined"}={},r=e.filter(i=>i&&Object.keys(i).length>0);if(r.length===0)switch(n){case"throw-error":throw new Error("No valid conditions provided to OR query");case"return-empty":return{};case"return-undefined":default:return}return r.length===1?r[0]:{OR:r}},xjn=e=>e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`,AJe=e=>{if(!e)return e;const t=e.split(/[?#]/)[0],n=t.lastIndexOf("/");return`${t.slice(0,n)}/compressed/${t.slice(n+1).replace(/\.[^.]+$/,".webp")}`};function DJe({resources:e=[]}){const{resources:t}=d.useMemo(()=>{if(!e)return{resources:[]};const i=s=>/\.(png|jpg|jpeg|gif|webp)$/i.test(s);return{resources:e.map(s=>{const a=`http://${Fs.SERVER_IP}:${Fs.FILE_PORT}/uploads/${s.url}`,l=i(s.url);return{...s,url:l?AJe(a):a,originalUrl:a,isImage:l}}).sort((s,a)=>s.isImage===a.isImage?0:s.isImage?-1:1)}},[e]),n=t.filter(i=>i.isImage),r=t.filter(i=>!i.isImage);return H.jsxs("div",{className:"space-y-3",children:[n.length>0&&H.jsx(Gpe,{gutter:[16,16],className:"mb-6",children:H.jsx(uB.PreviewGroup,{children:n.map(i=>H.jsx(DT,{xs:12,sm:8,md:6,lg:6,xl:4,className:"relative",children:H.jsxs("div",{className:"relative aspect-square rounded-lg overflow-hidden bg-gray-100",children:[H.jsx("div",{className:"w-full h-full",children:H.jsx(uB,{src:i.url,alt:i.title,preview:{src:i.originalUrl,mask:H.jsx("div",{className:"flex items-center justify-center text-white",children:"点击预览"})},style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},rootClassName:"w-full h-full"})}),i.title&&H.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-3 bg-gradient-to-t from-black/60 to-transparent text-white text-sm truncate",children:i.title})]})},i.url))})}),r.length>0&&H.jsxs(H.Fragment,{children:[H.jsx("div",{className:" text-sm px-2",children:"附件:"}),H.jsx("div",{className:"rounded-xl p-1 border border-gray-100 bg-white",children:H.jsx("div",{className:"flex flex-nowrap overflow-x-auto scrollbar-hide gap-1.5",children:r.map(i=>{var o,s;return H.jsx("a",{className:"flex-shrink-0 relative active:scale-95 transition-transform select-none ",href:i.originalUrl,target:"_blank",download:!0,title:"点击下载文件",children:H.jsxs("div",{className:"w-[120px] h-[80px] p-2 flex flex-col items-center justify-between rounded-xl hover:bg-primary-50/40 cursor-pointer",children:[H.jsx("div",{className:"text-primary-600 text-base",children:Sjn(i.url)}),H.jsxs("div",{className:"w-full text-center space-y-0.5",children:[H.jsx("p",{className:"text-xs font-medium text-gray-800 truncate",children:((o=i.title)==null?void 0:o.slice(0,12))||"未命名"}),H.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500 ",children:[H.jsx("span",{className:"bg-gray-100 px-0.5 rounded-sm mr-2 whitespace-pre-wrap",children:(s=i.url.split(".").pop())==null?void 0:s.slice(0,4).toUpperCase()}),H.jsx("span",{className:"flex bg-gray-100 px-0.5 rounded-sm justify-items-center whitespace-pre-wrap",children:i.meta.size&&xjn(i.meta.size)})]})]})]})},i.url)})})})]})]})}let Ejn={data:""},Rjn=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ejn,$jn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ojn=/\/\*[^]*?\*\/| +/g,uRe=/\n+/g,k2=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+s+";":r+=o[1]=="f"?k2(s,o):o+"{"+k2(s,o[1]=="k"?"":t)+"}":typeof s=="object"?r+=k2(s,t?t.replace(/([^,])+/g,a=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=k2.p?k2.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},$1={},LJe=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+LJe(e[n]);return t}return e},Tjn=(e,t,n,r,i)=>{let o=LJe(e),s=$1[o]||($1[o]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(o));if(!$1[s]){let l=o!==e?e:(c=>{let u,f,h=[{}];for(;u=$jn.exec(c.replace(Ojn,""));)u[4]?h.shift():u[3]?(f=u[3].replace(uRe," ").trim(),h.unshift(h[0][f]=h[0][f]||{})):h[0][u[1]]=u[2].replace(uRe," ").trim();return h[0]})(e);$1[s]=k2(i?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&$1.g?$1.g:null;return n&&($1.g=$1[s]),((l,c,u,f)=>{f?c.data=c.data.replace(f,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})($1[s],t,r,a),s},Ijn=(e,t,n)=>e.reduce((r,i,o)=>{let s=t[o];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":k2(a,""):a===!1?"":a}return r+i+(s??"")},"");function fG(e){let t=this||{},n=e.call?e(t.p):e;return Tjn(n.unshift?n.raw?Ijn(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,Rjn(t.target),t.g,t.o,t.k)}let FJe,uce,dce;fG.bind({g:1});let k0=fG.bind({k:1});function Mjn(e,t,n,r){k2.p=t,FJe=e,uce=n,dce=r}function R3(e,t){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),l=a.className||i.className;n.p=Object.assign({theme:uce&&uce()},a),n.o=/ *go\d+/.test(l),a.className=fG.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=a.as||e,delete a.as),dce&&c[0]&&dce(a),FJe(c,a)}return i}}var Pjn=e=>typeof e=="function",LB=(e,t)=>Pjn(e)?e(t):e,_jn=(()=>{let e=0;return()=>(++e).toString()})(),NJe=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ajn=20,kJe=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Ajn)};case 1:return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:n}=t;return kJe(e,{type:e.toasts.find(o=>o.id===n.id)?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,dismissed:!0,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},_N=[],AN={toasts:[],pausedAt:void 0},Wy=e=>{AN=kJe(AN,e),_N.forEach(t=>{t(AN)})},Djn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Ljn=(e={})=>{let[t,n]=d.useState(AN);d.useEffect(()=>(_N.push(n),()=>{let i=_N.indexOf(n);i>-1&&_N.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var o,s,a;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((o=e[i.type])==null?void 0:o.removeDelay)||(e==null?void 0:e.removeDelay),duration:i.duration||((s=e[i.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||Djn[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...t,toasts:r}},Fjn=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||_jn()}),wM=e=>(t,n)=>{let r=Fjn(t,e,n);return Wy({type:2,toast:r}),r.id},dc=(e,t)=>wM("blank")(e,t);dc.error=wM("error");dc.success=wM("success");dc.loading=wM("loading");dc.custom=wM("custom");dc.dismiss=e=>{Wy({type:3,toastId:e})};dc.remove=e=>Wy({type:4,toastId:e});dc.promise=(e,t,n)=>{let r=dc.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let o=t.success?LB(t.success,i):void 0;return o?dc.success(o,{id:r,...n,...n==null?void 0:n.success}):dc.dismiss(r),i}).catch(i=>{let o=t.error?LB(t.error,i):void 0;o?dc.error(o,{id:r,...n,...n==null?void 0:n.error}):dc.dismiss(r)}),e};var Njn=(e,t)=>{Wy({type:1,toast:{id:e,height:t}})},kjn=()=>{Wy({type:5,time:Date.now()})},rO=new Map,zjn=1e3,Bjn=(e,t=zjn)=>{if(rO.has(e))return;let n=setTimeout(()=>{rO.delete(e),Wy({type:4,toastId:e})},t);rO.set(e,n)},Hjn=e=>{let{toasts:t,pausedAt:n}=Ljn(e);d.useEffect(()=>{if(n)return;let o=Date.now(),s=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(o-a.createdAt);if(l<0){a.visible&&dc.dismiss(a.id);return}return setTimeout(()=>dc.dismiss(a.id),l)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=d.useCallback(()=>{n&&Wy({type:6,time:Date.now()})},[n]),i=d.useCallback((o,s)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:c}=s||{},u=t.filter(g=>(g.position||c)===(o.position||c)&&g.height),f=u.findIndex(g=>g.id===o.id),h=u.filter((g,p)=>p<f&&g.visible).length;return u.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,p)=>g+(p.height||0)+l,0)},[t]);return d.useEffect(()=>{t.forEach(o=>{if(o.dismissed)Bjn(o.id,o.removeDelay);else{let s=rO.get(o.id);s&&(clearTimeout(s),rO.delete(o.id))}})},[t]),{toasts:t,handlers:{updateHeight:Njn,startPause:kjn,endPause:r,calculateOffset:i}}},jjn=k0`
|
||
from {
|
||
transform: scale(0) rotate(45deg);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: scale(1) rotate(45deg);
|
||
opacity: 1;
|
||
}`,Vjn=k0`
|
||
from {
|
||
transform: scale(0);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: scale(1);
|
||
opacity: 1;
|
||
}`,Gjn=k0`
|
||
from {
|
||
transform: scale(0) rotate(90deg);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: scale(1) rotate(90deg);
|
||
opacity: 1;
|
||
}`,Wjn=R3("div")`
|
||
width: 20px;
|
||
opacity: 0;
|
||
height: 20px;
|
||
border-radius: 10px;
|
||
background: ${e=>e.primary||"#ff4b4b"};
|
||
position: relative;
|
||
transform: rotate(45deg);
|
||
|
||
animation: ${jjn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
||
forwards;
|
||
animation-delay: 100ms;
|
||
|
||
&:after,
|
||
&:before {
|
||
content: '';
|
||
animation: ${Vjn} 0.15s ease-out forwards;
|
||
animation-delay: 150ms;
|
||
position: absolute;
|
||
border-radius: 3px;
|
||
opacity: 0;
|
||
background: ${e=>e.secondary||"#fff"};
|
||
bottom: 9px;
|
||
left: 4px;
|
||
height: 2px;
|
||
width: 12px;
|
||
}
|
||
|
||
&:before {
|
||
animation: ${Gjn} 0.15s ease-out forwards;
|
||
animation-delay: 180ms;
|
||
transform: rotate(90deg);
|
||
}
|
||
`,Ujn=k0`
|
||
from {
|
||
transform: rotate(0deg);
|
||
}
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
`,qjn=R3("div")`
|
||
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"};
|
||
animation: ${Ujn} 1s linear infinite;
|
||
`,Kjn=k0`
|
||
from {
|
||
transform: scale(0) rotate(45deg);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: scale(1) rotate(45deg);
|
||
opacity: 1;
|
||
}`,Yjn=k0`
|
||
0% {
|
||
height: 0;
|
||
width: 0;
|
||
opacity: 0;
|
||
}
|
||
40% {
|
||
height: 0;
|
||
width: 6px;
|
||
opacity: 1;
|
||
}
|
||
100% {
|
||
opacity: 1;
|
||
height: 10px;
|
||
}`,Xjn=R3("div")`
|
||
width: 20px;
|
||
opacity: 0;
|
||
height: 20px;
|
||
border-radius: 10px;
|
||
background: ${e=>e.primary||"#61d345"};
|
||
position: relative;
|
||
transform: rotate(45deg);
|
||
|
||
animation: ${Kjn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
||
forwards;
|
||
animation-delay: 100ms;
|
||
&:after {
|
||
content: '';
|
||
box-sizing: border-box;
|
||
animation: ${Yjn} 0.2s ease-out forwards;
|
||
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;
|
||
}
|
||
`,Qjn=R3("div")`
|
||
position: absolute;
|
||
`,Zjn=R3("div")`
|
||
position: relative;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
min-width: 20px;
|
||
min-height: 20px;
|
||
`,Jjn=k0`
|
||
from {
|
||
transform: scale(0.6);
|
||
opacity: 0.4;
|
||
}
|
||
to {
|
||
transform: scale(1);
|
||
opacity: 1;
|
||
}`,eVn=R3("div")`
|
||
position: relative;
|
||
transform: scale(0.6);
|
||
opacity: 0.4;
|
||
min-width: 20px;
|
||
animation: ${Jjn} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
||
forwards;
|
||
`,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=>`
|
||
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
||
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
||
`,rVn=e=>`
|
||
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
||
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
||
`,iVn="0%{opacity:0;} 100%{opacity:1;}",oVn="0%{opacity:1;} 100%{opacity:0;}",sVn=R3("div")`
|
||
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;
|
||
`,aVn=R3("div")`
|
||
display: flex;
|
||
justify-content: center;
|
||
margin: 4px 10px;
|
||
color: inherit;
|
||
flex: 1 1 auto;
|
||
white-space: pre-line;
|
||
`,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`
|
||
z-index: 9999;
|
||
> * {
|
||
pointer-events: auto;
|
||
}
|
||
`,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&&i&&((c=n==null?void 0:n.meta)==null?void 0:c.type)===rg.ARTICLE&&H.jsx("div",{className:"flex justify-center flex-col items-center gap-2 w-full my-2 ",children:H.jsxs("div",{className:"w-full rounded-lg ",children:[H.jsx(_Je,{content:(n==null?void 0:n.content)||"",maxHeight:500}),H.jsx("div",{className:"px-6",children:H.jsx(DJe,{resources:n==null?void 0:n.resources})})]})}),H.jsx("div",{className:"flex justify-center flex-col items-center gap-2 w-full my-2 ",children:H.jsx(bjn,{})})]})};function vVn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const BJe=d.forwardRef(vVn);function CVn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const yVn=d.forwardRef(CVn);function bVn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z"}))}const SVn=d.forwardRef(bVn);function wVn({title:e,titleId:t,...n},r){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?d.createElement("title",{id:t},e):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const xVn=d.forwardRef(wVn),EVn=({onToggle:e})=>H.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[H.jsx("h2",{className:"text-xl font-semibold",children:"课程大纲"}),H.jsx("button",{onClick:e,className:"p-2 hover:bg-gray-100 rounded-full",children:H.jsx(xVn,{className:"w-6 h-6 text-gray-600"})})]}),RVn=({lecture:e,onClick:t})=>{var i,o,s,a;const{lectureId:n}=Z0(),r=d.useMemo(()=>(e==null?void 0:e.id)===n,[n,e]);return H.jsxs("div",{className:`w-full flex items-center gap-4 p-4 text-left transition-colors cursor-pointer
|
||
${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:r,onToggle:()=>i(!r)})]})})}function MVn({id:e,lectureId:t}){return H.jsx(H.Fragment,{children:H.jsx(WXe,{editId:e,children:H.jsx(IVn,{})})})}function PVn(){const{id:e,lectureId:t}=Z0();return H.jsx(MVn,{id:e,lectureId:t})}function xM({defaultValue:e,value:t,onChange:n,placeholder:r="选择分类",multiple:i=!1,taxonomyId:o,open:s=void 0,showSearch:a=!0,domainId:l,dropdownStyle:c,style:u,disabled:f=!1,dropdownRender:h,...g}){const p=an.useUtils(),[m,v]=d.useState([]),C=d.useCallback(async(E,R)=>{const O=Array.isArray(E)?E:[E].filter(Boolean);try{return await p.term.getParentSimpleTree.fetch({termIds:O,taxonomyId:R,domainId:l})}catch(T){throw console.error("Error fetching parent departments for deptIds",O,":",T),T}},[p,t]),y=d.useCallback(async()=>{try{let R=[...await p.term.getChildSimpleTree.fetch({taxonomyId:o,domainId:l})];if(e){const O=await C(e,o);R=e4([...m,...R,...O],"id")}if(t){const O=await C(t,o);R=e4([...m,...R,...O],"id")}v(R)}catch(E){console.error("Error fetching departments:",E)}},[e,t,o,p,C]);d.useEffect(()=>{y()},[e,t,o,y]);const b=E=>{if(n){const R=i&&Array.isArray(E)?E.map(O=>O.value):E;n(R)}},S=async({id:E})=>{try{const R=await p.term.getChildSimpleTree.fetch({termIds:[E],taxonomyId:o,domainId:l}),O=e4([...m,...R],"id");v(O)}catch(R){console.error("Error loading data for node with id",E,":",R)}},w=d.useCallback(async E=>{try{const R=E.map(_=>_.toString()).filter(Boolean)||[],T=(await p.term.getChildSimpleTree.fetch({termIds:R,taxonomyId:o,domainId:l})).flat(),M=e4([...m,...T],"id");v(M)}catch(R){console.error("Error expanding nodes with keys",E,":",R)}},[t]),x=async E=>{if(E){const R=m.map(O=>O.id);await w(R)}};return H.jsx(Pm,{treeDataSimpleMode:!0,disabled:f,dropdownStyle:{width:"300px",minWidth:"200px",maxWidth:"600px",...c},defaultValue:e,value:t,placeholder:r,onChange:b,loadData:S,treeData:m,treeCheckable:i,showCheckedStrategy:Pm.SHOW_ALL,treeCheckStrictly:i,onClear:()=>b(i?[]:void 0),onTreeExpand:w,onDropdownVisibleChange:x,...g})}const HJe=d.createContext(null);function _Vn({children:e,editId:t}){const[n]=Rn.useForm(),{create:r,update:i,createCourse:o}=My();Wi();const{data:s}=an.post.findFirst.useQuery({where:{id:t},select:hge},{enabled:!!t}),{data:a}=an.taxonomy.getAll.useQuery({type:ri.COURSE}),l=Gs();d.useEffect(()=>{var u,f,h;if(s){const g=(u=(s==null?void 0:s.depts)||[])==null?void 0:u.map(m=>m.id),p={title:s.title,subTitle:s.subTitle,content:s.content,deptIds:g,meta:{thumbnail:(f=s==null?void 0:s.meta)==null?void 0:f.thumbnail}};(h=s.terms)==null||h.forEach(m=>{p[m.taxonomyId]=m.id}),n.setFieldsValue(p)}},[s,n]);const c=async u=>{var m,v;const f=(u==null?void 0:u.sections)||[],h=(u==null?void 0:u.deptIds)||[],g=a.map(C=>u[C.id]).filter(C=>C),p={...u,type:vo.COURSE,meta:{...(s==null?void 0:s.meta)||{},...((m=u==null?void 0:u.meta)==null?void 0:m.thumbnail)!==void 0&&{thumbnail:(v=u==null?void 0:u.meta)==null?void 0:v.thumbnail}},terms:(g==null?void 0:g.length)>0?{[t?"set":"connect"]:g.map(C=>({id:C}))}:void 0,depts:(h==null?void 0:h.length)>0?{[t?"set":"connect"]:h.map(C=>({id:C}))}:void 0};a.forEach(C=>{delete p[C.id]}),delete p.sections,delete p.deptIds;try{if(t){const C=await i.mutateAsync({where:{id:t},data:p});li.success("课程更新成功!"),l(`/course/${C.id}/editor/content`)}else{const C=await o.mutateAsync({courseDetail:{data:{title:p.title,type:vo.COURSE,...p}},sections:f});li.success("课程创建成功!"),l(`/course/${C.id}/editor/content`)}n.resetFields()}catch(C){console.error("Error submitting form:",C),li.error("操作失败,请重试!")}};return H.jsx(HJe.Provider,{value:{onSubmit:c,editId:t,course:s,taxonomies:a,form:n},children:H.jsx(Rn,{form:n,onFinish:c,initialValues:{requirements:[],objectives:[]},children:e})})}const hG=()=>{const e=d.useContext(HJe);if(!e)throw new Error("useCourseEditor must be used within CourseFormProvider");return e};function fce(e){"@babel/helpers - typeof";return fce=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},fce(e)}function AVn(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function DVn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LVn(e,t,n){return t=qT(t),FVn(e,P1e()?Reflect.construct(t,n,qT(e).constructor):t.apply(e,n))}function FVn(e,t){if(t&&(fce(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NVn(e)}function NVn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kVn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UT(e,t)}function hce(e){var t=typeof Map=="function"?new Map:void 0;return hce=function(r){if(r===null||!BVn(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return zVn(r,arguments,qT(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),UT(i,r)},hce(e)}function zVn(e,t,n){if(P1e())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&UT(i,n.prototype),i}function P1e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P1e=function(){return!!e})()}function BVn(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function UT(e,t){return UT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},UT(e,t)}function qT(e){return qT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qT(e)}var eL=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(DVn(this,t),r=LVn(this,t,[n]),r.originalRequest=o,r.originalResponse=s,r.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),o!=null){var a=o.getHeader("X-Request-ID")||"n/a",l=o.getMethod(),c=o.getURL(),u=s?s.getStatus():"n/a",f=s?s.getBody()||"":"n/a";n+=", originated from request (method: ".concat(l,", url: ").concat(c,", response code: ").concat(u,", response text: ").concat(f,", request id: ").concat(a,")")}return r.message=n,r}return kVn(t,e),AVn(t)}(hce(Error));function KT(e){"@babel/helpers - typeof";return KT=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},KT(e)}function HVn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jVn(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,GVn(r.key),r)}}function VVn(e,t,n){return jVn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GVn(e){var t=WVn(e,"string");return KT(t)=="symbol"?t:t+""}function WVn(e,t){if(KT(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(KT(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var UVn=function(){function e(){HVn(this,e)}return VVn(e,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(n){return Promise.resolve([])}},{key:"removeUpload",value:function(n){return Promise.resolve()}},{key:"addUpload",value:function(n,r){return Promise.resolve(null)}}])}();const jJe="3.7.7",qVn=jJe,n9=typeof Buffer=="function",dRe=typeof TextDecoder=="function"?new TextDecoder:void 0,fRe=typeof TextEncoder=="function"?new TextEncoder:void 0,KVn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g$=Array.prototype.slice.call(KVn),tL=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(g$),YVn=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Xa=String.fromCharCode.bind(String),hRe=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),VJe=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),GJe=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),WJe=e=>{let t,n,r,i,o="";const s=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=g$[t>>18&63]+g$[t>>12&63]+g$[t>>6&63]+g$[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},_1e=typeof btoa=="function"?e=>btoa(e):n9?e=>Buffer.from(e,"binary").toString("base64"):WJe,gce=n9?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,i=e.length;r<i;r+=4096)n.push(Xa.apply(null,e.subarray(r,r+4096)));return _1e(n.join(""))},DN=(e,t=!1)=>t?VJe(gce(e)):gce(e),XVn=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Xa(192|t>>>6)+Xa(128|t&63):Xa(224|t>>>12&15)+Xa(128|t>>>6&63)+Xa(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Xa(240|t>>>18&7)+Xa(128|t>>>12&63)+Xa(128|t>>>6&63)+Xa(128|t&63)}},QVn=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,UJe=e=>e.replace(QVn,XVn),gRe=n9?e=>Buffer.from(e,"utf8").toString("base64"):fRe?e=>gce(fRe.encode(e)):e=>_1e(UJe(e)),tw=(e,t=!1)=>t?VJe(gRe(e)):gRe(e),pRe=e=>tw(e,!0),ZVn=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,JVn=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return Xa((n>>>10)+55296)+Xa((n&1023)+56320);case 3:return Xa((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Xa((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},qJe=e=>e.replace(ZVn,JVn),KJe=e=>{if(e=e.replace(/\s+/g,""),!YVn.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,i;for(let o=0;o<e.length;)t=tL[e.charAt(o++)]<<18|tL[e.charAt(o++)]<<12|(r=tL[e.charAt(o++)])<<6|(i=tL[e.charAt(o++)]),n+=r===64?Xa(t>>16&255):i===64?Xa(t>>16&255,t>>8&255):Xa(t>>16&255,t>>8&255,t&255);return n},A1e=typeof atob=="function"?e=>atob(GJe(e)):n9?e=>Buffer.from(e,"base64").toString("binary"):KJe,YJe=n9?e=>hRe(Buffer.from(e,"base64")):e=>hRe(A1e(e).split("").map(t=>t.charCodeAt(0))),XJe=e=>YJe(QJe(e)),eGn=n9?e=>Buffer.from(e,"base64").toString("utf8"):dRe?e=>dRe.decode(YJe(e)):e=>qJe(A1e(e)),QJe=e=>GJe(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),pce=e=>eGn(QJe(e)),tGn=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},ZJe=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),JJe=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,ZJe(n));e("fromBase64",function(){return pce(this)}),e("toBase64",function(t){return tw(this,t)}),e("toBase64URI",function(){return tw(this,!0)}),e("toBase64URL",function(){return tw(this,!0)}),e("toUint8Array",function(){return XJe(this)})},eet=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,ZJe(n));e("toBase64",function(t){return DN(this,t)}),e("toBase64URI",function(){return DN(this,!0)}),e("toBase64URL",function(){return DN(this,!0)})},nGn=()=>{JJe(),eet()},rGn={version:jJe,VERSION:qVn,atob:A1e,atobPolyfill:KJe,btoa:_1e,btoaPolyfill:WJe,fromBase64:pce,toBase64:tw,encode:tw,encodeURI:pRe,encodeURL:pRe,utob:UJe,btou:qJe,decode:pce,isValid:tGn,fromUint8Array:DN,toUint8Array:XJe,extendString:JJe,extendUint8Array:eet,extendBuiltins:nGn};var iGn=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},D1e={},oGn=Object.prototype.hasOwnProperty,sGn;function mRe(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function vRe(e){try{return encodeURIComponent(e)}catch{return null}}function aGn(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var i=mRe(r[1]),o=mRe(r[2]);i===null||o===null||i in n||(n[i]=o)}return n}function lGn(e,t){t=t||"";var n=[],r,i;typeof t!="string"&&(t="?");for(i in e)if(oGn.call(e,i)){if(r=e[i],!r&&(r===null||r===sGn||isNaN(r))&&(r=""),i=vRe(i),r=vRe(r),i===null||r===null)continue;n.push(i+"="+r)}return n.length?t+n.join("&"):""}D1e.stringify=lGn;D1e.parse=aGn;var tet=iGn,gG=D1e,cGn=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,net=/[\n\r\t]/g,uGn=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,ret=/:\d+$/,dGn=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,fGn=/^[a-zA-Z]:/;function L1e(e){return(e||"").toString().replace(cGn,"")}var mce=[["#","hash"],["?","query"],function(t,n){return dm(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],CRe={hash:1,query:1};function iet(e){var t;typeof window<"u"?t=window:typeof Jo<"u"?t=Jo:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},i=typeof e,o;if(e.protocol==="blob:")r=new Am(unescape(e.pathname),{});else if(i==="string"){r=new Am(e,{});for(o in CRe)delete r[o]}else if(i==="object"){for(o in e)o in CRe||(r[o]=e[o]);r.slashes===void 0&&(r.slashes=uGn.test(e.href))}return r}function dm(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function oet(e,t){e=L1e(e),e=e.replace(net,""),t=t||{};var n=dGn.exec(e),r=n[1]?n[1].toLowerCase():"",i=!!n[2],o=!!n[3],s=0,a;return i?o?(a=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(a=n[2]+n[4],s=n[2].length):o?(a=n[3]+n[4],s=n[3].length):a=n[4],r==="file:"?s>=2&&(a=a.slice(2)):dm(r)?a=n[4]:r?i&&(a=a.slice(2)):s>=2&&dm(t.protocol)&&(a=n[4]),{protocol:r,slashes:i||dm(r),slashesCount:s,rest:a}}function hGn(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),s++):s&&(r===0&&(o=!0),n.splice(r,1),s--);return o&&n.unshift(""),(i==="."||i==="..")&&n.push(""),n.join("/")}function Am(e,t,n){if(e=L1e(e),e=e.replace(net,""),!(this instanceof Am))return new Am(e,t,n);var r,i,o,s,a,l,c=mce.slice(),u=typeof t,f=this,h=0;for(u!=="object"&&u!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=gG.parse),t=iet(t),i=oet(e||"",t),r=!i.protocol&&!i.slashes,f.slashes=i.slashes||r&&t.slashes,f.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||fGn.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!dm(f.protocol)))&&(c[3]=[/(.*)/,"pathname"]);h<c.length;h++){if(s=c[h],typeof s=="function"){e=s(e,f);continue}o=s[0],l=s[1],o!==o?f[l]=e:typeof o=="string"?(a=o==="@"?e.lastIndexOf(o):e.indexOf(o),~a&&(typeof s[2]=="number"?(f[l]=e.slice(0,a),e=e.slice(a+s[2])):(f[l]=e.slice(a),e=e.slice(0,a)))):(a=o.exec(e))&&(f[l]=a[1],e=e.slice(0,a.index)),f[l]=f[l]||r&&s[3]&&t[l]||"",s[4]&&(f[l]=f[l].toLowerCase())}n&&(f.query=n(f.query)),r&&t.slashes&&f.pathname.charAt(0)!=="/"&&(f.pathname!==""||t.pathname!=="")&&(f.pathname=hGn(f.pathname,t.pathname)),f.pathname.charAt(0)!=="/"&&dm(f.protocol)&&(f.pathname="/"+f.pathname),tet(f.port,f.protocol)||(f.host=f.hostname,f.port=""),f.username=f.password="",f.auth&&(a=f.auth.indexOf(":"),~a?(f.username=f.auth.slice(0,a),f.username=encodeURIComponent(decodeURIComponent(f.username)),f.password=f.auth.slice(a+1),f.password=encodeURIComponent(decodeURIComponent(f.password))):f.username=encodeURIComponent(decodeURIComponent(f.auth)),f.auth=f.password?f.username+":"+f.password:f.username),f.origin=f.protocol!=="file:"&&dm(f.protocol)&&f.host?f.protocol+"//"+f.host:"null",f.href=f.toString()}function gGn(e,t,n){var r=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(n||gG.parse)(t)),r[e]=t;break;case"port":r[e]=t,tet(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,ret.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var i=e==="pathname"?"/":"#";r[e]=t.charAt(0)!==i?i+t:t}else r[e]=t;break;case"username":case"password":r[e]=encodeURIComponent(t);break;case"auth":var o=t.indexOf(":");~o?(r.username=t.slice(0,o),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(o+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var s=0;s<mce.length;s++){var a=mce[s];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin=r.protocol!=="file:"&&dm(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function pGn(e){(!e||typeof e!="function")&&(e=gG.stringify);var t,n=this,r=n.host,i=n.protocol;i&&i.charAt(i.length-1)!==":"&&(i+=":");var o=i+(n.protocol&&n.slashes||dm(n.protocol)?"//":"");return n.username?(o+=n.username,n.password&&(o+=":"+n.password),o+="@"):n.password?(o+=":"+n.password,o+="@"):n.protocol!=="file:"&&dm(n.protocol)&&!r&&n.pathname!=="/"&&(o+="@"),(r[r.length-1]===":"||ret.test(n.hostname)&&!n.port)&&(r+=":"),o+=r+n.pathname,t=typeof n.query=="object"?e(n.query):n.query,t&&(o+=t.charAt(0)!=="?"?"?"+t:t),n.hash&&(o+=n.hash),o}Am.prototype={set:gGn,toString:pGn};Am.extractProtocol=oet;Am.location=iet;Am.trimLeft=L1e;Am.qs=gG;var mGn=Am;const vGn=Bm(mGn);function CGn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,n=e==="x"?t:t&3|8;return n.toString(16)})}function vce(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */vce=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(L,I,A){L[I]=A.value},o=typeof Symbol=="function"?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(L,I,A){return Object.defineProperty(L,I,{value:A,enumerable:!0,configurable:!0,writable:!0}),L[I]}try{c({},"")}catch{c=function(A,N,B){return A[N]=B}}function u(L,I,A,N){var B=I&&I.prototype instanceof C?I:C,z=Object.create(B.prototype),j=new D(N||[]);return i(z,"_invoke",{value:T(L,A,j)}),z}function f(L,I,A){try{return{type:"normal",arg:L.call(I,A)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var h="suspendedStart",g="suspendedYield",p="executing",m="completed",v={};function C(){}function y(){}function b(){}var S={};c(S,s,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(k([])));x&&x!==n&&r.call(x,s)&&(S=x);var E=b.prototype=C.prototype=Object.create(S);function R(L){["next","throw","return"].forEach(function(I){c(L,I,function(A){return this._invoke(I,A)})})}function O(L,I){function A(B,z,j,W){var G=f(L[B],L,z);if(G.type!=="throw"){var K=G.arg,q=K.value;return q&&WC(q)=="object"&&r.call(q,"__await")?I.resolve(q.__await).then(function(X){A("next",X,j,W)},function(X){A("throw",X,j,W)}):I.resolve(q).then(function(X){K.value=X,j(K)},function(X){return A("throw",X,j,W)})}W(G.arg)}var N;i(this,"_invoke",{value:function(z,j){function W(){return new I(function(G,K){A(z,j,G,K)})}return N=N?N.then(W,W):W()}})}function T(L,I,A){var N=h;return function(B,z){if(N===p)throw Error("Generator is already running");if(N===m){if(B==="throw")throw z;return{value:e,done:!0}}for(A.method=B,A.arg=z;;){var j=A.delegate;if(j){var W=M(j,A);if(W){if(W===v)continue;return W}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(N===h)throw N=m,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);N=p;var G=f(L,I,A);if(G.type==="normal"){if(N=A.done?m:g,G.arg===v)continue;return{value:G.arg,done:A.done}}G.type==="throw"&&(N=m,A.method="throw",A.arg=G.arg)}}}function M(L,I){var A=I.method,N=L.iterator[A];if(N===e)return I.delegate=null,A==="throw"&&L.iterator.return&&(I.method="return",I.arg=e,M(L,I),I.method==="throw")||A!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+A+"' method")),v;var B=f(N,L.iterator,I.arg);if(B.type==="throw")return I.method="throw",I.arg=B.arg,I.delegate=null,v;var z=B.arg;return z?z.done?(I[L.resultName]=z.value,I.next=L.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,v):z:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,v)}function _(L){var I={tryLoc:L[0]};1 in L&&(I.catchLoc=L[1]),2 in L&&(I.finallyLoc=L[2],I.afterLoc=L[3]),this.tryEntries.push(I)}function F(L){var I=L.completion||{};I.type="normal",delete I.arg,L.completion=I}function D(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(_,this),this.reset(!0)}function k(L){if(L||L===""){var I=L[s];if(I)return I.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var A=-1,N=function B(){for(;++A<L.length;)if(r.call(L,A))return B.value=L[A],B.done=!1,B;return B.value=e,B.done=!0,B};return N.next=N}}throw new TypeError(WC(L)+" is not iterable")}return y.prototype=b,i(E,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(L){var I=typeof L=="function"&&L.constructor;return!!I&&(I===y||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,b):(L.__proto__=b,c(L,l,"GeneratorFunction")),L.prototype=Object.create(E),L},t.awrap=function(L){return{__await:L}},R(O.prototype),c(O.prototype,a,function(){return this}),t.AsyncIterator=O,t.async=function(L,I,A,N,B){B===void 0&&(B=Promise);var z=new O(u(L,I,A,N),B);return t.isGeneratorFunction(I)?z:z.next().then(function(j){return j.done?j.value:z.next()})},R(E),c(E,l,"Generator"),c(E,s,function(){return this}),c(E,"toString",function(){return"[object Generator]"}),t.keys=function(L){var I=Object(L),A=[];for(var N in I)A.push(N);return A.reverse(),function B(){for(;A.length;){var z=A.pop();if(z in I)return B.value=z,B.done=!1,B}return B.done=!0,B}},t.values=k,D.prototype={constructor:D,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!I)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var A=this;function N(K,q){return j.type="throw",j.arg=I,A.next=K,q&&(A.method="next",A.arg=e),!!q}for(var B=this.tryEntries.length-1;B>=0;--B){var z=this.tryEntries[B],j=z.completion;if(z.tryLoc==="root")return N("end");if(z.tryLoc<=this.prev){var W=r.call(z,"catchLoc"),G=r.call(z,"finallyLoc");if(W&&G){if(this.prev<z.catchLoc)return N(z.catchLoc,!0);if(this.prev<z.finallyLoc)return N(z.finallyLoc)}else if(W){if(this.prev<z.catchLoc)return N(z.catchLoc,!0)}else{if(!G)throw Error("try statement without catch or finally");if(this.prev<z.finallyLoc)return N(z.finallyLoc)}}}},abrupt:function(I,A){for(var N=this.tryEntries.length-1;N>=0;--N){var B=this.tryEntries[N];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var z=B;break}}z&&(I==="break"||I==="continue")&&z.tryLoc<=A&&A<=z.finallyLoc&&(z=null);var j=z?z.completion:{};return j.type=I,j.arg=A,z?(this.method="next",this.next=z.finallyLoc,v):this.complete(j)},complete:function(I,A){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&A&&(this.next=A),v},finish:function(I){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.finallyLoc===I)return this.complete(N.completion,N.afterLoc),F(N),v}},catch:function(I){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.tryLoc===I){var B=N.completion;if(B.type==="throw"){var z=B.arg;F(N)}return z}}throw Error("illegal catch attempt")},delegateYield:function(I,A,N){return this.delegate={iterator:k(I),resultName:A,nextLoc:N},this.method==="next"&&(this.arg=e),v}},t}function yRe(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){n(c);return}a.done?t(l):Promise.resolve(l).then(r,i)}function yGn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){yRe(o,r,i,s,a,"next",l)}function a(l){yRe(o,r,i,s,a,"throw",l)}s(void 0)})}}function set(e,t){return wGn(e)||SGn(e,t)||aet(e,t)||bGn()}function bGn(){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 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!=null&&Object.prototype.toString.call(i)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var o=0,s=["uploadUrl","uploadSize","uploadLengthDeferred"];o<s.length;o++){var a=s[o];if(this.options[a]){this._emitError(new Error("tus: cannot use the ".concat(a," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(r,this.options).then(function(l){return n._fingerprint=l,n._source?n._source:n.options.fileReader.openFile(r,n.options.chunkSize)}).then(function(l){if(n._source=l,n.options.uploadLengthDeferred)n._size=null;else if(n.options.uploadSize!=null){if(n._size=Number(n.options.uploadSize),Number.isNaN(n._size)){n._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(n._size=n._source.size,n._size==null){n._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}n.options.parallelUploads>1||n._parallelUploadUrls!=null?n._startParallelUpload():n._startSingleUpload()}).catch(function(l){n._emitError(l)})}},{key:"_startParallelUpload",value:function(){var n,r=this,i=this._size,o=0;this._parallelUploads=[];var s=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,a=(n=this.options.parallelUploadBoundaries)!==null&&n!==void 0?n:MGn(this._source.size,s);this._parallelUploadUrls&&a.forEach(function(u,f){u.uploadUrl=r._parallelUploadUrls[f]||null}),this._parallelUploadUrls=new Array(a.length);var l=a.map(function(u,f){var h=0;return r._source.slice(u.start,u.end).then(function(g){var p=g.value;return new Promise(function(m,v){var C=C5(C5({},r.options),{},{uploadUrl:u.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:C5(C5({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:m,onError:v,onProgress:function(S){o=o-h+S,h=S,r._emitProgress(o,i)},onUploadUrlAvailable:function(){r._parallelUploadUrls[f]=y.url,r._parallelUploadUrls.filter(function(S){return!!S}).length===a.length&&r._saveUploadInUrlStorage()}}),y=new e(p,C);y.start(),r._parallelUploads.push(y)})})}),c;Promise.all(l).then(function(){c=r._openRequest("POST",r.options.endpoint),c.setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var u=xRe(r.options.metadata);return u!==""&&c.setHeader("Upload-Metadata",u),r._sendRequest(c,null)}).then(function(u){if(!X5(u.getStatus(),200)){r._emitHttpError(c,u,"tus: unexpected response while creating upload");return}var f=u.getHeader("Location");if(f==null){r._emitHttpError(c,u,"tus: invalid or missing Location header");return}r.url=ORe(r.options.endpoint,f),"Created upload at ".concat(r.url),r._emitSuccess(u)}).catch(function(u){r._emitError(u)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(n){var r=this;if(this._parallelUploads!=null){var i=xGn(this._parallelUploads),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;s.abort(n)}}catch(a){i.e(a)}finally{i.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!n||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(n,r,i,o){this._emitError(new eL(i,o,n,r))}},{key:"_emitError",value:function(n){var r=this;if(!this._aborted){if(this.options.retryDelays!=null){var i=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(i&&(this._retryAttempt=0),$Re(n,this._retryAttempt,this.options)){var o=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){r.start()},o);return}}if(typeof this.options.onError=="function")this.options.onError(n);else throw n}}},{key:"_emitSuccess",value:function(n){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:n})}},{key:"_emitProgress",value:function(n,r){typeof this.options.onProgress=="function"&&this.options.onProgress(n,r)}},{key:"_emitChunkComplete",value:function(n,r,i){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(n,r,i)}},{key:"_createUpload",value:function(){var n=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var r=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?r.setHeader("Upload-Defer-Length","1"):r.setHeader("Upload-Length","".concat(this._size));var i=xRe(this.options.metadata);i!==""&&r.setHeader("Upload-Metadata",i);var o;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,o=this._addChunkToRequest(r)):(this.options.protocol===LN&&r.setHeader("Upload-Complete","?0"),o=this._sendRequest(r,null)),o.then(function(s){if(!X5(s.getStatus(),200)){n._emitHttpError(r,s,"tus: unexpected response while creating upload");return}var a=s.getHeader("Location");if(a==null){n._emitHttpError(r,s,"tus: invalid or missing Location header");return}if(n.url=ORe(n.options.endpoint,a),"Created upload at ".concat(n.url),typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._size===0){n._emitSuccess(s),n._source.close();return}n._saveUploadInUrlStorage().then(function(){n.options.uploadDataDuringCreation?n._handleUploadResponse(r,s):(n._offset=0,n._performUpload())})}).catch(function(s){n._emitHttpError(r,null,"tus: failed to create upload",s)})}},{key:"_resumeUpload",value:function(){var n=this,r=this._openRequest("HEAD",this.url),i=this._sendRequest(r,null);i.then(function(o){var s=o.getStatus();if(!X5(s,200)){if(s===423){n._emitHttpError(r,o,"tus: upload is currently locked; retry later");return}if(X5(s,400)&&n._removeFromUrlStorage(),!n.options.endpoint){n._emitHttpError(r,o,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}n.url=null,n._createUpload();return}var a=Number.parseInt(o.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){n._emitHttpError(r,o,"tus: invalid or missing offset value");return}var l=Number.parseInt(o.getHeader("Upload-Length"),10);if(Number.isNaN(l)&&!n.options.uploadLengthDeferred&&n.options.protocol===Cce){n._emitHttpError(r,o,"tus: invalid or missing length value");return}typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._saveUploadInUrlStorage().then(function(){if(a===l){n._emitProgress(l,l),n._emitSuccess(o);return}n._offset=a,n._performUpload()})}).catch(function(o){n._emitHttpError(r,null,"tus: failed to resume upload",o)})}},{key:"_performUpload",value:function(){var n=this;if(!this._aborted){var r;this.options.overridePatchMethod?(r=this._openRequest("POST",this.url),r.setHeader("X-HTTP-Method-Override","PATCH")):r=this._openRequest("PATCH",this.url),r.setHeader("Upload-Offset","".concat(this._offset));var i=this._addChunkToRequest(r);i.then(function(o){if(!X5(o.getStatus(),200)){n._emitHttpError(r,o,"tus: unexpected response while uploading chunk");return}n._handleUploadResponse(r,o)}).catch(function(o){n._aborted||n._emitHttpError(r,null,"tus: failed to upload chunk at offset ".concat(n._offset),o)})}}},{key:"_addChunkToRequest",value:function(n){var r=this,i=this._offset,o=this._offset+this.options.chunkSize;return n.setProgressHandler(function(s){r._emitProgress(i+s,r._size)}),n.setHeader("Content-Type","application/offset+octet-stream"),(o===Number.POSITIVE_INFINITY||o>this._size)&&!this.options.uploadLengthDeferred&&(o=this._size),this._source.slice(i,o).then(function(s){var a=s.value,l=s.done,c=a!=null&&a.size?a.size:0;r.options.uploadLengthDeferred&&l&&(r._size=r._offset+c,n.setHeader("Upload-Length","".concat(r._size)));var u=r._offset+c;return!r.options.uploadLengthDeferred&&l&&u!==r._size?Promise.reject(new Error("upload was configured with a size of ".concat(r._size," bytes, but the source is done after ").concat(u," bytes"))):a===null?r._sendRequest(n):(r.options.protocol===LN&&n.setHeader("Upload-Complete",l?"?1":"?0"),r._emitProgress(r._offset,r._size),r._sendRequest(n,a))})}},{key:"_handleUploadResponse",value:function(n,r){var i=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(i)){this._emitHttpError(n,r,"tus: invalid or missing offset value");return}if(this._emitProgress(i,this._size),this._emitChunkComplete(i-this._offset,i,this._size),this._offset=i,i===this._size){this._emitSuccess(r),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(n,r){var i=ERe(n,r,this.options);return this._req=i,i}},{key:"_removeFromUrlStorage",value:function(){var n=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(r){n._emitError(r)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var n=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var r={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?r.parallelUploadUrls=this._parallelUploadUrls:r.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,r).then(function(i){n._urlStorageKey=i})}},{key:"_sendRequest",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return RRe(n,r,this.options)}}],[{key:"terminate",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=ERe("DELETE",n,r);return RRe(i,null,r).then(function(o){if(o.getStatus()!==204)throw new eL("tus: unexpected response while terminating upload",null,i,o)}).catch(function(o){if(o instanceof eL||(o=new eL("tus: failed to terminate upload",o,i,null)),!$Re(o,0,r))throw o;var s=r.retryDelays[0],a=r.retryDelays.slice(1),l=C5(C5({},r),{},{retryDelays:a});return new Promise(function(c){return setTimeout(c,s)}).then(function(){return e.terminate(n,l)})})}}])}();function xRe(e){return Object.entries(e).map(function(t){var n=set(t,2),r=n[0],i=n[1];return"".concat(r," ").concat(rGn.encode(String(i)))}).join(",")}function X5(e,t){return e>=t&&e<t+100}function ERe(e,t,n){var r=n.httpStack.createRequest(e,t);n.protocol===LN?r.setHeader("Upload-Draft-Interop-Version","5"):r.setHeader("Tus-Resumable","1.0.0");for(var i=n.headers||{},o=0,s=Object.entries(i);o<s.length;o++){var a=set(s[o],2),l=a[0],c=a[1];r.setHeader(l,c)}if(n.addRequestId){var u=CGn();r.setHeader("X-Request-ID",u)}return r}function RRe(e,t,n){return yce.apply(this,arguments)}function yce(){return yce=yGn(vce().mark(function e(t,n,r){var i;return vce().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(typeof r.onBeforeRequest!="function"){s.next=3;break}return s.next=3,r.onBeforeRequest(t);case 3:return s.next=5,t.send(n);case 5:if(i=s.sent,typeof r.onAfterResponse!="function"){s.next=9;break}return s.next=9,r.onAfterResponse(t,i);case 9:return s.abrupt("return",i);case 10:case"end":return s.stop()}},e)})),yce.apply(this,arguments)}function IGn(){var e=!0;return typeof navigator<"u"&&navigator.onLine===!1&&(e=!1),e}function $Re(e,t,n){return n.retryDelays==null||t>=n.retryDelays.length||e.originalRequest==null?!1:n&&typeof n.onShouldRetry=="function"?n.onShouldRetry(e,t,n):uet(e)}function uet(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!X5(t,400)||t===409||t===423)&&IGn()}function ORe(e,t){return new vGn(t,e).toString()}function MGn(e,t){for(var n=Math.floor(e/t),r=[],i=0;i<t;i++)r.push({start:n*i,end:n*(i+1)});return r[t-1].end=e,r}FB.defaultOptions=TGn;var det=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function PGn(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var i=r.response;t(i)},r.onerror=function(i){n(i)},r.open("GET",e),r.send()})}var _Gn=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function AGn(e){return new Promise(function(t,n){var r=new FileReader;r.onload=function(){var i=new Uint8Array(r.result);t({value:i})},r.onerror=function(i){n(i)},r.readAsArrayBuffer(e)})}function YT(e){"@babel/helpers - typeof";return YT=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},YT(e)}function DGn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LGn(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,NGn(r.key),r)}}function FGn(e,t,n){return LGn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NGn(e){var t=kGn(e,"string");return YT(t)=="symbol"?t:t+""}function kGn(e,t){if(YT(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(YT(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TRe=function(){function e(t){DGn(this,e),this._file=t,this.size=t.size}return FGn(e,[{key:"slice",value:function(n,r){if(_Gn())return AGn(this._file.slice(n,r));var i=this._file.slice(n,r),o=r>=this.size;return Promise.resolve({value:i,done:o})}},{key:"close",value:function(){}}])}();function XT(e){"@babel/helpers - typeof";return XT=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},XT(e)}function zGn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BGn(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,jGn(r.key),r)}}function HGn(e,t,n){return BGn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jGn(e){var t=VGn(e,"string");return XT(t)=="symbol"?t:t+""}function VGn(e,t){if(XT(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(XT(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function IRe(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function GGn(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}throw new Error("Unknown data type")}var WGn=function(){function e(t){zGn(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return HGn(e,[{key:"slice",value:function(n,r){return n<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(n,r)}},{key:"_readUntilEnoughDataOrDone",value:function(n,r){var i=this,o=r<=this._bufferOffset+IRe(this._buffer);if(this._done||o){var s=this._getDataFromBuffer(n,r),a=s==null?this._done:!1;return Promise.resolve({value:s,done:a})}return this._reader.read().then(function(l){var c=l.value,u=l.done;return u?i._done=!0:i._buffer===void 0?i._buffer=c:i._buffer=GGn(i._buffer,c),i._readUntilEnoughDataOrDone(n,r)})}},{key:"_getDataFromBuffer",value:function(n,r){n>this._bufferOffset&&(this._buffer=this._buffer.slice(n-this._bufferOffset),this._bufferOffset=n);var i=IRe(this._buffer)===0;return this._done&&i?null:this._buffer.slice(0,r-n)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])}();function UC(e){"@babel/helpers - typeof";return UC=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},UC(e)}function bce(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */bce=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(L,I,A){L[I]=A.value},o=typeof Symbol=="function"?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(L,I,A){return Object.defineProperty(L,I,{value:A,enumerable:!0,configurable:!0,writable:!0}),L[I]}try{c({},"")}catch{c=function(A,N,B){return A[N]=B}}function u(L,I,A,N){var B=I&&I.prototype instanceof C?I:C,z=Object.create(B.prototype),j=new D(N||[]);return i(z,"_invoke",{value:T(L,A,j)}),z}function f(L,I,A){try{return{type:"normal",arg:L.call(I,A)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var h="suspendedStart",g="suspendedYield",p="executing",m="completed",v={};function C(){}function y(){}function b(){}var S={};c(S,s,function(){return this});var w=Object.getPrototypeOf,x=w&&w(w(k([])));x&&x!==n&&r.call(x,s)&&(S=x);var E=b.prototype=C.prototype=Object.create(S);function R(L){["next","throw","return"].forEach(function(I){c(L,I,function(A){return this._invoke(I,A)})})}function O(L,I){function A(B,z,j,W){var G=f(L[B],L,z);if(G.type!=="throw"){var K=G.arg,q=K.value;return q&&UC(q)=="object"&&r.call(q,"__await")?I.resolve(q.__await).then(function(X){A("next",X,j,W)},function(X){A("throw",X,j,W)}):I.resolve(q).then(function(X){K.value=X,j(K)},function(X){return A("throw",X,j,W)})}W(G.arg)}var N;i(this,"_invoke",{value:function(z,j){function W(){return new I(function(G,K){A(z,j,G,K)})}return N=N?N.then(W,W):W()}})}function T(L,I,A){var N=h;return function(B,z){if(N===p)throw Error("Generator is already running");if(N===m){if(B==="throw")throw z;return{value:e,done:!0}}for(A.method=B,A.arg=z;;){var j=A.delegate;if(j){var W=M(j,A);if(W){if(W===v)continue;return W}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(N===h)throw N=m,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);N=p;var G=f(L,I,A);if(G.type==="normal"){if(N=A.done?m:g,G.arg===v)continue;return{value:G.arg,done:A.done}}G.type==="throw"&&(N=m,A.method="throw",A.arg=G.arg)}}}function M(L,I){var A=I.method,N=L.iterator[A];if(N===e)return I.delegate=null,A==="throw"&&L.iterator.return&&(I.method="return",I.arg=e,M(L,I),I.method==="throw")||A!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+A+"' method")),v;var B=f(N,L.iterator,I.arg);if(B.type==="throw")return I.method="throw",I.arg=B.arg,I.delegate=null,v;var z=B.arg;return z?z.done?(I[L.resultName]=z.value,I.next=L.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,v):z:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,v)}function _(L){var I={tryLoc:L[0]};1 in L&&(I.catchLoc=L[1]),2 in L&&(I.finallyLoc=L[2],I.afterLoc=L[3]),this.tryEntries.push(I)}function F(L){var I=L.completion||{};I.type="normal",delete I.arg,L.completion=I}function D(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(_,this),this.reset(!0)}function k(L){if(L||L===""){var I=L[s];if(I)return I.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var A=-1,N=function B(){for(;++A<L.length;)if(r.call(L,A))return B.value=L[A],B.done=!1,B;return B.value=e,B.done=!0,B};return N.next=N}}throw new TypeError(UC(L)+" is not iterable")}return y.prototype=b,i(E,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(L){var I=typeof L=="function"&&L.constructor;return!!I&&(I===y||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,b):(L.__proto__=b,c(L,l,"GeneratorFunction")),L.prototype=Object.create(E),L},t.awrap=function(L){return{__await:L}},R(O.prototype),c(O.prototype,a,function(){return this}),t.AsyncIterator=O,t.async=function(L,I,A,N,B){B===void 0&&(B=Promise);var z=new O(u(L,I,A,N),B);return t.isGeneratorFunction(I)?z:z.next().then(function(j){return j.done?j.value:z.next()})},R(E),c(E,l,"Generator"),c(E,s,function(){return this}),c(E,"toString",function(){return"[object Generator]"}),t.keys=function(L){var I=Object(L),A=[];for(var N in I)A.push(N);return A.reverse(),function B(){for(;A.length;){var z=A.pop();if(z in I)return B.value=z,B.done=!1,B}return B.done=!0,B}},t.values=k,D.prototype={constructor:D,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!I)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var A=this;function N(K,q){return j.type="throw",j.arg=I,A.next=K,q&&(A.method="next",A.arg=e),!!q}for(var B=this.tryEntries.length-1;B>=0;--B){var z=this.tryEntries[B],j=z.completion;if(z.tryLoc==="root")return N("end");if(z.tryLoc<=this.prev){var W=r.call(z,"catchLoc"),G=r.call(z,"finallyLoc");if(W&&G){if(this.prev<z.catchLoc)return N(z.catchLoc,!0);if(this.prev<z.finallyLoc)return N(z.finallyLoc)}else if(W){if(this.prev<z.catchLoc)return N(z.catchLoc,!0)}else{if(!G)throw Error("try statement without catch or finally");if(this.prev<z.finallyLoc)return N(z.finallyLoc)}}}},abrupt:function(I,A){for(var N=this.tryEntries.length-1;N>=0;--N){var B=this.tryEntries[N];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var z=B;break}}z&&(I==="break"||I==="continue")&&z.tryLoc<=A&&A<=z.finallyLoc&&(z=null);var j=z?z.completion:{};return j.type=I,j.arg=A,z?(this.method="next",this.next=z.finallyLoc,v):this.complete(j)},complete:function(I,A){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&A&&(this.next=A),v},finish:function(I){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.finallyLoc===I)return this.complete(N.completion,N.afterLoc),F(N),v}},catch:function(I){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.tryLoc===I){var B=N.completion;if(B.type==="throw"){var z=B.arg;F(N)}return z}}throw Error("illegal catch attempt")},delegateYield:function(I,A,N){return this.delegate={iterator:k(I),resultName:A,nextLoc:N},this.method==="next"&&(this.arg=e),v}},t}function MRe(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){n(c);return}a.done?t(l):Promise.resolve(l).then(r,i)}function UGn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){MRe(o,r,i,s,a,"next",l)}function a(l){MRe(o,r,i,s,a,"throw",l)}s(void 0)})}}function qGn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KGn(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,XGn(r.key),r)}}function YGn(e,t,n){return KGn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XGn(e){var t=QGn(e,"string");return UC(t)=="symbol"?t:t+""}function QGn(e,t){if(UC(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(UC(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ZGn=function(){function e(){qGn(this,e)}return YGn(e,[{key:"openFile",value:function(){var t=UGn(bce().mark(function r(i,o){var s;return bce().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(det()&&i&&typeof i.uri<"u")){l.next=11;break}return l.prev=1,l.next=4,PGn(i.uri);case 4:return s=l.sent,l.abrupt("return",new TRe(s));case 8:throw l.prev=8,l.t0=l.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(l.t0));case 11:if(!(typeof i.slice=="function"&&typeof i.size<"u")){l.next=13;break}return l.abrupt("return",Promise.resolve(new TRe(i)));case 13:if(typeof i.read!="function"){l.next=18;break}if(o=Number(o),Number.isFinite(o)){l.next=17;break}return l.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return l.abrupt("return",Promise.resolve(new WGn(i,o)));case 18:return l.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return l.stop()}},r,null,[[1,8]])}));function n(r,i){return t.apply(this,arguments)}return n}()}])}();function JGn(e,t){return det()?Promise.resolve(eWn(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function eWn(e,t){var n=e.exif?tWn(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",n,t.endpoint].join("/")}function tWn(e){var t=0;if(e.length===0)return t;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return t}function QT(e){"@babel/helpers - typeof";return QT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QT(e)}function F1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nWn(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,rWn(r.key),r)}}function N1e(e,t,n){return t&&nWn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rWn(e){var t=iWn(e,"string");return QT(t)=="symbol"?t:t+""}function iWn(e,t){if(QT(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(QT(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oWn=function(){function e(){F1e(this,e)}return N1e(e,[{key:"createRequest",value:function(n,r){return new sWn(n,r)}},{key:"getName",value:function(){return"XHRHttpStack"}}])}(),sWn=function(){function e(t,n){F1e(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,n,!0),this._method=t,this._url=n,this._headers={}}return N1e(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(n,r){this._xhr.setRequestHeader(n,r),this._headers[n]=r}},{key:"getHeader",value:function(n){return this._headers[n]}},{key:"setProgressHandler",value:function(n){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(r){r.lengthComputable&&n(r.loaded)})}},{key:"send",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(i,o){n._xhr.onload=function(){i(new aWn(n._xhr))},n._xhr.onerror=function(s){o(s)},n._xhr.send(r)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}(),aWn=function(){function e(t){F1e(this,e),this._xhr=t}return N1e(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(n){return this._xhr.getResponseHeader(n)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}();function ZT(e){"@babel/helpers - typeof";return ZT=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},ZT(e)}function lWn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cWn(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,dWn(r.key),r)}}function uWn(e,t,n){return cWn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dWn(e){var t=fWn(e,"string");return ZT(t)=="symbol"?t:t+""}function fWn(e,t){if(ZT(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ZT(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sce=!1;try{Sce="localStorage"in window;var ane="tusSupport",PRe=localStorage.getItem(ane);localStorage.setItem(ane,PRe),PRe===null&&localStorage.removeItem(ane)}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)Sce=!1;else throw e}var hWn=Sce,gWn=function(){function e(){lWn(this,e)}return uWn(e,[{key:"findAllUploads",value:function(){var n=this._findEntries("tus::");return Promise.resolve(n)}},{key:"findUploadsByFingerprint",value:function(n){var r=this._findEntries("tus::".concat(n,"::"));return Promise.resolve(r)}},{key:"removeUpload",value:function(n){return localStorage.removeItem(n),Promise.resolve()}},{key:"addUpload",value:function(n,r){var i=Math.round(Math.random()*1e12),o="tus::".concat(n,"::").concat(i);return localStorage.setItem(o,JSON.stringify(r)),Promise.resolve(o)}},{key:"_findEntries",value:function(n){for(var r=[],i=0;i<localStorage.length;i++){var o=localStorage.key(i);if(o.indexOf(n)===0)try{var s=JSON.parse(localStorage.getItem(o));s.urlStorageKey=o,r.push(s)}catch{}}return r}}])}();function b7(e){"@babel/helpers - typeof";return b7=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},b7(e)}function pWn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mWn(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,het(r.key),r)}}function vWn(e,t,n){return mWn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function CWn(e,t,n){return t=NB(t),yWn(e,fet()?Reflect.construct(t,n,NB(e).constructor):t.apply(e,n))}function yWn(e,t){if(t&&(b7(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bWn(e)}function bWn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fet=function(){return!!e})()}function NB(e){return NB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},NB(e)}function SWn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wce(e,t)}function wce(e,t){return wce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wce(e,t)}function _Re(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 AS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_Re(Object(n),!0).forEach(function(r){wWn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_Re(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wWn(e,t,n){return t=het(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function het(e){var t=xWn(e,"string");return b7(t)=="symbol"?t:t+""}function xWn(e,t){if(b7(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(b7(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ARe=AS(AS({},FB.defaultOptions),{},{httpStack:new oWn,fileReader:new ZGn,urlStorage:hWn?new gWn:new UVn,fingerprint:JGn}),EWn=function(e){function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return pWn(this,t),r=AS(AS({},ARe),r),CWn(this,t,[n,r])}return SWn(t,e),vWn(t,null,[{key:"terminate",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=AS(AS({},ARe),i),FB.terminate(r,i)}}])}(FB);function k1e(){const[e,t]=d.useState({}),[n,r]=d.useState(!1),[i,o]=d.useState(null),s=c=>{const u=c.split("/"),f=u.findIndex(h=>h==="upload");if(f===-1||f+4>=u.length)throw new Error("Invalid upload URL format");return u.slice(f+1,f+5).join("/")},a=c=>{const u=c.split("/"),f=u.findIndex(g=>g==="upload");if(f===-1||f+4>=u.length)throw new Error("Invalid upload URL format");return`http://${Fs.SERVER_IP}:${Fs.FILE_PORT}/uploads/${u.slice(f+1,f+6).join("/")}`};return{uploadProgress:e,isUploading:n,uploadError:i,handleFileUpload:async(c,u,f,h)=>{r(!0),t(g=>({...g,[h]:0})),o(null);try{let g="uploaded-file";c instanceof Blob&&!(c instanceof File)&&(g=`uploaded-file.${c.type.split("/")[1]}`);const p=c instanceof Blob&&!(c instanceof File)?new File([c],g,{type:c.type}):c;console.log(`http://${Fs.SERVER_IP}:${Fs.SERVER_PORT}/upload`);const m=new EWn(p,{endpoint:`http://${Fs.SERVER_IP}:${Fs.SERVER_PORT}/upload`,retryDelays:[0,1e3,3e3,5e3],metadata:{filename:p.name,filetype:p.type,size:p.size},onProgress:(v,C)=>{const y=Number((v/C*100).toFixed(2));t(b=>({...b,[h]:y}))},onSuccess:async v=>{try{if(m.url){const C=s(m.url),y=a(m.url);r(!1),t(b=>({...b,[h]:100})),u({compressedUrl:AJe(y),url:y,fileId:C})}}catch(C){const y=C instanceof Error?C:new Error("Unknown error");r(!1),o(y.message),f(y)}},onError:v=>{r(!1),o(v.message),console.log(v),f(v)}});m.start()}catch(g){const p=g instanceof Error?g:new Error("Upload failed");r(!1),o(p.message),f(p)}}}}var get={},pet={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(pet);var pe=pet.exports,EM={};const pG=_r(VRt);var mi={};Object.defineProperty(mi,"__esModule",{value:!0});mi.default=RWn;function RWn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var r9={},met={exports:{}},vet={exports:{}},Cet={exports:{}};(function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Cet);var yet=Cet.exports;(function(e){var t=yet;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(vet);var $Wn=vet.exports,bet={exports:{}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(bet);var wet=bet.exports,xet={exports:{}};(function(e){var t=yet;function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(r,i):void 0}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(xet);var z1e=xet.exports,Eet={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
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(var o=1;o<arguments.length;o++){var s=arguments[o]!=null?arguments[o]:{};o%2?n(Object(s),!0).forEach(function(a){t(i,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(s,a))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(_et);var Eu=_et.exports,Net={exports:{}},ket={exports:{}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ket);var zet=ket.exports,Bet={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
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,"__esModule",{value:!0});AM.default=void 0;const JWn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};AM.default=JWn;var Xet=pe.default;Object.defineProperty(Uy,"__esModule",{value:!0});Uy.default=void 0;var eUn=Xet(vG),tUn=Xet(AM);const nUn={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},eUn.default),timePickerLocale:Object.assign({},tUn.default)};Uy.default=nUn;var rUn=pe.default;Object.defineProperty(PM,"__esModule",{value:!0});PM.default=void 0;var iUn=rUn(Uy);PM.default=iUn.default;var CG=pe.default;Object.defineProperty(Ec,"__esModule",{value:!0});Ec.default=void 0;var oUn=CG(MM),sUn=CG(PM),aUn=CG(Uy),lUn=CG(AM);const Fu="${label} is not a valid ${type}",cUn={locale:"en",Pagination:oUn.default,DatePicker:aUn.default,TimePicker:lUn.default,Calendar:sUn.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Fu,method:Fu,array:Fu,object:Fu,number:Fu,date:Fu,boolean:Fu,integer:Fu,float:Fu,regexp:Fu,email:Fu,url:Fu,hex:Fu},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Ec.default=cUn;var uUn=pe.default;Object.defineProperty(o9,"__esModule",{value:!0});o9.changeConfirmLocale=dUn;o9.getConfirmLocale=fUn;var G1e=uUn(Ec);let NN=Object.assign({},G1e.default.Modal),kN=[];const kRe=()=>kN.reduce((e,t)=>Object.assign(Object.assign({},e),t),G1e.default.Modal);function dUn(e){if(e){const t=Object.assign({},e);return kN.push(t),NN=kRe(),()=>{kN=kN.filter(n=>n!==t),NN=kRe()}}NN=Object.assign({},G1e.default.Modal)}function fUn(){return NN}var s9={};Object.defineProperty(s9,"__esModule",{value:!0});s9.default=void 0;var hUn=d;const gUn=(0,hUn.createContext)(void 0);s9.default=gUn;var a9={},Qet=pe.default,pUn=_e.default;Object.defineProperty(a9,"__esModule",{value:!0});a9.default=void 0;var lne=pUn(d),mUn=Qet(s9),zRe=Qet(Ec);const vUn=(e,t)=>{const n=lne.useContext(mUn.default),r=lne.useMemo(()=>{var o;const s=t||zRe.default[e],a=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),a||{})},[e,t,n]),i=lne.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?zRe.default.locale:o},[n]);return[r,i]};a9.default=vUn;(function(e){"use client";var t=pe.default,n=_e.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return s.default}});var r=n(d),i=o9,o=t(s9),s=t(a9);e.ANT_MARK="internalMark";const a=l=>{const{locale:c={},children:u,_ANT_MARK__:f}=l;r.useEffect(()=>(0,i.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const h=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(o.default.Provider,{value:h},u)};e.default=a})(Os);var fm={},qy={};const Xg=_r(MOt);var eh={};Object.defineProperty(eh,"__esModule",{value:!0});eh.defaultPresetColors=eh.default=void 0;const CUn=eh.defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},yUn=Object.assign(Object.assign({},CUn),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||
'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.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]}};LM.default=IUn;var U1e={};Object.defineProperty(U1e,"__esModule",{value:!0});U1e.default=MUn;function MUn(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)}}var S7={},w7={};Object.defineProperty(w7,"__esModule",{value:!0});w7.getSolidColor=w7.getAlphaColor=void 0;var Jet=Us;const PUn=(e,t)=>new Jet.FastColor(e).setA(t).toRgbString();w7.getAlphaColor=PUn;const _Un=(e,t)=>new Jet.FastColor(e).darken(t).toHexString();w7.getSolidColor=_Un;Object.defineProperty(S7,"__esModule",{value:!0});S7.generateNeutralColorPalettes=S7.generateColorPalettes=void 0;var AUn=Xg,Va=w7;const DUn=e=>{const t=(0,AUn.generate)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}};S7.generateColorPalettes=DUn;const LUn=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,Va.getAlphaColor)(r,.88),colorTextSecondary:(0,Va.getAlphaColor)(r,.65),colorTextTertiary:(0,Va.getAlphaColor)(r,.45),colorTextQuaternary:(0,Va.getAlphaColor)(r,.25),colorFill:(0,Va.getAlphaColor)(r,.15),colorFillSecondary:(0,Va.getAlphaColor)(r,.06),colorFillTertiary:(0,Va.getAlphaColor)(r,.04),colorFillQuaternary:(0,Va.getAlphaColor)(r,.02),colorBgSolid:(0,Va.getAlphaColor)(r,1),colorBgSolidHover:(0,Va.getAlphaColor)(r,.75),colorBgSolidActive:(0,Va.getAlphaColor)(r,.95),colorBgLayout:(0,Va.getSolidColor)(n,4),colorBgContainer:(0,Va.getSolidColor)(n,0),colorBgElevated:(0,Va.getSolidColor)(n,0),colorBgSpotlight:(0,Va.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,Va.getSolidColor)(n,15),colorBorderSecondary:(0,Va.getSolidColor)(n,6)}};S7.generateNeutralColorPalettes=LUn;var NM=pe.default;Object.defineProperty(qy,"__esModule",{value:!0});qy.default=jUn;var T6=Xg,FUn=eh,NUn=NM(yG),kUn=NM(W1e),zUn=NM(DM),BUn=NM(LM),HUn=NM(U1e),BRe=S7;function jUn(e){T6.presetPrimaryColors.pink=T6.presetPrimaryColors.magenta,T6.presetPalettes.pink=T6.presetPalettes.magenta;const t=Object.keys(FUn.defaultPresetColors).map(n=>{const r=e[n]===T6.presetPrimaryColors[n]?T6.presetPalettes[n]:(0,T6.generate)(e[n]);return new Array(10).fill(1).reduce((i,o,s)=>(i[`${n}-${s+1}`]=r[s],i[`${n}${s+1}`]=r[s],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,NUn.default)(e,{generateColorPalettes:BRe.generateColorPalettes,generateNeutralColorPalettes:BRe.generateNeutralColorPalettes})),(0,BUn.default)(e.fontSize)),(0,HUn.default)(e)),(0,zUn.default)(e)),(0,kUn.default)(e))}var q1e=pe.default;Object.defineProperty(fm,"__esModule",{value:!0});fm.defaultTheme=fm.defaultConfig=fm.DesignTokenContext=void 0;var VUn=q1e(d),GUn=Kt,WUn=q1e(qy),HRe=q1e(eh);fm.defaultTheme=(0,GUn.createTheme)(WUn.default);const UUn=fm.defaultConfig={token:HRe.default,override:{override:HRe.default},hashed:!0};fm.DesignTokenContext=VUn.default.createContext(UUn);var Fl={},qUn=_e.default;Object.defineProperty(Fl,"__esModule",{value:!0});Fl.defaultPrefixCls=Fl.defaultIconPrefixCls=Fl.Variants=Fl.ConfigContext=Fl.ConfigConsumer=void 0;var KUn=qUn(d);const jRe=Fl.defaultPrefixCls="ant",YUn=Fl.defaultIconPrefixCls="anticon";Fl.Variants=["outlined","borderless","filled"];const XUn=(e,t)=>t||(e?`${jRe}-${e}`:jRe),QUn=Fl.ConfigContext=KUn.createContext({getPrefixCls:XUn,iconPrefixCls:YUn}),{Consumer:ZUn}=QUn;Fl.ConfigConsumer=ZUn;var SG={},Ky={};Object.defineProperty(Ky,"__esModule",{value:!0});Ky.default=JUn;function JUn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Yy={},K1e={};Object.defineProperty(K1e,"__esModule",{value:!0});K1e.default=eqn;function eqn(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 Y1e=pe.default;Object.defineProperty(Yy,"__esModule",{value:!0});Yy.clearContainerCache=aqn;Yy.injectCSS=Q1e;Yy.removeCSS=oqn;Yy.updateCSS=lqn;var VRe=Y1e(Eu),tqn=Y1e(Ky),nqn=Y1e(K1e),GRe="data-rc-order",WRe="data-rc-priority",rqn="rc-util-key",kB=new Map;function ett(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):rqn}function wG(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function iqn(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function X1e(e){return Array.from((kB.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Q1e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,tqn.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,s=iqn(r),a=s==="prependQueue",l=document.createElement("style");l.setAttribute(GRe,s),a&&o&&l.setAttribute(WRe,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=wG(t),u=c.firstChild;if(r){if(a){var f=(t.styles||X1e(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(GRe)))return!1;var g=Number(h.getAttribute(WRe)||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 ttt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wG(t);return(t.styles||X1e(n)).find(function(r){return r.getAttribute(ett(t))===e})}function oqn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ttt(e,t);if(n){var r=wG(t);r.removeChild(n)}}function sqn(e,t){var n=kB.get(e);if(!n||!(0,nqn.default)(document,n)){var r=Q1e("",t),i=r.parentNode;kB.set(e,i),e.removeChild(r)}}function aqn(){kB.clear()}function lqn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=wG(n),i=X1e(r),o=(0,VRe.default)((0,VRe.default)({},n),{},{styles:i});sqn(r,o);var s=ttt(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=Q1e(e,o);return u.setAttribute(ett(o),t),u}var ntt=pe.default;Object.defineProperty(SG,"__esModule",{value:!0});SG.getStyle=rtt;SG.registerTheme=fqn;var URe=Xg,une=Us,cqn=ntt(Ky),uqn=Yy;ntt(Lo);const dqn=`-ant-${Date.now()}-${Math.random()}`;function rtt(e,t){const n={},r=(s,a)=>{let l=s.clone();return l=(a==null?void 0:a(l))||l,l.toRgbString()},i=(s,a)=>{const l=new une.FastColor(s),c=(0,URe.generate)(l.toRgbString());n[`${a}-color`]=r(l),n[`${a}-color-disabled`]=c[1],n[`${a}-color-hover`]=c[4],n[`${a}-color-active`]=c[6],n[`${a}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${a}-color-deprecated-bg`]=c[0],n[`${a}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const s=new une.FastColor(t.primaryColor),a=(0,URe.generate)(s.toRgbString());a.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(s,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(s,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(s,c=>c.setA(c.a*.12));const l=new une.FastColor(a[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
||
:root {
|
||
${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
|
||
`)}
|
||
}
|
||
`.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.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:(0,rL.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,rL.default)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,rL.default)(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
||
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 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()}
|
||
`,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)
|
||
`,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})}};gn.genCommonStyle=Bqn;const utt=(e,t)=>({outline:`${(0,Fqn.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});gn.genFocusOutline=utt;const dtt=(e,t)=>({"&:focus-visible":Object.assign({},utt(e,t))});gn.genFocusStyle=dtt;const Hqn=e=>({[`.${e}`]:Object.assign(Object.assign({},ctt()),{[`.${e} .${e}-icon`]:{display:"block"}})});gn.genIconStyle=Hqn;const jqn=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"},dtt(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});gn.operationUnit=jqn;var Vqn=_e.default;Object.defineProperty(b4,"__esModule",{value:!0});b4.genSubStyleComponent=b4.genStyleHooks=b4.genComponentStyleHook=void 0;var QRe=d,Gqn=stt,hne=Fl,gne=gn,ZRe=Vqn(mu);const{genStyleHooks:Wqn,genComponentStyleHook:Uqn,genSubStyleComponent:qqn}=(0,Gqn.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,QRe.useContext)(hne.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,ZRe.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,QRe.useContext)(hne.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,gne.genLinkStyle)(e)},(0,gne.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:hne.defaultIconPrefixCls)]},getCommonStyle:gne.genCommonStyle,getCompUnitless:()=>ZRe.unitless});b4.genSubStyleComponent=qqn;b4.genComponentStyleHook=Uqn;b4.genStyleHooks=Wqn;var e0e={};Object.defineProperty(e0e,"__esModule",{value:!0});e0e.default=Yqn;var Kqn=l9;function Yqn(e,t){return Kqn.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],s=e[`${r}6`],a=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:s,textColor:a}))},{})}var IG={},Xqn=pe.default;Object.defineProperty(IG,"__esModule",{value:!0});IG.default=void 0;var Qqn=Kt,Zqn=gn,Jqn=Xqn(mu);const eKn=(e,t)=>{const[n,r]=(0,Jqn.default)();return(0,Qqn.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,Zqn.genIconStyle)(e)])};IG.default=eKn;(function(e){var t=pe.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return a.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return a.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return a.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return o.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return s.default}});var n=Kt,r=stt,i=l9,o=FM,s=t(mu),a=b4,l=t(e0e),c=t(IG),u=fm})(Zt);var MG={},tKn=_e.default;Object.defineProperty(MG,"__esModule",{value:!0});MG.default=void 0;var nKn=tKn(d);const rKn=Object.assign({},nKn),{useId:JRe}=rKn,iKn=()=>"",oKn=typeof JRe>"u"?iKn:JRe;MG.default=oKn;var t0e=pe.default;Object.defineProperty(Z1e,"__esModule",{value:!0});Z1e.default=uKn;var sKn=t0e(RM),aKn=t0e(kM),lKn=Lo,e$e=Zt,cKn=t0e(MG);function uKn(e,t,n){var r;(0,lKn.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},e$e.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:e$e.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=(0,cKn.default)();return(0,sKn.default)(()=>{var a,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${s.replace(/:/g,"")}`,f=((a=i.cssVar)!==null&&a!==void 0?a:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:f})},[i,o],(a,l)=>a.some((c,u)=>{const f=l[u];return!(0,aKn.default)(c,f,!0)}))}var n0e={};const Qg=_r(ATt);var dKn=_e.default;Object.defineProperty(n0e,"__esModule",{value:!0});n0e.default=gKn;var t$e=dKn(d),fKn=Qg,hKn=Zt;function gKn(e){const{children:t}=e,[,n]=(0,hKn.useToken)(),{motion:r}=n,i=t$e.useRef(!1);return i.current=i.current||r===!1,i.current?t$e.createElement(fKn.Provider,{motion:r},t):t}var PG={},pKn=_e.default;Object.defineProperty(PG,"__esModule",{value:!0});PG.default=void 0;pKn(d);PG.default=()=>null;var ftt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=Zt})(ftt);(function(e){"use client";var t=pe.default,n=_e.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return m.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return m.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return m.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return m.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return m.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(d),i=Kt,o=t(i9),s=t(RM),a=mG,l=n(Lo),c=t(IM),u=n(Os),f=t(s9),h=t(Ec),g=fm,p=t(eh),m=Fl,v=SG,C=Co,y=t(xG),b=t(Z1e),S=t(n0e),w=t(PG),x=n(z0),E=t(ftt),R=function(z,j){var W={};for(var G in z)Object.prototype.hasOwnProperty.call(z,G)&&j.indexOf(G)<0&&(W[G]=z[G]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,G=Object.getOwnPropertySymbols(z);K<G.length;K++)j.indexOf(G[K])<0&&Object.prototype.propertyIsEnumerable.call(z,G[K])&&(W[G[K]]=z[G[K]]);return W};e.warnContext=null,e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"];const O=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let T,M,_,F;function D(){return T||m.defaultPrefixCls}function k(){return M||m.defaultIconPrefixCls}function L(z){return Object.keys(z).some(j=>j.endsWith("Color"))}const I=z=>{const{prefixCls:j,iconPrefixCls:W,theme:G,holderRender:K}=z;j!==void 0&&(T=j),W!==void 0&&(M=W),"holderRender"in z&&(F=K),G&&(L(G)?(0,v.registerTheme)(D(),G):_=G)},A=()=>({getPrefixCls:(z,j)=>j||(z?`${D()}-${z}`:D()),getIconPrefixCls:k,getRootPrefixCls:()=>T||D(),getTheme:()=>_,holderRender:F});e.globalConfig=A;const N=z=>{const{children:j,csp:W,autoInsertSpaceInButton:G,alert:K,anchor:q,form:X,locale:Q,componentSize:te,direction:ne,space:Z,splitter:ee,virtual:J,dropdownMatchSelectWidth:oe,popupMatchSelectWidth:le,popupOverflow:ge,legacyLocale:he,parentContext:ye,iconPrefixCls:ue,theme:ve,componentDisabled:de,segmented:xe,statistic:Ee,spin:De,calendar:Be,carousel:Ge,cascader:Ue,collapse:We,typography:Ve,checkbox:Fe,descriptions:ke,divider:Ye,drawer:ze,skeleton:Re,steps:Le,image:Me,layout:be,list:je,mentions:Xe,modal:ft,progress:Tt,result:tt,slider:pt,breadcrumb:$t,menu:wt,pagination:It,input:Ct,textArea:ot,empty:nt,badge:fe,radio:Te,rate:$e,switch:He,transfer:it,avatar:at,message:gt,tag:yt,table:st,card:Ze,tabs:dt,timeline:At,timePicker:kt,upload:pn,notification:ln,tree:Lt,colorPicker:xt,datePicker:Rt,rangePicker:Ft,flex:hn,wave:Mt,dropdown:mt,warning:jt,tour:tn,tooltip:Cn,popover:Ln,popconfirm:cn,floatButtonGroup:Dt,variant:sn,inputNumber:Sn,treeSelect:Tn}=z,Jn=r.useCallback((Yt,Jt)=>{const{prefixCls:sr}=z;if(Jt)return Jt;const br=sr||ye.getPrefixCls("");return Yt?`${br}-${Yt}`:br},[ye.getPrefixCls,z.prefixCls]),Ar=ue||ye.iconPrefixCls||m.defaultIconPrefixCls,Vr=W||ye.csp;(0,E.default)(Ar,Vr);const Ui=(0,b.default)(ve,ye.theme,{prefixCls:Jn("")}),Bi={csp:Vr,autoInsertSpaceInButton:G,alert:K,anchor:q,locale:Q||he,direction:ne,space:Z,splitter:ee,virtual:J,popupMatchSelectWidth:le??oe,popupOverflow:ge,getPrefixCls:Jn,iconPrefixCls:Ar,theme:Ui,segmented:xe,statistic:Ee,spin:De,calendar:Be,carousel:Ge,cascader:Ue,collapse:We,typography:Ve,checkbox:Fe,descriptions:ke,divider:Ye,drawer:ze,skeleton:Re,steps:Le,image:Me,input:Ct,textArea:ot,layout:be,list:je,mentions:Xe,modal:ft,progress:Tt,result:tt,slider:pt,breadcrumb:$t,menu:wt,pagination:It,empty:nt,badge:fe,radio:Te,rate:$e,switch:He,transfer:it,avatar:at,message:gt,tag:yt,table:st,card:Ze,tabs:dt,timeline:At,timePicker:kt,upload:pn,notification:ln,tree:Lt,colorPicker:xt,datePicker:Rt,rangePicker:Ft,flex:hn,wave:Mt,dropdown:mt,warning:jt,tour:tn,tooltip:Cn,popover:Ln,popconfirm:cn,floatButtonGroup:Dt,variant:sn,inputNumber:Sn,treeSelect:Tn},Gr=Object.assign({},ye);Object.keys(Bi).forEach(Yt=>{Bi[Yt]!==void 0&&(Gr[Yt]=Bi[Yt])}),O.forEach(Yt=>{const Jt=z[Yt];Jt&&(Gr[Yt]=Jt)}),typeof G<"u"&&(Gr.button=Object.assign({autoInsertSpace:G},Gr.button));const Fi=(0,s.default)(()=>Gr,Gr,(Yt,Jt)=>{const sr=Object.keys(Yt),br=Object.keys(Jt);return sr.length!==br.length||sr.some(Jr=>Yt[Jr]!==Jt[Jr])}),bn=r.useMemo(()=>({prefixCls:Ar,csp:Vr}),[Ar,Vr]);let Qt=r.createElement(r.Fragment,null,r.createElement(w.default,{dropdownMatchSelectWidth:oe}),j);const Wn=r.useMemo(()=>{var Yt,Jt,sr,br;return(0,a.merge)(((Yt=h.default.Form)===null||Yt===void 0?void 0:Yt.defaultValidateMessages)||{},((sr=(Jt=Fi.locale)===null||Jt===void 0?void 0:Jt.Form)===null||sr===void 0?void 0:sr.defaultValidateMessages)||{},((br=Fi.form)===null||br===void 0?void 0:br.validateMessages)||{},(X==null?void 0:X.validateMessages)||{})},[Fi,X==null?void 0:X.validateMessages]);Object.keys(Wn).length>0&&(Qt=r.createElement(c.default.Provider,{value:Wn},Qt)),Q&&(Qt=r.createElement(u.default,{locale:Q,_ANT_MARK__:u.ANT_MARK},Qt)),(Ar||Vr)&&(Qt=r.createElement(o.default.Provider,{value:bn},Qt)),te&&(Qt=r.createElement(x.SizeContextProvider,{size:te},Qt)),Qt=r.createElement(S.default,null,Qt);const $r=r.useMemo(()=>{const Yt=Ui||{},{algorithm:Jt,token:sr,components:br,cssVar:Jr}=Yt,oi=R(Yt,["algorithm","token","components","cssVar"]),Br=Jt&&(!Array.isArray(Jt)||Jt.length>0)?(0,i.createTheme)(Jt):g.defaultTheme,Pi={};Object.entries(br||{}).forEach(rn=>{let[En,In]=rn;const jn=Object.assign({},In);"algorithm"in jn&&(jn.algorithm===!0?jn.theme=Br:(Array.isArray(jn.algorithm)||typeof jn.algorithm=="function")&&(jn.theme=(0,i.createTheme)(jn.algorithm)),delete jn.algorithm),Pi[En]=jn});const Bn=Object.assign(Object.assign({},p.default),sr);return Object.assign(Object.assign({},oi),{theme:Br,token:Bn,components:Pi,override:Object.assign({override:Bn},Pi),cssVar:Jr})},[Ui]);return ve&&(Qt=r.createElement(g.DesignTokenContext.Provider,{value:$r},Qt)),Fi.warning&&(Qt=r.createElement(l.WarningContext.Provider,{value:Fi.warning},Qt)),de!==void 0&&(Qt=r.createElement(C.DisabledContextProvider,{disabled:de},Qt)),r.createElement(m.ConfigContext.Provider,{value:Fi},Qt)},B=z=>{const j=r.useContext(m.ConfigContext),W=r.useContext(f.default);return r.createElement(N,Object.assign({parentContext:j,legacyLocale:W},z))};B.ConfigContext=m.ConfigContext,B.SizeContext=x.default,B.config=I,B.useConfig=y.default,Object.defineProperty(B,"SizeContext",{get:()=>x.default}),e.default=B})(Bt);var x7={};Object.defineProperty(x7,"__esModule",{value:!0});x7.prepareComponentToken=x7.default=void 0;var mKn=Zt;const vKn=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},htt=e=>({zIndexPopup:e.zIndexBase+10});x7.prepareComponentToken=htt;x7.default=(0,mKn.genStyleHooks)("Affix",vKn,htt);var BM={};Object.defineProperty(BM,"__esModule",{value:!0});BM.getFixedBottom=bKn;BM.getFixedTop=yKn;BM.getTargetRect=CKn;function CKn(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function yKn(e,t,n){if(n!==void 0&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function bKn(e,t,n){if(n!==void 0&&Math.round(t.bottom)<Math.round(e.bottom)+n){const r=window.innerHeight-t.bottom;return n+r}}var c9=pe.default;Object.defineProperty(EM,"__esModule",{value:!0});EM.default=void 0;var Is=c9(d),n$e=c9(St),r$e=c9(pG),SKn=c9(mi),i$e=c9(r9),wKn=Bt,xKn=c9(x7),Hv=BM;const o$e=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function EKn(){return typeof window<"u"?window:null}const s$e=0,a$e=1,RKn=Is.default.forwardRef((e,t)=>{var n;const{style:r,offsetTop:i,offsetBottom:o,prefixCls:s,className:a,rootClassName:l,children:c,target:u,onChange:f}=e,{getPrefixCls:h,getTargetContainer:g}=Is.default.useContext(wKn.ConfigContext),p=h("affix",s),[m,v]=Is.default.useState(!1),[C,y]=Is.default.useState(),[b,S]=Is.default.useState(),w=Is.default.useRef(s$e),x=Is.default.useRef(null),E=Is.default.useRef(null),R=Is.default.useRef(null),O=Is.default.useRef(null),T=Is.default.useRef(null),M=(n=u??g)!==null&&n!==void 0?n:EKn,_=o===void 0&&i===void 0?0:i,F=()=>{if(w.current!==a$e||!O.current||!R.current||!M)return;const K=M();if(K){const q={status:s$e},X=(0,Hv.getTargetRect)(R.current);if(X.top===0&&X.left===0&&X.width===0&&X.height===0)return;const Q=(0,Hv.getTargetRect)(K),te=(0,Hv.getFixedTop)(X,Q,_),ne=(0,Hv.getFixedBottom)(X,Q,o);te!==void 0?(q.affixStyle={position:"fixed",top:te,width:X.width,height:X.height},q.placeholderStyle={width:X.width,height:X.height}):ne!==void 0&&(q.affixStyle={position:"fixed",bottom:ne,width:X.width,height:X.height},q.placeholderStyle={width:X.width,height:X.height}),q.lastAffix=!!q.affixStyle,m!==q.lastAffix&&(f==null||f(q.lastAffix)),w.current=q.status,y(q.affixStyle),S(q.placeholderStyle),v(q.lastAffix)}},D=()=>{w.current=a$e,F()},k=(0,i$e.default)(()=>{D()}),L=(0,i$e.default)(()=>{if(M&&C){const K=M();if(K&&R.current){const q=(0,Hv.getTargetRect)(K),X=(0,Hv.getTargetRect)(R.current),Q=(0,Hv.getFixedTop)(X,q,_),te=(0,Hv.getFixedBottom)(X,q,o);if(Q!==void 0&&C.top===Q||te!==void 0&&C.bottom===te)return}}D()}),I=()=>{const K=M==null?void 0:M();K&&(o$e.forEach(q=>{var X;E.current&&((X=x.current)===null||X===void 0||X.removeEventListener(q,E.current)),K==null||K.addEventListener(q,L)}),x.current=K,E.current=L)},A=()=>{T.current&&(clearTimeout(T.current),T.current=null);const K=M==null?void 0:M();o$e.forEach(q=>{var X;K==null||K.removeEventListener(q,L),E.current&&((X=x.current)===null||X===void 0||X.removeEventListener(q,E.current))}),k.cancel(),L.cancel()};Is.default.useImperativeHandle(t,()=>({updatePosition:k})),Is.default.useEffect(()=>(T.current=setTimeout(I),()=>A()),[]),Is.default.useEffect(()=>{I()},[u,C]),Is.default.useEffect(()=>{k()},[u,i,o]);const[N,B,z]=(0,xKn.default)(p),j=(0,n$e.default)(l,B,p,z),W=(0,n$e.default)({[j]:C});let G=(0,SKn.default)(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return N(Is.default.createElement(r$e.default,{onResize:k},Is.default.createElement("div",Object.assign({style:r,className:a,ref:R},G),C&&Is.default.createElement("div",{style:b,"aria-hidden":"true"}),Is.default.createElement("div",{className:W,ref:O,style:C},Is.default.createElement(r$e.default,{onResize:k},c)))))});EM.default=RKn;var _G={},HM={},Ice={exports:{}},AG={},gtt={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)({}).hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(gtt);var lr=gtt.exports,r0e={};Object.defineProperty(r0e,"__esModule",{value:!0});var $Kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};r0e.default=$Kn;var cr={},ptt={exports:{}},mtt={exports:{}};(function(e){function t(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var o,s,a,l,c=[],u=!0,f=!1;try{if(a=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;u=!1}else for(;!(u=(o=a.call(i)).done)&&(c.push(o.value),c.length!==r);u=!0);}catch(h){f=!0,s=h}finally{try{if(!u&&i.return!=null&&(l=i.return(),Object(l)!==l))return}finally{if(f)throw s}}return c}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mtt);var OKn=mtt.exports;(function(e){var t=zet,n=OKn,r=z1e,i=Het;function o(s,a){return t(s)||n(s,a)||r(s,a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(ptt);var Xy=ptt.exports,vtt={exports:{}},Ctt={exports:{}};(function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.includes(o))continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ctt);var TKn=Ctt.exports;(function(e){var t=TKn;function n(r,i){if(r==null)return{};var o,s,a=t(r,i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(s=0;s<l.length;s++)o=l[s],i.includes(o)||{}.propertyIsEnumerable.call(r,o)&&(a[o]=r[o])}return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(vtt);var Qy=vtt.exports,jM={},Kl={},DG={};Object.defineProperty(DG,"__esModule",{value:!0});DG.getShadowRoot=IKn;DG.inShadow=btt;function ytt(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function btt(e){return ytt(e)instanceof ShadowRoot}function IKn(e){return btt(e)?ytt(e):null}var MKn=_e.default,LG=pe.default;Object.defineProperty(Kl,"__esModule",{value:!0});Kl.generate=Pce;Kl.getSecondaryColor=zKn;Kl.iconStyles=void 0;Kl.isIconDefinition=kKn;Kl.normalizeAttrs=Mce;Kl.normalizeTwoToneColors=BKn;Kl.useInsertStyles=Kl.svgBaseProps=void 0;Kl.warning=NKn;var pne=LG(Eu),l$e=LG(ua),PKn=Xg,_Kn=Yy,AKn=DG,DKn=LG(da),zB=MKn(d),LKn=LG(i9);function FKn(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function NKn(e,t){(0,DKn.default)(e,"[@ant-design/icons] ".concat(t))}function kKn(e){return(0,l$e.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,l$e.default)(e.icon)==="object"||typeof e.icon=="function")}function Mce(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[FKn(n)]=r}return t},{})}function Pce(e,t,n){return n?zB.default.createElement(e.tag,(0,pne.default)((0,pne.default)({key:t},Mce(e.attrs)),n),(e.children||[]).map(function(r,i){return Pce(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):zB.default.createElement(e.tag,(0,pne.default)({key:t},Mce(e.attrs)),(e.children||[]).map(function(r,i){return Pce(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function zKn(e){return(0,PKn.generate)(e)[0]}function BKn(e){return e?Array.isArray(e)?e:[e]:[]}Kl.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var HKn=Kl.iconStyles=`
|
||
.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);
|
||
}
|
||
}
|
||
`;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-.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"};s0e.default=gYn;var pYn=_e.default,a0e=pe.default;Object.defineProperty(zG,"__esModule",{value:!0});zG.default=void 0;var mYn=a0e(lr),Rtt=pYn(d),vYn=a0e(s0e),CYn=a0e(cr),yYn=function(t,n){return Rtt.createElement(CYn.default,(0,mYn.default)({},t,{ref:n,icon:vYn.default}))},bYn=Rtt.forwardRef(yYn);zG.default=bYn;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(zG);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(_ce,_ce.exports);var av=_ce.exports,Ace={exports:{}},BG={},l0e={};Object.defineProperty(l0e,"__esModule",{value:!0});var SYn={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"};l0e.default=SYn;var wYn=_e.default,c0e=pe.default;Object.defineProperty(BG,"__esModule",{value:!0});BG.default=void 0;var xYn=c0e(lr),$tt=wYn(d),EYn=c0e(l0e),RYn=c0e(cr),$Yn=function(t,n){return $tt.createElement(RYn.default,(0,xYn.default)({},t,{ref:n,icon:EYn.default}))},OYn=$tt.forwardRef($Yn);BG.default=OYn;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(BG);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Ace,Ace.exports);var Td=Ace.exports,Dce={exports:{}},HG={},u0e={};Object.defineProperty(u0e,"__esModule",{value:!0});var TYn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};u0e.default=TYn;var IYn=_e.default,d0e=pe.default;Object.defineProperty(HG,"__esModule",{value:!0});HG.default=void 0;var MYn=d0e(lr),Ott=IYn(d),PYn=d0e(u0e),_Yn=d0e(cr),AYn=function(t,n){return Ott.createElement(_Yn.default,(0,MYn.default)({},t,{ref:n,icon:PYn.default}))},DYn=Ott.forwardRef(AYn);HG.default=DYn;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(HG);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Dce,Dce.exports);var $3=Dce.exports,Lce={exports:{}},jG={},f0e={};Object.defineProperty(f0e,"__esModule",{value:!0});var LYn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};f0e.default=LYn;var FYn=_e.default,h0e=pe.default;Object.defineProperty(jG,"__esModule",{value:!0});jG.default=void 0;var NYn=h0e(lr),Ttt=FYn(d),kYn=h0e(f0e),zYn=h0e(cr),BYn=function(t,n){return Ttt.createElement(zYn.default,(0,NYn.default)({},t,{ref:n,icon:kYn.default}))},HYn=Ttt.forwardRef(BYn);jG.default=HYn;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(jG);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Lce,Lce.exports);var VG=Lce.exports,oh={},jYn=pe.default;Object.defineProperty(oh,"__esModule",{value:!0});oh.default=YYn;var VYn=jYn(Eu),GYn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
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
|
||
summary tabIndex target title type useMap value width wmode wrap`,WYn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
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
|
||
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},
|
||
padding-top ${n} ${c}, padding-bottom ${n} ${c},
|
||
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(()=>{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=Cs.useMemo(()=>{const j=p??(O==null?void 0:O.closable);return typeof j=="object"?d$e(j,["closeIcon"]):{}},[p,O==null?void 0:O.closable]);return M(Cs.createElement(bXn.default,{visible:!S,motionName:`${T}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:j=>({maxHeight:j.offsetHeight}),onLeaveEnd:h},(j,W)=>{let{className:G,style:K}=j;return Cs.createElement("div",Object.assign({id:y,ref:(0,wXn.composeRef)(x,W),"data-show":!S,className:(0,Fce.default)(A,G),style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),l),K),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},N),I?Cs.createElement(OXn,{description:n,icon:e.icon,prefixCls:T,type:k}):null,Cs.createElement("div",{className:`${T}-content`},i?Cs.createElement("div",{className:`${T}-message`},i):null,n?Cs.createElement("div",{className:`${T}-description`},n):null),C?Cs.createElement("div",{className:`${T}-action`},C):null,Cs.createElement(TXn,{isClosable:L,prefixCls:T,closeIcon:B,handleClose:D,ariaProps:z}))}))});HM.default=IXn;var WG={},Ltt={exports:{}};(function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ltt);var Ftt=Ltt.exports,Ntt={exports:{}};(function(e){var t=Fet;function n(i,o){for(var s=0;s<o.length;s++){var a=o[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,t(a.key),a)}}function r(i,o,s){return o&&n(i.prototype,o),s&&n(i,s),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Ntt);var ktt=Ntt.exports,ztt={exports:{}},Btt={exports:{}};(function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Btt);var MXn=Btt.exports,Htt={exports:{}};(function(e){function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e.exports=t=function(){return!!n},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Htt);var PXn=Htt.exports,jtt={exports:{}},Vtt={exports:{}};(function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Vtt);var _Xn=Vtt.exports;(function(e){var t=ua.default,n=_Xn;function r(i,o){if(o&&(t(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(jtt);var AXn=jtt.exports;(function(e){var t=MXn,n=PXn,r=AXn;function i(o,s,a){return s=t(s),r(o,n()?Reflect.construct(s,a||[],t(o).constructor):s.apply(o,a))}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(ztt);var DXn=ztt.exports,Gtt={exports:{}},Wtt={exports:{}};(function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Wtt);var LXn=Wtt.exports;(function(e){var t=LXn;function n(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),i&&t(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Gtt);var FXn=Gtt.exports,NXn=_e.default,VM=pe.default;Object.defineProperty(WG,"__esModule",{value:!0});WG.default=void 0;var kXn=VM(Ftt),zXn=VM(ktt),BXn=VM(DXn),HXn=VM(FXn),vne=NXn(d),jXn=VM(HM);let VXn=function(e){function t(){var n;return(0,kXn.default)(this,t),n=(0,BXn.default)(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return(0,HXn.default)(t,e),(0,zXn.default)(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:o,children:s}=this.props,{error:a,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(a||"").toString():r,f=typeof i>"u"?c:i;return a?vne.createElement(jXn.default,{id:o,type:"error",message:u,description:vne.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):s}}])}(vne.Component);WG.default=VXn;var Utt=pe.default;Object.defineProperty(_G,"__esModule",{value:!0});_G.default=void 0;var GXn=Utt(HM),WXn=Utt(WG);const qtt=GXn.default;qtt.ErrorBoundary=WXn.default;_G.default=qtt;var UG={},qG={},hl={},UXn=_e.default;Object.defineProperty(hl,"__esModule",{value:!0});hl.default=qXn;var f$e=UXn(d);function qXn(e){var t=f$e.useRef();t.current=e;var n=f$e.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}const Ktt=_r(xIt);var O3={};Object.defineProperty(O3,"__esModule",{value:!0});O3.default=void 0;O3.isWindow=Nce;function Nce(e){return e!=null&&e===e.window}const KXn=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return Nce(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Nce(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};O3.default=KXn;var u9={},m0e={};Object.defineProperty(m0e,"__esModule",{value:!0});m0e.easeInOutCubic=YXn;function YXn(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}var XXn=_e.default,QXn=pe.default;Object.defineProperty(u9,"__esModule",{value:!0});u9.default=JXn;var h$e=QXn(xu),ZXn=m0e,g$e=XXn(O3);function JXn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,o=n(),s=(0,g$e.default)(o),a=Date.now(),l=()=>{const u=Date.now()-a,f=(0,ZXn.easeInOutCubic)(u>i?i:u,s,e,i);(0,g$e.isWindow)(o)?o.scrollTo(window.pageXOffset,f):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=f:o.scrollTop=f,u<i?(0,h$e.default)(l):typeof r=="function"&&r()};(0,h$e.default)(l)}var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.default=void 0;var eQn=Zt;const tQn=e=>{const[,,,,t]=(0,eQn.useToken)();return t?`${e}-css-var`:""};Xr.default=tQn;var GM={},WM={},nQn=_e.default;Object.defineProperty(WM,"__esModule",{value:!0});WM.default=void 0;var rQn=nQn(d);const iQn=rQn.createContext(void 0);WM.default=iQn;var Ytt=pe.default,oQn=_e.default;Object.defineProperty(GM,"__esModule",{value:!0});GM.default=void 0;var sR=oQn(d),p$e=Ytt(St),sQn=Bt,aQn=Ytt(WM);const lQn=e=>{const{href:t,title:n,prefixCls:r,children:i,className:o,target:s,replace:a}=e,l=sR.useContext(aQn.default),{registerLink:c,unregisterLink:u,scrollTo:f,onClick:h,activeLink:g,direction:p}=l||{};sR.useEffect(()=>(c==null||c(t),()=>{u==null||u(t)}),[t]);const m=w=>{h==null||h(w,{title:n,href:t}),f==null||f(t),a&&(w.preventDefault(),window.location.replace(t))},{getPrefixCls:v}=sR.useContext(sQn.ConfigContext),C=v("anchor",r),y=g===t,b=(0,p$e.default)(`${C}-link`,o,{[`${C}-link-active`]:y}),S=(0,p$e.default)(`${C}-link-title`,{[`${C}-link-title-active`]:y});return sR.createElement("div",{className:b},sR.createElement("a",{className:S,href:t,title:typeof n=="string"?n:"",target:s,onClick:m},n),p!=="horizontal"?i:null)};GM.default=lQn;var E7={};Object.defineProperty(E7,"__esModule",{value:!0});E7.prepareComponentToken=E7.default=void 0;var kce=Kt,m$e=gn,v$e=Zt;const cQn=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:i,colorPrimary:o,lineType:s,colorSplit:a,calc:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:l(n).mul(-1).equal(),paddingBlockStart:n,[t]:Object.assign(Object.assign({},(0,m$e.resetComponent)(e)),{position:"relative",paddingInlineStart:i,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${(0,kce.unit)(e.linkPaddingInlineStart)} 0`,"&-title":Object.assign(Object.assign({},m$e.textEllipsis),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${(0,kce.unit)(i)} ${s} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:i,backgroundColor:o,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},uQn=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:i}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${(0,kce.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:r,backgroundColor:i}}}}},Xtt=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding});E7.prepareComponentToken=Xtt;E7.default=(0,v$e.genStyleHooks)("Anchor",e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:r,calc:i}=e,o=(0,v$e.mergeToken)(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:i(r).div(2).equal(),anchorTitleBlock:i(t).div(14).mul(3).equal(),anchorBallSize:i(n).div(2).equal()});return[cQn(o),uQn(o)]},Xtt);var dQn=_e.default,Zg=pe.default;Object.defineProperty(qG,"__esModule",{value:!0});qG.default=void 0;var fQn=Zg(zr),Xs=dQn(d),Cne=Zg(St),yne=Zg(hl),hQn=Zg(Ktt),gQn=Zg(O3),pQn=Zg(u9),mQn=Zg(EM),vQn=Bt,CQn=Zg(Xr),yQn=Zg(GM),bQn=Zg(WM),SQn=Zg(E7);function wQn(){return window}function C$e(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top}const y$e=/#([\S ]+)$/,xQn=e=>{var t;const{rootClassName:n,prefixCls:r,className:i,style:o,offsetTop:s,affix:a=!0,showInkInFixed:l=!1,children:c,items:u,direction:f="vertical",bounds:h,targetOffset:g,onClick:p,onChange:m,getContainer:v,getCurrentAnchor:C,replace:y}=e,[b,S]=Xs.useState([]),[w,x]=Xs.useState(null),E=Xs.useRef(w),R=Xs.useRef(null),O=Xs.useRef(null),T=Xs.useRef(!1),{direction:M,anchor:_,getTargetContainer:F,getPrefixCls:D}=Xs.useContext(vQn.ConfigContext),k=D("anchor",r),L=(0,CQn.default)(k),[I,A,N]=(0,SQn.default)(k,L),B=(t=v??F)!==null&&t!==void 0?t:wQn,z=JSON.stringify(b),j=(0,yne.default)(he=>{b.includes(he)||S(ye=>[].concat((0,fQn.default)(ye),[he]))}),W=(0,yne.default)(he=>{b.includes(he)&&S(ye=>ye.filter(ue=>ue!==he))}),G=()=>{var he;const ye=(he=R.current)===null||he===void 0?void 0:he.querySelector(`.${k}-link-title-active`);if(ye&&O.current){const{style:ue}=O.current,ve=f==="horizontal";ue.top=ve?"":`${ye.offsetTop+ye.clientHeight/2}px`,ue.height=ve?"":`${ye.clientHeight}px`,ue.left=ve?`${ye.offsetLeft}px`:"",ue.width=ve?`${ye.clientWidth}px`:"",ve&&(0,hQn.default)(ye,{scrollMode:"if-needed",block:"nearest"})}},K=function(he){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;const ve=[],de=B();return he.forEach(xe=>{const Ee=y$e.exec(xe==null?void 0:xe.toString());if(!Ee)return;const De=document.getElementById(Ee[1]);if(De){const Be=C$e(De,de);Be<=ye+ue&&ve.push({link:xe,top:Be})}}),ve.length?ve.reduce((Ee,De)=>De.top>Ee.top?De:Ee).link:""},q=(0,yne.default)(he=>{if(E.current===he)return;const ye=typeof C=="function"?C(he):he;x(ye),E.current=ye,m==null||m(he)}),X=Xs.useCallback(()=>{if(T.current)return;const he=K(b,g!==void 0?g:s||0,h);q(he)},[z,g,s]),Q=Xs.useCallback(he=>{q(he);const ye=y$e.exec(he);if(!ye)return;const ue=document.getElementById(ye[1]);if(!ue)return;const ve=B(),de=(0,gQn.default)(ve),xe=C$e(ue,ve);let Ee=de+xe;Ee-=g!==void 0?g:s||0,T.current=!0,(0,pQn.default)(Ee,{getContainer:B,callback(){T.current=!1}})},[g,s]),te=(0,Cne.default)(A,N,L,n,`${k}-wrapper`,{[`${k}-wrapper-horizontal`]:f==="horizontal",[`${k}-rtl`]:M==="rtl"},i,_==null?void 0:_.className),ne=(0,Cne.default)(k,{[`${k}-fixed`]:!a&&!l}),Z=(0,Cne.default)(`${k}-ink`,{[`${k}-ink-visible`]:w}),ee=Object.assign(Object.assign({maxHeight:s?`calc(100vh - ${s}px)`:"100vh"},_==null?void 0:_.style),o),J=he=>Array.isArray(he)?he.map(ye=>Xs.createElement(yQn.default,Object.assign({replace:y},ye,{key:ye.key}),f==="vertical"&&J(ye.children))):null,oe=Xs.createElement("div",{ref:R,className:te,style:ee},Xs.createElement("div",{className:ne},Xs.createElement("span",{className:Z,ref:O}),"items"in e?J(u):c));Xs.useEffect(()=>{const he=B();return X(),he==null||he.addEventListener("scroll",X),()=>{he==null||he.removeEventListener("scroll",X)}},[z]),Xs.useEffect(()=>{typeof C=="function"&&q(C(E.current||""))},[C]),Xs.useEffect(()=>{G()},[f,C,z,w]);const le=Xs.useMemo(()=>({registerLink:j,unregisterLink:W,scrollTo:Q,activeLink:w,onClick:p,direction:f}),[w,p,Q,f]),ge=a&&typeof a=="object"?a:void 0;return I(Xs.createElement(bQn.default.Provider,{value:le},a?Xs.createElement(mQn.default,Object.assign({offsetTop:s,target:B},ge),oe):oe))};qG.default=xQn;var Qtt=pe.default;Object.defineProperty(UG,"__esModule",{value:!0});UG.default=void 0;var EQn=Qtt(qG),RQn=Qtt(GM);const Ztt=EQn.default;Ztt.Link=RQn.default;UG.default=Ztt;var KG={},UM={};const YG=_r(PIt);var C0={},zce={exports:{}},XG={},v0e={};Object.defineProperty(v0e,"__esModule",{value:!0});var $Qn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};v0e.default=$Qn;var OQn=_e.default,C0e=pe.default;Object.defineProperty(XG,"__esModule",{value:!0});XG.default=void 0;var TQn=C0e(lr),Jtt=OQn(d),IQn=C0e(v0e),MQn=C0e(cr),PQn=function(t,n){return Jtt.createElement(MQn.default,(0,TQn.default)({},t,{ref:n,icon:IQn.default}))},_Qn=Jtt.forwardRef(PQn);XG.default=_Qn;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(XG);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(zce,zce.exports);var Jg=zce.exports,qC={},ho={},cv={},AQn=pe.default;Object.defineProperty(cv,"__esModule",{value:!0});cv.default=void 0;var DQn=AQn(d);const LQn=DQn.default.createContext(void 0);cv.default=LQn;var y0e=pe.default;Object.defineProperty(ho,"__esModule",{value:!0});ho.useZIndex=ho.containerBaseZIndexOffset=ho.consumerBaseZIndexOffset=ho.CONTAINER_MAX_OFFSET=void 0;var FQn=y0e(d),NQn=y0e(mu),kQn=y0e(cv);const m2=100,zQn=10;ho.CONTAINER_MAX_OFFSET=m2*zQn;const ent=ho.containerBaseZIndexOffset={Modal:m2,Drawer:m2,Popover:m2,Popconfirm:m2,Tooltip:m2,Tour:m2,FloatButton:m2},BQn=ho.consumerBaseZIndexOffset={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function HQn(e){return e in ent}const jQn=(e,t)=>{const[,n]=(0,NQn.default)(),r=FQn.default.useContext(kQn.default),i=HQn(e);let o;if(t!==void 0)o=[t,t];else{let s=r??0;i?s+=(r?0:n.zIndexPopupBase)+ent[e]:s+=BQn[e],o=[r===void 0?t:s,s]}return o};ho.useZIndex=jQn;Object.defineProperty(qC,"__esModule",{value:!0});qC.prepareComponentToken=qC.default=void 0;var b$e=Kt,VQn=ho,GQn=gn,S$e=Zt;const WQn=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:s,colorWarning:a,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:h,paddingXS:g,borderRadiusLG:p,zIndexPopup:m,contentPadding:v,contentBg:C}=e,y=`${t}-notice`,b=new b$e.Keyframes("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new b$e.Keyframes("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:v,background:C,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:a},[`${t}-info > ${n},
|
||
${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"},[`
|
||
${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
|
||
`]:{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,renderNotifications:CZn});return og.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:p,message:h})),S});let w$e=0;function snt(e){const t=og.useRef(null);return(0,cZn.devUseWarning)("Message"),[og.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=gZn(l,["content","icon","type","key","className","style","onClose"]);let w=v;return w==null&&(w$e+=1,w=`antd-message-${w$e}`),(0,ont.wrapPromiseFn)(x=>(c(Object.assign(Object.assign({},S),{key:w,content:og.createElement(fZn.PureContent,{prefixCls:u,type:m,icon:p},g),placement:"top",className:(0,b0e.default)(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.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,h)=>{let g;u&&typeof u=="object"&&"content"in u?g=u:g={content:u};let p,m;typeof f=="function"?m=f:(p=f,m=h);const v=Object.assign(Object.assign({onClose:m,duration:p},g),{type:l});return i(v)};s[l]=c}),s},[]),og.createElement(yZn,Object.assign({key:"message-holder"},e,{ref:t}))]}function bZn(e){return snt(e)}var KM={},S0e={},SZn=_e.default,wZn=pe.default;Object.defineProperty(S0e,"__esModule",{value:!0});S0e.default=EZn;var xZn=wZn(zr),x$e=SZn(d);function EZn(){const[e,t]=x$e.useState([]),n=x$e.useCallback(r=>(t(i=>[].concat((0,xZn.default)(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]}var Um={},I3={},d9={},ant={exports:{}};(function(e){var t=ua.default;function n(){e.exports=n=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var r,i={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(N,B,z){N[B]=z.value},l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function h(N,B,z){return Object.defineProperty(N,B,{value:z,enumerable:!0,configurable:!0,writable:!0}),N[B]}try{h({},"")}catch{h=function(z,j,W){return z[j]=W}}function g(N,B,z,j){var W=B&&B.prototype instanceof S?B:S,G=Object.create(W.prototype),K=new I(j||[]);return a(G,"_invoke",{value:F(N,z,K)}),G}function p(N,B,z){try{return{type:"normal",arg:N.call(B,z)}}catch(j){return{type:"throw",arg:j}}}i.wrap=g;var m="suspendedStart",v="suspendedYield",C="executing",y="completed",b={};function S(){}function w(){}function x(){}var E={};h(E,c,function(){return this});var R=Object.getPrototypeOf,O=R&&R(R(A([])));O&&O!==o&&s.call(O,c)&&(E=O);var T=x.prototype=S.prototype=Object.create(E);function M(N){["next","throw","return"].forEach(function(B){h(N,B,function(z){return this._invoke(B,z)})})}function _(N,B){function z(W,G,K,q){var X=p(N[W],N,G);if(X.type!=="throw"){var Q=X.arg,te=Q.value;return te&&t(te)=="object"&&s.call(te,"__await")?B.resolve(te.__await).then(function(ne){z("next",ne,K,q)},function(ne){z("throw",ne,K,q)}):B.resolve(te).then(function(ne){Q.value=ne,K(Q)},function(ne){return z("throw",ne,K,q)})}q(X.arg)}var j;a(this,"_invoke",{value:function(G,K){function q(){return new B(function(X,Q){z(G,K,X,Q)})}return j=j?j.then(q,q):q()}})}function F(N,B,z){var j=m;return function(W,G){if(j===C)throw Error("Generator is already running");if(j===y){if(W==="throw")throw G;return{value:r,done:!0}}for(z.method=W,z.arg=G;;){var K=z.delegate;if(K){var q=D(K,z);if(q){if(q===b)continue;return q}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(j===m)throw j=y,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);j=C;var X=p(N,B,z);if(X.type==="normal"){if(j=z.done?y:v,X.arg===b)continue;return{value:X.arg,done:z.done}}X.type==="throw"&&(j=y,z.method="throw",z.arg=X.arg)}}}function D(N,B){var z=B.method,j=N.iterator[z];if(j===r)return B.delegate=null,z==="throw"&&N.iterator.return&&(B.method="return",B.arg=r,D(N,B),B.method==="throw")||z!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+z+"' method")),b;var W=p(j,N.iterator,B.arg);if(W.type==="throw")return B.method="throw",B.arg=W.arg,B.delegate=null,b;var G=W.arg;return G?G.done?(B[N.resultName]=G.value,B.next=N.nextLoc,B.method!=="return"&&(B.method="next",B.arg=r),B.delegate=null,b):G:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,b)}function k(N){var B={tryLoc:N[0]};1 in N&&(B.catchLoc=N[1]),2 in N&&(B.finallyLoc=N[2],B.afterLoc=N[3]),this.tryEntries.push(B)}function L(N){var B=N.completion||{};B.type="normal",delete B.arg,N.completion=B}function I(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(k,this),this.reset(!0)}function A(N){if(N||N===""){var B=N[c];if(B)return B.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var z=-1,j=function W(){for(;++z<N.length;)if(s.call(N,z))return W.value=N[z],W.done=!1,W;return W.value=r,W.done=!0,W};return j.next=j}}throw new TypeError(t(N)+" is not iterable")}return w.prototype=x,a(T,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=h(x,f,"GeneratorFunction"),i.isGeneratorFunction=function(N){var B=typeof N=="function"&&N.constructor;return!!B&&(B===w||(B.displayName||B.name)==="GeneratorFunction")},i.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,x):(N.__proto__=x,h(N,f,"GeneratorFunction")),N.prototype=Object.create(T),N},i.awrap=function(N){return{__await:N}},M(_.prototype),h(_.prototype,u,function(){return this}),i.AsyncIterator=_,i.async=function(N,B,z,j,W){W===void 0&&(W=Promise);var G=new _(g(N,B,z,j),W);return i.isGeneratorFunction(B)?G:G.next().then(function(K){return K.done?K.value:G.next()})},M(T),h(T,f,"Generator"),h(T,c,function(){return this}),h(T,"toString",function(){return"[object Generator]"}),i.keys=function(N){var B=Object(N),z=[];for(var j in B)z.push(j);return z.reverse(),function W(){for(;z.length;){var G=z.pop();if(G in B)return W.value=G,W.done=!1,W}return W.done=!0,W}},i.values=A,I.prototype={constructor:I,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(L),!B)for(var z in this)z.charAt(0)==="t"&&s.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=r)},stop:function(){this.done=!0;var B=this.tryEntries[0].completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var z=this;function j(Q,te){return K.type="throw",K.arg=B,z.next=Q,te&&(z.method="next",z.arg=r),!!te}for(var W=this.tryEntries.length-1;W>=0;--W){var G=this.tryEntries[W],K=G.completion;if(G.tryLoc==="root")return j("end");if(G.tryLoc<=this.prev){var q=s.call(G,"catchLoc"),X=s.call(G,"finallyLoc");if(q&&X){if(this.prev<G.catchLoc)return j(G.catchLoc,!0);if(this.prev<G.finallyLoc)return j(G.finallyLoc)}else if(q){if(this.prev<G.catchLoc)return j(G.catchLoc,!0)}else{if(!X)throw Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return j(G.finallyLoc)}}}},abrupt:function(B,z){for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j];if(W.tryLoc<=this.prev&&s.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var G=W;break}}G&&(B==="break"||B==="continue")&&G.tryLoc<=z&&z<=G.finallyLoc&&(G=null);var K=G?G.completion:{};return K.type=B,K.arg=z,G?(this.method="next",this.next=G.finallyLoc,b):this.complete(K)},complete:function(B,z){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&z&&(this.next=z),b},finish:function(B){for(var z=this.tryEntries.length-1;z>=0;--z){var j=this.tryEntries[z];if(j.finallyLoc===B)return this.complete(j.completion,j.afterLoc),L(j),b}},catch:function(B){for(var z=this.tryEntries.length-1;z>=0;--z){var j=this.tryEntries[z];if(j.tryLoc===B){var W=j.completion;if(W.type==="throw"){var G=W.arg;L(j)}return G}}throw Error("illegal catch attempt")},delegateYield:function(B,z,j){return this.delegate={iterator:A(B),resultName:z,nextLoc:j},this.method==="next"&&(this.arg=r),b}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(ant);var RZn=ant.exports,lnt={exports:{}};(function(e){function t(r,i,o,s,a,l,c){try{var u=r[l](c),f=u.value}catch(h){return void o(h)}u.done?i(f):Promise.resolve(f).then(s,a)}function n(r){return function(){var i=this,o=arguments;return new Promise(function(s,a){var l=r.apply(i,o);function c(f){t(l,s,a,c,u,"next",f)}function u(f){t(l,s,a,c,u,"throw",f)}c(void 0)})}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(lnt);var $Zn=lnt.exports,OZn=_e.default,ZG=pe.default;Object.defineProperty(d9,"__esModule",{value:!0});d9._r=FZn;d9._u=BZn;d9.render=NZn;d9.unmount=HZn;var HB=ZG(RZn),cnt=ZG($Zn),TZn=ZG(ua),IZn=ZG(Eu),MZn=OZn(fo),YM=(0,IZn.default)({},MZn),PZn=YM.version,bne=YM.render,_Zn=YM.unmountComponentAtNode,JG;try{var AZn=Number((PZn||"").split(".")[0]);AZn>=18&&(JG=YM.createRoot)}catch{}function E$e(e){var t=YM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&(0,TZn.default)(t)==="object"&&(t.usingClientEntryPoint=e)}var jB="__rc_react_root__";function DZn(e,t){E$e(!0);var n=t[jB]||JG(t);E$e(!1),n.render(e),t[jB]=n}function LZn(e,t){bne==null||bne(e,t)}function FZn(e,t){}function NZn(e,t){if(JG){DZn(e,t);return}LZn(e,t)}function kZn(e){return Bce.apply(this,arguments)}function Bce(){return Bce=(0,cnt.default)((0,HB.default)().mark(function e(t){return(0,HB.default)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[jB])===null||i===void 0||i.unmount(),delete t[jB]}));case 1:case"end":return r.stop()}},e)})),Bce.apply(this,arguments)}function zZn(e){_Zn(e)}function BZn(e){}function HZn(e){return Hce.apply(this,arguments)}function Hce(){return Hce=(0,cnt.default)((0,HB.default)().mark(function e(t){return(0,HB.default)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(JG===void 0){r.next=2;break}return r.abrupt("return",kZn(t));case 2:zZn(t);case 3:case"end":return r.stop()}},e)})),Hce.apply(this,arguments)}var jZn=pe.default,unt=_e.default;Object.defineProperty(I3,"__esModule",{value:!0});I3.getReactRender=WZn;I3.unstableSetRender=GZn;unt(d);unt(fo);var R$e=d9;jZn(Lo);const VZn=(e,t)=>((0,R$e.render)(e,t),()=>(0,R$e.unmount)(t));let dnt=VZn;function GZn(e){dnt=e}function WZn(){return dnt}var eb={},$s={};Object.defineProperty($s,"__esModule",{value:!0});$s.getTransitionName=$s.default=void 0;var UZn=Bt;const Sne=()=>({height:0,opacity:0}),$$e=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},qZn=e=>({height:e?e.offsetHeight:0}),wne=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",KZn=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:UZn.defaultPrefixCls}-motion-collapse`,onAppearStart:Sne,onEnterStart:Sne,onAppearActive:$$e,onEnterActive:$$e,onLeaveStart:qZn,onLeaveActive:Sne,onAppearEnd:wne,onEnterEnd:wne,onLeaveEnd:wne,motionDeadline:500}},YZn=(e,t,n)=>n!==void 0?n:`${e}-${t}`;$s.getTransitionName=YZn;$s.default=KZn;var eW={},f9={},XM={},XZn=_e.default,QZn=pe.default;Object.defineProperty(XM,"__esModule",{value:!0});XM.default=JZn;var ZZn=QZn(Xy),xne=XZn(d);function JZn(e){var t=xne.useRef(!1),n=xne.useState(e),r=(0,ZZn.default)(n,2),i=r[0],o=r[1];xne.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(a,l){l&&t.current||o(a)}return[i,s]}var Ru={},tW={},M3={},QM={};Object.defineProperty(QM,"__esModule",{value:!0});QM.default=void 0;QM.default=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var n=t.getBBox(),r=n.width,i=n.height;if(r||i)return!0}if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),s=o.width,a=o.height;if(s||a)return!0}}return!1};var nW={};Object.defineProperty(nW,"__esModule",{value:!0});nW.default=void 0;var eJn=Zt;const tJn=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};nW.default=(0,eJn.genComponentStyleHook)("Wave",e=>[tJn(e)]);var rW={},tb={};Object.defineProperty(tb,"__esModule",{value:!0});tb.TARGET_CLS=void 0;var nJn=Bt;tb.TARGET_CLS=`${nJn.defaultPrefixCls}-wave-target`;var iW={},oW={};Object.defineProperty(oW,"__esModule",{value:!0});oW.getTargetWaveColor=rJn;oW.isValidWaveColor=zN;function zN(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function rJn(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return zN(t)?t:zN(n)?n:zN(r)?r:null}var w0e=pe.default,iJn=_e.default;Object.defineProperty(iW,"__esModule",{value:!0});iW.default=void 0;var Vc=iJn(d),oJn=w0e(St),sJn=w0e(Qg),O$e=w0e(xu),aJn=Vi,lJn=I3,cJn=tb,uJn=oW;function Ene(e){return Number.isNaN(e)?0:e}const dJn=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,o=Vc.useRef(null),s=Vc.useRef(null);Vc.useEffect(()=>{s.current=i()},[]);const[a,l]=Vc.useState(null),[c,u]=Vc.useState([]),[f,h]=Vc.useState(0),[g,p]=Vc.useState(0),[m,v]=Vc.useState(0),[C,y]=Vc.useState(0),[b,S]=Vc.useState(!1),w={left:f,top:g,width:m,height:C,borderRadius:c.map(R=>`${R}px`).join(" ")};a&&(w["--wave-color"]=a);function x(){const R=getComputedStyle(n);l((0,uJn.getTargetWaveColor)(n));const O=R.position==="static",{borderLeftWidth:T,borderTopWidth:M}=R;h(O?n.offsetLeft:Ene(-parseFloat(T))),p(O?n.offsetTop:Ene(-parseFloat(M))),v(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:F,borderBottomLeftRadius:D,borderBottomRightRadius:k}=R;u([_,F,k,D].map(L=>Ene(parseFloat(L))))}if(Vc.useEffect(()=>{if(n){const R=(0,O$e.default)(()=>{x(),S(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(x),O.observe(n)),()=>{O$e.default.cancel(R),O==null||O.disconnect()}}},[]),!b)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(cJn.TARGET_CLS));return Vc.createElement(sJn.default,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,O)=>{var T,M;if(O.deadline||O.propertyName==="opacity"){const _=(T=o.current)===null||T===void 0?void 0:T.parentElement;(M=s.current)===null||M===void 0||M.call(s).then(()=>{_==null||_.remove()})}return!1}},(R,O)=>{let{className:T}=R;return Vc.createElement("div",{ref:(0,aJn.composeRef)(o,O),className:(0,oJn.default)(t,T,{"wave-quick":E}),style:w})})},fJn=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const o=(0,lJn.getReactRender)();let s=null;function a(){return s}s=o(Vc.createElement(dJn,Object.assign({},t,{target:e,registerUnmount:a})),i)};iW.default=fJn;var sW=pe.default,hJn=_e.default;Object.defineProperty(rW,"__esModule",{value:!0});rW.default=void 0;var T$e=hJn(d),gJn=sW(hl),I$e=sW(xu),pJn=Bt,mJn=sW(mu),vJn=tb,CJn=sW(iW);const yJn=(e,t,n)=>{const{wave:r}=T$e.useContext(pJn.ConfigContext),[,i,o]=(0,mJn.default)(),s=(0,gJn.default)(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${vJn.TARGET_CLS}`)||u,{showEffect:h}=r||{};(h||CJn.default)(f,{className:t,token:i,component:n,event:c,hashId:o})}),a=T$e.useRef(null);return c=>{I$e.default.cancel(a.current),a.current=(0,I$e.default)(()=>{s(c)})}};rW.default=yJn;var aW=pe.default,bJn=_e.default;Object.defineProperty(M3,"__esModule",{value:!0});M3.default=void 0;var sL=bJn(d),SJn=aW(St),wJn=aW(QM),Rne=Vi,xJn=Bt,EJn=Xi,RJn=aW(nW),$Jn=aW(rW);const OJn=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=(0,sL.useContext)(xJn.ConfigContext),o=(0,sL.useRef)(null),s=i("wave"),[,a]=(0,RJn.default)(s),l=(0,$Jn.default)(o,(0,SJn.default)(s,a),r);if(sL.default.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const f=h=>{!(0,wJn.default)(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!sL.default.isValidElement(t))return t??null;const c=(0,Rne.supportRef)(t)?(0,Rne.composeRef)((0,Rne.getNodeRef)(t),o):o;return(0,EJn.cloneElement)(t,{ref:c})};M3.default=OJn;var io={},fnt=pe.default;Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var M$e=fnt(d),TJn=fnt(z0);const IJn=e=>{const t=M$e.default.useContext(TJn.default);return M$e.default.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])};io.default=IJn;var ds={},qs={},hnt=pe.default;Object.defineProperty(qs,"__esModule",{value:!0});qs.default=jce;var MJn=hnt(GG),PJn=hnt(d);function jce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return PJn.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(jce(r)):(0,MJn.default)(r)&&r.props?n=n.concat(jce(r.props.children,t)):n.push(r))}),n}var KC={},lW={};Object.defineProperty(lW,"__esModule",{value:!0});lW.default=void 0;const _Jn=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};lW.default=_Jn;var AJn=pe.default;Object.defineProperty(KC,"__esModule",{value:!0});KC.prepareComponentToken=KC.default=void 0;var P$e=Zt,DJn=AJn(lW);const LJn=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},FJn=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},NJn=()=>({});KC.prepareComponentToken=NJn;KC.default=(0,P$e.genStyleHooks)("Space",e=>{const t=(0,P$e.mergeToken)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[LJn(t),FJn(t),(0,DJn.default)(t)]},()=>({}),{resetStyle:!1});var cW=pe.default,kJn=_e.default;Object.defineProperty(ds,"__esModule",{value:!0});ds.useCompactItemContext=ds.default=ds.SpaceCompactItemContext=ds.NoCompactStyle=void 0;var qp=kJn(d),gnt=cW(St),zJn=cW(qs),BJn=Bt,HJn=cW(io),jJn=cW(KC),pnt=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 uW=ds.SpaceCompactItemContext=qp.createContext(null),VJn=(e,t)=>{const n=qp.useContext(uW),r=qp.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:s}=n,a=i==="vertical"?"-vertical-":"-";return(0,gnt.default)(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:s,[`${e}-compact${a}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}};ds.useCompactItemContext=VJn;const GJn=e=>{let{children:t}=e;return qp.createElement(uW.Provider,{value:null},t)};ds.NoCompactStyle=GJn;const WJn=e=>{var{children:t}=e,n=pnt(e,["children"]);return qp.createElement(uW.Provider,{value:n},t)},UJn=e=>{const{getPrefixCls:t,direction:n}=qp.useContext(BJn.ConfigContext),{size:r,direction:i,block:o,prefixCls:s,className:a,rootClassName:l,children:c}=e,u=pnt(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=(0,HJn.default)(b=>r??b),h=t("space-compact",s),[g,p]=(0,jJn.default)(h),m=(0,gnt.default)(h,p,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:o,[`${h}-vertical`]:i==="vertical"},a,l),v=qp.useContext(uW),C=(0,zJn.default)(c),y=qp.useMemo(()=>C.map((b,S)=>{const w=(b==null?void 0:b.key)||`${h}-item-${S}`;return qp.createElement(WJn,{key:w,compactSize:f,compactDirection:i,isFirstItem:S===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:S===C.length-1&&(!v||(v==null?void 0:v.isLastItem))},b)}),[r,C,v]);return C.length===0?null:g(qp.createElement("div",Object.assign({className:m},u),y))};ds.default=UJn;var R7={},qJn=pe.default,KJn=_e.default;Object.defineProperty(R7,"__esModule",{value:!0});R7.default=R7.GroupSizeContext=void 0;var BN=KJn(d),YJn=qJn(St),XJn=Bt,QJn=Zt,ZJn=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 JJn=R7.GroupSizeContext=BN.createContext(void 0),eer=e=>{const{getPrefixCls:t,direction:n}=BN.useContext(XJn.ConfigContext),{prefixCls:r,size:i,className:o}=e,s=ZJn(e,["prefixCls","size","className"]),a=t("btn-group",r),[,,l]=(0,QJn.useToken)();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=(0,YJn.default)(a,{[`${a}-${c}`]:c,[`${a}-rtl`]:n==="rtl"},o,l);return BN.createElement(JJn.Provider,{value:i},BN.createElement("div",Object.assign({},s,{className:u})))};R7.default=eer;var Yl={},mnt=pe.default;Object.defineProperty(Yl,"__esModule",{value:!0});Yl._ButtonVariantTypes=Yl._ButtonColorTypes=void 0;Yl.convertLegacyProps=rer;Yl.isString=Vce;Yl.isTwoCNChar=void 0;Yl.isUnBorderedButtonVariant=ier;Yl.spaceChildren=ser;var ter=mnt(zr),oO=mnt(d),_$e=Xi,ner=l9;const A$e=/^[\u4E00-\u9FA5]{2}$/,D$e=Yl.isTwoCNChar=A$e.test.bind(A$e);function rer(e){return e==="danger"?{danger:!0}:{type:e}}function Vce(e){return typeof e=="string"}function ier(e){return e==="text"||e==="link"}function oer(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Vce(e.type)&&D$e(e.props.children)?(0,_$e.cloneElement)(e,{children:e.props.children.split("").join(n)}):Vce(e)?D$e(e)?oO.default.createElement("span",null,e.split("").join(n)):oO.default.createElement("span",null,e):(0,_$e.isFragment)(e)?oO.default.createElement("span",null,e):e}function ser(e,t){let n=!1;const r=[];return oO.default.Children.forEach(e,i=>{const o=typeof i,s=o==="string"||o==="number";if(n&&s){const a=r.length-1,l=r[a];r[a]=`${l}${i}`}else r.push(i);n=s}),oO.default.Children.map(r,i=>oer(i,t))}Yl._ButtonVariantTypes=["outlined","dashed","solid","filled","text","link"];Yl._ButtonColorTypes=["default","primary","danger"].concat((0,ter.default)(ner.PresetColors));var ZM={},aer=pe.default,ler=_e.default;Object.defineProperty(ZM,"__esModule",{value:!0});ZM.default=void 0;var L$e=ler(d),cer=aer(St);const uer=(0,L$e.forwardRef)((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,s=(0,cer.default)(`${o}-icon`,n);return L$e.default.createElement("span",{ref:t,className:s,style:r},i)});ZM.default=uer;var dW={},fW=pe.default,der=_e.default;Object.defineProperty(dW,"__esModule",{value:!0});dW.default=void 0;var nw=der(d),fer=fW(Jg),vnt=fW(St),her=fW(Qg),ger=fW(ZM);const F$e=(0,nw.forwardRef)((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,s=(0,vnt.default)(`${n}-loading-icon`,r);return nw.default.createElement(ger.default,{prefixCls:n,className:s,style:i,ref:t},nw.default.createElement(fer.default,{className:o}))}),$ne=()=>({width:0,opacity:0,transform:"scale(0)"}),One=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),per=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:s}=e,a=!!n;return r?nw.default.createElement(F$e,{prefixCls:t,className:i,style:o}):nw.default.createElement(her.default,{visible:a,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:$ne,onAppearActive:One,onEnterStart:$ne,onEnterActive:One,onLeaveStart:One,onLeaveActive:$ne},(l,c)=>{let{className:u,style:f}=l;const h=Object.assign(Object.assign({},o),f);return nw.default.createElement(F$e,{prefixCls:t,className:(0,vnt.default)(i,u),style:h,ref:c})})};dW.default=per;var hW={},gW={};Object.defineProperty(gW,"__esModule",{value:!0});gW.default=void 0;const N$e=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),mer=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},N$e(`${t}-primary`,i),N$e(`${t}-danger`,o)]}};gW.default=mer;var YC={},hd={};const JM=_r(zMt);var Cnt=pe.default;Object.defineProperty(hd,"__esModule",{value:!0});hd.toHexFormat=hd.getHex=hd.AggregationColor=void 0;var ver=Cnt(Ftt),Cer=Cnt(ktt),k$e=JM;const ynt=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"";hd.toHexFormat=ynt;const bnt=(e,t)=>e?ynt(e,t):"";hd.getHex=bnt;hd.AggregationColor=function(){function e(t){(0,ver.default)(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:s}=i;return{color:new e(o),percent:s}}),this.metaColor=new k$e.Color(this.colors[0].color.metaColor)):this.metaColor=new k$e.Color(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return(0,Cer.default)(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return bnt(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var XC={},fa={},Sd={},yer=pe.default,ber=_e.default;Object.defineProperty(Sd,"__esModule",{value:!0});Sd.useLayoutUpdateEffect=Sd.default=void 0;var Gce=ber(d),Ser=yer(Ky),z$e=(0,Ser.default)()?Gce.useLayoutEffect:Gce.useEffect,Snt=function(t,n){var r=Gce.useRef(!0);z$e(function(){return t(r.current)},n),z$e(function(){return r.current=!1,function(){r.current=!0}},[])};Sd.useLayoutUpdateEffect=function(t,n){Snt(function(r){if(!r)return t()},n)};Sd.default=Snt;var x0e=pe.default;Object.defineProperty(fa,"__esModule",{value:!0});fa.default=wer;var B$e=x0e(Xy),H$e=x0e(hl),j$e=Sd,V$e=x0e(XM);function Tne(e){return e!==void 0}function wer(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,s=n.postState,a=(0,V$e.default)(function(){return Tne(i)?i:Tne(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=(0,B$e.default)(a,2),c=l[0],u=l[1],f=i!==void 0?i:c,h=s?s(f):f,g=(0,H$e.default)(o),p=(0,V$e.default)([f]),m=(0,B$e.default)(p,2),v=m[0],C=m[1];(0,j$e.useLayoutUpdateEffect)(function(){var b=v[0];c!==b&&g(c,b)},[v]),(0,j$e.useLayoutUpdateEffect)(function(){Tne(i)||u(i)},[i]);var y=(0,H$e.default)(function(b,S){u(b,S),C([f],S)});return[h,y]}var eP={},pW={},Wce={exports:{}},mW={},E0e={};Object.defineProperty(E0e,"__esModule",{value:!0});var xer={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};E0e.default=xer;var Eer=_e.default,R0e=pe.default;Object.defineProperty(mW,"__esModule",{value:!0});mW.default=void 0;var Rer=R0e(lr),wnt=Eer(d),$er=R0e(E0e),Oer=R0e(cr),Ter=function(t,n){return wnt.createElement(Oer.default,(0,Rer.default)({},t,{ref:n,icon:$er.default}))},Ier=wnt.forwardRef(Ter);mW.default=Ier;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(mW);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Wce,Wce.exports);var P3=Wce.exports;const xnt=_r(JMt);var vW={},Ent=pe.default,Mer=_e.default;Object.defineProperty(vW,"__esModule",{value:!0});vW.default=void 0;var Ine=Mer(d),Per=Ent(St),_er=Ent(xnt),Aer=Bt;const Der=Ine.forwardRef((e,t)=>{const{getPrefixCls:n}=Ine.useContext(Aer.ConfigContext),{prefixCls:r,className:i,showArrow:o=!0}=e,s=n("collapse",r),a=(0,Per.default)({[`${s}-no-arrow`]:!o},i);return Ine.createElement(_er.default.Panel,Object.assign({ref:t},e,{prefixCls:s,className:a}))});vW.default=Der;var S4={},Rc={},CW={};Object.defineProperty(CW,"__esModule",{value:!0});CW.default=void 0;const Ler=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
||
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
||
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{[`
|
||
${o}${e}-enter,
|
||
${o}${e}-appear
|
||
`]:Object.assign(Object.assign({},Fer(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ner(r)),{animationPlayState:"paused"}),[`
|
||
${o}${e}-enter${e}-enter-active,
|
||
${o}${e}-appear${e}-appear-active
|
||
`]:{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),{[`
|
||
${i}${r}-enter,
|
||
${i}${r}-appear
|
||
`]:{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),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{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),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{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),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{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)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},(0,Mne.resetComponent)(e)),{backgroundColor:i,border:M,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:M,"&:first-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`${(0,Yh.unit)(l)} ${(0,Yh.unit)(l)} 0 0`}},"&:last-child":{[`
|
||
&,
|
||
& > ${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}`},[`
|
||
> ${t}-item:last-child,
|
||
> ${t}-item:last-child ${t}-header
|
||
`]:{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.default;Object.defineProperty(XC,"__esModule",{value:!0});XC.isBright=XC.default=void 0;var M6=Wtr(d),Int=JM,Utr=$0e(St),qtr=$0e(fa),Ktr=$0e(eP),Ytr=Os,Xtr=Zt,Mnt=ts;const Pne=e=>e.map(t=>(t.colors=t.colors.map(Mnt.generateColor),t)),Pnt=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),s=new Int.Color(e.toRgbString()).onBackground(t).toHsv();return o<=.5?s.v>.5:n*.299+r*.587+i*.114>192};XC.isBright=Pnt;const Z$e=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},Qtr=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[o]=(0,Ytr.useLocale)("ColorPicker"),[,s]=(0,Xtr.useToken)(),[a]=(0,qtr.default)(Pne(n),{value:Pne(n),postState:Pne}),l=`${t}-presets`,c=(0,M6.useMemo)(()=>a.reduce((h,g,p)=>{const{defaultOpen:m=!0}=g;return m&&h.push(Z$e(g,p)),h},[]),[a]),u=h=>{i==null||i(h)},f=a.map((h,g)=>{var p;return{key:Z$e(h,g),label:M6.default.createElement("div",{className:`${l}-label`},h==null?void 0:h.label),children:M6.default.createElement("div",{className:`${l}-items`},Array.isArray(h==null?void 0:h.colors)&&((p=h.colors)===null||p===void 0?void 0:p.length)>0?h.colors.map((m,v)=>M6.default.createElement(Int.ColorBlock,{key:`preset-${v}-${m.toHexString()}`,color:(0,Mnt.generateColor)(m).toRgbString(),prefixCls:t,className:(0,Utr.default)(`${l}-color`,{[`${l}-color-checked`]:m.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:Pnt(m,s.colorBgElevated)}),onClick:()=>u(m)})):M6.default.createElement("span",{className:`${l}-empty`},o.presetEmpty))}});return M6.default.createElement("div",{className:l},M6.default.createElement(Ktr.default,{defaultActiveKey:c,ghost:!0,items:f}))};XC.default=Qtr;Object.defineProperty(YC,"__esModule",{value:!0});YC.prepareToken=YC.prepareComponentToken=void 0;var Ztr=hd,Jtr=XC,HN=Zt;const enr=e=>{const{paddingInline:t,onlyIconSize:n}=e;return(0,HN.mergeToken)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})};YC.prepareToken=enr;const tnr=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:(0,HN.getLineHeight)(a),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:(0,HN.getLineHeight)(l),h=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:(0,HN.getLineHeight)(c),g=(0,Jtr.isBright)(new Ztr.AggregationColor(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:a,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-a*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}};YC.prepareComponentToken=tnr;var nnr=pe.default;Object.defineProperty(hW,"__esModule",{value:!0});hW.default=void 0;var qce=Kt,J$e=gn,rnr=l9,yW=Zt,inr=nnr(gW),eOe=YC;const onr=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:s,marginXS:a,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,qce.unit)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,J$e.resetIcon)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,J$e.genFocusStyle)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${o} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(a).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(a).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(a).mul(-1).equal()}}}}}},_nt=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),snr=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),anr=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),lnr=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),O0e=(e,t,n,r,i,o,s,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},_nt(e,Object.assign({background:t},s),Object.assign({background:t},a))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),cnr=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},lnr(e))}),unr=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),bW=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?unr:cnr;return Object.assign(Object.assign({},o(e)),_nt(e.componentCls,t,n))},SW=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},bW(e,r,i))}),wW=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},bW(e,r,i))}),xW=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),EW=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},bW(e,n,r))}),t3=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},bW(e,r,i,n))}),dnr=e=>{const{componentCls:t}=e;return rnr.PresetColors.reduce((n,r)=>{const i=e[`${r}6`],o=e[`${r}1`],s=e[`${r}5`],a=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${e.controlOutlineWidth} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},SW(e,e.colorTextLightSolid,i,{background:s},{background:c})),wW(e,i,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),xW(e)),EW(e,o,{background:a},{background:l})),t3(e,i,"link",{color:s},{color:c})),t3(e,i,"text",{color:s,background:o},{color:c,background:l}))})},{})},fnr=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},SW(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),xW(e)),EW(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),t3(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),O0e(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),hnr=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},wW(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),xW(e)),EW(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),t3(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),O0e(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),gnr=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},SW(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),wW(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),xW(e)),EW(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),t3(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),t3(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),O0e(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pnr=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:fnr(e),[`${t}-color-primary`]:hnr(e),[`${t}-color-dangerous`]:gnr(e)},dnr(e))},mnr=e=>Object.assign(Object.assign(Object.assign(Object.assign({},wW(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),t3(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),SW(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),t3(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),T0e=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:s,iconCls:a,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${(0,qce.unit)(l)} ${(0,qce.unit)(s)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[a]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${n}${n}-circle${t}`]:snr(e)},{[`${n}${n}-round${t}`]:anr(e)}]},vnr=e=>{const t=(0,yW.mergeToken)(e,{fontSize:e.contentFontSize});return T0e(t,e.componentCls)},Cnr=e=>{const t=(0,yW.mergeToken)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return T0e(t,`${e.componentCls}-sm`)},ynr=e=>{const t=(0,yW.mergeToken)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return T0e(t,`${e.componentCls}-lg`)},bnr=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};hW.default=(0,yW.genStyleHooks)("Button",e=>{const t=(0,eOe.prepareToken)(e);return[onr(t),vnr(t),Cnr(t),ynr(t),bnr(t),pnr(t),mnr(t),(0,inr.default)(t)]},eOe.prepareComponentToken,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var RW={},dv={};Object.defineProperty(dv,"__esModule",{value:!0});dv.genCompactItemStyle=xnr;function Snr(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,s=o?"> *":"",a=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[a]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function wnr(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function xnr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Snr(e,r,t)),wnr(n,r,t))}}var I0e={};Object.defineProperty(I0e,"__esModule",{value:!0});I0e.genCompactItemVerticalStyle=$nr;function Enr(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Rnr(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function $nr(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Enr(e,t)),Rnr(e.componentCls,t))}}Object.defineProperty(RW,"__esModule",{value:!0});RW.default=void 0;var Onr=dv,Tnr=I0e,Inr=Zt,tOe=YC;const Mnr=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),s=a=>({[`${t}-compact${a?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:a?o:0,insetInlineStart:a?0:o,backgroundColor:n,content:'""',width:a?"100%":r,height:a?r:"100%"}}});return Object.assign(Object.assign({},s()),s(!0))};RW.default=(0,Inr.genSubStyleComponent)(["Button","compact"],e=>{const t=(0,tOe.prepareToken)(e);return[(0,Onr.genCompactItemStyle)(t),(0,Tnr.genCompactItemVerticalStyle)(t),Mnr(t)]},tOe.prepareComponentToken);var fv=pe.default,Ant=_e.default;Object.defineProperty(tW,"__esModule",{value:!0});tW.default=void 0;var Wo=Ant(d),_ne=fv(St),Pnr=fv(mi),_nr=Vi,Anr=fv(M3),Dnr=Bt,Lnr=fv(Co),Fnr=fv(io),Nnr=ds,Dnt=Ant(R7),aR=Yl,nOe=fv(ZM),knr=fv(dW),znr=fv(hW),Bnr=fv(RW),Hnr=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 jnr(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Vnr={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Gnr=Wo.default.forwardRef((e,t)=>{var n,r,i,o;const{loading:s=!1,prefixCls:a,color:l,variant:c,type:u,danger:f=!1,shape:h="default",size:g,styles:p,disabled:m,className:v,rootClassName:C,children:y,icon:b,iconPosition:S="start",ghost:w=!1,block:x=!1,htmlType:E="button",classNames:R,style:O={},autoInsertSpace:T,autoFocus:M}=e,_=Hnr(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),F=u||"default",[D,k]=(0,Wo.useMemo)(()=>{if(l&&c)return[l,c];const ze=Vnr[F]||[];return f?["danger",ze[1]]:ze},[u,l,c,f]),I=D==="danger"?"dangerous":D,{getPrefixCls:A,direction:N,button:B}=(0,Wo.useContext)(Dnr.ConfigContext),z=(n=T??(B==null?void 0:B.autoInsertSpace))!==null&&n!==void 0?n:!0,j=A("btn",a),[W,G,K]=(0,znr.default)(j),q=(0,Wo.useContext)(Lnr.default),X=m??q,Q=(0,Wo.useContext)(Dnt.GroupSizeContext),te=(0,Wo.useMemo)(()=>jnr(s),[s]),[ne,Z]=(0,Wo.useState)(te.loading),[ee,J]=(0,Wo.useState)(!1),oe=(0,Wo.useRef)(null),le=(0,_nr.useComposeRef)(t,oe),ge=Wo.Children.count(y)===1&&!b&&!(0,aR.isUnBorderedButtonVariant)(k),he=(0,Wo.useRef)(!0);Wo.default.useEffect(()=>(he.current=!1,()=>{he.current=!0}),[]),(0,Wo.useEffect)(()=>{let ze=null;te.delay>0?ze=setTimeout(()=>{ze=null,Z(!0)},te.delay):Z(te.loading);function Re(){ze&&(clearTimeout(ze),ze=null)}return Re},[te]),(0,Wo.useEffect)(()=>{if(!oe.current||!z)return;const ze=oe.current.textContent||"";ge&&(0,aR.isTwoCNChar)(ze)?ee||J(!0):ee&&J(!1)}),(0,Wo.useEffect)(()=>{M&&oe.current&&oe.current.focus()},[]);const ye=Wo.default.useCallback(ze=>{var Re;if(ne||X){ze.preventDefault();return}(Re=e.onClick)===null||Re===void 0||Re.call(e,ze)},[e.onClick,ne,X]),{compactSize:ue,compactItemClassnames:ve}=(0,Nnr.useCompactItemContext)(j,N),de={large:"lg",small:"sm",middle:void 0},xe=(0,Fnr.default)(ze=>{var Re,Le;return(Le=(Re=g??ue)!==null&&Re!==void 0?Re:Q)!==null&&Le!==void 0?Le:ze}),Ee=xe&&(r=de[xe])!==null&&r!==void 0?r:"",De=ne?"loading":b,Be=(0,Pnr.default)(_,["navigate"]),Ge=(0,_ne.default)(j,G,K,{[`${j}-${h}`]:h!=="default"&&h,[`${j}-${F}`]:F,[`${j}-dangerous`]:f,[`${j}-color-${I}`]:I,[`${j}-variant-${k}`]:k,[`${j}-${Ee}`]:Ee,[`${j}-icon-only`]:!y&&y!==0&&!!De,[`${j}-background-ghost`]:w&&!(0,aR.isUnBorderedButtonVariant)(k),[`${j}-loading`]:ne,[`${j}-two-chinese-chars`]:ee&&z&&!ne,[`${j}-block`]:x,[`${j}-rtl`]:N==="rtl",[`${j}-icon-end`]:S==="end"},ve,v,C,B==null?void 0:B.className),Ue=Object.assign(Object.assign({},B==null?void 0:B.style),O),We=(0,_ne.default)(R==null?void 0:R.icon,(i=B==null?void 0:B.classNames)===null||i===void 0?void 0:i.icon),Ve=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),((o=B==null?void 0:B.styles)===null||o===void 0?void 0:o.icon)||{}),Fe=b&&!ne?Wo.default.createElement(nOe.default,{prefixCls:j,className:We,style:Ve},b):typeof s=="object"&&s.icon?Wo.default.createElement(nOe.default,{prefixCls:j,className:We,style:Ve},s.icon):Wo.default.createElement(knr.default,{existIcon:!!b,prefixCls:j,loading:ne,mount:he.current}),ke=y||y===0?(0,aR.spaceChildren)(y,ge&&z):null;if(Be.href!==void 0)return W(Wo.default.createElement("a",Object.assign({},Be,{className:(0,_ne.default)(Ge,{[`${j}-disabled`]:X}),href:X?void 0:Be.href,style:Ue,onClick:ye,ref:le,tabIndex:X?-1:0}),Fe,ke));let Ye=Wo.default.createElement("button",Object.assign({},_,{type:E,className:Ge,style:Ue,onClick:ye,disabled:X,ref:le}),Fe,ke,ve&&Wo.default.createElement(Bnr.default,{prefixCls:j}));return(0,aR.isUnBorderedButtonVariant)(k)||(Ye=Wo.default.createElement(Anr.default,{component:"Button",disabled:ne},Ye)),W(Ye)}),M0e=Gnr;M0e.Group=Dnt.default;M0e.__ANT_BUTTON=!0;tW.default=M0e;(function(e){"use client";var t=pe.default;Object.defineProperty(e,"__esModule",{value:!0});var n={};e.default=void 0;var r=t(tW),i=Yl;Object.keys(i).forEach(function(o){o==="default"||o==="__esModule"||Object.prototype.hasOwnProperty.call(n,o)||o in e&&e[o]===i[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return i[o]}})}),e.default=r.default})(Ru);var Lnt=pe.default,Wnr=_e.default;Object.defineProperty(f9,"__esModule",{value:!0});f9.default=void 0;var aL=Wnr(d),Unr=Lnt(XM),qnr=Lnt(Ru),Knr=Yl;function Ane(e){return!!(e!=null&&e.then)}const Ynr=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:s,emitEvent:a,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=aL.useRef(!1),h=aL.useRef(null),[g,p]=(0,Unr.default)(!1),m=function(){o==null||o.apply(void 0,arguments)};aL.useEffect(()=>{let y=null;return s&&(y=setTimeout(()=>{var b;(b=h.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[]);const v=y=>{Ane(y)&&(p(!0),y.then(function(){p(!1,!0),m.apply(void 0,arguments),f.current=!1},b=>{if(p(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(b)}))},C=y=>{if(f.current)return;if(f.current=!0,!u){m();return}let b;if(a){if(b=u(y),c&&!Ane(b)){f.current=!1,m(y);return}}else if(u.length)b=u(o),f.current=!1;else if(b=u(),!Ane(b)){m();return}v(b)};return aL.createElement(qnr.default,Object.assign({},(0,Knr.convertLegacyProps)(t),{onClick:C,loading:g,prefixCls:r},i,{ref:h}),n)};f9.default=Ynr;var Fg={},Xnr=pe.default;Object.defineProperty(Fg,"__esModule",{value:!0});Fg.ModalContextProvider=Fg.ModalContext=void 0;var Qnr=Xnr(d);const Znr=Fg.ModalContext=Qnr.default.createContext({}),{Provider:Jnr}=Znr;Fg.ModalContextProvider=Jnr;var err=pe.default,trr=_e.default;Object.defineProperty(eW,"__esModule",{value:!0});eW.default=void 0;var rOe=trr(d),nrr=err(f9),rrr=Fg;const irr=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:s,onCancel:a,onConfirm:l}=(0,rOe.useContext)(rrr.ModalContext);return i?rOe.default.createElement(nrr.default,{isSilent:r,actionFn:a,close:function(){s==null||s.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null};eW.default=irr;var $W={},orr=pe.default,srr=_e.default;Object.defineProperty($W,"__esModule",{value:!0});$W.default=void 0;var iOe=srr(d),arr=orr(f9),lrr=Fg;const crr=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:s,onConfirm:a,onOk:l}=(0,iOe.useContext)(lrr.ModalContext);return iOe.default.createElement(arr.default,{isSilent:n,type:s||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),a==null||a(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)};$W.default=crr;var tP={};const Fnt=_r(E_t);var ah={},Ir={};const nP=_r(mAt);var urr=pe.default,drr=_e.default;Object.defineProperty(Ir,"__esModule",{value:!0});Ir.VariantContext=Ir.NoStyleItemContext=Ir.NoFormStyle=Ir.FormProvider=Ir.FormItemPrefixContext=Ir.FormItemInputContext=Ir.FormContext=void 0;var b0=drr(d),frr=nP,hrr=urr(mi);Ir.FormContext=b0.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}});Ir.NoStyleItemContext=b0.createContext(null);const grr=e=>{const t=(0,hrr.default)(e,["prefixCls"]);return b0.createElement(frr.FormProvider,Object.assign({},t))};Ir.FormProvider=grr;Ir.FormItemPrefixContext=b0.createContext({prefixCls:""});const oOe=Ir.FormItemInputContext=b0.createContext({}),prr=e=>{let{children:t,status:n,override:r}=e;const i=b0.useContext(oOe),o=b0.useMemo(()=>{const s=Object.assign({},i);return r&&delete s.isFormItemInput,n&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[n,r,i]);return b0.createElement(oOe.Provider,{value:o},t)};Ir.NoFormStyle=prr;Ir.VariantContext=b0.createContext(void 0);var mrr=pe.default;Object.defineProperty(ah,"__esModule",{value:!0});ah.default=void 0;var sOe=mrr(d),vrr=Ir,Crr=ds;const yrr=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=sOe.default.createElement(vrr.NoFormStyle,{override:!0,status:!0},i)),t&&(i=sOe.default.createElement(Crr.NoCompactStyle,null,i)),i};ah.default=yrr;var nb={},P0e=pe.default;Object.defineProperty(nb,"__esModule",{value:!0});nb.default=Err;nb.pickClosable=wrr;var v2=P0e(d),brr=P0e(Td),Srr=P0e(oh);function wrr(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function aOe(e){const{closable:t,closeIcon:n}=e||{};return v2.default.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function lOe(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(i=>{i&&Object.keys(i).forEach(o=>{i[o]!==void 0&&(e[o]=i[o])})}),e}const xrr={};function Err(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xrr;const r=aOe(e),i=aOe(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=v2.default.useMemo(()=>Object.assign({closeIcon:v2.default.createElement(brr.default,null)},n),[n]),a=v2.default.useMemo(()=>r===!1?!1:r?lOe(s,i,r):i===!1?!1:i?lOe(s,i):s.closable?s:!1,[r,i,s]);return v2.default.useMemo(()=>{if(a===!1)return[!1,null,o];const{closeIconRender:l}=s,{closeIcon:c}=a;let u=c;if(u!=null){l&&(u=l(c));const f=(0,Srr.default)(a,!0);Object.keys(f).length&&(u=v2.default.isValidElement(u)?v2.default.cloneElement(u,f):v2.default.createElement("span",Object.assign({},f),u))}return[!0,u,o]},[a,s])}var _0e={},A0e={},Rrr=pe.default;Object.defineProperty(A0e,"__esModule",{value:!0});A0e.isStyleSupport=Trr;var $rr=Rrr(Ky),Nnt=function(t){if((0,$rr.default)()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1},Orr=function(t,n){if(!Nnt(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function Trr(e,t){return!Array.isArray(e)&&t!==void 0?Orr(e,t):Nnt(e)}(function(e){var t=pe.default;Object.defineProperty(e,"__esModule",{value:!0}),e.canUseDocElement=void 0,Object.defineProperty(e,"isStyleSupport",{enumerable:!0,get:function(){return r.isStyleSupport}});var n=t(Ky),r=A0e;const i=()=>(0,n.default)()&&window.document.documentElement;e.canUseDocElement=i})(_0e);var L3={},OW={},TW={},rb={},Irr=pe.default,Mrr=_e.default;Object.defineProperty(rb,"__esModule",{value:!0});rb.default=void 0;var cOe=Mrr(d),Dne=Irr(St);const Prr=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,s=(0,Dne.default)({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),a=(0,Dne.default)({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=cOe.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return cOe.createElement("span",{className:(0,Dne.default)(t,s,a,n),style:Object.assign(Object.assign({},l),r)})};rb.default=Prr;var Ng={};Object.defineProperty(Ng,"__esModule",{value:!0});Ng.prepareComponentToken=Ng.default=void 0;var knt=Kt,uOe=Zt;const _rr=new knt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),IW=e=>({height:e,lineHeight:(0,knt.unit)(e)}),rw=e=>Object.assign({width:e},IW(e)),Arr=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:_rr,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Lne=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},IW(e)),Drr=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},rw(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},rw(i)),[`${t}${t}-sm`]:Object.assign({},rw(o))}},Lrr=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:s,calc:a}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},Lne(t,a)),[`${r}-lg`]:Object.assign({},Lne(i,a)),[`${r}-sm`]:Object.assign({},Lne(o,a))}},dOe=e=>Object.assign({width:e},IW(e)),Frr=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},dOe(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},dOe(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Fne=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Nne=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},IW(e)),Nrr=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:s,calc:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:a(r).mul(2).equal(),minWidth:a(r).mul(2).equal()},Nne(r,a))},Fne(e,r,n)),{[`${n}-lg`]:Object.assign({},Nne(i,a))}),Fne(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Nne(o,a))}),Fne(e,o,`${n}-sm`))},krr=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:s,skeletonImageCls:a,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:h,marginSM:g,borderRadius:p,titleHeight:m,blockRadius:v,paragraphLiHeight:C,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},rw(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},rw(c)),[`${n}-sm`]:Object.assign({},rw(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:f,borderRadius:v,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Nrr(e)),Drr(e)),Lrr(e)),Frr(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
||
${r},
|
||
${i} > li,
|
||
${n},
|
||
${o},
|
||
${s},
|
||
${a}
|
||
`]: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,className:n,rootClassName:r,active:i,block:o,size:s="default"}=e,{getPrefixCls:a}=Bne.useContext(air.ConfigContext),l=a("skeleton",t),[c,u,f]=(0,cir.default)(l),h=(0,sir.default)(e,["prefixCls"]),g=(0,oir.default)(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(Bne.createElement("div",{className:g},Bne.createElement(lir.default,Object.assign({prefixCls:`${l}-input`,size:s},h))))};DW.default=uir;var FW={},Hnt=pe.default,dir=_e.default;Object.defineProperty(FW,"__esModule",{value:!0});FW.default=void 0;var Hne=dir(d),hOe=Hnt(St),fir=Bt,hir=Hnt(Ng);const gir=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:s}=e,{getPrefixCls:a}=Hne.useContext(fir.ConfigContext),l=a("skeleton",t),[c,u,f]=(0,hir.default)(l),h=(0,hOe.default)(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,f);return c(Hne.createElement("div",{className:h},Hne.createElement("div",{className:(0,hOe.default)(`${l}-image`,n),style:i},s)))};FW.default=gir;var NW={},pir=_e.default,jnt=pe.default;Object.defineProperty(NW,"__esModule",{value:!0});NW.default=void 0;var mir=jnt(zr),gOe=pir(d),vir=jnt(St);const Cir=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},yir=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=(0,mir.default)(new Array(i)).map((s,a)=>gOe.createElement("li",{key:a,style:{width:Cir(a,e)}}));return gOe.createElement("ul",{className:(0,vir.default)(t,n),style:r},o)};NW.default=yir;var kW={},bir=pe.default,Sir=_e.default;Object.defineProperty(kW,"__esModule",{value:!0});kW.default=void 0;var wir=Sir(d),xir=bir(St);const Eir=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return wir.createElement("h3",{className:(0,xir.default)(t,n),style:Object.assign({width:r},i)})};kW.default=Eir;var qm=pe.default,Rir=_e.default;Object.defineProperty(OW,"__esModule",{value:!0});OW.default=void 0;var P6=Rir(d),$ir=qm(St),Oir=Bt,Tir=qm(TW),Iir=qm(PW),Mir=qm(rb),Pir=qm(AW),_ir=qm(DW),Air=qm(FW),Dir=qm(NW),Lir=qm(Ng),Fir=qm(kW);function jne(e){return e&&typeof e=="object"?e:{}}function Nir(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function kir(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function zir(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const h9=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:s,avatar:a=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:h,direction:g,skeleton:p}=P6.useContext(Oir.ConfigContext),m=h("skeleton",t),[v,C,y]=(0,Lir.default)(m);if(n||!("loading"in e)){const b=!!a,S=!!l,w=!!c;let x;if(b){const O=Object.assign(Object.assign({prefixCls:`${m}-avatar`},Nir(S,w)),jne(a));x=P6.createElement("div",{className:`${m}-header`},P6.createElement(Mir.default,Object.assign({},O)))}let E;if(S||w){let O;if(S){const M=Object.assign(Object.assign({prefixCls:`${m}-title`},kir(b,w)),jne(l));O=P6.createElement(Fir.default,Object.assign({},M))}let T;if(w){const M=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},zir(b,S)),jne(c));T=P6.createElement(Dir.default,Object.assign({},M))}E=P6.createElement("div",{className:`${m}-content`},O,T)}const R=(0,$ir.default)(m,{[`${m}-with-avatar`]:b,[`${m}-active`]:u,[`${m}-rtl`]:g==="rtl",[`${m}-round`]:f},p==null?void 0:p.className,r,i,C,y);return v(P6.createElement("div",{className:R,style:Object.assign(Object.assign({},p==null?void 0:p.style),o)},x,E))}return s??null};h9.Button=Iir.default;h9.Avatar=Tir.default;h9.Input=_ir.default;h9.Image=Pir.default;h9.Node=Air.default;OW.default=h9;var Bir=pe.default;Object.defineProperty(L3,"__esModule",{value:!0});L3.default=void 0;var Hir=Bir(OW);L3.default=Hir.default;var ib={},jir=pe.default,Vir=_e.default;Object.defineProperty(ib,"__esModule",{value:!0});ib.default=void 0;ib.usePanelRef=Wir;var Kce=Vir(d),Gir=jir(hl);function pOe(){}const Vnt=Kce.createContext({add:pOe,remove:pOe});function Wir(e){const t=Kce.useContext(Vnt),n=Kce.useRef(null);return(0,Gir.default)(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}ib.default=Vnt;var g9={},zW={},Uir=pe.default,qir=_e.default;Object.defineProperty(zW,"__esModule",{value:!0});zW.default=void 0;var mOe=qir(d),Kir=Uir(Ru),Yir=Fg;const Xir=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,mOe.useContext)(Yir.ModalContext);return mOe.default.createElement(Kir.default,Object.assign({onClick:n},e),t)};zW.default=Xir;var BW={},Qir=pe.default,Zir=_e.default;Object.defineProperty(BW,"__esModule",{value:!0});BW.default=void 0;var vOe=Zir(d),Jir=Qir(Ru),eor=Yl,tor=Fg;const nor=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,vOe.useContext)(tor.ModalContext);return vOe.default.createElement(Jir.default,Object.assign({},(0,eor.convertLegacyProps)(n),{loading:e,onClick:i},t),r)};BW.default=nor;var rP=pe.default;Object.defineProperty(g9,"__esModule",{value:!0});g9.Footer=void 0;g9.renderCloseIcon=cor;var ror=rP(zr),Q1=rP(d),ior=rP(Td),oor=Co,sor=Os,COe=rP(zW),yOe=rP(BW),aor=Fg,lor=o9;function cor(e,t){return Q1.default.createElement("span",{className:`${e}-close-x`},t||Q1.default.createElement(ior.default,{className:`${e}-close-icon`}))}const uor=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:s,okButtonProps:a,cancelButtonProps:l,footer:c}=e,[u]=(0,sor.useLocale)("Modal",(0,lor.getConfirmLocale)()),f=t||(u==null?void 0:u.okText),h=r||(u==null?void 0:u.cancelText),g={confirmLoading:i,okButtonProps:a,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:h,okType:n,onOk:o,onCancel:s},p=Q1.default.useMemo(()=>g,(0,ror.default)(Object.values(g)));let m;return typeof c=="function"||typeof c>"u"?(m=Q1.default.createElement(Q1.default.Fragment,null,Q1.default.createElement(COe.default,null),Q1.default.createElement(yOe.default,null)),typeof c=="function"&&(m=c(m,{OkBtn:yOe.default,CancelBtn:COe.default})),m=Q1.default.createElement(aor.ModalContextProvider,{value:p},m)):m=c,Q1.default.createElement(oor.DisabledContextProvider,{disabled:!1},m)};g9.Footer=uor;var od={},iu={};Object.defineProperty(iu,"__esModule",{value:!0});iu.useRowStyle=iu.useColStyle=iu.prepareRowComponentToken=iu.prepareColComponentToken=iu.getMediaSize=void 0;var dor=Kt,Yce=Zt;const hor=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},gor=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},por=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let s=i;s>=0;s--)s===0?(o[`${r}${t}-${s}`]={display:"none"},o[`${r}-push-${s}`]={insetInlineStart:"auto"},o[`${r}-pull-${s}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${s}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${s}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${s}`]={marginInlineStart:0},o[`${r}${t}-order-${s}`]={order:0}):(o[`${r}${t}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/i*100}%`,maxWidth:`${s/i*100}%`}],o[`${r}${t}-push-${s}`]={insetInlineStart:`${s/i*100}%`},o[`${r}${t}-pull-${s}`]={insetInlineEnd:`${s/i*100}%`},o[`${r}${t}-offset-${s}`]={marginInlineStart:`${s/i*100}%`},o[`${r}${t}-order-${s}`]={order:s});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},Xce=(e,t)=>por(e,t),mor=(e,t,n)=>({[`@media (min-width: ${(0,dor.unit)(t)})`]:Object.assign({},Xce(e,n))}),Gnt=()=>({});iu.prepareRowComponentToken=Gnt;const Wnt=()=>({});iu.prepareColComponentToken=Wnt;iu.useRowStyle=(0,Yce.genStyleHooks)("Grid",hor,Gnt);const Unt=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin});iu.getMediaSize=Unt;iu.useColStyle=(0,Yce.genStyleHooks)("Grid",e=>{const t=(0,Yce.mergeToken)(e,{gridColumns:24}),n=Unt(t);return delete n.xs,[gor(t),Xce(t,""),Xce(t,"-xs"),Object.keys(n).map(r=>mor(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},Wnt);var vor=pe.default;Object.defineProperty(od,"__esModule",{value:!0});od.prepareToken=od.prepareComponentToken=od.genModalMaskStyle=od.default=void 0;var Cor=vor(zr),_s=Kt,yor=iu,bOe=gn,qnt=Rc,Knt=Zt;function SOe(e){return{position:e,inset:0}}const Ynt=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},SOe("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},SOe("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,qnt.initFadeMotion)(e)}]};od.genModalMaskStyle=Ynt;const bor=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,_s.unit)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,bOe.resetComponent)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,_s.unit)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,_s.unit)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,bOe.genFocusStyle)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,_s.unit)(e.borderRadiusLG)} ${(0,_s.unit)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,_s.unit)(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
||
${t}-body,
|
||
${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:!0,closeIcon:O1.createElement(xor.default,{className:`${O}-close-icon`}),closeIconRender:q=>(0,xOe.renderCloseIcon)(O,q)}),B=(0,_or.usePanelRef)(`.${O}-content`),[z,j]=(0,$or.useZIndex)("Modal",R.zIndex),[W,G]=O1.useMemo(()=>y&&typeof y=="object"?[void 0,y]:[y,void 0],[y]),K=O1.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 _(O1.createElement(Ror.default,{form:!0,space:!0},O1.createElement(Tor.default.Provider,{value:j},O1.createElement(Eor.default,Object.assign({width:W},R,{zIndex:z,getContainer:p===void 0?n:p,prefixCls:O,rootClassName:(0,lL.default)(F,u,D,M),footer:L,visible:f??C,mousePosition:(t=R.mousePosition)!==null&&t!==void 0?t:Qce,onClose:s,closable:I&&{disabled:N,closeIcon:A},closeIcon:A,focusTriggerAfterClose:m,transitionName:(0,wOe.getTransitionName)(T,"zoom",e.transitionName),maskTransitionName:(0,wOe.getTransitionName)(T,"fade",e.maskTransitionName),className:(0,lL.default)(F,c,o==null?void 0:o.className),style:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.style),v),K),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),S),{wrapper:(0,lL.default)(k,S==null?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),w),panelRef:B}),E?O1.createElement(Por.default,{active:!0,title:!1,paragraph:{rows:4},className:`${O}-body-skeleton`}):x))))};tP.default=For;var HW={};Object.defineProperty(HW,"__esModule",{value:!0});HW.default=void 0;var EOe=Kt,ROe=od,Nor=gn,kor=Zt;const zor=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:o,lineHeight:s,modalTitleHeight:a,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},(0,Nor.clearFix)()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(a).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,EOe.unit)(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${(0,EOe.unit)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:o,lineHeight:s},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
|
||
${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),isr=I3,osr=jW(eb),cL=jW(p9),ssr=o9;let trt="";function nrt(){return trt}const asr=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,s=(0,ssr.getConfirmLocale)(),a=(0,VB.useContext)(Jce.ConfigContext),l=nrt()||a.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),VB.default.createElement(osr.default,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 lsr(e){const t=(0,Jce.globalConfig)(),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((0,rsr.default)(h.slice(1))))}for(let v=0;v<cL.default.length;v++)if(cL.default[v]===l){cL.default.splice(v,1);break}o()}function a(u){clearTimeout(i),i=setTimeout(()=>{const f=t.getPrefixCls(void 0,nrt()),h=t.getIconPrefixCls(),g=t.getTheme(),p=VB.default.createElement(asr,Object.assign({},u));o=(0,isr.getReactRender)()(VB.default.createElement(Jce.default,{prefixCls:f,iconPrefixCls:h,theme:g},t.holderRender?t.holderRender(p):p),n)})}function l(){for(var u=arguments.length,f=new Array(u),h=0;h<u;h++)f[h]=arguments[h];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,f)}}),r.visible&&delete r.visible,a(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),a(r)}return a(r),cL.default.push(l),{destroy:l,update:c}}function csr(e){return Object.assign(Object.assign({},e),{type:"warning"})}function usr(e){return Object.assign(Object.assign({},e),{type:"info"})}function dsr(e){return Object.assign(Object.assign({},e),{type:"success"})}function fsr(e){return Object.assign(Object.assign({},e),{type:"error"})}function hsr(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function gsr(e){let{rootPrefixCls:t}=e;trt=t}var VW={},psr=_e.default,GW=pe.default;Object.defineProperty(VW,"__esModule",{value:!0});VW.default=void 0;var msr=GW(zr),Q5=psr(d),vsr=Bt,Csr=GW(Ec),ysr=GW(a9),bsr=GW(eb),Ssr=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 wsr=(e,t)=>{var n,{afterClose:r,config:i}=e,o=Ssr(e,["afterClose","config"]);const[s,a]=Q5.useState(!0),[l,c]=Q5.useState(i),{direction:u,getPrefixCls:f}=Q5.useContext(vsr.ConfigContext),h=f("modal"),g=f(),p=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},m=function(){var y;a(!1);for(var b=arguments.length,S=new Array(b),w=0;w<b;w++)S[w]=arguments[w];if(S.some(R=>R==null?void 0:R.triggerCancel)){var E;(y=l.onCancel)===null||y===void 0||(E=y).call.apply(E,[l,()=>{}].concat((0,msr.default)(S.slice(1))))}};Q5.useImperativeHandle(t,()=>({destroy:m,update:y=>{c(b=>Object.assign(Object.assign({},b),y))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[C]=(0,ysr.default)("Modal",Csr.default.Modal);return Q5.createElement(bsr.default,Object.assign({prefixCls:h,rootPrefixCls:g},l,{close:m,open:s,afterClose:p,okText:l.okText||(v?C==null?void 0:C.okText:C==null?void 0:C.justOkText),direction:l.direction||u,cancelText:l.cancelText||(C==null?void 0:C.cancelText)},o))};VW.default=Q5.forwardRef(wsr);var xsr=_e.default,WW=pe.default;Object.defineProperty(KM,"__esModule",{value:!0});KM.default=void 0;var Gne=WW(zr),Ku=xsr(d),Esr=WW(S0e),lR=Um,Rsr=WW(p9),$sr=WW(VW);let IOe=0;const Osr=Ku.memo(Ku.forwardRef((e,t)=>{const[n,r]=(0,Esr.default)();return Ku.useImperativeHandle(t,()=>({patchElement:r}),[]),Ku.createElement(Ku.Fragment,null,n)}));function Tsr(){const e=Ku.useRef(null),[t,n]=Ku.useState([]);Ku.useEffect(()=>{t.length&&((0,Gne.default)(t).forEach(s=>{s()}),n([]))},[t]);const r=Ku.useCallback(o=>function(a){var l;IOe+=1;const c=Ku.createRef();let u;const f=new Promise(v=>{u=v});let h=!1,g;const p=Ku.createElement($sr.default,{key:`modal-${IOe}`,config:o(a),ref:c,afterClose:()=>{g==null||g()},isSilent:()=>h,onConfirm:v=>{u(v)}});return g=(l=e.current)===null||l===void 0?void 0:l.patchElement(p),g&&Rsr.default.push(g),{destroy:()=>{function v(){var C;(C=c.current)===null||C===void 0||C.destroy()}c.current?v():n(C=>[].concat((0,Gne.default)(C),[v]))},update:v=>{function C(){var y;(y=c.current)===null||y===void 0||y.update(v)}c.current?C():n(y=>[].concat((0,Gne.default)(y),[C]))},then:v=>(h=!0,f.then(v))}},[]);return[Ku.useMemo(()=>({info:r(lR.withInfo),success:r(lR.withSuccess),error:r(lR.withError),warning:r(lR.withWarn),confirm:r(lR.withConfirm)}),[]),Ku.createElement(Osr,{key:"modal-holder",ref:e})]}KM.default=Tsr;var iP={},hm={},Df={},UW={};Object.defineProperty(UW,"__esModule",{value:!0});UW.default=void 0;var uL=Kt;const Isr=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,o=new uL.Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),s=new uL.Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),a=new uL.Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new uL.Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}};UW.default=Isr;var qW={},KW={};Object.defineProperty(KW,"__esModule",{value:!0});KW.NotificationPlacements=void 0;KW.NotificationPlacements=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];Object.defineProperty(qW,"__esModule",{value:!0});qW.default=void 0;var Msr=KW;const Psr={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},_sr=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Psr[t]]:{value:0,_skip_check_:!0}}}}},Asr=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Dsr=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},Lsr=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Asr(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Dsr(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Msr.NotificationPlacements.map(n=>_sr(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))};qW.default=Lsr;var rrt=pe.default;Object.defineProperty(Df,"__esModule",{value:!0});Df.prepareNotificationToken=Df.prepareComponentToken=Df.genNoticeStyle=Df.default=void 0;var JT=Kt,Fsr=ho,irt=gn,ort=Zt,Nsr=rrt(UW),ksr=rrt(qW);const srt=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:o,borderRadiusLG:s,colorSuccess:a,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:h,notificationPadding:g,notificationMarginEdge:p,notificationProgressBg:m,notificationProgressHeight:v,fontSize:C,lineHeight:y,width:b,notificationIconSize:S,colorText:w}=e,x=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:h,borderRadius:s,boxShadow:r,[x]:{padding:g,width:b,maxWidth:`calc(100vw - ${(0,JT.unit)(e.calc(p).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:f,fontSize:i,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:C,color:w},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:i},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:C},[`${x}-icon`]:{position:"absolute",fontSize:S,lineHeight:1,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},(0,irt.genFocusStyle)(e)),[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${(0,JT.unit)(s)} * 2)`,left:{_skip_check_:!0,value:s},right:{_skip_check_:!0,value:s},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:m},"&::-webkit-progress-value":{borderRadius:s,background:m}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}};Df.genNoticeStyle=srt;const zsr=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:o}=e,s=`${t}-notice`,a=new JT.Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,irt.resetComponent)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:a,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${s}-btn`]:{float:"left"}}})},{[t]:{[`${s}-wrapper`]:Object.assign({},srt(e))}}]},art=e=>({zIndexPopup:e.zIndexPopupBase+Fsr.CONTAINER_MAX_OFFSET+50,width:384});Df.prepareComponentToken=art;const lrt=e=>{const t=e.paddingMD,n=e.paddingLG;return(0,ort.mergeToken)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,JT.unit)(e.paddingMD)} ${(0,JT.unit)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})};Df.prepareNotificationToken=lrt;Df.default=(0,ort.genStyleHooks)("Notification",e=>{const t=lrt(e);return[zsr(t),(0,Nsr.default)(t),(0,ksr.default)(t)]},art);var YW={};Object.defineProperty(YW,"__esModule",{value:!0});YW.default=void 0;var Bsr=Kt,Wne=Df,Hsr=Zt;YW.default=(0,Hsr.genSubStyleComponent)(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=(0,Wne.prepareNotificationToken)(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},(0,Wne.genNoticeStyle)(n)),{width:n.width,maxWidth:`calc(100vw - ${(0,Bsr.unit)(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Wne.prepareComponentToken);var Km=pe.default,jsr=_e.default;Object.defineProperty(hm,"__esModule",{value:!0});hm.default=hm.TypeIcon=hm.PureContent=void 0;hm.getCloseIcon=hrt;var el=jsr(d),crt=Km(Jy),urt=Km(av),Vsr=Km(Td),drt=Km($3),frt=Km(VG),Gsr=Km(Jg),GB=Km(St),Wsr=YG,Usr=Bt,qsr=Km(Xr),Ksr=Km(Df),Ysr=Km(YW),Xsr=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};hm.TypeIcon={info:el.createElement(frt.default,null),success:el.createElement(crt.default,null),error:el.createElement(urt.default,null),warning:el.createElement(drt.default,null),loading:el.createElement(Gsr.default,null)};function hrt(e,t){return t===null||t===!1?null:t||el.createElement(Vsr.default,{className:`${e}-close-icon`})}const Qsr={success:crt.default,info:frt.default,error:urt.default,warning:drt.default},grt=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:o,btn:s,role:a="alert"}=e;let l=null;return n?l=el.createElement("span",{className:`${t}-icon`},n):r&&(l=el.createElement(Qsr[r]||null,{className:(0,GB.default)(`${t}-icon`,`${t}-icon-${r}`)})),el.createElement("div",{className:(0,GB.default)({[`${t}-with-icon`]:l}),role:a},l,el.createElement("div",{className:`${t}-message`},i),el.createElement("div",{className:`${t}-description`},o),s&&el.createElement("div",{className:`${t}-btn`},s))};hm.PureContent=grt;const Zsr=e=>{const{prefixCls:t,className:n,icon:r,type:i,message:o,description:s,btn:a,closable:l=!0,closeIcon:c,className:u}=e,f=Xsr(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:h}=el.useContext(Usr.ConfigContext),g=t||h("notification"),p=`${g}-notice`,m=(0,qsr.default)(g),[v,C,y]=(0,Ksr.default)(g,m);return v(el.createElement("div",{className:(0,GB.default)(`${p}-pure-panel`,C,n,y,m)},el.createElement(Ysr.default,{prefixCls:g}),el.createElement(Wsr.Notice,Object.assign({},f,{prefixCls:g,eventKey:"pure",duration:null,closable:l,className:(0,GB.default)({notificationClassName:u}),closeIcon:hrt(g,c),content:el.createElement(grt,{prefixCls:p,icon:r,type:i,message:o,description:s,btn:a})}))))};hm.default=Zsr;var XW={};Object.defineProperty(XW,"__esModule",{value:!0});XW.getMotion=ear;XW.getPlacementStyle=Jsr;function Jsr(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function ear(e){return{motionName:`${e}-fade`}}var D0e=pe.default,tar=_e.default;Object.defineProperty(iP,"__esModule",{value:!0});iP.default=har;iP.useInternalNotification=mrt;var u0=tar(d),L0e=D0e(St),prt=YG,nar=Lo,rar=Bt,iar=D0e(Xr),oar=Zt,eue=hm,sar=D0e(Df),MOe=XW,aar=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 POe=24,lar=4.5,car="topRight",uar=e=>{let{children:t,prefixCls:n}=e;const r=(0,iar.default)(n),[i,o,s]=(0,sar.default)(n,r);return i(u0.default.createElement(prt.NotificationProvider,{classNames:{list:(0,L0e.default)(o,s,r)}},t))},dar=(e,t)=>{let{prefixCls:n,key:r}=t;return u0.default.createElement(uar,{prefixCls:n,key:r},e)},far=u0.default.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:o,maxCount:s,rtl:a,onAllRemoved:l,stack:c,duration:u,pauseOnHover:f=!0,showProgress:h}=e,{getPrefixCls:g,getPopupContainer:p,notification:m,direction:v}=(0,u0.useContext)(rar.ConfigContext),[,C]=(0,oar.useToken)(),y=i||g("notification"),b=R=>(0,MOe.getPlacementStyle)(R,n??POe,r??POe),S=()=>(0,L0e.default)({[`${y}-rtl`]:a??v==="rtl"}),w=()=>(0,MOe.getMotion)(y),[x,E]=(0,prt.useNotification)({prefixCls:y,style:b,className:S,motion:w,closable:!0,closeIcon:(0,eue.getCloseIcon)(y),duration:u??lar,getContainer:()=>(o==null?void 0:o())||(p==null?void 0:p())||document.body,maxCount:s,pauseOnHover:f,showProgress:h,onAllRemoved:l,renderNotifications:dar,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:C.margin}});return u0.default.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:y,notification:m})),E});function mrt(e){const t=u0.default.useRef(null);return(0,nar.devUseWarning)("Notification"),[u0.default.useMemo(()=>{const r=a=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:f}=t.current,h=`${u}-notice`,{message:g,description:p,icon:m,type:v,btn:C,className:y,style:b,role:S="alert",closeIcon:w,closable:x}=a,E=aar(a,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),R=(0,eue.getCloseIcon)(h,typeof w<"u"?w:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:car},E),{content:u0.default.createElement(eue.PureContent,{prefixCls:h,icon:m,type:v,message:g,description:p,btn:C,role:S}),className:(0,L0e.default)(v&&`${h}-${v}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:R,closable:x??!!R}))},o={open:r,destroy:a=>{var l,c;a!==void 0?(l=t.current)===null||l===void 0||l.close(a):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(a=>{o[a]=l=>r(Object.assign(Object.assign({},l),{type:a}))}),o},[]),u0.default.createElement(far,Object.assign({key:"notification-holder"},e,{ref:t}))]}function har(e){return mrt(e)}var n3={},gar=pe.default;Object.defineProperty(n3,"__esModule",{value:!0});n3.default=n3.AppConfigContext=void 0;var vrt=gar(d);n3.AppConfigContext=vrt.default.createContext({});const par=vrt.default.createContext({message:{},notification:{},modal:{}});n3.default=par;var $7={};Object.defineProperty($7,"__esModule",{value:!0});$7.prepareComponentToken=$7.default=void 0;var mar=Zt;const Car=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:o}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:o,[`&${t}-rtl`]:{direction:"rtl"}}}},Crt=()=>({});$7.prepareComponentToken=Crt;$7.default=(0,mar.genStyleHooks)("App",Car,Crt);var oP=pe.default,yrt=_e.default;Object.defineProperty(KG,"__esModule",{value:!0});KG.default=void 0;var H1=yrt(d),yar=oP(St),bar=Lo,Sar=Bt,war=oP(UM),xar=oP(KM),Ear=oP(iP),jN=yrt(n3),Rar=oP($7);const $ar=()=>H1.default.useContext(jN.default),brt=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:o,notification:s,style:a,component:l="div"}=e,{direction:c,getPrefixCls:u}=(0,H1.useContext)(Sar.ConfigContext),f=u("app",t),[h,g,p]=(0,Rar.default)(f),m=(0,yar.default)(g,f,r,i,p,{[`${f}-rtl`]:c==="rtl"}),v=(0,H1.useContext)(jN.AppConfigContext),C=H1.default.useMemo(()=>({message:Object.assign(Object.assign({},v.message),o),notification:Object.assign(Object.assign({},v.notification),s)}),[o,s,v.message,v.notification]),[y,b]=(0,war.default)(C.message),[S,w]=(0,Ear.default)(C.notification),[x,E]=(0,xar.default)(),R=H1.default.useMemo(()=>({message:y,notification:S,modal:x}),[y,S,x]);(0,bar.devUseWarning)("App")(!(p&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const O=l===!1?H1.default.Fragment:l,T={className:m,style:a};return h(H1.default.createElement(jN.default.Provider,{value:R},H1.default.createElement(jN.AppConfigContext.Provider,{value:C},H1.default.createElement(O,Object.assign({},l===!1?void 0:T),E,b,w,n))))};brt.useApp=$ar;KG.default=brt;var QW={},$c={},Oar=pe.default,Srt=_e.default;Object.defineProperty($c,"__esModule",{value:!0});$c.default=void 0;$c.withPureRenderTheme=xrt;var Z1=Srt(d),Tar=Oar(fa),wrt=Srt(Bt);function xrt(e){return t=>Z1.createElement(wrt.default,{theme:{token:{motion:!1,zIndexPopupBase:0}}},Z1.createElement(e,Object.assign({},t)))}const Iar=(e,t,n,r,i)=>xrt(s=>{const{prefixCls:a,style:l}=s,c=Z1.useRef(null),[u,f]=Z1.useState(0),[h,g]=Z1.useState(0),[p,m]=(0,Tar.default)(!1,{value:s.open}),{getPrefixCls:v}=Z1.useContext(wrt.ConfigContext),C=v(r||"select",a);Z1.useEffect(()=>{if(m(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(x=>{const E=x[0].target;f(E.offsetHeight+8),g(E.offsetWidth)}),w=setInterval(()=>{var x;const E=i?`.${i(C)}`:`.${C}-dropdown`,R=(x=c.current)===null||x===void 0?void 0:x.querySelector(E);R&&(clearInterval(w),S.observe(R))},10);return()=>{clearInterval(w),S.disconnect()}}},[]);let y=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:h};return Z1.createElement("div",{ref:c,style:b},Z1.createElement(e,Object.assign({},y)))});$c.default=Iar;var N3={};const Mar=_r(hFt);var Ql={},Par=pe.default;Object.defineProperty(Ql,"__esModule",{value:!0});Ql.getMergedStatus=void 0;Ql.getStatusClassNames=Aar;var _ar=Par(St);function Aar(e,t,n){return(0,_ar.default)({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Dar=(e,t)=>t||e;Ql.getMergedStatus=Dar;var ep={},m9={},ZW={},Lar=_e.default;Object.defineProperty(ZW,"__esModule",{value:!0});ZW.default=void 0;var Nu=Lar(d),Far=Us,Nar=Os,kar=Zt;const zar=()=>{const[,e]=(0,kar.useToken)(),[t]=(0,Nar.useLocale)("Empty"),r=new Far.FastColor(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Nu.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Nu.createElement("title",null,(t==null?void 0:t.description)||"Empty"),Nu.createElement("g",{fill:"none",fillRule:"evenodd"},Nu.createElement("g",{transform:"translate(24 31.67)"},Nu.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Nu.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),Nu.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),Nu.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),Nu.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),Nu.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),Nu.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Nu.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Nu.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};ZW.default=zar;var JW={},Bar=_e.default;Object.defineProperty(JW,"__esModule",{value:!0});JW.default=void 0;var Ert=Bar(d),_6=Ert,Une=Us,Har=Zt,jar=Os;const Var=()=>{const[,e]=(0,Har.useToken)(),[t]=(0,jar.useLocale)("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:s,shadowColor:a,contentColor:l}=(0,Ert.useMemo)(()=>({borderColor:new Une.FastColor(n).onBackground(o).toHexString(),shadowColor:new Une.FastColor(r).onBackground(o).toHexString(),contentColor:new Une.FastColor(i).onBackground(o).toHexString()}),[n,r,i,o]);return _6.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},_6.createElement("title",null,(t==null?void 0:t.description)||"Empty"),_6.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},_6.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),_6.createElement("g",{fillRule:"nonzero",stroke:s},_6.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),_6.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))};JW.default=Var;var eU={};Object.defineProperty(eU,"__esModule",{value:!0});eU.default=void 0;var _Oe=Zt;const Gar=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:s}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};eU.default=(0,_Oe.genStyleHooks)("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=(0,_Oe.mergeToken)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Gar(i)]});var tU=pe.default,War=_e.default;Object.defineProperty(m9,"__esModule",{value:!0});m9.default=void 0;var $2=War(d),dL=tU(St),Uar=Bt,qar=Os,Kar=tU(ZW),Yar=tU(JW),Xar=tU(eU),Qar=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 Rrt=$2.createElement(Kar.default,null),$rt=$2.createElement(Yar.default,null),F0e=e=>{var t,n,r,i,o,s,a,l;const{className:c,rootClassName:u,prefixCls:f,image:h=Rrt,description:g,children:p,imageStyle:m,style:v,classNames:C,styles:y}=e,b=Qar(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:S,direction:w,empty:x}=$2.useContext(Uar.ConfigContext),E=S("empty",f),[R,O,T]=(0,Xar.default)(E),[M]=(0,qar.useLocale)("Empty"),_=typeof g<"u"?g:M==null?void 0:M.description,F=typeof _=="string"?_:"empty";let D=null;return typeof h=="string"?D=$2.createElement("img",{alt:F,src:h}):D=h,R($2.createElement("div",Object.assign({className:(0,dL.default)(O,T,E,x==null?void 0:x.className,{[`${E}-normal`]:h===$rt,[`${E}-rtl`]:w==="rtl"},c,u,(t=x==null?void 0:x.classNames)===null||t===void 0?void 0:t.root,C==null?void 0:C.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=x==null?void 0:x.styles)===null||n===void 0?void 0:n.root),x==null?void 0:x.style),y==null?void 0:y.root),v)},b),$2.createElement("div",{className:(0,dL.default)(`${E}-image`,(r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.image,C==null?void 0:C.image),style:Object.assign(Object.assign(Object.assign({},m),(i=x==null?void 0:x.styles)===null||i===void 0?void 0:i.image),y==null?void 0:y.image)},D),_&&$2.createElement("div",{className:(0,dL.default)(`${E}-description`,(o=x==null?void 0:x.classNames)===null||o===void 0?void 0:o.description,C==null?void 0:C.description),style:Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.description),y==null?void 0:y.description)},_),p&&$2.createElement("div",{className:(0,dL.default)(`${E}-footer`,(a=x==null?void 0:x.classNames)===null||a===void 0?void 0:a.footer,C==null?void 0:C.footer),style:Object.assign(Object.assign({},(l=x==null?void 0:x.styles)===null||l===void 0?void 0:l.footer),y==null?void 0:y.footer)},p)))};F0e.PRESENTED_IMAGE_DEFAULT=Rrt;F0e.PRESENTED_IMAGE_SIMPLE=$rt;m9.default=F0e;var Zar=pe.default,Jar=_e.default;Object.defineProperty(ep,"__esModule",{value:!0});ep.default=void 0;var fL=Jar(d),elr=Bt,cR=Zar(m9);const tlr=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,fL.useContext)(elr.ConfigContext),r=n("empty");switch(t){case"Table":case"List":return fL.default.createElement(cR.default,{image:cR.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return fL.default.createElement(cR.default,{image:cR.default.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return fL.default.createElement(cR.default,null)}};ep.default=tlr;var Id={},nlr=_e.default;Object.defineProperty(Id,"__esModule",{value:!0});Id.default=void 0;var AOe=nlr(d),rlr=Ir,DOe=Bt;const ilr=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:s}=AOe.useContext(DOe.ConfigContext),a=AOe.useContext(rlr.VariantContext),l=s==null?void 0:s.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=a??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=DOe.Variants.includes(c);return[c,u]};Id.default=ilr;var v9={};Object.defineProperty(v9,"__esModule",{value:!0});v9.default=void 0;const olr=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function slr(e,t){return e||olr(t)}v9.default=slr;var C9={},nU={};Object.defineProperty(nU,"__esModule",{value:!0});nU.default=void 0;var LOe=gn,jv=Rc;const FOe=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},alr=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,a=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,LOe.resetComponent)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
||
${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
|
||
`]:{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.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item,
|
||
${n}-prefix + ${n}-selection-wrap
|
||
`]:{[`${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"}},[`
|
||
&${n}-show-arrow ${n}-selector,
|
||
&${n}-allow-clear ${n}-selector
|
||
`]:{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"}},[`
|
||
${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
|
||
`]:{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()},[`
|
||
&${t}-show-arrow ${t}-selection-item,
|
||
&${t}-show-arrow ${t}-selection-placeholder
|
||
`]:{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.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:`${(0,QC.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),vlr=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,QC.unit)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,QC.unit)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Clr=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},plr(e)),mlr(e)),vlr(e))});iU.default=Clr;var oU=pe.default;Object.defineProperty(C9,"__esModule",{value:!0});C9.default=void 0;var hL=gn,ylr=dv,HOe=Zt,blr=oU(nU),Slr=oU(S0),wlr=oU(N0e),xlr=rU,Elr=oU(iU);const Rlr=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},$lr=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Olr=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},(0,hL.resetComponent)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Rlr(e)),$lr(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},hL.textEllipsis),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},hL.textEllipsis),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,hL.resetIcon)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Tlr=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Olr(e),(0,wlr.default)(e),(0,Slr.default)(e),(0,blr.default)(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,ylr.genCompactItemStyle)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};C9.default=(0,HOe.genStyleHooks)("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=(0,HOe.mergeToken)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Tlr(r),(0,Elr.default)(r)]},xlr.prepareComponentToken,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var y9={},tue={exports:{}},sU={},k0e={};Object.defineProperty(k0e,"__esModule",{value:!0});var Ilr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};k0e.default=Ilr;var Mlr=_e.default,z0e=pe.default;Object.defineProperty(sU,"__esModule",{value:!0});sU.default=void 0;var Plr=z0e(lr),Prt=Mlr(d),_lr=z0e(k0e),Alr=z0e(cr),Dlr=function(t,n){return Prt.createElement(Alr.default,(0,Plr.default)({},t,{ref:n,icon:_lr.default}))},Llr=Prt.forwardRef(Dlr);sU.default=Llr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(sU);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(tue,tue.exports);var aU=tue.exports,nue={exports:{}},lU={},B0e={};Object.defineProperty(B0e,"__esModule",{value:!0});var Flr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};B0e.default=Flr;var Nlr=_e.default,H0e=pe.default;Object.defineProperty(lU,"__esModule",{value:!0});lU.default=void 0;var klr=H0e(lr),_rt=Nlr(d),zlr=H0e(B0e),Blr=H0e(cr),Hlr=function(t,n){return _rt.createElement(Blr.default,(0,klr.default)({},t,{ref:n,icon:zlr.default}))},jlr=_rt.forwardRef(Hlr);lU.default=jlr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(lU);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(nue,nue.exports);var b9=nue.exports,rue={exports:{}},cU={},j0e={};Object.defineProperty(j0e,"__esModule",{value:!0});var Vlr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};j0e.default=Vlr;var Glr=_e.default,V0e=pe.default;Object.defineProperty(cU,"__esModule",{value:!0});cU.default=void 0;var Wlr=V0e(lr),Art=Glr(d),Ulr=V0e(j0e),qlr=V0e(cr),Klr=function(t,n){return Art.createElement(qlr.default,(0,Wlr.default)({},t,{ref:n,icon:Ulr.default}))},Ylr=Art.forwardRef(Klr);cU.default=Ylr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(cU);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(rue,rue.exports);var uU=rue.exports,S9=pe.default,Xlr=_e.default;Object.defineProperty(y9,"__esModule",{value:!0});y9.default=rcr;var Vv=Xlr(d),Qlr=S9(aU),Zlr=S9(av),Jlr=S9(Td),ecr=S9(b9),tcr=S9(Jg),ncr=S9(uU);function rcr(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:s,hasFeedback:a,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:h}=e;const g=n??Vv.createElement(Zlr.default,null),p=y=>t===null&&!a&&!f?null:Vv.createElement(Vv.Fragment,null,c!==!1&&y,a&&u);let m=null;if(t!==void 0)m=p(t);else if(o)m=p(Vv.createElement(tcr.default,{spin:!0}));else{const y=`${l}-suffix`;m=b=>{let{open:S,showSearch:w}=b;return p(S&&w?Vv.createElement(ncr.default,{className:y}):Vv.createElement(ecr.default,{className:y}))}}let v=null;r!==void 0?v=r:s?v=Vv.createElement(Qlr.default,null):v=null;let C=null;return i!==void 0?C=i:C=Vv.createElement(Jlr.default,null),{clearIcon:g,suffixIcon:m,itemIcon:v,removeIcon:C}}var sP={};Object.defineProperty(sP,"__esModule",{value:!0});sP.default=icr;function icr(e,t){return t!==void 0?t:e!==null}var ch=pe.default,Drt=_e.default;Object.defineProperty(N3,"__esModule",{value:!0});N3.default=void 0;var C2=Drt(d),jOe=ch(St),G0e=Drt(Mar),ocr=ch(mi),scr=ho,acr=$s,lcr=ch($c),VOe=Ql,ccr=Bt,ucr=ch(ep),dcr=ch(Co),fcr=ch(Xr),hcr=ch(io),gcr=Ir,pcr=ch(Id),mcr=ds,vcr=Zt,Ccr=ch(v9),ycr=ch(C9),bcr=ch(y9),Scr=ch(sP),wcr=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 Lrt="SECRET_COMBOBOX_MODE_DO_NOT_USE",xcr=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:o,rootClassName:s,getPopupContainer:a,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:h,size:g,disabled:p,notFoundContent:m,status:v,builtinPlacements:C,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:S,style:w,allowClear:x,variant:E,dropdownStyle:R,transitionName:O,tagRender:T,maxCount:M,prefix:_}=e,F=wcr(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:D,getPrefixCls:k,renderEmpty:L,direction:I,virtual:A,popupMatchSelectWidth:N,popupOverflow:B,select:z}=C2.useContext(ccr.ConfigContext),[,j]=(0,vcr.useToken)(),W=h??(j==null?void 0:j.controlHeight),G=k("select",r),K=k(),q=S??I,{compactSize:X,compactItemClassnames:Q}=(0,mcr.useCompactItemContext)(G,q),[te,ne]=(0,pcr.default)("select",E,i),Z=(0,fcr.default)(G),[ee,J,oe]=(0,ycr.default)(G,Z),le=C2.useMemo(()=>{const{mode:je}=e;if(je!=="combobox")return je===Lrt?"combobox":je},[e.mode]),ge=le==="multiple"||le==="tags",he=(0,Scr.default)(e.suffixIcon,e.showArrow),ye=(n=b??y)!==null&&n!==void 0?n:N,{status:ue,hasFeedback:ve,isFormItemInput:de,feedbackIcon:xe}=C2.useContext(gcr.FormItemInputContext),Ee=(0,VOe.getMergedStatus)(ue,v);let De;m!==void 0?De=m:le==="combobox"?De=null:De=(L==null?void 0:L("Select"))||C2.createElement(ucr.default,{componentName:"Select"});const{suffixIcon:Be,itemIcon:Ge,removeIcon:Ue,clearIcon:We}=(0,bcr.default)(Object.assign(Object.assign({},F),{multiple:ge,hasFeedback:ve,feedbackIcon:xe,showSuffixIcon:he,prefixCls:G,componentName:"Select"})),Ve=x===!0?{clearIcon:We}:x,Fe=(0,ocr.default)(F,["suffixIcon","itemIcon"]),ke=(0,jOe.default)(l||c,{[`${G}-dropdown-${q}`]:q==="rtl"},s,oe,Z,J),Ye=(0,hcr.default)(je=>{var Xe;return(Xe=g??X)!==null&&Xe!==void 0?Xe:je}),ze=C2.useContext(dcr.default),Re=p??ze,Le=(0,jOe.default)({[`${G}-lg`]:Ye==="large",[`${G}-sm`]:Ye==="small",[`${G}-rtl`]:q==="rtl",[`${G}-${te}`]:ne,[`${G}-in-form-item`]:de},(0,VOe.getStatusClassNames)(G,Ee,ve),Q,z==null?void 0:z.className,o,s,oe,Z,J),Me=C2.useMemo(()=>f!==void 0?f:q==="rtl"?"bottomRight":"bottomLeft",[f,q]),[be]=(0,scr.useZIndex)("SelectLike",R==null?void 0:R.zIndex);return ee(C2.createElement(G0e.default,Object.assign({ref:t,virtual:A,showSearch:z==null?void 0:z.showSearch},Fe,{style:Object.assign(Object.assign({},z==null?void 0:z.style),w),dropdownMatchSelectWidth:ye,transitionName:(0,acr.getTransitionName)(K,"slide-up",O),builtinPlacements:(0,Ccr.default)(C,B),listHeight:u,listItemHeight:W,mode:le,prefixCls:G,placement:Me,direction:q,prefix:_,suffixIcon:Be,menuItemSelectedIcon:Ge,removeIcon:Ue,allowClear:Ve,notFoundContent:De,className:Le,getPopupContainer:a||D,dropdownClassName:ke,disabled:Re,dropdownStyle:Object.assign(Object.assign({},R),{zIndex:be}),maxCount:ge?M:void 0,tagRender:ge?T:void 0})))},w9=C2.forwardRef(xcr),Ecr=(0,lcr.default)(w9,"dropdownAlign");w9.SECRET_COMBOBOX_MODE_DO_NOT_USE=Lrt;w9.Option=G0e.Option;w9.OptGroup=G0e.OptGroup;w9._InternalPanelDoNotUseOrYouWillBeFired=Ecr;N3.default=w9;var aP=pe.default,Rcr=_e.default;Object.defineProperty(QW,"__esModule",{value:!0});QW.default=void 0;var n8=Rcr(d),$cr=aP(St),Ocr=aP(qs),Frt=aP(mi),Tcr=ho,Icr=aP($c),Mcr=Bt,iue=aP(N3);const{Option:oue}=iue.default;function GOe(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const Pcr=(e,t)=>{var n;const{prefixCls:r,className:i,popupClassName:o,dropdownClassName:s,children:a,dataSource:l}=e,c=(0,Ocr.default)(a);let u;c.length===1&&n8.isValidElement(c[0])&&!GOe(c[0])&&([u]=c);const f=u?()=>u:void 0;let h;c.length&&GOe(c[0])?h=a:h=l?l.map(v=>{if(n8.isValidElement(v))return v;switch(typeof v){case"string":return n8.createElement(oue,{key:v,value:v},v);case"object":{const{value:C}=v;return n8.createElement(oue,{key:C,value:C},v.text)}default:return}}):[];const{getPrefixCls:g}=n8.useContext(Mcr.ConfigContext),p=g("select",r),[m]=(0,Tcr.useZIndex)("SelectLike",(n=e.dropdownStyle)===null||n===void 0?void 0:n.zIndex);return n8.createElement(iue.default,Object.assign({ref:t,suffixIcon:null},(0,Frt.default)(e,["dataSource","dropdownClassName"]),{prefixCls:p,popupClassName:o||s,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:m}),className:(0,$cr.default)(`${p}-auto-complete`,i),mode:iue.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:f}),h)},dU=n8.forwardRef(Pcr),_cr=(0,Icr.default)(dU,"dropdownAlign",e=>(0,Frt.default)(e,["visible"]));dU.Option=oue;dU._InternalPanelDoNotUseOrYouWillBeFired=_cr;QW.default=dU;var Nrt={},lP={},th={},Acr=pe.default;Object.defineProperty(th,"__esModule",{value:!0});th.default=kcr;th.responsiveArray=th.matchScreen=void 0;var Dcr=Acr(d),Lcr=Zt;const sue=th.responsiveArray=["xxl","xl","lg","md","sm","xs"],Fcr=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Ncr=e=>{const t=e,n=[].concat(sue).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),s=`screen${o}Min`,a=`screen${o}`;if(!(t[s]<=t[a]))throw new Error(`${s}<=${a} fails : !(${t[s]}<=${t[a]})`);if(i<n.length-1){const l=`screen${o}Max`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);const u=`screen${n[i+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function kcr(){const[,e]=(0,Lcr.useToken)(),t=Fcr(Ncr(e));return Dcr.default.useMemo(()=>{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(s=>s(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const s=t[o],a=this.matchHandlers[s];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const s=t[o],a=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(s);l.addListener(a),this.matchHandlers[s]={mql:l,listener:a},a(l)})},responsiveMap:t}},[e])}const zcr=(e,t)=>{if(t&&typeof t=="object")for(let n=0;n<sue.length;n++){const r=sue[n];if(e[r]&&t[r]!==void 0)return t[r]}};th.matchScreen=zcr;var Ym={},x9={},Bcr=_e.default;Object.defineProperty(x9,"__esModule",{value:!0});x9.default=jcr;var Hcr=Bcr(d);function jcr(){const[,e]=Hcr.useReducer(t=>t+1,0);return e}var W0e=pe.default;Object.defineProperty(Ym,"__esModule",{value:!0});Ym.default=void 0;var Vcr=d,Gcr=W0e(Sd),Wcr=W0e(x9),Ucr=W0e(th);function qcr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=(0,Vcr.useRef)({}),n=(0,Wcr.default)(),r=(0,Ucr.default)();return(0,Gcr.default)(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}Ym.default=qcr;var cP={},Kcr=_e.default;Object.defineProperty(cP,"__esModule",{value:!0});cP.default=void 0;var Ycr=Kcr(d);const Xcr=Ycr.createContext({});cP.default=Xcr;var ZC={};Object.defineProperty(ZC,"__esModule",{value:!0});ZC.prepareComponentToken=ZC.default=void 0;var Qcr=Kt,Zcr=gn,WOe=Zt;const Jcr=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:o,containerSize:s,containerSizeLG:a,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:h,borderRadiusLG:g,borderRadiusSM:p,lineWidth:m,lineType:v}=e,C=(y,b,S)=>({width:y,height:y,borderRadius:"50%",[`&${n}-square`]:{borderRadius:S},[`&${n}-icon`]:{fontSize:b,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Zcr.resetComponent)(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${(0,Qcr.unit)(m)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),C(s,c,h)),{"&-lg":Object.assign({},C(a,u,g)),"&-sm":Object.assign({},C(l,f,p)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},eur=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},krt=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:o,fontSizeXL:s,fontSizeHeading3:a,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((o+s)/2),textFontSizeLG:a,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}};ZC.prepareComponentToken=krt;ZC.default=(0,WOe.genStyleHooks)("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,WOe.mergeToken)(e,{avatarBg:n,avatarColor:t});return[Jcr(r),eur(r)]},krt);var ob=pe.default,tur=_e.default;Object.defineProperty(lP,"__esModule",{value:!0});lP.default=void 0;var Sa=tur(d),UOe=ob(St),nur=ob(pG),rur=Vi,iur=th,our=Bt,sur=ob(Xr),aur=ob(io),lur=ob(Ym),cur=ob(cP),uur=ob(ZC),dur=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 fur=(e,t)=>{const[n,r]=Sa.useState(1),[i,o]=Sa.useState(!1),[s,a]=Sa.useState(!0),l=Sa.useRef(null),c=Sa.useRef(null),u=(0,rur.composeRef)(t,l),{getPrefixCls:f,avatar:h}=Sa.useContext(our.ConfigContext),g=Sa.useContext(cur.default),p=()=>{if(!c.current||!l.current)return;const Q=c.current.offsetWidth,te=l.current.offsetWidth;if(Q!==0&&te!==0){const{gap:ne=4}=e;ne*2<te&&r(te-ne*2<Q?(te-ne*2)/Q:1)}};Sa.useEffect(()=>{o(!0)},[]),Sa.useEffect(()=>{a(!0),r(1)},[e.src]),Sa.useEffect(p,[e.gap]);const m=()=>{const{onError:Q}=e;(Q==null?void 0:Q())!==!1&&a(!1)},{prefixCls:v,shape:C,size:y,src:b,srcSet:S,icon:w,className:x,rootClassName:E,alt:R,draggable:O,children:T,crossOrigin:M}=e,_=dur(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),F=(0,aur.default)(Q=>{var te,ne;return(ne=(te=y??(g==null?void 0:g.size))!==null&&te!==void 0?te:Q)!==null&&ne!==void 0?ne:"default"}),D=Object.keys(typeof F=="object"?F||{}:{}).some(Q=>["xs","sm","md","lg","xl","xxl"].includes(Q)),k=(0,lur.default)(D),L=Sa.useMemo(()=>{if(typeof F!="object")return{};const Q=iur.responsiveArray.find(ne=>k[ne]),te=F[Q];return te?{width:te,height:te,fontSize:te&&(w||T)?te/2:18}:{}},[k,F]),I=f("avatar",v),A=(0,sur.default)(I),[N,B,z]=(0,uur.default)(I,A),j=(0,UOe.default)({[`${I}-lg`]:F==="large",[`${I}-sm`]:F==="small"}),W=Sa.isValidElement(b),G=C||(g==null?void 0:g.shape)||"circle",K=(0,UOe.default)(I,j,h==null?void 0:h.className,`${I}-${G}`,{[`${I}-image`]:W||b&&s,[`${I}-icon`]:!!w},z,A,x,E,B),q=typeof F=="number"?{width:F,height:F,fontSize:w?F/2:18}:{};let X;if(typeof b=="string"&&s)X=Sa.createElement("img",{src:b,draggable:O,srcSet:S,onError:m,alt:R,crossOrigin:M});else if(W)X=b;else if(w)X=w;else if(i||n!==1){const Q=`scale(${n})`,te={msTransform:Q,WebkitTransform:Q,transform:Q};X=Sa.createElement(nur.default,{onResize:p},Sa.createElement("span",{className:`${I}-string`,ref:c,style:Object.assign({},te)},T))}else X=Sa.createElement("span",{className:`${I}-string`,style:{opacity:0},ref:c},T);return delete _.onError,delete _.gap,N(Sa.createElement("span",Object.assign({},_,{style:Object.assign(Object.assign(Object.assign(Object.assign({},q),L),h==null?void 0:h.style),_.style),className:K,ref:u}),X))},hur=Sa.forwardRef(fur);lP.default=hur;var fU={},sb={},ab={};Object.defineProperty(ab,"__esModule",{value:!0});ab.default=void 0;var Sr={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Sr.F1&&n<=Sr.F12)return!1;switch(n){case Sr.ALT:case Sr.CAPS_LOCK:case Sr.CONTEXT_MENU:case Sr.CTRL:case Sr.DOWN:case Sr.END:case Sr.ESC:case Sr.HOME:case Sr.INSERT:case Sr.LEFT:case Sr.MAC_FF_META:case Sr.META:case Sr.NUMLOCK:case Sr.NUM_CENTER:case Sr.PAGE_DOWN:case Sr.PAGE_UP:case Sr.PAUSE:case Sr.PRINT_SCREEN:case Sr.RIGHT:case Sr.SHIFT:case Sr.UP:case Sr.WIN_KEY:case Sr.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Sr.ZERO&&t<=Sr.NINE||t>=Sr.NUM_ZERO&&t<=Sr.NUM_MULTIPLY||t>=Sr.A&&t<=Sr.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Sr.SPACE:case Sr.QUESTION_MARK:case Sr.NUM_PLUS:case Sr.NUM_MINUS:case Sr.NUM_PERIOD:case Sr.NUM_DIVISION:case Sr.SEMICOLON:case Sr.DASH:case Sr.EQUALS:case Sr.COMMA:case Sr.PERIOD:case Sr.SLASH:case Sr.APOSTROPHE:case Sr.SINGLE_QUOTE:case Sr.OPEN_SQUARE_BRACKET:case Sr.BACKSLASH:case Sr.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};ab.default=Sr;var E9={};Object.defineProperty(E9,"__esModule",{value:!0});E9.getRenderPropValue=void 0;const gur=e=>e?typeof e=="function"?e():e:null;E9.getRenderPropValue=gur;var gl={};const U0e=_r(tNt);var R9={},Xm={},tp={};Object.defineProperty(tp,"__esModule",{value:!0});tp.genRoundedArrow=void 0;tp.getArrowToken=mur;var pur=Kt;function mur(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,s=i,a=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,h=u,g=2*i-a,p=l,m=2*i-o,v=s,C=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),b=`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,S=`path('M ${o} ${s} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${h} L ${g} ${p} A ${r} ${r} 0 0 0 ${m} ${v} Z')`;return{arrowShadowWidth:C,arrowPath:S,arrowPolygon:b}}const vur=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:s,borderRadiusXS:a,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,pur.unit)(a)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};tp.genRoundedArrow=vur;Object.defineProperty(Xm,"__esModule",{value:!0});Xm.MAX_VERTICAL_CONTENT_RADIUS=void 0;Xm.default=Sur;Xm.getArrowOffsetToken=bur;var qOe=Kt,Cur=tp;const yur=Xm.MAX_VERTICAL_CONTENT_RADIUS=8;function bur(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?yur:r}}function gL(e,t){return e?t:{}}function Sur(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:s}=e,{arrowDistance:a=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,Cur.genRoundedArrow)(e,t,i)),{"&:before":{background:t}})]},gL(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:a,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,qOe.unit)(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),gL(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:a,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,qOe.unit)(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),gL(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:a},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),gL(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:a},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}Object.defineProperty(R9,"__esModule",{value:!0});R9.default=Rur;R9.getOverflowOptions=zrt;var wur=Xm;function zrt(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const s=Object.assign(Object.assign({},o),i);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const KOe={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},xur={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Eur=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Rur(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:s}=e,a=t/2,l={};return Object.keys(KOe).forEach(c=>{const u=r&&xur[c]||KOe[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,Eur.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=a+i;break}const h=(0,wur.getArrowOffsetToken)({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-h.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":f.offset[0]=h.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":f.offset[1]=-h.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":f.offset[1]=h.arrowOffsetHorizontal*2-a;break}f.overflow=zrt(c,h,t,n),s&&(f.htmlRegion="visibleFirst")}),l}var hU={},JC={},$ur=_e.default;Object.defineProperty(JC,"__esModule",{value:!0});JC.prepareComponentToken=JC.default=void 0;var YOe=Kt,Our=gn,Tur=Rc,aue=$ur(Xm),Iur=tp,WB=Zt;const Mur=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:s,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:h,sizePopupArrow:g}=e,p=t(s).add(g).add(h).equal(),m=t(s).mul(2).add(g).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Our.resetComponent)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:m,minHeight:l,padding:`${(0,YOe.unit)(e.calc(u).div(2).equal())} ${(0,YOe.unit)(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:s,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,aue.MAX_VERTICAL_CONTENT_RADIUS)}},[`${n}-content`]:{position:"relative"}}),(0,WB.genPresetColor)(e,(v,C)=>{let{darkColor:y}=C;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},(0,aue.default)(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Brt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,aue.getArrowOffsetToken)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,Iur.getArrowToken)((0,WB.mergeToken)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));JC.prepareComponentToken=Brt;JC.default=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,WB.genStyleHooks)("Tooltip",i=>{const{borderRadius:o,colorTextLightSolid:s,colorBgSpotlight:a}=i,l=(0,WB.mergeToken)(i,{tooltipMaxWidth:250,tooltipColor:s,tooltipBorderRadius:o,tooltipBg:a});return[Mur(l),(0,Tur.initZoomMotion)(i,"zoom-big-fast")]},Brt,{resetStyle:!1,injectStyle:n})(t)};var gU={},hv={},Pur=pe.default;Object.defineProperty(hv,"__esModule",{value:!0});hv.PresetStatusColorTypes=void 0;hv.isPresetColor=Dur;hv.isPresetStatusColor=Lur;var XOe=Pur(zr),lue=l9;const _ur=lue.PresetColors.map(e=>`${e}-inverse`),Aur=hv.PresetStatusColorTypes=["success","processing","error","default","warning"];function Dur(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,XOe.default)(_ur),(0,XOe.default)(lue.PresetColors)).includes(e):lue.PresetColors.includes(e)}function Lur(e){return Aur.includes(e)}var Fur=pe.default;Object.defineProperty(gU,"__esModule",{value:!0});gU.parseColor=zur;var Nur=Fur(St),kur=hv;function zur(e,t){const n=(0,kur.isPresetColor)(t),r=(0,Nur.default)({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}var Hrt=pe.default,Bur=_e.default;Object.defineProperty(hU,"__esModule",{value:!0});hU.default=void 0;var pL=Bur(d),Hur=Hrt(St),jur=U0e,Vur=Bt,Gur=Hrt(JC),Wur=gU;const Uur=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:s}=e,{getPrefixCls:a}=pL.useContext(Vur.ConfigContext),l=a("tooltip",t),[c,u,f]=(0,Gur.default)(l),h=(0,Wur.parseColor)(l,o),g=h.arrowStyle,p=Object.assign(Object.assign({},s),h.overlayStyle),m=(0,Hur.default)(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(pL.createElement("div",{className:m,style:g},pL.createElement("div",{className:`${l}-arrow`}),pL.createElement(jur.Popup,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),i)))};hU.default=Uur;var k3=pe.default,qur=_e.default;Object.defineProperty(gl,"__esModule",{value:!0});gl.default=void 0;var Xd=qur(d),Yne=k3(St),Kur=k3(U0e),Yur=k3(fa),Xur=k3(ah),Qur=ho,Zur=$s,Jur=k3(R9),QOe=Xi,edr=Lo,tdr=k3(cv),ndr=Bt,rdr=Zt,idr=k3(hU),odr=k3(JC),sdr=gU,adr=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 ldr=Xd.forwardRef((e,t)=>{var n,r,i,o,s,a;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:f,overlayInnerStyle:h,children:g,afterOpenChange:p,afterVisibleChange:m,destroyTooltipOnHide:v,arrow:C=!0,title:y,overlay:b,builtinPlacements:S,arrowPointAtCenter:w=!1,autoAdjustOverflow:x=!0}=e,E=!!C,[,R]=(0,rdr.useToken)(),{getPopupContainer:O,getPrefixCls:T,direction:M,tooltip:_}=Xd.useContext(ndr.ConfigContext),F=(0,edr.devUseWarning)("Tooltip"),D=Xd.useRef(null),k=()=>{var Fe;(Fe=D.current)===null||Fe===void 0||Fe.forceAlign()};Xd.useImperativeHandle(t,()=>{var Fe;return{forceAlign:k,forcePopupAlign:()=>{F.deprecated(!1,"forcePopupAlign","forceAlign"),k()},nativeElement:(Fe=D.current)===null||Fe===void 0?void 0:Fe.nativeElement}});const[L,I]=(0,Yur.default)(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!y&&!b&&y!==0,N=Fe=>{var ke,Ye;I(A?!1:Fe),A||((ke=e.onOpenChange)===null||ke===void 0||ke.call(e,Fe),(Ye=e.onVisibleChange)===null||Ye===void 0||Ye.call(e,Fe))},B=Xd.useMemo(()=>{var Fe,ke;let Ye=w;return typeof C=="object"&&(Ye=(ke=(Fe=C.pointAtCenter)!==null&&Fe!==void 0?Fe:C.arrowPointAtCenter)!==null&&ke!==void 0?ke:w),S||(0,Jur.default)({arrowPointAtCenter:Ye,autoAdjustOverflow:x,arrowWidth:E?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[w,C,S,R]),z=Xd.useMemo(()=>y===0?y:b||y||"",[b,y]),j=Xd.createElement(Xur.default,{space:!0},typeof z=="function"?z():z),{getPopupContainer:W,placement:G="top",mouseEnterDelay:K=.1,mouseLeaveDelay:q=.1,overlayStyle:X,rootClassName:Q,overlayClassName:te,styles:ne,classNames:Z}=e,ee=adr(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),J=T("tooltip",l),oe=T(),le=e["data-popover-inject"];let ge=L;!("open"in e)&&!("visible"in e)&&A&&(ge=!1);const he=Xd.isValidElement(g)&&!(0,QOe.isFragment)(g)?g:Xd.createElement("span",null,g),ye=he.props,ue=!ye.className||typeof ye.className=="string"?(0,Yne.default)(ye.className,c||`${J}-open`):ye.className,[ve,de,xe]=(0,odr.default)(J,!le),Ee=(0,sdr.parseColor)(J,f),De=Ee.arrowStyle,Be=(0,Yne.default)(te,{[`${J}-rtl`]:M==="rtl"},Ee.className,Q,de,xe,_==null?void 0:_.className,(i=_==null?void 0:_.classNames)===null||i===void 0?void 0:i.root,Z==null?void 0:Z.root),Ge=(0,Yne.default)((o=_==null?void 0:_.classNames)===null||o===void 0?void 0:o.body,Z==null?void 0:Z.body),[Ue,We]=(0,Qur.useZIndex)("Tooltip",ee.zIndex),Ve=Xd.createElement(Kur.default,Object.assign({},ee,{zIndex:Ue,showArrow:E,placement:G,mouseEnterDelay:K,mouseLeaveDelay:q,prefixCls:J,classNames:{root:Be,body:Ge},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},De),(s=_==null?void 0:_.styles)===null||s===void 0?void 0:s.root),_==null?void 0:_.style),X),ne==null?void 0:ne.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(a=_==null?void 0:_.styles)===null||a===void 0?void 0:a.body),h),ne==null?void 0:ne.body),Ee.overlayStyle)},getTooltipContainer:W||u||O,ref:D,builtinPlacements:B,overlay:j,visible:ge,onVisibleChange:N,afterVisibleChange:p??m,arrowContent:Xd.createElement("span",{className:`${J}-arrow-content`}),motion:{motionName:(0,Zur.getTransitionName)(oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),ge?(0,QOe.cloneElement)(he,{className:ue}):he);return ve(Xd.createElement(tdr.default.Provider,{value:We},Ve))}),jrt=ldr;jrt._InternalPanelDoNotUseOrYouWillBeFired=idr.default;gl.default=jrt;var gm={},ey={},cdr=_e.default;Object.defineProperty(ey,"__esModule",{value:!0});ey.prepareComponentToken=ey.default=void 0;var udr=gn,ddr=Rc,Vrt=cdr(Xm),fdr=tp,cue=Zt;const hdr=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:s,colorTextHeading:a,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:h,titleBorderBottom:g,innerContentPadding:p,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},(0,udr.resetComponent)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:l,boxShadow:s,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:u,color:a,fontWeight:i,borderBottom:g,padding:m},[`${t}-inner-content`]:{color:n,padding:p}})},(0,Vrt.default)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},gdr=e=>{const{componentCls:t}=e;return{[t]:cue.PresetColors.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Grt=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:o,zIndexPopupBase:s,borderRadiusLG:a,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,h=n-r,g=h/2,p=h/2-t,m=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},(0,fdr.getArrowToken)(e)),(0,Vrt.getArrowOffsetToken)({contentRadius:a,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${g}px ${m}px ${p}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${f}px ${m}px`:0})};ey.prepareComponentToken=Grt;ey.default=(0,cue.genStyleHooks)("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=(0,cue.mergeToken)(e,{popoverBg:t,popoverColor:n});return[hdr(r),gdr(r),(0,ddr.initZoomMotion)(r,"zoom-big")]},Grt,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Wrt=pe.default,pdr=_e.default;Object.defineProperty(gm,"__esModule",{value:!0});gm.default=gm.RawPurePanel=gm.Overlay=void 0;var em=pdr(d),Urt=Wrt(St),mdr=U0e,ZOe=E9,vdr=Bt,Cdr=Wrt(ey),ydr=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 qrt=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:em.createElement(em.Fragment,null,t&&em.createElement("div",{className:`${r}-title`},t),n&&em.createElement("div",{className:`${r}-inner-content`},n))};gm.Overlay=qrt;const Krt=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:s,content:a,children:l}=e,c=(0,ZOe.getRenderPropValue)(s),u=(0,ZOe.getRenderPropValue)(a),f=(0,Urt.default)(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return em.createElement("div",{className:f,style:i},em.createElement("div",{className:`${n}-arrow`}),em.createElement(mdr.Popup,Object.assign({},e,{className:t,prefixCls:n}),l||em.createElement(qrt,{prefixCls:n,title:c,content:u})))};gm.RawPurePanel=Krt;const bdr=e=>{const{prefixCls:t,className:n}=e,r=ydr(e,["prefixCls","className"]),{getPrefixCls:i}=em.useContext(vdr.ConfigContext),o=i("popover",t),[s,a,l]=(0,Cdr.default)(o);return s(em.createElement(Krt,Object.assign({},r,{prefixCls:o,hashId:a,className:(0,Urt.default)(n,l)})))};gm.default=bdr;var uP=pe.default,Yrt=_e.default;Object.defineProperty(sb,"__esModule",{value:!0});sb.default=void 0;var uR=Yrt(d),JOe=uP(St),Sdr=uP(fa),wdr=uP(ab),eTe=E9,xdr=$s,Edr=Xi,Rdr=Bt,$dr=uP(gl),Xrt=Yrt(gm),Odr=uP(ey),Tdr=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 Idr=uR.forwardRef((e,t)=>{var n,r,i,o,s,a;const{prefixCls:l,title:c,content:u,overlayClassName:f,placement:h="top",trigger:g="hover",children:p,mouseEnterDelay:m=.1,mouseLeaveDelay:v=.1,onOpenChange:C,overlayStyle:y={},styles:b,classNames:S}=e,w=Tdr(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:x,getPrefixCls:E}=uR.useContext(Rdr.ConfigContext),R=E("popover",l),[O,T,M]=(0,Odr.default)(R),_=E(),F=(0,JOe.default)(f,T,M,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.root,S==null?void 0:S.root),D=(0,JOe.default)((r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.body,S==null?void 0:S.body),[k,L]=(0,Sdr.default)(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),I=(j,W)=>{L(j,!0),C==null||C(j,W)},A=j=>{j.keyCode===wdr.default.ESC&&I(!1,j)},N=j=>{I(j)},B=(0,eTe.getRenderPropValue)(c),z=(0,eTe.getRenderPropValue)(u);return O(uR.createElement($dr.default,Object.assign({placement:h,trigger:g,mouseEnterDelay:m,mouseLeaveDelay:v},w,{prefixCls:R,classNames:{root:F,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.root),x==null?void 0:x.style),y),b==null?void 0:b.root),body:Object.assign(Object.assign({},(a=x==null?void 0:x.styles)===null||a===void 0?void 0:a.body),b==null?void 0:b.body)},ref:t,open:k,onOpenChange:N,overlay:B||z?uR.createElement(Xrt.Overlay,{prefixCls:R,title:B,content:z}):null,transitionName:(0,xdr.getTransitionName)(_,"zoom-big",w.transitionName),"data-popover-inject":!0}),(0,Edr.cloneElement)(p,{onKeyDown:j=>{var W,G;uR.isValidElement(p)&&((G=p==null?void 0:(W=p.props).onKeyDown)===null||G===void 0||G.call(W,j)),A(j)}})))}),Qrt=Idr;Qrt._InternalPanelDoNotUseOrYouWillBeFired=Xrt.default;sb.default=Qrt;var lb=pe.default,Mdr=_e.default;Object.defineProperty(fU,"__esModule",{value:!0});fU.default=void 0;var Fp=Mdr(d),tTe=lb(St),Pdr=lb(qs),_dr=Xi,Adr=Bt,Ddr=lb(Xr),Ldr=lb(sb),Fdr=lb(lP),nTe=lb(cP),Ndr=lb(ZC);const rTe=e=>{const{size:t,shape:n}=Fp.useContext(nTe.default),r=Fp.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return Fp.createElement(nTe.default.Provider,{value:r},e.children)},kdr=e=>{var t,n,r,i;const{getPrefixCls:o,direction:s}=Fp.useContext(Adr.ConfigContext),{prefixCls:a,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:h,size:g,shape:p,maxPopoverPlacement:m,maxPopoverTrigger:v,children:C,max:y}=e,b=o("avatar",a),S=`${b}-group`,w=(0,Ddr.default)(b),[x,E,R]=(0,Ndr.default)(b,w),O=(0,tTe.default)(S,{[`${S}-rtl`]:s==="rtl"},R,w,l,c,E),T=(0,Pdr.default)(C).map((F,D)=>(0,_dr.cloneElement)(F,{key:`avatar-key-${D}`})),M=(y==null?void 0:y.count)||f,_=T.length;if(M&&M<_){const F=T.slice(0,M),D=T.slice(M,_),k=(y==null?void 0:y.style)||h,L=((t=y==null?void 0:y.popover)===null||t===void 0?void 0:t.trigger)||v||"hover",I=((n=y==null?void 0:y.popover)===null||n===void 0?void 0:n.placement)||m||"top",A=Object.assign(Object.assign({content:D},y==null?void 0:y.popover),{classNames:{root:(0,tTe.default)(`${S}-popover`,(i=(r=y==null?void 0:y.popover)===null||r===void 0?void 0:r.classNames)===null||i===void 0?void 0:i.root)},placement:I,trigger:L});return F.push(Fp.createElement(Ldr.default,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},A),Fp.createElement(Fdr.default,{style:k},`+${_-M}`))),x(Fp.createElement(rTe,{shape:p,size:g},Fp.createElement("div",{className:O,style:u},F)))}return x(Fp.createElement(rTe,{shape:p,size:g},Fp.createElement("div",{className:O,style:u},T)))};fU.default=kdr;(function(e){"use client";var t=pe.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return r.default}}),e.default=void 0;var n=t(lP),r=t(fU);const i=n.default;i.Group=r.default,e.default=i})(Nrt);var pU={},uue={exports:{}},mU={},q0e={};Object.defineProperty(q0e,"__esModule",{value:!0});var zdr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};q0e.default=zdr;var Bdr=_e.default,K0e=pe.default;Object.defineProperty(mU,"__esModule",{value:!0});mU.default=void 0;var Hdr=K0e(lr),Zrt=Bdr(d),jdr=K0e(q0e),Vdr=K0e(cr),Gdr=function(t,n){return Zrt.createElement(Vdr.default,(0,Hdr.default)({},t,{ref:n,icon:jdr.default}))},Wdr=Zrt.forwardRef(Gdr);mU.default=Wdr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(mU);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(uue,uue.exports);var Jrt=uue.exports,O7={};Object.defineProperty(O7,"__esModule",{value:!0});O7.prepareComponentToken=O7.default=void 0;var due=Kt,Udr=gn,iTe=Zt;const qdr=e=>{const{componentCls:t,backTopFontSize:n,backTopSize:r,zIndexPopup:i}=e;return{[t]:Object.assign(Object.assign({},(0,Udr.resetComponent)(e)),{position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:i,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:r,height:r,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:r,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:(0,due.unit)(r)}})}},Kdr=e=>{const{componentCls:t,screenMD:n,screenXS:r,backTopInlineEndMD:i,backTopInlineEndXS:o}=e;return{[`@media (max-width: ${(0,due.unit)(n)})`]:{[t]:{insetInlineEnd:i}},[`@media (max-width: ${(0,due.unit)(r)})`]:{[t]:{insetInlineEnd:o}}}},eit=e=>({zIndexPopup:e.zIndexBase+10});O7.prepareComponentToken=eit;O7.default=(0,iTe.genStyleHooks)("BackTop",e=>{const{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:r,colorText:i,controlHeightLG:o,calc:s}=e,a=(0,iTe.mergeToken)(e,{backTopBackground:n,backTopColor:r,backTopHoverBackground:i,backTopFontSize:t,backTopSize:o,backTopBlockEnd:s(o).mul(1.25).equal(),backTopInlineEnd:s(o).mul(2.5).equal(),backTopInlineEndMD:s(o).mul(1.5).equal(),backTopInlineEndXS:s(o).mul(.5).equal()});return[qdr(a),Kdr(a)]},eit);var z3=pe.default,Ydr=_e.default;Object.defineProperty(pU,"__esModule",{value:!0});pU.default=void 0;var T1=Ydr(d),Xdr=z3(Jrt),oTe=z3(St),Qdr=z3(Qg),Zdr=z3(mi),Jdr=z3(O3),efr=Xi,tfr=z3(u9),nfr=z3(r9),rfr=Bt,ifr=z3(O7);const ofr=e=>{const{prefixCls:t,className:n,rootClassName:r,visibilityHeight:i=400,target:o,onClick:s,duration:a=450}=e,[l,c]=T1.useState(i===0),u=T1.useRef(null),f=()=>{var R;return((R=u.current)===null||R===void 0?void 0:R.ownerDocument)||window},h=(0,nfr.default)(R=>{const O=(0,Jdr.default)(R.target);c(O>=i)});T1.useEffect(()=>{const O=(o||f)();return h({target:O}),O==null||O.addEventListener("scroll",h),()=>{h.cancel(),O==null||O.removeEventListener("scroll",h)}},[o]);const g=R=>{(0,tfr.default)(0,{getContainer:o||f,duration:a}),s==null||s(R)},{getPrefixCls:p,direction:m}=T1.useContext(rfr.ConfigContext),v=p("back-top",t),C=p(),[y,b,S]=(0,ifr.default)(v),w=(0,oTe.default)(b,S,v,{[`${v}-rtl`]:m==="rtl"},n,r),x=(0,Zdr.default)(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),E=T1.createElement("div",{className:`${v}-content`},T1.createElement("div",{className:`${v}-icon`},T1.createElement(Xdr.default,null)));return y(T1.createElement("div",Object.assign({},x,{className:w,onClick:g,ref:u}),T1.createElement(Qdr.default,{visible:l,motionName:`${C}-fade`},R=>{let{className:O}=R;return(0,efr.cloneElement)(e.children||E,T=>{let{className:M}=T;return{className:(0,oTe.default)(O,M)}})})))};pU.default=ofr;var dP={},vU={},CU={},w0={};Object.defineProperty(w0,"__esModule",{value:!0});w0.prepareToken=w0.prepareComponentToken=w0.default=void 0;var sg=Kt,sfr=gn,Y0e=Zt;const afr=new sg.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),lfr=new sg.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),cfr=new sg.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),ufr=new sg.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),dfr=new sg.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),ffr=new sg.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),hfr=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:o,textFontSizeSM:s,statusSize:a,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:h,calc:g}=e,p=`${r}-scroll-number`,m=(0,Y0e.genPresetColor)(e,(v,C)=>{let{darkColor:y}=C;return{[`&${t} ${t}-color-${v}`]:{background:y,[`&:not(${t}-count)`]:{color:y},"a:hover &":{background:y}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,sfr.resetComponent)(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:o,lineHeight:(0,sg.unit)(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:g(u).div(2).equal(),boxShadow:`0 0 0 ${(0,sg.unit)(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:s,lineHeight:(0,sg.unit)(f),borderRadius:g(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${(0,sg.unit)(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,sg.unit)(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${p}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:ffr,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:a,height:a,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:afr,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:lfr,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:cfr,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:ufr,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:dfr,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${p}-custom-component, ${t}-count`]:{transform:"none"},[`${p}-custom-component, ${p}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[p]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${p}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${p}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${p}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${p}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},tit=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,o=t,s=n,a=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return(0,Y0e.mergeToken)(e,{badgeFontHeight:o,badgeShadowSize:s,badgeTextColor:a,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})};w0.prepareToken=tit;const nit=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}};w0.prepareComponentToken=nit;w0.default=(0,Y0e.genStyleHooks)("Badge",e=>{const t=tit(e);return hfr(t)},nit);Object.defineProperty(CU,"__esModule",{value:!0});CU.default=void 0;var Xne=Kt,sTe=w0,gfr=gn,rit=Zt;const pfr=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:o}=e,s=`${t}-ribbon`,a=`${t}-ribbon-wrapper`,l=(0,rit.genPresetColor)(e,(c,u)=>{let{darkColor:f}=u;return{[`&${s}-color-${c}`]:{background:f,color:f}}});return{[a]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,gfr.resetComponent)(e)),{position:"absolute",top:r,padding:`0 ${(0,Xne.unit)(e.paddingXS)}`,color:e.colorPrimary,lineHeight:(0,Xne.unit)(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-text`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${(0,Xne.unit)(o(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${s}-placement-end`]:{insetInlineEnd:o(i).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:o(i).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};CU.default=(0,rit.genStyleHooks)(["Badge","Ribbon"],e=>{const t=(0,sTe.prepareToken)(e);return pfr(t)},sTe.prepareComponentToken);var iit=pe.default,mfr=_e.default;Object.defineProperty(vU,"__esModule",{value:!0});vU.default=void 0;var dR=mfr(d),Qne=iit(St),vfr=hv,Cfr=Bt,yfr=iit(CU);const bfr=e=>{const{className:t,prefixCls:n,style:r,color:i,children:o,text:s,placement:a="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=dR.useContext(Cfr.ConfigContext),f=c("ribbon",n),h=`${f}-wrapper`,[g,p,m]=(0,yfr.default)(f,h),v=(0,vfr.isPresetColor)(i,!1),C=(0,Qne.default)(f,`${f}-placement-${a}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${i}`]:v},t),y={},b={};return i&&!v&&(y.background=i,b.color=i),g(dR.createElement("div",{className:(0,Qne.default)(h,l,p,m)},o,dR.createElement("div",{className:(0,Qne.default)(C,p),style:Object.assign(Object.assign({},y),r)},dR.createElement("span",{className:`${f}-text`},s),dR.createElement("div",{className:`${f}-corner`,style:b}))))};vU.default=bfr;var yU={},bU={},Sfr=pe.default,wfr=_e.default;Object.defineProperty(bU,"__esModule",{value:!0});bU.default=void 0;var r8=wfr(d),xfr=Sfr(St);const aTe=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let o;return i&&(o={position:"absolute",top:`${i}00%`,left:0}),r8.createElement("span",{style:o,className:(0,xfr.default)(`${t}-only-unit`,{current:r})},n)};function Efr(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const Rfr=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),o=Math.abs(n),[s,a]=r8.useState(i),[l,c]=r8.useState(o),u=()=>{a(i),c(o)};r8.useEffect(()=>{const g=setTimeout(u,1e3);return()=>clearTimeout(g)},[i]);let f,h;if(s===i||Number.isNaN(i)||Number.isNaN(s))f=[r8.createElement(aTe,Object.assign({},e,{key:i,current:!0}))],h={transition:"none"};else{f=[];const g=i+10,p=[];for(let y=i;y<=g;y+=1)p.push(y);const m=l<o?1:-1,v=p.findIndex(y=>y%10===s);f=(m<0?p.slice(0,v+1):p.slice(v)).map((y,b)=>{const S=y%10;return r8.createElement(aTe,Object.assign({},e,{key:y,value:S,offset:m<0?b-v:b,current:b===v}))}),h={transform:`translateY(${-Efr(s,i,m)}00%)`}}return r8.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:u},f)};bU.default=Rfr;var oit=pe.default,$fr=_e.default;Object.defineProperty(yU,"__esModule",{value:!0});yU.default=void 0;var fR=$fr(d),lTe=oit(St),Ofr=Xi,Tfr=Bt,Ifr=oit(bU),Mfr=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 Pfr=fR.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:o,style:s,title:a,show:l,component:c="sup",children:u}=e,f=Mfr(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=fR.useContext(Tfr.ConfigContext),g=h("scroll-number",n),p=Object.assign(Object.assign({},f),{"data-show":l,style:s,className:(0,lTe.default)(g,i,o),title:a});let m=r;if(r&&Number(r)%1===0){const v=String(r).split("");m=fR.createElement("bdi",null,v.map((C,y)=>fR.createElement(Ifr.default,{prefixCls:g,count:Number(r),value:C,key:v.length-y})))}return s!=null&&s.borderColor&&(p.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),u?(0,Ofr.cloneElement)(u,v=>({className:(0,lTe.default)(`${g}-custom-component`,v==null?void 0:v.className,o)})):fR.createElement(c,Object.assign({},p,{ref:t}),m)});yU.default=Pfr;var fP=pe.default,_fr=_e.default;Object.defineProperty(dP,"__esModule",{value:!0});dP.default=void 0;var Z5=_fr(d),I1=Z5,Zne=fP(St),Afr=fP(Qg),Dfr=hv,Lfr=Xi,Ffr=Bt,Nfr=fP(vU),kfr=fP(yU),zfr=fP(w0),Bfr=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 Hfr=I1.forwardRef((e,t)=>{var n,r,i,o,s;const{prefixCls:a,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:h,count:g=null,overflowCount:p=99,dot:m=!1,size:v="default",title:C,offset:y,style:b,className:S,rootClassName:w,classNames:x,styles:E,showZero:R=!1}=e,O=Bfr(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:T,direction:M,badge:_}=I1.useContext(Ffr.ConfigContext),F=T("badge",a),[D,k,L]=(0,zfr.default)(F),I=g>p?`${p}+`:g,A=I==="0"||I===0,N=g===null||A&&!R,B=(u!=null||h!=null)&&N,z=m&&!A,j=z?"":I,W=(0,Z5.useMemo)(()=>(j==null||j===""||A&&!R)&&!z,[j,A,R,z]),G=(0,Z5.useRef)(g);W||(G.current=g);const K=G.current,q=(0,Z5.useRef)(j);W||(q.current=j);const X=q.current,Q=(0,Z5.useRef)(z);W||(Q.current=z);const te=(0,Z5.useMemo)(()=>{if(!y)return Object.assign(Object.assign({},_==null?void 0:_.style),b);const he={marginTop:y[1]};return M==="rtl"?he.left=parseInt(y[0],10):he.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},he),_==null?void 0:_.style),b)},[M,y,b,_==null?void 0:_.style]),ne=C??(typeof K=="string"||typeof K=="number"?K:void 0),Z=W||!f?null:I1.createElement("span",{className:`${F}-status-text`},f),ee=!K||typeof K!="object"?void 0:(0,Lfr.cloneElement)(K,he=>({style:Object.assign(Object.assign({},te),he.style)})),J=(0,Dfr.isPresetColor)(h,!1),oe=(0,Zne.default)(x==null?void 0:x.indicator,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.indicator,{[`${F}-status-dot`]:B,[`${F}-status-${u}`]:!!u,[`${F}-color-${h}`]:J}),le={};h&&!J&&(le.color=h,le.background=h);const ge=(0,Zne.default)(F,{[`${F}-status`]:B,[`${F}-not-a-wrapper`]:!c,[`${F}-rtl`]:M==="rtl"},S,w,_==null?void 0:_.className,(r=_==null?void 0:_.classNames)===null||r===void 0?void 0:r.root,x==null?void 0:x.root,k,L);if(!c&&B){const he=te.color;return D(I1.createElement("span",Object.assign({},O,{className:ge,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.root),(i=_==null?void 0:_.styles)===null||i===void 0?void 0:i.root),te)}),I1.createElement("span",{className:oe,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(o=_==null?void 0:_.styles)===null||o===void 0?void 0:o.indicator),le)}),f&&I1.createElement("span",{style:{color:he},className:`${F}-status-text`},f)))}return D(I1.createElement("span",Object.assign({ref:t},O,{className:ge,style:Object.assign(Object.assign({},(s=_==null?void 0:_.styles)===null||s===void 0?void 0:s.root),E==null?void 0:E.root)}),c,I1.createElement(Afr.default,{visible:!W,motionName:`${F}-zoom`,motionAppear:!1,motionDeadline:1e3},he=>{let{className:ye}=he;var ue,ve;const de=T("scroll-number",l),xe=Q.current,Ee=(0,Zne.default)(x==null?void 0:x.indicator,(ue=_==null?void 0:_.classNames)===null||ue===void 0?void 0:ue.indicator,{[`${F}-dot`]:xe,[`${F}-count`]:!xe,[`${F}-count-sm`]:v==="small",[`${F}-multiple-words`]:!xe&&X&&X.toString().length>1,[`${F}-status-${u}`]:!!u,[`${F}-color-${h}`]:J});let De=Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(ve=_==null?void 0:_.styles)===null||ve===void 0?void 0:ve.indicator),te);return h&&!J&&(De=De||{},De.background=h),I1.createElement(kfr.default,{prefixCls:de,show:!W,motionClassName:ye,className:Ee,count:X,title:ne,style:De,key:"scrollNumber"},ee)}),Z))}),sit=Hfr;sit.Ribbon=Nfr.default;dP.default=sit;var SU={},wU={},T7={},$9={};const jfr=_r(ANt);var xU={};Object.defineProperty(xU,"__esModule",{value:!0});xU.default=void 0;const Vfr=e=>typeof e!="object"&&typeof e!="function"||e===null;xU.default=Vfr;var O9={};const hP=_r(mkt);var B0={},fue={exports:{}},EU={},X0e={};Object.defineProperty(X0e,"__esModule",{value:!0});var Gfr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};X0e.default=Gfr;var Wfr=_e.default,Q0e=pe.default;Object.defineProperty(EU,"__esModule",{value:!0});EU.default=void 0;var Ufr=Q0e(lr),ait=Wfr(d),qfr=Q0e(X0e),Kfr=Q0e(cr),Yfr=function(t,n){return ait.createElement(Kfr.default,(0,Ufr.default)({},t,{ref:n,icon:qfr.default}))},Xfr=ait.forwardRef(Yfr);EU.default=Xfr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(EU);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(fue,fue.exports);var Qfr=fue.exports,hue={exports:{}},RU={},Z0e={};Object.defineProperty(Z0e,"__esModule",{value:!0});var Zfr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};Z0e.default=Zfr;var Jfr=_e.default,J0e=pe.default;Object.defineProperty(RU,"__esModule",{value:!0});RU.default=void 0;var ehr=J0e(lr),lit=Jfr(d),thr=J0e(Z0e),nhr=J0e(cr),rhr=function(t,n){return lit.createElement(nhr.default,(0,ehr.default)({},t,{ref:n,icon:thr.default}))},ihr=lit.forwardRef(rhr);RU.default=ihr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(RU);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(hue,hue.exports);var T9=hue.exports,$U={};Object.defineProperty($U,"__esModule",{value:!0});$U.default=void 0;const ohr=e=>!isNaN(parseFloat(e))&&isFinite(e);$U.default=ohr;var gP={},shr=_e.default;Object.defineProperty(gP,"__esModule",{value:!0});gP.LayoutContext=void 0;var ahr=shr(d);gP.LayoutContext=ahr.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var OU={},x0={};Object.defineProperty(x0,"__esModule",{value:!0});x0.prepareComponentToken=x0.default=x0.DEPRECATED_TOKENS=void 0;var lhr=Kt,chr=Zt;const uhr=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:s,headerColor:a,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:s,color:a,lineHeight:(0,lhr.unit)(o),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},cit=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:s,colorTextLightSolid:a,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+s*2,triggerBg:"#002140",triggerColor:a,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};x0.prepareComponentToken=cit;const dhr=x0.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];x0.default=(0,chr.genStyleHooks)("Layout",e=>[uhr(e)],cit,{deprecatedTokens:dhr});Object.defineProperty(OU,"__esModule",{value:!0});OU.default=void 0;var fhr=Kt,cTe=x0,hhr=Zt;const ghr=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:s,triggerColor:a,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadius:h,lightSiderBg:g,lightTriggerColor:p,lightTriggerBg:m,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:a,lineHeight:(0,fhr.unit)(s),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}},"&-light":{background:g,[`${t}-trigger`]:{color:p,background:m},[`${t}-zero-width-trigger`]:{color:p,background:m,border:`1px solid ${v}`,borderInlineStart:0}}}}};OU.default=(0,hhr.genStyleHooks)(["Layout","Sider"],e=>({[`${e.antCls}-layout`]:ghr(e)}),cTe.prepareComponentToken,{deprecatedTokens:cTe.DEPRECATED_TOKENS});var cb=pe.default,phr=_e.default;Object.defineProperty(B0,"__esModule",{value:!0});B0.default=B0.SiderContext=void 0;var j1=phr(d),Bu=j1,mhr=cb(Qfr),uTe=cb(T9),dTe=cb(P3),fTe=cb(St),vhr=cb(mi),Chr=cb($U),yhr=Bt,bhr=gP,Shr=cb(OU),whr=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 hTe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},xhr=B0.SiderContext=Bu.createContext({}),Ehr=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),Rhr=Bu.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:s=!1,theme:a="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:g,breakpoint:p,onCollapse:m,onBreakpoint:v}=e,C=whr(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=(0,j1.useContext)(bhr.LayoutContext),[b,S]=(0,j1.useState)("collapsed"in e?e.collapsed:s),[w,x]=(0,j1.useState)(!1);(0,j1.useEffect)(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const E=(I,A)=>{"collapsed"in e||S(I),m==null||m(I,A)},{getPrefixCls:R}=(0,j1.useContext)(yhr.ConfigContext),O=R("layout-sider",n),[T,M,_]=(0,Shr.default)(O),F=(0,j1.useRef)(null);F.current=I=>{x(I.matches),v==null||v(I.matches),b!==I.matches&&E(I.matches,"responsive")},(0,j1.useEffect)(()=>{function I(N){return F.current(N)}let A;if(typeof window<"u"){const{matchMedia:N}=window;if(N&&p&&p in hTe){A=N(`screen and (max-width: ${hTe[p]})`);try{A.addEventListener("change",I)}catch{A.addListener(I)}I(A)}}return()=>{try{A==null||A.removeEventListener("change",I)}catch{A==null||A.removeListener(I)}}},[p]),(0,j1.useEffect)(()=>{const I=Ehr("ant-sider-");return y.addSider(I),()=>y.removeSider(I)},[]);const D=()=>{E(!b,"clickTrigger")},k=()=>{const I=(0,vhr.default)(C,["collapsed"]),A=b?h:f,N=(0,Chr.default)(A)?`${A}px`:String(A),B=parseFloat(String(h||0))===0?Bu.createElement("span",{onClick:D,className:(0,fTe.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:g},i||Bu.createElement(mhr.default,null)):null,W={expanded:u?Bu.createElement(dTe.default,null):Bu.createElement(uTe.default,null),collapsed:u?Bu.createElement(uTe.default,null):Bu.createElement(dTe.default,null)}[b?"collapsed":"expanded"],G=i!==null?B||Bu.createElement("div",{className:`${O}-trigger`,onClick:D,style:{width:N}},i||W):null,K=Object.assign(Object.assign({},l),{flex:`0 0 ${N}`,maxWidth:N,minWidth:N,width:N}),q=(0,fTe.default)(O,`${O}-${a}`,{[`${O}-collapsed`]:!!b,[`${O}-has-trigger`]:c&&i!==null&&!B,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(N)===0},r,M,_);return Bu.createElement("aside",Object.assign({className:q},I,{style:K,ref:t}),Bu.createElement("div",{className:`${O}-children`},o),c||w&&B?G:null)},L=Bu.useMemo(()=>({siderCollapsed:b}),[b]);return T(Bu.createElement(xhr.Provider,{value:L},k()))});B0.default=Rhr;var TU={},gue={exports:{}},IU={},eve={};Object.defineProperty(eve,"__esModule",{value:!0});var $hr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};eve.default=$hr;var Ohr=_e.default,tve=pe.default;Object.defineProperty(IU,"__esModule",{value:!0});IU.default=void 0;var Thr=tve(lr),uit=Ohr(d),Ihr=tve(eve),Mhr=tve(cr),Phr=function(t,n){return uit.createElement(Mhr.default,(0,Thr.default)({},t,{ref:n,icon:Ihr.default}))},_hr=uit.forwardRef(Phr);IU.default=_hr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(IU);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(gue,gue.exports);var nve=gue.exports,I9={};Object.defineProperty(I9,"__esModule",{value:!0});I9.default=void 0;var Ahr=d;const Dhr=(0,Ahr.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});I9.default=Dhr;var pP={},Lhr=pe.default,Fhr=_e.default;Object.defineProperty(pP,"__esModule",{value:!0});pP.default=void 0;var gTe=Fhr(d),Nhr=Lhr(St),khr=hP,zhr=Bt,Bhr=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 Hhr=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=Bhr(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=gTe.useContext(zhr.ConfigContext),s=o("menu",t),a=(0,Nhr.default)({[`${s}-item-divider-dashed`]:!!r},n);return gTe.createElement(khr.Divider,Object.assign({className:a},i))};pP.default=Hhr;var mP={},vP=pe.default,jhr=_e.default;Object.defineProperty(mP,"__esModule",{value:!0});mP.default=void 0;var Gv=jhr(d),Jne=vP(St),Vhr=hP,Ghr=vP(qs),Whr=vP(mi),Uhr=Xi,qhr=B0,Khr=vP(gl),Yhr=vP(I9);const Xhr=e=>{var t;const{className:n,children:r,icon:i,title:o,danger:s,extra:a}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:h}=Gv.useContext(Yhr.default),g=b=>{const S=r==null?void 0:r[0],w=Gv.createElement("span",{className:(0,Jne.default)(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!a||a===0})},r);return(!i||Gv.isValidElement(r)&&r.type==="span")&&r&&b&&c&&typeof S=="string"?Gv.createElement("div",{className:`${l}-inline-collapsed-noicon`},S.charAt(0)):w},{siderCollapsed:p}=Gv.useContext(qhr.SiderContext);let m=o;typeof o>"u"?m=c?r:"":o===!1&&(m="");const v={title:m};!p&&!h&&(v.title=null,v.open=!1);const C=(0,Ghr.default)(r).length;let y=Gv.createElement(Vhr.Item,Object.assign({},(0,Whr.default)(e,["title","icon","danger"]),{className:(0,Jne.default)({[`${l}-item-danger`]:s,[`${l}-item-only-child`]:(i?C+1:C)===1},n),title:typeof o=="string"?o:void 0}),(0,Uhr.cloneElement)(i,{className:(0,Jne.default)(Gv.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),g(h));return f||(y=Gv.createElement(Khr.default,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};mP.default=Xhr;var r3={},Qhr=pe.default,Zhr=_e.default;Object.defineProperty(r3,"__esModule",{value:!0});r3.default=r3.OverrideProvider=void 0;var i8=Zhr(d),ere=Vi,Jhr=Qhr(ah),egr=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 pue=i8.createContext(null);r3.OverrideProvider=i8.forwardRef((e,t)=>{const{children:n}=e,r=egr(e,["children"]),i=i8.useContext(pue),o=i8.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=(0,ere.supportNodeRef)(n),a=(0,ere.useComposeRef)(t,s?(0,ere.getNodeRef)(n):null);return i8.createElement(pue.Provider,{value:o},i8.createElement(Jhr.default,{space:!0},s?i8.cloneElement(n,{ref:a}):n))});r3.default=pue;var I7={},MU={};Object.defineProperty(MU,"__esModule",{value:!0});MU.default=void 0;var tgr=Kt;const ngr=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:s,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${(0,tgr.unit)(o)} ${s} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,
|
||
> ${t}-item-active,
|
||
> ${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,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,v8.unit)(n)},[`${t}-item-group-list ${t}-submenu-title,
|
||
${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,
|
||
> ${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
|
||
`]:{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:"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"}}}),bTe(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${(0,zh.unit)(e.calc(r).mul(2).equal())} ${(0,zh.unit)(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},bTe(e)),STe(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${s}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),STe(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
||
&-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,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:b,dangerItemColor:u,dangerItemHoverColor:S,dangerItemSelectedColor:w,dangerItemActiveBg:x,dangerItemSelectedBg:m,menuSubMenuBg:h,horizontalItemSelectedColor:g,horizontalItemSelectedBg:p});return[dgr(T),(0,lgr.default)(T),(0,ugr.default)(T),(0,yTe.default)(T,"light"),(0,yTe.default)(M,"dark"),(0,cgr.default)(T),(0,mL.genCollapseMotion)(T),(0,mL.initSlideMotion)(T,"slide-up"),(0,mL.initSlideMotion)(T,"slide-down"),(0,mL.initZoomMotion)(T,"zoom-big")]},dit,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(t,n)};var CP={},rve=pe.default,fgr=_e.default;Object.defineProperty(CP,"__esModule",{value:!0});CP.default=void 0;var Eh=fgr(d),wTe=rve(St),xTe=hP,hgr=rve(mi),ggr=ho,pgr=Xi,ETe=rve(I9);const mgr=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,s=Eh.useContext(ETe.default),{prefixCls:a,inlineCollapsed:l,theme:c}=s,u=(0,xTe.useFullPath)();let f;if(!r)f=l&&!u.length&&i&&typeof i=="string"?Eh.createElement("div",{className:`${a}-inline-collapsed-noicon`},i.charAt(0)):Eh.createElement("span",{className:`${a}-title-content`},i);else{const p=Eh.isValidElement(i)&&i.type==="span";f=Eh.createElement(Eh.Fragment,null,(0,pgr.cloneElement)(r,{className:(0,wTe.default)(Eh.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${a}-item-icon`)}),p?i:Eh.createElement("span",{className:`${a}-title-content`},i))}const h=Eh.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[g]=(0,ggr.useZIndex)("Menu");return Eh.createElement(ETe.default.Provider,{value:h},Eh.createElement(xTe.SubMenu,Object.assign({},(0,hgr.default)(e,["icon"]),{title:f,popupClassName:(0,wTe.default)(a,n,`${a}-${o||c}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};CP.default=mgr;var Md=pe.default,vgr=_e.default;Object.defineProperty(TU,"__esModule",{value:!0});TU.default=void 0;var fit=vgr(d),M1=fit,Cgr=Md(nve),vL=Md(St),ygr=Md(hP),bgr=Md(hl),Sgr=Md(mi),wgr=Md($s),xgr=Xi,Egr=Bt,Rgr=Md(Xr),$gr=Md(I9),Ogr=Md(pP),Tgr=Md(mP),RTe=Md(r3),Igr=Md(I7),Mgr=Md(CP),Pgr=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 rre(e){return e===null||e===!1}const _gr={item:Tgr.default,submenu:Mgr.default,divider:Ogr.default},Agr=(0,fit.forwardRef)((e,t)=>{var n;const r=M1.useContext(RTe.default),i=r||{},{getPrefixCls:o,getPopupContainer:s,direction:a,menu:l}=M1.useContext(Egr.ConfigContext),c=o(),{prefixCls:u,className:f,style:h,theme:g="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:v,siderCollapsed:C,rootClassName:y,mode:b,selectable:S,onClick:w,overflowedIndicatorPopupClassName:x}=e,E=Pgr(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=(0,Sgr.default)(E,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:b});const O=(0,bgr.default)(function(){var j;w==null||w.apply(void 0,arguments),(j=i.onClick)===null||j===void 0||j.call(i)}),T=i.mode||b,M=S??i.selectable,_=v??C,F={horizontal:{motionName:`${c}-slide-up`},inline:(0,wgr.default)(c),other:{motionName:`${c}-zoom-big`}},D=o("menu",u||i.prefixCls),k=(0,Rgr.default)(D),[L,I,A]=(0,Igr.default)(D,k,!r),N=(0,vL.default)(`${D}-${g}`,l==null?void 0:l.className,f),B=M1.useMemo(()=>{var j,W;if(typeof p=="function"||rre(p))return p||null;if(typeof i.expandIcon=="function"||rre(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||rre(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const G=(j=p??(i==null?void 0:i.expandIcon))!==null&&j!==void 0?j:l==null?void 0:l.expandIcon;return(0,xgr.cloneElement)(G,{className:(0,vL.default)(`${D}-submenu-expand-icon`,M1.isValidElement(G)?(W=G.props)===null||W===void 0?void 0:W.className:void 0)})},[p,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,D]),z=M1.useMemo(()=>({prefixCls:D,inlineCollapsed:_||!1,direction:a,firstLevel:!0,theme:g,mode:T,disableMenuItemTitleTooltip:m}),[D,_,a,m,g]);return L(M1.createElement(RTe.default.Provider,{value:null},M1.createElement($gr.default.Provider,{value:z},M1.createElement(ygr.default,Object.assign({getPopupContainer:s,overflowedIndicator:M1.createElement(Cgr.default,null),overflowedIndicatorPopupClassName:(0,vL.default)(D,`${D}-${g}`,x),mode:T,selectable:M,onClick:O},R,{inlineCollapsed:_,style:Object.assign(Object.assign({},l==null?void 0:l.style),h),className:N,prefixCls:D,direction:a,defaultMotions:F,expandIcon:B,ref:t,rootClassName:(0,vL.default)(y,I,i.rootClassName,A,k),_internalComponents:_gr})))))});TU.default=Agr;var LU=pe.default,Dgr=_e.default;Object.defineProperty(O9,"__esModule",{value:!0});O9.default=void 0;var GN=Dgr(d),$Te=GN,Lgr=hP,Fgr=B0,Ngr=LU(TU),kgr=LU(pP),zgr=LU(mP),Bgr=LU(CP);const yP=(0,GN.forwardRef)((e,t)=>{const n=(0,GN.useRef)(null),r=$Te.useContext(Fgr.SiderContext);return(0,GN.useImperativeHandle)(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),$Te.createElement(Ngr.default,Object.assign({ref:n},e,r))});yP.Item=zgr.default;yP.SubMenu=Bgr.default;yP.Divider=kgr.default;yP.ItemGroup=Lgr.ItemGroup;O9.default=yP;var M7={},FU={};Object.defineProperty(FU,"__esModule",{value:!0});FU.default=void 0;const Hgr=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}};FU.default=Hgr;var jgr=pe.default,Vgr=_e.default;Object.defineProperty(M7,"__esModule",{value:!0});M7.prepareComponentToken=M7.default=void 0;var b5=Kt,ire=gn,P1=Rc,hit=Vgr(Xm),Ggr=tp,OTe=Zt,Wgr=jgr(FU);const Ugr=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:o,antCls:s,iconCls:a,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:h,fontSizeIcon:g,controlPaddingHorizontal:p,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${a}-down, & > ${s}-btn-icon > ${a}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${a}-down`]:{fontSize:g},[`${a}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${a}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft,
|
||
&${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,
|
||
&${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,autoAdjustOverflow:b=!0,placement:S="",overlay:w,transitionName:x}=e,{getPopupContainer:E,getPrefixCls:R,direction:O,dropdown:T}=El.useContext(spr.ConfigContext);(0,ipr.devUseWarning)("Dropdown");const M=El.useMemo(()=>{const J=R();return x!==void 0?x:S.includes("top")?`${J}-slide-down`:`${J}-slide-up`},[R,S,x]),_=El.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:O==="rtl"?"bottomRight":"bottomLeft",[S,O]),F=R("dropdown",i),D=(0,apr.default)(F),[k,L,I]=(0,dpr.default)(F,D),[,A]=(0,upr.useToken)(),N=El.Children.only((0,epr.default)(o)?El.createElement("span",null,o):o),B=(0,rpr.cloneElement)(N,{className:(0,ore.default)(`${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")),[W,G]=(0,Qgr.default)(!1,{value:g??m}),K=(0,Xgr.default)(J=>{p==null||p(J,{source:"trigger"}),v==null||v(J),G(J)}),q=(0,ore.default)(u,f,L,I,D,T==null?void 0:T.className,{[`${F}-rtl`]:O==="rtl"}),X=(0,tpr.default)({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:b,offset:A.marginXXS,arrowWidth:r?A.sizePopupArrow:0,borderRadius:A.borderRadius}),Q=El.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(p==null||p(!1,{source:"menu"}),G(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),te=()=>{let J;return n!=null&&n.items?J=El.createElement(lpr.default,Object.assign({},n)):typeof w=="function"?J=w():J=w,l&&(J=l(J)),J=El.Children.only(typeof J=="string"?El.createElement("span",null,J):J),El.createElement(cpr.OverrideProvider,{prefixCls:`${F}-menu`,rootClassName:(0,ore.default)(I,D),expandIcon:El.createElement("span",{className:`${F}-menu-submenu-arrow`},El.createElement(Kgr.default,{className:`${F}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:oe=>{}},J)},[ne,Z]=(0,Jgr.useZIndex)("Dropdown",h==null?void 0:h.zIndex);let ee=El.createElement(Ygr.default,Object.assign({alignPoint:j},(0,Zgr.default)(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:y,visible:W,builtinPlacements:X,arrow:!!r,overlayClassName:q,prefixCls:F,getPopupContainer:c||E,transitionName:M,trigger:z,overlay:te,placement:_,onVisibleChange:K,overlayStyle:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),h),{zIndex:ne})}),B);return ne&&(ee=El.createElement(opr.default.Provider,{value:Z},ee)),k(ee)},fpr=(0,npr.default)(ive,"align",void 0,"dropdown",e=>e),hpr=e=>El.createElement(fpr,Object.assign({},e),El.createElement("span",null));ive._InternalPanelDoNotUseOrYouWillBeFired=hpr;$9.default=ive;var bP={},gpr=_e.default;Object.defineProperty(bP,"__esModule",{value:!0});bP.default=void 0;var TTe=gpr(d),ppr=Bt;const pit=e=>{let{children:t}=e;const{getPrefixCls:n}=TTe.useContext(ppr.ConfigContext),r=n("breadcrumb");return TTe.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};pit.__ANT_BREADCRUMB_SEPARATOR=!0;bP.default=pit;var SP={},mit=pe.default,mpr=_e.default;Object.defineProperty(SP,"__esModule",{value:!0});SP.default=bpr;SP.renderItem=vit;var ITe=mpr(d),MTe=mit(St),vpr=mit(oh),Cpr=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 ypr(e,t){if(e.title===void 0||e.title===null)return null;const n=Object.keys(t).join("|");return typeof e.title=="object"?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(r,i)=>t[i]||r)}function vit(e,t,n,r){if(n==null)return null;const{className:i,onClick:o}=t,s=Cpr(t,["className","onClick"]),a=Object.assign(Object.assign({},(0,vpr.default)(s,{data:!0,aria:!0})),{onClick:o});return r!==void 0?ITe.createElement("a",Object.assign({},a,{className:(0,MTe.default)(`${e}-link`,i),href:r}),n):ITe.createElement("span",Object.assign({},a,{className:(0,MTe.default)(`${e}-link`,i)}),n)}function bpr(e,t){return(r,i,o,s,a)=>{if(t)return t(r,i,o,s);const l=ypr(r,i);return vit(e,r,l,a)}}var ove=pe.default,Spr=_e.default;Object.defineProperty(T7,"__esModule",{value:!0});T7.default=T7.InternalBreadcrumbItem=void 0;var Pp=Spr(d),wpr=ove(b9),xpr=Bt,Epr=ove($9),Rpr=ove(bP),$pr=SP,mue=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 Cit=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:o,dropdownProps:s,href:a}=e,c=(u=>{if(i||o){const f=Object.assign({},s);if(i){const h=i||{},{items:g}=h,p=mue(h,["items"]);f.menu=Object.assign(Object.assign({},p),{items:g==null?void 0:g.map((m,v)=>{var{key:C,title:y,label:b,path:S}=m,w=mue(m,["key","title","label","path"]);let x=b??y;return S&&(x=Pp.createElement("a",{href:`${a}${S}`},x)),Object.assign(Object.assign({},w),{key:C??v,label:x})})})}else o&&(f.overlay=o);return Pp.createElement(Epr.default,Object.assign({placement:"bottom"},f),Pp.createElement("span",{className:`${t}-overlay-link`},u,Pp.createElement(wpr.default,null)))}return u})(r);return c!=null?Pp.createElement(Pp.Fragment,null,Pp.createElement("li",null,c),n&&Pp.createElement(Rpr.default,null,n)):null};T7.InternalBreadcrumbItem=Cit;const yit=e=>{const{prefixCls:t,children:n,href:r}=e,i=mue(e,["prefixCls","children","href"]),{getPrefixCls:o}=Pp.useContext(xpr.ConfigContext),s=o("breadcrumb",t);return Pp.createElement(Cit,Object.assign({},i,{prefixCls:s}),(0,$pr.renderItem)(s,i,n,r))};yit.__ANT_BREADCRUMB_ITEM=!0;T7.default=yit;var P7={};Object.defineProperty(P7,"__esModule",{value:!0});P7.prepareComponentToken=P7.default=void 0;var PTe=Kt,_Te=gn,ATe=Zt;const Opr=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},(0,_Te.resetComponent)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${(0,PTe.unit)(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,_Te.genFocusStyle)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
|
||
> ${n} + span,
|
||
> ${n} + a
|
||
`]:{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.default.extend(qpr.default);Jc.default.extend(Upr.default);Jc.default.extend(jpr.default);Jc.default.extend(Vpr.default);Jc.default.extend(Gpr.default);Jc.default.extend(Wpr.default);Jc.default.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var s=(o||"").replace("Wo","wo");return r.bind(this)(s)}});var Kpr={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},A6=function(t){var n=Kpr[t];return n||t.split("_")[0]},Ypr={getNow:function(){var t=(0,Jc.default)();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return(0,Jc.default)(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return(0,Jc.default)().locale(A6(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(A6(t)).weekday(0)},getWeek:function(t,n){return n.locale(A6(t)).week()},getShortWeekDays:function(t){return(0,Jc.default)().locale(A6(t)).localeData().weekdaysMin()},getShortMonths:function(t){return(0,Jc.default)().locale(A6(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(A6(t)).format(r)},parse:function(t,n,r){for(var i=A6(t),o=0;o<r.length;o+=1){var s=r[o],a=n;if(s.includes("wo")||s.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],u=(0,Jc.default)(l,"YYYY").startOf("year").locale(i),f=0;f<=52;f+=1){var h=u.add(f,"week");if(h.format("Wo")===c)return h}return null}var g=(0,Jc.default)(a,s,!0).locale(i);if(g.isValid())return g}return null}}};wP.default=Ypr;var kU={};const lve=_r(Xzt);var zU={},xP={},BU={},Lf={},Xpr=_e.default;Object.defineProperty(Lf,"__esModule",{value:!0});Lf.default=Lf.RadioOptionTypeContextProvider=Lf.RadioOptionTypeContext=Lf.RadioGroupContextProvider=void 0;var Eit=Xpr(d);const Rit=Eit.createContext(null);Lf.RadioGroupContextProvider=Rit.Provider;Lf.default=Rit;const Qpr=Lf.RadioOptionTypeContext=Eit.createContext(null);Lf.RadioOptionTypeContextProvider=Qpr.Provider;var M9={};const $it=_r(eBt);var HU={},Oit=pe.default;Object.defineProperty(HU,"__esModule",{value:!0});HU.default=Jpr;var Zpr=Oit(d),FTe=Oit(xu);function Jpr(e){const t=Zpr.default.useRef(null),n=()=>{FTe.default.cancel(t.current),t.current=null};return[()=>{n(),t.current=(0,FTe.default)(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}var ty={};Object.defineProperty(ty,"__esModule",{value:!0});ty.prepareComponentToken=ty.default=void 0;var C8=Kt,sO=gn,NTe=Zt;const emr=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},(0,sO.resetComponent)(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},tmr=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:a,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:h,paddingXS:g,dotColorDisabled:p,lineType:m,radioColor:v,radioBgColor:C,calc:y}=e,b=`${t}-inner`,w=y(i).sub(y(4).mul(2)),x=y(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,sO.resetComponent)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,C8.unit)(u)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,sO.resetComponent)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
||
&: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 &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:_,borderColor:_,"&:hover":{color:S,background:F,borderColor:F},"&:active":{color:S,background:D,borderColor:D}},"&-disabled":{color:w,backgroundColor:x,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:x,borderColor:s}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:E,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Tit=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:o,colorText:s,colorBgContainer:a,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:h,colorPrimaryActive:g,colorWhite:p}=e,m=4,v=o,C=t?v-m*2:v-(m+i)*2;return{radioSize:v,dotSize:C,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:g,buttonBg:a,buttonCheckedBg:a,buttonColor:s,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?a:f}};ty.prepareComponentToken=Tit;ty.default=(0,NTe.genStyleHooks)("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${(0,C8.unit)(n)} ${t}`,i=r,o=(0,NTe.mergeToken)(e,{radioFocusShadow:r,radioButtonFocusShadow:i});return[emr(o),tmr(o),nmr(o)]},Tit,{unitless:{radioSize:!0,dotSize:!0}});var fb=pe.default,Iit=_e.default;Object.defineProperty(M9,"__esModule",{value:!0});M9.default=void 0;var Ah=Iit(d),kTe=fb(St),rmr=fb($it),imr=Vi,omr=fb(M3),smr=tb,amr=fb(HU),lmr=Bt,cmr=fb(Co),umr=fb(Xr),dmr=Ir,zTe=Iit(Lf),fmr=fb(ty),hmr=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 gmr=(e,t)=>{var n,r;const i=Ah.useContext(zTe.default),o=Ah.useContext(zTe.RadioOptionTypeContext),{getPrefixCls:s,direction:a,radio:l}=Ah.useContext(lmr.ConfigContext),c=Ah.useRef(null),u=(0,imr.composeRef)(t,c),{isFormItemInput:f}=Ah.useContext(dmr.FormItemInputContext),h=L=>{var I,A;(I=e.onChange)===null||I===void 0||I.call(e,L),(A=i==null?void 0:i.onChange)===null||A===void 0||A.call(i,L)},{prefixCls:g,className:p,rootClassName:m,children:v,style:C,title:y}=e,b=hmr(e,["prefixCls","className","rootClassName","children","style","title"]),S=s("radio",g),w=((i==null?void 0:i.optionType)||o)==="button",x=w?`${S}-button`:S,E=(0,umr.default)(S),[R,O,T]=(0,fmr.default)(S,E),M=Object.assign({},b),_=Ah.useContext(cmr.default);i&&(M.name=i.name,M.onChange=h,M.checked=e.value===i.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:i.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:_;const F=(0,kTe.default)(`${x}-wrapper`,{[`${x}-wrapper-checked`]:M.checked,[`${x}-wrapper-disabled`]:M.disabled,[`${x}-wrapper-rtl`]:a==="rtl",[`${x}-wrapper-in-form-item`]:f,[`${x}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,p,m,O,T,E),[D,k]=(0,amr.default)(M.onClick);return R(Ah.createElement(omr.default,{component:"Radio",disabled:M.disabled},Ah.createElement("label",{className:F,style:Object.assign(Object.assign({},l==null?void 0:l.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:D},Ah.createElement(rmr.default,Object.assign({},M,{className:(0,kTe.default)(M.className,{[smr.TARGET_CLS]:!w}),type:"radio",prefixCls:x,ref:u,onClick:k})),v!==void 0?Ah.createElement("span",null,v):null)))},pmr=Ah.forwardRef(gmr);M9.default=pmr;var P9={},mmr=_e.default,Mit=pe.default;Object.defineProperty(P9,"__esModule",{value:!0});P9.default=void 0;P9.resetUuid=bmr;var vmr=Mit(Xy),Cmr=Mit(Eu),vue=mmr(d);function ymr(){var e=(0,Cmr.default)({},vue);return e.useId}var BTe=0;function bmr(){}var HTe=ymr();P9.default=HTe?function(t){var n=HTe();return t||n}:function(t){var n=vue.useState("ssr-id"),r=(0,vmr.default)(n,2),i=r[0],o=r[1];return vue.useEffect(function(){var s=BTe;BTe+=1,o("rc_unique_".concat(s))},[]),t||i};var B3=pe.default,Smr=_e.default;Object.defineProperty(BU,"__esModule",{value:!0});BU.default=void 0;var V1=Smr(d),wmr=B3(St),xmr=B3(fa),Emr=B3(oh),Rmr=Bt,$mr=B3(Xr),Omr=B3(io),Tmr=Lf,jTe=B3(M9),Imr=B3(ty),Mmr=B3(P9);const Pmr=V1.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=V1.useContext(Rmr.ConfigContext),i=(0,Mmr.default)(),{prefixCls:o,className:s,rootClassName:a,options:l,buttonStyle:c="outline",disabled:u,children:f,size:h,style:g,id:p,optionType:m,name:v=i,defaultValue:C,value:y,block:b=!1,onChange:S,onMouseEnter:w,onMouseLeave:x,onFocus:E,onBlur:R}=e,[O,T]=(0,xmr.default)(C,{value:y}),M=V1.useCallback(j=>{const W=O,G=j.target.value;"value"in e||T(G),G!==W&&(S==null||S(j))},[O,T,S]),_=n("radio",o),F=`${_}-group`,D=(0,$mr.default)(_),[k,L,I]=(0,Imr.default)(_,D);let A=f;l&&l.length>0&&(A=l.map(j=>typeof j=="string"||typeof j=="number"?V1.createElement(jTe.default,{key:j.toString(),prefixCls:_,disabled:u,value:j,checked:O===j},j):V1.createElement(jTe.default,{key:`radio-group-value-options-${j.value}`,prefixCls:_,disabled:j.disabled||u,value:j.value,checked:O===j.value,title:j.title,style:j.style,id:j.id,required:j.required},j.label)));const N=(0,Omr.default)(h),B=(0,wmr.default)(F,`${F}-${c}`,{[`${F}-${N}`]:N,[`${F}-rtl`]:r==="rtl",[`${F}-block`]:b},s,a,L,I,D),z=V1.useMemo(()=>({onChange:M,value:O,disabled:u,name:v,optionType:m,block:b}),[M,O,u,v,m,b]);return k(V1.createElement("div",Object.assign({},(0,Emr.default)(e,{aria:!0,data:!0}),{className:B,style:g,onMouseEnter:w,onMouseLeave:x,onFocus:E,onBlur:R,id:p,ref:t}),V1.createElement(Tmr.RadioGroupContextProvider,{value:z},A)))});BU.default=V1.memo(Pmr);var jU={},_mr=pe.default,Amr=_e.default;Object.defineProperty(jU,"__esModule",{value:!0});jU.default=void 0;var WN=Amr(d),Dmr=Bt,Lmr=Lf,Fmr=_mr(M9),Nmr=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 kmr=(e,t)=>{const{getPrefixCls:n}=WN.useContext(Dmr.ConfigContext),{prefixCls:r}=e,i=Nmr(e,["prefixCls"]),o=n("radio",r);return WN.createElement(Lmr.RadioOptionTypeContextProvider,{value:"button"},WN.createElement(Fmr.default,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))};jU.default=WN.forwardRef(kmr);(function(e){"use client";var t=pe.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return n.default}}),e.default=void 0;var n=t(BU),r=t(M9),i=t(jU);const o=r.default;o.Button=i.default,o.Group=n.default,o.__ANT_RADIO=!0,e.default=o})(xP);var zmr=pe.default,Bmr=_e.default;Object.defineProperty(zU,"__esModule",{value:!0});zU.default=void 0;var Cue=Bmr(d),tg=Cue,VTe=Ir,sre=xP,Pit=zmr(N3);const Hmr=10,jmr=20;function Vmr(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:i,prefixCls:o,value:s,onChange:a,divRef:l}=e,c=r.getYear(s||r.getNow());let u=c-Hmr,f=u+jmr;n&&(u=r.getYear(n[0]),f=r.getYear(n[1])+1);const h=i&&i.year==="年"?"年":"",g=[];for(let p=u;p<f;p++)g.push({label:`${p}${h}`,value:p});return tg.createElement(Pit.default,{size:t?void 0:"small",options:g,value:c,className:`${o}-year-select`,onChange:p=>{let m=r.setYear(s,p);if(n){const[v,C]=n,y=r.getYear(m),b=r.getMonth(m);y===r.getYear(C)&&b>r.getMonth(C)&&(m=r.setMonth(m,r.getMonth(C))),y===r.getYear(v)&&b<r.getMonth(v)&&(m=r.setMonth(m,r.getMonth(v)))}a(m)},getPopupContainer:()=>l.current})}function Gmr(e){const{prefixCls:t,fullscreen:n,validRange:r,value:i,generateConfig:o,locale:s,onChange:a,divRef:l}=e,c=o.getMonth(i||o.getNow());let u=0,f=11;if(r){const[p,m]=r,v=o.getYear(i);o.getYear(m)===v&&(f=o.getMonth(m)),o.getYear(p)===v&&(u=o.getMonth(p))}const h=s.shortMonths||o.locale.getShortMonths(s.locale),g=[];for(let p=u;p<=f;p+=1)g.push({label:h[p],value:p});return tg.createElement(Pit.default,{size:n?void 0:"small",className:`${t}-month-select`,value:c,options:g,onChange:p=>{a(o.setMonth(i,p))},getPopupContainer:()=>l.current})}function Wmr(e){const{prefixCls:t,locale:n,mode:r,fullscreen:i,onModeChange:o}=e;return tg.createElement(sre.Group,{onChange:s=>{let{target:{value:a}}=s;o(a)},value:r,size:i?void 0:"small",className:`${t}-mode-switch`},tg.createElement(sre.Button,{value:"month"},n.month),tg.createElement(sre.Button,{value:"year"},n.year))}function Umr(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:i,onModeChange:o}=e,s=tg.useRef(null),a=(0,Cue.useContext)(VTe.FormItemInputContext),l=(0,Cue.useMemo)(()=>Object.assign(Object.assign({},a),{isFormItemInput:!1}),[a]),c=Object.assign(Object.assign({},e),{fullscreen:n,divRef:s});return tg.createElement("div",{className:`${t}-header`,ref:s},tg.createElement(VTe.FormItemInputContext.Provider,{value:l},tg.createElement(Vmr,Object.assign({},c,{onChange:u=>{i(u,"year")}})),r==="month"&&tg.createElement(Gmr,Object.assign({},c,{onChange:u=>{i(u,"month")}}))),tg.createElement(Wmr,Object.assign({},c,{onModeChange:o})))}zU.default=Umr;var w4={},VU={},H3={},j3={};Object.defineProperty(j3,"__esModule",{value:!0});j3.initComponentToken=void 0;j3.initInputToken=Kmr;var qmr=Zt;function Kmr(e){return(0,qmr.mergeToken)(e,{inputAffixPadding:e.paddingXXS})}const Ymr=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:s,fontSizeLG:a,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:h,colorPrimaryHover:g,colorPrimary:p,controlOutlineWidth:m,controlOutline:v,colorErrorOutline:C,colorWarningOutline:y,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((s-a*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:h,activeBorderColor:p,hoverBorderColor:g,activeShadow:`0 0 0 ${m}px ${v}`,errorActiveShadow:`0 0 0 ${m}px ${C}`,warningActiveShadow:`0 0 0 ${m}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:a,inputFontSizeSM:n}};j3.initComponentToken=Ymr;var cs={};Object.defineProperty(cs,"__esModule",{value:!0});cs.genOutlinedStyle=cs.genOutlinedGroupStyle=cs.genHoverStyle=cs.genFilledStyle=cs.genFilledGroupStyle=cs.genDisabledStyle=cs.genBorderlessStyle=cs.genBaseOutlinedStyle=void 0;var G1=Kt,Xmr=Zt;const _it=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg});cs.genHoverStyle=_it;const GU=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},_it((0,Xmr.mergeToken)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))});cs.genDisabledStyle=GU;const cve=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}});cs.genBaseOutlinedStyle=cve;const GTe=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cve(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Qmr=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cve(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},GU(e))}),GTe(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),GTe(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});cs.genOutlinedStyle=Qmr;const WTe=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Zmr=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,G1.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},WTe(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),WTe(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},GU(e))}})});cs.genOutlinedGroupStyle=Zmr;const Jmr=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}};cs.genBorderlessStyle=Jmr;const Ait=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),UTe=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ait(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),e1r=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ait(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},GU(e))}),UTe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),UTe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)});cs.genFilledStyle=e1r;const qTe=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),t1r=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,G1.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,G1.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},qTe(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),qTe(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,G1.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,G1.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,G1.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,G1.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,G1.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,G1.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})});cs.genFilledGroupStyle=t1r;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.genPlaceholderStyle=e.genInputSmallStyle=e.genInputGroupStyle=e.genBasicInputStyle=e.genActiveStyle=e.default=void 0,Object.defineProperty(e,"initComponentToken",{enumerable:!0,get:function(){return o.initComponentToken}}),Object.defineProperty(e,"initInputToken",{enumerable:!0,get:function(){return o.initInputToken}});var t=Kt,n=gn,r=dv,i=Zt,o=j3,s=cs;const a=S=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:S,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});e.genPlaceholderStyle=a;const l=S=>({borderColor:S.activeBorderColor,boxShadow:S.activeShadow,outline:0,backgroundColor:S.activeBg});e.genActiveStyle=l;const c=S=>{const{paddingBlockLG:w,lineHeightLG:x,borderRadiusLG:E,paddingInlineLG:R}=S;return{padding:`${(0,t.unit)(w)} ${(0,t.unit)(R)}`,fontSize:S.inputFontSizeLG,lineHeight:x,borderRadius:E}},u=S=>({padding:`${(0,t.unit)(S.paddingBlockSM)} ${(0,t.unit)(S.paddingInlineSM)}`,fontSize:S.inputFontSizeSM,borderRadius:S.borderRadiusSM});e.genInputSmallStyle=u;const f=S=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,t.unit)(S.paddingBlock)} ${(0,t.unit)(S.paddingInline)}`,color:S.colorText,fontSize:S.inputFontSize,lineHeight:S.lineHeight,borderRadius:S.borderRadius,transition:`all ${S.motionDurationMid}`},a(S.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:S.controlHeight,lineHeight:S.lineHeight,verticalAlign:"bottom",transition:`all ${S.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},c(S)),"&-sm":Object.assign({},u(S)),"&-rtl, &-textarea-rtl":{direction:"rtl"}});e.genBasicInputStyle=f;const h=S=>{const{componentCls:w,antCls:x}=S;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:S.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${w}, &-lg > ${w}-group-addon`]:Object.assign({},c(S)),[`&-sm ${w}, &-sm > ${w}-group-addon`]:Object.assign({},u(S)),[`&-lg ${x}-select-single ${x}-select-selector`]:{height:S.controlHeightLG},[`&-sm ${x}-select-single ${x}-select-selector`]:{height:S.controlHeightSM},[`> ${w}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${w}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,t.unit)(S.paddingInline)}`,color:S.colorText,fontWeight:"normal",fontSize:S.inputFontSize,textAlign:"center",borderRadius:S.borderRadius,transition:`all ${S.motionDurationSlow}`,lineHeight:1,[`${x}-select`]:{margin:`${(0,t.unit)(S.calc(S.paddingBlock).add(1).mul(-1).equal())} ${(0,t.unit)(S.calc(S.paddingInline).mul(-1).equal())}`,[`&${x}-select-single:not(${x}-select-customize-input):not(${x}-pagination-size-changer)`]:{[`${x}-select-selector`]:{backgroundColor:"inherit",border:`${(0,t.unit)(S.lineWidth)} ${S.lineType} transparent`,boxShadow:"none"}}},[`${x}-cascader-picker`]:{margin:`-9px ${(0,t.unit)(S.calc(S.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${x}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[w]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${w}-search-with-button &`]:{zIndex:0}}},[`> ${w}:first-child, ${w}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${x}-select ${x}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${w}-affix-wrapper`]:{[`&:not(:first-child) ${w}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${w}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${w}:last-child, ${w}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${x}-select ${x}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${w}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${w}-search &`]:{borderStartStartRadius:S.borderRadius,borderEndStartRadius:S.borderRadius}},[`&:not(:first-child), ${w}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${w}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,n.clearFix)()),{[`${w}-group-addon, ${w}-group-wrap, > ${w}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:S.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
||
& > ${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)`]:{borderInlineStartColor:S.colorPrimaryHover}}},[`${w}-affix-wrapper`]:{height:S.controlHeight,borderRadius:0},[`${w}-lg`]:{lineHeight:S.calc(S.lineHeightLG).sub(2e-4).equal()},[`> ${w}-group`]:{[`> ${w}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${E}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${E}-button:not(${x}-btn-primary)`]:{color:S.colorTextDescription,"&:hover":{color:S.colorPrimaryHover},"&:active":{color:S.colorPrimaryActive},[`&${x}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${E}-button`]:{height:S.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${w}-affix-wrapper, ${E}-button`]:{height:S.controlHeightLG}},"&-small":{[`${w}-affix-wrapper, ${E}-button`]:{height:S.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${w}-compact-item`]:{[`&:not(${w}-compact-last-item)`]:{[`${w}-group-addon`]:{[`${w}-search-button`]:{marginInlineEnd:S.calc(S.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${w}-compact-first-item)`]:{[`${w},${w}-affix-wrapper`]:{borderRadius:0}},[`> ${w}-group-addon ${w}-search-button,
|
||
> ${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}
|
||
`]:{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),
|
||
&: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,
|
||
&-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,
|
||
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
||
${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},
|
||
&-selected ${r},
|
||
${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,
|
||
${t}-time-panel`]:{transition:`opacity ${_}`},"&-active":{[`${t}-date-panel,
|
||
${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;const u1r=e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,a1r.initComponentToken)(e)),Lit(e)),(0,l1r.getArrowToken)(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});x4.prepareComponentToken=u1r;var UU={};Object.defineProperty(UU,"__esModule",{value:!0});UU.default=void 0;var lre=Kt,cre=cs;const d1r=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},(0,cre.genOutlinedStyle)(e)),(0,cre.genFilledStyle)(e)),(0,cre.genBorderlessStyle)(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,lre.unit)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${(0,lre.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,lre.unit)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};UU.default=d1r;(function(e){var t=_e.default,n=pe.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"genPanelStyle",{enumerable:!0,get:function(){return f.genPanelStyle}}),Object.defineProperty(e,"initPanelComponentToken",{enumerable:!0,get:function(){return h.initPanelComponentToken}}),Object.defineProperty(e,"initPickerPanelToken",{enumerable:!0,get:function(){return h.initPickerPanelToken}});var r=Kt,i=H3,o=gn,s=dv,a=Rc,l=tp,c=Zt,u=n(WU),f=t(_7),h=x4,g=n(UU);const p=(C,y,b,S)=>{const w=C.calc(b).add(2).equal(),x=C.max(C.calc(y).sub(w).div(2).equal(),0),E=C.max(C.calc(y).sub(w).sub(x).equal(),0);return{padding:`${(0,r.unit)(x)} ${(0,r.unit)(S)} ${(0,r.unit)(E)}`}},m=C=>{const{componentCls:y,colorError:b,colorWarning:S}=C;return{[`${y}:not(${y}-disabled):not([disabled])`]:{[`&${y}-status-error`]:{[`${y}-active-bar`]:{background:b}},[`&${y}-status-warning`]:{[`${y}-active-bar`]:{background:S}}}}},v=C=>{const{componentCls:y,antCls:b,controlHeight:S,paddingInline:w,lineWidth:x,lineType:E,colorBorder:R,borderRadius:O,motionDurationMid:T,colorTextDisabled:M,colorTextPlaceholder:_,controlHeightLG:F,fontSizeLG:D,controlHeightSM:k,paddingInlineSM:L,paddingXS:I,marginXS:A,colorTextDescription:N,lineWidthBold:B,colorPrimary:z,motionDurationSlow:j,zIndexPopup:W,paddingXXS:G,sizePopupArrow:K,colorBgElevated:q,borderRadiusLG:X,boxShadowSecondary:Q,borderRadiusSM:te,colorSplit:ne,cellHoverBg:Z,presetsWidth:ee,presetsMaxWidth:J,boxShadowPopoverArrow:oe,fontHeight:le,fontHeightLG:ge,lineHeightLG:he}=C;return[{[y]:Object.assign(Object.assign(Object.assign({},(0,o.resetComponent)(C)),p(C,S,le,w)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:O,transition:`border ${T}, box-shadow ${T}, background ${T}`,[`${y}-prefix`]:{marginInlineEnd:C.inputAffixPadding},[`${y}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:C.fontSize,lineHeight:C.lineHeight,transition:`all ${T}`},(0,i.genPlaceholderStyle)(_)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:M,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:_}}},"&-large":Object.assign(Object.assign({},p(C,F,ge,w)),{[`${y}-input > input`]:{fontSize:D,lineHeight:he}}),"&-small":Object.assign({},p(C,k,le,L)),[`${y}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:C.calc(I).div(2).equal(),color:M,lineHeight:1,pointerEvents:"none",transition:`opacity ${T}, color ${T}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:A}}},[`${y}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:M,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${T}, color ${T}`,"> *":{verticalAlign:"top"},"&:hover":{color:N}},"&:hover":{[`${y}-clear`]:{opacity:1},[`${y}-suffix:not(:last-child)`]:{opacity:0}},[`${y}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:D,color:M,fontSize:D,verticalAlign:"top",cursor:"default",[`${y}-focused &`]:{color:N},[`${y}-range-separator &`]:{[`${y}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${y}-active-bar`]:{bottom:C.calc(x).mul(-1).equal(),height:B,background:z,opacity:0,transition:`all ${j} ease-out`,pointerEvents:"none"},[`&${y}-focused`]:{[`${y}-active-bar`]:{opacity:1}},[`${y}-range-separator`]:{alignItems:"center",padding:`0 ${(0,r.unit)(I)}`,lineHeight:1}},"&-range, &-multiple":{[`${y}-clear`]:{insetInlineEnd:w},[`&${y}-small`]:{[`${y}-clear`]:{insetInlineEnd:L}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,o.resetComponent)(C)),(0,f.genPanelStyle)(C)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:W,[`&${y}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${y}-dropdown-placement-bottomLeft,
|
||
&${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,
|
||
&${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.lineWidthBold).equal()},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:o}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${(0,nc.unit)(e.calc(e.marginXS).div(2).equal())}`,padding:`${(0,nc.unit)(e.calc(e.paddingXS).div(2).equal())} ${(0,nc.unit)(e.paddingXS)} 0`,border:0,borderTop:`${(0,nc.unit)(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:(0,nc.unit)(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${(0,nc.unit)(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${(0,nc.unit)(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}};w4.genCalendarStyles=Fit;const Nit=e=>Object.assign({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},(0,uve.initPanelComponentToken)(e));w4.prepareComponentToken=Nit;w4.default=(0,QTe.genStyleHooks)("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=(0,QTe.mergeToken)(e,(0,uve.initPickerPanelToken)(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return[Fit(n)]},Nit);var EP=pe.default,h1r=_e.default;Object.defineProperty(kU,"__esModule",{value:!0});kU.default=void 0;var Ac=h1r(d),ure=EP(St),g1r=lve,ZTe=EP(fa),p1r=Bt,m1r=Os,v1r=EP(zU),C1r=EP(PM),y1r=EP(w4);const kit=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},yue=(e,t,n)=>{const{getMonth:r}=n;return kit(e,t,n)&&r(e)===r(t)},JTe=(e,t,n)=>{const{getDate:r}=n;return yue(e,t,n)&&r(e)===r(t)},b1r=e=>n=>{const{prefixCls:r,className:i,rootClassName:o,style:s,dateFullCellRender:a,dateCellRender:l,monthFullCellRender:c,monthCellRender:u,cellRender:f,fullCellRender:h,headerRender:g,value:p,defaultValue:m,disabledDate:v,mode:C,validRange:y,fullscreen:b=!0,showWeek:S,onChange:w,onPanelChange:x,onSelect:E}=n,{getPrefixCls:R,direction:O,calendar:T}=Ac.useContext(p1r.ConfigContext),M=R("picker",r),_=`${M}-calendar`,[F,D,k]=(0,y1r.default)(M,_),L=e.getNow(),[I,A]=(0,ZTe.default)(()=>p||e.getNow(),{defaultValue:m,value:p}),[N,B]=(0,ZTe.default)("month",{value:C}),z=Ac.useMemo(()=>N==="year"?"month":"date",[N]),j=Ac.useCallback(ee=>(y?e.isAfter(y[0],ee)||e.isAfter(ee,y[1]):!1)||!!(v!=null&&v(ee)),[v,y]),W=(ee,J)=>{x==null||x(ee,J)},G=ee=>{A(ee),JTe(ee,I,e)||((z==="date"&&!yue(ee,I,e)||z==="month"&&!kit(ee,I,e))&&W(ee,N),w==null||w(ee))},K=ee=>{B(ee),W(I,ee)},q=(ee,J)=>{G(ee),E==null||E(ee,{source:J})},X=Ac.useCallback((ee,J)=>h?h(ee,J):a?a(ee):Ac.createElement("div",{className:(0,ure.default)(`${M}-cell-inner`,`${_}-date`,{[`${_}-date-today`]:JTe(L,ee,e)})},Ac.createElement("div",{className:`${_}-date-value`},String(e.getDate(ee)).padStart(2,"0")),Ac.createElement("div",{className:`${_}-date-content`},f?f(ee,J):l==null?void 0:l(ee))),[a,l,f,h]),Q=Ac.useCallback((ee,J)=>{if(h)return h(ee,J);if(c)return c(ee);const oe=J.locale.shortMonths||e.locale.getShortMonths(J.locale.locale);return Ac.createElement("div",{className:(0,ure.default)(`${M}-cell-inner`,`${_}-date`,{[`${_}-date-today`]:yue(L,ee,e)})},Ac.createElement("div",{className:`${_}-date-value`},oe[e.getMonth(ee)]),Ac.createElement("div",{className:`${_}-date-content`},f?f(ee,J):u==null?void 0:u(ee)))},[c,u,f,h]),[te]=(0,m1r.useLocale)("Calendar",C1r.default),ne=Object.assign(Object.assign({},te),n.locale),Z=(ee,J)=>{if(J.type==="date")return X(ee,J);if(J.type==="month")return Q(ee,Object.assign(Object.assign({},J),{locale:ne==null?void 0:ne.lang}))};return F(Ac.createElement("div",{className:(0,ure.default)(_,{[`${_}-full`]:b,[`${_}-mini`]:!b,[`${_}-rtl`]:O==="rtl"},T==null?void 0:T.className,i,o,D,k),style:Object.assign(Object.assign({},T==null?void 0:T.style),s)},g?g({value:I,type:N,onChange:ee=>{q(ee,"customize")},onTypeChange:K}):Ac.createElement(v1r.default,{prefixCls:_,value:I,generateConfig:e,mode:N,fullscreen:b,locale:ne==null?void 0:ne.lang,validRange:y,onChange:q,onModeChange:K}),Ac.createElement(g1r.PickerPanel,{value:I,prefixCls:M,locale:ne==null?void 0:ne.lang,generateConfig:e,cellRender:Z,onSelect:ee=>{q(ee,z)},mode:z,picker:z,disabledDate:j,hideHeader:!0,showWeek:S})))};kU.default=b1r;var zit=pe.default;Object.defineProperty(NU,"__esModule",{value:!0});NU.default=void 0;var S1r=zit(wP),Bit=zit(kU);const Hit=(0,Bit.default)(S1r.default);Hit.generateCalendar=Bit.default;NU.default=Hit;var qU={},KU={},RP={},bue={exports:{}},YU={},dve={};Object.defineProperty(dve,"__esModule",{value:!0});var w1r={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"};dve.default=w1r;var x1r=_e.default,fve=pe.default;Object.defineProperty(YU,"__esModule",{value:!0});YU.default=void 0;var E1r=fve(lr),jit=x1r(d),R1r=fve(dve),$1r=fve(cr),O1r=function(t,n){return jit.createElement($1r.default,(0,E1r.default)({},t,{ref:n,icon:R1r.default}))},T1r=jit.forwardRef(O1r);YU.default=T1r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(YU);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(bue,bue.exports);var I1r=bue.exports;const M1r=_r(BBt);var hve={};Object.defineProperty(hve,"__esModule",{value:!0});hve.default=A1r;var P1r=$s;const _1r={motionAppear:!1,motionEnter:!0,motionLeave:!0};function A1r(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},_1r),{motionName:(0,P1r.getTransitionName)(e,"switch")})),n}var gve={},D1r=pe.default,L1r=_e.default;Object.defineProperty(gve,"__esModule",{value:!0});gve.default=B1r;var F1r=L1r(d),N1r=D1r(qs),k1r=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 z1r(e){return e.filter(t=>t)}function B1r(e,t){if(e)return e;const n=(0,N1r.default)(t).map(r=>{if(F1r.isValidElement(r)){const{key:i,props:o}=r,s=o||{},{tab:a}=s,l=k1r(s,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:a})}return null});return z1r(n)}var A7={},XU={};Object.defineProperty(XU,"__esModule",{value:!0});XU.default=void 0;var eIe=Rc;const H1r=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,eIe.initSlideMotion)(e,"slide-up"),(0,eIe.initSlideMotion)(e,"slide-down")]]};XU.default=H1r;var j1r=pe.default;Object.defineProperty(A7,"__esModule",{value:!0});A7.prepareComponentToken=A7.default=void 0;var Ei=Kt,E4=gn,tIe=Zt,V1r=j1r(XU);const G1r=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,Ei.unit)(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},(0,E4.genFocusOutline)(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,Ei.unit)(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,Ei.unit)(e.borderRadiusLG)} ${(0,Ei.unit)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,Ei.unit)(e.borderRadiusLG)} ${(0,Ei.unit)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,Ei.unit)(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,Ei.unit)(e.borderRadiusLG)} 0 0 ${(0,Ei.unit)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,Ei.unit)(e.borderRadiusLG)} ${(0,Ei.unit)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},W1r=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,E4.resetComponent)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,Ei.unit)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},E4.textEllipsis),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,Ei.unit)(e.paddingXXS)} ${(0,Ei.unit)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},U1r=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:s,calc:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,Ei.unit)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
||
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,
|
||
> 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,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},Y1r=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,Ei.unit)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,Ei.unit)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,Ei.unit)(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},X1r=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:s,colorBorderSecondary:a}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,E4.resetComponent)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:(0,Ei.unit)(e.paddingXS),background:"transparent",border:`${(0,Ei.unit)(e.lineWidth)} ${e.lineType} ${a}`,borderRadius:`${(0,Ei.unit)(e.borderRadiusLG)} ${(0,Ei.unit)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:s}},(0,E4.genFocusStyle)(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),K1r(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},(0,E4.genFocusStyle)(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Vit=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}};A7.prepareComponentToken=Vit;A7.default=(0,tIe.genStyleHooks)("Tabs",e=>{const t=(0,tIe.mergeToken)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,Ei.unit)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,Ei.unit)(e.horizontalItemGutter)}`});return[q1r(t),Y1r(t),U1r(t),W1r(t),G1r(t),X1r(t),(0,V1r.default)(t)]},Vit);var QU={};Object.defineProperty(QU,"__esModule",{value:!0});QU.default=void 0;const Q1r=()=>null;QU.default=Q1r;var np=pe.default,Z1r=_e.default;Object.defineProperty(RP,"__esModule",{value:!0});RP.default=void 0;var gR=Z1r(d),J1r=np(Td),e0r=np(nve),t0r=np(I1r),nIe=np(St),n0r=np(M1r),r0r=Bt,i0r=np(Xr),o0r=np(io),s0r=np(hve),a0r=np(gve),l0r=np(A7),c0r=np(QU),u0r=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=e=>{var t,n,r,i,o,s,a,l,c,u,f;const{type:h,className:g,rootClassName:p,size:m,onEdit:v,hideAdd:C,centered:y,addIcon:b,removeIcon:S,moreIcon:w,more:x,popupClassName:E,children:R,items:O,animated:T,style:M,indicatorSize:_,indicator:F}=e,D=u0r(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k}=D,{direction:L,tabs:I,getPrefixCls:A,getPopupContainer:N}=gR.useContext(r0r.ConfigContext),B=A("tabs",k),z=(0,i0r.default)(B),[j,W,G]=(0,l0r.default)(B,z);let K;h==="editable-card"&&(K={onEdit:(ee,J)=>{let{key:oe,event:le}=J;v==null||v(ee==="add"?le:oe,ee)},removeIcon:(t=S??(I==null?void 0:I.removeIcon))!==null&&t!==void 0?t:gR.createElement(J1r.default,null),addIcon:(b??(I==null?void 0:I.addIcon))||gR.createElement(t0r.default,null),showAdd:C!==!0});const q=A(),X=(0,o0r.default)(m),Q=(0,a0r.default)(O,R),te=(0,s0r.default)(B,T),ne=Object.assign(Object.assign({},I==null?void 0:I.style),M),Z={align:(n=F==null?void 0:F.align)!==null&&n!==void 0?n:(r=I==null?void 0:I.indicator)===null||r===void 0?void 0:r.align,size:(a=(o=(i=F==null?void 0:F.size)!==null&&i!==void 0?i:_)!==null&&o!==void 0?o:(s=I==null?void 0:I.indicator)===null||s===void 0?void 0:s.size)!==null&&a!==void 0?a:I==null?void 0:I.indicatorSize};return j(gR.createElement(n0r.default,Object.assign({direction:L,getPopupContainer:N},D,{items:Q,className:(0,nIe.default)({[`${B}-${X}`]:X,[`${B}-card`]:["card","editable-card"].includes(h),[`${B}-editable-card`]:h==="editable-card",[`${B}-centered`]:y},I==null?void 0:I.className,g,p,W,G,z),popupClassName:(0,nIe.default)(E,W,G,z),style:ne,editable:K,more:Object.assign({icon:(f=(u=(c=(l=I==null?void 0:I.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:I==null?void 0:I.moreIcon)!==null&&u!==void 0?u:w)!==null&&f!==void 0?f:gR.createElement(e0r.default,null),transitionName:`${q}-slide-up`},x),prefixCls:B,animated:te,indicator:Z})))};Git.TabPane=c0r.default;RP.default=Git;var $P={},d0r=pe.default,f0r=_e.default;Object.defineProperty($P,"__esModule",{value:!0});$P.default=void 0;var rIe=f0r(d),h0r=d0r(St),g0r=Bt,p0r=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 m0r=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=p0r(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=rIe.useContext(g0r.ConfigContext),s=o("card",t),a=(0,h0r.default)(`${s}-grid`,n,{[`${s}-grid-hoverable`]:r});return rIe.createElement("div",Object.assign({},i,{className:a}))};$P.default=m0r;var D7={};Object.defineProperty(D7,"__esModule",{value:!0});D7.prepareComponentToken=D7.default=void 0;var to=Kt,ny=gn,iIe=Zt;const v0r=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,to.unit)(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,to.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,to.unit)(e.borderRadiusLG)} ${(0,to.unit)(e.borderRadiusLG)} 0 0`},(0,ny.clearFix)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ny.textEllipsis),{[`
|
||
> ${n}-typography,
|
||
> ${n}-typography-edit-content
|
||
`]:{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:`
|
||
${(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;
|
||
`,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: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,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}};D7.prepareComponentToken=Wit;D7.default=(0,iIe.genStyleHooks)("Card",e=>{const t=(0,iIe.mergeToken)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[x0r(t),E0r(t)]},Wit);var hb=pe.default,R0r=_e.default;Object.defineProperty(KU,"__esModule",{value:!0});KU.default=void 0;var qa=R0r(d),Wv=hb(St),$0r=hb(mi),O0r=Bt,T0r=hb(io),I0r=hb(L3),M0r=hb(RP),P0r=hb($P),_0r=hb(D7),oIe=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 A0r=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return qa.createElement("ul",{className:t,style:r},n.map((i,o)=>{const s=`action-${o}`;return qa.createElement("li",{style:{width:`${100/n.length}%`},key:s},qa.createElement("span",null,i))}))},D0r=qa.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:s,headStyle:a={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:h,type:g,cover:p,actions:m,tabList:v,children:C,activeTabKey:y,defaultActiveTabKey:b,tabBarExtraContent:S,hoverable:w,tabProps:x={},classNames:E,styles:R}=e,O=oIe(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:T,direction:M,card:_}=qa.useContext(O0r.ConfigContext),F=ye=>{var ue;(ue=e.onTabChange)===null||ue===void 0||ue.call(e,ye)},D=ye=>{var ue;return(0,Wv.default)((ue=_==null?void 0:_.classNames)===null||ue===void 0?void 0:ue[ye],E==null?void 0:E[ye])},k=ye=>{var ue;return Object.assign(Object.assign({},(ue=_==null?void 0:_.styles)===null||ue===void 0?void 0:ue[ye]),R==null?void 0:R[ye])},L=qa.useMemo(()=>{let ye=!1;return qa.Children.forEach(C,ue=>{(ue==null?void 0:ue.type)===P0r.default&&(ye=!0)}),ye},[C]),I=T("card",n),[A,N,B]=(0,_0r.default)(I),z=qa.createElement(I0r.default,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),j=y!==void 0,W=Object.assign(Object.assign({},x),{[j?"activeKey":"defaultActiveKey"]:j?y:b,tabBarExtraContent:S});let G;const K=(0,T0r.default)(h),q=!K||K==="default"?"large":K,X=v?qa.createElement(M0r.default,Object.assign({size:q},W,{className:`${I}-head-tabs`,onChange:F,items:v.map(ye=>{var{tab:ue}=ye,ve=oIe(ye,["tab"]);return Object.assign({label:ue},ve)})})):null;if(c||s||X){const ye=(0,Wv.default)(`${I}-head`,D("header")),ue=(0,Wv.default)(`${I}-head-title`,D("title")),ve=(0,Wv.default)(`${I}-extra`,D("extra")),de=Object.assign(Object.assign({},a),k("header"));G=qa.createElement("div",{className:ye,style:de},qa.createElement("div",{className:`${I}-head-wrapper`},c&&qa.createElement("div",{className:ue,style:k("title")},c),s&&qa.createElement("div",{className:ve,style:k("extra")},s)),X)}const Q=(0,Wv.default)(`${I}-cover`,D("cover")),te=p?qa.createElement("div",{className:Q,style:k("cover")},p):null,ne=(0,Wv.default)(`${I}-body`,D("body")),Z=Object.assign(Object.assign({},l),k("body")),ee=qa.createElement("div",{className:ne,style:Z},u?z:C),J=(0,Wv.default)(`${I}-actions`,D("actions")),oe=m!=null&&m.length?qa.createElement(A0r,{actionClasses:J,actionStyle:k("actions"),actions:m}):null,le=(0,$0r.default)(O,["onTabChange"]),ge=(0,Wv.default)(I,_==null?void 0:_.className,{[`${I}-loading`]:u,[`${I}-bordered`]:f,[`${I}-hoverable`]:w,[`${I}-contain-grid`]:L,[`${I}-contain-tabs`]:v==null?void 0:v.length,[`${I}-${K}`]:K,[`${I}-type-${g}`]:!!g,[`${I}-rtl`]:M==="rtl"},r,i,N,B),he=Object.assign(Object.assign({},_==null?void 0:_.style),o);return A(qa.createElement("div",Object.assign({ref:t},le,{className:ge,style:he}),G,te,ee,oe))});KU.default=D0r;var ZU={},L0r=pe.default,F0r=_e.default;Object.defineProperty(ZU,"__esModule",{value:!0});ZU.default=void 0;var S5=F0r(d),N0r=L0r(St),k0r=Bt,z0r=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 B0r=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,s=z0r(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:a}=S5.useContext(k0r.ConfigContext),l=a("card",t),c=(0,N0r.default)(`${l}-meta`,n),u=r?S5.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?S5.createElement("div",{className:`${l}-meta-title`},i):null,h=o?S5.createElement("div",{className:`${l}-meta-description`},o):null,g=f||h?S5.createElement("div",{className:`${l}-meta-detail`},f,h):null;return S5.createElement("div",Object.assign({},s,{className:c}),u,g)};ZU.default=B0r;var pve=pe.default;Object.defineProperty(qU,"__esModule",{value:!0});qU.default=void 0;var H0r=pve(KU),j0r=pve($P),V0r=pve(ZU);const mve=H0r.default;mve.Grid=j0r.default;mve.Meta=V0r.default;qU.default=mve;var JU={};const G0r=_r(njt);var L7={};Object.defineProperty(L7,"__esModule",{value:!0});L7.prepareComponentToken=L7.default=void 0;var W0r=Kt,U0r=gn,q0r=Zt;const K0r=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,U0r.resetComponent)(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},Y0r=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:r,arrowOffset:i}=e,o=e.calc(r).div(Math.SQRT2).equal();return[{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:r,height:r,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(r).sub(o).div(2).equal(),insetInlineStart:e.calc(r).sub(o).div(2).equal(),display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:i,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:i,"&::after":{transform:"rotate(135deg)"}}}}]},X0r=e=>{const{componentCls:t,dotOffset:n,dotWidth:r,dotHeight:i,dotGap:o,colorBgContainer:s,motionDurationSlow:a}=e;return[{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:r,height:i,marginInline:o,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${a}`,button:{position:"relative",display:"block",width:"100%",height:i,padding:0,color:"transparent",fontSize:0,background:s,border:0,borderRadius:i,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${a}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(o).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:s,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},Q0r=e=>{const{componentCls:t,dotOffset:n,arrowOffset:r,marginXXS:i}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:r,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:r,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},o),{margin:`${(0,W0r.unit)(i)} 0`,verticalAlign:"baseline",button:o,"&.slick-active":Object.assign(Object.assign({},o),{button:o})})}}}},Z0r=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},Uit=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});L7.prepareComponentToken=Uit;L7.default=(0,q0r.genStyleHooks)("Carousel",e=>[K0r(e),Y0r(e),X0r(e),Q0r(e),Z0r(e)],Uit,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var vve=pe.default,J0r=_e.default;Object.defineProperty(JU,"__esModule",{value:!0});JU.default=void 0;var Gc=J0r(d),evr=vve(G0r),dre=vve(St),tvr=Bt,nvr=vve(L7),qit=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 sIe="slick-dots",aIe=e=>{var t=qit(e,["currentSlide","slideCount"]);return Gc.createElement("button",Object.assign({type:"button"},t))},rvr=Gc.forwardRef((e,t)=>{const{dots:n=!0,arrows:r=!1,prevArrow:i=Gc.createElement(aIe,{"aria-label":"prev"}),nextArrow:o=Gc.createElement(aIe,{"aria-label":"next"}),draggable:s=!1,waitForAnimate:a=!1,dotPosition:l="bottom",vertical:c=l==="left"||l==="right",rootClassName:u,className:f,style:h,id:g}=e,p=qit(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:m,direction:v,carousel:C}=Gc.useContext(tvr.ConfigContext),y=Gc.useRef(null),b=function(F){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;y.current.slickGoTo(F,D)};Gc.useImperativeHandle(t,()=>({goTo:b,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext}),[y.current]);const S=Gc.useRef(Gc.Children.count(e.children));Gc.useEffect(()=>{S.current!==Gc.Children.count(e.children)&&(b(e.initialSlide||0,!1),S.current=Gc.Children.count(e.children))},[e.children]);const w=Object.assign({vertical:c,className:(0,dre.default)(f,C==null?void 0:C.className),style:Object.assign(Object.assign({},C==null?void 0:C.style),h)},p);w.effect==="fade"&&(w.fade=!0);const x=m("carousel",w.prefixCls),E=!!n,R=(0,dre.default)(sIe,`${sIe}-${l}`,typeof n=="boolean"?!1:n==null?void 0:n.className),[O,T,M]=(0,nvr.default)(x),_=(0,dre.default)(x,{[`${x}-rtl`]:v==="rtl",[`${x}-vertical`]:w.vertical},T,M,u);return O(Gc.createElement("div",{className:_,id:g},Gc.createElement(evr.default,Object.assign({ref:y},w,{dots:E,dotsClass:R,arrows:r,prevArrow:i,nextArrow:o,draggable:s,verticalSwiping:c,waitForAnimate:a}))))});JU.default=rvr;var eq={};const Kit=_r(Ljt);var OP={},ivr=_e.default;Object.defineProperty(OP,"__esModule",{value:!0});OP.default=void 0;var ovr=ivr(d),svr=Bt;function avr(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=ovr.useContext(svr.ConfigContext),o=t||r,s=n("select",e),a=n("cascader",e);return[s,a,o,i]}OP.default=avr;var tq={},lvr=_e.default;Object.defineProperty(tq,"__esModule",{value:!0});tq.default=cvr;var lIe=lvr(d);function cvr(e,t){return lIe.useMemo(()=>t?lIe.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}var TP={},Cve=pe.default,uvr=_e.default;Object.defineProperty(TP,"__esModule",{value:!0});TP.default=void 0;var pR=uvr(d),dvr=Cve(T9),fvr=Cve(Jg),hvr=Cve(P3);const gvr=(e,t,n)=>{let r=n;n||(r=t?pR.createElement(dvr.default,null):pR.createElement(hvr.default,null));const i=pR.createElement("span",{className:`${e}-menu-item-loading-icon`},pR.createElement(fvr.default,{spin:!0}));return pR.useMemo(()=>[r,i],[r])};TP.default=gvr;var nq={},i3={},IP={},kg={};Object.defineProperty(kg,"__esModule",{value:!0});kg.genCheckboxStyle=kg.default=void 0;kg.getStyle=Qit;var cIe=Kt,CL=gn,Yit=Zt;const Xit=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,CL.resetComponent)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,CL.resetComponent)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,CL.resetComponent)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,CL.genFocusOutline)(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,cIe.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,cIe.unit)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
||
${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)
|
||
`]:{[`&: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=`
|
||
&${r}-expand ${r}-expand-icon,
|
||
${r}-loading-icon
|
||
`;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(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{SHOW_CHILD:c2r,SHOW_PARENT:u2r}=Jit.default;function d2r(e,t,n){const r=e.toLowerCase().split(t).reduce((s,a,l)=>l===0?[a]:[].concat((0,Vvr.default)(s),[t,a]),[]),i=[];let o=0;return r.forEach((s,a)=>{const l=o+s.length;let c=e.slice(o,l);o=l,a%2===1&&(c=W1.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${a}`},c)),i.push(c)}),i}const f2r=(e,t,n,r)=>{const i=[],o=e.toLowerCase();return t.forEach((s,a)=>{a!==0&&i.push(" / ");let l=s[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=d2r(String(l),o,n)),i.push(l)}),i},_9=W1.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:o,className:s,rootClassName:a,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:f="",popupClassName:h,dropdownClassName:g,expandIcon:p,placement:m,showSearch:v,allowClear:C=!0,notFoundContent:y,direction:b,getPopupContainer:S,status:w,showArrow:x,builtinPlacements:E,style:R,variant:O}=e,T=l2r(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),M=(0,eot.default)(T,["suffixIcon"]),{getPopupContainer:_,getPrefixCls:F,popupOverflow:D,cascader:k}=W1.useContext(Uvr.ConfigContext),{status:L,hasFeedback:I,isFormItemInput:A,feedbackIcon:N}=W1.useContext(Xvr.FormItemInputContext),B=(0,fIe.getMergedStatus)(L,w),[z,j,W,G]=(0,r2r.default)(r,b),K=W==="rtl",q=F(),X=(0,hIe.default)(z),[Q,te,ne]=(0,Jvr.default)(z,X),Z=(0,hIe.default)(j),[ee]=(0,a2r.default)(j,Z),{compactSize:J,compactItemClassnames:oe}=(0,n2r.useCompactItemContext)(z,b),[le,ge]=(0,Qvr.default)("cascader",O,c),he=y||(G==null?void 0:G("Cascader"))||W1.createElement(qvr.default,{componentName:"Cascader"}),ye=(0,uIe.default)(h||g,`${j}-dropdown`,{[`${j}-dropdown-rtl`]:W==="rtl"},a,X,Z,te,ne),ue=W1.useMemo(()=>{if(!v)return v;let Re={render:f2r};return typeof v=="object"&&(Re=Object.assign(Object.assign({},Re),v)),Re},[v]),ve=(0,Yvr.default)(Re=>{var Le;return(Le=i??J)!==null&&Le!==void 0?Le:Re}),de=W1.useContext(Kvr.default),xe=o??de,[Ee,De]=(0,o2r.default)(z,K,p),Be=(0,i2r.default)(j,l),Ge=(0,t2r.default)(e.suffixIcon,x),{suffixIcon:Ue,removeIcon:We,clearIcon:Ve}=(0,e2r.default)(Object.assign(Object.assign({},e),{hasFeedback:I,feedbackIcon:N,showSuffixIcon:Ge,multiple:l,prefixCls:z,componentName:"Cascader"})),Fe=W1.useMemo(()=>m!==void 0?m:K?"bottomRight":"bottomLeft",[m,K]),ke=C===!0?{clearIcon:Ve}:C,[Ye]=(0,Gvr.useZIndex)("SelectLike",(n=M.dropdownStyle)===null||n===void 0?void 0:n.zIndex),ze=W1.createElement(Jit.default,Object.assign({prefixCls:z,className:(0,uIe.default)(!r&&j,{[`${z}-lg`]:ve==="large",[`${z}-sm`]:ve==="small",[`${z}-rtl`]:K,[`${z}-${le}`]:ge,[`${z}-in-form-item`]:A},(0,fIe.getStatusClassNames)(z,B,I),oe,k==null?void 0:k.className,s,a,X,Z,te,ne),disabled:xe,style:Object.assign(Object.assign({},k==null?void 0:k.style),R)},M,{builtinPlacements:(0,Zvr.default)(E,D),direction:W,placement:Fe,notFoundContent:he,allowClear:ke,showSearch:ue,expandIcon:Ee,suffixIcon:Ue,removeIcon:We,loadingIcon:De,checkable:Be,dropdownClassName:ye,dropdownPrefixCls:r||j,dropdownStyle:Object.assign(Object.assign({},M.dropdownStyle),{zIndex:Ye}),choiceTransitionName:(0,dIe.getTransitionName)(q,"",f),transitionName:(0,dIe.getTransitionName)(q,"slide-up",u),getPopupContainer:S||_,ref:t}));return ee(Q(ze))}),h2r=(0,Wvr.default)(_9,"dropdownAlign",e=>(0,eot.default)(e,["visible"]));_9.SHOW_PARENT=u2r;_9.SHOW_CHILD=c2r;_9.Panel=s2r.default;_9._InternalPanelDoNotUseOrYouWillBeFired=h2r;eq.default=_9;var V3={},MP={},PP={},g2r=pe.default;Object.defineProperty(PP,"__esModule",{value:!0});PP.default=void 0;var p2r=g2r(d);const m2r=p2r.default.createContext(null);PP.default=m2r;var G3=pe.default,v2r=_e.default;Object.defineProperty(MP,"__esModule",{value:!0});MP.default=void 0;var Wc=v2r(d),gIe=G3(St),C2r=G3($it),y2r=Vi,b2r=G3(M3),S2r=tb,w2r=Bt,x2r=G3(Co),E2r=G3(Xr),R2r=Ir,$2r=G3(PP),O2r=G3(kg),T2r=G3(HU),I2r=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 M2r=(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=I2r(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:m,checkbox:v}=Wc.useContext(w2r.ConfigContext),C=Wc.useContext($2r.default),{isFormItemInput:y}=Wc.useContext(R2r.FormItemInputContext),b=Wc.useContext(x2r.default),S=(n=(C==null?void 0:C.disabled)||h)!==null&&n!==void 0?n:b,w=Wc.useRef(g.value),x=Wc.useRef(null),E=(0,y2r.composeRef)(t,x);Wc.useEffect(()=>{C==null||C.registerValue(g.value)},[]),Wc.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]),Wc.useEffect(()=>{var A;!((A=x.current)===null||A===void 0)&&A.input&&(x.current.input.indeterminate=a)},[a]);const R=p("checkbox",r),O=(0,E2r.default)(R),[T,M,_]=(0,O2r.default)(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=(0,gIe.default)(`${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=(0,gIe.default)({[`${R}-indeterminate`]:a},S2r.TARGET_CLS,M),[L,I]=(0,T2r.default)(F.onClick);return T(Wc.createElement(b2r.default,{component:"Checkbox",disabled:S},Wc.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:L},Wc.createElement(C2r.default,Object.assign({},F,{onClick:I,prefixCls:R,className:k,disabled:S,ref:E})),s!==void 0&&Wc.createElement("span",null,s))))},P2r=Wc.forwardRef(M2r);MP.default=P2r;var tot={};(function(e){"use client";var t=_e.default,n=pe.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"GroupContext",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var r=n(zr),i=t(d),o=n(St),s=n(mi),a=Bt,l=n(Xr),c=n(MP),u=n(PP),f=n(kg),h=function(p,m){var v={};for(var C in p)Object.prototype.hasOwnProperty.call(p,C)&&m.indexOf(C)<0&&(v[C]=p[C]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,C=Object.getOwnPropertySymbols(p);y<C.length;y++)m.indexOf(C[y])<0&&Object.prototype.propertyIsEnumerable.call(p,C[y])&&(v[C[y]]=p[C[y]]);return v};const g=i.forwardRef((p,m)=>{const{defaultValue:v,children:C,options:y=[],prefixCls:b,className:S,rootClassName:w,style:x,onChange:E}=p,R=h(p,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:O,direction:T}=i.useContext(a.ConfigContext),[M,_]=i.useState(R.value||v||[]),[F,D]=i.useState([]);i.useEffect(()=>{"value"in R&&_(R.value||[])},[R.value]);const k=i.useMemo(()=>y.map(te=>typeof te=="string"||typeof te=="number"?{label:te,value:te}:te),[y]),L=te=>{D(ne=>ne.filter(Z=>Z!==te))},I=te=>{D(ne=>[].concat((0,r.default)(ne),[te]))},A=te=>{const ne=M.indexOf(te.value),Z=(0,r.default)(M);ne===-1?Z.push(te.value):Z.splice(ne,1),"value"in R||_(Z),E==null||E(Z.filter(ee=>F.includes(ee)).sort((ee,J)=>{const oe=k.findIndex(ge=>ge.value===ee),le=k.findIndex(ge=>ge.value===J);return oe-le}))},N=O("checkbox",b),B=`${N}-group`,z=(0,l.default)(N),[j,W,G]=(0,f.default)(N,z),K=(0,s.default)(R,["value","disabled"]),q=y.length?k.map(te=>i.createElement(c.default,{prefixCls:N,key:te.value.toString(),disabled:"disabled"in te?te.disabled:R.disabled,value:te.value,checked:M.includes(te.value),onChange:te.onChange,className:`${B}-item`,style:te.style,title:te.title,id:te.id,required:te.required},te.label)):C,X={toggleOption:A,value:M,disabled:R.disabled,name:R.name,registerValue:I,cancelValue:L},Q=(0,o.default)(B,{[`${B}-rtl`]:T==="rtl"},S,w,G,z,W);return j(i.createElement("div",Object.assign({className:Q,style:x},K,{ref:m}),i.createElement(u.default.Provider,{value:X},q)))});e.default=g})(tot);var not=pe.default;Object.defineProperty(V3,"__esModule",{value:!0});V3.default=void 0;var _2r=not(MP),A2r=not(tot);const yve=_2r.default;yve.Group=A2r.default;yve.__ANT_CHECKBOX=!0;V3.default=yve;var iq={},gb={},A9={},_P={};Object.defineProperty(_P,"__esModule",{value:!0});_P.default=void 0;var D2r=d;const L2r=(0,D2r.createContext)({});_P.default=L2r;var rot=pe.default,F2r=_e.default;Object.defineProperty(A9,"__esModule",{value:!0});A9.default=void 0;var yL=F2r(d),N2r=rot(St),k2r=Bt,z2r=rot(_P),B2r=iu,H2r=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 pIe(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const j2r=["xs","sm","md","lg","xl","xxl"],V2r=yL.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=yL.useContext(k2r.ConfigContext),{gutter:i,wrap:o}=yL.useContext(z2r.default),{prefixCls:s,span:a,order:l,offset:c,push:u,pull:f,className:h,children:g,flex:p,style:m}=e,v=H2r(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",s),[y,b,S]=(0,B2r.useColStyle)(C),w={};let x={};j2r.forEach(O=>{let T={};const M=e[O];typeof M=="number"?T.span=M:typeof M=="object"&&(T=M||{}),delete v[O],x=Object.assign(Object.assign({},x),{[`${C}-${O}-${T.span}`]:T.span!==void 0,[`${C}-${O}-order-${T.order}`]:T.order||T.order===0,[`${C}-${O}-offset-${T.offset}`]:T.offset||T.offset===0,[`${C}-${O}-push-${T.push}`]:T.push||T.push===0,[`${C}-${O}-pull-${T.pull}`]:T.pull||T.pull===0,[`${C}-rtl`]:r==="rtl"}),T.flex&&(x[`${C}-${O}-flex`]=!0,w[`--${C}-${O}-flex`]=pIe(T.flex))});const E=(0,N2r.default)(C,{[`${C}-${a}`]:a!==void 0,[`${C}-order-${l}`]:l,[`${C}-offset-${c}`]:c,[`${C}-push-${u}`]:u,[`${C}-pull-${f}`]:f},h,x,b,S),R={};if(i&&i[0]>0){const O=i[0]/2;R.paddingLeft=O,R.paddingRight=O}return p&&(R.flex=pIe(p),o===!1&&!R.minWidth&&(R.minWidth=0)),y(yL.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},R),m),w),className:E,ref:t}),g))});A9.default=V2r;var oq={},iot=pe.default,oot=_e.default;Object.defineProperty(oq,"__esModule",{value:!0});oq.default=void 0;var Bh=oot(d),G2r=iot(St),aO=oot(th),W2r=Bt,U2r=iot(_P),q2r=iu,K2r=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 mIe(e,t){const[n,r]=Bh.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<aO.responsiveArray.length;o++){const s=aO.responsiveArray[o];if(!t[s])continue;const a=e[s];if(a!==void 0){r(a);return}}};return Bh.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const Y2r=Bh.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:s,children:a,gutter:l=0,wrap:c}=e,u=K2r(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=Bh.useContext(W2r.ConfigContext),[g,p]=Bh.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,v]=Bh.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),C=mIe(i,m),y=mIe(r,m),b=Bh.useRef(l),S=(0,aO.default)();Bh.useEffect(()=>{const I=S.subscribe(A=>{v(A);const N=b.current||0;(!Array.isArray(N)&&typeof N=="object"||Array.isArray(N)&&(typeof N[0]=="object"||typeof N[1]=="object"))&&p(A)});return()=>S.unsubscribe(I)},[]);const w=()=>{const I=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((N,B)=>{if(typeof N=="object")for(let z=0;z<aO.responsiveArray.length;z++){const j=aO.responsiveArray[z];if(g[j]&&N[j]!==void 0){I[B]=N[j];break}}else I[B]=N}),I},x=f("row",n),[E,R,O]=(0,q2r.useRowStyle)(x),T=w(),M=(0,G2r.default)(x,{[`${x}-no-wrap`]:c===!1,[`${x}-${y}`]:y,[`${x}-${C}`]:C,[`${x}-rtl`]:h==="rtl"},o,R,O),_={},F=T[0]!=null&&T[0]>0?T[0]/-2:void 0;F&&(_.marginLeft=F,_.marginRight=F);const[D,k]=T;_.rowGap=k;const L=Bh.useMemo(()=>({gutter:[D,k],wrap:c}),[D,k,c]);return E(Bh.createElement(U2r.default.Provider,{value:L},Bh.createElement("div",Object.assign({},u,{className:M,style:Object.assign(Object.assign({},_),s),ref:t}),a)))});oq.default=Y2r;(function(e){"use client";var t=pe.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Col",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Row",{enumerable:!0,get:function(){return i.default}}),e.default=void 0;var n=t(A9),r=t(Ym),i=t(oq);function o(){return(0,r.default)()}e.default={useBreakpoint:o}})(gb);Object.defineProperty(iq,"__esModule",{value:!0});iq.default=void 0;var X2r=gb;iq.default=X2r.Col;var sq={},aq={},lq={},AP={},F7={};Object.defineProperty(F7,"__esModule",{value:!0});F7.prepareComponentToken=F7.default=void 0;var D6=Kt,Q2r=gn,vIe=Zt;const Z2r=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:s,verticalMarginInline:a}=e;return{[t]:Object.assign(Object.assign({},(0,Q2r.resetComponent)(e)),{borderBlockStart:`${(0,D6.unit)(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:a,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,D6.unit)(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,D6.unit)(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,D6.unit)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,D6.unit)(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${(0,D6.unit)(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${(0,D6.unit)(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},sot=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS});F7.prepareComponentToken=sot;F7.default=(0,vIe.genStyleHooks)("Divider",e=>{const t=(0,vIe.mergeToken)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Z2r(t)]},sot,{unitless:{orientationMargin:!0}});var aot=pe.default,J2r=_e.default;Object.defineProperty(AP,"__esModule",{value:!0});AP.default=void 0;var bL=J2r(d),e4r=aot(St),t4r=Bt,n4r=aot(F7),r4r=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 i4r=e=>{const{getPrefixCls:t,direction:n,divider:r}=bL.useContext(t4r.ConfigContext),{prefixCls:i,type:o="horizontal",orientation:s="center",orientationMargin:a,className:l,rootClassName:c,children:u,dashed:f,variant:h="solid",plain:g,style:p}=e,m=r4r(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",i),[C,y,b]=(0,n4r.default)(v),S=!!u,w=s==="left"&&a!=null,x=s==="right"&&a!=null,E=(0,e4r.default)(v,r==null?void 0:r.className,y,b,`${v}-${o}`,{[`${v}-with-text`]:S,[`${v}-with-text-${s}`]:S,[`${v}-dashed`]:!!f,[`${v}-${h}`]:h!=="solid",[`${v}-plain`]:!!g,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:x},l,c),R=bL.useMemo(()=>typeof a=="number"?a:/^\d+$/.test(a)?Number(a):a,[a]),O=Object.assign(Object.assign({},w&&{marginLeft:R}),x&&{marginRight:R});return C(bL.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r==null?void 0:r.style),p)},m,{role:"separator"}),u&&o!=="vertical"&&bL.createElement("span",{className:`${v}-inner-text`,style:O},u)))};AP.default=i4r;var cq={},DP={};const o4r=_r(nVt);var N7={};Object.defineProperty(N7,"__esModule",{value:!0});N7.prepareComponentToken=N7.default=void 0;var Uv=Kt,UN=gn,CIe=Zt;function yIe(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function bIe(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const s4r=Object.assign({overflow:"hidden"},UN.textEllipsis),a4r=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,UN.resetComponent)(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),(0,UN.genFocusStyle)(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,Uv.unit)(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},bIe(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},(0,UN.genFocusOutline)(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:(0,Uv.unit)(n),padding:`0 ${(0,Uv.unit)(e.segmentedPaddingHorizontal)}`},s4r),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},bIe(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,Uv.unit)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:(0,Uv.unit)(r),padding:`0 ${(0,Uv.unit)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:(0,Uv.unit)(i),padding:`0 ${(0,Uv.unit)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),yIe(`&-disabled ${t}-item`,e)),yIe(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},lot=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:o,lineWidthBold:s,colorBgLayout:a}=e;return{trackPadding:s,trackBg:a,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:o,itemSelectedColor:n}};N7.prepareComponentToken=lot;N7.default=(0,CIe.genStyleHooks)("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=(0,CIe.mergeToken)(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[a4r(r)]},lot);var LP=pe.default,l4r=_e.default;Object.defineProperty(DP,"__esModule",{value:!0});DP.default=void 0;var qv=l4r(d),c4r=LP(St),u4r=LP(o4r),d4r=Bt,f4r=LP(io),h4r=LP(N7),g4r=LP(P9),SIe=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 p4r(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const m4r=qv.forwardRef((e,t)=>{const n=(0,g4r.default)(),{prefixCls:r,className:i,rootClassName:o,block:s,options:a=[],size:l="middle",style:c,vertical:u,name:f=n}=e,h=SIe(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:g,direction:p,segmented:m}=qv.useContext(d4r.ConfigContext),v=g("segmented",r),[C,y,b]=(0,h4r.default)(v),S=(0,f4r.default)(l),w=qv.useMemo(()=>a.map(R=>{if(p4r(R)){const{icon:O,label:T}=R,M=SIe(R,["icon","label"]);return Object.assign(Object.assign({},M),{label:qv.createElement(qv.Fragment,null,qv.createElement("span",{className:`${v}-item-icon`},O),T&&qv.createElement("span",null,T))})}return R}),[a,v]),x=(0,c4r.default)(i,o,m==null?void 0:m.className,{[`${v}-block`]:s,[`${v}-sm`]:S==="small",[`${v}-lg`]:S==="large",[`${v}-vertical`]:u},y,b),E=Object.assign(Object.assign({},m==null?void 0:m.style),c);return C(qv.createElement(u4r.default,Object.assign({},h,{name:f,className:x,style:E,options:w,ref:t,prefixCls:v,direction:p,vertical:u})))}),v4r=m4r;DP.default=v4r;var o3={},C4r=pe.default;Object.defineProperty(o3,"__esModule",{value:!0});o3.PanelPresetsContext=o3.PanelPickerContext=void 0;var cot=C4r(d);o3.PanelPickerContext=cot.default.createContext({});o3.PanelPresetsContext=cot.default.createContext({});var FP={},y4r=pe.default;Object.defineProperty(FP,"__esModule",{value:!0});FP.default=void 0;var b4r=y4r(d),S4r=ts;const w4r=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const o=n.toHsb();o.a=0;const s=(0,S4r.generateColor)(o);s.cleared=!0,r(s)}};return b4r.default.createElement("div",{className:`${t}-clear`,onClick:i})};FP.default=w4r;var uq={},dq={};Object.defineProperty(dq,"__esModule",{value:!0});dq.ColorFormat=void 0;var wIe;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(wIe||(dq.ColorFormat=wIe={}));var fq={},D9={},NP={},Sue={exports:{}},hq={},bve={};Object.defineProperty(bve,"__esModule",{value:!0});var x4r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};bve.default=x4r;var E4r=_e.default,Sve=pe.default;Object.defineProperty(hq,"__esModule",{value:!0});hq.default=void 0;var R4r=Sve(lr),uot=E4r(d),$4r=Sve(bve),O4r=Sve(cr),T4r=function(t,n){return uot.createElement(O4r.default,(0,R4r.default)({},t,{ref:n,icon:$4r.default}))},I4r=uot.forwardRef(T4r);hq.default=I4r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(hq);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Sue,Sue.exports);var dot=Sue.exports;const M4r=_r(wVt);var k7={},gq={};Object.defineProperty(gq,"__esModule",{value:!0});gq.prepareComponentToken=void 0;var P4r=Us,_4r=j3;const A4r=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},(0,_4r.initComponentToken)(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new P4r.FastColor(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})};gq.prepareComponentToken=A4r;Object.defineProperty(k7,"__esModule",{value:!0});k7.genRadiusStyle=k7.default=void 0;var cf=Kt,lO=H3,mR=cs,SL=gn,D4r=dv,xIe=Zt,L4r=gq;const wue=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}};k7.genRadiusStyle=wue;const F4r=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:s,controlHeightLG:a,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:h,paddingInlineLG:g,colorTextDescription:p,motionDurationMid:m,handleHoverColor:v,handleOpacity:C,paddingInline:y,paddingBlock:b,handleBg:S,handleActiveBg:w,colorTextDisabled:x,borderRadiusSM:E,borderRadiusLG:R,controlWidth:O,handleBorderColor:T,filledHandleBg:M,lineHeightLG:_,calc:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,SL.resetComponent)(e)),(0,lO.genBasicInputStyle)(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:i}),(0,mR.genOutlinedStyle)(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${(0,cf.unit)(n)} ${r} ${T}`}}})),(0,mR.genFilledStyle)(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${(0,cf.unit)(n)} ${r} ${T}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),(0,mR.genBorderlessStyle)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:s,lineHeight:_,borderRadius:R,[`input${t}-input`]:{height:F(a).sub(F(n).mul(2)).equal(),padding:`${(0,cf.unit)(h)} ${(0,cf.unit)(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:F(l).sub(F(n).mul(2)).equal(),padding:`${(0,cf.unit)(f)} ${(0,cf.unit)(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,SL.resetComponent)(e)),(0,lO.genInputGroupStyle)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},(0,mR.genOutlinedGroupStyle)(e)),(0,mR.genFilledGroupStyle)(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,SL.resetComponent)(e)),{width:"100%",padding:`${(0,cf.unit)(b)} ${(0,cf.unit)(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),(0,lO.genPlaceholderStyle)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:C,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
||
${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
|
||
`]:{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"}},[`
|
||
${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
|
||
`]:{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&&Ua.createElement(EIe.default,{form:!0,space:!0},f),classNames:{input:K,variant:(0,w5.default)({[`${S}-${j}`]:W},(0,hre.getStatusClassNames)(S,A,D)),affixWrapper:(0,w5.default)({[`${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:(0,w5.default)({[`${q}-rtl`]:r==="rtl"},E),groupWrapper:(0,w5.default)({[`${S}-group-wrapper-sm`]:N==="small",[`${S}-group-wrapper-lg`]:N==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${j}`]:W},(0,hre.getStatusClassNames)(`${S}-group-wrapper`,A,D),E)}},b));return x(X)}),pot=got,Y4r=e=>Ua.createElement(hot.default,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ua.createElement(got,Object.assign({},e)));pot._InternalPanelDoNotUseOrYouWillBeFired=Y4r;NP.default=pot;var mot=pe.default,X4r=_e.default;Object.defineProperty(D9,"__esModule",{value:!0});D9.default=void 0;var gre=X4r(d),Q4r=mot(St),Z4r=mot(NP);const J4r=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:o,className:s,formatter:a}=e;const l=`${t}-steppers`,[c,u]=(0,gre.useState)(i);return(0,gre.useEffect)(()=>{Number.isNaN(i)||u(i)},[i]),gre.default.createElement(Z4r.default,{className:(0,Q4r.default)(l,s),min:n,max:r,value:c,formatter:a,size:"small",onChange:f=>{i||u(f||0),o==null||o(f)}})};D9.default=J4r;var e3r=pe.default,t3r=_e.default;Object.defineProperty(fq,"__esModule",{value:!0});fq.default=void 0;var pre=t3r(d),mre=ts,n3r=e3r(D9);const r3r=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[o,s]=(0,pre.useState)((0,mre.generateColor)(n||"#000"));(0,pre.useEffect)(()=>{n&&s(n)},[n]);const a=l=>{const c=o.toHsb();c.a=(l||0)/100;const u=(0,mre.generateColor)(c);n||s(u),r==null||r(u)};return pre.default.createElement(n3r.default,{value:(0,mre.getColorAlpha)(o),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:a})};fq.default=r3r;var pq={},pb={},mq={},vot=pe.default,i3r=_e.default;Object.defineProperty(mq,"__esModule",{value:!0});mq.default=void 0;var qN=i3r(d),RIe=qN,o3r=vot(St),s3r=Bt,$Ie=Ir,a3r=vot(H3);const l3r=e=>{const{getPrefixCls:t,direction:n}=(0,qN.useContext)(s3r.ConfigContext),{prefixCls:r,className:i}=e,o=t("input-group",r),s=t("input"),[a,l]=(0,a3r.default)(s),c=(0,o3r.default)(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},l,i),u=(0,qN.useContext)($Ie.FormItemInputContext),f=(0,qN.useMemo)(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return a(RIe.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},RIe.createElement($Ie.FormItemInputContext.Provider,{value:f},e.children)))};mq.default=l3r;var L9={};const c3r=_r(dVt);var F9={};Object.defineProperty(F9,"__esModule",{value:!0});F9.hasAddon=u3r;F9.hasPrefixSuffix=d3r;F9.resolveOnChange=f3r;F9.triggerFocus=h3r;function u3r(e){return!!(e.addonBefore||e.addonAfter)}function d3r(e){return!!(e.prefix||e.suffix||e.allowClear)}function OIe(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function f3r(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=OIe(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=OIe(t,e,r),n(i);return}n(i)}}function h3r(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var N9={},Cot=pe.default;Object.defineProperty(N9,"__esModule",{value:!0});N9.default=void 0;var g3r=Cot(d),p3r=Cot(av);const m3r=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:g3r.default.createElement(p3r.default,null)}),t};N9.default=m3r;var vq={};Object.defineProperty(vq,"__esModule",{value:!0});vq.default=v3r;var TIe=d;function v3r(e,t){const n=(0,TIe.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{var i,o,s,a;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((a=e.current)===null||a===void 0||a.input.removeAttribute("value"))}))};return(0,TIe.useEffect)(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}var wve={};Object.defineProperty(wve,"__esModule",{value:!0});wve.hasPrefixSuffix=C3r;function C3r(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(function(e){"use client";var t=pe.default,n=_e.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"triggerFocus",{enumerable:!0,get:function(){return s.triggerFocus}});var r=n(d),i=t(St),o=t(c3r),s=F9,a=Vi,l=t(ah),c=t(N9),u=Ql,f=Bt,h=t(Co),g=t(Xr),p=t(io),m=Ir,v=t(Id),C=ds,y=t(vq),b=t(H3),S=wve,w=function(E,R){var O={};for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&R.indexOf(T)<0&&(O[T]=E[T]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,T=Object.getOwnPropertySymbols(E);M<T.length;M++)R.indexOf(T[M])<0&&Object.prototype.propertyIsEnumerable.call(E,T[M])&&(O[T[M]]=E[T[M]]);return O};const x=(0,r.forwardRef)((E,R)=>{var O;const{prefixCls:T,bordered:M=!0,status:_,size:F,disabled:D,onBlur:k,onFocus:L,suffix:I,allowClear:A,addonAfter:N,addonBefore:B,className:z,style:j,styles:W,rootClassName:G,onChange:K,classNames:q,variant:X}=E,Q=w(E,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:te,direction:ne,input:Z}=r.default.useContext(f.ConfigContext),ee=te("input",T),J=(0,r.useRef)(null),oe=(0,g.default)(ee),[le,ge,he]=(0,b.default)(ee,oe),{compactSize:ye,compactItemClassnames:ue}=(0,C.useCompactItemContext)(ee,ne),ve=(0,p.default)(Me=>{var be;return(be=F??ye)!==null&&be!==void 0?be:Me}),de=r.default.useContext(h.default),xe=D??de,{status:Ee,hasFeedback:De,feedbackIcon:Be}=(0,r.useContext)(m.FormItemInputContext),Ge=(0,u.getMergedStatus)(Ee,_),Ue=(0,S.hasPrefixSuffix)(E)||!!De;(0,r.useRef)(Ue);const We=(0,y.default)(J,!0),Ve=Me=>{We(),k==null||k(Me)},Fe=Me=>{We(),L==null||L(Me)},ke=Me=>{We(),K==null||K(Me)},Ye=(De||I)&&r.default.createElement(r.default.Fragment,null,I,De&&Be),ze=(0,c.default)(A??(Z==null?void 0:Z.allowClear)),[Re,Le]=(0,v.default)("input",X,M);return le(r.default.createElement(o.default,Object.assign({ref:(0,a.composeRef)(R,J),prefixCls:ee,autoComplete:Z==null?void 0:Z.autoComplete},Q,{disabled:xe,onBlur:Ve,onFocus:Fe,style:Object.assign(Object.assign({},Z==null?void 0:Z.style),j),styles:Object.assign(Object.assign({},Z==null?void 0:Z.styles),W),suffix:Ye,allowClear:ze,className:(0,i.default)(z,G,he,oe,ue,Z==null?void 0:Z.className),onChange:ke,addonBefore:B&&r.default.createElement(l.default,{form:!0,space:!0},B),addonAfter:N&&r.default.createElement(l.default,{form:!0,space:!0},N),classNames:Object.assign(Object.assign(Object.assign({},q),Z==null?void 0:Z.classNames),{input:(0,i.default)({[`${ee}-sm`]:ve==="small",[`${ee}-lg`]:ve==="large",[`${ee}-rtl`]:ne==="rtl"},q==null?void 0:q.input,(O=Z==null?void 0:Z.classNames)===null||O===void 0?void 0:O.input,ge),variant:(0,i.default)({[`${ee}-${Re}`]:Le},(0,u.getStatusClassNames)(ee,Ge)),affixWrapper:(0,i.default)({[`${ee}-affix-wrapper-sm`]:ve==="small",[`${ee}-affix-wrapper-lg`]:ve==="large",[`${ee}-affix-wrapper-rtl`]:ne==="rtl"},ge),wrapper:(0,i.default)({[`${ee}-group-rtl`]:ne==="rtl"},ge),groupWrapper:(0,i.default)({[`${ee}-group-wrapper-sm`]:ve==="small",[`${ee}-group-wrapper-lg`]:ve==="large",[`${ee}-group-wrapper-rtl`]:ne==="rtl",[`${ee}-group-wrapper-${Re}`]:Le},(0,u.getStatusClassNames)(`${ee}-group-wrapper`,Ge,De),ge)})})))});e.default=x})(L9);var Cq={},yq={};Object.defineProperty(yq,"__esModule",{value:!0});yq.default=void 0;var IIe=Zt,MIe=j3;const y3r=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};yq.default=(0,IIe.genStyleHooks)(["Input","OTP"],e=>{const t=(0,IIe.mergeToken)(e,(0,MIe.initInputToken)(e));return[y3r(t)]},MIe.initComponentToken);var bq={},yot=pe.default,b3r=_e.default;Object.defineProperty(bq,"__esModule",{value:!0});bq.default=void 0;var wL=b3r(d),S3r=yot(xu),w3r=yot(L9),x3r=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 E3r=wL.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:o,mask:s}=e,a=x3r(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof s=="string"?s:n,c=p=>{r(o,p.target.value)},u=wL.useRef(null);wL.useImperativeHandle(t,()=>u.current);const f=()=>{(0,S3r.default)(()=>{var p;const m=(p=u.current)===null||p===void 0?void 0:p.input;document.activeElement===m&&m&&m.select()})},h=p=>{const{key:m,ctrlKey:v,metaKey:C}=p;m==="ArrowLeft"?i(o-1):m==="ArrowRight"?i(o+1):m==="z"&&(v||C)&&p.preventDefault(),f()},g=p=>{p.key==="Backspace"&&!n&&i(o-1),f()};return wL.createElement(w3r.default,Object.assign({type:s===!0?"password":"text"},a,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:h,onKeyUp:g,onMouseDown:f,onMouseUp:f}))});bq.default=E3r;var R3r=_e.default,W3=pe.default;Object.defineProperty(Cq,"__esModule",{value:!0});Cq.default=void 0;var $3r=W3(zr),Qd=R3r(d),O3r=W3(St),PIe=W3(hl),T3r=W3(oh),I3r=Ql,M3r=Bt,P3r=W3(Xr),_3r=W3(io),_Ie=Ir,A3r=W3(yq),D3r=W3(bq),L3r=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 xL(e){return(e||"").split("")}const F3r=Qd.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:s,onChange:a,formatter:l,variant:c,disabled:u,status:f,autoFocus:h,mask:g,type:p,onInput:m,inputMode:v}=e,C=L3r(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:b}=Qd.useContext(M3r.ConfigContext),S=y("otp",n),w=(0,T3r.default)(C,{aria:!0,data:!0,attr:!0}),x=(0,P3r.default)(S),[E,R,O]=(0,A3r.default)(S,x),T=(0,_3r.default)(G=>i??G),M=Qd.useContext(_Ie.FormItemInputContext),_=(0,I3r.getMergedStatus)(M.status,f),F=Qd.useMemo(()=>Object.assign(Object.assign({},M),{status:_,hasFeedback:!1,feedbackIcon:null}),[M,_]),D=Qd.useRef(null),k=Qd.useRef({});Qd.useImperativeHandle(t,()=>({focus:()=>{var G;(G=k.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let K=0;K<r;K+=1)(G=k.current[K])===null||G===void 0||G.blur()},nativeElement:D.current}));const L=G=>l?l(G):G,[I,A]=Qd.useState(xL(L(o||"")));Qd.useEffect(()=>{s!==void 0&&A(xL(s))},[s]);const N=(0,PIe.default)(G=>{A(G),m&&m(G),a&&G.length===r&&G.every(K=>K)&&G.some((K,q)=>I[q]!==K)&&a(G.join(""))}),B=(0,PIe.default)((G,K)=>{let q=(0,$3r.default)(I);for(let Q=0;Q<G;Q+=1)q[Q]||(q[Q]="");K.length<=1?q[G]=K:q=q.slice(0,G).concat(xL(K)),q=q.slice(0,r);for(let Q=q.length-1;Q>=0&&!q[Q];Q-=1)q.pop();const X=L(q.map(Q=>Q||" ").join(""));return q=xL(X).map((Q,te)=>Q===" "&&!q[te]?q[te]:Q),q}),z=(G,K)=>{var q;const X=B(G,K),Q=Math.min(G+K.length,r-1);Q!==G&&X[G]!==void 0&&((q=k.current[Q])===null||q===void 0||q.focus()),N(X)},j=G=>{var K;(K=k.current[G])===null||K===void 0||K.focus()},W={variant:c,disabled:u,status:_,mask:g,type:p,inputMode:v};return E(Qd.createElement("div",Object.assign({},w,{ref:D,className:(0,O3r.default)(S,{[`${S}-sm`]:T==="small",[`${S}-lg`]:T==="large",[`${S}-rtl`]:b==="rtl"},O,R)}),Qd.createElement(_Ie.FormItemInputContext.Provider,{value:F},Array.from({length:r}).map((G,K)=>{const q=`otp-${K}`,X=I[K]||"";return Qd.createElement(D3r.default,Object.assign({ref:Q=>{k.current[K]=Q},key:q,index:K,size:T,htmlSize:1,className:`${S}-input`,onChange:z,value:X,onActiveChange:j,autoFocus:K===0&&h},W))}))))});Cq.default=F3r;var Sq={},xue={exports:{}},wq={},xve={};Object.defineProperty(xve,"__esModule",{value:!0});var N3r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};xve.default=N3r;var k3r=_e.default,Eve=pe.default;Object.defineProperty(wq,"__esModule",{value:!0});wq.default=void 0;var z3r=Eve(lr),bot=k3r(d),B3r=Eve(xve),H3r=Eve(cr),j3r=function(t,n){return bot.createElement(H3r.default,(0,z3r.default)({},t,{ref:n,icon:B3r.default}))},V3r=bot.forwardRef(j3r);wq.default=V3r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(wq);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(xue,xue.exports);var G3r=xue.exports,Eue={exports:{}},xq={},Rve={};Object.defineProperty(Rve,"__esModule",{value:!0});var W3r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};Rve.default=W3r;var U3r=_e.default,$ve=pe.default;Object.defineProperty(xq,"__esModule",{value:!0});xq.default=void 0;var q3r=$ve(lr),Sot=U3r(d),K3r=$ve(Rve),Y3r=$ve(cr),X3r=function(t,n){return Sot.createElement(Y3r.default,(0,q3r.default)({},t,{ref:n,icon:K3r.default}))},Q3r=Sot.forwardRef(X3r);xq.default=Q3r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(xq);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Eue,Eue.exports);var Ove=Eue.exports,mb=pe.default,Z3r=_e.default;Object.defineProperty(Sq,"__esModule",{value:!0});Sq.default=void 0;var Rue=Z3r(d),_p=Rue,J3r=mb(G3r),e6r=mb(Ove),t6r=mb(St),n6r=mb(mi),r6r=Vi,i6r=Bt,o6r=mb(Co),s6r=mb(vq),a6r=mb(L9),l6r=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 c6r=e=>e?_p.createElement(e6r.default,null):_p.createElement(J3r.default,null),u6r={click:"onClick",hover:"onMouseOver"},d6r=_p.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=c6r}=e,s=_p.useContext(o6r.default),a=n??s,l=typeof i=="object"&&i.visible!==void 0,[c,u]=(0,Rue.useState)(()=>l?i.visible:!1),f=(0,Rue.useRef)(null);_p.useEffect(()=>{l&&u(i.visible)},[l,i]);const h=(0,s6r.default)(f),g=()=>{var T;if(a)return;c&&h();const M=!c;u(M),typeof i=="object"&&((T=i.onVisibleChange)===null||T===void 0||T.call(i,M))},p=T=>{const M=u6r[r]||"",_=o(c),F={[M]:g,className:`${T}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return _p.cloneElement(_p.isValidElement(_)?_:_p.createElement("span",null,_),F)},{className:m,prefixCls:v,inputPrefixCls:C,size:y}=e,b=l6r(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=_p.useContext(i6r.ConfigContext),w=S("input",C),x=S("input-password",v),E=i&&p(x),R=(0,t6r.default)(x,m,{[`${x}-${y}`]:!!y}),O=Object.assign(Object.assign({},(0,n6r.default)(b,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:w,suffix:E});return y&&(O.size=y),_p.createElement(a6r.default,Object.assign({ref:(0,r6r.composeRef)(t,f)},O))});Sq.default=d6r;var Eq={},kP=pe.default,f6r=_e.default;Object.defineProperty(Eq,"__esModule",{value:!0});Eq.default=void 0;var L6=f6r(d),h6r=kP(uU),g6r=kP(St),p6r=Vi,AIe=Xi,m6r=kP(Ru),v6r=Bt,C6r=kP(io),y6r=ds,b6r=kP(L9),S6r=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 w6r=L6.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:o,suffix:s,enterButton:a=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:h,onCompositionStart:g,onCompositionEnd:p}=e,m=S6r(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:C}=L6.useContext(v6r.ConfigContext),y=L6.useRef(!1),b=v("input-search",n),S=v("input",r),{compactSize:w}=(0,y6r.useCompactItemContext)(b,C),x=(0,C6r.default)(z=>{var j;return(j=o??w)!==null&&j!==void 0?j:z}),E=L6.useRef(null),R=z=>{z!=null&&z.target&&z.type==="click"&&f&&f(z.target.value,z,{source:"clear"}),h==null||h(z)},O=z=>{var j;document.activeElement===((j=E.current)===null||j===void 0?void 0:j.input)&&z.preventDefault()},T=z=>{var j,W;f&&f((W=(j=E.current)===null||j===void 0?void 0:j.input)===null||W===void 0?void 0:W.value,z,{source:"input"})},M=z=>{y.current||c||T(z)},_=typeof a=="boolean"?L6.createElement(h6r.default,null):null,F=`${b}-button`;let D;const k=a||{},L=k.type&&k.type.__ANT_BUTTON===!0;L||k.type==="button"?D=(0,AIe.cloneElement)(k,Object.assign({onMouseDown:O,onClick:z=>{var j,W;(W=(j=k==null?void 0:k.props)===null||j===void 0?void 0:j.onClick)===null||W===void 0||W.call(j,z),T(z)},key:"enterButton"},L?{className:F,size:x}:{})):D=L6.createElement(m6r.default,{className:F,type:a?"primary":void 0,size:x,disabled:u,key:"enterButton",onMouseDown:O,onClick:T,loading:c,icon:_},a),l&&(D=[D,(0,AIe.cloneElement)(l,{key:"addonAfter"})]);const I=(0,g6r.default)(b,{[`${b}-rtl`]:C==="rtl",[`${b}-${x}`]:!!x,[`${b}-with-button`]:!!a},i),A=Object.assign(Object.assign({},m),{className:I,prefixCls:S,type:"search"}),N=z=>{y.current=!0,g==null||g(z)},B=z=>{y.current=!1,p==null||p(z)};return L6.createElement(b6r.default,Object.assign({ref:(0,p6r.composeRef)(E,t),onPressEnter:M},A,{size:x,onCompositionStart:N,onCompositionEnd:B,addonAfter:D,suffix:s,onChange:R,disabled:u}))});Eq.default=w6r;var zP={};const x6r=_r(eGt);var U3=pe.default,E6r=_e.default;Object.defineProperty(zP,"__esModule",{value:!0});zP.default=void 0;var wot=E6r(d),F6=wot,EL=U3(St),R6r=U3(x6r),$6r=U3(N9),DIe=Ql,O6r=Bt,T6r=U3(Co),I6r=U3(Xr),M6r=U3(io),P6r=Ir,_6r=U3(Id),A6r=L9,D6r=U3(H3),L6r=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 F6r=(0,wot.forwardRef)((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:s,disabled:a,status:l,allowClear:c,classNames:u,rootClassName:f,className:h,style:g,styles:p,variant:m}=e,v=L6r(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:C,direction:y,textArea:b}=F6.useContext(O6r.ConfigContext),S=(0,M6r.default)(s),w=F6.useContext(T6r.default),x=a??w,{status:E,hasFeedback:R,feedbackIcon:O}=F6.useContext(P6r.FormItemInputContext),T=(0,DIe.getMergedStatus)(E,l),M=F6.useRef(null);F6.useImperativeHandle(t,()=>{var B;return{resizableTextArea:(B=M.current)===null||B===void 0?void 0:B.resizableTextArea,focus:z=>{var j,W;(0,A6r.triggerFocus)((W=(j=M.current)===null||j===void 0?void 0:j.resizableTextArea)===null||W===void 0?void 0:W.textArea,z)},blur:()=>{var z;return(z=M.current)===null||z===void 0?void 0:z.blur()}}});const _=C("input",i),F=(0,I6r.default)(_),[D,k,L]=(0,D6r.default)(_,F),[I,A]=(0,_6r.default)("textArea",m,o),N=(0,$6r.default)(c??(b==null?void 0:b.allowClear));return D(F6.createElement(R6r.default,Object.assign({autoComplete:b==null?void 0:b.autoComplete},v,{style:Object.assign(Object.assign({},b==null?void 0:b.style),g),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),p),disabled:x,allowClear:N,className:(0,EL.default)(L,F,h,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},u),b==null?void 0:b.classNames),{textarea:(0,EL.default)({[`${_}-sm`]:S==="small",[`${_}-lg`]:S==="large"},k,u==null?void 0:u.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:(0,EL.default)({[`${_}-${I}`]:A},(0,DIe.getStatusClassNames)(_,T)),affixWrapper:(0,EL.default)(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:y==="rtl",[`${_}-affix-wrapper-sm`]:S==="small",[`${_}-affix-wrapper-lg`]:S==="large",[`${_}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},k)}),prefixCls:_,suffix:R&&F6.createElement("span",{className:`${_}-textarea-suffix`},O),ref:M})))});zP.default=F6r;var k9=pe.default;Object.defineProperty(pb,"__esModule",{value:!0});pb.default=void 0;var N6r=k9(mq),k6r=k9(L9),z6r=k9(Cq),B6r=k9(Sq),H6r=k9(Eq),j6r=k9(zP);const z9=k6r.default;z9.Group=N6r.default;z9.Search=H6r.default;z9.TextArea=j6r.default;z9.Password=B6r.default;z9.OTP=z6r.default;pb.default=z9;var V6r=pe.default,G6r=_e.default;Object.defineProperty(pq,"__esModule",{value:!0});pq.default=void 0;var vre=G6r(d),W6r=V6r(pb),RL=hd,U6r=ts;const q6r=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,K6r=e=>q6r.test(`#${e}`),Y6r=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[o,s]=(0,vre.useState)(()=>n?(0,RL.toHexFormat)(n.toHexString()):void 0);(0,vre.useEffect)(()=>{n&&s((0,RL.toHexFormat)(n.toHexString()))},[n]);const a=l=>{const c=l.target.value;s((0,RL.toHexFormat)(c)),K6r((0,RL.toHexFormat)(c,!0))&&(r==null||r((0,U6r.generateColor)(c)))};return vre.default.createElement(W6r.default,{className:i,value:o,prefix:"#",onChange:a,size:"small"})};pq.default=Y6r;var Rq={},X6r=pe.default,Q6r=_e.default;Object.defineProperty(Rq,"__esModule",{value:!0});Rq.default=void 0;var x5=Q6r(d),vR=ts,Cre=X6r(D9);const Z6r=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[o,s]=(0,x5.useState)((0,vR.generateColor)(n||"#000"));(0,x5.useEffect)(()=>{n&&s(n)},[n]);const a=(l,c)=>{const u=o.toHsb();u[c]=c==="h"?l:(l||0)/100;const f=(0,vR.generateColor)(u);n||s(f),r==null||r(f)};return x5.default.createElement("div",{className:i},x5.default.createElement(Cre.default,{max:360,min:0,value:Number(o.toHsb().h),prefixCls:t,className:i,formatter:l=>(0,vR.getRoundNumber)(l||0).toString(),onChange:l=>a(Number(l),"h")}),x5.default.createElement(Cre.default,{max:100,min:0,value:Number(o.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${(0,vR.getRoundNumber)(l||0)}%`,onChange:l=>a(Number(l),"s")}),x5.default.createElement(Cre.default,{max:100,min:0,value:Number(o.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${(0,vR.getRoundNumber)(l||0)}%`,onChange:l=>a(Number(l),"b")}))};Rq.default=Z6r;var $q={},J6r=pe.default,e8r=_e.default;Object.defineProperty($q,"__esModule",{value:!0});$q.default=void 0;var E5=e8r(d),LIe=ts,yre=J6r(D9);const t8r=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[o,s]=(0,E5.useState)((0,LIe.generateColor)(n||"#000"));(0,E5.useEffect)(()=>{n&&s(n)},[n]);const a=(l,c)=>{const u=o.toRgb();u[c]=l||0;const f=(0,LIe.generateColor)(u);n||s(f),r==null||r(f)};return E5.default.createElement("div",{className:i},E5.default.createElement(yre.default,{max:255,min:0,value:Number(o.toRgb().r),prefixCls:t,className:i,onChange:l=>a(Number(l),"r")}),E5.default.createElement(yre.default,{max:255,min:0,value:Number(o.toRgb().g),prefixCls:t,className:i,onChange:l=>a(Number(l),"g")}),E5.default.createElement(yre.default,{max:255,min:0,value:Number(o.toRgb().b),prefixCls:t,className:i,onChange:l=>a(Number(l),"b")}))};$q.default=t8r;var B9=pe.default,n8r=_e.default;Object.defineProperty(uq,"__esModule",{value:!0});uq.default=void 0;var Kv=n8r(d),r8r=B9(fa),i8r=B9(N3),iw=dq,o8r=B9(fq),s8r=B9(pq),a8r=B9(Rq),l8r=B9($q);const c8r=[iw.ColorFormat.hex,iw.ColorFormat.hsb,iw.ColorFormat.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),u8r=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:o,onChange:s,disabledFormat:a}=e,[l,c]=(0,r8r.default)(iw.ColorFormat.hex,{value:n,onChange:o}),u=`${t}-input`,f=g=>{c(g)},h=(0,Kv.useMemo)(()=>{const g={value:r,prefixCls:t,onChange:s};switch(l){case iw.ColorFormat.hsb:return Kv.default.createElement(a8r.default,Object.assign({},g));case iw.ColorFormat.rgb:return Kv.default.createElement(l8r.default,Object.assign({},g));default:return Kv.default.createElement(s8r.default,Object.assign({},g))}},[l,t,r,s]);return Kv.default.createElement("div",{className:`${u}-container`},!a&&Kv.default.createElement(i8r.default,{value:l,variant:"borderless",getPopupContainer:g=>g,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:c8r}),Kv.default.createElement("div",{className:u},h),!i&&Kv.default.createElement(o8r.default,{prefixCls:t,value:r,onChange:s}))};uq.default=u8r;var ry={};const xot=_r(pGt);var BP={},HP={};Object.defineProperty(HP,"__esModule",{value:!0});HP.default=void 0;var d8r=d;const f8r=(0,d8r.createContext)({});HP.default=f8r;var Oq={},Eot=pe.default,h8r=_e.default;Object.defineProperty(Oq,"__esModule",{value:!0});Oq.default=void 0;var $ue=h8r(d),bre=$ue,FIe=Eot(xu),g8r=Vi,p8r=Eot(gl);const m8r=bre.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=(0,$ue.useRef)(null),o=n&&!r,s=(0,$ue.useRef)(null);function a(){FIe.default.cancel(s.current),s.current=null}function l(){s.current=(0,FIe.default)(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),s.current=null})}return bre.useEffect(()=>(o?l():a(),a),[o,e.title]),bre.createElement(p8r.default,Object.assign({ref:(0,g8r.composeRef)(i,t)},e,{open:o}))});Oq.default=m8r;var z7={};Object.defineProperty(z7,"__esModule",{value:!0});z7.prepareComponentToken=z7.default=void 0;var Wu=Kt,NIe=Us,v8r=gn,kIe=Zt;const C8r=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:s,colorFillContentHover:a,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:h,handleActiveOutlineColor:g,handleLineWidth:p,handleLineWidthHover:m,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},(0,v8r.resetComponent)(e)),{position:"relative",height:r,margin:`${(0,Wu.unit)(s)} ${(0,Wu.unit)(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${(0,Wu.unit)(o)} ${(0,Wu.unit)(s)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${(0,Wu.unit)(p)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(p).mul(-1).equal(),insetBlockStart:c(p).mul(-1).equal(),width:c(u).add(c(p).mul(2)).equal(),height:c(u).add(c(p).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${(0,Wu.unit)(p)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
||
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
|
||
`]:{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),{open:Q,placement:te,getPopupContainer:ne,prefixCls:Z,formatter:ee}=X,J=Q??S,oe=(W||K)&&J!==!1,le=P8r(ee,b),[ge,he]=(0,wre.default)(),ye=ke=>{R==null||R(ke),he(!1)},ue=(ke,Ye)=>ke||(Ye?j?"left":"right":"top"),ve=k("slider",h),[de,xe,Ee]=(0,I8r.default)(ve),De=(0,CR.default)(p,D==null?void 0:D.className,(n=D==null?void 0:D.classNames)===null||n===void 0?void 0:n.root,O==null?void 0:O.root,m,{[`${ve}-rtl`]:j,[`${ve}-lock`]:ge},xe,Ee);j&&!M.vertical&&(M.reverse=!M.reverse),wp.default.useEffect(()=>{const ke=()=>{(0,R8r.default)(()=>{q(!1)},1)};return document.addEventListener("mouseup",ke),()=>{document.removeEventListener("mouseup",ke)}},[]);const Be=g&&!J,Ge=N||((ke,Ye)=>{const{index:ze}=Ye,Re=ke.props;function Le(Xe,ft,Tt){var tt,pt,$t,wt;Tt&&((pt=(tt=M)[Xe])===null||pt===void 0||pt.call(tt,ft)),(wt=($t=Re)[Xe])===null||wt===void 0||wt.call($t,ft)}const Me=Object.assign(Object.assign({},Re),{onMouseEnter:Xe=>{G(!0),Le("onMouseEnter",Xe)},onMouseLeave:Xe=>{G(!1),Le("onMouseLeave",Xe)},onMouseDown:Xe=>{q(!0),he(!0),Le("onMouseDown",Xe)},onFocus:Xe=>{var ft;q(!0),(ft=M.onFocus)===null||ft===void 0||ft.call(M,Xe),Le("onFocus",Xe,!0)},onBlur:Xe=>{var ft;q(!1),(ft=M.onBlur)===null||ft===void 0||ft.call(M,Xe),Le("onBlur",Xe,!0)}}),be=wp.default.cloneElement(ke,Me),je=(!!J||oe)&&le!==null;return Be?be:wp.default.createElement(BIe.default,Object.assign({},X,{prefixCls:k("tooltip",Z??y),title:le?le(Ye.value):"",open:je,placement:ue(te??x,_),key:ze,classNames:{root:`${ve}-tooltip`},getPopupContainer:ne||w||L}),be)}),Ue=Be?(ke,Ye)=>{const ze=wp.default.cloneElement(ke,{style:Object.assign(Object.assign({},ke.props.style),{visibility:"hidden"})});return wp.default.createElement(BIe.default,Object.assign({},X,{prefixCls:k("tooltip",Z??y),title:le?le(Ye.value):"",open:le!==null&&oe,placement:ue(te??x,_),key:"tooltip",classNames:{root:`${ve}-tooltip`},getPopupContainer:ne||w||L,draggingDelete:Ye.draggingDelete}),ze)}:void 0,We=Object.assign(Object.assign(Object.assign(Object.assign({},(r=D==null?void 0:D.styles)===null||r===void 0?void 0:r.root),D==null?void 0:D.style),T==null?void 0:T.root),v),Ve=Object.assign(Object.assign({},(i=D==null?void 0:D.styles)===null||i===void 0?void 0:i.tracks),T==null?void 0:T.tracks),Fe=(0,CR.default)((o=D==null?void 0:D.classNames)===null||o===void 0?void 0:o.tracks,O==null?void 0:O.tracks);return de(wp.default.createElement(E8r.default,Object.assign({},M,{classNames:Object.assign({handle:(0,CR.default)((s=D==null?void 0:D.classNames)===null||s===void 0?void 0:s.handle,O==null?void 0:O.handle),rail:(0,CR.default)((a=D==null?void 0:D.classNames)===null||a===void 0?void 0:a.rail,O==null?void 0:O.rail),track:(0,CR.default)((l=D==null?void 0:D.classNames)===null||l===void 0?void 0:l.track,O==null?void 0:O.track)},Fe?{tracks:Fe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=D==null?void 0:D.styles)===null||c===void 0?void 0:c.handle),T==null?void 0:T.handle),rail:Object.assign(Object.assign({},(u=D==null?void 0:D.styles)===null||u===void 0?void 0:u.rail),T==null?void 0:T.rail),track:Object.assign(Object.assign({},(f=D==null?void 0:D.styles)===null||f===void 0?void 0:f.track),T==null?void 0:T.track)},Object.keys(Ve).length?{tracks:Ve}:{}),step:M.step,range:g,className:De,style:We,disabled:A,ref:t,prefixCls:ve,handleRender:Ge,activeHandleRender:Ue,onChangeComplete:ye})))});BP.default=_8r;var Tq=pe.default,A8r=_e.default;Object.defineProperty(ry,"__esModule",{value:!0});ry.default=ry.GradientColorSlider=void 0;var U1=A8r(d),HIe=Tq(St),D8r=xot,xre=Tq(hl),L8r=Tq(BP),F8r=Tq(HP),N8r=ts,k8r=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 Oot=e=>{const{prefixCls:t,colors:n,type:r,color:i,range:o=!1,className:s,activeIndex:a,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:f}=e,h=k8r(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),g=Object.assign(Object.assign({},h),{track:!1}),p=U1.useMemo(()=>`linear-gradient(90deg, ${n.map(x=>`${x.color} ${x.percent}%`).join(", ")})`,[n]),m=U1.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),v=(0,xre.default)(c),C=(0,xre.default)(u),y=U1.useMemo(()=>({onDragStart:v,onDragChange:C}),[]),b=(0,xre.default)((w,x)=>{const{onFocus:E,style:R,className:O,onKeyDown:T}=w.props,M=Object.assign({},R);return r==="gradient"&&(M.background=(0,N8r.getGradientPercentColor)(n,x.value)),U1.cloneElement(w,{onFocus:_=>{l==null||l(x.index),E==null||E(_)},style:M,className:(0,HIe.default)(O,{[`${t}-slider-handle-active`]:a===x.index}),onKeyDown:_=>{(_.key==="Delete"||_.key==="Backspace")&&f&&f(x.index),T==null||T(_)}})}),S=U1.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return U1.createElement(F8r.default.Provider,{value:S},U1.createElement(D8r.UnstableContext.Provider,{value:y},U1.createElement(L8r.default,Object.assign({},g,{className:(0,HIe.default)(s,`${t}-slider`),tooltip:{open:!1},range:{editable:o,minCount:2},styles:{rail:{background:p},handle:m?{background:m}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))};ry.GradientColorSlider=Oot;const z8r=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=s=>n(s[0]),o=s=>r(s[0]);return U1.createElement(Oot,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:o}))};ry.default=z8r;var Iq={},B8r=_e.default,H8r=pe.default;Object.defineProperty(Iq,"__esModule",{value:!0});Iq.default=void 0;var KN=H8r(zr),v$=B8r(d),$L=hd,j8r=ts,V8r=ry;function jIe(e){return(0,KN.default)(e).sort((t,n)=>t.percent-n.percent)}const G8r=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:o,activeIndex:s,onGradientDragging:a,colors:l}=e,c=n==="gradient",u=v$.useMemo(()=>l.map(C=>({percent:C.percent,color:C.color.toRgbString()})),[l]),f=v$.useMemo(()=>u.map(C=>C.percent),[u]),h=v$.useRef(u),g=C=>{let{rawValues:y,draggingIndex:b,draggingValue:S}=C;if(y.length>u.length){const w=(0,j8r.getGradientPercentColor)(u,S),x=(0,KN.default)(u);x.splice(b,0,{percent:S,color:w}),h.current=x}else h.current=u;a(!0),r(new $L.AggregationColor(jIe(h.current)),!0)},p=C=>{let{deleteIndex:y,draggingIndex:b,draggingValue:S}=C,w=(0,KN.default)(h.current);y!==-1?w.splice(y,1):(w[b]=Object.assign(Object.assign({},w[b]),{percent:S}),w=jIe(w)),r(new $L.AggregationColor(w),!0)},m=C=>{const y=(0,KN.default)(u);y.splice(C,1);const b=new $L.AggregationColor(y);r(b),i(b)},v=C=>{i(new $L.AggregationColor(u)),s>=C.length&&o(C.length-1),a(!1)};return c?v$.createElement(V8r.GradientColorSlider,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:f,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:s,onActive:o,onDragStart:g,onDragChange:p,onKeyDelete:m}):null};Iq.default=v$.memo(G8r);var W8r=_e.default,q3=pe.default;Object.defineProperty(cq,"__esModule",{value:!0});cq.default=void 0;var U8r=q3(zr),Dc=W8r(d),q8r=q3(JM),VIe=q3(Sd),K8r=q3(DP),OL=hd,Y8r=o3,GIe=ts,X8r=q3(FP),Q8r=q3(uq),Z8r=q3(ry),J8r=q3(Iq),eCr=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 tCr={slider:Z8r.default},nCr=()=>{const e=(0,Dc.useContext)(Y8r.PanelPickerContext),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:o,value:s,disabledAlpha:a,onChange:l,onClear:c,onChangeComplete:u,activeIndex:f,gradientDragging:h}=e,g=eCr(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),p=Dc.default.useMemo(()=>s.cleared?[{percent:0,color:new OL.AggregationColor("")},{percent:100,color:new OL.AggregationColor("")}]:s.getColors(),[s]),m=!s.isGradient(),[v,C]=Dc.default.useState(s);(0,VIe.default)(()=>{var D;m||C((D=p[f])===null||D===void 0?void 0:D.color)},[h,f]);const y=Dc.default.useMemo(()=>{var D;return m?s:h?v:(D=p[f])===null||D===void 0?void 0:D.color},[s,f,m,v,h]),[b,S]=Dc.default.useState(y),[w,x]=Dc.default.useState(0),E=b!=null&&b.equals(y)?y:b;(0,VIe.default)(()=>{S(y)},[w,y==null?void 0:y.toHexString()]);const R=(D,k)=>{let L=(0,GIe.generateColor)(D);if(s.cleared){const A=L.toRgb();if(!A.r&&!A.g&&!A.b&&k){const{type:N,value:B=0}=k;L=new OL.AggregationColor({h:N==="hue"?B:0,s:1,b:1,a:N==="alpha"?B/100:1})}else L=(0,GIe.genAlphaColor)(L)}if(t==="single")return L;const I=(0,U8r.default)(p);return I[f]=Object.assign(Object.assign({},I[f]),{color:L}),new OL.AggregationColor(I)},O=(D,k,L)=>{const I=R(D,L);S(I.isGradient()?I.getColors()[f].color:I),l(I,k)},T=(D,k)=>{u(R(D,k)),x(L=>L+1)},M=D=>{l(R(D))};let _=null;const F=r.length>1;return(o||F)&&(_=Dc.default.createElement("div",{className:`${i}-operation`},F&&Dc.default.createElement(K8r.default,{size:"small",options:r,value:t,onChange:n}),Dc.default.createElement(X8r.default,Object.assign({prefixCls:i,value:s,onChange:D=>{l(D),c==null||c()}},g)))),Dc.default.createElement(Dc.default.Fragment,null,_,Dc.default.createElement(J8r.default,Object.assign({},e,{colors:p})),Dc.default.createElement(q8r.default,{prefixCls:i,value:E==null?void 0:E.toHsb(),disabledAlpha:a,onChange:(D,k)=>{O(D,!0,k)},onChangeComplete:(D,k)=>{T(D,k)},components:tCr}),Dc.default.createElement(Q8r.default,Object.assign({value:y,onChange:M,prefixCls:i,disabledAlpha:a},g)))};cq.default=nCr;var Mq={},rCr=pe.default,iCr=_e.default;Object.defineProperty(Mq,"__esModule",{value:!0});Mq.default=void 0;var WIe=iCr(d),oCr=o3,sCr=rCr(XC);const aCr=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=(0,WIe.useContext)(oCr.PanelPresetsContext);return Array.isArray(n)?WIe.default.createElement(sCr.default,{value:t,presets:n,prefixCls:e,onChange:r}):null};Mq.default=aCr;var Pq=pe.default;Object.defineProperty(lq,"__esModule",{value:!0});lq.default=void 0;var _1=Pq(d),lCr=Pq(AP),UIe=Pq(cq),qIe=Pq(Mq),KIe=o3;const cCr=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:o,onClear:s,allowClear:a,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:h,activeIndex:g,onActive:p,format:m,onFormatChange:v,gradientDragging:C,onGradientDragging:y,disabledFormat:b}=e,S=`${t}-inner`,w=_1.default.useMemo(()=>({prefixCls:t,value:i,onChange:o,onClear:s,allowClear:a,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:h,activeIndex:g,onActive:p,format:m,onFormatChange:v,gradientDragging:C,onGradientDragging:y,disabledFormat:b}),[t,i,o,s,a,l,c,u,f,h,g,p,m,v,C,y,b]),x=_1.default.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:o}),[t,i,n,o]),E=_1.default.createElement("div",{className:`${S}-content`},_1.default.createElement(UIe.default,null),Array.isArray(n)&&_1.default.createElement(lCr.default,null),_1.default.createElement(qIe.default,null));return _1.default.createElement(KIe.PanelPickerContext.Provider,{value:w},_1.default.createElement(KIe.PanelPresetsContext.Provider,{value:x},_1.default.createElement("div",{className:S},typeof r=="function"?r(E,{components:{Picker:UIe.default,Presets:qIe.default}}):E)))};lq.default=cCr;var _q={},Ive=pe.default,uCr=_e.default;Object.defineProperty(_q,"__esModule",{value:!0});_q.default=void 0;var Yv=uCr(d),dCr=JM,YIe=Ive(St),fCr=Ive(oh),hCr=Os,gCr=ts,pCr=Ive(FP),mCr=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 vCr=(0,Yv.forwardRef)((e,t)=>{const{color:n,prefixCls:r,open:i,disabled:o,format:s,className:a,showText:l,activeIndex:c}=e,u=mCr(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,h=`${f}-text`,g=`${h}-cell`,[p]=(0,hCr.useLocale)("ColorPicker"),m=Yv.default.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return p.transparent;if(n.isGradient())return n.getColors().map((b,S)=>{const w=c!==-1&&c!==S;return Yv.default.createElement("span",{key:S,className:(0,YIe.default)(g,w&&`${g}-inactive`)},b.color.toRgbString()," ",b.percent,"%")});const C=n.toHexString().toUpperCase(),y=(0,gCr.getColorAlpha)(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return y<100?`${C.slice(0,7)},${y}%`:C}},[n,s,l,c]),v=(0,Yv.useMemo)(()=>n.cleared?Yv.default.createElement(pCr.default,{prefixCls:r}):Yv.default.createElement(dCr.ColorBlock,{prefixCls:r,color:n.toCssString()}),[n,r]);return Yv.default.createElement("div",Object.assign({ref:t,className:(0,YIe.default)(f,a,{[`${f}-active`]:i,[`${f}-disabled`]:o})},(0,fCr.default)(u)),v,l&&Yv.default.createElement("div",{className:h},m))});_q.default=vCr;var Mve={},Tot=pe.default,CCr=_e.default;Object.defineProperty(Mve,"__esModule",{value:!0});Mve.default=xCr;var R5=CCr(d),yCr=Tot(hl),bCr=Tot(fa),SCr=Os,wCr=ts;function xCr(e,t,n){const[r]=(0,SCr.useLocale)("ColorPicker"),[i,o]=(0,bCr.default)(e,{value:t}),[s,a]=R5.useState("single"),[l,c]=R5.useMemo(()=>{const m=(Array.isArray(n)?n:[n]).filter(b=>b);m.length||m.push("single");const v=new Set(m),C=[],y=(b,S)=>{v.has(b)&&C.push({label:S,value:b})};return y("single",r.singleColor),y("gradient",r.gradientColor),[C,v]},[n]),[u,f]=R5.useState(null),h=(0,yCr.default)(m=>{f(m),o(m)}),g=R5.useMemo(()=>{const m=(0,wCr.generateColor)(i||"");return m.equals(u)?u:m},[i,u]),p=R5.useMemo(()=>{var m;return c.has(s)?s:(m=l[0])===null||m===void 0?void 0:m.value},[c,s,l]);return R5.useEffect(()=>{a(g.isGradient()?"gradient":"single")},[g]),[g,h,p,a,l]}var B7={},iy={};Object.defineProperty(iy,"__esModule",{value:!0});iy.getTransBg=iy.default=void 0;var ECr=Kt;const Iot=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`});iy.getTransBg=Iot;const RCr=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:o,colorFillSecondary:s}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},Iot("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${(0,ECr.unit)(o)} ${s}`,borderRadius:"inherit"}})}};iy.default=RCr;var Aq={};Object.defineProperty(Aq,"__esModule",{value:!0});Aq.default=void 0;var TL=Kt;const $Cr=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:o,marginXXS:s,paddingXXS:a,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:f,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:g,lineWidth:p}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:a,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:g}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${(0,TL.unit)(o)}`,marginInlineStart:s},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(s).equal(),fontSize:r,lineHeight:(0,TL.unit)(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:s,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:s,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,TL.unit)(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:(0,TL.unit)(e.calc(l).sub(e.calc(p).mul(2)).equal())},[`${n}-input-prefix`]:{color:h}}}}}};Aq.default=$Cr;var Dq={};Object.defineProperty(Dq,"__esModule",{value:!0});Dq.default=void 0;var OCr=Kt;const TCr=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:o,colorBgElevated:s,colorFillSecondary:a,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:o},[`${t}-handler`]:{width:c,height:c,border:`${(0,OCr.unit)(l)} solid ${s}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${a}`}}};Dq.default=TCr;var Lq={};Object.defineProperty(Lq,"__esModule",{value:!0});Lq.default=void 0;var Ere=Kt;const ICr=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:o,fontSizeSM:s,colorText:a,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:f,colorWhite:h,marginXXS:g,paddingXS:p,fontHeightSM:m}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:m,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${(0,Ere.unit)(p)} 0`},"&-label":{fontSize:s,color:a,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(g).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:o,height:o,"&::before":{content:'""',pointerEvents:"none",width:e.calc(o).add(e.calc(c).mul(4)).equal(),height:e.calc(o).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${(0,Ere.unit)(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(o).div(13).mul(5).equal(),height:e.calc(o).div(13).mul(8).equal(),border:`${(0,Ere.unit)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:s,color:r}}}};Lq.default=ICr;var Fq={};Object.defineProperty(Fq,"__esModule",{value:!0});Fq.default=void 0;var XIe=Kt,MCr=iy;const PCr=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:o,colorPickerHandlerSizeSM:s,colorPickerSliderHeight:a,marginSM:l,marginXS:c}=e,u=e.calc(s).sub(e.calc(o).mul(2).equal()).equal(),f=e.calc(s).add(e.calc(o).mul(2).equal()).equal(),h={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[(0,MCr.getTransBg)((0,XIe.unit)(a),e.colorFillSecondary),{margin:0,padding:0,height:a,borderRadius:e.calc(a).div(2).equal(),"&-rail":{height:a,borderRadius:e.calc(a).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:s,height:s,border:`${(0,XIe.unit)(o)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":h}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":h}}}};Fq.default=PCr;var jP=pe.default;Object.defineProperty(B7,"__esModule",{value:!0});B7.genActiveStyle=B7.default=void 0;var ow=Kt,_Cr=dv,QIe=Zt,ZIe=jP(iy),ACr=jP(Aq),DCr=jP(Dq),LCr=jP(Lq),FCr=jP(Fq);const UB=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${(0,ow.unit)(e.controlOutlineWidth)} ${n}`,outline:0});B7.genActiveStyle=UB;const NCr=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},JIe=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:o,colorSplit:s,colorBorder:a,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${(0,ow.unit)(o)} solid ${s}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:a}})}},kCr=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:o,colorErrorOutline:s,colorWarningOutline:a}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},UB(e,n,s))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},UB(e,r,a))}}},zCr=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:o,borderRadius:s,borderRadiusSM:a,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:s},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:a,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:(0,ow.unit)(o)}}}},BCr=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:o,colorBgElevated:s,colorTextDisabled:a,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:f,marginSM:h,controlHeight:g,controlHeightSM:p,colorBgTextActive:m,colorPickerPresetColorSize:v,colorPickerPreviewSize:C,lineWidth:y,colorBorder:b,paddingXXS:S,fontSize:w,colorPrimaryHover:x,controlOutline:E}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${(0,ow.unit)(h)} 0 ${(0,ow.unit)(f)}`}},[`${n}-panel`]:Object.assign({},(0,DCr.default)(e))},(0,FCr.default)(e)),(0,ZIe.default)(e,C)),(0,ACr.default)(e)),(0,LCr.default)(e)),JIe(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:g,minHeight:g,borderRadius:u,border:`${(0,ow.unit)(y)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${o}`,background:s,padding:e.calc(S).sub(y).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(S).sub(y)).equal(),fontSize:w,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:a}}},"&:hover":{borderColor:x},[`&${n}-trigger-active`]:Object.assign({},UB(e,i,E)),"&-disabled":{color:a,background:c,cursor:"not-allowed","&:hover":{borderColor:m},[`${n}-trigger-text`]:{color:a}}},JIe(e,p)),(0,ZIe.default)(e,p)),kCr(e)),zCr(e))},NCr(e))},(0,_Cr.genCompactItemStyle)(e,{focusElCls:`${n}-trigger-active`})]};B7.default=(0,QIe.genStyleHooks)("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=(0,QIe.mergeToken)(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[BCr(i)]});var uh=pe.default,HCr=_e.default;Object.defineProperty(aq,"__esModule",{value:!0});aq.default=void 0;var Rh=HCr(d),Rre=uh(St),eMe=uh(fa),jCr=uh(ah),VCr=uh($c),GCr=Ql,WCr=Fl,UCr=uh(Co),qCr=uh(Xr),KCr=uh(io),YCr=Ir,XCr=uh(sb),QCr=ds,tMe=hd,ZCr=uh(lq),JCr=uh(_q),eyr=uh(Mve),tyr=uh(B7),$5=ts,nyr=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 Pve=e=>{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:o,allowClear:s=!1,presets:a,children:l,trigger:c="click",open:u,disabled:f,placement:h="bottomLeft",arrow:g=!0,panelRender:p,showText:m,style:v,className:C,size:y,rootClassName:b,prefixCls:S,styles:w,disabledAlpha:x=!1,onFormatChange:E,onChange:R,onClear:O,onOpenChange:T,onChangeComplete:M,getPopupContainer:_,autoAdjustOverflow:F=!0,destroyTooltipOnHide:D,disabledFormat:k}=e,L=nyr(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:I,direction:A,colorPicker:N}=(0,Rh.useContext)(WCr.ConfigContext),B=(0,Rh.useContext)(UCr.default),z=f??B,[j,W]=(0,eMe.default)(!1,{value:u,postState:Me=>!z&&Me,onChange:T}),[G,K]=(0,eMe.default)(i,{value:i,defaultValue:o,onChange:E}),q=I("color-picker",S),[X,Q,te,ne,Z]=(0,eyr.default)(r,n,t),ee=(0,Rh.useMemo)(()=>(0,$5.getColorAlpha)(X)<100,[X]),[J,oe]=Rh.default.useState(null),le=Me=>{if(M){let be=(0,$5.generateColor)(Me);x&&ee&&(be=(0,$5.genAlphaColor)(Me)),M(be)}},ge=(Me,be)=>{let je=(0,$5.generateColor)(Me);x&&ee&&(je=(0,$5.genAlphaColor)(je)),Q(je),oe(null),R&&R(je,je.toCssString()),be||le(je)},[he,ye]=Rh.default.useState(0),[ue,ve]=Rh.default.useState(!1),de=Me=>{if(ne(Me),Me==="single"&&X.isGradient())ye(0),ge(new tMe.AggregationColor(X.getColors()[0].color)),oe(X);else if(Me==="gradient"&&!X.isGradient()){const be=ee?(0,$5.genAlphaColor)(X):X;ge(new tMe.AggregationColor(J||[{percent:0,color:be},{percent:100,color:be}]))}},{status:xe}=Rh.default.useContext(YCr.FormItemInputContext),{compactSize:Ee,compactItemClassnames:De}=(0,QCr.useCompactItemContext)(q,A),Be=(0,KCr.default)(Me=>{var be;return(be=y??Ee)!==null&&be!==void 0?be:Me}),Ge=(0,qCr.default)(q),[Ue,We,Ve]=(0,tyr.default)(q,Ge),Fe={[`${q}-rtl`]:A},ke=(0,Rre.default)(b,Ve,Ge,Fe),Ye=(0,Rre.default)((0,GCr.getStatusClassNames)(q,xe),{[`${q}-sm`]:Be==="small",[`${q}-lg`]:Be==="large"},De,N==null?void 0:N.className,ke,C,We),ze=(0,Rre.default)(q,ke),Re={open:j,trigger:c,placement:h,arrow:g,rootClassName:b,getPopupContainer:_,autoAdjustOverflow:F,destroyTooltipOnHide:D},Le=Object.assign(Object.assign({},N==null?void 0:N.style),v);return Ue(Rh.default.createElement(XCr.default,Object.assign({style:w==null?void 0:w.popup,styles:{body:w==null?void 0:w.popupOverlayInner},onOpenChange:Me=>{(!Me||!z)&&W(Me)},content:Rh.default.createElement(jCr.default,{form:!0},Rh.default.createElement(ZCr.default,{mode:te,onModeChange:de,modeOptions:Z,prefixCls:q,value:X,allowClear:s,disabled:z,disabledAlpha:x,presets:a,panelRender:p,format:G,onFormatChange:K,onChange:ge,onChangeComplete:le,onClear:O,activeIndex:he,onActive:ye,gradientDragging:ue,onGradientDragging:ve,disabledFormat:k})),classNames:{root:ze}},Re),l||Rh.default.createElement(JCr.default,Object.assign({activeIndex:j?he:-1,open:j,className:Ye,style:Le,prefixCls:q,disabled:z,showText:m,format:G},L,{color:X}))))},ryr=(0,VCr.default)(Pve,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);Pve._InternalPanelDoNotUseOrYouWillBeFired=ryr;aq.default=Pve;var iyr=pe.default;Object.defineProperty(sq,"__esModule",{value:!0});sq.default=void 0;var oyr=iyr(aq);sq.default=oyr.default;var VP={},Nq={},kq={},Oue={exports:{}},zq={},_ve={};Object.defineProperty(_ve,"__esModule",{value:!0});var syr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};_ve.default=syr;var ayr=_e.default,Ave=pe.default;Object.defineProperty(zq,"__esModule",{value:!0});zq.default=void 0;var lyr=Ave(lr),Mot=ayr(d),cyr=Ave(_ve),uyr=Ave(cr),dyr=function(t,n){return Mot.createElement(uyr.default,(0,lyr.default)({},t,{ref:n,icon:cyr.default}))},fyr=Mot.forwardRef(dyr);zq.default=fyr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(zq);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Oue,Oue.exports);var Pot=Oue.exports,Tue={exports:{}},Bq={},Dve={};Object.defineProperty(Dve,"__esModule",{value:!0});var hyr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};Dve.default=hyr;var gyr=_e.default,Lve=pe.default;Object.defineProperty(Bq,"__esModule",{value:!0});Bq.default=void 0;var pyr=Lve(lr),_ot=gyr(d),myr=Lve(Dve),vyr=Lve(cr),Cyr=function(t,n){return _ot.createElement(vyr.default,(0,pyr.default)({},t,{ref:n,icon:myr.default}))},yyr=_ot.forwardRef(Cyr);Bq.default=yyr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(Bq);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Tue,Tue.exports);var Aot=Tue.exports,Iue={exports:{}},Hq={},Fve={};Object.defineProperty(Fve,"__esModule",{value:!0});var byr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};Fve.default=byr;var Syr=_e.default,Nve=pe.default;Object.defineProperty(Hq,"__esModule",{value:!0});Hq.default=void 0;var wyr=Nve(lr),Dot=Syr(d),xyr=Nve(Fve),Eyr=Nve(cr),Ryr=function(t,n){return Dot.createElement(Eyr.default,(0,wyr.default)({},t,{ref:n,icon:xyr.default}))},$yr=Dot.forwardRef(Ryr);Hq.default=$yr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(Hq);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Iue,Iue.exports);var Oyr=Iue.exports,H9={},Tyr=pe.default,Iyr=_e.default;Object.defineProperty(H9,"__esModule",{value:!0});H9.getPlaceholder=_yr;H9.getRangePlaceholder=Ayr;H9.useIcons=Dyr;var Myr=Iyr(d),Pyr=Tyr(y9);function _yr(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Ayr(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Dyr(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=(0,Pyr.default)(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[Myr.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});Xo.YEARPICKER=Xo.YEAR=Xo.WEEKPICKER=Xo.WEEK=Xo.TIMEPICKER=Xo.TIME=Xo.QUARTERPICKER=Xo.QUARTER=Xo.MONTHPICKER=Xo.MONTH=void 0;const[Lyr,Fyr]=["week","WeekPicker"];Xo.WEEKPICKER=Fyr;Xo.WEEK=Lyr;const[Nyr,kyr]=["month","MonthPicker"];Xo.MONTHPICKER=kyr;Xo.MONTH=Nyr;const[zyr,Byr]=["year","YearPicker"];Xo.YEARPICKER=Byr;Xo.YEAR=zyr;const[Hyr,jyr]=["quarter","QuarterPicker"];Xo.QUARTERPICKER=jyr;Xo.QUARTER=Hyr;const[Vyr,Gyr]=["time","TimePicker"];Xo.TIMEPICKER=Gyr;Xo.TIME=Vyr;var jq={},Vq={},Wyr=pe.default,Uyr=_e.default;Object.defineProperty(Vq,"__esModule",{value:!0});Vq.default=void 0;var qyr=Uyr(d),Kyr=Wyr(Ru);const Yyr=e=>qyr.createElement(Kyr.default,Object.assign({size:"small",type:"primary"},e));Vq.default=Yyr;var Xyr=pe.default;Object.defineProperty(jq,"__esModule",{value:!0});jq.default=Jyr;var Qyr=d,Zyr=Xyr(Vq);function Jyr(e){return(0,Qyr.useMemo)(()=>Object.assign({button:Zyr.default},e),[e])}var dh=pe.default,ebr=_e.default;Object.defineProperty(kq,"__esModule",{value:!0});kq.default=void 0;var C$=ebr(d),Lc=C$,tbr=dh(Pot),nbr=dh(Aot),rbr=dh(Oyr),nMe=dh(St),ibr=lve,obr=dh(ah),sbr=ho,rMe=Ql,abr=Bt,lbr=dh(Co),cbr=dh(Xr),ubr=dh(io),dbr=Ir,fbr=dh(Id),hbr=Os,gbr=ds,pbr=dh(Uy),mbr=dh(VU),iMe=H9,vbr=Xo,Cbr=dh(jq),ybr=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 bbr=e=>(0,C$.forwardRef)((n,r)=>{var i;const{prefixCls:o,getPopupContainer:s,components:a,className:l,style:c,placement:u,size:f,disabled:h,bordered:g=!0,placeholder:p,popupClassName:m,dropdownClassName:v,status:C,rootClassName:y,variant:b,picker:S}=n,w=ybr(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),x=Lc.useRef(null),{getPrefixCls:E,direction:R,getPopupContainer:O,rangePicker:T}=(0,C$.useContext)(abr.ConfigContext),M=E("picker",o),{compactSize:_,compactItemClassnames:F}=(0,gbr.useCompactItemContext)(M,R),D=E(),[k,L]=(0,fbr.default)("rangePicker",b,g),I=(0,cbr.default)(M),[A,N,B]=(0,mbr.default)(M,I),[z]=(0,iMe.useIcons)(n,M),j=(0,Cbr.default)(a),W=(0,ubr.default)(oe=>{var le;return(le=f??_)!==null&&le!==void 0?le:oe}),G=Lc.useContext(lbr.default),K=h??G,q=(0,C$.useContext)(dbr.FormItemInputContext),{hasFeedback:X,status:Q,feedbackIcon:te}=q,ne=Lc.createElement(Lc.Fragment,null,S===vbr.TIME?Lc.createElement(nbr.default,null):Lc.createElement(tbr.default,null),X&&te);(0,C$.useImperativeHandle)(r,()=>x.current);const[Z]=(0,hbr.useLocale)("Calendar",pbr.default),ee=Object.assign(Object.assign({},Z),n.locale),[J]=(0,sbr.useZIndex)("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return A(Lc.createElement(obr.default,{space:!0},Lc.createElement(ibr.RangePicker,Object.assign({separator:Lc.createElement("span",{"aria-label":"to",className:`${M}-separator`},Lc.createElement(rbr.default,null)),disabled:K,ref:x,placement:u,placeholder:(0,iMe.getRangePlaceholder)(ee,S,p),suffixIcon:ne,prevIcon:Lc.createElement("span",{className:`${M}-prev-icon`}),nextIcon:Lc.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:Lc.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:Lc.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:S},w,{className:(0,nMe.default)({[`${M}-${W}`]:W,[`${M}-${k}`]:L},(0,rMe.getStatusClassNames)(M,(0,rMe.getMergedStatus)(Q,C),X),N,F,l,T==null?void 0:T.className,B,I,y),style:Object.assign(Object.assign({},T==null?void 0:T.style),c),locale:ee.lang,prefixCls:M,getPopupContainer:s||O,generateConfig:e,components:j,direction:R,classNames:{popup:(0,nMe.default)(N,m||v,B,I,y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:J})},allowClear:z}))))});kq.default=bbr;var Gq={},fh=pe.default,Sbr=_e.default;Object.defineProperty(Gq,"__esModule",{value:!0});Gq.default=void 0;var y$=Sbr(d),Zd=y$,wbr=fh(Pot),xbr=fh(Aot),oMe=fh(St),Ebr=fh(lve),Rbr=fh(ah),$br=ho,sMe=Ql,Obr=Bt,Tbr=fh(Co),Ibr=fh(Xr),Mbr=fh(io),Pbr=Ir,_br=fh(Id),Abr=Os,Dbr=ds,Lbr=fh(Uy),Fbr=fh(VU),aMe=H9,$h=Xo,Nbr=fh(jq),kbr=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 zbr=e=>{const t=(l,c)=>{const u=c===$h.TIMEPICKER?"timePicker":"datePicker";return(0,y$.forwardRef)((h,g)=>{var p;const{prefixCls:m,getPopupContainer:v,components:C,style:y,className:b,rootClassName:S,size:w,bordered:x,placement:E,placeholder:R,popupClassName:O,dropdownClassName:T,disabled:M,status:_,variant:F,onCalendarChange:D}=h,k=kbr(h,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:L,direction:I,getPopupContainer:A,[u]:N}=(0,y$.useContext)(Obr.ConfigContext),B=L("picker",m),{compactSize:z,compactItemClassnames:j}=(0,Dbr.useCompactItemContext)(B,I),W=Zd.useRef(null),[G,K]=(0,_br.default)("datePicker",F,x),q=(0,Ibr.default)(B),[X,Q,te]=(0,Fbr.default)(B,q);(0,y$.useImperativeHandle)(g,()=>W.current);const ne={showToday:!0},Z=l||h.picker,ee=L(),{onSelect:J,multiple:oe}=k,le=J&&l==="time"&&!oe,ge=(ke,Ye,ze)=>{D==null||D(ke,Ye,ze),le&&J(ke)},[he,ye]=(0,aMe.useIcons)(h,B),ue=(0,Nbr.default)(C),ve=(0,Mbr.default)(ke=>{var Ye;return(Ye=w??z)!==null&&Ye!==void 0?Ye:ke}),de=Zd.useContext(Tbr.default),xe=M??de,Ee=(0,y$.useContext)(Pbr.FormItemInputContext),{hasFeedback:De,status:Be,feedbackIcon:Ge}=Ee,Ue=Zd.createElement(Zd.Fragment,null,Z==="time"?Zd.createElement(xbr.default,null):Zd.createElement(wbr.default,null),De&&Ge),[We]=(0,Abr.useLocale)("DatePicker",Lbr.default),Ve=Object.assign(Object.assign({},We),h.locale),[Fe]=(0,$br.useZIndex)("DatePicker",(p=h.popupStyle)===null||p===void 0?void 0:p.zIndex);return X(Zd.createElement(Rbr.default,{space:!0},Zd.createElement(Ebr.default,Object.assign({ref:W,placeholder:(0,aMe.getPlaceholder)(Ve,Z,R),suffixIcon:Ue,placement:E,prevIcon:Zd.createElement("span",{className:`${B}-prev-icon`}),nextIcon:Zd.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:Zd.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:Zd.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${ee}-slide-up`,picker:l,onCalendarChange:ge},ne,k,{locale:Ve.lang,className:(0,oMe.default)({[`${B}-${ve}`]:ve,[`${B}-${G}`]:K},(0,sMe.getStatusClassNames)(B,(0,sMe.getMergedStatus)(Be,_),De),Q,j,N==null?void 0:N.className,b,te,q,S),style:Object.assign(Object.assign({},N==null?void 0:N.style),y),prefixCls:B,getPopupContainer:v||A,generateConfig:e,components:ue,direction:I,disabled:xe,classNames:{popup:(0,oMe.default)(Q,te,q,S,O||T)},styles:{popup:Object.assign(Object.assign({},h.popupStyle),{zIndex:Fe})},allowClear:he,removeIcon:ye}))))})},n=t(),r=t($h.WEEK,$h.WEEKPICKER),i=t($h.MONTH,$h.MONTHPICKER),o=t($h.YEAR,$h.YEARPICKER),s=t($h.QUARTER,$h.QUARTERPICKER),a=t($h.TIME,$h.TIMEPICKER);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:a,QuarterPicker:s}};Gq.default=zbr;var Lot=pe.default;Object.defineProperty(Nq,"__esModule",{value:!0});Nq.default=void 0;var Bbr=Lot(kq),Hbr=Lot(Gq);const jbr=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:o,QuarterPicker:s}=(0,Hbr.default)(e),a=(0,Bbr.default)(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=a,l.TimePicker=o,l.QuarterPicker=s,l};Nq.default=jbr;var kve=pe.default;Object.defineProperty(VP,"__esModule",{value:!0});VP.default=void 0;var Vbr=kve(wP),Fot=kve($c),Not=kve(Nq);const j9=(0,Not.default)(Vbr.default),Gbr=(0,Fot.default)(j9,"popupAlign",void 0,"picker");j9._InternalPanelDoNotUseOrYouWillBeFired=Gbr;const Wbr=(0,Fot.default)(j9.RangePicker,"popupAlign",void 0,"picker");j9._InternalRangePanelDoNotUseOrYouWillBeFired=Wbr;j9.generatePicker=Not.default;VP.default=j9;var kot={},Wq={};Object.defineProperty(Wq,"__esModule",{value:!0});Wq.default=void 0;const Ubr={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};Wq.default=Ubr;var V9={},qbr=pe.default;Object.defineProperty(V9,"__esModule",{value:!0});V9.default=void 0;var Kbr=qbr(d);const Ybr=Kbr.default.createContext({});V9.default=Ybr;var zve={},Xbr=pe.default,Qbr=_e.default;Object.defineProperty(zve,"__esModule",{value:!0});zve.default=n5r;var lMe=Qbr(d),Zbr=Xbr(qs),Jbr=th,e5r=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 t5r=e=>(0,Zbr.default)(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function n5r(e,t,n){const r=lMe.useMemo(()=>t||t5r(n),[t,n]);return lMe.useMemo(()=>r.map(o=>{var{span:s}=o,a=e5r(o,["span"]);return s==="filled"?Object.assign(Object.assign({},a),{filled:!0}):Object.assign(Object.assign({},a),{span:typeof s=="number"?s:(0,Jbr.matchScreen)(e,s)})}),[r,e])}var Uq={};Object.defineProperty(Uq,"__esModule",{value:!0});Uq.default=void 0;var r5r=d,i5r=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 o5r(e,t){let n=[],r=[],i=!1,o=0;return e.filter(s=>s).forEach(s=>{const{filled:a}=s,l=i5r(s,["filled"]);if(a){r.push(l),n.push(r),r=[],o=0;return}const c=t-o;o+=s.span||1,o>=t?(o>t?(i=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],o=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(s=>{const a=s.reduce((l,c)=>l+(c.span||1),0);if(a<t){const l=s[s.length-1];return l.span=t-a+1,s}return s}),[n,i]}const s5r=(e,t)=>{const[n,r]=(0,r5r.useMemo)(()=>o5r(t,e),[t,e]);return n};Uq.default=s5r;var qq={};Object.defineProperty(qq,"__esModule",{value:!0});qq.default=void 0;const a5r=e=>{let{children:t}=e;return t};qq.default=a5r;var Kq={},Yq={},zot=pe.default,l5r=_e.default;Object.defineProperty(Yq,"__esModule",{value:!0});Yq.default=void 0;var Xv=l5r(d),IL=zot(St),c5r=zot(V9);function cMe(e){return e!=null}const u5r=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:o,labelStyle:s,contentStyle:a,bordered:l,label:c,content:u,colon:f,type:h,styles:g}=e,p=n,m=Xv.useContext(c5r.default),{classNames:v}=m;return l?Xv.createElement(p,{className:(0,IL.default)({[`${t}-item-label`]:h==="label",[`${t}-item-content`]:h==="content",[`${v==null?void 0:v.label}`]:h==="label",[`${v==null?void 0:v.content}`]:h==="content"},i),style:o,colSpan:r},cMe(c)&&Xv.createElement("span",{style:Object.assign(Object.assign({},s),g==null?void 0:g.label)},c),cMe(u)&&Xv.createElement("span",{style:Object.assign(Object.assign({},s),g==null?void 0:g.content)},u)):Xv.createElement(p,{className:(0,IL.default)(`${t}-item`,i),style:o,colSpan:r},Xv.createElement("div",{className:`${t}-item-container`},(c||c===0)&&Xv.createElement("span",{className:(0,IL.default)(`${t}-item-label`,v==null?void 0:v.label,{[`${t}-item-no-colon`]:!f}),style:Object.assign(Object.assign({},s),g==null?void 0:g.label)},c),(u||u===0)&&Xv.createElement("span",{className:(0,IL.default)(`${t}-item-content`,v==null?void 0:v.content),style:Object.assign(Object.assign({},a),g==null?void 0:g.content)},u)))};Yq.default=u5r;var Bot=pe.default,d5r=_e.default;Object.defineProperty(Kq,"__esModule",{value:!0});Kq.default=void 0;var t0=d5r(d),$re=Bot(Yq),f5r=Bot(V9);function Ore(e,t,n){let{colon:r,prefixCls:i,bordered:o}=t,{component:s,type:a,showLabel:l,showContent:c,labelStyle:u,contentStyle:f,styles:h}=n;return e.map((g,p)=>{let{label:m,children:v,prefixCls:C=i,className:y,style:b,labelStyle:S,contentStyle:w,span:x=1,key:E,styles:R}=g;return typeof s=="string"?t0.createElement($re.default,{key:`${a}-${E||p}`,className:y,style:b,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),h==null?void 0:h.label),S),R==null?void 0:R.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},f),h==null?void 0:h.content),w),R==null?void 0:R.content)},span:x,colon:r,component:s,itemPrefixCls:C,bordered:o,label:l?m:null,content:c?v:null,type:a}):[t0.createElement($re.default,{key:`label-${E||p}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),h==null?void 0:h.label),b),S),R==null?void 0:R.label),span:1,colon:r,component:s[0],itemPrefixCls:C,bordered:o,label:m,type:"label"}),t0.createElement($re.default,{key:`content-${E||p}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),h==null?void 0:h.content),b),w),R==null?void 0:R.content),span:x*2-1,component:s[1],itemPrefixCls:C,bordered:o,content:v,type:"content"})]})}const h5r=e=>{const t=t0.useContext(f5r.default),{prefixCls:n,vertical:r,row:i,index:o,bordered:s}=e;return r?t0.createElement(t0.Fragment,null,t0.createElement("tr",{key:`label-${o}`,className:`${n}-row`},Ore(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),t0.createElement("tr",{key:`content-${o}`,className:`${n}-row`},Ore(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):t0.createElement("tr",{key:o,className:`${n}-row`},Ore(i,e,Object.assign({component:s?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))};Kq.default=h5r;var H7={};Object.defineProperty(H7,"__esModule",{value:!0});H7.prepareComponentToken=H7.default=void 0;var Hh=Kt,uMe=gn,dMe=Zt;const g5r=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${(0,Hh.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${(0,Hh.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,Hh.unit)(e.padding)} ${(0,Hh.unit)(e.paddingLG)}`,borderInlineEnd:`${(0,Hh.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,Hh.unit)(e.paddingSM)} ${(0,Hh.unit)(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,Hh.unit)(e.paddingXS)} ${(0,Hh.unit)(e.padding)}`}}}}}},p5r=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:o,colonMarginLeft:s,titleMarginBottom:a}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,uMe.resetComponent)(e)),g5r(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:a},[`${t}-title`]:Object.assign(Object.assign({},uMe.textEllipsis),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,Hh.unit)(s)} ${(0,Hh.unit)(o)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Hot=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText});H7.prepareComponentToken=Hot;H7.default=(0,dMe.genStyleHooks)("Descriptions",e=>{const t=(0,dMe.mergeToken)(e,{});return p5r(t)},Hot);(function(e){"use client";var t=pe.default,n=_e.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DescriptionsContext",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var r=n(d),i=t(St),o=th,s=Bt,a=t(io),l=t(Ym),c=t(Wq),u=t(V9),f=t(zve),h=t(Uq),g=t(qq),p=t(Kq),m=t(H7),v=function(y,b){var S={};for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&b.indexOf(w)<0&&(S[w]=y[w]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,w=Object.getOwnPropertySymbols(y);x<w.length;x++)b.indexOf(w[x])<0&&Object.prototype.propertyIsEnumerable.call(y,w[x])&&(S[w[x]]=y[w[x]]);return S};const C=y=>{var b,S,w,x,E,R,O,T;const{prefixCls:M,title:_,extra:F,column:D,colon:k=!0,bordered:L,layout:I,children:A,className:N,rootClassName:B,style:z,size:j,labelStyle:W,contentStyle:G,styles:K,items:q,classNames:X}=y,Q=v(y,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:te,direction:ne,descriptions:Z}=r.useContext(s.ConfigContext),ee=te("descriptions",M),J=(0,l.default)(),oe=r.useMemo(()=>{var xe;return typeof D=="number"?D:(xe=(0,o.matchScreen)(J,Object.assign(Object.assign({},c.default),D)))!==null&&xe!==void 0?xe:3},[J,D]),le=(0,f.default)(J,q,A),ge=(0,a.default)(j),he=(0,h.default)(oe,le),[ye,ue,ve]=(0,m.default)(ee),de=r.useMemo(()=>{var xe,Ee,De,Be;return{labelStyle:W,contentStyle:G,styles:{content:Object.assign(Object.assign({},(xe=Z==null?void 0:Z.styles)===null||xe===void 0?void 0:xe.content),K==null?void 0:K.content),label:Object.assign(Object.assign({},(Ee=Z==null?void 0:Z.styles)===null||Ee===void 0?void 0:Ee.label),K==null?void 0:K.label)},classNames:{label:(0,i.default)((De=Z==null?void 0:Z.classNames)===null||De===void 0?void 0:De.label,X==null?void 0:X.label),content:(0,i.default)((Be=Z==null?void 0:Z.classNames)===null||Be===void 0?void 0:Be.content,X==null?void 0:X.content)}}},[W,G,K,X,Z]);return ye(r.createElement(u.default.Provider,{value:de},r.createElement("div",Object.assign({className:(0,i.default)(ee,Z==null?void 0:Z.className,(b=Z==null?void 0:Z.classNames)===null||b===void 0?void 0:b.root,X==null?void 0:X.root,{[`${ee}-${ge}`]:ge&&ge!=="default",[`${ee}-bordered`]:!!L,[`${ee}-rtl`]:ne==="rtl"},N,B,ue,ve),style:Object.assign(Object.assign(Object.assign(Object.assign({},Z==null?void 0:Z.style),(S=Z==null?void 0:Z.styles)===null||S===void 0?void 0:S.root),K==null?void 0:K.root),z)},Q),(_||F)&&r.createElement("div",{className:(0,i.default)(`${ee}-header`,(w=Z==null?void 0:Z.classNames)===null||w===void 0?void 0:w.header,X==null?void 0:X.header),style:Object.assign(Object.assign({},(x=Z==null?void 0:Z.styles)===null||x===void 0?void 0:x.header),K==null?void 0:K.header)},_&&r.createElement("div",{className:(0,i.default)(`${ee}-title`,(E=Z==null?void 0:Z.classNames)===null||E===void 0?void 0:E.title,X==null?void 0:X.title),style:Object.assign(Object.assign({},(R=Z==null?void 0:Z.styles)===null||R===void 0?void 0:R.title),K==null?void 0:K.title)},_),F&&r.createElement("div",{className:(0,i.default)(`${ee}-extra`,(O=Z==null?void 0:Z.classNames)===null||O===void 0?void 0:O.extra,X==null?void 0:X.extra),style:Object.assign(Object.assign({},(T=Z==null?void 0:Z.styles)===null||T===void 0?void 0:T.extra),K==null?void 0:K.extra)},F)),r.createElement("div",{className:`${ee}-view`},r.createElement("table",null,r.createElement("tbody",null,he.map((xe,Ee)=>r.createElement(p.default,{key:Ee,index:Ee,colon:k,prefixCls:ee,vertical:I==="vertical",bordered:L,row:xe}))))))))};C.Item=g.default,e.default=C})(kot);var Xq={};const m5r=_r(IGt);var Qq={},jot=pe.default,Vot=_e.default;Object.defineProperty(Qq,"__esModule",{value:!0});Qq.default=void 0;var Fc=Vot(d),Tre=jot(St),Ire=Vot(nb),v5r=Bt,C5r=jot(L3);const y5r=e=>{var t,n;const{prefixCls:r,title:i,footer:o,extra:s,loading:a,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:f,children:h,classNames:g,styles:p}=e,{drawer:m}=Fc.useContext(v5r.ConfigContext),v=Fc.useCallback(w=>Fc.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},w),[l]),[C,y]=(0,Ire.default)((0,Ire.pickClosable)(e),(0,Ire.pickClosable)(m),{closable:!0,closeIconRender:v}),b=Fc.useMemo(()=>{var w,x;return!i&&!C?null:Fc.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(w=m==null?void 0:m.styles)===null||w===void 0?void 0:w.header),c),p==null?void 0:p.header),className:(0,Tre.default)(`${r}-header`,{[`${r}-header-close-only`]:C&&!i&&!s},(x=m==null?void 0:m.classNames)===null||x===void 0?void 0:x.header,g==null?void 0:g.header)},Fc.createElement("div",{className:`${r}-header-title`},y,i&&Fc.createElement("div",{className:`${r}-title`},i)),s&&Fc.createElement("div",{className:`${r}-extra`},s))},[C,y,s,c,r,i]),S=Fc.useMemo(()=>{var w,x;if(!o)return null;const E=`${r}-footer`;return Fc.createElement("div",{className:(0,Tre.default)(E,(w=m==null?void 0:m.classNames)===null||w===void 0?void 0:w.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(x=m==null?void 0:m.styles)===null||x===void 0?void 0:x.footer),f),p==null?void 0:p.footer)},o)},[o,f,r]);return Fc.createElement(Fc.Fragment,null,b,Fc.createElement("div",{className:(0,Tre.default)(`${r}-body`,g==null?void 0:g.body,(t=m==null?void 0:m.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=m==null?void 0:m.styles)===null||n===void 0?void 0:n.body),u),p==null?void 0:p.body)},a?Fc.createElement(C5r.default,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),S)};Qq.default=y5r;var j7={},Zq={};Object.defineProperty(Zq,"__esModule",{value:!0});Zq.default=void 0;const b5r=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Got=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Wot=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Got({opacity:e},{opacity:1})),S5r=(e,t)=>[Wot(.7,t),Got({transform:b5r(e)},{transform:"none"})],w5r=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Wot(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:S5r(i,n)}),{})}}};Zq.default=w5r;var x5r=pe.default;Object.defineProperty(j7,"__esModule",{value:!0});j7.prepareComponentToken=j7.default=void 0;var O5=Kt,E5r=gn,fMe=Zt,R5r=x5r(Zq);const $5r=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:o,motionDurationSlow:s,motionDurationMid:a,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:f,lineHeightLG:h,lineWidth:g,lineType:p,colorSplit:m,marginXS:v,colorIcon:C,colorIconHover:y,colorBgTextHover:b,colorBgTextActive:S,colorText:w,fontWeightStrong:x,footerPaddingBlock:E,footerPaddingInline:R,calc:O}=e,T=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:w,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto"},[T]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${s}`,"&-hidden":{display:"none"}},[`&-left > ${T}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${T}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${T}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${T}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,O5.unit)(c)} ${(0,O5.unit)(u)}`,fontSize:f,lineHeight:h,borderBottom:`${(0,O5.unit)(g)} ${p} ${m}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:O(f).add(l).equal(),height:O(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:C,fontWeight:x,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${a}`,textRendering:"auto","&:hover":{color:y,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:S}},(0,E5r.genFocusStyle)(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:h},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${(0,O5.unit)(E)} ${(0,O5.unit)(R)}`,borderTop:`${(0,O5.unit)(g)} ${p} ${m}`},"&-rtl":{direction:"rtl"}}}},Uot=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding});j7.prepareComponentToken=Uot;j7.default=(0,fMe.genStyleHooks)("Drawer",e=>{const t=(0,fMe.mergeToken)(e,{});return[$5r(t),(0,R5r.default)(t)]},Uot);var G9=pe.default,O5r=_e.default;Object.defineProperty(Xq,"__esModule",{value:!0});Xq.default=void 0;var Np=O5r(d),J5=G9(St),T5r=G9(m5r),I5r=G9(ah),M5r=ho,hMe=$s,P5r=G9(cv),qot=Bt,_5r=ib,Kot=G9(Qq),Yot=G9(j7),Xot=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 A5r={distance:180},Qot=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:s=A5r,open:a,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:f,style:h,className:g,visible:p,afterVisibleChange:m,maskStyle:v,drawerStyle:C,contentWrapperStyle:y}=e,b=Xot(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:S,getPrefixCls:w,direction:x,drawer:E}=Np.useContext(qot.ConfigContext),R=w("drawer",u),[O,T,M]=(0,Yot.default)(R),_=f===void 0&&S?()=>S(document.body):f,F=(0,J5.default)({"no-mask":!o,[`${R}-rtl`]:x==="rtl"},t,T,M),D=Np.useMemo(()=>n??(i==="large"?736:378),[n,i]),k=Np.useMemo(()=>r??(i==="large"?736:378),[r,i]),L={motionName:(0,hMe.getTransitionName)(R,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},I=K=>({motionName:(0,hMe.getTransitionName)(R,`panel-motion-${K}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),A=(0,_5r.usePanelRef)(),[N,B]=(0,M5r.useZIndex)("Drawer",b.zIndex),{classNames:z={},styles:j={}}=b,{classNames:W={},styles:G={}}=E||{};return O(Np.createElement(I5r.default,{form:!0,space:!0},Np.createElement(P5r.default.Provider,{value:B},Np.createElement(T5r.default,Object.assign({prefixCls:R,onClose:c,maskMotion:L,motion:I},b,{classNames:{mask:(0,J5.default)(z.mask,W.mask),content:(0,J5.default)(z.content,W.content),wrapper:(0,J5.default)(z.wrapper,W.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},j.mask),v),G.mask),content:Object.assign(Object.assign(Object.assign({},j.content),C),G.content),wrapper:Object.assign(Object.assign(Object.assign({},j.wrapper),y),G.wrapper)},open:a??p,mask:o,push:s,width:D,height:k,style:Object.assign(Object.assign({},E==null?void 0:E.style),h),className:(0,J5.default)(E==null?void 0:E.className,g),rootClassName:F,getContainer:_,afterOpenChange:l??m,panelRef:A,zIndex:N}),Np.createElement(Kot.default,Object.assign({prefixCls:R},b,{onClose:c}))))))},D5r=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=Xot(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=Np.useContext(qot.ConfigContext),a=s("drawer",t),[l,c,u]=(0,Yot.default)(a),f=(0,J5.default)(a,`${a}-pure`,`${a}-${i}`,c,u,r);return l(Np.createElement("div",{className:f,style:n},Np.createElement(Kot.default,Object.assign({prefixCls:a},o))))};Qot._InternalPanelDoNotUseOrYouWillBeFired=D5r;Xq.default=Qot;var vb={},Jq={},Bve={},GP={};Object.defineProperty(GP,"__esModule",{value:!0});GP.isPresetSize=L5r;GP.isValidGapNumber=F5r;function L5r(e){return["small","middle","large"].includes(e)}function F5r(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}var oy={},N5r=pe.default;Object.defineProperty(oy,"__esModule",{value:!0});oy.SpaceContextProvider=oy.SpaceContext=void 0;var k5r=N5r(d);const z5r=oy.SpaceContext=k5r.default.createContext({latestIndex:0});oy.SpaceContextProvider=z5r.Provider;var eK={},B5r=_e.default;Object.defineProperty(eK,"__esModule",{value:!0});eK.default=void 0;var yR=B5r(d),H5r=oy;const j5r=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:s}=yR.useContext(H5r.SpaceContext);return r==null?null:yR.createElement(yR.Fragment,null,yR.createElement("div",{className:t,style:o},r),n<s&&i&&yR.createElement("span",{className:`${t}-split`},i))};eK.default=j5r;(function(e){"use client";var t=pe.default,n=_e.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SpaceContext",{enumerable:!0,get:function(){return c.SpaceContext}}),e.default=void 0;var r=n(d),i=t(St),o=t(qs),s=GP,a=Bt,l=t(ds),c=oy,u=t(eK),f=t(KC),h=function(m,v){var C={};for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&v.indexOf(y)<0&&(C[y]=m[y]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,y=Object.getOwnPropertySymbols(m);b<y.length;b++)v.indexOf(y[b])<0&&Object.prototype.propertyIsEnumerable.call(m,y[b])&&(C[y[b]]=m[y[b]]);return C};const p=r.forwardRef((m,v)=>{var C,y,b;const{getPrefixCls:S,space:w,direction:x}=r.useContext(a.ConfigContext),{size:E=(C=w==null?void 0:w.size)!==null&&C!==void 0?C:"small",align:R,className:O,rootClassName:T,children:M,direction:_="horizontal",prefixCls:F,split:D,style:k,wrap:L=!1,classNames:I,styles:A}=m,N=h(m,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[B,z]=Array.isArray(E)?E:[E,E],j=(0,s.isPresetSize)(z),W=(0,s.isPresetSize)(B),G=(0,s.isValidGapNumber)(z),K=(0,s.isValidGapNumber)(B),q=(0,o.default)(M,{keepEmpty:!0}),X=R===void 0&&_==="horizontal"?"center":R,Q=S("space",F),[te,ne,Z]=(0,f.default)(Q),ee=(0,i.default)(Q,w==null?void 0:w.className,ne,`${Q}-${_}`,{[`${Q}-rtl`]:x==="rtl",[`${Q}-align-${X}`]:X,[`${Q}-gap-row-${z}`]:j,[`${Q}-gap-col-${B}`]:W},O,T,Z),J=(0,i.default)(`${Q}-item`,(y=I==null?void 0:I.item)!==null&&y!==void 0?y:(b=w==null?void 0:w.classNames)===null||b===void 0?void 0:b.item);let oe=0;const le=q.map((ye,ue)=>{var ve,de;ye!=null&&(oe=ue);const xe=(ye==null?void 0:ye.key)||`${J}-${ue}`;return r.createElement(u.default,{className:J,key:xe,index:ue,split:D,style:(ve=A==null?void 0:A.item)!==null&&ve!==void 0?ve:(de=w==null?void 0:w.styles)===null||de===void 0?void 0:de.item},ye)}),ge=r.useMemo(()=>({latestIndex:oe}),[oe]);if(q.length===0)return null;const he={};return L&&(he.flexWrap="wrap"),!W&&K&&(he.columnGap=B),!j&&G&&(he.rowGap=z),te(r.createElement("div",Object.assign({ref:v,className:ee,style:Object.assign(Object.assign(Object.assign({},he),w==null?void 0:w.style),k)},N),r.createElement(c.SpaceContextProvider,{value:ge},le)))});p.Compact=l.default,e.default=p})(Bve);var WP=pe.default,V5r=_e.default;Object.defineProperty(Jq,"__esModule",{value:!0});Jq.default=void 0;var T5=V5r(d),G5r=WP(nve),W5r=WP(St),gMe=WP(Ru),U5r=Bt,q5r=WP(Bve),K5r=ds,Y5r=WP($9),X5r=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 Zot=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=T5.useContext(U5r.ConfigContext),{prefixCls:i,type:o="default",danger:s,disabled:a,loading:l,onClick:c,htmlType:u,children:f,className:h,menu:g,arrow:p,autoFocus:m,overlay:v,trigger:C,align:y,open:b,onOpenChange:S,placement:w,getPopupContainer:x,href:E,icon:R=T5.createElement(G5r.default,null),title:O,buttonsRender:T=Q=>Q,mouseEnterDelay:M,mouseLeaveDelay:_,overlayClassName:F,overlayStyle:D,destroyPopupOnHide:k,dropdownRender:L}=e,I=X5r(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),A=n("dropdown",i),N=`${A}-button`,B={menu:g,arrow:p,autoFocus:m,align:y,disabled:a,trigger:a?[]:C,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:M,mouseLeaveDelay:_,overlayClassName:F,overlayStyle:D,destroyPopupOnHide:k,dropdownRender:L},{compactSize:z,compactItemClassnames:j}=(0,K5r.useCompactItemContext)(A,r),W=(0,W5r.default)(N,j,h);"overlay"in e&&(B.overlay=v),"open"in e&&(B.open=b),"placement"in e?B.placement=w:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const G=T5.createElement(gMe.default,{type:o,danger:s,disabled:a,loading:l,onClick:c,htmlType:u,href:E,title:O},f),K=T5.createElement(gMe.default,{type:o,danger:s,icon:R}),[q,X]=T([G,K]);return T5.createElement(q5r.default.Compact,Object.assign({className:W,size:z,block:!0},I),q,T5.createElement(Y5r.default,Object.assign({},B),X))};Zot.__ANT_BUTTON=!0;Jq.default=Zot;var Jot=pe.default;Object.defineProperty(vb,"__esModule",{value:!0});vb.default=void 0;var Q5r=Jot($9),Z5r=Jot(Jq);const est=Q5r.default;est.Button=Z5r.default;vb.default=est;var tK={},V7={},gg={},J5r=pe.default;Object.defineProperty(gg,"__esModule",{value:!0});gg.justifyContentValues=gg.flexWrapValues=gg.default=gg.alignItemsValues=void 0;var eSr=J5r(St);const tSr=gg.flexWrapValues=["wrap","nowrap","wrap-reverse"],nSr=gg.justifyContentValues=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],rSr=gg.alignItemsValues=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],iSr=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&tSr.includes(n)}},oSr=(e,t)=>{const n={};return rSr.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},sSr=(e,t)=>{const n={};return nSr.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function aSr(e,t){return(0,eSr.default)(Object.assign(Object.assign(Object.assign({},iSr(e,t)),oSr(e,t)),sSr(e,t)))}gg.default=aSr;Object.defineProperty(V7,"__esModule",{value:!0});V7.prepareComponentToken=V7.default=void 0;var pMe=Zt,Hve=gg;const lSr=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},cSr=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},uSr=e=>{const{componentCls:t}=e,n={};return Hve.flexWrapValues.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},dSr=e=>{const{componentCls:t}=e,n={};return Hve.alignItemsValues.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},fSr=e=>{const{componentCls:t}=e,n={};return Hve.justifyContentValues.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},tst=()=>({});V7.prepareComponentToken=tst;V7.default=(0,pMe.genStyleHooks)("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=(0,pMe.mergeToken)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[lSr(i),cSr(i),uSr(i),dSr(i),fSr(i)]},tst,{resetStyle:!1});var UP=pe.default;Object.defineProperty(tK,"__esModule",{value:!0});tK.default=void 0;var Mre=UP(d),hSr=UP(St),gSr=UP(mi),mMe=GP,pSr=Bt,mSr=UP(V7),vSr=UP(gg),CSr=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 ySr=Mre.default.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:i,style:o,flex:s,gap:a,children:l,vertical:c=!1,component:u="div"}=e,f=CSr(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:h,direction:g,getPrefixCls:p}=Mre.default.useContext(pSr.ConfigContext),m=p("flex",n),[v,C,y]=(0,mSr.default)(m),b=c??(h==null?void 0:h.vertical),S=(0,hSr.default)(i,r,h==null?void 0:h.className,m,C,y,(0,vSr.default)(m,e),{[`${m}-rtl`]:g==="rtl",[`${m}-gap-${a}`]:(0,mMe.isPresetSize)(a),[`${m}-vertical`]:b}),w=Object.assign(Object.assign({},h==null?void 0:h.style),o);return s&&(w.flex=s),a&&!(0,mMe.isPresetSize)(a)&&(w.gap=a),v(Mre.default.createElement(u,Object.assign({ref:t,className:S,style:w},(0,gSr.default)(f,["justify","wrap","align"])),l))});tK.default=ySr;var nK={},qP={},s3={},bSr=pe.default;Object.defineProperty(s3,"__esModule",{value:!0});s3.default=s3.FloatButtonGroupProvider=void 0;var SSr=bSr(d);const nst=SSr.default.createContext(void 0),{Provider:wSr}=nst;s3.FloatButtonGroupProvider=wSr;s3.default=nst;var H0={},rK={},Mue={exports:{}},iK={},jve={};Object.defineProperty(jve,"__esModule",{value:!0});var xSr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};jve.default=xSr;var ESr=_e.default,Vve=pe.default;Object.defineProperty(iK,"__esModule",{value:!0});iK.default=void 0;var RSr=Vve(lr),rst=ESr(d),$Sr=Vve(jve),OSr=Vve(cr),TSr=function(t,n){return rst.createElement(OSr.default,(0,RSr.default)({},t,{ref:n,icon:$Sr.default}))},ISr=rst.forwardRef(TSr);iK.default=ISr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(iK);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Mue,Mue.exports);var ist=Mue.exports,ost=pe.default,MSr=_e.default;Object.defineProperty(rK,"__esModule",{value:!0});rK.default=void 0;var y2=MSr(d),PSr=ost(ist),_Sr=ost(St);const ASr=e=>{const{icon:t,description:n,prefixCls:r,className:i}=e,o=y2.default.createElement("div",{className:`${r}-icon`},y2.default.createElement(PSr.default,null));return y2.default.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:(0,_Sr.default)(i,`${r}-content`)},t||n?y2.default.createElement(y2.default.Fragment,null,t&&y2.default.createElement("div",{className:`${r}-icon`},t),n&&y2.default.createElement("div",{className:`${r}-description`},n)):o)};rK.default=(0,y2.memo)(ASr);var sy={},oK={};Object.defineProperty(oK,"__esModule",{value:!0});oK.default=void 0;const DSr=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2);oK.default=DSr;var sK={};Object.defineProperty(sK,"__esModule",{value:!0});sK.default=void 0;var Jd=Kt,ML=_3;const LSr=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:i,calc:o}=e,s=new Jd.Keyframes("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${(0,Jd.unit)(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new Jd.Keyframes("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${(0,Jd.unit)(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),l=new Jd.Keyframes("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${o(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new Jd.Keyframes("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${o(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),u=new Jd.Keyframes("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${o(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new Jd.Keyframes("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${o(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0}}),h=new Jd.Keyframes("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${(0,Jd.unit)(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new Jd.Keyframes("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${(0,Jd.unit)(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),p=`${t}-group`;return[{[p]:{[`&${p}-top ${p}-wrap`]:(0,ML.initMotion)(`${p}-wrap`,s,a,r,!0),[`&${p}-bottom ${p}-wrap`]:(0,ML.initMotion)(`${p}-wrap`,u,f,r,!0),[`&${p}-left ${p}-wrap`]:(0,ML.initMotion)(`${p}-wrap`,h,g,r,!0),[`&${p}-right ${p}-wrap`]:(0,ML.initMotion)(`${p}-wrap`,l,c,r,!0)}},{[`${p}-wrap`]:{[`&${p}-wrap-enter, &${p}-wrap-appear`]:{opacity:0,animationTimingFunction:i},[`&${p}-wrap-leave`]:{opacity:1,animationTimingFunction:i}}}]};sK.default=LSr;var sst=pe.default;Object.defineProperty(sy,"__esModule",{value:!0});sy.prepareComponentToken=sy.default=void 0;var F8=Kt,ast=gn,FSr=y0,vMe=Zt,CMe=sst(oK),NSr=sst(sK);const kSr=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:i,borderRadiusLG:o,borderRadiusSM:s,badgeOffset:a,floatButtonBodyPadding:l,zIndexPopupBase:c,calc:u}=e,f=`${n}-group`;return{[f]:Object.assign(Object.assign({},(0,ast.resetComponent)(e)),{zIndex:c,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:r,minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:o,[`${f}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${f}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${f}-top > ${f}-wrap`]:{flexDirection:"column",top:"auto",bottom:u(r).add(i).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:i,bottom:u(i).mul(-1).equal()}},[`${f}-bottom > ${f}-wrap`]:{flexDirection:"column",top:u(r).add(i).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:i,top:u(i).mul(-1).equal()}},[`${f}-right > ${f}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:u(r).add(i).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:i,height:"100%",left:{_skip_check_:!0,value:u(i).mul(-1).equal()}}},[`${f}-left > ${f}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:u(r).add(i).equal()},"&::after":{content:'""',position:"absolute",width:i,height:"100%",right:{_skip_check_:!0,value:u(i).mul(-1).equal()}}},[`${f}-circle`]:{gap:i,[`${f}-wrap`]:{gap:i}},[`${f}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${f}-trigger`]:{borderRadius:o},"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${(0,F8.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:u(u(l).add(a)).mul(-1).equal(),insetInlineEnd:u(u(l).add(a)).mul(-1).equal()}}},[`${f}-wrap`]:{borderRadius:o,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:s}}}},[`${f}-top > ${f}-wrap, ${f}-bottom > ${f}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${(0,F8.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${f}-left > ${f}-wrap, ${f}-right > ${f}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:o,borderEndStartRadius:o},"&:last-child":{borderStartEndRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderInlineEnd:`${(0,F8.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${f}-circle-shadow`]:{boxShadow:"none"},[`${f}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:s}}}}},zSr=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:i,floatButtonSize:o,borderRadiusLG:s,badgeOffset:a,dotOffsetInSquare:l,dotOffsetInCircle:c,zIndexPopupBase:u,calc:f}=e;return{[n]:Object.assign(Object.assign({},(0,ast.resetComponent)(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:u,display:"block",width:o,height:o,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:f(a).mul(-1).equal(),insetInlineEnd:f(a).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:o,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${(0,F8.unit)(f(r).div(2).equal())} ${(0,F8.unit)(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:i,fontSize:i,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:o,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:o,borderRadius:s,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{height:"auto",borderRadius:s}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,F8.unit)(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,F8.unit)(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},lst=e=>({dotOffsetInCircle:(0,CMe.default)(e.controlHeightLG/2),dotOffsetInSquare:(0,CMe.default)(e.borderRadiusLG)});sy.prepareComponentToken=lst;sy.default=(0,vMe.genStyleHooks)("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:i,marginLG:o,fontSize:s,fontSizeIcon:a,controlItemBgHover:l,paddingXXS:c,calc:u}=e,f=(0,vMe.mergeToken)(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:l,floatButtonFontSize:s,floatButtonIconSize:u(a).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:i,floatButtonInsetInlineEnd:o,floatButtonBodySize:u(r).sub(u(c).mul(2)).equal(),floatButtonBodyPadding:c,badgeOffset:u(c).mul(1.5).equal()});return[kSr(f),zSr(f),(0,FSr.initFadeMotion)(e),(0,NSr.default)(f)]},lst);var K3=pe.default,BSr=_e.default;Object.defineProperty(H0,"__esModule",{value:!0});H0.floatButtonPrefixCls=H0.default=void 0;var xp=BSr(d),HSr=K3(St),jSr=K3(mi),VSr=ho,GSr=K3(dP),WSr=Bt,USr=K3(Xr),qSr=K3(gl),KSr=K3(s3),YSr=K3(rK),XSr=K3(sy),QSr=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 ZSr=H0.floatButtonPrefixCls="float-btn",JSr=xp.default.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,type:s="default",shape:a="circle",icon:l,description:c,tooltip:u,htmlType:f="button",badge:h={}}=e,g=QSr(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:p,direction:m}=(0,xp.useContext)(WSr.ConfigContext),v=(0,xp.useContext)(KSr.default),C=p(ZSr,n),y=(0,USr.default)(C),[b,S,w]=(0,XSr.default)(C,y),x=v||a,E=(0,HSr.default)(S,w,y,C,r,i,`${C}-${s}`,`${C}-${x}`,{[`${C}-rtl`]:m==="rtl"}),[R]=(0,VSr.useZIndex)("FloatButton",o==null?void 0:o.zIndex),O=Object.assign(Object.assign({},o),{zIndex:R}),T=(0,jSr.default)(h,["title","children","status","text"]),M=(0,xp.useMemo)(()=>({prefixCls:C,description:c,icon:l,type:s}),[C,c,l,s]);let _=xp.default.createElement("div",{className:`${C}-body`},xp.default.createElement(YSr.default,Object.assign({},M)));return"badge"in e&&(_=xp.default.createElement(GSr.default,Object.assign({},T),_)),"tooltip"in e&&(_=xp.default.createElement(qSr.default,{title:u,placement:m==="rtl"?"right":"left"},_)),b(e.href?xp.default.createElement("a",Object.assign({ref:t},g,{className:E,style:O}),_):xp.default.createElement("button",Object.assign({ref:t},g,{className:E,style:O,type:f}),_))}),ewr=JSr;H0.default=ewr;var Cb=pe.default,cst=_e.default;Object.defineProperty(qP,"__esModule",{value:!0});qP.default=void 0;var Ep=cst(d),twr=Cb(Jrt),nwr=Cb(St),rwr=Cb(Qg),iwr=Vi,owr=Cb(O3),swr=Cb(u9),awr=Cb(r9),lwr=Bt,cwr=Cb(s3),yMe=cst(H0),uwr=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 dwr=Ep.default.forwardRef((e,t)=>{const{prefixCls:n,className:r,type:i="default",shape:o="circle",visibilityHeight:s=400,icon:a=Ep.default.createElement(twr.default,null),target:l,onClick:c,duration:u=450}=e,f=uwr(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[h,g]=(0,Ep.useState)(s===0),p=Ep.default.useRef(null);Ep.default.useImperativeHandle(t,()=>({nativeElement:p.current}));const m=()=>{var R;return((R=p.current)===null||R===void 0?void 0:R.ownerDocument)||window},v=(0,awr.default)(R=>{const O=(0,owr.default)(R.target);g(O>=s)});(0,Ep.useEffect)(()=>{const O=(l||m)();return v({target:O}),O==null||O.addEventListener("scroll",v),()=>{v.cancel(),O==null||O.removeEventListener("scroll",v)}},[l]);const C=R=>{(0,swr.default)(0,{getContainer:l||m,duration:u}),c==null||c(R)},{getPrefixCls:y}=(0,Ep.useContext)(lwr.ConfigContext),b=y(yMe.floatButtonPrefixCls,n),S=y(),x=(0,Ep.useContext)(cwr.default)||o,E=Object.assign({prefixCls:b,icon:a,type:i,shape:x},f);return Ep.default.createElement(rwr.default,{visible:h,motionName:`${S}-fade`},(R,O)=>{let{className:T}=R;return Ep.default.createElement(yMe.default,Object.assign({ref:(0,iwr.composeRef)(p,O)},E,{onClick:C,className:(0,nwr.default)(r,T)}))})});qP.default=dwr;var KP={},fwr=_e.default,mv=pe.default;Object.defineProperty(KP,"__esModule",{value:!0});KP.default=void 0;var ef=mv(d),hwr=mv(Td),gwr=mv(ist),Pre=mv(St),pwr=mv(Qg),mwr=mv(hl),vwr=mv(fa),Cwr=ho,ywr=Bt,bwr=mv(Xr),Swr=s3,bMe=fwr(H0),wwr=mv(sy),xwr=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 Ewr=e=>{var t;const{prefixCls:n,className:r,style:i,shape:o="circle",type:s="default",placement:a="top",icon:l=ef.default.createElement(gwr.default,null),closeIcon:c,description:u,trigger:f,children:h,onOpenChange:g,open:p,onClick:m}=e,v=xwr(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:C,getPrefixCls:y,floatButtonGroup:b}=ef.default.useContext(ywr.ConfigContext),S=(t=c??(b==null?void 0:b.closeIcon))!==null&&t!==void 0?t:ef.default.createElement(hwr.default,null),w=y(bMe.floatButtonPrefixCls,n),x=(0,bwr.default)(w),[E,R,O]=(0,wwr.default)(w,x),T=`${w}-group`,M=f&&["click","hover"].includes(f),_=a&&["top","left","right","bottom"].includes(a),F=(0,Pre.default)(T,R,O,x,r,{[`${T}-rtl`]:C==="rtl",[`${T}-${o}`]:o,[`${T}-${o}-shadow`]:!M,[`${T}-${a}`]:M&&_}),[D]=(0,Cwr.useZIndex)("FloatButton",i==null?void 0:i.zIndex),k=Object.assign(Object.assign({},i),{zIndex:D}),L=(0,Pre.default)(R,`${T}-wrap`),[I,A]=(0,vwr.default)(!1,{value:p}),N=ef.default.useRef(null),B=f==="hover",z=f==="click",j=(0,mwr.default)(q=>{I!==q&&(A(q),g==null||g(q))}),W=()=>{B&&j(!0)},G=()=>{B&&j(!1)},K=q=>{z&&j(!I),m==null||m(q)};return ef.default.useEffect(()=>{if(z){const q=X=>{var Q;!((Q=N.current)===null||Q===void 0)&&Q.contains(X.target)||j(!1)};return document.addEventListener("click",q,{capture:!0}),()=>document.removeEventListener("click",q,{capture:!0})}},[z]),E(ef.default.createElement(Swr.FloatButtonGroupProvider,{value:o},ef.default.createElement("div",{ref:N,className:F,style:k,onMouseEnter:W,onMouseLeave:G},M?ef.default.createElement(ef.default.Fragment,null,ef.default.createElement(pwr.default,{visible:I,motionName:`${T}-wrap`},q=>{let{className:X}=q;return ef.default.createElement("div",{className:(0,Pre.default)(X,L)},h)}),ef.default.createElement(bMe.default,Object.assign({type:s,icon:I?S:l,description:u,"aria-label":e["aria-label"],className:`${T}-trigger`,onClick:K},v))):h)))};KP.default=Ewr;var aK={},Gve=pe.default,ust=_e.default;Object.defineProperty(aK,"__esModule",{value:!0});aK.default=void 0;var DS=ust(d),SMe=Gve(St),Rwr=Bt,$wr=Gve(qP),dst=ust(H0),Owr=Gve(KP),fst=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 wMe=e=>{var{backTop:t}=e,n=fst(e,["backTop"]);return t?DS.createElement($wr.default,Object.assign({},n,{visibilityHeight:0})):DS.createElement(dst.default,Object.assign({},n))},Twr=e=>{var{className:t,items:n}=e,r=fst(e,["className","items"]);const{prefixCls:i}=r,{getPrefixCls:o}=DS.useContext(Rwr.ConfigContext),a=`${o(dst.floatButtonPrefixCls,i)}-pure`;return n?DS.createElement(Owr.default,Object.assign({className:(0,SMe.default)(t,a)},r),n.map((l,c)=>DS.createElement(wMe,Object.assign({key:c},l)))):DS.createElement(wMe,Object.assign({className:(0,SMe.default)(t,a)},r))};aK.default=Twr;var lK=pe.default;Object.defineProperty(nK,"__esModule",{value:!0});nK.default=void 0;var Iwr=lK(qP),cK=lK(H0),Mwr=lK(KP),Pwr=lK(aK);cK.default.BackTop=Iwr.default;cK.default.Group=Mwr.default;cK.default._InternalPanelDoNotUseOrYouWillBeFired=Pwr.default;nK.default=cK.default;var uK={},YP={},dK={},_wr=_e.default;Object.defineProperty(dK,"__esModule",{value:!0});dK.default=Awr;var xMe=_wr(d);function Awr(e){const[t,n]=xMe.useState(e);return xMe.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}var $g={},fK={};Object.defineProperty(fK,"__esModule",{value:!0});fK.default=void 0;const Dwr=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
||
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,
|
||
${r}-col-24${n}-label,
|
||
${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,
|
||
${n}-col-24${t}-label,
|
||
${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.getFieldInstance(e),r=(0,i7r.getDOM)(n);if(r)return r;const i=(0,Aue.getFieldId)((0,Aue.toArray)(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function s7r(e){const[t]=(0,r7r.useForm)(),n=AMe.useRef({}),r=AMe.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const s=DMe(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=LMe(i,r);s&&(0,o7r.default)(s,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},focusField:i=>{var o;const s=LMe(i,r);s&&((o=s.focus)===null||o===void 0||o.call(s))},getFieldInstance:i=>{const o=DMe(i);return n.current[o]}}),[e,t]);return[r]}var qve={},a7r=_e.default;Object.defineProperty(qve,"__esModule",{value:!0});qve.default=u7r;var l7r=a7r(d),c7r=Lo;function u7r(e){let{name:t}=e;(0,c7r.devUseWarning)("Form"),l7r.useEffect(()=>{if(t)return()=>{}},[t])}(function(e){"use client";var t=pe.default,n=_e.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"List",{enumerable:!0,get:function(){return o.List}}),e.default=void 0,Object.defineProperty(e,"useForm",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"useWatch",{enumerable:!0,get:function(){return o.useWatch}});var r=n(d),i=t(St),o=n(nP),s=Bt,a=n(Co),l=t(Xr),c=t(io),u=t(z0),f=Ir,h=t(Wve);t(qve);var g=t($g),p=t(IM),m=function(y,b){var S={};for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&b.indexOf(w)<0&&(S[w]=y[w]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,w=Object.getOwnPropertySymbols(y);x<w.length;x++)b.indexOf(w[x])<0&&Object.prototype.propertyIsEnumerable.call(y,w[x])&&(S[w[x]]=y[w[x]]);return S};const v=(y,b)=>{const S=r.useContext(a.default),{getPrefixCls:w,direction:x,form:E}=r.useContext(s.ConfigContext),{prefixCls:R,className:O,rootClassName:T,size:M,disabled:_=S,form:F,colon:D,labelAlign:k,labelWrap:L,labelCol:I,wrapperCol:A,hideRequiredMark:N,layout:B="horizontal",scrollToFirstError:z,requiredMark:j,onFinishFailed:W,name:G,style:K,feedbackIcons:q,variant:X}=y,Q=m(y,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),te=(0,c.default)(M),ne=r.useContext(p.default),Z=r.useMemo(()=>j!==void 0?j:N?!1:E&&E.requiredMark!==void 0?E.requiredMark:!0,[N,j,E]),ee=D??(E==null?void 0:E.colon),J=w("form",R),oe=(0,l.default)(J),[le,ge,he]=(0,g.default)(J,oe),ye=(0,i.default)(J,`${J}-${B}`,{[`${J}-hide-required-mark`]:Z===!1,[`${J}-rtl`]:x==="rtl",[`${J}-${te}`]:te},he,oe,ge,E==null?void 0:E.className,O,T),[ue]=(0,h.default)(F),{__INTERNAL__:ve}=ue;ve.name=G;const de=r.useMemo(()=>({name:G,labelAlign:k,labelCol:I,labelWrap:L,wrapperCol:A,vertical:B==="vertical",colon:ee,requiredMark:Z,itemRef:ve.itemRef,form:ue,feedbackIcons:q}),[G,k,I,A,B,ee,Z,ue,q]),xe=r.useRef(null);r.useImperativeHandle(b,()=>{var Be;return Object.assign(Object.assign({},ue),{nativeElement:(Be=xe.current)===null||Be===void 0?void 0:Be.nativeElement})});const Ee=(Be,Ge)=>{if(Be){let Ue={block:"nearest"};typeof Be=="object"&&(Ue=Object.assign(Object.assign({},Ue),Be)),ue.scrollToField(Ge,Ue),Ue.focus&&ue.focusField(Ge)}},De=Be=>{if(W==null||W(Be),Be.errorFields.length){const Ge=Be.errorFields[0].name;if(z!==void 0){Ee(z,Ge);return}E&&E.scrollToFirstError!==void 0&&Ee(E.scrollToFirstError,Ge)}};return le(r.createElement(f.VariantContext.Provider,{value:X},r.createElement(a.DisabledContextProvider,{disabled:_},r.createElement(u.default.Provider,{value:te},r.createElement(f.FormProvider,{validateMessages:ne},r.createElement(f.FormContext.Provider,{value:de},r.createElement(o.default,Object.assign({id:G},Q,{name:G,onFinishFailed:De,form:ue,ref:xe,style:Object.assign(Object.assign({},E==null?void 0:E.style),K),className:ye}))))))))},C=r.forwardRef(v);e.default=C})(yst);var hK={},Kve={},d7r=pe.default;Object.defineProperty(Kve,"__esModule",{value:!0});Kve.default=h7r;var f7r=d7r(qs);function h7r(e){if(typeof e=="function")return e;const t=(0,f7r.default)(e);return t.length<=1?t[0]:t}var gK={},g7r=_e.default;Object.defineProperty(gK,"__esModule",{value:!0});gK.default=void 0;var p7r=g7r(d),Sst=Ir;const wst=()=>{const{status:e,errors:t=[],warnings:n=[]}=p7r.useContext(Sst.FormItemInputContext);return{status:e,errors:t,warnings:n}};wst.Context=Sst.FormItemInputContext;gK.default=wst;var Yve={},m7r=pe.default,v7r=_e.default;Object.defineProperty(Yve,"__esModule",{value:!0});Yve.default=C7r;var bR=v7r(d),FMe=m7r(xu);function C7r(e){const[t,n]=bR.useState(e),r=bR.useRef(null),i=bR.useRef([]),o=bR.useRef(!1);bR.useEffect(()=>(o.current=!1,()=>{o.current=!0,FMe.default.cancel(r.current),r.current=null}),[]);function s(a){o.current||(r.current===null&&(i.current=[],r.current=(0,FMe.default)(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(a))}return[t,s]}var Xve={},y7r=_e.default;Object.defineProperty(Xve,"__esModule",{value:!0});Xve.default=S7r;var NMe=y7r(d),kMe=Vi,b7r=Ir;function S7r(){const{itemRef:e}=NMe.useContext(b7r.FormContext),t=NMe.useRef({});function n(r,i){const o=i&&typeof i=="object"&&(0,kMe.getNodeRef)(i),s=r.join("_");return(t.current.name!==s||t.current.originRef!==o)&&(t.current.name=s,t.current.originRef=o,t.current.ref=(0,kMe.composeRef)(e(r),o)),t.current.ref}return n}var Qve={},pK={};const xst=_r(qOt);var mK={};Object.defineProperty(mK,"__esModule",{value:!0});mK.default=void 0;var w7r=$g,x7r=Zt;const E7r=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};mK.default=(0,x7r.genSubStyleComponent)(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=(0,w7r.prepareToken)(e,n);return[E7r(r)]});var QP=pe.default,R7r=_e.default;Object.defineProperty(pK,"__esModule",{value:!0});pK.default=void 0;var Ga=R7r(d),$7r=QP(St),Are=xst,O7r=QP(Sd),T7r=QP(A9),Dre=Ir,I7r=QP(YP),M7r=QP(mK),P7r=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 _7r=24,A7r=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:o,errors:s,warnings:a,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:h,onErrorVisibleChanged:g,label:p}=e,m=`${t}-item`,v=Ga.useContext(Dre.FormContext),C=Ga.useMemo(()=>{let D=Object.assign({},i||v.wrapperCol||{});return p===null&&!r&&!i&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(L=>{const I=L?[L]:[],A=(0,Are.get)(v.labelCol,I),N=typeof A=="object"?A:{},B=(0,Are.get)(D,I),z=typeof B=="object"?B:{};"span"in N&&!("offset"in z)&&N.span<_7r&&(D=(0,Are.set)(D,[].concat(I,["offset"]),N.span))}),D},[i,v]),y=(0,$7r.default)(`${m}-control`,C.className),b=Ga.useMemo(()=>P7r(v,["labelCol","wrapperCol"]),[v]),S=Ga.useRef(null),[w,x]=Ga.useState(0);(0,O7r.default)(()=>{c&&S.current?x(S.current.clientHeight):x(0)},[c]);const E=Ga.createElement("div",{className:`${m}-control-input`},Ga.createElement("div",{className:`${m}-control-input-content`},o)),R=Ga.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=h!==null||s.length||a.length?Ga.createElement(Dre.FormItemPrefixContext.Provider,{value:R},Ga.createElement(I7r.default,{fieldId:f,errors:s,warnings:a,help:u,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:g})):null,T={};f&&(T.id=`${f}_extra`);const M=c?Ga.createElement("div",Object.assign({},T,{className:`${m}-extra`,ref:S}),c):null,_=O||M?Ga.createElement("div",{className:`${m}-additional`,style:h?{minHeight:h+w}:{}},O,M):null,F=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:E,errorList:O,extra:M}):Ga.createElement(Ga.Fragment,null,E,_);return Ga.createElement(Dre.FormContext.Provider,{value:b},Ga.createElement(T7r.default,Object.assign({},C,{className:y}),F),Ga.createElement(M7r.default,{prefixCls:t}))};pK.default=A7r;var vK={},Due={exports:{}},CK={},Zve={};Object.defineProperty(Zve,"__esModule",{value:!0});var D7r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};Zve.default=D7r;var L7r=_e.default,Jve=pe.default;Object.defineProperty(CK,"__esModule",{value:!0});CK.default=void 0;var F7r=Jve(lr),Est=L7r(d),N7r=Jve(Zve),k7r=Jve(cr),z7r=function(t,n){return Est.createElement(k7r.default,(0,F7r.default)({},t,{ref:n,icon:N7r.default}))},B7r=Est.forwardRef(z7r);CK.default=B7r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(CK);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Due,Due.exports);var H7r=Due.exports,ZP=pe.default,j7r=_e.default;Object.defineProperty(vK,"__esModule",{value:!0});vK.default=void 0;var of=j7r(d),V7r=ZP(H7r),zMe=ZP(St),G7r=ZP(A9),W7r=Os,U7r=ZP(Ec),q7r=ZP(gl),K7r=Ir,Y7r=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 X7r(e){return e?typeof e=="object"&&!of.isValidElement(e)?e:{title:e}:null}const Q7r=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:s,required:a,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[h]=(0,W7r.useLocale)("Form"),{labelAlign:g,labelCol:p,labelWrap:m,colon:v}=of.useContext(K7r.FormContext);if(!n)return null;const C=i||p||{},y=o||g,b=`${t}-item-label`,S=(0,zMe.default)(b,y==="left"&&`${b}-left`,C.className,{[`${b}-wrap`]:!!m});let w=n;const x=s===!0||v!==!1&&s!==!1;x&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const R=X7r(c);if(R){const{icon:_=of.createElement(V7r.default,null)}=R,F=Y7r(R,["icon"]),D=of.createElement(q7r.default,Object.assign({},F),of.cloneElement(_,{className:`${t}-item-tooltip`,title:"",onClick:k=>{k.preventDefault()},tabIndex:null}));w=of.createElement(of.Fragment,null,w,D)}const O=l==="optional",T=typeof l=="function";T?w=l(w,{required:!!a}):O&&!a&&(w=of.createElement(of.Fragment,null,w,of.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((f=U7r.default.Form)===null||f===void 0?void 0:f.optional))));const M=(0,zMe.default)({[`${t}-item-required`]:a,[`${t}-item-required-mark-optional`]:O||T,[`${t}-item-no-colon`]:!x});return of.createElement(G7r.default,Object.assign({},C,{className:S}),of.createElement("label",{htmlFor:r,className:M,title:typeof n=="string"?n:""},w))};vK.default=Q7r;var yK={},JP=pe.default,Z7r=_e.default;Object.defineProperty(yK,"__esModule",{value:!0});yK.default=sxr;var I5=Z7r(d),J7r=JP(Jy),exr=JP(av),txr=JP($3),nxr=JP(Jg),rxr=JP(St),Lre=Ir,ixr=Y3;const oxr={success:J7r.default,warning:txr.default,error:exr.default,validating:nxr.default};function sxr(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:s,meta:a,noStyle:l}=e;const c=`${s}-item`,{feedbackIcons:u}=I5.useContext(Lre.FormContext),f=(0,ixr.getStatus)(n,r,a,null,!!i,o),{isFormItemInput:h,status:g,hasFeedback:p,feedbackIcon:m}=I5.useContext(Lre.FormItemInputContext),v=I5.useMemo(()=>{var C;let y;if(i){const S=i!==!0&&i.icons||u,w=f&&((C=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||C===void 0?void 0:C[f]),x=f&&oxr[f];y=w!==!1&&x?I5.createElement("span",{className:(0,rxr.default)(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},w||I5.createElement(x,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:y,isFormItemInput:!0};return l&&(b.status=(f??g)||"",b.isFormItemInput=h,b.hasFeedback=!!(i??p),b.feedbackIcon=i!==void 0?b.feedbackIcon:m),b},[f,i,l,h,g]);return I5.createElement(Lre.FormItemInputContext.Provider,{value:v},t)}var X3=pe.default,axr=_e.default;Object.defineProperty(Qve,"__esModule",{value:!0});Qve.default=Cxr;var Rp=axr(d),lxr=X3(St),cxr=X3(QM),uxr=X3(Sd),dxr=X3(mi),fxr=gb,BMe=Ir,hxr=X3(pK),gxr=X3(vK),HMe=X3(dK),pxr=Y3,mxr=X3(yK),vxr=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 Cxr(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:o,errors:s,warnings:a,validateStatus:l,meta:c,hasFeedback:u,hidden:f,children:h,fieldId:g,required:p,isRequired:m,onSubItemMetaChange:v,layout:C}=e,y=vxr(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),b=`${t}-item`,{requiredMark:S,vertical:w}=Rp.useContext(BMe.FormContext),x=w||C==="vertical",E=Rp.useRef(null),R=(0,HMe.default)(s),O=(0,HMe.default)(a),T=o!=null,M=!!(T||s.length||a.length),_=!!E.current&&(0,cxr.default)(E.current),[F,D]=Rp.useState(null);(0,uxr.default)(()=>{if(M&&E.current){const N=getComputedStyle(E.current);D(parseInt(N.marginBottom,10))}},[M,_]);const k=N=>{N||D(null)},I=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const B=N?R:c.errors,z=N?O:c.warnings;return(0,pxr.getStatus)(B,z,c,"",!!u,l)}(),A=(0,lxr.default)(b,n,r,{[`${b}-with-help`]:T||R.length||O.length,[`${b}-has-feedback`]:I&&u,[`${b}-has-success`]:I==="success",[`${b}-has-warning`]:I==="warning",[`${b}-has-error`]:I==="error",[`${b}-is-validating`]:I==="validating",[`${b}-hidden`]:f,[`${b}-${C}`]:C});return Rp.createElement("div",{className:A,style:i,ref:E},Rp.createElement(fxr.Row,Object.assign({className:`${b}-row`},(0,dxr.default)(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),Rp.createElement(gxr.default,Object.assign({htmlFor:g},e,{requiredMark:S,required:p??m,prefixCls:t,vertical:x})),Rp.createElement(hxr.default,Object.assign({},e,c,{errors:R,warnings:O,prefixCls:t,status:I,help:o,marginBottom:F,onErrorVisibleChanged:k}),Rp.createElement(BMe.NoStyleItemContext.Provider,{value:v},Rp.createElement(mxr.default,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:I},h)))),!!F&&Rp.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-F}}))}var yxr=_e.default,rp=pe.default;Object.defineProperty(hK,"__esModule",{value:!0});hK.default=void 0;var A1=rp(zr),Hu=yxr(d),bxr=rp(St),Fre=nP,Sxr=rp(XM),wxr=Vi,xxr=Xi,Exr=Lo,Rxr=Bt,$xr=rp(Xr),jMe=Ir,Oxr=rp(Kve),Txr=rp(gK),Ixr=rp(Yve),Mxr=rp(Xve),Pxr=rp($g),PL=Y3,_xr=rp(Qve),Axr=rp(yK);const Dxr="__SPLIT__";function Lxr(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],s=t[i];return o===s||typeof o=="function"||typeof s=="function"})}const Fxr=Hu.memo(e=>{let{children:t}=e;return t},(e,t)=>Lxr(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function VMe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Nxr(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:s,rules:a,children:l,required:c,label:u,messageVariables:f,trigger:h="onChange",validateTrigger:g,hidden:p,help:m,layout:v}=e,{getPrefixCls:C}=Hu.useContext(Rxr.ConfigContext),{name:y}=Hu.useContext(jMe.FormContext),b=(0,Oxr.default)(l),S=typeof b=="function",w=Hu.useContext(jMe.NoStyleItemContext),{validateTrigger:x}=Hu.useContext(Fre.FieldContext),E=g!==void 0?g:x,R=t!=null,O=C("form",o),T=(0,$xr.default)(O),[M,_,F]=(0,Pxr.default)(O,T);(0,Exr.devUseWarning)("Form.Item");const D=Hu.useContext(Fre.ListContext),k=Hu.useRef(null),[L,I]=(0,Ixr.default)({}),[A,N]=(0,Sxr.default)(()=>VMe()),B=X=>{const Q=D==null?void 0:D.getKey(X.name);if(N(X.destroy?VMe():X,!0),n&&m!==!1&&w){let te=X.name;if(X.destroy)te=k.current||te;else if(Q!==void 0){const[ne,Z]=Q;te=[ne].concat((0,A1.default)(Z)),k.current=te}w(X,te)}},z=(X,Q)=>{I(te=>{const ne=Object.assign({},te),ee=[].concat((0,A1.default)(X.name.slice(0,-1)),(0,A1.default)(Q)).join(Dxr);return X.destroy?delete ne[ee]:ne[ee]=X,ne})},[j,W]=Hu.useMemo(()=>{const X=(0,A1.default)(A.errors),Q=(0,A1.default)(A.warnings);return Object.values(L).forEach(te=>{X.push.apply(X,(0,A1.default)(te.errors||[])),Q.push.apply(Q,(0,A1.default)(te.warnings||[]))}),[X,Q]},[L,A.errors,A.warnings]),G=(0,Mxr.default)();function K(X,Q,te){return n&&!p?Hu.createElement(Axr.default,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:A,errors:j,warnings:W,noStyle:!0},X):Hu.createElement(_xr.default,Object.assign({key:"row"},e,{className:(0,bxr.default)(r,F,T,_),prefixCls:O,fieldId:Q,isRequired:te,errors:j,warnings:W,meta:A,onSubItemMetaChange:z,layout:v}),X)}if(!R&&!S&&!i)return M(K(b));let q={};return typeof u=="string"?q.label=u:t&&(q.label=String(t)),f&&(q=Object.assign(Object.assign({},q),f)),M(Hu.createElement(Fre.Field,Object.assign({},e,{messageVariables:q,trigger:h,validateTrigger:E,onMetaChange:B}),(X,Q,te)=>{const ne=(0,PL.toArray)(t).length&&Q?Q.name:[],Z=(0,PL.getFieldId)(ne,y),ee=c!==void 0?c:!!(a!=null&&a.some(le=>{if(le&&typeof le=="object"&&le.required&&!le.warningOnly)return!0;if(typeof le=="function"){const ge=le(te);return(ge==null?void 0:ge.required)&&!(ge!=null&&ge.warningOnly)}return!1})),J=Object.assign({},X);let oe=null;if(Array.isArray(b)&&R)oe=b;else if(!(S&&(!(s||i)||R))){if(!(i&&!S&&!R))if(Hu.isValidElement(b)){const le=Object.assign(Object.assign({},b.props),J);if(le.id||(le.id=Z),m||j.length>0||W.length>0||e.extra){const ye=[];(m||j.length>0)&&ye.push(`${Z}_help`),e.extra&&ye.push(`${Z}_extra`),le["aria-describedby"]=ye.join(" ")}j.length>0&&(le["aria-invalid"]="true"),ee&&(le["aria-required"]="true"),(0,wxr.supportRef)(b)&&(le.ref=G(ne,b)),new Set([].concat((0,A1.default)((0,PL.toArray)(h)),(0,A1.default)((0,PL.toArray)(E)))).forEach(ye=>{le[ye]=function(){for(var ue,ve,de,xe,Ee,De=arguments.length,Be=new Array(De),Ge=0;Ge<De;Ge++)Be[Ge]=arguments[Ge];(de=J[ye])===null||de===void 0||(ue=de).call.apply(ue,[J].concat(Be)),(Ee=(xe=b.props)[ye])===null||Ee===void 0||(ve=Ee).call.apply(ve,[xe].concat(Be))}});const he=[le["aria-required"],le["aria-invalid"],le["aria-describedby"]];oe=Hu.createElement(Fxr,{control:J,update:b,childProps:he},(0,xxr.cloneElement)(b,le))}else S&&(s||i)&&!R?oe=b(te):oe=b}return K(oe,Z,ee)}))}const Rst=Nxr;Rst.useStatus=Txr.default;hK.default=Rst;var bK={},kxr=_e.default;Object.defineProperty(bK,"__esModule",{value:!0});bK.default=void 0;var _L=kxr(d),zxr=nP,Bxr=Bt,Hxr=Ir,jxr=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 Vxr=e=>{var{prefixCls:t,children:n}=e,r=jxr(e,["prefixCls","children"]);const{getPrefixCls:i}=_L.useContext(Bxr.ConfigContext),o=i("form",t),s=_L.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return _L.createElement(zxr.List,Object.assign({},r),(a,l,c)=>_L.createElement(Hxr.FormItemPrefixContext.Provider,{value:s},n(a.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};bK.default=Vxr;var e2e={},Gxr=_e.default;Object.defineProperty(e2e,"__esModule",{value:!0});e2e.default=qxr;var Wxr=Gxr(d),Uxr=Ir;function qxr(){const{form:e}=Wxr.useContext(Uxr.FormContext);return e}var Kxr=_e.default,e_=pe.default;Object.defineProperty(uK,"__esModule",{value:!0});uK.default=void 0;e_(Lo);var Yxr=Ir,Xxr=e_(YP),t2e=Kxr(yst),Qxr=e_(hK),Zxr=e_(bK),Jxr=e_(e2e);const vv=t2e.default;vv.Item=Qxr.default;vv.List=Zxr.default;vv.ErrorList=Xxr.default;vv.useForm=t2e.useForm;vv.useFormInstance=Jxr.default;vv.useWatch=t2e.useWatch;vv.Provider=Yxr.FormProvider;vv.create=()=>{};uK.default=vv;var SK={};const $st=_r(FWt);var G7={},Lue={exports:{}},wK={},n2e={};Object.defineProperty(n2e,"__esModule",{value:!0});var e9r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};n2e.default=e9r;var t9r=_e.default,r2e=pe.default;Object.defineProperty(wK,"__esModule",{value:!0});wK.default=void 0;var n9r=r2e(lr),Ost=t9r(d),r9r=r2e(n2e),i9r=r2e(cr),o9r=function(t,n){return Ost.createElement(i9r.default,(0,n9r.default)({},t,{ref:n,icon:r9r.default}))},s9r=Ost.forwardRef(o9r);wK.default=s9r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(wK);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Lue,Lue.exports);var a9r=Lue.exports,Fue={exports:{}},xK={},i2e={};Object.defineProperty(i2e,"__esModule",{value:!0});var l9r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};i2e.default=l9r;var c9r=_e.default,o2e=pe.default;Object.defineProperty(xK,"__esModule",{value:!0});xK.default=void 0;var u9r=o2e(lr),Tst=c9r(d),d9r=o2e(i2e),f9r=o2e(cr),h9r=function(t,n){return Tst.createElement(f9r.default,(0,u9r.default)({},t,{ref:n,icon:d9r.default}))},g9r=Tst.forwardRef(h9r);xK.default=g9r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(xK);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Fue,Fue.exports);var p9r=Fue.exports,Nue={exports:{}},EK={},s2e={};Object.defineProperty(s2e,"__esModule",{value:!0});var m9r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};s2e.default=m9r;var v9r=_e.default,a2e=pe.default;Object.defineProperty(EK,"__esModule",{value:!0});EK.default=void 0;var C9r=a2e(lr),Ist=v9r(d),y9r=a2e(s2e),b9r=a2e(cr),S9r=function(t,n){return Ist.createElement(b9r.default,(0,C9r.default)({},t,{ref:n,icon:y9r.default}))},w9r=Ist.forwardRef(S9r);EK.default=w9r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(EK);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Nue,Nue.exports);var x9r=Nue.exports,kue={exports:{}},RK={},l2e={};Object.defineProperty(l2e,"__esModule",{value:!0});var E9r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};l2e.default=E9r;var R9r=_e.default,c2e=pe.default;Object.defineProperty(RK,"__esModule",{value:!0});RK.default=void 0;var $9r=c2e(lr),Mst=R9r(d),O9r=c2e(l2e),T9r=c2e(cr),I9r=function(t,n){return Mst.createElement(T9r.default,(0,$9r.default)({},t,{ref:n,icon:O9r.default}))},M9r=Mst.forwardRef(I9r);RK.default=M9r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(RK);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(kue,kue.exports);var P9r=kue.exports,zue={exports:{}},$K={},u2e={};Object.defineProperty(u2e,"__esModule",{value:!0});var _9r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};u2e.default=_9r;var A9r=_e.default,d2e=pe.default;Object.defineProperty($K,"__esModule",{value:!0});$K.default=void 0;var D9r=d2e(lr),Pst=A9r(d),L9r=d2e(u2e),F9r=d2e(cr),N9r=function(t,n){return Pst.createElement(F9r.default,(0,D9r.default)({},t,{ref:n,icon:L9r.default}))},k9r=Pst.forwardRef(N9r);$K.default=k9r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r($K);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(zue,zue.exports);var z9r=zue.exports,Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.prepareComponentToken=Ja.genPreviewSwitchStyle=Ja.genPreviewOperationsStyle=Ja.genImagePreviewStyle=Ja.genImageMaskStyle=Ja.genBoxStyle=Ja.default=void 0;var _st=Kt,uC=Us,B9r=od,H9r=gn,GMe=Rc,Nre=Zt;const qB=e=>({position:e||"absolute",inset:0});Ja.genBoxStyle=qB;const Ast=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o,colorTextLightSolid:s}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:s,background:new uC.FastColor("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},H9r.textEllipsis),{padding:`0 ${(0,_st.unit)(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}};Ja.genImageMaskStyle=Ast;const Dst=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:o,paddingLG:s,previewOperationColorDisabled:a,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,h=new uC.FastColor(n).setA(.1),g=h.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:h.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,_st.unit)(s)}`,backgroundColor:h.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:a,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}};Ja.genPreviewOperationsStyle=Dst;const Lst=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:s}=e,a=new uC.FastColor(t).setA(.1),l=a.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${s}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}};Ja.genPreviewSwitchStyle=Lst;const Fst=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},qB()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},qB()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Dst(e),Lst(e)]}]};Ja.genImagePreviewStyle=Fst;const j9r=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Ast(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},qB())}}},V9r=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,GMe.initZoomMotion)(e,"zoom"),"&":(0,GMe.initFadeMotion)(e,!0)}},Nst=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new uC.FastColor(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new uC.FastColor(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new uC.FastColor(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5});Ja.prepareComponentToken=Nst;Ja.default=(0,Nre.genStyleHooks)("Image",e=>{const t=`${e.componentCls}-preview`,n=(0,Nre.mergeToken)(e,{previewCls:t,modalMaskBg:new uC.FastColor("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[j9r(n),Fst(n),(0,B9r.genModalMaskStyle)((0,Nre.mergeToken)(n,{componentCls:t})),V9r(n)]},Nst);var hh=pe.default,G9r=_e.default;Object.defineProperty(G7,"__esModule",{value:!0});G7.icons=G7.default=void 0;var uf=G9r(d),W9r=hh(Td),U9r=hh(T9),q9r=hh(P3),K9r=hh(a9r),Y9r=hh(p9r),WMe=hh(x9r),X9r=hh(P9r),Q9r=hh(z9r),Z9r=hh(St),J9r=hh($st),eEr=ho,UMe=$s,tEr=Bt,nEr=hh(Xr),rEr=hh(Ja),iEr=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 oEr=G7.icons={rotateLeft:uf.createElement(K9r.default,null),rotateRight:uf.createElement(Y9r.default,null),zoomIn:uf.createElement(X9r.default,null),zoomOut:uf.createElement(Q9r.default,null),close:uf.createElement(W9r.default,null),left:uf.createElement(U9r.default,null),right:uf.createElement(q9r.default,null),flipX:uf.createElement(WMe.default,null),flipY:uf.createElement(WMe.default,{rotate:90})},sEr=e=>{var{previewPrefixCls:t,preview:n}=e,r=iEr(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=uf.useContext(tEr.ConfigContext),o=i("image",t),s=`${o}-preview`,a=i(),l=(0,nEr.default)(o),[c,u,f]=(0,rEr.default)(o,l),[h]=(0,eEr.useZIndex)("ImagePreview",typeof n=="object"?n.zIndex:void 0),g=uf.useMemo(()=>{var p;if(n===!1)return n;const m=typeof n=="object"?n:{},v=(0,Z9r.default)(u,f,l,(p=m.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},m),{transitionName:(0,UMe.getTransitionName)(a,"zoom",m.transitionName),maskTransitionName:(0,UMe.getTransitionName)(a,"fade",m.maskTransitionName),rootClassName:v,zIndex:h})},[n]);return c(uf.createElement(J9r.default.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:oEr},r)))};G7.default=sEr;var U9=pe.default,kst=_e.default;Object.defineProperty(SK,"__esModule",{value:!0});SK.default=void 0;var SR=kst(d),aEr=U9(Ove),kre=U9(St),lEr=U9($st),cEr=ho,qMe=$s,uEr=Bt,dEr=U9(Xr),KMe=U9(Ec),zst=kst(G7),fEr=U9(Ja),YMe=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 Bst=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:s}=e,a=YMe(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=KMe.default,getPopupContainer:u,image:f}=SR.useContext(uEr.ConfigContext),h=l("image",n),g=l(),p=c.Image||KMe.default.Image,m=(0,dEr.default)(h),[v,C,y]=(0,fEr.default)(h,m),b=(0,kre.default)(o,C,y,m),S=(0,kre.default)(i,C,f==null?void 0:f.className),[w]=(0,cEr.useZIndex)("ImagePreview",typeof r=="object"?r.zIndex:void 0),x=SR.useMemo(()=>{var R;if(r===!1)return r;const O=typeof r=="object"?r:{},{getContainer:T,closeIcon:M,rootClassName:_}=O,F=YMe(O,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:SR.createElement("div",{className:`${h}-mask-info`},SR.createElement(aEr.default,null),p==null?void 0:p.preview),icons:zst.icons},F),{rootClassName:(0,kre.default)(b,_),getContainer:T??u,transitionName:(0,qMe.getTransitionName)(g,"zoom",O.transitionName),maskTransitionName:(0,qMe.getTransitionName)(g,"fade",O.maskTransitionName),zIndex:w,closeIcon:M??((R=f==null?void 0:f.preview)===null||R===void 0?void 0:R.closeIcon)})},[r,p,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),E=Object.assign(Object.assign({},f==null?void 0:f.style),s);return v(SR.createElement(lEr.default,Object.assign({prefixCls:h,preview:x,rootClassName:b,className:S,style:E},a)))};Bst.PreviewGroup=zst.default;SK.default=Bst;var OK={},nm={},f2e={},Hst=pe.default;Object.defineProperty(f2e,"__esModule",{value:!0});f2e.default=pEr;var hEr=Hst(qs),gEr=Hst(B0);function pEr(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,hEr.default)(t).some(i=>i.type===gEr.default)}var mEr=_e.default,t_=pe.default;Object.defineProperty(nm,"__esModule",{value:!0});nm.default=nm.Header=nm.Footer=nm.Content=void 0;var vEr=t_(zr),bf=mEr(d),jst=t_(St),CEr=t_(mi),Bue=Bt,yEr=gP,bEr=t_(f2e),Vst=t_(x0),Gst=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 TK(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>bf.forwardRef((s,a)=>bf.createElement(i,Object.assign({ref:a,suffixCls:t,tagName:n},s)))}const h2e=bf.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,s=Gst(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:a}=bf.useContext(Bue.ConfigContext),l=a("layout",n),[c,u,f]=(0,Vst.default)(l),h=r?`${l}-${r}`:l;return c(bf.createElement(o,Object.assign({className:(0,jst.default)(n||h,i,u,f),ref:t},s)))}),SEr=bf.forwardRef((e,t)=>{const{direction:n}=bf.useContext(Bue.ConfigContext),[r,i]=bf.useState([]),{prefixCls:o,className:s,rootClassName:a,children:l,hasSider:c,tagName:u,style:f}=e,h=Gst(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=(0,CEr.default)(h,["suffixCls"]),{getPrefixCls:p,layout:m}=bf.useContext(Bue.ConfigContext),v=p("layout",o),C=(0,bEr.default)(r,l,c),[y,b,S]=(0,Vst.default)(v),w=(0,jst.default)(v,{[`${v}-has-sider`]:C,[`${v}-rtl`]:n==="rtl"},m==null?void 0:m.className,s,a,b,S),x=bf.useMemo(()=>({siderHook:{addSider:E=>{i(R=>[].concat((0,vEr.default)(R),[E]))},removeSider:E=>{i(R=>R.filter(O=>O!==E))}}}),[]);return y(bf.createElement(yEr.LayoutContext.Provider,{value:x},bf.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},m==null?void 0:m.style),f)},g),l)))}),wEr=TK({tagName:"div",displayName:"Layout"})(SEr);nm.Header=TK({suffixCls:"header",tagName:"header",displayName:"Header"})(h2e);nm.Footer=TK({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(h2e);nm.Content=TK({suffixCls:"content",tagName:"main",displayName:"Content"})(h2e);nm.default=wEr;var Wst=_e.default;Object.defineProperty(OK,"__esModule",{value:!0});OK.default=void 0;var IK=Wst(nm),Ust=Wst(B0);const q9=IK.default;q9.Header=IK.Header;q9.Footer=IK.Footer;q9.Content=IK.Content;q9.Sider=Ust.default;q9._InternalSiderContext=Ust.SiderContext;OK.default=q9;var MK={},K9={};Object.defineProperty(K9,"__esModule",{value:!0});K9.default=void 0;const xEr=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}return e};K9.default=xEr;var yb={},PK={},Hue={exports:{}},_K={},g2e={};Object.defineProperty(g2e,"__esModule",{value:!0});var EEr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};g2e.default=EEr;var REr=_e.default,p2e=pe.default;Object.defineProperty(_K,"__esModule",{value:!0});_K.default=void 0;var $Er=p2e(lr),qst=REr(d),OEr=p2e(g2e),TEr=p2e(cr),IEr=function(t,n){return qst.createElement(TEr.default,(0,$Er.default)({},t,{ref:n,icon:OEr.default}))},MEr=qst.forwardRef(IEr);_K.default=MEr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(_K);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Hue,Hue.exports);var PEr=Hue.exports,jue={exports:{}},AK={},m2e={};Object.defineProperty(m2e,"__esModule",{value:!0});var _Er={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};m2e.default=_Er;var AEr=_e.default,v2e=pe.default;Object.defineProperty(AK,"__esModule",{value:!0});AK.default=void 0;var DEr=v2e(lr),Kst=AEr(d),LEr=v2e(m2e),FEr=v2e(cr),NEr=function(t,n){return Kst.createElement(FEr.default,(0,DEr.default)({},t,{ref:n,icon:LEr.default}))},kEr=Kst.forwardRef(NEr);AK.default=kEr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(AK);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(jue,jue.exports);var zEr=jue.exports;const BEr=_r(mUt);var E0={};Object.defineProperty(E0,"__esModule",{value:!0});E0.prepareToken=E0.prepareComponentToken=E0.default=void 0;var ea=Kt,DK=H3,XMe=cs,YN=gn,Yst=Zt;const HEr=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},jEr=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,ea.unit)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,ea.unit)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,ea.unit)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
||
&${t}-mini ${t}-prev ${t}-item-link,
|
||
&${t}-mini ${t}-next ${t}-item-link
|
||
`]:{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{[`
|
||
&${t}-simple ${t}-prev,
|
||
&${t}-simple ${t}-next
|
||
`]:{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}}},[`
|
||
${t}-prev,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{marginInlineEnd:e.marginXS},[`
|
||
${t}-prev,
|
||
${t}-next,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{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({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,DK.initComponentToken)(e));E0.prepareComponentToken=Xst;const Qst=e=>(0,Yst.mergeToken)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,DK.initInputToken)(e));E0.prepareToken=Qst;E0.default=(0,Yst.genStyleHooks)("Pagination",e=>{const t=Qst(e);return[UEr(t),qEr(t)]},Xst);var LK={};Object.defineProperty(LK,"__esModule",{value:!0});LK.default=void 0;var KEr=Kt,QMe=E0,YEr=Zt;const XEr=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,KEr.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};LK.default=(0,YEr.genSubStyleComponent)(["Pagination","bordered"],e=>{const t=(0,QMe.prepareToken)(e);return[XEr(t)]},QMe.prepareComponentToken);var C2e={};Object.defineProperty(C2e,"__esModule",{value:!0});C2e.default=ZEr;var QEr=d;function ZEr(e){return(0,QEr.useMemo)(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var _d=pe.default,JEr=_e.default;Object.defineProperty(PK,"__esModule",{value:!0});PK.default=void 0;var Uo=JEr(d),ZMe=_d(PEr),JMe=_d(zEr),ePe=_d(T9),tPe=_d(P3),nPe=_d(St),eRr=_d(BEr),tRr=_d(MM),nRr=Bt,rRr=_d(io),iRr=_d(Ym),oRr=Os,sRr=_d(N3),aRr=Zt,lRr=_d(E0),cRr=_d(LK),rPe=_d(C2e),uRr=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 dRr=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:o,style:s,size:a,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:h}=e,g=uRr(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:p}=(0,iRr.default)(c),[,m]=(0,aRr.useToken)(),{getPrefixCls:v,direction:C,pagination:y={}}=Uo.useContext(nRr.ConfigContext),b=v("pagination",n),[S,w,x]=(0,lRr.default)(b),E=(0,rRr.default)(a),R=E==="small"||!!(p&&!E&&c),[O]=(0,oRr.useLocale)("Pagination",tRr.default),T=Object.assign(Object.assign({},O),l),[M,_]=(0,rPe.default)(u),[F,D]=(0,rPe.default)(y.showSizeChanger),k=M??F,L=_??D,I=f||sRr.default,A=Uo.useMemo(()=>h?h.map(G=>Number(G)):void 0,[h]),N=G=>{var K;const{disabled:q,size:X,onSizeChange:Q,"aria-label":te,className:ne,options:Z}=G,{className:ee,onChange:J}=L||{},oe=(K=Z.find(le=>String(le.value)===String(X)))===null||K===void 0?void 0:K.value;return Uo.createElement(I,Object.assign({disabled:q,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:le=>le.parentNode,"aria-label":te,options:Z},L,{value:oe,onChange:(le,ge)=>{Q==null||Q(le),J==null||J(le,ge)},size:R?"small":"middle",className:(0,nPe.default)(ne,ee)}))},B=Uo.useMemo(()=>{const G=Uo.createElement("span",{className:`${b}-item-ellipsis`},"•••"),K=Uo.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},C==="rtl"?Uo.createElement(tPe.default,null):Uo.createElement(ePe.default,null)),q=Uo.createElement("button",{className:`${b}-item-link`,type:"button",tabIndex:-1},C==="rtl"?Uo.createElement(ePe.default,null):Uo.createElement(tPe.default,null)),X=Uo.createElement("a",{className:`${b}-item-link`},Uo.createElement("div",{className:`${b}-item-container`},C==="rtl"?Uo.createElement(JMe.default,{className:`${b}-item-link-icon`}):Uo.createElement(ZMe.default,{className:`${b}-item-link-icon`}),G)),Q=Uo.createElement("a",{className:`${b}-item-link`},Uo.createElement("div",{className:`${b}-item-container`},C==="rtl"?Uo.createElement(ZMe.default,{className:`${b}-item-link-icon`}):Uo.createElement(JMe.default,{className:`${b}-item-link-icon`}),G));return{prevIcon:K,nextIcon:q,jumpPrevIcon:X,jumpNextIcon:Q}},[C,b]),z=v("select",r),j=(0,nPe.default)({[`${b}-${t}`]:!!t,[`${b}-mini`]:R,[`${b}-rtl`]:C==="rtl",[`${b}-bordered`]:m.wireframe},y==null?void 0:y.className,i,o,w,x),W=Object.assign(Object.assign({},y==null?void 0:y.style),s);return S(Uo.createElement(Uo.Fragment,null,m.wireframe&&Uo.createElement(cRr.default,{prefixCls:b}),Uo.createElement(eRr.default,Object.assign({},B,g,{style:W,prefixCls:b,selectPrefixCls:z,className:j,locale:T,pageSizeOptions:A,showSizeChanger:k,sizeChangerRender:N}))))};PK.default=dRr;var fRr=pe.default;Object.defineProperty(yb,"__esModule",{value:!0});yb.default=void 0;var hRr=fRr(PK);yb.default=hRr.default;var Q3={};const gRr=_r(bHt);var y2e={},b2e={},FK={},Zst=pe.default,pRr=_e.default;Object.defineProperty(FK,"__esModule",{value:!0});FK.default=void 0;var eS=pRr(d),Jst=Zst(St),mRr=Zst(Sd);const KB=100,eat=KB/5,tat=KB/2-eat/2,zre=tat*2*Math.PI,iPe=50,oPe=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return eS.createElement("circle",{className:(0,Jst.default)(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:tat,cx:iPe,cy:iPe,strokeWidth:eat,style:n})},vRr=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,o=`${i}-hidden`,[s,a]=eS.useState(!1);(0,mRr.default)(()=>{t!==0&&a(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!s)return null;const c={strokeDashoffset:`${zre/4}`,strokeDasharray:`${zre*l/100} ${zre*(100-l)/100}`};return eS.createElement("span",{className:(0,Jst.default)(i,`${r}-progress`,l<=0&&o)},eS.createElement("svg",{viewBox:`0 0 ${KB} ${KB}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},eS.createElement(oPe,{dotClassName:r,hasCircleCls:!0}),eS.createElement(oPe,{dotClassName:r,style:c})))};FK.default=vRr;var nat=pe.default,CRr=_e.default;Object.defineProperty(b2e,"__esModule",{value:!0});b2e.default=bRr;var M5=CRr(d),sPe=nat(St),yRr=nat(FK);function bRr(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return M5.createElement(M5.Fragment,null,M5.createElement("span",{className:(0,sPe.default)(i,n>0&&o)},M5.createElement("span",{className:(0,sPe.default)(r,`${t}-dot-spin`)},[1,2,3,4].map(s=>M5.createElement("i",{className:`${t}-dot-item`,key:s})))),M5.createElement(yRr.default,{prefixCls:t,percent:n}))}var rat=pe.default,SRr=_e.default;Object.defineProperty(y2e,"__esModule",{value:!0});y2e.default=RRr;var aPe=SRr(d),wRr=rat(St),xRr=Xi,ERr=rat(b2e);function RRr(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&aPe.isValidElement(n)?(0,xRr.cloneElement)(n,{className:(0,wRr.default)(n.props.className,i),percent:r}):aPe.createElement(ERr.default,{prefixCls:t,percent:r})}var W7={};Object.defineProperty(W7,"__esModule",{value:!0});W7.prepareComponentToken=W7.default=void 0;var iat=Kt,$Rr=gn,lPe=Zt;const ORr=new iat.Keyframes("antSpinMove",{to:{opacity:1}}),TRr=new iat.Keyframes("antRotate",{to:{transform:"rotate(405deg)"}}),IRr=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},(0,$Rr.resetComponent)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:ORr,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:TRr,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},oat=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}};W7.prepareComponentToken=oat;W7.default=(0,lPe.genStyleHooks)("Spin",e=>{const t=(0,lPe.mergeToken)(e,{spinDotDefault:e.colorTextDescription});return[IRr(t)]},oat);var S2e={},MRr=_e.default;Object.defineProperty(S2e,"__esModule",{value:!0});S2e.default=_Rr;var Bre=MRr(d);const PRr=200,cPe=[[30,.05],[70,.03],[96,.01]];function _Rr(e,t){const[n,r]=Bre.useState(0),i=Bre.useRef(null),o=t==="auto";return Bre.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(s=>{const a=100-s;for(let l=0;l<cPe.length;l+=1){const[c,u]=cPe[l];if(s<=c)return s+a*u}return s})},PRr)),()=>{clearInterval(i.current)}),[o,e]),o?n:t}var NK=pe.default,ARr=_e.default;Object.defineProperty(Q3,"__esModule",{value:!0});Q3.default=void 0;var Oh=ARr(d),AL=NK(St),DRr=gRr,LRr=Bt,FRr=NK(y2e),NRr=NK(W7),kRr=NK(S2e),zRr=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 sat;function BRr(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const aat=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:o,rootClassName:s,size:a="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:h=!1,indicator:g,percent:p}=e,m=zRr(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:C,spin:y}=Oh.useContext(LRr.ConfigContext),b=v("spin",n),[S,w,x]=(0,NRr.default)(b),[E,R]=Oh.useState(()=>r&&!BRr(r,i)),O=(0,kRr.default)(E,p);Oh.useEffect(()=>{if(r){const L=(0,DRr.debounce)(i,()=>{R(!0)});return L(),()=>{var I;(I=L==null?void 0:L.cancel)===null||I===void 0||I.call(L)}}R(!1)},[i,r]);const T=Oh.useMemo(()=>typeof f<"u"&&!h,[f,h]),M=(0,AL.default)(b,y==null?void 0:y.className,{[`${b}-sm`]:a==="small",[`${b}-lg`]:a==="large",[`${b}-spinning`]:E,[`${b}-show-text`]:!!l,[`${b}-rtl`]:C==="rtl"},o,!h&&s,w,x),_=(0,AL.default)(`${b}-container`,{[`${b}-blur`]:E}),F=(t=g??(y==null?void 0:y.indicator))!==null&&t!==void 0?t:sat,D=Object.assign(Object.assign({},y==null?void 0:y.style),u),k=Oh.createElement("div",Object.assign({},m,{style:D,className:M,"aria-live":"polite","aria-busy":E}),Oh.createElement(FRr.default,{prefixCls:b,indicator:F,percent:O}),l&&(T||h)?Oh.createElement("div",{className:`${b}-text`},l):null);return S(T?Oh.createElement("div",Object.assign({},m,{className:(0,AL.default)(`${b}-nested-loading`,c,w,x)}),E&&Oh.createElement("div",{key:"loading"},k),Oh.createElement("div",{className:_,key:"container"},f)):h?Oh.createElement("div",{className:(0,AL.default)(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:E},s,w,x)},k):k)};aat.setDefaultIndicator=e=>{sat=e};Q3.default=aat;var ay={},HRr=pe.default;Object.defineProperty(ay,"__esModule",{value:!0});ay.ListContext=ay.ListConsumer=void 0;var jRr=HRr(d);const VRr=ay.ListContext=jRr.default.createContext({});ay.ListConsumer=VRr.Consumer;var U7={},GRr=pe.default,WRr=_e.default;Object.defineProperty(U7,"__esModule",{value:!0});U7.default=U7.Meta=void 0;var xa=WRr(d),b$=GRr(St),URr=Xi,lat=Bt,qRr=gb,KRr=ay,cat=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 uat=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,s=cat(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:a}=(0,xa.useContext)(lat.ConfigContext),l=a("list",t),c=(0,b$.default)(`${l}-item-meta`,n),u=xa.default.createElement("div",{className:`${l}-item-meta-content`},i&&xa.default.createElement("h4",{className:`${l}-item-meta-title`},i),o&&xa.default.createElement("div",{className:`${l}-item-meta-description`},o));return xa.default.createElement("div",Object.assign({},s,{className:c}),r&&xa.default.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||o)&&u)};U7.Meta=uat;const YRr=xa.default.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:o,styles:s,className:a,classNames:l,colStyle:c}=e,u=cat(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:h}=(0,xa.useContext)(KRr.ListContext),{getPrefixCls:g,list:p}=(0,xa.useContext)(lat.ConfigContext),m=E=>{var R,O;return(0,b$.default)((O=(R=p==null?void 0:p.item)===null||R===void 0?void 0:R.classNames)===null||O===void 0?void 0:O[E],l==null?void 0:l[E])},v=E=>{var R,O;return Object.assign(Object.assign({},(O=(R=p==null?void 0:p.item)===null||R===void 0?void 0:R.styles)===null||O===void 0?void 0:O[E]),s==null?void 0:s[E])},C=()=>{let E=!1;return xa.Children.forEach(r,R=>{typeof R=="string"&&(E=!0)}),E&&xa.Children.count(r)>1},y=()=>h==="vertical"?!!o:!C(),b=g("list",n),S=i&&i.length>0&&xa.default.createElement("ul",{className:(0,b$.default)(`${b}-item-action`,m("actions")),key:"actions",style:v("actions")},i.map((E,R)=>xa.default.createElement("li",{key:`${b}-item-action-${R}`},E,R!==i.length-1&&xa.default.createElement("em",{className:`${b}-item-action-split`})))),w=f?"div":"li",x=xa.default.createElement(w,Object.assign({},u,f?{}:{ref:t},{className:(0,b$.default)(`${b}-item`,{[`${b}-item-no-flex`]:!y()},a)}),h==="vertical"&&o?[xa.default.createElement("div",{className:`${b}-item-main`,key:"content"},r,S),xa.default.createElement("div",{className:(0,b$.default)(`${b}-item-extra`,m("extra")),key:"extra",style:v("extra")},o)]:[r,S,(0,URr.cloneElement)(o,{key:"extra"})]);return f?xa.default.createElement(qRr.Col,{ref:t,flex:1,style:c},x):x}),dat=YRr;dat.Meta=uat;U7.default=dat;var q7={};Object.defineProperty(q7,"__esModule",{value:!0});q7.prepareComponentToken=q7.default=void 0;var Qa=Kt,XRr=gn,uPe=Zt;const QRr=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:o,itemPaddingLG:s,marginLG:a,borderRadiusLG:l}=e;return{[t]:{border:`${(0,Qa.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${(0,Qa.unit)(i)} ${(0,Qa.unit)(a)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}}}},ZRr=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:o,margin:s}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${(0,Qa.unit)(s)}`}}}}}},JRr=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:o,marginLG:s,padding:a,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:f,paddingXS:h,margin:g,colorText:p,colorTextDescription:m,motionDurationSlow:v,lineWidth:C,headerBg:y,footerBg:b,emptyTextPadding:S,metaMarginBottom:w,avatarMarginRight:x,titleMarginBottom:E,descriptionFontSize:R}=e;return{[t]:Object.assign(Object.assign({},(0,XRr.resetComponent)(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:y},[`${t}-footer`]:{background:b},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:s,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:p,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:p},[`${t}-item-meta-title`]:{margin:`0 0 ${(0,Qa.unit)(e.marginXXS)} 0`,color:p,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:p,transition:`all ${v}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:m,fontSize:R,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${(0,Qa.unit)(h)}`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:C,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${(0,Qa.unit)(a)} 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:s},[`${t}-item-meta`]:{marginBlockEnd:w,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:E,color:p,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${(0,Qa.unit)(a)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${(0,Qa.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${(0,Qa.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${(0,Qa.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${(0,Qa.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},fat=e=>({contentWidth:220,itemPadding:`${(0,Qa.unit)(e.paddingContentVertical)} 0`,itemPaddingSM:`${(0,Qa.unit)(e.paddingContentVerticalSM)} ${(0,Qa.unit)(e.paddingContentHorizontal)}`,itemPaddingLG:`${(0,Qa.unit)(e.paddingContentVerticalLG)} ${(0,Qa.unit)(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize});q7.prepareComponentToken=fat;q7.default=(0,uPe.genStyleHooks)("List",e=>{const t=(0,uPe.mergeToken)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[JRr(t),QRr(t),ZRr(t)]},fat);var e$r=_e.default,Zm=pe.default;Object.defineProperty(MK,"__esModule",{value:!0});MK.default=void 0;var dPe=Zm(zr),qo=e$r(d),fPe=Zm(St),t$r=Zm(K9),hPe=th,n$r=Bt,r$r=Zm(ep),i$r=Zm(io),o$r=gb,s$r=Zm(Ym),a$r=Zm(yb),l$r=Zm(Q3),c$r=ay,u$r=Zm(U7),d$r=Zm(q7),f$r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function h$r(e,t){var{pagination:n=!1,prefixCls:r,bordered:i=!1,split:o=!0,className:s,rootClassName:a,style:l,children:c,itemLayout:u,loadMore:f,grid:h,dataSource:g=[],size:p,header:m,footer:v,loading:C=!1,rowKey:y,renderItem:b,locale:S}=e,w=f$r(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const x=n&&typeof n=="object"?n:{},[E,R]=qo.useState(x.defaultCurrent||1),[O,T]=qo.useState(x.defaultPageSize||10),{getPrefixCls:M,renderEmpty:_,direction:F,list:D}=qo.useContext(n$r.ConfigContext),k={current:1,total:0},L=de=>(xe,Ee)=>{var De;R(xe),T(Ee),n&&((De=n==null?void 0:n[de])===null||De===void 0||De.call(n,xe,Ee))},I=L("onChange"),A=L("onShowSizeChange"),N=(de,xe)=>{if(!b)return null;let Ee;return typeof y=="function"?Ee=y(de):y?Ee=de[y]:Ee=de.key,Ee||(Ee=`list-item-${xe}`),qo.createElement(qo.Fragment,{key:Ee},b(de,xe))},B=()=>!!(f||n||v),z=M("list",r),[j,W,G]=(0,d$r.default)(z);let K=C;typeof K=="boolean"&&(K={spinning:K});const q=!!(K!=null&&K.spinning),X=(0,i$r.default)(p);let Q="";switch(X){case"large":Q="lg";break;case"small":Q="sm";break}const te=(0,fPe.default)(z,{[`${z}-vertical`]:u==="vertical",[`${z}-${Q}`]:Q,[`${z}-split`]:o,[`${z}-bordered`]:i,[`${z}-loading`]:q,[`${z}-grid`]:!!h,[`${z}-something-after-last-item`]:B(),[`${z}-rtl`]:F==="rtl"},D==null?void 0:D.className,s,a,W,G),ne=(0,t$r.default)(k,{total:g.length,current:E,pageSize:O},n||{}),Z=Math.ceil(ne.total/ne.pageSize);ne.current>Z&&(ne.current=Z);const ee=n&&qo.createElement("div",{className:(0,fPe.default)(`${z}-pagination`)},qo.createElement(a$r.default,Object.assign({align:"end"},ne,{onChange:I,onShowSizeChange:A})));let J=(0,dPe.default)(g);n&&g.length>(ne.current-1)*ne.pageSize&&(J=(0,dPe.default)(g).splice((ne.current-1)*ne.pageSize,ne.pageSize));const oe=Object.keys(h||{}).some(de=>["xs","sm","md","lg","xl","xxl"].includes(de)),le=(0,s$r.default)(oe),ge=qo.useMemo(()=>{for(let de=0;de<hPe.responsiveArray.length;de+=1){const xe=hPe.responsiveArray[de];if(le[xe])return xe}},[le]),he=qo.useMemo(()=>{if(!h)return;const de=ge&&h[ge]?h[ge]:h.column;if(de)return{width:`${100/de}%`,maxWidth:`${100/de}%`}},[JSON.stringify(h),ge]);let ye=q&&qo.createElement("div",{style:{minHeight:53}});if(J.length>0){const de=J.map((xe,Ee)=>N(xe,Ee));ye=h?qo.createElement(o$r.Row,{gutter:h.gutter},qo.Children.map(de,xe=>qo.createElement("div",{key:xe==null?void 0:xe.key,style:he},xe))):qo.createElement("ul",{className:`${z}-items`},de)}else!c&&!q&&(ye=qo.createElement("div",{className:`${z}-empty-text`},(S==null?void 0:S.emptyText)||(_==null?void 0:_("List"))||qo.createElement(r$r.default,{componentName:"List"})));const ue=ne.position||"bottom",ve=qo.useMemo(()=>({grid:h,itemLayout:u}),[JSON.stringify(h),u]);return j(qo.createElement(c$r.ListContext.Provider,{value:ve},qo.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},D==null?void 0:D.style),l),className:te},w),(ue==="top"||ue==="both")&&ee,m&&qo.createElement("div",{className:`${z}-header`},m),qo.createElement(l$r.default,Object.assign({},K),ye,c),v&&qo.createElement("div",{className:`${z}-footer`},v),f||(ue==="bottom"||ue==="both")&&ee)))}const g$r=qo.forwardRef(h$r),hat=g$r;hat.Item=u$r.default;MK.default=hat;var K7={};const p$r=_r(tqt);var Y9={};Object.defineProperty(Y9,"__esModule",{value:!0});Y9.default=m$r;function m$r(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var Y7={};Object.defineProperty(Y7,"__esModule",{value:!0});Y7.prepareComponentToken=Y7.default=void 0;var DL=Kt,cO=H3,LL=cs,Hre=gn,gPe=Zt;const v$r=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:i,colorText:o,motionDurationSlow:s,lineHeight:a,controlHeight:l,paddingInline:c,paddingBlock:u,fontSize:f,fontSizeIcon:h,colorTextTertiary:g,colorTextQuaternary:p,colorBgElevated:m,paddingXXS:v,paddingLG:C,borderRadius:y,borderRadiusLG:b,boxShadowSecondary:S,itemPaddingVertical:w,calc:x}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Hre.resetComponent)(e)),(0,cO.genBasicInputStyle)(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),(0,LL.genOutlinedStyle)(e)),(0,LL.genFilledStyle)(e)),(0,LL.genBorderlessStyle)(e)),{"&-affix-wrapper":Object.assign(Object.assign({},(0,cO.genBasicInputStyle)(e)),{display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:C},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:x(f).mul(a).mul(.5).add(u).equal(),transform:"translateY(-50%)",margin:0,color:p,fontSize:h,verticalAlign:-1,cursor:"pointer",transition:`color ${s}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:g},"&:active":{color:o},"&-hidden":{visibility:"hidden"}}}),"&-disabled":{"> textarea":Object.assign({},(0,LL.genDisabledStyle)(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:o,boxSizing:"border-box",minHeight:e.calc(l).sub(2),margin:0,padding:`${(0,DL.unit)(u)} ${(0,DL.unit)(c)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},(0,cO.genPlaceholderStyle)(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},(0,Hre.resetComponent)(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:f,fontVariant:"initial",padding:v,backgroundColor:m,borderRadius:b,outline:"none",boxShadow:S,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},Hre.textEllipsis),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${(0,DL.unit)(w)} ${(0,DL.unit)(i)}`,color:o,borderRadius:y,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${s} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:o,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},gat=e=>Object.assign(Object.assign({},(0,cO.initComponentToken)(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2});Y7.prepareComponentToken=gat;Y7.default=(0,gPe.genStyleHooks)("Mentions",e=>{const t=(0,gPe.mergeToken)(e,(0,cO.initInputToken)(e));return[v$r(t)]},gat);var Jm=pe.default,C$r=_e.default;Object.defineProperty(K7,"__esModule",{value:!0});K7.default=K7.Option=void 0;var Nc=C$r(d),FL=Jm(St),pat=Jm(p$r),y$r=Vi,b$r=Jm(N9),S$r=Jm($c),pPe=Ql,w$r=Jm(Y9),x$r=Bt,E$r=Jm(ep),R$r=Jm(Xr),$$r=Ir,O$r=Jm(Id),mPe=Jm(Q3),T$r=Jm(Y7),I$r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const{Option:w2e}=pat.default;K7.Option=w2e;function M$r(){return!0}const P$r=Nc.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,disabled:o,loading:s,filterOption:a,children:l,notFoundContent:c,options:u,status:f,allowClear:h=!1,popupClassName:g,style:p,variant:m}=e,v=I$r(e,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","allowClear","popupClassName","style","variant"]),[C,y]=Nc.useState(!1),b=Nc.useRef(null),S=(0,y$r.composeRef)(t,b),{getPrefixCls:w,renderEmpty:x,direction:E,mentions:R}=Nc.useContext(x$r.ConfigContext),{status:O,hasFeedback:T,feedbackIcon:M}=Nc.useContext($$r.FormItemInputContext),_=(0,pPe.getMergedStatus)(O,f),F=function(){v.onFocus&&v.onFocus.apply(v,arguments),y(!0)},D=function(){v.onBlur&&v.onBlur.apply(v,arguments),y(!1)},k=Nc.useMemo(()=>c!==void 0?c:(x==null?void 0:x("Select"))||Nc.createElement(E$r.default,{componentName:"Select"}),[c,x]),L=Nc.useMemo(()=>s?Nc.createElement(w2e,{value:"ANTD_SEARCHING",disabled:!0},Nc.createElement(mPe.default,{size:"small"})):l,[s,l]),I=s?[{value:"ANTD_SEARCHING",disabled:!0,label:Nc.createElement(mPe.default,{size:"small"})}]:u,A=s?M$r:a,N=w("mentions",n),B=(0,b$r.default)(h),z=(0,R$r.default)(N),[j,W,G]=(0,T$r.default)(N,z),[K,q]=(0,O$r.default)("mentions",m),X=T&&Nc.createElement(Nc.Fragment,null,M),Q=(0,FL.default)(R==null?void 0:R.className,r,i,G,z),te=Nc.createElement(pat.default,Object.assign({silent:s,prefixCls:N,notFoundContent:k,className:Q,disabled:o,allowClear:B,direction:E,style:Object.assign(Object.assign({},R==null?void 0:R.style),p)},v,{filterOption:A,onFocus:F,onBlur:D,dropdownClassName:(0,FL.default)(g,i,W,G,z),ref:S,options:I,suffix:X,classNames:{mentions:(0,FL.default)({[`${N}-disabled`]:o,[`${N}-focused`]:C,[`${N}-rtl`]:E==="rtl"},W),variant:(0,FL.default)({[`${N}-${K}`]:q},(0,pPe.getStatusClassNames)(N,_)),affixWrapper:W}}),L);return j(te)}),n_=P$r;n_.Option=w2e;const _$r=(0,S$r.default)(n_,void 0,void 0,"mentions");n_._InternalPanelDoNotUseOrYouWillBeFired=_$r;n_.getMentions=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,i=(0,w$r.default)(n);return e.split(r).map(function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=null;return i.some(a=>o.slice(0,a.length)===a?(s=a,!0):!1),s!==null?{prefix:s,value:o.slice(s.length)}:null}).filter(o=>!!o&&!!o.value)};K7.default=n_;var R4={},x2e=_e.default,mat=pe.default;Object.defineProperty(R4,"__esModule",{value:!0});R4.default=R4.actWrapper=R4.actDestroy=void 0;var A$r=mat(zr),Kp=x2e(d),D$r=n3,YB=x2e(Bt),L$r=I3,F$r=mat(C0),vat=x2e(UM),Cat=qM;let Cf=null,N8=e=>e(),eI=[],tI={};function vPe(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=tI,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const N$r=Kp.default.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,Kp.useContext)(YB.ConfigContext),o=tI.prefixCls||i("message"),s=(0,Kp.useContext)(D$r.AppConfigContext),[a,l]=(0,vat.useInternalMessage)(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),s.message));return Kp.default.useImperativeHandle(t,()=>{const c=Object.assign({},a);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),a[u].apply(a,arguments)}}),{instance:c,sync:r}}),l}),k$r=Kp.default.forwardRef((e,t)=>{const[n,r]=Kp.default.useState(vPe),i=()=>{r(vPe)};Kp.default.useEffect(i,[]);const o=(0,YB.globalConfig)(),s=o.getRootPrefixCls(),a=o.getIconPrefixCls(),l=o.getTheme(),c=Kp.default.createElement(N$r,{ref:t,sync:i,messageConfig:n});return Kp.default.createElement(YB.default,{prefixCls:s,iconPrefixCls:a,theme:l},o.holderRender?o.holderRender(c):c)});function kK(){if(!Cf){const e=document.createDocumentFragment(),t={fragment:e};Cf=t,N8(()=>{(0,L$r.getReactRender)()(Kp.default.createElement(k$r,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,kK())})}}),e)});return}Cf.instance&&(eI.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{N8(()=>{const r=Cf.instance.open(Object.assign(Object.assign({},tI),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":N8(()=>{Cf==null||Cf.instance.destroy(e.key)});break;default:N8(()=>{var r;const i=(r=Cf.instance)[t].apply(r,(0,A$r.default)(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),eI=[])}function z$r(e){tI=Object.assign(Object.assign({},tI),e),N8(()=>{var t;(t=Cf==null?void 0:Cf.sync)===null||t===void 0||t.call(Cf)})}function B$r(e){const t=(0,Cat.wrapPromiseFn)(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return eI.push(i),()=>{r?N8(()=>{r()}):i.skipped=!0}});return kK(),t}function H$r(e,t){(0,YB.globalConfig)();const n=(0,Cat.wrapPromiseFn)(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:s=>{i=s}};return eI.push(o),()=>{i?N8(()=>{i()}):o.skipped=!0}});return kK(),n}const j$r=e=>{eI.push({type:"destroy",key:e}),kK()},V$r=["success","info","warning","error","loading"],G$r={open:B$r,destroy:j$r,config:z$r,useMessage:vat.default,_InternalPanelDoNotUseOrYouWillBeFired:F$r.default},yat=G$r;V$r.forEach(e=>{yat[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return H$r(e,n)}});const bat=()=>{};R4.actWrapper=bat;R4.actDestroy=bat;R4.default=yat;var zK={},BK={},E2e=pe.default,W$r=_e.default;Object.defineProperty(BK,"__esModule",{value:!0});BK.default=void 0;var NL=W$r(d),U$r=E2e(St),q$r=Fnt,K$r=$c,Y$r=Bt,X$r=E2e(Xr),Q$r=eb,CPe=g9,Z$r=E2e(od),J$r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const eOr=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:s,children:a,footer:l}=e,c=J$r(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=NL.useContext(Y$r.ConfigContext),f=u(),h=t||u("modal"),g=(0,X$r.default)(f),[p,m,v]=(0,Z$r.default)(h,g),C=`${h}-confirm`;let y={};return o?y={closable:i??!1,title:"",footer:"",children:NL.createElement(Q$r.ConfirmContent,Object.assign({},e,{prefixCls:h,confirmPrefixCls:C,rootPrefixCls:f,content:a}))}:y={closable:i??!0,title:s,footer:l!==null&&NL.createElement(CPe.Footer,Object.assign({},e)),children:a},p(NL.createElement(q$r.Panel,Object.assign({prefixCls:h,className:(0,U$r.default)(m,`${h}-pure-panel`,o&&C,o&&`${C}-${o}`,n,v,g)},c,{closeIcon:(0,CPe.renderCloseIcon)(h,r),closable:i},y)))};BK.default=(0,K$r.withPureRenderTheme)(eOr);var HK=pe.default,tOr=_e.default;Object.defineProperty(zK,"__esModule",{value:!0});zK.default=void 0;var zg=tOr(Um),yPe=HK(p9),nOr=HK(tP),rOr=HK(BK),iOr=HK(KM);function Sat(e){return(0,zg.default)((0,zg.withWarn)(e))}const ip=nOr.default;ip.useModal=iOr.default;ip.info=function(t){return(0,zg.default)((0,zg.withInfo)(t))};ip.success=function(t){return(0,zg.default)((0,zg.withSuccess)(t))};ip.error=function(t){return(0,zg.default)((0,zg.withError)(t))};ip.warning=Sat;ip.warn=Sat;ip.confirm=function(t){return(0,zg.default)((0,zg.withConfirm)(t))};ip.destroyAll=function(){for(;yPe.default.length;){const t=yPe.default.pop();t&&t()}};ip.config=zg.modalGlobalConfig;ip._InternalPanelDoNotUseOrYouWillBeFired=rOr.default;zK.default=ip;var $4={},oOr=pe.default,R2e=_e.default;Object.defineProperty($4,"__esModule",{value:!0});$4.default=$4.actWrapper=$4.actDestroy=void 0;var lg=R2e(d),sOr=n3,XB=R2e(Bt),aOr=I3,lOr=oOr(hm),wat=R2e(iP);let Xh=null,XN=e=>e(),QB=[],nI={};function bPe(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:i,showProgress:o,pauseOnHover:s}=nI,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,rtl:t,maxCount:n,top:r,bottom:i,showProgress:o,pauseOnHover:s}}const cOr=lg.default.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=(0,lg.useContext)(XB.ConfigContext),o=nI.prefixCls||i("notification"),s=(0,lg.useContext)(sOr.AppConfigContext),[a,l]=(0,wat.useInternalNotification)(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),s.notification));return lg.default.useEffect(r,[]),lg.default.useImperativeHandle(t,()=>{const c=Object.assign({},a);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),a[u].apply(a,arguments)}}),{instance:c,sync:r}}),l}),uOr=lg.default.forwardRef((e,t)=>{const[n,r]=lg.default.useState(bPe),i=()=>{r(bPe)};lg.default.useEffect(i,[]);const o=(0,XB.globalConfig)(),s=o.getRootPrefixCls(),a=o.getIconPrefixCls(),l=o.getTheme(),c=lg.default.createElement(cOr,{ref:t,sync:i,notificationConfig:n});return lg.default.createElement(XB.default,{prefixCls:s,iconPrefixCls:a,theme:l},o.holderRender?o.holderRender(c):c)});function $2e(){if(!Xh){const e=document.createDocumentFragment(),t={fragment:e};Xh=t,XN(()=>{(0,aOr.getReactRender)()(lg.default.createElement(uOr,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,$2e())})}}),e)});return}Xh.instance&&(QB.forEach(e=>{switch(e.type){case"open":{XN(()=>{Xh.instance.open(Object.assign(Object.assign({},nI),e.config))});break}case"destroy":XN(()=>{Xh==null||Xh.instance.destroy(e.key)});break}}),QB=[])}function dOr(e){nI=Object.assign(Object.assign({},nI),e),XN(()=>{var t;(t=Xh==null?void 0:Xh.sync)===null||t===void 0||t.call(Xh)})}function xat(e){(0,XB.globalConfig)(),QB.push({type:"open",config:e}),$2e()}const fOr=e=>{QB.push({type:"destroy",key:e}),$2e()},hOr=["success","info","warning","error"],gOr={open:xat,destroy:fOr,config:dOr,useNotification:wat.default,_InternalPanelDoNotUseOrYouWillBeFired:lOr.default},Eat=gOr;hOr.forEach(e=>{Eat[e]=t=>xat(Object.assign(Object.assign({},t),{type:e}))});const Rat=()=>{};$4.actWrapper=Rat;$4.actDestroy=Rat;$4.default=Eat;var jK={},X7={},ly={};Object.defineProperty(ly,"__esModule",{value:!0});ly.prepareComponentToken=ly.default=void 0;var pOr=Zt;const mOr=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:o,colorWarning:s,marginXXS:a,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:s,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:a,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},$at=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}};ly.prepareComponentToken=$at;ly.default=(0,pOr.genStyleHooks)("Popconfirm",e=>mOr(e),$at,{resetStyle:!1});var bb=pe.default,vOr=_e.default;Object.defineProperty(X7,"__esModule",{value:!0});X7.default=X7.Overlay=void 0;var qc=vOr(d),COr=bb($3),yOr=bb(St),bOr=bb(f9),SPe=E9,SOr=bb(Ru),wOr=Yl,Oat=Bt,xOr=Os,EOr=bb(Ec),ROr=bb(gm),$Or=bb(ly),OOr=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 Tat=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:o,cancelText:s,okText:a,okType:l="primary",icon:c=qc.createElement(COr.default,null),showCancel:u=!0,close:f,onConfirm:h,onCancel:g,onPopupClick:p}=e,{getPrefixCls:m}=qc.useContext(Oat.ConfigContext),[v]=(0,xOr.useLocale)("Popconfirm",EOr.default.Popconfirm),C=(0,SPe.getRenderPropValue)(i),y=(0,SPe.getRenderPropValue)(o);return qc.createElement("div",{className:`${t}-inner-content`,onClick:p},qc.createElement("div",{className:`${t}-message`},c&&qc.createElement("span",{className:`${t}-message-icon`},c),qc.createElement("div",{className:`${t}-message-text`},C&&qc.createElement("div",{className:`${t}-title`},C),y&&qc.createElement("div",{className:`${t}-description`},y))),qc.createElement("div",{className:`${t}-buttons`},u&&qc.createElement(SOr.default,Object.assign({onClick:g,size:"small"},r),s||(v==null?void 0:v.cancelText)),qc.createElement(bOr.default,{buttonProps:Object.assign(Object.assign({size:"small"},(0,wOr.convertLegacyProps)(l)),n),actionFn:h,close:f,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},a||(v==null?void 0:v.okText))))};X7.Overlay=Tat;const TOr=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,o=OOr(e,["prefixCls","placement","className","style"]),{getPrefixCls:s}=qc.useContext(Oat.ConfigContext),a=s("popconfirm",t),[l]=(0,$Or.default)(a);return l(qc.createElement(ROr.default,{placement:n,className:(0,yOr.default)(a,r),style:i,content:qc.createElement(Tat,Object.assign({prefixCls:a},o))}))};X7.default=TOr;var X9=pe.default,Iat=_e.default;Object.defineProperty(jK,"__esModule",{value:!0});jK.default=void 0;var wR=Iat(d),IOr=X9($3),wPe=X9(St),MOr=X9(fa),POr=X9(mi),_Or=Bt,AOr=X9(sb),Mat=Iat(X7),DOr=X9(ly),LOr=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 FOr=wR.forwardRef((e,t)=>{var n,r,i,o,s,a;const{prefixCls:l,placement:c="top",trigger:u="click",okType:f="primary",icon:h=wR.createElement(IOr.default,null),children:g,overlayClassName:p,onOpenChange:m,onVisibleChange:v,overlayStyle:C,styles:y,classNames:b}=e,S=LOr(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,popconfirm:x}=wR.useContext(_Or.ConfigContext),[E,R]=(0,MOr.default)(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=(A,N)=>{R(A,!0),v==null||v(A),m==null||m(A,N)},T=A=>{O(!1,A)},M=A=>{var N;return(N=e.onConfirm)===null||N===void 0?void 0:N.call(void 0,A)},_=A=>{var N;O(!1,A),(N=e.onCancel)===null||N===void 0||N.call(void 0,A)},F=(A,N)=>{const{disabled:B=!1}=e;B||O(A,N)},D=w("popconfirm",l),k=(0,wPe.default)(D,p,(i=x==null?void 0:x.classNames)===null||i===void 0?void 0:i.root,b==null?void 0:b.root),L=(0,wPe.default)((o=x==null?void 0:x.classNames)===null||o===void 0?void 0:o.body,b==null?void 0:b.body),[I]=(0,DOr.default)(D);return I(wR.createElement(AOr.default,Object.assign({},(0,POr.default)(S,["title"]),{trigger:u,placement:c,onOpenChange:F,open:E,ref:t,classNames:{root:k,body:L},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.root),x==null?void 0:x.style),C),y==null?void 0:y.root),body:Object.assign(Object.assign({},(a=x==null?void 0:x.styles)===null||a===void 0?void 0:a.body),y==null?void 0:y.body)},content:wR.createElement(Mat.Overlay,Object.assign({okType:f,icon:h},e,{prefixCls:D,close:T,onConfirm:M,onCancel:_})),"data-popover-inject":!0}),g))}),Pat=FOr;Pat._InternalPanelDoNotUseOrYouWillBeFired=Mat.default;jK.default=Pat;var Q9={},Q7={},VK={};const NOr=_r(Sqt);var gd={};Object.defineProperty(gd,"__esModule",{value:!0});gd.getStrokeColor=gd.getSize=gd.getPercentage=void 0;gd.getSuccessPercent=_at;gd.validProgress=QN;var kOr=Xg;function QN(e){return!e||e<0?0:e>100?100:e}function _at(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const zOr=e=>{let{percent:t,success:n,successPercent:r}=e;const i=QN(_at({success:n,successPercent:r}));return[i,QN(QN(t)-i)]};gd.getPercentage=zOr;const BOr=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||kOr.presetPrimaryColors.green,n||null]};gd.getStrokeColor=BOr;const HOr=(e,t,n)=>{var r,i,o,s;let a=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(a=e==="small"?2:14,l=u??8):typeof e=="number"?[a,l]=[e,e]:[a=14,l=8]=Array.isArray(e)?e:[e.width,e.height],a*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[a,l]=[e,e]:[a=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[a,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,l]=[e,e]:Array.isArray(e)&&(a=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(s=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&s!==void 0?s:120));return[a,l]};gd.getSize=HOr;var Aat=pe.default,jOr=_e.default;Object.defineProperty(VK,"__esModule",{value:!0});VK.default=void 0;var kL=jOr(d),VOr=Aat(St),GOr=NOr,WOr=Aat(gl),jre=gd;const UOr=3,qOr=e=>UOr/e*100,KOr=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:s=120,type:a,children:l,success:c,size:u=s,steps:f}=e,[h,g]=(0,jre.getSize)(u,"circle");let{strokeWidth:p}=e;p===void 0&&(p=Math.max(qOr(h),6));const m={width:h,height:g,fontSize:h*.15+6},v=kL.useMemo(()=>{if(o||o===0)return o;if(a==="dashboard")return 75},[o,a]),C=(0,jre.getPercentage)(e),y=i||a==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=(0,jre.getStrokeColor)({success:c,strokeColor:e.strokeColor}),w=(0,VOr.default)(`${t}-inner`,{[`${t}-circle-gradient`]:b}),x=kL.createElement(GOr.Circle,{steps:f,percent:f?C[1]:C,strokeWidth:p,trailWidth:p,strokeColor:f?S[1]:S,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:y}),E=h<=20,R=kL.createElement("div",{className:w,style:m},x,!E&&l);return E?kL.createElement(WOr.default,{title:l},R):R};VK.default=KOr;var O4={},pg={};Object.defineProperty(pg,"__esModule",{value:!0});pg.prepareComponentToken=pg.default=pg.Percent=pg.LineStrokeColorVar=void 0;var Dat=Kt,YOr=gn,xPe=Zt;const XOr=pg.LineStrokeColorVar="--progress-line-stroke-color",QOr=pg.Percent="--progress-percent",EPe=e=>{const t=e?"100%":"-100%";return new Dat.Keyframes(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ZOr=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,YOr.resetComponent)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${XOr})`]},height:"100%",width:`calc(1 / var(${QOr}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Dat.unit)(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:EPe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:EPe(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},JOr=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},eTr=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},tTr=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Lat=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`});pg.prepareComponentToken=Lat;pg.default=(0,xPe.genStyleHooks)("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=(0,xPe.mergeToken)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[ZOr(n),JOr(n),eTr(n),tTr(n)]},Lat);var nTr=pe.default,rTr=_e.default;Object.defineProperty(O4,"__esModule",{value:!0});O4.sortGradient=O4.handleGradient=O4.default=void 0;var xR=rTr(d),RPe=Xg,iTr=nTr(St),ZB=pg,ER=gd,oTr=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 Fat=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")};O4.sortGradient=Fat;const Nat=(e,t)=>{const{from:n=RPe.presetPrimaryColors.blue,to:r=RPe.presetPrimaryColors.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=oTr(e,["from","to","direction"]);if(Object.keys(o).length!==0){const a=Fat(o),l=`linear-gradient(${i}, ${a})`;return{background:l,[ZB.LineStrokeColorVar]:l}}const s=`linear-gradient(${i}, ${n}, ${r})`;return{background:s,[ZB.LineStrokeColorVar]:s}};O4.handleGradient=Nat;const sTr=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:s,strokeLinecap:a="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:h,type:g}=u,p=s&&typeof s!="string"?Nat(s,n):{[ZB.LineStrokeColorVar]:s,background:s},m=a==="square"||a==="butt"?0:void 0,v=i??[-1,o||(i==="small"?6:8)],[C,y]=(0,ER.getSize)(v,"line",{strokeWidth:o}),b={backgroundColor:c||void 0,borderRadius:m},S=Object.assign(Object.assign({width:`${(0,ER.validProgress)(r)}%`,height:y,borderRadius:m},p),{[ZB.Percent]:(0,ER.validProgress)(r)/100}),w=(0,ER.getSuccessPercent)(e),x={width:`${(0,ER.validProgress)(w)}%`,height:y,borderRadius:m,backgroundColor:f==null?void 0:f.strokeColor},E={width:C<0?"100%":C},R=xR.createElement("div",{className:`${t}-inner`,style:b},xR.createElement("div",{className:(0,iTr.default)(`${t}-bg`,`${t}-bg-${g}`),style:S},g==="inner"&&l),w!==void 0&&xR.createElement("div",{className:`${t}-success-bg`,style:x})),O=g==="outer"&&h==="start",T=g==="outer"&&h==="end";return g==="outer"&&h==="center"?xR.createElement("div",{className:`${t}-layout-bottom`},R,l):xR.createElement("div",{className:`${t}-outer`,style:E},O&&l,R,T&&l)};O4.default=sTr;var GK={},aTr=pe.default,lTr=_e.default;Object.defineProperty(GK,"__esModule",{value:!0});GK.default=void 0;var $Pe=lTr(d),cTr=aTr(St),uTr=gd;const dTr=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:s=null,prefixCls:a,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[h,g]=(0,uTr.getSize)(f,"step",{steps:n,strokeWidth:i}),p=h/n,m=new Array(n);for(let v=0;v<n;v++){const C=Array.isArray(o)?o[v]:o;m[v]=$Pe.createElement("div",{key:v,className:(0,cTr.default)(`${a}-steps-item`,{[`${a}-steps-item-active`]:v<=c-1}),style:{backgroundColor:v<=c-1?C:s,width:p,height:g}})}return $Pe.createElement("div",{className:`${a}-steps-outer`},m,l)};GK.default=dTr;var e1=pe.default,fTr=_e.default;Object.defineProperty(Q7,"__esModule",{value:!0});Q7.default=Q7.ProgressTypes=void 0;var rc=fTr(d),hTr=e1(Jy),gTr=e1(aU),pTr=e1(av),mTr=e1(Td),vTr=Us,OPe=e1(St),CTr=e1(mi),yTr=Bt,bTr=e1(VK),STr=e1(O4),wTr=e1(GK),xTr=e1(pg),RR=gd,ETr=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};Q7.ProgressTypes=["line","circle","dashboard"];const RTr=["normal","exception","active","success"],$Tr=rc.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:s,percent:a=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:h,style:g,percentPosition:p={}}=e,m=ETr(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:C="outer"}=p,y=Array.isArray(s)?s[0]:s,b=typeof s=="string"||Array.isArray(s)?s:void 0,S=rc.useMemo(()=>{if(y){const N=typeof y=="string"?y:Object.values(y)[0];return new vTr.FastColor(N).isLight()}return!1},[s]),w=rc.useMemo(()=>{var N,B;const z=(0,RR.getSuccessPercent)(e);return parseInt(z!==void 0?(N=z??0)===null||N===void 0?void 0:N.toString():(B=a??0)===null||B===void 0?void 0:B.toString(),10)},[a,e.success,e.successPercent]),x=rc.useMemo(()=>!RTr.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:E,direction:R,progress:O}=rc.useContext(yTr.ConfigContext),T=E("progress",n),[M,_,F]=(0,xTr.default)(T),D=u==="line",k=D&&!o,L=rc.useMemo(()=>{if(!c)return null;const N=(0,RR.getSuccessPercent)(e);let B;const z=h||(W=>`${W}%`),j=D&&S&&C==="inner";return C==="inner"||h||x!=="exception"&&x!=="success"?B=z((0,RR.validProgress)(a),(0,RR.validProgress)(N)):x==="exception"?B=D?rc.createElement(pTr.default,null):rc.createElement(mTr.default,null):x==="success"&&(B=D?rc.createElement(hTr.default,null):rc.createElement(gTr.default,null)),rc.createElement("span",{className:(0,OPe.default)(`${T}-text`,{[`${T}-text-bright`]:j,[`${T}-text-${v}`]:k,[`${T}-text-${C}`]:k}),title:typeof B=="string"?B:void 0},B)},[c,a,w,x,u,T,h]);let I;u==="line"?I=o?rc.createElement(wTr.default,Object.assign({},e,{strokeColor:b,prefixCls:T,steps:typeof o=="object"?o.count:o}),L):rc.createElement(STr.default,Object.assign({},e,{strokeColor:y,prefixCls:T,direction:R,percentPosition:{align:v,type:C}}),L):(u==="circle"||u==="dashboard")&&(I=rc.createElement(bTr.default,Object.assign({},e,{strokeColor:y,prefixCls:T,progressStatus:x}),L));const A=(0,OPe.default)(T,`${T}-status-${x}`,{[`${T}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${T}-inline-circle`]:u==="circle"&&(0,RR.getSize)(l,"circle")[0]<=20,[`${T}-line`]:k,[`${T}-line-align-${v}`]:k,[`${T}-line-position-${C}`]:k,[`${T}-steps`]:o,[`${T}-show-info`]:c,[`${T}-${l}`]:typeof l=="string",[`${T}-rtl`]:R==="rtl"},O==null?void 0:O.className,r,i,_,F);return M(rc.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},O==null?void 0:O.style),g),className:A,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},(0,CTr.default)(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),I))});Q7.default=$Tr;var OTr=pe.default;Object.defineProperty(Q9,"__esModule",{value:!0});Q9.default=void 0;var TTr=OTr(Q7);Q9.default=TTr.default;var WK={};const ITr=_r(jqt);var O2e={};const MTr=_r(wOn);var T2e=pe.default;Object.defineProperty(O2e,"__esModule",{value:!0});O2e.default=LTr;var o8=T2e(d),PTr=MTr,_Tr=T2e(Ru),ATr=T2e(Q3);const DTr=o8.default.createElement(ATr.default,null);function LTr(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:o}=e;const s=o8.default.createElement(o8.default.Fragment,null,o8.default.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&o8.default.createElement(_Tr.default,{type:"link",icon:o8.default.createElement(PTr.ReloadOutlined,null),onClick:r},n==null?void 0:n.refresh)),a=o8.default.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:s,loading:DTr,scanned:a};return(i??(f=>l[f.status]))({status:o,locale:n,onRefresh:r})}var Z7={};Object.defineProperty(Z7,"__esModule",{value:!0});Z7.prepareComponentToken=Z7.default=void 0;var FTr=Kt,NTr=Us,kTr=gn,TPe=Zt;const zTr=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},(0,kTr.resetComponent)(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${(0,FTr.unit)(n)} ${r} ${i}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},kat=e=>({QRCodeMaskBackgroundColor:new NTr.FastColor(e.colorBgContainer).setA(.96).toRgbString()});Z7.prepareComponentToken=kat;Z7.default=(0,TPe.genStyleHooks)("QRCode",e=>{const t=(0,TPe.mergeToken)(e,{QRCodeTextColor:e.colorText});return zTr(t)},kat);var r_=pe.default,BTr=_e.default;Object.defineProperty(WK,"__esModule",{value:!0});WK.default=void 0;var P5=BTr(d),IPe=ITr,HTr=r_(St),jTr=r_(mi),VTr=r_(oh),GTr=Bt,WTr=Os,UTr=Zt,qTr=r_(O2e),KTr=r_(Z7),YTr=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 XTr=e=>{var t,n,r,i;const[,o]=(0,UTr.useToken)(),{value:s,type:a="canvas",icon:l="",size:c=160,iconSize:u,color:f=o.colorText,errorLevel:h="M",status:g="active",bordered:p=!0,onRefresh:m,style:v,className:C,rootClassName:y,prefixCls:b,bgColor:S="transparent",statusRender:w}=e,x=YTr(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:E}=(0,P5.useContext)(GTr.ConfigContext),R=E("qrcode",b),[O,T,M]=(0,KTr.default)(R),_={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(t=u==null?void 0:u.height)!==null&&t!==void 0?t:40,width:typeof u=="number"?u:(n=u==null?void 0:u.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},F=(0,VTr.default)(x,!0),D=(0,jTr.default)(x,Object.keys(F)),k=Object.assign({value:s,size:c,level:h,bgColor:S,fgColor:f,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?_:void 0},F),[L]=(0,WTr.useLocale)("QRCode");if(!s)return null;const I=(0,HTr.default)(R,C,y,T,M,{[`${R}-borderless`]:!p}),A=Object.assign(Object.assign({backgroundColor:S},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(i=v==null?void 0:v.height)!==null&&i!==void 0?i:c});return O(P5.default.createElement("div",Object.assign({},D,{className:I,style:A}),g!=="active"&&P5.default.createElement("div",{className:`${R}-mask`},P5.default.createElement(qTr.default,{prefixCls:R,locale:L,status:g,onRefresh:m,statusRender:w})),a==="canvas"?P5.default.createElement(IPe.QRCodeCanvas,Object.assign({},k)):P5.default.createElement(IPe.QRCodeSVG,Object.assign({},k))))};WK.default=XTr;var UK={},Vue={exports:{}},qK={},I2e={};Object.defineProperty(I2e,"__esModule",{value:!0});var QTr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};I2e.default=QTr;var ZTr=_e.default,M2e=pe.default;Object.defineProperty(qK,"__esModule",{value:!0});qK.default=void 0;var JTr=M2e(lr),zat=ZTr(d),eIr=M2e(I2e),tIr=M2e(cr),nIr=function(t,n){return zat.createElement(tIr.default,(0,JTr.default)({},t,{ref:n,icon:eIr.default}))},rIr=zat.forwardRef(nIr);qK.default=rIr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(qK);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Vue,Vue.exports);var iIr=Vue.exports;const oIr=_r(_On);var J7={};Object.defineProperty(J7,"__esModule",{value:!0});J7.prepareComponentToken=J7.default=void 0;var sIr=Kt,aIr=gn,MPe=Zt;const lIr=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,sIr.unit)(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},cIr=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),uIr=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,aIr.resetComponent)(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),lIr(e)),cIr(e))}},Bat=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent});J7.prepareComponentToken=Bat;J7.default=(0,MPe.genStyleHooks)("Rate",e=>{const t=(0,MPe.mergeToken)(e,{});return[uIr(t)]},Bat);var Z9=pe.default,dIr=_e.default;Object.defineProperty(UK,"__esModule",{value:!0});UK.default=void 0;var _5=dIr(d),fIr=Z9(iIr),hIr=Z9(St),gIr=Z9(oIr),pIr=Bt,mIr=Z9(gl),vIr=Z9(J7),CIr=Z9(Co),yIr=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 bIr=_5.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,tooltips:s,character:a=_5.createElement(fIr.default,null),disabled:l}=e,c=yIr(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(w,x)=>{let{index:E}=x;return s?_5.createElement(mIr.default,{title:s[E]},w):w},{getPrefixCls:f,direction:h,rate:g}=_5.useContext(pIr.ConfigContext),p=f("rate",n),[m,v,C]=(0,vIr.default)(p),y=Object.assign(Object.assign({},g==null?void 0:g.style),o),b=_5.useContext(CIr.default),S=l??b;return m(_5.createElement(gIr.default,Object.assign({ref:t,character:a,characterRender:u,disabled:S},c,{className:(0,hIr.default)(r,i,v,C,g==null?void 0:g.className),style:y,prefixCls:p,direction:h})))});UK.default=bIr;var T4={},Gue={exports:{}},KK={},P2e={};Object.defineProperty(P2e,"__esModule",{value:!0});var SIr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};P2e.default=SIr;var wIr=_e.default,_2e=pe.default;Object.defineProperty(KK,"__esModule",{value:!0});KK.default=void 0;var xIr=_2e(lr),Hat=wIr(d),EIr=_2e(P2e),RIr=_2e(cr),$Ir=function(t,n){return Hat.createElement(RIr.default,(0,xIr.default)({},t,{ref:n,icon:EIr.default}))},OIr=Hat.forwardRef($Ir);KK.default=OIr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(KK);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Gue,Gue.exports);var TIr=Gue.exports,YK={},IIr=_e.default;Object.defineProperty(YK,"__esModule",{value:!0});YK.default=void 0;var Vn=IIr(d);const MIr=()=>Vn.createElement("svg",{width:"252",height:"294"},Vn.createElement("title",null,"No Found"),Vn.createElement("defs",null,Vn.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),Vn.createElement("g",{fill:"none",fillRule:"evenodd"},Vn.createElement("g",{transform:"translate(0 .012)"},Vn.createElement("mask",{fill:"#fff"}),Vn.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),Vn.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),Vn.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),Vn.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),Vn.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),Vn.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),Vn.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),Vn.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),Vn.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),Vn.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),Vn.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),Vn.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),Vn.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),Vn.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),Vn.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),Vn.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),Vn.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),Vn.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),Vn.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),Vn.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),Vn.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),Vn.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),Vn.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),Vn.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),Vn.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),Vn.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),Vn.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),Vn.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),Vn.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),Vn.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),Vn.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),Vn.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),Vn.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),Vn.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),Vn.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),Vn.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),Vn.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),Vn.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),Vn.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),Vn.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),Vn.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),Vn.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),Vn.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"})));YK.default=MIr;var XK={},PIr=_e.default;Object.defineProperty(XK,"__esModule",{value:!0});XK.default=void 0;var _n=PIr(d);const _Ir=()=>_n.createElement("svg",{width:"254",height:"294"},_n.createElement("title",null,"Server Error"),_n.createElement("defs",null,_n.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),_n.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),_n.createElement("g",{fill:"none",fillRule:"evenodd"},_n.createElement("g",{transform:"translate(0 .067)"},_n.createElement("mask",{fill:"#fff"}),_n.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),_n.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),_n.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),_n.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),_n.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),_n.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),_n.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),_n.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),_n.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),_n.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),_n.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),_n.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),_n.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),_n.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),_n.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),_n.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),_n.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),_n.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),_n.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),_n.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),_n.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),_n.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),_n.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),_n.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),_n.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),_n.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),_n.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),_n.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),_n.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),_n.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),_n.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),_n.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),_n.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),_n.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),_n.createElement("mask",{fill:"#fff"}),_n.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),_n.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),_n.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),_n.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),_n.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),_n.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),_n.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),_n.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),_n.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),_n.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),_n.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"})));XK.default=_Ir;var ex={};Object.defineProperty(ex,"__esModule",{value:!0});ex.prepareComponentToken=ex.default=void 0;var zL=Kt,PPe=Zt;const AIr=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:s,paddingLG:a,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${(0,zL.unit)(e.calc(a).mul(2).equal())} ${(0,zL.unit)(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:a,padding:`${(0,zL.unit)(a)} ${(0,zL.unit)(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:s,"&:last-child":{marginInlineEnd:0}}}}},DIr=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},LIr=e=>[AIr(e),DIr(e)],FIr=e=>LIr(e),jat=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`});ex.prepareComponentToken=jat;ex.default=(0,PPe.genStyleHooks)("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,o=(0,PPe.mergeToken)(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[FIr(o)]},jat);var QK={},NIr=_e.default;Object.defineProperty(QK,"__esModule",{value:!0});QK.default=void 0;var tr=NIr(d);const kIr=()=>tr.createElement("svg",{width:"251",height:"294"},tr.createElement("title",null,"Unauthorized"),tr.createElement("g",{fill:"none",fillRule:"evenodd"},tr.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),tr.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),tr.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),tr.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),tr.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),tr.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),tr.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),tr.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),tr.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),tr.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),tr.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),tr.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),tr.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),tr.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),tr.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),tr.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),tr.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),tr.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),tr.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),tr.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),tr.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),tr.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),tr.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),tr.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),tr.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),tr.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),tr.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),tr.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),tr.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),tr.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),tr.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),tr.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),tr.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),tr.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),tr.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),tr.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),tr.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),tr.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),tr.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),tr.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));QK.default=kIr;var Cv=pe.default,zIr=_e.default;Object.defineProperty(T4,"__esModule",{value:!0});T4.default=T4.IconMap=T4.ExceptionMap=void 0;var Sf=zIr(d),BIr=Cv(Jy),HIr=Cv(av),jIr=Cv($3),VIr=Cv(TIr),Vat=Cv(St),GIr=Bt,WIr=Cv(YK),UIr=Cv(XK),qIr=Cv(ex),KIr=Cv(QK);const YIr=T4.IconMap={success:BIr.default,error:HIr.default,info:jIr.default,warning:VIr.default},i_=T4.ExceptionMap={404:WIr.default,500:UIr.default,403:KIr.default},XIr=Object.keys(i_),QIr=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=(0,Vat.default)(`${t}-icon`);if(XIr.includes(`${r}`)){const s=i_[r];return Sf.createElement("div",{className:`${i} ${t}-image`},Sf.createElement(s,null))}const o=Sf.createElement(YIr[r]);return n===null||n===!1?null:Sf.createElement("div",{className:i},n||o)},ZIr=e=>{let{prefixCls:t,extra:n}=e;return n?Sf.createElement("div",{className:`${t}-extra`},n):null},ZK=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:o,style:s,children:a,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:h,result:g}=Sf.useContext(GIr.ConfigContext),p=f("result",t),[m,v,C]=(0,qIr.default)(p),y=(0,Vat.default)(p,`${p}-${l}`,n,g==null?void 0:g.className,r,{[`${p}-rtl`]:h==="rtl"},v,C),b=Object.assign(Object.assign({},g==null?void 0:g.style),s);return m(Sf.createElement("div",{className:y,style:b},Sf.createElement(QIr,{prefixCls:p,status:l,icon:c}),Sf.createElement("div",{className:`${p}-title`},o),i&&Sf.createElement("div",{className:`${p}-subtitle`},i),Sf.createElement(ZIr,{prefixCls:p,extra:u}),a&&Sf.createElement("div",{className:`${p}-content`},a)))};ZK.PRESENTED_IMAGE_403=i_[403];ZK.PRESENTED_IMAGE_404=i_[404];ZK.PRESENTED_IMAGE_500=i_[500];T4.default=ZK;var JK={};Object.defineProperty(JK,"__esModule",{value:!0});JK.default=void 0;var JIr=gb;JK.default=JIr.Row;var eY={},tY={},o_={},nY={},eMr=_e.default;Object.defineProperty(nY,"__esModule",{value:!0});nY.default=void 0;var Vre=eMr(d);const tMr=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:i,groupSeparator:o="",prefixCls:s}=e;let a;if(typeof n=="function")a=n(t);else{const l=String(t),c=l.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c||l==="-")a=l;else{const u=c[1];let f=c[2]||"0",h=c[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,o),typeof r=="number"&&(h=h.padEnd(r,"0").slice(0,r>0?r:0)),h&&(h=`${i}${h}`),a=[Vre.createElement("span",{key:"int",className:`${s}-content-value-int`},u,f),h&&Vre.createElement("span",{key:"decimal",className:`${s}-content-value-decimal`},h)]}}return Vre.createElement("span",{className:`${s}-content-value`},a)};nY.default=tMr;var tx={};Object.defineProperty(tx,"__esModule",{value:!0});tx.prepareComponentToken=tx.default=void 0;var nMr=gn,_Pe=Zt;const rMr=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:i,titleFontSize:o,colorTextHeading:s,contentFontSize:a,fontFamily:l}=e;return{[t]:Object.assign(Object.assign({},(0,nMr.resetComponent)(e)),{[`${t}-title`]:{marginBottom:n,color:i,fontSize:o},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:s,fontSize:a,fontFamily:l,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},Gat=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}};tx.prepareComponentToken=Gat;tx.default=(0,_Pe.genStyleHooks)("Statistic",e=>{const t=(0,_Pe.mergeToken)(e,{});return[rMr(t)]},Gat);var s_=pe.default,iMr=_e.default;Object.defineProperty(o_,"__esModule",{value:!0});o_.default=void 0;var Zv=iMr(d),oMr=s_(St),sMr=s_(oh),aMr=Bt,lMr=s_(L3),cMr=s_(nY),uMr=s_(tx),dMr=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 fMr=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,valueStyle:o,value:s=0,title:a,valueRender:l,prefix:c,suffix:u,loading:f=!1,formatter:h,precision:g,decimalSeparator:p=".",groupSeparator:m=",",onMouseEnter:v,onMouseLeave:C}=e,y=dMr(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:b,direction:S,statistic:w}=Zv.useContext(aMr.ConfigContext),x=b("statistic",t),[E,R,O]=(0,uMr.default)(x),T=Zv.createElement(cMr.default,{decimalSeparator:p,groupSeparator:m,prefixCls:x,formatter:h,precision:g,value:s}),M=(0,oMr.default)(x,{[`${x}-rtl`]:S==="rtl"},w==null?void 0:w.className,n,r,R,O),_=(0,sMr.default)(y,{aria:!0,data:!0});return E(Zv.createElement("div",Object.assign({},_,{className:M,style:Object.assign(Object.assign({},w==null?void 0:w.style),i),onMouseEnter:v,onMouseLeave:C}),a&&Zv.createElement("div",{className:`${x}-title`},a),Zv.createElement(lMr.default,{paragraph:!1,loading:f,className:`${x}-skeleton`},Zv.createElement("div",{style:o,className:`${x}-content`},c&&Zv.createElement("span",{className:`${x}-content-prefix`},c),l?l(T):T,u&&Zv.createElement("span",{className:`${x}-content-suffix`},u)))))};o_.default=fMr;var rY={};Object.defineProperty(rY,"__esModule",{value:!0});rY.formatCountdown=gMr;rY.formatTimeStr=Wat;const hMr=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Wat(e,t){let n=e;const r=/\[[^\]]*]/g,i=(t.match(r)||[]).map(l=>l.slice(1,-1)),o=t.replace(r,"[]"),s=hMr.reduce((l,c)=>{let[u,f]=c;if(l.includes(u)){const h=Math.floor(n/f);return n-=h*f,l.replace(new RegExp(`${u}+`,"g"),g=>{const p=g.length;return h.toString().padStart(p,"0")})}return l},o);let a=0;return s.replace(r,()=>{const l=i[a];return a+=1,l})}function gMr(e,t){const{format:n=""}=t,r=new Date(e).getTime(),i=Date.now(),o=Math.max(r-i,0);return Wat(o,n)}var Uat=pe.default,pMr=_e.default;Object.defineProperty(tY,"__esModule",{value:!0});tY.default=void 0;var ZN=pMr(d),mMr=Uat(x9),vMr=Xi,CMr=Uat(o_),yMr=rY,bMr=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 SMr=1e3/30;function wMr(e){return new Date(e).getTime()}const xMr=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:i}=e,o=bMr(e,["value","format","onChange","onFinish"]),s=(0,mMr.default)(),a=ZN.useRef(null),l=()=>{i==null||i(),a.current&&(clearInterval(a.current),a.current=null)},c=()=>{const h=wMr(t);h>=Date.now()&&(a.current=setInterval(()=>{s(),r==null||r(h-Date.now()),h<Date.now()&&l()},SMr))};ZN.useEffect(()=>(c(),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[t]);const u=(h,g)=>(0,yMr.formatCountdown)(h,Object.assign(Object.assign({},g),{format:n})),f=h=>(0,vMr.cloneElement)(h,{title:void 0});return ZN.createElement(CMr.default,Object.assign({},o,{value:t,valueRender:f,formatter:u}))};tY.default=ZN.memo(xMr);var qat=pe.default;Object.defineProperty(eY,"__esModule",{value:!0});eY.default=void 0;var EMr=qat(tY),Kat=qat(o_);Kat.default.Countdown=EMr.default;eY.default=Kat.default;var iY={};const RMr=_r(LOn);var nx={},oY={};Object.defineProperty(oY,"__esModule",{value:!0});oY.default=void 0;var $Mr=Kt;const OMr=e=>{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:i}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:i,lineHeight:(0,$Mr.unit)(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}};oY.default=OMr;var sY={};Object.defineProperty(sY,"__esModule",{value:!0});sY.default=void 0;const TMr=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}};sY.default=TMr;var aY={};Object.defineProperty(aY,"__esModule",{value:!0});aY.default=void 0;var N6=Kt;const IMr=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:i}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),s={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${(0,N6.unit)(o)} ${(0,N6.unit)(e.paddingXXS)} 0`,margin:`0 ${(0,N6.unit)(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${(0,N6.unit)(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${(0,N6.unit)(e.lineWidth)} ${e.lineType} ${i}`}},s),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:i},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i,border:`${(0,N6.unit)(e.lineWidth)} ${e.lineType} ${i}`}},s),"&-error":s,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${(0,N6.unit)(e.calc(n).div(2).equal())})`,top:0}},s),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}};aY.default=IMr;var lY={};Object.defineProperty(lY,"__esModule",{value:!0});lY.default=void 0;var MMr=Kt;const PMr=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:i}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${(0,MMr.unit)(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(i).div(2).add(e.controlHeightLG).equal()}}}}}};lY.default=PMr;var cY={};Object.defineProperty(cY,"__esModule",{value:!0});cY.default=void 0;var BL=Kt,_Mr=gn;const AMr=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:i,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},_Mr.textEllipsis),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${(0,BL.unit)(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${(0,BL.unit)(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,BL.unit)(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:i,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${(0,BL.unit)(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}};cY.default=AMr;var uY={};Object.defineProperty(uY,"__esModule",{value:!0});uY.default=void 0;var HL=Kt;const DMr=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:i,processIconColor:o,marginXXS:s,lineWidthBold:a,lineWidth:l,paddingXXS:c}=e,u=e.calc(r).add(e.calc(a).mul(4).equal()).equal(),f=e.calc(i).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:s,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(i).div(2).sub(l).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${(0,HL.unit)(u)} !important`,height:`${(0,HL.unit)(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(i).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${(0,HL.unit)(f)} !important`,height:`${(0,HL.unit)(f)} !important`}}}}};uY.default=DMr;var dY={};Object.defineProperty(dY,"__esModule",{value:!0});dY.default=void 0;var A5=Kt;const LMr=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:i,dotSize:o,motionDurationSlow:s}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${(0,A5.unit)(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${(0,A5.unit)(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:(0,A5.unit)(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${s}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(i).div(2).equal(),width:i,height:i,lineHeight:(0,A5.unit)(i),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(i).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,A5.unit)(e.calc(o).add(e.paddingXS).equal())} 0 ${(0,A5.unit)(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}};dY.default=LMr;var fY={};Object.defineProperty(fY,"__esModule",{value:!0});fY.default=void 0;const FMr=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}};fY.default=FMr;var hY={};Object.defineProperty(hY,"__esModule",{value:!0});hY.default=void 0;var jL=Kt;const NMr=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:i,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${(0,jL.unit)(e.marginXS)}`,fontSize:r,lineHeight:(0,jL.unit)(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:i,lineHeight:(0,jL.unit)(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:i},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:(0,jL.unit)(n),transform:"none"}}}}};hY.default=NMr;var gY={};Object.defineProperty(gY,"__esModule",{value:!0});gY.default=void 0;var D5=Kt;const kMr=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:(0,D5.unit)(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${(0,D5.unit)(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${(0,D5.unit)(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${(0,D5.unit)(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${(0,D5.unit)(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:(0,D5.unit)(n)}}}}};gY.default=kMr;var t1=pe.default;Object.defineProperty(nx,"__esModule",{value:!0});nx.prepareComponentToken=nx.default=void 0;var Gre=Kt,Yat=gn,APe=Zt,zMr=t1(oY),BMr=t1(sY),HMr=t1(aY),jMr=t1(lY),VMr=t1(cY),GMr=t1(uY),WMr=t1(dY),UMr=t1(fY),qMr=t1(hY),KMr=t1(gY);const YMr="wait",XMr="process",QMr="finish",ZMr="error",VL=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,i=`${e}TitleColor`,o=`${e}DescriptionColor`,s=`${e}TailColor`,a=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[a],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[i],"&::after":{backgroundColor:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[s]}}},JMr=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,i=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[i]:Object.assign({},(0,Yat.genFocusOutline)(e))}},[`${i}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[i]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:(0,Gre.unit)(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${(0,Gre.unit)(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:(0,Gre.unit)(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},VL(YMr,e)),VL(XMr,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),VL(QMr,e)),VL(ZMr,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},ePr=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},tPr=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Yat.resetComponent)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),JMr(e)),ePr(e)),(0,zMr.default)(e)),(0,qMr.default)(e)),(0,KMr.default)(e)),(0,BMr.default)(e)),(0,jMr.default)(e)),(0,WMr.default)(e)),(0,VMr.default)(e)),(0,UMr.default)(e)),(0,GMr.default)(e)),(0,HMr.default)(e))}},Xat=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive});nx.prepareComponentToken=Xat;nx.default=(0,APe.genStyleHooks)("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:i,colorPrimary:o,colorTextDescription:s,colorTextQuaternary:a,colorError:l,colorBorderSecondary:c,colorSplit:u}=e,f=(0,APe.mergeToken)(e,{processIconColor:r,processTitleColor:i,processDescriptionColor:i,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:u,waitTitleColor:s,waitDescriptionColor:s,waitTailColor:u,waitDotColor:t,finishIconColor:o,finishTitleColor:i,finishDescriptionColor:s,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:u,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:a,inlineTailColor:c});return[tPr(f)]},Xat);var A2e={},nPr=pe.default,rPr=_e.default;Object.defineProperty(A2e,"__esModule",{value:!0});A2e.default=aPr;var iPr=rPr(d),oPr=nPr(qs);function sPr(e){return e.filter(t=>t)}function aPr(e,t){if(e)return e;const n=(0,oPr.default)(t).map(r=>{if(iPr.isValidElement(r)){const{props:i}=r;return Object.assign({},i)}return null});return sPr(n)}var n1=pe.default,lPr=_e.default;Object.defineProperty(iY,"__esModule",{value:!0});iY.default=void 0;var Jv=lPr(d),cPr=n1(aU),uPr=n1(Td),dPr=n1(St),Qat=n1(RMr),fPr=Bt,hPr=n1(io),gPr=n1(Ym),pPr=n1(Q9),mPr=n1(gl),vPr=n1(nx),CPr=n1(A2e),yPr=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 Zat=e=>{const{percent:t,size:n,className:r,rootClassName:i,direction:o,items:s,responsive:a=!0,current:l=0,children:c,style:u}=e,f=yPr(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:h}=(0,gPr.default)(a),{getPrefixCls:g,direction:p,steps:m}=Jv.useContext(fPr.ConfigContext),v=Jv.useMemo(()=>a&&h?"vertical":o,[h,o]),C=(0,hPr.default)(n),y=g("steps",e.prefixCls),[b,S,w]=(0,vPr.default)(y),x=e.type==="inline",E=g("",e.iconPrefix),R=(0,CPr.default)(s,c),O=x?void 0:t,T=Object.assign(Object.assign({},m==null?void 0:m.style),u),M=(0,dPr.default)(m==null?void 0:m.className,{[`${y}-rtl`]:p==="rtl",[`${y}-with-progress`]:O!==void 0},r,i,S,w),_={finish:Jv.createElement(cPr.default,{className:`${y}-finish-icon`}),error:Jv.createElement(uPr.default,{className:`${y}-error-icon`})},F=k=>{let{node:L,status:I}=k;if(I==="process"&&O!==void 0){const A=C==="small"?32:40;return Jv.createElement("div",{className:`${y}-progress-icon`},Jv.createElement(pPr.default,{type:"circle",percent:O,size:A,strokeWidth:4,format:()=>null}),L)}return L},D=(k,L)=>k.description?Jv.createElement(mPr.default,{title:k.description},L):L;return b(Jv.createElement(Qat.default,Object.assign({icons:_},f,{style:T,current:l,size:C,items:R,itemRender:x?D:void 0,stepIcon:F,direction:v,prefixCls:y,iconPrefix:E,className:M})))};Zat.Step=Qat.default.Step;iY.default=Zat;var pY={};const bPr=_r(NOn);var rx={};Object.defineProperty(rx,"__esModule",{value:!0});rx.prepareComponentToken=rx.default=void 0;var i4=Kt,SPr=Us,DPe=gn,LPe=Zt;const wPr=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:s,handleSizeSM:a,calc:l}=e,c=`${t}-inner`,u=(0,i4.unit)(l(a).add(l(r).mul(2)).equal()),f=(0,i4.unit)(l(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:(0,i4.unit)(n),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:a,height:a},[`${t}-loading-icon`]:{top:l(l(a).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:s,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${(0,i4.unit)(l(a).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},xPr=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},EPr=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:s}=e,a=`${t}-handle`;return{[t]:{[a]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:s(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${a}`]:{insetInlineStart:`calc(100% - ${(0,i4.unit)(s(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${a}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${a}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},RPr=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:s,calc:a}=e,l=`${t}-inner`,c=(0,i4.unit)(a(s).add(a(r).mul(2)).equal()),u=(0,i4.unit)(a(o).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:a(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:a(r).mul(2).equal(),marginInlineEnd:a(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:a(r).mul(-1).mul(2).equal(),marginInlineEnd:a(r).mul(2).equal()}}}}}},$Pr=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,DPe.resetComponent)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:(0,i4.unit)(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,DPe.genFocusStyle)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Jat=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,s=r/2,a=2,l=o-a*2,c=s-a*2;return{trackHeight:o,trackHeightSM:s,trackMinWidth:l*2+a*4,trackMinWidthSM:c*2+a*2,trackPadding:a,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new SPr.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+a+a*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+a+a*2}};rx.prepareComponentToken=Jat;rx.default=(0,LPe.genStyleHooks)("Switch",e=>{const t=(0,LPe.mergeToken)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[$Pr(t),RPr(t),EPr(t),xPr(t),wPr(t)]},Jat);var Z3=pe.default,OPr=_e.default;Object.defineProperty(pY,"__esModule",{value:!0});pY.default=void 0;var k6=OPr(d),TPr=Z3(Jg),IPr=Z3(St),MPr=Z3(bPr),PPr=Z3(fa),_Pr=Z3(M3),APr=Bt,DPr=Z3(Co),LPr=Z3(io),FPr=Z3(rx),NPr=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 kPr=k6.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:i,loading:o,className:s,rootClassName:a,style:l,checked:c,value:u,defaultChecked:f,defaultValue:h,onChange:g}=e,p=NPr(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,v]=(0,PPr.default)(!1,{value:c??u,defaultValue:f??h}),{getPrefixCls:C,direction:y,switch:b}=k6.useContext(APr.ConfigContext),S=k6.useContext(DPr.default),w=(i??S)||o,x=C("switch",n),E=k6.createElement("div",{className:`${x}-handle`},o&&k6.createElement(TPr.default,{className:`${x}-loading-icon`})),[R,O,T]=(0,FPr.default)(x),M=(0,LPr.default)(r),_=(0,IPr.default)(b==null?void 0:b.className,{[`${x}-small`]:M==="small",[`${x}-loading`]:o,[`${x}-rtl`]:y==="rtl"},s,a,O,T),F=Object.assign(Object.assign({},b==null?void 0:b.style),l),D=function(){v(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return R(k6.createElement(_Pr.default,{component:"Switch"},k6.createElement(MPr.default,Object.assign({},p,{checked:m,onChange:D,prefixCls:x,className:_,style:F,disabled:w,ref:t,loadingIcon:E}))))}),elt=kPr;elt.__ANT_SWITCH=!0;pY.default=elt;var mY={},vY={};const a_=_r(JTn);var CY={};Object.defineProperty(CY,"__esModule",{value:!0});CY.default=void 0;const zPr=e=>null;CY.default=zPr;var yY={};Object.defineProperty(yY,"__esModule",{value:!0});yY.default=void 0;const BPr=e=>null;yY.default=BPr;var Zu={},D2e={},$R={},z6={},FPe;function HPr(){if(FPe)return z6;FPe=1;var e=ua;Object.defineProperty(z6,"__esModule",{value:!0}),z6.UnstableContext=z6.TreeContext=void 0;var t=r(d);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(i&&i.__esModule)return i;if(i===null||e(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"&&Object.prototype.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}return z6.TreeContext=t.createContext(null),z6.UnstableContext=t.createContext({}),z6}var OR={},NPe;function jPr(){if(NPe)return OR;NPe=1;var e=pe,t=ua;Object.defineProperty(OR,"__esModule",{value:!0}),OR.default=void 0;var n=e($M),r=e(St),i=s(d);function o(l){if(typeof WeakMap!="function")return null;var c=new WeakMap,u=new WeakMap;return(o=function(h){return h?u:c})(l)}function s(l,c){if(l&&l.__esModule)return l;if(l===null||t(l)!="object"&&typeof l!="function")return{default:l};var u=o(c);if(u&&u.has(l))return u.get(l);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in l)if(g!=="default"&&Object.prototype.hasOwnProperty.call(l,g)){var p=h?Object.getOwnPropertyDescriptor(l,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=l[g]}return f.default=l,u&&u.set(l,f),f}var a=function(c){for(var u=c.prefixCls,f=c.level,h=c.isStart,g=c.isEnd,p="".concat(u,"-indent-unit"),m=[],v=0;v<f;v+=1)m.push(i.createElement("span",{key:v,className:(0,r.default)(p,(0,n.default)((0,n.default)({},"".concat(p,"-start"),h[v]),"".concat(p,"-end"),g[v]))}));return i.createElement("span",{"aria-hidden":"true",className:"".concat(u,"-indent")},m)};return OR.default=i.memo(a),OR}var GL={},kPe;function bY(){if(kPe)return GL;kPe=1,Object.defineProperty(GL,"__esModule",{value:!0}),GL.default=e;function e(t,n){return t[n]}return GL}var pl={},J3=pe;Object.defineProperty(pl,"__esModule",{value:!0});pl.convertDataToEntities=ZPr;pl.convertNodePropsToEventData=e_r;pl.convertTreeToData=XPr;pl.fillFieldNames=F2e;pl.flattenTreeData=QPr;pl.getKey=SY;pl.getPosition=L2e;pl.getTreeNodeProps=JPr;pl.isTreeNode=tlt;pl.traverseDataNodes=nlt;pl.warningWithoutKey=YPr;var VPr=J3(ua),JN=J3(zr),Wue=J3(Eu),GPr=J3(Qy),WPr=J3(qs),UPr=J3(mi),JB=J3(da),qPr=J3(bY()),KPr=["children"];function L2e(e,t){return"".concat(e,"-").concat(t)}function tlt(e){return e&&e.type&&e.type.isTreeNode}function SY(e,t){return e??t}function F2e(e){var t=e||{},n=t.title,r=t._title,i=t.key,o=t.children,s=n||"title";return{title:s,_title:r||[s],key:i||"key",children:o||"children"}}function YPr(e,t){var n=new Map;function r(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(i||[]).forEach(function(s){var a=s[t.key],l=s[t.children];(0,JB.default)(a!=null,"Tree node must have a certain key: [".concat(o).concat(a,"]"));var c=String(a);(0,JB.default)(!n.has(c)||a===null||a===void 0,"Same 'key' exist in the Tree: ".concat(c)),n.set(c,!0),r(l,"".concat(o).concat(c," > "))})}r(e)}function XPr(e){function t(n){var r=(0,WPr.default)(n);return r.map(function(i){if(!tlt(i))return(0,JB.default)(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var o=i.key,s=i.props,a=s.children,l=(0,GPr.default)(s,KPr),c=(0,Wue.default)({key:o},l),u=t(a);return u.length&&(c.children=u),c}).filter(function(i){return i})}return t(e)}function QPr(e,t,n){var r=F2e(n),i=r._title,o=r.key,s=r.children,a=new Set(t===!0?[]:t),l=[];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(h,g){for(var p=L2e(f?f.pos:"0",g),m=SY(h[o],p),v,C=0;C<i.length;C+=1){var y=i[C];if(h[y]!==void 0){v=h[y];break}}var b=Object.assign((0,UPr.default)(h,[].concat((0,JN.default)(i),[o,s])),{title:v,key:m,parent:f,pos:p,children:null,data:h,isStart:[].concat((0,JN.default)(f?f.isStart:[]),[g===0]),isEnd:[].concat((0,JN.default)(f?f.isEnd:[]),[g===u.length-1])});return l.push(b),t===!0||a.has(m)?b.children=c(h[s]||[],b):b.children=[],b})}return c(e),l}function nlt(e,t,n){var r={};(0,VPr.default)(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,o=i.childrenPropName,s=i.externalGetKey,a=i.fieldNames,l=F2e(a),c=l.key,u=l.children,f=o||u,h;s?typeof s=="string"?h=function(m){return m[s]}:typeof s=="function"&&(h=function(m){return s(m)}):h=function(m,v){return SY(m[c],v)};function g(p,m,v,C){var y=p?p[f]:e,b=p?L2e(v.pos,m):"0",S=p?[].concat((0,JN.default)(C),[p]):[];if(p){var w=h(p,b),x={node:p,index:m,pos:b,key:w,parentPos:v.node?v.pos:null,level:v.level+1,nodes:S};t(x)}y&&y.forEach(function(E,R){g(E,R,{node:p,pos:b,level:v?v.level+1:-1},S)})}g(null)}function ZPr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,o=t.externalGetKey,s=t.childrenPropName,a=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=o||l,u={},f={},h={posEntities:u,keyEntities:f};return n&&(h=n(h)||h),nlt(e,function(g){var p=g.node,m=g.index,v=g.pos,C=g.key,y=g.parentPos,b=g.level,S=g.nodes,w={node:p,nodes:S,index:m,key:C,pos:v,level:b},x=SY(C,v);u[v]=w,f[x]=w,w.parent=u[y],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,h)},{externalGetKey:c,childrenPropName:s,fieldNames:a}),i&&i(h),h}function JPr(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,s=t.checkedKeys,a=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=(0,qPr.default)(u,e),h={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:s.indexOf(e)!==-1,halfChecked:a.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return h}function e_r(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,s=e.loading,a=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,h=e.active,g=e.eventKey,p=(0,Wue.default)((0,Wue.default)({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:s,halfChecked:a,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:h,key:g});return"props"in p||Object.defineProperty(p,"props",{get:function(){return(0,JB.default)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}var zPe;function t_r(){if(zPe)return $R;zPe=1;var e=pe;Object.defineProperty($R,"__esModule",{value:!0}),$R.default=void 0;var t=e(lr),n=e($M),r=e(Eu),i=e(Xy),o=e(Qy),s=e(d),a=e(St),l=e(oh),c=HPr(),u=e(jPr()),f=e(bY()),h=pl,g=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],p="open",m="close",v="---",C=function(b){var S,w,x=b.eventKey,E=b.className,R=b.style,O=b.dragOver,T=b.dragOverGapTop,M=b.dragOverGapBottom,_=b.isLeaf,F=b.isStart,D=b.isEnd,k=b.expanded,L=b.selected,I=b.checked,A=b.halfChecked,N=b.loading,B=b.domRef,z=b.active,j=b.data,W=b.onMouseMove,G=b.selectable,K=(0,o.default)(b,g),q=s.default.useContext(c.TreeContext),X=s.default.useContext(c.UnstableContext),Q=s.default.useRef(null),te=s.default.useState(!1),ne=(0,i.default)(te,2),Z=ne[0],ee=ne[1],J=s.default.useMemo(function(){var ot;return!!(q.disabled||b.disabled||(ot=X.nodeDisabled)!==null&&ot!==void 0&&ot.call(X,j))},[q.disabled,b.disabled,X.nodeDisabled,j]),oe=s.default.useMemo(function(){return!q.checkable||b.checkable===!1?!1:q.checkable},[q.checkable,b.checkable]),le=function(nt){J||q.onNodeSelect(nt,(0,h.convertNodePropsToEventData)(b))},ge=function(nt){J||!oe||b.disableCheckbox||q.onNodeCheck(nt,(0,h.convertNodePropsToEventData)(b),!I)},he=s.default.useMemo(function(){return typeof G=="boolean"?G:q.selectable},[G,q.selectable]),ye=function(nt){q.onNodeClick(nt,(0,h.convertNodePropsToEventData)(b)),he?le(nt):ge(nt)},ue=function(nt){q.onNodeDoubleClick(nt,(0,h.convertNodePropsToEventData)(b))},ve=function(nt){q.onNodeMouseEnter(nt,(0,h.convertNodePropsToEventData)(b))},de=function(nt){q.onNodeMouseLeave(nt,(0,h.convertNodePropsToEventData)(b))},xe=function(nt){q.onNodeContextMenu(nt,(0,h.convertNodePropsToEventData)(b))},Ee=s.default.useMemo(function(){return!!(q.draggable&&(!q.draggable.nodeDraggable||q.draggable.nodeDraggable(j)))},[q.draggable,j]),De=function(nt){nt.stopPropagation(),ee(!0),q.onNodeDragStart(nt,b);try{nt.dataTransfer.setData("text/plain","")}catch{}},Be=function(nt){nt.preventDefault(),nt.stopPropagation(),q.onNodeDragEnter(nt,b)},Ge=function(nt){nt.preventDefault(),nt.stopPropagation(),q.onNodeDragOver(nt,b)},Ue=function(nt){nt.stopPropagation(),q.onNodeDragLeave(nt,b)},We=function(nt){nt.stopPropagation(),ee(!1),q.onNodeDragEnd(nt,b)},Ve=function(nt){nt.preventDefault(),nt.stopPropagation(),ee(!1),q.onNodeDrop(nt,b)},Fe=function(nt){N||q.onNodeExpand(nt,(0,h.convertNodePropsToEventData)(b))},ke=s.default.useMemo(function(){var ot=(0,f.default)(q.keyEntities,x)||{},nt=ot.children;return!!(nt||[]).length},[q.keyEntities,x]),Ye=s.default.useMemo(function(){return _===!1?!1:_||!q.loadData&&!ke||q.loadData&&b.loaded&&!ke},[_,q.loadData,ke,b.loaded]);s.default.useEffect(function(){N||typeof q.loadData=="function"&&k&&!Ye&&!b.loaded&&q.onNodeLoad((0,h.convertNodePropsToEventData)(b))},[N,q.loadData,q.onNodeLoad,k,Ye,b]);var ze=s.default.useMemo(function(){var ot;return(ot=q.draggable)!==null&&ot!==void 0&&ot.icon?s.default.createElement("span",{className:"".concat(q.prefixCls,"-draggable-icon")},q.draggable.icon):null},[q.draggable]),Re=function(nt){var fe=b.switcherIcon||q.switcherIcon;return typeof fe=="function"?fe((0,r.default)((0,r.default)({},b),{},{isLeaf:nt})):fe},Le=function(){if(Ye){var nt=Re(!0);return nt!==!1?s.default.createElement("span",{className:(0,a.default)("".concat(q.prefixCls,"-switcher"),"".concat(q.prefixCls,"-switcher-noop"))},nt):null}var fe=Re(!1);return fe!==!1?s.default.createElement("span",{onClick:Fe,className:(0,a.default)("".concat(q.prefixCls,"-switcher"),"".concat(q.prefixCls,"-switcher_").concat(k?p:m))},fe):null},Me=s.default.useMemo(function(){if(!oe)return null;var ot=typeof oe!="boolean"?oe:null;return s.default.createElement("span",{className:(0,a.default)("".concat(q.prefixCls,"-checkbox"),(0,n.default)((0,n.default)((0,n.default)({},"".concat(q.prefixCls,"-checkbox-checked"),I),"".concat(q.prefixCls,"-checkbox-indeterminate"),!I&&A),"".concat(q.prefixCls,"-checkbox-disabled"),J||b.disableCheckbox)),onClick:ge,role:"checkbox","aria-checked":A?"mixed":I,"aria-disabled":J||b.disableCheckbox,"aria-label":"Select ".concat(typeof b.title=="string"?b.title:"tree node")},ot)},[oe,I,A,J,b.disableCheckbox,b.title]),be=s.default.useMemo(function(){return Ye?null:k?p:m},[Ye,k]),je=s.default.useMemo(function(){return s.default.createElement("span",{className:(0,a.default)("".concat(q.prefixCls,"-iconEle"),"".concat(q.prefixCls,"-icon__").concat(be||"docu"),(0,n.default)({},"".concat(q.prefixCls,"-icon_loading"),N))})},[q.prefixCls,be,N]),Xe=s.default.useMemo(function(){var ot=!!q.draggable,nt=!b.disabled&&ot&&q.dragOverNodeKey===x;return nt?q.dropIndicatorRender({dropPosition:q.dropPosition,dropLevelOffset:q.dropLevelOffset,indent:q.indent,prefixCls:q.prefixCls,direction:q.direction}):null},[q.dropPosition,q.dropLevelOffset,q.indent,q.prefixCls,q.direction,q.draggable,q.dragOverNodeKey,q.dropIndicatorRender]),ft=s.default.useMemo(function(){var ot=b.title,nt=ot===void 0?v:ot,fe="".concat(q.prefixCls,"-node-content-wrapper"),Te;if(q.showIcon){var $e=b.icon||q.icon;Te=$e?s.default.createElement("span",{className:(0,a.default)("".concat(q.prefixCls,"-iconEle"),"".concat(q.prefixCls,"-icon__customize"))},typeof $e=="function"?$e(b):$e):je}else q.loadData&&N&&(Te=je);var He;return typeof nt=="function"?He=nt(j):q.titleRender?He=q.titleRender(j):He=nt,s.default.createElement("span",{ref:Q,title:typeof nt=="string"?nt:"",className:(0,a.default)(fe,"".concat(fe,"-").concat(be||"normal"),(0,n.default)({},"".concat(q.prefixCls,"-node-selected"),!J&&(L||Z))),onMouseEnter:ve,onMouseLeave:de,onContextMenu:xe,onClick:ye,onDoubleClick:ue},Te,s.default.createElement("span",{className:"".concat(q.prefixCls,"-title")},He),Xe)},[q.prefixCls,q.showIcon,b,q.icon,je,q.titleRender,j,be,ve,de,xe,ye,ue]),Tt=(0,l.default)(K,{aria:!0,data:!0}),tt=(0,f.default)(q.keyEntities,x)||{},pt=tt.level,$t=D[D.length-1],wt=!J&&Ee,It=q.draggingNodeKey===x,Ct=G!==void 0?{"aria-selected":!!G}:void 0;return s.default.createElement("div",(0,t.default)({ref:B,role:"treeitem","aria-expanded":_?void 0:k,className:(0,a.default)(E,"".concat(q.prefixCls,"-treenode"),(w={},(0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)(w,"".concat(q.prefixCls,"-treenode-disabled"),J),"".concat(q.prefixCls,"-treenode-switcher-").concat(k?"open":"close"),!_),"".concat(q.prefixCls,"-treenode-checkbox-checked"),I),"".concat(q.prefixCls,"-treenode-checkbox-indeterminate"),A),"".concat(q.prefixCls,"-treenode-selected"),L),"".concat(q.prefixCls,"-treenode-loading"),N),"".concat(q.prefixCls,"-treenode-active"),z),"".concat(q.prefixCls,"-treenode-leaf-last"),$t),"".concat(q.prefixCls,"-treenode-draggable"),Ee),"dragging",It),(0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)(w,"drop-target",q.dropTargetKey===x),"drop-container",q.dropContainerKey===x),"drag-over",!J&&O),"drag-over-gap-top",!J&&T),"drag-over-gap-bottom",!J&&M),"filter-node",(S=q.filterTreeNode)===null||S===void 0?void 0:S.call(q,(0,h.convertNodePropsToEventData)(b))))),style:R,draggable:wt,onDragStart:wt?De:void 0,onDragEnter:Ee?Be:void 0,onDragOver:Ee?Ge:void 0,onDragLeave:Ee?Ue:void 0,onDrop:Ee?Ve:void 0,onDragEnd:Ee?We:void 0,onMouseMove:W},Ct,Tt),s.default.createElement(u.default,{prefixCls:q.prefixCls,level:pt,isStart:F,isEnd:D}),ze,Le(),Me,ft)};return C.isTreeNode=1,$R.default=C,$R}(function(e){var t=pe;Object.defineProperty(e,"__esModule",{value:!0}),e.arrAdd=g,e.arrDel=h,e.calcDropPosition=y,e.calcSelectedKeys=b,e.conductExpandParent=E,e.convertDataToTree=w,e.getDragChildrenKeys=m,Object.defineProperty(e,"getPosition",{enumerable:!0,get:function(){return u.getPosition}}),e.isFirstChild=C,e.isLastChild=v,Object.defineProperty(e,"isTreeNode",{enumerable:!0,get:function(){return u.isTreeNode}}),e.parseCheckedKeys=x,e.posToArr=p;var n=t(zr),r=t(ua),i=t(lr),o=t(Qy),s=t(da),a=t(d),l=t(t_r()),c=t(bY()),u=pl,f=["children"];function h(R,O){if(!R)return[];var T=R.slice(),M=T.indexOf(O);return M>=0&&T.splice(M,1),T}function g(R,O){var T=(R||[]).slice();return T.indexOf(O)===-1&&T.push(O),T}function p(R){return R.split("-")}function m(R,O){var T=[],M=(0,c.default)(O,R);function _(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];F.forEach(function(D){var k=D.key,L=D.children;T.push(k),_(L)})}return _(M.children),T}function v(R){if(R.parent){var O=p(R.pos);return Number(O[O.length-1])===R.parent.children.length-1}return!1}function C(R){var O=p(R.pos);return Number(O[O.length-1])===0}function y(R,O,T,M,_,F,D,k,L,I){var A,N=R.clientX,B=R.clientY,z=R.target.getBoundingClientRect(),j=z.top,W=z.height,G=(I==="rtl"?-1:1)*(((_==null?void 0:_.x)||0)-N),K=(G-12)/M,q=L.filter(function(ve){var de;return(de=k[ve])===null||de===void 0||(de=de.children)===null||de===void 0?void 0:de.length}),X=(0,c.default)(k,T.eventKey);if(B<j+W/2){var Q=D.findIndex(function(ve){return ve.key===X.key}),te=Q<=0?0:Q-1,ne=D[te].key;X=(0,c.default)(k,ne)}var Z=X.key,ee=X,J=X.key,oe=0,le=0;if(!q.includes(Z))for(var ge=0;ge<K&&v(X);ge+=1)X=X.parent,le+=1;var he=O.data,ye=X.node,ue=!0;return C(X)&&X.level===0&&B<j+W/2&&F({dragNode:he,dropNode:ye,dropPosition:-1})&&X.key===T.eventKey?oe=-1:(ee.children||[]).length&&q.includes(J)?F({dragNode:he,dropNode:ye,dropPosition:0})?oe=0:ue=!1:le===0?K>-1.5?F({dragNode:he,dropNode:ye,dropPosition:1})?oe=1:ue=!1:F({dragNode:he,dropNode:ye,dropPosition:0})?oe=0:F({dragNode:he,dropNode:ye,dropPosition:1})?oe=1:ue=!1:F({dragNode:he,dropNode:ye,dropPosition:1})?oe=1:ue=!1,{dropPosition:oe,dropLevelOffset:le,dropTargetKey:X.key,dropTargetPos:X.pos,dragOverNodeKey:J,dropContainerKey:oe===0?null:((A=X.parent)===null||A===void 0?void 0:A.key)||null,dropAllowed:ue}}function b(R,O){if(R){var T=O.multiple;return T?R.slice():R.length?[R[0]]:R}}var S=function(O){return O};function w(R,O){if(!R)return[];var T=O||{},M=T.processProps,_=M===void 0?S:M,F=Array.isArray(R)?R:[R];return F.map(function(D){var k=D.children,L=(0,o.default)(D,f),I=w(k,O);return a.default.createElement(l.default,(0,i.default)({key:L.key},_(L)),I)})}function x(R){if(!R)return null;var O;if(Array.isArray(R))O={checkedKeys:R,halfCheckedKeys:void 0};else if((0,r.default)(R)==="object")O={checkedKeys:R.checked||void 0,halfCheckedKeys:R.halfChecked||void 0};else return(0,s.default)(!1,"`checkedKeys` is not an array or an object"),null;return O}function E(R,O){var T=new Set;function M(_){if(!T.has(_)){var F=(0,c.default)(O,_);if(F){T.add(_);var D=F.parent,k=F.node;k.disabled||D&&M(D.key)}}}return(R||[]).forEach(function(_){M(_)}),(0,n.default)(T)}})(D2e);var wY={},rlt=pe;Object.defineProperty(wY,"__esModule",{value:!0});wY.conductCheck=s_r;wY.isCheckDisabled=olt;var n_r=rlt(da),r_r=rlt(bY());function ilt(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function olt(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function i_r(e,t,n,r){for(var i=new Set(e),o=new Set,s=0;s<=n;s+=1){var a=t.get(s)||new Set;a.forEach(function(f){var h=f.key,g=f.node,p=f.children,m=p===void 0?[]:p;i.has(h)&&!r(g)&&m.filter(function(v){return!r(v.node)}).forEach(function(v){i.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var h=f.parent,g=f.node;if(!(r(g)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(h.key);return}var p=!0,m=!1;(h.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var C=v.key,y=i.has(C);p&&!y&&(p=!1),!m&&(y||o.has(C))&&(m=!0)}),p&&i.add(h.key),m&&o.add(h.key),l.add(h.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(ilt(o,i))}}function o_r(e,t,n,r,i){for(var o=new Set(e),s=new Set(t),a=0;a<=r;a+=1){var l=n.get(a)||new Set;l.forEach(function(h){var g=h.key,p=h.node,m=h.children,v=m===void 0?[]:m;!o.has(g)&&!s.has(g)&&!i(p)&&v.filter(function(C){return!i(C.node)}).forEach(function(C){o.delete(C.key)})})}s=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(h){var g=h.parent,p=h.node;if(!(i(p)||!h.parent||c.has(h.parent.key))){if(i(h.parent.node)){c.add(g.key);return}var m=!0,v=!1;(g.children||[]).filter(function(C){return!i(C.node)}).forEach(function(C){var y=C.key,b=o.has(y);m&&!b&&(m=!1),!v&&(b||s.has(y))&&(v=!0)}),m||o.delete(g.key),v&&s.add(g.key),c.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(ilt(s,o))}}function s_r(e,t,n,r){var i=[],o;r?o=r:o=olt;var s=new Set(e.filter(function(u){var f=!!(0,r_r.default)(n,u);return f||i.push(u),f})),a=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],h=f.level,g=a.get(h);g||(g=new Set,a.set(h,g)),g.add(f),l=Math.max(l,h)}),(0,n_r.default)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=i_r(s,a,l,o):c=o_r(s,t.halfCheckedKeys,a,l,o),c}var xY={};Object.defineProperty(xY,"__esModule",{value:!0});xY.default=a_r;var BPe=d;function a_r(e){const[t,n]=(0,BPe.useState)(null);return[(0,BPe.useCallback)((o,s,a)=>{const l=t??o,c=Math.min(l||0,o),u=Math.max(l||0,o),f=s.slice(c,u+1).map(p=>e(p)),h=f.some(p=>!a.has(p)),g=[];return f.forEach(p=>{h?(a.has(p)||g.push(p),a.add(p)):(a.delete(p),g.push(p))}),n(h?u:null),g},[t]),o=>{n(o)}]}var l_r=_e.default,e6=pe.default;Object.defineProperty(Zu,"__esModule",{value:!0});Zu.default=Zu.SELECTION_NONE=Zu.SELECTION_INVERT=Zu.SELECTION_COLUMN=Zu.SELECTION_ALL=void 0;var O2=e6(zr),ju=l_r(d),Th=ju,c_r=e6(b9),u_r=e6(St),Wre=a_,HPe=D2e,Ure=wY,d_r=pl,f_r=e6(fa),h_r=e6(xY),g_r=Lo,jPe=e6(V3),p_r=e6(vb),m_r=e6(xP);const B6=Zu.SELECTION_COLUMN={},VPe=Zu.SELECTION_ALL="SELECT_ALL",GPe=Zu.SELECTION_INVERT="SELECT_INVERT",WPe=Zu.SELECTION_NONE="SELECT_NONE",UPe=[],slt=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat((0,O2.default)(n),(0,O2.default)(slt(e,r[e]))))}),n},v_r=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:o,onChange:s,onSelect:a,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:f,columnWidth:h,type:g,selections:p,fixed:m,renderCell:v,hideSelectAll:C,checkStrictly:y=!0}=t||{},{prefixCls:b,data:S,pageData:w,getRecordByKey:x,getRowKey:E,expandType:R,childrenColumnName:O,locale:T,getPopupContainer:M}=e,_=(0,g_r.devUseWarning)("Table"),[F,D]=(0,h_r.default)(Z=>Z),[k,L]=(0,f_r.default)(r||i||UPe,{value:r}),I=Th.useRef(new Map),A=(0,ju.useCallback)(Z=>{if(n){const ee=new Map;Z.forEach(J=>{let oe=x(J);!oe&&I.current.has(J)&&(oe=I.current.get(J)),ee.set(J,oe)}),I.current=ee}},[x,n]);Th.useEffect(()=>{A(k)},[k]);const N=(0,ju.useMemo)(()=>slt(O,w),[O,w]),{keyEntities:B}=(0,ju.useMemo)(()=>{if(y)return{keyEntities:null};let Z=S;if(n){const ee=new Set(N.map((oe,le)=>E(oe,le))),J=Array.from(I.current).reduce((oe,le)=>{let[ge,he]=le;return ee.has(ge)?oe:oe.concat(he)},[]);Z=[].concat((0,O2.default)(Z),(0,O2.default)(J))}return(0,d_r.convertDataToEntities)(Z,{externalGetKey:E,childrenPropName:O})},[S,E,y,O,n,N]),z=(0,ju.useMemo)(()=>{const Z=new Map;return N.forEach((ee,J)=>{const oe=E(ee,J),le=(o?o(ee):null)||{};Z.set(oe,le)}),Z},[N,E,o]),j=(0,ju.useCallback)(Z=>{var ee;return!!(!((ee=z.get(E(Z)))===null||ee===void 0)&&ee.disabled)},[z,E]),[W,G]=(0,ju.useMemo)(()=>{if(y)return[k||[],[]];const{checkedKeys:Z,halfCheckedKeys:ee}=(0,Ure.conductCheck)(k,!0,B,j);return[Z||[],ee]},[k,y,B,j]),K=(0,ju.useMemo)(()=>{const Z=g==="radio"?W.slice(0,1):W;return new Set(Z)},[W,g]),q=(0,ju.useMemo)(()=>g==="radio"?new Set:new Set(G),[G,g]);Th.useEffect(()=>{t||L(UPe)},[!!t]);const X=(0,ju.useCallback)((Z,ee)=>{let J,oe;A(Z),n?(J=Z,oe=Z.map(le=>I.current.get(le))):(J=[],oe=[],Z.forEach(le=>{const ge=x(le);ge!==void 0&&(J.push(le),oe.push(ge))})),L(J),s==null||s(J,oe,{type:ee})},[L,x,s,n]),Q=(0,ju.useCallback)((Z,ee,J,oe)=>{if(a){const le=J.map(ge=>x(ge));a(x(Z),ee,le,oe)}X(J,"single")},[a,x,X]),te=(0,ju.useMemo)(()=>!p||C?null:(p===!0?[VPe,GPe,WPe]:p).map(ee=>ee===VPe?{key:"all",text:T.selectionAll,onSelect(){X(S.map((J,oe)=>E(J,oe)).filter(J=>{const oe=z.get(J);return!(oe!=null&&oe.disabled)||K.has(J)}),"all")}}:ee===GPe?{key:"invert",text:T.selectInvert,onSelect(){const J=new Set(K);w.forEach((le,ge)=>{const he=E(le,ge),ye=z.get(he);ye!=null&&ye.disabled||(J.has(he)?J.delete(he):J.add(he))});const oe=Array.from(J);c&&(_.deprecated(!1,"onSelectInvert","onChange"),c(oe)),X(oe,"invert")}}:ee===WPe?{key:"none",text:T.selectNone,onSelect(){u==null||u(),X(Array.from(K).filter(J=>{const oe=z.get(J);return oe==null?void 0:oe.disabled}),"none")}}:ee).map(ee=>Object.assign(Object.assign({},ee),{onSelect:function(){for(var J,oe,le=arguments.length,ge=new Array(le),he=0;he<le;he++)ge[he]=arguments[he];(oe=ee.onSelect)===null||oe===void 0||(J=oe).call.apply(J,[ee].concat(ge)),D(null)}})),[p,K,w,E,c,X]);return[(0,ju.useCallback)(Z=>{var ee;if(!t)return Z.filter(Fe=>Fe!==B6);let J=(0,O2.default)(Z);const oe=new Set(K),le=N.map(E).filter(Fe=>!z.get(Fe).disabled),ge=le.every(Fe=>oe.has(Fe)),he=le.some(Fe=>oe.has(Fe)),ye=()=>{const Fe=[];ge?le.forEach(Ye=>{oe.delete(Ye),Fe.push(Ye)}):le.forEach(Ye=>{oe.has(Ye)||(oe.add(Ye),Fe.push(Ye))});const ke=Array.from(oe);l==null||l(!ge,ke.map(Ye=>x(Ye)),Fe.map(Ye=>x(Ye))),X(ke,"all"),D(null)};let ue,ve;if(g!=="radio"){let Fe;if(te){const Le={getPopupContainer:M,items:te.map((Me,be)=>{const{key:je,text:Xe,onSelect:ft}=Me;return{key:je??be,onClick:()=>{ft==null||ft(le)},label:Xe}})};Fe=Th.createElement("div",{className:`${b}-selection-extra`},Th.createElement(p_r.default,{menu:Le,getPopupContainer:M},Th.createElement("span",null,Th.createElement(c_r.default,null))))}const ke=N.map((Le,Me)=>{const be=E(Le,Me),je=z.get(be)||{};return Object.assign({checked:oe.has(be)},je)}).filter(Le=>{let{disabled:Me}=Le;return Me}),Ye=!!ke.length&&ke.length===N.length,ze=Ye&&ke.every(Le=>{let{checked:Me}=Le;return Me}),Re=Ye&&ke.some(Le=>{let{checked:Me}=Le;return Me});ve=Th.createElement(jPe.default,{checked:Ye?ze:!!N.length&&ge,indeterminate:Ye?!ze&&Re:!ge&&he,onChange:ye,disabled:N.length===0||Ye,"aria-label":Fe?"Custom selection":"Select all",skipGroup:!0}),ue=!C&&Th.createElement("div",{className:`${b}-selection`},ve,Fe)}let de;g==="radio"?de=(Fe,ke,Ye)=>{const ze=E(ke,Ye),Re=oe.has(ze),Le=z.get(ze);return{node:Th.createElement(m_r.default,Object.assign({},Le,{checked:Re,onClick:Me=>{var be;Me.stopPropagation(),(be=Le==null?void 0:Le.onClick)===null||be===void 0||be.call(Le,Me)},onChange:Me=>{var be;oe.has(ze)||Q(ze,!0,[ze],Me.nativeEvent),(be=Le==null?void 0:Le.onChange)===null||be===void 0||be.call(Le,Me)}})),checked:Re}}:de=(Fe,ke,Ye)=>{var ze;const Re=E(ke,Ye),Le=oe.has(Re),Me=q.has(Re),be=z.get(Re);let je;return R==="nest"?je=Me:je=(ze=be==null?void 0:be.indeterminate)!==null&&ze!==void 0?ze:Me,{node:Th.createElement(jPe.default,Object.assign({},be,{indeterminate:je,checked:Le,skipGroup:!0,onClick:Xe=>{var ft;Xe.stopPropagation(),(ft=be==null?void 0:be.onClick)===null||ft===void 0||ft.call(be,Xe)},onChange:Xe=>{var ft;const{nativeEvent:Tt}=Xe,{shiftKey:tt}=Tt,pt=le.findIndex(wt=>wt===Re),$t=W.some(wt=>le.includes(wt));if(tt&&y&&$t){const wt=F(pt,le,oe),It=Array.from(oe);f==null||f(!Le,It.map(Ct=>x(Ct)),wt.map(Ct=>x(Ct))),X(It,"multiple")}else{const wt=W;if(y){const It=Le?(0,HPe.arrDel)(wt,Re):(0,HPe.arrAdd)(wt,Re);Q(Re,!Le,It,Tt)}else{const It=(0,Ure.conductCheck)([].concat((0,O2.default)(wt),[Re]),!0,B,j),{checkedKeys:Ct,halfCheckedKeys:ot}=It;let nt=Ct;if(Le){const fe=new Set(Ct);fe.delete(Re),nt=(0,Ure.conductCheck)(Array.from(fe),{checked:!1,halfCheckedKeys:ot},B,j).checkedKeys}Q(Re,!Le,nt,Tt)}}D(Le?null:pt),(ft=be==null?void 0:be.onChange)===null||ft===void 0||ft.call(be,Xe)}})),checked:Le}};const xe=(Fe,ke,Ye)=>{const{node:ze,checked:Re}=de(Fe,ke,Ye);return v?v(Re,ke,Ye,ze):ze};if(!J.includes(B6))if(J.findIndex(Fe=>{var ke;return((ke=Fe[Wre.INTERNAL_COL_DEFINE])===null||ke===void 0?void 0:ke.columnType)==="EXPAND_COLUMN"})===0){const[Fe,...ke]=J;J=[Fe,B6].concat((0,O2.default)(ke))}else J=[B6].concat((0,O2.default)(J));const Ee=J.indexOf(B6);J=J.filter((Fe,ke)=>Fe!==B6||ke===Ee);const De=J[Ee-1],Be=J[Ee+1];let Ge=m;Ge===void 0&&((Be==null?void 0:Be.fixed)!==void 0?Ge=Be.fixed:(De==null?void 0:De.fixed)!==void 0&&(Ge=De.fixed)),Ge&&De&&((ee=De[Wre.INTERNAL_COL_DEFINE])===null||ee===void 0?void 0:ee.columnType)==="EXPAND_COLUMN"&&De.fixed===void 0&&(De.fixed=Ge);const Ue=(0,u_r.default)(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:p&&g==="checkbox"}),We=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ve):t.columnTitle:ue,Ve={fixed:Ge,width:h,className:`${b}-selection-column`,title:We(),render:xe,onCell:t.onCell,[Wre.INTERNAL_COL_DEFINE]:{className:Ue}};return J.map(Fe=>Fe===B6?Ve:Fe)},[E,N,t,W,K,q,h,te,R,z,f,Q,j]),K]};Zu.default=v_r;var EY={},l_={},H6={},qPe;function C_r(){return qPe||(qPe=1,Object.defineProperty(H6,"__esModule",{value:!0}),H6.INTERNAL_HOOKS=H6.EXPAND_COLUMN=void 0,H6.EXPAND_COLUMN={},H6.INTERNAL_HOOKS="rc-table-internal-hook"),H6}var L5={},KPe;function y_r(){if(KPe)return L5;KPe=1;var e=pe;Object.defineProperty(L5,"__esModule",{value:!0}),L5.INTERNAL_COL_DEFINE=void 0,L5.getExpandableProps=i;var t=e(Eu),n=e(Qy);e(da);var r=["expandable"];L5.INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE";function i(o){var s=o.expandable,a=(0,n.default)(o,r),l;return"expandable"in o?l=(0,t.default)((0,t.default)({},a),s):l=a,l.showExpandColumn===!1&&(l.expandIconColumnIndex=-1),l}return L5}var WL={},YPe;function b_r(){if(YPe)return WL;YPe=1;var e=pe,t=ua;Object.defineProperty(WL,"__esModule",{value:!0}),WL.default=a;var n=e(Eu),r=o(d);function i(l){if(typeof WeakMap!="function")return null;var c=new WeakMap,u=new WeakMap;return(i=function(h){return h?u:c})(l)}function o(l,c){if(l&&l.__esModule)return l;if(l===null||t(l)!="object"&&typeof l!="function")return{default:l};var u=i(c);if(u&&u.has(l))return u.get(l);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in l)if(g!=="default"&&Object.prototype.hasOwnProperty.call(l,g)){var p=h?Object.getOwnPropertyDescriptor(l,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=l[g]}return f.default=l,u&&u.set(l,f),f}function s(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof c=="number"?c:c.endsWith("%")?l*parseFloat(c)/100:null}function a(l,c,u){return r.useMemo(function(){if(c&&c>0){var f=0,h=0;l.forEach(function(S){var w=s(c,S.width);w?f+=w:h+=1});var g=Math.max(c,u),p=Math.max(g-f,h),m=h,v=p/h,C=0,y=l.map(function(S){var w=(0,n.default)({},S),x=s(c,w.width);if(x)w.width=x;else{var E=Math.floor(v);w.width=m===1?p:E,p-=E,m-=1}return C+=w.width,w});if(C<g){var b=g/C;p=g,y.forEach(function(S,w){var x=Math.floor(S.width*b);S.width=w===y.length-1?p:x,p-=x})}return[y,Math.max(C,g)]}return[l,c]},[l,c,u])}return WL}var yv=pe,S_r=ua;Object.defineProperty(l_,"__esModule",{value:!0});l_.convertChildrenToColumns=N2e;l_.default=void 0;var w_r=yv(Xy),F5=yv($M),qre=yv(zr),alt=yv(ua),dC=yv(Eu),llt=yv(Qy),x_r=yv(qs);yv(da);var s8=T_r(d),j6=C_r(),E_r=y_r(),R_r=yv(b_r()),$_r=["children"],O_r=["fixed"];function clt(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(clt=function(i){return i?n:t})(e)}function T_r(e,t){if(e&&e.__esModule)return e;if(e===null||S_r(e)!="object"&&typeof e!="function")return{default:e};var n=clt(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},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 N2e(e){return(0,x_r.default)(e).filter(function(t){return s8.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,i=r.children,o=(0,llt.default)(r,$_r),s=(0,dC.default)({key:n},o);return i&&(s.children=N2e(i)),s})}function ult(e){return e.filter(function(t){return t&&(0,alt.default)(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?(0,dC.default)((0,dC.default)({},t),{},{children:ult(n)}):t})}function Uue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&(0,alt.default)(n)==="object"}).reduce(function(n,r,i){var o=r.fixed,s=o===!0?"left":o,a="".concat(t,"-").concat(i),l=r.children;return l&&l.length>0?[].concat((0,qre.default)(n),(0,qre.default)(Uue(l,a).map(function(c){return(0,dC.default)({fixed:s},c)}))):[].concat((0,qre.default)(n),[(0,dC.default)((0,dC.default)({key:a},r),{},{fixed:s})])},[])}function I_r(e){return e.map(function(t){var n=t.fixed,r=(0,llt.default)(t,O_r),i=n;return n==="left"?i="right":n==="right"&&(i="left"),(0,dC.default)({fixed:i},r)})}function M_r(e,t){var n=e.prefixCls,r=e.columns,i=e.children,o=e.expandable,s=e.expandedKeys,a=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,h=e.expandIconColumnIndex,g=e.direction,p=e.expandRowByClick,m=e.columnWidth,v=e.fixed,C=e.scrollWidth,y=e.clientWidth,b=s8.useMemo(function(){var _=r||N2e(i)||[];return ult(_.slice())},[r,i]),S=s8.useMemo(function(){if(o){var _=b.slice();if(!_.includes(j6.EXPAND_COLUMN)){var F=h||0;F>=0&&(F||v==="left"||!v)&&_.splice(F,0,j6.EXPAND_COLUMN),v==="right"&&_.splice(b.length,0,j6.EXPAND_COLUMN)}var D=_.indexOf(j6.EXPAND_COLUMN);_=_.filter(function(A,N){return A!==j6.EXPAND_COLUMN||N===D});var k=b[D],L;v?L=v:L=k?k.fixed:null;var I=(0,F5.default)((0,F5.default)((0,F5.default)((0,F5.default)((0,F5.default)((0,F5.default)({},E_r.INTERNAL_COL_DEFINE,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",a),"fixed",L),"className","".concat(n,"-row-expand-icon-cell")),"width",m),"render",function(N,B,z){var j=l(B,z),W=s.has(j),G=f?f(B):!0,K=u({prefixCls:n,expanded:W,expandable:G,record:B,onExpand:c});return p?s8.createElement("span",{onClick:function(X){return X.stopPropagation()}},K):K});return _.map(function(A){return A===j6.EXPAND_COLUMN?I:A})}return b.filter(function(A){return A!==j6.EXPAND_COLUMN})},[o,b,l,s,u,g]),w=s8.useMemo(function(){var _=S;return t&&(_=t(_)),_.length||(_=[{render:function(){return null}}]),_},[t,S,g]),x=s8.useMemo(function(){return g==="rtl"?I_r(Uue(w)):Uue(w)},[w,g,C]),E=s8.useMemo(function(){for(var _=-1,F=x.length-1;F>=0;F-=1){var D=x[F].fixed;if(D==="left"||D===!0){_=F;break}}if(_>=0)for(var k=0;k<=_;k+=1){var L=x[k].fixed;if(L!=="left"&&L!==!0)return!0}var I=x.findIndex(function(B){var z=B.fixed;return z==="right"});if(I>=0)for(var A=I;A<x.length;A+=1){var N=x[A].fixed;if(N!=="right")return!0}return!1},[x]),R=(0,R_r.default)(x,C,y),O=(0,w_r.default)(R,2),T=O[0],M=O[1];return[w,T,M,E]}l_.default=M_r;var k2e={};Object.defineProperty(k2e,"__esModule",{value:!0});k2e.default=A_r;var P_r=d;function __r(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function A_r(e,t){return(0,P_r.useImperativeHandle)(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(i,o){return n[o]?n[o]:Reflect.get(i,o)}}):__r(r,n)})}var RY={},D_r=pe.default,L_r=_e.default;Object.defineProperty(RY,"__esModule",{value:!0});RY.default=void 0;var F_r=L_r(d),N_r=D_r(St);function k_r(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:o,expandable:s}=t,a=`${n}-row-expand-icon`;return F_r.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:(0,N_r.default)(a,{[`${a}-spaced`]:!s,[`${a}-expanded`]:s&&o,[`${a}-collapsed`]:s&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}RY.default=k_r;var z2e={};Object.defineProperty(z2e,"__esModule",{value:!0});z2e.default=z_r;function z_r(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let o=r;if(i){const s=getComputedStyle(i),a=parseInt(s.borderLeftWidth,10),l=parseInt(s.borderRightWidth,10);o=r-a-l}return o}}var dlt={},Bg={};Object.defineProperty(Bg,"__esModule",{value:!0});Bg.getColumnKey=void 0;Bg.getColumnPos=H_r;Bg.safeColumnTitle=Bg.renderColumnTitle=void 0;const B_r=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;Bg.getColumnKey=B_r;function H_r(e,t){return t?`${t}-${e}`:`${e}`}const flt=(e,t)=>typeof e=="function"?e(t):e;Bg.renderColumnTitle=flt;const j_r=(e,t)=>{const n=flt(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};Bg.safeColumnTitle=j_r;var c_={},que={exports:{}},$Y={},B2e={};Object.defineProperty(B2e,"__esModule",{value:!0});var V_r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};B2e.default=V_r;var G_r=_e.default,H2e=pe.default;Object.defineProperty($Y,"__esModule",{value:!0});$Y.default=void 0;var W_r=H2e(lr),hlt=G_r(d),U_r=H2e(B2e),q_r=H2e(cr),K_r=function(t,n){return hlt.createElement(q_r.default,(0,W_r.default)({},t,{ref:n,icon:U_r.default}))},Y_r=hlt.forwardRef(K_r);$Y.default=Y_r;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r($Y);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(que,que.exports);var X_r=que.exports,j2e={},Q_r=pe.default,Z_r=_e.default;Object.defineProperty(j2e,"__esModule",{value:!0});j2e.default=tAr;var J_r=Z_r(d),eAr=Q_r(x9);function tAr(e){const t=J_r.useRef(e),n=(0,eAr.default)();return[()=>t.current,r=>{t.current=r,n()}]}var u_={};const glt=_r(vIn);var OY={},Kue={exports:{}},TY={},V2e={};Object.defineProperty(V2e,"__esModule",{value:!0});var nAr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};V2e.default=nAr;var rAr=_e.default,G2e=pe.default;Object.defineProperty(TY,"__esModule",{value:!0});TY.default=void 0;var iAr=G2e(lr),plt=rAr(d),oAr=G2e(V2e),sAr=G2e(cr),aAr=function(t,n){return plt.createElement(sAr.default,(0,iAr.default)({},t,{ref:n,icon:oAr.default}))},lAr=plt.forwardRef(aAr);TY.default=lAr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(TY);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Kue,Kue.exports);var mlt=Kue.exports,Yue={exports:{}},IY={},W2e={};Object.defineProperty(W2e,"__esModule",{value:!0});var cAr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};W2e.default=cAr;var uAr=_e.default,U2e=pe.default;Object.defineProperty(IY,"__esModule",{value:!0});IY.default=void 0;var dAr=U2e(lr),vlt=uAr(d),fAr=U2e(W2e),hAr=U2e(cr),gAr=function(t,n){return vlt.createElement(hAr.default,(0,dAr.default)({},t,{ref:n,icon:fAr.default}))},pAr=vlt.forwardRef(gAr);IY.default=pAr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(IY);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Yue,Yue.exports);var mAr=Yue.exports,Xue={exports:{}},MY={},q2e={};Object.defineProperty(q2e,"__esModule",{value:!0});var vAr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};q2e.default=vAr;var CAr=_e.default,K2e=pe.default;Object.defineProperty(MY,"__esModule",{value:!0});MY.default=void 0;var yAr=K2e(lr),Clt=CAr(d),bAr=K2e(q2e),SAr=K2e(cr),wAr=function(t,n){return Clt.createElement(SAr.default,(0,yAr.default)({},t,{ref:n,icon:bAr.default}))},xAr=Clt.forwardRef(wAr);MY.default=xAr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(MY);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Xue,Xue.exports);var EAr=Xue.exports,d_={},Que={exports:{}},PY={},Y2e={};Object.defineProperty(Y2e,"__esModule",{value:!0});var RAr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};Y2e.default=RAr;var $Ar=_e.default,X2e=pe.default;Object.defineProperty(PY,"__esModule",{value:!0});PY.default=void 0;var OAr=X2e(lr),ylt=$Ar(d),TAr=X2e(Y2e),IAr=X2e(cr),MAr=function(t,n){return ylt.createElement(IAr.default,(0,OAr.default)({},t,{ref:n,icon:TAr.default}))},PAr=ylt.forwardRef(MAr);PY.default=PAr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(PY);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Que,Que.exports);var _Ar=Que.exports,Ju={},_Y={};Object.defineProperty(_Y,"__esModule",{value:!0});_Y.genDirectoryStyle=void 0;const AAr=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:o,borderRadius:s,controlItemBgHover:a}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:s},"&:hover:before":{background:a}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}};_Y.genDirectoryStyle=AAr;Object.defineProperty(Ju,"__esModule",{value:!0});Ju.prepareComponentToken=Ju.initComponentToken=Ju.genTreeStyle=Ju.genBaseStyle=Ju.default=void 0;var eH=Kt,DAr=kg,XPe=gn,LAr=Rc,blt=Zt,FAr=_Y;const NAr=new eH.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),kAr=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),zAr=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,eH.unit)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Slt=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:o,indentSize:s,nodeSelectedBg:a,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},(0,XPe.resetComponent)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,XPe.genFocusOutline)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:NAr,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:(0,eH.unit)(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:s}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},kAr(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},zAr(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,eH.unit)(t.calc(o).div(2).equal())} !important`}})}};Ju.genBaseStyle=Slt;const wlt=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=(0,blt.mergeToken)(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[Slt(e,o),(0,FAr.genDirectoryStyle)(o)]};Ju.genTreeStyle=wlt;const xlt=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}};Ju.initComponentToken=xlt;const Elt=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},xlt(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})};Ju.prepareComponentToken=Elt;Ju.default=(0,blt.genStyleHooks)("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,DAr.getStyle)(`${n}-checkbox`,e)},wlt(n,e),(0,LAr.genCollapseMotion)(e)]},Elt);var ix={},BAr=pe.default;Object.defineProperty(ix,"__esModule",{value:!0});ix.offset=ix.default=void 0;var HAr=BAr(d);const QPe=ix.offset=4;function jAr(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:o="ltr"}=e,s=o==="ltr"?"left":"right",a=o==="ltr"?"right":"left",l={[s]:-n*i+QPe,[a]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[s]=i+QPe;break}return HAr.default.createElement("div",{style:l,className:`${r}-drop-indicator`})}ix.default=jAr;var f_={},Zue={exports:{}},AY={},Q2e={};Object.defineProperty(Q2e,"__esModule",{value:!0});var VAr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};Q2e.default=VAr;var GAr=_e.default,Z2e=pe.default;Object.defineProperty(AY,"__esModule",{value:!0});AY.default=void 0;var WAr=Z2e(lr),Rlt=GAr(d),UAr=Z2e(Q2e),qAr=Z2e(cr),KAr=function(t,n){return Rlt.createElement(qAr.default,(0,WAr.default)({},t,{ref:n,icon:UAr.default}))},YAr=Rlt.forwardRef(KAr);AY.default=YAr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(AY);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Zue,Zue.exports);var XAr=Zue.exports,Jue={exports:{}},DY={},J2e={};Object.defineProperty(J2e,"__esModule",{value:!0});var QAr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};J2e.default=QAr;var ZAr=_e.default,e4e=pe.default;Object.defineProperty(DY,"__esModule",{value:!0});DY.default=void 0;var JAr=e4e(lr),$lt=ZAr(d),eDr=e4e(J2e),tDr=e4e(cr),nDr=function(t,n){return $lt.createElement(tDr.default,(0,JAr.default)({},t,{ref:n,icon:eDr.default}))},rDr=$lt.forwardRef(nDr);DY.default=rDr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(DY);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Jue,Jue.exports);var iDr=Jue.exports,ede={exports:{}},LY={},t4e={};Object.defineProperty(t4e,"__esModule",{value:!0});var oDr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};t4e.default=oDr;var sDr=_e.default,n4e=pe.default;Object.defineProperty(LY,"__esModule",{value:!0});LY.default=void 0;var aDr=n4e(lr),Olt=sDr(d),lDr=n4e(t4e),cDr=n4e(cr),uDr=function(t,n){return Olt.createElement(cDr.default,(0,aDr.default)({},t,{ref:n,icon:lDr.default}))},dDr=Olt.forwardRef(uDr);LY.default=dDr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(LY);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(ede,ede.exports);var fDr=ede.exports,J9=pe.default,hDr=_e.default;Object.defineProperty(f_,"__esModule",{value:!0});f_.default=void 0;var D1=hDr(d),gDr=J9(XAr),pDr=J9(mlt),mDr=J9(Jg),vDr=J9(iDr),CDr=J9(fDr),ZPe=J9(St),JPe=Xi;const yDr=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:s,expanded:a,loading:l}=r;if(l)return D1.isValidElement(o)?o:D1.createElement(mDr.default,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),s){if(!i)return null;if(typeof c!="boolean"&&c){const h=typeof c=="function"?c(r):c,g=`${t}-switcher-line-custom-icon`;return D1.isValidElement(h)?(0,JPe.cloneElement)(h,{className:(0,ZPe.default)(h.props.className||"",g)}):h}return c?D1.createElement(pDr.default,{className:`${t}-switcher-line-icon`}):D1.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return D1.isValidElement(f)?(0,JPe.cloneElement)(f,{className:(0,ZPe.default)(f.props.className||"",u)}):f!==void 0?f:i?a?D1.createElement(vDr.default,{className:`${t}-switcher-line-icon`}):D1.createElement(CDr.default,{className:`${t}-switcher-line-icon`}):D1.createElement(gDr.default,{className:u})};f_.default=yDr;var t6=pe.default;Object.defineProperty(d_,"__esModule",{value:!0});d_.default=void 0;var V6=t6(d),bDr=t6(_Ar),SDr=t6(St),wDr=t6(glt),xDr=t6($s),EDr=Bt,RDr=Zt,$Dr=t6(Ju),ODr=t6(ix),TDr=t6(f_);const IDr=V6.default.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:o,tree:s}=V6.default.useContext(EDr.ConfigContext),{prefixCls:a,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:h,blockNode:g=!1,children:p,checkable:m=!1,selectable:v=!0,draggable:C,motion:y,style:b}=e,S=r("tree",a),w=r(),x=y??Object.assign(Object.assign({},(0,xDr.default)(w)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:m,selectable:v,showIcon:c,motion:x,blockNode:g,showLine:!!u,dropIndicatorRender:ODr.default}),[R,O,T]=(0,$Dr.default)(S),[,M]=(0,RDr.useToken)(),_=M.paddingXS/2+(((n=M.Tree)===null||n===void 0?void 0:n.titleHeight)||M.controlHeightSM),F=V6.default.useMemo(()=>{if(!C)return!1;let k={};switch(typeof C){case"function":k.nodeDraggable=C;break;case"object":k=Object.assign({},C);break}return k.icon!==!1&&(k.icon=k.icon||V6.default.createElement(bDr.default,null)),k},[C]),D=k=>V6.default.createElement(TDr.default,{prefixCls:S,switcherIcon:f,switcherLoadingIcon:h,treeNodeProps:k,showLine:u});return R(V6.default.createElement(wDr.default,Object.assign({itemHeight:_,ref:t,virtual:o},E,{style:Object.assign(Object.assign({},s==null?void 0:s.style),b),prefixCls:S,className:(0,SDr.default)({[`${S}-icon-hide`]:!c,[`${S}-block-node`]:g,[`${S}-unselectable`]:!v,[`${S}-rtl`]:i==="rtl"},s==null?void 0:s.className,l,O,T),direction:i,checkable:m&&V6.default.createElement("span",{className:`${S}-checkbox-inner`}),selectable:v,switcherIcon:D,draggable:F}),p))});d_.default=IDr;var FY={},MDr=pe.default;Object.defineProperty(FY,"__esModule",{value:!0});FY.calcRangeKeys=_Dr;FY.convertDirectoryKeysToNodes=ADr;var PDr=MDr(zr),Tlt=pl;const e_e=0,Kre=1,t_e=2;function r4e(e,t,n){const{key:r,children:i}=n;function o(s){const a=s[r],l=s[i];t(a,s)!==!1&&r4e(l||[],t,n)}e.forEach(o)}function _Dr(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:o}=e;const s=[];let a=e_e;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return r4e(t,c=>{if(a===t_e)return!1;if(l(c)){if(s.push(c),a===e_e)a=Kre;else if(a===Kre)return a=t_e,!1}else a===Kre&&s.push(c);return n.includes(c)},(0,Tlt.fillFieldNames)(o)),s}function ADr(e,t,n){const r=(0,PDr.default)(t),i=[];return r4e(e,(o,s)=>{const a=r.indexOf(o);return a!==-1&&(i.push(s),r.splice(a,1)),!!r.length},(0,Tlt.fillFieldNames)(n)),i}var DDr=_e.default,eE=pe.default;Object.defineProperty(OY,"__esModule",{value:!0});OY.default=void 0;var n_e=eE(zr),yf=DDr(d),LDr=eE(mlt),FDr=eE(mAr),NDr=eE(EAr),kDr=eE(St),zDr=D2e,Ilt=pl,BDr=Bt,HDr=eE(d_),UL=FY,r_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};function jDr(e){const{isLeaf:t,expanded:n}=e;return t?yf.createElement(LDr.default,null):n?yf.createElement(FDr.default,null):yf.createElement(NDr.default,null)}function i_e(e){let{treeData:t,children:n}=e;return t||(0,Ilt.convertTreeToData)(n)}const VDr=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,o=r_e(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const s=yf.useRef(null),a=yf.useRef(null),l=()=>{const{keyEntities:R}=(0,Ilt.convertDataToEntities)(i_e(o));let O;return n?O=Object.keys(R):r?O=(0,zDr.conductExpandParent)(o.expandedKeys||i||[],R):O=o.expandedKeys||i||[],O},[c,u]=yf.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[f,h]=yf.useState(()=>l());yf.useEffect(()=>{"selectedKeys"in o&&u(o.selectedKeys)},[o.selectedKeys]),yf.useEffect(()=>{"expandedKeys"in o&&h(o.expandedKeys)},[o.expandedKeys]);const g=(R,O)=>{var T;return"expandedKeys"in o||h(R),(T=o.onExpand)===null||T===void 0?void 0:T.call(o,R,O)},p=(R,O)=>{var T;const{multiple:M,fieldNames:_}=o,{node:F,nativeEvent:D}=O,{key:k=""}=F,L=i_e(o),I=Object.assign(Object.assign({},O),{selected:!0}),A=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),N=D==null?void 0:D.shiftKey;let B;M&&A?(B=R,s.current=k,a.current=B,I.selectedNodes=(0,UL.convertDirectoryKeysToNodes)(L,B,_)):M&&N?(B=Array.from(new Set([].concat((0,n_e.default)(a.current||[]),(0,n_e.default)((0,UL.calcRangeKeys)({treeData:L,expandedKeys:f,startKey:k,endKey:s.current,fieldNames:_}))))),I.selectedNodes=(0,UL.convertDirectoryKeysToNodes)(L,B,_)):(B=[k],s.current=k,a.current=B,I.selectedNodes=(0,UL.convertDirectoryKeysToNodes)(L,B,_)),(T=o.onSelect)===null||T===void 0||T.call(o,B,I),"selectedKeys"in o||u(B)},{getPrefixCls:m,direction:v}=yf.useContext(BDr.ConfigContext),{prefixCls:C,className:y,showIcon:b=!0,expandAction:S="click"}=o,w=r_e(o,["prefixCls","className","showIcon","expandAction"]),x=m("tree",C),E=(0,kDr.default)(`${x}-directory`,{[`${x}-directory-rtl`]:v==="rtl"},y);return yf.createElement(HDr.default,Object.assign({icon:jDr,ref:t,blockNode:!0},w,{showIcon:b,expandAction:S,prefixCls:x,className:E,expandedKeys:f,selectedKeys:c,onSelect:p,onExpand:g}))},GDr=yf.forwardRef(VDr);OY.default=GDr;var Mlt=pe.default;Object.defineProperty(u_,"__esModule",{value:!0});u_.default=void 0;var WDr=glt,UDr=Mlt(OY),qDr=Mlt(d_);const i4e=qDr.default;i4e.DirectoryTree=UDr.default;i4e.TreeNode=WDr.TreeNode;u_.default=i4e;var NY={},Plt=pe.default,KDr=_e.default;Object.defineProperty(NY,"__esModule",{value:!0});NY.default=void 0;var Yre=KDr(d),YDr=Plt(uU),XDr=Plt(pb);const QDr=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:o}=e;return n?Yre.createElement("div",{className:`${r}-filter-dropdown-search`},Yre.createElement(XDr.default,{prefix:Yre.createElement(YDr.default,null),placeholder:i.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null};NY.default=QDr;var kY={},ZDr=pe.default,JDr=_e.default;Object.defineProperty(kY,"__esModule",{value:!0});kY.default=void 0;var o_e=JDr(d),eLr=ZDr(ab);const tLr=e=>{const{keyCode:t}=e;t===eLr.default.ENTER&&e.stopPropagation()},nLr=o_e.forwardRef((e,t)=>o_e.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:tLr,ref:t},e.children));kY.default=nLr;var rLr=_e.default,Oc=pe.default;Object.defineProperty(c_,"__esModule",{value:!0});c_.default=void 0;c_.flattenKeys=uO;var s_e=Oc(zr),_i=rLr(d),iLr=Oc(X_r),Xre=Oc(St),a_e=Oc(kM),oLr=Oc(K9),sLr=Oc(j2e),l_e=Oc(Ru),_lt=Oc(V3),aLr=Fl,lLr=Oc(vb),c_e=Oc(m9),cLr=Oc(O9),uLr=r3,dLr=Oc(xP),fLr=Oc(u_),u_e=Oc(NY),hLr=Oc(kY);function uO(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat((0,s_e.default)(t),(0,s_e.default)(uO(i))))}),t}function gLr(e){return e.some(t=>{let{children:n}=t;return n})}function Alt(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Dlt(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:s}=e;return t.map((a,l)=>{const c=String(a.value);if(a.children)return{key:c||l,label:a.text,popupClassName:`${n}-dropdown-submenu`,children:Dlt({filters:a.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:s})};const u=i?_lt.default:dLr.default,f={key:a.value!==void 0?c:l,label:_i.createElement(_i.Fragment,null,_i.createElement(u,{checked:r.includes(c)}),_i.createElement("span",null,a.text))};return o.trim()?typeof s=="function"?s(o,a)?f:null:Alt(o,a.text)?f:null:f})}function Qre(e){return e||[]}const pLr=e=>{var t,n,r,i;const{tablePrefixCls:o,prefixCls:s,column:a,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:f,filterMode:h="menu",filterSearch:g=!1,filterState:p,triggerFilter:m,locale:v,children:C,getPopupContainer:y,rootClassName:b}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:w,filterDropdownProps:x={},filterDropdownOpen:E,filterDropdownVisible:R,onFilterDropdownVisibleChange:O,onFilterDropdownOpenChange:T}=a,[M,_]=_i.useState(!1),F=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),D=de=>{var xe;_(de),(xe=x.onOpenChange)===null||xe===void 0||xe.call(x,de),T==null||T(de),O==null||O(de)},k=(i=(r=(n=x.open)!==null&&n!==void 0?n:E)!==null&&r!==void 0?r:R)!==null&&i!==void 0?i:M,L=p==null?void 0:p.filteredKeys,[I,A]=(0,sLr.default)(Qre(L)),N=de=>{let{selectedKeys:xe}=de;A(xe)},B=(de,xe)=>{let{node:Ee,checked:De}=xe;N(f?{selectedKeys:de}:{selectedKeys:De&&Ee.key?[Ee.key]:[]})};_i.useEffect(()=>{M&&N({selectedKeys:Qre(L)})},[L]);const[z,j]=_i.useState([]),W=de=>{j(de)},[G,K]=_i.useState(""),q=de=>{const{value:xe}=de.target;K(xe)};_i.useEffect(()=>{M||K("")},[M]);const X=de=>{const xe=de!=null&&de.length?de:null;if(xe===null&&(!p||!p.filteredKeys)||(0,a_e.default)(xe,p==null?void 0:p.filteredKeys,!0))return null;m({column:a,key:c,filteredKeys:xe})},Q=()=>{D(!1),X(I())},te=function(){let{confirm:de,closeDropdown:xe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};de&&X([]),xe&&D(!1),K(""),A(S?(w||[]).map(Ee=>String(Ee)):[])},ne=function(){let{closeDropdown:de}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};de&&D(!1),X(I())},Z=(de,xe)=>{xe.source==="trigger"&&(de&&L!==void 0&&A(Qre(L)),D(de),!de&&!a.filterDropdown&&u&&Q())},ee=(0,Xre.default)({[`${l}-menu-without-submenu`]:!gLr(a.filters||[])}),J=de=>{if(de.target.checked){const xe=uO(a==null?void 0:a.filters).map(Ee=>String(Ee));A(xe)}else A([])},oe=de=>{let{filters:xe}=de;return(xe||[]).map((Ee,De)=>{const Be=String(Ee.value),Ge={title:Ee.text,key:Ee.value!==void 0?Be:String(De)};return Ee.children&&(Ge.children=oe({filters:Ee.children})),Ge})},le=de=>{var xe;return Object.assign(Object.assign({},de),{text:de.title,value:de.key,children:((xe=de.children)===null||xe===void 0?void 0:xe.map(Ee=>le(Ee)))||[]})};let ge;const{direction:he,renderEmpty:ye}=_i.useContext(aLr.ConfigContext);if(typeof a.filterDropdown=="function")ge=a.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:de=>N({selectedKeys:de}),selectedKeys:I(),confirm:ne,clearFilters:te,filters:a.filters,visible:k,close:()=>{D(!1)}});else if(a.filterDropdown)ge=a.filterDropdown;else{const de=I()||[],xe=()=>{var De;const Be=(De=ye==null?void 0:ye("Table.filter"))!==null&&De!==void 0?De:_i.createElement(c_e.default,{image:c_e.default.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((a.filters||[]).length===0)return Be;if(h==="tree")return _i.createElement(_i.Fragment,null,_i.createElement(u_e.default,{filterSearch:g,value:G,onChange:q,tablePrefixCls:o,locale:v}),_i.createElement("div",{className:`${o}-filter-dropdown-tree`},f?_i.createElement(_lt.default,{checked:de.length===uO(a.filters).length,indeterminate:de.length>0&&de.length<uO(a.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:J},v.filterCheckall):null,_i.createElement(fLr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${l}-menu`,onCheck:B,checkedKeys:de,selectedKeys:de,showIcon:!1,treeData:oe({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:G.trim()?We=>typeof g=="function"?g(G,le(We)):Alt(G,We.title):void 0})));const Ge=Dlt({filters:a.filters||[],filterSearch:g,prefixCls:s,filteredKeys:I(),filterMultiple:f,searchValue:G}),Ue=Ge.every(We=>We===null);return _i.createElement(_i.Fragment,null,_i.createElement(u_e.default,{filterSearch:g,value:G,onChange:q,tablePrefixCls:o,locale:v}),Ue?Be:_i.createElement(cLr.default,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:ee,onSelect:N,onDeselect:N,selectedKeys:de,getPopupContainer:y,openKeys:z,onOpenChange:W,items:Ge}))},Ee=()=>S?(0,a_e.default)((w||[]).map(De=>String(De)),de,!0):de.length===0;ge=_i.createElement(_i.Fragment,null,xe(),_i.createElement("div",{className:`${s}-dropdown-btns`},_i.createElement(l_e.default,{type:"link",size:"small",disabled:Ee(),onClick:()=>te()},v.filterReset),_i.createElement(l_e.default,{type:"primary",size:"small",onClick:Q},v.filterConfirm)))}a.filterDropdown&&(ge=_i.createElement(uLr.OverrideProvider,{selectable:void 0},ge)),ge=_i.createElement(hLr.default,{className:`${s}-dropdown`},ge);const ue=()=>{let de;return typeof a.filterIcon=="function"?de=a.filterIcon(F):a.filterIcon?de=a.filterIcon:de=_i.createElement(iLr.default,null),_i.createElement("span",{role:"button",tabIndex:-1,className:(0,Xre.default)(`${s}-trigger`,{active:F}),onClick:xe=>{xe.stopPropagation()}},de)},ve=(0,oLr.default)({trigger:["click"],placement:he==="rtl"?"bottomLeft":"bottomRight",children:ue(),getPopupContainer:y},Object.assign(Object.assign({},x),{rootClassName:(0,Xre.default)(b,x.rootClassName),open:k,onOpenChange:Z,dropdownRender:()=>typeof(x==null?void 0:x.dropdownRender)=="function"?x.dropdownRender(ge):ge}));return _i.createElement("div",{className:`${s}-column`},_i.createElement("span",{className:`${o}-column-title`},C),_i.createElement(lLr.default,Object.assign({},ve)))};c_.default=pLr;(function(e){"use client";var t=_e.default,n=pe.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"flattenKeys",{enumerable:!0,get:function(){return a.flattenKeys}}),e.getFilterData=void 0;var r=n(zr),i=t(d),o=Lo,s=Bg,a=t(c_);const l=(p,m,v)=>{let C=[];return(p||[]).forEach((y,b)=>{var S;const w=(0,s.getColumnPos)(b,v);if(y.filters||"filterDropdown"in y||"onFilter"in y)if("filteredValue"in y){let x=y.filteredValue;"filterDropdown"in y||(x=(S=x==null?void 0:x.map(String))!==null&&S!==void 0?S:x),C.push({column:y,key:(0,s.getColumnKey)(y,w),filteredKeys:x,forceFiltered:y.filtered})}else C.push({column:y,key:(0,s.getColumnKey)(y,w),filteredKeys:m&&y.defaultFilteredValue?y.defaultFilteredValue:void 0,forceFiltered:y.filtered});"children"in y&&(C=[].concat((0,r.default)(C),(0,r.default)(l(y.children,m,w))))}),C};function c(p,m,v,C,y,b,S,w,x){return v.map((E,R)=>{const O=(0,s.getColumnPos)(R,w),{filterOnClose:T=!0,filterMultiple:M=!0,filterMode:_,filterSearch:F}=E;let D=E;if(D.filters||D.filterDropdown){const k=(0,s.getColumnKey)(D,O),L=C.find(I=>{let{key:A}=I;return k===A});D=Object.assign(Object.assign({},D),{title:I=>i.createElement(a.default,{tablePrefixCls:p,prefixCls:`${p}-filter`,dropdownPrefixCls:m,column:D,columnKey:k,filterState:L,filterOnClose:T,filterMultiple:M,filterMode:_,filterSearch:F,triggerFilter:b,locale:y,getPopupContainer:S,rootClassName:x},(0,s.renderColumnTitle)(E.title,I))})}return"children"in D&&(D=Object.assign(Object.assign({},D),{children:c(p,m,D.children,C,y,b,S,O,x)})),D})}const u=p=>{const m={};return p.forEach(v=>{let{key:C,filteredKeys:y,column:b}=v;const S=C,{filters:w,filterDropdown:x}=b;if(x)m[S]=y||null;else if(Array.isArray(y)){const E=(0,a.flattenKeys)(w);m[S]=E.filter(R=>y.includes(String(R)))}else m[S]=null}),m},f=(p,m,v)=>m.reduce((y,b)=>{const{column:{onFilter:S,filters:w},filteredKeys:x}=b;return S&&x&&x.length?y.map(E=>Object.assign({},E)).filter(E=>x.some(R=>{const O=(0,a.flattenKeys)(w),T=O.findIndex(_=>String(_)===String(R)),M=T!==-1?O[T]:R;return E[v]&&(E[v]=f(E[v],m,v)),S(M,E)})):y},p);e.getFilterData=f;const h=p=>p.flatMap(m=>"children"in m?[m].concat((0,r.default)(h(m.children||[]))):[m]),g=p=>{const{prefixCls:m,dropdownPrefixCls:v,mergedColumns:C,onFilterChange:y,getPopupContainer:b,locale:S,rootClassName:w}=p;(0,o.devUseWarning)("Table");const x=i.useMemo(()=>h(C||[]),[C]),[E,R]=i.useState(()=>l(x,!0)),O=i.useMemo(()=>{const F=l(x,!1);if(F.length===0)return F;let D=!0;if(F.forEach(k=>{let{filteredKeys:L}=k;L!==void 0&&(D=!1)}),D){const k=(x||[]).map((L,I)=>(0,s.getColumnKey)(L,(0,s.getColumnPos)(I)));return E.filter(L=>{let{key:I}=L;return k.includes(I)}).map(L=>{const I=x[k.findIndex(A=>A===L.key)];return Object.assign(Object.assign({},L),{column:Object.assign(Object.assign({},L.column),I),forceFiltered:I.filtered})})}return F},[x,E]),T=i.useMemo(()=>u(O),[O]),M=F=>{const D=O.filter(k=>{let{key:L}=k;return L!==F.key});D.push(F),R(D),y(u(D),D)};return[F=>c(m,v,F,O,S,M,b,void 0,w),O,T]};e.default=g})(dlt);var zY={},mLr=_e.default;Object.defineProperty(zY,"__esModule",{value:!0});zY.default=void 0;var vLr=mLr(d);const CLr=(e,t,n)=>{const r=vLr.useRef({});function i(o){var s;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,f)=>{const h=n(u,f);a.set(h,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const a=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return(s=r.current.kvMap)===null||s===void 0?void 0:s.get(o)}return[i]};zY.default=CLr;var cy={},yLr=pe.default;Object.defineProperty(cy,"__esModule",{value:!0});cy.default=cy.DEFAULT_PAGE_SIZE=void 0;cy.getPaginationParam=ELr;var bLr=d,SLr=yLr(K9),wLr=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 xLr=cy.DEFAULT_PAGE_SIZE=10;function ELr(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(i=>{const o=e[i];typeof o!="function"&&(n[i]=o)}),n}function RLr(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,o=wLr(r,["total"]),[s,a]=(0,bLr.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:xLr})),l=(0,SLr.default)(s,o,{total:i>0?i:e}),c=Math.ceil((i||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(h,g)=>{a({current:h??1,pageSize:g||l.pageSize})},f=(h,g)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,h,g)),u(h,g),t(h,g||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:f}),u]}cy.default=RLr;var ox={},tde={exports:{}},BY={},o4e={};Object.defineProperty(o4e,"__esModule",{value:!0});var $Lr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};o4e.default=$Lr;var OLr=_e.default,s4e=pe.default;Object.defineProperty(BY,"__esModule",{value:!0});BY.default=void 0;var TLr=s4e(lr),Llt=OLr(d),ILr=s4e(o4e),MLr=s4e(cr),PLr=function(t,n){return Llt.createElement(MLr.default,(0,TLr.default)({},t,{ref:n,icon:ILr.default}))},_Lr=Llt.forwardRef(PLr);BY.default=_Lr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(BY);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(tde,tde.exports);var ALr=tde.exports,nde={exports:{}},HY={},a4e={};Object.defineProperty(a4e,"__esModule",{value:!0});var DLr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};a4e.default=DLr;var LLr=_e.default,l4e=pe.default;Object.defineProperty(HY,"__esModule",{value:!0});HY.default=void 0;var FLr=l4e(lr),Flt=LLr(d),NLr=l4e(a4e),kLr=l4e(cr),zLr=function(t,n){return Flt.createElement(kLr.default,(0,FLr.default)({},t,{ref:n,icon:NLr.default}))},BLr=Flt.forwardRef(zLr);HY.default=BLr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(HY);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(nde,nde.exports);var HLr=nde.exports,jLr=_e.default,tE=pe.default;Object.defineProperty(ox,"__esModule",{value:!0});ox.getSortData=ox.default=void 0;var tH=tE(zr),df=jLr(d),VLr=tE(ALr),GLr=tE(HLr),TR=tE(St),WLr=tE(ab),d_e=tE(gl),d0=Bg;const ek="ascend",Zre="descend",nH=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,f_e=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,ULr=(e,t)=>t?e[e.indexOf(t)+1]:e[0],rde=(e,t,n)=>{let r=[];const i=(o,s)=>{r.push({column:o,key:(0,d0.getColumnKey)(o,s),multiplePriority:nH(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,s)=>{const a=(0,d0.getColumnPos)(s,n);o.children?("sortOrder"in o&&i(o,a),r=[].concat((0,tH.default)(r),(0,tH.default)(rde(o.children,t,a)))):o.sorter&&("sortOrder"in o?i(o,a):t&&o.defaultSortOrder&&r.push({column:o,key:(0,d0.getColumnKey)(o,a),multiplePriority:nH(o),sortOrder:o.defaultSortOrder}))}),r},Nlt=(e,t,n,r,i,o,s,a)=>(t||[]).map((c,u)=>{const f=(0,d0.getColumnPos)(u,a);let h=c;if(h.sorter){const g=h.sortDirections||i,p=h.showSorterTooltip===void 0?s:h.showSorterTooltip,m=(0,d0.getColumnKey)(h,f),v=n.find(O=>{let{key:T}=O;return T===m}),C=v?v.sortOrder:null,y=ULr(g,C);let b;if(c.sortIcon)b=c.sortIcon({sortOrder:C});else{const O=g.includes(ek)&&df.createElement(GLr.default,{className:(0,TR.default)(`${e}-column-sorter-up`,{active:C===ek})}),T=g.includes(Zre)&&df.createElement(VLr.default,{className:(0,TR.default)(`${e}-column-sorter-down`,{active:C===Zre})});b=df.createElement("span",{className:(0,TR.default)(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&T)})},df.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,T))}const{cancelSort:S,triggerAsc:w,triggerDesc:x}=o||{};let E=S;y===Zre?E=x:y===ek&&(E=w);const R=typeof p=="object"?Object.assign({title:E},p):{title:E};h=Object.assign(Object.assign({},h),{className:(0,TR.default)(h.className,{[`${e}-column-sort`]:C}),title:O=>{const T=`${e}-column-sorters`,M=df.createElement("span",{className:`${e}-column-title`},(0,d0.renderColumnTitle)(c.title,O)),_=df.createElement("div",{className:T},M,b);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?df.createElement("div",{className:`${T} ${e}-column-sorters-tooltip-target-sorter`},M,df.createElement(d_e.default,Object.assign({},R),b)):df.createElement(d_e.default,Object.assign({},R),_):_},onHeaderCell:O=>{var T;const M=((T=c.onHeaderCell)===null||T===void 0?void 0:T.call(c,O))||{},_=M.onClick,F=M.onKeyDown;M.onClick=L=>{r({column:c,key:m,sortOrder:y,multiplePriority:nH(c)}),_==null||_(L)},M.onKeyDown=L=>{L.keyCode===WLr.default.ENTER&&(r({column:c,key:m,sortOrder:y,multiplePriority:nH(c)}),F==null||F(L))};const D=(0,d0.safeColumnTitle)(c.title,{}),k=D==null?void 0:D.toString();return C?M["aria-sort"]=C==="ascend"?"ascending":"descending":M["aria-label"]=k||"",M.className=(0,TR.default)(M.className,`${e}-column-has-sorters`),M.tabIndex=0,c.ellipsis&&(M.title=(D??"").toString()),M}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Nlt(e,h.children,n,r,i,o,s,f)})),h}),h_e=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},g_e=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(h_e);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},h_e(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},klt=(e,t,n)=>{const r=t.slice().sort((s,a)=>a.multiplePriority-s.multiplePriority),i=e.slice(),o=r.filter(s=>{let{column:{sorter:a},sortOrder:l}=s;return f_e(a)&&l});return o.length?i.sort((s,a)=>{for(let l=0;l<o.length;l+=1){const c=o[l],{column:{sorter:u},sortOrder:f}=c,h=f_e(u);if(h&&f){const g=h(s,a,f);if(g!==0)return f===ek?g:-g}}return 0}).map(s=>{const a=s[n];return a?Object.assign(Object.assign({},s),{[n]:klt(a,t,n)}):s}):i};ox.getSortData=klt;const qLr=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:o,onSorterChange:s}=e,[a,l]=df.useState(rde(n,!0)),c=(m,v)=>{const C=[];return m.forEach((y,b)=>{const S=(0,d0.getColumnPos)(b,v);if(C.push((0,d0.getColumnKey)(y,S)),Array.isArray(y.children)){const w=c(y.children,S);C.push.apply(C,(0,tH.default)(w))}}),C},u=df.useMemo(()=>{let m=!0;const v=rde(n,!1);if(!v.length){const S=c(n);return a.filter(w=>{let{key:x}=w;return S.includes(x)})}const C=[];function y(S){m?C.push(S):C.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let b=null;return v.forEach(S=>{b===null?(y(S),S.sortOrder&&(S.multiplePriority===!1?m=!1:b=!0)):(b&&S.multiplePriority!==!1||(m=!1),y(S))}),C},[n,a]),f=df.useMemo(()=>{var m,v;const C=u.map(y=>{let{column:b,sortOrder:S}=y;return{column:b,order:S}});return{sortColumns:C,sortColumn:(m=C[0])===null||m===void 0?void 0:m.column,sortOrder:(v=C[0])===null||v===void 0?void 0:v.order}},[u]),h=m=>{let v;m.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?v=[m]:v=[].concat((0,tH.default)(u.filter(C=>{let{key:y}=C;return y!==m.key})),[m]),l(v),s(g_e(v),v)};return[m=>Nlt(t,m,u,h,r,i,o),u,f,()=>g_e(u)]};ox.default=qLr;var jY={},KLr=_e.default;Object.defineProperty(jY,"__esModule",{value:!0});jY.default=void 0;var YLr=KLr(d),XLr=Bg;const zlt=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=(0,XLr.renderColumnTitle)(r.title,t),"children"in i&&(i.children=zlt(i.children,t)),i}),QLr=e=>[YLr.useCallback(n=>zlt(n,e),[e])];jY.default=QLr;var VY={};Object.defineProperty(VY,"__esModule",{value:!0});VY.default=void 0;var ZLr=a_;const JLr=(0,ZLr.genTable)((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});VY.default=JLr;var GY={};Object.defineProperty(GY,"__esModule",{value:!0});GY.default=void 0;var eFr=a_;const tFr=(0,eFr.genVirtualTable)((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});GY.default=tFr;var sx={},WY={};Object.defineProperty(WY,"__esModule",{value:!0});WY.default=void 0;var G6=Kt;const nFr=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:o,tablePaddingVertical:s,tablePaddingHorizontal:a,calc:l}=e,c=`${(0,G6.unit)(n)} ${r} ${i}`,u=(f,h,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,G6.unit)(l(h).mul(-1).equal())}
|
||
${(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
|
||
`]:{"> 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",[`
|
||
&${t}-cell-fix-left-last,
|
||
&${t}-cell-fix-right-first
|
||
`]:{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`,paddingInline:a,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:E},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:R}}},[`${F}-search`]:{padding:a,borderBottom:k,"&-input":{input:{minWidth:o},[r]:{color:S}}},[`${F}-checkall`]:{width:"100%",marginBottom:s,marginInlineStart:s},[`${F}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,e2.unit)(M(a).sub(c).equal())} ${(0,e2.unit)(a)}`,overflow:"hidden",borderTop:k}})}},{[`${n}-dropdown ${F}, ${F}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};YY.default=cFr;var XY={};Object.defineProperty(XY,"__esModule",{value:!0});XY.default=void 0;const uFr=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:o,tableBg:s,zIndexTableSticky:a,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[`
|
||
${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
|
||
`]:{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()}},[`
|
||
table tr th${t}-selection-column,
|
||
table tr td${t}-selection-column,
|
||
${t}-selection-column
|
||
`]:{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,[`
|
||
${t}-title,
|
||
${t}-footer,
|
||
${t}-cell,
|
||
${t}-thead > tr > th,
|
||
${t}-tbody > tr > th,
|
||
${t}-tbody > tr > td,
|
||
tfoot > tr > th,
|
||
tfoot > tr > td
|
||
`]:{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},[`
|
||
&${t}-cell-fix-left:hover,
|
||
&${t}-cell-fix-right:hover
|
||
`]:{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`]:{[`
|
||
& > ${t}-row,
|
||
& > div:not(${t}-row) > ${t}-row
|
||
`]:{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},[`
|
||
${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())}
|
||
${(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=ga(yb),XFr=ga(Q3),QFr=Zt,ZFr=ga(RY),JFr=ga(z2e),Jre=sX(dlt),eNr=ga(zY),eie=sX(cy),tNr=ga(Zu),tie=sX(ox),nNr=ga(jY),rNr=ga(VY),iNr=ga(GY),oNr=ga(sx);const sNr=[],aNr=(e,t)=>{var n,r;const{prefixCls:i,className:o,rootClassName:s,style:a,size:l,bordered:c,dropdownPrefixCls:u,dataSource:f,pagination:h,rowSelection:g,rowKey:p="key",rowClassName:m,columns:v,children:C,childrenColumnName:y,onChange:b,getPopupContainer:S,loading:w,expandIcon:x,expandable:E,expandedRowRender:R,expandIconColumnIndex:O,indentSize:T,scroll:M,sortDirections:_,locale:F,showSorterTooltip:D={target:"full-header"},virtual:k}=e;(0,jFr.devUseWarning)("Table");const L=Ms.useMemo(()=>v||(0,kFr.convertChildrenToColumns)(C),[v,C]),I=Ms.useMemo(()=>L.some(st=>st.responsive),[L]),A=(0,qFr.default)(I),N=Ms.useMemo(()=>{const st=new Set(Object.keys(A).filter(Ze=>A[Ze]));return L.filter(Ze=>!Ze.responsive||Ze.responsive.some(dt=>st.has(dt)))},[L,A]),B=(0,zFr.default)(e,["className","style","columns"]),{locale:z=KFr.default,direction:j,table:W,renderEmpty:G,getPrefixCls:K,getPopupContainer:q}=Ms.useContext(VFr.ConfigContext),X=(0,UFr.default)(l),Q=Object.assign(Object.assign({},z.Table),F),te=f||sNr,ne=K("table",i),Z=K("dropdown",u),[,ee]=(0,QFr.useToken)(),J=(0,WFr.default)(ne),[oe,le,ge]=(0,oNr.default)(ne,J),he=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:O},E),{expandIcon:(n=E==null?void 0:E.expandIcon)!==null&&n!==void 0?n:(r=W==null?void 0:W.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ye="children"}=he,ue=Ms.useMemo(()=>te.some(st=>st==null?void 0:st[ye])?"nest":R||E!=null&&E.expandedRowRender?"row":null,[te]),ve={body:Ms.useRef(null)},de=(0,JFr.default)(ne),xe=Ms.useRef(null),Ee=Ms.useRef(null);(0,BFr.default)(t,()=>Object.assign(Object.assign({},Ee.current),{nativeElement:xe.current}));const De=Ms.useMemo(()=>typeof p=="function"?p:st=>st==null?void 0:st[p],[p]),[Be]=(0,eNr.default)(te,ye,De),Ge={},Ue=function(st,Ze){let dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var At,kt,pn,ln;const Lt=Object.assign(Object.assign({},Ge),st);dt&&((At=Ge.resetPagination)===null||At===void 0||At.call(Ge),!((kt=Lt.pagination)===null||kt===void 0)&&kt.current&&(Lt.pagination.current=1),h&&((pn=h.onChange)===null||pn===void 0||pn.call(h,1,(ln=Lt.pagination)===null||ln===void 0?void 0:ln.pageSize))),M&&M.scrollToFirstRowOnChange!==!1&&ve.body.current&&(0,HFr.default)(0,{getContainer:()=>ve.body.current}),b==null||b(Lt.pagination,Lt.filters,Lt.sorter,{currentDataSource:(0,Jre.getFilterData)((0,tie.getSortData)(te,Lt.sorterStates,ye),Lt.filterStates,ye),action:Ze})},We=(st,Ze)=>{Ue({sorter:st,sorterStates:Ze},"sort",!1)},[Ve,Fe,ke,Ye]=(0,tie.default)({prefixCls:ne,mergedColumns:N,onSorterChange:We,sortDirections:_||["ascend","descend"],tableLocale:Q,showSorterTooltip:D}),ze=Ms.useMemo(()=>(0,tie.getSortData)(te,Fe,ye),[te,Fe]);Ge.sorter=Ye(),Ge.sorterStates=Fe;const Re=(st,Ze)=>{Ue({filters:st,filterStates:Ze},"filter",!0)},[Le,Me,be]=(0,Jre.default)({prefixCls:ne,locale:Q,dropdownPrefixCls:Z,mergedColumns:N,onFilterChange:Re,getPopupContainer:S||q,rootClassName:(0,W6.default)(s,J)}),je=(0,Jre.getFilterData)(ze,Me,ye);Ge.filters=be,Ge.filterStates=Me;const Xe=Ms.useMemo(()=>{const st={};return Object.keys(be).forEach(Ze=>{be[Ze]!==null&&(st[Ze]=be[Ze])}),Object.assign(Object.assign({},ke),{filters:st})},[ke,be]),[ft]=(0,nNr.default)(Xe),Tt=(st,Ze)=>{Ue({pagination:Object.assign(Object.assign({},Ge.pagination),{current:st,pageSize:Ze})},"paginate")},[tt,pt]=(0,eie.default)(je.length,Tt,h);Ge.pagination=h===!1?{}:(0,eie.getPaginationParam)(tt,h),Ge.resetPagination=pt;const $t=Ms.useMemo(()=>{if(h===!1||!tt.pageSize)return je;const{current:st=1,total:Ze,pageSize:dt=eie.DEFAULT_PAGE_SIZE}=tt;return je.length<Ze?je.length>dt?je.slice((st-1)*dt,st*dt):je:je.slice((st-1)*dt,st*dt)},[!!h,je,tt==null?void 0:tt.current,tt==null?void 0:tt.pageSize,tt==null?void 0:tt.total]),[wt,It]=(0,tNr.default)({prefixCls:ne,data:je,pageData:$t,getRowKey:De,getRecordByKey:Be,expandType:ue,childrenColumnName:ye,locale:Q,getPopupContainer:S||q},g),Ct=(st,Ze,dt)=>{let At;return typeof m=="function"?At=(0,W6.default)(m(st,Ze,dt)):At=(0,W6.default)(m),(0,W6.default)({[`${ne}-row-selected`]:It.has(De(st,Ze))},At)};he.__PARENT_RENDER_ICON__=he.expandIcon,he.expandIcon=he.expandIcon||x||(0,ZFr.default)(Q),ue==="nest"&&he.expandIconColumnIndex===void 0?he.expandIconColumnIndex=g?1:0:he.expandIconColumnIndex>0&&g&&(he.expandIconColumnIndex-=1),typeof he.indentSize!="number"&&(he.indentSize=typeof T=="number"?T:15);const ot=Ms.useCallback(st=>ft(wt(Le(Ve(st)))),[Ve,Le,wt]);let nt,fe;if(h!==!1&&(tt!=null&&tt.total)){let st;tt.size?st=tt.size:st=X==="small"||X==="middle"?"small":void 0;const Ze=kt=>Ms.createElement(YFr.default,Object.assign({},tt,{className:(0,W6.default)(`${ne}-pagination ${ne}-pagination-${kt}`,tt.className),size:st})),dt=j==="rtl"?"left":"right",{position:At}=tt;if(At!==null&&Array.isArray(At)){const kt=At.find(Lt=>Lt.includes("top")),pn=At.find(Lt=>Lt.includes("bottom")),ln=At.every(Lt=>`${Lt}`=="none");!kt&&!pn&&!ln&&(fe=Ze(dt)),kt&&(nt=Ze(kt.toLowerCase().replace("top",""))),pn&&(fe=Ze(pn.toLowerCase().replace("bottom","")))}else fe=Ze(dt)}let Te;typeof w=="boolean"?Te={spinning:w}:typeof w=="object"&&(Te=Object.assign({spinning:!0},w));const $e=(0,W6.default)(ge,J,`${ne}-wrapper`,W==null?void 0:W.className,{[`${ne}-wrapper-rtl`]:j==="rtl"},o,s,le),He=Object.assign(Object.assign({},W==null?void 0:W.style),a),it=typeof(F==null?void 0:F.emptyText)<"u"?F.emptyText:(G==null?void 0:G("Table"))||Ms.createElement(GFr.default,{componentName:"Table"}),at=k?iNr.default:rNr.default,gt={},yt=Ms.useMemo(()=>{const{fontSize:st,lineHeight:Ze,padding:dt,paddingXS:At,paddingSM:kt}=ee,pn=Math.floor(st*Ze);switch(X){case"large":return dt*2+pn;case"small":return At*2+pn;default:return kt*2+pn}},[ee,X]);return k&&(gt.listItemHeight=yt),oe(Ms.createElement("div",{ref:xe,className:$e,style:He},Ms.createElement(XFr.default,Object.assign({spinning:!1},Te),nt,Ms.createElement(at,Object.assign({},gt,B,{ref:Ee,columns:N,direction:j,expandable:he,prefixCls:ne,className:(0,W6.default)({[`${ne}-middle`]:X==="middle",[`${ne}-small`]:X==="small",[`${ne}-bordered`]:c,[`${ne}-empty`]:te.length===0},ge,J,le),data:$t,rowKey:De,rowClassName:Ct,emptyText:it,internalHooks:NFr.INTERNAL_HOOKS,internalRefs:ve,transformColumns:ot,getContainerWidth:de})),fe)))};EY.default=Ms.forwardRef(aNr);var c4e=pe.default,lNr=_e.default;Object.defineProperty(vY,"__esModule",{value:!0});vY.default=void 0;var ide=lNr(d),Hlt=a_,cNr=c4e(CY),uNr=c4e(yY),aX=Zu,dNr=c4e(EY);const fNr=(e,t)=>{const n=ide.useRef(0);return n.current+=1,ide.createElement(dNr.default,Object.assign({},e,{ref:t,_renderTimes:n.current}))},bv=ide.forwardRef(fNr);bv.SELECTION_COLUMN=aX.SELECTION_COLUMN;bv.EXPAND_COLUMN=Hlt.EXPAND_COLUMN;bv.SELECTION_ALL=aX.SELECTION_ALL;bv.SELECTION_INVERT=aX.SELECTION_INVERT;bv.SELECTION_NONE=aX.SELECTION_NONE;bv.Column=cNr.default;bv.ColumnGroup=uNr.default;bv.Summary=Hlt.Summary;vY.default=bv;var hNr=pe.default;Object.defineProperty(mY,"__esModule",{value:!0});mY.default=void 0;var gNr=hNr(vY);mY.default=gNr.default;var lX={},cX={},Og={};Object.defineProperty(Og,"__esModule",{value:!0});Og.prepareToken=Og.prepareComponentToken=Og.default=void 0;var jlt=Kt,pNr=Us,mNr=gn,Vlt=Zt;const vNr=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:o}=e,s=o(r).sub(n).equal(),a=o(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},(0,mNr.resetComponent)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,jlt.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:a,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:s}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Glt=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return(0,Vlt.mergeToken)(e,{tagFontSize:i,tagLineHeight:(0,jlt.unit)(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})};Og.prepareToken=Glt;const Wlt=e=>({defaultBg:new pNr.FastColor(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});Og.prepareComponentToken=Wlt;Og.default=(0,Vlt.genStyleHooks)("Tag",e=>{const t=Glt(e);return vNr(t)},Wlt);var Ult=pe.default,CNr=_e.default;Object.defineProperty(cX,"__esModule",{value:!0});cX.default=void 0;var nie=CNr(d),yNr=Ult(St),bNr=Bt,SNr=Ult(Og),wNr=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 xNr=nie.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:o,onChange:s,onClick:a}=e,l=wNr(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=nie.useContext(bNr.ConfigContext),f=C=>{s==null||s(!o),a==null||a(C)},h=c("tag",n),[g,p,m]=(0,SNr.default)(h),v=(0,yNr.default)(h,`${h}-checkable`,{[`${h}-checkable-checked`]:o},u==null?void 0:u.className,i,p,m);return g(nie.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))});cX.default=xNr;var uX={};Object.defineProperty(uX,"__esModule",{value:!0});uX.default=void 0;var w_e=Og,qlt=Zt;const ENr=e=>(0,qlt.genPresetColor)(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:o,darkColor:s}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:s,borderColor:s},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});uX.default=(0,qlt.genSubStyleComponent)(["Tag","preset"],e=>{const t=(0,w_e.prepareToken)(e);return ENr(t)},w_e.prepareComponentToken);var dX={},u4e={};Object.defineProperty(u4e,"__esModule",{value:!0});u4e.default=RNr;function RNr(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}var $Nr=pe.default;Object.defineProperty(dX,"__esModule",{value:!0});dX.default=void 0;var x_e=Og,ONr=$Nr(u4e),TNr=Zt;const KL=(e,t,n)=>{const r=(0,ONr.default)(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};dX.default=(0,TNr.genSubStyleComponent)(["Tag","status"],e=>{const t=(0,x_e.prepareToken)(e);return[KL(t,"success","Success"),KL(t,"processing","Info"),KL(t,"error","Error"),KL(t,"warning","Warning")]},x_e.prepareComponentToken);var Sb=pe.default,Klt=_e.default;Object.defineProperty(lX,"__esModule",{value:!0});lX.default=void 0;var tf=Klt(d),E_e=Sb(St),INr=Sb(mi),R_e=hv,rie=Klt(nb),MNr=Xi,PNr=Sb(M3),_Nr=Bt,ANr=Sb(cX),DNr=Sb(Og),LNr=Sb(uX),FNr=Sb(dX),NNr=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 kNr=tf.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,children:s,icon:a,color:l,onClose:c,bordered:u=!0,visible:f}=e,h=NNr(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:p,tag:m}=tf.useContext(_Nr.ConfigContext),[v,C]=tf.useState(!0),y=(0,INr.default)(h,["closeIcon","closable"]);tf.useEffect(()=>{f!==void 0&&C(f)},[f]);const b=(0,R_e.isPresetColor)(l),S=(0,R_e.isPresetStatusColor)(l),w=b||S,x=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},m==null?void 0:m.style),o),E=g("tag",n),[R,O,T]=(0,DNr.default)(E),M=(0,E_e.default)(E,m==null?void 0:m.className,{[`${E}-${l}`]:w,[`${E}-has-color`]:l&&!w,[`${E}-hidden`]:!v,[`${E}-rtl`]:p==="rtl",[`${E}-borderless`]:!u},r,i,O,T),_=A=>{A.stopPropagation(),c==null||c(A),!A.defaultPrevented&&C(!1)},[,F]=(0,rie.default)((0,rie.pickClosable)(e),(0,rie.pickClosable)(m),{closable:!1,closeIconRender:A=>{const N=tf.createElement("span",{className:`${E}-close-icon`,onClick:_},A);return(0,MNr.replaceElement)(A,N,B=>({onClick:z=>{var j;(j=B==null?void 0:B.onClick)===null||j===void 0||j.call(B,z),_(z)},className:(0,E_e.default)(B==null?void 0:B.className,`${E}-close-icon`)}))}}),D=typeof h.onClick=="function"||s&&s.type==="a",k=a||null,L=k?tf.createElement(tf.Fragment,null,k,s&&tf.createElement("span",null,s)):s,I=tf.createElement("span",Object.assign({},y,{ref:t,className:M,style:x}),L,F,b&&tf.createElement(LNr.default,{key:"preset",prefixCls:E}),S&&tf.createElement(FNr.default,{key:"status",prefixCls:E}));return R(D?tf.createElement(PNr.default,{component:"Tag"},I):I)}),Ylt=kNr;Ylt.CheckableTag=ANr.default;lX.default=Ylt;var fX={},hX={},d4e=pe.default;Object.defineProperty(hX,"__esModule",{value:!0});hX.default=void 0;var iie=Kt,zNr=d4e(qy),BNr=d4e(eh),HNr=d4e($G);const jNr=e=>{const t=e!=null&&e.algorithm?(0,iie.createTheme)(e.algorithm):(0,iie.createTheme)(zNr.default),n=Object.assign(Object.assign({},BNr.default),e==null?void 0:e.token);return(0,iie.getComputedToken)(n,{override:e==null?void 0:e.token},t,HNr.default)};hX.default=jNr;var gX={},f4e={};Object.defineProperty(f4e,"__esModule",{value:!0});f4e.default=VNr;function VNr(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}var pX=pe.default;Object.defineProperty(gX,"__esModule",{value:!0});gX.default=void 0;var GNr=pX(qy),WNr=pX(DM),UNr=pX(LM),qNr=pX(f4e);const KNr=(e,t)=>{const n=t??(0,GNr.default)(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),(0,qNr.default)(t??e)),(0,UNr.default)(r)),{controlHeight:i}),(0,WNr.default)(Object.assign(Object.assign({},n),{controlHeight:i})))};gX.default=KNr;var mX={},ax={},lx={};Object.defineProperty(lx,"__esModule",{value:!0});lx.getSolidColor=lx.getAlphaColor=void 0;var Xlt=Us;const YNr=(e,t)=>new Xlt.FastColor(e).setA(t).toRgbString();lx.getAlphaColor=YNr;const XNr=(e,t)=>new Xlt.FastColor(e).lighten(t).toHexString();lx.getSolidColor=XNr;Object.defineProperty(ax,"__esModule",{value:!0});ax.generateNeutralColorPalettes=ax.generateColorPalettes=void 0;var QNr=Xg,ba=lx;const ZNr=e=>{const t=(0,QNr.generate)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}};ax.generateColorPalettes=ZNr;const JNr=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:(0,ba.getAlphaColor)(r,.85),colorTextSecondary:(0,ba.getAlphaColor)(r,.65),colorTextTertiary:(0,ba.getAlphaColor)(r,.45),colorTextQuaternary:(0,ba.getAlphaColor)(r,.25),colorFill:(0,ba.getAlphaColor)(r,.18),colorFillSecondary:(0,ba.getAlphaColor)(r,.12),colorFillTertiary:(0,ba.getAlphaColor)(r,.08),colorFillQuaternary:(0,ba.getAlphaColor)(r,.04),colorBgSolid:(0,ba.getAlphaColor)(r,.95),colorBgSolidHover:(0,ba.getAlphaColor)(r,1),colorBgSolidActive:(0,ba.getAlphaColor)(r,.9),colorBgElevated:(0,ba.getSolidColor)(n,12),colorBgContainer:(0,ba.getSolidColor)(n,8),colorBgLayout:(0,ba.getSolidColor)(n,0),colorBgSpotlight:(0,ba.getSolidColor)(n,26),colorBgBlur:(0,ba.getAlphaColor)(r,.04),colorBorder:(0,ba.getSolidColor)(n,26),colorBorderSecondary:(0,ba.getSolidColor)(n,19)}};ax.generateNeutralColorPalettes=JNr;var Qlt=pe.default;Object.defineProperty(mX,"__esModule",{value:!0});mX.default=void 0;var ekr=Xg,tkr=Qlt(qy),nkr=eh,rkr=Qlt(yG),$_e=ax;const ikr=(e,t)=>{const n=Object.keys(nkr.defaultPresetColors).map(i=>{const o=(0,ekr.generate)(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((s,a,l)=>(s[`${i}-${l+1}`]=o[l],s[`${i}${l+1}`]=o[l],s),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),r=t??(0,tkr.default)(e);return Object.assign(Object.assign(Object.assign({},r),n),(0,rkr.default)(e,{generateColorPalettes:$_e.generateColorPalettes,generateNeutralColorPalettes:$_e.generateNeutralColorPalettes}))};mX.default=ikr;var vX=pe.default;Object.defineProperty(fX,"__esModule",{value:!0});fX.default=void 0;var okr=vX(hX),tk=Zt,skr=vX(gX),akr=vX(mX),lkr=vX(qy);function ckr(){const[e,t,n]=(0,tk.useToken)();return{theme:e,token:t,hashId:n}}fX.default={defaultSeed:tk.defaultConfig.token,useToken:ckr,defaultAlgorithm:lkr.default,darkAlgorithm:akr.default,compactAlgorithm:skr.default,getDesignToken:okr.default,defaultConfig:tk.defaultConfig,_internalContext:tk.DesignTokenContext};var CX={},h4e=pe.default,ukr=_e.default;Object.defineProperty(CX,"__esModule",{value:!0});CX.default=void 0;var dO=ukr(d),dkr=h4e($c),fkr=h4e(VP),hkr=h4e(Id),gkr=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{TimePicker:pkr,RangePicker:mkr}=fkr.default,vkr=dO.forwardRef((e,t)=>dO.createElement(mkr,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),h_=dO.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:o}=e,s=gkr(e,["addon","renderExtraFooter","variant","bordered"]);const[a]=(0,hkr.default)("timePicker",i,o),l=dO.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return dO.createElement(pkr,Object.assign({},s,{mode:void 0,ref:t,renderExtraFooter:l,variant:a}))}),Zlt=(0,dkr.default)(h_,"popupAlign",void 0,"picker");h_._InternalPanelDoNotUseOrYouWillBeFired=Zlt;h_.RangePicker=vkr;h_._InternalPanelDoNotUseOrYouWillBeFired=Zlt;CX.default=h_;var yX={},bX={},cx={};Object.defineProperty(cx,"__esModule",{value:!0});cx.prepareComponentToken=cx.default=void 0;var ic=Kt,Ckr=gn,O_e=Zt;const ykr=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},(0,Ckr.resetComponent)(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${(0,ic.unit)(e.itemHeadSize)})`,borderInlineStart:`${(0,ic.unit)(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${(0,ic.unit)(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,
|
||
&${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
|
||
${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`]:l==="rtl"},n,s,c);return oie.createElement("ul",Object.assign({},h,{className:S}),y)};SX.default=Ikr;var xX={},Mkr=pe.default;Object.defineProperty(xX,"__esModule",{value:!0});xX.default=void 0;var Pkr=Mkr(qs);function _kr(e,t){return e&&Array.isArray(e)?e:(0,Pkr.default)(t).map(n=>{var r,i;return Object.assign({children:(i=(r=n==null?void 0:n.props)===null||r===void 0?void 0:r.children)!==null&&i!==void 0?i:""},n.props)})}xX.default=_kr;var nE=pe.default,Akr=_e.default;Object.defineProperty(bX,"__esModule",{value:!0});bX.default=void 0;var P_e=Akr(d),Dkr=nE(St),Lkr=Bt,Fkr=nE(Xr),Nkr=nE(cx),kkr=nE(g_),zkr=nE(SX),Bkr=nE(xX),Hkr=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 ect=e=>{const{getPrefixCls:t,direction:n,timeline:r}=P_e.useContext(Lkr.ConfigContext),{prefixCls:i,children:o,items:s,className:a,style:l}=e,c=Hkr(e,["prefixCls","children","items","className","style"]),u=t("timeline",i),f=(0,Fkr.default)(u),[h,g,p]=(0,Nkr.default)(u,f),m=(0,Bkr.default)(s,o);return h(P_e.createElement(zkr.default,Object.assign({},c,{className:(0,Dkr.default)(r==null?void 0:r.className,a,p,f),style:Object.assign(Object.assign({},r==null?void 0:r.style),l),prefixCls:u,direction:n,items:m,hashId:g})))};ect.Item=kkr.default;bX.default=ect;var jkr=pe.default;Object.defineProperty(yX,"__esModule",{value:!0});yX.default=void 0;var Vkr=jkr(bX);yX.default=Vkr.default;var EX={};const Gkr=_r(JIn);var p_={},rE=pe.default;Object.defineProperty(p_,"__esModule",{value:!0});p_.default=void 0;var Wkr=rE(zr),zc=rE(d),Ukr=rE(Td),sie=rE(St),__e=rE(Ru),qkr=Os,Kkr=rE(Ec);function aie(e){return e!=null}const Ykr=e=>{var t,n;const{stepProps:r,current:i,type:o,indicatorsRender:s}=e,{prefixCls:a,total:l=1,title:c,onClose:u,onPrev:f,onNext:h,onFinish:g,cover:p,description:m,nextButtonProps:v,prevButtonProps:C,type:y,closable:b}=r,S=y??o,w=zc.default.createElement("button",{type:"button",onClick:u,className:`${a}-close`},(b==null?void 0:b.closeIcon)||zc.default.createElement(Ukr.default,{className:`${a}-close-icon`})),x=i===l-1,E=()=>{var L;f==null||f(),(L=C==null?void 0:C.onClick)===null||L===void 0||L.call(C)},R=()=>{var L;x?g==null||g():h==null||h(),(L=v==null?void 0:v.onClick)===null||L===void 0||L.call(v)},O=aie(c)?zc.default.createElement("div",{className:`${a}-header`},zc.default.createElement("div",{className:`${a}-title`},c)):null,T=aie(m)?zc.default.createElement("div",{className:`${a}-description`},m):null,M=aie(p)?zc.default.createElement("div",{className:`${a}-cover`},p):null;let _;s?_=s(i,l):_=(0,Wkr.default)(Array.from({length:l}).keys()).map((L,I)=>zc.default.createElement("span",{key:L,className:(0,sie.default)(I===i&&`${a}-indicator-active`,`${a}-indicator`)}));const F=S==="primary"?"default":"primary",D={type:"default",ghost:S==="primary"},[k]=(0,qkr.useLocale)("Tour",Kkr.default.Tour);return zc.default.createElement("div",{className:`${a}-content`},zc.default.createElement("div",{className:`${a}-inner`},b&&w,M,O,T,zc.default.createElement("div",{className:`${a}-footer`},l>1&&zc.default.createElement("div",{className:`${a}-indicators`},_),zc.default.createElement("div",{className:`${a}-buttons`},i!==0?zc.default.createElement(__e.default,Object.assign({},D,C,{onClick:E,size:"small",className:(0,sie.default)(`${a}-prev-btn`,C==null?void 0:C.className)}),(t=C==null?void 0:C.children)!==null&&t!==void 0?t:k==null?void 0:k.Previous):null,zc.default.createElement(__e.default,Object.assign({type:F},v,{onClick:R,size:"small",className:(0,sie.default)(`${a}-next-btn`,v==null?void 0:v.className)}),(n=v==null?void 0:v.children)!==null&&n!==void 0?n:x?k==null?void 0:k.Finish:k==null?void 0:k.Next)))))};p_.default=Ykr;var RX={},uy={},Xkr=_e.default;Object.defineProperty(uy,"__esModule",{value:!0});uy.prepareComponentToken=uy.default=void 0;var nf=Kt,A_e=Us,D_e=gn,ode=Xkr(Xm),Qkr=tp,L_e=Zt;const Zkr=e=>{const{componentCls:t,padding:n,paddingXS:r,borderRadius:i,borderRadiusXS:o,colorPrimary:s,colorFill:a,indicatorHeight:l,indicatorWidth:c,boxShadowTertiary:u,zIndexPopup:f,colorBgElevated:h,fontWeightStrong:g,marginXS:p,colorTextLightSolid:m,tourBorderRadius:v,colorWhite:C,primaryNextBtnHoverBg:y,closeBtnSize:b,motionDurationSlow:S,antCls:w,primaryPrevBtnBg:x}=e;return[{[t]:Object.assign(Object.assign({},(0,D_e.resetComponent)(e)),{position:"absolute",zIndex:f,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":h,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:v,boxShadow:u,position:"relative",backgroundColor:h,border:"none",backgroundClip:"padding-box",[`${t}-close`]:Object.assign({position:"absolute",top:n,insetInlineEnd:n,color:e.colorIcon,background:"none",border:"none",width:b,height:b,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},(0,D_e.genFocusStyle)(e)),[`${t}-cover`]:{textAlign:"center",padding:`${(0,nf.unit)(e.calc(n).add(b).add(r).equal())} ${(0,nf.unit)(n)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${(0,nf.unit)(n)} ${(0,nf.unit)(n)} ${(0,nf.unit)(r)}`,width:`calc(100% - ${(0,nf.unit)(b)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:g}},[`${t}-description`]:{padding:`0 ${(0,nf.unit)(n)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${(0,nf.unit)(r)} ${(0,nf.unit)(n)} ${(0,nf.unit)(n)}`,textAlign:"end",borderRadius:`0 0 ${(0,nf.unit)(o)} ${(0,nf.unit)(o)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:c,height:l,display:"inline-block",borderRadius:"50%",background:a,"&:not(:last-child)":{marginInlineEnd:l},"&-active":{background:s}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${w}-btn`]:{marginInlineStart:p}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":s,[`${t}-inner`]:{color:m,textAlign:"start",textDecoration:"none",backgroundColor:s,borderRadius:i,boxShadow:u,[`${t}-close`]:{color:m},[`${t}-indicators`]:{[`${t}-indicator`]:{background:x,"&-active":{background:m}}},[`${t}-prev-btn`]:{color:m,borderColor:x,backgroundColor:s,"&:hover":{backgroundColor:x,borderColor:"transparent"}},[`${t}-next-btn`]:{color:s,borderColor:"transparent",background:C,"&:hover":{background:y}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${S}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(v,ode.MAX_VERTICAL_CONTENT_RADIUS)}}},(0,ode.default)(e,"var(--antd-arrow-background-color)")]},tct=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new A_e.FastColor(e.colorTextLightSolid).setA(.15).toRgbString(),primaryNextBtnHoverBg:new A_e.FastColor(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString()},(0,ode.getArrowOffsetToken)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,Qkr.getArrowToken)(e));uy.prepareComponentToken=tct;uy.default=(0,L_e.genStyleHooks)("Tour",e=>{const{borderRadiusLG:t}=e,n=(0,L_e.mergeToken)(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return[Zkr(n)]},tct);var $X=pe.default,Jkr=_e.default;Object.defineProperty(RX,"__esModule",{value:!0});RX.default=void 0;var YL=Jkr(d),F_e=$X(St),ezr=$X(nb),tzr=$c,nzr=Xi,rzr=Bt,izr=gm,ozr=$X(p_),szr=$X(uy),azr=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 lzr=e=>{const{prefixCls:t,current:n=0,total:r=6,className:i,style:o,type:s,closable:a,closeIcon:l}=e,c=azr(e,["prefixCls","current","total","className","style","type","closable","closeIcon"]),{getPrefixCls:u}=YL.useContext(rzr.ConfigContext),f=u("tour",t),[h,g,p]=(0,szr.default)(f),[m,v]=(0,ezr.default)({closable:a,closeIcon:l},null,{closable:!0,closeIconRender:C=>YL.isValidElement(C)?(0,nzr.cloneElement)(C,{className:(0,F_e.default)(C.props.className,`${f}-close-icon`)}):C});return h(YL.createElement(izr.RawPurePanel,{prefixCls:f,hashId:g,className:(0,F_e.default)(i,`${f}-pure`,s&&`${f}-${s}`,p),style:o},YL.createElement(ozr.default,{stepProps:Object.assign(Object.assign({},c),{prefixCls:f,total:r,closable:m?{closeIcon:v}:void 0}),current:n,type:s})))};RX.default=(0,tzr.withPureRenderTheme)(lzr);var wb=pe.default,czr=_e.default;Object.defineProperty(EX,"__esModule",{value:!0});EX.default=void 0;var MR=czr(d),uzr=wb(Gkr),N_e=wb(St),dzr=ho,fzr=wb(R9),hzr=wb(cv),gzr=Bt,pzr=Zt,mzr=wb(p_),vzr=wb(RX),Czr=wb(uy),yzr=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 nct=e=>{const{prefixCls:t,type:n,rootClassName:r,indicatorsRender:i,steps:o,closeIcon:s}=e,a=yzr(e,["prefixCls","type","rootClassName","indicatorsRender","steps","closeIcon"]),{getPrefixCls:l,direction:c,tour:u}=(0,MR.useContext)(gzr.ConfigContext),f=l("tour",t),[h,g,p]=(0,Czr.default)(f),[,m]=(0,pzr.useToken)(),v=MR.default.useMemo(()=>o==null?void 0:o.map(x=>{var E;return Object.assign(Object.assign({},x),{className:(0,N_e.default)(x.className,{[`${f}-primary`]:((E=x.type)!==null&&E!==void 0?E:n)==="primary"})})}),[o,n]),C=x=>{var E;return(0,fzr.default)({arrowPointAtCenter:(E=x==null?void 0:x.arrowPointAtCenter)!==null&&E!==void 0?E:!0,autoAdjustOverflow:!0,offset:m.marginXXS,arrowWidth:m.sizePopupArrow,borderRadius:m.borderRadius})},y=(0,N_e.default)({[`${f}-rtl`]:c==="rtl"},g,p,r),b=(x,E)=>MR.default.createElement(mzr.default,{type:n,stepProps:x,current:E,indicatorsRender:i}),[S,w]=(0,dzr.useZIndex)("Tour",a.zIndex);return h(MR.default.createElement(hzr.default.Provider,{value:w},MR.default.createElement(uzr.default,Object.assign({},a,{closeIcon:s??(u==null?void 0:u.closeIcon),zIndex:S,rootClassName:y,prefixCls:f,animated:!0,renderPanel:b,builtinPlacements:C,steps:v}))))};nct._InternalPanelDoNotUseOrYouWillBeFired=vzr.default;EX.default=nct;var OX={},a3={};Object.defineProperty(a3,"__esModule",{value:!0});a3.groupKeysMap=a3.groupDisabledKeysMap=void 0;const bzr=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t};a3.groupKeysMap=bzr;const Szr=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:i,key:o}=n;i&&t.set(o,r)}),t};a3.groupDisabledKeysMap=Szr;var TX={},wzr=_e.default;Object.defineProperty(TX,"__esModule",{value:!0});TX.default=void 0;var k_e=wzr(d),xzr=a3;const Ezr=(e,t,n)=>{const r=k_e.useMemo(()=>(e||[]).map(s=>t?Object.assign(Object.assign({},s),{key:t(s)}):s),[e,t]),[i,o]=k_e.useMemo(()=>{const s=[],a=new Array((n||[]).length),l=(0,xzr.groupKeysMap)(n||[]);return r.forEach(c=>{l.has(c.key)?a[l.get(c.key)]=c:s.push(c)}),[s,a]},[r,n,t]);return[r,i,o]};TX.default=Ezr;var g4e={},Rzr=_e.default,$zr=pe.default;Object.defineProperty(g4e,"__esModule",{value:!0});g4e.default=Tzr;var z5=$zr(zr),XL=Rzr(d),lie=xst;const Ozr=[];function QL(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function z_e(e){return Array.from(e).join(";")}function Tzr(e,t,n){const[r,i]=XL.useMemo(()=>[new Set(e.map(f=>f.key)),new Set(t.map(f=>f.key))],[e,t]),[o,s]=(0,lie.useMergedState)(Ozr,{value:n}),a=XL.useMemo(()=>QL(o,r),[o,r]),l=XL.useMemo(()=>QL(o,i),[o,i]);XL.useEffect(()=>{s([].concat((0,z5.default)(QL(o,r)),(0,z5.default)(QL(o,i))))},[z_e(r),z_e(i)]);const c=(0,lie.useEvent)(f=>{s([].concat((0,z5.default)(f),(0,z5.default)(l)))}),u=(0,lie.useEvent)(f=>{s([].concat((0,z5.default)(a),(0,z5.default)(f)))});return[a,l,c,u]}var IX={},ux={},MX={},sde={exports:{}},PX={},p4e={};Object.defineProperty(p4e,"__esModule",{value:!0});var Izr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};p4e.default=Izr;var Mzr=_e.default,m4e=pe.default;Object.defineProperty(PX,"__esModule",{value:!0});PX.default=void 0;var Pzr=m4e(lr),rct=Mzr(d),_zr=m4e(p4e),Azr=m4e(cr),Dzr=function(t,n){return rct.createElement(Azr.default,(0,Pzr.default)({},t,{ref:n,icon:_zr.default}))},Lzr=rct.forwardRef(Dzr);PX.default=Lzr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(PX);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(sde,sde.exports);var ict=sde.exports,_X=pe.default,Fzr=_e.default;Object.defineProperty(MX,"__esModule",{value:!0});MX.default=void 0;var a8=Fzr(d),Nzr=_X(ict),kzr=_X(St),zzr=_X(V3),Bzr=Os,Hzr=_X(Ec);const jzr=e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:o,prefixCls:s,onClick:a,onRemove:l,showRemove:c}=e,u=(0,kzr.default)(`${s}-content-item`,{[`${s}-content-item-disabled`]:o||r.disabled,[`${s}-content-item-checked`]:i&&!r.disabled});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[h]=(0,Bzr.useLocale)("Transfer",Hzr.default.Transfer),g={className:u,title:f},p=a8.createElement("span",{className:`${s}-content-item-text`},n);return c?a8.createElement("li",Object.assign({},g),p,a8.createElement("button",{type:"button",disabled:o||r.disabled,className:`${s}-content-item-remove`,"aria-label":h==null?void 0:h.remove,onClick:()=>l==null?void 0:l(r)},a8.createElement(Nzr.default,null))):(g.onClick=o||r.disabled?void 0:m=>a(r,m),a8.createElement("li",Object.assign({},g),a8.createElement(zzr.default,{className:`${s}-checkbox`,checked:i,disabled:o||r.disabled}),p))};MX.default=a8.memo(jzr);var AX=pe.default,Vzr=_e.default;Object.defineProperty(ux,"__esModule",{value:!0});ux.default=ux.OmitProps=void 0;var Dh=Vzr(d),Gzr=AX(St),Wzr=AX(fa),Uzr=AX(yb),qzr=AX(MX);ux.OmitProps=["handleFilter","handleClear","checkedKeys"];const Kzr=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),Yzr=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:o,showRemove:s,pagination:a,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[f,h]=Dh.useState(1),g=Dh.useMemo(()=>a?Kzr(typeof a=="object"?a:{}):null,[a]),[p,m]=(0,Wzr.default)(10,{value:g==null?void 0:g.pageSize});Dh.useEffect(()=>{if(g){const E=Math.ceil(r.length/p);h(Math.min(f,E))}},[r,g,p]);const v=(E,R)=>{c(E.key,!i.includes(E.key),R)},C=E=>{u==null||u([E.key])},y=E=>{h(E)},b=(E,R)=>{h(E),m(R)},S=Dh.useMemo(()=>g?r.slice((f-1)*p,f*p):r,[f,r,g,p]);Dh.useImperativeHandle(t,()=>({items:S}));const w=g?Dh.createElement(Uzr.default,{size:"small",disabled:o,simple:g.simple,pageSize:p,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:y,onShowSizeChange:b}):null,x=(0,Gzr.default)(`${n}-content`,{[`${n}-content-show-remove`]:s});return Dh.createElement(Dh.Fragment,null,Dh.createElement("ul",{className:x,onScroll:l},(S||[]).map(E=>{let{renderedEl:R,renderedText:O,item:T}=E;return Dh.createElement(qzr.default,{key:T.key,item:T,renderedText:O,renderedEl:R,prefixCls:n,showRemove:s,onClick:v,onRemove:C,checked:i.includes(T.key),disabled:o||T.disabled})})),w)};ux.default=Dh.forwardRef(Yzr);var m_={},oct=pe.default,Xzr=_e.default;Object.defineProperty(m_,"__esModule",{value:!0});m_.default=void 0;var cie=Xzr(d),Qzr=oct(uU),Zzr=oct(pb);const Jzr=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:o,handleClear:s}=e,a=cie.useCallback(l=>{o==null||o(l),l.target.value===""&&(s==null||s())},[o]);return cie.createElement(Zzr.default,{placeholder:t,className:r,value:n,onChange:a,disabled:i,allowClear:!0,prefix:cie.createElement(Qzr.default,null)})};m_.default=Jzr;var iE=pe.default,sct=_e.default;Object.defineProperty(IX,"__esModule",{value:!0});IX.default=void 0;var bo=sct(d),eBr=iE(b9),B_e=iE(St),tBr=iE(mi),nBr=a3,rBr=iE(V3),iBr=iE(vb),H_e=sct(ux),oBr=iE(m_);const sBr=()=>null;function aBr(e){return!!(e&&!bo.default.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function PR(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const lBr=e=>e!==void 0,cBr=e=>e&&typeof e=="object"?Object.assign(Object.assign({},e),{defaultValue:e.defaultValue||""}):{defaultValue:"",placeholder:""},uBr=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:i,disabled:o,showSearch:s=!1,style:a,searchPlaceholder:l,notFoundContent:c,selectAll:u,deselectAll:f,selectCurrent:h,selectInvert:g,removeAll:p,removeCurrent:m,showSelectAll:v=!0,showRemove:C,pagination:y,direction:b,itemsUnit:S,itemUnit:w,selectAllLabel:x,selectionsIcon:E,footer:R,renderList:O,onItemSelectAll:T,onItemRemove:M,handleFilter:_,handleClear:F,filterOption:D,render:k=sBr}=e,L=cBr(s),[I,A]=(0,bo.useState)(L.defaultValue),N=(0,bo.useRef)({}),B=ue=>{A(ue.target.value),_(ue)},z=()=>{A(""),F()},j=(ue,ve)=>D?D(I,ve,b):ue.includes(I),W=ue=>{let ve=O?O(Object.assign(Object.assign({},ue),{onItemSelect:(xe,Ee)=>ue.onItemSelect(xe,Ee)})):null;const de=!!ve;return de||(ve=bo.default.createElement(H_e.default,Object.assign({ref:N},ue))),{customize:de,bodyContent:ve}},G=ue=>{const ve=k(ue),de=aBr(ve);return{item:ue,renderedEl:de?ve.label:ve,renderedText:de?ve.value:ve}},K=(0,bo.useMemo)(()=>Array.isArray(c)?c[b==="left"?0:1]:c,[c,b]),[q,X]=(0,bo.useMemo)(()=>{const ue=[],ve=[];return n.forEach(de=>{const xe=G(de);I&&!j(xe.renderedText,de)||(ue.push(de),ve.push(xe))}),[ue,ve]},[n,I]),Q=(0,bo.useMemo)(()=>q.filter(ue=>i.includes(ue.key)&&!ue.disabled),[i,q]),te=(0,bo.useMemo)(()=>{if(Q.length===0)return"none";const ue=(0,nBr.groupKeysMap)(i);return q.every(ve=>ue.has(ve.key)||!!ve.disabled)?"all":"part"},[i,Q]),ne=(0,bo.useMemo)(()=>{const ue=s?bo.default.createElement("div",{className:`${t}-body-search-wrapper`},bo.default.createElement(oBr.default,{prefixCls:`${t}-search`,onChange:B,handleClear:z,placeholder:L.placeholder||l,value:I,disabled:o})):null,{customize:ve,bodyContent:de}=W(Object.assign(Object.assign({},(0,tBr.default)(e,H_e.OmitProps)),{filteredItems:q,filteredRenderItems:X,selectedKeys:i}));let xe;return ve?xe=bo.default.createElement("div",{className:`${t}-body-customize-wrapper`},de):xe=q.length?de:bo.default.createElement("div",{className:`${t}-body-not-found`},K),bo.default.createElement("div",{className:(0,B_e.default)(`${t}-body`,{[`${t}-body-with-search`]:s})},ue,xe)},[s,t,l,I,o,i,q,X,K]),Z=bo.default.createElement(rBr.default,{disabled:n.filter(ue=>!ue.disabled).length===0||o,checked:te==="all",indeterminate:te==="part",className:`${t}-checkbox`,onChange:()=>{T==null||T(q.filter(ue=>!ue.disabled).map(ue=>{let{key:ve}=ue;return ve}),te!=="all")}}),ee=(ue,ve)=>{if(x)return typeof x=="function"?x({selectedCount:ue,totalCount:ve}):x;const de=ve>1?S:w;return bo.default.createElement(bo.default.Fragment,null,(ue>0?`${ue}/`:"")+ve," ",de)},J=R&&(R.length<2?R(e):R(e,{direction:b})),oe=(0,B_e.default)(t,{[`${t}-with-pagination`]:!!y,[`${t}-with-footer`]:!!J}),le=J?bo.default.createElement("div",{className:`${t}-footer`},J):null,ge=!C&&!y&&Z;let he;C?he=[y?{key:"removeCurrent",label:m,onClick(){var ue;const ve=PR((((ue=N.current)===null||ue===void 0?void 0:ue.items)||[]).map(de=>de.item));M==null||M(ve)}}:null,{key:"removeAll",label:p,onClick(){M==null||M(PR(q))}}].filter(Boolean):he=[{key:"selectAll",label:te==="all"?f:u,onClick(){const ue=PR(q);T==null||T(ue,ue.length!==i.length)}},y?{key:"selectCurrent",label:h,onClick(){var ue;const ve=((ue=N.current)===null||ue===void 0?void 0:ue.items)||[];T==null||T(PR(ve.map(de=>de.item)),!0)}}:null,{key:"selectInvert",label:g,onClick(){var ue;const ve=PR((((ue=N.current)===null||ue===void 0?void 0:ue.items)||[]).map(Ee=>Ee.item)),de=new Set(i),xe=new Set(de);ve.forEach(Ee=>{de.has(Ee)?xe.delete(Ee):xe.add(Ee)}),T==null||T(Array.from(xe),"replace")}}];const ye=bo.default.createElement(iBr.default,{className:`${t}-header-dropdown`,menu:{items:he},disabled:o},lBr(E)?E:bo.default.createElement(eBr.default,null));return bo.default.createElement("div",{className:oe,style:a},bo.default.createElement("div",{className:`${t}-header`},v?bo.default.createElement(bo.default.Fragment,null,ge,ye):null,bo.default.createElement("span",{className:`${t}-header-selected`},ee(Q.length,q.length)),bo.default.createElement("span",{className:`${t}-header-title`},r)),ne,le)};IX.default=uBr;var DX={},v4e=pe.default,dBr=_e.default;Object.defineProperty(DX,"__esModule",{value:!0});DX.default=void 0;var U6=dBr(d),j_e=v4e(T9),V_e=v4e(P3),G_e=v4e(Ru);const fBr=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:o="",leftActive:s,rightActive:a,className:l,style:c,direction:u,oneWay:f}=e;return U6.createElement("div",{className:l,style:c},U6.createElement(G_e.default,{type:"primary",size:"small",disabled:t||!a,onClick:r,icon:u!=="rtl"?U6.createElement(V_e.default,null):U6.createElement(j_e.default,null)},o),!f&&U6.createElement(G_e.default,{type:"primary",size:"small",disabled:t||!s,onClick:n,icon:u!=="rtl"?U6.createElement(j_e.default,null):U6.createElement(V_e.default,null)},i))};DX.default=fBr;var dx={};Object.defineProperty(dx,"__esModule",{value:!0});dx.prepareComponentToken=dx.default=void 0;var Vu=Kt,S$=gn,W_e=Zt;const hBr=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i}=e,o=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${o}-wrapper`]:{[`${o}-small`]:{border:0,borderRadius:0,[`${o}-selection-column`]:{width:i,minWidth:i}},[`${o}-pagination${o}-pagination`]:{margin:0,padding:e.paddingXS}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},U_e=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},gBr=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},U_e(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},U_e(e,e.colorWarning))}},pBr=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,itemHeight:o,headerHeight:s,transferHeaderVerticalPadding:a,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,colorTextSecondary:f,listHeight:h,listWidth:g,listWidthLG:p,fontSizeIcon:m,marginXS:v,paddingSM:C,lineType:y,antCls:b,iconCls:S,motionDurationSlow:w,controlItemBgHover:x,borderRadiusLG:E,colorBgContainer:R,colorText:O,controlItemBgActiveHover:T}=e,M=(0,Vu.unit)(e.calc(E).sub(i).equal());return{display:"flex",flexDirection:"column",width:g,height:h,border:`${(0,Vu.unit)(i)} ${y} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:p,height:"auto"},"&-search":{[`${S}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:s,padding:`${(0,Vu.unit)(e.calc(a).sub(i).equal())} ${(0,Vu.unit)(C)} ${(0,Vu.unit)(a)}`,color:O,background:R,borderBottom:`${(0,Vu.unit)(i)} ${y} ${r}`,borderRadius:`${(0,Vu.unit)(E)} ${(0,Vu.unit)(E)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},S$.textEllipsis),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},(0,S$.resetIcon)()),{fontSize:m,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:C}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${M} ${M}`,"&-item":{display:"flex",alignItems:"center",minHeight:o,padding:`${(0,Vu.unit)(l)} ${(0,Vu.unit)(C)}`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},S$.textEllipsis),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},(0,S$.operationUnit)(e)),{color:n,"&:hover, &:focus":{color:f}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:T}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${(0,Vu.unit)(i)} ${y} ${r}`,[`${b}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${(0,Vu.unit)(i)} ${y} ${r}`},"&-checkbox":{lineHeight:1}}},mBr=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:i,marginXXS:o,fontSizeIcon:s,colorBgContainerDisabled:a}=e;return{[r]:Object.assign(Object.assign({},(0,S$.resetComponent)(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:a}},[`${r}-list`]:pBr(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${(0,Vu.unit)(i)}`,verticalAlign:"middle",gap:o,[`${t}-btn ${n}`]:{fontSize:s}}})}},vBr=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},act=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:i,lineWidth:o}=e,s=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:i,itemHeight:r,itemPaddingBlock:(r-s)/2,transferHeaderVerticalPadding:Math.ceil((i-o-s)/2)}};dx.prepareComponentToken=act;dx.default=(0,W_e.genStyleHooks)("Transfer",e=>{const t=(0,W_e.mergeToken)(e);return[mBr(t),hBr(t),gBr(t),vBr(t)]},act);var CBr=_e.default,op=pe.default;Object.defineProperty(OX,"__esModule",{value:!0});OX.default=void 0;var _R=op(zr),F1=CBr(d),yBr=op(St),q_e=op(xY),K_e=Ql,uie=a3,bBr=Bt,SBr=op(ep),wBr=Ir,xBr=Os,EBr=op(Ec),RBr=op(TX),$Br=op(g4e),ade=op(IX),lct=op(DX),OBr=op(m_),TBr=op(dx);const LX=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:i=[],operations:o=[],style:s={},listStyle:a={},locale:l={},titles:c,disabled:u,showSearch:f=!1,operationStyle:h,showSelectAll:g,oneWay:p,pagination:m,status:v,prefixCls:C,className:y,rootClassName:b,selectionsIcon:S,filterOption:w,render:x,footer:E,children:R,rowKey:O,onScroll:T,onChange:M,onSearch:_,onSelectChange:F}=e,{getPrefixCls:D,renderEmpty:k,direction:L,transfer:I}=(0,F1.useContext)(bBr.ConfigContext),A=D("transfer",C),[N,B,z]=(0,TBr.default)(A),[j,W,G]=(0,RBr.default)(t,O,n),[K,q,X,Q]=(0,$Br.default)(W,G,r),[te,ne]=(0,q_e.default)(fe=>fe.key),[Z,ee]=(0,q_e.default)(fe=>fe.key),J=(0,F1.useCallback)((fe,Te)=>{if(fe==="left"){const $e=typeof Te=="function"?Te(K||[]):Te;X($e)}else{const $e=typeof Te=="function"?Te(q||[]):Te;Q($e)}},[K,q]),oe=(fe,Te)=>{(fe==="left"?ne:ee)(Te)},le=(0,F1.useCallback)((fe,Te)=>{fe==="left"?F==null||F(Te,q):F==null||F(K,Te)},[K,q]),ge=fe=>{var Te;return(Te=c??fe.titles)!==null&&Te!==void 0?Te:[]},he=fe=>{T==null||T("left",fe)},ye=fe=>{T==null||T("right",fe)},ue=fe=>{const Te=fe==="right"?K:q,$e=(0,uie.groupDisabledKeysMap)(j),He=Te.filter(yt=>!$e.has(yt)),it=(0,uie.groupKeysMap)(He),at=fe==="right"?He.concat(n):n.filter(yt=>!it.has(yt)),gt=fe==="right"?"left":"right";J(gt,[]),le(gt,[]),M==null||M(at,fe,He)},ve=()=>{ue("left"),oe("left",null)},de=()=>{ue("right"),oe("right",null)},xe=(fe,Te,$e)=>{J(fe,He=>{let it=[];if($e==="replace")it=Te;else if($e)it=Array.from(new Set([].concat((0,_R.default)(He),(0,_R.default)(Te))));else{const at=(0,uie.groupKeysMap)(Te);it=He.filter(gt=>!at.has(gt))}return le(fe,it),it}),oe(fe,null)},Ee=(fe,Te)=>{xe("left",fe,Te)},De=(fe,Te)=>{xe("right",fe,Te)},Be=fe=>_==null?void 0:_("left",fe.target.value),Ge=fe=>_==null?void 0:_("right",fe.target.value),Ue=()=>_==null?void 0:_("left",""),We=()=>_==null?void 0:_("right",""),Ve=(fe,Te,$e,He,it)=>{Te.has($e)&&(Te.delete($e),oe(fe,null)),He&&(Te.add($e),oe(fe,it))},Fe=(fe,Te,$e,He)=>{(fe==="left"?te:Z)(He,Te,$e)},ke=(fe,Te,$e,He)=>{const it=fe==="left",at=(0,_R.default)(it?K:q),gt=new Set(at),yt=(0,_R.default)(it?W:G).filter(dt=>!(dt!=null&&dt.disabled)),st=yt.findIndex(dt=>dt.key===Te);He&&at.length>0?Fe(fe,yt,gt,st):Ve(fe,gt,Te,$e,st);const Ze=Array.from(gt);le(fe,Ze),e.selectedKeys||J(fe,Ze)},Ye=(fe,Te,$e)=>{ke("left",fe,Te,$e==null?void 0:$e.shiftKey)},ze=(fe,Te,$e)=>{ke("right",fe,Te,$e==null?void 0:$e.shiftKey)},Re=fe=>{J("right",[]),M==null||M(n.filter(Te=>!fe.includes(Te)),"left",(0,_R.default)(fe))},Le=fe=>typeof a=="function"?a({direction:fe}):a||{},Me=(0,F1.useContext)(wBr.FormItemInputContext),{hasFeedback:be,status:je}=Me,Xe=fe=>Object.assign(Object.assign(Object.assign({},fe),{notFoundContent:(k==null?void 0:k("Transfer"))||F1.default.createElement(SBr.default,{componentName:"Transfer"})}),l),ft=(0,K_e.getMergedStatus)(je,v),Tt=!R&&m,tt=G.filter(fe=>q.includes(fe.key)&&!fe.disabled).length>0,pt=W.filter(fe=>K.includes(fe.key)&&!fe.disabled).length>0,$t=(0,yBr.default)(A,{[`${A}-disabled`]:u,[`${A}-customize-list`]:!!R,[`${A}-rtl`]:L==="rtl"},(0,K_e.getStatusClassNames)(A,ft,be),I==null?void 0:I.className,y,b,B,z),[wt]=(0,xBr.useLocale)("Transfer",EBr.default.Transfer),It=Xe(wt),[Ct,ot]=ge(It),nt=S??(I==null?void 0:I.selectionsIcon);return N(F1.default.createElement("div",{className:$t,style:Object.assign(Object.assign({},I==null?void 0:I.style),s)},F1.default.createElement(ade.default,Object.assign({prefixCls:`${A}-list`,titleText:Ct,dataSource:W,filterOption:w,style:Le("left"),checkedKeys:K,handleFilter:Be,handleClear:Ue,onItemSelect:Ye,onItemSelectAll:Ee,render:x,showSearch:f,renderList:R,footer:E,onScroll:he,disabled:u,direction:L==="rtl"?"right":"left",showSelectAll:g,selectAllLabel:i[0],pagination:Tt,selectionsIcon:nt},It)),F1.default.createElement(lct.default,{className:`${A}-operation`,rightActive:pt,rightArrowText:o[0],moveToRight:de,leftActive:tt,leftArrowText:o[1],moveToLeft:ve,style:h,disabled:u,direction:L,oneWay:p}),F1.default.createElement(ade.default,Object.assign({prefixCls:`${A}-list`,titleText:ot,dataSource:G,filterOption:w,style:Le("right"),checkedKeys:q,handleFilter:Ge,handleClear:We,onItemSelect:ze,onItemSelectAll:De,onItemRemove:Re,render:x,showSearch:f,renderList:R,footer:E,onScroll:ye,disabled:u,direction:L==="rtl"?"left":"right",showSelectAll:g,selectAllLabel:i[1],showRemove:p,pagination:Tt,selectionsIcon:nt},It))))};LX.List=ade.default;LX.Search=OBr.default;LX.Operation=lct.default;OX.default=LX;var cct={};const IBr=_r(kMn);var v_={};Object.defineProperty(v_,"__esModule",{value:!0});v_.default=_Br;v_.prepareComponentToken=void 0;var Y_e=Kt,MBr=kg,lde=Zt,C4e=Ju;const PBr=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${(0,Y_e.unit)(e.paddingXS)} ${(0,Y_e.unit)(e.calc(e.paddingXS).div(2).equal())}`},(0,C4e.genTreeStyle)(n,(0,lde.mergeToken)(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},(0,MBr.getStyle)(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};v_.prepareComponentToken=C4e.initComponentToken;function _Br(e,t,n){return(0,lde.genStyleHooks)("TreeSelect",r=>{const i=(0,lde.mergeToken)(r,{treePrefixCls:t});return[PBr(i)]},C4e.initComponentToken)(e,n)}(function(e){"use client";var t=pe.default,n=_e.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TreeNode",{enumerable:!0,get:function(){return o.TreeNode}}),e.default=void 0;var r=n(d),i=t(St),o=n(IBr),s=t(mi),a=ho,l=$s,c=t($c),u=Ql,f=Bt,h=t(ep),g=t(Co),p=t(Xr),m=t(io),v=Ir,C=t(Id),y=t(v9),b=t(C9),S=t(y9),w=t(sP),x=ds,E=Zt,R=t(f_),O=t(v_),T=function(k,L){var I={};for(var A in k)Object.prototype.hasOwnProperty.call(k,A)&&L.indexOf(A)<0&&(I[A]=k[A]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,A=Object.getOwnPropertySymbols(k);N<A.length;N++)L.indexOf(A[N])<0&&Object.prototype.propertyIsEnumerable.call(k,A[N])&&(I[A[N]]=k[A[N]]);return I};const M=(k,L)=>{var I;const{prefixCls:A,size:N,disabled:B,bordered:z=!0,className:j,rootClassName:W,treeCheckable:G,multiple:K,listHeight:q=256,listItemHeight:X,placement:Q,notFoundContent:te,switcherIcon:ne,treeLine:Z,getPopupContainer:ee,popupClassName:J,dropdownClassName:oe,treeIcon:le=!1,transitionName:ge,choiceTransitionName:he="",status:ye,treeExpandAction:ue,builtinPlacements:ve,dropdownMatchSelectWidth:de,popupMatchSelectWidth:xe,allowClear:Ee,variant:De,dropdownStyle:Be,tagRender:Ge,maxCount:Ue,showCheckedStrategy:We,treeCheckStrictly:Ve}=k,Fe=T(k,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:ke,getPrefixCls:Ye,renderEmpty:ze,direction:Re,virtual:Le,popupMatchSelectWidth:Me,popupOverflow:be}=r.useContext(f.ConfigContext),[,je]=(0,E.useToken)(),Xe=X??(je==null?void 0:je.controlHeightSM)+(je==null?void 0:je.paddingXXS),ft=Ye(),Tt=Ye("select",A),tt=Ye("select-tree",A),pt=Ye("tree-select",A),{compactSize:$t,compactItemClassnames:wt}=(0,x.useCompactItemContext)(Tt,Re),It=(0,p.default)(Tt),Ct=(0,p.default)(pt),[ot,nt,fe]=(0,b.default)(Tt,It),[Te]=(0,O.default)(pt,tt,Ct),[$e,He]=(0,C.default)("treeSelect",De,z),it=(0,i.default)(J||oe,`${pt}-dropdown`,{[`${pt}-dropdown-rtl`]:Re==="rtl"},W,fe,It,Ct,nt),at=!!(G||K),gt=r.useMemo(()=>{if(!(Ue&&(We==="SHOW_ALL"&&!Ve||We==="SHOW_PARENT")))return Ue},[Ue,We,Ve]),yt=(0,w.default)(k.suffixIcon,k.showArrow),st=(I=xe??de)!==null&&I!==void 0?I:Me,{status:Ze,hasFeedback:dt,isFormItemInput:At,feedbackIcon:kt}=r.useContext(v.FormItemInputContext),pn=(0,u.getMergedStatus)(Ze,ye),{suffixIcon:ln,removeIcon:Lt,clearIcon:xt}=(0,S.default)(Object.assign(Object.assign({},Fe),{multiple:at,showSuffixIcon:yt,hasFeedback:dt,feedbackIcon:kt,prefixCls:Tt,componentName:"TreeSelect"})),Rt=Ee===!0?{clearIcon:xt}:Ee;let Ft;te!==void 0?Ft=te:Ft=(ze==null?void 0:ze("Select"))||r.createElement(h.default,{componentName:"Select"});const hn=(0,s.default)(Fe,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Mt=r.useMemo(()=>Q!==void 0?Q:Re==="rtl"?"bottomRight":"bottomLeft",[Q,Re]),mt=(0,m.default)(sn=>{var Sn;return(Sn=N??$t)!==null&&Sn!==void 0?Sn:sn}),jt=r.useContext(g.default),tn=B??jt,Cn=(0,i.default)(!A&&pt,{[`${Tt}-lg`]:mt==="large",[`${Tt}-sm`]:mt==="small",[`${Tt}-rtl`]:Re==="rtl",[`${Tt}-${$e}`]:He,[`${Tt}-in-form-item`]:At},(0,u.getStatusClassNames)(Tt,pn,dt),wt,j,W,fe,It,Ct,nt),Ln=sn=>r.createElement(R.default,{prefixCls:tt,switcherIcon:ne,treeNodeProps:sn,showLine:Z}),[cn]=(0,a.useZIndex)("SelectLike",Be==null?void 0:Be.zIndex),Dt=r.createElement(o.default,Object.assign({virtual:Le,disabled:tn},hn,{dropdownMatchSelectWidth:st,builtinPlacements:(0,y.default)(ve,be),ref:L,prefixCls:Tt,className:Cn,listHeight:q,listItemHeight:Xe,treeCheckable:G&&r.createElement("span",{className:`${Tt}-tree-checkbox-inner`}),treeLine:!!Z,suffixIcon:ln,multiple:at,placement:Mt,removeIcon:Lt,allowClear:Rt,switcherIcon:Ln,showTreeIcon:le,notFoundContent:Ft,getPopupContainer:ee||ke,treeMotion:null,dropdownClassName:it,dropdownStyle:Object.assign(Object.assign({},Be),{zIndex:cn}),choiceTransitionName:(0,l.getTransitionName)(ft,"",he),transitionName:(0,l.getTransitionName)(ft,"slide-up",ge),treeExpandAction:ue,tagRender:at?Ge:void 0,maxCount:gt,showCheckedStrategy:We,treeCheckStrictly:Ve}));return ot(Te(Dt))},F=r.forwardRef(M),D=(0,c.default)(F,"dropdownAlign",k=>(0,s.default)(k,["visible"]));F.TreeNode=o.TreeNode,F.SHOW_ALL=o.SHOW_ALL,F.SHOW_PARENT=o.SHOW_PARENT,F.SHOW_CHILD=o.SHOW_CHILD,F._InternalPanelDoNotUseOrYouWillBeFired=D,e.default=F})(cct);var FX={},NX={},xb={},cde={exports:{}},kX={},y4e={};Object.defineProperty(y4e,"__esModule",{value:!0});var ABr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};y4e.default=ABr;var DBr=_e.default,b4e=pe.default;Object.defineProperty(kX,"__esModule",{value:!0});kX.default=void 0;var LBr=b4e(lr),uct=DBr(d),FBr=b4e(y4e),NBr=b4e(cr),kBr=function(t,n){return uct.createElement(NBr.default,(0,LBr.default)({},t,{ref:n,icon:FBr.default}))},zBr=uct.forwardRef(kBr);kX.default=zBr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(kX);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(cde,cde.exports);var BBr=cde.exports,zX={},ude={exports:{}},BX={},S4e={};Object.defineProperty(S4e,"__esModule",{value:!0});var HBr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};S4e.default=HBr;var jBr=_e.default,w4e=pe.default;Object.defineProperty(BX,"__esModule",{value:!0});BX.default=void 0;var VBr=w4e(lr),dct=jBr(d),GBr=w4e(S4e),WBr=w4e(cr),UBr=function(t,n){return dct.createElement(WBr.default,(0,VBr.default)({},t,{ref:n,icon:GBr.default}))},qBr=dct.forwardRef(UBr);BX.default=qBr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(BX);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(ude,ude.exports);var KBr=ude.exports,dy={},ru={};Object.defineProperty(ru,"__esModule",{value:!0});ru.getTitleStyles=ru.getResetStyles=ru.getLinkStyles=ru.getEllipsisStyles=ru.getEditableStyles=ru.getCopyableStyles=void 0;var YBr=Xg,XBr=Kt,QBr=gn;const ZBr=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},JBr=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
||
h${r}&,
|
||
div&-h${r},
|
||
div&-h${r} > textarea,
|
||
h${r}
|
||
`]=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)),{[`
|
||
& + 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
|
||
`]: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.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const _Hr=die.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:o,setContentRef:s,children:a,direction:l,style:c}=e,u=PHr(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:h,typography:g}=die.useContext(IHr.ConfigContext),p=l??h,m=s?(0,THr.composeRef)(t,s):t,v=f("typography",n),[C,y,b]=(0,MHr.default)(v),S=(0,OHr.default)(v,g==null?void 0:g.className,{[`${v}-rtl`]:p==="rtl"},i,o,y,b),w=Object.assign(Object.assign({},g==null?void 0:g.style),c);return C(die.createElement(r,Object.assign({className:S,style:w,ref:m},u),a))});y_.default=_Hr;var GX={},dde={exports:{}},WX={},R4e={};Object.defineProperty(R4e,"__esModule",{value:!0});var AHr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};R4e.default=AHr;var DHr=_e.default,$4e=pe.default;Object.defineProperty(WX,"__esModule",{value:!0});WX.default=void 0;var LHr=$4e(lr),gct=DHr(d),FHr=$4e(R4e),NHr=$4e(cr),kHr=function(t,n){return gct.createElement(NHr.default,(0,LHr.default)({},t,{ref:n,icon:FHr.default}))},zHr=gct.forwardRef(kHr);WX.default=zHr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(WX);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(dde,dde.exports);var BHr=dde.exports,Sv={};Object.defineProperty(Sv,"__esModule",{value:!0});Sv.getNode=jHr;Sv.isEleEllipsis=VHr;Sv.isValidText=void 0;Sv.toList=HHr;function HHr(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function jHr(e,t,n){return e===!0||e===void 0?t:e||n&&t}function VHr(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const GHr=e=>["string","number"].includes(typeof e);Sv.isValidText=GHr;var b_=pe.default,WHr=_e.default;Object.defineProperty(GX,"__esModule",{value:!0});GX.default=void 0;var AR=WHr(d),UHr=b_(aU),qHr=b_(BHr),KHr=b_(Jg),YHr=b_(St),XHr=b_(gl),DR=Sv;const QHr=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:o,icon:s,tabIndex:a,onCopy:l,loading:c}=e;const u=(0,DR.toList)(o),f=(0,DR.toList)(s),{copied:h,copy:g}=r??{},p=n?h:g,m=(0,DR.getNode)(u[n?1:0],p),v=typeof m=="string"?m:p;return AR.createElement(XHr.default,{title:m},AR.createElement("button",{type:"button",className:(0,YHr.default)(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":v,tabIndex:a},n?(0,DR.getNode)(f[1],AR.createElement(UHr.default,null),!0):(0,DR.getNode)(f[0],c?AR.createElement(KHr.default,null):AR.createElement(qHr.default,null),!0)))};GX.default=QHr;var O4e={},ZHr=_e.default,T4e=pe.default;Object.defineProperty(O4e,"__esModule",{value:!0});O4e.default=njr;var JHr=T4e(zr),so=ZHr(d),ejr=T4e(qs),fie=T4e(Sd),pct=Sv;const JL=so.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=so.useRef(null);return so.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),so.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),tjr=e=>e.reduce((t,n)=>t+((0,pct.isValidText)(n)?String(n).length:1),0);function J_e(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const o=e[i],a=(0,pct.isValidText)(o)?String(o).length:1,l=n+a;if(l>t){const c=t-n;return r.push(String(o).slice(0,c)),r}r.push(o),n=l}return e}const hie=0,gie=1,pie=2,mie=3,eAe=4,eF={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function njr(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:s,miscDeps:a,onEllipsis:l}=e,c=so.useMemo(()=>(0,ejr.default)(r),[r]),u=so.useMemo(()=>tjr(c),[r]),f=so.useMemo(()=>i(c,!1),[r]),[h,g]=so.useState(null),p=so.useRef(null),m=so.useRef(null),v=so.useRef(null),C=so.useRef(null),y=so.useRef(null),[b,S]=so.useState(!1),[w,x]=so.useState(hie),[E,R]=so.useState(0),[O,T]=so.useState(null);(0,fie.default)(()=>{x(t&&n&&u?gie:hie)},[n,r,o,t,c]),(0,fie.default)(()=>{var D,k,L,I;if(w===gie){x(pie);const A=m.current&&getComputedStyle(m.current).whiteSpace;T(A)}else if(w===pie){const A=!!(!((D=v.current)===null||D===void 0)&&D.isExceed());x(A?mie:eAe),g(A?[0,u]:null),S(A);const N=((k=v.current)===null||k===void 0?void 0:k.getHeight())||0,B=o===1?0:((L=C.current)===null||L===void 0?void 0:L.getHeight())||0,z=((I=y.current)===null||I===void 0?void 0:I.getHeight())||0,j=Math.max(N,B+z);R(j+1),l(A)}},[w]);const M=h?Math.ceil((h[0]+h[1])/2):0;(0,fie.default)(()=>{var D;const[k,L]=h||[0,0];if(k!==L){const A=(((D=p.current)===null||D===void 0?void 0:D.getHeight())||0)>E;let N=M;L-k===1&&(N=A?k:L),g(A?[k,N]:[N,L])}},[h,M]);const _=so.useMemo(()=>{if(!t)return i(c,!1);if(w!==mie||!h||h[0]!==h[1]){const D=i(c,!1);return[eAe,hie].includes(w)?D:so.createElement("span",{style:Object.assign(Object.assign({},eF),{WebkitLineClamp:o})},D)}return i(s?c:J_e(c,h[0]),b)},[s,w,h,c].concat((0,JHr.default)(a))),F={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return so.createElement(so.Fragment,null,_,w===pie&&so.createElement(so.Fragment,null,so.createElement(JL,{style:Object.assign(Object.assign(Object.assign({},F),eF),{WebkitLineClamp:o}),ref:v},f),so.createElement(JL,{style:Object.assign(Object.assign(Object.assign({},F),eF),{WebkitLineClamp:o-1}),ref:C},f),so.createElement(JL,{style:Object.assign(Object.assign(Object.assign({},F),eF),{WebkitLineClamp:1}),ref:y},i([],!0))),w===mie&&h&&h[0]!==h[1]&&so.createElement(JL,{style:Object.assign(Object.assign({},F),{top:400}),ref:p},i(J_e(c,M),!0)),w===gie&&so.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}var UX={},rjr=pe.default,ijr=_e.default;Object.defineProperty(UX,"__esModule",{value:!0});UX.default=void 0;var ojr=ijr(d),sjr=rjr(gl);const ajr=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:ojr.createElement(sjr.default,Object.assign({open:n?void 0:!1},i),r)};UX.default=ajr;var Ba=pe.default,ljr=_e.default;Object.defineProperty(xb,"__esModule",{value:!0});xb.default=void 0;var ji=ljr(d),cjr=Ba(BBr),ujr=Ba(St),djr=Ba(pG),fjr=Ba(qs),vie=Ba(Sd),tAe=Ba(fa),hjr=Ba(mi),gjr=Vi,nAe=_0e,pjr=Bt,mjr=Ba(a9),vjr=Ba(gl),Cjr=Ba(zX),yjr=Ba(HX),Cie=Ba(E4e),bjr=Ba(jX),Sjr=Ba(VX),wjr=Ba(y_),xjr=Ba(GX),Ejr=Ba(O4e),Rjr=Ba(UX),rAe=Sv,$jr=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 Ojr(e,t){let{mark:n,code:r,underline:i,delete:o,strong:s,keyboard:a,italic:l}=e,c=t;function u(f,h){h&&(c=ji.createElement(f,{},c))}return u("strong",s),u("u",i),u("del",o),u("code",r),u("mark",n),u("kbd",a),u("i",l),c}const Tjr="...",Ijr=ji.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:o,type:s,disabled:a,children:l,ellipsis:c,editable:u,copyable:f,component:h,title:g}=e,p=$jr(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:m,direction:v}=ji.useContext(pjr.ConfigContext),[C]=(0,mjr.default)("Text"),y=ji.useRef(null),b=ji.useRef(null),S=m("typography",r),w=(0,hjr.default)(p,["mark","code","delete","underline","strong","keyboard","italic"]),[x,E]=(0,Cie.default)(u),[R,O]=(0,tAe.default)(!1,{value:E.editing}),{triggerType:T=["icon"]}=E,M=Me=>{var be;Me&&((be=E.onStart)===null||be===void 0||be.call(E)),O(Me)},_=(0,bjr.default)(R);(0,vie.default)(()=>{var Me;!R&&_&&((Me=b.current)===null||Me===void 0||Me.focus())},[R]);const F=Me=>{Me==null||Me.preventDefault(),M(!0)},D=Me=>{var be;(be=E.onChange)===null||be===void 0||be.call(E,Me),M(!1)},k=()=>{var Me;(Me=E.onCancel)===null||Me===void 0||Me.call(E),M(!1)},[L,I]=(0,Cie.default)(f),{copied:A,copyLoading:N,onClick:B}=(0,yjr.default)({copyConfig:I,children:l}),[z,j]=ji.useState(!1),[W,G]=ji.useState(!1),[K,q]=ji.useState(!1),[X,Q]=ji.useState(!1),[te,ne]=ji.useState(!0),[Z,ee]=(0,Cie.default)(c,{expandable:!1,symbol:Me=>Me?C==null?void 0:C.collapse:C==null?void 0:C.expand}),[J,oe]=(0,tAe.default)(ee.defaultExpanded||!1,{value:ee.expanded}),le=Z&&(!J||ee.expandable==="collapsible"),{rows:ge=1}=ee,he=ji.useMemo(()=>le&&(ee.suffix!==void 0||ee.onEllipsis||ee.expandable||x||L),[le,ee,x,L]);(0,vie.default)(()=>{Z&&!he&&(j((0,nAe.isStyleSupport)("webkitLineClamp")),G((0,nAe.isStyleSupport)("textOverflow")))},[he,Z]);const[ye,ue]=ji.useState(le),ve=ji.useMemo(()=>he?!1:ge===1?W:z,[he,W,z]);(0,vie.default)(()=>{ue(ve&&le)},[ve,le]);const de=le&&(ye?X:K),xe=le&&ge===1&&ye,Ee=le&&ge>1&&ye,De=(Me,be)=>{var je;oe(be.expanded),(je=ee.onExpand)===null||je===void 0||je.call(ee,Me,be)},[Be,Ge]=ji.useState(0),Ue=Me=>{let{offsetWidth:be}=Me;Ge(be)},We=Me=>{var be;q(Me),K!==Me&&((be=ee.onEllipsis)===null||be===void 0||be.call(ee,Me))};ji.useEffect(()=>{const Me=y.current;if(Z&&ye&&Me){const be=(0,rAe.isEleEllipsis)(Me);X!==be&&Q(be)}},[Z,ye,l,Ee,te,Be]),ji.useEffect(()=>{const Me=y.current;if(typeof IntersectionObserver>"u"||!Me||!ye||!le)return;const be=new IntersectionObserver(()=>{ne(!!Me.offsetParent)});return be.observe(Me),()=>{be.disconnect()}},[ye,le]);const Ve=(0,Sjr.default)(ee.tooltip,E.text,l),Fe=ji.useMemo(()=>{if(!(!Z||ye))return[E.text,l,g,Ve.title].find(rAe.isValidText)},[Z,ye,g,Ve.title,de]);if(R)return ji.createElement(Cjr.default,{value:(n=E.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:D,onCancel:k,onEnd:E.onEnd,prefixCls:S,className:i,style:o,direction:v,component:h,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const ke=()=>{const{expandable:Me,symbol:be}=ee;return Me?ji.createElement("button",{type:"button",key:"expand",className:`${S}-${J?"collapse":"expand"}`,onClick:je=>De(je,{expanded:!J}),"aria-label":J?C.collapse:C==null?void 0:C.expand},typeof be=="function"?be(J):be):null},Ye=()=>{if(!x)return;const{icon:Me,tooltip:be,tabIndex:je}=E,Xe=(0,fjr.default)(be)[0]||(C==null?void 0:C.edit),ft=typeof Xe=="string"?Xe:"";return T.includes("icon")?ji.createElement(vjr.default,{key:"edit",title:be===!1?"":Xe},ji.createElement("button",{type:"button",ref:b,className:`${S}-edit`,onClick:F,"aria-label":ft,tabIndex:je},Me||ji.createElement(cjr.default,{role:"button"}))):null},ze=()=>L?ji.createElement(xjr.default,Object.assign({key:"copy"},I,{prefixCls:S,copied:A,locale:C,onCopy:B,loading:N,iconOnly:l==null})):null,Re=Me=>[Me&&ke(),Ye(),ze()],Le=Me=>[Me&&!J&&ji.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Tjr),ee.suffix,Re(Me)];return ji.createElement(djr.default,{onResize:Ue,disabled:!le},Me=>ji.createElement(Rjr.default,{tooltipProps:Ve,enableEllipsis:le,isEllipsis:de},ji.createElement(wjr.default,Object.assign({className:(0,ujr.default)({[`${S}-${s}`]:s,[`${S}-disabled`]:a,[`${S}-ellipsis`]:Z,[`${S}-ellipsis-single-line`]:xe,[`${S}-ellipsis-multiple-line`]:Ee},i),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Ee?ge:void 0}),component:h,ref:(0,gjr.composeRef)(Me,y,t),direction:v,onClick:T.includes("text")?F:void 0,"aria-label":Fe==null?void 0:Fe.toString(),title:g},w),ji.createElement(Ejr.default,{enableMeasure:le&&!ye,text:l,rows:ge,width:Be,onEllipsis:We,expanded:J,miscDeps:[A,J,N,x,L,C]},(be,je)=>Ojr(e,ji.createElement(ji.Fragment,null,be.length>0&&je&&!J&&Fe?ji.createElement("span",{key:"show-content","aria-hidden":!0},be):be,Le(je)))))))});xb.default=Ijr;var Mjr=pe.default,Pjr=_e.default;Object.defineProperty(NX,"__esModule",{value:!0});NX.default=void 0;var iAe=Pjr(d),_jr=Mjr(xb),Ajr=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 Djr=iAe.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=Ajr(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,iAe.createElement(_jr.default,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))});NX.default=Djr;var qX={},Ljr=pe.default,Fjr=_e.default;Object.defineProperty(qX,"__esModule",{value:!0});qX.default=void 0;var oAe=Fjr(d),Njr=Ljr(xb);const kjr=oAe.forwardRef((e,t)=>oAe.createElement(Njr.default,Object.assign({ref:t},e,{component:"div"})));qX.default=kjr;var KX={},mct=pe.default,zjr=_e.default;Object.defineProperty(KX,"__esModule",{value:!0});KX.default=void 0;var fde=zjr(d),Bjr=mct(mi),Hjr=mct(xb),jjr=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 Vjr=(e,t)=>{var{ellipsis:n}=e,r=jjr(e,["ellipsis"]);const i=fde.useMemo(()=>n&&typeof n=="object"?(0,Bjr.default)(n,["expandable","rows"]):n,[n]);return fde.createElement(Hjr.default,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))};KX.default=fde.forwardRef(Vjr);var YX={},Gjr=pe.default,Wjr=_e.default;Object.defineProperty(YX,"__esModule",{value:!0});YX.default=void 0;var sAe=Wjr(d),Ujr=Gjr(xb),qjr=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 Kjr=[1,2,3,4,5],Yjr=sAe.forwardRef((e,t)=>{const{level:n=1}=e,r=qjr(e,["level"]),i=Kjr.includes(n)?`h${n}`:"h1";return sAe.createElement(Ujr.default,Object.assign({ref:t},r,{component:i}))});YX.default=Yjr;var S_=pe.default;Object.defineProperty(FX,"__esModule",{value:!0});FX.default=void 0;var Xjr=S_(NX),Qjr=S_(qX),Zjr=S_(KX),Jjr=S_(YX),eVr=S_(y_);const w_=eVr.default;w_.Text=Zjr.default;w_.Link=Xjr.default;w_.Title=Jjr.default;w_.Paragraph=Qjr.default;FX.default=w_;var XX={},QX={},fy={};const tVr=_r(FPn);var fx={},ZX={};Object.defineProperty(ZX,"__esModule",{value:!0});ZX.default=void 0;var yie=Kt;const nVr=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,yie.unit)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,yie.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
||
&: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 ${(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},
|
||
p${t}-text,
|
||
p${t}-hint
|
||
`]:{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}`},[`
|
||
${l}:focus-visible,
|
||
&.picture ${l}
|
||
`]:{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`]:{[`
|
||
${s}${s}-picture,
|
||
${s}${s}-picture-card,
|
||
${s}${s}-picture-circle
|
||
`]:{[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{[`
|
||
${t}-wrapper${t}-picture-card-wrapper,
|
||
${t}-wrapper${t}-picture-circle-wrapper
|
||
`]: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}`,[`
|
||
${n}-eye,
|
||
${n}-download,
|
||
${n}-delete
|
||
`]:{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 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};P4e.default=RVr;var $Vr=_e.default,_4e=pe.default;Object.defineProperty(oQ,"__esModule",{value:!0});oQ.default=void 0;var OVr=_4e(lr),bct=$Vr(d),TVr=_4e(P4e),IVr=_4e(cr),MVr=function(t,n){return bct.createElement(IVr.default,(0,OVr.default)({},t,{ref:n,icon:TVr.default}))},PVr=bct.forwardRef(MVr);oQ.default=PVr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(oQ);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(gde,gde.exports);var _Vr=gde.exports,pde={exports:{}},sQ={},A4e={};Object.defineProperty(A4e,"__esModule",{value:!0});var AVr={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};A4e.default=AVr;var DVr=_e.default,D4e=pe.default;Object.defineProperty(sQ,"__esModule",{value:!0});sQ.default=void 0;var LVr=D4e(lr),Sct=DVr(d),FVr=D4e(A4e),NVr=D4e(cr),kVr=function(t,n){return Sct.createElement(NVr.default,(0,LVr.default)({},t,{ref:n,icon:FVr.default}))},zVr=Sct.forwardRef(kVr);sQ.default=zVr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(sQ);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(pde,pde.exports);var BVr=pde.exports,r1={},HVr=pe.default;Object.defineProperty(r1,"__esModule",{value:!0});r1.file2Obj=VVr;r1.getFileItem=WVr;r1.isImageUrl=void 0;r1.previewImage=YVr;r1.removeFileItem=UVr;r1.updateFileList=GVr;var jVr=HVr(zr);function VVr(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 GVr(e,t){const n=(0,jVr.default)(t),r=n.findIndex(i=>{let{uid:o}=i;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function WVr(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function UVr(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 qVr=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},wct=e=>e.indexOf("image/")===0,KVr=e=>{if(e.type&&!e.thumbUrl)return wct(e.type);const t=e.thumbUrl||e.url||"",n=qVr(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)};r1.isImageUrl=KVr;const t2=200;function YVr(e){return new Promise(t=>{if(!e.type||!wct(e.type)){t("");return}const n=document.createElement("canvas");n.width=t2,n.height=t2,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${t2}px; height: ${t2}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=t2,l=t2,c=0,u=0;o>s?(l=s*(t2/o),u=-(l-a)/2):(a=o*(t2/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)})}var aQ={},mde={exports:{}},lQ={},L4e={};Object.defineProperty(L4e,"__esModule",{value:!0});var XVr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};L4e.default=XVr;var QVr=_e.default,F4e=pe.default;Object.defineProperty(lQ,"__esModule",{value:!0});lQ.default=void 0;var ZVr=F4e(lr),xct=QVr(d),JVr=F4e(L4e),eGr=F4e(cr),tGr=function(t,n){return xct.createElement(eGr.default,(0,ZVr.default)({},t,{ref:n,icon:JVr.default}))},nGr=xct.forwardRef(tGr);lQ.default=nGr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(lQ);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(mde,mde.exports);var rGr=mde.exports,Eb=pe.default,iGr=_e.default;Object.defineProperty(aQ,"__esModule",{value:!0});aQ.default=void 0;var Io=iGr(d),oGr=Eb(ict),sGr=Eb(rGr),aGr=Eb(Ove),q6=Eb(St),lGr=Eb(Qg),cGr=Bt,uGr=Eb(Q9),dGr=Eb(gl);const fGr=Io.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,_]=Io.useState(T);Io.useEffect(()=>{T!=="removed"&&_(T)},[T]);const[F,D]=Io.useState(!1);Io.useEffect(()=>{const J=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(J)}},[]);const k=u(a);let L=Io.createElement("div",{className:`${n}-icon`},k);if(s==="picture"||s==="picture-card"||s==="picture-circle")if(M==="uploading"||!a.thumbUrl&&!a.url){const J=(0,q6.default)(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:M!=="uploading"});L=Io.createElement("div",{className:J},k)}else{const J=g!=null&&g(a)?Io.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${n}-list-item-image`,crossOrigin:a.crossOrigin}):k,oe=(0,q6.default)(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(a)});L=Io.createElement("a",{className:oe,onClick:le=>w(a,le),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},J)}const I=(0,q6.default)(`${n}-list-item`,`${n}-list-item-${M}`),A=typeof a.linkProps=="string"?JSON.parse(a.linkProps):a.linkProps,N=(typeof m=="function"?m(a):m)?f((typeof y=="function"?y(a):y)||Io.createElement(oGr.default,null),()=>E(a),n,o.removeFile,!0):null,B=(typeof v=="function"?v(a):v)&&M==="done"?f((typeof b=="function"?b(a):b)||Io.createElement(sGr.default,null),()=>x(a),n,o.downloadFile):null,z=s!=="picture-card"&&s!=="picture-circle"&&Io.createElement("span",{key:"download-delete",className:(0,q6.default)(`${n}-list-item-actions`,{picture:s==="picture"})},B,N),j=typeof S=="function"?S(a):S,W=j&&Io.createElement("span",{className:`${n}-list-item-extra`},j),G=(0,q6.default)(`${n}-list-item-name`),K=a.url?Io.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:G,title:a.name},A,{href:a.url,onClick:J=>w(a,J)}),a.name,W):Io.createElement("span",{key:"view",className:G,onClick:J=>w(a,J),title:a.name},a.name,W),q=(typeof p=="function"?p(a):p)&&(a.url||a.thumbUrl)?Io.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:J=>w(a,J),title:o.previewFile},typeof C=="function"?C(a):C||Io.createElement(aGr.default,null)):null,X=(s==="picture-card"||s==="picture-circle")&&M!=="uploading"&&Io.createElement("span",{className:`${n}-list-item-actions`},q,M==="done"&&B,N),{getPrefixCls:Q}=Io.useContext(cGr.ConfigContext),te=Q(),ne=Io.createElement("div",{className:I},L,K,z,X,F&&Io.createElement(lGr.default,{motionName:`${te}-fade`,visible:M==="uploading",motionDeadline:2e3},J=>{let{className:oe}=J;const le="percent"in a?Io.createElement(uGr.default,Object.assign({},c,{type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]})):null;return Io.createElement("div",{className:(0,q6.default)(`${n}-list-item-progress`,oe)},le)})),Z=a.response&&typeof a.response=="string"?a.response:((R=a.error)===null||R===void 0?void 0:R.statusText)||((O=a.error)===null||O===void 0?void 0:O.message)||o.uploadError,ee=M==="error"?Io.createElement(dGr.default,{title:Z,getPopupContainer:J=>J.parentNode},ne):ne;return Io.createElement("div",{className:(0,q6.default)(`${n}-list-item-container`,r),style:i,ref:t},h?h(ee,a,l,{download:x.bind(null,a),preview:w.bind(null,a),remove:E.bind(null,a)}):ee)});aQ.default=fGr;var Ect=_e.default,sp=pe.default;Object.defineProperty(rQ,"__esModule",{value:!0});rQ.default=void 0;var hGr=sp(zr),vs=Ect(d),gGr=sp(EVr),fAe=sp(Jg),pGr=sp(_Vr),mGr=sp(BVr),hAe=sp(St),gAe=Ect(Qg),vGr=sp(mi),CGr=sp(x9),yGr=sp($s),pAe=Xi,mAe=sp(Ru),bGr=Bt,vAe=r1,SGr=sp(aQ);const wGr=(e,t)=>{const{listType:n="text",previewFile:r=vAe.previewImage,onPreview:i,onDownload:o,onRemove:s,locale:a,iconRender:l,isImageUrl:c=vAe.isImageUrl,prefixCls:u,items:f=[],showPreviewIcon:h=!0,showRemoveIcon:g=!0,showDownloadIcon:p=!1,removeIcon:m,previewIcon:v,downloadIcon:C,extra:y,progress:b={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:w=!0,itemRender:x,disabled:E}=e,R=(0,CGr.default)(),[O,T]=vs.useState(!1),M=["picture-card","picture-circle"].includes(n);vs.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(W=>{!(W.originFileObj instanceof File||W.originFileObj instanceof Blob)||W.thumbUrl!==void 0||(W.thumbUrl="",r==null||r(W.originFileObj).then(G=>{W.thumbUrl=G||"",R()}))})},[n,f,r]),vs.useEffect(()=>{T(!0)},[]);const _=(W,G)=>{if(i)return G==null||G.preventDefault(),i(W)},F=W=>{typeof o=="function"?o(W):W.url&&window.open(W.url)},D=W=>{s==null||s(W)},k=W=>{if(l)return l(W,n);const G=W.status==="uploading";if(n.startsWith("picture")){const K=n==="picture"?vs.createElement(fAe.default,null):a.uploading,q=c!=null&&c(W)?vs.createElement(mGr.default,null):vs.createElement(gGr.default,null);return G?K:q}return G?vs.createElement(fAe.default,null):vs.createElement(pGr.default,null)},L=(W,G,K,q,X)=>{const Q={type:"text",size:"small",title:q,onClick:te=>{var ne,Z;G(),vs.isValidElement(W)&&((Z=(ne=W.props).onClick)===null||Z===void 0||Z.call(ne,te))},className:`${K}-list-item-action`};return X&&(Q.disabled=E),vs.isValidElement(W)?vs.createElement(mAe.default,Object.assign({},Q,{icon:(0,pAe.cloneElement)(W,Object.assign(Object.assign({},W.props),{onClick:()=>{}}))})):vs.createElement(mAe.default,Object.assign({},Q),vs.createElement("span",null,W))};vs.useImperativeHandle(t,()=>({handlePreview:_,handleDownload:F}));const{getPrefixCls:I}=vs.useContext(bGr.ConfigContext),A=I("upload",u),N=I(),B=(0,hAe.default)(`${A}-list`,`${A}-list-${n}`),z=vs.useMemo(()=>(0,vGr.default)((0,yGr.default)(N),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[N]),j=Object.assign(Object.assign({},M?{}:z),{motionDeadline:2e3,motionName:`${A}-${M?"animate-inline":"animate"}`,keys:(0,hGr.default)(f.map(W=>({key:W.uid,file:W}))),motionAppear:O});return vs.createElement("div",{className:B},vs.createElement(gAe.CSSMotionList,Object.assign({},j,{component:!1}),W=>{let{key:G,file:K,className:q,style:X}=W;return vs.createElement(SGr.default,{key:G,locale:a,prefixCls:A,className:q,style:X,file:K,items:f,progress:b,listType:n,isImgUrl:c,showPreviewIcon:h,showRemoveIcon:g,showDownloadIcon:p,removeIcon:m,previewIcon:v,downloadIcon:C,extra:y,iconRender:k,actionIconRender:L,itemRender:x,onPreview:_,onDownload:F,onClose:D})}),S&&vs.createElement(gAe.default,Object.assign({},j,{visible:w,forceRender:!0}),W=>{let{className:G,style:K}=W;return(0,pAe.cloneElement)(S,q=>({className:(0,hAe.default)(q.className,G),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:G?"none":void 0}),q.style)}))}))},xGr=vs.forwardRef(wGr);rQ.default=xGr;var EGr=_e.default,n6=pe.default;Object.defineProperty(fy,"__esModule",{value:!0});fy.default=fy.LIST_IGNORE=void 0;var CAe=n6(zr),Wa=EGr(d),yAe=fo,bie=n6(St),bAe=n6(tVr),RGr=n6(fa),$Gr=Bt,OGr=n6(Co),TGr=Os,IGr=n6(Ec),MGr=n6(fx),PGr=n6(rQ),rf=r1,_Gr=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,[])).next())})};const tF=fy.LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,AGr=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:o=!0,listType:s="text",onPreview:a,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:h,locale:g,iconRender:p,isImageUrl:m,progress:v,prefixCls:C,className:y,type:b="select",children:S,style:w,itemRender:x,maxCount:E,data:R={},multiple:O=!1,hasControlInside:T=!0,action:M="",accept:_="",supportServerRender:F=!0,rootClassName:D}=e,k=Wa.useContext(OGr.default),L=h??k,[I,A]=(0,RGr.default)(r||[],{value:n,postState:Re=>Re??[]}),[N,B]=Wa.useState("drop"),z=Wa.useRef(null),j=Wa.useRef(null);Wa.useMemo(()=>{const Re=Date.now();(n||[]).forEach((Le,Me)=>{!Le.uid&&!Object.isFrozen(Le)&&(Le.uid=`__AUTO__${Re}_${Me}__`)})},[n]);const W=(Re,Le,Me)=>{let be=(0,CAe.default)(Le),je=!1;E===1?be=be.slice(-1):E&&(je=be.length>E,be=be.slice(0,E)),(0,yAe.flushSync)(()=>{A(be)});const Xe={file:Re,fileList:be};Me&&(Xe.event=Me),(!je||Re.status==="removed"||be.some(ft=>ft.uid===Re.uid))&&(0,yAe.flushSync)(()=>{c==null||c(Xe)})},G=(Re,Le)=>_Gr(void 0,void 0,void 0,function*(){const{beforeUpload:Me,transformFile:be}=e;let je=Re;if(Me){const Xe=yield Me(Re,Le);if(Xe===!1)return!1;if(delete Re[tF],Xe===tF)return Object.defineProperty(Re,tF,{value:!0,configurable:!0}),!1;typeof Xe=="object"&&Xe&&(je=Xe)}return be&&(je=yield be(je)),je}),K=Re=>{const Le=Re.filter(je=>!je.file[tF]);if(!Le.length)return;const Me=Le.map(je=>(0,rf.file2Obj)(je.file));let be=(0,CAe.default)(I);Me.forEach(je=>{be=(0,rf.updateFileList)(je,be)}),Me.forEach((je,Xe)=>{let ft=je;if(Le[Xe].parsedFile)je.status="uploading";else{const{originFileObj:Tt}=je;let tt;try{tt=new File([Tt],Tt.name,{type:Tt.type})}catch{tt=new Blob([Tt],{type:Tt.type}),tt.name=Tt.name,tt.lastModifiedDate=new Date,tt.lastModified=new Date().getTime()}tt.uid=je.uid,ft=tt}W(ft,be)})},q=(Re,Le,Me)=>{try{typeof Re=="string"&&(Re=JSON.parse(Re))}catch{}if(!(0,rf.getFileItem)(Le,I))return;const be=(0,rf.file2Obj)(Le);be.status="done",be.percent=100,be.response=Re,be.xhr=Me;const je=(0,rf.updateFileList)(be,I);W(be,je)},X=(Re,Le)=>{if(!(0,rf.getFileItem)(Le,I))return;const Me=(0,rf.file2Obj)(Le);Me.status="uploading",Me.percent=Re.percent;const be=(0,rf.updateFileList)(Me,I);W(Me,be,Re)},Q=(Re,Le,Me)=>{if(!(0,rf.getFileItem)(Me,I))return;const be=(0,rf.file2Obj)(Me);be.error=Re,be.response=Le,be.status="error";const je=(0,rf.updateFileList)(be,I);W(be,je)},te=Re=>{let Le;Promise.resolve(typeof i=="function"?i(Re):i).then(Me=>{var be;if(Me===!1)return;const je=(0,rf.removeFileItem)(Re,I);je&&(Le=Object.assign(Object.assign({},Re),{status:"removed"}),I==null||I.forEach(Xe=>{const ft=Le.uid!==void 0?"uid":"name";Xe[ft]===Le[ft]&&!Object.isFrozen(Xe)&&(Xe.status="removed")}),(be=z.current)===null||be===void 0||be.abort(Le),W(Le,je))})},ne=Re=>{B(Re.type),Re.type==="drop"&&(u==null||u(Re))};Wa.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:q,onProgress:X,onError:Q,fileList:I,upload:z.current,nativeElement:j.current}));const{getPrefixCls:Z,direction:ee,upload:J}=Wa.useContext($Gr.ConfigContext),oe=Z("upload",C),le=Object.assign(Object.assign({onBatchStart:K,onError:Q,onProgress:X,onSuccess:q},e),{data:R,multiple:O,action:M,accept:_,supportServerRender:F,prefixCls:oe,disabled:L,beforeUpload:G,onChange:void 0,hasControlInside:T});delete le.className,delete le.style,(!S||L)&&delete le.id;const ge=`${oe}-wrapper`,[he,ye,ue]=(0,MGr.default)(oe,ge),[ve]=(0,TGr.useLocale)("Upload",IGr.default.Upload),{showRemoveIcon:de,showPreviewIcon:xe,showDownloadIcon:Ee,removeIcon:De,previewIcon:Be,downloadIcon:Ge,extra:Ue}=typeof o=="boolean"?{}:o,We=typeof de>"u"?!L:de,Ve=(Re,Le)=>o?Wa.createElement(PGr.default,{prefixCls:oe,listType:s,items:I,previewFile:f,onPreview:a,onDownload:l,onRemove:te,showRemoveIcon:We,showPreviewIcon:xe,showDownloadIcon:Ee,removeIcon:De,previewIcon:Be,downloadIcon:Ge,iconRender:p,extra:Ue,locale:Object.assign(Object.assign({},ve),g),isImageUrl:m,progress:v,appendAction:Re,appendActionVisible:Le,itemRender:x,disabled:L}):Re,Fe=(0,bie.default)(ge,y,D,ye,ue,J==null?void 0:J.className,{[`${oe}-rtl`]:ee==="rtl",[`${oe}-picture-card-wrapper`]:s==="picture-card",[`${oe}-picture-circle-wrapper`]:s==="picture-circle"}),ke=Object.assign(Object.assign({},J==null?void 0:J.style),w);if(b==="drag"){const Re=(0,bie.default)(ye,oe,`${oe}-drag`,{[`${oe}-drag-uploading`]:I.some(Le=>Le.status==="uploading"),[`${oe}-drag-hover`]:N==="dragover",[`${oe}-disabled`]:L,[`${oe}-rtl`]:ee==="rtl"});return he(Wa.createElement("span",{className:Fe,ref:j},Wa.createElement("div",{className:Re,style:ke,onDrop:ne,onDragOver:ne,onDragLeave:ne},Wa.createElement(bAe.default,Object.assign({},le,{ref:z,className:`${oe}-btn`}),Wa.createElement("div",{className:`${oe}-drag-container`},S))),Ve()))}const Ye=(0,bie.default)(oe,`${oe}-select`,{[`${oe}-disabled`]:L,[`${oe}-hidden`]:!S}),ze=Wa.createElement("div",{className:Ye},Wa.createElement(bAe.default,Object.assign({},le,{ref:z})));return he(s==="picture-card"||s==="picture-circle"?Wa.createElement("span",{className:Fe,ref:j},Ve(ze,!!S)):Wa.createElement("span",{className:Fe,ref:j},ze,Ve()))},DGr=Wa.forwardRef(AGr);fy.default=DGr;var LGr=pe.default,FGr=_e.default;Object.defineProperty(QX,"__esModule",{value:!0});QX.default=void 0;var SAe=FGr(d),NGr=LGr(fy),kGr=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 zGr=SAe.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,o=kGr(e,["style","height","hasControlInside"]);return SAe.createElement(NGr.default,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))});QX.default=zGr;var BGr=_e.default,HGr=pe.default;Object.defineProperty(XX,"__esModule",{value:!0});XX.default=void 0;var jGr=HGr(QX),Rct=BGr(fy);const N4e=Rct.default;N4e.Dragger=jGr.default;N4e.LIST_IGNORE=Rct.LIST_IGNORE;XX.default=N4e;var cQ={};const VGr=_r(s_n);var x_={},GGr=pe.default;Object.defineProperty(x_,"__esModule",{value:!0});x_.FontGap=void 0;x_.default=qGr;var WGr=GGr(Y9);const UGr=x_.FontGap=3;function Sie(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const r=document.createElement("canvas"),i=r.getContext("2d"),o=e*n,s=t*n;return r.setAttribute("width",`${o}px`),r.setAttribute("height",`${s}px`),i.save(),[i,r,o,s]}function qGr(){function e(t,n,r,i,o,s,a,l){const[c,u,f,h]=Sie(i,o,r);if(t instanceof HTMLImageElement)c.drawImage(t,0,0,f,h);else{const{color:z,fontSize:j,fontStyle:W,fontWeight:G,fontFamily:K,textAlign:q}=s,X=Number(j)*r;c.font=`${W} normal ${G} ${X}px/${o}px ${K}`,c.fillStyle=z,c.textAlign=q,c.textBaseline="top";const Q=(0,WGr.default)(t);Q==null||Q.forEach((te,ne)=>{c.fillText(te??"",f/2,ne*(X+UGr*r))})}const g=Math.PI/180*Number(n),p=Math.max(i,o),[m,v,C]=Sie(p,p,r);m.translate(C/2,C/2),m.rotate(g),f>0&&h>0&&m.drawImage(u,-f/2,-h/2);function y(z,j){const W=z*Math.cos(g)-j*Math.sin(g),G=z*Math.sin(g)+j*Math.cos(g);return[W,G]}let b=0,S=0,w=0,x=0;const E=f/2,R=h/2;[[0-E,0-R],[0+E,0-R],[0+E,0+R],[0-E,0+R]].forEach(z=>{let[j,W]=z;const[G,K]=y(j,W);b=Math.min(b,G),S=Math.max(S,G),w=Math.min(w,K),x=Math.max(x,K)});const T=b+C/2,M=w+C/2,_=S-b,F=x-w,D=a*r,k=l*r,L=(_+D)*2,I=F+k,[A,N]=Sie(L,I);function B(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;A.drawImage(v,T,M,_,F,z,j,_,F)}return B(),B(_+D,-F/2-k/2),B(_+D,+F/2+k/2),[N.toDataURL(),L/r,I/r]}return e}var k4e={},z4e=pe.default;Object.defineProperty(k4e,"__esModule",{value:!0});k4e.default=XGr;var wAe=z4e(d),KGr=z4e(hl),YGr=z4e(xu);function XGr(e){const t=wAe.default.useRef(!1),n=wAe.default.useRef(null),r=(0,KGr.default)(e);return()=>{t.current||(t.current=!0,r(),n.current=(0,YGr.default)(()=>{t.current=!1}))}}var hy={},r6={};Object.defineProperty(r6,"__esModule",{value:!0});r6.getPixelRatio=ZGr;r6.getStyleStr=QGr;r6.reRendering=void 0;r6.toLowercaseSeparator=$ct;function $ct(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function QGr(e){return Object.keys(e).map(t=>`${$ct(t)}: ${e[t]};`).join(" ")}function ZGr(){return window.devicePixelRatio||1}const JGr=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(r=>t(r))),e.type==="attributes"&&t(e.target)&&(n=!0),n};r6.reRendering=JGr;var eWr=_e.default;Object.defineProperty(hy,"__esModule",{value:!0});hy.FontGap=hy.BaseSize=void 0;hy.default=iWr;var tWr=eWr(d),nWr=r6;hy.BaseSize=2;hy.FontGap=3;const rWr={visibility:"visible !important"};function iWr(e){const t=tWr.useRef(new Map);return[(o,s,a)=>{if(a){if(!t.current.get(a)){const c=document.createElement("div");t.current.set(a,c)}const l=t.current.get(a);l.setAttribute("style",(0,nWr.getStyleStr)(Object.assign(Object.assign(Object.assign({},e),{backgroundImage:`url('${o}')`,backgroundSize:`${Math.floor(s)}px`}),rWr))),l.removeAttribute("class"),l.parentElement!==a&&a.append(l)}return t.current.get(a)},o=>{const s=t.current.get(o);s&&o&&o.removeChild(s),t.current.delete(o)},o=>Array.from(t.current.values()).includes(o)]}var Oct=_e.default,Rb=pe.default;Object.defineProperty(cQ,"__esModule",{value:!0});cQ.default=void 0;var wie=Rb(zr),$p=Oct(d),oWr=VGr,sWr=Rb(St),aWr=Rb(hl),lWr=Zt,cWr=Rb(ib),xAe=Oct(x_),uWr=Rb(k4e),dWr=Rb(hy),EAe=r6,fWr=Rb(Y9);function RAe(e,t){return e.size===t.size?e:t}const $Ae=100,OAe=100,TAe={position:"relative",overflow:"hidden"},hWr=e=>{var t,n;const{zIndex:r=9,rotate:i=-22,width:o,height:s,image:a,content:l,font:c={},style:u,className:f,rootClassName:h,gap:g=[$Ae,OAe],offset:p,children:m,inherit:v=!0}=e,C=Object.assign(Object.assign({},TAe),u),[,y]=(0,lWr.useToken)(),{color:b=y.colorFill,fontSize:S=y.fontSizeLG,fontWeight:w="normal",fontStyle:x="normal",fontFamily:E="sans-serif",textAlign:R="center"}=c,[O=$Ae,T=OAe]=g,M=O/2,_=T/2,F=(t=p==null?void 0:p[0])!==null&&t!==void 0?t:M,D=(n=p==null?void 0:p[1])!==null&&n!==void 0?n:_,k=$p.default.useMemo(()=>{const J={zIndex:r,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let oe=F-M,le=D-_;return oe>0&&(J.left=`${oe}px`,J.width=`calc(100% - ${oe}px)`,oe=0),le>0&&(J.top=`${le}px`,J.height=`calc(100% - ${le}px)`,le=0),J.backgroundPosition=`${oe}px ${le}px`,J},[r,F,M,D,_]),[L,I]=$p.default.useState(),[A,N]=$p.default.useState(new Set),B=$p.default.useMemo(()=>{const J=L?[L]:[];return[].concat(J,(0,wie.default)(Array.from(A)))},[L,A]),z=J=>{let oe=120,le=64;if(!a&&J.measureText){J.font=`${Number(S)}px ${E}`;const ge=(0,fWr.default)(l),he=ge.map(ye=>{const ue=J.measureText(ye);return[ue.width,ue.fontBoundingBoxAscent+ue.fontBoundingBoxDescent]});oe=Math.ceil(Math.max.apply(Math,(0,wie.default)(he.map(ye=>ye[0])))),le=Math.ceil(Math.max.apply(Math,(0,wie.default)(he.map(ye=>ye[1]))))*ge.length+(ge.length-1)*xAe.FontGap}return[o??oe,s??le]},j=(0,xAe.default)(),[W,G]=$p.default.useState(null),K=()=>{const oe=document.createElement("canvas").getContext("2d");if(oe){const le=(0,EAe.getPixelRatio)(),[ge,he]=z(oe),ye=ue=>{const[ve,de]=j(ue||"",i,le,ge,he,{color:b,fontSize:S,fontStyle:x,fontWeight:w,fontFamily:E,textAlign:R},O,T);G([ve,de])};if(a){const ue=new Image;ue.onload=()=>{ye(ue)},ue.onerror=()=>{ye(l)},ue.crossOrigin="anonymous",ue.referrerPolicy="no-referrer",ue.src=a}else ye(l)}},q=(0,uWr.default)(K),[X,Q,te]=(0,dWr.default)(k);(0,$p.useEffect)(()=>{W&&B.forEach(J=>{X(W[0],W[1],J)})},[W,B]);const ne=(0,aWr.default)(J=>{J.forEach(oe=>{if((0,EAe.reRendering)(oe,te))q();else if(oe.target===L&&oe.attributeName==="style"){const le=Object.keys(TAe);for(let ge=0;ge<le.length;ge+=1){const he=le[ge],ye=C[he],ue=L.style[he];ye&&ye!==ue&&(L.style[he]=ye)}}})});(0,oWr.useMutateObserver)(B,ne),(0,$p.useEffect)(q,[i,r,o,s,a,l,b,S,w,x,E,R,O,T,F,D]);const Z=$p.default.useMemo(()=>({add:J=>{N(oe=>{const le=new Set(oe);return le.add(J),RAe(oe,le)})},remove:J=>{Q(J),N(oe=>{const le=new Set(oe);return le.delete(J),RAe(oe,le)})}}),[]),ee=v?$p.default.createElement(cWr.default.Provider,{value:Z},m):m;return $p.default.createElement("div",{ref:I,className:(0,sWr.default)(f,h),style:C},ee)};cQ.default=hWr;var uQ={},gy={},gWr=pe.default,pWr=_e.default;Object.defineProperty(gy,"__esModule",{value:!0});gy.default=gy.InternalPanel=void 0;var IAe=pWr(d),mWr=gWr(St);gy.InternalPanel=(0,IAe.forwardRef)((e,t)=>{const{prefixCls:n,className:r,children:i,size:o,style:s={}}=e,a=(0,mWr.default)(`${n}-panel`,{[`${n}-panel-hidden`]:o===0},r),l=o!==void 0;return IAe.default.createElement("div",{ref:t,className:a,style:Object.assign(Object.assign({},s),{flexBasis:l?o:"auto",flexGrow:l?0:1})},i)});const vWr=()=>null;gy.default=vWr;var dQ={},B4e={},CWr=pe.default,yWr=_e.default;Object.defineProperty(B4e,"__esModule",{value:!0});B4e.default=xWr;var MAe=yWr(d),bWr=CWr(qs),SWr=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 wWr(e){if(e&&typeof e=="object")return e;const t=!!e;return{start:t,end:t}}function xWr(e){return MAe.useMemo(()=>(0,bWr.default)(e).filter(MAe.isValidElement).map(n=>{const{props:r}=n,{collapsible:i}=r,o=SWr(r,["collapsible"]);return Object.assign(Object.assign({},o),{collapsible:wWr(i)})}),[e])}var H4e={},EWr=_e.default;Object.defineProperty(H4e,"__esModule",{value:!0});H4e.default=$Wr;var RWr=EWr(d);function $Wr(e,t){return RWr.useMemo(()=>{const n=[];for(let r=0;r<e.length-1;r+=1){const i=e[r],o=e[r+1],s=t[r],a=t[r+1],{resizable:l=!0,min:c,collapsible:u}=i,{resizable:f=!0,min:h,collapsible:g}=o,p=l&&f&&(s!==0||!c)&&(a!==0||!h),m=u.end&&s>0||g.start&&a===0&&s>0,v=g.start&&a>0||u.end&&s===0&&a>0;n[r]={resizable:p,startCollapsible:!!m,endCollapsible:!!v}}return n},[t,e])}var j4e={},E_={},OWr=pe.default;Object.defineProperty(E_,"__esModule",{value:!0});E_.default=TWr;E_.getPtg=nk;var K6=OWr(d);function nk(e){return Number(e.slice(0,-1))/100}function xie(e){return typeof e=="string"&&e.endsWith("%")}function TWr(e,t){const n=e.map(p=>p.size),r=e.length,i=t||0,o=p=>p*i,[s,a]=K6.default.useState(()=>e.map(p=>p.defaultSize)),l=K6.default.useMemo(()=>{var p;const m=[];for(let v=0;v<r;v+=1)m[v]=(p=n[v])!==null&&p!==void 0?p:s[v];return m},[r,s,n]),c=K6.default.useMemo(()=>{let p=[],m=0;for(let C=0;C<r;C+=1){const y=l[C];if(xie(y))p[C]=nk(y);else if(y||y===0){const b=Number(y);Number.isNaN(b)||(p[C]=b/i)}else m+=1,p[C]=void 0}const v=p.reduce((C,y)=>C+(y||0),0);if(v>1||!m){const C=1/v;p=p.map(y=>y===void 0?0:y*C)}else{const C=(1-v)/m;p=p.map(y=>y===void 0?C:y)}return p},[l,i]),u=K6.default.useMemo(()=>c.map(o),[c,i]),f=K6.default.useMemo(()=>e.map(p=>xie(p.min)?nk(p.min):(p.min||0)/i),[e,i]),h=K6.default.useMemo(()=>e.map(p=>xie(p.max)?nk(p.max):(p.max||i)/i),[e,i]);return[K6.default.useMemo(()=>t?u:l,[u,t]),u,c,f,h,a]}var IWr=_e.default,MWr=pe.default;Object.defineProperty(j4e,"__esModule",{value:!0});j4e.default=AWr;var PWr=MWr(zr),PAe=IWr(d),_Wr=E_;function AWr(e,t,n,r,i){const o=e.map(y=>[y.min,y.max]),s=r||0,a=y=>y*s;function l(y,b){return typeof y=="string"?a((0,_Wr.getPtg)(y)):y??b}const[c,u]=PAe.useState([]),[f,h]=PAe.useState(null),g=()=>n.map(a);return[y=>{u(g()),h({index:y,confirmed:!1})},(y,b)=>{var S;let w=null;if((!f||!f.confirmed)&&b!==0){if(b>0)w=y,h({index:y,confirmed:!0});else for(let D=y;D>=0;D-=1)if(c[D]>0&&t[D].resizable){w=D,h({index:D,confirmed:!0});break}}const x=(S=w??(f==null?void 0:f.index))!==null&&S!==void 0?S:y,E=(0,PWr.default)(c),R=x+1,O=l(o[x][0],0),T=l(o[R][0],0),M=l(o[x][1],s),_=l(o[R][1],s);let F=b;return E[x]+F<O&&(F=O-E[x]),E[R]-F<T&&(F=E[R]-T),E[x]+F>M&&(F=M-E[x]),E[R]-F>_&&(F=E[R]-_),E[x]+=F,E[R]-=F,i(E),E},()=>{h(null)},(y,b)=>{const S=g(),w=b==="start"?y:y+1,x=b==="start"?y+1:y,E=S[w],R=S[x];if(E!==0&&R!==0)S[w]=0,S[x]+=E;else{const O=E+R,T=l(o[w][0],0),M=l(o[w][1],s),_=l(o[x][0],0),F=l(o[x][1],s),D=Math.max(T,O-F),L=(Math.min(M,O-_)-D)/2;S[w]-=L,S[x]+=L}return i(S),S},f==null?void 0:f.index]}var fQ={},oE=pe.default,DWr=_e.default;Object.defineProperty(fQ,"__esModule",{value:!0});fQ.default=void 0;var Op=DWr(d),LWr=oE(b9),FWr=oE(T9),NWr=oE(P3),kWr=oE(dot),H5=oE(St),_Ae=oE(hl);function Eie(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const zWr=e=>{const{prefixCls:t,vertical:n,index:r,active:i,ariaNow:o,ariaMin:s,ariaMax:a,resizable:l,startCollapsible:c,endCollapsible:u,onOffsetStart:f,onOffsetUpdate:h,onOffsetEnd:g,onCollapse:p,lazy:m,containerSize:v}=e,C=`${t}-bar`,[y,b]=(0,Op.useState)(null),[S,w]=(0,Op.useState)(0),x=n?0:S,E=n?S:0,R=L=>{l&&L.currentTarget&&(b([L.pageX,L.pageY]),f(r))},O=L=>{if(l&&L.touches.length===1){const I=L.touches[0];b([I.pageX,I.pageY]),f(r)}},T=L=>{const I=v*o/100,A=I+L,N=Math.max(0,v*s/100),B=Math.min(v,v*a/100);return Math.max(N,Math.min(B,A))-I},M=(0,_Ae.default)((L,I)=>{const A=T(n?I:L);w(A)}),_=(0,_Ae.default)(()=>{h(r,x,E),w(0)});Op.default.useEffect(()=>{if(y){const L=B=>{const{pageX:z,pageY:j}=B,W=z-y[0],G=j-y[1];m?M(W,G):h(r,W,G)},I=()=>{m&&_(),b(null),g()},A=B=>{if(B.touches.length===1){const z=B.touches[0],j=z.pageX-y[0],W=z.pageY-y[1];m?M(j,W):h(r,j,W)}},N=()=>{m&&_(),b(null),g()};return window.addEventListener("touchmove",A),window.addEventListener("touchend",N),window.addEventListener("mousemove",L),window.addEventListener("mouseup",I),()=>{window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",I),window.removeEventListener("touchmove",A),window.removeEventListener("touchend",N)}}},[y,m,n,r,v,o,s,a]);const F={[`--${C}-preview-offset`]:`${S}px`},D=n?kWr.default:FWr.default,k=n?LWr.default:NWr.default;return Op.default.createElement("div",{className:C,role:"separator","aria-valuenow":Eie(o),"aria-valuemin":Eie(s),"aria-valuemax":Eie(a)},m&&Op.default.createElement("div",{className:(0,H5.default)(`${C}-preview`,{[`${C}-preview-active`]:!!S}),style:F}),Op.default.createElement("div",{className:(0,H5.default)(`${C}-dragger`,{[`${C}-dragger-disabled`]:!l,[`${C}-dragger-active`]:i}),onMouseDown:R,onTouchStart:O}),c&&Op.default.createElement("div",{className:(0,H5.default)(`${C}-collapse-bar`,`${C}-collapse-bar-start`),onClick:()=>p(r,"start")},Op.default.createElement(D,{className:(0,H5.default)(`${C}-collapse-icon`,`${C}-collapse-start`)})),u&&Op.default.createElement("div",{className:(0,H5.default)(`${C}-collapse-bar`,`${C}-collapse-bar-end`),onClick:()=>p(r,"end")},Op.default.createElement(k,{className:(0,H5.default)(`${C}-collapse-icon`,`${C}-collapse-end`)})))};fQ.default=zWr;var gx={};Object.defineProperty(gx,"__esModule",{value:!0});gx.prepareComponentToken=gx.default=void 0;var BWr=gn,HWr=Zt;const jWr=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},nF={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},VWr=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:r,splitBarSize:i,splitTriggerSize:o,controlItemBgHover:s,controlItemBgActive:a,controlItemBgActiveHover:l,prefixCls:c}=e,u=`${t}-bar`,f=`${t}-mask`,h=`${t}-panel`,g=e.calc(o).div(2).equal(),p=`${c}-bar-preview-offset`,m={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:Object.assign(Object.assign(Object.assign({},(0,BWr.resetComponent)(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${u}`]:{flex:"none",position:"relative",userSelect:"none",[`${u}-dragger`]:Object.assign(Object.assign({},nF),{zIndex:1,"&::before":Object.assign({content:'""',background:s},nF),"&::after":Object.assign({content:'""',background:n},nF),[`&:hover:not(${u}-dragger-active)`]:{"&::before":{background:a}},"&-active":{zIndex:2,"&::before":{background:l}},[`&-disabled${u}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:s}},"&::after":{display:"none"}}}),[`${u}-collapse-bar`]:Object.assign(Object.assign({},nF),{zIndex:e.zIndexPopupBase,background:s,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:a},"&:active":{background:l}}),"&:hover, &:active":{[`${u}-collapse-bar`]:{opacity:1}}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${u}`]:{width:0,[`${u}-preview`]:Object.assign(Object.assign({height:"100%",width:i},m),{[`&${u}-preview-active`]:{display:"block",transform:`translateX(var(--${p}))`}}),[`${u}-dragger`]:{cursor:"col-resize",height:"100%",width:o,"&::before":{height:"100%",width:i},"&::after":{height:r,width:i}},[`${u}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:g},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:g},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${u}`]:{height:0,[`${u}-preview`]:Object.assign(Object.assign({height:i,width:"100%"},m),{[`&${u}-preview-active`]:{display:"block",transform:`translateY(var(--${p}))`}}),[`${u}-dragger`]:{cursor:"row-resize",width:"100%",height:o,"&::before":{width:"100%",height:i},"&::after":{width:r,height:i}},[`${u}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:g,transform:"translateX(-50%)"},"&-end":{top:g,bottom:"auto",transform:"translateX(-50%)"}}}},[h]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),jWr(e))}},Tct=e=>{var t;const n=e.splitBarSize||2,r=e.splitTriggerSize||6,i=e.resizeSpinnerSize||20,o=(t=e.splitBarDraggableSize)!==null&&t!==void 0?t:i;return{splitBarSize:n,splitTriggerSize:r,splitBarDraggableSize:o,resizeSpinnerSize:i}};gx.prepareComponentToken=Tct;gx.default=(0,HWr.genStyleHooks)("Splitter",e=>[VWr(e)],Tct);var i1=pe.default,GWr=_e.default;Object.defineProperty(dQ,"__esModule",{value:!0});dQ.default=void 0;var Tp=GWr(d),AAe=i1(St),WWr=i1(pG),rF=i1(hl),UWr=Bt,qWr=i1(Xr),KWr=i1(B4e),YWr=i1(H4e),XWr=i1(j4e),QWr=i1(E_),ZWr=gy,JWr=i1(fQ),eUr=i1(gx);const tUr=e=>{const{prefixCls:t,className:n,style:r,layout:i="horizontal",children:o,rootClassName:s,onResizeStart:a,onResize:l,onResizeEnd:c,lazy:u}=e,{getPrefixCls:f,direction:h,splitter:g}=Tp.default.useContext(UWr.ConfigContext),p=f("splitter",t),m=(0,qWr.default)(p),[v,C,y]=(0,eUr.default)(p,m),b=i==="vertical",S=h==="rtl",w=!b&&S,x=(0,KWr.default)(o),[E,R]=(0,Tp.useState)(),O=ne=>{const{offsetWidth:Z,offsetHeight:ee}=ne,J=b?ee:Z;J!==0&&R(J)},[T,M,_,F,D,k]=(0,QWr.default)(x,E),L=(0,YWr.default)(x,M),[I,A,N,B,z]=(0,XWr.default)(x,L,_,E,k),j=(0,rF.default)(ne=>{I(ne),a==null||a(M)}),W=(0,rF.default)((ne,Z)=>{const ee=A(ne,Z);l==null||l(ee)}),G=(0,rF.default)(()=>{N(),c==null||c(M)}),K=(0,rF.default)((ne,Z)=>{const ee=B(ne,Z);l==null||l(ee),c==null||c(ee)}),q=(0,AAe.default)(p,n,`${p}-${i}`,{[`${p}-rtl`]:S},s,g==null?void 0:g.className,y,m,C),X=`${p}-mask`,Q=Tp.default.useMemo(()=>{const ne=[];let Z=0;for(let ee=0;ee<x.length;ee+=1)Z+=_[ee],ne.push(Z);return ne},[_]),te=Object.assign(Object.assign({},g==null?void 0:g.style),r);return v(Tp.default.createElement(WWr.default,{onResize:O},Tp.default.createElement("div",{style:te,className:q},x.map((ne,Z)=>{const ee=Tp.default.createElement(ZWr.InternalPanel,Object.assign({},ne,{prefixCls:p,size:T[Z]}));let J=null;const oe=L[Z];if(oe){const le=(Q[Z-1]||0)+F[Z],ge=(Q[Z+1]||100)-D[Z+1],he=(Q[Z-1]||0)+D[Z],ye=(Q[Z+1]||100)-F[Z+1];J=Tp.default.createElement(JWr.default,{lazy:u,index:Z,active:z===Z,prefixCls:p,vertical:b,resizable:oe.resizable,ariaNow:Q[Z]*100,ariaMin:Math.max(le,ge)*100,ariaMax:Math.min(he,ye)*100,startCollapsible:oe.startCollapsible,endCollapsible:oe.endCollapsible,onOffsetStart:j,onOffsetUpdate:(ue,ve,de)=>{let xe=b?de:ve;w&&(xe=-xe),W(ue,xe)},onOffsetEnd:G,onCollapse:K,containerSize:E||0})}return Tp.default.createElement(Tp.default.Fragment,{key:`split-panel-${Z}`},ee,J)}),typeof z=="number"&&Tp.default.createElement("div",{"aria-hidden":!0,className:(0,AAe.default)(X,`${X}-${i}`)}))))};dQ.default=tUr;var Ict=pe.default;Object.defineProperty(uQ,"__esModule",{value:!0});uQ.default=void 0;var nUr=Ict(gy),rUr=Ict(dQ);const Mct=rUr.default;Mct.Panel=nUr.default;uQ.default=Mct;(function(e){"use client";var t=pe.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Affix",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Alert",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Anchor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"App",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"AutoComplete",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Avatar",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"BackTop",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Badge",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Breadcrumb",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Calendar",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Card",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"Cascader",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"Checkbox",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"Col",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"Collapse",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"ColorPicker",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"ConfigProvider",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"DatePicker",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"Descriptions",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"Divider",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"Drawer",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"Empty",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"Flex",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"FloatButton",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"Form",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"InputNumber",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"List",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"Mentions",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"Modal",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"Pagination",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"Popconfirm",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"Popover",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"Progress",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"QRCode",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"Radio",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"Rate",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"Row",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"Segmented",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(e,"Select",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(e,"Space",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(e,"Spin",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"Splitter",{enumerable:!0,get:function(){return je.default}}),Object.defineProperty(e,"Statistic",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(e,"Steps",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(e,"Table",{enumerable:!0,get:function(){return Ee.default}}),Object.defineProperty(e,"Tabs",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(e,"Tag",{enumerable:!0,get:function(){return Be.default}}),Object.defineProperty(e,"TimePicker",{enumerable:!0,get:function(){return Ue.default}}),Object.defineProperty(e,"Timeline",{enumerable:!0,get:function(){return We.default}}),Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return Ve.default}}),Object.defineProperty(e,"Tour",{enumerable:!0,get:function(){return Fe.default}}),Object.defineProperty(e,"Transfer",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(e,"Tree",{enumerable:!0,get:function(){return Ye.default}}),Object.defineProperty(e,"TreeSelect",{enumerable:!0,get:function(){return ze.default}}),Object.defineProperty(e,"Typography",{enumerable:!0,get:function(){return Re.default}}),Object.defineProperty(e,"Upload",{enumerable:!0,get:function(){return Le.default}}),Object.defineProperty(e,"Watermark",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(e,"message",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"notification",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"theme",{enumerable:!0,get:function(){return Ge.default}}),Object.defineProperty(e,"unstableSetRender",{enumerable:!0,get:function(){return Xe.unstableSetRender}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return Me.default}});var n=t(EM),r=t(_G),i=t(UG),o=t(KG),s=t(QW),a=t(Nrt),l=t(pU),c=t(dP),u=t(SU),f=t(Ru),h=t(NU),g=t(qU),p=t(JU),m=t(eq),v=t(V3),C=t(iq),y=t(eP),b=t(sq),S=t(Bt),w=t(VP),x=t(kot),E=t(AP),R=t(Xq),O=t(vb),T=t(m9),M=t(tK),_=t(nK),F=t(uK),D=t(gb),k=t(SK),L=t(pb),I=t(NP),A=t(OK),N=t(MK),B=t(K7),z=t(O9),j=t(R4),W=t(zK),G=t($4),K=t(yb),q=t(jK),X=t(sb),Q=t(Q9),te=t(WK),ne=t(xP),Z=t(UK),ee=t(T4),J=t(JK),oe=t(DP),le=t(N3),ge=t(L3),he=t(BP),ye=t(Bve),ue=t(Q3),ve=t(eY),de=t(iY),xe=t(pY),Ee=t(mY),De=t(RP),Be=t(lX),Ge=t(fX),Ue=t(CX),We=t(yX),Ve=t(gl),Fe=t(EX),ke=t(OX),Ye=t(u_),ze=t(cct),Re=t(FX),Le=t(XX),Me=t(zM),be=t(cQ),je=t(uQ),Xe=I3})(get);const hQ=({value:e,onChange:t,compressed:n=!1,className:r,placeholder:i="点击上传",style:o,successText:s="上传成功",showCover:a=!0})=>{const{handleFileUpload:l,uploadProgress:c}=k1e(),[u,f]=d.useState(null),h=d.useRef(null),[g,p]=d.useState(e||""),[m,v]=d.useState(e),[C,y]=d.useState(e||""),[b,S]=d.useState(e||""),[w,x]=d.useState(!1),E=d.useRef(null),[R,O]=d.useState(0),{token:T}=Wm.useToken();d.useEffect(()=>{(!g||(g==null?void 0:g.length)<1)&&p(e||"")},[e]);const M=async F=>{var L;const D=(L=F.target.files)==null?void 0:L[0];if(!D)return;const k=URL.createObjectURL(D);p(k),f({name:D.name,progress:0,status:"uploading",fileKey:`${D.name}-${Date.now()}`}),x(!0);try{const I=await new Promise((A,N)=>{l(D,B=>{f(z=>({...z,progress:100,status:"done",fileId:B.fileId,url:B.url,compressedUrl:B.compressedUrl})),S(B.url),y(B.compressedUrl),A(n?B.compressedUrl:B.url)},B=>{N(B)},u==null?void 0:u.fileKey)});O(A=>A+1),console.log(I),t==null||t(I),sl.success(s)}catch(I){console.error("上传错误:",I),sl.error("上传失败"),f(A=>({...A,status:"error"}))}finally{x(!1)}},_=()=>{var F;(F=E.current)==null||F.click()};return H.jsxs("div",{className:`relative w-24 h-24 overflow-hidden cursor-pointer ${r}`,onClick:_,style:{border:`1px solid ${T.colorBorder}`,background:T.colorBgContainer,...o},children:[H.jsx("input",{type:"file",ref:E,onChange:M,accept:"image/*",style:{display:"none"}}),g&&a?H.jsx(get.Avatar,{ref:h,src:g,shape:"square",onError:()=>e&&g&&m===e?(v(g),!0):!1,className:"w-full h-full object-cover"},R):H.jsx("div",{className:"flex items-center justify-center w-full h-full text-sm text-gray-500",children:i}),w&&H.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black bg-opacity-50",children:H.jsx(iv,{})}),u&&u.status==="uploading"&&H.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-white bg-opacity-75",children:H.jsx(eme,{percent:Math.round((c==null?void 0:c[u.fileKey])||0),showInfo:!1,strokeColor:T.colorPrimary})})]})},{TextArea:iUr}=Ai;function oUr(){Object.entries(Y7t).map(([n,r])=>({label:r,value:n}));const{form:e,taxonomies:t}=hG();return H.jsxs("div",{className:"max-w-2xl mx-auto space-y-6 p-6",children:[H.jsx(Rn.Item,{name:"title",label:"课程标题",rules:[{required:!0,message:"请输入课程标题"},{max:20,message:"标题最多20个字符"}],children:H.jsx(Ai,{placeholder:"请输入课程标题"})}),H.jsx(Rn.Item,{name:"subTitle",label:"课程副标题",rules:[{max:20,message:"副标题最多20个字符"}],children:H.jsx(Ai,{placeholder:"请输入课程副标题"})}),H.jsx(Rn.Item,{name:["meta","thumbnail"],label:"课程封面",children:H.jsx(hQ,{style:{width:"192px",height:"108px",margin:" 0 10px"}})}),H.jsx(Rn.Item,{name:"content",label:"课程描述",children:H.jsx(iUr,{placeholder:"请输入课程描述",autoSize:{minRows:3,maxRows:6}})}),H.jsx(Rn.Item,{name:"deptIds",label:"参与单位",children:H.jsx(bu,{multiple:!0})}),t&&t.map((n,r)=>H.jsx(Rn.Item,{rules:[{required:!1,message:""}],label:n.name,name:n.id,children:H.jsx(xM,{placeholder:`请选择${n.name}`,taxonomyId:n.id})},r))]})}function sUr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const gQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sE(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function V4e(e){return"nodeType"in e}function $u(e){var t,n;return e?sE(e)?e:V4e(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function G4e(e){const{Document:t}=$u(e);return e instanceof t}function R_(e){return sE(e)?!1:e instanceof $u(e).HTMLElement}function Pct(e){return e instanceof $u(e).SVGElement}function aE(e){return e?sE(e)?e.document:V4e(e)?G4e(e)?e:R_(e)||Pct(e)?e.ownerDocument:document:document:document}const Dm=gQ?d.useLayoutEffect:d.useEffect;function W4e(e){const t=d.useRef(e);return Dm(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function aUr(){const e=d.useRef(null),t=d.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function rI(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return Dm(()=>{n.current!==e&&(n.current=e)},t),n}function $_(e,t){const n=d.useRef();return d.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function rH(e){const t=W4e(e),n=d.useRef(null),r=d.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function vde(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let Rie={};function O_(e,t){return d.useMemo(()=>{if(t)return t;const n=Rie[e]==null?0:Rie[e]+1;return Rie[e]=n,e+"-"+n},[e,t])}function _ct(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,s)=>{const a=Object.entries(s);for(const[l,c]of a){const u=o[l];u!=null&&(o[l]=u+e*c)}return o},{...t})}}const sw=_ct(1),iI=_ct(-1);function lUr(e){return"clientX"in e&&"clientY"in e}function U4e(e){if(!e)return!1;const{KeyboardEvent:t}=$u(e.target);return t&&e instanceof t}function cUr(e){if(!e)return!1;const{TouchEvent:t}=$u(e.target);return t&&e instanceof t}function Cde(e){if(cUr(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return lUr(e)?{x:e.clientX,y:e.clientY}:null}const px=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[px.Translate.toString(e),px.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),DAe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function uUr(e){return e.matches(DAe)?e:e.querySelector(DAe)}const dUr={display:"none"};function fUr(e){let{id:t,value:n}=e;return ce.createElement("div",{id:t,style:dUr},n)}function hUr(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ce.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function gUr(){const[e,t]=d.useState("");return{announce:d.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Act=d.createContext(null);function pUr(e){const t=d.useContext(Act);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function mUr(){const[e]=d.useState(()=>new Set),t=d.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[d.useCallback(r=>{let{type:i,event:o}=r;e.forEach(s=>{var a;return(a=s[i])==null?void 0:a.call(s,o)})},[e]),t]}const vUr={draggable:`
|
||
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.
|
||
`},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}function TUr(e,t,n){const r=OUr(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),c=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,f=o?e.height/o:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}const IUr={ignoreTransform:!1};function lE(e,t){t===void 0&&(t=IUr);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=$u(e).getComputedStyle(e);c&&(n=TUr(n,c,u))}const{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function NAe(e){return lE(e,{ignoreTransform:!0})}function MUr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function PUr(e,t){return t===void 0&&(t=$u(e).getComputedStyle(e)),t.position==="fixed"}function _Ur(e,t){t===void 0&&(t=$u(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function pQ(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(G4e(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!R_(i)||Pct(i)||n.includes(i))return n;const o=$u(e).getComputedStyle(i);return i!==e&&_Ur(i,o)&&n.push(i),PUr(i,o)?n:r(i.parentNode)}return e?r(e):n}function Bct(e){const[t]=pQ(e,1);return t??null}function $ie(e){return!gQ||!e?null:sE(e)?e:V4e(e)?G4e(e)||e===aE(e).scrollingElement?window:R_(e)?e:null:null}function Hct(e){return sE(e)?e.scrollX:e.scrollLeft}function jct(e){return sE(e)?e.scrollY:e.scrollTop}function yde(e){return{x:Hct(e),y:jct(e)}}var Ta;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ta||(Ta={}));function Vct(e){return!gQ||!e?!1:e===document.scrollingElement}function Gct(e){const t={x:0,y:0},n=Vct(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const AUr={x:.2,y:.2};function DUr(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=AUr);const{isTop:c,isBottom:u,isLeft:f,isRight:h}=Gct(e),g={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+m.height?(g.y=Ta.Backward,p.y=r*Math.abs((t.top+m.height-o)/m.height)):!u&&l>=t.bottom-m.height&&(g.y=Ta.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!h&&a>=t.right-m.width?(g.x=Ta.Forward,p.x=r*Math.abs((t.right-m.width-a)/m.width)):!f&&s<=t.left+m.width&&(g.x=Ta.Backward,p.x=r*Math.abs((t.left+m.width-s)/m.width)),{direction:g,speed:p}}function LUr(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Wct(e){return e.reduce((t,n)=>sw(t,yde(n)),Hg)}function FUr(e){return e.reduce((t,n)=>t+Hct(n),0)}function NUr(e){return e.reduce((t,n)=>t+jct(n),0)}function kUr(e,t){if(t===void 0&&(t=lE),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);Bct(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const zUr=[["x",["left","right"],FUr],["y",["top","bottom"],NUr]];class q4e{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=pQ(n),i=Wct(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of zUr)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=a(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class fO{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function BUr(e){const{EventTarget:t}=$u(e);return e instanceof t?e:aE(e)}function Oie(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var wf;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(wf||(wf={}));function kAe(e){e.preventDefault()}function HUr(e){e.stopPropagation()}var xi;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(xi||(xi={}));const Uct={start:[xi.Space,xi.Enter],cancel:[xi.Esc],end:[xi.Space,xi.Enter,xi.Tab]},jUr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case xi.Right:return{...n,x:n.x+25};case xi.Left:return{...n,x:n.x-25};case xi.Down:return{...n,y:n.y+25};case xi.Up:return{...n,y:n.y-25}}};class mQ{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new fO(aE(n)),this.windowListeners=new fO($u(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(wf.Resize,this.handleCancel),this.windowListeners.add(wf.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(wf.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&kUr(r),n(Hg)}handleKeyDown(t){if(U4e(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=Uct,coordinateGetter:s=jUr,scrollBehavior:a="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Hg;this.referenceCoordinates||(this.referenceCoordinates=u);const f=s(t,{active:n,context:r.current,currentCoordinates:u});if(f){const h=iI(f,u),g={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const v=t.code,{isTop:C,isRight:y,isLeft:b,isBottom:S,maxScroll:w,minScroll:x}=Gct(m),E=LUr(m),R={x:Math.min(v===xi.Right?E.right-E.width/2:E.right,Math.max(v===xi.Right?E.left:E.left+E.width/2,f.x)),y:Math.min(v===xi.Down?E.bottom-E.height/2:E.bottom,Math.max(v===xi.Down?E.top:E.top+E.height/2,f.y))},O=v===xi.Right&&!y||v===xi.Left&&!b,T=v===xi.Down&&!S||v===xi.Up&&!C;if(O&&R.x!==f.x){const M=m.scrollLeft+h.x,_=v===xi.Right&&M<=w.x||v===xi.Left&&M>=x.x;if(_&&!h.y){m.scrollTo({left:M,behavior:a});return}_?g.x=m.scrollLeft-M:g.x=v===xi.Right?m.scrollLeft-w.x:m.scrollLeft-x.x,g.x&&m.scrollBy({left:-g.x,behavior:a});break}else if(T&&R.y!==f.y){const M=m.scrollTop+h.y,_=v===xi.Down&&M<=w.y||v===xi.Up&&M>=x.y;if(_&&!h.x){m.scrollTo({top:M,behavior:a});return}_?g.y=m.scrollTop-M:g.y=v===xi.Down?m.scrollTop-w.y:m.scrollTop-x.y,g.y&&m.scrollBy({top:-g.y,behavior:a});break}}this.handleMove(t,sw(iI(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}mQ.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Uct,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function zAe(e){return!!(e&&"distance"in e)}function BAe(e){return!!(e&&"delay"in e)}class K4e{constructor(t,n,r){var i;r===void 0&&(r=BUr(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=aE(s),this.documentListeners=new fO(this.document),this.listeners=new fO(r),this.windowListeners=new fO($u(s)),this.initialCoordinates=(i=Cde(o))!=null?i:Hg,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(wf.Resize,this.handleCancel),this.windowListeners.add(wf.DragStart,kAe),this.windowListeners.add(wf.VisibilityChange,this.handleCancel),this.windowListeners.add(wf.ContextMenu,kAe),this.documentListeners.add(wf.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(BAe(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(zAe(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(wf.Click,HUr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(wf.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:s,options:{activationConstraint:a}}=o;if(!i)return;const l=(n=Cde(t))!=null?n:Hg,c=iI(i,l);if(!r&&a){if(zAe(a)){if(a.tolerance!=null&&Oie(c,a.tolerance))return this.handleCancel();if(Oie(c,a.distance))return this.handleStart()}if(BAe(a)&&Oie(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===xi.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const VUr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class vQ extends K4e{constructor(t){const{event:n}=t,r=aE(n.target);super(t,VUr,r)}}vQ.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const GUr={move:{name:"mousemove"},end:{name:"mouseup"}};var bde;(function(e){e[e.RightClick=2]="RightClick"})(bde||(bde={}));class WUr extends K4e{constructor(t){super(t,GUr,aE(t.event.target))}}WUr.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===bde.RightClick?!1:(r==null||r({event:n}),!0)}}];const Tie={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class UUr extends K4e{constructor(t){super(t,Tie)}static setup(){return window.addEventListener(Tie.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Tie.move.name,t)};function t(){}}}UUr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var hO;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(hO||(hO={}));var sH;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(sH||(sH={}));function qUr(e){let{acceleration:t,activator:n=hO.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=sH.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:h}=e;const g=YUr({delta:f,disabled:!o}),[p,m]=aUr(),v=d.useRef({x:0,y:0}),C=d.useRef({x:0,y:0}),y=d.useMemo(()=>{switch(n){case hO.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case hO.DraggableRect:return i}},[n,i,l]),b=d.useRef(null),S=d.useCallback(()=>{const x=b.current;if(!x)return;const E=v.current.x*C.current.x,R=v.current.y*C.current.y;x.scrollBy(E,R)},[]),w=d.useMemo(()=>a===sH.TreeOrder?[...c].reverse():c,[a,c]);d.useEffect(()=>{if(!o||!c.length||!y){m();return}for(const x of w){if((r==null?void 0:r(x))===!1)continue;const E=c.indexOf(x),R=u[E];if(!R)continue;const{direction:O,speed:T}=DUr(x,R,y,t,h);for(const M of["x","y"])g[M][O[M]]||(T[M]=0,O[M]=0);if(T.x>0||T.y>0){m(),b.current=x,p(S,s),v.current=T,C.current=O;return}}v.current={x:0,y:0},C.current={x:0,y:0},m()},[t,S,r,m,o,s,JSON.stringify(y),JSON.stringify(g),p,c,w,u,JSON.stringify(h)])}const KUr={x:{[Ta.Backward]:!1,[Ta.Forward]:!1},y:{[Ta.Backward]:!1,[Ta.Forward]:!1}};function YUr(e){let{delta:t,disabled:n}=e;const r=vde(t);return $_(i=>{if(n||!r||!i)return KUr;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Ta.Backward]:i.x[Ta.Backward]||o.x===-1,[Ta.Forward]:i.x[Ta.Forward]||o.x===1},y:{[Ta.Backward]:i.y[Ta.Backward]||o.y===-1,[Ta.Forward]:i.y[Ta.Forward]||o.y===1}}},[n,t,r])}function XUr(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return $_(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function QUr(e,t){return d.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var oI;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(oI||(oI={}));var Sde;(function(e){e.Optimized="optimized"})(Sde||(Sde={}));const HAe=new Map;function ZUr(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=d.useState(null),{frequency:a,measure:l,strategy:c}=i,u=d.useRef(e),f=v(),h=rI(f),g=d.useCallback(function(C){C===void 0&&(C=[]),!h.current&&s(y=>y===null?C:y.concat(C.filter(b=>!y.includes(b))))},[h]),p=d.useRef(null),m=$_(C=>{if(f&&!n)return HAe;if(!C||C===HAe||u.current!==e||o!=null){const y=new Map;for(let b of e){if(!b)continue;if(o&&o.length>0&&!o.includes(b.id)&&b.rect.current){y.set(b.id,b.rect.current);continue}const S=b.node.current,w=S?new q4e(l(S),S):null;b.rect.current=w,w&&y.set(b.id,w)}return y}return C},[e,o,n,f,l]);return d.useEffect(()=>{u.current=e},[e]),d.useEffect(()=>{f||g()},[n,f]),d.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),d.useEffect(()=>{f||typeof a!="number"||p.current!==null||(p.current=setTimeout(()=>{g(),p.current=null},a))},[a,f,g,...r]),{droppableRects:m,measureDroppableContainers:g,measuringScheduled:o!=null};function v(){switch(c){case oI.Always:return!1;case oI.BeforeDragging:return n;default:return!n}}}function qct(e,t){return $_(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function JUr(e,t){return qct(e,t)}function eqr(e){let{callback:t,disabled:n}=e;const r=W4e(t),i=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return d.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function CQ(e){let{callback:t,disabled:n}=e;const r=W4e(t),i=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return d.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function tqr(e){return new q4e(lE(e),e)}function jAe(e,t,n){t===void 0&&(t=tqr);const[r,i]=d.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const s=eqr({callback(l){if(e)for(const c of l){const{type:u,target:f}=c;if(u==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=CQ({callback:o});return Dm(()=>{o(),e?(a==null||a.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),s==null||s.disconnect())},[e]),r}function nqr(e){const t=qct(e);return zct(e,t)}const VAe=[];function rqr(e){const t=d.useRef(e),n=$_(r=>e?r&&r!==VAe&&e&&t.current&&e.parentNode===t.current.parentNode?r:pQ(e):VAe,[e]);return d.useEffect(()=>{t.current=e},[e]),n}function iqr(e){const[t,n]=d.useState(null),r=d.useRef(e),i=d.useCallback(o=>{const s=$ie(o.target);s&&n(a=>a?(a.set(s,yde(s)),new Map(a)):null)},[]);return d.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const c=$ie(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,yde(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(o)};function s(a){a.forEach(l=>{const c=$ie(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),d.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>sw(o,s),Hg):Wct(e):Hg,[e,t])}function GAe(e,t){t===void 0&&(t=[]);const n=d.useRef(null);return d.useEffect(()=>{n.current=null},t),d.useEffect(()=>{const r=e!==Hg;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?iI(e,n.current):Hg}function oqr(e){d.useEffect(()=>{if(!gQ)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function sqr(e,t){return d.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function Kct(e){return d.useMemo(()=>e?MUr(e):null,[e])}const WAe=[];function aqr(e,t){t===void 0&&(t=lE);const[n]=e,r=Kct(n?$u(n):null),[i,o]=d.useState(WAe);function s(){o(()=>e.length?e.map(l=>Vct(l)?r:new q4e(t(l),l)):WAe)}const a=CQ({callback:s});return Dm(()=>{a==null||a.disconnect(),s(),e.forEach(l=>a==null?void 0:a.observe(l))},[e]),i}function lqr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return R_(t)?t:e}function cqr(e){let{measure:t}=e;const[n,r]=d.useState(null),i=d.useCallback(c=>{for(const{target:u}of c)if(R_(u)){r(f=>{const h=t(u);return f?{...f,width:h.width,height:h.height}:h});break}},[t]),o=CQ({callback:i}),s=d.useCallback(c=>{const u=lqr(c);o==null||o.disconnect(),u&&(o==null||o.observe(u)),r(u?t(u):null)},[t,o]),[a,l]=rH(s);return d.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const uqr=[{sensor:vQ,options:{}},{sensor:mQ,options:{}}],dqr={current:{}},rk={draggable:{measure:NAe},droppable:{measure:NAe,strategy:oI.WhileDragging,frequency:Sde.Optimized},dragOverlay:{measure:lE}};class gO extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const fqr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new gO,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:iH},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:rk,measureDroppableContainers:iH,windowRect:null,measuringScheduled:!1},hqr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:iH,draggableNodes:new Map,over:null,measureDroppableContainers:iH},yQ=d.createContext(hqr),Yct=d.createContext(fqr);function gqr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new gO}}}function pqr(e,t){switch(t.type){case Js.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Js.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Js.DragEnd:case Js.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Js.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new gO(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Js.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new gO(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case Js.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new gO(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function mqr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=d.useContext(yQ),o=vde(r),s=vde(n==null?void 0:n.id);return d.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!U4e(o)||document.activeElement===o.target)return;const a=i.get(s);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const f=uUr(u);if(f){f.focus();break}}})}},[r,t,i,s,o]),null}function vqr(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function Cqr(e){return d.useMemo(()=>({draggable:{...rk.draggable,...e==null?void 0:e.draggable},droppable:{...rk.droppable,...e==null?void 0:e.droppable},dragOverlay:{...rk.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function yqr(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=d.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;Dm(()=>{if(!s&&!a||!t){o.current=!1;return}if(o.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),f=zct(u,r);if(s||(f.x=0),a||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const h=Bct(c);h&&h.scrollBy({top:f.y,left:f.x})}},[t,s,a,r,n])}const Xct=d.createContext({...Hg,scaleX:1,scaleY:1});var T2;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(T2||(T2={}));const Qct=d.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:u=uqr,collisionDetection:f=xUr,measuring:h,modifiers:g,...p}=t;const m=d.useReducer(pqr,void 0,gqr),[v,C]=m,[y,b]=mUr(),[S,w]=d.useState(T2.Uninitialized),x=S===T2.Initialized,{draggable:{active:E,nodes:R,translate:O},droppable:{containers:T}}=v,M=E!=null?R.get(E):null,_=d.useRef({initial:null,translated:null}),F=d.useMemo(()=>{var tt;return E!=null?{id:E,data:(tt=M==null?void 0:M.data)!=null?tt:dqr,rect:_}:null},[E,M]),D=d.useRef(null),[k,L]=d.useState(null),[I,A]=d.useState(null),N=rI(p,Object.values(p)),B=O_("DndDescribedBy",s),z=d.useMemo(()=>T.getEnabled(),[T]),j=Cqr(h),{droppableRects:W,measureDroppableContainers:G,measuringScheduled:K}=ZUr(z,{dragging:x,dependencies:[O.x,O.y],config:j.droppable}),q=XUr(R,E),X=d.useMemo(()=>I?Cde(I):null,[I]),Q=Tt(),te=JUr(q,j.draggable.measure);yqr({activeNode:E!=null?R.get(E):null,config:Q.layoutShiftCompensation,initialRect:te,measure:j.draggable.measure});const ne=jAe(q,j.draggable.measure,te),Z=jAe(q?q.parentElement:null),ee=d.useRef({activatorEvent:null,active:null,activeNode:q,collisionRect:null,collisions:null,droppableRects:W,draggableNodes:R,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),J=T.getNodeFor((n=ee.current.over)==null?void 0:n.id),oe=cqr({measure:j.dragOverlay.measure}),le=(r=oe.nodeRef.current)!=null?r:q,ge=x?(i=oe.rect)!=null?i:ne:null,he=!!(oe.nodeRef.current&&oe.rect),ye=nqr(he?null:ne),ue=Kct(le?$u(le):null),ve=rqr(x?J??q:null),de=aqr(ve),xe=vqr(g,{transform:{x:O.x-ye.x,y:O.y-ye.y,scaleX:1,scaleY:1},activatorEvent:I,active:F,activeNodeRect:ne,containerNodeRect:Z,draggingNodeRect:ge,over:ee.current.over,overlayNodeRect:oe.rect,scrollableAncestors:ve,scrollableAncestorRects:de,windowRect:ue}),Ee=X?sw(X,O):null,De=iqr(ve),Be=GAe(De),Ge=GAe(De,[ne]),Ue=sw(xe,Be),We=ge?$Ur(ge,xe):null,Ve=F&&We?f({active:F,collisionRect:We,droppableRects:W,droppableContainers:z,pointerCoordinates:Ee}):null,Fe=Nct(Ve,"id"),[ke,Ye]=d.useState(null),ze=he?xe:sw(xe,Ge),Re=EUr(ze,(o=ke==null?void 0:ke.rect)!=null?o:null,ne),Le=d.useRef(null),Me=d.useCallback((tt,pt)=>{let{sensor:$t,options:wt}=pt;if(D.current==null)return;const It=R.get(D.current);if(!It)return;const Ct=tt.nativeEvent,ot=new $t({active:D.current,activeNode:It,event:Ct,options:wt,context:ee,onAbort(fe){if(!R.get(fe))return;const{onDragAbort:$e}=N.current,He={id:fe};$e==null||$e(He),y({type:"onDragAbort",event:He})},onPending(fe,Te,$e,He){if(!R.get(fe))return;const{onDragPending:at}=N.current,gt={id:fe,constraint:Te,initialCoordinates:$e,offset:He};at==null||at(gt),y({type:"onDragPending",event:gt})},onStart(fe){const Te=D.current;if(Te==null)return;const $e=R.get(Te);if(!$e)return;const{onDragStart:He}=N.current,it={activatorEvent:Ct,active:{id:Te,data:$e.data,rect:_}};fo.unstable_batchedUpdates(()=>{He==null||He(it),w(T2.Initializing),C({type:Js.DragStart,initialCoordinates:fe,active:Te}),y({type:"onDragStart",event:it}),L(Le.current),A(Ct)})},onMove(fe){C({type:Js.DragMove,coordinates:fe})},onEnd:nt(Js.DragEnd),onCancel:nt(Js.DragCancel)});Le.current=ot;function nt(fe){return async function(){const{active:$e,collisions:He,over:it,scrollAdjustedTranslate:at}=ee.current;let gt=null;if($e&&at){const{cancelDrop:yt}=N.current;gt={activatorEvent:Ct,active:$e,collisions:He,delta:at,over:it},fe===Js.DragEnd&&typeof yt=="function"&&await Promise.resolve(yt(gt))&&(fe=Js.DragCancel)}D.current=null,fo.unstable_batchedUpdates(()=>{C({type:fe}),w(T2.Uninitialized),Ye(null),L(null),A(null),Le.current=null;const yt=fe===Js.DragEnd?"onDragEnd":"onDragCancel";if(gt){const st=N.current[yt];st==null||st(gt),y({type:yt,event:gt})}})}}},[R]),be=d.useCallback((tt,pt)=>($t,wt)=>{const It=$t.nativeEvent,Ct=R.get(wt);if(D.current!==null||!Ct||It.dndKit||It.defaultPrevented)return;const ot={active:Ct};tt($t,pt.options,ot)===!0&&(It.dndKit={capturedBy:pt.sensor},D.current=wt,Me($t,pt))},[R,Me]),je=QUr(u,be);oqr(u),Dm(()=>{ne&&S===T2.Initializing&&w(T2.Initialized)},[ne,S]),d.useEffect(()=>{const{onDragMove:tt}=N.current,{active:pt,activatorEvent:$t,collisions:wt,over:It}=ee.current;if(!pt||!$t)return;const Ct={active:pt,activatorEvent:$t,collisions:wt,delta:{x:Ue.x,y:Ue.y},over:It};fo.unstable_batchedUpdates(()=>{tt==null||tt(Ct),y({type:"onDragMove",event:Ct})})},[Ue.x,Ue.y]),d.useEffect(()=>{const{active:tt,activatorEvent:pt,collisions:$t,droppableContainers:wt,scrollAdjustedTranslate:It}=ee.current;if(!tt||D.current==null||!pt||!It)return;const{onDragOver:Ct}=N.current,ot=wt.get(Fe),nt=ot&&ot.rect.current?{id:ot.id,rect:ot.rect.current,data:ot.data,disabled:ot.disabled}:null,fe={active:tt,activatorEvent:pt,collisions:$t,delta:{x:It.x,y:It.y},over:nt};fo.unstable_batchedUpdates(()=>{Ye(nt),Ct==null||Ct(fe),y({type:"onDragOver",event:fe})})},[Fe]),Dm(()=>{ee.current={activatorEvent:I,active:F,activeNode:q,collisionRect:We,collisions:Ve,droppableRects:W,draggableNodes:R,draggingNode:le,draggingNodeRect:ge,droppableContainers:T,over:ke,scrollableAncestors:ve,scrollAdjustedTranslate:Ue},_.current={initial:ge,translated:We}},[F,q,Ve,We,R,le,ge,W,T,ke,ve,Ue]),qUr({...Q,delta:O,draggingRect:We,pointerCoordinates:Ee,scrollableAncestors:ve,scrollableAncestorRects:de});const Xe=d.useMemo(()=>({active:F,activeNode:q,activeNodeRect:ne,activatorEvent:I,collisions:Ve,containerNodeRect:Z,dragOverlay:oe,draggableNodes:R,droppableContainers:T,droppableRects:W,over:ke,measureDroppableContainers:G,scrollableAncestors:ve,scrollableAncestorRects:de,measuringConfiguration:j,measuringScheduled:K,windowRect:ue}),[F,q,ne,I,Ve,Z,oe,R,T,W,ke,G,ve,de,j,K,ue]),ft=d.useMemo(()=>({activatorEvent:I,activators:je,active:F,activeNodeRect:ne,ariaDescribedById:{draggable:B},dispatch:C,draggableNodes:R,over:ke,measureDroppableContainers:G}),[I,je,F,ne,C,B,R,ke,G]);return ce.createElement(Act.Provider,{value:b},ce.createElement(yQ.Provider,{value:ft},ce.createElement(Yct.Provider,{value:Xe},ce.createElement(Xct.Provider,{value:Re},c)),ce.createElement(mqr,{disabled:(a==null?void 0:a.restoreFocus)===!1})),ce.createElement(yUr,{...a,hiddenTextDescribedById:B}));function Tt(){const tt=(k==null?void 0:k.autoScrollEnabled)===!1,pt=typeof l=="object"?l.enabled===!1:l===!1,$t=x&&!tt&&!pt;return typeof l=="object"?{...l,enabled:$t}:{enabled:$t}}}),bqr=d.createContext(null),UAe="button",Sqr="Draggable";function wqr(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=O_(Sqr),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:f,over:h}=d.useContext(yQ),{role:g=UAe,roleDescription:p="draggable",tabIndex:m=0}=i??{},v=(l==null?void 0:l.id)===t,C=d.useContext(v?Xct:bqr),[y,b]=rH(),[S,w]=rH(),x=sqr(s,t),E=rI(n);Dm(()=>(f.set(t,{id:t,key:o,node:y,activatorNode:S,data:E}),()=>{const O=f.get(t);O&&O.key===o&&f.delete(t)}),[f,t]);const R=d.useMemo(()=>({role:g,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&g===UAe?!0:void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,g,m,v,p,u.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:R,isDragging:v,listeners:r?void 0:x,node:y,over:h,setNodeRef:b,setActivatorNodeRef:w,transform:C}}function xqr(){return d.useContext(Yct)}const Eqr="Droppable",Rqr={timeout:25};function $qr(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=O_(Eqr),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=d.useContext(yQ),u=d.useRef({disabled:n}),f=d.useRef(!1),h=d.useRef(null),g=d.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={...Rqr,...i},C=rI(m??r),y=d.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(C.current)?C.current:[C.current]),g.current=null},v)},[v]),b=CQ({callback:y,disabled:p||!s}),S=d.useCallback((R,O)=>{b&&(O&&(b.unobserve(O),f.current=!1),R&&b.observe(R))},[b]),[w,x]=rH(S),E=rI(t);return d.useEffect(()=>{!b||!w.current||(b.disconnect(),f.current=!1,b.observe(w.current))},[w,b]),d.useEffect(()=>(a({type:Js.RegisterDroppable,element:{id:r,key:o,disabled:n,node:w,rect:h,data:E}}),()=>a({type:Js.UnregisterDroppable,key:o,id:r})),[r]),d.useEffect(()=>{n!==u.current.disabled&&(a({type:Js.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,a]),{active:s,rect:h,isOver:(l==null?void 0:l.id)===r,node:w,over:l,setNodeRef:x}}function bQ(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Oqr(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function iF(e){return e!==null&&e>=0}function Tqr(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Iqr(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Zct=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=bQ(t,r,n),s=t[i],a=o[i];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},oF={scaleX:1,scaleY:1},Jct=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e;const a=(t=o[n])!=null?t:r;if(!a)return null;if(i===n){const c=o[s];return c?{x:0,y:n<s?c.top+c.height-(a.top+a.height):c.top-a.top,...oF}:null}const l=Mqr(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...oF}:i<n&&i>=s?{x:0,y:a.height+l,...oF}:{x:0,y:0,...oF}};function Mqr(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const eut="Sortable",tut=ce.createContext({activeIndex:-1,containerId:eut,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Zct,disabled:{draggable:!1,droppable:!1}});function nut(e){let{children:t,id:n,items:r,strategy:i=Zct,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=xqr(),f=O_(eut,n),h=a.rect!==null,g=d.useMemo(()=>r.map(x=>typeof x=="object"&&"id"in x?x.id:x),[r]),p=s!=null,m=s?g.indexOf(s.id):-1,v=c?g.indexOf(c.id):-1,C=d.useRef(g),y=!Tqr(g,C.current),b=v!==-1&&m===-1||y,S=Iqr(o);Dm(()=>{y&&p&&u(g)},[y,g,p,u]),d.useEffect(()=>{C.current=g},[g]);const w=d.useMemo(()=>({activeIndex:m,containerId:f,disabled:S,disableTransforms:b,items:g,overIndex:v,useDragOverlay:h,sortedRects:Oqr(g,l),strategy:i}),[m,f,S.draggable,S.droppable,b,g,v,l,h,i]);return ce.createElement(tut.Provider,{value:w},t)}const Pqr=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return bQ(n,r,i).indexOf(t)},_qr=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!r||a!==o&&i===s?!1:n?!0:s!==i&&t===l},Aqr={duration:200,easing:"ease"},rut="transform",Dqr=px.Transition.toString({property:rut,duration:0,easing:"linear"}),Lqr={roleDescription:"sortable"};function Fqr(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=d.useState(null),a=d.useRef(n);return Dm(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const c=lE(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&s(u)}}n!==a.current&&(a.current=n)},[t,n,r,i]),d.useEffect(()=>{o&&s(null)},[o]),o}function iut(e){let{animateLayoutChanges:t=_qr,attributes:n,disabled:r,data:i,getNewIndex:o=Pqr,id:s,strategy:a,resizeObserverConfig:l,transition:c=Aqr}=e;const{items:u,containerId:f,activeIndex:h,disabled:g,disableTransforms:p,sortedRects:m,overIndex:v,useDragOverlay:C,strategy:y}=d.useContext(tut),b=Nqr(r,g),S=u.indexOf(s),w=d.useMemo(()=>({sortable:{containerId:f,index:S,items:u},...i}),[f,i,S,u]),x=d.useMemo(()=>u.slice(u.indexOf(s)),[u,s]),{rect:E,node:R,isOver:O,setNodeRef:T}=$qr({id:s,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...l}}),{active:M,activatorEvent:_,activeNodeRect:F,attributes:D,setNodeRef:k,listeners:L,isDragging:I,over:A,setActivatorNodeRef:N,transform:B}=wqr({id:s,data:w,attributes:{...Lqr,...n},disabled:b.draggable}),z=sUr(T,k),j=!!M,W=j&&!p&&iF(h)&&iF(v),G=!C&&I,K=G&&W?B:null,X=W?K??(a??y)({rects:m,activeNodeRect:F,activeIndex:h,overIndex:v,index:S}):null,Q=iF(h)&&iF(v)?o({id:s,items:u,activeIndex:h,overIndex:v}):S,te=M==null?void 0:M.id,ne=d.useRef({activeId:te,items:u,newIndex:Q,containerId:f}),Z=u!==ne.current.items,ee=t({active:M,containerId:f,isDragging:I,isSorting:j,id:s,index:S,items:u,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:c,wasDragging:ne.current.activeId!=null}),J=Fqr({disabled:!ee,index:S,node:R,rect:E});return d.useEffect(()=>{j&&ne.current.newIndex!==Q&&(ne.current.newIndex=Q),f!==ne.current.containerId&&(ne.current.containerId=f),u!==ne.current.items&&(ne.current.items=u)},[j,Q,f,u]),d.useEffect(()=>{if(te===ne.current.activeId)return;if(te!=null&&ne.current.activeId==null){ne.current.activeId=te;return}const le=setTimeout(()=>{ne.current.activeId=te},50);return()=>clearTimeout(le)},[te]),{active:M,activeIndex:h,attributes:D,data:w,rect:E,index:S,newIndex:Q,items:u,isOver:O,isSorting:j,isDragging:I,listeners:L,node:R,overIndex:v,over:A,setNodeRef:z,setActivatorNodeRef:N,setDroppableNodeRef:T,setDraggableNodeRef:k,transform:J??X,transition:oe()};function oe(){if(J||Z&&ne.current.newIndex===S)return Dqr;if(!(G&&!U4e(_)||!c)&&(j||ee))return px.Transition.toString({...c,property:rut})}}function Nqr(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}function aH(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const kqr=[xi.Down,xi.Right,xi.Up,xi.Left],out=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(kqr.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];o.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const h=i.get(f.id);if(h)switch(e.code){case xi.Down:r.top<h.top&&l.push(f);break;case xi.Up:r.top>h.top&&l.push(f);break;case xi.Left:r.left>h.left&&l.push(f);break;case xi.Right:r.left<h.left&&l.push(f);break}});const c=SUr({active:n,collisionRect:r,droppableRects:i,droppableContainers:l,pointerCoordinates:null});let u=Nct(c,"id");if(u===(s==null?void 0:s.id)&&c.length>1&&(u=c[1].id),u!=null){const f=o.get(n.id),h=o.get(u),g=h?i.get(h.id):null,p=h==null?void 0:h.node.current;if(p&&g&&f&&h){const v=pQ(p).some((x,E)=>a[E]!==x),C=sut(f,h),y=zqr(f,h),b=v||!C?{x:0,y:0}:{x:y?r.width-g.width:0,y:y?r.height-g.height:0},S={x:g.left,y:g.top};return b.x&&b.y?S:iI(S,b)}}}};function sut(e,t){return!aH(e)||!aH(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function zqr(e,t){return!aH(e)||!aH(t)||!sut(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const Bqr=()=>H.jsx(RGe,{type:"info",message:"创建您的课程大纲",description:H.jsxs(H.Fragment,{children:[H.jsx("p",{children:"通过组织清晰的章节和课时,帮助学员更好地学习。建议:"}),H.jsxs("ul",{className:"mt-2 list-disc list-inside",children:[H.jsx("li",{children:"将相关内容组织到章节中"}),H.jsx("li",{children:"每个章节建议包含 3-7 个课时"}),H.jsx("li",{children:"课时可以是视频、文章或测验"})]})]}),className:"mb-8"}),Hqr=()=>H.jsx("div",{className:"text-center py-12 bg-gray-50 rounded-lg border-2 border-dashed",children:H.jsxs("div",{className:"text-gray-500",children:[H.jsx(Zf,{className:"text-4xl mb-4"}),H.jsx("h3",{className:"text-lg font-medium mb-2",children:"开始创建您的课程内容"}),H.jsx("p",{className:"text-sm",children:"点击下方按钮添加第一个章节"})]})}),jqr=({field:e,remove:t,courseId:n,children:r})=>{const{attributes:i,listeners:o,setNodeRef:s,transform:a,transition:l,isDragging:c}=iut({id:e==null?void 0:e.id}),[u]=Rn.useForm(),[f,h]=d.useState(!e.id),[g,p]=d.useState(!1),{create:m,update:v}=My(),C=async()=>{if(!n){sl.error("课程未创建,请先填写课程基本信息完成创建");return}try{p(!0);const b=await u.validateFields();let S;try{e!=null&&e.id?S=await v.mutateAsync({where:{id:e==null?void 0:e.id},data:{title:b==null?void 0:b.title}}):S=await m.mutateAsync({data:{title:b==null?void 0:b.title,type:vo.SECTION,parentId:n}})}catch(w){console.log(w)}e.id=S.id,h(!1),li.success("保存成功")}catch(b){console.log(b),li.error("保存失败")}finally{p(!1)}},y={transform:px.Transform.toString(a),transition:l,backgroundColor:c?"#f5f5f5":void 0};return H.jsx("div",{ref:s,style:y,className:"mb-4",children:H.jsx(DSe,{children:H.jsx(DSe.Panel,{collapsible:e.id?void 0:"disabled",header:f?H.jsxs(Rn,{form:u,className:"flex items-center gap-4",children:[H.jsx(Rn.Item,{name:"title",className:"mb-0 flex-1",initialValue:e==null?void 0:e.title,children:H.jsx(Ai,{placeholder:"章节标题"})}),H.jsxs(C4,{children:[H.jsx(Cr,{onClick:C,loading:g,icon:H.jsx(UV,{}),type:"primary",children:"保存"}),H.jsx(Cr,{onClick:()=>{h(!1),e!=null&&e.id||t()},children:"取消"})]})]}):H.jsx("div",{className:"flex items-center justify-between",children:H.jsxs(C4,{className:" flex",children:[H.jsx(ume,{...i,...o,className:"cursor-move"}),H.jsx("span",{children:e.title||"未命名章节"})]})}),extra:!f&&H.jsxs(C4,{onClick:b=>b.stopPropagation(),children:[H.jsx(Cr,{size:"small",type:"link",onClick:()=>h(!0),children:"编辑"}),H.jsx(Cr,{size:"small",type:"link",danger:!0,onClick:t,children:"删除"})]}),children:r},e.id||"new")})})};var aut=typeof global=="object"&&global&&global.Object===Object&&global,Vqr=typeof self=="object"&&self&&self.Object===Object&&self,o1=aut||Vqr||Function("return this")(),l3=o1.Symbol,lut=Object.prototype,Gqr=lut.hasOwnProperty,Wqr=lut.toString,LR=l3?l3.toStringTag:void 0;function Uqr(e){var t=Gqr.call(e,LR),n=e[LR];try{e[LR]=void 0;var r=!0}catch{}var i=Wqr.call(e);return r&&(t?e[LR]=n:delete e[LR]),i}var qqr=Object.prototype,Kqr=qqr.toString;function Yqr(e){return Kqr.call(e)}var Xqr="[object Null]",Qqr="[object Undefined]",qAe=l3?l3.toStringTag:void 0;function cE(e){return e==null?e===void 0?Qqr:Xqr:qAe&&qAe in Object(e)?Uqr(e):Yqr(e)}function j0(e){return e!=null&&typeof e=="object"}var py=Array.isArray;function i6(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function cut(e){return e}var Zqr="[object AsyncFunction]",Jqr="[object Function]",eKr="[object GeneratorFunction]",tKr="[object Proxy]";function Y4e(e){if(!i6(e))return!1;var t=cE(e);return t==Jqr||t==eKr||t==Zqr||t==tKr}var Iie=o1["__core-js_shared__"],KAe=function(){var e=/[^.]+$/.exec(Iie&&Iie.keys&&Iie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function nKr(e){return!!KAe&&KAe in e}var rKr=Function.prototype,iKr=rKr.toString;function $b(e){if(e!=null){try{return iKr.call(e)}catch{}try{return e+""}catch{}}return""}var oKr=/[\\^$.*+?()[\]{}|]/g,sKr=/^\[object .+?Constructor\]$/,aKr=Function.prototype,lKr=Object.prototype,cKr=aKr.toString,uKr=lKr.hasOwnProperty,dKr=RegExp("^"+cKr.call(uKr).replace(oKr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fKr(e){if(!i6(e)||nKr(e))return!1;var t=Y4e(e)?dKr:sKr;return t.test($b(e))}function hKr(e,t){return e==null?void 0:e[t]}function Ob(e,t){var n=hKr(e,t);return fKr(n)?n:void 0}var wde=Ob(o1,"WeakMap"),YAe=Object.create,gKr=function(){function e(){}return function(t){if(!i6(t))return{};if(YAe)return YAe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function pKr(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function uut(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var mKr=800,vKr=16,CKr=Date.now;function yKr(e){var t=0,n=0;return function(){var r=CKr(),i=vKr-(r-n);if(n=r,i>0){if(++t>=mKr)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function bKr(e){return function(){return e}}var lH=function(){try{var e=Ob(Object,"defineProperty");return e({},"",{}),e}catch{}}(),SKr=lH?function(e,t){return lH(e,"toString",{configurable:!0,enumerable:!1,value:bKr(t),writable:!0})}:cut,wKr=yKr(SKr);function xKr(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var EKr=9007199254740991,RKr=/^(?:0|[1-9]\d*)$/;function dut(e,t){var n=typeof e;return t=t??EKr,!!t&&(n=="number"||n!="symbol"&&RKr.test(e))&&e>-1&&e%1==0&&e<t}function X4e(e,t,n){t=="__proto__"&&lH?lH(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function T_(e,t){return e===t||e!==e&&t!==t}var $Kr=Object.prototype,OKr=$Kr.hasOwnProperty;function fut(e,t,n){var r=e[t];(!(OKr.call(e,t)&&T_(r,n))||n===void 0&&!(t in e))&&X4e(e,t,n)}function I_(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=void 0;l===void 0&&(l=e[a]),i?X4e(n,a,l):fut(n,a,l)}return n}var XAe=Math.max;function TKr(e,t,n){return t=XAe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=XAe(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),pKr(e,this,a)}}function IKr(e,t){return wKr(TKr(e,t,cut),e+"")}var MKr=9007199254740991;function hut(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MKr}function SQ(e){return e!=null&&hut(e.length)&&!Y4e(e)}function PKr(e,t,n){if(!i6(n))return!1;var r=typeof t;return(r=="number"?SQ(n)&&dut(t,n.length):r=="string"&&t in n)?T_(n[t],e):!1}function _Kr(e){return IKr(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&PKr(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}var AKr=Object.prototype;function Q4e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||AKr;return e===n}function DKr(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var LKr="[object Arguments]";function QAe(e){return j0(e)&&cE(e)==LKr}var gut=Object.prototype,FKr=gut.hasOwnProperty,NKr=gut.propertyIsEnumerable,xde=QAe(function(){return arguments}())?QAe:function(e){return j0(e)&&FKr.call(e,"callee")&&!NKr.call(e,"callee")};function kKr(){return!1}var put=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ZAe=put&&typeof module=="object"&&module&&!module.nodeType&&module,zKr=ZAe&&ZAe.exports===put,JAe=zKr?o1.Buffer:void 0,BKr=JAe?JAe.isBuffer:void 0,sI=BKr||kKr,HKr="[object Arguments]",jKr="[object Array]",VKr="[object Boolean]",GKr="[object Date]",WKr="[object Error]",UKr="[object Function]",qKr="[object Map]",KKr="[object Number]",YKr="[object Object]",XKr="[object RegExp]",QKr="[object Set]",ZKr="[object String]",JKr="[object WeakMap]",eYr="[object ArrayBuffer]",tYr="[object DataView]",nYr="[object Float32Array]",rYr="[object Float64Array]",iYr="[object Int8Array]",oYr="[object Int16Array]",sYr="[object Int32Array]",aYr="[object Uint8Array]",lYr="[object Uint8ClampedArray]",cYr="[object Uint16Array]",uYr="[object Uint32Array]",Po={};Po[nYr]=Po[rYr]=Po[iYr]=Po[oYr]=Po[sYr]=Po[aYr]=Po[lYr]=Po[cYr]=Po[uYr]=!0;Po[HKr]=Po[jKr]=Po[eYr]=Po[VKr]=Po[tYr]=Po[GKr]=Po[WKr]=Po[UKr]=Po[qKr]=Po[KKr]=Po[YKr]=Po[XKr]=Po[QKr]=Po[ZKr]=Po[JKr]=!1;function dYr(e){return j0(e)&&hut(e.length)&&!!Po[cE(e)]}function Z4e(e){return function(t){return e(t)}}var mut=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pO=mut&&typeof module=="object"&&module&&!module.nodeType&&module,fYr=pO&&pO.exports===mut,Mie=fYr&&aut.process,mx=function(){try{var e=pO&&pO.require&&pO.require("util").types;return e||Mie&&Mie.binding&&Mie.binding("util")}catch{}}(),eDe=mx&&mx.isTypedArray,J4e=eDe?Z4e(eDe):dYr,hYr=Object.prototype,gYr=hYr.hasOwnProperty;function vut(e,t){var n=py(e),r=!n&&xde(e),i=!n&&!r&&sI(e),o=!n&&!r&&!i&&J4e(e),s=n||r||i||o,a=s?DKr(e.length,String):[],l=a.length;for(var c in e)(t||gYr.call(e,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||dut(c,l)))&&a.push(c);return a}function Cut(e,t){return function(n){return e(t(n))}}var pYr=Cut(Object.keys,Object),mYr=Object.prototype,vYr=mYr.hasOwnProperty;function CYr(e){if(!Q4e(e))return pYr(e);var t=[];for(var n in Object(e))vYr.call(e,n)&&n!="constructor"&&t.push(n);return t}function e3e(e){return SQ(e)?vut(e):CYr(e)}function yYr(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var bYr=Object.prototype,SYr=bYr.hasOwnProperty;function wYr(e){if(!i6(e))return yYr(e);var t=Q4e(e),n=[];for(var r in e)r=="constructor"&&(t||!SYr.call(e,r))||n.push(r);return n}function M_(e){return SQ(e)?vut(e,!0):wYr(e)}var aI=Ob(Object,"create");function xYr(){this.__data__=aI?aI(null):{},this.size=0}function EYr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var RYr="__lodash_hash_undefined__",$Yr=Object.prototype,OYr=$Yr.hasOwnProperty;function TYr(e){var t=this.__data__;if(aI){var n=t[e];return n===RYr?void 0:n}return OYr.call(t,e)?t[e]:void 0}var IYr=Object.prototype,MYr=IYr.hasOwnProperty;function PYr(e){var t=this.__data__;return aI?t[e]!==void 0:MYr.call(t,e)}var _Yr="__lodash_hash_undefined__";function AYr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=aI&&t===void 0?_Yr:t,this}function my(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}my.prototype.clear=xYr;my.prototype.delete=EYr;my.prototype.get=TYr;my.prototype.has=PYr;my.prototype.set=AYr;function DYr(){this.__data__=[],this.size=0}function wQ(e,t){for(var n=e.length;n--;)if(T_(e[n][0],t))return n;return-1}var LYr=Array.prototype,FYr=LYr.splice;function NYr(e){var t=this.__data__,n=wQ(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():FYr.call(t,n,1),--this.size,!0}function kYr(e){var t=this.__data__,n=wQ(t,e);return n<0?void 0:t[n][1]}function zYr(e){return wQ(this.__data__,e)>-1}function BYr(e,t){var n=this.__data__,r=wQ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function wv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wv.prototype.clear=DYr;wv.prototype.delete=NYr;wv.prototype.get=kYr;wv.prototype.has=zYr;wv.prototype.set=BYr;var lI=Ob(o1,"Map");function HYr(){this.size=0,this.__data__={hash:new my,map:new(lI||wv),string:new my}}function jYr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xQ(e,t){var n=e.__data__;return jYr(t)?n[typeof t=="string"?"string":"hash"]:n.map}function VYr(e){var t=xQ(this,e).delete(e);return this.size-=t?1:0,t}function GYr(e){return xQ(this,e).get(e)}function WYr(e){return xQ(this,e).has(e)}function UYr(e,t){var n=xQ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Tb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tb.prototype.clear=HYr;Tb.prototype.delete=VYr;Tb.prototype.get=GYr;Tb.prototype.has=WYr;Tb.prototype.set=UYr;function yut(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var t3e=Cut(Object.getPrototypeOf,Object),qYr="[object Object]",KYr=Function.prototype,YYr=Object.prototype,but=KYr.toString,XYr=YYr.hasOwnProperty,QYr=but.call(Object);function ZYr(e){if(!j0(e)||cE(e)!=qYr)return!1;var t=t3e(e);if(t===null)return!0;var n=XYr.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&but.call(n)==QYr}function JYr(){this.__data__=new wv,this.size=0}function eXr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function tXr(e){return this.__data__.get(e)}function nXr(e){return this.__data__.has(e)}var rXr=200;function iXr(e,t){var n=this.__data__;if(n instanceof wv){var r=n.__data__;if(!lI||r.length<rXr-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Tb(r)}return n.set(e,t),this.size=n.size,this}function pm(e){var t=this.__data__=new wv(e);this.size=t.size}pm.prototype.clear=JYr;pm.prototype.delete=eXr;pm.prototype.get=tXr;pm.prototype.has=nXr;pm.prototype.set=iXr;function oXr(e,t){return e&&I_(t,e3e(t),e)}function sXr(e,t){return e&&I_(t,M_(t),e)}var Sut=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tDe=Sut&&typeof module=="object"&&module&&!module.nodeType&&module,aXr=tDe&&tDe.exports===Sut,nDe=aXr?o1.Buffer:void 0,rDe=nDe?nDe.allocUnsafe:void 0;function wut(e,t){if(t)return e.slice();var n=e.length,r=rDe?rDe(n):new e.constructor(n);return e.copy(r),r}function lXr(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function xut(){return[]}var cXr=Object.prototype,uXr=cXr.propertyIsEnumerable,iDe=Object.getOwnPropertySymbols,n3e=iDe?function(e){return e==null?[]:(e=Object(e),lXr(iDe(e),function(t){return uXr.call(e,t)}))}:xut;function dXr(e,t){return I_(e,n3e(e),t)}var fXr=Object.getOwnPropertySymbols,Eut=fXr?function(e){for(var t=[];e;)yut(t,n3e(e)),e=t3e(e);return t}:xut;function hXr(e,t){return I_(e,Eut(e),t)}function Rut(e,t,n){var r=t(e);return py(e)?r:yut(r,n(e))}function Ede(e){return Rut(e,e3e,n3e)}function gXr(e){return Rut(e,M_,Eut)}var Rde=Ob(o1,"DataView"),$de=Ob(o1,"Promise"),Ode=Ob(o1,"Set"),oDe="[object Map]",pXr="[object Object]",sDe="[object Promise]",aDe="[object Set]",lDe="[object WeakMap]",cDe="[object DataView]",mXr=$b(Rde),vXr=$b(lI),CXr=$b($de),yXr=$b(Ode),bXr=$b(wde),ng=cE;(Rde&&ng(new Rde(new ArrayBuffer(1)))!=cDe||lI&&ng(new lI)!=oDe||$de&&ng($de.resolve())!=sDe||Ode&&ng(new Ode)!=aDe||wde&&ng(new wde)!=lDe)&&(ng=function(e){var t=cE(e),n=t==pXr?e.constructor:void 0,r=n?$b(n):"";if(r)switch(r){case mXr:return cDe;case vXr:return oDe;case CXr:return sDe;case yXr:return aDe;case bXr:return lDe}return t});var SXr=Object.prototype,wXr=SXr.hasOwnProperty;function xXr(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&wXr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var cH=o1.Uint8Array;function r3e(e){var t=new e.constructor(e.byteLength);return new cH(t).set(new cH(e)),t}function EXr(e,t){var n=t?r3e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var RXr=/\w*$/;function $Xr(e){var t=new e.constructor(e.source,RXr.exec(e));return t.lastIndex=e.lastIndex,t}var uDe=l3?l3.prototype:void 0,dDe=uDe?uDe.valueOf:void 0;function OXr(e){return dDe?Object(dDe.call(e)):{}}function $ut(e,t){var n=t?r3e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var TXr="[object Boolean]",IXr="[object Date]",MXr="[object Map]",PXr="[object Number]",_Xr="[object RegExp]",AXr="[object Set]",DXr="[object String]",LXr="[object Symbol]",FXr="[object ArrayBuffer]",NXr="[object DataView]",kXr="[object Float32Array]",zXr="[object Float64Array]",BXr="[object Int8Array]",HXr="[object Int16Array]",jXr="[object Int32Array]",VXr="[object Uint8Array]",GXr="[object Uint8ClampedArray]",WXr="[object Uint16Array]",UXr="[object Uint32Array]";function qXr(e,t,n){var r=e.constructor;switch(t){case FXr:return r3e(e);case TXr:case IXr:return new r(+e);case NXr:return EXr(e,n);case kXr:case zXr:case BXr:case HXr:case jXr:case VXr:case GXr:case WXr:case UXr:return $ut(e,n);case MXr:return new r;case PXr:case DXr:return new r(e);case _Xr:return $Xr(e);case AXr:return new r;case LXr:return OXr(e)}}function Out(e){return typeof e.constructor=="function"&&!Q4e(e)?gKr(t3e(e)):{}}var KXr="[object Map]";function YXr(e){return j0(e)&&ng(e)==KXr}var fDe=mx&&mx.isMap,XXr=fDe?Z4e(fDe):YXr,QXr="[object Set]";function ZXr(e){return j0(e)&&ng(e)==QXr}var hDe=mx&&mx.isSet,JXr=hDe?Z4e(hDe):ZXr,eQr=1,tQr=2,nQr=4,Tut="[object Arguments]",rQr="[object Array]",iQr="[object Boolean]",oQr="[object Date]",sQr="[object Error]",Iut="[object Function]",aQr="[object GeneratorFunction]",lQr="[object Map]",cQr="[object Number]",Mut="[object Object]",uQr="[object RegExp]",dQr="[object Set]",fQr="[object String]",hQr="[object Symbol]",gQr="[object WeakMap]",pQr="[object ArrayBuffer]",mQr="[object DataView]",vQr="[object Float32Array]",CQr="[object Float64Array]",yQr="[object Int8Array]",bQr="[object Int16Array]",SQr="[object Int32Array]",wQr="[object Uint8Array]",xQr="[object Uint8ClampedArray]",EQr="[object Uint16Array]",RQr="[object Uint32Array]",So={};So[Tut]=So[rQr]=So[pQr]=So[mQr]=So[iQr]=So[oQr]=So[vQr]=So[CQr]=So[yQr]=So[bQr]=So[SQr]=So[lQr]=So[cQr]=So[Mut]=So[uQr]=So[dQr]=So[fQr]=So[hQr]=So[wQr]=So[xQr]=So[EQr]=So[RQr]=!0;So[sQr]=So[Iut]=So[gQr]=!1;function ik(e,t,n,r,i,o){var s,a=t&eQr,l=t&tQr,c=t&nQr;if(s!==void 0)return s;if(!i6(e))return e;var u=py(e);if(u){if(s=xXr(e),!a)return uut(e,s)}else{var f=ng(e),h=f==Iut||f==aQr;if(sI(e))return wut(e,a);if(f==Mut||f==Tut||h&&!i){if(s=l||h?{}:Out(e),!a)return l?hXr(e,sXr(s,e)):dXr(e,oXr(s,e))}else{if(!So[f])return i?e:{};s=qXr(e,f,a)}}o||(o=new pm);var g=o.get(e);if(g)return g;o.set(e,s),JXr(e)?e.forEach(function(v){s.add(ik(v,t,n,v,e,o))}):XXr(e)&&e.forEach(function(v,C){s.set(C,ik(v,t,n,C,e,o))});var p=c?l?gXr:Ede:l?M_:e3e,m=u?void 0:p(e);return xKr(m||e,function(v,C){m&&(C=v,v=e[C]),fut(s,C,ik(v,t,n,C,e,o))}),s}var $Qr=1,OQr=4;function aw(e){return ik(e,$Qr|OQr)}var TQr="__lodash_hash_undefined__";function IQr(e){return this.__data__.set(e,TQr),this}function MQr(e){return this.__data__.has(e)}function uH(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Tb;++t<n;)this.add(e[t])}uH.prototype.add=uH.prototype.push=IQr;uH.prototype.has=MQr;function PQr(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _Qr(e,t){return e.has(t)}var AQr=1,DQr=2;function Put(e,t,n,r,i,o){var s=n&AQr,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,g=n&DQr?new uH:void 0;for(o.set(e,t),o.set(t,e);++f<a;){var p=e[f],m=t[f];if(r)var v=s?r(m,p,f,t,e,o):r(p,m,f,e,t,o);if(v!==void 0){if(v)continue;h=!1;break}if(g){if(!PQr(t,function(C,y){if(!_Qr(g,y)&&(p===C||i(p,C,n,r,o)))return g.push(y)})){h=!1;break}}else if(!(p===m||i(p,m,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function LQr(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function FQr(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var NQr=1,kQr=2,zQr="[object Boolean]",BQr="[object Date]",HQr="[object Error]",jQr="[object Map]",VQr="[object Number]",GQr="[object RegExp]",WQr="[object Set]",UQr="[object String]",qQr="[object Symbol]",KQr="[object ArrayBuffer]",YQr="[object DataView]",gDe=l3?l3.prototype:void 0,Pie=gDe?gDe.valueOf:void 0;function XQr(e,t,n,r,i,o,s){switch(n){case YQr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case KQr:return!(e.byteLength!=t.byteLength||!o(new cH(e),new cH(t)));case zQr:case BQr:case VQr:return T_(+e,+t);case HQr:return e.name==t.name&&e.message==t.message;case GQr:case UQr:return e==t+"";case jQr:var a=LQr;case WQr:var l=r&NQr;if(a||(a=FQr),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=kQr,s.set(e,t);var u=Put(a(e),a(t),r,i,o,s);return s.delete(e),u;case qQr:if(Pie)return Pie.call(e)==Pie.call(t)}return!1}var QQr=1,ZQr=Object.prototype,JQr=ZQr.hasOwnProperty;function eZr(e,t,n,r,i,o){var s=n&QQr,a=Ede(e),l=a.length,c=Ede(t),u=c.length;if(l!=u&&!s)return!1;for(var f=l;f--;){var h=a[f];if(!(s?h in t:JQr.call(t,h)))return!1}var g=o.get(e),p=o.get(t);if(g&&p)return g==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var v=s;++f<l;){h=a[f];var C=e[h],y=t[h];if(r)var b=s?r(y,C,h,t,e,o):r(C,y,h,e,t,o);if(!(b===void 0?C===y||i(C,y,n,r,o):b)){m=!1;break}v||(v=h=="constructor")}if(m&&!v){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(m=!1)}return o.delete(e),o.delete(t),m}var tZr=1,pDe="[object Arguments]",mDe="[object Array]",sF="[object Object]",nZr=Object.prototype,vDe=nZr.hasOwnProperty;function rZr(e,t,n,r,i,o){var s=py(e),a=py(t),l=s?mDe:ng(e),c=a?mDe:ng(t);l=l==pDe?sF:l,c=c==pDe?sF:c;var u=l==sF,f=c==sF,h=l==c;if(h&&sI(e)){if(!sI(t))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new pm),s||J4e(e)?Put(e,t,n,r,i,o):XQr(e,t,l,n,r,i,o);if(!(n&tZr)){var g=u&&vDe.call(e,"__wrapped__"),p=f&&vDe.call(t,"__wrapped__");if(g||p){var m=g?e.value():e,v=p?t.value():t;return o||(o=new pm),i(m,v,n,r,o)}}return h?(o||(o=new pm),eZr(e,t,n,r,i,o)):!1}function _ut(e,t,n,r,i){return e===t?!0:e==null||t==null||!j0(e)&&!j0(t)?e!==e&&t!==t:rZr(e,t,n,r,_ut,i)}function iZr(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[++i];if(n(o[l],l,o)===!1)break}return t}}var oZr=iZr();function Tde(e,t,n){(n!==void 0&&!T_(e[t],n)||n===void 0&&!(t in e))&&X4e(e,t,n)}function sZr(e){return j0(e)&&SQ(e)}function Ide(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function aZr(e){return I_(e,M_(e))}function lZr(e,t,n,r,i,o,s){var a=Ide(e,n),l=Ide(t,n),c=s.get(l);if(c){Tde(e,n,c);return}var u=o?o(a,l,n+"",e,t,s):void 0,f=u===void 0;if(f){var h=py(l),g=!h&&sI(l),p=!h&&!g&&J4e(l);u=l,h||g||p?py(a)?u=a:sZr(a)?u=uut(a):g?(f=!1,u=wut(l,!0)):p?(f=!1,u=$ut(l,!0)):u=[]:ZYr(l)||xde(l)?(u=a,xde(a)?u=aZr(a):(!i6(a)||Y4e(a))&&(u=Out(l))):f=!1}f&&(s.set(l,u),i(u,l,r,o,s),s.delete(l)),Tde(e,n,u)}function Aut(e,t,n,r,i){e!==t&&oZr(t,function(o,s){if(i||(i=new pm),i6(o))lZr(e,t,s,n,Aut,r,i);else{var a=r?r(Ide(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),Tde(e,s,a)}},M_)}function i3e(e,t){return _ut(e,t)}var I4=_Kr(function(e,t,n){Aut(e,t,n)}),Xn=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(Xn||{});class Lm{constructor(t,n,r={}){this.attrName=t,this.keyName=n;const i=Xn.TYPE&Xn.ATTRIBUTE;this.scope=r.scope!=null?r.scope&Xn.LEVEL|i:Xn.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(t){return Array.from(t.attributes).map(n=>n.name)}add(t,n){return this.canAdd(t,n)?(t.setAttribute(this.keyName,n),!0):!1}canAdd(t,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const n=t.getAttribute(this.keyName);return this.canAdd(t,n)&&n?n:""}}class lw extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const Dut=class Mde{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,n=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(n){let r=null;try{r=t.parentNode}catch{return null}return this.find(r,n)}return null}create(t,n,r){const i=this.query(n);if(i==null)throw new lw(`Unable to create ${n} blot`);const o=i,s=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:o.create(r),a=new o(t,s,r);return Mde.blots.set(a.domNode,a),a}find(t,n=!1){return Mde.find(t,n)}query(t,n=Xn.ANY){let r;return typeof t=="string"?r=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?r=this.types.text:typeof t=="number"?t&Xn.LEVEL&Xn.BLOCK?r=this.types.block:t&Xn.LEVEL&Xn.INLINE&&(r=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[t.tagName]),r==null?null:"scope"in r&&n&Xn.LEVEL&r.scope&&n&Xn.TYPE&r.scope?r:null}register(...t){return t.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new lw("Invalid definition");if(r&&n.blotName==="abstract")throw new lw("Cannot register abstract class");const o=r?n.blotName:i?n.attrName:void 0;return this.types[o]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(s=>s.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(s=>{(this.tags[s]==null||n.className==null)&&(this.tags[s]=n)}))),n})}};Dut.blots=new WeakMap;let vx=Dut;function CDe(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${t}-`)===0)}class cZr extends Lm{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(t,n){return this.canAdd(t,n)?(this.remove(t),t.classList.add(`${this.keyName}-${n}`),!0):!1}remove(t){CDe(t,this.keyName).forEach(n=>{t.classList.remove(n)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const n=(CDe(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,n)?n:""}}const ap=cZr;function _ie(e){const t=e.split("-"),n=t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return t[0]+n}class uZr extends Lm{static keys(t){return(t.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(t,n){return this.canAdd(t,n)?(t.style[_ie(this.keyName)]=n,!0):!1}remove(t){t.style[_ie(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const n=t.style[_ie(this.keyName)];return this.canAdd(t,n)?n:""}}const o6=uZr;class dZr{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,n){n?t.add(this.domNode,n)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=vx.find(this.domNode);if(t==null)return;const n=Lm.keys(this.domNode),r=ap.keys(this.domNode),i=o6.keys(this.domNode);n.concat(r).concat(i).forEach(o=>{const s=t.scroll.query(o,Xn.ATTRIBUTE);s instanceof Lm&&(this.attributes[s.attrName]=s)})}copy(t){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);t.format(n,r)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,n)=>(t[n]=this.attributes[n].value(this.domNode),t),{})}}const EQ=dZr,Lut=class{constructor(t,n){this.scroll=t,this.domNode=n,vx.blots.set(n,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new lw("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof t=="string"?(r=t.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof t=="number"&&(r=t),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),vx.blots.delete(this.domNode)}deleteAt(t,n){this.isolate(t,n).remove()}formatAt(t,n,r,i){const o=this.isolate(t,n);if(this.scroll.query(r,Xn.BLOT)!=null&&i)o.wrap(r,i);else if(this.scroll.query(r,Xn.ATTRIBUTE)!=null){const s=this.scroll.create(this.statics.scope);o.wrap(s),s.format(r,i)}}insertAt(t,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),o=this.split(t);this.parent.insertBefore(i,o||void 0)}isolate(t,n){const r=this.split(t);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(t,n){return t===0?this:this.next}update(t,n){}wrap(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new lw(`Cannot wrap ${t}`);return r.appendChild(this),r}};Lut.blotName="abstract";let Fut=Lut;const Nut=class extends Fut{static value(t){return!0}index(t,n){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(t,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Nut.scope=Xn.INLINE_BLOT;let fZr=Nut;const Nl=fZr;class hZr{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const n=t.slice(1);this.append(...n)}}at(t){const n=this.iterator();let r=n();for(;r&&t>0;)t-=1,r=n();return r}contains(t){const n=this.iterator();let r=n();for(;r;){if(r===t)return!0;r=n()}return!1}indexOf(t){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===t)return i;i+=1,r=n()}return-1}insertBefore(t,n){t!=null&&(this.remove(t),t.next=n,n!=null?(t.prev=n.prev,n.prev!=null&&(n.prev.next=t),n.prev=t,n===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let n=0,r=this.head;for(;r!=null;){if(r===t)return n;n+=r.length(),r=r.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const n=t;return t!=null&&(t=t.next),n}}find(t,n=!1){const r=this.iterator();let i=r();for(;i;){const o=i.length();if(t<o||n&&t===o&&(i.next==null||i.next.length()!==0))return[i,t];t-=o,i=r()}return[null,0]}forEach(t){const n=this.iterator();let r=n();for(;r;)t(r),r=n()}forEachAt(t,n,r){if(n<=0)return;const[i,o]=this.find(t);let s=t-o;const a=this.iterator(i);let l=a();for(;l&&s<t+n;){const c=l.length();t>s?r(l,t-s,Math.min(n,s+c-t)):r(l,0,Math.min(c,t+n-s)),s+=c,l=a()}}map(t){return this.reduce((n,r)=>(n.push(t(r)),n),[])}reduce(t,n){const r=this.iterator();let i=r();for(;i;)n=t(n,i),i=r();return n}}function yDe(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const r=t.create(Xn.INLINE);return Array.from(e.childNodes).forEach(i=>{r.domNode.appendChild(i)}),e.parentNode&&e.parentNode.replaceChild(r.domNode,e),r.attach(),r}}const kut=class b2 extends Fut{constructor(t,n){super(t,n),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,b2.uiClass&&this.uiNode.classList.add(b2.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new hZr,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const n=yDe(t,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof lw)return;throw n}})}deleteAt(t,n){if(t===0&&n===this.length())return this.remove();this.children.forEachAt(t,n,(r,i,o)=>{r.deleteAt(i,o)})}descendant(t,n=0){const[r,i]=this.children.find(n);return t.blotName==null&&t(r)||t.blotName!=null&&r instanceof t?[r,i]:r instanceof b2?r.descendant(t,i):[null,-1]}descendants(t,n=0,r=Number.MAX_VALUE){let i=[],o=r;return this.children.forEachAt(n,r,(s,a,l)=>{(t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t)&&i.push(s),s instanceof b2&&(i=i.concat(s.descendants(t,a,o))),o-=l}),i}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===Xn.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof b2?n.unwrap():n.remove())})}formatAt(t,n,r,i){this.children.forEachAt(t,n,(o,s,a)=>{o.formatAt(s,a,r,i)})}insertAt(t,n,r){const[i,o]=this.children.find(t);if(i)i.insertAt(o,n,r);else{const s=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(s)}}insertBefore(t,n){t.parent!=null&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,n||null),t.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce((t,n)=>t+n.length(),0)}moveChildren(t,n){this.children.forEach(r=>{t.insertBefore(r,n)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(t,n=!1){const[r,i]=this.children.find(t,n),o=[[this,t]];return r instanceof b2?o.concat(r.path(i,n)):(r!=null&&o.push([r,i]),o)}removeChild(t){this.children.remove(t)}replaceWith(t,n){const r=typeof t=="string"?this.scroll.create(t,n):t;return r instanceof b2&&this.moveChildren(r),super.replaceWith(r)}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(i,o,s)=>{const a=i.split(o,n);a!=null&&r.appendChild(a)}),r}splitAfter(t){const n=this.clone();for(;t.next!=null;)n.appendChild(t.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,n){const r=[],i=[];t.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(r.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(o);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,s)=>o===s?0:o.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let s=null;o.nextSibling!=null&&(s=this.scroll.find(o.nextSibling));const a=yDe(o,this.scroll);(a.next!==s||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,s||void 0))}),this.enforceAllowedChildren()}};kut.uiClass="";let gZr=kut;const Tg=gZr;function pZr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}const tS=class nS extends Tg{static create(t){return super.create(t)}static formats(t,n){const r=n.query(nS.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new EQ(this.domNode)}format(t,n){if(t===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof nS||(r=r.wrap(nS.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(t,Xn.INLINE);if(r==null)return;r instanceof Lm?this.attributes.attribute(r,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.formats()[r]!=null||this.scroll.query(r,Xn.ATTRIBUTE)?this.isolate(t,n).format(r,i):super.formatAt(t,n,r,i)}optimize(t){super.optimize(t);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof nS&&r.prev===this&&pZr(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(t,n){const r=super.wrap(t,n);return r instanceof nS&&this.attributes.move(r),r}};tS.allowedChildren=[tS,Nl],tS.blotName="inline",tS.scope=Xn.INLINE_BLOT,tS.tagName="SPAN";let mZr=tS;const o3e=mZr,rS=class Pde extends Tg{static create(t){return super.create(t)}static formats(t,n){const r=n.query(Pde.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new EQ(this.domNode)}format(t,n){const r=this.scroll.query(t,Xn.BLOCK);r!=null&&(r instanceof Lm?this.attributes.attribute(r,n):t===this.statics.blotName&&!n?this.replaceWith(Pde.blotName):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n))}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,r,i){this.scroll.query(r,Xn.BLOCK)!=null?this.format(r,i):super.formatAt(t,n,r,i)}insertAt(t,n,r){if(r==null||this.scroll.query(n,Xn.INLINE)!=null)super.insertAt(t,n,r);else{const i=this.split(t);if(i!=null){const o=this.scroll.create(n,r);i.parent.insertBefore(o,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,n){const r=super.replaceWith(t,n);return this.attributes.copy(r),r}update(t,n){super.update(t,n),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};rS.blotName="block",rS.scope=Xn.BLOCK_BLOT,rS.tagName="P",rS.allowedChildren=[o3e,rS,Nl];let vZr=rS;const cI=vZr,_de=class extends Tg{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,n){super.deleteAt(t,n),this.enforceAllowedChildren()}formatAt(t,n,r,i){super.formatAt(t,n,r,i),this.enforceAllowedChildren()}insertAt(t,n,r){super.insertAt(t,n,r),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};_de.blotName="container",_de.scope=Xn.BLOCK_BLOT;let CZr=_de;const RQ=CZr;class yZr extends Nl{static formats(t,n){}format(t,n){super.formatAt(0,this.length(),t,n)}formatAt(t,n,r,i){t===0&&n===this.length()?this.format(r,i):super.formatAt(t,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Ad=yZr,bZr={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},SZr=100,iS=class extends Tg{constructor(t,n){super(null,n),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,bZr),this.attach()}create(t,n){return this.registry.create(this,t,n)}find(t,n=!1){const r=this.registry.find(t,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(t,n=Xn.ANY){return this.registry.query(t,n)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,n){this.update(),t===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(t,n)}formatAt(t,n,r,i){this.update(),super.formatAt(t,n,r,i)}insertAt(t,n,r){this.update(),super.insertAt(t,n,r)}optimize(t=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const o=(l,c=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(r.has(l.domNode)||r.set(l.domNode,[]),c&&o(l.parent))},s=l=>{r.has(l.domNode)&&(l instanceof Tg&&l.children.forEach(s),r.delete(l.domNode),l.optimize(n))};let a=t;for(let l=0;a.length>0;l+=1){if(l>=SZr)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(c=>{const u=this.find(c.target,!0);u!=null&&(u.domNode===c.target&&(c.type==="childList"?(o(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(f=>{const h=this.find(f,!1);o(h,!1),h instanceof Tg&&h.children.forEach(g=>{o(g,!1)})})):c.type==="attributes"&&o(u.prev)),o(u))}),this.children.forEach(s),a=Array.from(this.observer.takeRecords()),i=a.slice();i.length>0;)t.push(i.pop())}}update(t,n={}){t=t||this.observer.takeRecords();const r=new WeakMap;t.map(i=>{const o=this.find(i.target,!0);return o==null?null:r.has(o.domNode)?(r.get(o.domNode).push(i),null):(r.set(o.domNode,[i]),o)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(t,n)}};iS.blotName="scroll",iS.defaultChild=cI,iS.allowedChildren=[cI,RQ],iS.scope=Xn.BLOCK_BLOT,iS.tagName="DIV";let wZr=iS;const s3e=wZr,Ade=class zut extends Nl{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,n){super(t,n),this.text=this.statics.value(this.domNode)}deleteAt(t,n){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+n)}index(t,n){return this.domNode===t?n:-1}insertAt(t,n,r){r==null?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,n,r)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof zut&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,n=!1){return[this.domNode,t]}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(t,n){t.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Ade.blotName="text",Ade.scope=Xn.INLINE_BLOT;let xZr=Ade;const dH=xZr,EZr=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Lm,AttributorStore:EQ,BlockBlot:cI,ClassAttributor:ap,ContainerBlot:RQ,EmbedBlot:Ad,InlineBlot:o3e,LeafBlot:Nl,ParentBlot:Tg,Registry:vx,Scope:Xn,ScrollBlot:s3e,StyleAttributor:o6,TextBlot:dH},Symbol.toStringTag,{value:"Module"}));var Dde={exports:{}},sd=-1,hc=1,ta=0;function uI(e,t,n,r,i){if(e===t)return e?[[ta,e]]:[];if(n!=null){var o=AZr(e,t,n);if(o)return o}var s=a3e(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=$Q(e,t);var l=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var c=RZr(e,t);return a&&c.unshift([ta,a]),l&&c.push([ta,l]),l3e(c,i),r&&TZr(c),c}function RZr(e,t){var n;if(!e)return[[hc,t]];if(!t)return[[sd,e]];var r=e.length>t.length?e:t,i=e.length>t.length?t:e,o=r.indexOf(i);if(o!==-1)return n=[[hc,r.substring(0,o)],[ta,i],[hc,r.substring(o+i.length)]],e.length>t.length&&(n[0][0]=n[2][0]=sd),n;if(i.length===1)return[[sd,e],[hc,t]];var s=OZr(e,t);if(s){var a=s[0],l=s[1],c=s[2],u=s[3],f=s[4],h=uI(a,c),g=uI(l,u);return h.concat([[ta,f]],g)}return $Zr(e,t)}function $Zr(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),o=i,s=2*i,a=new Array(s),l=new Array(s),c=0;c<s;c++)a[c]=-1,l[c]=-1;a[o+1]=0,l[o+1]=0;for(var u=n-r,f=u%2!==0,h=0,g=0,p=0,m=0,v=0;v<i;v++){for(var C=-v+h;C<=v-g;C+=2){var y=o+C,b;C===-v||C!==v&&a[y-1]<a[y+1]?b=a[y+1]:b=a[y-1]+1;for(var S=b-C;b<n&&S<r&&e.charAt(b)===t.charAt(S);)b++,S++;if(a[y]=b,b>n)g+=2;else if(S>r)h+=2;else if(f){var w=o+u-C;if(w>=0&&w<s&&l[w]!==-1){var x=n-l[w];if(b>=x)return bDe(e,t,b,S)}}}for(var E=-v+p;E<=v-m;E+=2){var w=o+E,x;E===-v||E!==v&&l[w-1]<l[w+1]?x=l[w+1]:x=l[w-1]+1;for(var R=x-E;x<n&&R<r&&e.charAt(n-x-1)===t.charAt(r-R-1);)x++,R++;if(l[w]=x,x>n)m+=2;else if(R>r)p+=2;else if(!f){var y=o+u-E;if(y>=0&&y<s&&a[y]!==-1){var b=a[y],S=o+b-y;if(x=n-x,b>=x)return bDe(e,t,b,S)}}}}return[[sd,e],[hc,t]]}function bDe(e,t,n,r){var i=e.substring(0,n),o=t.substring(0,r),s=e.substring(n),a=t.substring(r),l=uI(i,o),c=uI(s,a);return l.concat(c)}function a3e(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return But(e.charCodeAt(i-1))&&i--,i}function SDe(e,t){var n=e.length,r=t.length;if(n==0||r==0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var o=0,s=1;;){var a=e.substring(i-s),l=t.indexOf(a);if(l==-1)return o;s+=l,(l==0||e.substring(i-s)==t.substring(0,s))&&(o=s,s++)}}function $Q(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return Hut(e.charCodeAt(e.length-i))&&i--,i}function OZr(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2<n.length)return null;function i(g,p,m){for(var v=g.substring(m,m+Math.floor(g.length/4)),C=-1,y="",b,S,w,x;(C=p.indexOf(v,C+1))!==-1;){var E=a3e(g.substring(m),p.substring(C)),R=$Q(g.substring(0,m),p.substring(0,C));y.length<R+E&&(y=p.substring(C-R,C)+p.substring(C,C+E),b=g.substring(0,m-R),S=g.substring(m+E),w=p.substring(0,C-R),x=p.substring(C+E))}return y.length*2>=g.length?[b,S,w,x,y]:null}var o=i(n,r,Math.ceil(n.length/4)),s=i(n,r,Math.ceil(n.length/2)),a;if(!o&&!s)return null;s?o?a=o[4].length>s[4].length?o:s:a=s:a=o;var l,c,u,f;e.length>t.length?(l=a[0],c=a[1],u=a[2],f=a[3]):(u=a[0],f=a[1],l=a[2],c=a[3]);var h=a[4];return[l,c,u,f,h]}function TZr(e){for(var t=!1,n=[],r=0,i=null,o=0,s=0,a=0,l=0,c=0;o<e.length;)e[o][0]==ta?(n[r++]=o,s=l,a=c,l=0,c=0,i=e[o][1]):(e[o][0]==hc?l+=e[o][1].length:c+=e[o][1].length,i&&i.length<=Math.max(s,a)&&i.length<=Math.max(l,c)&&(e.splice(n[r-1],0,[sd,i]),e[n[r-1]+1][0]=hc,r--,r--,o=r>0?n[r-1]:-1,s=0,a=0,l=0,c=0,i=null,t=!0)),o++;for(t&&l3e(e),PZr(e),o=1;o<e.length;){if(e[o-1][0]==sd&&e[o][0]==hc){var u=e[o-1][1],f=e[o][1],h=SDe(u,f),g=SDe(f,u);h>=g?(h>=u.length/2||h>=f.length/2)&&(e.splice(o,0,[ta,f.substring(0,h)]),e[o-1][1]=u.substring(0,u.length-h),e[o+1][1]=f.substring(h),o++):(g>=u.length/2||g>=f.length/2)&&(e.splice(o,0,[ta,u.substring(0,g)]),e[o-1][0]=hc,e[o-1][1]=f.substring(0,f.length-g),e[o+1][0]=sd,e[o+1][1]=u.substring(g),o++),o++}o++}}var wDe=/[^a-zA-Z0-9]/,xDe=/\s/,EDe=/[\r\n]/,IZr=/\n\r?\n$/,MZr=/^\r?\n\r?\n/;function PZr(e){function t(g,p){if(!g||!p)return 6;var m=g.charAt(g.length-1),v=p.charAt(0),C=m.match(wDe),y=v.match(wDe),b=C&&m.match(xDe),S=y&&v.match(xDe),w=b&&m.match(EDe),x=S&&v.match(EDe),E=w&&g.match(IZr),R=x&&p.match(MZr);return E||R?5:w||x?4:C&&!b&&S?3:b||S?2:C||y?1:0}for(var n=1;n<e.length-1;){if(e[n-1][0]==ta&&e[n+1][0]==ta){var r=e[n-1][1],i=e[n][1],o=e[n+1][1],s=$Q(r,i);if(s){var a=i.substring(i.length-s);r=r.substring(0,r.length-s),i=a+i.substring(0,i.length-s),o=a+o}for(var l=r,c=i,u=o,f=t(r,i)+t(i,o);i.charAt(0)===o.charAt(0);){r+=i.charAt(0),i=i.substring(1)+o.charAt(0),o=o.substring(1);var h=t(r,i)+t(i,o);h>=f&&(f=h,l=r,c=i,u=o)}e[n-1][1]!=l&&(l?e[n-1][1]=l:(e.splice(n-1,1),n--),e[n][1]=c,u?e[n+1][1]=u:(e.splice(n+1,1),n--))}n++}}function l3e(e,t){e.push([ta,""]);for(var n=0,r=0,i=0,o="",s="",a;n<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case hc:i++,s+=e[n][1],n++;break;case sd:r++,o+=e[n][1],n++;break;case ta:var l=n-i-r-1;if(t){if(l>=0&&Vut(e[l][1])){var c=e[l][1].slice(-1);if(e[l][1]=e[l][1].slice(0,-1),o=c+o,s=c+s,!e[l][1]){e.splice(l,1),n--;var u=l-1;e[u]&&e[u][0]===hc&&(i++,s=e[u][1]+s,u--),e[u]&&e[u][0]===sd&&(r++,o=e[u][1]+o,u--),l=u}}if(jut(e[n][1])){var c=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),o+=c,s+=c}}if(n<e.length-1&&!e[n][1]){e.splice(n,1);break}if(o.length>0||s.length>0){o.length>0&&s.length>0&&(a=a3e(s,o),a!==0&&(l>=0?e[l][1]+=s.substring(0,a):(e.splice(0,0,[ta,s.substring(0,a)]),n++),s=s.substring(a),o=o.substring(a)),a=$Q(s,o),a!==0&&(e[n][1]=s.substring(s.length-a)+e[n][1],s=s.substring(0,s.length-a),o=o.substring(0,o.length-a)));var f=i+r;o.length===0&&s.length===0?(e.splice(n-f,f),n=n-f):o.length===0?(e.splice(n-f,f,[hc,s]),n=n-f+1):s.length===0?(e.splice(n-f,f,[sd,o]),n=n-f+1):(e.splice(n-f,f,[sd,o],[hc,s]),n=n-f+2)}n!==0&&e[n-1][0]===ta?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,r=0,o="",s="";break}}e[e.length-1][1]===""&&e.pop();var h=!1;for(n=1;n<e.length-1;)e[n-1][0]===ta&&e[n+1][0]===ta&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),h=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),h=!0)),n++;h&&l3e(e,t)}function But(e){return e>=55296&&e<=56319}function Hut(e){return e>=56320&&e<=57343}function jut(e){return Hut(e.charCodeAt(0))}function Vut(e){return But(e.charCodeAt(e.length-1))}function _Zr(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function Aie(e,t,n,r){return Vut(e)||jut(r)?null:_Zr([[ta,e],[sd,t],[hc,n],[ta,r]])}function AZr(e,t,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,o=e.length,s=t.length;if(r.length===0&&(i===null||i.length===0)){var a=r.index,l=e.slice(0,a),c=e.slice(a),u=i?i.index:null;e:{var f=a+s-o;if(u!==null&&u!==f||f<0||f>s)break e;var h=t.slice(0,f),g=t.slice(f);if(g!==c)break e;var p=Math.min(a,f),m=l.slice(0,p),v=h.slice(0,p);if(m!==v)break e;var C=l.slice(p),y=h.slice(p);return Aie(m,C,y,c)}e:{if(u!==null&&u!==a)break e;var b=a,h=t.slice(0,b),g=t.slice(b);if(h!==l)break e;var S=Math.min(o-b,s-b),w=c.slice(c.length-S),x=g.slice(g.length-S);if(w!==x)break e;var C=c.slice(0,c.length-S),y=g.slice(0,g.length-S);return Aie(l,C,y,w)}}if(r.length>0&&i&&i.length===0)e:{var m=e.slice(0,r.index),w=e.slice(r.index+r.length),p=m.length,S=w.length;if(s<p+S)break e;var v=t.slice(0,p),x=t.slice(s-S);if(m!==v||w!==x)break e;var C=e.slice(p,o-S),y=t.slice(p,s-S);return Aie(m,C,y,w)}return null}function OQ(e,t,n,r){return uI(e,t,n,r,!0)}OQ.INSERT=hc;OQ.DELETE=sd;OQ.EQUAL=ta;var DZr=OQ,fH={exports:{}};fH.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",f="[object GeneratorFunction]",h="[object Map]",g="[object Number]",p="[object Object]",m="[object Promise]",v="[object RegExp]",C="[object Set]",y="[object String]",b="[object Symbol]",S="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",E="[object Float32Array]",R="[object Float64Array]",O="[object Int8Array]",T="[object Int16Array]",M="[object Int32Array]",_="[object Uint8Array]",F="[object Uint8ClampedArray]",D="[object Uint16Array]",k="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,I=/\w*$/,A=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,B={};B[o]=B[s]=B[w]=B[x]=B[a]=B[l]=B[E]=B[R]=B[O]=B[T]=B[M]=B[h]=B[g]=B[p]=B[v]=B[C]=B[y]=B[b]=B[_]=B[F]=B[D]=B[k]=!0,B[c]=B[u]=B[S]=!1;var z=typeof Jo=="object"&&Jo&&Jo.Object===Object&&Jo,j=typeof self=="object"&&self&&self.Object===Object&&self,W=z||j||Function("return this")(),G=t&&!t.nodeType&&t,K=G&&!0&&e&&!e.nodeType&&e,q=K&&K.exports===G;function X(ae,Pe){return ae.set(Pe[0],Pe[1]),ae}function Q(ae,Pe){return ae.add(Pe),ae}function te(ae,Pe){for(var Qe=-1,Ht=ae?ae.length:0;++Qe<Ht&&Pe(ae[Qe],Qe,ae)!==!1;);return ae}function ne(ae,Pe){for(var Qe=-1,Ht=Pe.length,Tr=ae.length;++Qe<Ht;)ae[Tr+Qe]=Pe[Qe];return ae}function Z(ae,Pe,Qe,Ht){for(var Tr=-1,Qn=ae?ae.length:0;++Tr<Qn;)Qe=Pe(Qe,ae[Tr],Tr,ae);return Qe}function ee(ae,Pe){for(var Qe=-1,Ht=Array(ae);++Qe<ae;)Ht[Qe]=Pe(Qe);return Ht}function J(ae,Pe){return ae==null?void 0:ae[Pe]}function oe(ae){var Pe=!1;if(ae!=null&&typeof ae.toString!="function")try{Pe=!!(ae+"")}catch{}return Pe}function le(ae){var Pe=-1,Qe=Array(ae.size);return ae.forEach(function(Ht,Tr){Qe[++Pe]=[Tr,Ht]}),Qe}function ge(ae,Pe){return function(Qe){return ae(Pe(Qe))}}function he(ae){var Pe=-1,Qe=Array(ae.size);return ae.forEach(function(Ht){Qe[++Pe]=Ht}),Qe}var ye=Array.prototype,ue=Function.prototype,ve=Object.prototype,de=W["__core-js_shared__"],xe=function(){var ae=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||"");return ae?"Symbol(src)_1."+ae:""}(),Ee=ue.toString,De=ve.hasOwnProperty,Be=ve.toString,Ge=RegExp("^"+Ee.call(De).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=q?W.Buffer:void 0,We=W.Symbol,Ve=W.Uint8Array,Fe=ge(Object.getPrototypeOf,Object),ke=Object.create,Ye=ve.propertyIsEnumerable,ze=ye.splice,Re=Object.getOwnPropertySymbols,Le=Ue?Ue.isBuffer:void 0,Me=ge(Object.keys,Object),be=oi(W,"DataView"),je=oi(W,"Map"),Xe=oi(W,"Promise"),ft=oi(W,"Set"),Tt=oi(W,"WeakMap"),tt=oi(Object,"create"),pt=Oi(be),$t=Oi(je),wt=Oi(Xe),It=Oi(ft),Ct=Oi(Tt),ot=We?We.prototype:void 0,nt=ot?ot.valueOf:void 0;function fe(ae){var Pe=-1,Qe=ae?ae.length:0;for(this.clear();++Pe<Qe;){var Ht=ae[Pe];this.set(Ht[0],Ht[1])}}function Te(){this.__data__=tt?tt(null):{}}function $e(ae){return this.has(ae)&&delete this.__data__[ae]}function He(ae){var Pe=this.__data__;if(tt){var Qe=Pe[ae];return Qe===r?void 0:Qe}return De.call(Pe,ae)?Pe[ae]:void 0}function it(ae){var Pe=this.__data__;return tt?Pe[ae]!==void 0:De.call(Pe,ae)}function at(ae,Pe){var Qe=this.__data__;return Qe[ae]=tt&&Pe===void 0?r:Pe,this}fe.prototype.clear=Te,fe.prototype.delete=$e,fe.prototype.get=He,fe.prototype.has=it,fe.prototype.set=at;function gt(ae){var Pe=-1,Qe=ae?ae.length:0;for(this.clear();++Pe<Qe;){var Ht=ae[Pe];this.set(Ht[0],Ht[1])}}function yt(){this.__data__=[]}function st(ae){var Pe=this.__data__,Qe=cn(Pe,ae);if(Qe<0)return!1;var Ht=Pe.length-1;return Qe==Ht?Pe.pop():ze.call(Pe,Qe,1),!0}function Ze(ae){var Pe=this.__data__,Qe=cn(Pe,ae);return Qe<0?void 0:Pe[Qe][1]}function dt(ae){return cn(this.__data__,ae)>-1}function At(ae,Pe){var Qe=this.__data__,Ht=cn(Qe,ae);return Ht<0?Qe.push([ae,Pe]):Qe[Ht][1]=Pe,this}gt.prototype.clear=yt,gt.prototype.delete=st,gt.prototype.get=Ze,gt.prototype.has=dt,gt.prototype.set=At;function kt(ae){var Pe=-1,Qe=ae?ae.length:0;for(this.clear();++Pe<Qe;){var Ht=ae[Pe];this.set(Ht[0],Ht[1])}}function pn(){this.__data__={hash:new fe,map:new(je||gt),string:new fe}}function ln(ae){return Jr(this,ae).delete(ae)}function Lt(ae){return Jr(this,ae).get(ae)}function xt(ae){return Jr(this,ae).has(ae)}function Rt(ae,Pe){return Jr(this,ae).set(ae,Pe),this}kt.prototype.clear=pn,kt.prototype.delete=ln,kt.prototype.get=Lt,kt.prototype.has=xt,kt.prototype.set=Rt;function Ft(ae){this.__data__=new gt(ae)}function hn(){this.__data__=new gt}function Mt(ae){return this.__data__.delete(ae)}function mt(ae){return this.__data__.get(ae)}function jt(ae){return this.__data__.has(ae)}function tn(ae,Pe){var Qe=this.__data__;if(Qe instanceof gt){var Ht=Qe.__data__;if(!je||Ht.length<n-1)return Ht.push([ae,Pe]),this;Qe=this.__data__=new kt(Ht)}return Qe.set(ae,Pe),this}Ft.prototype.clear=hn,Ft.prototype.delete=Mt,Ft.prototype.get=mt,Ft.prototype.has=jt,Ft.prototype.set=tn;function Cn(ae,Pe){var Qe=ph(ae)||Dd(ae)?ee(ae.length,String):[],Ht=Qe.length,Tr=!!Ht;for(var Qn in ae)De.call(ae,Qn)&&!(Tr&&(Qn=="length"||In(Qn,Ht)))&&Qe.push(Qn);return Qe}function Ln(ae,Pe,Qe){var Ht=ae[Pe];(!(De.call(ae,Pe)&&vl(Ht,Qe))||Qe===void 0&&!(Pe in ae))&&(ae[Pe]=Qe)}function cn(ae,Pe){for(var Qe=ae.length;Qe--;)if(vl(ae[Qe][0],Pe))return Qe;return-1}function Dt(ae,Pe){return ae&&Jt(Pe,vh(Pe),ae)}function sn(ae,Pe,Qe,Ht,Tr,Qn,yi){var bi;if(Ht&&(bi=Qn?Ht(ae,Tr,Qn,yi):Ht(ae)),bi!==void 0)return bi;if(!vi(ae))return ae;var ai=ph(ae);if(ai){if(bi=Bn(ae),!Pe)return Yt(ae,bi)}else{var Ti=Pi(ae),Fo=Ti==u||Ti==f;if(er(ae))return Ui(ae,Pe);if(Ti==p||Ti==o||Fo&&!Qn){if(oe(ae))return Qn?ae:{};if(bi=rn(Fo?{}:ae),!Pe)return sr(ae,Dt(bi,ae))}else{if(!B[Ti])return Qn?ae:{};bi=En(ae,Ti,sn,Pe)}}yi||(yi=new Ft);var Ha=yi.get(ae);if(Ha)return Ha;if(yi.set(ae,bi),!ai)var Vo=Qe?br(ae):vh(ae);return te(Vo||ae,function(Qi,Ts){Vo&&(Ts=Qi,Qi=ae[Ts]),Ln(bi,Ts,sn(Qi,Pe,Qe,Ht,Ts,ae,yi))}),bi}function Sn(ae){return vi(ae)?ke(ae):{}}function Tn(ae,Pe,Qe){var Ht=Pe(ae);return ph(ae)?Ht:ne(Ht,Qe(ae))}function Jn(ae){return Be.call(ae)}function Ar(ae){if(!vi(ae)||si(ae))return!1;var Pe=Ni(ae)||oe(ae)?Ge:A;return Pe.test(Oi(ae))}function Vr(ae){if(!To(ae))return Me(ae);var Pe=[];for(var Qe in Object(ae))De.call(ae,Qe)&&Qe!="constructor"&&Pe.push(Qe);return Pe}function Ui(ae,Pe){if(Pe)return ae.slice();var Qe=new ae.constructor(ae.length);return ae.copy(Qe),Qe}function Bi(ae){var Pe=new ae.constructor(ae.byteLength);return new Ve(Pe).set(new Ve(ae)),Pe}function Gr(ae,Pe){var Qe=Pe?Bi(ae.buffer):ae.buffer;return new ae.constructor(Qe,ae.byteOffset,ae.byteLength)}function Fi(ae,Pe,Qe){var Ht=Pe?Qe(le(ae),!0):le(ae);return Z(Ht,X,new ae.constructor)}function bn(ae){var Pe=new ae.constructor(ae.source,I.exec(ae));return Pe.lastIndex=ae.lastIndex,Pe}function Qt(ae,Pe,Qe){var Ht=Pe?Qe(he(ae),!0):he(ae);return Z(Ht,Q,new ae.constructor)}function Wn(ae){return nt?Object(nt.call(ae)):{}}function $r(ae,Pe){var Qe=Pe?Bi(ae.buffer):ae.buffer;return new ae.constructor(Qe,ae.byteOffset,ae.length)}function Yt(ae,Pe){var Qe=-1,Ht=ae.length;for(Pe||(Pe=Array(Ht));++Qe<Ht;)Pe[Qe]=ae[Qe];return Pe}function Jt(ae,Pe,Qe,Ht){Qe||(Qe={});for(var Tr=-1,Qn=Pe.length;++Tr<Qn;){var yi=Pe[Tr],bi=void 0;Ln(Qe,yi,bi===void 0?ae[yi]:bi)}return Qe}function sr(ae,Pe){return Jt(ae,Br(ae),Pe)}function br(ae){return Tn(ae,vh,Br)}function Jr(ae,Pe){var Qe=ae.__data__;return jn(Pe)?Qe[typeof Pe=="string"?"string":"hash"]:Qe.map}function oi(ae,Pe){var Qe=J(ae,Pe);return Ar(Qe)?Qe:void 0}var Br=Re?ge(Re,Object):ki,Pi=Jn;(be&&Pi(new be(new ArrayBuffer(1)))!=x||je&&Pi(new je)!=h||Xe&&Pi(Xe.resolve())!=m||ft&&Pi(new ft)!=C||Tt&&Pi(new Tt)!=S)&&(Pi=function(ae){var Pe=Be.call(ae),Qe=Pe==p?ae.constructor:void 0,Ht=Qe?Oi(Qe):void 0;if(Ht)switch(Ht){case pt:return x;case $t:return h;case wt:return m;case It:return C;case Ct:return S}return Pe});function Bn(ae){var Pe=ae.length,Qe=ae.constructor(Pe);return Pe&&typeof ae[0]=="string"&&De.call(ae,"index")&&(Qe.index=ae.index,Qe.input=ae.input),Qe}function rn(ae){return typeof ae.constructor=="function"&&!To(ae)?Sn(Fe(ae)):{}}function En(ae,Pe,Qe,Ht){var Tr=ae.constructor;switch(Pe){case w:return Bi(ae);case a:case l:return new Tr(+ae);case x:return Gr(ae,Ht);case E:case R:case O:case T:case M:case _:case F:case D:case k:return $r(ae,Ht);case h:return Fi(ae,Ht,Qe);case g:case y:return new Tr(ae);case v:return bn(ae);case C:return Qt(ae,Ht,Qe);case b:return Wn(ae)}}function In(ae,Pe){return Pe=Pe??i,!!Pe&&(typeof ae=="number"||N.test(ae))&&ae>-1&&ae%1==0&&ae<Pe}function jn(ae){var Pe=typeof ae;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?ae!=="__proto__":ae===null}function si(ae){return!!xe&&xe in ae}function To(ae){var Pe=ae&&ae.constructor,Qe=typeof Pe=="function"&&Pe.prototype||ve;return ae===Qe}function Oi(ae){if(ae!=null){try{return Ee.call(ae)}catch{}try{return ae+""}catch{}}return""}function pa(ae){return sn(ae,!0,!0)}function vl(ae,Pe){return ae===Pe||ae!==ae&&Pe!==Pe}function Dd(ae){return Pn(ae)&&De.call(ae,"callee")&&(!Ye.call(ae,"callee")||Be.call(ae)==o)}var ph=Array.isArray;function Ld(ae){return ae!=null&&yo(ae.length)&&!Ni(ae)}function Pn(ae){return mh(ae)&&Ld(ae)}var er=Le||Ci;function Ni(ae){var Pe=vi(ae)?Be.call(ae):"";return Pe==u||Pe==f}function yo(ae){return typeof ae=="number"&&ae>-1&&ae%1==0&&ae<=i}function vi(ae){var Pe=typeof ae;return!!ae&&(Pe=="object"||Pe=="function")}function mh(ae){return!!ae&&typeof ae=="object"}function vh(ae){return Ld(ae)?Cn(ae):Vr(ae)}function ki(){return[]}function Ci(){return!1}e.exports=pa})(fH,fH.exports);var Gut=fH.exports,hH={exports:{}};hH.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",f="[object Date]",h="[object Error]",g="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",C="[object Null]",y="[object Object]",b="[object Promise]",S="[object Proxy]",w="[object RegExp]",x="[object Set]",E="[object String]",R="[object Symbol]",O="[object Undefined]",T="[object WeakMap]",M="[object ArrayBuffer]",_="[object DataView]",F="[object Float32Array]",D="[object Float64Array]",k="[object Int8Array]",L="[object Int16Array]",I="[object Int32Array]",A="[object Uint8Array]",N="[object Uint8ClampedArray]",B="[object Uint16Array]",z="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,K={};K[F]=K[D]=K[k]=K[L]=K[I]=K[A]=K[N]=K[B]=K[z]=!0,K[a]=K[l]=K[M]=K[u]=K[_]=K[f]=K[h]=K[g]=K[m]=K[v]=K[y]=K[w]=K[x]=K[E]=K[T]=!1;var q=typeof Jo=="object"&&Jo&&Jo.Object===Object&&Jo,X=typeof self=="object"&&self&&self.Object===Object&&self,Q=q||X||Function("return this")(),te=t&&!t.nodeType&&t,ne=te&&!0&&e&&!e.nodeType&&e,Z=ne&&ne.exports===te,ee=Z&&q.process,J=function(){try{return ee&&ee.binding&&ee.binding("util")}catch{}}(),oe=J&&J.isTypedArray;function le(ae,Pe){for(var Qe=-1,Ht=ae==null?0:ae.length,Tr=0,Qn=[];++Qe<Ht;){var yi=ae[Qe];Pe(yi,Qe,ae)&&(Qn[Tr++]=yi)}return Qn}function ge(ae,Pe){for(var Qe=-1,Ht=Pe.length,Tr=ae.length;++Qe<Ht;)ae[Tr+Qe]=Pe[Qe];return ae}function he(ae,Pe){for(var Qe=-1,Ht=ae==null?0:ae.length;++Qe<Ht;)if(Pe(ae[Qe],Qe,ae))return!0;return!1}function ye(ae,Pe){for(var Qe=-1,Ht=Array(ae);++Qe<ae;)Ht[Qe]=Pe(Qe);return Ht}function ue(ae){return function(Pe){return ae(Pe)}}function ve(ae,Pe){return ae.has(Pe)}function de(ae,Pe){return ae==null?void 0:ae[Pe]}function xe(ae){var Pe=-1,Qe=Array(ae.size);return ae.forEach(function(Ht,Tr){Qe[++Pe]=[Tr,Ht]}),Qe}function Ee(ae,Pe){return function(Qe){return ae(Pe(Qe))}}function De(ae){var Pe=-1,Qe=Array(ae.size);return ae.forEach(function(Ht){Qe[++Pe]=Ht}),Qe}var Be=Array.prototype,Ge=Function.prototype,Ue=Object.prototype,We=Q["__core-js_shared__"],Ve=Ge.toString,Fe=Ue.hasOwnProperty,ke=function(){var ae=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||"");return ae?"Symbol(src)_1."+ae:""}(),Ye=Ue.toString,ze=RegExp("^"+Ve.call(Fe).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=Z?Q.Buffer:void 0,Le=Q.Symbol,Me=Q.Uint8Array,be=Ue.propertyIsEnumerable,je=Be.splice,Xe=Le?Le.toStringTag:void 0,ft=Object.getOwnPropertySymbols,Tt=Re?Re.isBuffer:void 0,tt=Ee(Object.keys,Object),pt=Br(Q,"DataView"),$t=Br(Q,"Map"),wt=Br(Q,"Promise"),It=Br(Q,"Set"),Ct=Br(Q,"WeakMap"),ot=Br(Object,"create"),nt=Oi(pt),fe=Oi($t),Te=Oi(wt),$e=Oi(It),He=Oi(Ct),it=Le?Le.prototype:void 0,at=it?it.valueOf:void 0;function gt(ae){var Pe=-1,Qe=ae==null?0:ae.length;for(this.clear();++Pe<Qe;){var Ht=ae[Pe];this.set(Ht[0],Ht[1])}}function yt(){this.__data__=ot?ot(null):{},this.size=0}function st(ae){var Pe=this.has(ae)&&delete this.__data__[ae];return this.size-=Pe?1:0,Pe}function Ze(ae){var Pe=this.__data__;if(ot){var Qe=Pe[ae];return Qe===r?void 0:Qe}return Fe.call(Pe,ae)?Pe[ae]:void 0}function dt(ae){var Pe=this.__data__;return ot?Pe[ae]!==void 0:Fe.call(Pe,ae)}function At(ae,Pe){var Qe=this.__data__;return this.size+=this.has(ae)?0:1,Qe[ae]=ot&&Pe===void 0?r:Pe,this}gt.prototype.clear=yt,gt.prototype.delete=st,gt.prototype.get=Ze,gt.prototype.has=dt,gt.prototype.set=At;function kt(ae){var Pe=-1,Qe=ae==null?0:ae.length;for(this.clear();++Pe<Qe;){var Ht=ae[Pe];this.set(Ht[0],Ht[1])}}function pn(){this.__data__=[],this.size=0}function ln(ae){var Pe=this.__data__,Qe=Ui(Pe,ae);if(Qe<0)return!1;var Ht=Pe.length-1;return Qe==Ht?Pe.pop():je.call(Pe,Qe,1),--this.size,!0}function Lt(ae){var Pe=this.__data__,Qe=Ui(Pe,ae);return Qe<0?void 0:Pe[Qe][1]}function xt(ae){return Ui(this.__data__,ae)>-1}function Rt(ae,Pe){var Qe=this.__data__,Ht=Ui(Qe,ae);return Ht<0?(++this.size,Qe.push([ae,Pe])):Qe[Ht][1]=Pe,this}kt.prototype.clear=pn,kt.prototype.delete=ln,kt.prototype.get=Lt,kt.prototype.has=xt,kt.prototype.set=Rt;function Ft(ae){var Pe=-1,Qe=ae==null?0:ae.length;for(this.clear();++Pe<Qe;){var Ht=ae[Pe];this.set(Ht[0],Ht[1])}}function hn(){this.size=0,this.__data__={hash:new gt,map:new($t||kt),string:new gt}}function Mt(ae){var Pe=oi(this,ae).delete(ae);return this.size-=Pe?1:0,Pe}function mt(ae){return oi(this,ae).get(ae)}function jt(ae){return oi(this,ae).has(ae)}function tn(ae,Pe){var Qe=oi(this,ae),Ht=Qe.size;return Qe.set(ae,Pe),this.size+=Qe.size==Ht?0:1,this}Ft.prototype.clear=hn,Ft.prototype.delete=Mt,Ft.prototype.get=mt,Ft.prototype.has=jt,Ft.prototype.set=tn;function Cn(ae){var Pe=-1,Qe=ae==null?0:ae.length;for(this.__data__=new Ft;++Pe<Qe;)this.add(ae[Pe])}function Ln(ae){return this.__data__.set(ae,r),this}function cn(ae){return this.__data__.has(ae)}Cn.prototype.add=Cn.prototype.push=Ln,Cn.prototype.has=cn;function Dt(ae){var Pe=this.__data__=new kt(ae);this.size=Pe.size}function sn(){this.__data__=new kt,this.size=0}function Sn(ae){var Pe=this.__data__,Qe=Pe.delete(ae);return this.size=Pe.size,Qe}function Tn(ae){return this.__data__.get(ae)}function Jn(ae){return this.__data__.has(ae)}function Ar(ae,Pe){var Qe=this.__data__;if(Qe instanceof kt){var Ht=Qe.__data__;if(!$t||Ht.length<n-1)return Ht.push([ae,Pe]),this.size=++Qe.size,this;Qe=this.__data__=new Ft(Ht)}return Qe.set(ae,Pe),this.size=Qe.size,this}Dt.prototype.clear=sn,Dt.prototype.delete=Sn,Dt.prototype.get=Tn,Dt.prototype.has=Jn,Dt.prototype.set=Ar;function Vr(ae,Pe){var Qe=Dd(ae),Ht=!Qe&&vl(ae),Tr=!Qe&&!Ht&&Ld(ae),Qn=!Qe&&!Ht&&!Tr&&mh(ae),yi=Qe||Ht||Tr||Qn,bi=yi?ye(ae.length,String):[],ai=bi.length;for(var Ti in ae)Fe.call(ae,Ti)&&!(yi&&(Ti=="length"||Tr&&(Ti=="offset"||Ti=="parent")||Qn&&(Ti=="buffer"||Ti=="byteLength"||Ti=="byteOffset")||En(Ti,ai)))&&bi.push(Ti);return bi}function Ui(ae,Pe){for(var Qe=ae.length;Qe--;)if(pa(ae[Qe][0],Pe))return Qe;return-1}function Bi(ae,Pe,Qe){var Ht=Pe(ae);return Dd(ae)?Ht:ge(Ht,Qe(ae))}function Gr(ae){return ae==null?ae===void 0?O:C:Xe&&Xe in Object(ae)?Pi(ae):To(ae)}function Fi(ae){return vi(ae)&&Gr(ae)==a}function bn(ae,Pe,Qe,Ht,Tr){return ae===Pe?!0:ae==null||Pe==null||!vi(ae)&&!vi(Pe)?ae!==ae&&Pe!==Pe:Qt(ae,Pe,Qe,Ht,bn,Tr)}function Qt(ae,Pe,Qe,Ht,Tr,Qn){var yi=Dd(ae),bi=Dd(Pe),ai=yi?l:rn(ae),Ti=bi?l:rn(Pe);ai=ai==a?y:ai,Ti=Ti==a?y:Ti;var Fo=ai==y,Ha=Ti==y,Vo=ai==Ti;if(Vo&&Ld(ae)){if(!Ld(Pe))return!1;yi=!0,Fo=!1}if(Vo&&!Fo)return Qn||(Qn=new Dt),yi||mh(ae)?Jt(ae,Pe,Qe,Ht,Tr,Qn):sr(ae,Pe,ai,Qe,Ht,Tr,Qn);if(!(Qe&i)){var Qi=Fo&&Fe.call(ae,"__wrapped__"),Ts=Ha&&Fe.call(Pe,"__wrapped__");if(Qi||Ts){var Ch=Qi?ae.value():ae,Fd=Ts?Pe.value():Pe;return Qn||(Qn=new Dt),Tr(Ch,Fd,Qe,Ht,Qn)}}return Vo?(Qn||(Qn=new Dt),br(ae,Pe,Qe,Ht,Tr,Qn)):!1}function Wn(ae){if(!yo(ae)||jn(ae))return!1;var Pe=er(ae)?ze:W;return Pe.test(Oi(ae))}function $r(ae){return vi(ae)&&Ni(ae.length)&&!!K[Gr(ae)]}function Yt(ae){if(!si(ae))return tt(ae);var Pe=[];for(var Qe in Object(ae))Fe.call(ae,Qe)&&Qe!="constructor"&&Pe.push(Qe);return Pe}function Jt(ae,Pe,Qe,Ht,Tr,Qn){var yi=Qe&i,bi=ae.length,ai=Pe.length;if(bi!=ai&&!(yi&&ai>bi))return!1;var Ti=Qn.get(ae);if(Ti&&Qn.get(Pe))return Ti==Pe;var Fo=-1,Ha=!0,Vo=Qe&o?new Cn:void 0;for(Qn.set(ae,Pe),Qn.set(Pe,ae);++Fo<bi;){var Qi=ae[Fo],Ts=Pe[Fo];if(Ht)var Ch=yi?Ht(Ts,Qi,Fo,Pe,ae,Qn):Ht(Qi,Ts,Fo,ae,Pe,Qn);if(Ch!==void 0){if(Ch)continue;Ha=!1;break}if(Vo){if(!he(Pe,function(Fd,fp){if(!ve(Vo,fp)&&(Qi===Fd||Tr(Qi,Fd,Qe,Ht,Qn)))return Vo.push(fp)})){Ha=!1;break}}else if(!(Qi===Ts||Tr(Qi,Ts,Qe,Ht,Qn))){Ha=!1;break}}return Qn.delete(ae),Qn.delete(Pe),Ha}function sr(ae,Pe,Qe,Ht,Tr,Qn,yi){switch(Qe){case _:if(ae.byteLength!=Pe.byteLength||ae.byteOffset!=Pe.byteOffset)return!1;ae=ae.buffer,Pe=Pe.buffer;case M:return!(ae.byteLength!=Pe.byteLength||!Qn(new Me(ae),new Me(Pe)));case u:case f:case v:return pa(+ae,+Pe);case h:return ae.name==Pe.name&&ae.message==Pe.message;case w:case E:return ae==Pe+"";case m:var bi=xe;case x:var ai=Ht&i;if(bi||(bi=De),ae.size!=Pe.size&&!ai)return!1;var Ti=yi.get(ae);if(Ti)return Ti==Pe;Ht|=o,yi.set(ae,Pe);var Fo=Jt(bi(ae),bi(Pe),Ht,Tr,Qn,yi);return yi.delete(ae),Fo;case R:if(at)return at.call(ae)==at.call(Pe)}return!1}function br(ae,Pe,Qe,Ht,Tr,Qn){var yi=Qe&i,bi=Jr(ae),ai=bi.length,Ti=Jr(Pe),Fo=Ti.length;if(ai!=Fo&&!yi)return!1;for(var Ha=ai;Ha--;){var Vo=bi[Ha];if(!(yi?Vo in Pe:Fe.call(Pe,Vo)))return!1}var Qi=Qn.get(ae);if(Qi&&Qn.get(Pe))return Qi==Pe;var Ts=!0;Qn.set(ae,Pe),Qn.set(Pe,ae);for(var Ch=yi;++Ha<ai;){Vo=bi[Ha];var Fd=ae[Vo],fp=Pe[Vo];if(Ht)var vE=yi?Ht(fp,Fd,Vo,Pe,ae,Qn):Ht(Fd,fp,Vo,ae,Pe,Qn);if(!(vE===void 0?Fd===fp||Tr(Fd,fp,Qe,Ht,Qn):vE)){Ts=!1;break}Ch||(Ch=Vo=="constructor")}if(Ts&&!Ch){var p6=ae.constructor,ma=Pe.constructor;p6!=ma&&"constructor"in ae&&"constructor"in Pe&&!(typeof p6=="function"&&p6 instanceof p6&&typeof ma=="function"&&ma instanceof ma)&&(Ts=!1)}return Qn.delete(ae),Qn.delete(Pe),Ts}function Jr(ae){return Bi(ae,vh,Bn)}function oi(ae,Pe){var Qe=ae.__data__;return In(Pe)?Qe[typeof Pe=="string"?"string":"hash"]:Qe.map}function Br(ae,Pe){var Qe=de(ae,Pe);return Wn(Qe)?Qe:void 0}function Pi(ae){var Pe=Fe.call(ae,Xe),Qe=ae[Xe];try{ae[Xe]=void 0;var Ht=!0}catch{}var Tr=Ye.call(ae);return Ht&&(Pe?ae[Xe]=Qe:delete ae[Xe]),Tr}var Bn=ft?function(ae){return ae==null?[]:(ae=Object(ae),le(ft(ae),function(Pe){return be.call(ae,Pe)}))}:ki,rn=Gr;(pt&&rn(new pt(new ArrayBuffer(1)))!=_||$t&&rn(new $t)!=m||wt&&rn(wt.resolve())!=b||It&&rn(new It)!=x||Ct&&rn(new Ct)!=T)&&(rn=function(ae){var Pe=Gr(ae),Qe=Pe==y?ae.constructor:void 0,Ht=Qe?Oi(Qe):"";if(Ht)switch(Ht){case nt:return _;case fe:return m;case Te:return b;case $e:return x;case He:return T}return Pe});function En(ae,Pe){return Pe=Pe??s,!!Pe&&(typeof ae=="number"||G.test(ae))&&ae>-1&&ae%1==0&&ae<Pe}function In(ae){var Pe=typeof ae;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?ae!=="__proto__":ae===null}function jn(ae){return!!ke&&ke in ae}function si(ae){var Pe=ae&&ae.constructor,Qe=typeof Pe=="function"&&Pe.prototype||Ue;return ae===Qe}function To(ae){return Ye.call(ae)}function Oi(ae){if(ae!=null){try{return Ve.call(ae)}catch{}try{return ae+""}catch{}}return""}function pa(ae,Pe){return ae===Pe||ae!==ae&&Pe!==Pe}var vl=Fi(function(){return arguments}())?Fi:function(ae){return vi(ae)&&Fe.call(ae,"callee")&&!be.call(ae,"callee")},Dd=Array.isArray;function ph(ae){return ae!=null&&Ni(ae.length)&&!er(ae)}var Ld=Tt||Ci;function Pn(ae,Pe){return bn(ae,Pe)}function er(ae){if(!yo(ae))return!1;var Pe=Gr(ae);return Pe==g||Pe==p||Pe==c||Pe==S}function Ni(ae){return typeof ae=="number"&&ae>-1&&ae%1==0&&ae<=s}function yo(ae){var Pe=typeof ae;return ae!=null&&(Pe=="object"||Pe=="function")}function vi(ae){return ae!=null&&typeof ae=="object"}var mh=oe?ue(oe):$r;function vh(ae){return ph(ae)?Vr(ae):Yt(ae)}function ki(){return[]}function Ci(){return!1}e.exports=Pn})(hH,hH.exports);var Wut=hH.exports,c3e={};Object.defineProperty(c3e,"__esModule",{value:!0});const LZr=Gut,FZr=Wut;var Lde;(function(e){function t(o={},s={},a=!1){typeof o!="object"&&(o={}),typeof s!="object"&&(s={});let l=LZr(s);a||(l=Object.keys(l).reduce((c,u)=>(l[u]!=null&&(c[u]=l[u]),c),{}));for(const c in o)o[c]!==void 0&&s[c]===void 0&&(l[c]=o[c]);return Object.keys(l).length>0?l:void 0}e.compose=t;function n(o={},s={}){typeof o!="object"&&(o={}),typeof s!="object"&&(s={});const a=Object.keys(o).concat(Object.keys(s)).reduce((l,c)=>(FZr(o[c],s[c])||(l[c]=s[c]===void 0?null:s[c]),l),{});return Object.keys(a).length>0?a:void 0}e.diff=n;function r(o={},s={}){o=o||{};const a=Object.keys(s).reduce((l,c)=>(s[c]!==o[c]&&o[c]!==void 0&&(l[c]=s[c]),l),{});return Object.keys(o).reduce((l,c)=>(o[c]!==s[c]&&s[c]===void 0&&(l[c]=null),l),a)}e.invert=r;function i(o,s,a=!1){if(typeof o!="object")return s;if(typeof s!="object")return;if(!a)return s;const l=Object.keys(s).reduce((c,u)=>(o[u]===void 0&&(c[u]=s[u]),c),{});return Object.keys(l).length>0?l:void 0}e.transform=i})(Lde||(Lde={}));c3e.default=Lde;var TQ={};Object.defineProperty(TQ,"__esModule",{value:!0});var Fde;(function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t})(Fde||(Fde={}));TQ.default=Fde;var u3e={};Object.defineProperty(u3e,"__esModule",{value:!0});const RDe=TQ;class NZr{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const n=this.ops[this.index];if(n){const r=this.offset,i=RDe.default.length(n);if(t>=i-r?(t=i-r,this.index+=1,this.offset=0):this.offset+=t,typeof n.delete=="number")return{delete:t};{const o={};return n.attributes&&(o.attributes=n.attributes),typeof n.retain=="number"?o.retain=t:typeof n.retain=="object"&&n.retain!==null?o.retain=n.retain:typeof n.insert=="string"?o.insert=n.insert.substr(r,t):o.insert=n.insert,o}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?RDe.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const t=this.offset,n=this.index,r=this.next(),i=this.ops.slice(this.index);return this.offset=t,this.index=n,[r].concat(i)}}else return[]}}u3e.default=NZr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=DZr,r=Gut,i=Wut,o=c3e;t.AttributeMap=o.default;const s=TQ;t.Op=s.default;const a=u3e;t.OpIterator=a.default;const l="\0",c=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const g=Object.keys(f)[0];if(!g||g!==Object.keys(h)[0])throw new Error(`embed types not matched: ${g} != ${Object.keys(h)[0]}`);return[g,f[g],h[g]]};class u{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,g){this.handlers[h]=g}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const g=this.handlers[h];if(!g)throw new Error(`no handlers for embed type "${h}"`);return g}insert(h,g){const p={};return typeof h=="string"&&h.length===0?this:(p.insert=h,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,g){if(typeof h=="number"&&h<=0)return this;const p={retain:h};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(p.attributes=g),this.push(p)}push(h){let g=this.ops.length,p=this.ops[g-1];if(h=r(h),typeof p=="object"){if(typeof h.delete=="number"&&typeof p.delete=="number")return this.ops[g-1]={delete:p.delete+h.delete},this;if(typeof p.delete=="number"&&h.insert!=null&&(g-=1,p=this.ops[g-1],typeof p!="object"))return this.ops.unshift(h),this;if(i(h.attributes,p.attributes)){if(typeof h.insert=="string"&&typeof p.insert=="string")return this.ops[g-1]={insert:p.insert+h.insert},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof p.retain=="number")return this.ops[g-1]={retain:p.retain+h.retain},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this}}return g===this.ops.length?this.ops.push(h):this.ops.splice(g,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const g=[],p=[];return this.forEach(m=>{(h(m)?g:p).push(m)}),[g,p]}reduce(h,g){return this.ops.reduce(h,g)}changeLength(){return this.reduce((h,g)=>g.insert?h+s.default.length(g):g.delete?h-g.delete:h,0)}length(){return this.reduce((h,g)=>h+s.default.length(g),0)}slice(h=0,g=1/0){const p=[],m=new a.default(this.ops);let v=0;for(;v<g&&m.hasNext();){let C;v<h?C=m.next(h-v):(C=m.next(g-v),p.push(C)),v+=s.default.length(C)}return new u(p)}compose(h){const g=new a.default(this.ops),p=new a.default(h.ops),m=[],v=p.peek();if(v!=null&&typeof v.retain=="number"&&v.attributes==null){let y=v.retain;for(;g.peekType()==="insert"&&g.peekLength()<=y;)y-=g.peekLength(),m.push(g.next());v.retain-y>0&&p.next(v.retain-y)}const C=new u(m);for(;g.hasNext()||p.hasNext();)if(p.peekType()==="insert")C.push(p.next());else if(g.peekType()==="delete")C.push(g.next());else{const y=Math.min(g.peekLength(),p.peekLength()),b=g.next(y),S=p.next(y);if(S.retain){const w={};if(typeof b.retain=="number")w.retain=typeof S.retain=="number"?y:S.retain;else if(typeof S.retain=="number")b.retain==null?w.insert=b.insert:w.retain=b.retain;else{const E=b.retain==null?"insert":"retain",[R,O,T]=c(b[E],S.retain),M=u.getHandler(R);w[E]={[R]:M.compose(O,T,E==="retain")}}const x=o.default.compose(b.attributes,S.attributes,typeof b.retain=="number");if(x&&(w.attributes=x),C.push(w),!p.hasNext()&&i(C.ops[C.ops.length-1],w)){const E=new u(g.rest());return C.concat(E).chop()}}else typeof S.delete=="number"&&(typeof b.retain=="number"||typeof b.retain=="object"&&b.retain!==null)&&C.push(S)}return C.chop()}concat(h){const g=new u(this.ops.slice());return h.ops.length>0&&(g.push(h.ops[0]),g.ops=g.ops.concat(h.ops.slice(1))),g}diff(h,g){if(this.ops===h.ops)return new u;const p=[this,h].map(b=>b.map(S=>{if(S.insert!=null)return typeof S.insert=="string"?S.insert:l;const w=b===h?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")),m=new u,v=n(p[0],p[1],g,!0),C=new a.default(this.ops),y=new a.default(h.ops);return v.forEach(b=>{let S=b[1].length;for(;S>0;){let w=0;switch(b[0]){case n.INSERT:w=Math.min(y.peekLength(),S),m.push(y.next(w));break;case n.DELETE:w=Math.min(S,C.peekLength()),C.next(w),m.delete(w);break;case n.EQUAL:w=Math.min(C.peekLength(),y.peekLength(),S);const x=C.next(w),E=y.next(w);i(x.insert,E.insert)?m.retain(w,o.default.diff(x.attributes,E.attributes)):m.push(E).delete(w);break}S-=w}}),m.chop()}eachLine(h,g=`
|
||
`){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={"&":"&","<":"<",">":">",'"':""","'":"'"};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,y)}else{var S=v.length,w;for(b=0;b<S;b++)switch(v[b].once&&this.removeListener(c,v[b].fn,void 0,!0),C){case 1:v[b].fn.call(v[b].context);break;case 2:v[b].fn.call(v[b].context,u);break;case 3:v[b].fn.call(v[b].context,u,f);break;case 4:v[b].fn.call(v[b].context,u,f,h);break;default:if(!y)for(w=1,y=new Array(C-1);w<C;w++)y[w-1]=arguments[w];v[b].fn.apply(v[b].context,y)}}return!0},a.prototype.on=function(c,u,f){return o(this,c,u,f,!1)},a.prototype.once=function(c,u,f){return o(this,c,u,f,!0)},a.prototype.removeListener=function(c,u,f,h){var g=n?n+c:c;if(!this._events[g])return this;if(!u)return s(this,g),this;var p=this._events[g];if(p.fn)p.fn===u&&(!h||p.once)&&(!f||p.context===f)&&s(this,g);else{for(var m=0,v=[],C=p.length;m<C;m++)(p[m].fn!==u||h&&!p[m].once||f&&p[m].context!==f)&&v.push(p[m]);v.length?this._events[g]=v.length===1?v[0]:v:s(this,g)}return this},a.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&s(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(qut);var zZr=qut.exports;const BZr=Bm(zZr),Nde=new WeakMap,kde=["error","warn","log","info"];let zde="warn";function Kut(e){if(zde&&kde.indexOf(e)<=kde.indexOf(zde)){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console[e](...n)}}function xv(e){return kde.reduce((t,n)=>(t[n]=Kut.bind(console,n,e),t),{})}xv.level=e=>{zde=e};Kut.level=xv.level;const Die=xv("quill:events"),HZr=["selectionchange","mousedown","mouseup","click"];HZr.forEach(e=>{document.addEventListener(e,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const o=Nde.get(i);o&&o.emitter&&o.emitter.handleDOM(...n)})})});class zn extends BZr{constructor(){super(),this.domListeners={},this.on("error",Die.error)}emit(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Die.log.call(Die,...n),super.emit(...n)}handleDOM(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(this.domListeners[t.type]||[]).forEach(o=>{let{node:s,handler:a}=o;(t.target===s||s.contains(t.target))&&a(t,...r)})}listenDOM(t,n,r){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:n,handler:r})}}Wt(zn,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Wt(zn,"sources",{API:"api",SILENT:"silent",USER:"user"});const Lie=xv("quill:selection");class vy{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=n}}class jZr{constructor(t,n){this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new vy(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,zn.sources.USER),1)}),this.emitter.on(zn.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(zn.events.SCROLL_UPDATE,(i,o)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const s=o.some(a=>a.type==="characterData"||a.type==="childList"||a.type==="attributes"&&a.target===this.root);this.update(s?zn.sources.SILENT:i)}catch{}})}),this.emitter.on(zn.events.SCROLL_OPTIMIZE,(r,i)=>{if(i.range){const{startNode:o,startOffset:s,endNode:a,endOffset:l}=i.range;this.setNativeRange(o,s,a,l),this.update(zn.sources.SILENT)}}),this.update(zn.sources.SILENT)}handleComposition(){this.emitter.on(zn.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(zn.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(zn.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,n){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(t,Xn.BLOCK))){if(r.start.node!==this.cursor.textNode){const i=this.scroll.find(r.start.node,!1);if(i==null)return;if(i instanceof Nl){const o=i.split(r.start.offset);i.parent.insertBefore(this.cursor,o)}else i.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(t,n),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();t=Math.min(t,r-1),n=Math.min(t+n,r-1)-t;let i,[o,s]=this.scroll.leaf(t);if(o==null)return null;if(n>0&&s===o.length()){const[u]=this.scroll.leaf(t+1);if(u){const[f]=this.scroll.line(t),[h]=this.scroll.line(t+1);f===h&&(o=u,s=0)}}[i,s]=o.position(s,!0);const a=document.createRange();if(n>0)return a.setStart(i,s),[o,s]=this.scroll.leaf(t+n),o==null?null:([i,s]=o.position(s,!0),a.setEnd(i,s),a.getBoundingClientRect());let l="left",c;if(i instanceof Text){if(!i.data.length)return null;s<i.data.length?(a.setStart(i,s),a.setEnd(i,s+1)):(a.setStart(i,s-1),a.setEnd(i,s),l="right"),c=a.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;c=o.domNode.getBoundingClientRect(),s>0&&(l="right")}return{bottom:c.top+c.height,height:c.height,left:c[l],right:c[l],top:c.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const n=t.getRangeAt(0);if(n==null)return null;const r=this.normalizeNative(n);return Lie.info("getNativeRange",r),r}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const n=this.getNativeRange();return n==null?[null,null]:[this.normalizedToRange(n),n]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&Fie(this.root,document.activeElement)}normalizedToRange(t){const n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);const r=n.map(s=>{const[a,l]=s,c=this.scroll.find(a,!0),u=c.offset(this.scroll);return l===0?u:c instanceof Nl?u+c.index(a,l):u+c.length()}),i=Math.min(Math.max(...r),this.scroll.length()-1),o=Math.min(i,...r);return new vy(o,i-o)}normalizeNative(t){if(!Fie(this.root,t.startContainer)||!t.collapsed&&!Fie(this.root,t.endContainer))return null;const n={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[n.start,n.end].forEach(r=>{let{node:i,offset:o}=r;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>o)i=i.childNodes[o],o=0;else if(i.childNodes.length===o)i=i.lastChild,i instanceof Text?o=i.data.length:i.childNodes.length>0?o=i.childNodes.length:o=i.childNodes.length+1;else break;r.node=i,r.offset=o}),n}rangeToNative(t){const n=this.scroll.length(),r=(i,o)=>{i=Math.min(n-1,i);const[s,a]=this.scroll.leaf(i);return s?s.position(a,o):[null,-1]};return[...r(t.index,!1),...r(t.index+t.length,!0)]}setNativeRange(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Lie.info("setNativeRange",t,n,r,i),t!=null&&(this.root.parentNode==null||t.parentNode==null||r.parentNode==null))return;const s=document.getSelection();if(s!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(a==null||o||t!==a.startContainer||n!==a.startOffset||r!==a.endContainer||i!==a.endOffset){t instanceof Element&&t.tagName==="BR"&&(n=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),r instanceof Element&&r.tagName==="BR"&&(i=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const l=document.createRange();l.setStart(t,n),l.setEnd(r,i),s.removeAllRanges(),s.addRange(l)}}else s.removeAllRanges(),this.root.blur()}setRange(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zn.sources.API;if(typeof n=="string"&&(r=n,n=!1),Lie.info("setRange",t),t!=null){const i=this.rangeToNative(t);this.setNativeRange(...i,n)}else this.setNativeRange(null);this.update(r)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zn.sources.USER;const n=this.lastRange,[r,i]=this.getRange();if(this.lastRange=r,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!i3e(n,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}const o=[zn.events.SELECTION_CHANGE,aw(this.lastRange),aw(n),t];this.emitter.emit(zn.events.EDITOR_CHANGE,...o),t!==zn.sources.SILENT&&this.emitter.emit(...o)}}}function Fie(e,t){try{t.parentNode}catch{return!1}return e.contains(t)}const VZr=/^[ -~]*$/;class GZr{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let n=this.scroll.length();this.scroll.batchStart();const r=ODe(t),i=new qn;return UZr(r.ops.slice()).reduce((s,a)=>{const l=Ff.Op.length(a);let c=a.attributes||{},u=!1,f=!1;if(a.insert!=null){if(i.retain(l),typeof a.insert=="string"){const p=a.insert;f=!p.endsWith(`
|
||
`)&&(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]!==`
|
||
`&&(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,`
|
||
`).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(`
|
||
`));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(" "," ");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,`
|
||
`).replace(/\r/g,`
|
||
`);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(`
|
||
`).forEach((i,o)=>{o&&t.push({insert:`
|
||
`,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)}),e.forEach(i=>{let o=t.query(i);o||n.error(`Cannot register "${i}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;o;)if(r.register(o),o="blotName"in o?o.requiredContainer??null:null,s+=1,s>QZr){n.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),r},cw=xv("quill"),cF=new vx;Tg.uiClass="ql-ui";const jh=class jh{static debug(t){t===!0&&(t="log"),xv.level(t)}static find(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Nde.get(t)||cF.find(t,n)}static import(t){return this.imports[t]==null&&cw.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const t=arguments.length<=0?void 0:arguments[0],n=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in t?t.attrName:t.blotName;typeof r=="string"?this.register(`formats/${r}`,t,n):Object.keys(t).forEach(i=>{this.register(i,t[i],n)})}else{const t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[t]!=null&&!r&&cw.warn(`Overwriting ${t} with`,n),this.imports[t]=n,(t.startsWith("blots/")||t.startsWith("formats/"))&&n&&typeof n!="boolean"&&n.blotName!=="abstract"&&cF.register(n),typeof n.register=="function"&&n.register(cF)}}constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=eJr(t,n),this.container=this.options.container,this.container==null){cw.error("Invalid Quill container",t);return}this.options.debug&&jh.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Nde.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new zn;const i=s3e.blotName,o=this.options.registry.query(i);if(!o||!("blotName"in o))throw new Error(`Cannot initialize Quill without "${i}" blot`);if(this.scroll=new o(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new GZr(this.scroll),this.selection=new jZr(this.scroll,this.emitter),this.composition=new qZr(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(zn.events.EDITOR_CHANGE,s=>{s===zn.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(zn.events.SCROLL_UPDATE,(s,a)=>{const l=this.selection.lastRange,[c]=this.selection.getRange(),u=l&&c?{oldRange:l,newRange:c}:void 0;Ih.call(this,()=>this.editor.update(null,a,u),s)}),this.emitter.on(zn.events.SCROLL_EMBED_UPDATE,(s,a)=>{const l=this.selection.lastRange,[c]=this.selection.getRange(),u=l&&c?{oldRange:l,newRange:c}:void 0;Ih.call(this,()=>{const f=new qn().retain(s.offset(this)).retain({[s.statics.blotName]:a});return this.editor.update(f,[],u)},jh.sources.USER)}),r){const s=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
|
||
`});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 deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,n=t&&this.selection.getBounds(t.index,t.length);n&&this.scrollRectIntoView(n)}setContents(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zn.sources.API;return Ih.call(this,()=>{t=new qn(t);const r=this.getLength(),i=this.editor.deleteText(0,r),o=this.editor.insertContents(0,t),s=this.editor.deleteText(this.getLength()-1,1);return i.compose(o).compose(s)},n)}setSelection(t,n,r){t==null?this.selection.setRange(null,n||jh.sources.API):([t,n,,r]=k1(t,n,r),this.selection.setRange(new vy(Math.max(0,t),n),r),r!==zn.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zn.sources.API;const r=new qn().insert(t);return this.setContents(r,n)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zn.sources.USER;const n=this.scroll.update(t);return this.selection.update(t),n}updateContents(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zn.sources.API;return Ih.call(this,()=>(t=new qn(t),this.editor.applyDelta(t)),n,!0)}};Wt(jh,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:cF,theme:"default"}),Wt(jh,"events",zn.events),Wt(jh,"sources",zn.sources),Wt(jh,"version","2.0.3"),Wt(jh,"imports",{delta:qn,parchment:EZr,"core/module":cp,"core/theme":yx});let Gt=jh;function MDe(e){return typeof e=="string"?document.querySelector(e):e}function kie(e){return Object.entries(e??{}).reduce((t,n)=>{let[r,i]=n;return{...t,[r]:i===!0?{}:i}},{})}function PDe(e){return Object.fromEntries(Object.entries(e).filter(t=>t[1]!==void 0))}function eJr(e,t){const n=MDe(e);if(!n)throw new Error("Invalid Quill container");const i=!t.theme||t.theme===Gt.DEFAULTS.theme?yx:Gt.import(`themes/${t.theme}`);if(!i)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:o,...s}=Gt.DEFAULTS,{modules:a,...l}=i.DEFAULTS;let c=kie(t.modules);c!=null&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});const u=I4({},kie(o),kie(a),c),f={...s,...PDe(l),...PDe(t)};let h=t.registry;return h?t.formats&&cw.warn('Ignoring "formats" option because "registry" is specified'):h=t.formats?JZr(t.formats,f.registry,cw):f.registry,{...f,registry:h,container:n,theme:i,modules:Object.entries(u).reduce((g,p)=>{let[m,v]=p;if(!v)return g;const C=Gt.import(`modules/${m}`);return C==null?(cw.error(`Cannot load ${m} module. Are you sure you registered it?`),g):{...g,[m]:I4({},C.DEFAULTS||{},v)}},{}),bounds:MDe(f.bounds)}}function Ih(e,t,n,r){if(!this.isEnabled()&&t===zn.sources.USER&&!this.allowReadOnlyEdits)return new qn;let i=n==null?null:this.getSelection();const o=this.editor.delta,s=e();if(i!=null&&(n===!0&&(n=i.index),r==null?i=_De(i,s,t):r!==0&&(i=_De(i,n,r,t)),this.setSelection(i,zn.sources.SILENT)),s.length()>0){const a=[zn.events.TEXT_CHANGE,s,o,t];this.emitter.emit(zn.events.EDITOR_CHANGE,...a),t!==zn.sources.SILENT&&this.emitter.emit(...a)}return s}function k1(e,t,n,r,i){let o={};return typeof e.index=="number"&&typeof e.length=="number"?typeof t!="number"?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):typeof t!="number"&&(i=r,r=n,n=t,t=0),typeof n=="object"?(o=n,i=r):typeof n=="string"&&(r!=null?o[n]=r:i=n),i=i||zn.sources.API,[e,t,o,i]}function _De(e,t,n,r){const i=typeof n=="number"?n:0;if(e==null)return null;let o,s;return t&&typeof t.transformPosition=="function"?[o,s]=[e.index,e.index+e.length].map(a=>t.transformPosition(a,r!==zn.sources.USER)):[o,s]=[e.index,e.index+e.length].map(a=>a<t||a===t&&r===zn.sources.USER?a:i>=0?a+i:Math.max(t,a+i)),new vy(o,s-o)}class Ib extends RQ{}function ADe(e){return e instanceof al||e instanceof Mf}function DDe(e){return typeof e.updateContent=="function"}class sS extends s3e{constructor(t,n,r){let{emitter:i}=r;super(t,n),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",o=>this.handleDragStart(o))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(zn.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(zn.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,n){this.emitter.emit(zn.events.SCROLL_EMBED_UPDATE,t,n)}deleteAt(t,n){const[r,i]=this.line(t),[o]=this.line(t+n);if(super.deleteAt(t,n),o!=null&&r!==o&&i>0){if(r instanceof Mf||o instanceof Mf){this.optimize();return}const s=o.children.head instanceof lp?null:o.children.head;r.moveChildren(o,s),r.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,n,r,i){super.formatAt(t,n,r,i),this.optimize()}insertAt(t,n,r){if(t>=this.length())if(r==null||this.scroll.query(n,Xn.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),r==null&&n.endsWith(`
|
||
`)?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(`
|
||
`))),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(`
|
||
`).slice(t,t+n)}html(t,n){return`<pre>
|
||
${IQ(this.code(t,n))}
|
||
</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){const[a]=this.quill.getLine(t.index-1);if(a&&!(a.statics.blotName==="block"&&a.length()<=1)){const c=o.formats(),u=this.quill.getFormat(t.index-1,1);if(i=Ff.AttributeMap.diff(c,u)||{},Object.keys(i).length>0){const f=new qn().retain(t.index+o.length()-2).retain(1,i);s=s.compose(f)}}}this.quill.updateContents(s,Gt.sources.USER),this.quill.focus()}handleDelete(t,n){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(n.suffix)?2:1;if(t.index>=this.quill.getLength()-r)return;let i={};const[o]=this.quill.getLine(t.index);let s=new qn().retain(t.index).delete(r);if(n.offset>=o.length()-1){const[a]=this.quill.getLine(t.index+1);if(a){const l=o.formats(),c=this.quill.getFormat(t.index,1);i=Ff.AttributeMap.diff(l,c)||{},Object.keys(i).length>0&&(s=s.retain(a.length()-1).retain(1,i))}}this.quill.updateContents(s,Gt.sources.USER),this.quill.focus()}handleDeleteRange(t){v3e({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,n){const r=Object.keys(n.format).reduce((o,s)=>(this.quill.scroll.query(s,Xn.BLOCK)&&!Array.isArray(n.format[s])&&(o[s]=n.format[s]),o),{}),i=new qn().retain(t.index).delete(t.length).insert(`
|
||
`,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(`
|
||
`,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(`
|
||
`,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(`
|
||
`);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(`
|
||
`);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:t.prev==null?-1:t.next==null?1:null}const uJr=/font-weight:\s*normal/,dJr=["P","OL","UL"],NDe=e=>e&&dJr.includes(e.tagName),fJr=e=>{Array.from(e.querySelectorAll("br")).filter(t=>NDe(t.previousElementSibling)&&NDe(t.nextElementSibling)).forEach(t=>{var n;(n=t.parentNode)==null||n.removeChild(t)})},hJr=e=>{Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var n;return(n=t.getAttribute("style"))==null?void 0:n.match(uJr)}).forEach(t=>{var r;const n=e.createDocumentFragment();n.append(...t.childNodes),(r=t.parentNode)==null||r.replaceChild(n,t)})};function gJr(e){e.querySelector('[id^="docs-internal-guid-"]')&&(hJr(e),fJr(e))}const pJr=/\bmso-list:[^;]*ignore/i,mJr=/\bmso-list:[^;]*\bl(\d+)/i,vJr=/\bmso-list:[^;]*\blevel(\d+)/i,CJr=(e,t)=>{const n=e.getAttribute("style"),r=n==null?void 0:n.match(mJr);if(!r)return null;const i=Number(r[1]),o=n==null?void 0:n.match(vJr),s=o?Number(o[1]):1,a=new RegExp(`@list l${i}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=t.match(a),c=l&&l[1]==="bullet"?"bullet":"ordered";return{id:i,indent:s,type:c,element:e}},yJr=e=>{var s,a;const t=Array.from(e.querySelectorAll("[style*=mso-list]")),n=[],r=[];t.forEach(l=>{(l.getAttribute("style")||"").match(pJr)?n.push(l):r.push(l)}),n.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)});const i=e.documentElement.innerHTML,o=r.map(l=>CJr(l,i)).filter(l=>l);for(;o.length;){const l=[];let c=o.shift();for(;c;)l.push(c),c=o.length&&((s=o[0])==null?void 0:s.element)===c.element.nextElementSibling&&o[0].id===c.id?o.shift():null;const u=document.createElement("ul");l.forEach(g=>{const p=document.createElement("li");p.setAttribute("data-list",g.type),g.indent>1&&p.setAttribute("class",`ql-indent-${g.indent-1}`),p.innerHTML=g.element.innerHTML,u.appendChild(p)});const f=(a=l[0])==null?void 0:a.element,{parentNode:h}=f??{};f&&(h==null||h.replaceChild(u,f)),l.slice(1).forEach(g=>{let{element:p}=g;h==null||h.removeChild(p)})}};function bJr(e){e.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&yJr(e)}const SJr=[bJr,gJr],wJr=e=>{e.documentElement&&SJr.forEach(t=>{t(e)})},xJr=xv("quill:clipboard"),EJr=[[Node.TEXT_NODE,FJr],[Node.TEXT_NODE,zDe],["br",IJr],[Node.ELEMENT_NODE,zDe],[Node.ELEMENT_NODE,TJr],[Node.ELEMENT_NODE,OJr],[Node.ELEMENT_NODE,DJr],["li",_Jr],["ol, ul",AJr],["pre",MJr],["tr",LJr],["b",Hie("bold")],["i",Hie("italic")],["strike",Hie("strike")],["style",PJr]],RJr=[tJr,Zut].reduce((e,t)=>(e[t.keyName]=t,e),{}),kDe=[Xut,g3e,h3e,edt,rdt,odt].reduce((e,t)=>(e[t.keyName]=t,e),{});class sdt extends cp{constructor(t,n){super(t,n),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],EJr.concat(this.options.matchers??[]).forEach(r=>{let[i,o]=r;this.addMatcher(i,o)})}addMatcher(t,n){this.matchers.push([t,n])}convert(t){let{html:n,text:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[Gl.blotName])return new qn().insert(r||"",{[Gl.blotName]:i[Gl.blotName]});if(!n)return new qn().insert(r||"",i);const o=this.convertHTML(n);return P_(o,`
|
||
`)&&(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,`
|
||
`)&&t.insert(`
|
||
`),"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,`
|
||
`)||t.insert(`
|
||
`),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,`
|
||
`)){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(`
|
||
`);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!==0)return;const i=this.quill.scroll.find(r.startContainer);if(!(i instanceof Tg)||!i.uiNode)return;const o=document.createRange();o.setStartAfter(i.uiNode),o.setEndAfter(i.uiNode),n.removeAllRanges(),n.addRange(o)}}Gt.register({"blots/block":al,"blots/block/embed":Mf,"blots/break":lp,"blots/container":Ib,"blots/cursor":Cx,"blots/embed":d3e,"blots/inline":Fm,"blots/scroll":sS,"blots/text":jg,"modules/clipboard":sdt,"modules/history":ldt,"modules/keyboard":MQ,"modules/uploader":cdt,"modules/input":BJr,"modules/uiNode":WJr});class UJr extends ap{add(t,n){let r=0;if(n==="+1"||n==="-1"){const i=this.value(t)||0;r=n==="+1"?i+1:i-1}else typeof n=="number"&&(r=n);return r===0?(this.remove(t),!0):super.add(t,r.toString())}canAdd(t,n){return super.canAdd(t,n)||super.canAdd(t,parseInt(n,10))}value(t){return parseInt(super.value(t),10)||void 0}}const qJr=new UJr("indent","ql-indent",{scope:Xn.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class Hde extends al{}Wt(Hde,"blotName","blockquote"),Wt(Hde,"tagName","blockquote");class jde extends al{static formats(t){return this.tagName.indexOf(t.tagName)+1}}Wt(jde,"blotName","header"),Wt(jde,"tagName",["H1","H2","H3","H4","H5","H6"]);class __ extends Ib{}__.blotName="list-container";__.tagName="OL";class A_ extends al{static create(t){const n=super.create();return n.setAttribute("data-list",t),n}static formats(t){return t.getAttribute("data-list")||void 0}static register(){Gt.register(__)}constructor(t,n){super(t,n);const r=n.ownerDocument.createElement("span"),i=o=>{if(!t.isEnabled())return;const s=this.statics.formats(n,t);s==="checked"?(this.format("list","unchecked"),o.preventDefault()):s==="unchecked"&&(this.format("list","checked"),o.preventDefault())};r.addEventListener("mousedown",i),r.addEventListener("touchstart",i),this.attachUI(r)}format(t,n){t===this.statics.blotName&&n?this.domNode.setAttribute("data-list",n):super.format(t,n)}}A_.blotName="list";A_.tagName="LI";__.allowedChildren=[A_];A_.requiredContainer=__;class fI extends Fm{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Wt(fI,"blotName","bold"),Wt(fI,"tagName",["STRONG","B"]);class Vde extends fI{}Wt(Vde,"blotName","italic"),Wt(Vde,"tagName",["EM","I"]);class s4 extends Fm{static create(t){const n=super.create(t);return n.setAttribute("href",this.sanitize(t)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}static formats(t){return t.getAttribute("href")}static sanitize(t){return udt(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,n){t!==this.statics.blotName||!n?super.format(t,n):this.domNode.setAttribute("href",this.constructor.sanitize(n))}}Wt(s4,"blotName","link"),Wt(s4,"tagName","A"),Wt(s4,"SANITIZED_URL","about:blank"),Wt(s4,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function udt(e,t){const n=document.createElement("a");n.href=e;const r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}class Gde extends Fm{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}Wt(Gde,"blotName","script"),Wt(Gde,"tagName",["SUB","SUP"]);class Wde extends fI{}Wt(Wde,"blotName","strike"),Wt(Wde,"tagName",["S","STRIKE"]);class Ude extends Fm{}Wt(Ude,"blotName","underline"),Wt(Ude,"tagName","U");class ok extends d3e{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const n=super.create(t);return typeof t=="string"&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}Wt(ok,"blotName","formula"),Wt(ok,"className","ql-formula"),Wt(ok,"tagName","SPAN");const HDe=["alt","height","width"];var PF;let KJr=(PF=class extends Ad{static create(t){const n=super.create(t);return typeof t=="string"&&n.setAttribute("src",this.sanitize(t)),n}static formats(t){return HDe.reduce((n,r)=>(t.hasAttribute(r)&&(n[r]=t.getAttribute(r)),n),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return udt(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,n){HDe.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):super.format(t,n)}},Wt(PF,"blotName","image"),Wt(PF,"tagName","IMG"),PF);const jDe=["height","width"];class sk extends Mf{static create(t){const n=super.create(t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen","true"),n.setAttribute("src",this.sanitize(t)),n}static formats(t){return jDe.reduce((n,r)=>(t.hasAttribute(r)&&(n[r]=t.getAttribute(r)),n),{})}static sanitize(t){return s4.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,n){jDe.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):super.format(t,n)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}}Wt(sk,"blotName","video"),Wt(sk,"className","ql-video"),Wt(sk,"tagName","IFRAME");const w$=new ap("code-token","hljs",{scope:Xn.INLINE});class V0 extends Fm{static formats(t,n){for(;t!=null&&t!==n.domNode;){if(t.classList&&t.classList.contains(Gl.className))return super.formats(t,n);t=t.parentNode}}constructor(t,n,r){super(t,n,r),w$.add(this.domNode,r)}format(t,n){t!==V0.blotName?super.format(t,n):n?w$.add(this.domNode,n):(w$.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),w$.value(this.domNode)||this.unwrap()}}V0.blotName="code-token";V0.className="ql-token";class $f extends Gl{static create(t){const n=super.create(t);return typeof t=="string"&&n.setAttribute("data-language",t),n}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,n){t===this.statics.blotName&&n?this.domNode.setAttribute("data-language",n):super.format(t,n)}replaceWith(t,n){return this.formatAt(0,this.length(),V0.blotName,!1),super.replaceWith(t,n)}}class mO extends Mb{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,n){t===$f.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(t,n)}))}formatAt(t,n,r,i){r===$f.blotName&&(this.forceNext=!0),super.formatAt(t,n,r,i)}highlight(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(s=>s!==this.uiNode).map(s=>s.textContent).join(`
|
||
`)}
|
||
`,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"}">
|
||
${IQ(this.code(t,n))}
|
||
</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(`
|
||
`).reduce((i,o,s)=>(s!==0&&i.insert(`
|
||
`,{[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(`
|
||
`).reduce((s,a,l)=>(l!==0&&s.insert(`
|
||
`,{[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.parent,i,n,r]}insertColumn(t){const n=this.quill.getSelection();if(!n)return;const[r,i,o]=this.getTable(n);if(o==null)return;const s=o.cellOffset();r.insertColumn(s+t),this.quill.update(Gt.sources.USER);let a=i.rowOffset();t===0&&(a+=1),this.quill.setSelection(n.index+a,n.length,Gt.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const n=this.quill.getSelection();if(!n)return;const[r,i,o]=this.getTable(n);if(o==null)return;const s=i.rowOffset();r.insertRow(s+t),this.quill.update(Gt.sources.USER),t>0?this.quill.setSelection(n,Gt.sources.SILENT):this.quill.setSelection(n.index+i.children.length,n.length,Gt.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,n){const r=this.quill.getSelection();if(r==null)return;const i=new Array(t).fill(0).reduce(o=>{const s=new Array(n).fill(`
|
||
`).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.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(e!=null)if(e.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(n=>{this.quill.scroll.query(n,Xn.INLINE)!=null&&this.quill.format(n,!1,Gt.sources.USER)})}else this.quill.removeFormat(e.index,e.length,Gt.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();e==="rtl"&&t==null?this.quill.format("align","right",Gt.sources.USER):!e&&t==="right"&&this.quill.format("align",!1,Gt.sources.USER),this.quill.format("direction",e,Gt.sources.USER)},indent(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if(e==="+1"||e==="-1"){let i=e==="+1"?1:-1;n.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,Gt.sources.USER)}},link(e){e===!0&&(e=prompt("Enter link URL:")),this.quill.format("link",e,Gt.sources.USER)},list(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t);e==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,Gt.sources.USER):this.quill.format("list","unchecked",Gt.sources.USER):this.quill.format("list",e,Gt.sources.USER)}}};const JJr='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',eei='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',tei='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',nei='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',rei='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',iei='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',oei='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',sei='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',WDe='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',aei='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',lei='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',cei='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',uei='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',dei='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',fei='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',hei='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',gei='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',pei='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',mei='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',vei='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',Cei='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',yei='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',bei='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',Sei='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',wei='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',xei='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',Eei='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',Rei='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',$ei='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',Oei='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',Tei='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',Iei='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',Mei='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',hI={align:{"":JJr,center:eei,right:tei,justify:nei},background:rei,blockquote:iei,bold:oei,clean:sei,code:WDe,"code-block":WDe,color:aei,direction:{"":lei,rtl:cei},formula:uei,header:{1:dei,2:fei,3:hei,4:gei,5:pei,6:mei},italic:vei,image:Cei,indent:{"+1":yei,"-1":bei},link:Sei,list:{bullet:wei,check:xei,ordered:Eei},script:{sub:Rei,super:$ei},strike:Oei,table:Tei,underline:Iei,video:Mei},Pei='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let UDe=0;function qDe(e,t){e.setAttribute(t,`${e.getAttribute(t)!=="true"}`)}class PQ{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),qDe(this.label,"aria-expanded"),qDe(this.options,"aria-hidden")}buildItem(t){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const r=t.getAttribute("value");return r&&n.setAttribute("data-value",r),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(n,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),n}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=Pei,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${UDe}`,UDe+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(n=>{const r=this.buildItem(n);t.appendChild(r),n.selected===!0&&this.selectItem(r)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");t!==r&&(r!=null&&r.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const n=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class fdt extends PQ{constructor(t,n){super(t),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(t){const n=super.buildItem(t);return n.style.backgroundColor=t.getAttribute("value")||"",n}selectItem(t,n){super.selectItem(t,n);const r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class hdt extends PQ{constructor(t,n){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=n[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,n){super.selectItem(t,n);const r=t||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const _ei=e=>{const{overflowY:t}=getComputedStyle(e,null);return t!=="visible"&&t!=="clip"};class gdt{constructor(t,n){this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,_ei(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const n=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let s=0;if(o.right>i.right&&(s=i.right-o.right,this.root.style.left=`${n+s}px`),o.left<i.left&&(s=i.left-o.left,this.root.style.left=`${n+s}px`),o.bottom>i.bottom){const a=o.bottom-o.top,l=t.bottom-t.top+a;this.root.style.top=`${r-l}px`,this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Aei=[!1,"center","right","justify"],Dei=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Lei=[!1,"serif","monospace"],Fei=["1","2","3",!1],Nei=["small",!1,"large","huge"];class D_ extends yx{constructor(t,n){super(t,n);const r=i=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(o=>{o.container.contains(i.target)||o.close()})};t.emitter.listenDOM("click",document.body,r)}addModule(t){const n=super.addModule(t);return t==="toolbar"&&this.extendToolbar(n),n}buildButtons(t,n){Array.from(t).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(o=>{if(o.startsWith("ql-")&&(o=o.slice(3),n[o]!=null))if(o==="direction")r.innerHTML=n[o][""]+n[o].rtl;else if(typeof n[o]=="string")r.innerHTML=n[o];else{const s=r.value||"";s!=null&&n[o][s]&&(r.innerHTML=n[o][s])}})})}buildPickers(t,n){this.pickers=Array.from(t).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&FR(i,Aei),typeof n.align=="object"))return new hdt(i,n.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const o=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&FR(i,Dei,o==="background"?"#ffffff":"#000000"),new fdt(i,n[o])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?FR(i,Lei):i.classList.contains("ql-header")?FR(i,Fei):i.classList.contains("ql-size")&&FR(i,Nei)),new PQ(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(zn.events.EDITOR_CHANGE,r)}}D_.DEFAULTS=I4({},yx.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");e==null&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class pdt extends gdt{constructor(t,n){super(t,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;n!=null?this.textbox.value=n:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,zn.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,zn.sources.USER)),this.quill.root.scrollTop=n;break}case"video":t=kei(t);case"formula":{if(!t)break;const n=this.quill.getSelection(!0);if(n!=null){const r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,zn.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",zn.sources.USER),this.quill.setSelection(r+2,zn.sources.USER)}break}}this.textbox.value="",this.hide()}}function kei(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:e}function FR(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(r=>{const i=document.createElement("option");r===n?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),e.appendChild(i)})}const zei=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class mdt extends pdt{constructor(t,n){super(t,n),this.quill.on(zn.events.EDITOR_CHANGE,(r,i,o,s)=>{if(r===zn.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&s===zn.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(i.index,i.length);if(a.length===1){const l=this.quill.getBounds(i);l!=null&&this.position(l)}else{const l=a[a.length-1],c=this.quill.getIndex(l),u=Math.min(l.length()-1,i.index+i.length-c),f=this.quill.getBounds(new vy(c,u));f!=null&&this.position(f)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(zn.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const n=this.quill.getBounds(t);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(t){const n=super.position(t),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",n!==0&&(r.style.marginLeft=`${-1*n-r.offsetWidth/2}px`),n}}Wt(mdt,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class vdt extends D_{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=zei),super(t,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new mdt(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),hI),this.buildPickers(t.container.querySelectorAll("select"),hI))}}vdt.DEFAULTS=I4({},D_.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Gt.sources.USER)}}}}});const Bei=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Cdt extends pdt{constructor(){super(...arguments);Wt(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",n=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),n.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",n=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,zn.sources.USER),delete this.linkRange}n.preventDefault(),this.hide()}),this.quill.on(zn.events.SELECTION_CHANGE,(n,r,i)=>{if(n!=null){if(n.length===0&&i===zn.sources.USER){const[o,s]=this.quill.scroll.descendant(s4,n.index);if(o!=null){this.linkRange=new vy(n.index-s,o.length());const a=s4.formats(o.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const l=this.quill.getBounds(this.linkRange);l!=null&&this.position(l);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Wt(Cdt,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class ydt extends D_{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Bei),super(t,n),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),hI),this.buildPickers(t.container.querySelectorAll("select"),hI),this.tooltip=new Cdt(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,r)=>{t.handlers.link.call(t,!r.format.link)}))}}ydt.DEFAULTS=I4({},D_.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const t=this.quill.getSelection();if(t==null||t.length===0)return;let n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:r}=this.quill.theme;r.edit("link",n)}else this.quill.format("link",!1,Gt.sources.USER)}}}}});Gt.register({"attributors/attribute/direction":Zut,"attributors/class/align":Yut,"attributors/class/background":rJr,"attributors/class/color":nJr,"attributors/class/direction":Jut,"attributors/class/font":ndt,"attributors/class/size":idt,"attributors/style/align":Xut,"attributors/style/background":g3e,"attributors/style/color":h3e,"attributors/style/direction":edt,"attributors/style/font":rdt,"attributors/style/size":odt},!0);Gt.register({"formats/align":Yut,"formats/direction":Jut,"formats/indent":qJr,"formats/background":g3e,"formats/color":h3e,"formats/font":ndt,"formats/size":idt,"formats/blockquote":Hde,"formats/code-block":Gl,"formats/header":jde,"formats/list":A_,"formats/bold":fI,"formats/code":p3e,"formats/italic":Vde,"formats/link":s4,"formats/script":Gde,"formats/strike":Wde,"formats/underline":Ude,"formats/formula":ok,"formats/image":KJr,"formats/video":sk,"modules/syntax":ddt,"modules/table":XJr,"modules/toolbar":b3e,"themes/bubble":vdt,"themes/snow":ydt,"ui/icons":hI,"ui/picker":PQ,"ui/icon-picker":hdt,"ui/color-picker":fdt,"ui/tooltip":gdt},!0);const Hei=({currentCount:e,maxLength:t,minLength:n=0})=>{const r=()=>e>(t||1/0)?"text-red-500":e<n?"text-amber-500":"text-gray-500";return H.jsxs("div",{className:`
|
||
flex items-center justify-end gap-1
|
||
px-3 py-1.5 text-sm
|
||
${r()}
|
||
transition-colors duration-200
|
||
`,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:["允许类型: ",r.join(", ")]})]}),H.jsxs("div",{className:"px-2 py-0 rounded mt-1",children:[s.map(m=>H.jsxs("div",{className:"flex flex-col gap-1 mb-2",children:[H.jsx("div",{className:"flex items-center gap-2",children:H.jsx("span",{className:"text-sm",children:m.name})}),H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx(eme,{percent:m.status==="done"?100:Math.round((o==null?void 0:o[m.fileKey])||0),status:m.status==="error"?"exception":"active",className:"flex-1"}),m.status==="error"&&H.jsx(Cr,{type:"text",danger:!0,icon:H.jsx(Dg,{}),onClick:v=>{v.stopPropagation(),m.fileKey&&g(m.fileKey)}})]})]},m.fileKey)),l.map(m=>H.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx(cme,{className:"text-green-500"}),H.jsx("span",{className:"text-sm",children:m.name})]}),H.jsx(Cr,{type:"text",danger:!0,icon:H.jsx(Dg,{}),onClick:v=>{v.stopPropagation(),m.fileId&&h(m.fileId)}})]},m.fileId))]})]})})},Gei=({field:e,remove:t,sectionFieldKey:n})=>{var x,E,R;const{attributes:r,listeners:i,setNodeRef:o,transform:s,transition:a,isDragging:l}=iut({id:e==null?void 0:e.id}),{create:c,update:u}=My(),[f]=Rn.useForm(),[h,g]=d.useState(!(e!=null&&e.id)),[p,m]=d.useState(!1),[v,C]=d.useState(!1),y=()=>{C(!v)},b=Rn.useWatch(["meta","type"],f)||rg.ARTICLE,S=async()=>{var O,T,M,_,F,D,k,L,I;try{m(!0);const A=await f.validateFields();let N;const B=((O=A==null?void 0:A.meta)==null?void 0:O.fileIds)||[],z=Array.isArray((T=A==null?void 0:A.meta)==null?void 0:T.videoIds)?(M=A==null?void 0:A.meta)==null?void 0:M.videoIds[0]:typeof((_=A==null?void 0:A.meta)==null?void 0:_.videoIds)=="string"?(F=A==null?void 0:A.meta)==null?void 0:F.videoIds:void 0;console.log(n),e.id?N=await u.mutateAsync({where:{id:e==null?void 0:e.id},data:{parentId:n,title:A==null?void 0:A.title,meta:{type:(L=A==null?void 0:A.meta)==null?void 0:L.type,fileIds:B,videoIds:z?[z]:[],videoUrl:z?`http://${Fs.SERVER_IP}:${Fs.FILE_PORT}/uploads/${z}/stream/index.m3u8`:void 0},resources:((I=[z,...B].filter(Boolean))==null?void 0:I.length)>0?{set:[z,...B].filter(Boolean).map(j=>({fileId:j}))}:void 0,content:A==null?void 0:A.content}}):N=await c.mutateAsync({data:{parentId:n,type:vo.LECTURE,title:A==null?void 0:A.title,meta:{type:(D=A==null?void 0:A.meta)==null?void 0:D.type,fileIds:B,videoIds:z?[z]:[],videoUrl:z?`http://${Fs.SERVER_IP}:${Fs.FILE_PORT}/uploads/${z}/stream/index.m3u8`:void 0},resources:((k=[z,...B].filter(Boolean))==null?void 0:k.length)>0?{connect:[z,...B].filter(Boolean).map(j=>({fileId:j}))}:void 0,content:A==null?void 0:A.content}}),C(!1),sl.success("课时已更新"),e.id=N.id,g(!1)}catch(A){sl.success("更新失败"),console.log(A)}finally{m(!1)}},w={transform:px.Transform.toString(s),transition:a,borderBottom:"1px solid #f0f0f0",backgroundColor:l?"#f5f5f5":void 0};return H.jsxs("div",{ref:o,style:w,className:"p-4",children:[h?H.jsxs(Rn,{form:f,initialValues:e,children:[H.jsxs("div",{className:"flex gap-4",children:[H.jsx(Rn.Item,{name:"title",initialValue:e==null?void 0:e.title,className:"mb-0 flex-1",rules:[{required:!0,message:"请输入课时标题"}],children:H.jsx(Ai,{placeholder:"课时标题"})}),H.jsx(Rn.Item,{name:["meta","type"],className:"mb-0 w-32",rules:[{required:!0}],children:H.jsx(Qf,{placeholder:"选择类型",options:[{label:"视频",value:rg.VIDEO},{label:"文章",value:rg.ARTICLE}]})})]}),H.jsx("div",{className:"mt-4 flex flex-1 ",children:b===rg.VIDEO?H.jsx(Rn.Item,{name:["meta","videoIds"],className:"mb-0 flex-1",rules:[{required:!0,message:"请传入视频"}],children:H.jsx(KDe,{allowTypes:Z7t,multiple:!1})}):H.jsxs("div",{children:[H.jsx(Rn.Item,{name:"content",className:"mb-0 flex-1",rules:[{required:!0,message:"请输入内容"}],children:H.jsx(Vei,{style:{width:"700px"}})}),H.jsx(Rn.Item,{name:["meta","fileIds"],className:"mb-0 flex-1",children:H.jsx(KDe,{multiple:!0})})]})}),H.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[H.jsx(Cr,{onClick:S,loading:p,type:"primary",icon:H.jsx(UV,{}),children:"保存"}),H.jsx(Cr,{onClick:()=>{g(!1),e!=null&&e.id||t()},children:"取消"})]})]}):H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsxs(C4,{children:[H.jsx(ume,{...r,...i,className:"cursor-move"}),v?H.jsx(bYe,{onClick:y}):H.jsx(SYe,{onClick:y}),H.jsx("span",{children:hz[(x=e==null?void 0:e.meta)==null?void 0:x.type]}),H.jsx("span",{children:(e==null?void 0:e.title)||"未命名课时"})]}),H.jsxs(C4,{children:[H.jsx(Cr,{type:"link",onClick:()=>g(!0),children:"编辑"}),H.jsx(Cr,{type:"link",danger:!0,onClick:t,children:"删除"})]})]}),v&&!h&&(((E=e==null?void 0:e.meta)==null?void 0:E.type)===rg.ARTICLE?H.jsxs("div",{children:[H.jsx(_Je,{maxHeight:200,content:e==null?void 0:e.content}),H.jsx("div",{className:"px-6 ",children:H.jsx(DJe,{resources:e==null?void 0:e.resources})})]}):H.jsx(PJe,{src:(R=e==null?void 0:e.meta)==null?void 0:R.videoUrl}))]})},Wei=({field:e,sectionId:t})=>{const{softDeleteByIds:n,updateOrderByIds:r}=My(),{data:i=[],isLoading:o}=an.post.findMany.useQuery({where:{parentId:t,type:vo.LECTURE,deletedAt:null},orderBy:{order:"asc"},select:XHe},{enabled:!!t}),[s,a]=d.useState(i);d.useEffect(()=>{o||a(i)},[i,o]);const l=Dct(oH(vQ),oH(mQ,{coordinateGetter:out})),c=u=>{const{active:f,over:h}=u;if(!h||f.id===h.id)return;let g=[];a(p=>{const m=p.findIndex(C=>C.id===f.id),v=p.findIndex(C=>C.id===h.id);return g=bQ(p,m,v),g}),r.mutateAsync({ids:g.map(p=>p.id)})};return H.jsxs("div",{className:"pl-8",children:[H.jsx(Qct,{sensors:l,collisionDetection:kct,onDragEnd:c,children:H.jsx(nut,{items:s,strategy:Jct,children:s.map(u=>H.jsx(Gei,{field:u,remove:async()=>{u!=null&&u.id&&await n.mutateAsync({ids:[u.id]}),a(i)},sectionFieldKey:t},u.id))})}),H.jsx(Cr,{type:"dashed",block:!0,icon:H.jsx(Zf,{}),className:"mt-4",onClick:()=>{s.some(u=>u.id===null)?sl.error("请先保存当前编辑中的课时!"):a(u=>[...u.filter(f=>!!f.id),{id:null,title:"",meta:{type:rg.ARTICLE}}])},children:"添加课时"})]})},Uei=()=>{const{editId:e}=hG(),t=Dct(oH(vQ),oH(mQ,{coordinateGetter:out})),{softDeleteByIds:n,updateOrderByIds:r}=My(),{data:i=[],isLoading:o}=an.post.findMany.useQuery({where:{parentId:e,type:vo.SECTION,deletedAt:null},orderBy:{order:"asc"}},{enabled:!!e}),[s,a]=d.useState(i);d.useEffect(()=>{i&&!o&&a(i)},[i]);const l=c=>{const{active:u,over:f}=c;if(!f||u.id===f.id)return;let h=[];a(g=>{const p=g.findIndex(v=>v.id===u.id),m=g.findIndex(v=>v.id===f.id);return h=bQ(g,p,m),h}),r.mutateAsync({ids:h.map(g=>g.id)})};return H.jsxs("div",{className:"max-w-4xl mx-auto p-6",children:[H.jsx(Bqr,{}),s.length===0?H.jsx(Hqr,{}):H.jsx(Qct,{sensors:t,collisionDetection:kct,onDragEnd:l,children:H.jsx(nut,{items:s,strategy:Jct,children:s==null?void 0:s.map((c,u)=>H.jsx(jqr,{courseId:e,field:c,remove:async()=>{c!=null&&c.id&&await n.mutateAsync({ids:[c.id]}),a(i)},children:H.jsx(Wei,{field:c,sectionId:c.id})},c.id))})}),H.jsx(Cr,{type:"dashed",block:!0,icon:H.jsx(Zf,{}),className:"mt-4",onClick:()=>{s.some(c=>c.id===null)?sl.error("请先保存当前编辑的章节"):a([...s,{id:null,title:""}])},children:"添加章节"})]})},{Title:qei}=Kg;t$.DRAFT+"",t$.UNDER_REVIEW+"",t$.PUBLISHED+"",t$.ARCHIVED+"";function Kei(){const e=Gs();Wi();const{onSubmit:t,course:n,form:r}=hG(),i=()=>{try{r.validateFields().then(o=>{t(o)})}catch(o){console.log(o)}};return H.jsx("header",{className:"fixed top-0 left-0 right-0 h-16 bg-white border-b border-gray-200 z-10",children:H.jsxs("div",{className:"h-full flex items-center justify-between px-3 md:px-4",children:[H.jsxs("div",{className:"flex items-center space-x-3",children:[H.jsx(Cr,{icon:H.jsx(mYe,{}),onClick:()=>{n!=null&&n.id?e(`/course/${n==null?void 0:n.id}/detail`):e("/")},type:"text"}),H.jsx("div",{className:"flex items-center space-x-2",children:H.jsx(qei,{level:4,style:{margin:0},children:(n==null?void 0:n.title)||"新建课程"})})]}),H.jsx(Cr,{type:"primary",onClick:i,children:"保存"})]})})}function Yei({isHovered:e,setIsHovered:t,navItems:n,selectedSection:r,onNavigate:i}){const{editId:o}=hG();return H.jsx(mc.nav,{animate:{width:"16rem"},transition:{type:"spring",stiffness:300,damping:40},className:"fixed left-0 top-16 h-[calc(100vh-4rem)] bg-white border-r border-gray-200 shadow-lg overflow-x-hidden",children:H.jsx("div",{className:"p-4",children:n.map((s,a)=>H.jsxs("button",{type:"button",onClick:l=>{!o&&!s.isInitialized?(l.preventDefault(),sl.error("请先完成课程概述填写并保存")):(l.preventDefault(),i(s,a))},className:`w-full flex ${e?"items-center":"justify-center"} px-5 py-2.5 mb-1 rounded-lg transition-all duration-200 ${r===a?"bg-blue-50 text-blue-600 shadow-sm":"text-gray-600 hover:bg-gray-50"}`,children:[H.jsx("span",{className:"flex-shrink-0",children:s.icon}),H.jsx(H.Fragment,{children:H.jsx("span",{className:"ml-3 font-medium flex-1 truncate",children:s.label})})]},a))})})}const YDe=e=>[{label:"课程概述",icon:H.jsx(BJe,{className:"w-5 h-5"}),path:`/course/${e?`${e}/`:""}editor`,isInitialized:!0},{label:"课程内容",icon:H.jsx(SVn,{className:"w-5 h-5"}),path:`/course/${e?`${e}/`:""}editor/content`,isInitialized:!1}];function Xei(){var c;const{id:e}=Z0(),[t,n]=d.useState(!1),[r,i]=d.useState(0),[o,s]=d.useState(YDe(e));d.useEffect(()=>{s(YDe(e))},[e]),d.useEffect(()=>{const u=location.pathname,f=o.findIndex(h=>h.path===u);f!==-1&&i(f)},[location.pathname,o]);const a=Gs(),l=(u,f)=>{i(f),a(u.path)};return H.jsx(_Vn,{editId:e,children:H.jsxs("div",{className:"min-h-screen bg-gray-50",children:[H.jsx(Kei,{}),H.jsxs("div",{className:"flex pt-16",children:[H.jsx(Yei,{isHovered:t,setIsHovered:n,navItems:o,selectedSection:r,onNavigate:l}),H.jsx(mc.main,{animate:{marginLeft:"16rem"},transition:{type:"spring",stiffness:200,damping:25,mass:1},className:"flex-1 p-8",children:H.jsxs("div",{className:"max-w-6xl mx-auto bg-white rounded-xl shadow-lg",children:[H.jsx("header",{className:"p-6 border-b border-gray-100",children:H.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:(c=o[r])==null?void 0:c.label})}),H.jsx("div",{className:"p-6",children:H.jsx(Dhe,{})})]})})]})]})})}function Qei(e,t){d.useEffect(()=>{function n(r){e.current&&!e.current.contains(r.target)&&t()}return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[e,t])}function XDe({src:e,name:t="",size:n=40,className:r=""}){const i=d.useMemo(()=>t.split(/\s+|(?=[A-Z])/).map(s=>s[0]).slice(0,2).join("").toUpperCase(),[t]),o=d.useMemo(()=>{let s=0;for(let l=0;l<t.length;l++)s=t.charCodeAt(l)+((s<<5)-s);return`hsl(${s%360}, 70%, 50%)`},[t]);return H.jsx("div",{className:`relative rounded-full overflow-hidden ${r}`,style:{width:n,height:n},children:e?H.jsx("img",{src:e,alt:t,className:"w-full h-full object-cover"}):H.jsx("div",{className:"w-full h-full flex items-center justify-center text-white font-medium",style:{backgroundColor:o},children:H.jsx("span",{style:{fontSize:`${n*.4}px`},children:i})})})}function Zei(){const{user:e}=Wi(),{create:t,update:n}=Nx(),{formLoading:r,modalOpen:i,setModalOpen:o,domainId:s,setDomainId:a,form:l,setFormLoading:c}=d.useContext(S3e),{data:u,isLoading:f}=an.staff.findFirst.useQuery({where:{id:e==null?void 0:e.id}},{enabled:!!(e!=null&&e.id)});Wi();async function h(g){const{username:p,showname:m,deptId:v,domainId:C,password:y,phoneNumber:b,officerId:S,enabled:w,avatar:x,photoUrl:E,email:R,rank:O,office:T}=g;c(!0);try{u&&(e!=null&&e.id)&&await n.mutateAsync({where:{id:u.id},data:{username:p,deptId:v,showname:m,domainId:C,password:y,phoneNumber:b,officerId:S,enabled:w,avatar:x}}),sl.success("提交成功"),o(!1)}catch(M){sl.error(M.message)}finally{c(!1)}}return d.useEffect(()=>{l.resetFields(),console.log("cc",u),u&&(l.setFieldValue("username",u.username),l.setFieldValue("showname",u.showname),l.setFieldValue("domainId",u.domainId),l.setFieldValue("deptId",u.deptId),l.setFieldValue("officerId",u.officerId),l.setFieldValue("phoneNumber",u.phoneNumber),l.setFieldValue("enabled",u.enabled),l.setFieldValue("avatar",u.avatar))},[u]),H.jsxs("div",{className:"relative",children:[f&&H.jsx("div",{className:"absolute h-full inset-0 flex items-center justify-center bg-white bg-opacity-50 z-10",children:H.jsx(iv,{})}),H.jsx(Rn,{disabled:f,form:l,layout:"vertical",requiredMark:"optional",autoComplete:"off",onFinish:h,children:H.jsxs("div",{className:" flex items-center gap-4 mb-2",children:[H.jsx("div",{children:H.jsx(Rn.Item,{name:"avatar",label:"头像",noStyle:!0,children:H.jsx(hQ,{placeholder:"点击上传头像",className:"rounded-lg",style:{width:"120px",height:"150px"}})})}),H.jsxs("div",{className:"grid grid-cols-1 gap-2 flex-1",children:[H.jsx(Rn.Item,{noStyle:!0,rules:[{required:!0}],name:"showname",label:"名称",children:H.jsx(Ai,{placeholder:"请输入姓名",allowClear:!0,autoComplete:"new-name",spellCheck:!1})}),H.jsx(Rn.Item,{name:"domainId",label:"所属域",noStyle:!0,rules:[{required:!0}],children:H.jsx(bu,{placeholder:"选择域",onChange:g=>{a(g)},domain:!0})}),H.jsx(Rn.Item,{noStyle:!0,name:"deptId",label:"所属单位",rules:[{required:!0}],children:H.jsx(bu,{rootId:s})}),H.jsx(Rn.Item,{noStyle:!0,label:"密码",name:"password",children:H.jsx(Ai.Password,{placeholder:"修改密码",spellCheck:!1,visibilityToggle:!0,autoComplete:"new-password"})})]})]})})]})}function Jei(){const{formLoading:e,modalOpen:t,setModalOpen:n,form:r}=d.useContext(S3e),i=()=>{r.submit()};return H.jsx(la,{width:400,onOk:i,centered:!0,open:t,confirmLoading:e,onCancel:()=>{n(!1)},title:"编辑个人信息",children:H.jsx(Zei,{})})}const eti={hidden:{opacity:0,scale:.95,y:-10},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:30}},exit:{opacity:0,scale:.95,y:-10,transition:{duration:.2}}},S3e=d.createContext({modalOpen:!1,domainId:void 0,setDomainId:void 0,setModalOpen:void 0,form:void 0,formLoading:void 0,setFormLoading:void 0});function tti(){const[e]=F0(),[t,n]=d.useState(),[r,i]=d.useState(!1),o=d.useRef(null),{user:s,logout:a,isLoading:l,hasSomePermissions:c}=Wi(),u=Gs();Qei(o,()=>i(!1));const[f,h]=d.useState(!1),[g,p]=d.useState(),m=d.useCallback(()=>{i(b=>!b)},[]),v=d.useMemo(()=>c(Ki.MANAGE_ANY_STAFF),[s]),C=d.useMemo(()=>[{icon:H.jsx(fM,{className:"text-lg"}),label:"个人信息",action:()=>{h(!0)}},v&&{icon:H.jsx(pme,{className:"text-lg"}),label:"设置",action:()=>{u("/admin/staff")}},{icon:H.jsx(VYe,{className:"text-lg"}),label:"注销",action:()=>a()}].filter(Boolean),[a]),y=d.useCallback(b=>{b(),i(!1)},[]);return l?H.jsx("div",{className:"flex items-center justify-center w-10 h-10",children:H.jsx(iv,{size:"small"})}):H.jsxs(S3e.Provider,{value:{formLoading:t,setFormLoading:n,form:e,domainId:g,modalOpen:f,setDomainId:p,setModalOpen:h},children:[H.jsxs("div",{ref:o,className:"relative",children:[H.jsx(mc.button,{"aria-label":"用户菜单","aria-haspopup":"true","aria-expanded":r,"aria-controls":"user-menu",whileHover:{scale:1.02},whileTap:{scale:.98},onClick:m,className:"flex items-center rounded-full transition-all duration-200 ease-in-out",children:H.jsxs("div",{className:"relative",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 hover:ring-[#00538E]/90
|
||
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
|
||
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
|
||
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
|
||
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
|
||
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
|
||
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",{className:"flex items-center justify-center md:justify-end space-x-4",children:[H.jsx("a",{href:"https://27.57.72.21",className:"text-gray-400 hover:text-white transition-colors",title:"访问门户网站",children:H.jsx(kYe,{className:"text-lg"})}),H.jsx("a",{href:"https://27.57.72.14",className:"text-gray-400 hover:text-white transition-colors",title:"访问烽火青云",children:H.jsx(xYe,{className:"text-lg"})}),H.jsx("a",{href:"http://27.57.72.38",className:"text-gray-400 hover:text-white transition-colors",title:"访问烽火律询",children:H.jsx(_Ye,{className:"text-lg"})})]})})]}),H.jsx("div",{className:"border-t border-gray-700/50 mt-4 pt-4 text-center",children:H.jsxs("p",{className:"text-gray-400 text-xs",children:["© ",new Date().getFullYear()," 南天烽火. All rights reserved."]})})]})})}const{Content:oti}=Mm;function sti(){return H.jsx(h_n,{children:H.jsxs("div",{className:" min-h-screen bg-gray-100",children:[H.jsx(rti,{}),H.jsx(oti,{className:" flex-grow pt-16 bg-gray-50 ",children:H.jsx(Dhe,{})}),H.jsx(iti,{})]})})}function ati({value:e,onChange:t,className:n,taxonomyId:r,domainId:i=void 0,style:o}){const{data:s,isLoading:a}=an.term.findMany.useQuery({where:{taxonomyId:r,parentId:null,domainId:i}}),l=c=>{t&&t(c)};return H.jsx("div",{className:n,style:o,children:a?H.jsx(yu,{paragraph:{rows:4}}):H.jsx(BC.Group,{value:e,onChange:l,children:s==null?void 0:s.map(c=>H.jsx("div",{className:"w-full h-9 p-2 my-1",children:H.jsx(BC,{className:"text-base text-slate-700",value:c.id,children:c.name})},c.id))})})}function lti(){const{searchMode:e,setSearchMode:t}=ca(),n=r=>{t(r.target.value)};return H.jsxs(C4,{direction:"vertical",align:"start",className:"mb-2",children:[H.jsx("h3",{className:"text-lg font-medium mb-4",children:"只搜索"}),H.jsxs(M8.Group,{value:e,onChange:n,buttonStyle:"solid",children:[H.jsx(M8.Button,{value:vo.COURSE,children:"视频课程"}),H.jsx(M8.Button,{value:vo.PATH,children:"思维导图"}),H.jsx(M8.Button,{value:"both",children:"所有资源"})]})]})}function cti(){const{data:e}=an.taxonomy.getAll.useQuery({}),{selectedTerms:t,setSelectedTerms:n,showSearchMode:r}=ca(),i=(o,s)=>{n({...t,[o]:s})};return H.jsxs("div",{className:" flex z-0 p-6 flex-col mt-4 space-y-6 overscroll-contain overflow-x-hidden",children:[r&&H.jsx(lti,{}),e==null?void 0:e.map((o,s)=>{var l;const a=(l=Object.entries(t).find(([c,u])=>c===o.slug))==null?void 0:l[1];return H.jsxs("div",{children:[H.jsx("h3",{className:"text-lg font-medium mb-4",children:o==null?void 0:o.name}),H.jsx(ati,{value:a,className:"w-70 max-h-[400px] overscroll-contain overflow-x-hidden",onChange:c=>i(o==null?void 0:o.slug,c),taxonomyId:o==null?void 0:o.id}),H.jsx(Kjt,{})]},s)})]})}function _b({children:e,showSearchMode:t=!1}){const{setShowSearchMode:n}=ca();return d.useEffect(()=>{n(t)},[t]),H.jsx(H.Fragment,{children:H.jsx("div",{className:"min-h-screen bg-gray-50",children:H.jsxs("div",{className:" flex",children:[H.jsx("div",{className:"w-1/6",children:H.jsx(cti,{})}),H.jsx("div",{className:"w-5/6 p-4 py-8",children:e})]})})})}function uti(){const{searchCondition:e,termsCondition:t}=ca();return H.jsx(H.Fragment,{children:H.jsx(x3,{renderItem:n=>H.jsx(mM,{post:n}),params:{pageSize:12,where:{type:vo.COURSE,...t,...e}},cols:4})})}function dti(){const{setSearchMode:e}=ca();return d.useEffect(()=>{e(vo.COURSE)},[e]),H.jsx(H.Fragment,{children:H.jsx(_b,{children:H.jsx(uti,{})})})}function fti(){const{searchCondition:e,termsCondition:t}=ca();return H.jsx(H.Fragment,{children:H.jsx(x3,{renderItem:n=>H.jsx(pM,{post:n}),params:{pageSize:12,where:{type:vo.PATH,...t,...e}},cols:4})})}function hti(){const{setSearchMode:e}=ca();return d.useEffect(()=>{e(vo.PATH)},[e]),Z0(),H.jsx(_b,{children:H.jsx(fti,{})})}var gH={exports:{}};/**
|
||
* @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
|
||
*/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]=ki[Fe]=ki[ke]=ki[Ye]=ki[ze]=ki[Re]=ki[Le]=ki[Me]=ki[be]=!0,ki[K]=ki[q]=ki[Ue]=ki[Q]=ki[We]=ki[te]=ki[Z]=ki[ee]=ki[oe]=ki[le]=ki[he]=ki[ve]=ki[de]=ki[xe]=ki[Be]=!1;var Ci={};Ci[K]=Ci[q]=Ci[Ue]=Ci[We]=Ci[Q]=Ci[te]=Ci[Ve]=Ci[Fe]=Ci[ke]=Ci[Ye]=Ci[ze]=Ci[oe]=Ci[le]=Ci[he]=Ci[ve]=Ci[de]=Ci[xe]=Ci[Ee]=Ci[Re]=Ci[Le]=Ci[Me]=Ci[be]=!0,Ci[Z]=Ci[ee]=Ci[Be]=!1;var ae={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Pe={"&":"&","<":"<",">":">",'"':""","'":"'"},Qe={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ht={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tr=parseFloat,Qn=parseInt,yi=typeof Jo=="object"&&Jo&&Jo.Object===Object&&Jo,bi=typeof self=="object"&&self&&self.Object===Object&&self,ai=yi||bi||Function("return this")(),Ti=t&&!t.nodeType&&t,Fo=Ti&&!0&&e&&!e.nodeType&&e,Ha=Fo&&Fo.exports===Ti,Vo=Ha&&yi.process,Qi=function(){try{var ht=Fo&&Fo.require&&Fo.require("util").types;return ht||Vo&&Vo.binding&&Vo.binding("util")}catch{}}(),Ts=Qi&&Qi.isArrayBuffer,Ch=Qi&&Qi.isDate,Fd=Qi&&Qi.isMap,fp=Qi&&Qi.isRegExp,vE=Qi&&Qi.isSet,p6=Qi&&Qi.isTypedArray;function ma(ht,Vt,Pt){switch(Pt.length){case 0:return ht.call(Vt);case 1:return ht.call(Vt,Pt[0]);case 2:return ht.call(Vt,Pt[0],Pt[1]);case 3:return ht.call(Vt,Pt[0],Pt[1],Pt[2])}return ht.apply(Vt,Pt)}function qpt(ht,Vt,Pt,Fn){for(var Dr=-1,Hi=ht==null?0:ht.length;++Dr<Hi;){var Ks=ht[Dr];Vt(Fn,Ks,Pt(Ks),ht)}return Fn}function Nd(ht,Vt){for(var Pt=-1,Fn=ht==null?0:ht.length;++Pt<Fn&&Vt(ht[Pt],Pt,ht)!==!1;);return ht}function Kpt(ht,Vt){for(var Pt=ht==null?0:ht.length;Pt--&&Vt(ht[Pt],Pt,ht)!==!1;);return ht}function V6e(ht,Vt){for(var Pt=-1,Fn=ht==null?0:ht.length;++Pt<Fn;)if(!Vt(ht[Pt],Pt,ht))return!1;return!0}function $v(ht,Vt){for(var Pt=-1,Fn=ht==null?0:ht.length,Dr=0,Hi=[];++Pt<Fn;){var Ks=ht[Pt];Vt(Ks,Pt,ht)&&(Hi[Dr++]=Ks)}return Hi}function tA(ht,Vt){var Pt=ht==null?0:ht.length;return!!Pt&&zb(ht,Vt,0)>-1}function CZ(ht,Vt,Pt){for(var Fn=-1,Dr=ht==null?0:ht.length;++Fn<Dr;)if(Pt(Vt,ht[Fn]))return!0;return!1}function No(ht,Vt){for(var Pt=-1,Fn=ht==null?0:ht.length,Dr=Array(Fn);++Pt<Fn;)Dr[Pt]=Vt(ht[Pt],Pt,ht);return Dr}function Ov(ht,Vt){for(var Pt=-1,Fn=Vt.length,Dr=ht.length;++Pt<Fn;)ht[Dr+Pt]=Vt[Pt];return ht}function yZ(ht,Vt,Pt,Fn){var Dr=-1,Hi=ht==null?0:ht.length;for(Fn&&Hi&&(Pt=ht[++Dr]);++Dr<Hi;)Pt=Vt(Pt,ht[Dr],Dr,ht);return Pt}function Ypt(ht,Vt,Pt,Fn){var Dr=ht==null?0:ht.length;for(Fn&&Dr&&(Pt=ht[--Dr]);Dr--;)Pt=Vt(Pt,ht[Dr],Dr,ht);return Pt}function bZ(ht,Vt){for(var Pt=-1,Fn=ht==null?0:ht.length;++Pt<Fn;)if(Vt(ht[Pt],Pt,ht))return!0;return!1}var Xpt=SZ("length");function Qpt(ht){return ht.split("")}function Zpt(ht){return ht.match(st)||[]}function G6e(ht,Vt,Pt){var Fn;return Pt(ht,function(Dr,Hi,Ks){if(Vt(Dr,Hi,Ks))return Fn=Hi,!1}),Fn}function nA(ht,Vt,Pt,Fn){for(var Dr=ht.length,Hi=Pt+(Fn?1:-1);Fn?Hi--:++Hi<Dr;)if(Vt(ht[Hi],Hi,ht))return Hi;return-1}function zb(ht,Vt,Pt){return Vt===Vt?umt(ht,Vt,Pt):nA(ht,W6e,Pt)}function Jpt(ht,Vt,Pt,Fn){for(var Dr=Pt-1,Hi=ht.length;++Dr<Hi;)if(Fn(ht[Dr],Vt))return Dr;return-1}function W6e(ht){return ht!==ht}function U6e(ht,Vt){var Pt=ht==null?0:ht.length;return Pt?xZ(ht,Vt)/Pt:B}function SZ(ht){return function(Vt){return Vt==null?n:Vt[ht]}}function wZ(ht){return function(Vt){return ht==null?n:ht[Vt]}}function q6e(ht,Vt,Pt,Fn,Dr){return Dr(ht,function(Hi,Ks,po){Pt=Fn?(Fn=!1,Hi):Vt(Pt,Hi,Ks,po)}),Pt}function emt(ht,Vt){var Pt=ht.length;for(ht.sort(Vt);Pt--;)ht[Pt]=ht[Pt].value;return ht}function xZ(ht,Vt){for(var Pt,Fn=-1,Dr=ht.length;++Fn<Dr;){var Hi=Vt(ht[Fn]);Hi!==n&&(Pt=Pt===n?Hi:Pt+Hi)}return Pt}function EZ(ht,Vt){for(var Pt=-1,Fn=Array(ht);++Pt<ht;)Fn[Pt]=Vt(Pt);return Fn}function tmt(ht,Vt){return No(Vt,function(Pt){return[Pt,ht[Pt]]})}function K6e(ht){return ht&&ht.slice(0,Z6e(ht)+1).replace(He,"")}function Ou(ht){return function(Vt){return ht(Vt)}}function RZ(ht,Vt){return No(Vt,function(Pt){return ht[Pt]})}function CE(ht,Vt){return ht.has(Vt)}function Y6e(ht,Vt){for(var Pt=-1,Fn=ht.length;++Pt<Fn&&zb(Vt,ht[Pt],0)>-1;);return Pt}function X6e(ht,Vt){for(var Pt=ht.length;Pt--&&zb(Vt,ht[Pt],0)>-1;);return Pt}function nmt(ht,Vt){for(var Pt=ht.length,Fn=0;Pt--;)ht[Pt]===Vt&&++Fn;return Fn}var rmt=wZ(ae),imt=wZ(Pe);function omt(ht){return"\\"+Ht[ht]}function smt(ht,Vt){return ht==null?n:ht[Vt]}function Bb(ht){return yo.test(ht)}function amt(ht){return vi.test(ht)}function lmt(ht){for(var Vt,Pt=[];!(Vt=ht.next()).done;)Pt.push(Vt.value);return Pt}function $Z(ht){var Vt=-1,Pt=Array(ht.size);return ht.forEach(function(Fn,Dr){Pt[++Vt]=[Dr,Fn]}),Pt}function Q6e(ht,Vt){return function(Pt){return ht(Vt(Pt))}}function Tv(ht,Vt){for(var Pt=-1,Fn=ht.length,Dr=0,Hi=[];++Pt<Fn;){var Ks=ht[Pt];(Ks===Vt||Ks===u)&&(ht[Pt]=u,Hi[Dr++]=Pt)}return Hi}function rA(ht){var Vt=-1,Pt=Array(ht.size);return ht.forEach(function(Fn){Pt[++Vt]=Fn}),Pt}function cmt(ht){var Vt=-1,Pt=Array(ht.size);return ht.forEach(function(Fn){Pt[++Vt]=[Fn,Fn]}),Pt}function umt(ht,Vt,Pt){for(var Fn=Pt-1,Dr=ht.length;++Fn<Dr;)if(ht[Fn]===Vt)return Fn;return-1}function dmt(ht,Vt,Pt){for(var Fn=Pt+1;Fn--;)if(ht[Fn]===Vt)return Fn;return Fn}function Hb(ht){return Bb(ht)?hmt(ht):Xpt(ht)}function yh(ht){return Bb(ht)?gmt(ht):Qpt(ht)}function Z6e(ht){for(var Vt=ht.length;Vt--&&it.test(ht.charAt(Vt)););return Vt}var fmt=wZ(Qe);function hmt(ht){for(var Vt=er.lastIndex=0;er.test(ht);)++Vt;return Vt}function gmt(ht){return ht.match(er)||[]}function pmt(ht){return ht.match(Ni)||[]}var mmt=function ht(Vt){Vt=Vt==null?ai:jb.defaults(ai.Object(),Vt,jb.pick(ai,mh));var Pt=Vt.Array,Fn=Vt.Date,Dr=Vt.Error,Hi=Vt.Function,Ks=Vt.Math,po=Vt.Object,OZ=Vt.RegExp,vmt=Vt.String,kd=Vt.TypeError,iA=Pt.prototype,Cmt=Hi.prototype,Vb=po.prototype,oA=Vt["__core-js_shared__"],sA=Cmt.toString,Zi=Vb.hasOwnProperty,ymt=0,J6e=function(){var $=/[^.]+$/.exec(oA&&oA.keys&&oA.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}(),aA=Vb.toString,bmt=sA.call(po),Smt=ai._,wmt=OZ("^"+sA.call(Zi).replace(Te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lA=Ha?Vt.Buffer:n,Iv=Vt.Symbol,cA=Vt.Uint8Array,e8e=lA?lA.allocUnsafe:n,uA=Q6e(po.getPrototypeOf,po),t8e=po.create,n8e=Vb.propertyIsEnumerable,dA=iA.splice,r8e=Iv?Iv.isConcatSpreadable:n,yE=Iv?Iv.iterator:n,m6=Iv?Iv.toStringTag:n,fA=function(){try{var $=S6(po,"defineProperty");return $({},"",{}),$}catch{}}(),xmt=Vt.clearTimeout!==ai.clearTimeout&&Vt.clearTimeout,Emt=Fn&&Fn.now!==ai.Date.now&&Fn.now,Rmt=Vt.setTimeout!==ai.setTimeout&&Vt.setTimeout,hA=Ks.ceil,gA=Ks.floor,TZ=po.getOwnPropertySymbols,$mt=lA?lA.isBuffer:n,i8e=Vt.isFinite,Omt=iA.join,Tmt=Q6e(po.keys,po),Ys=Ks.max,Cl=Ks.min,Imt=Fn.now,Mmt=Vt.parseInt,o8e=Ks.random,Pmt=iA.reverse,IZ=S6(Vt,"DataView"),bE=S6(Vt,"Map"),MZ=S6(Vt,"Promise"),Gb=S6(Vt,"Set"),SE=S6(Vt,"WeakMap"),wE=S6(po,"create"),pA=SE&&new SE,Wb={},_mt=w6(IZ),Amt=w6(bE),Dmt=w6(MZ),Lmt=w6(Gb),Fmt=w6(SE),mA=Iv?Iv.prototype:n,xE=mA?mA.valueOf:n,s8e=mA?mA.toString:n;function Ie($){if(is($)&&!Fr($)&&!($ instanceof fi)){if($ instanceof zd)return $;if(Zi.call($,"__wrapped__"))return aCe($)}return new zd($)}var Ub=function(){function $(){}return function(P){if(!Go(P))return{};if(t8e)return t8e(P);$.prototype=P;var U=new $;return $.prototype=n,U}}();function vA(){}function zd($,P){this.__wrapped__=$,this.__actions__=[],this.__chain__=!!P,this.__index__=0,this.__values__=n}Ie.templateSettings={escape:wt,evaluate:It,interpolate:Ct,variable:"",imports:{_:Ie}},Ie.prototype=vA.prototype,Ie.prototype.constructor=Ie,zd.prototype=Ub(vA.prototype),zd.prototype.constructor=zd;function fi($){this.__wrapped__=$,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function Nmt(){var $=new fi(this.__wrapped__);return $.__actions__=Ic(this.__actions__),$.__dir__=this.__dir__,$.__filtered__=this.__filtered__,$.__iteratees__=Ic(this.__iteratees__),$.__takeCount__=this.__takeCount__,$.__views__=Ic(this.__views__),$}function kmt(){if(this.__filtered__){var $=new fi(this);$.__dir__=-1,$.__filtered__=!0}else $=this.clone(),$.__dir__*=-1;return $}function zmt(){var $=this.__wrapped__.value(),P=this.__dir__,U=Fr($),re=P<0,me=U?$.length:0,Ae=Q1t(0,me,this.__views__),qe=Ae.start,et=Ae.end,vt=et-qe,Ut=re?et:qe-1,qt=this.__iteratees__,en=qt.length,$n=0,Kn=Cl(vt,this.__takeCount__);if(!U||!re&&me==vt&&Kn==vt)return M8e($,this.__actions__);var pr=[];e:for(;vt--&&$n<Kn;){Ut+=P;for(var Qr=-1,mr=$[Ut];++Qr<en;){var ci=qt[Qr],Si=ci.iteratee,Mu=ci.type,tc=Si(mr);if(Mu==k)mr=tc;else if(!tc){if(Mu==D)continue e;break e}}pr[$n++]=mr}return pr}fi.prototype=Ub(vA.prototype),fi.prototype.constructor=fi;function v6($){var P=-1,U=$==null?0:$.length;for(this.clear();++P<U;){var re=$[P];this.set(re[0],re[1])}}function Bmt(){this.__data__=wE?wE(null):{},this.size=0}function Hmt($){var P=this.has($)&&delete this.__data__[$];return this.size-=P?1:0,P}function jmt($){var P=this.__data__;if(wE){var U=P[$];return U===l?n:U}return Zi.call(P,$)?P[$]:n}function Vmt($){var P=this.__data__;return wE?P[$]!==n:Zi.call(P,$)}function Gmt($,P){var U=this.__data__;return this.size+=this.has($)?0:1,U[$]=wE&&P===n?l:P,this}v6.prototype.clear=Bmt,v6.prototype.delete=Hmt,v6.prototype.get=jmt,v6.prototype.has=Vmt,v6.prototype.set=Gmt;function d1($){var P=-1,U=$==null?0:$.length;for(this.clear();++P<U;){var re=$[P];this.set(re[0],re[1])}}function Wmt(){this.__data__=[],this.size=0}function Umt($){var P=this.__data__,U=CA(P,$);if(U<0)return!1;var re=P.length-1;return U==re?P.pop():dA.call(P,U,1),--this.size,!0}function qmt($){var P=this.__data__,U=CA(P,$);return U<0?n:P[U][1]}function Kmt($){return CA(this.__data__,$)>-1}function Ymt($,P){var U=this.__data__,re=CA(U,$);return re<0?(++this.size,U.push([$,P])):U[re][1]=P,this}d1.prototype.clear=Wmt,d1.prototype.delete=Umt,d1.prototype.get=qmt,d1.prototype.has=Kmt,d1.prototype.set=Ymt;function f1($){var P=-1,U=$==null?0:$.length;for(this.clear();++P<U;){var re=$[P];this.set(re[0],re[1])}}function Xmt(){this.size=0,this.__data__={hash:new v6,map:new(bE||d1),string:new v6}}function Qmt($){var P=MA(this,$).delete($);return this.size-=P?1:0,P}function Zmt($){return MA(this,$).get($)}function Jmt($){return MA(this,$).has($)}function e1t($,P){var U=MA(this,$),re=U.size;return U.set($,P),this.size+=U.size==re?0:1,this}f1.prototype.clear=Xmt,f1.prototype.delete=Qmt,f1.prototype.get=Zmt,f1.prototype.has=Jmt,f1.prototype.set=e1t;function C6($){var P=-1,U=$==null?0:$.length;for(this.__data__=new f1;++P<U;)this.add($[P])}function t1t($){return this.__data__.set($,l),this}function n1t($){return this.__data__.has($)}C6.prototype.add=C6.prototype.push=t1t,C6.prototype.has=n1t;function bh($){var P=this.__data__=new d1($);this.size=P.size}function r1t(){this.__data__=new d1,this.size=0}function i1t($){var P=this.__data__,U=P.delete($);return this.size=P.size,U}function o1t($){return this.__data__.get($)}function s1t($){return this.__data__.has($)}function a1t($,P){var U=this.__data__;if(U instanceof d1){var re=U.__data__;if(!bE||re.length<i-1)return re.push([$,P]),this.size=++U.size,this;U=this.__data__=new f1(re)}return U.set($,P),this.size=U.size,this}bh.prototype.clear=r1t,bh.prototype.delete=i1t,bh.prototype.get=o1t,bh.prototype.has=s1t,bh.prototype.set=a1t;function a8e($,P){var U=Fr($),re=!U&&x6($),me=!U&&!re&&Dv($),Ae=!U&&!re&&!me&&Xb($),qe=U||re||me||Ae,et=qe?EZ($.length,vmt):[],vt=et.length;for(var Ut in $)(P||Zi.call($,Ut))&&!(qe&&(Ut=="length"||me&&(Ut=="offset"||Ut=="parent")||Ae&&(Ut=="buffer"||Ut=="byteLength"||Ut=="byteOffset")||m1(Ut,vt)))&&et.push(Ut);return et}function l8e($){var P=$.length;return P?$[HZ(0,P-1)]:n}function l1t($,P){return PA(Ic($),y6(P,0,$.length))}function c1t($){return PA(Ic($))}function PZ($,P,U){(U!==n&&!Sh($[P],U)||U===n&&!(P in $))&&h1($,P,U)}function EE($,P,U){var re=$[P];(!(Zi.call($,P)&&Sh(re,U))||U===n&&!(P in $))&&h1($,P,U)}function CA($,P){for(var U=$.length;U--;)if(Sh($[U][0],P))return U;return-1}function u1t($,P,U,re){return Mv($,function(me,Ae,qe){P(re,me,U(me),qe)}),re}function c8e($,P){return $&&gp(P,va(P),$)}function d1t($,P){return $&&gp(P,Pc(P),$)}function h1($,P,U){P=="__proto__"&&fA?fA($,P,{configurable:!0,enumerable:!0,value:U,writable:!0}):$[P]=U}function _Z($,P){for(var U=-1,re=P.length,me=Pt(re),Ae=$==null;++U<re;)me[U]=Ae?n:fJ($,P[U]);return me}function y6($,P,U){return $===$&&(U!==n&&($=$<=U?$:U),P!==n&&($=$>=P?$:P)),$}function Bd($,P,U,re,me,Ae){var qe,et=P&f,vt=P&h,Ut=P&g;if(U&&(qe=me?U($,re,me,Ae):U($)),qe!==n)return qe;if(!Go($))return $;var qt=Fr($);if(qt){if(qe=J1t($),!et)return Ic($,qe)}else{var en=yl($),$n=en==ee||en==J;if(Dv($))return A8e($,et);if(en==he||en==K||$n&&!me){if(qe=vt||$n?{}:Z8e($),!et)return vt?j1t($,d1t(qe,$)):H1t($,c8e(qe,$))}else{if(!Ci[en])return me?$:{};qe=e0t($,en,et)}}Ae||(Ae=new bh);var Kn=Ae.get($);if(Kn)return Kn;Ae.set($,qe),OCe($)?$.forEach(function(mr){qe.add(Bd(mr,P,U,mr,$,Ae))}):RCe($)&&$.forEach(function(mr,ci){qe.set(ci,Bd(mr,P,U,ci,$,Ae))});var pr=Ut?vt?ZZ:QZ:vt?Pc:va,Qr=qt?n:pr($);return Nd(Qr||$,function(mr,ci){Qr&&(ci=mr,mr=$[ci]),EE(qe,ci,Bd(mr,P,U,ci,$,Ae))}),qe}function f1t($){var P=va($);return function(U){return u8e(U,$,P)}}function u8e($,P,U){var re=U.length;if($==null)return!re;for($=po($);re--;){var me=U[re],Ae=P[me],qe=$[me];if(qe===n&&!(me in $)||!Ae(qe))return!1}return!0}function d8e($,P,U){if(typeof $!="function")throw new kd(s);return PE(function(){$.apply(n,U)},P)}function RE($,P,U,re){var me=-1,Ae=tA,qe=!0,et=$.length,vt=[],Ut=P.length;if(!et)return vt;U&&(P=No(P,Ou(U))),re?(Ae=CZ,qe=!1):P.length>=i&&(Ae=CE,qe=!1,P=new C6(P));e:for(;++me<et;){var qt=$[me],en=U==null?qt:U(qt);if(qt=re||qt!==0?qt:0,qe&&en===en){for(var $n=Ut;$n--;)if(P[$n]===en)continue e;vt.push(qt)}else Ae(P,en,re)||vt.push(qt)}return vt}var Mv=k8e(hp),f8e=k8e(DZ,!0);function h1t($,P){var U=!0;return Mv($,function(re,me,Ae){return U=!!P(re,me,Ae),U}),U}function yA($,P,U){for(var re=-1,me=$.length;++re<me;){var Ae=$[re],qe=P(Ae);if(qe!=null&&(et===n?qe===qe&&!Iu(qe):U(qe,et)))var et=qe,vt=Ae}return vt}function g1t($,P,U,re){var me=$.length;for(U=Wr(U),U<0&&(U=-U>me?0:me+U),re=re===n||re>me?me:Wr(re),re<0&&(re+=me),re=U>re?0:ICe(re);U<re;)$[U++]=P;return $}function h8e($,P){var U=[];return Mv($,function(re,me,Ae){P(re,me,Ae)&&U.push(re)}),U}function ja($,P,U,re,me){var Ae=-1,qe=$.length;for(U||(U=n0t),me||(me=[]);++Ae<qe;){var et=$[Ae];P>0&&U(et)?P>1?ja(et,P-1,U,re,me):Ov(me,et):re||(me[me.length]=et)}return me}var AZ=z8e(),g8e=z8e(!0);function hp($,P){return $&&AZ($,P,va)}function DZ($,P){return $&&g8e($,P,va)}function bA($,P){return $v(P,function(U){return v1($[U])})}function b6($,P){P=_v(P,$);for(var U=0,re=P.length;$!=null&&U<re;)$=$[pp(P[U++])];return U&&U==re?$:n}function p8e($,P,U){var re=P($);return Fr($)?re:Ov(re,U($))}function Jl($){return $==null?$===n?De:ge:m6&&m6 in po($)?X1t($):c0t($)}function LZ($,P){return $>P}function p1t($,P){return $!=null&&Zi.call($,P)}function m1t($,P){return $!=null&&P in po($)}function v1t($,P,U){return $>=Cl(P,U)&&$<Ys(P,U)}function FZ($,P,U){for(var re=U?CZ:tA,me=$[0].length,Ae=$.length,qe=Ae,et=Pt(Ae),vt=1/0,Ut=[];qe--;){var qt=$[qe];qe&&P&&(qt=No(qt,Ou(P))),vt=Cl(qt.length,vt),et[qe]=!U&&(P||me>=120&&qt.length>=120)?new C6(qe&&qt):n}qt=$[0];var en=-1,$n=et[0];e:for(;++en<me&&Ut.length<vt;){var Kn=qt[en],pr=P?P(Kn):Kn;if(Kn=U||Kn!==0?Kn:0,!($n?CE($n,pr):re(Ut,pr,U))){for(qe=Ae;--qe;){var Qr=et[qe];if(!(Qr?CE(Qr,pr):re($[qe],pr,U)))continue e}$n&&$n.push(pr),Ut.push(Kn)}}return Ut}function C1t($,P,U,re){return hp($,function(me,Ae,qe){P(re,U(me),Ae,qe)}),re}function $E($,P,U){P=_v(P,$),$=nCe($,P);var re=$==null?$:$[pp(jd(P))];return re==null?n:ma(re,$,U)}function m8e($){return is($)&&Jl($)==K}function y1t($){return is($)&&Jl($)==Ue}function b1t($){return is($)&&Jl($)==te}function OE($,P,U,re,me){return $===P?!0:$==null||P==null||!is($)&&!is(P)?$!==$&&P!==P:S1t($,P,U,re,OE,me)}function S1t($,P,U,re,me,Ae){var qe=Fr($),et=Fr(P),vt=qe?q:yl($),Ut=et?q:yl(P);vt=vt==K?he:vt,Ut=Ut==K?he:Ut;var qt=vt==he,en=Ut==he,$n=vt==Ut;if($n&&Dv($)){if(!Dv(P))return!1;qe=!0,qt=!1}if($n&&!qt)return Ae||(Ae=new bh),qe||Xb($)?Y8e($,P,U,re,me,Ae):K1t($,P,vt,U,re,me,Ae);if(!(U&p)){var Kn=qt&&Zi.call($,"__wrapped__"),pr=en&&Zi.call(P,"__wrapped__");if(Kn||pr){var Qr=Kn?$.value():$,mr=pr?P.value():P;return Ae||(Ae=new bh),me(Qr,mr,U,re,Ae)}}return $n?(Ae||(Ae=new bh),Y1t($,P,U,re,me,Ae)):!1}function w1t($){return is($)&&yl($)==oe}function NZ($,P,U,re){var me=U.length,Ae=me,qe=!re;if($==null)return!Ae;for($=po($);me--;){var et=U[me];if(qe&&et[2]?et[1]!==$[et[0]]:!(et[0]in $))return!1}for(;++me<Ae;){et=U[me];var vt=et[0],Ut=$[vt],qt=et[1];if(qe&&et[2]){if(Ut===n&&!(vt in $))return!1}else{var en=new bh;if(re)var $n=re(Ut,qt,vt,$,P,en);if(!($n===n?OE(qt,Ut,p|m,re,en):$n))return!1}}return!0}function v8e($){if(!Go($)||i0t($))return!1;var P=v1($)?wmt:Lt;return P.test(w6($))}function x1t($){return is($)&&Jl($)==ve}function E1t($){return is($)&&yl($)==de}function R1t($){return is($)&&NA($.length)&&!!ki[Jl($)]}function C8e($){return typeof $=="function"?$:$==null?_c:typeof $=="object"?Fr($)?S8e($[0],$[1]):b8e($):BCe($)}function kZ($){if(!ME($))return Tmt($);var P=[];for(var U in po($))Zi.call($,U)&&U!="constructor"&&P.push(U);return P}function $1t($){if(!Go($))return l0t($);var P=ME($),U=[];for(var re in $)re=="constructor"&&(P||!Zi.call($,re))||U.push(re);return U}function zZ($,P){return $<P}function y8e($,P){var U=-1,re=Mc($)?Pt($.length):[];return Mv($,function(me,Ae,qe){re[++U]=P(me,Ae,qe)}),re}function b8e($){var P=eJ($);return P.length==1&&P[0][2]?eCe(P[0][0],P[0][1]):function(U){return U===$||NZ(U,$,P)}}function S8e($,P){return nJ($)&&J8e(P)?eCe(pp($),P):function(U){var re=fJ(U,$);return re===n&&re===P?hJ(U,$):OE(P,re,p|m)}}function SA($,P,U,re,me){$!==P&&AZ(P,function(Ae,qe){if(me||(me=new bh),Go(Ae))O1t($,P,qe,U,SA,re,me);else{var et=re?re(iJ($,qe),Ae,qe+"",$,P,me):n;et===n&&(et=Ae),PZ($,qe,et)}},Pc)}function O1t($,P,U,re,me,Ae,qe){var et=iJ($,U),vt=iJ(P,U),Ut=qe.get(vt);if(Ut){PZ($,U,Ut);return}var qt=Ae?Ae(et,vt,U+"",$,P,qe):n,en=qt===n;if(en){var $n=Fr(vt),Kn=!$n&&Dv(vt),pr=!$n&&!Kn&&Xb(vt);qt=vt,$n||Kn||pr?Fr(et)?qt=et:ps(et)?qt=Ic(et):Kn?(en=!1,qt=A8e(vt,!0)):pr?(en=!1,qt=D8e(vt,!0)):qt=[]:_E(vt)||x6(vt)?(qt=et,x6(et)?qt=MCe(et):(!Go(et)||v1(et))&&(qt=Z8e(vt))):en=!1}en&&(qe.set(vt,qt),me(qt,vt,re,Ae,qe),qe.delete(vt)),PZ($,U,qt)}function w8e($,P){var U=$.length;if(U)return P+=P<0?U:0,m1(P,U)?$[P]:n}function x8e($,P,U){P.length?P=No(P,function(Ae){return Fr(Ae)?function(qe){return b6(qe,Ae.length===1?Ae[0]:Ae)}:Ae}):P=[_c];var re=-1;P=No(P,Ou(hr()));var me=y8e($,function(Ae,qe,et){var vt=No(P,function(Ut){return Ut(Ae)});return{criteria:vt,index:++re,value:Ae}});return emt(me,function(Ae,qe){return B1t(Ae,qe,U)})}function T1t($,P){return E8e($,P,function(U,re){return hJ($,re)})}function E8e($,P,U){for(var re=-1,me=P.length,Ae={};++re<me;){var qe=P[re],et=b6($,qe);U(et,qe)&&TE(Ae,_v(qe,$),et)}return Ae}function I1t($){return function(P){return b6(P,$)}}function BZ($,P,U,re){var me=re?Jpt:zb,Ae=-1,qe=P.length,et=$;for($===P&&(P=Ic(P)),U&&(et=No($,Ou(U)));++Ae<qe;)for(var vt=0,Ut=P[Ae],qt=U?U(Ut):Ut;(vt=me(et,qt,vt,re))>-1;)et!==$&&dA.call(et,vt,1),dA.call($,vt,1);return $}function R8e($,P){for(var U=$?P.length:0,re=U-1;U--;){var me=P[U];if(U==re||me!==Ae){var Ae=me;m1(me)?dA.call($,me,1):GZ($,me)}}return $}function HZ($,P){return $+gA(o8e()*(P-$+1))}function M1t($,P,U,re){for(var me=-1,Ae=Ys(hA((P-$)/(U||1)),0),qe=Pt(Ae);Ae--;)qe[re?Ae:++me]=$,$+=U;return qe}function jZ($,P){var U="";if(!$||P<1||P>A)return U;do P%2&&(U+=$),P=gA(P/2),P&&($+=$);while(P);return U}function ei($,P){return oJ(tCe($,P,_c),$+"")}function P1t($){return l8e(Qb($))}function _1t($,P){var U=Qb($);return PA(U,y6(P,0,U.length))}function TE($,P,U,re){if(!Go($))return $;P=_v(P,$);for(var me=-1,Ae=P.length,qe=Ae-1,et=$;et!=null&&++me<Ae;){var vt=pp(P[me]),Ut=U;if(vt==="__proto__"||vt==="constructor"||vt==="prototype")return $;if(me!=qe){var qt=et[vt];Ut=re?re(qt,vt,et):n,Ut===n&&(Ut=Go(qt)?qt:m1(P[me+1])?[]:{})}EE(et,vt,Ut),et=et[vt]}return $}var $8e=pA?function($,P){return pA.set($,P),$}:_c,A1t=fA?function($,P){return fA($,"toString",{configurable:!0,enumerable:!1,value:pJ(P),writable:!0})}:_c;function D1t($){return PA(Qb($))}function Hd($,P,U){var re=-1,me=$.length;P<0&&(P=-P>me?0:me+P),U=U>me?me:U,U<0&&(U+=me),me=P>U?0:U-P>>>0,P>>>=0;for(var Ae=Pt(me);++re<me;)Ae[re]=$[re+P];return Ae}function L1t($,P){var U;return Mv($,function(re,me,Ae){return U=P(re,me,Ae),!U}),!!U}function wA($,P,U){var re=0,me=$==null?re:$.length;if(typeof P=="number"&&P===P&&me<=W){for(;re<me;){var Ae=re+me>>>1,qe=$[Ae];qe!==null&&!Iu(qe)&&(U?qe<=P:qe<P)?re=Ae+1:me=Ae}return me}return VZ($,P,_c,U)}function VZ($,P,U,re){var me=0,Ae=$==null?0:$.length;if(Ae===0)return 0;P=U(P);for(var qe=P!==P,et=P===null,vt=Iu(P),Ut=P===n;me<Ae;){var qt=gA((me+Ae)/2),en=U($[qt]),$n=en!==n,Kn=en===null,pr=en===en,Qr=Iu(en);if(qe)var mr=re||pr;else Ut?mr=pr&&(re||$n):et?mr=pr&&$n&&(re||!Kn):vt?mr=pr&&$n&&!Kn&&(re||!Qr):Kn||Qr?mr=!1:mr=re?en<=P:en<P;mr?me=qt+1:Ae=qt}return Cl(Ae,j)}function O8e($,P){for(var U=-1,re=$.length,me=0,Ae=[];++U<re;){var qe=$[U],et=P?P(qe):qe;if(!U||!Sh(et,vt)){var vt=et;Ae[me++]=qe===0?0:qe}}return Ae}function T8e($){return typeof $=="number"?$:Iu($)?B:+$}function Tu($){if(typeof $=="string")return $;if(Fr($))return No($,Tu)+"";if(Iu($))return s8e?s8e.call($):"";var P=$+"";return P=="0"&&1/$==-1/0?"-0":P}function Pv($,P,U){var re=-1,me=tA,Ae=$.length,qe=!0,et=[],vt=et;if(U)qe=!1,me=CZ;else if(Ae>=i){var Ut=P?null:U1t($);if(Ut)return rA(Ut);qe=!1,me=CE,vt=new C6}else vt=P?[]:et;e:for(;++re<Ae;){var qt=$[re],en=P?P(qt):qt;if(qt=U||qt!==0?qt:0,qe&&en===en){for(var $n=vt.length;$n--;)if(vt[$n]===en)continue e;P&&vt.push(en),et.push(qt)}else me(vt,en,U)||(vt!==et&&vt.push(en),et.push(qt))}return et}function GZ($,P){return P=_v(P,$),$=nCe($,P),$==null||delete $[pp(jd(P))]}function I8e($,P,U,re){return TE($,P,U(b6($,P)),re)}function xA($,P,U,re){for(var me=$.length,Ae=re?me:-1;(re?Ae--:++Ae<me)&&P($[Ae],Ae,$););return U?Hd($,re?0:Ae,re?Ae+1:me):Hd($,re?Ae+1:0,re?me:Ae)}function M8e($,P){var U=$;return U instanceof fi&&(U=U.value()),yZ(P,function(re,me){return me.func.apply(me.thisArg,Ov([re],me.args))},U)}function WZ($,P,U){var re=$.length;if(re<2)return re?Pv($[0]):[];for(var me=-1,Ae=Pt(re);++me<re;)for(var qe=$[me],et=-1;++et<re;)et!=me&&(Ae[me]=RE(Ae[me]||qe,$[et],P,U));return Pv(ja(Ae,1),P,U)}function P8e($,P,U){for(var re=-1,me=$.length,Ae=P.length,qe={};++re<me;){var et=re<Ae?P[re]:n;U(qe,$[re],et)}return qe}function UZ($){return ps($)?$:[]}function qZ($){return typeof $=="function"?$:_c}function _v($,P){return Fr($)?$:nJ($,P)?[$]:sCe(qi($))}var F1t=ei;function Av($,P,U){var re=$.length;return U=U===n?re:U,!P&&U>=re?$:Hd($,P,U)}var _8e=xmt||function($){return ai.clearTimeout($)};function A8e($,P){if(P)return $.slice();var U=$.length,re=e8e?e8e(U):new $.constructor(U);return $.copy(re),re}function KZ($){var P=new $.constructor($.byteLength);return new cA(P).set(new cA($)),P}function N1t($,P){var U=P?KZ($.buffer):$.buffer;return new $.constructor(U,$.byteOffset,$.byteLength)}function k1t($){var P=new $.constructor($.source,kt.exec($));return P.lastIndex=$.lastIndex,P}function z1t($){return xE?po(xE.call($)):{}}function D8e($,P){var U=P?KZ($.buffer):$.buffer;return new $.constructor(U,$.byteOffset,$.length)}function L8e($,P){if($!==P){var U=$!==n,re=$===null,me=$===$,Ae=Iu($),qe=P!==n,et=P===null,vt=P===P,Ut=Iu(P);if(!et&&!Ut&&!Ae&&$>P||Ae&&qe&&vt&&!et&&!Ut||re&&qe&&vt||!U&&vt||!me)return 1;if(!re&&!Ae&&!Ut&&$<P||Ut&&U&&me&&!re&&!Ae||et&&U&&me||!qe&&me||!vt)return-1}return 0}function B1t($,P,U){for(var re=-1,me=$.criteria,Ae=P.criteria,qe=me.length,et=U.length;++re<qe;){var vt=L8e(me[re],Ae[re]);if(vt){if(re>=et)return vt;var Ut=U[re];return vt*(Ut=="desc"?-1:1)}}return $.index-P.index}function F8e($,P,U,re){for(var me=-1,Ae=$.length,qe=U.length,et=-1,vt=P.length,Ut=Ys(Ae-qe,0),qt=Pt(vt+Ut),en=!re;++et<vt;)qt[et]=P[et];for(;++me<qe;)(en||me<Ae)&&(qt[U[me]]=$[me]);for(;Ut--;)qt[et++]=$[me++];return qt}function N8e($,P,U,re){for(var me=-1,Ae=$.length,qe=-1,et=U.length,vt=-1,Ut=P.length,qt=Ys(Ae-et,0),en=Pt(qt+Ut),$n=!re;++me<qt;)en[me]=$[me];for(var Kn=me;++vt<Ut;)en[Kn+vt]=P[vt];for(;++qe<et;)($n||me<Ae)&&(en[Kn+U[qe]]=$[me++]);return en}function Ic($,P){var U=-1,re=$.length;for(P||(P=Pt(re));++U<re;)P[U]=$[U];return P}function gp($,P,U,re){var me=!U;U||(U={});for(var Ae=-1,qe=P.length;++Ae<qe;){var et=P[Ae],vt=re?re(U[et],$[et],et,U,$):n;vt===n&&(vt=$[et]),me?h1(U,et,vt):EE(U,et,vt)}return U}function H1t($,P){return gp($,tJ($),P)}function j1t($,P){return gp($,X8e($),P)}function EA($,P){return function(U,re){var me=Fr(U)?qpt:u1t,Ae=P?P():{};return me(U,$,hr(re,2),Ae)}}function qb($){return ei(function(P,U){var re=-1,me=U.length,Ae=me>1?U[me-1]:n,qe=me>2?U[2]:n;for(Ae=$.length>3&&typeof Ae=="function"?(me--,Ae):n,qe&&ec(U[0],U[1],qe)&&(Ae=me<3?n:Ae,me=1),P=po(P);++re<me;){var et=U[re];et&&$(P,et,re,Ae)}return P})}function k8e($,P){return function(U,re){if(U==null)return U;if(!Mc(U))return $(U,re);for(var me=U.length,Ae=P?me:-1,qe=po(U);(P?Ae--:++Ae<me)&&re(qe[Ae],Ae,qe)!==!1;);return U}}function z8e($){return function(P,U,re){for(var me=-1,Ae=po(P),qe=re(P),et=qe.length;et--;){var vt=qe[$?et:++me];if(U(Ae[vt],vt,Ae)===!1)break}return P}}function V1t($,P,U){var re=P&v,me=IE($);function Ae(){var qe=this&&this!==ai&&this instanceof Ae?me:$;return qe.apply(re?U:this,arguments)}return Ae}function B8e($){return function(P){P=qi(P);var U=Bb(P)?yh(P):n,re=U?U[0]:P.charAt(0),me=U?Av(U,1).join(""):P.slice(1);return re[$]()+me}}function Kb($){return function(P){return yZ(kCe(NCe(P).replace(Ld,"")),$,"")}}function IE($){return function(){var P=arguments;switch(P.length){case 0:return new $;case 1:return new $(P[0]);case 2:return new $(P[0],P[1]);case 3:return new $(P[0],P[1],P[2]);case 4:return new $(P[0],P[1],P[2],P[3]);case 5:return new $(P[0],P[1],P[2],P[3],P[4]);case 6:return new $(P[0],P[1],P[2],P[3],P[4],P[5]);case 7:return new $(P[0],P[1],P[2],P[3],P[4],P[5],P[6])}var U=Ub($.prototype),re=$.apply(U,P);return Go(re)?re:U}}function G1t($,P,U){var re=IE($);function me(){for(var Ae=arguments.length,qe=Pt(Ae),et=Ae,vt=Yb(me);et--;)qe[et]=arguments[et];var Ut=Ae<3&&qe[0]!==vt&&qe[Ae-1]!==vt?[]:Tv(qe,vt);if(Ae-=Ut.length,Ae<U)return W8e($,P,RA,me.placeholder,n,qe,Ut,n,n,U-Ae);var qt=this&&this!==ai&&this instanceof me?re:$;return ma(qt,this,qe)}return me}function H8e($){return function(P,U,re){var me=po(P);if(!Mc(P)){var Ae=hr(U,3);P=va(P),U=function(et){return Ae(me[et],et,me)}}var qe=$(P,U,re);return qe>-1?me[Ae?P[qe]:qe]:n}}function j8e($){return p1(function(P){var U=P.length,re=U,me=zd.prototype.thru;for($&&P.reverse();re--;){var Ae=P[re];if(typeof Ae!="function")throw new kd(s);if(me&&!qe&&IA(Ae)=="wrapper")var qe=new zd([],!0)}for(re=qe?re:U;++re<U;){Ae=P[re];var et=IA(Ae),vt=et=="wrapper"?JZ(Ae):n;vt&&rJ(vt[0])&&vt[1]==(E|b|w|R)&&!vt[4].length&&vt[9]==1?qe=qe[IA(vt[0])].apply(qe,vt[3]):qe=Ae.length==1&&rJ(Ae)?qe[et]():qe.thru(Ae)}return function(){var Ut=arguments,qt=Ut[0];if(qe&&Ut.length==1&&Fr(qt))return qe.plant(qt).value();for(var en=0,$n=U?P[en].apply(this,Ut):qt;++en<U;)$n=P[en].call(this,$n);return $n}})}function RA($,P,U,re,me,Ae,qe,et,vt,Ut){var qt=P&E,en=P&v,$n=P&C,Kn=P&(b|S),pr=P&O,Qr=$n?n:IE($);function mr(){for(var ci=arguments.length,Si=Pt(ci),Mu=ci;Mu--;)Si[Mu]=arguments[Mu];if(Kn)var tc=Yb(mr),Pu=nmt(Si,tc);if(re&&(Si=F8e(Si,re,me,Kn)),Ae&&(Si=N8e(Si,Ae,qe,Kn)),ci-=Pu,Kn&&ci<Ut){var ms=Tv(Si,tc);return W8e($,P,RA,mr.placeholder,U,Si,ms,et,vt,Ut-ci)}var wh=en?U:this,y1=$n?wh[$]:$;return ci=Si.length,et?Si=u0t(Si,et):pr&&ci>1&&Si.reverse(),qt&&vt<ci&&(Si.length=vt),this&&this!==ai&&this instanceof mr&&(y1=Qr||IE(y1)),y1.apply(wh,Si)}return mr}function V8e($,P){return function(U,re){return C1t(U,$,P(re),{})}}function $A($,P){return function(U,re){var me;if(U===n&&re===n)return P;if(U!==n&&(me=U),re!==n){if(me===n)return re;typeof U=="string"||typeof re=="string"?(U=Tu(U),re=Tu(re)):(U=T8e(U),re=T8e(re)),me=$(U,re)}return me}}function YZ($){return p1(function(P){return P=No(P,Ou(hr())),ei(function(U){var re=this;return $(P,function(me){return ma(me,re,U)})})})}function OA($,P){P=P===n?" ":Tu(P);var U=P.length;if(U<2)return U?jZ(P,$):P;var re=jZ(P,hA($/Hb(P)));return Bb(P)?Av(yh(re),0,$).join(""):re.slice(0,$)}function W1t($,P,U,re){var me=P&v,Ae=IE($);function qe(){for(var et=-1,vt=arguments.length,Ut=-1,qt=re.length,en=Pt(qt+vt),$n=this&&this!==ai&&this instanceof qe?Ae:$;++Ut<qt;)en[Ut]=re[Ut];for(;vt--;)en[Ut++]=arguments[++et];return ma($n,me?U:this,en)}return qe}function G8e($){return function(P,U,re){return re&&typeof re!="number"&&ec(P,U,re)&&(U=re=n),P=C1(P),U===n?(U=P,P=0):U=C1(U),re=re===n?P<U?1:-1:C1(re),M1t(P,U,re,$)}}function TA($){return function(P,U){return typeof P=="string"&&typeof U=="string"||(P=Vd(P),U=Vd(U)),$(P,U)}}function W8e($,P,U,re,me,Ae,qe,et,vt,Ut){var qt=P&b,en=qt?qe:n,$n=qt?n:qe,Kn=qt?Ae:n,pr=qt?n:Ae;P|=qt?w:x,P&=~(qt?x:w),P&y||(P&=-4);var Qr=[$,P,me,Kn,en,pr,$n,et,vt,Ut],mr=U.apply(n,Qr);return rJ($)&&rCe(mr,Qr),mr.placeholder=re,iCe(mr,$,P)}function XZ($){var P=Ks[$];return function(U,re){if(U=Vd(U),re=re==null?0:Cl(Wr(re),292),re&&i8e(U)){var me=(qi(U)+"e").split("e"),Ae=P(me[0]+"e"+(+me[1]+re));return me=(qi(Ae)+"e").split("e"),+(me[0]+"e"+(+me[1]-re))}return P(U)}}var U1t=Gb&&1/rA(new Gb([,-0]))[1]==I?function($){return new Gb($)}:CJ;function U8e($){return function(P){var U=yl(P);return U==oe?$Z(P):U==de?cmt(P):tmt(P,$(P))}}function g1($,P,U,re,me,Ae,qe,et){var vt=P&C;if(!vt&&typeof $!="function")throw new kd(s);var Ut=re?re.length:0;if(Ut||(P&=-97,re=me=n),qe=qe===n?qe:Ys(Wr(qe),0),et=et===n?et:Wr(et),Ut-=me?me.length:0,P&x){var qt=re,en=me;re=me=n}var $n=vt?n:JZ($),Kn=[$,P,U,re,me,qt,en,Ae,qe,et];if($n&&a0t(Kn,$n),$=Kn[0],P=Kn[1],U=Kn[2],re=Kn[3],me=Kn[4],et=Kn[9]=Kn[9]===n?vt?0:$.length:Ys(Kn[9]-Ut,0),!et&&P&(b|S)&&(P&=-25),!P||P==v)var pr=V1t($,P,U);else P==b||P==S?pr=G1t($,P,et):(P==w||P==(v|w))&&!me.length?pr=W1t($,P,U,re):pr=RA.apply(n,Kn);var Qr=$n?$8e:rCe;return iCe(Qr(pr,Kn),$,P)}function q8e($,P,U,re){return $===n||Sh($,Vb[U])&&!Zi.call(re,U)?P:$}function K8e($,P,U,re,me,Ae){return Go($)&&Go(P)&&(Ae.set(P,$),SA($,P,n,K8e,Ae),Ae.delete(P)),$}function q1t($){return _E($)?n:$}function Y8e($,P,U,re,me,Ae){var qe=U&p,et=$.length,vt=P.length;if(et!=vt&&!(qe&&vt>et))return!1;var Ut=Ae.get($),qt=Ae.get(P);if(Ut&&qt)return Ut==P&&qt==$;var en=-1,$n=!0,Kn=U&m?new C6:n;for(Ae.set($,P),Ae.set(P,$);++en<et;){var pr=$[en],Qr=P[en];if(re)var mr=qe?re(Qr,pr,en,P,$,Ae):re(pr,Qr,en,$,P,Ae);if(mr!==n){if(mr)continue;$n=!1;break}if(Kn){if(!bZ(P,function(ci,Si){if(!CE(Kn,Si)&&(pr===ci||me(pr,ci,U,re,Ae)))return Kn.push(Si)})){$n=!1;break}}else if(!(pr===Qr||me(pr,Qr,U,re,Ae))){$n=!1;break}}return Ae.delete($),Ae.delete(P),$n}function K1t($,P,U,re,me,Ae,qe){switch(U){case We:if($.byteLength!=P.byteLength||$.byteOffset!=P.byteOffset)return!1;$=$.buffer,P=P.buffer;case Ue:return!($.byteLength!=P.byteLength||!Ae(new cA($),new cA(P)));case Q:case te:case le:return Sh(+$,+P);case Z:return $.name==P.name&&$.message==P.message;case ve:case xe:return $==P+"";case oe:var et=$Z;case de:var vt=re&p;if(et||(et=rA),$.size!=P.size&&!vt)return!1;var Ut=qe.get($);if(Ut)return Ut==P;re|=m,qe.set($,P);var qt=Y8e(et($),et(P),re,me,Ae,qe);return qe.delete($),qt;case Ee:if(xE)return xE.call($)==xE.call(P)}return!1}function Y1t($,P,U,re,me,Ae){var qe=U&p,et=QZ($),vt=et.length,Ut=QZ(P),qt=Ut.length;if(vt!=qt&&!qe)return!1;for(var en=vt;en--;){var $n=et[en];if(!(qe?$n in P:Zi.call(P,$n)))return!1}var Kn=Ae.get($),pr=Ae.get(P);if(Kn&&pr)return Kn==P&&pr==$;var Qr=!0;Ae.set($,P),Ae.set(P,$);for(var mr=qe;++en<vt;){$n=et[en];var ci=$[$n],Si=P[$n];if(re)var Mu=qe?re(Si,ci,$n,P,$,Ae):re(ci,Si,$n,$,P,Ae);if(!(Mu===n?ci===Si||me(ci,Si,U,re,Ae):Mu)){Qr=!1;break}mr||(mr=$n=="constructor")}if(Qr&&!mr){var tc=$.constructor,Pu=P.constructor;tc!=Pu&&"constructor"in $&&"constructor"in P&&!(typeof tc=="function"&&tc instanceof tc&&typeof Pu=="function"&&Pu instanceof Pu)&&(Qr=!1)}return Ae.delete($),Ae.delete(P),Qr}function p1($){return oJ(tCe($,n,uCe),$+"")}function QZ($){return p8e($,va,tJ)}function ZZ($){return p8e($,Pc,X8e)}var JZ=pA?function($){return pA.get($)}:CJ;function IA($){for(var P=$.name+"",U=Wb[P],re=Zi.call(Wb,P)?U.length:0;re--;){var me=U[re],Ae=me.func;if(Ae==null||Ae==$)return me.name}return P}function Yb($){var P=Zi.call(Ie,"placeholder")?Ie:$;return P.placeholder}function hr(){var $=Ie.iteratee||mJ;return $=$===mJ?C8e:$,arguments.length?$(arguments[0],arguments[1]):$}function MA($,P){var U=$.__data__;return r0t(P)?U[typeof P=="string"?"string":"hash"]:U.map}function eJ($){for(var P=va($),U=P.length;U--;){var re=P[U],me=$[re];P[U]=[re,me,J8e(me)]}return P}function S6($,P){var U=smt($,P);return v8e(U)?U:n}function X1t($){var P=Zi.call($,m6),U=$[m6];try{$[m6]=n;var re=!0}catch{}var me=aA.call($);return re&&(P?$[m6]=U:delete $[m6]),me}var tJ=TZ?function($){return $==null?[]:($=po($),$v(TZ($),function(P){return n8e.call($,P)}))}:yJ,X8e=TZ?function($){for(var P=[];$;)Ov(P,tJ($)),$=uA($);return P}:yJ,yl=Jl;(IZ&&yl(new IZ(new ArrayBuffer(1)))!=We||bE&&yl(new bE)!=oe||MZ&&yl(MZ.resolve())!=ye||Gb&&yl(new Gb)!=de||SE&&yl(new SE)!=Be)&&(yl=function($){var P=Jl($),U=P==he?$.constructor:n,re=U?w6(U):"";if(re)switch(re){case _mt:return We;case Amt:return oe;case Dmt:return ye;case Lmt:return de;case Fmt:return Be}return P});function Q1t($,P,U){for(var re=-1,me=U.length;++re<me;){var Ae=U[re],qe=Ae.size;switch(Ae.type){case"drop":$+=qe;break;case"dropRight":P-=qe;break;case"take":P=Cl(P,$+qe);break;case"takeRight":$=Ys($,P-qe);break}}return{start:$,end:P}}function Z1t($){var P=$.match(gt);return P?P[1].split(yt):[]}function Q8e($,P,U){P=_v(P,$);for(var re=-1,me=P.length,Ae=!1;++re<me;){var qe=pp(P[re]);if(!(Ae=$!=null&&U($,qe)))break;$=$[qe]}return Ae||++re!=me?Ae:(me=$==null?0:$.length,!!me&&NA(me)&&m1(qe,me)&&(Fr($)||x6($)))}function J1t($){var P=$.length,U=new $.constructor(P);return P&&typeof $[0]=="string"&&Zi.call($,"index")&&(U.index=$.index,U.input=$.input),U}function Z8e($){return typeof $.constructor=="function"&&!ME($)?Ub(uA($)):{}}function e0t($,P,U){var re=$.constructor;switch(P){case Ue:return KZ($);case Q:case te:return new re(+$);case We:return N1t($,U);case Ve:case Fe:case ke:case Ye:case ze:case Re:case Le:case Me:case be:return D8e($,U);case oe:return new re;case le:case xe:return new re($);case ve:return k1t($);case de:return new re;case Ee:return z1t($)}}function t0t($,P){var U=P.length;if(!U)return $;var re=U-1;return P[re]=(U>1?"& ":"")+P[re],P=P.join(U>2?", ":" "),$.replace(at,`{
|
||
/* [wrapped with `+P+`] */
|
||
`)}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 b0t($,P){return $&&$.length?xA($,hr(P,3),!0,!0):[]}function S0t($,P){return $&&$.length?xA($,hr(P,3),!0):[]}function w0t($,P,U,re){var me=$==null?0:$.length;return me?(U&&typeof U!="number"&&ec($,P,U)&&(U=0,re=me),g1t($,P,U,re)):[]}function lCe($,P,U){var re=$==null?0:$.length;if(!re)return-1;var me=U==null?0:Wr(U);return me<0&&(me=Ys(re+me,0)),nA($,hr(P,3),me)}function cCe($,P,U){var re=$==null?0:$.length;if(!re)return-1;var me=re-1;return U!==n&&(me=Wr(U),me=U<0?Ys(re+me,0):Cl(me,re-1)),nA($,hr(P,3),me,!0)}function uCe($){var P=$==null?0:$.length;return P?ja($,1):[]}function x0t($){var P=$==null?0:$.length;return P?ja($,I):[]}function E0t($,P){var U=$==null?0:$.length;return U?(P=P===n?1:Wr(P),ja($,P)):[]}function R0t($){for(var P=-1,U=$==null?0:$.length,re={};++P<U;){var me=$[P];re[me[0]]=me[1]}return re}function dCe($){return $&&$.length?$[0]:n}function $0t($,P,U){var re=$==null?0:$.length;if(!re)return-1;var me=U==null?0:Wr(U);return me<0&&(me=Ys(re+me,0)),zb($,P,me)}function O0t($){var P=$==null?0:$.length;return P?Hd($,0,-1):[]}var T0t=ei(function($){var P=No($,UZ);return P.length&&P[0]===$[0]?FZ(P):[]}),I0t=ei(function($){var P=jd($),U=No($,UZ);return P===jd(U)?P=n:U.pop(),U.length&&U[0]===$[0]?FZ(U,hr(P,2)):[]}),M0t=ei(function($){var P=jd($),U=No($,UZ);return P=typeof P=="function"?P:n,P&&U.pop(),U.length&&U[0]===$[0]?FZ(U,n,P):[]});function P0t($,P){return $==null?"":Omt.call($,P)}function jd($){var P=$==null?0:$.length;return P?$[P-1]:n}function _0t($,P,U){var re=$==null?0:$.length;if(!re)return-1;var me=re;return U!==n&&(me=Wr(U),me=me<0?Ys(re+me,0):Cl(me,re-1)),P===P?dmt($,P,me):nA($,W6e,me,!0)}function A0t($,P){return $&&$.length?w8e($,Wr(P)):n}var D0t=ei(fCe);function fCe($,P){return $&&$.length&&P&&P.length?BZ($,P):$}function L0t($,P,U){return $&&$.length&&P&&P.length?BZ($,P,hr(U,2)):$}function F0t($,P,U){return $&&$.length&&P&&P.length?BZ($,P,n,U):$}var N0t=p1(function($,P){var U=$==null?0:$.length,re=_Z($,P);return R8e($,No(P,function(me){return m1(me,U)?+me:me}).sort(L8e)),re});function k0t($,P){var U=[];if(!($&&$.length))return U;var re=-1,me=[],Ae=$.length;for(P=hr(P,3);++re<Ae;){var qe=$[re];P(qe,re,$)&&(U.push(qe),me.push(re))}return R8e($,me),U}function sJ($){return $==null?$:Pmt.call($)}function z0t($,P,U){var re=$==null?0:$.length;return re?(U&&typeof U!="number"&&ec($,P,U)?(P=0,U=re):(P=P==null?0:Wr(P),U=U===n?re:Wr(U)),Hd($,P,U)):[]}function B0t($,P){return wA($,P)}function H0t($,P,U){return VZ($,P,hr(U,2))}function j0t($,P){var U=$==null?0:$.length;if(U){var re=wA($,P);if(re<U&&Sh($[re],P))return re}return-1}function V0t($,P){return wA($,P,!0)}function G0t($,P,U){return VZ($,P,hr(U,2),!0)}function W0t($,P){var U=$==null?0:$.length;if(U){var re=wA($,P,!0)-1;if(Sh($[re],P))return re}return-1}function U0t($){return $&&$.length?O8e($):[]}function q0t($,P){return $&&$.length?O8e($,hr(P,2)):[]}function K0t($){var P=$==null?0:$.length;return P?Hd($,1,P):[]}function Y0t($,P,U){return $&&$.length?(P=U||P===n?1:Wr(P),Hd($,0,P<0?0:P)):[]}function X0t($,P,U){var re=$==null?0:$.length;return re?(P=U||P===n?1:Wr(P),P=re-P,Hd($,P<0?0:P,re)):[]}function Q0t($,P){return $&&$.length?xA($,hr(P,3),!1,!0):[]}function Z0t($,P){return $&&$.length?xA($,hr(P,3)):[]}var J0t=ei(function($){return Pv(ja($,1,ps,!0))}),evt=ei(function($){var P=jd($);return ps(P)&&(P=n),Pv(ja($,1,ps,!0),hr(P,2))}),tvt=ei(function($){var P=jd($);return P=typeof P=="function"?P:n,Pv(ja($,1,ps,!0),n,P)});function nvt($){return $&&$.length?Pv($):[]}function rvt($,P){return $&&$.length?Pv($,hr(P,2)):[]}function ivt($,P){return P=typeof P=="function"?P:n,$&&$.length?Pv($,n,P):[]}function aJ($){if(!($&&$.length))return[];var P=0;return $=$v($,function(U){if(ps(U))return P=Ys(U.length,P),!0}),EZ(P,function(U){return No($,SZ(U))})}function hCe($,P){if(!($&&$.length))return[];var U=aJ($);return P==null?U:No(U,function(re){return ma(P,n,re)})}var ovt=ei(function($,P){return ps($)?RE($,P):[]}),svt=ei(function($){return WZ($v($,ps))}),avt=ei(function($){var P=jd($);return ps(P)&&(P=n),WZ($v($,ps),hr(P,2))}),lvt=ei(function($){var P=jd($);return P=typeof P=="function"?P:n,WZ($v($,ps),n,P)}),cvt=ei(aJ);function uvt($,P){return P8e($||[],P||[],EE)}function dvt($,P){return P8e($||[],P||[],TE)}var fvt=ei(function($){var P=$.length,U=P>1?$[P-1]:n;return U=typeof U=="function"?($.pop(),U):n,hCe($,U)});function gCe($){var P=Ie($);return P.__chain__=!0,P}function hvt($,P){return P($),$}function _A($,P){return P($)}var gvt=p1(function($){var P=$.length,U=P?$[0]:0,re=this.__wrapped__,me=function(Ae){return _Z(Ae,$)};return P>1||this.__actions__.length||!(re instanceof fi)||!m1(U)?this.thru(me):(re=re.slice(U,+U+(P?1:0)),re.__actions__.push({func:_A,args:[me],thisArg:n}),new zd(re,this.__chain__).thru(function(Ae){return P&&!Ae.length&&Ae.push(n),Ae}))});function pvt(){return gCe(this)}function mvt(){return new zd(this.value(),this.__chain__)}function vvt(){this.__values__===n&&(this.__values__=TCe(this.value()));var $=this.__index__>=this.__values__.length,P=$?n:this.__values__[this.__index__++];return{done:$,value:P}}function Cvt(){return this}function yvt($){for(var P,U=this;U instanceof vA;){var re=aCe(U);re.__index__=0,re.__values__=n,P?me.__wrapped__=re:P=re;var me=re;U=U.__wrapped__}return me.__wrapped__=$,P}function bvt(){var $=this.__wrapped__;if($ instanceof fi){var P=$;return this.__actions__.length&&(P=new fi(this)),P=P.reverse(),P.__actions__.push({func:_A,args:[sJ],thisArg:n}),new zd(P,this.__chain__)}return this.thru(sJ)}function Svt(){return M8e(this.__wrapped__,this.__actions__)}var wvt=EA(function($,P,U){Zi.call($,U)?++$[U]:h1($,U,1)});function xvt($,P,U){var re=Fr($)?V6e:h1t;return U&&ec($,P,U)&&(P=n),re($,hr(P,3))}function Evt($,P){var U=Fr($)?$v:h8e;return U($,hr(P,3))}var Rvt=H8e(lCe),$vt=H8e(cCe);function Ovt($,P){return ja(AA($,P),1)}function Tvt($,P){return ja(AA($,P),I)}function Ivt($,P,U){return U=U===n?1:Wr(U),ja(AA($,P),U)}function pCe($,P){var U=Fr($)?Nd:Mv;return U($,hr(P,3))}function mCe($,P){var U=Fr($)?Kpt:f8e;return U($,hr(P,3))}var Mvt=EA(function($,P,U){Zi.call($,U)?$[U].push(P):h1($,U,[P])});function Pvt($,P,U,re){$=Mc($)?$:Qb($),U=U&&!re?Wr(U):0;var me=$.length;return U<0&&(U=Ys(me+U,0)),kA($)?U<=me&&$.indexOf(P,U)>-1:!!me&&zb($,P,U)>-1}var _vt=ei(function($,P,U){var re=-1,me=typeof P=="function",Ae=Mc($)?Pt($.length):[];return Mv($,function(qe){Ae[++re]=me?ma(P,qe,U):$E(qe,P,U)}),Ae}),Avt=EA(function($,P,U){h1($,U,P)});function AA($,P){var U=Fr($)?No:y8e;return U($,hr(P,3))}function Dvt($,P,U,re){return $==null?[]:(Fr(P)||(P=P==null?[]:[P]),U=re?n:U,Fr(U)||(U=U==null?[]:[U]),x8e($,P,U))}var Lvt=EA(function($,P,U){$[U?0:1].push(P)},function(){return[[],[]]});function Fvt($,P,U){var re=Fr($)?yZ:q6e,me=arguments.length<3;return re($,hr(P,4),U,me,Mv)}function Nvt($,P,U){var re=Fr($)?Ypt:q6e,me=arguments.length<3;return re($,hr(P,4),U,me,f8e)}function kvt($,P){var U=Fr($)?$v:h8e;return U($,FA(hr(P,3)))}function zvt($){var P=Fr($)?l8e:P1t;return P($)}function Bvt($,P,U){(U?ec($,P,U):P===n)?P=1:P=Wr(P);var re=Fr($)?l1t:_1t;return re($,P)}function Hvt($){var P=Fr($)?c1t:D1t;return P($)}function jvt($){if($==null)return 0;if(Mc($))return kA($)?Hb($):$.length;var P=yl($);return P==oe||P==de?$.size:kZ($).length}function Vvt($,P,U){var re=Fr($)?bZ:L1t;return U&&ec($,P,U)&&(P=n),re($,hr(P,3))}var Gvt=ei(function($,P){if($==null)return[];var U=P.length;return U>1&&ec($,P[0],P[1])?P=[]:U>2&&ec(P[0],P[1],P[2])&&(P=[P[0]]),x8e($,ja(P,1),[])}),DA=Emt||function(){return ai.Date.now()};function Wvt($,P){if(typeof P!="function")throw new kd(s);return $=Wr($),function(){if(--$<1)return P.apply(this,arguments)}}function vCe($,P,U){return P=U?n:P,P=$&&P==null?$.length:P,g1($,E,n,n,n,n,P)}function CCe($,P){var U;if(typeof P!="function")throw new kd(s);return $=Wr($),function(){return--$>0&&(U=P.apply(this,arguments)),$<=1&&(P=n),U}}var lJ=ei(function($,P,U){var re=v;if(U.length){var me=Tv(U,Yb(lJ));re|=w}return g1($,re,P,U,me)}),yCe=ei(function($,P,U){var re=v|C;if(U.length){var me=Tv(U,Yb(yCe));re|=w}return g1(P,re,$,U,me)});function bCe($,P,U){P=U?n:P;var re=g1($,b,n,n,n,n,n,P);return re.placeholder=bCe.placeholder,re}function SCe($,P,U){P=U?n:P;var re=g1($,S,n,n,n,n,n,P);return re.placeholder=SCe.placeholder,re}function wCe($,P,U){var re,me,Ae,qe,et,vt,Ut=0,qt=!1,en=!1,$n=!0;if(typeof $!="function")throw new kd(s);P=Vd(P)||0,Go(U)&&(qt=!!U.leading,en="maxWait"in U,Ae=en?Ys(Vd(U.maxWait)||0,P):Ae,$n="trailing"in U?!!U.trailing:$n);function Kn(ms){var wh=re,y1=me;return re=me=n,Ut=ms,qe=$.apply(y1,wh),qe}function pr(ms){return Ut=ms,et=PE(ci,P),qt?Kn(ms):qe}function Qr(ms){var wh=ms-vt,y1=ms-Ut,HCe=P-wh;return en?Cl(HCe,Ae-y1):HCe}function mr(ms){var wh=ms-vt,y1=ms-Ut;return vt===n||wh>=P||wh<0||en&&y1>=Ae}function ci(){var ms=DA();if(mr(ms))return Si(ms);et=PE(ci,Qr(ms))}function Si(ms){return et=n,$n&&re?Kn(ms):(re=me=n,qe)}function Mu(){et!==n&&_8e(et),Ut=0,re=vt=me=et=n}function tc(){return et===n?qe:Si(DA())}function Pu(){var ms=DA(),wh=mr(ms);if(re=arguments,me=this,vt=ms,wh){if(et===n)return pr(vt);if(en)return _8e(et),et=PE(ci,P),Kn(vt)}return et===n&&(et=PE(ci,P)),qe}return Pu.cancel=Mu,Pu.flush=tc,Pu}var Uvt=ei(function($,P){return d8e($,1,P)}),qvt=ei(function($,P,U){return d8e($,Vd(P)||0,U)});function Kvt($){return g1($,O)}function LA($,P){if(typeof $!="function"||P!=null&&typeof P!="function")throw new kd(s);var U=function(){var re=arguments,me=P?P.apply(this,re):re[0],Ae=U.cache;if(Ae.has(me))return Ae.get(me);var qe=$.apply(this,re);return U.cache=Ae.set(me,qe)||Ae,qe};return U.cache=new(LA.Cache||f1),U}LA.Cache=f1;function FA($){if(typeof $!="function")throw new kd(s);return function(){var P=arguments;switch(P.length){case 0:return!$.call(this);case 1:return!$.call(this,P[0]);case 2:return!$.call(this,P[0],P[1]);case 3:return!$.call(this,P[0],P[1],P[2])}return!$.apply(this,P)}}function Yvt($){return CCe(2,$)}var Xvt=F1t(function($,P){P=P.length==1&&Fr(P[0])?No(P[0],Ou(hr())):No(ja(P,1),Ou(hr()));var U=P.length;return ei(function(re){for(var me=-1,Ae=Cl(re.length,U);++me<Ae;)re[me]=P[me].call(this,re[me]);return ma($,this,re)})}),cJ=ei(function($,P){var U=Tv(P,Yb(cJ));return g1($,w,n,P,U)}),xCe=ei(function($,P){var U=Tv(P,Yb(xCe));return g1($,x,n,P,U)}),Qvt=p1(function($,P){return g1($,R,n,n,n,P)});function Zvt($,P){if(typeof $!="function")throw new kd(s);return P=P===n?P:Wr(P),ei($,P)}function Jvt($,P){if(typeof $!="function")throw new kd(s);return P=P==null?0:Ys(Wr(P),0),ei(function(U){var re=U[P],me=Av(U,0,P);return re&&Ov(me,re),ma($,this,me)})}function e2t($,P,U){var re=!0,me=!0;if(typeof $!="function")throw new kd(s);return Go(U)&&(re="leading"in U?!!U.leading:re,me="trailing"in U?!!U.trailing:me),wCe($,P,{leading:re,maxWait:P,trailing:me})}function t2t($){return vCe($,1)}function n2t($,P){return cJ(qZ(P),$)}function r2t(){if(!arguments.length)return[];var $=arguments[0];return Fr($)?$:[$]}function i2t($){return Bd($,g)}function o2t($,P){return P=typeof P=="function"?P:n,Bd($,g,P)}function s2t($){return Bd($,f|g)}function a2t($,P){return P=typeof P=="function"?P:n,Bd($,f|g,P)}function l2t($,P){return P==null||u8e($,P,va(P))}function Sh($,P){return $===P||$!==$&&P!==P}var c2t=TA(LZ),u2t=TA(function($,P){return $>=P}),x6=m8e(function(){return arguments}())?m8e:function($){return is($)&&Zi.call($,"callee")&&!n8e.call($,"callee")},Fr=Pt.isArray,d2t=Ts?Ou(Ts):y1t;function Mc($){return $!=null&&NA($.length)&&!v1($)}function ps($){return is($)&&Mc($)}function f2t($){return $===!0||$===!1||is($)&&Jl($)==Q}var Dv=$mt||bJ,h2t=Ch?Ou(Ch):b1t;function g2t($){return is($)&&$.nodeType===1&&!_E($)}function p2t($){if($==null)return!0;if(Mc($)&&(Fr($)||typeof $=="string"||typeof $.splice=="function"||Dv($)||Xb($)||x6($)))return!$.length;var P=yl($);if(P==oe||P==de)return!$.size;if(ME($))return!kZ($).length;for(var U in $)if(Zi.call($,U))return!1;return!0}function m2t($,P){return OE($,P)}function v2t($,P,U){U=typeof U=="function"?U:n;var re=U?U($,P):n;return re===n?OE($,P,n,U):!!re}function uJ($){if(!is($))return!1;var P=Jl($);return P==Z||P==ne||typeof $.message=="string"&&typeof $.name=="string"&&!_E($)}function C2t($){return typeof $=="number"&&i8e($)}function v1($){if(!Go($))return!1;var P=Jl($);return P==ee||P==J||P==X||P==ue}function ECe($){return typeof $=="number"&&$==Wr($)}function NA($){return typeof $=="number"&&$>-1&&$%1==0&&$<=A}function Go($){var P=typeof $;return $!=null&&(P=="object"||P=="function")}function is($){return $!=null&&typeof $=="object"}var RCe=Fd?Ou(Fd):w1t;function y2t($,P){return $===P||NZ($,P,eJ(P))}function b2t($,P,U){return U=typeof U=="function"?U:n,NZ($,P,eJ(P),U)}function S2t($){return $Ce($)&&$!=+$}function w2t($){if(o0t($))throw new Dr(o);return v8e($)}function x2t($){return $===null}function E2t($){return $==null}function $Ce($){return typeof $=="number"||is($)&&Jl($)==le}function _E($){if(!is($)||Jl($)!=he)return!1;var P=uA($);if(P===null)return!0;var U=Zi.call(P,"constructor")&&P.constructor;return typeof U=="function"&&U instanceof U&&sA.call(U)==bmt}var dJ=fp?Ou(fp):x1t;function R2t($){return ECe($)&&$>=-9007199254740991&&$<=A}var OCe=vE?Ou(vE):E1t;function kA($){return typeof $=="string"||!Fr($)&&is($)&&Jl($)==xe}function Iu($){return typeof $=="symbol"||is($)&&Jl($)==Ee}var Xb=p6?Ou(p6):R1t;function $2t($){return $===n}function O2t($){return is($)&&yl($)==Be}function T2t($){return is($)&&Jl($)==Ge}var I2t=TA(zZ),M2t=TA(function($,P){return $<=P});function TCe($){if(!$)return[];if(Mc($))return kA($)?yh($):Ic($);if(yE&&$[yE])return lmt($[yE]());var P=yl($),U=P==oe?$Z:P==de?rA:Qb;return U($)}function C1($){if(!$)return $===0?$:0;if($=Vd($),$===I||$===-1/0){var P=$<0?-1:1;return P*N}return $===$?$:0}function Wr($){var P=C1($),U=P%1;return P===P?U?P-U:P:0}function ICe($){return $?y6(Wr($),0,z):0}function Vd($){if(typeof $=="number")return $;if(Iu($))return B;if(Go($)){var P=typeof $.valueOf=="function"?$.valueOf():$;$=Go(P)?P+"":P}if(typeof $!="string")return $===0?$:+$;$=K6e($);var U=ln.test($);return U||xt.test($)?Qn($.slice(2),U?2:8):pn.test($)?B:+$}function MCe($){return gp($,Pc($))}function P2t($){return $?y6(Wr($),-9007199254740991,A):$===0?$:0}function qi($){return $==null?"":Tu($)}var _2t=qb(function($,P){if(ME(P)||Mc(P)){gp(P,va(P),$);return}for(var U in P)Zi.call(P,U)&&EE($,U,P[U])}),PCe=qb(function($,P){gp(P,Pc(P),$)}),zA=qb(function($,P,U,re){gp(P,Pc(P),$,re)}),A2t=qb(function($,P,U,re){gp(P,va(P),$,re)}),D2t=p1(_Z);function L2t($,P){var U=Ub($);return P==null?U:c8e(U,P)}var F2t=ei(function($,P){$=po($);var U=-1,re=P.length,me=re>2?P[2]:n;for(me&&ec(P[0],P[1],me)&&(re=1);++U<re;)for(var Ae=P[U],qe=Pc(Ae),et=-1,vt=qe.length;++et<vt;){var Ut=qe[et],qt=$[Ut];(qt===n||Sh(qt,Vb[Ut])&&!Zi.call($,Ut))&&($[Ut]=Ae[Ut])}return $}),N2t=ei(function($){return $.push(n,K8e),ma(_Ce,n,$)});function k2t($,P){return G6e($,hr(P,3),hp)}function z2t($,P){return G6e($,hr(P,3),DZ)}function B2t($,P){return $==null?$:AZ($,hr(P,3),Pc)}function H2t($,P){return $==null?$:g8e($,hr(P,3),Pc)}function j2t($,P){return $&&hp($,hr(P,3))}function V2t($,P){return $&&DZ($,hr(P,3))}function G2t($){return $==null?[]:bA($,va($))}function W2t($){return $==null?[]:bA($,Pc($))}function fJ($,P,U){var re=$==null?n:b6($,P);return re===n?U:re}function U2t($,P){return $!=null&&Q8e($,P,p1t)}function hJ($,P){return $!=null&&Q8e($,P,m1t)}var q2t=V8e(function($,P,U){P!=null&&typeof P.toString!="function"&&(P=aA.call(P)),$[P]=U},pJ(_c)),K2t=V8e(function($,P,U){P!=null&&typeof P.toString!="function"&&(P=aA.call(P)),Zi.call($,P)?$[P].push(U):$[P]=[U]},hr),Y2t=ei($E);function va($){return Mc($)?a8e($):kZ($)}function Pc($){return Mc($)?a8e($,!0):$1t($)}function X2t($,P){var U={};return P=hr(P,3),hp($,function(re,me,Ae){h1(U,P(re,me,Ae),re)}),U}function Q2t($,P){var U={};return P=hr(P,3),hp($,function(re,me,Ae){h1(U,me,P(re,me,Ae))}),U}var Z2t=qb(function($,P,U){SA($,P,U)}),_Ce=qb(function($,P,U,re){SA($,P,U,re)}),J2t=p1(function($,P){var U={};if($==null)return U;var re=!1;P=No(P,function(Ae){return Ae=_v(Ae,$),re||(re=Ae.length>1),Ae}),gp($,ZZ($),U),re&&(U=Bd(U,f|h|g,q1t));for(var me=P.length;me--;)GZ(U,P[me]);return U});function e4t($,P){return ACe($,FA(hr(P)))}var t4t=p1(function($,P){return $==null?{}:T1t($,P)});function ACe($,P){if($==null)return{};var U=No(ZZ($),function(re){return[re]});return P=hr(P),E8e($,U,function(re,me){return P(re,me[0])})}function n4t($,P,U){P=_v(P,$);var re=-1,me=P.length;for(me||(me=1,$=n);++re<me;){var Ae=$==null?n:$[pp(P[re])];Ae===n&&(re=me,Ae=U),$=v1(Ae)?Ae.call($):Ae}return $}function r4t($,P,U){return $==null?$:TE($,P,U)}function i4t($,P,U,re){return re=typeof re=="function"?re:n,$==null?$:TE($,P,U,re)}var DCe=U8e(va),LCe=U8e(Pc);function o4t($,P,U){var re=Fr($),me=re||Dv($)||Xb($);if(P=hr(P,4),U==null){var Ae=$&&$.constructor;me?U=re?new Ae:[]:Go($)?U=v1(Ae)?Ub(uA($)):{}:U={}}return(me?Nd:hp)($,function(qe,et,vt){return P(U,qe,et,vt)}),U}function s4t($,P){return $==null?!0:GZ($,P)}function a4t($,P,U){return $==null?$:I8e($,P,qZ(U))}function l4t($,P,U,re){return re=typeof re=="function"?re:n,$==null?$:I8e($,P,qZ(U),re)}function Qb($){return $==null?[]:RZ($,va($))}function c4t($){return $==null?[]:RZ($,Pc($))}function u4t($,P,U){return U===n&&(U=P,P=n),U!==n&&(U=Vd(U),U=U===U?U:0),P!==n&&(P=Vd(P),P=P===P?P:0),y6(Vd($),P,U)}function d4t($,P,U){return P=C1(P),U===n?(U=P,P=0):U=C1(U),$=Vd($),v1t($,P,U)}function f4t($,P,U){if(U&&typeof U!="boolean"&&ec($,P,U)&&(P=U=n),U===n&&(typeof P=="boolean"?(U=P,P=n):typeof $=="boolean"&&(U=$,$=n)),$===n&&P===n?($=0,P=1):($=C1($),P===n?(P=$,$=0):P=C1(P)),$>P){var re=$;$=P,P=re}if(U||$%1||P%1){var me=o8e();return Cl($+me*(P-$+Tr("1e-"+((me+"").length-1))),P)}return HZ($,P)}var h4t=Kb(function($,P,U){return P=P.toLowerCase(),$+(U?FCe(P):P)});function FCe($){return gJ(qi($).toLowerCase())}function NCe($){return $=qi($),$&&$.replace(Ft,rmt).replace(Pn,"")}function g4t($,P,U){$=qi($),P=Tu(P);var re=$.length;U=U===n?re:y6(Wr(U),0,re);var me=U;return U-=P.length,U>=0&&$.slice(U,me)==P}function p4t($){return $=qi($),$&&$t.test($)?$.replace(tt,imt):$}function m4t($){return $=qi($),$&&$e.test($)?$.replace(Te,"\\$&"):$}var v4t=Kb(function($,P,U){return $+(U?"-":"")+P.toLowerCase()}),C4t=Kb(function($,P,U){return $+(U?" ":"")+P.toLowerCase()}),y4t=B8e("toLowerCase");function b4t($,P,U){$=qi($),P=Wr(P);var re=P?Hb($):0;if(!P||re>=P)return $;var me=(P-re)/2;return OA(gA(me),U)+$+OA(hA(me),U)}function S4t($,P,U){$=qi($),P=Wr(P);var re=P?Hb($):0;return P&&re<P?$+OA(P-re,U):$}function w4t($,P,U){$=qi($),P=Wr(P);var re=P?Hb($):0;return P&&re<P?OA(P-re,U)+$:$}function x4t($,P,U){return U||P==null?P=0:P&&(P=+P),Mmt(qi($).replace(He,""),P||0)}function E4t($,P,U){return(U?ec($,P,U):P===n)?P=1:P=Wr(P),jZ(qi($),P)}function R4t(){var $=arguments,P=qi($[0]);return $.length<3?P:P.replace($[1],$[2])}var $4t=Kb(function($,P,U){return $+(U?"_":"")+P.toLowerCase()});function O4t($,P,U){return U&&typeof U!="number"&&ec($,P,U)&&(P=U=n),U=U===n?z:U>>>0,U?($=qi($),$&&(typeof P=="string"||P!=null&&!dJ(P))&&(P=Tu(P),!P&&Bb($))?Av(yh($),0,U):$.split(P,U)):[]}var T4t=Kb(function($,P,U){return $+(U?" ":"")+gJ(P)});function I4t($,P,U){return $=qi($),U=U==null?0:y6(Wr(U),0,$.length),P=Tu(P),$.slice(U,U+P.length)==P}function M4t($,P,U){var re=Ie.templateSettings;U&&ec($,P,U)&&(P=n),$=qi($),P=zA({},P,re,q8e);var me=zA({},P.imports,re.imports,q8e),Ae=va(me),qe=RZ(me,Ae),et,vt,Ut=0,qt=P.interpolate||hn,en="__p += '",$n=OZ((P.escape||hn).source+"|"+qt.source+"|"+(qt===Ct?At:hn).source+"|"+(P.evaluate||hn).source+"|$","g"),Kn="//# sourceURL="+(Zi.call(P,"sourceURL")?(P.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vh+"]")+`
|
||
`;$.replace($n,function(mr,ci,Si,Mu,tc,Pu){return Si||(Si=Mu),en+=$.slice(Ut,Pu).replace(Mt,omt),ci&&(et=!0,en+=`' +
|
||
__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
|
||
}`;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.after=Wvt,Ie.ary=vCe,Ie.assign=_2t,Ie.assignIn=PCe,Ie.assignInWith=zA,Ie.assignWith=A2t,Ie.at=D2t,Ie.before=CCe,Ie.bind=lJ,Ie.bindAll=z4t,Ie.bindKey=yCe,Ie.castArray=r2t,Ie.chain=gCe,Ie.chunk=f0t,Ie.compact=h0t,Ie.concat=g0t,Ie.cond=B4t,Ie.conforms=H4t,Ie.constant=pJ,Ie.countBy=wvt,Ie.create=L2t,Ie.curry=bCe,Ie.curryRight=SCe,Ie.debounce=wCe,Ie.defaults=F2t,Ie.defaultsDeep=N2t,Ie.defer=Uvt,Ie.delay=qvt,Ie.difference=p0t,Ie.differenceBy=m0t,Ie.differenceWith=v0t,Ie.drop=C0t,Ie.dropRight=y0t,Ie.dropRightWhile=b0t,Ie.dropWhile=S0t,Ie.fill=w0t,Ie.filter=Evt,Ie.flatMap=Ovt,Ie.flatMapDeep=Tvt,Ie.flatMapDepth=Ivt,Ie.flatten=uCe,Ie.flattenDeep=x0t,Ie.flattenDepth=E0t,Ie.flip=Kvt,Ie.flow=V4t,Ie.flowRight=G4t,Ie.fromPairs=R0t,Ie.functions=G2t,Ie.functionsIn=W2t,Ie.groupBy=Mvt,Ie.initial=O0t,Ie.intersection=T0t,Ie.intersectionBy=I0t,Ie.intersectionWith=M0t,Ie.invert=q2t,Ie.invertBy=K2t,Ie.invokeMap=_vt,Ie.iteratee=mJ,Ie.keyBy=Avt,Ie.keys=va,Ie.keysIn=Pc,Ie.map=AA,Ie.mapKeys=X2t,Ie.mapValues=Q2t,Ie.matches=W4t,Ie.matchesProperty=U4t,Ie.memoize=LA,Ie.merge=Z2t,Ie.mergeWith=_Ce,Ie.method=q4t,Ie.methodOf=K4t,Ie.mixin=vJ,Ie.negate=FA,Ie.nthArg=X4t,Ie.omit=J2t,Ie.omitBy=e4t,Ie.once=Yvt,Ie.orderBy=Dvt,Ie.over=Q4t,Ie.overArgs=Xvt,Ie.overEvery=Z4t,Ie.overSome=J4t,Ie.partial=cJ,Ie.partialRight=xCe,Ie.partition=Lvt,Ie.pick=t4t,Ie.pickBy=ACe,Ie.property=BCe,Ie.propertyOf=e3t,Ie.pull=D0t,Ie.pullAll=fCe,Ie.pullAllBy=L0t,Ie.pullAllWith=F0t,Ie.pullAt=N0t,Ie.range=t3t,Ie.rangeRight=n3t,Ie.rearg=Qvt,Ie.reject=kvt,Ie.remove=k0t,Ie.rest=Zvt,Ie.reverse=sJ,Ie.sampleSize=Bvt,Ie.set=r4t,Ie.setWith=i4t,Ie.shuffle=Hvt,Ie.slice=z0t,Ie.sortBy=Gvt,Ie.sortedUniq=U0t,Ie.sortedUniqBy=q0t,Ie.split=O4t,Ie.spread=Jvt,Ie.tail=K0t,Ie.take=Y0t,Ie.takeRight=X0t,Ie.takeRightWhile=Q0t,Ie.takeWhile=Z0t,Ie.tap=hvt,Ie.throttle=e2t,Ie.thru=_A,Ie.toArray=TCe,Ie.toPairs=DCe,Ie.toPairsIn=LCe,Ie.toPath=a3t,Ie.toPlainObject=MCe,Ie.transform=o4t,Ie.unary=t2t,Ie.union=J0t,Ie.unionBy=evt,Ie.unionWith=tvt,Ie.uniq=nvt,Ie.uniqBy=rvt,Ie.uniqWith=ivt,Ie.unset=s4t,Ie.unzip=aJ,Ie.unzipWith=hCe,Ie.update=a4t,Ie.updateWith=l4t,Ie.values=Qb,Ie.valuesIn=c4t,Ie.without=ovt,Ie.words=kCe,Ie.wrap=n2t,Ie.xor=svt,Ie.xorBy=avt,Ie.xorWith=lvt,Ie.zip=cvt,Ie.zipObject=uvt,Ie.zipObjectDeep=dvt,Ie.zipWith=fvt,Ie.entries=DCe,Ie.entriesIn=LCe,Ie.extend=PCe,Ie.extendWith=zA,vJ(Ie,Ie),Ie.add=c3t,Ie.attempt=zCe,Ie.camelCase=h4t,Ie.capitalize=FCe,Ie.ceil=u3t,Ie.clamp=u4t,Ie.clone=i2t,Ie.cloneDeep=s2t,Ie.cloneDeepWith=a2t,Ie.cloneWith=o2t,Ie.conformsTo=l2t,Ie.deburr=NCe,Ie.defaultTo=j4t,Ie.divide=d3t,Ie.endsWith=g4t,Ie.eq=Sh,Ie.escape=p4t,Ie.escapeRegExp=m4t,Ie.every=xvt,Ie.find=Rvt,Ie.findIndex=lCe,Ie.findKey=k2t,Ie.findLast=$vt,Ie.findLastIndex=cCe,Ie.findLastKey=z2t,Ie.floor=f3t,Ie.forEach=pCe,Ie.forEachRight=mCe,Ie.forIn=B2t,Ie.forInRight=H2t,Ie.forOwn=j2t,Ie.forOwnRight=V2t,Ie.get=fJ,Ie.gt=c2t,Ie.gte=u2t,Ie.has=U2t,Ie.hasIn=hJ,Ie.head=dCe,Ie.identity=_c,Ie.includes=Pvt,Ie.indexOf=$0t,Ie.inRange=d4t,Ie.invoke=Y2t,Ie.isArguments=x6,Ie.isArray=Fr,Ie.isArrayBuffer=d2t,Ie.isArrayLike=Mc,Ie.isArrayLikeObject=ps,Ie.isBoolean=f2t,Ie.isBuffer=Dv,Ie.isDate=h2t,Ie.isElement=g2t,Ie.isEmpty=p2t,Ie.isEqual=m2t,Ie.isEqualWith=v2t,Ie.isError=uJ,Ie.isFinite=C2t,Ie.isFunction=v1,Ie.isInteger=ECe,Ie.isLength=NA,Ie.isMap=RCe,Ie.isMatch=y2t,Ie.isMatchWith=b2t,Ie.isNaN=S2t,Ie.isNative=w2t,Ie.isNil=E2t,Ie.isNull=x2t,Ie.isNumber=$Ce,Ie.isObject=Go,Ie.isObjectLike=is,Ie.isPlainObject=_E,Ie.isRegExp=dJ,Ie.isSafeInteger=R2t,Ie.isSet=OCe,Ie.isString=kA,Ie.isSymbol=Iu,Ie.isTypedArray=Xb,Ie.isUndefined=$2t,Ie.isWeakMap=O2t,Ie.isWeakSet=T2t,Ie.join=P0t,Ie.kebabCase=v4t,Ie.last=jd,Ie.lastIndexOf=_0t,Ie.lowerCase=C4t,Ie.lowerFirst=y4t,Ie.lt=I2t,Ie.lte=M2t,Ie.max=h3t,Ie.maxBy=g3t,Ie.mean=p3t,Ie.meanBy=m3t,Ie.min=v3t,Ie.minBy=C3t,Ie.stubArray=yJ,Ie.stubFalse=bJ,Ie.stubObject=r3t,Ie.stubString=i3t,Ie.stubTrue=o3t,Ie.multiply=y3t,Ie.nth=A0t,Ie.noConflict=Y4t,Ie.noop=CJ,Ie.now=DA,Ie.pad=b4t,Ie.padEnd=S4t,Ie.padStart=w4t,Ie.parseInt=x4t,Ie.random=f4t,Ie.reduce=Fvt,Ie.reduceRight=Nvt,Ie.repeat=E4t,Ie.replace=R4t,Ie.result=n4t,Ie.round=b3t,Ie.runInContext=ht,Ie.sample=zvt,Ie.size=jvt,Ie.snakeCase=$4t,Ie.some=Vvt,Ie.sortedIndex=B0t,Ie.sortedIndexBy=H0t,Ie.sortedIndexOf=j0t,Ie.sortedLastIndex=V0t,Ie.sortedLastIndexBy=G0t,Ie.sortedLastIndexOf=W0t,Ie.startCase=T4t,Ie.startsWith=I4t,Ie.subtract=S3t,Ie.sum=w3t,Ie.sumBy=x3t,Ie.template=M4t,Ie.times=s3t,Ie.toFinite=C1,Ie.toInteger=Wr,Ie.toLength=ICe,Ie.toLower=P4t,Ie.toNumber=Vd,Ie.toSafeInteger=P2t,Ie.toString=qi,Ie.toUpper=_4t,Ie.trim=A4t,Ie.trimEnd=D4t,Ie.trimStart=L4t,Ie.truncate=F4t,Ie.unescape=N4t,Ie.uniqueId=l3t,Ie.upperCase=k4t,Ie.upperFirst=gJ,Ie.each=pCe,Ie.eachRight=mCe,Ie.first=dCe,vJ(Ie,function(){var $={};return hp(Ie,function(P,U){Zi.call(Ie.prototype,U)||($[U]=P)}),$}(),{chain:!1}),Ie.VERSION=r,Nd(["bind","bindKey","curry","curryRight","partial","partialRight"],function($){Ie[$].placeholder=Ie}),Nd(["drop","take"],function($,P){fi.prototype[$]=function(U){U=U===n?1:Ys(Wr(U),0);var re=this.__filtered__&&!P?new fi(this):this.clone();return re.__filtered__?re.__takeCount__=Cl(U,re.__takeCount__):re.__views__.push({size:Cl(U,z),type:$+(re.__dir__<0?"Right":"")}),re},fi.prototype[$+"Right"]=function(U){return this.reverse()[$](U).reverse()}}),Nd(["filter","map","takeWhile"],function($,P){var U=P+1,re=U==D||U==L;fi.prototype[$]=function(me){var Ae=this.clone();return Ae.__iteratees__.push({iteratee:hr(me,3),type:U}),Ae.__filtered__=Ae.__filtered__||re,Ae}}),Nd(["head","last"],function($,P){var U="take"+(P?"Right":"");fi.prototype[$]=function(){return this[U](1).value()[0]}}),Nd(["initial","tail"],function($,P){var U="drop"+(P?"":"Right");fi.prototype[$]=function(){return this.__filtered__?new fi(this):this[U](1)}}),fi.prototype.compact=function(){return this.filter(_c)},fi.prototype.find=function($){return this.filter($).head()},fi.prototype.findLast=function($){return this.reverse().find($)},fi.prototype.invokeMap=ei(function($,P){return typeof $=="function"?new fi(this):this.map(function(U){return $E(U,$,P)})}),fi.prototype.reject=function($){return this.filter(FA(hr($)))},fi.prototype.slice=function($,P){$=Wr($);var U=this;return U.__filtered__&&($>0||P<0)?new fi(U):($<0?U=U.takeRight(-$):$&&(U=U.drop($)),P!==n&&(P=Wr(P),U=P<0?U.dropRight(-P):U.take(P-$)),U)},fi.prototype.takeRightWhile=function($){return this.reverse().takeWhile($).reverse()},fi.prototype.toArray=function(){return this.take(z)},hp(fi.prototype,function($,P){var U=/^(?:filter|find|map|reject)|While$/.test(P),re=/^(?:head|last)$/.test(P),me=Ie[re?"take"+(P=="last"?"Right":""):P],Ae=re||/^find/.test(P);me&&(Ie.prototype[P]=function(){var qe=this.__wrapped__,et=re?[1]:arguments,vt=qe instanceof fi,Ut=et[0],qt=vt||Fr(qe),en=function(ci){var Si=me.apply(Ie,Ov([ci],et));return re&&$n?Si[0]:Si};qt&&U&&typeof Ut=="function"&&Ut.length!=1&&(vt=qt=!1);var $n=this.__chain__,Kn=!!this.__actions__.length,pr=Ae&&!$n,Qr=vt&&!Kn;if(!Ae&&qt){qe=Qr?qe:new fi(this);var mr=$.apply(qe,et);return mr.__actions__.push({func:_A,args:[en],thisArg:n}),new zd(mr,$n)}return pr&&Qr?$.apply(this,et):(mr=this.thru(en),pr?re?mr.value()[0]:mr.value():mr)})}),Nd(["pop","push","shift","sort","splice","unshift"],function($){var P=iA[$],U=/^(?:push|sort|unshift)$/.test($)?"tap":"thru",re=/^(?:pop|shift)$/.test($);Ie.prototype[$]=function(){var me=arguments;if(re&&!this.__chain__){var Ae=this.value();return P.apply(Fr(Ae)?Ae:[],me)}return this[U](function(qe){return P.apply(Fr(qe)?qe:[],me)})}}),hp(fi.prototype,function($,P){var U=Ie[P];if(U){var re=U.name+"";Zi.call(Wb,re)||(Wb[re]=[]),Wb[re].push({name:P,func:U})}}),Wb[RA(n,C).name]=[{name:"wrapper",func:n}],fi.prototype.clone=Nmt,fi.prototype.reverse=kmt,fi.prototype.value=zmt,Ie.prototype.at=gvt,Ie.prototype.chain=pvt,Ie.prototype.commit=mvt,Ie.prototype.next=vvt,Ie.prototype.plant=yvt,Ie.prototype.reverse=bvt,Ie.prototype.toJSON=Ie.prototype.valueOf=Ie.prototype.value=Svt,Ie.prototype.first=Ie.prototype.head,yE&&(Ie.prototype[yE]=Cvt),Ie},jb=mmt();Fo?((Fo.exports=jb)._=jb,Ti._=jb):ai._=jb}).call(Jo)})(gH,gH.exports);var gti=gH.exports;function pti({value:e,onChange:t,className:n,style:r,placeholder:i="点击上传"}){var c;const[o,s]=d.useState(e||[]),[a,l]=d.useState("");return d.useEffect(()=>{gti.isEqual(e,o)||s(e||[])},[e]),d.useEffect(()=>{t==null||t(o)},[o]),H.jsxs(H.Fragment,{children:[H.jsx("div",{className:"flex gap-2 mb-2",style:{width:"1200px"},children:(c=o||[])==null?void 0:c.map((u,f)=>H.jsxs("div",{className:`mr-2px relative ${n}`,style:{width:"100px",height:"100px",...r},children:[H.jsx(uB,{alt:"",className:n,style:{width:"100px",height:"100px",...r},src:u,preview:{visible:a===u,onVisibleChange:h=>l(h&&u||"")}}),H.jsx(Cr,{type:"text",danger:!0,icon:H.jsx(Dg,{className:"text-red"}),onClick:()=>u&&s(o.filter((h,g)=>g!==f)),style:{position:"absolute",top:"0",right:"0",zIndex:1,padding:"4px",backgroundColor:"rgba(255, 255, 255, 0.2)",borderRadius:"50%"}})]},f))}),H.jsx("div",{className:"flex",children:H.jsx(hQ,{style:r,className:n,showCover:!1,placeholder:i,successText:"轮播图上传成功",onChange:u=>{console.log(u),s([...o,u])}})})]})}function mti(){const e=Yze(),{token:t}=Wm.useToken(),n=e.filter(r=>{var i;return!!((i=r.handle)!=null&&i.crumb)}).map(r=>r.handle.crumb(r.data));return H.jsx("ol",{className:"flex items-center space-x-2 text-gray-600",children:n.map((r,i)=>H.jsxs(ce.Fragment,{children:[H.jsx("li",{className:"inline-flex items-center ",style:{color:i===n.length-1?t.colorPrimaryText:t.colorTextSecondary,fontWeight:i===n.length-1?"bold":"normal"},children:r}),i<n.length-1&&H.jsx("li",{className:"mx-2",children:H.jsx(Xf,{})})]},i))})}const L_=({className:e,style:t,borderless:n=!1,children:r,roomId:i,awarePlaceholder:o="协作人员"})=>{const{user:s,sessionId:a,accessToken:l}=Wi(),[c,u]=d.useState(new Map),{token:f}=Wm.useToken(),h=d.useRef(null),{websocketUrl:g}=Gje();d.useEffect(()=>{let m;if(!s||!i||!g)return;const v=setTimeout(()=>{var C;try{const y=new Lx,b=new YHe(g+"/yjs",i,y,{params:{userId:s==null?void 0:s.id,sessionId:a}});h.current=b;const{awareness:S}=b,w=()=>{const R=new Map;S.getStates().forEach((O,T)=>{var _;const M=(_=O==null?void 0:O.user)==null?void 0:_.sessionId;M&&R.set(M,O)}),u(R)},x={user:{id:s.id,showname:s.showname||s.username,deptName:(C=s.department)==null?void 0:C.name,sessionId:a}};S.setLocalStateField("user",x.user),S.on("change",w),w();const E=()=>{S.setLocalState(null),b.disconnect()};window.addEventListener("beforeunload",E),m=()=>{h.current&&(S.off("change",w),S.setLocalState(null),b.disconnect(),h.current=null),u(new Map),window.removeEventListener("beforeunload",E)}}catch(y){console.error("WebSocket connection error:",y)}},100);return()=>{clearTimeout(v),m&&m()}},[i,s,g,a]);const p=()=>Array.from(c.entries()).map(([m,v])=>{var C,y,b,S,w,x,E,R,O;return H.jsx(Gm,{color:"white",title:H.jsxs("span",{className:"text-tertiary",children:[(v==null?void 0:v.user.deptName)&&H.jsx("span",{className:"mr-2 text-primary",children:(C=v==null?void 0:v.user)==null?void 0:C.deptName}),H.jsx("span",{className:"",children:((y=v==null?void 0:v.user)==null?void 0:y.showname)||"匿名用户"})]}),children:H.jsx(Xz,{className:"cursor-pointer",src:(b=v==null?void 0:v.user)==null?void 0:b.avatarUrl,size:35,style:{borderColor:sae(QF((S=v==null?void 0:v.user)==null?void 0:S.sessionId),30),borderWidth:3,color:sae(QF((w=v==null?void 0:v.user)==null?void 0:w.sessionId),30),fontWeight:"bold",background:QF((x=v==null?void 0:v.user)==null?void 0:x.sessionId)},children:!((E=v==null?void 0:v.user)!=null&&E.avatarUrl)&&(((O=(R=v==null?void 0:v.user)==null?void 0:R.showname)==null?void 0:O.toUpperCase())||"匿名用户")})},m)});return H.jsxs("div",{className:`flex-shrink-0 p-2 border-gray-200 flex justify-between ${n?"":"border-b"} ${e}`,style:{height:"49px",...t},children:[H.jsxs("div",{className:"flex items-center gap-4",children:[H.jsx(mti,{}),H.jsxs("div",{className:"flex items-center gap-2",children:[i&&H.jsx(jC,{icon:H.jsx(JYe,{spin:!0}),color:f.colorPrimaryHover,children:o}),H.jsx(Xz.Group,{max:{count:35,style:{backgroundColor:f.colorPrimaryBg,color:f.colorPrimary,padding:10}},children:p()})]})]}),r]})};var w3e={exports:{}},F_={},_Q={exports:{}},bdt={},Sdt={exports:{}},vti="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Cti=vti,yti=Cti;function wdt(){}function xdt(){}xdt.resetWarningCache=wdt;var bti=function(){function e(r,i,o,s,a,l){if(l!==yti){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xdt,resetWarningCache:wdt};return n.PropTypes=n,n};Sdt.exports=bti();var AQ=Sdt.exports;function Edt(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Edt(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function QDe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Edt(e))&&(r&&(r+=" "),r+=t);return r}const Sti=Object.freeze(Object.defineProperty({__proto__:null,clsx:QDe,default:QDe},Symbol.toStringTag,{value:"Module"})),wti=_r(Sti);var gs={},s1={};Object.defineProperty(s1,"__esModule",{value:!0});s1.dontSetMe=Oti;s1.findInArray=xti;s1.int=$ti;s1.isFunction=Eti;s1.isNum=Rti;function xti(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function Eti(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function Rti(e){return typeof e=="number"&&!isNaN(e)}function $ti(e){return parseInt(e,10)}function Oti(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var Ab={};Object.defineProperty(Ab,"__esModule",{value:!0});Ab.browserPrefixToKey=$dt;Ab.browserPrefixToStyle=Tti;Ab.default=void 0;Ab.getPrefix=Rdt;const jie=["Moz","Webkit","O","ms"];function Rdt(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let r=0;r<jie.length;r++)if($dt(t,jie[r])in n)return jie[r];return""}function $dt(e,t){return t?"".concat(t).concat(Iti(e)):e}function Tti(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function Iti(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}Ab.default=Rdt();Object.defineProperty(gs,"__esModule",{value:!0});gs.addClassName=Idt;gs.addEvent=_ti;gs.addUserSelectStyles=Vti;gs.createCSSTransform=zti;gs.createSVGTransform=Bti;gs.getTouch=Hti;gs.getTouchIdentifier=jti;gs.getTranslation=x3e;gs.innerHeight=Fti;gs.innerWidth=Nti;gs.matchesSelector=Tdt;gs.matchesSelectorAndParentsTo=Pti;gs.offsetXYFromParent=kti;gs.outerHeight=Dti;gs.outerWidth=Lti;gs.removeClassName=Mdt;gs.removeEvent=Ati;gs.removeUserSelectStyles=Gti;var pd=s1,ZDe=Mti(Ab);function Odt(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Odt=function(r){return r?n:t})(e)}function Mti(e,t){if(e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Odt(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}let fF="";function Tdt(e,t){return fF||(fF=(0,pd.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,pd.isFunction)(e[n])})),(0,pd.isFunction)(e[fF])?e[fF](t):!1}function Pti(e,t,n){let r=e;do{if(Tdt(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function _ti(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function Ati(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function Dti(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,pd.int)(n.borderTopWidth),t+=(0,pd.int)(n.borderBottomWidth),t}function Lti(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,pd.int)(n.borderLeftWidth),t+=(0,pd.int)(n.borderRightWidth),t}function Fti(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,pd.int)(n.paddingTop),t-=(0,pd.int)(n.paddingBottom),t}function Nti(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,pd.int)(n.paddingLeft),t-=(0,pd.int)(n.paddingRight),t}function kti(e,t,n){const i=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-i.left)/n,s=(e.clientY+t.scrollTop-i.top)/n;return{x:o,y:s}}function zti(e,t){const n=x3e(e,t,"px");return{[(0,ZDe.browserPrefixToKey)("transform",ZDe.default)]:n}}function Bti(e,t){return x3e(e,t,"")}function x3e(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const s="".concat(typeof t.x=="string"?t.x:t.x+n),a="".concat(typeof t.y=="string"?t.y:t.y+n);o="translate(".concat(s,", ").concat(a,")")+o}return o}function Hti(e,t){return e.targetTouches&&(0,pd.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,pd.findInArray)(e.changedTouches,n=>t===n.identifier)}function jti(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function Vti(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
||
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
||
`,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 must return a primitive value.")}return(t==="string"?String:Number)(e)}const Lh={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let r2=Lh.mouse,FQ=class extends Vie.Component{constructor(){super(...arguments),ac(this,"dragging",!1),ac(this,"lastX",NaN),ac(this,"lastY",NaN),ac(this,"touchIdentifier",null),ac(this,"mounted",!1),ac(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,wl.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,wl.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const i=(0,wl.getTouchIdentifier)(t);this.touchIdentifier=i;const o=(0,n2.getControlPosition)(t,i,this);if(o==null)return;const{x:s,y:a}=o,l=(0,n2.createCoreData)(this,s,a);(0,NR.default)("DraggableCore: handleDragStart: %j",l),(0,NR.default)("calling",this.props.onStart),!(this.props.onStart(t,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,wl.addUserSelectStyles)(r),this.dragging=!0,this.lastX=s,this.lastY=a,(0,wl.addEvent)(r,r2.move,this.handleDrag),(0,wl.addEvent)(r,r2.stop,this.handleDragStop))}),ac(this,"handleDrag",t=>{const n=(0,n2.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let a=r-this.lastX,l=i-this.lastY;if([a,l]=(0,n2.snapToGrid)(this.props.grid,a,l),!a&&!l)return;r=this.lastX+a,i=this.lastY+l}const o=(0,n2.createCoreData)(this,r,i);if((0,NR.default)("DraggableCore: handleDrag: %j",o),this.props.onDrag(t,o)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=i}),ac(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,n2.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,c=i-this.lastY||0;[l,c]=(0,n2.snapToGrid)(this.props.grid,l,c),r=this.lastX+l,i=this.lastY+c}const o=(0,n2.createCoreData)(this,r,i);if(this.props.onStop(t,o)===!1||this.mounted===!1)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,wl.removeUserSelectStyles)(a.ownerDocument),(0,NR.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,NR.default)("DraggableCore: Removing handlers"),(0,wl.removeEvent)(a.ownerDocument,r2.move,this.handleDrag),(0,wl.removeEvent)(a.ownerDocument,r2.stop,this.handleDragStop))}),ac(this,"onMouseDown",t=>(r2=Lh.mouse,this.handleDragStart(t))),ac(this,"onMouseUp",t=>(r2=Lh.mouse,this.handleDragStop(t))),ac(this,"onTouchStart",t=>(r2=Lh.touch,this.handleDragStart(t))),ac(this,"onTouchEnd",t=>(r2=Lh.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,wl.addEvent)(t,Lh.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,wl.removeEvent)(n,Lh.mouse.move,this.handleDrag),(0,wl.removeEvent)(n,Lh.touch.move,this.handleDrag),(0,wl.removeEvent)(n,Lh.mouse.stop,this.handleDragStop),(0,wl.removeEvent)(n,Lh.touch.stop,this.handleDragStop),(0,wl.removeEvent)(t,Lh.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,wl.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:eni.default.findDOMNode(this)}render(){return Vie.cloneElement(Vie.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};DQ.default=FQ;ac(FQ,"displayName","DraggableCore");ac(FQ,"propTypes",{allowAnyClick:Bc.default.bool,children:Bc.default.node.isRequired,disabled:Bc.default.bool,enableUserSelectHack:Bc.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Bc.default.arrayOf(Bc.default.number),handle:Bc.default.string,cancel:Bc.default.string,nodeRef:Bc.default.object,onStart:Bc.default.func,onDrag:Bc.default.func,onStop:Bc.default.func,onMouseDown:Bc.default.func,scale:Bc.default.number,className:Gie.dontSetMe,style:Gie.dontSetMe,transform:Gie.dontSetMe});ac(FQ,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=h(d),n=u(AQ),r=u(fo),i=u(wti),o=gs,s=a1,a=s1,l=u(DQ),c=u(LQ);function u(y){return y&&y.__esModule?y:{default:y}}function f(y){if(typeof WeakMap!="function")return null;var b=new WeakMap,S=new WeakMap;return(f=function(w){return w?S:b})(y)}function h(y,b){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var S=f(b);if(S&&S.has(y))return S.get(y);var w={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in y)if(E!=="default"&&Object.prototype.hasOwnProperty.call(y,E)){var R=x?Object.getOwnPropertyDescriptor(y,E):null;R&&(R.get||R.set)?Object.defineProperty(w,E,R):w[E]=y[E]}return w.default=y,S&&S.set(y,w),w}function g(){return g=Object.assign?Object.assign.bind():function(y){for(var b=1;b<arguments.length;b++){var S=arguments[b];for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(y[w]=S[w])}return y},g.apply(this,arguments)}function p(y,b,S){return b=m(b),b in y?Object.defineProperty(y,b,{value:S,enumerable:!0,configurable:!0,writable:!0}):y[b]=S,y}function m(y){var b=v(y,"string");return typeof b=="symbol"?b:String(b)}function v(y,b){if(typeof y!="object"||y===null)return y;var S=y[Symbol.toPrimitive];if(S!==void 0){var w=S.call(y,b||"default");if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(y)}class C extends t.Component{static getDerivedStateFromProps(b,S){let{position:w}=b,{prevPropsPosition:x}=S;return w&&(!x||w.x!==x.x||w.y!==x.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:x}),{x:w.x,y:w.y,prevPropsPosition:{...w}}):null}constructor(b){super(b),p(this,"onDragStart",(S,w)=>{if((0,c.default)("Draggable: onDragStart: %j",w),this.props.onStart(S,(0,s.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,w)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",w);const x=(0,s.createDraggableData)(this,w),E={x:x.x,y:x.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:T}=E;E.x+=this.state.slackX,E.y+=this.state.slackY;const[M,_]=(0,s.getBoundPosition)(this,E.x,E.y);E.x=M,E.y=_,E.slackX=this.state.slackX+(O-E.x),E.slackY=this.state.slackY+(T-E.y),x.x=E.x,x.y=E.y,x.deltaX=E.x-this.state.x,x.deltaY=E.y-this.state.y}if(this.props.onDrag(S,x)===!1)return!1;this.setState(E)}),p(this,"onDragStop",(S,w)=>{if(!this.state.dragging||this.props.onStop(S,(0,s.createDraggableData)(this,w))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",w);const E={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:T}=this.props.position;E.x=O,E.y=T}this.setState(E)}),this.state={dragging:!1,dragged:!1,x:b.position?b.position.x:b.defaultPosition.x,y:b.position?b.position.y:b.defaultPosition.y,prevPropsPosition:{...b.position},slackX:0,slackY:0,isElementSVG:!1},b.position&&!(b.onDrag||b.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var b,S;return(b=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&b!==void 0?b:r.default.findDOMNode(this)}render(){const{axis:b,bounds:S,children:w,defaultPosition:x,defaultClassName:E,defaultClassNameDragging:R,defaultClassNameDragged:O,position:T,positionOffset:M,scale:_,...F}=this.props;let D={},k=null;const I=!!!T||this.state.dragging,A=T||x,N={x:(0,s.canDragX)(this)&&I?this.state.x:A.x,y:(0,s.canDragY)(this)&&I?this.state.y:A.y};this.state.isElementSVG?k=(0,o.createSVGTransform)(N,M):D=(0,o.createCSSTransform)(N,M);const B=(0,i.default)(w.props.className||"",E,{[R]:this.state.dragging,[O]:this.state.dragged});return t.createElement(l.default,g({},F,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(w),{className:B,style:{...w.props.style,...D},transform:k}))}}e.default=C,p(C,"displayName","Draggable"),p(C,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),p(C,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(bdt);const{default:_dt,DraggableCore:ini}=bdt;_Q.exports=_dt;_Q.exports.default=_dt;_Q.exports.DraggableCore=ini;var oni=_Q.exports,$3e={};$3e.__esModule=!0;$3e.cloneElement=dni;var sni=ani(d);function ani(e){return e&&e.__esModule?e:{default:e}}function JDe(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 eLe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JDe(Object(n),!0).forEach(function(r){lni(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JDe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lni(e,t,n){return t=cni(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cni(e){var t=uni(e,"string");return typeof t=="symbol"?t:String(t)}function uni(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 must return a primitive value.")}return(t==="string"?String:Number)(e)}function dni(e,t){return t.style&&e.props.style&&(t.style=eLe(eLe({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),sni.default.cloneElement(e,t)}var N_={};N_.__esModule=!0;N_.resizableProps=void 0;var Ur=fni(AQ);function fni(e){return e&&e.__esModule?e:{default:e}}var hni={axis:Ur.default.oneOf(["both","x","y","none"]),className:Ur.default.string,children:Ur.default.element.isRequired,draggableOpts:Ur.default.shape({allowAnyClick:Ur.default.bool,cancel:Ur.default.string,children:Ur.default.node,disabled:Ur.default.bool,enableUserSelectHack:Ur.default.bool,offsetParent:Ur.default.node,grid:Ur.default.arrayOf(Ur.default.number),handle:Ur.default.string,nodeRef:Ur.default.object,onStart:Ur.default.func,onDrag:Ur.default.func,onStop:Ur.default.func,onMouseDown:Ur.default.func,scale:Ur.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="y"){var o;return(o=Ur.default.number).isRequired.apply(o,n)}return Ur.default.number.apply(Ur.default,n)},handle:Ur.default.oneOfType([Ur.default.node,Ur.default.func]),handleSize:Ur.default.arrayOf(Ur.default.number),lockAspectRatio:Ur.default.bool,maxConstraints:Ur.default.arrayOf(Ur.default.number),minConstraints:Ur.default.arrayOf(Ur.default.number),onResizeStop:Ur.default.func,onResizeStart:Ur.default.func,onResize:Ur.default.func,resizeHandles:Ur.default.arrayOf(Ur.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Ur.default.number,width:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="x"){var o;return(o=Ur.default.number).isRequired.apply(o,n)}return Ur.default.number.apply(Ur.default,n)}};N_.resizableProps=hni;F_.__esModule=!0;F_.default=void 0;var kR=Cni(d),gni=oni,pni=$3e,mni=N_,vni=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function Adt(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Adt=function(i){return i?n:t})(e)}function Cni(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Adt(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 qde(){return qde=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},qde.apply(this,arguments)}function yni(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 tLe(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 Wie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tLe(Object(n),!0).forEach(function(r){bni(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tLe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bni(e,t,n){return t=Sni(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sni(e){var t=wni(e,"string");return typeof t=="symbol"?t:String(t)}function wni(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 must return a primitive value.")}return(t==="string"?String:Number)(e)}function xni(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kde(e,t)}function Kde(e,t){return Kde=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kde(e,t)}var O3e=function(e){xni(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(i,o){var s=this.props,a=s.minConstraints,l=s.maxConstraints,c=s.lockAspectRatio;if(!a&&!l&&!c)return[i,o];if(c){var u=this.props.width/this.props.height,f=i-this.props.width,h=o-this.props.height;Math.abs(f)>Math.abs(h*u)?o=i/u:i=o*u}var g=i,p=o,m=this.slack||[0,0],v=m[0],C=m[1];return i+=v,o+=C,a&&(i=Math.max(a[0],i),o=Math.max(a[1],o)),l&&(i=Math.min(l[0],i),o=Math.min(l[1],o)),this.slack=[v+(g-i),C+(p-o)],[i,o]},n.resizeHandler=function(i,o){var s=this;return function(a,l){var c=l.node,u=l.deltaX,f=l.deltaY;i==="onResizeStart"&&s.resetData();var h=(s.props.axis==="both"||s.props.axis==="x")&&o!=="n"&&o!=="s",g=(s.props.axis==="both"||s.props.axis==="y")&&o!=="e"&&o!=="w";if(!(!h&&!g)){var p=o[0],m=o[o.length-1],v=c.getBoundingClientRect();if(s.lastHandleRect!=null){if(m==="w"){var C=v.left-s.lastHandleRect.left;u+=C}if(p==="n"){var y=v.top-s.lastHandleRect.top;f+=y}}s.lastHandleRect=v,m==="w"&&(u=-u),p==="n"&&(f=-f);var b=s.props.width+(h?u/s.props.transformScale:0),S=s.props.height+(g?f/s.props.transformScale:0),w=s.runConstraints(b,S);b=w[0],S=w[1];var x=b!==s.props.width||S!==s.props.height,E=typeof s.props[i]=="function"?s.props[i]:null,R=i==="onResize"&&!x;E&&!R&&(a.persist==null||a.persist(),E(a,{node:c,size:{width:b,height:S},handle:o})),i==="onResizeStop"&&s.resetData()}}},n.renderResizeHandle=function(i,o){var s=this.props.handle;if(!s)return kR.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+i,ref:o});if(typeof s=="function")return s(i,o);var a=typeof s.type=="string",l=Wie({ref:o},a?{}:{handleAxis:i});return kR.cloneElement(s,l)},n.render=function(){var i=this,o=this.props,s=o.children,a=o.className,l=o.draggableOpts;o.width,o.height,o.handle,o.handleSize,o.lockAspectRatio,o.axis,o.minConstraints,o.maxConstraints,o.onResize,o.onResizeStop,o.onResizeStart;var c=o.resizeHandles;o.transformScale;var u=yni(o,vni);return(0,pni.cloneElement)(s,Wie(Wie({},u),{},{className:(a?a+" ":"")+"react-resizable",children:[].concat(s.props.children,c.map(function(f){var h,g=(h=i.handleRefs[f])!=null?h:i.handleRefs[f]=kR.createRef();return kR.createElement(gni.DraggableCore,qde({},l,{nodeRef:g,key:"resizableHandle-"+f,onStop:i.resizeHandler("onResizeStop",f),onStart:i.resizeHandler("onResizeStart",f),onDrag:i.resizeHandler("onResize",f)}),i.renderResizeHandle(f,g))}))}))},t}(kR.Component);F_.default=O3e;O3e.propTypes=mni.resizableProps;O3e.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var NQ={};NQ.__esModule=!0;NQ.default=void 0;var Uie=Tni(d),Eni=Ddt(AQ),Rni=Ddt(F_),$ni=N_,Oni=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function Ddt(e){return e&&e.__esModule?e:{default:e}}function Ldt(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ldt=function(i){return i?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=Ldt(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 Yde(){return Yde=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},Yde.apply(this,arguments)}function nLe(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 pH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nLe(Object(n),!0).forEach(function(r){Ini(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nLe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ini(e,t,n){return t=Mni(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mni(e){var t=Pni(e,"string");return typeof t=="symbol"?t:String(t)}function Pni(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 must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ni(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 Ani(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xde(e,t)}function Xde(e,t){return Xde=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xde(e,t)}var Fdt=function(e){Ani(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(a,l){var c=l.size;r.props.onResize?(a.persist==null||a.persist(),r.setState(c,function(){return r.props.onResize&&r.props.onResize(a,l)})):r.setState(c)},r}t.getDerivedStateFromProps=function(i,o){return o.propsWidth!==i.width||o.propsHeight!==i.height?{width:i.width,height:i.height,propsWidth:i.width,propsHeight:i.height}:null};var n=t.prototype;return n.render=function(){var i=this.props,o=i.handle,s=i.handleSize;i.onResize;var a=i.onResizeStart,l=i.onResizeStop,c=i.draggableOpts,u=i.minConstraints,f=i.maxConstraints,h=i.lockAspectRatio,g=i.axis;i.width,i.height;var p=i.resizeHandles,m=i.style,v=i.transformScale,C=_ni(i,Oni);return Uie.createElement(Rni.default,{axis:g,draggableOpts:c,handle:o,handleSize:s,height:this.state.height,lockAspectRatio:h,maxConstraints:f,minConstraints:u,onResizeStart:a,onResize:this.onResize,onResizeStop:l,resizeHandles:p,transformScale:v,width:this.state.width},Uie.createElement("div",Yde({},C,{style:pH(pH({},m),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(Uie.Component);NQ.default=Fdt;Fdt.propTypes=pH(pH({},$ni.resizableProps),{},{children:Eni.default.element});w3e.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};w3e.exports.Resizable=F_.default;w3e.exports.ResizableBox=NQ.default;const Dni="modulepreload",Lni=function(e){return"/"+e},rLe={},xn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=Lni(l),l in rLe)return;rLe[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Dni,c||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,g)=>{f.addEventListener("load",h),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var Ndt={exports:{}},zR={};/**
|
||
* @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.
|
||
*/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(()=>import("./inbox-CQ1akO08-CzpJlaLd.js"),[]),"../icons/italic.svg":()=>xn(()=>import("./italic-DMSQgFnS-DOEZCEZ1.js"),[]),"../icons/link-off.svg":()=>xn(()=>import("./link-off-DZAgsSxK-B6xMXQPC.js"),[]),"../icons/link.svg":()=>xn(()=>import("./link-KeHiWBJT-CuqIlkZm.js"),[]),"../icons/list.svg":()=>xn(()=>import("./list-Bs6u--UJ-eA9pjrj3.js"),[]),"../icons/logout.svg":()=>xn(()=>import("./logout-B0mQe5Qi-DF17owpB.js"),[]),"../icons/loop.svg":()=>xn(()=>import("./loop-dsNm_gaj-DkPa6i0D.js"),[]),"../icons/more.svg":()=>xn(()=>import("./more-DOWiYiPH-GRR8ysNy.js"),[]),"../icons/note.svg":()=>xn(()=>import("./note-Bqaccb7j-CtYQDrQt.js"),[]),"../icons/number-symbol.svg":()=>xn(()=>import("./number-symbol--0U5ng1u-DX0-tc7o.js"),[]),"../icons/org.svg":()=>xn(()=>import("./org-ct1252nQ-BfTllgJB.js"),[]),"../icons/people-32.svg":()=>xn(()=>import("./people-32-DWkG_AEs-B_1jrXMT.js"),[]),"../icons/people-group.svg":()=>xn(()=>import("./people-group-DAJyorhy-Dn2EYOeo.js"),[]),"../icons/people-plus.svg":()=>xn(()=>import("./people-plus-CaZDHm6f-B7a-LqC-.js"),[]),"../icons/people.svg":()=>xn(()=>import("./people-BlGM0esi-C_qKpv6V.js"),[]),"../icons/person-board.svg":()=>xn(()=>import("./person-board-CGwlcXCK-B9agoP0y.js"),[]),"../icons/person-hair.svg":()=>xn(()=>import("./person-hair-cux4Oez7-BVg-7YyY.js"),[]),"../icons/person-home.svg":()=>xn(()=>import("./person-home-TVkRmIXv-BBpURoUQ.js"),[]),"../icons/plane-takeoff.svg":()=>xn(()=>import("./plane-takeoff-D8MEJ99K-Cl_SEXXf.js"),[]),"../icons/plane.svg":()=>xn(()=>import("./plane-CNSX_xPZ-B35Y6xpd.js"),[]),"../icons/progress.svg":()=>xn(()=>import("./progress-xq5clHAn-CenFRX2W.js"),[]),"../icons/radar-chart.svg":()=>xn(()=>import("./radar-chart-kqL_3xwo-DfBIfHEG.js"),[]),"../icons/react.svg":()=>xn(()=>import("./react-CwSRowEQ-QgYTcSqt.js"),[]),"../icons/redo.svg":()=>xn(()=>import("./redo-BlWi9gwZ-CP18WXEp.js"),[]),"../icons/right-line.svg":()=>xn(()=>import("./right-line-CZxB4z-S-C6nFMNve.js"),[]),"../icons/seal-check.svg":()=>xn(()=>import("./seal-check-Bzc_Rg44-8y04pjyN.js"),[]),"../icons/search.svg":()=>xn(()=>import("./search-D5rwXZnU-BmKuypdd.js"),[]),"../icons/setting.svg":()=>xn(()=>import("./setting-BWVSKyb7-CGHVVIJN.js"),[]),"../icons/share.svg":()=>xn(()=>import("./share-DD20P1bR-CAqP37_K.js"),[]),"../icons/strike.svg":()=>xn(()=>import("./strike-Db1W3LH4-B4uYXTO1.js"),[]),"../icons/subject-rounded.svg":()=>xn(()=>import("./subject-rounded-RPHxzAM6-E3h55KVy.js"),[]),"../icons/sum.svg":()=>xn(()=>import("./sum-CP8qw4zJ-C9b5UdlC.js"),[]),"../icons/target.svg":()=>xn(()=>import("./target-BQR-JIzR-DeRp7ACo.js"),[]),"../icons/text-indent.svg":()=>xn(()=>import("./text-indent-mVfgassO-DqLu7JTK.js"),[]),"../icons/text-outdent.svg":()=>xn(()=>import("./text-outdent-CzeeK6rs-D_Idhyv0.js"),[]),"../icons/time.svg":()=>xn(()=>import("./time-8zVe6vD_-CO9arZM0.js"),[]),"../icons/underline.svg":()=>xn(()=>import("./underline-BAa1Ttlz-B1xR8ou1.js"),[]),"../icons/undo.svg":()=>xn(()=>import("./undo-B5Chp__o-BHoJTHTM.js"),[]),"../icons/user-id.svg":()=>xn(()=>import("./user-id-Q2t8rpnY-DhvGaTDn.js"),[]),"../icons/work.svg":()=>xn(()=>import("./work-TRqMhsot-B18ZEvZr.js"),[]),"../icons/zoomin.svg":()=>xn(()=>import("./zoomin-D7FfpJa4-CzlKcEgh.js"),[]),"../icons/zoomout.svg":()=>xn(()=>import("./zoomout-CBVN6dw0-9Fcs0kz7.js"),[])}),`../icons/${e}.svg`,3)).default}catch(s){o(s)}finally{r(!1)}})()},[e]),{error:i,loading:n,Svg:t.current}},oLe={small:16,middle:24,large:32};function kdt(e){const{name:t,svgProp:n,className:r="",size:i="middle"}=e,{loading:o,Svg:s}=kni(t),a=typeof i=="number"?i:oLe[i]||oLe.middle,l={width:a,height:a,...n==null?void 0:n.style};return BR.jsxs(BR.Fragment,{children:[o&&BR.jsx("div",{className:` ${r}`,style:{borderRadius:"100%",height:24,width:24}}),s&&BR.jsxs("span",{className:r,children:[" ",BR.jsx(s,{style:l,...n})]})]})}const zni=d.createContext({pageWidth:void 0});function Bni(){const{update:e,baseSetting:t}=pge(),n=an.useUtils(),[r]=F0(),{token:i}=Wm.useToken(),{data:o}=an.app_config.getClientCount.useQuery(void 0,{refetchInterval:3e3,refetchIntervalInBackground:!0}),[s,a]=d.useState(!1),[l,c]=d.useState(!1),{user:u,hasSomePermissions:f}=Wi(),h=d.useContext(zni),g=h==null?void 0:h.pageWidth;function p(){a(!0)}function m(){r&&(t?(r.resetFields(),r.setFieldsValue(t)):r.resetFields(),a(!1))}function v(){r&&r.submit()}async function C(y){c(!0);const b=(y==null?void 0:y.appConfig)||{};try{await e.mutateAsync({where:{slug:uge.BASE_SETTING},data:{meta:{...t,appConfig:{...(t==null?void 0:t.appConfig)||{},...b}}}}),a(!1),li.success("已保存")}catch(S){console.error(S)}finally{c(!1)}}return d.useEffect(()=>{t&&r&&r.setFieldsValue(t)},[t,r]),H.jsxs("div",{style:{width:g},children:[H.jsx(L_,{children:H.jsx("div",{className:"flex items-center gap-2",children:s&&f(Ki.MANAGE_BASE_SETTING)&&H.jsxs(H.Fragment,{children:[H.jsx(Cr,{onClick:m,children:"重置"}),H.jsx(Cr,{loading:l,type:"primary",onClick:v,children:"保存"})]})})}),H.jsxs("div",{className:"flex flex-col overflow-auto ",style:{height:"calc(100vh - 48px - 49px)"},children:[H.jsxs(Rn,{form:r,disabled:!f(Ki.MANAGE_BASE_SETTING),onFinish:C,onFieldsChange:p,layout:"vertical",children:[H.jsx("div",{className:"p-2 border-b",style:{fontSize:i.fontSize,fontWeight:"bold"},children:"全局参数配置"}),H.jsx("div",{className:"p-2 grid grid-cols-8 gap-2 border-b",children:H.jsx(Rn.Item,{label:"运维单位",name:["appConfig","devDept"],children:H.jsx(Ai,{})})}),H.jsx("div",{className:"p-2 grid grid-cols-8 gap-2 border-b",children:H.jsx(Rn.Item,{label:"首页轮播图",name:["appConfig","slides"],children:H.jsx(pti,{})})})]}),H.jsx("div",{className:"p-2 border-b text-primary flex justify-between items-center",style:{fontSize:i.fontSize,fontWeight:"bold"},children:H.jsx("span",{children:"服务端全局命令"})}),H.jsx("div",{className:" p-2 grid grid-cols-8 gap-4 border-b",children:H.jsx(Cr,{onClick:async()=>{try{await n.client.app_config.clearRowCache.mutate(),li.success("操作成功")}catch{li.error("操作失败,请重试")}},type:"primary",ghost:!0,children:"清除行模型缓存"})}),H.jsxs("div",{className:"p-2 border-b text-primary flex justify-between items-center",style:{fontSize:i.fontSize,fontWeight:"bold"},children:[H.jsx("span",{children:"app在线人数"}),H.jsx("div",{children:o&&o>0?`${o}人在线`:"无人在线"})]})]})]})}var s6=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,n){const r=t?this.allAsyncListeners:this.allSyncListeners;let i=r.get(e);return!i&&n&&(i=new Set,r.set(e,i)),i}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,n=!1){this.getListeners(e,n,!0).add(t)}removeEventListener(e,t,n=!1){const r=this.getListeners(e,n,!1);r&&(r.delete(t),r.size===0&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const n=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const r=(a,l)=>a.forEach(c=>{if(!l.has(c))return;const u=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(e)):()=>c(e);t?this.dispatchAsync(u):u()}),i=this.getListeners(n,t,!1)??new Set,o=new Set(i);o.size>0&&r(o,i),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(n,e)):()=>a(n,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}},rr=(e=>(e.CommunityCoreModule="@ag-grid-community/core",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue",e))(rr||{}),sLe={};function kQ(e,t){sLe[t]||(e(),sLe[t]=!0)}function mg(e,...t){console.log("AG Grid: "+e,...t)}function rt(e,...t){kQ(()=>console.warn("AG Grid: "+e,...t),e+(t==null?void 0:t.join("")))}function Mr(e,...t){kQ(()=>console.error("AG Grid: "+e,...t),e+(t==null?void 0:t.join("")))}function T3e(e){return!!(e&&e.constructor&&e.call&&e.apply)}function Hni(e){jni(e,400)}var qie=[],Kie=!1;function aLe(e){qie.push(e),!Kie&&(Kie=!0,window.setTimeout(()=>{const t=qie.slice();qie.length=0,Kie=!1,t.forEach(n=>n())},0))}function jni(e,t=0){e.length>0&&window.setTimeout(()=>e.forEach(n=>n()),t)}function _a(e,t){let n;return function(...r){const i=this;window.clearTimeout(n),n=window.setTimeout(function(){e.apply(i,r)},t)}}function lLe(e,t){let n=0;return function(...r){const i=this,o=new Date().getTime();o-n<t||(n=o,e.apply(i,r))}}function zdt(e,t,n=100,r){const i=new Date().getTime();let o=null,s=!1;const a=()=>{const l=new Date().getTime()-i>n;(e()||l)&&(t(),s=!0,o!=null&&(window.clearInterval(o),o=null))};a(),s||(o=window.setInterval(a,10))}function Vni(...e){return t=>e.reduce((n,r)=>r(n),t)}function Da(e){return e==null||e===""?null:e}function zt(e,t=!1){return e!=null&&(e!==""||t)}function ar(e){return!zt(e)}function Es(e){return e==null||e.length===0}function vm(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function fC(e){if(e===void 0)return;if(e===null||e==="")return null;if(typeof e=="number")return isNaN(e)?void 0:e;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Qde(e){if(e!==void 0)return e===null||e===""?!1:Zde(e)}function Zde(e){return typeof e=="boolean"?e:typeof e=="string"?e.toUpperCase()==="TRUE"||e=="":!1}function gI(e,t){const n=e?JSON.stringify(e):null,r=t?JSON.stringify(t):null;return n===r}function ak(e,t,n=!1){const r=e==null,i=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&i)return 0;if(r)return-1;if(i)return 1;function o(s,a){return s>a?1:s<a?-1:0}if(typeof e!="string"||!n)return o(e,t);try{return e.localeCompare(t)}catch{return o(e,t)}}function lk(e){if(e instanceof Set||e instanceof Map){const t=[];return e.forEach(n=>t.push(n)),t}return Object.values(e)}function Bdt(e,t){return e.get("rowModelType")===t}function Li(e){return Bdt(e,"clientSide")}function ml(e){return Bdt(e,"serverSide")}function La(e,t){return e.get("domLayout")===t}function pI(e){return hC(e)!==void 0}function mH(e){return!e.get("suppressAsyncEvents")}function I3e(e){return typeof e.get("getRowHeight")=="function"}function Gni(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function kl(e,t,n=!1,r){if(r==null&&(r=e.environment.getDefaultRowHeight()),I3e(e)){if(n)return{height:r,estimated:!0};const s={node:t,data:t.data},a=e.getCallback("getRowHeight")(s);if(Jde(a))return a===0&&rt("The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead."),{height:Math.max(1,a),estimated:!1}}if(t.detail&&e.get("masterDetail"))return Wni(e);const i=e.get("rowHeight");return{height:i&&Jde(i)?i:r,estimated:!1}}function Wni(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return Jde(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function W0(e){const{environment:t}=e,n=e.get("rowHeight");if(!n||ar(n))return t.getDefaultRowHeight();const r=t.refreshRowHeightVariable();return r!==-1?r:(rt("row height must be a number if not using standard row model"),t.getDefaultRowHeight())}function Jde(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function mI(e,t,n){const r=t[e.getDomDataKey()];return r?r[n]:void 0}function Cy(e,t,n,r){const i=e.getDomDataKey();let o=t[i];ar(o)&&(o={},t[i]=o),o[n]=r}function uo(e){let t=null;const n=e.get("getDocument");return n&&zt(n)?t=n():e.eGridDiv&&(t=e.eGridDiv.ownerDocument),t&&zt(t)?t:document}function Hdt(e){return uo(e).defaultView||window}function vI(e){return e.eGridDiv.getRootNode()}function gi(e){return vI(e).activeElement}function CI(e){const t=uo(e),n=gi(e);return n===null||n===t.body}function uw(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function zQ(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||La(e,"print"))}function ug(e){const t=e.get("autoGroupColumnDef");return!(t!=null&&t.comparator)&&!e.get("treeData")}function yI(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function BQ(e){const t=e.get("grandTotalRow");if(t)return t;if(e.get("groupIncludeTotalFooter"))return"bottom"}function Sx(e){const t=e.get("groupTotalRow");if(typeof t=="function")return e.getCallback("groupTotalRow");if(t)return()=>t;const n=e.get("groupIncludeFooter");if(typeof n=="function"){const r=e.getCallback("groupIncludeFooter");return i=>r(i)?"bottom":void 0}return()=>n?"bottom":void 0}function M3e(e){return e.exists("groupDisplayType")?e.get("groupDisplayType")==="multipleColumns":e.get("groupHideOpenParents")}function HQ(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function U0(e){const t=e.getCallback("getRowId");return t===void 0?t:n=>{let r=t(n);return typeof r!="string"&&(rt("The getRowId callback must return a string. The ID ",r," is being cast to a string."),r=String(r)),r}}function wx(e){return(e==null?void 0:e.checkboxes)??!0}function vH(e){return(e==null?void 0:e.mode)==="multiRow"&&(e.headerCheckbox??!0)}function Uni(e){return(e==null?void 0:e.hideDisabledCheckboxes)??!1}function P3e(e){return typeof e.get("rowSelection")!="string"}function jdt(e){return e.get("cellSelection")!==void 0}function x$(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?(t==null?void 0:t.suppressMultiRanges)??!1:!1:e.get("suppressMultiRangeSelection")}function su(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function qni(e){var r;const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?((r=t.handle)==null?void 0:r.mode)==="range":!1:e.get("enableRangeHandle")}function cLe(e){var r;const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?((r=t.handle)==null?void 0:r.mode)==="fill":!1:e.get("enableFillHandle")}function Yie(e){var r;const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"&&((r=t.handle)==null?void 0:r.mode)==="fill"?t.handle:void 0:{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}}function Vdt(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const n=e.get("suppressRowClickSelection"),r=e.get("suppressRowDeselection");return n&&r?!1:n?"enableDeselection":r?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function Kni(e){const t=Vdt(e);return t===!0||t==="enableSelection"}function uLe(e){const t=Vdt(e);return t===!0||t==="enableDeselection"}function _3e(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t==null?void 0:t.isRowSelectable}function hC(e){const t=e.get("rowSelection");if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}return t==null?void 0:t.mode}function xx(e){return hC(e)==="multiRow"}function Yni(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):(t==null?void 0:t.enableSelectionWithoutKeys)??!1}function A3e(e){const t=e.get("rowSelection");if(typeof t=="string"){const n=e.get("groupSelectsChildren"),r=e.get("groupSelectsFiltered");return n&&r?"filteredDescendants":n?"descendants":"self"}return(t==null?void 0:t.mode)==="multiRow"?t.groupSelects:void 0}function q0(e){const t=A3e(e);return t==="descendants"||t==="filteredDescendants"}function Xie(e){return e.isModuleRegistered("@ag-grid-enterprise/set-filter")&&!e.get("suppressSetFilterByDefault")}function dw(e){return e!=null&&e.length>0}function Dn(e){if(!(!e||!e.length))return e[e.length-1]}function vc(e,t,n){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((r,i)=>n?n(r,t[i]):t[i]===r)}function Xni(e,t){return vc(e,t)}function Qni(e){return e.sort((t,n)=>t-n)}function Zni(e,t){if(e)for(let n=e.length-2;n>=0;n--){const r=e[n]===t,i=e[n+1]===t;r&&i&&e.splice(n+1,1)}}function Gdt(e,t){const n=e.indexOf(t);n>=0&&(e[n]=e[e.length-1],e.pop())}function rl(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function Jni(e,t){for(let n=0;n<t.length;n++)Gdt(e,t[n])}function eri(e,t){for(let n=0;n<t.length;n++)rl(e,t[n])}function Ex(e,t,n){e.splice(n,0,t)}function dLe(e,t,n){if(!(e==null||t==null))for(let r=t.length-1;r>=0;r--){const i=t[r];Ex(e,i,n)}}function Wdt(e,t,n){eri(e,t),t.slice().reverse().forEach(r=>Ex(e,r,n))}function ll(e,t){return e.indexOf(t)>-1}function ck(e){return(e==null?void 0:e.flatMap(t=>t))??[]}function fLe(e,t){t==null||e==null||t.forEach(n=>e.push(n))}var Udt="__ag_Grid_Stop_Propagation",tri=["touchstart","touchend","touchmove","touchcancel","scroll"],Qie={};function Nm(e){e[Udt]=!0}function Ig(e){return e[Udt]===!0}var qdt=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n=>{if(typeof Qie[n]=="boolean")return Qie[n];const r=document.createElement(e[n]||"div");return n="on"+n,Qie[n]=n in r}})();function CH(e,t,n){let r=t;for(;r;){const i=mI(e,r,n);if(i)return i;r=r.parentElement}return null}function efe(e,t){return!t||!e?!1:rri(t).indexOf(e)>=0}function nri(e){const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function rri(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():nri(t)}function iri(e,t,n,r){const o=ll(tri,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,r,o)}var ct=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.frameworkOverrides=e.frameworkOverrides,this.stubContext=e.context,this.eventService=e.eventService,this.gos=e.gos,this.localeService=e.localeService}getFrameworkOverrides(){return this.frameworkOverrides}destroy(){for(let e=0;e<this.destroyFunctions.length;e++)this.destroyFunctions[e]();this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,n){this.localEventService||(this.localEventService=new s6),this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService&&this.localEventService.removeEventListener(e,t,n)}dispatchLocalEvent(e){this.localEventService&&this.localEventService.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventService,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const n=[];for(const r in t){const i=t[r];i&&n.push(this._setupListener(e,r,i))}return n}_setupListener(e,t,n){if(this.destroyed)return()=>null;e instanceof HTMLElement?iri(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);const r=()=>(e.removeEventListener(t,n),null);return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==r),null)}setupGridOptionListener(e,t){this.gos.addPropertyEventListener(e,t);const n=()=>(this.gos.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(n),()=>(n(),this.destroyFunctions=this.destroyFunctions.filter(r=>r!==n),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const n=e.join("-")+this.propertyListenerId++,r=i=>{if(i.changeSet){if(i.changeSet&&i.changeSet.id===this.lastChangeSetIdLookup[n])return;this.lastChangeSetIdLookup[n]=i.changeSet.id}const o={type:"gridPropertyChanged",changeSet:i.changeSet,source:i.source};t(o)};e.forEach(i=>this.setupGridOptionListener(i,r))}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createManagedBean(e,t){const n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n}createBean(e,t,n){return(t||this.stubContext).createBean(e,n)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function _o(e){return e instanceof vO}var vO=class extends ct{constructor(e,t,n,r){super(),this.isColumn=!1,this.expandable=!1,this.instanceId=Ydt(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=n,this.level=r}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}setOriginalParent(e){this.originalParent=e}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}addLeafColumns(e){this.children&&this.children.forEach(t=>{km(t)?e.push(t):_o(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,n=!1;const r=this.findChildrenRemovingPadding();for(let o=0,s=r.length;o<s;o++){const a=r[o];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,n=!0):l==="closed"?(t=!0,n=!0):(e=!0,t=!0)}const i=e&&t&&n;this.expandable!==i&&(this.expandable=i,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=n=>{n.forEach(r=>{_o(r)&&r.isPadding()?t(r.children):e.push(r)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},Kdt="ag-Grid-ControlsColumn",ori=class extends ct{constructor(){super(...arguments),this.beanName="controlsColService"}createControlsCols(){const{gos:e}=this,t=e.get("rowSelection");if(!t||typeof t!="object")return[];const n=wx(t),r=vH(t);if(n||r){const i=e.get("selectionColumnDef"),s={maxWidth:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:e.get("enableRtl")?"right":"left",comparator(l,c,u,f){const h=u.isSelected(),g=f.isSelected();return h&&g?0:h?1:-1},editable:!1,suppressFillHandle:!0,...i,colId:`${Kdt}`},a=new VQ(s,null,s.colId,!1);return this.createBean(a),[a]}return[]}},yy="ag-Grid-AutoColumn";function D3e(e){const t=[],n=r=>{for(let i=0;i<r.length;i++){const o=r[i];km(o)?t.push(o):_o(o)&&n(o.getChildren())}};return n(e),t}function r0(e){return e.reduce((t,n)=>t+n.getActualWidth(),0)}function I2(e,t,n){const r={};if(!t)return;K0(null,t,o=>{r[o.getInstanceId()]=o}),n&&K0(null,n,o=>{r[o.getInstanceId()]=null});const i=Object.values(r).filter(o=>o!=null);e.destroyBeans(i)}function tfe(e){return e.getId().startsWith(yy)}function k_(e){return e.getColId().startsWith(Kdt)}function uk(e){let t=[];return e instanceof Array?e.some(r=>typeof r!="string")?rt("if colDef.type is supplied an array it should be of type 'string[]'"):t=e:typeof e=="string"?t=e.split(","):rt("colDef.type should be of type 'string' | 'string[]'"),t}var L3e=class{constructor(e){this.frameworkOverrides=e,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}wrap(e){let t=e;return this.frameworkOverrides.shouldWrapOutgoing&&(t=n=>{this.frameworkOverrides.wrapOutgoing(()=>e(n))},this.wrappedListeners.set(e,t)),t}wrapGlobal(e){let t=e;return this.frameworkOverrides.shouldWrapOutgoing&&(t=(n,r)=>{this.frameworkOverrides.wrapOutgoing(()=>e(n,r))},this.wrappedGlobalListeners.set(e,t)),t}unwrap(e){return this.wrappedListeners.get(e)??e}unwrapGlobal(e){return this.wrappedGlobalListeners.get(e)??e}},F3e=new Set(["__proto__","constructor","prototype"]);function tl(e,t){if(e!=null){if(Array.isArray(e)){for(let n=0;n<e.length;n++)t(n.toString(),e[n]);return}for(const[n,r]of Object.entries(e))t(n,r)}}function jQ(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++){if(F3e.has(n[r]))continue;const i=n[r],o=e[i];t[i]=o}return t}function nfe(e,t){if(!e)return;const n=e,r={};return Object.keys(n).forEach(i=>{if(t&&t.indexOf(i)>=0||F3e.has(i))return;const o=n[i];rfe(o)&&o.constructor===Object?r[i]=nfe(o):r[i]=o}),r}function c3(e){if(!e)return[];const t=Object;if(typeof t.values=="function")return t.values(e);const n=[];for(const r in e)e.hasOwnProperty(r)&&e.propertyIsEnumerable(r)&&n.push(e[r]);return n}function nl(e,t,n=!0,r=!1){zt(t)&&tl(t,(i,o)=>{if(F3e.has(i))return;let s=e[i];s!==o&&(r&&s==null&&o!=null&&typeof o=="object"&&o.constructor===Object&&(s={},e[i]=s),rfe(o)&&rfe(s)&&!Array.isArray(s)?nl(s,o,n,r):(n||o!==void 0)&&(e[i]=o))})}function CO(e,t,n){if(!t||!e)return;if(!n)return e[t];const r=t.split(".");let i=e;for(let o=0;o<r.length;o++){if(i==null)return;i=i[r[o]]}return i}function rfe(e){return typeof e=="object"&&e!==null}var sri={resizable:!0,sortable:!0},ari=0;function Ydt(){return ari++}function km(e){return e instanceof VQ}var VQ=class extends ct{constructor(e,t,n,r){super(),this.isColumn=!0,this.instanceId=Ydt(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.columnEventService=new s6,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.setState(e)}wireBeans(e){this.columnHoverService=e.columnHoverService}getInstanceId(){return this.instanceId}setState(e){e.sort!==void 0?(e.sort==="asc"||e.sort==="desc")&&(this.sort=e.sort):(e.initialSort==="asc"||e.initialSort==="desc")&&(this.sort=e.initialSort);const t=e.sortIndex,n=e.initialSortIndex;t!==void 0?t!==null&&(this.sortIndex=t):n!==null&&(this.sortIndex=n);const r=e.hide,i=e.initialHide;r!==void 0?this.visible=!r:this.visible=!i,e.pinned!==void 0?this.setPinned(e.pinned):this.setPinned(e.initialPinned);const o=e.flex,s=e.initialFlex;o!==void 0?this.flex=o:s!==void 0&&(this.flex=s)}setColDef(e,t,n){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.columnEventService.dispatchEvent(this.createColumnEvent("colDefChanged",n))}getUserProvidedColDef(){return this.userProvidedColDef}setParent(e){this.parent=e}getParent(){return this.parent}setOriginalParent(e){this.originalParent=e}getOriginalParent(){return this.originalParent}postConstruct(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()}initDotNotation(){const e=this.gos.get("suppressFieldDotNotation");this.fieldContainsDots=zt(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=zt(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.gos.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.tooltipEnabled=zt(this.colDef.tooltipField)||zt(this.colDef.tooltipValueGetter)||zt(this.colDef.tooltipComponent)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const n=fC(e.width),r=fC(e.initialWidth);return n!=null?t=n:r!=null?t=r:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){if(ar(this.colDef)||ar(this.colDef.showRowGroup))return!1;const t=this.colDef.showRowGroup===!0,n=this.colDef.showRowGroup===e;return t||n}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}addEventListener(e,t){var r;this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.columnEventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new L3e(this.frameworkOverrides));const n=((r=this.frameworkEventListenerService)==null?void 0:r.wrap(t))??t;this.columnEventService.addEventListener(e,n)}removeEventListener(e,t){var r;const n=((r=this.frameworkEventListenerService)==null?void 0:r.unwrap(t))??t;this.columnEventService.removeEventListener(e,n)}createColumnFunctionCallbackParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){const t=this.createColumnFunctionCallbackParams(e),n=this.colDef.suppressNavigable;return n(t)}return!1}isCellEditable(e){if(e.group){if(this.gos.get("treeData")){if(!e.data&&!this.gos.get("enableGroupEdit"))return!1}else if(!this.gos.get("enableGroupEdit"))return!1}return this.isColumnFunc(e,this.colDef.editable)}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){const t=this.gos.get("rowSelection");if(t&&typeof t!="string"){const n=k_(this)&&wx(t);return this.isColumnFunc(e,n)}else return this.isColumnFunc(e,this.colDef.checkboxSelection)}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??sri[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const n=this.createColumnFunctionCallbackParams(e);return t(n)}return!1}setHighlighted(e){this.highlighted!==e&&(this.highlighted=e,this.columnEventService.dispatchEvent(this.createColumnEvent("headerHighlightChanged","uiColumnMoved")))}setMoving(e,t){this.moving=e,this.columnEventService.dispatchEvent(this.createColumnEvent("movingChanged",t))}createColumnEvent(e,t){return this.gos.addGridCommonParams({type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}setSort(e,t){this.sort!==e&&(this.sort=e,this.columnEventService.dispatchEvent(this.createColumnEvent("sortChanged",t))),this.dispatchStateUpdatedEvent("sort")}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return ar(this.sort)}isSorting(){return zt(this.sort)}getSortIndex(){return this.sortIndex}setSortIndex(e){this.sortIndex=e,this.dispatchStateUpdatedEvent("sortIndex")}setMenuVisible(e,t){this.menuVisible!==e&&(this.menuVisible=e,this.columnEventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",t)))}isMenuVisible(){return this.menuVisible}setAggFunc(e){this.aggFunc=e,this.dispatchStateUpdatedEvent("aggFunc")}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.columnEventService.dispatchEvent(this.createColumnEvent("leftChanged",t)))}isFilterActive(){return this.filterActive}setFilterActive(e,t,n){this.filterActive!==e&&(this.filterActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",t)));const r=this.createColumnEvent("filterChanged",t);n&&nl(r,n),this.columnEventService.dispatchEvent(r)}isHovered(){return this.columnHoverService.isHovered(this)}setPinned(e){e===!0||e==="left"?this.pinned="left":e==="right"?this.pinned="right":this.pinned=null,this.dispatchStateUpdatedEvent("pinned")}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.columnEventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",t)))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.columnEventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",t)))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const n=e===!0;this.visible!==n&&(this.visible=n,this.columnEventService.dispatchEvent(this.createColumnEvent("visibleChanged",t))),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let n=!0;for(;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(ar(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(ar(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)}setActualWidth(e,t,n=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.columnEventService.dispatchEvent(this.createColumnEvent("widthChanged",e))}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex||0}setFlex(e){this.flex!==e&&(this.flex=e),this.dispatchStateUpdatedEvent("flex")}setMinimum(e){this.setActualWidth(this.minWidth,e)}setRowGroupActive(e,t){this.rowGroupActive!==e&&(this.rowGroupActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",t))),this.dispatchStateUpdatedEvent("rowGroup")}isRowGroupActive(){return this.rowGroupActive}setPivotActive(e,t){this.pivotActive!==e&&(this.pivotActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",t))),this.dispatchStateUpdatedEvent("pivot")}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}setValueActive(e,t){this.aggregationActive!==e&&(this.aggregationActive=e,this.columnEventService.dispatchEvent(this.createColumnEvent("columnValueChanged",t)))}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchStateUpdatedEvent(e){this.columnEventService.dispatchEvent({type:"columnStateUpdated",key:e})}},lri={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},cri=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=vm(e);let n=0;for(;;){let r;if(e?(r=e,n!==0&&(r+="_"+n)):t?(r=t,n!==0&&(r+="_"+n)):r=n,!this.existingKeys[r])return this.existingKeys[r]=!0,String(r);n++}}},uri=class extends ct{constructor(){super(...arguments),this.beanName="columnFactory"}wireBeans(e){this.dataTypeService=e.dataTypeService}createColumnTree(e,t,n,r){const i=new cri,{existingCols:o,existingGroups:s,existingColKeys:a}=this.extractExistingTreeData(n);i.addExistingKeys(a);const l=this.recursivelyCreateColumns(e,0,t,o,i,s,r),c=this.findMaxDept(l,0),u=this.balanceColumnTree(l,0,c,i);return K0(null,u,(h,g)=>{_o(h)&&h.setupExpandable(),h.setOriginalParent(g)}),{columnTree:u,treeDept:c}}extractExistingTreeData(e){const t=[],n=[],r=[];return e&&K0(null,e,i=>{if(_o(i)){const o=i;n.push(o)}else{const o=i;r.push(o.getId()),t.push(o)}}),{existingCols:t,existingGroups:n,existingColKeys:r}}balanceTreeForAutoCols(e,t){const n=[],r=this.findDepth(t);return e.forEach(i=>{let o=i;for(let s=r-1;s>=0;s--){const a=new vO(null,`FAKE_PATH_${i.getId()}}_${s}`,!0,s);this.createBean(a),a.setChildren([o]),o.setOriginalParent(a),o=a}r===0&&i.setOriginalParent(null),n.push(o)}),[n,r]}findDepth(e){let t=0,n=e;for(;n&&n[0]&&_o(n[0]);)t++,n=n[0].getChildren();return t}balanceColumnTree(e,t,n,r){const i=[];for(let o=0;o<e.length;o++){const s=e[o];if(_o(s)){const a=s,l=this.balanceColumnTree(a.getChildren(),t+1,n,r);a.setChildren(l),i.push(a)}else{let a,l;for(let c=n-1;c>=t;c--){const u=r.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),h=new vO(f,u,!0,t);this.createBean(h),l&&l.setChildren([h]),l=h,a||(a=l)}if(a&&l)if(i.push(a),e.some(u=>_o(u))){l.setChildren([s]);continue}else{l.setChildren(e);break}i.push(s)}}return i}findMaxDept(e,t){let n=t;for(let r=0;r<e.length;r++){const i=e[r];if(_o(i)){const o=i,s=this.findMaxDept(o.getChildren(),t+1);n<s&&(n=s)}}return n}recursivelyCreateColumns(e,t,n,r,i,o,s){if(!e)return[];const a=new Array(e.length);for(let l=0;l<a.length;l++){const c=e[l];this.isColumnGroup(c)?a[l]=this.createColumnGroup(n,c,t,r,i,o,s):a[l]=this.createColumn(n,c,r,i,s)}return a}createColumnGroup(e,t,n,r,i,o,s){const a=this.createMergedColGroupDef(t),l=i.getUniqueKey(a.groupId||null,null),c=new vO(a,l,!1,n);this.createBean(c);const u=this.findExistingGroup(t,o);u&&o.splice(u.idx,1);const f=u==null?void 0:u.group;f&&c.setExpanded(f.isExpanded());const h=this.recursivelyCreateColumns(a.children,n+1,e,r,i,o,s);return c.setChildren(h),c}createMergedColGroupDef(e){const t={};return Object.assign(t,this.gos.get("defaultColGroupDef")),Object.assign(t,e),t}createColumn(e,t,n,r,i){var a;const o=this.findExistingColumn(t,n);o&&(n==null||n.splice(o.idx,1));let s=o==null?void 0:o.column;if(s){const l=this.addColumnDefaultAndTypes(t,s.getColId());s.setColDef(l,t,i),this.applyColumnState(s,l,i)}else{const l=r.getUniqueKey(t.colId,t.field),c=this.addColumnDefaultAndTypes(t,l);s=new VQ(c,t,l,e),this.createBean(s)}return(a=this.dataTypeService)==null||a.addColumnListeners(s),s}applyColumnState(e,t,n){const r=fC(t.flex);if(r!==void 0&&e.setFlex(r),e.getFlex()<=0){const a=fC(t.width);if(a!=null)e.setActualWidth(a,n);else{const l=e.getActualWidth();e.setActualWidth(l,n)}}t.sort!==void 0&&(t.sort=="asc"||t.sort=="desc"?e.setSort(t.sort,n):e.setSort(void 0,n));const o=fC(t.sortIndex);o!==void 0&&e.setSortIndex(o);const s=Qde(t.hide);s!==void 0&&e.setVisible(!s,n),t.pinned!==void 0&&e.setPinned(t.pinned)}findExistingColumn(e,t){if(t)for(let n=0;n<t.length;n++){const r=t[n].getUserProvidedColDef();if(!r)continue;if(e.colId!=null){if(t[n].getId()===e.colId)return{idx:n,column:t[n]};continue}if(e.field!=null){if(r.field===e.field)return{idx:n,column:t[n]};continue}if(r===e)return{idx:n,column:t[n]}}}findExistingGroup(e,t){if(e.groupId!=null)for(let r=0;r<t.length;r++){const i=t[r];if(i.getColGroupDef()&&i.getId()===e.groupId)return{idx:r,group:i}}}addColumnDefaultAndTypes(e,t){var a;const n={},r=this.gos.get("defaultColDef");nl(n,r,!1,!0);const i=this.updateColDefAndGetColumnType(n,e,t);i&&this.assignColumnTypes(i,n),nl(n,e,!1,!0);const o=this.gos.get("autoGroupColumnDef"),s=ug(this.gos);return e.rowGroup&&o&&s&&nl(n,{sort:o.sort,initialSort:o.initialSort},!1,!0),(a=this.dataTypeService)==null||a.validateColDef(n),n}updateColDefAndGetColumnType(e,t,n){var o;const r=(o=this.dataTypeService)==null?void 0:o.updateColDefAndGetColumnType(e,t,n),i=t.type??r??e.type;return e.type=i,i?uk(i):void 0}assignColumnTypes(e,t){if(!e.length)return;const n=Object.assign({},lri),r=this.gos.get("columnTypes")||{};tl(r,(i,o)=>{i in n?rt(`the column type '${i}' is a default column type and cannot be overridden.`):(o.type&&rt("Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type."),n[i]=o)}),e.forEach(i=>{const o=n[i.trim()];o?nl(t,o,!1,!0):rt("colDef.type '"+i+"' does not correspond to defined gridOptions.columnTypes")})}isColumnGroup(e){return e.children!==void 0}};function K0(e,t,n){if(t)for(let r=0;r<t.length;r++){const i=t[r];_o(i)&&K0(i,i.getChildren(),n),n(i,e)}}var dri=class extends ct{constructor(){super(...arguments),this.beanName="columnModel",this.pivotMode=!1,this.autoHeightActiveAtLeastOnce=!1,this.ready=!1,this.changeEventsDispatching=!1,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}wireBeans(e){this.context=e.context,this.ctrlsService=e.ctrlsService,this.columnFactory=e.columnFactory,this.columnSizeService=e.columnSizeService,this.visibleColsService=e.visibleColsService,this.columnViewportService=e.columnViewportService,this.pivotResultColsService=e.pivotResultColsService,this.columnAnimationService=e.columnAnimationService,this.autoColService=e.autoColService,this.controlsColService=e.controlsColService,this.valueCache=e.valueCache,this.columnDefFactory=e.columnDefFactory,this.columnApplyStateService=e.columnApplyStateService,this.columnGroupStateService=e.columnGroupStateService,this.eventDispatcher=e.columnEventDispatcher,this.columnMoveService=e.columnMoveService,this.columnAutosizeService=e.columnAutosizeService,this.funcColsService=e.funcColsService,this.quickFilterService=e.quickFilterService,this.showRowGroupColsService=e.showRowGroupColsService,this.environment=e.environment}postConstruct(){const e=this.gos.get("pivotMode");this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],t=>this.refreshAll(y8(t.source))),this.addManagedPropertyListener("rowSelection",t=>{this.onSelectionOptionsChanged(t.currentValue,t.previousValue,y8(t.source))}),this.addManagedPropertyListener("autoGroupColumnDef",t=>this.onAutoGroupColumnDefChanged(y8(t.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],t=>this.recreateColumnDefs(y8(t.source))),this.addManagedPropertyListener("pivotMode",t=>this.setPivotMode(this.gos.get("pivotMode"),y8(t.source))),this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}createColsFromColDefs(e){var c,u,f;const t=this.colDefs?this.columnApplyStateService.compareColumnStatesAndDispatchEvents(e):void 0;this.valueCache.expire();const n=(c=this.colDefCols)==null?void 0:c.list,r=(u=this.colDefCols)==null?void 0:u.tree,i=this.columnFactory.createColumnTree(this.colDefs,!0,r,e);I2(this.context,(f=this.colDefCols)==null?void 0:f.tree,i.columnTree);const o=i.columnTree,s=i.treeDept,a=D3e(o),l={};a.forEach(h=>l[h.getId()]=h),this.colDefCols={tree:o,treeDepth:s,list:a,map:l},this.funcColsService.extractCols(e,n),this.ready=!0,this.refreshCols(!0),this.visibleColsService.refresh(e),this.columnViewportService.checkViewportColumns(),this.eventDispatcher.everythingChanged(e),t&&(this.changeEventsDispatching=!0,t(),this.changeEventsDispatching=!1),this.eventDispatcher.newColumnsLoaded(e),e==="gridInitializing"&&this.columnSizeService.applyAutosizeStrategy()}refreshCols(e){var i,o,s;if(!this.colDefCols)return;const t=(i=this.cols)==null?void 0:i.tree;this.saveColOrder(),this.selectCols(),this.createAutoCols(),this.addAutoCols(),this.createControlsCols(),this.addControlsCols();const n=Gni(this.gos,this.showingPivotResult);(!e||n)&&this.restoreColOrder(),this.positionLockedCols(),(o=this.showRowGroupColsService)==null||o.refresh(),(s=this.quickFilterService)==null||s.refreshQuickFilterCols(),this.setColSpanActive(),this.setAutoHeightActive(),this.visibleColsService.clear(),this.columnViewportService.clear(),!vc(t,this.cols.tree)&&this.eventDispatcher.gridColumns()}selectCols(){const e=this.pivotResultColsService.getPivotResultCols();if(this.showingPivotResult=e!=null,e){const{map:t,list:n,tree:r,treeDepth:i}=e;this.cols={list:n.slice(),map:{...t},tree:r.slice(),treeDepth:i},e.list.some(s=>{var a;return((a=this.cols)==null?void 0:a.map[s.getColId()])!==void 0})||(this.lastPivotOrder=null)}else{const{map:t,list:n,tree:r,treeDepth:i}=this.colDefCols;this.cols={list:n.slice(),map:{...t},tree:r.slice(),treeDepth:i}}}getColsToShow(){const e=this.isPivotMode()&&!this.isShowingPivotResult(),t=this.funcColsService.getValueColumns();return this.cols.list.filter(r=>{const i=tfe(r);if(e){const o=t&&ll(t,r);return i||o}else return i||r.isVisible()})}addAutoCols(){this.autoCols!=null&&(this.cols.list=this.autoCols.list.concat(this.cols.list),this.cols.tree=this.autoCols.tree.concat(this.cols.tree),hLe(this.cols))}createAutoCols(){var p;const e=HQ(this.gos,this.pivotMode),t=this.pivotMode?this.gos.get("pivotSuppressAutoColumn"):this.isSuppressAutoCol(),n=this.funcColsService.getRowGroupColumns(),i=!(n.length>0||this.gos.get("treeData"))||t||e,o=()=>{this.autoCols&&(I2(this.context,this.autoCols.tree),this.autoCols=null)};if(i||!this.autoColService){o();return}const s=this.autoColService.createAutoCols(n)??[],a=pLe(s,((p=this.autoCols)==null?void 0:p.list)||null),l=this.cols.treeDepth,u=(this.autoCols?this.autoCols.treeDepth:-1)==l;if(a&&u)return;o();const[f,h]=this.columnFactory.balanceTreeForAutoCols(s,this.cols.tree);this.autoCols={list:s,tree:f,treeDepth:h,map:{}};const g=m=>{if(!m)return null;const v=m.filter(C=>!tfe(C));return[...s,...v]};this.lastOrder=g(this.lastOrder),this.lastPivotOrder=g(this.lastPivotOrder)}createControlsCols(){var c,u,f;const e=()=>{var h;I2(this.context,(h=this.controlsCols)==null?void 0:h.tree),this.controlsCols=null};this.controlsColService||e();const t=this.cols.treeDepth,r=(((c=this.controlsCols)==null?void 0:c.treeDepth)??-1)==t,i=((u=this.controlsColService)==null?void 0:u.createControlsCols())??[];if(pLe(i,((f=this.controlsCols)==null?void 0:f.list)??[])&&r)return;e();const[s,a]=this.columnFactory.balanceTreeForAutoCols(i,this.cols.tree);this.controlsCols={list:i,tree:s,treeDepth:a,map:{}};const l=h=>{if(!h)return null;const g=h.filter(p=>!k_(p));return[...i,...g]};this.lastOrder=l(this.lastOrder),this.lastPivotOrder=l(this.lastPivotOrder)}addControlsCols(){this.controlsCols!=null&&(this.cols.list=this.controlsCols.list.concat(this.cols.list),this.cols.tree=this.controlsCols.tree.concat(this.cols.tree),hLe(this.cols))}refreshAll(e){this.isReady()&&(this.refreshCols(!1),this.visibleColsService.refresh(e))}setColsVisible(e,t=!1,n){this.columnApplyStateService.applyColumnState({state:e.map(r=>({colId:typeof r=="string"?r:r.getColId(),hide:!t}))},n)}setColsPinned(e,t,n){if(!this.cols||Es(e))return;if(La(this.gos,"print")){rt("Changing the column pinning status is not allowed with domLayout='print'");return}this.columnAnimationService.start();let r;t===!0||t==="left"?r="left":t==="right"?r="right":r=null;const i=[];e.forEach(o=>{if(!o)return;const s=this.getCol(o);s&&s.getPinned()!==r&&(s.setPinned(r),i.push(s))}),i.length&&(this.visibleColsService.refresh(n),this.eventDispatcher.columnPinned(i,n)),this.columnAnimationService.finish()}setColumnGroupOpened(e,t,n){let r;_o(e)?r=e.getId():r=e||"",this.columnGroupStateService.setColumnGroupState([{groupId:r,open:t}],n)}getProvidedColGroup(e){var n;let t=null;return K0(null,(n=this.cols)==null?void 0:n.tree,r=>{_o(r)&&r.getId()===e&&(t=r)}),t}isColGroupLocked(e){const t=this.gos.get("groupLockGroupColumns");if(!e.isRowGroupActive()||t===0)return!1;if(t===-1)return!0;const r=this.funcColsService.getRowGroupColumns().findIndex(i=>i.getColId()===e.getColId());return t>r}isSuppressAutoCol(){return this.gos.get("groupDisplayType")==="custom"?!0:this.gos.get("treeDataDisplayType")==="custom"}setAutoHeightActive(){this.autoHeightActive=this.cols.list.some(e=>e.isVisible()&&e.isAutoHeight()),this.autoHeightActive&&(this.autoHeightActiveAtLeastOnce=!0,Li(this.gos)||ml(this.gos)||rt("autoHeight columns only work with Client Side Row Model and Server Side Row Model."))}restoreColOrder(){const e=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!e)return;const t=new Map(e.map((l,c)=>[l,c]));if(!this.cols.list.some(l=>t.has(l)))return;const r=new Map(this.cols.list.map(l=>[l,!0])),i=e.filter(l=>r.has(l)),o=new Map(i.map(l=>[l,!0])),s=this.cols.list.filter(l=>!o.has(l)),a=i.slice();s.forEach(l=>{let c=l.getOriginalParent();if(!c){a.push(l);return}const u=[];for(;!u.length&&c;)c.getLeafColumns().forEach(p=>{const m=a.indexOf(p)>=0,v=u.indexOf(p)<0;m&&v&&u.push(p)}),c=c.getOriginalParent();if(!u.length){a.push(l);return}const f=u.map(g=>a.indexOf(g)),h=Math.max(...f);Ex(a,l,h+1)}),this.cols.list=a}sortColsLikeKeys(e){if(this.cols==null)return;let t=[];const n={};e.forEach(i=>{if(n[i])return;const o=this.cols.map[i];o&&(t.push(o),n[i]=!0)});let r=0;if(this.cols.list.forEach(i=>{const o=i.getColId();if(n[o]!=null)return;o.startsWith(yy)?Ex(t,i,r++):t.push(i)}),t=this.columnMoveService.placeLockedColumns(t),!this.columnMoveService.doesMovePassMarryChildren(t)){rt("Applying column order broke a group where columns should be married together. Applying new order has been discarded.");return}this.cols.list=t}sortColsLikeCols(e){!e||e.length<=1||e.filter(n=>this.cols.list.indexOf(n)<0).length>0||e.sort((n,r)=>{const i=this.cols.list.indexOf(n),o=this.cols.list.indexOf(r);return i-o})}resetColDefIntoCol(e,t){const n=e.getUserProvidedColDef();if(!n)return!1;const r=this.columnFactory.addColumnDefaultAndTypes(n,e.getColId());return e.setColDef(r,n,t),!0}queueResizeOperations(){this.shouldQueueResizeOperations=!0}isShouldQueueResizeOperations(){return this.shouldQueueResizeOperations}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach(e=>e()),this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}moveInCols(e,t,n){var r;Wdt((r=this.cols)==null?void 0:r.list,e,t),this.visibleColsService.refresh(n)}positionLockedCols(){this.cols.list=this.columnMoveService.placeLockedColumns(this.cols.list)}saveColOrder(){var e,t;this.showingPivotResult?this.lastPivotOrder=(e=this.cols)==null?void 0:e.list:this.lastOrder=(t=this.cols)==null?void 0:t.list}getColumnDefs(){if(!this.colDefCols)return;const e=this.colDefCols.list.slice();this.showingPivotResult?e.sort((r,i)=>this.lastOrder.indexOf(r)-this.lastOrder.indexOf(i)):this.lastOrder&&e.sort((r,i)=>this.cols.list.indexOf(r)-this.cols.list.indexOf(i));const t=this.funcColsService.getRowGroupColumns(),n=this.funcColsService.getPivotColumns();return this.columnDefFactory.buildColumnDefs(e,t,n)}isShowingPivotResult(){return this.showingPivotResult}isChangeEventsDispatching(){return this.changeEventsDispatching}isColSpanActive(){return this.colSpanActive}isProvidedColGroupsPresent(){var e;return((e=this.colDefCols)==null?void 0:e.treeDepth)>0}setColSpanActive(){this.colSpanActive=this.cols.list.some(e=>e.getColDef().colSpan!=null)}isAutoRowHeightActive(){return this.autoHeightActive}wasAutoRowHeightEverActive(){return this.autoHeightActiveAtLeastOnce}getHeaderRowCount(){return this.cols?this.cols.treeDepth+1:-1}isReady(){return this.ready}isPivotMode(){return this.pivotMode}setPivotMode(e,t){e===this.pivotMode||!this.isPivotSettingAllowed(this.pivotMode)||(this.pivotMode=e,this.ready&&(this.refreshCols(!1),this.visibleColsService.refresh(t),this.eventDispatcher.pivotModeChanged()))}isPivotSettingAllowed(e){return e&&this.gos.get("treeData")?(rt("Pivot mode not available with treeData."),!1):!0}isPivotActive(){const e=this.funcColsService.getPivotColumns();return this.pivotMode&&!Es(e)}recreateColumnDefs(e){this.cols&&(this.autoCols&&this.autoColService.updateAutoCols(this.autoCols.list,e),this.createColsFromColDefs(e))}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){var e,t,n;I2(this.context,(e=this.colDefCols)==null?void 0:e.tree),I2(this.context,(t=this.autoCols)==null?void 0:t.tree),I2(this.context,(n=this.controlsCols)==null?void 0:n.tree),super.destroy()}getColTree(){return this.cols.tree}getColDefColTree(){return this.colDefCols.tree}getColDefCols(){var e;return(e=this.colDefCols)!=null&&e.list?this.colDefCols.list:null}getCols(){var e;return((e=this.cols)==null?void 0:e.list)??[]}getAllCols(){var n,r,i;const e=this.pivotResultColsService.getPivotResultCols(),t=e==null?void 0:e.list;return[((n=this.colDefCols)==null?void 0:n.list)??[],((r=this.autoCols)==null?void 0:r.list)??[],((i=this.controlsCols)==null?void 0:i.list)??[],t??[]].flat()}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){var t;return(t=this.colDefCols)!=null&&t.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColFromCollection(e,t){if(t==null)return null;const{map:n,list:r}=t;if(typeof e=="string"&&n[e])return n[e];for(let i=0;i<r.length;i++)if(gLe(r[i],e))return r[i];return this.getAutoCol(e)}getAutoCol(e){var t;return((t=this.autoCols)==null?void 0:t.list.find(n=>gLe(n,e)))??null}getAutoCols(){var e;return((e=this.autoCols)==null?void 0:e.list)??null}setColHeaderHeight(e,t){e.setAutoHeaderHeight(t)&&(e.isColumn?this.eventDispatcher.headerHeight(e):this.eventDispatcher.groupHeaderHeight(e))}getGroupRowsHeight(){const e=[],t=this.ctrlsService.getHeaderRowContainerCtrls();for(const n of t){if(!n)continue;const r=n.getGroupRowCount()||0;for(let i=0;i<r;i++){const o=n.getGroupRowCtrlAtIndex(i),s=e[i];if(o){const a=this.getColumnGroupHeaderRowHeight(o);(s==null||a>s)&&(e[i]=a)}}}return e}getColumnGroupHeaderRowHeight(e){const t=this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight();let n=0;const r=e.getHeaderCtrls();for(const i of r){const o=i.getColumn();if(o.isAutoHeaderHeight()){const s=o.getAutoHeaderHeight();s!=null&&s>n&&(n=s)}}return Math.max(t,n)}getColumnHeaderRowHeight(){const e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),n=this.visibleColsService.getAllCols().filter(r=>r.isAutoHeaderHeight()).map(r=>r.getAutoHeaderHeight()||0);return Math.max(e,...n)}getHeaderHeight(){return this.gos.get("headerHeight")??this.environment.getDefaultHeaderHeight()}getFloatingFiltersHeight(){return this.gos.get("floatingFiltersHeight")??this.getHeaderHeight()}getGroupHeaderHeight(){return this.gos.get("groupHeaderHeight")??this.getHeaderHeight()}getPivotHeaderHeight(){return this.gos.get("pivotHeaderHeight")??this.getHeaderHeight()}getPivotGroupHeaderHeight(){return this.gos.get("pivotGroupHeaderHeight")??this.getGroupHeaderHeight()}onFirstDataRendered(){const e=this.gos.get("autoSizeStrategy");if((e==null?void 0:e.type)!=="fitCellContents")return;const{colIds:t,skipHeader:n}=e;setTimeout(()=>{t?this.columnAutosizeService.autoSizeCols({colKeys:t,skipHeader:n,source:"autosizeColumns"}):this.columnAutosizeService.autoSizeAllColumns("autosizeColumns",n)})}onAutoGroupColumnDefChanged(e){this.autoCols&&this.autoColService.updateAutoCols(this.autoCols.list,e)}onSelectionOptionsChanged(e,t,n){const r=t&&typeof t!="string"?wx(t):void 0,i=e&&typeof e!="string"?wx(e):void 0,o=r!==i,s=t&&typeof t!="string"?vH(t):void 0,a=e&&typeof e!="string"?vH(e):void 0;(o||s!==a)&&this.refreshAll(n)}};function y8(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function hLe(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function gLe(e,t){const n=e===t,r=e.getColDef()===t,i=e.getColId()==t;return n||r||i}function pLe(e,t){return vc(e,t,(n,r)=>n.getColId()===r.getColId())}var fri=class extends ct{constructor(){super(...arguments),this.beanName="columnAutosizeService",this.timesDelayed=0}wireBeans(e){this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.animationFrameService=e.animationFrameService,this.autoWidthCalculator=e.autoWidthCalculator,this.eventDispatcher=e.columnEventDispatcher,this.ctrlsService=e.ctrlsService,this.renderStatusService=e.renderStatusService}autoSizeCols(e){if(this.columnModel.isShouldQueueResizeOperations()){this.columnModel.pushResizeOperation(()=>this.autoSizeCols(e));return}const{colKeys:t,skipHeader:n,skipHeaderGroups:r,stopAtGroup:i,source:o="api"}=e;if(this.animationFrameService.flushAllFrames(),this.timesDelayed<5&&this.renderStatusService&&!this.renderStatusService.areHeaderCellsRendered()){this.timesDelayed++,setTimeout(()=>this.autoSizeCols(e));return}this.timesDelayed=0;const s=[];let a=-1;const l=n??this.gos.get("skipHeaderOnAutoSize"),c=r??l;for(;a!==0;){a=0;const u=[];t.forEach(f=>{if(!f)return;const h=this.columnModel.getCol(f);if(!h||s.indexOf(h)>=0)return;const g=this.autoWidthCalculator.getPreferredWidthForColumn(h,l);if(g>0){const p=this.normaliseColumnWidth(h,g);h.setActualWidth(p,o),s.push(h),a++}u.push(h)}),u.length&&this.visibleColsService.refresh(o)}c||this.autoSizeColumnGroupsByColumns(t,o,i),this.eventDispatcher.columnResized(s,!0,"autosizeColumns")}autoSizeColumn(e,t,n){e&&this.autoSizeCols({colKeys:[e],skipHeader:n,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,n){const r=new Set;this.columnModel.getColsForKeys(e).forEach(a=>{let l=a.getParent();for(;l&&l!=n;)l.isPadding()||r.add(l),l=l.getParent()});let o;const s=[];for(const a of r){for(const l of this.ctrlsService.getHeaderRowContainerCtrls())if(o=l.getHeaderCtrlForColumn(a),o)break;o&&o.resizeLeafColumnsToFit(t)}return s}autoSizeAllColumns(e,t){if(this.columnModel.isShouldQueueResizeOperations()){this.columnModel.pushResizeOperation(()=>this.autoSizeAllColumns(e,t));return}const n=this.visibleColsService.getAllCols();this.autoSizeCols({colKeys:n,skipHeader:t,source:e})}normaliseColumnWidth(e,t){const n=e.getMinWidth();t<n&&(t=n);const r=e.getMaxWidth();return e.isGreaterThanMax(t)&&(t=r),t}},hri=class extends ct{constructor(){super(...arguments),this.beanName="funcColsService",this.rowGroupCols=[],this.valueCols=[],this.pivotCols=[]}wireBeans(e){this.columnModel=e.columnModel,this.eventDispatcher=e.columnEventDispatcher,this.aggFuncService=e.aggFuncService,this.visibleColsService=e.visibleColsService}getModifyColumnsNoEventsCallbacks(){return{addGroupCol:e=>this.rowGroupCols.push(e),removeGroupCol:e=>rl(this.rowGroupCols,e),addPivotCol:e=>this.pivotCols.push(e),removePivotCol:e=>rl(this.pivotCols,e),addValueCol:e=>this.valueCols.push(e),removeValueCol:e=>rl(this.valueCols,e)}}getSourceColumnsForGroupColumn(e){const t=e.getColDef().showRowGroup;if(!t)return null;if(t===!0)return this.rowGroupCols.slice(0);const n=this.columnModel.getColDefCol(t);return n?[n]:null}sortRowGroupColumns(e){this.rowGroupCols.sort(e)}sortPivotColumns(e){this.pivotCols.sort(e)}getValueColumns(){return this.valueCols?this.valueCols:[]}getPivotColumns(){return this.pivotCols?this.pivotCols:[]}getRowGroupColumns(){return this.rowGroupCols?this.rowGroupCols:[]}isRowGroupEmpty(){return Es(this.rowGroupCols)}setColumnAggFunc(e,t,n){if(!e)return;const r=this.columnModel.getColDefCol(e);r&&(r.setAggFunc(t),this.eventDispatcher.columnChanged("columnValueChanged",[r],n))}setRowGroupColumns(e,t){this.setColList(e,this.rowGroupCols,"columnRowGroupChanged",!0,!0,(n,r)=>this.setRowGroupActive(n,r,t),t)}setRowGroupActive(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e&&!this.gos.get("suppressRowGroupHidesColumns")&&this.columnModel.setColsVisible([t],!1,n),!e&&!this.gos.get("suppressMakeColumnVisibleAfterUnGroup")&&this.columnModel.setColsVisible([t],!0,n))}addRowGroupColumns(e,t){this.updateColList(e,this.rowGroupCols,!0,!0,n=>this.setRowGroupActive(!0,n,t),"columnRowGroupChanged",t)}removeRowGroupColumns(e,t){this.updateColList(e,this.rowGroupCols,!1,!0,n=>this.setRowGroupActive(!1,n,t),"columnRowGroupChanged",t)}addPivotColumns(e,t){this.updateColList(e,this.pivotCols,!0,!1,n=>n.setPivotActive(!0,t),"columnPivotChanged",t)}setPivotColumns(e,t){this.setColList(e,this.pivotCols,"columnPivotChanged",!0,!1,(n,r)=>{r.setPivotActive(n,t)},t)}removePivotColumns(e,t){this.updateColList(e,this.pivotCols,!1,!1,n=>n.setPivotActive(!1,t),"columnPivotChanged",t)}setValueColumns(e,t){this.setColList(e,this.valueCols,"columnValueChanged",!1,!1,(n,r)=>this.setValueActive(n,r,t),t)}setValueActive(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc()&&this.aggFuncService)){const r=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(r)}}addValueColumns(e,t){this.updateColList(e,this.valueCols,!0,!1,n=>this.setValueActive(!0,n,t),"columnValueChanged",t)}removeValueColumns(e,t){this.updateColList(e,this.valueCols,!1,!1,n=>this.setValueActive(!1,n,t),"columnValueChanged",t)}moveRowGroupColumn(e,t,n){if(this.isRowGroupEmpty())return;const r=this.rowGroupCols[e],i=this.rowGroupCols.slice(e,t);this.rowGroupCols.splice(e,1),this.rowGroupCols.splice(t,0,r),this.eventDispatcher.rowGroupChanged(i,n)}setColList(e,t,n,r,i,o,s){if(!this.columnModel.getCols())return;const a=new Map;t.forEach((c,u)=>a.set(c,u)),t.length=0,zt(e)&&e.forEach(c=>{const u=this.columnModel.getColDefCol(c);u&&t.push(u)}),t.forEach((c,u)=>{const f=a.get(c);if(f===void 0){a.set(c,0);return}r&&f!==u||a.delete(c)}),(this.columnModel.getColDefCols()||[]).forEach(c=>{const u=t.indexOf(c)>=0;o(u,c)}),i&&this.columnModel.refreshCols(!1),this.visibleColsService.refresh(s),this.eventDispatcher.columnChanged(n,[...a.keys()],s)}updateColList(e,t,n,r,i,o,s){if(!e||Es(e))return;let a=!1;const l=new Set;e.forEach(c=>{if(!c)return;const u=this.columnModel.getColDefCol(c);if(u){if(l.add(u),n){if(t.indexOf(u)>=0)return;t.push(u)}else{const f=t.indexOf(u);if(f<0)return;for(let h=f+1;h<t.length;h++)l.add(t[h]);rl(t,u)}i(u),a=!0}}),a&&(r&&this.columnModel.refreshCols(!1),this.visibleColsService.refresh(s),this.eventDispatcher.genericColumnEvent(o,Array.from(l),s))}extractCols(e,t){this.extractRowGroupCols(e,t),this.extractPivotCols(e,t),this.extractValueCols(e,t)}extractValueCols(e,t){this.valueCols=this.extractColsCommon(t,this.valueCols,(n,r)=>n.setValueActive(r,e),()=>{},()=>{},n=>{const r=n.aggFunc;if(r===null||r==="")return null;if(r!==void 0)return!!r},n=>n.initialAggFunc!=null&&n.initialAggFunc!=""),this.valueCols.forEach(n=>{const r=n.getColDef();r.aggFunc!=null&&r.aggFunc!=""?n.setAggFunc(r.aggFunc):n.getAggFunc()||n.setAggFunc(r.initialAggFunc)})}extractRowGroupCols(e,t){this.rowGroupCols=this.extractColsCommon(t,this.rowGroupCols,(n,r)=>n.setRowGroupActive(r,e),n=>n.rowGroupIndex,n=>n.initialRowGroupIndex,n=>n.rowGroup,n=>n.initialRowGroup)}extractPivotCols(e,t){this.pivotCols=this.extractColsCommon(t,this.pivotCols,(n,r)=>n.setPivotActive(r,e),n=>n.pivotIndex,n=>n.initialPivotIndex,n=>n.pivot,n=>n.initialPivot)}extractColsCommon(e=[],t=[],n,r,i,o,s){const a=[],l=[];(this.columnModel.getColDefCols()||[]).forEach(h=>{const g=e.indexOf(h)<0,p=h.getColDef(),m=Qde(o(p)),v=Qde(s(p)),C=fC(r(p)),y=fC(i(p));let b;m!==void 0?b=m:C!==void 0?C===null?b=!1:b=C>=0:g?v!==void 0?b=v:y!==void 0?b=y!=null&&y>=0:b=!1:b=t.indexOf(h)>=0,b&&((g?C!=null||y!=null:C!=null)?a.push(h):l.push(h))});const u=h=>{const g=r(h.getColDef()),p=i(h.getColDef());return g??p};a.sort((h,g)=>{const p=u(h),m=u(g);return p===m?0:p<m?-1:1});const f=[].concat(a);return t.forEach(h=>{l.indexOf(h)>=0&&f.push(h)}),l.forEach(h=>{f.indexOf(h)<0&&f.push(h)}),t.forEach(h=>{f.indexOf(h)<0&&n(h,!1)}),f.forEach(h=>{t.indexOf(h)<0&&n(h,!0)}),f}generateColumnStateForRowGroupAndPivotIndexes(e,t){const n={},r=(i,o,s,a,l,c)=>{const u=this.columnModel.getColDefCols();if(!o.length||!u)return[];const f=Object.keys(i),h=new Set(f),g=new Set(f),p=new Set(o.map(x=>{const E=x.getColId();return g.delete(E),E}).concat(f)),m=[],v={};let C=0;for(let x=0;x<u.length;x++){const E=u[x].getColId();p.has(E)&&(m.push(E),v[E]=C++)}let y=1e3,b=!1,S=0;const w=x=>{const E=v[x];for(let R=S;R<E;R++){const O=m[R];g.has(O)&&(i[O][l]=y++,g.delete(O))}S=E};o.forEach(x=>{const E=x.getColId();if(h.has(E))w(E),i[E][l]=y++;else{const R=x.getColDef();(R[l]===null||R[l]===void 0&&R[c]==null)&&(b||(R[s]||R[s]===void 0&&R[a]?w(E):(g.forEach(M=>{i[M][l]=y+v[M]}),y+=m.length,b=!0)),n[E]||(n[E]={colId:E}),n[E][l]=y++)}})};return r(e,this.rowGroupCols,"rowGroup","initialRowGroup","rowGroupIndex","initialRowGroupIndex"),r(t,this.pivotCols,"pivot","initialPivot","pivotIndex","initialPivotIndex"),Object.values(n)}},gri=class extends ct{constructor(){super(...arguments),this.beanName="columnApplyStateService"}wireBeans(e){this.columnModel=e.columnModel,this.eventDispatcher=e.columnEventDispatcher,this.sortController=e.sortController,this.columnGetStateService=e.columnGetStateService,this.funcColsService=e.funcColsService,this.visibleColsService=e.visibleColsService,this.columnAnimationService=e.columnAnimationService,this.pivotResultColsService=e.pivotResultColsService}applyColumnState(e,t){const n=this.columnModel.getColDefCols()||[];if(Es(n))return!1;if(e&&e.state&&!e.state.forEach)return rt("applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;const r=this.funcColsService.getModifyColumnsNoEventsCallbacks(),i=(a,l,c)=>{const u=this.compareColumnStatesAndDispatchEvents(t),f=l.slice(),h={},g={},p=[],m=[];let v=0;const C=this.funcColsService.getRowGroupColumns().slice(),y=this.funcColsService.getPivotColumns().slice();a.forEach(x=>{const E=x.colId||"";if(E.startsWith(yy)){p.push(x),m.push(x);return}const O=c(E);O?(this.syncColumnWithStateItem(O,x,e.defaultState,h,g,!1,t,r),rl(f,O)):(m.push(x),v+=1)});const b=x=>this.syncColumnWithStateItem(x,null,e.defaultState,h,g,!1,t,r);f.forEach(b),this.funcColsService.sortRowGroupColumns(mLe.bind(this,h,C)),this.funcColsService.sortPivotColumns(mLe.bind(this,g,y)),this.columnModel.refreshCols(!1);const w=(this.columnModel.getAutoCols()||[]).slice();return p.forEach(x=>{const E=this.columnModel.getAutoCol(x.colId);rl(w,E),this.syncColumnWithStateItem(E,x,e.defaultState,null,null,!0,t,r)}),w.forEach(b),this.orderLiveColsLikeState(e),this.visibleColsService.refresh(t),this.eventDispatcher.everythingChanged(t),u(),{unmatchedAndAutoStates:m,unmatchedCount:v}};this.columnAnimationService.start();let{unmatchedAndAutoStates:o,unmatchedCount:s}=i(e.state||[],n,a=>this.columnModel.getColDefCol(a));if(o.length>0||zt(e.defaultState)){const a=this.pivotResultColsService.getPivotResultCols(),l=a==null?void 0:a.list;s=i(o,l||[],c=>this.pivotResultColsService.getPivotResultCol(c)).unmatchedCount}return this.columnAnimationService.finish(),s===0}resetColumnState(e){const t=this.columnModel.getColDefCols();if(Es(t))return;const n=this.columnModel.getColDefColTree(),r=D3e(n),i=[];let o=1e3,s=1e3,a=[];const l=this.columnModel.getAutoCols();l&&(a=a.concat(l)),a=a.concat(r),a.forEach(c=>{const u=this.getColumnStateFromColDef(c);ar(u.rowGroupIndex)&&u.rowGroup&&(u.rowGroupIndex=o++),ar(u.pivotIndex)&&u.pivot&&(u.pivotIndex=s++),i.push(u)}),this.applyColumnState({state:i,applyOrder:!0},e)}getColumnStateFromColDef(e){const t=(p,m)=>p??m??null,n=e.getColDef(),r=t(n.sort,n.initialSort),i=t(n.sortIndex,n.initialSortIndex),o=t(n.hide,n.initialHide),s=t(n.pinned,n.initialPinned),a=t(n.width,n.initialWidth),l=t(n.flex,n.initialFlex);let c=t(n.rowGroupIndex,n.initialRowGroupIndex),u=t(n.rowGroup,n.initialRowGroup);c==null&&(u==null||u==!1)&&(c=null,u=null);let f=t(n.pivotIndex,n.initialPivotIndex),h=t(n.pivot,n.initialPivot);f==null&&(h==null||h==!1)&&(f=null,h=null);const g=t(n.aggFunc,n.initialAggFunc);return{colId:e.getColId(),sort:r,sortIndex:i,hide:o,pinned:s,width:a,flex:l,rowGroup:u,rowGroupIndex:c,pivot:h,pivotIndex:f,aggFunc:g}}syncColumnWithStateItem(e,t,n,r,i,o,s,a){if(!e)return;const l=(S,w)=>{const x={value1:void 0,value2:void 0};let E=!1;return t&&(t[S]!==void 0&&(x.value1=t[S],E=!0),zt(w)&&t[w]!==void 0&&(x.value2=t[w],E=!0)),!E&&n&&(n[S]!==void 0&&(x.value1=n[S]),zt(w)&&n[w]!==void 0&&(x.value2=n[w])),x},c=l("hide").value1;c!==void 0&&e.setVisible(!c,s);const u=l("pinned").value1;u!==void 0&&e.setPinned(u);const f=e.getColDef().minWidth??this.gos.environment.getDefaultColumnMinWidth(),h=l("flex").value1;if(h!==void 0&&e.setFlex(h),h==null){const S=l("width").value1;S!=null&&f!=null&&S>=f&&e.setActualWidth(S,s)}const g=l("sort").value1;g!==void 0&&(g==="desc"||g==="asc"?e.setSort(g,s):e.setSort(void 0,s));const p=l("sortIndex").value1;if(p!==void 0&&e.setSortIndex(p),o||!e.isPrimary())return;const m=l("aggFunc").value1;m!==void 0&&(typeof m=="string"?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,s),a.addValueCol(e))):(zt(m)&&rt("stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,s),a.removeValueCol(e))));const{value1:v,value2:C}=l("rowGroup","rowGroupIndex");(v!==void 0||C!==void 0)&&(typeof C=="number"||v?(e.isRowGroupActive()||(e.setRowGroupActive(!0,s),a.addGroupCol(e)),r&&typeof C=="number"&&(r[e.getId()]=C)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,s),a.removeGroupCol(e)));const{value1:y,value2:b}=l("pivot","pivotIndex");(y!==void 0||b!==void 0)&&(typeof b=="number"||y?(e.isPivotActive()||(e.setPivotActive(!0,s),a.addPivotCol(e)),i&&typeof b=="number"&&(i[e.getId()]=b)):e.isPivotActive()&&(e.setPivotActive(!1,s),a.removePivotCol(e)))}orderLiveColsLikeState(e){if(!e.applyOrder||!e.state)return;const t=[];e.state.forEach(n=>{n.colId!=null&&t.push(n.colId)}),this.columnModel.sortColsLikeKeys(t)}compareColumnStatesAndDispatchEvents(e){const t={rowGroupColumns:this.funcColsService.getRowGroupColumns().slice(),pivotColumns:this.funcColsService.getPivotColumns().slice(),valueColumns:this.funcColsService.getValueColumns().slice()},n=this.columnGetStateService.getColumnState(),r={};return n.forEach(i=>{r[i.colId]=i}),()=>{const i=this.columnModel.getAllCols(),o=(m,v,C,y)=>{const b=v.map(y),S=C.map(y);if(vc(b,S))return;const x=new Set(v);C.forEach(R=>{x.delete(R)||x.add(R)});const E=[...x];this.eventService.dispatchEvent({type:m,columns:E,column:E.length===1?E[0]:null,source:e})},s=m=>{const v=[];return i.forEach(C=>{const y=r[C.getColId()];y&&m(y,C)&&v.push(C)}),v},a=m=>m.getColId();o("columnRowGroupChanged",t.rowGroupColumns,this.funcColsService.getRowGroupColumns(),a),o("columnPivotChanged",t.pivotColumns,this.funcColsService.getPivotColumns(),a);const c=s((m,v)=>{const C=m.aggFunc!=null,y=C!=v.isValueActive(),b=C&&m.aggFunc!=v.getAggFunc();return y||b});c.length>0&&this.eventDispatcher.columnChanged("columnValueChanged",c,e);const u=(m,v)=>m.width!=v.getActualWidth();this.eventDispatcher.columnResized(s(u),!0,e);const f=(m,v)=>m.pinned!=v.getPinned();this.eventDispatcher.columnPinned(s(f),e);const h=(m,v)=>m.hide==v.isVisible();this.eventDispatcher.columnVisible(s(h),e);const p=s((m,v)=>m.sort!=v.getSort()||m.sortIndex!=v.getSortIndex());p.length>0&&this.sortController.dispatchSortChangedEvents(e,p),this.normaliseColumnMovedEventForColumnState(n,e)}}normaliseColumnMovedEventForColumnState(e,t){const n=this.columnGetStateService.getColumnState(),r={};n.forEach(l=>r[l.colId]=l);const i={};e.forEach(l=>{r[l.colId]&&(i[l.colId]=!0)});const o=e.filter(l=>i[l.colId]),s=n.filter(l=>i[l.colId]),a=[];s.forEach((l,c)=>{const u=o&&o[c];if(u&&u.colId!==l.colId){const f=this.columnModel.getCol(u.colId);f&&a.push(f)}}),a.length&&this.eventDispatcher.columnMoved({movedColumns:a,source:t,finished:!0})}},mLe=(e,t,n,r)=>{const i=e[n.getId()],o=e[r.getId()],s=i!=null,a=o!=null;if(s&&a)return i-o;if(s)return-1;if(a)return 1;const l=t.indexOf(n),c=t.indexOf(r),u=l>=0,f=c>=0;return u&&f?l-c:u?-1:1},pri=class extends ct{constructor(){super(...arguments),this.beanName="columnMoveService"}wireBeans(e){this.columnModel=e.columnModel,this.columnAnimationService=e.columnAnimationService,this.eventDispatcher=e.columnEventDispatcher}moveColumnByIndex(e,t,n){const r=this.columnModel.getCols();if(!r)return;const i=r[e];this.moveColumns([i],t,n)}moveColumns(e,t,n,r=!0){const i=this.columnModel.getCols();if(!i)return;if(t>i.length-e.length){rt("tried to insert columns in invalid location, toIndex = ",t),rt("remember that you should not count the moving columns when calculating the new index");return}this.columnAnimationService.start();const o=this.columnModel.getColsForKeys(e);this.doesMovePassRules(o,t)&&(this.columnModel.moveInCols(o,t,n),this.eventDispatcher.columnMoved({movedColumns:o,source:n,toIndex:t,finished:r})),this.columnAnimationService.finish()}doesMovePassRules(e,t){const n=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(n)}doesOrderPassRules(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))}getProposedColumnOrder(e,t){const r=this.columnModel.getCols().slice();return Wdt(r,e,t),r}doesMovePassLockedPositions(e){const t=o=>o?o==="left"||o===!0?-1:1:0,n=this.gos.get("enableRtl");let r=n?1:-1,i=!0;return e.forEach(o=>{const s=t(o.getColDef().lockPosition);n?s>r&&(i=!1):s<r&&(i=!1),r=s}),i}doesMovePassMarryChildren(e){let t=!0;const n=this.columnModel.getColTree();return K0(null,n,r=>{if(!_o(r))return;const i=r,o=i.getColGroupDef();if(!(o&&o.marryChildren))return;const a=[];i.getLeafColumns().forEach(h=>{const g=e.indexOf(h);a.push(g)});const l=Math.max.apply(Math,a),c=Math.min.apply(Math,a),u=l-c,f=i.getLeafColumns().length-1;u>f&&(t=!1)}),t}placeLockedColumns(e){const t=[],n=[],r=[];return e.forEach(o=>{const s=o.getColDef().lockPosition;s==="right"?r.push(o):s==="left"||s===!0?t.push(o):n.push(o)}),this.gos.get("enableRtl")?[...r,...n,...t]:[...t,...n,...r]}},mri=/[&<>"']/g,vri={"&":"&","<":"<",">":">",'"':""","'":"'"};function Wl(e,t){if(e==null)return null;const n=e.toString().toString();return t?n:n.replace(mri,r=>vri[r])}function Cri(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,n=/([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(n,"$1 $2$3").replace(/\./g," ").split(" ").map(i=>i.substring(0,1).toUpperCase()+(i.length>1?i.substring(1,i.length):"")).join(" ")}function yri(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}var bri=class extends ct{constructor(){super(...arguments),this.beanName="columnNameService"}wireBeans(e){this.expressionService=e.expressionService,this.funcColsService=e.funcColsService,this.columnModel=e.columnModel}getDisplayNameForColumn(e,t,n=!1){if(!e)return null;const r=this.getHeaderName(e.getColDef(),e,null,null,t);return n?this.wrapHeaderNameWithAggFunc(e,r):r}getDisplayNameForProvidedColumnGroup(e,t,n){const r=t?t.getColGroupDef():null;return r?this.getHeaderName(r,null,e,t,n):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,n,r,i){const o=e.headerValueGetter;if(o){const s=this.gos.addGridCommonParams({colDef:e,column:t,columnGroup:n,providedColumnGroup:r,location:i});return typeof o=="function"?o(s):typeof o=="string"?this.expressionService.evaluate(o,s):(rt("headerValueGetter must be a function or a string"),"")}else{if(e.headerName!=null)return e.headerName;if(e.field)return Cri(e.field)}return""}wrapHeaderNameWithAggFunc(e,t){if(this.gos.get("suppressAggFuncInHeader"))return t;const n=e.getColDef().pivotValueColumn,r=zt(n);let i=null,o;if(r){const s=this.funcColsService.getValueColumns(),a=this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&s.length===1,l=e.getColDef().pivotTotalColumnIds!==void 0;if(a&&!l)return t;i=n?n.getAggFunc():null,o=!0}else{const s=e.isValueActive(),a=this.columnModel.isPivotMode()||!this.funcColsService.isRowGroupEmpty();s&&a?(i=e.getAggFunc(),o=!0):o=!1}if(o){const s=typeof i=="string"?i:"func";return`${this.localeService.getLocaleTextFunc()(s,s)}(${t})`}return t}},Sri=class extends ct{constructor(){super(...arguments),this.beanName="pivotResultColsService"}wireBeans(e){this.context=e.context,this.columnModel=e.columnModel,this.columnFactory=e.columnFactory,this.visibleColsService=e.visibleColsService}destroy(){var e;I2(this.context,(e=this.pivotResultCols)==null?void 0:e.tree),super.destroy()}isPivotResultColsPresent(){return this.pivotResultCols!=null}lookupPivotResultCol(e,t){if(this.pivotResultCols==null)return null;const n=this.columnModel.getColDefCol(t);let r=null;return this.pivotResultCols.list.forEach(i=>{const o=i.getColDef().pivotKeys,s=i.getColDef().pivotValueColumn;vc(o,e)&&s===n&&(r=i)}),r}getPivotResultCols(){return this.pivotResultCols}getPivotResultCol(e){return this.pivotResultCols?this.columnModel.getColFromCollection(e,this.pivotResultCols):null}setPivotResultCols(e,t){var n,r;if(this.columnModel.isReady()&&!(e==null&&this.pivotResultCols==null)){if(e){this.processPivotResultColDef(e);const i=this.columnFactory.createColumnTree(e,!1,((n=this.pivotResultCols)==null?void 0:n.tree)||this.previousPivotResultCols||void 0,t);I2(this.context,(r=this.pivotResultCols)==null?void 0:r.tree,i.columnTree);const o=i.columnTree,s=i.treeDept,a=D3e(o),l={};this.pivotResultCols={tree:o,treeDepth:s,list:a,map:l},this.pivotResultCols.list.forEach(u=>this.pivotResultCols.map[u.getId()]=u);const c=!!this.previousPivotResultCols;this.previousPivotResultCols=null,this.columnModel.refreshCols(!c)}else this.previousPivotResultCols=this.pivotResultCols?this.pivotResultCols.tree:null,this.pivotResultCols=null,this.columnModel.refreshCols(!1);this.visibleColsService.refresh(t)}}processPivotResultColDef(e){const t=this.gos.get("processPivotResultColDef"),n=this.gos.get("processPivotResultColGroupDef");if(!t&&!n)return;const r=i=>{i.forEach(o=>{if(zt(o.children)){const a=o;n&&n(a),r(a.children)}else t&&t(o)})};e&&r(e)}},wri=class extends ct{constructor(){super(...arguments),this.beanName="columnSizeService"}wireBeans(e){this.columnModel=e.columnModel,this.columnViewportService=e.columnViewportService,this.eventDispatcher=e.columnEventDispatcher,this.visibleColsService=e.visibleColsService,this.ctrlsService=e.ctrlsService}setColumnWidths(e,t,n,r){const i=[];e.forEach(o=>{const s=this.columnModel.getColDefCol(o.key)||this.columnModel.getCol(o.key);if(!s)return;if(i.push({width:o.newWidth,ratios:[1],columns:[s]}),this.gos.get("colResizeDefault")==="shift"&&(t=!t),t){const l=this.visibleColsService.getColAfter(s);if(!l)return;const c=s.getActualWidth()-o.newWidth,u=l.getActualWidth()+c;i.push({width:u,ratios:[1],columns:[l]})}}),i.length!==0&&this.resizeColumnSets({resizeSets:i,finished:n,source:r})}resizeColumnSets(e){const{resizeSets:t,finished:n,source:r}=e;if(!(!t||t.every(u=>this.checkMinAndMaxWidthsForSet(u)))){if(n){const u=t&&t.length>0?t[0].columns:null;this.eventDispatcher.columnResized(u,n,r)}return}const o=[],s=[];t.forEach(u=>{const{width:f,columns:h,ratios:g}=u,p={},m={};h.forEach(y=>s.push(y));let v=!0,C=0;for(;v;){if(C++,C>1e3){Mr("infinite loop in resizeColumnSets");break}v=!1;const y=[];let b=0,S=f;h.forEach((x,E)=>{if(m[x.getId()])S-=p[x.getId()];else{y.push(x);const O=g[E];b+=O}});const w=1/b;y.forEach((x,E)=>{const R=E===y.length-1;let O;R?O=S:(O=Math.round(g[E]*f*w),S-=O);const T=x.getMinWidth(),M=x.getMaxWidth();O<T?(O=T,m[x.getId()]=!0,v=!0):M>0&&O>M&&(O=M,m[x.getId()]=!0,v=!0),p[x.getId()]=O})}h.forEach(y=>{const b=p[y.getId()];y.getActualWidth()!==b&&(y.setActualWidth(b,r),o.push(y))})});const a=o.length>0;let l=[];a&&(l=this.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0}),this.visibleColsService.setLeftValues(r),this.visibleColsService.updateBodyWidths(),this.columnViewportService.checkViewportColumns());const c=s.concat(l);(a||n)&&this.eventDispatcher.columnResized(c,n,r,l)}checkMinAndMaxWidthsForSet(e){const{columns:t,width:n}=e;let r=0,i=0,o=!0;t.forEach(l=>{const c=l.getMinWidth();r+=c||0;const u=l.getMaxWidth();u>0?i+=u:o=!1});const s=n>=r,a=!o||n<=i;return s&&a}refreshFlexedColumns(e={}){const t=e.source?e.source:"flex";if(e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];const n=this.visibleColsService.getCenterCols();let r=-1;if(e.resizingCols){const h=new Set(e.resizingCols);for(let g=n.length-1;g>=0;g--)if(h.has(n[g])){r=g;break}}let i=0,o=[],s=0,a=0;for(let h=0;h<n.length;h++)n[h].getFlex()&&h>r?(o.push(n[h]),a+=n[h].getFlex(),s+=n[h].getMinWidth()):i+=n[h].getActualWidth();if(!o.length)return[];let l=[];i+s>this.flexViewportWidth&&(o.forEach(h=>h.setActualWidth(h.getMinWidth(),t)),l=o,o=[]);const c=[];let u;e:for(;;){u=this.flexViewportWidth-i;const h=u/a;for(let g=0;g<o.length;g++){const p=o[g],m=h*p.getFlex();let v=0;const C=p.getMinWidth(),y=p.getMaxWidth();if(m<C?v=C:m>y&&(v=y),v){p.setActualWidth(v,t),Gdt(o,p),a-=p.getFlex(),l.push(p),i+=p.getActualWidth();continue e}c[g]=Math.floor(m)}break}let f=u;return o.forEach((h,g)=>{const p=g<o.length-1?Math.min(c[g],f):Math.max(c[g],f);h.setActualWidth(p,t),l.push(h),f-=c[g]}),e.skipSetLeft||this.visibleColsService.setLeftValues(t),e.updateBodyWidths&&this.visibleColsService.updateBodyWidths(),e.fireResizedEvent&&this.eventDispatcher.columnResized(l,!0,t,o),o}sizeColumnsToFit(e,t="sizeColumnsToFit",n,r){var h;if(this.columnModel.isShouldQueueResizeOperations()){this.columnModel.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,n,r));return}const i={};r&&((h=r==null?void 0:r.columnLimits)==null||h.forEach(({key:g,...p})=>{i[typeof g=="string"?g:g.getColId()]=p}));const o=this.visibleColsService.getAllCols(),s=e===r0(o);if(e<=0||!o.length||s)return;const a=[],l=[];o.forEach(g=>{g.getColDef().suppressSizeToFit===!0?l.push(g):a.push(g)});const c=a.slice(0);let u=!1;const f=g=>{rl(a,g),l.push(g)};for(a.forEach(g=>{g.resetActualWidth(t);const p=i==null?void 0:i[g.getId()],m=(p==null?void 0:p.minWidth)??(r==null?void 0:r.defaultMinWidth),v=(p==null?void 0:p.maxWidth)??(r==null?void 0:r.defaultMaxWidth),C=g.getActualWidth();typeof m=="number"&&C<m?g.setActualWidth(m,t,!0):typeof v=="number"&&C>v&&g.setActualWidth(v,t,!0)});!u;){u=!0;const g=e-r0(l);if(g<=0)a.forEach(p=>{var v;const m=((v=i==null?void 0:i[p.getId()])==null?void 0:v.minWidth)??(r==null?void 0:r.defaultMinWidth);if(typeof m=="number"){p.setActualWidth(m,t,!0);return}p.setMinimum(t)});else{const p=g/r0(a);let m=g;for(let v=a.length-1;v>=0;v--){const C=a[v],y=i==null?void 0:i[C.getId()],b=(y==null?void 0:y.minWidth)??(r==null?void 0:r.defaultMinWidth),S=(y==null?void 0:y.maxWidth)??(r==null?void 0:r.defaultMaxWidth),w=C.getMinWidth(),x=C.getMaxWidth(),E=typeof b=="number"&&b>w?b:w,R=typeof S=="number"&&S<x?S:x;let O=Math.round(C.getActualWidth()*p);O<E?(O=E,f(C),u=!1):O>R?(O=R,f(C),u=!1):v===0&&(O=m),C.setActualWidth(O,t,!0),m-=O}}}c.forEach(g=>{g.fireColumnWidthChangedEvent(t)}),this.visibleColsService.setLeftValues(t),this.visibleColsService.updateBodyWidths(),!n&&this.eventDispatcher.columnResized(c,!0,t)}applyAutosizeStrategy(){const e=this.gos.get("autoSizeStrategy");if(!e)return;const{type:t}=e;setTimeout(()=>{if(t==="fitGridWidth"){const{columnLimits:n,defaultMinWidth:r,defaultMaxWidth:i}=e,o=n==null?void 0:n.map(({colId:s,minWidth:a,maxWidth:l})=>({key:s,minWidth:a,maxWidth:l}));this.ctrlsService.getGridBodyCtrl().sizeColumnsToFit({defaultMinWidth:r,defaultMaxWidth:i,columnLimits:o})}else t==="fitProvidedWidth"&&this.sizeColumnsToFit(e.width,"sizeColumnsToFit")})}};function Xdt(e,t){return e+"_"+t}function Ss(e){return e instanceof Qdt}var Qdt=class extends ct{constructor(e,t,n,r){super(),this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.groupId=t,this.partId=n,this.providedColumnGroup=e,this.pinned=r}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}setParent(e){this.parent=e}getUniqueId(){return Xdt(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){if(this.displayedChildren.forEach(e=>{Ss(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=Dn(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;return this.displayedChildren&&this.displayedChildren.forEach(t=>{e+=t.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(t=>{t.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(t=>{e+=t.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){var e;return!!((e=this.getColGroupDef())!=null&&e.autoHeaderHeight)}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach(t=>{km(t)?e.push(t):Ss(t)&&t.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(t=>{km(t)?e.push(t):Ss(t)&&t.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(n=>{if(Ss(n)&&(!n.displayedChildren||!n.displayedChildren.length))return;switch(n.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(n);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(n);break;default:this.displayedChildren.push(n);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},Zdt=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let n;return typeof t!="number"?n=0:n=t+1,this.existingIds[e]=n,n}},xri=class extends ct{constructor(){super(...arguments),this.beanName="visibleColsService",this.colsAndGroupsMap={},this.columnsLeft=[],this.columnsRight=[],this.columnsCenter=[],this.columns=[],this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0}wireBeans(e){this.columnModel=e.columnModel,this.columnSizeService=e.columnSizeService,this.columnViewportService=e.columnViewportService,this.eventDispatcher=e.columnEventDispatcher}refresh(e,t=!1){t||this.buildTrees(),this.updateOpenClosedVisibilityInColumnGroups(),this.columnsLeft=Zie(this.treeLeft),this.columnsCenter=Zie(this.treeCenter),this.columnsRight=Zie(this.treeRight),this.joinColsAriaOrder(),this.joinCols(),this.setLeftValues(e),this.autoHeightCols=this.columns.filter(n=>n.isAutoHeight()),this.columnSizeService.refreshFlexedColumns(),this.updateBodyWidths(),this.columnViewportService.checkViewportColumns(!1),this.setFirstRightAndLastLeftPinned(e),this.eventDispatcher.visibleCols(e)}updateBodyWidths(){const e=r0(this.columnsCenter),t=r0(this.columnsLeft),n=r0(this.columnsRight);this.bodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n,this.eventService.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventService.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e){let t,n;this.gos.get("enableRtl")?(t=this.columnsLeft?this.columnsLeft[0]:null,n=this.columnsRight?Dn(this.columnsRight):null):(t=this.columnsLeft?Dn(this.columnsLeft):null,n=this.columnsRight?this.columnsRight[0]:null),this.columnModel.getCols().forEach(r=>{r.setLastLeftPinned(r===t,e),r.setFirstRightPinned(r===n,e)})}buildTrees(){const e=this.columnModel.getColsToShow(),t=e.filter(o=>o.getPinned()=="left"),n=e.filter(o=>o.getPinned()=="right"),r=e.filter(o=>o.getPinned()!="left"&&o.getPinned()!="right"),i=new Zdt;this.treeLeft=this.createGroups({columns:t,idCreator:i,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=this.createGroups({columns:n,idCreator:i,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=this.createGroups({columns:r,idCreator:i,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.columnsLeft=[],this.columnsRight=[],this.columnsCenter=[],this.columns=[],this.ariaOrderColumns=[]}joinColsAriaOrder(){const e=this.columnModel.getCols(),t=[],n=[],r=[];for(const i of e){const o=i.getPinned();o?o===!0||o==="left"?t.push(i):r.push(i):n.push(i)}this.ariaOrderColumns=t.concat(n).concat(r)}getAriaColIndex(e){let t;return Ss(e)?t=e.getLeafColumns()[0]:t=e,this.ariaOrderColumns.indexOf(t)+1}getAllAutoHeightCols(){return this.autoHeightCols}setLeftValuesOfGroups(){[this.treeLeft,this.treeRight,this.treeCenter].forEach(e=>{e.forEach(t=>{Ss(t)&&t.checkLeft()})})}setLeftValuesOfCols(e){if(!this.columnModel.getColDefCols())return;const n=this.columnModel.getCols().slice(0),r=this.gos.get("enableRtl");[this.columnsLeft,this.columnsRight,this.columnsCenter].forEach(i=>{if(r){let o=r0(i);i.forEach(s=>{o-=s.getActualWidth(),s.setLeft(o,e)})}else{let o=0;i.forEach(s=>{s.setLeft(o,e),o+=s.getActualWidth()})}Jni(n,i)}),n.forEach(i=>{i.setLeft(null,e)})}joinCols(){this.gos.get("enableRtl")?this.columns=this.columnsRight.concat(this.columnsCenter).concat(this.columnsLeft):this.columns=this.columnsLeft.concat(this.columnsCenter).concat(this.columnsRight)}getColsCenter(){return this.columnsCenter}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}getTreeLeft(){return this.treeLeft}getTreeRight(){return this.treeRight}getTreeCenter(){return this.treeCenter}getAllCols(){return this.columns}isColDisplayed(e){return this.getAllCols().indexOf(e)>=0}getLeftColsForRow(e){return this.columnModel.isColSpanActive()?this.getColsForRow(e,this.columnsLeft):this.columnsLeft}getRightColsForRow(e){return this.columnModel.isColSpanActive()?this.getColsForRow(e,this.columnsRight):this.columnsRight}getColsForRow(e,t,n,r){const i=[];let o=null;for(let s=0;s<t.length;s++){const a=t[s],l=t.length-s,c=Math.min(a.getColSpan(e),l),u=[a];if(c>1){const h=c-1;for(let g=1;g<=h;g++)u.push(t[s+g]);s+=h}let f;n?(f=!1,u.forEach(h=>{n(h)&&(f=!0)})):f=!0,f&&(i.length===0&&o&&(r&&r(a))&&i.push(o),i.push(a)),o=a}return i}getBodyContainerWidth(){return this.bodyWidth}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getCenterCols(){return this.columnsCenter}getLeftCols(){return this.columnsLeft}getRightCols(){return this.columnsRight}getColBefore(e){const t=this.getAllCols(),n=t.indexOf(e);return n>0?t[n-1]:null}getGroupAtDirection(e,t){const n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),i=t==="After"?Dn(r):r[0],o=`getCol${t}`;for(;;){const s=this[o](i);if(!s)return null;const a=this.getColGroupAtLevel(s,n);if(a!==e)return a}}getColGroupAtLevel(e,t){let n=e.getParent(),r,i;for(;r=n.getProvidedColumnGroup().getLevel(),i=n.getPaddingLevel(),!(r+i<=t);)n=n.getParent();return n}isPinningLeft(){return this.columnsLeft.length>0}isPinningRight(){return this.columnsRight.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};b8(this.treeCenter,!1,e),b8(this.treeLeft,!1,e),b8(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}updateOpenClosedVisibilityInColumnGroups(){const e=this.getAllTrees();b8(e,!1,t=>{Ss(t)&&t.calculateDisplayedColumns()})}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["getLeftCols","getCenterCols","getRightCols"];e&&t.reverse();for(let n=0;n<t.length;n++){const r=this[t[n]]();if(r.length)return e?Dn(r):r[0]}return null}getColumnGroup(e,t){if(!e)return null;if(Ss(e))return e;const n=this.getAllTrees(),r=typeof t=="number";let i=null;return b8(n,!1,o=>{if(Ss(o)){const s=o;let a;r?a=e===s.getGroupId()&&t===s.getPartId():a=e===s.getGroupId(),a&&(i=s)}}),i}getColAfter(e){const t=this.getAllCols(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null}isBodyWidthDirty(){return this.bodyWidthDirty}setBodyWidthDirty(){this.bodyWidthDirty=!0}getColsLeftWidth(){return r0(this.columnsLeft)}getDisplayedColumnsRightWidth(){return r0(this.columnsRight)}isColAtEdge(e,t){const n=this.getAllCols();if(!n.length)return!1;const r=t==="first";let i;if(Ss(e)){const o=e.getDisplayedLeafColumns();if(!o.length)return!1;i=r?o[0]:Dn(o)}else i=e;return(r?n[0]:Dn(n))===i}createGroups(e){const{columns:t,idCreator:n,pinned:r,oldDisplayedGroups:i,isStandaloneStructure:o}=e,s=this.mapOldGroupsById(i),a=[];let l=t;for(;l.length;){const c=l;l=[];let u=0;const f=h=>{const g=u;u=h;const p=c[g],v=(Ss(p)?p.getProvidedColumnGroup():p).getOriginalParent();if(v==null){for(let y=g;y<h;y++)a.push(c[y]);return}const C=this.createColGroup(v,n,s,r,o);for(let y=g;y<h;y++)C.addChild(c[y]);l.push(C)};for(let h=1;h<c.length;h++){const g=c[h],m=(Ss(g)?g.getProvidedColumnGroup():g).getOriginalParent(),v=c[u],y=(Ss(v)?v.getProvidedColumnGroup():v).getOriginalParent();m!==y&&f(h)}u<c.length&&f(c.length)}return o||this.setupParentsIntoCols(a,null),a}createColGroup(e,t,n,r,i){const o=e.getGroupId(),s=t.getInstanceIdForKey(o),a=Xdt(o,s);let l=n[a];return l&&l.getProvidedColumnGroup()!==e&&(l=null),zt(l)?l.reset():(l=new Qdt(e,o,s,r),i||this.createBean(l)),l}mapOldGroupsById(e){const t={},n=r=>{r.forEach(i=>{if(Ss(i)){const o=i;t[i.getUniqueId()]=o,n(o.getChildren())}})};return e&&n(e),t}setupParentsIntoCols(e,t){e.forEach(n=>{if(n.setParent(t),Ss(n)){const r=n;this.setupParentsIntoCols(r.getChildren(),r)}})}};function b8(e,t,n){if(e)for(let r=0;r<e.length;r++){const i=e[r];if(Ss(i)){const o=t?i.getDisplayedChildren():i.getChildren();b8(o,t,n)}n(i)}}function Zie(e){const t=[];return b8(e,!0,n=>{km(n)&&t.push(n)}),t}var Jdt=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterOpened","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel"],Eri=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged"],Rri=[...Jdt,...Eri],$ri={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,advancedFilterModel:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressAsyncEvents:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,suppressAggFuncInHeader:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,suppressGroupMaintainValueType:!0,groupLockGroupColumns:!0,rowGroupPanelSuppressSort:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,suppressServerSideInfiniteScroll:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0,suppressSetFilterByDefault:!0},Pl=class{};Pl.STRING_PROPERTIES=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow"];Pl.OBJECT_PROPERTIES=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","theme","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterModel","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","cellSelection","selectionColumnDef"];Pl.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"];Pl.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns"];Pl.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","suppressGroupMaintainValueType","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault"];Pl.OTHER_PROPERTIES=["suppressStickyTotalRow","loadThemeGoogleFonts","rowSelection"];Pl.FUNCTION_PROPERTIES=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","groupIncludeFooter","loadingCellRendererSelector","getRowId","groupAggFiltering","chartMenuItems","groupTotalRow"];Pl.ALL_PROPERTIES=[...Pl.ARRAY_PROPERTIES,...Pl.OBJECT_PROPERTIES,...Pl.STRING_PROPERTIES,...Pl.NUMBER_PROPERTIES,...Pl.FUNCTION_PROPERTIES,...Pl.BOOLEAN_PROPERTIES,...Pl.OTHER_PROPERTIES];var bI=Pl,Hf=class{static getCallbackForEvent(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substring(1)}};Hf.VUE_OMITTED_PROPERTY="AG-VUE-OMITTED-PROPERTY";Hf.PUBLIC_EVENTS=Jdt;Hf.EVENT_CALLBACKS=Rri.map(e=>Hf.getCallbackForEvent(e));Hf.BOOLEAN_PROPERTIES=bI.BOOLEAN_PROPERTIES;Hf.ALL_PROPERTIES=bI.ALL_PROPERTIES;Hf.ALL_PROPERTIES_AND_CALLBACKS=[...Hf.ALL_PROPERTIES,...Hf.EVENT_CALLBACKS];Hf.ALL_PROPERTIES_AND_CALLBACKS_SET=new Set(Hf.ALL_PROPERTIES_AND_CALLBACKS);var SI=Hf;function Ori(e,t){typeof e!="object"&&(e={});const n={...e};return SI.ALL_PROPERTIES_AND_CALLBACKS.forEach(i=>{const o=t[i];typeof o<"u"&&o!==SI.VUE_OMITTED_PROPERTY&&(n[i]=o)}),n}function Tri(e,t){if(!e)return;const n={};let r=!1;if(Object.keys(e).filter(s=>SI.ALL_PROPERTIES_AND_CALLBACKS_SET.has(s)).forEach(s=>{n[s]=e[s],r=!0}),!r)return;const i={type:"gridOptionsChanged",options:n};t.dispatchEvent(i);const o={type:"componentStateChanged"};tl(n,(s,a)=>{o[s]=a}),t.dispatchEvent(o)}var uE=class extends ct{};function z_(e,t,n){return n&&e.addDestroyFunc(()=>t.destroyBean(n)),n??e}var B_=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){const t=(e||"").split(" ");if(t.length>1){t.forEach(r=>this.addCssClass(r));return}if(this.cssClassStates[e]!==!0&&e.length){const r=this.getGui();r&&r.classList.add(e),this.cssClassStates[e]=!0}}removeCssClass(e){const t=(e||"").split(" ");if(t.length>1){t.forEach(r=>this.removeCssClass(r));return}if(this.cssClassStates[e]!==!1&&e.length){const r=this.getGui();r&&r.classList.remove(e),this.cssClassStates[e]=!1}}containsCssClass(e){const t=this.getGui();return t?t.classList.contains(e):!1}addOrRemoveCssClass(e,t){if(!e)return;if(e.indexOf(" ")>=0){const r=(e||"").split(" ");if(r.length>1){r.forEach(i=>this.addOrRemoveCssClass(i,t));return}}if(this.cssClassStates[e]!==t&&e.length){const r=this.getGui();r&&r.classList.toggle(e,t),this.cssClassStates[e]=t}}};function up(e,t,n){n==null||typeof n=="string"&&n==""?N3e(e,t):gh(e,t,n)}function gh(e,t,n){e.setAttribute(eft(t),n.toString())}function N3e(e,t){e.removeAttribute(eft(t))}function eft(e){return`aria-${e}`}function jo(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Iri(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function Mri(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Pri(e){return e.getAttribute("aria-label")}function Xl(e,t){up(e,"label",t)}function Rx(e,t){up(e,"labelledby",t)}function k3e(e,t){up(e,"describedby",t)}function tft(e,t){up(e,"live",t)}function _ri(e,t){up(e,"atomic",t)}function Ari(e,t){up(e,"relevant",t)}function z3e(e,t){up(e,"level",t)}function nft(e,t){up(e,"disabled",t)}function B3e(e,t){up(e,"hidden",t)}function wd(e,t){gh(e,"expanded",t)}function Dri(e){N3e(e,"expanded")}function H3e(e,t){gh(e,"setsize",t)}function j3e(e,t){gh(e,"posinset",t)}function Lri(e,t){gh(e,"multiselectable",t)}function rft(e,t){gh(e,"rowcount",t)}function ift(e,t){gh(e,"rowindex",t)}function oft(e,t){gh(e,"colcount",t)}function sft(e,t){gh(e,"colindex",t)}function Fri(e,t){gh(e,"colspan",t)}function aft(e,t){gh(e,"sort",t)}function lft(e){N3e(e,"sort")}function yH(e,t){up(e,"selected",t)}function Nri(e,t){gh(e,"checked",t===void 0?"mixed":t)}function cft(e,t){up(e,"controls",t.id),Rx(t,e.id)}function V3e(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Jie,hF,eoe,toe,noe,roe,ife,ofe,ioe;function zm(){return Jie===void 0&&(Jie=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Jie}function uft(){if(hF===void 0)if(zm()){const e=navigator.userAgent.match(/version\/(\d+)/i);e&&(hF=e[1]!=null?parseFloat(e[1]):0)}else hF=0;return hF}function G3e(){if(eoe===void 0){const e=window;eoe=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return eoe}function W3e(){return toe===void 0&&(toe=/(firefox)/i.test(navigator.userAgent)),toe}function dft(){return noe===void 0&&(noe=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),noe}function Ev(){return roe===void 0&&(roe=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),roe}function sfe(){return!zm()||uft()>=15}function afe(e){if(!e)return null;const t=e.tabIndex,n=e.getAttribute("tabIndex");return t===-1&&(n===null||n===""&&!W3e())?null:t.toString()}function kri(){if(ioe!==void 0)return ioe;if(!document.body)return-1;let e=1e6;const t=W3e()?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){const r=e*2;if(n.style.height=r+"px",r>t||n.clientHeight!==r)break;e=r}return document.body.removeChild(n),ioe=e,e}function zri(){var e,t;return((e=document.body)==null?void 0:e.clientWidth)??(window.innerHeight||((t=document.documentElement)==null?void 0:t.clientWidth)||-1)}function Bri(){var e,t;return((e=document.body)==null?void 0:e.clientHeight)??(window.innerHeight||((t=document.documentElement)==null?void 0:t.clientHeight)||-1)}function Hri(){return ofe==null&&fft(),ofe}function fft(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let n=t.offsetWidth-t.clientWidth;n===0&&t.clientWidth===0&&(n=null),t.parentNode&&t.parentNode.removeChild(t),n!=null&&(ofe=n,ife=n===0)}function hft(){return ife==null&&fft(),ife}var gF;function vLe(e,t,n){const r=e.parentElement;let i=r&&r.firstChild;for(;i;)t&&i.classList.toggle(t,i===e),i=i.nextSibling}var jri="[tabindex], input, select, button, textarea, [href]",gft="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function U3e(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,r=t.call(e,"input, select, button, textarea"),i=t.call(e,gft),o=Su(e);return r&&!i&&o}function Mn(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle("ag-hidden",!t),r||B3e(e,!t)}function Vri(e,t,n={}){const{skipAriaHidden:r}=n;e.classList.toggle("ag-invisible",!t),r||B3e(e,!t)}function wI(e,t){const n="disabled",r=t?i=>i.setAttribute(n,""):i=>i.removeAttribute(n);r(e),Sft(e.querySelectorAll("input"),i=>r(i))}function fw(e,t,n){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof n=="number"){if(++r>n)break}else if(e===n)break}return!1}function Db(e){const{height:t,width:n,borderTopWidth:r,borderRightWidth:i,borderBottomWidth:o,borderLeftWidth:s,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:u,marginTop:f,marginRight:h,marginBottom:g,marginLeft:p,boxSizing:m}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(n||"0"),borderTopWidth:parseFloat(r||"0"),borderRightWidth:parseFloat(i||"0"),borderBottomWidth:parseFloat(o||"0"),borderLeftWidth:parseFloat(s||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(c||"0"),paddingLeft:parseFloat(u||"0"),marginTop:parseFloat(f||"0"),marginRight:parseFloat(h||"0"),marginBottom:parseFloat(g||"0"),marginLeft:parseFloat(p||"0"),boxSizing:m}}function GQ(e){const t=Db(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function dE(e){const t=Db(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function pft(e){const{height:t,marginBottom:n,marginTop:r}=Db(e);return Math.floor(t+n+r)}function bH(e){const{width:t,marginLeft:n,marginRight:r}=Db(e);return Math.floor(t+n+r)}function mft(e){const t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:r,borderRightWidth:i,borderBottomWidth:o}=Db(e);return{top:t.top+(n||0),left:t.left+(r||0),right:t.right+(i||0),bottom:t.bottom+(o||0)}}function SH(){if(typeof gF=="boolean")return gF;const e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML=`<div style="width: 2px">
|
||
<span style="display: inline-block; width: 1px"></span>
|
||
<span style="display: inline-block; width: 1px"></span>
|
||
</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){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!Ev()&&(l8.isLocked?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(t)},CLe):this.prepareToShowTooltip(t))}onMouseMove(t){this.lastMouseEvent&&(this.lastMouseEvent=t),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(t){var o;const n=t.relatedTarget,r=this.parentComp.getGui(),i=(o=this.tooltipComp)==null?void 0:o.getGui();this.isInteractingWithTooltip||r.contains(n)||this.interactionEnabled&&(i!=null&&i.contains(n))||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(t){if(this.state!=0||l8.isLocked)return;let n=0;t&&(n=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=t||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),n),this.state=1}isLastTooltipHiddenRecently(){const t=new Date().getTime(),n=l8.lastTooltipHideTime;return t-n<Yri}setToDoNothing(t){!t&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const t={...this.parentComp.getTooltipParams()};if(!zt(t.value)||this.shouldDisplayTooltip&&!this.shouldDisplayTooltip()){this.setToDoNothing();return}this.state=2,this.tooltipInstanceCount++;const n=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(t).newAgStackInstance().then(n)}hideTooltip(t){!t&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),l8.lastTooltipHideTime=new Date().getTime()),this.eventService.dispatchEvent({type:"tooltipHide",parentGui:this.parentComp.getGui()}),t&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(t,n){if(this.state!==2||this.tooltipInstanceCount!==t){this.destroyBean(n);return}const i=n.getGui();this.tooltipComp=n,i.classList.contains("ag-tooltip")||i.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&i.classList.add("ag-tooltip-animate"),this.interactionEnabled&&i.classList.add("ag-tooltip-interactive");const o=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({eChild:i,ariaLabel:o("ariaLabelTooltip","Tooltip")});if(s&&(this.tooltipPopupDestroyFunc=s.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const a=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:a,columnMoved:a})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(i,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(uo(this.gos),{keydown:a=>{i.contains(a==null?void 0:a.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(i,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventService.dispatchEvent({type:"tooltipShow",tooltipGui:i,parentGui:this.parentComp.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){var r;const t=(r=this.tooltipComp)==null?void 0:r.getGui(),n=gi(this.gos);return!!t&&t.contains(n)}onTooltipFocusOut(t){const n=this.parentComp.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,n.contains(t.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const t={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupService.positionPopupUnderMouseEvent({...t,mouseEvent:this.lastMouseEvent}):this.popupService.positionPopupByComponent({...t,eventSource:this.parentComp.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const t=this.tooltipPopupDestroyFunc,n=this.tooltipComp,r=this.tooltipTrigger===0?Xri:0;window.setTimeout(()=>{t(),this.destroyBean(n)},r),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(t=>{t&&t()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){l8.isLocked=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},CLe)}unlockService(){l8.isLocked=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};wft.isLocked=!1;var Qri=wft,Lb=class extends ct{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}wireBeans(e){this.beans=e}postConstruct(){this.refreshToolTip()}setBrowserTooltip(e){const t="title",n=this.ctrl.getGui();n&&(e!=null&&e!=""?n.setAttribute(t,e):n.removeAttribute(t))}updateTooltipText(){this.tooltip=this.ctrl.getTooltipValue()}createTooltipFeatureIfNeeded(){var t,n,r,i;if(this.tooltipManager!=null)return;const e={getTooltipParams:()=>this.getTooltipParams(),getGui:()=>this.ctrl.getGui()};this.tooltipManager=this.createBean(new Qri(e,(n=(t=this.ctrl).getTooltipShowDelayOverride)==null?void 0:n.call(t),(i=(r=this.ctrl).getTooltipHideDelayOverride)==null?void 0:i.call(r),this.ctrl.shouldDisplayTooltip),this.beans.context)}refreshToolTip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context))):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}getTooltipParams(){var i,o,s,a,l;const e=this.ctrl,t=(i=e.getColumn)==null?void 0:i.call(e),n=(o=e.getColDef)==null?void 0:o.call(e),r=(s=e.getRowNode)==null?void 0:s.call(e);return{location:e.getLocation(),colDef:n,column:t,rowIndex:(a=e.getRowIndex)==null?void 0:a.call(e),node:r,data:r==null?void 0:r.data,value:this.getTooltipText(),valueFormatted:(l=e.getValueFormatted)==null?void 0:l.call(e),hideTooltipCallback:()=>{var c;return(c=this.tooltipManager)==null?void 0:c.hideTooltip(!0)}}}getTooltipText(){return this.tooltip}destroy(){this.tooltipManager&&(this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)),super.destroy()}},Zri=new ad,Ot=null,wn=class xft extends ct{constructor(t,n){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=Zri.next(),this.cssClassManager=new B_(()=>this.eGui),this.componentSelectors=new Map((n??[]).map(r=>[r.selector,r])),t&&this.setTemplate(t)}preWireBeans(t){super.preWireBeans(t)}preConstruct(){this.usingBrowserTooltips=this.gos.get("enableBrowserTooltips"),this.wireTemplate(this.getGui())}wireTemplate(t,n){t&&this.gos&&(this.applyElementsToComponent(t),this.createChildComponentsFromTags(t,n))}getCompId(){return this.compId}getTooltipParams(){return{value:this.tooltipText,location:"UNKNOWN"}}setTooltip(t){const{newTooltipText:n,showDelayOverride:r,hideDelayOverride:i,location:o,shouldDisplayTooltip:s}=t||{};this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.tooltipText!==n&&(this.tooltipText=n);const a=()=>this.tooltipText;n!=null&&(this.tooltipFeature=this.createBean(new Lb({getTooltipValue:a,getGui:()=>this.getGui(),getLocation:()=>o??"UNKNOWN",getColDef:t==null?void 0:t.getColDef,getColumn:t==null?void 0:t.getColumn,getTooltipShowDelayOverride:r!=null?()=>r:void 0,getTooltipHideDelayOverride:i!=null?()=>i:void 0,shouldDisplayTooltip:s})))}getDataRefAttribute(t){return t.getAttribute?t.getAttribute("data-ref"):null}applyElementsToComponent(t,n,r,i=null){if(n===void 0&&(n=this.getDataRefAttribute(t)),n){const o=this[n];if(o===Ot)this[n]=i??t;else{const s=r&&r[n];!this.suppressDataRefValidation&&!s&&rt(`Issue with data-ref: ${n} on ${this.constructor.name} with ${o}`)}}}createChildComponentsFromTags(t,n){qri(t.childNodes).forEach(i=>{if(!(i instanceof HTMLElement))return;const o=this.createComponentFromElement(i,s=>{s.getGui()&&this.copyAttributesFromNode(i,s.getGui())},n);if(o){if(o.addItems&&i.children.length){this.createChildComponentsFromTags(i,n);const s=Array.prototype.slice.call(i.children);o.addItems(s)}this.swapComponentForNode(o,t,i)}else i.childNodes&&this.createChildComponentsFromTags(i,n)})}createComponentFromElement(t,n,r){const i=t.nodeName,o=this.getDataRefAttribute(t),s=i.indexOf("AG-")===0,a=s?this.componentSelectors.get(i):null;let l=null;if(a){xft.elementGettingCreated=t;const c=r&&o?r[o]:void 0;l=new a.component(c),l.setParentComponent(this),this.createBean(l,null,n)}else s&&rt(`Missing selector: ${i}`);return this.applyElementsToComponent(t,o,r,l),l}copyAttributesFromNode(t,n){Kri(t.attributes,(r,i)=>n.setAttribute(r,i))}swapComponentForNode(t,n,r){const i=t.getGui();n.replaceChild(i,r),n.insertBefore(document.createComment(r.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,t))}activateTabIndex(t){const n=this.gos.get("tabIndex");t||(t=[]),t.length||t.push(this.getGui()),t.forEach(r=>r.setAttribute("tabindex",n.toString()))}setTemplate(t,n,r){const i=lu(t);this.setTemplateFromElement(i,n,r)}setTemplateFromElement(t,n,r,i=!1){if(this.eGui=t,this.suppressDataRefValidation=i,n)for(let o=0;o<n.length;o++){const s=n[o];this.componentSelectors.set(s.selector,s)}this.wireTemplate(t,r)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(t){this.parentComponent=t}getParentComponent(){return this.parentComponent}setGui(t){this.eGui=t}queryForHtmlElement(t){return this.eGui.querySelector(t)}getContainerAndElement(t,n){let r=n;return t==null?null:(r||(r=this.eGui),WQ(t)?{element:t,parent:r}:{element:t.getGui(),parent:r})}prependChild(t,n){const{element:r,parent:i}=this.getContainerAndElement(t,n)||{};!r||!i||i.insertAdjacentElement("afterbegin",r)}appendChild(t,n){const{element:r,parent:i}=this.getContainerAndElement(t,n)||{};!r||!i||i.appendChild(r)}isDisplayed(){return this.displayed}setVisible(t,n={}){if(t!==this.visible){this.visible=t;const{skipAriaHidden:r}=n;Vri(this.eGui,t,{skipAriaHidden:r})}}setDisplayed(t,n={}){if(t!==this.displayed){this.displayed=t;const{skipAriaHidden:r}=n;Mn(this.eGui,t,{skipAriaHidden:r});const i={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(i)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),super.destroy()}addGuiEventListener(t,n,r){this.eGui.addEventListener(t,n,r),this.addDestroyFunc(()=>this.eGui.removeEventListener(t,n))}addCssClass(t){this.cssClassManager.addCssClass(t)}removeCssClass(t){this.cssClassManager.removeCssClass(t)}containsCssClass(t){return this.cssClassManager.containsCssClass(t)}addOrRemoveCssClass(t,n){this.cssClassManager.addOrRemoveCssClass(t,n)}},Eft={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",menuAlt:"menu-alt",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus",checkboxChecked:"checkbox-checked",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off"},Jri=(()=>{const e=new Set(Object.values(Eft));return e.add("eye"),e})();function M4(e,t,n){const r=Gn(e,t,n);if(r){const{className:o}=r;if(typeof o=="string"&&o.indexOf("ag-icon")>-1||typeof o=="object"&&o["ag-icon"])return r}const i=document.createElement("span");return i.appendChild(r),i}function Gn(e,t,n,r){let i=null;const o=n&&n.getColDef().icons;if(o&&(i=o[e]),t&&!i){const s=t.get("icons");s&&(i=s[e])}if(i){let s;if(typeof i=="function")s=i();else if(typeof i=="string")s=i;else throw new Error("icon from grid options needs to be a string or a function");if(typeof s=="string")return lu(s);if(WQ(s))return s;rt("iconRenderer should return back a string or a dom object")}else{const s=document.createElement("span");let a=Eft[e]??(Jri.has(e)?e:void 0);return a||(r?a=e:(rt(`Did not find icon ${e}`),a="")),s.setAttribute("class",`ag-icon ag-icon-${a}`),s.setAttribute("unselectable","on"),jo(s,"presentation"),s}}var eii=class extends wn{constructor(){super(...arguments),this.dragSource=null,this.eIcon=Ot,this.eLabel=Ot}postConstruct(){const e=t=>M4(t,this.gos,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(`<div class="ag-dnd-ghost ag-unselectable">
|
||
<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>
|
||
</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">
|
||
${HR("Order","order")}
|
||
${HR("Asc","ascending-icon")}
|
||
${HR("Desc","descending-icon")}
|
||
${HR("Mixed","mixed-icon")}
|
||
${HR("None","none-icon")}
|
||
</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">
|
||
<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>
|
||
</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=this.params.column.getSort();if(this.addOrRemoveCssClass("ag-header-cell-sorted-asc",t==="asc"),this.addOrRemoveCssClass("ag-header-cell-sorted-desc",t==="desc"),this.addOrRemoveCssClass("ag-header-cell-sorted-none",!t),this.params.column.getColDef().showRowGroup){const n=this.funcColsService.getSourceColumnsForGroupColumn(this.params.column),i=!(n==null?void 0:n.every(o=>this.params.column.getSort()==o.getSort()));this.addOrRemoveCssClass("ag-header-cell-sorted-mixed",i)}};this.addManagedEventListeners({sortChanged:e,columnRowGroupChanged:e})}setupFilterIcon(){this.eFilter&&this.configureFilter(this.params.enableFilterIcon,this.eFilter,this.onFilterChangedIcon.bind(this))}setupFilterButton(){if(!this.eFilterButton)return;this.configureFilter(this.params.enableFilterButton,this.eFilterButton,this.onFilterChangedButton.bind(this))?this.addManagedElementListeners(this.eFilterButton,{click:()=>this.params.showFilter(this.eFilterButton)}):this.eFilterButton=void 0}configureFilter(e,t,n){if(!e)return au(t),!1;const r=this.params.column;return this.addInIcon("filter",t,r),this.addManagedListeners(r,{filterChanged:n}),n(),!0}onFilterChangedIcon(){const e=this.params.column.isFilterActive();Mn(this.eFilter,e,{skipAriaHidden:!0})}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){return e?this.eFilterButton??this.eMenu??this.getGui():this.eMenu??this.eFilterButton??this.getGui()}},rii=class extends wn{constructor(){super(`<div class="ag-header-group-cell-label" role="presentation">
|
||
<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>
|
||
</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");t.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=t,this.ePrevious.textContent=this.eCurrent.textContent,this.getGui().insertBefore(this.ePrevious,this.eCurrent),this.getFrameworkOverrides().wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)},3e3)})}refresh(e,t=!1){var r;let n=e.value;return ar(n)&&(n=""),n===this.lastValue||(r=this.filterManager)!=null&&r.isSuppressFlashingCellsBecauseFiltering()?!1:(t||this.addSlideAnimation(),this.lastValue=n,zt(e.valueFormatted)?this.eCurrent.textContent=e.valueFormatted:zt(e.value)?this.eCurrent.textContent=n:go(this.eCurrent),!0)}},Je=class{};Je.BACKSPACE="Backspace";Je.TAB="Tab";Je.ENTER="Enter";Je.ESCAPE="Escape";Je.SPACE=" ";Je.LEFT="ArrowLeft";Je.UP="ArrowUp";Je.RIGHT="ArrowRight";Je.DOWN="ArrowDown";Je.DELETE="Delete";Je.F2="F2";Je.PAGE_UP="PageUp";Je.PAGE_DOWN="PageDown";Je.PAGE_HOME="Home";Je.PAGE_END="End";Je.A="KeyA";Je.C="KeyC";Je.D="KeyD";Je.V="KeyV";Je.X="KeyX";Je.Y="KeyY";Je.Z="KeyZ";var lii=class extends wn{constructor(e,t,n){super(t,n),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{}}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:n,labelAlignment:r,disabled:i}=this.config;i!=null&&this.setDisabled(i),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),n!=null&&this.setLabelWidth(n),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()}refreshLabel(){go(this.eLabel),typeof this.label=="string"?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),this.label===""?(Mn(this.eLabel,!1),jo(this.eLabel,"presentation")):(Mn(this.eLabel,!0),jo(this.eLabel,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){return this.eLabel.id=this.eLabel.id||`ag-${this.getCompId()}-label`,this.eLabel.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const n=this.getGui().classList;return n.toggle("ag-label-align-left",e==="left"),n.toggle("ag-label-align-right",e==="right"),n.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(EH(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return wI(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},Oft=class extends lii{constructor(e,t,n,r){super(e,t,n),this.className=r}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:n}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),n!=null&&this.onValueChange(n),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),n=this.getLabel();n==null||n==""||Pri(e)!==null?Rx(e,""):Rx(e,t??"")}setAriaLabel(e){return Xl(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return Mg(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}},k8=class extends Oft{constructor(e,t,n="text",r="input"){super(e,(e==null?void 0:e.template)??`
|
||
<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>
|
||
</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(`
|
||
<div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
|
||
<ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
|
||
</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">
|
||
<span class="ag-loading-icon" data-ref="eLoadingIcon"></span>
|
||
<span class="ag-loading-text" data-ref="eLoadingText"></span>
|
||
</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-grid-enterprise/set-filter",agSetColumnFloatingFilter:"@ag-grid-enterprise/set-filter",agMultiColumnFilter:"@ag-grid-enterprise/multi-filter",agMultiColumnFloatingFilter:"@ag-grid-enterprise/multi-filter",agGroupColumnFilter:"@ag-grid-enterprise/row-grouping",agGroupColumnFloatingFilter:"@ag-grid-enterprise/row-grouping",agGroupCellRenderer:"@ag-grid-enterprise/row-grouping",agGroupRowRenderer:"@ag-grid-enterprise/row-grouping",agRichSelect:"@ag-grid-enterprise/rich-select",agRichSelectCellEditor:"@ag-grid-enterprise/rich-select",agDetailCellRenderer:"@ag-grid-enterprise/master-detail",agSparklineCellRenderer:"@ag-grid-enterprise/sparklines"},this.jsComps={}}postConstruct(){const e=this.gos.get("components");e!=null&&tl(e,(t,n)=>this.registerJsComponent(t,n))}registerDefaultComponent(e,t,n){this.agGridDefaults[e]=t,n&&(this.agGridDefaultParams[e]=n)}registerJsComponent(e,t){this.jsComps[e]=t}retrieve(e,t){const n=(a,l,c)=>({componentFromFramework:l,component:a,params:c}),r=this.getFrameworkOverrides().frameworkComponent(t,this.gos.get("components"));if(r!=null)return n(r,!0);const i=this.jsComps[t];if(i){const a=this.getFrameworkOverrides().isFrameworkComponent(i);return n(i,a)}const o=this.agGridDefaults[t];if(o)return n(o,!1,this.agGridDefaultParams[t]);const s=this.enterpriseAgDefaultCompsModule[t];return s?this.gos.assertModuleRegistered(s,`AG Grid '${e}' component: ${t}`):kQ(()=>{this.warnAboutMissingComponent(e,t)},"MissingComp"+t),null}warnAboutMissingComponent(e,t){const n=[...Object.keys(this.agGridDefaults).filter(i=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(i)),...Object.keys(this.jsComps)],r=Ift({inputValue:t,allSuggestions:n,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;rt(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.`),r.length>0&&rt(` Did you mean: [${r.slice(0,3)}]?`),rt(`If using a custom component check it has been registered as described in: ${this.getFrameworkOverrides().getDocLink("components/")}`)}},xr=class E${constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(n=>this.onDone(n),n=>this.onReject(n))}static all(t){return t.length?new E$(n=>{let r=t.length;const i=new Array(r);t.forEach((o,s)=>{o.then(a=>{i[s]=a,r--,r===0&&n(i)})})}):E$.resolve()}static resolve(t=null){return new E$(n=>n(t))}then(t){return new E$(n=>{this.status===1?n(t(this.resolution)):this.waiters.push(r=>n(t(r)))})}onDone(t){this.status=1,this.resolution=t,this.waiters.forEach(n=>n(t))}onReject(t){}},Cii={propertyName:"dateComponent",cellRenderer:!1},yii={propertyName:"dragAndDropImageComponent",cellRenderer:!1},bii={propertyName:"headerComponent",cellRenderer:!1},Sii={propertyName:"headerGroupComponent",cellRenderer:!1},yLe={propertyName:"cellRenderer",cellRenderer:!0},wii={propertyName:"cellRenderer",cellRenderer:!1},xii={propertyName:"loadingCellRenderer",cellRenderer:!0},Eii={propertyName:"cellEditor",cellRenderer:!1},bLe={propertyName:"innerRenderer",cellRenderer:!0},Rii={propertyName:"loadingOverlayComponent",cellRenderer:!1},$ii={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Oii={propertyName:"tooltipComponent",cellRenderer:!1},Y3e={propertyName:"filter",cellRenderer:!1},Tii={propertyName:"floatingFilterComponent",cellRenderer:!1},Iii={propertyName:"toolPanel",cellRenderer:!1},Mii={propertyName:"statusPanel",cellRenderer:!1},Pii={propertyName:"fullWidthCellRenderer",cellRenderer:!0},_ii={propertyName:"loadingCellRenderer",cellRenderer:!0},Aii={propertyName:"groupRowRenderer",cellRenderer:!0},Dii={propertyName:"detailCellRenderer",cellRenderer:!0},Lii={propertyName:"menuItem",cellRenderer:!1},Mft=class Pft extends ct{constructor(){super(...arguments),this.beanName="userComponentFactory"}wireBeans(t){this.agComponentUtils=t.agComponentUtils,this.componentMetadataProvider=t.componentMetadataProvider,this.userComponentRegistry=t.userComponentRegistry,this.frameworkComponentWrapper=t.frameworkComponentWrapper,this.gridOptions=t.gridOptions}getDragAndDropImageCompDetails(t){return this.getCompDetails(this.gridOptions,yii,"agDragAndDropImage",t,!0)}getHeaderCompDetails(t,n){return this.getCompDetails(t,bii,"agColumnHeader",n)}getHeaderGroupCompDetails(t){const n=t.columnGroup.getColGroupDef();return this.getCompDetails(n,Sii,"agColumnGroupHeader",t)}getFullWidthCellRendererDetails(t){return this.getCompDetails(this.gridOptions,Pii,null,t,!0)}getFullWidthLoadingCellRendererDetails(t){return this.getCompDetails(this.gridOptions,_ii,"agLoadingCellRenderer",t,!0)}getFullWidthGroupCellRendererDetails(t){return this.getCompDetails(this.gridOptions,Aii,"agGroupRowRenderer",t,!0)}getFullWidthDetailCellRendererDetails(t){return this.getCompDetails(this.gridOptions,Dii,"agDetailCellRenderer",t,!0)}getInnerRendererDetails(t,n){return this.getCompDetails(t,bLe,null,n)}getFullWidthGroupRowInnerCellRenderer(t,n){return this.getCompDetails(t,bLe,null,n)}getCellRendererDetails(t,n){return this.getCompDetails(t,yLe,null,n)}getEditorRendererDetails(t,n){return this.getCompDetails(t,wii,null,n)}getLoadingCellRendererDetails(t,n){return this.getCompDetails(t,xii,"agSkeletonCellRenderer",n,!0)}getCellEditorDetails(t,n){return this.getCompDetails(t,Eii,"agCellEditor",n,!0)}getFilterDetails(t,n,r){return this.getCompDetails(t,Y3e,r,n,!0)}getDateCompDetails(t){return this.getCompDetails(this.gridOptions,Cii,"agDateInput",t,!0)}getLoadingOverlayCompDetails(t){return this.getCompDetails(this.gridOptions,Rii,"agLoadingOverlay",t,!0)}getNoRowsOverlayCompDetails(t){return this.getCompDetails(this.gridOptions,$ii,"agNoRowsOverlay",t,!0)}getTooltipCompDetails(t){return this.getCompDetails(t.colDef,Oii,"agTooltipComponent",t,!0)}getSetFilterCellRendererDetails(t,n){return this.getCompDetails(t,yLe,null,n)}getFloatingFilterCompDetails(t,n,r){return this.getCompDetails(t,Tii,r,n)}getToolPanelCompDetails(t,n){return this.getCompDetails(t,Iii,null,n,!0)}getStatusPanelCompDetails(t,n){return this.getCompDetails(t,Mii,null,n,!0)}getMenuItemCompDetails(t,n){return this.getCompDetails(t,Lii,"agMenuItem",n,!0)}getCompDetails(t,n,r,i,o=!1){const{propertyName:s,cellRenderer:a}=n;let{compName:l,jsComp:c,fwComp:u,paramsFromSelector:f,popupFromSelector:h,popupPositionFromSelector:g}=Pft.getCompKeys(this.frameworkOverrides,t,n,i),p;const m=b=>{const S=this.userComponentRegistry.retrieve(s,b);S&&(c=S.componentFromFramework?void 0:S.component,u=S.componentFromFramework?S.component:void 0,p=S.params)};if(l!=null&&m(l),c==null&&u==null&&r!=null&&m(r),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),!c&&!u){o&&Mr(`Could not find component ${l}, did you forget to configure this component?`);return}const v=this.mergeParamsWithApplicationProvidedParams(t,n,i,f,p),C=c==null,y=c||u;return{componentFromFramework:C,componentClass:y,params:v,type:n,popupFromSelector:h,popupPositionFromSelector:g,newAgStackInstance:()=>this.newAgStackInstance(y,C,v,n)}}static getCompKeys(t,n,r,i){const{propertyName:o}=r;let s,a,l,c,u,f;if(n){const h=n,g=h[o+"Selector"],p=g?g(i):null,m=v=>{typeof v=="string"?s=v:v!=null&&v!==!0&&(t.isFrameworkComponent(v)?l=v:a=v)};p?(m(p.component),c=p.params,u=p.popup,f=p.popupPosition):m(h[o])}return{compName:s,jsComp:a,fwComp:l,paramsFromSelector:c,popupFromSelector:u,popupPositionFromSelector:f}}newAgStackInstance(t,n,r,i){const o=i.propertyName,s=!n;let a;if(s)a=new t;else{const c=this.componentMetadataProvider.retrieve(o);a=this.frameworkComponentWrapper.wrap(t,c.mandatoryMethodList,c.optionalMethodList,i)}const l=this.initComponent(a,r);return l==null?xr.resolve(a):l.then(()=>a)}mergeParamsWithApplicationProvidedParams(t,n,r,i=null,o){const s=this.gos.getGridCommonParams();nl(s,r),o&&nl(s,o);const a=t,l=a&&a[n.propertyName+"Params"];if(typeof l=="function"){const c=l(r);nl(s,c)}else typeof l=="object"&&nl(s,l);return nl(s,i),s}initComponent(t,n){if(this.createBean(t),t.init!=null)return t.init(n)}};function gC(e){const t=e;return t!=null&&t.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var qQ=class zi{static register(t){zi.__register(t,!0,void 0)}static registerModules(t){zi.__registerModules(t,!0,void 0)}static __register(t,n,r){zi.runVersionChecks(t),r!==void 0?(zi.areGridScopedModules=!0,zi.gridModulesMap[r]===void 0&&(zi.gridModulesMap[r]={}),zi.gridModulesMap[r][t.moduleName]=t):zi.globalModulesMap[t.moduleName]=t,zi.setModuleBased(n)}static __unRegisterGridModules(t){delete zi.gridModulesMap[t]}static __registerModules(t,n,r){zi.setModuleBased(n),t&&t.forEach(i=>zi.__register(i,n,r))}static isValidModuleVersion(t){const[n,r]=t.version.split(".")||[],[i,o]=zi.currentModuleVersion.split(".")||[];return n===i&&r===o}static runVersionChecks(t){zi.currentModuleVersion||(zi.currentModuleVersion=t.version);const n=r=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${r} Please update all modules to the same version.`;if(t.version?zi.isValidModuleVersion(t)||Mr(n(`'${t.moduleName}' is version ${t.version} but the other modules are version ${zi.currentModuleVersion}.`)):Mr(n(`'${t.moduleName}' is incompatible.`)),t.validate){const r=t.validate();r.isValid||Mr(`${r.message}`)}}static setModuleBased(t){zi.moduleBased===void 0?zi.moduleBased=t:zi.moduleBased!==t&&(Mr("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),Mr("Please see https://www.ag-grid.com/javascript-grid/modules/ for more information."))}static __setIsBundled(){zi.isBundled=!0}static __assertRegistered(t,n,r){var o;if(this.__isRegistered(t,r))return!0;let i;if(zi.isBundled)i=`AG Grid: unable to use ${n} as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:
|
||
|
||
<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:
|
||
|
||
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.lastDropTarget.onDragStop(i)}this.clearDragAndDropProperties()}onDragCancel(){var e,t,n;(t=(e=this.dragSource)==null?void 0:e.onDragCancelled)==null||t.call(e),(n=this.lastDropTarget)!=null&&n.onDragCancel&&this.lastDropTarget.onDragCancel(this.createDropTargetEvent(this.lastDropTarget,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(e,t=!1){var s,a,l,c;const n=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);const i=this.dropTargets.filter(u=>this.isMouseOnDropTarget(e,u)),o=this.findCurrentDropTarget(e,i);if(o!==this.lastDropTarget){if(this.leaveLastTargetIfExists(e,n,r,t),this.lastDropTarget!==null&&o===null&&((a=(s=this.dragSource)==null?void 0:s.onGridExit)==null||a.call(s,this.dragItem)),this.lastDropTarget===null&&o!==null&&((c=(l=this.dragSource)==null?void 0:l.onGridEnter)==null||c.call(l,this.dragItem)),this.enterDragTargetIfExists(o,e,n,r,t),o&&this.dragAndDropImageComp){const{comp:u,promise:f}=this.dragAndDropImageComp;u?u.setIcon(o.getIconName?o.getIconName():null):f.then(h=>{h&&h.setIcon(o.getIconName?o.getIconName():null)})}this.lastDropTarget=o}else if(o&&o.onDragging){const u=this.createDropTargetEvent(o,e,n,r,t);o.onDragging(u)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n}allContainersIntersect(e,t){for(const n of t){const{width:r,height:i,left:o,right:s,top:a,bottom:l}=n.getBoundingClientRect();if(r===0||i===0)return!1;const c=e.clientX>=o&&e.clientX<s,u=e.clientY>=a&&e.clientY<l;if(!c||!u)return!1}return!0}isMouseOnDropTarget(e,t){const n=this.getAllContainersFromDropTarget(t);let r=!1;for(const s of n)if(this.allContainersIntersect(e,s)){r=!0;break}const{eElement:i,type:o}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(i)?!1:r&&t.isInterestedIn(o,i)}findCurrentDropTarget(e,t){const n=t.length;if(n===0)return null;if(n===1)return t[0];const i=vI(this.gos).elementsFromPoint(e.clientX,e.clientY);for(const o of i)for(const s of t)if(ck(this.getAllContainersFromDropTarget(s)).indexOf(o)!==-1)return s;return null}enterDragTargetIfExists(e,t,n,r,i){if(e&&e.onDragEnter){const o=this.createDropTargetEvent(e,t,n,r,i);e.onDragEnter(o)}}leaveLastTargetIfExists(e,t,n,r){if(!this.lastDropTarget)return;if(this.lastDropTarget.onDragLeave){const o=this.createDropTargetEvent(this.lastDropTarget,e,t,n,r);this.lastDropTarget.onDragLeave(o)}const i=this.getDragAndDropImageComponent();i&&i.setIcon(null)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.filter(n=>n.external).find(n=>n.getContainer()===e.getContainer())||null}isDropZoneWithinThisGrid(e){const n=this.ctrlsService.getGridBodyCtrl().getGui(),{dropZoneTarget:r}=e;return n.contains(r)}getHorizontalDirection(e){const t=this.eventLastTime&&this.eventLastTime.clientX,n=e.clientX;return t===n?null:t>n?0:1}getVerticalDirection(e){const t=this.eventLastTime&&this.eventLastTime.clientY,n=e.clientY;return t===n?null:t>n?0:1}createDropTargetEvent(e,t,n,r,i){const o=e.getContainer(),s=o.getBoundingClientRect(),{dragItem:a,dragSource:l}=this,c=t.clientX-s.left,u=t.clientY-s.top;return this.gos.addGridCommonParams({event:t,x:c,y:u,vDirection:r,hDirection:n,dragSource:l,fromNudge:i,dragItem:a,dropZoneTarget:o})}positionDragAndDropImageComp(e){const t=this.getDragAndDropImageComponent();if(!t)return;const n=t.getGui(),i=n.getBoundingClientRect().height,o=zri()-2,s=Bri()-2;if(!n.offsetParent)return;const l=mft(n.offsetParent),{clientY:c,clientX:u}=e;let f=c-l.top-i/2,h=u-l.left-10;const g=uo(this.gos),p=g.defaultView||window,m=p.pageYOffset||g.documentElement.scrollTop,v=p.pageXOffset||g.documentElement.scrollLeft;o>0&&h+n.clientWidth>o+v&&(h=o+v-n.clientWidth),h<0&&(h=0),s>0&&f+n.clientHeight>s+m&&(f=s+m-n.clientHeight),f<0&&(f=0),n.style.left=`${h}px`,n.style.top=`${f}px`}removeDragAndDropImageComponent(){if(this.dragAndDropImageComp){const{comp:e}=this.dragAndDropImageComp;if(e){const t=e.getGui();this.dragAndDropImageParent&&this.dragAndDropImageParent.removeChild(t),this.destroyBean(e)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){const{dragSource:e}=this;if(!e)return;const n=this.userComponentFactory.getDragAndDropImageCompDetails({dragSource:e}).newAgStackInstance();this.dragAndDropImageComp={promise:n},n.then(r=>{!r||!this.isAlive()||(this.processDragAndDropImageComponent(r),this.dragAndDropImageComp.comp=r)})}processDragAndDropImageComponent(e){const{dragSource:t,mouseEventService:n,environment:r}=this;if(!t)return;const i=e.getGui();i.style.setProperty("position","absolute"),i.style.setProperty("z-index","9999"),n.stampTopLevelGridCompWithGridInstance(i),r.applyThemeClasses(i),e.setIcon(null);let{dragItemName:o}=t;T3e(o)&&(o=o()),e.setLabel(o||""),i.style.top="20px",i.style.left="20px";const s=uo(this.gos);let a=null,l=null;try{a=s.fullscreenElement}catch{}finally{a||(a=vI(this.gos));const c=a.querySelector("body");c?l=c:a instanceof ShadowRoot?l=a:a instanceof Document?l=a==null?void 0:a.documentElement:l=a}this.dragAndDropImageParent=l,l?l.appendChild(i):rt("Could not find document body, it is needed for drag and drop.")}},X3e=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.indexOf("x")!==-1,this.scrollVertically=e.scrollAxis.indexOf("y")!==-1,this.scrollByTick=e.scrollByTick!=null?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const n=t||this.shouldSkipVerticalScroll();if(n&&this.shouldSkipHorizontalScroll())return;const r=this.scrollContainer.getBoundingClientRect(),i=this.scrollByTick;this.tickLeft=e.clientX<r.left+i,this.tickRight=e.clientX>r.right-i,this.tickUp=e.clientY<r.top+i&&!n,this.tickDown=e.clientY>r.bottom-i&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}},R$=(e=>(e[e.Above=0]="Above",e[e.Below=1]="Below",e))(R$||{}),zii=class extends ct{wireBeans(e){this.dragAndDropService=e.dragAndDropService,this.rowModel=e.rowModel,this.pageBoundsService=e.pageBoundsService,this.focusService=e.focusService,this.sortController=e.sortController,this.filterManager=e.filterManager,this.selectionService=e.selectionService,this.mouseEventService=e.mouseEventService,this.ctrlsService=e.ctrlsService,this.funcColsService=e.funcColsService,this.rangeService=e.rangeService}constructor(e){super(),this.eContainer=e}postConstruct(){Li(this.gos)&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady(this,e=>{const t=e.gridBodyCtrl;this.autoScrollService=new X3e({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:()=>t.getScrollFeature().getVScrollPosition().top,setVerticalPosition:n=>t.getScrollFeature().setVerticalScrollPosition(n),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){var r;return!!(this.funcColsService.getRowGroupColumns().length||((r=this.filterManager)==null?void 0:r.isAnyFilterPresent())||this.sortController.isSortActive())}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const r=[...this.selectionService.getSelectedNodes()].sort((i,o)=>i.rowIndex==null||o.rowIndex==null?0:this.getRowIndexNumber(i)-this.getRowIndexNumber(o));if(r.indexOf(t)!==-1)return r}return[t]}onDragEnter(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent("rowDragEnter",e),this.getRowNodes(e).forEach(t=>{t.setDragging(!0)}),this.onEnterOrDragging(e)}onDragging(e){this.onEnterOrDragging(e)}isFromThisGrid(e){const{dragSourceDomDataKey:t}=e.dragSource;return t===this.gos.getDomDataKey()}onEnterOrDragging(e){this.dispatchGridEvent("rowDragMove",e),this.lastDraggingEvent=e;const t=this.mouseEventService.getNormalisedPosition(e).y;this.gos.get("rowDragManaged")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)}doManagedDrag(e,t){const n=this.isFromThisGrid(e),r=this.gos.get("rowDragManaged"),i=e.dragItem.rowNodes;r&&this.shouldPreventRowMove()||(this.gos.get("suppressMoveWhenRowDragging")||!n?this.dragAndDropService.isDropZoneWithinThisGrid(e)&&this.clientSideRowModel.highlightRowAtPixel(i[0],t):this.moveRows(i,t))}getRowIndexNumber(e){const t=e.getRowIndexString();return parseInt(Dn(t.split("-")),10)}moveRowAndClearHighlight(e){const t=this.clientSideRowModel.getLastHighlightedRowNode(),n=t&&t.highlighted===1,r=this.mouseEventService.getNormalisedPosition(e).y,i=e.dragItem.rowNodes;let o=n?1:0;if(this.isFromThisGrid(e))i.forEach(s=>{s.rowTop<r&&(o-=1)}),this.moveRows(i,r,o);else{const s=U0(this.gos);let a=this.clientSideRowModel.getRowIndexAtPixel(r)+1;this.clientSideRowModel.getHighlightPosition(r)===0&&a--,this.clientSideRowModel.updateRowData({add:i.filter(l=>!this.clientSideRowModel.getRowNode((s==null?void 0:s({data:l.data,level:0,rowPinned:l.rowPinned}))??l.data.id)).map(l=>l.data),addIndex:a})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(e,t,n=0){var i;this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusService.clearFocusedCell(),(i=this.rangeService)==null||i.removeAllCellRanges())}addRowDropZone(e){if(!e.getContainer()){rt("addRowDropZone - A container target needs to be provided");return}if(this.dragAndDropService.findExternalZone(e)){rt("addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");return}let t={getContainer:e.getContainer};e.fromGrid?t=e:(e.onDragEnter&&(t.onDragEnter=r=>{e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",r))}),e.onDragLeave&&(t.onDragLeave=r=>{e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",r))}),e.onDragging&&(t.onDragging=r=>{e.onDragging(this.draggingToRowDragEvent("rowDragMove",r))}),e.onDragStop&&(t.onDragStop=r=>{e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",r))}),e.onDragCancel&&(t.onDragCancel=r=>{e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",r))}));const n={isInterestedIn:r=>r===2,getIconName:()=>"move",external:!0,...t};this.dragAndDropService.addDropTarget(n),this.addDestroyFunc(()=>this.dragAndDropService.removeDropTarget(n))}getRowDropZone(e){const t=this.getContainer.bind(this),n=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),o=this.onDragStop.bind(this),s=this.onDragCancel.bind(this);let a;return e?a={getContainer:t,onDragEnter:e.onDragEnter?l=>{n(l),e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",l))}:n,onDragLeave:e.onDragLeave?l=>{r(l),e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",l))}:r,onDragging:e.onDragging?l=>{i(l),e.onDragging(this.draggingToRowDragEvent("rowDragMove",l))}:i,onDragStop:e.onDragStop?l=>{o(l),e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",l))}:o,onDragCancel:e.onDragCancel?l=>{s(l),e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",l))}:s,fromGrid:!0}:a={getContainer:t,onDragEnter:n,onDragLeave:r,onDragging:i,onDragStop:o,onDragCancel:s,fromGrid:!0},a}draggingToRowDragEvent(e,t){const n=this.mouseEventService.getNormalisedPosition(t).y,r=n>this.pageBoundsService.getCurrentPageHeight();let i=-1,o;r||(i=this.rowModel.getRowIndexAtPixel(n),o=this.rowModel.getRow(i));let s;switch(t.vDirection){case 1:s="down";break;case 0:s="up";break;default:s=null;break}return this.gos.addGridCommonParams({type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:i,overNode:o,y:n,vDirection:s})}dispatchGridEvent(e,t){const n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&this.clearRowHighlight()}onDragStop(e){this.dispatchGridEvent("rowDragEnd",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&(this.gos.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&this.dragAndDropService.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&(this.gos.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&this.dragAndDropService.isDropZoneWithinThisGrid(e)&&this.clearRowHighlight()}stopDragging(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(t=>{t.setDragging(!1)})}},Bii=class extends ct{constructor(){super(...arguments),this.beanName="dragService",this.dragEndFunctions=[],this.dragSources=[]}wireBeans(e){this.mouseEventService=e.mouseEventService}destroy(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0,super.destroy()}removeListener(e){const t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){const r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}}removeDragSource(e){const t=this.dragSources.find(n=>n.dragSource===e);t&&(this.removeListener(t),rl(this.dragSources,t))}isDragging(){return this.dragging}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:n,includeTouch:r,stopPropagationForTouch:i}=e;n.addEventListener("mousedown",t);let o=null;const s=this.gos.get("suppressTouch");r&&!s&&(o=a=>{U3e(a.target)||(i&&a.stopPropagation(),this.onTouchStart(e,a))},n.addEventListener("touchstart",o,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:o,touchEnabled:!!r})}getStartTarget(){return this.startTarget}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const n=t.touches[0];this.touchLastTime=n,this.touchStart=n;const r=l=>this.onTouchMove(l,e.eElement),i=l=>this.onTouchUp(l,e.eElement),o=l=>{l.cancelable&&l.preventDefault()},s=t.target,a=[{target:vI(this.gos),type:"touchmove",listener:o,options:{passive:!1}},{target:s,type:"touchmove",listener:r,options:{passive:!0}},{target:s,type:"touchend",listener:i,options:{passive:!0}},{target:s,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(a),e.dragStartPixels===0&&this.onCommonMove(n,this.touchStart,e.eElement)}onMouseDown(e,t){const n=t;if(e.skipMouseEvent&&e.skipMouseEvent(t)||n._alreadyProcessedByDragService||(n._alreadyProcessedByDragService=!0,t.button!==0))return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const r=c=>this.onMouseMove(c,e.eElement),i=c=>this.onMouseUp(c,e.eElement),o=c=>c.preventDefault(),s=c=>{c.key===Je.ESCAPE&&this.cancelDrag(e.eElement)},a=vI(this.gos),l=[{target:a,type:"mousemove",listener:r},{target:a,type:"mouseup",listener:i},{target:a,type:"contextmenu",listener:o},{target:a,type:"keydown",listener:s}];this.addTemporaryEvents(l),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach(t=>{const{target:n,type:r,listener:i,options:o}=t;n.addEventListener(r,i,o)}),this.dragEndFunctions.push(()=>{e.forEach(t=>{const{target:n,type:r,listener:i,options:o}=t;n.removeEventListener(r,i,o)})})}isEventNearStartEvent(e,t){const{dragStartPixels:n}=this.currentDragParams,r=zt(n)?n:4;return Rft(e,t,r)}getFirstActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}onCommonMove(e,t,n){var r;if(!this.dragging){if(this.isEventNearStartEvent(e,t))return;if(this.dragging=!0,this.eventService.dispatchEvent({type:"dragStarted",target:n}),this.currentDragParams.onDragStart(t),!this.currentDragParams){this.dragging=!1;return}this.currentDragParams.onDragging(t)}(r=this.currentDragParams)==null||r.onDragging(e)}onTouchMove(e,t){const n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)}onMouseMove(e,t){var n;zm()&&((n=uo(this.gos).getSelection())==null||n.removeAllRanges()),this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)}shouldPreventMouseEvent(e){const t=this.gos.get("enableCellTextSelection"),n=e.type==="mousemove";return t&&n&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)}isOverFormFieldElement(e){const t=e.target,n=t==null?void 0:t.tagName.toLocaleLowerCase();return!!(n!=null&&n.match("^a$|textarea|input|select|button"))}onTouchUp(e,t){let n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventService.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){var t,n;this.eventService.dispatchEvent({type:"dragCancelled",target:e}),(n=(t=this.currentDragParams)==null?void 0:t.onDragCancel)==null||n.call(t),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(e=>e()),this.dragEndFunctions.length=0}},RH=class extends wn{constructor(e,t,n,r,i,o){super(),this.cellValueFn=e,this.rowNode=t,this.column=n,this.customGui=r,this.dragStartPixels=i,this.suppressVisibilityChange=o,this.dragSource=null}wireBeans(e){this.beans=e}isCustomGui(){return this.customGui!=null}postConstruct(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Gn("rowDrag",this.gos,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){const e=this.gos.get("rowDragManaged")?new jii(this,this.beans,this.rowNode,this.column):new Hii(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}getSelectedNodes(){if(!this.gos.get("rowDragMultiRow"))return[this.rowNode];const t=this.beans.selectionService.getSelectedNodes();return t.indexOf(this.rowNode)!==-1?t:[this.rowNode]}checkCompatibility(){const e=this.gos.get("rowDragManaged");this.gos.get("treeData")&&e&&rt("If using row drag with tree data, you cannot have rowDragManaged=true")}getDragItem(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(e){if(e){const t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gos.get("rowDragText")}addDragSource(e=4){this.dragSource&&this.removeDragSource();const t=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(t,{mousedown:r=>{r==null||r.preventDefault()}})[0]);const n=this.localeService.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:()=>{var s;const r=this.getDragItem(),i=((s=r.rowNodes)==null?void 0:s.length)||1,o=this.getRowDragText(this.column);return o?o(r,i):i===1?this.cellValueFn():`${i} ${n("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},Aft=class extends ct{constructor(e,t,n){super(),this.parent=e,this.rowNode=t,this.column=n}setDisplayedOrVisible(e){const t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{let n=!0,r=!1;this.column&&(n=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),r=T3e(this.column.getColDef().rowDrag)),r?(this.parent.setDisplayed(!0,t),this.parent.setVisible(n,t)):(this.parent.setDisplayed(n,t),this.parent.setVisible(!0,t))}}},Hii=class extends Aft{constructor(e,t,n,r){super(e,n,r),this.beans=t}postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));const e=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedListeners(this.beans.eventService,{newColumnsLoaded:e}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const e=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(e)}},jii=class extends Aft{constructor(e,t,n,r){super(e,n,r),this.beans=t}postConstruct(){const e=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventService,{sortChanged:e,filterChanged:e,columnRowGroupChanged:e,newColumnsLoaded:e}),this.addManagedListeners(this.rowNode,{dataChanged:e,cellChanged:e}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){const t=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),n=t&&t.shouldPreventRowMove(),r=this.gos.get("suppressRowDrag"),i=this.beans.dragAndDropService.hasExternalDropZones(),o=n&&!i||r;this.setDisplayedOrVisible(o)}},Vii=new Set(["localEventService","__objectId","sticky","__autoHeights","checkAutoHeightsDebounced"]),H_=class S2{constructor(t){this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=S2.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.selected=!1,this.beans=t}setData(t){this.setDataCommon(t,!1)}updateData(t){this.setDataCommon(t,!0)}setDataCommon(t,n){var o;const r=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();const i=this.createDataChangedEvent(t,r,n);(o=this.localEventService)==null||o.dispatchEvent(i)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(t,n,r){return{type:"dataChanged",node:this,oldData:n,newData:t,update:r}}getRowIndexString(){return this.rowIndex==null?(Mr("Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid."),null):this.rowPinned==="top"?S2.ID_PREFIX_TOP_PINNED+this.rowIndex:this.rowPinned==="bottom"?S2.ID_PREFIX_BOTTOM_PINNED+this.rowIndex:this.rowIndex.toString()}createDaemonNode(){const t=new S2(this.beans);return t.id=this.id,t.data=this.data,t.__daemon=!0,t.selected=this.selected,t.level=this.level,t}setDataAndId(t,n){var s;const r=zt(this.id)?this.createDaemonNode():null,i=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(n),this.checkRowSelectable(),this.beans.selectionService.syncInRowNode(this,r);const o=this.createDataChangedEvent(t,i,!1);(s=this.localEventService)==null||s.dispatchEvent(o)}checkRowSelectable(){const t=_3e(this.beans.gos);this.setRowSelectable(t?t(this):!0)}setRowSelectable(t,n){if(this.selectable!==t){if(this.selectable=t,this.dispatchRowEvent("selectableChanged"),n)return;if(q0(this.beans.gos)){const i=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:i??!1,source:"selectableChanged"});return}this.isSelected()&&!this.selectable&&this.setSelectedParams({newValue:!1,source:"selectableChanged"})}}setId(t){var r;const n=U0(this.beans.gos);if(n)if(this.data){const i=((r=this.parent)==null?void 0:r.getRoute())??[];this.id=n({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(S2.ID_PREFIX_ROW_GROUP)&&Mr(`Row IDs cannot start with ${S2.ID_PREFIX_ROW_GROUP}, this is a reserved prefix for AG Grid's row grouping feature.`)}else this.id=void 0;else this.id=t}setRowTop(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.dispatchRowEvent("topChanged"),this.setDisplayed(t!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(t){this.hovered=t}isHovered(){return this.hovered}setMaster(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.dispatchRowEvent("masterChanged"))}setGroup(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.checkRowSelectable(),this.dispatchRowEvent("groupChanged"))}setRowHeight(t,n=!1){this.rowHeight=t,this.rowHeightEstimated=n,this.dispatchRowEvent("heightChanged")}setRowAutoHeight(t,n){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[n.getId()]=t,t!=null&&(this.checkAutoHeightsDebounced==null&&(this.checkAutoHeightsDebounced=_a(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())}checkAutoHeights(){var a;let t=!1,n=!0,r=0;const i=this.__autoHeights;if(i==null||(this.beans.visibleColsService.getAllAutoHeightCols().forEach(l=>{let c=i[l.getId()];if(c==null)if(this.beans.columnModel.isColSpanActive()){let u=[];switch(l.getPinned()){case"left":u=this.beans.visibleColsService.getLeftColsForRow(this);break;case"right":u=this.beans.visibleColsService.getRightColsForRow(this);break;case null:u=this.beans.columnViewportService.getColsWithinViewport(this);break}if(u.includes(l)){t=!0;return}c=-1}else{t=!0;return}else n=!1;c>r&&(r=c)}),t)||((n||r<10)&&(r=kl(this.beans.gos,this).height),r==this.rowHeight))return;this.setRowHeight(r);const s=this.beans.rowModel;(a=s.onRowHeightChangedDebounced)==null||a.call(s)}setExpanded(t,n,r){if(this.expanded===t)return;this.expanded=t,this.dispatchRowEvent("expandedChanged");const i={...this.createGlobalRowEvent("rowGroupOpened"),expanded:t,event:n||null};this.beans.rowNodeEventThrottle.dispatchExpanded(i,r),this.beans.rowRenderer.refreshCells({rowNodes:[this]})}createGlobalRowEvent(t){return this.beans.gos.addGridCommonParams({type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned})}setDataValue(t,n,r){const o=typeof t!="string"?t:this.beans.columnModel.getCol(t)??this.beans.columnModel.getColDefCol(t),s=this.beans.valueService.getValueForDisplay(o,this);if(this.beans.gos.get("readOnlyEdit"))return this.beans.eventService.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:o,colDef:o.getColDef(),data:this.data,node:this,oldValue:s,newValue:n,value:n,source:r}),!1;const a=this.beans.valueService.setValue(this,o,n,r);return this.dispatchCellChangedEvent(o,n,s),this.checkRowSelectable(),a}setGroupValue(t,n){const r=this.beans.columnModel.getCol(t);ar(this.groupData)&&(this.groupData={});const i=r.getColId(),o=this.groupData[i];o!==n&&(this.groupData[i]=n,this.dispatchCellChangedEvent(r,n,o))}setAggData(t){const n=this.aggData;if(this.aggData=t,this.localEventService){const r=i=>{const o=this.aggData?this.aggData[i]:void 0,s=n?n[i]:void 0;if(o===s)return;const a=this.beans.columnModel.getCol(i);a&&this.dispatchCellChangedEvent(a,o,s)};for(const i in n)r(i);for(const i in t)(!n||!(i in n))&&r(i)}}updateHasChildren(){let t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(ml(this.beans.gos)){const r=this.beans.gos.get("treeData"),i=this.beans.gos.get("isServerSideGroup");t=!this.stub&&!this.footer&&(r?!!i&&i(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(t,n,r){var o;const i={type:"cellChanged",node:this,column:t,newValue:n,oldValue:r};(o=this.localEventService)==null||o.dispatchEvent(i)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.footer?!1:this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!this.master}isSelected(){return this.footer?this.sibling.isSelected():this.selected}depthFirstSearch(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(n=>n.depthFirstSearch(t)),t(this)}calculateSelectedFromChildren(){var r;let t=!1,n=!1;if(!((r=this.childrenAfterGroup)!=null&&r.length))return this.selectable?this.selected:null;for(let i=0;i<this.childrenAfterGroup.length;i++){const o=this.childrenAfterGroup[i];let s=o.isSelected();if(!o.selectable){const a=o.calculateSelectedFromChildren();if(a===null)continue;s=a}switch(s){case!0:t=!0;break;case!1:n=!0;break;default:return}}if(!(t&&n))return t?!0:n?!1:this.selectable?this.selected:null}setSelectedInitialValue(t){this.selected=t}dispatchRowEvent(t){var n;(n=this.localEventService)==null||n.dispatchEvent({type:t,node:this})}selectThisNode(t,n,r="api"){const i=!this.selectable&&t,o=this.selected===t;if(i||o)return!1;this.selected=t,this.dispatchRowEvent("rowSelected");const s=this.sibling;return s&&s.footer&&s.localEventService&&s.dispatchRowEvent("rowSelected"),this.beans.eventService.dispatchEvent({...this.createGlobalRowEvent("rowSelected"),event:n||null,source:r}),!0}setSelected(t,n=!1,r="api"){if(typeof r=="boolean"){rt("since version v30, rowNode.setSelected() property `suppressFinishActions` has been removed, please use `gridApi.setNodesSelected()` for bulk actions, and the event `source` property for ignoring events instead.");return}this.setSelectedParams({newValue:t,clearSelection:n,rangeSelect:!1,source:r})}setSelectedParams(t){return this.rowPinned?(rt("cannot select pinned rows"),0):this.id===void 0?(rt("cannot select node until id for node is known"),0):this.beans.selectionService.setNodesSelected({...t,nodes:[this.footer?this.sibling:this]})}isRowPinned(){return!!this.rowPinned}addEventListener(t,n){var i;this.localEventService||(this.localEventService=new s6),this.beans.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.localEventService.setFrameworkOverrides(this.beans.frameworkOverrides),this.frameworkEventListenerService=new L3e(this.beans.frameworkOverrides));const r=((i=this.frameworkEventListenerService)==null?void 0:i.wrap(n))??n;this.localEventService.addEventListener(t,r)}removeEventListener(t,n){var i;if(!this.localEventService)return;const r=((i=this.frameworkEventListenerService)==null?void 0:i.unwrap(n))??n;this.localEventService.removeEventListener(t,r),this.localEventService.noRegisteredListenersExist()&&(this.localEventService=null)}onMouseEnter(){this.dispatchRowEvent("mouseEnter")}onMouseLeave(){this.dispatchRowEvent("mouseLeave")}isFullWidthCell(){if(rt("since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option."),this.detail)return!0;const t=this.beans.gos.getCallback("isFullWidthRow");return t?t({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const t=[];let n=this;for(;n&&n.key!=null;)t.push(n.key),n=n.parent;return t.reverse()}createFooter(){if(this.sibling)return;const t=new S2(this.beans);Object.keys(this).forEach(n=>{Vii.has(n)||(t[n]=this[n])}),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,t.id="rowGroupFooter_"+this.id,t.sibling=this,this.sibling=t}destroyFooter(){this.sibling&&(this.sibling.setRowTop(null),this.sibling.setRowIndex(null),this.sibling=void 0)}setFirstChild(t){this.firstChild!==t&&(this.firstChild=t,this.dispatchRowEvent("firstChildChanged"))}setLastChild(t){this.lastChild!==t&&(this.lastChild=t,this.dispatchRowEvent("lastChildChanged"))}setChildIndex(t){this.childIndex!==t&&(this.childIndex=t,this.dispatchRowEvent("childIndexChanged"))}setDisplayed(t){this.displayed!==t&&(this.displayed=t,this.dispatchRowEvent("displayedChanged"))}setDragging(t){this.dragging!==t&&(this.dragging=t,this.dispatchRowEvent("draggingChanged"))}setHighlighted(t){this.highlighted!==t&&(this.highlighted=t,this.dispatchRowEvent("rowHighlightChanged"))}setAllChildrenCount(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.dispatchRowEvent("allChildrenCountChanged"))}setRowIndex(t){this.rowIndex!==t&&(this.rowIndex=t,this.dispatchRowEvent("rowIndexChanged"))}setUiLevel(t){this.uiLevel!==t&&(this.uiLevel=t,this.dispatchRowEvent("uiLevelChanged"))}};H_.ID_PREFIX_ROW_GROUP="row-group-";H_.ID_PREFIX_TOP_PINNED="t-";H_.ID_PREFIX_BOTTOM_PINNED="b-";H_.OBJECT_ID_SEQUENCE=0;var vu=H_,Gii=class extends ct{constructor(){super(...arguments),this.beanName="filterManager",this.advancedFilterModelUpdateQueue=[]}wireBeans(e){this.columnModel=e.columnModel,this.dataTypeService=e.dataTypeService,this.quickFilterService=e.quickFilterService,this.advancedFilterService=e.advancedFilterService,this.columnFilterService=e.columnFilterService}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvancedFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:n})=>this.onAdvancedFilterEnabledChanged(n),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.addManagedPropertyListener("advancedFilterModel",n=>this.setAdvancedFilterModel(n.currentValue)),this.quickFilterService&&this.addManagedListeners(this.quickFilterService,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"?e({}):!1}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"?t(e):!1}setFilterModel(e,t="api"){var n;if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}(n=this.columnFilterService)==null||n.setFilterModel(e,t)}getFilterModel(){var e;return((e=this.columnFilterService)==null?void 0:e.getFilterModel())??{}}isColumnFilterPresent(){var e;return!!((e=this.columnFilterService)!=null&&e.isColumnFilterPresent())}isAggregateFilterPresent(){var e;return!!((e=this.columnFilterService)!=null&&e.isAggregateFilterPresent())}isExternalFilterPresent(){return this.externalFilterPresent}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}isAdvancedFilterPresent(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()}onAdvancedFilterEnabledChanged(e){var t,n;e?(t=this.columnFilterService)!=null&&t.disableColumnFilters()&&this.onFilterChanged({source:"advancedFilter"}):(n=this.advancedFilterService)!=null&&n.isFilterPresent()&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvancedFilterEnabled(){var e;return!!((e=this.advancedFilterService)!=null&&e.isEnabled())}isAdvancedFilterHeaderActive(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()}isAnyFilterPresent(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()}resetQuickFilterCache(){var e;(e=this.quickFilterService)==null||e.resetQuickFilterCache()}refreshFiltersForAggregations(){yI(this.gos)&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:n,columns:r=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.columnFilterService?this.columnFilterService.updateBeforeFilterChanged(e):xr.resolve()).then(()=>{var o;const i={source:t,type:"filterChanged",columns:r};n&&nl(i,n),this.eventService.dispatchEvent(i),(o=this.columnFilterService)==null||o.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){var e;return!!((e=this.columnFilterService)!=null&&e.isSuppressFlashingCellsBecauseFiltering())}isQuickFilterPresent(){var e;return!!((e=this.quickFilterService)!=null&&e.isQuickFilterPresent())}updateAggFiltering(){this.aggFiltering=!!yI(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.columnModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})}doesRowPassAggregateFilters(e){return!(this.isAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isAggregateFilterPresent()&&!this.columnFilterService.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))}doesRowPassFilter(e){return!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilterService.doesRowPassQuickFilter(e.rowNode)||this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode)||this.isColumnFilterPresent()&&!this.columnFilterService.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)||this.isAdvancedFilterPresent()&&!this.advancedFilterService.doesFilterPass(e.rowNode))}isFilterActive(e){var t;return!!((t=this.columnFilterService)!=null&&t.isFilterActive(e))}getOrCreateFilterWrapper(e){var t;return((t=this.columnFilterService)==null?void 0:t.getOrCreateFilterWrapper(e))??null}getDefaultFloatingFilter(e){return this.columnFilterService.getDefaultFloatingFilter(e)}createFilterParams(e,t){return this.columnFilterService.createFilterParams(e,t)}isFilterAllowed(e){var t;return this.isAdvancedFilterEnabled()?!1:!!((t=this.columnFilterService)!=null&&t.isFilterAllowed(e))}getFloatingFilterCompDetails(e,t){var n;return(n=this.columnFilterService)==null?void 0:n.getFloatingFilterCompDetails(e,t)}getCurrentFloatingFilterParentModel(e){var t;return(t=this.columnFilterService)==null?void 0:t.getCurrentFloatingFilterParentModel(e)}destroyFilter(e,t="api"){var n;(n=this.columnFilterService)==null||n.destroyFilter(e,t)}areFilterCompsDifferent(e,t){var n;return!!((n=this.columnFilterService)!=null&&n.areFilterCompsDifferent(e,t))}getAdvancedFilterModel(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null}setAdvancedFilterModel(e){var t;if(this.isAdvancedFilterEnabled()){if((t=this.dataTypeService)!=null&&t.isPendingInference()){this.advancedFilterModelUpdateQueue.push(e);return}this.advancedFilterService.setModel(e??null),this.onFilterChanged({source:"advancedFilter"})}}toggleAdvancedFilterBuilder(e,t){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvancedFilterColumns(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){var e;return this.isAdvancedFilterEnabled()?!1:!!((e=this.columnFilterService)!=null&&e.hasFloatingFilters())}getFilterInstance(e,t){var n;if(this.isAdvancedFilterEnabled()){this.warnAdvancedFilters();return}return(n=this.columnFilterService)==null?void 0:n.getFilterInstance(e,t)}getColumnFilterInstance(e){var t;return this.isAdvancedFilterEnabled()?(this.warnAdvancedFilters(),Promise.resolve(void 0)):((t=this.columnFilterService)==null?void 0:t.getColumnFilterInstance(e))??Promise.resolve(void 0)}warnAdvancedFilters(){rt("Column Filter API methods have been disabled as Advanced Filters are enabled.")}setupAdvancedFilterHeaderComp(e){var t;(t=this.advancedFilterService)==null||t.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvancedFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advancedFilterModelUpdateQueue.forEach(e=>this.setAdvancedFilterModel(e)),this.advancedFilterModelUpdateQueue=[]}getColumnFilterModel(e){var t;return(t=this.columnFilterService)==null?void 0:t.getColumnFilterModel(e)}setColumnFilterModel(e,t){var n;return this.isAdvancedFilterEnabled()?(this.warnAdvancedFilters(),Promise.resolve()):((n=this.columnFilterService)==null?void 0:n.setColumnFilterModel(e,t))??Promise.resolve()}setColDefPropertiesForDataType(e,t,n){var r;(r=this.columnFilterService)==null||r.setColDefPropertiesForDataType(e,t,n)}},KQ=class extends wn{constructor(e,t){super('<div class="ag-filter"></div>'),this.column=e,this.source=t,this.filterWrapper=null}wireBeans(e){this.filterManager=e.filterManager,this.columnModel=e.columnModel}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){var e;return((e=this.filterWrapper)==null?void 0:e.filterPromise)??null}afterInit(){var e,t;return((t=(e=this.filterWrapper)==null?void 0:e.filterPromise)==null?void 0:t.then(()=>{}))??xr.resolve()}afterGuiAttached(e){var t,n;(n=(t=this.filterWrapper)==null?void 0:t.filterPromise)==null||n.then(r=>{var i;(i=r==null?void 0:r.afterGuiAttached)==null||i.call(r,e)})}afterGuiDetached(){var e,t;(t=(e=this.filterWrapper)==null?void 0:e.filterPromise)==null||t.then(n=>{var r;(r=n==null?void 0:n.afterGuiDetached)==null||r.call(n)})}createFilter(e){var r,i;const{column:t,source:n}=this;this.filterWrapper=((r=this.filterManager)==null?void 0:r.getOrCreateFilterWrapper(t))??null,(i=this.filterWrapper)!=null&&i.filterPromise&&this.filterWrapper.filterPromise.then(o=>{const s=o.getGui();zt(s)||rt(`getGui method from filter returned ${s}; it should be a DOM element.`),this.appendChild(s),e&&this.eventService.dispatchEvent({type:"filterOpened",column:t,source:n,eGui:this.getGui()})})}onFilterDestroyed(e){(e.source==="api"||e.source==="paramsUpdated")&&e.column.getId()===this.column.getId()&&this.columnModel.getColDefCol(this.column)&&(go(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},Dft="ag-resizer-wrapper",i2=(e,t)=>`<div data-ref="${e}Resizer" class="ag-resizer ag-resizer-${t}"></div>`,Wii=`<div class="${Dft}">
|
||
${i2("eTopLeft","topLeft")}
|
||
${i2("eTop","top")}
|
||
${i2("eTopRight","topRight")}
|
||
${i2("eRight","right")}
|
||
${i2("eBottomRight","bottomRight")}
|
||
${i2("eBottom","bottom")}
|
||
${i2("eBottomLeft","bottomLeft")}
|
||
${i2("eLeft","left")}
|
||
</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{clientWidth:i}=this.offsetParent,o=n?this.position.x:this.element.getBoundingClientRect().left;i&&e+o>i&&(e=i-o)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Mg(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,t=0){const{forcePopupParentAsOffsetParent:n}=this.config,r=n?this.boundaryEl:this.element;r&&(this.popupService.positionPopup({ePopup:r,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(r.style.left),parseFloat(r.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const n=this.getAvailableHeight();this.element.style.setProperty("max-height",`${n}px`)};e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),t):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:n,isTop:r,anywhereWithin:i,topBuffer:o}=e,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!n,!!i,s)?0:s,c=this.shouldSkipY(t,!!r,o,a)?0:a;return{movementX:l,movementY:c}}shouldSkipX(e,t,n,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:i.left;let l=a<=0&&o.left>=e.clientX||o.right<=e.clientX&&o.right<=s.right;return l?!0:(t?l=r<0&&e.clientX>a+o.left||r>0&&e.clientX<a+o.left:n?l=r<0&&e.clientX>s.right||r>0&&e.clientX<a+o.left:l=r<0&&e.clientX>s.right||r>0&&e.clientX<s.right,l)}shouldSkipY(e,t,n=0,r){const i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:i.top;let l=a<=0&&o.top>=e.clientY||o.bottom<=e.clientY&&o.bottom<=s.bottom;return l?!0:(t?l=r<0&&e.clientY>a+o.top+n||r>0&&e.clientY<a+o.top:l=r<0&&e.clientY>s.bottom||r>0&&e.clientY<s.bottom,l)}createResizeMap(){const e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[data-ref=eTopLeftResizer]")},top:{element:e.querySelector("[data-ref=eTopResizer]")},topRight:{element:e.querySelector("[data-ref=eTopRightResizer]")},right:{element:e.querySelector("[data-ref=eRightResizer]")},bottomRight:{element:e.querySelector("[data-ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[data-ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[data-ref=eBottomLeftResizer]")},left:{element:e.querySelector("[data-ref=eLeftResizer]")}}}addResizers(){if(this.resizersAdded)return;const e=this.element;if(!e)return;const n=new DOMParser().parseFromString(Wii,"text/html").body;e.appendChild(n.firstChild),this.createResizeMap(),this.resizersAdded=!0}removeResizers(){this.resizerMap=void 0;const e=this.element.querySelector(`.${Dft}`);e&&this.element.removeChild(e),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:n,forcePopupParentAsOffsetParent:r}=this.config;!n&&!r&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(n=>!n.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,n=0;for(let r=0;r<e.length;r++){const i=e[r],o=!!i.style.flex&&i.style.flex!=="0 0 auto";if(i===this.element)continue;let s=this.minHeight||0,a=this.minWidth||0;if(o){const l=window.getComputedStyle(i);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=i.offsetHeight,a=i.offsetWidth;t+=s,n+=a}return{height:t,width:n}}applySizeToSiblings(e){let t=null;const n=this.getSiblings();if(n){for(let r=0;r<n.length;r++){const i=n[r];i!==t&&(e?i.style.height=`${i.offsetHeight}px`:i.style.width=`${i.offsetWidth}px`,i.style.flex="0 0 auto",i===this.element&&(t=n[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:n}=this.config,{isTop:r,isRight:i,isBottom:o,isLeft:s}=this.currentResizer,a=i||s,l=o||r,{movementX:c,movementY:u}=this.calculateMouseMovement({e,isLeft:s,isTop:r}),f=this.position.x,h=this.position.y;let g=0,p=0;if(a&&c){const m=s?-1:1,v=this.getWidth(),C=v+c*m;let y=!1;s&&(g=v-C,(f+g<=0||C<=this.minWidth)&&(y=!0,g=0)),y||this.setWidth(C)}if(l&&u){const m=r?-1:1,v=this.getHeight(),C=v+u*m;let y=!1;r?(p=v-C,(h+p<=0||C<=this.minHeight)&&(y=!0,p=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&v<C&&this.getMinSizeOfSiblings().height+C>this.element.parentElement.offsetHeight&&(y=!0),y||this.setHeight(C)}this.updateDragStartPosition(e.clientX,e.clientY),((t||n)&&g||p)&&this.offsetElement(f+g,h+p)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:n}=this.position;let r;this.config.calculateTopBuffer&&(r=this.config.calculateTopBuffer());const{movementX:i,movementY:o}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:r});this.offsetElement(t+i,n+o),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},Lft=class Fft extends ct{constructor(t,n={}){super(),this.eFocusableElement=t,this.callbacks=n,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:r=>{if(r.defaultPrevented)return;const i=this.focusService.findNextFocusableElement(this.eFocusableElement,!1,r.shiftKey);i&&(i.focus(),r.preventDefault())},...n}}wireBeans(t){this.focusService=t.focusService}postConstruct(){this.eFocusableElement.classList.add(Fft.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedElementListeners(this.eFocusableElement,{focusin:this.callbacks.onFocusIn}),this.callbacks.onFocusOut&&this.addManagedElementListeners(this.eFocusableElement,{focusout:this.callbacks.onFocusOut})}addKeyDownListeners(t){this.addManagedElementListeners(t,{keydown:n=>{if(!(n.defaultPrevented||Ig(n))){if(this.callbacks.shouldStopEventPropagation(n)){Nm(n);return}n.key===Je.TAB?this.callbacks.onTabKeyDown(n):this.callbacks.handleKeyDown&&this.callbacks.handleKeyDown(n)}}})}};Lft.FOCUS_MANAGED_CLASS="ag-focus-managed";var Rv=Lft,Nft={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};function Q3e(e,t){return $H(e)?(e.debounceMs!=null&&rt("debounceMs is ignored when apply button is present"),0):e.debounceMs!=null?e.debounceMs:t}function $H(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0}var kft=class extends wn{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=Ot,this.buttonListeners=[]}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.resetTemplate(),this.createManagedBean(new Rv(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new YQ(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);const n=`
|
||
<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}
|
||
</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.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()}),!this.unFocusable&&this.addManagedElementListeners(e,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){const t=e.key;switch(t){case Je.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{const n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}break;case Je.DOWN:case Je.UP:e.preventDefault(),this.navigate(t);break;case Je.PAGE_DOWN:case Je.PAGE_UP:case Je.PAGE_HOME:case Je.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}navigate(e){const t=e===Je.DOWN;let n;if(!this.highlightedEl)n=this.itemEls[t?0:this.itemEls.length-1];else{let i=this.itemEls.indexOf(this.highlightedEl)+(t?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),n=this.itemEls[i]}this.highlightItem(n)}navigateToPage(e){if(!this.highlightedEl||this.itemEls.length===0)return;const t=this.itemEls.indexOf(this.highlightedEl),n=this.options.length-1,r=this.itemEls[0].clientHeight,i=Math.floor(this.getGui().clientHeight/r);let o=-1;e===Je.PAGE_HOME?o=0:e===Je.PAGE_END?o=n:e===Je.PAGE_DOWN?o=Math.min(t+i,n):e===Je.PAGE_UP&&(o=Math.max(t-i,0)),o!==-1&&this.highlightItem(this.itemEls[o])}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){const{value:t,text:n}=e,r=n||t;return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(e=>{au(e)}),this.itemEls=[]}updateIndices(){const e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((t,n)=>{j3e(t,n+1),H3e(t,e.length)})}renderOption(e,t){const n=uo(this.gos),r=n.createElement("div");jo(r,"option"),r.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);const i=n.createElement("span");r.appendChild(i),i.textContent=t,this.unFocusable||(r.tabIndex=-1),this.itemEls.push(r),this.addManagedListeners(r,{mouseover:()=>this.highlightItem(r),mousedown:o=>{o.preventDefault(),o.stopPropagation(),this.setValue(e)}}),this.createManagedBean(new Lb({getTooltipValue:()=>t,getGui:()=>r,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>i.scrollWidth>i.clientWidth})),this.getGui().appendChild(r)}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const n=this.options.findIndex(r=>r.value===e);if(n!==-1){const r=this.options[n];this.value=r.value,this.displayValue=r.text,this.highlightItem(this.itemEls[n]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(e){if(!Su(e))return;this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(this.activeClass),yH(this.highlightedEl,!0);const t=this.getGui(),{scrollTop:n,clientHeight:r}=t,{offsetTop:i,offsetHeight:o}=e;(i+o>n+r||i<n)&&this.highlightedEl.scrollIntoView({block:"nearest"}),this.unFocusable||this.highlightedEl.focus()}clearHighlighted(){!this.highlightedEl||!Su(this.highlightedEl)||(this.highlightedEl.classList.remove(this.activeClass),yH(this.highlightedEl,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},Kii=class extends Oft{constructor(e){if(super(e,(e==null?void 0:e.template)||`
|
||
<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>
|
||
</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-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){var t;(t=this.pickerComponent)!=null&&t.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&this.hideCurrentPicker()}setInputWidth(e){return EH(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},XQ=class extends Kii{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"smallDown",ariaRole:"combobox",...e})}postConstruct(){super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:n}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),n&&t==null&&(this.eDisplayField.textContent=n),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){this.listComponent=this.createBean(new qii("select",!0)),this.listComponent.setParentComponent(this);const e=this.listComponent.getAriaElement(),t=`ag-select-list-${this.listComponent.getCompId()}`;e.setAttribute("id",t),cft(this.getAriaElement(),e),this.listComponent.addManagedListeners(this.listComponent,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})}}),this.listComponent.addManagedListeners(this.listComponent,{fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(e){var n;const{key:t}=e;switch(t===Je.TAB&&this.hidePicker(),t){case Je.ENTER:case Je.UP:case Je.DOWN:case Je.PAGE_UP:case Je.PAGE_DOWN:case Je.PAGE_HOME:case Je.PAGE_END:e.preventDefault(),this.isPickerDisplayed?(n=this.listComponent)==null||n.handleKeyDown(e):super.onKeyDown(e);break;case Je.ESCAPE:super.onKeyDown(e);break;case Je.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){this.listComponent&&(super.showPicker(),this.listComponent.refreshHighlighted())}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){var e;return(e=this.listComponent)==null||e.clearOptions(),this}setValue(e,t,n){if(this.value===e||!this.listComponent)return this;if(n||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue())return this;let i=this.listComponent.getDisplayValue();return i==null&&this.config.placeholder&&(i=this.config.placeholder),this.eDisplayField.textContent=i,this.setTooltip({newTooltipText:i??null,shouldDisplayTooltip:()=>this.eDisplayField.scrollWidth>this.eDisplayField.clientWidth}),super.setValue(e,t)}destroy(){this.listComponent&&(this.listComponent=this.destroyBean(this.listComponent)),super.destroy()}},Yii={selector:"AG-SELECT",component:XQ},zft=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e)}getFilterOptions(){return this.filterOptions}mapCustomOptions(){this.filterOptions&&this.filterOptions.forEach(e=>{if(typeof e=="string")return;const t=[["displayKey"],["displayName"],["predicate","test"]],n=r=>r.some(i=>e[i]!=null)?!0:(rt(`ignoring FilterOptionDef as it doesn't contain one of '${r}'`),!1);if(!t.every(n)){this.filterOptions=this.filterOptions.filter(r=>r===e)||[];return}this.customFilterOptions[e.displayKey]=e})}selectDefaultItem(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){const t=this.filterOptions[0];typeof t=="string"?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:rt("invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else rt("no filter options for filter")}getDefaultOption(){return this.defaultOption}getCustomOption(e){return this.customFilterOptions[e]}},Bft=class extends kft{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(e){const t=this.optionsFactory.getCustomOption(e);if(t){const{numberOfInputs:r}=t;return r??1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:e==="inRange"?2:1}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,n)=>{n===0?t.setValue(e,!0):t.setValue(this.optionsFactory.getDefaultOption(),!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){return this.eJoinOperatorsOr.length===0?this.defaultJoinOperator:this.eJoinOperatorsOr[0].getValue()===!0?"OR":"AND"}areModelsEqual(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;const n=!e.operator,r=!t.operator;if(!n&&r||n&&!r)return!1;let o;if(n){const s=e,a=t;o=this.areSimpleModelsEqual(s,a)}else{const s=e,a=t;o=s.operator===a.operator&&vc(s.conditions,a.conditions,(l,c)=>this.areSimpleModelsEqual(l,c))}return o}shouldRefresh(e){var o;const t=this.getModel(),n=t?t.conditions??[t]:null,r=((o=e.filterOptions)==null?void 0:o.map(s=>typeof s=="string"?s:s.displayKey))??this.getDefaultFilterOptions();return!(!(!n||n.every(s=>r.find(a=>a===s.type)!==void 0))||typeof e.maxNumConditions=="number"&&n&&n.length>e.maxNumConditions)}refresh(e){return!this.shouldRefresh(e)||!super.refresh(e)?!1:(this.setParams(e),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0)}setModelIntoUi(e){if(e.operator){const n=e;let r=n.conditions;r==null&&(r=[],rt("Filter model is missing 'conditions'"));const i=this.validateAndUpdateConditions(r),o=this.getNumConditions();if(i<o)this.removeConditionsAndOperators(i);else if(i>o)for(let a=o;a<i;a++)this.createJoinOperatorPanel(),this.createOption();const s=n.operator==="OR";this.eJoinOperatorsAnd.forEach(a=>a.setValue(!s,!0)),this.eJoinOperatorsOr.forEach(a=>a.setValue(s,!0)),r.forEach((a,l)=>{this.eTypes[l].setValue(a.type,!0),this.setConditionIntoUi(a,l)})}else{const n=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(n.type,!0),this.setConditionIntoUi(n,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),xr.resolve()}validateAndUpdateConditions(e){let t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),rt('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),t=this.maxNumConditions),t}doesFilterPass(e){const t=this.getModel();if(t==null)return!0;const{operator:n}=t,r=[];if(n){const o=t;r.push(...o.conditions??[])}else r.push(t);return r[n&&n==="OR"?"some":"every"](o=>this.individualConditionPasses(e,o))}setParams(e){super.setParams(e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new zft,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(e){this.maxNumConditions=e.maxNumConditions??2,this.maxNumConditions<1&&(rt('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=e.numAlwaysVisibleConditions??1,this.numAlwaysVisibleConditions<1&&(rt('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(rt('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)}createOption(){const e=this.createManagedBean(new XQ);this.eTypes.push(e),e.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(e.getGui());const t=this.createValueElement();this.eConditionBodies.push(t),this.eFilterBody.appendChild(t),this.putOptionsIntoDropdown(e),this.resetType(e);const n=this.getNumConditions()-1;this.forEachPositionInput(n,r=>this.resetInput(r)),this.addChangedListeners(e,n)}createJoinOperatorPanel(){const e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");const t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),n=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);const r=this.eJoinOperatorPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,i),this.resetJoinOperatorOr(n,r,i),this.isReadOnly()||(t.onValueChange(this.listener),n.onValueChange(this.listener))}createJoinOperator(e,t,n){const r=this.createManagedBean(new Uii);return e.push(r),r.addCssClass("ag-filter-condition-operator"),r.addCssClass(`ag-filter-condition-operator-${n}`),t.appendChild(r.getGui()),r}getDefaultJoinOperator(e){return e==="AND"||e==="OR"?e:"AND"}createFilterListOptions(){const e=this.optionsFactory.getFilterOptions();this.filterListOptions=e.map(t=>typeof t=="string"?this.createBoilerplateListOption(t):this.createCustomListOption(t))}putOptionsIntoDropdown(e){this.filterListOptions.forEach(t=>{e.addOption(t)}),e.setDisabled(this.filterListOptions.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.localeService.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}}createBodyTemplate(){return""}getAgComponents(){return[]}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let n=0;n<this.getNumConditions();n++)this.isConditionUiComplete(n)?e=n:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const n=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<n){this.removeConditionsAndOperators(n+1);const r=e+1,i=n-r;i>0&&this.removeConditionsAndOperators(r,i),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((r,i)=>{const o=this.isConditionDisabled(i,e);r.setDisabled(o||this.filterListOptions.length<=1),i===1&&(wI(this.eJoinOperatorPanels[0],o),this.eJoinOperatorsAnd[0].setDisabled(o),this.eJoinOperatorsOr[0].setDisabled(o))}),this.eConditionBodies.forEach((r,i)=>{Mn(r,this.isConditionBodyVisible(i))});const n=(t??this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(r=>{r.setValue(!n,!0)}),this.eJoinOperatorsOr.forEach(r=>{r.setValue(n,!0)}),this.forEachInput((r,i,o,s)=>{this.setElementDisplayed(r,i<s),this.setElementDisabled(r,this.isConditionDisabled(o,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);const n=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,n,t),this.removeComponents(this.eJoinOperatorsAnd,n,t),this.removeComponents(this.eJoinOperatorsOr,n,t)}removeElements(e,t,n){this.removeItems(e,t,n).forEach(i=>au(i))}removeComponents(e,t,n){this.removeItems(e,t,n).forEach(i=>{au(i.getGui()),this.destroyBean(i)})}removeItems(e,t,n){return n==null?e.splice(t):e.splice(t,n)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!(e!=null&&e.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{const t=this.getInputs(0)[0];if(!t)return;t instanceof k8&&t.getInputElement().focus()}}afterGuiDetached(){super.afterGuiDetached();const e=this.getModel();this.resetUiToActiveModel(e);let t=-1,n=-1,r=!1;const i=this.getJoinOperator();for(let s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))t===-1&&(t=s,n=s);else{const a=s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1),l=s<t;(a||l)&&(this.removeConditionsAndOperators(s,1),r=!0,l&&n--)}let o=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),o=!0),this.shouldAddNewConditionAtEnd(n===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),o=!0),o&&this.updateConditionStatusesAndValues(n,i),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=n}getPlaceholderText(e,t){let n=this.translate(e);if(T3e(this.filterPlaceholder)){const r=this.filterPlaceholder,i=this.eTypes[t].getValue(),o=this.translate(i);n=r({filterOptionKey:i,filterOption:o,placeholder:n})}else typeof this.filterPlaceholder=="string"&&(n=this.filterPlaceholder);return n}resetPlaceholder(){const e=this.localeService.getLocaleTextFunc();this.forEachInput((t,n,r,i)=>{if(!(t instanceof k8))return;const o=n===0&&i>1?"inRangeStart":n===0?"filterOoo":"inRangeEnd",s=n===0&&i>1?e("ariaFilterFromValue","Filter from value"):n===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");t.setInputPlaceholder(this.getPlaceholderText(o,r)),t.setInputAriaLabel(s)})}setElementValue(e,t,n){e instanceof k8&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){e instanceof wn&&Mn(e.getGui(),t)}setElementDisabled(e,t){e instanceof wn&&wI(e.getGui(),t)}attachElementOnChange(e,t){e instanceof k8&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,n)=>{this.forEachPositionTypeInput(n,t,e)})}forEachPositionInput(e,t){const n=this.getConditionType(e);this.forEachPositionTypeInput(e,n,t)}forEachPositionTypeInput(e,t,n){const r=this.getNumberOfInputs(t),i=this.getInputs(e);for(let o=0;o<i.length;o++){const s=i[o];s!=null&&n(s,o,e,r)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return this.getNumberOfInputs(t)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(n=>n==null))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinOperatorsAnd.forEach((t,n)=>this.resetJoinOperatorAnd(t,n,this.joinOperatorId+n)),this.eJoinOperatorsOr.forEach((t,n)=>this.resetJoinOperatorOr(t,n,this.joinOperatorId+n)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),xr.resolve()}resetType(e){const n=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(n).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator("AND"),this.translate("andCondition"),n)}resetJoinOperatorOr(e,t,n){this.resetJoinOperator(e,t,this.isDefaultOperator("OR"),this.translate("orCondition"),n)}resetJoinOperator(e,t,n,r,i){this.updateJoinOperatorDisabled(e.setValue(n,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${i}`).setLabel(r),t)}updateJoinOperatorsDisabled(){this.eJoinOperatorsAnd.forEach((e,t)=>this.updateJoinOperatorDisabled(e,t)),this.eJoinOperatorsOr.forEach((e,t)=>this.updateJoinOperatorDisabled(e,t))}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const n=this.mapValuesFromModel(e);this.forEachInput((r,i,o)=>{o===t&&this.setElementValue(r,n[i]!=null?n[i]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,n,r)=>{this.setElementValue(t,n===0&&r===0?e:null,!0)})}isDefaultOperator(e){return e===this.defaultJoinOperator}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,n=>{this.attachElementOnChange(n,this.listener)}))}individualConditionPasses(e,t){const n=this.getCellValue(e.node),r=this.mapValuesFromModel(t),i=this.optionsFactory.getCustomOption(t.type),o=this.evaluateCustomFilter(i,r,n);return o??(n==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,n,t,e))}evaluateCustomFilter(e,t,n){if(e==null)return;const{predicate:r}=e;if(r!=null&&!t.some(i=>i==null))return r(t,n)}isBlank(e){return e==null||typeof e=="string"&&e.trim().length===0}hasInvalidInputs(){return!1}},Hft=class extends Bft{setParams(e){super.setParams(e),this.scalarFilterParams=e}evaluateNullValue(e){switch(e){case"equals":if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case"notEqual":if(this.scalarFilterParams.includeBlanksInNotEqual)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case"lessThan":case"lessThanOrEqual":if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case"inRange":if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,n){const r=this.comparator(),i=e[0]!=null?r(e[0],t):0;switch(n.type){case"equals":return i===0;case"notEqual":return i!==0;case"greaterThan":return i>0;case"greaterThanOrEqual":return i>=0;case"lessThan":return i<0;case"lessThanOrEqual":return i<=0;case"inRange":{const o=r(e[1],t);return this.scalarFilterParams.inRangeInclusive?i>=0&&o<=0:i>0&&o<0}case"blank":return this.isBlank(t);case"notBlank":return!this.isBlank(t);default:return rt('Unexpected type of filter "'+n.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}}},Xii=65,Qii=67,Zii=86,Jii=68,eoi=90,toi=89;function jft(e){var n;return e.altKey||e.ctrlKey||e.metaKey?!1:((n=e.key)==null?void 0:n.length)===1}function cfe(e,t,n,r,i){const o=r?r.getColDef().suppressKeyboardEvent:void 0;if(!o)return!1;const s=e.addGridCommonParams({event:t,editing:i,column:r,node:n,data:n.data,colDef:r.getColDef()});return!!(o&&o(s))}function noi(e,t,n,r){const i=r.getDefinition(),o=i&&i.suppressHeaderKeyboardEvent;if(!zt(o))return!1;const s=e.addGridCommonParams({colDef:i,column:r,headerRowIndex:n,event:t});return!!o(s)}function roi(e){const{keyCode:t}=e;let n;switch(t){case Xii:n=Je.A;break;case Qii:n=Je.C;break;case Zii:n=Je.V;break;case Jii:n=Je.D;break;case eoi:n=Je.Z;break;case toi:n=Je.Y;break;default:n=e.code}return n}function ioi(e,t=!1){return e===Je.DELETE?!0:!t&&e===Je.BACKSPACE?dft():!1}var l6=class extends k8{constructor(e,t="ag-text-field",n="text"){super(e,t,n)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){return this.eInput.value!==e&&(this.eInput.value=zt(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=n=>{jft(n)&&n.key&&!e.test(n.key)&&n.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:n=>{var i;const r=(i=n.clipboardData)==null?void 0:i.getData("text");r&&r.split("").some(o=>!e.test(o))&&n.preventDefault()}})}},c6={selector:"AG-INPUT-TEXT-FIELD",component:l6},Z3e=class extends l6{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct(),this.addManagedListeners(this.eInput,{blur:()=>{const i=parseFloat(this.eInput.value),o=isNaN(i)?"":this.normalizeValue(i.toString());this.value!==o&&this.setValue(o)},wheel:this.onWheel.bind(this)}),this.eInput.step="any";const{precision:e,min:t,max:n,step:r}=this.config;typeof e=="number"&&this.setPrecision(e),typeof t=="number"&&this.setMin(t),typeof n=="number"&&this.setMax(n),typeof r=="number"&&this.setStep(r)}onWheel(e){gi(this.gos)===this.eInput&&e.preventDefault()}normalizeValue(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));const t=parseFloat(e);return this.min!=null&&t<this.min?e=this.min.toString():this.max!=null&&t>this.max&&(e=this.max.toString()),e}adjustPrecision(e,t){if(this.precision==null)return e;if(t){const r=parseFloat(e).toFixed(this.precision);return parseFloat(r).toString()}const n=String(e).split(".");if(n.length>1){if(n[1].length<=this.precision)return e;if(this.precision>0)return`${n[0]}.${n[1].slice(0,this.precision)}`}return n[0]}setMin(e){return this.min===e?this:(this.min=e,jf(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,jf(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,jf(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(n=>super.setValue(n,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,n){if(zt(n)){let r=this.isScientificNotation(n);if(r&&this.eInput.validity.valid)return e(n);if(!r){n=this.adjustPrecision(n);const i=this.normalizeValue(n);r=n!=i}if(r)return t(n)}return e(n)}getValue(){if(!this.eInput.validity.valid)return;const e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},ooi={selector:"AG-INPUT-NUMBER-FIELD",component:Z3e},Vft=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"],J3e=class{constructor(e,t,n){this.localeService=e,this.optionsFactory=t,this.valueFormatter=n}getModelAsString(e){if(!e)return null;const t=e.operator!=null,n=this.localeService.getLocaleTextFunc();if(t){const r=e,o=(r.conditions??[]).map(a=>this.getModelAsString(a)),s=r.operator==="AND"?"andCondition":"orCondition";return o.join(` ${n(s,Nft[s])} `)}else{if(e.type==="blank"||e.type==="notBlank")return n(e.type,e.type);{const r=e,i=this.optionsFactory.getCustomOption(r.type),{displayKey:o,displayName:s,numberOfInputs:a}=i||{};return o&&s&&a===0?(n(o,s),s):this.conditionToString(r,i)}}}updateParams(e){this.optionsFactory=e.optionsFactory}formatValue(e){return this.valueFormatter?this.valueFormatter(e??null)??"":String(e)}},Gft=class extends J3e{conditionToString(e,t){const{numberOfInputs:n}=t||{};return e.type=="inRange"||n===2?`${this.formatValue(e.filter)}-${this.formatValue(e.filterTo)}`:e.filter!=null?this.formatValue(e.filter):`${e.type}`}};function ufe(e){const{allowedCharPattern:t}=e??{};return t??null}var soi=class extends Hft{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[]}refresh(e){return this.numberFilterParams.allowedCharPattern!==e.allowedCharPattern?!1:super.refresh(e)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:r}=e||{};return[this.processValue(t),this.processValue(n)].slice(0,this.getNumberOfInputs(r))}getDefaultDebounceMs(){return 500}comparator(){return(e,t)=>e===t?0:e<t?1:-1}setParams(e){this.numberFilterParams=e,super.setParams(e),this.filterModelFormatter=new Gft(this.localeService,this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return Vft}setElementValue(e,t,n){const r=!n&&this.numberFilterParams.numberFormatter?this.numberFilterParams.numberFormatter(t??null):t;super.setElementValue(e,r)}createValueElement(){const e=ufe(this.numberFilterParams),t=document.createElement("div");return t.classList.add("ag-filter-body"),jo(t,"presentation"),this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t}createFromToElement(e,t,n,r){const i=this.createManagedBean(r?new l6({allowedCharPattern:r}):new Z3e);i.addCssClass(`ag-filter-${n}`),i.addCssClass("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeValueElements(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)}getValues(e){const t=[];return this.forEachPositionInput(e,(n,r,i,o)=>{r<o&&t.push(this.processValue(this.stringToFloat(n.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getFilterType(){return"number"}processValue(e){return e==null||isNaN(e)?null:e}stringToFloat(e){if(typeof e=="number")return e;let t=Da(e);return t!=null&&t.trim()===""&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):t==null||t.trim()==="-"?null:parseFloat(t)}createCondition(e){const t=this.getConditionType(e),n={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}getInputs(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>{if(!t.getInputElement().validity.valid){e=!0;return}}),e}},Wft=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],Uft=class extends J3e{conditionToString(e,t){const{numberOfInputs:n}=t||{};return e.type=="inRange"||n===2?`${e.filter}-${e.filterTo}`:e.filter!=null?`${e.filter}`:`${e.type}`}};function qft(e){const t=e&&e.trim();return t===""?e:t}var aoi=class extends Bft{constructor(){super("textFilter"),this.defaultFormatter=e=>e,this.defaultLowercaseFormatter=e=>e==null?null:e.toString().toLowerCase(),this.defaultMatcher=({filterOption:e,value:t,filterText:n})=>{if(n==null)return!1;switch(e){case"contains":return t.indexOf(n)>=0;case"notContains":return t.indexOf(n)<0;case"equals":return t===n;case"notEqual":return t!=n;case"startsWith":return t.indexOf(n)===0;case"endsWith":{const r=t.lastIndexOf(n);return r>=0&&r===t.length-n.length}default:return!1}},this.eValuesFrom=[],this.eValuesTo=[]}getDefaultDebounceMs(){return 500}setParams(e){this.textFilterParams=e,super.setParams(e),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?this.defaultFormatter:this.defaultLowercaseFormatter),this.filterModelFormatter=new Uft(this.localeService,this.optionsFactory)}getTextMatcher(){const e=this.textFilterParams.textCustomComparator;return e?(rt("textCustomComparator is deprecated, use textMatcher instead."),({filterOption:t,value:n,filterText:r})=>e(t,n,r)):this.textFilterParams.textMatcher||this.defaultMatcher}createCondition(e){const t=this.getConditionType(e),n={filterType:this.getFilterType(),type:t},r=this.getValuesWithSideEffects(e,!0);return r.length>0&&(n.filter=r[0]),r.length>1&&(n.filterTo=r[1]),n}getFilterType(){return"text"}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]}getValues(e){return this.getValuesWithSideEffects(e,!1)}getValuesWithSideEffects(e,t){const n=[];return this.forEachPositionInput(e,(r,i,o,s)=>{if(i<s){let a=Da(r.getValue());t&&this.textFilterParams.trimInput&&(a=qft(a)??null,r.setValue(a,!0)),n.push(a)}}),n}getDefaultFilterOptions(){return Wft}createValueElement(){const e=document.createElement("div");return e.classList.add("ag-filter-body"),jo(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e}createFromToElement(e,t,n){const r=this.createManagedBean(new l6);r.addCssClass(`ag-filter-${n}`),r.addCssClass("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())}removeValueElements(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)}mapValuesFromModel(e){const{filter:t,filterTo:n,type:r}=e||{};return[t||null,n||null].slice(0,this.getNumberOfInputs(r))}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,n,r){const i=e.map(h=>this.formatter(h))||[],o=this.formatter(t),{api:s,colDef:a,column:l,context:c,textFormatter:u}=this.textFilterParams;if(n.type==="blank")return this.isBlank(t);if(n.type==="notBlank")return!this.isBlank(t);const f={api:s,colDef:a,column:l,context:c,node:r.node,data:r.data,filterOption:n.type,value:o,textFormatter:u};return i.some(h=>this.matcher({...f,filterText:h}))}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}};function Kft(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=parseInt(e);return isNaN(t)?void 0:t}}function Ip(e,t=Number.MAX_VALUE){return n=>{const r=Kft(n);if(!(r==null||r<e||r>t))return r}}function bO(e,t){return e.toString().padStart(t,"0")}function loi(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function coi(e,t,n){return typeof e!="number"?"":Sy(Math.round(e*100)/100,t,n)}function Sy(e,t,n){return typeof e!="number"?"":e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${t}`)}function Vf(e,t=!0,n="-"){if(!e)return null;let r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(i=>bO(i,2)).join(n);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map(i=>bO(i,2)).join(":")),r}var ooe=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function SO(e,t="YYYY-MM-DD"){const n=bO(e.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o={YYYY:()=>n.slice(n.length-4,n.length),YY:()=>n.slice(n.length-2,n.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>r[e.getMonth()],MMM:()=>r[e.getMonth()].slice(0,3),MM:()=>bO(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${ooe(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${ooe(e.getDate())}`,DD:()=>bO(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>i[e.getDay()],ddd:()=>i[e.getDay()].slice(0,3),dd:()=>i[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${ooe(e.getDay())}`,d:()=>`${e.getDay()}`},s=new RegExp(Object.keys(o).join("|"),"g");return t.replace(s,a=>a in o?o[a]():a)}function cu(e){if(!e)return null;const[t,n]=e.split(" ");if(!t)return null;const r=t.split("-").map(f=>parseInt(f,10));if(r.filter(f=>!isNaN(f)).length!==3)return null;const[i,o,s]=r,a=new Date(i,o-1,s);if(a.getFullYear()!==i||a.getMonth()!==o-1||a.getDate()!==s)return null;if(!n||n==="00:00:00")return a;const[l,c,u]=n.split(":").map(f=>parseInt(f,10));return l>=0&&l<24&&a.setHours(l),c>=0&&c<60&&a.setMinutes(c),u>=0&&u<60&&a.setSeconds(u),a}var Yft=class{constructor(e,t,n,r,i){this.alive=!0,this.context=e,this.eParent=r,t.getDateCompDetails(n).newAgStackInstance().then(a=>{if(!this.alive){e.destroyBean(a);return}this.dateComp=a,a&&(r.appendChild(a.getGui()),a.afterGuiAttached&&a.afterGuiAttached(),this.tempValue&&a.setDate(this.tempValue),this.disabled!=null&&this.setDateCompDisabled(this.disabled),i==null||i(this))})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e}setDisabled(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e}setDisplayed(e){Mn(this.eParent,e)}setInputPlaceholder(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)}setInputAriaLabel(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)}afterGuiAttached(e){this.dateComp&&typeof this.dateComp.afterGuiAttached=="function"&&this.dateComp.afterGuiAttached(e)}updateParams(e){var n,r;let t=!1;(n=this.dateComp)!=null&&n.refresh&&typeof this.dateComp.refresh=="function"&&this.dateComp.refresh(e)!==null&&(t=!0),!t&&((r=this.dateComp)!=null&&r.onParamsUpdated)&&typeof this.dateComp.onParamsUpdated=="function"&&this.dateComp.onParamsUpdated(e)!==null&&rt("Custom date component method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")}setDateCompDisabled(e){this.dateComp!=null&&this.dateComp.setDisabled!=null&&this.dateComp.setDisabled(e)}},Xft=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"],Qft=class extends J3e{constructor(e,t,n){super(t,n),this.dateFilterParams=e}conditionToString(e,t){const{type:n}=e,{numberOfInputs:r}=t||{},i=n=="inRange"||r===2,o=cu(e.dateFrom),s=cu(e.dateTo),a=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(i){const l=o!==null?SO(o,a):"null",c=s!==null?SO(s,a):"null";return`${l}-${c}`}return o!=null?SO(o,a):`${n}`}updateParams(e){super.updateParams(e),this.dateFilterParams=e.dateFilterParams}},SLe=1e3,wLe=1/0,uoi=class extends Hft{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=SLe,this.maxValidYear=wLe,this.minValidDate=null,this.maxValidDate=null}wireBeans(e){super.wireBeans(e),this.context=e.context,this.userComponentFactory=e.userComponentFactory}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e)}mapValuesFromModel(e){const{dateFrom:t,dateTo:n,type:r}=e||{};return[t&&cu(t)||null,n&&cu(n)||null].slice(0,this.getNumberOfInputs(r))}comparator(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)}defaultComparator(e,t){const n=t;return t==null||n<e?-1:n>e?1:0}setParams(e){this.dateFilterParams=e,super.setParams(e);const t=(n,r)=>{if(e[n]!=null)if(isNaN(e[n]))rt(`DateFilter ${n} is not a number`);else return e[n]==null?r:Number(e[n]);return r};this.minValidYear=t("minValidYear",SLe),this.maxValidYear=t("maxValidYear",wLe),this.minValidYear>this.maxValidYear&&rt("DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:cu(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:cu(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&rt("DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new Qft(this.dateFilterParams,this.localeService,this.optionsFactory)}createDateCompWrapper(e){const t=new Yft(this.context,this.userComponentFactory,{onDateChanged:()=>this.onUiChanged(),filterParams:this.dateFilterParams},e);return this.addDestroyFunc(()=>t.destroy()),t}setElementValue(e,t){e.setDate(t)}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}getDefaultFilterOptions(){return Xft}createValueElement(){const t=uo(this.gos).createElement("div");return t.classList.add("ag-filter-body"),this.createFromToElement(t,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(t,this.eConditionPanelsTo,this.dateConditionToComps,"to"),t}createFromToElement(e,t,n,r){const o=uo(this.gos).createElement("div");o.classList.add(`ag-filter-${r}`),o.classList.add(`ag-filter-date-${r}`),t.push(o),e.appendChild(o),n.push(this.createDateCompWrapper(o))}removeValueElements(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,n){this.removeItems(e,t,n).forEach(i=>i.destroy())}isValidDateValue(e){if(e===null)return!1;if(this.minValidDate){if(e<this.minValidDate)return!1}else if(e.getUTCFullYear()<this.minValidYear)return!1;if(this.maxValidDate){if(e>this.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachInput((n,r,i,o)=>{i!==e||!t||r>=o||(t=t&&this.isValidDateValue(n.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}getFilterType(){return"date"}createCondition(e){const t=this.getConditionType(e),n={},r=this.getValues(e);return r.length>0&&(n.dateFrom=Vf(r[0])),r.length>1&&(n.dateTo=Vf(r[1])),{dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t,...n}}resetPlaceholder(){const e=this.localeService.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput(r=>{r.setInputPlaceholder(t),r.setInputAriaLabel(n)})}getInputs(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(n,r,i,o)=>{r<o&&t.push(n.getDate())}),t}translate(e){return e==="lessThan"?super.translate("before"):e==="greaterThan"?super.translate("after"):super.translate(e)}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e)??""}},e6e=class extends ct{constructor(e,t,n,r){super(),this.columnOrGroup=e,this.columnOrGroup=e,this.eCell=t,this.ariaEl=this.eCell.querySelector("[role=columnheader]")||this.eCell,this.colsSpanning=r,this.beans=n}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){return this.beans.gos.get("enableRtl")&&this.colsSpanning?Dn(this.colsSpanning):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const e=this.beans.gos.get("suppressColumnMoveAnimation"),t=zt(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=e.getLeft(),n=e.getOldLeft(),r=this.modifyLeftForPrintLayout(e,n),i=this.modifyLeftForPrintLayout(e,t);this.setLeft(r),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn(()=>{this.actualLeft===i&&this.setLeft(i)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){if(!La(this.beans.gos,"print")||e.getPinned()==="left")return t;const r=this.beans.visibleColsService.getColsLeftWidth();if(e.getPinned()==="right"){const i=this.beans.visibleColsService.getBodyContainerWidth();return r+i+t}return r+t}setLeft(e){if(zt(e)&&(this.eCell.style.left=`${e}px`),Ss(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&Fri(this.ariaEl,t.length)}}},doi="ag-column-first",foi="ag-column-last";function Zft(e,t,n,r){return ar(e)?[]:tht(e.headerClass,e,t,n,r)}function Jft(e,t,n,r){return ar(e)?[]:tht(e.toolPanelClass,e,t,n,r)}function eht(e,t,n){e.addOrRemoveCssClass(doi,n.isColAtEdge(t,"first")),e.addOrRemoveCssClass(foi,n.isColAtEdge(t,"last"))}function hoi(e,t,n,r){return t.addGridCommonParams({colDef:e,column:n,columnGroup:r})}function tht(e,t,n,r,i){if(ar(e))return[];let o;if(typeof e=="function"){const s=hoi(t,n,r,i);o=e(s)}else o=e;return typeof o=="string"?[o]:Array.isArray(o)?[...o]:[]}var goi=0,nht=class rht extends ct{constructor(t,n,r){super(),this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.columnGroupChild=t,this.parentRowCtrl=r,this.beans=n,this.instanceId=t.getUniqueId()+"-"+goi++}wireBeans(t){this.pinnedWidthService=t.pinnedWidthService,this.focusService=t.focusService,this.userComponentFactory=t.userComponentFactory,this.ctrlsService=t.ctrlsService,this.dragAndDropService=t.dragAndDropService,this.menuService=t.menuService}postConstruct(){const t=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],t),this.addManagedEventListeners({overlayExclusiveChanged:t})}shouldStopEventPropagation(t){const{headerRowIndex:n,column:r}=this.focusService.getFocusedHeader();return noi(this.gos,t,n,r)}getWrapperHasFocus(){return gi(this.gos)===this.eGui}setGui(t,n){this.eGui=t,this.addDomData(n),n.addManagedListeners(this.beans.eventService,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),n.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onGuiFocus(){this.eventService.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(t){const{wrapperElement:n,checkMeasuringCallback:r,compBean:i}=t,{animationFrameService:o,resizeObserverService:s,columnModel:a,gos:l}=this.beans,c=m=>{if(!this.isAlive()||!i.isAlive())return;const{paddingTop:v,paddingBottom:C,borderBottomWidth:y,borderTopWidth:b}=Db(this.getGui()),S=v+C+y+b,x=n.offsetHeight+S;if(m<5){const E=uo(l),R=!E||!E.contains(n),O=x==0;if(R||O){o.requestAnimationFrame(()=>c(m+1));return}}a.setColHeaderHeight(this.column,x)};let u=!1,f;const h=()=>{const m=this.column.isAutoHeaderHeight();m&&!u&&g(),!m&&u&&p()},g=()=>{u=!0,c(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),f=s.observeResize(n,()=>c(0))},p=()=>{u=!1,f&&f(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),f=void 0};h(),i.addDestroyFunc(()=>p()),i.addManagedListeners(this.column,{widthChanged:()=>u&&c(0)}),i.addManagedEventListeners({sortChanged:()=>{u&&window.setTimeout(()=>c(0))}}),r&&r(h)}onDisplayedColumnsChanged(){const{comp:t,column:n,beans:r,eGui:i}=this;!t||!n||!i||(eht(t,n,r.visibleColsService),sft(i,r.visibleColsService.getAriaColIndex(n)))}addResizeAndMoveKeyboardListeners(t){this.resizeFeature&&t.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const t=this.focusService.isHeaderFocusSuppressed();this.eGui&&jf(this.eGui,"tabindex",t?null:"-1")}onGuiKeyDown(t){var s;const n=gi(this.gos),r=t.key===Je.LEFT||t.key===Je.RIGHT;if(this.isResizing&&(t.preventDefault(),t.stopImmediatePropagation()),n!==this.eGui||!t.shiftKey&&!t.altKey||((this.isResizing||r)&&(t.preventDefault(),t.stopImmediatePropagation()),!r))return;const i=t.key===Je.LEFT!==this.gos.get("enableRtl"),o=_ft[i?"Left":"Right"];if(t.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const a=this.getViewportAdjustedResizeDiff(t);this.resizeHeader(a,t.shiftKey),(s=this.resizeFeature)==null||s.toggleColumnResizing(!0)}else this.moveHeader(o)}getViewportAdjustedResizeDiff(t){let n=this.getResizeDiff(t);if(this.column.getPinned()){const i=this.pinnedWidthService.getPinnedLeftWidth(),o=this.pinnedWidthService.getPinnedRightWidth(),s=dE(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(i+o+n>s)if(s>i+o)n=s-i-o;else return 0}return n}getResizeDiff(t){let n=t.key===Je.LEFT!==this.gos.get("enableRtl");const r=this.column.getPinned(),i=this.gos.get("enableRtl");return r&&i!==(r==="right")&&(n=!n),(n?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{var t;(t=this.resizeFeature)==null||t.toggleColumnResizing(!1)},150))}handleKeyDown(t){const n=this.getWrapperHasFocus();switch(t.key){case Je.PAGE_DOWN:case Je.PAGE_UP:case Je.PAGE_HOME:case Je.PAGE_END:n&&t.preventDefault()}}addDomData(t){const n=rht.DOM_DATA_KEY_HEADER_CTRL;Cy(this.gos,this.eGui,n,this),t.addDestroyFunc(()=>Cy(this.gos,this.eGui,n,null))}getGui(){return this.eGui}focus(t){return this.eGui?(this.lastFocusEvent=t||null,this.eGui.focus(),!0):!1}getRowIndex(){return this.parentRowCtrl.getRowIndex()}getParentRowCtrl(){return this.parentRowCtrl}getPinned(){return this.parentRowCtrl.getPinned()}getColumnGroupChild(){return this.columnGroupChild}removeDragSource(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(t,n,r){const i=t??n;this.gos.get("preventDefaultOnContextMenu")&&i.preventDefault(),this.menuService.isHeaderContextMenuEnabled(r)&&this.menuService.showHeaderContextMenu(r,t,n),this.dispatchColumnMouseEvent("columnHeaderContextMenu",r)}dispatchColumnMouseEvent(t,n){this.eventService.dispatchEvent({type:t,column:n})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null}};nht.DOM_DATA_KEY_HEADER_CTRL="headerCtrl";var QQ=nht,t6e=class extends ct{wireBeans(e){this.columnHoverService=e.columnHoverService}constructor(e,t){super(),this.columns=e,this.element=t}postConstruct(){this.gos.get("columnHoverHighlight")&&this.addMouseHoverListeners()}addMouseHoverListeners(){this.addManagedListeners(this.element,{mouseout:this.onMouseOut.bind(this),mouseover:this.onMouseOver.bind(this)})}onMouseOut(){this.columnHoverService.clearMouseOver()}onMouseOver(){this.columnHoverService.setMouseOver(this.columns)}},poi=class extends QQ{constructor(e,t,n){super(e,t,n),this.iconCreated=!1,this.column=e}setComp(e,t,n,r,i){this.comp=e,i=z_(this,this.beans.context,i),this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r,this.setGui(t,i),this.setupActive(),this.setupWidth(i),this.setupLeft(i),this.setupHover(i),this.setupFocus(i),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(i),this.setupUi(),i.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(i),i.addManagedListeners(this.column,{colDefChanged:()=>this.onColDefChanged(i)}),i.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}setupActive(){const e=this.column.getColDef(),t=!!e.filter,n=!!e.floatingFilter;this.active=t&&n}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=Gn("filter",this.gos,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new Rv(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.localeService.getLocaleTextFunc();Xl(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){if(gi(this.gos)===this.eGui)return;const r=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(r){this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),r.focus();return}const i=this.findNextColumnWithFloatingFilter(e.shiftKey);i&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:i},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleColsService;let n=this.column;do if(n=e?t.getColBefore(n):t.getColAfter(n),!n)break;while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case Je.UP:case Je.DOWN:t||e.preventDefault();case Je.LEFT:case Je.RIGHT:if(t)return;e.stopPropagation();case Je.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case Je.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const n=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&fw(e.relatedTarget,"ag-floating-filter");if(n&&r&&e.target===this.eGui){const o=this.lastFocusEvent,s=!!(o&&o.key===Je.TAB);if(o&&s){const a=o.shiftKey;this.focusService.focusInto(this.eGui,a)}}const i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.column)}setupHover(e){e.createManagedBean(new t6e([this.column],this.eGui));const t=()=>{if(!this.gos.get("columnHoverHighlight"))return;const n=this.beans.columnHoverService.isHovered(this.column);this.comp.addOrRemoveCssClass("ag-column-hover",n)};e.addManagedEventListeners({columnHoverChanged:t}),t()}setupLeft(e){const t=new e6e(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.menuService.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!this.menuService.isLegacyMenuEnabled()}setupUserComp(){var t;if(!this.active)return;const e=(t=this.beans.filterManager)==null?void 0:t.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuService.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{filterManager:t}=this.beans,n=r=>{if((r==null?void 0:r.source)==="filterDestroyed"&&!this.isAlive())return;const i=this.comp.getFloatingFilterComp();i&&i.then(o=>{if(o){const s=t==null?void 0:t.getCurrentFloatingFilterParentModel(this.column),a=r?{...r,columns:r.columns??[],source:r.source==="api"?"api":"columnFilter"}:null;o.onParentModelChanged(s,a)}})};[this.destroySyncListener]=e.addManagedListeners(this.column,{filterChanged:n}),t!=null&&t.isFilterActive(this.column)&&n(null)}setupWidth(e){const t=()=>{const n=`${this.column.getActualWidth()}px`;this.comp.setWidth(n)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){var e;if(!this.suppressFilterButton&&this.comp){const t=!!((e=this.beans.filterManager)!=null&&e.isFilterAllowed(this.column));this.comp.setButtonWrapperDisplayed(t),this.highlightFilterButtonWhenActive&&t&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){var o;const t=this.active;this.setupActive();const n=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const r=this.active?(o=this.beans.filterManager)==null?void 0:o.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,i=this.comp.getFloatingFilterComp();!i||!r?this.updateCompDetails(e,r,n):i.then(s=>{var a;!s||(a=this.beans.filterManager)!=null&&a.areFilterCompsDifferent(this.userCompDetails??null,r)?this.updateCompDetails(e,r,n):this.updateFloatingFilterParams(r)})}updateCompDetails(e,t,n){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),n&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e){var n;if(!e)return;const t=e.params;(n=this.comp.getFloatingFilterComp())==null||n.then(r=>{let i=!1;r!=null&&r.refresh&&typeof r.refresh=="function"&&r.refresh(t)!==null&&(i=!0),!i&&(r!=null&&r.onParamsUpdated)&&typeof r.onParamsUpdated=="function"&&r.onParamsUpdated(t)!==null&&rt("Custom floating filter method 'onParamsUpdated' is deprecated. Use 'refresh' instead.")})}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};var ur="32.3.3";function moi(e){var t,n;return!!((t=e.filterManager)!=null&&t.isColumnFilterPresent())||!!((n=e.filterManager)!=null&&n.isAggregateFilterPresent())}function voi(e,t,n){var r;return(r=e.filterManager)==null?void 0:r.getFilterInstance(t,n)}function Coi(e,t){var n;return((n=e.filterManager)==null?void 0:n.getColumnFilterInstance(t))??Promise.resolve(void 0)}function yoi(e,t){var r;const n=e.columnModel.getColDefCol(t);if(n)return(r=e.filterManager)==null?void 0:r.destroyFilter(n,"api")}function boi(e,t){e.frameworkOverrides.wrapIncoming(()=>{var n;return(n=e.filterManager)==null?void 0:n.setFilterModel(t)})}function Soi(e){var t;return((t=e.filterManager)==null?void 0:t.getFilterModel())??{}}function woi(e,t){var n;return((n=e.filterManager)==null?void 0:n.getColumnFilterModel(t))??null}function xoi(e,t,n){var r;return((r=e.filterManager)==null?void 0:r.setColumnFilterModel(t,n))??Promise.resolve()}function Eoi(e,t){const n=e.columnModel.getCol(t);if(!n){Mr(`column '${t}' not found`);return}e.menuService.showFilterMenu({column:n,containerType:"columnFilter",positionBy:"auto"})}function Roi(e,t,n){if(t==null)return null;let r=null;const{compName:i,jsComp:o,fwComp:s}=Mft.getCompKeys(e,t,Y3e);return i?r={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[i]:o==null&&s==null&&t.filter===!0&&(r=n()),r}var xLe={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},ELe=["january","february","march","april","may","june","july","august","september","october","november","december"],$oi=class extends ct{constructor(){super(...arguments),this.beanName="columnFilterService",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[]}wireBeans(e){this.valueService=e.valueService,this.columnModel=e.columnModel,this.rowModel=e.rowModel,this.userComponentFactory=e.userComponentFactory,this.rowRenderer=e.rowRenderer,this.dataTypeService=e.dataTypeService,this.filterManager=e.filterManager}postConstruct(){var e,t;this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),rowDataUpdated:()=>this.onNewRowsLoaded("rowDataUpdated"),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.initialFilterModel={...((t=(e=this.gos.get("initialState"))==null?void 0:e.filter)==null?void 0:t.filterModel)??{}}}setFilterModel(e,t="api"){var i;if((i=this.dataTypeService)!=null&&i.isPendingInference()){this.filterModelUpdateQueue.push({model:e,source:t});return}const n=[],r=this.getFilterModel(!0);if(e){const o=new Set(Object.keys(e));this.allColumnFilters.forEach((s,a)=>{const l=e[a];n.push(this.setModelOnFilterWrapper(s.filterPromise,l)),o.delete(a)}),o.forEach(s=>{const a=this.columnModel.getColDefCol(s)||this.columnModel.getCol(s);if(!a){rt("setFilterModel() - no column found for colId: "+s);return}if(!a.isFilterAllowed()){rt("setFilterModel() - unable to fully apply model, filtering disabled for colId: "+s);return}const l=this.getOrCreateFilterWrapper(a);if(!l){rt("setFilterModel() - unable to fully apply model, unable to create filter for colId: "+s);return}n.push(this.setModelOnFilterWrapper(l.filterPromise,e[s]))})}else this.allColumnFilters.forEach(o=>{n.push(this.setModelOnFilterWrapper(o.filterPromise,null))});xr.all(n).then(()=>{var a;const o=this.getFilterModel(!0),s=[];this.allColumnFilters.forEach((l,c)=>{const u=r?r[c]:null,f=o?o[c]:null;gI(u,f)||s.push(l.column)}),s.length>0&&((a=this.filterManager)==null||a.onFilterChanged({columns:s,source:t}))})}setModelOnFilterWrapper(e,t){return new xr(n=>{e.then(r=>{typeof r.setModel!="function"&&(rt("filter missing setModel method, which is needed for setFilterModel"),n()),(r.setModel(t)||xr.resolve()).then(()=>n())})})}getFilterModel(e){const t={},{allColumnFilters:n,initialFilterModel:r}=this;return n.forEach((i,o)=>{const s=this.getModelFromFilterWrapper(i);zt(s)&&(t[o]=s)}),e||Object.entries(r).forEach(([i,o])=>{var s;zt(o)&&!n.has(i)&&((s=this.columnModel.getCol(i))!=null&&s.isFilterAllowed())&&(t[i]=o)}),t}getModelFromFilterWrapper(e){const{filter:t}=e;return t?typeof t.getModel!="function"?(rt("filter API missing getModel method, which is needed for getFilterModel"),null):t.getModel():this.getModelFromInitialState(e.column)}getModelFromInitialState(e){return this.initialFilterModel[e.getColId()]??null}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}disableColumnFilters(){return this.allColumnFilters.size?(this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"advancedFilterEnabled")),!0):!1}doAggregateFiltersPass(e,t){return this.doColumnFiltersPass(e,t,!0)}updateActiveFilters(){const e=o=>o?o.isFilterActive?o.isFilterActive():(rt("Filter is missing isFilterActive() method"),!1):!1,t=!!yI(this.gos),n=o=>{if(!o.isPrimary())return!0;const a=!this.columnModel.isPivotActive();return!o.isValueActive()||!a?!1:this.columnModel.isPivotMode()?!0:t},r=[],i=[];return this.forEachColumnFilter((o,s)=>{e(o)&&(n(s.column)?r.push(o):i.push(o))}).then(()=>{this.activeAggregateFilters=r,this.activeColumnFilters=i})}updateFilterFlagInColumns(e,t){return this.forEachColumnFilter((n,r)=>r.column.setFilterActive(n.isFilterActive(),e,t))}forEachColumnFilter(e){return xr.all(Array.from(this.allColumnFilters.values()).map(t=>t.filterPromise.then(n=>e(n,t))))}doColumnFiltersPass(e,t,n){const{data:r,aggData:i}=e,o=n?this.activeAggregateFilters:this.activeColumnFilters,s=n?i:r;for(let a=0;a<o.length;a++){const l=o[a];if(!(l==null||l===t)){if(typeof l.doesFilterPass!="function")throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:s}))return!1}}return!0}callOnFilterChangedOutsideRenderCycle(e){const t=()=>{var n;return(n=this.filterManager)==null?void 0:n.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(t,0):t()}updateBeforeFilterChanged(e={}){const{filterInstance:t,additionalEventAttributes:n}=e;return this.updateDependentFilters(),this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",n).then(()=>{this.allColumnFilters.forEach(r=>{r.filterPromise&&r.filterPromise.then(i=>{i&&i!==t&&i.onAnyFilterChanged&&i.onAnyFilterChanged()})}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){this.forEachColumnFilter(t=>{t.onNewRowsLoaded&&t.onNewRowsLoaded()}).then(()=>this.updateFilterFlagInColumns(e,{afterDataChange:!0})).then(()=>this.updateActiveFilters())}createValueGetter(e){return({node:t})=>this.valueService.getValue(e,t,!0)}createGetValue(e){return(t,n)=>{const r=n?this.columnModel.getCol(n):e;return r?this.valueService.getValue(r,t,!0):void 0}}isFilterActive(e){const{filter:t}=this.cachedFilter(e)??{};return t?t.isFilterActive():this.getModelFromInitialState(e)!=null}getOrCreateFilterWrapper(e){if(!e.isFilterAllowed())return null;let t=this.cachedFilter(e);return t||(t=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,t)),t}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e){var n;let t;if(Xie(this.gos))t="agSetColumnFilter";else{const r=(n=this.dataTypeService)==null?void 0:n.getBaseDataType(e);r==="number"?t="agNumberColumnFilter":r==="date"||r==="dateString"?t="agDateColumnFilter":t="agTextColumnFilter"}return t}getDefaultFloatingFilter(e){var n;let t;if(Xie(this.gos))t="agSetColumnFloatingFilter";else{const r=(n=this.dataTypeService)==null?void 0:n.getBaseDataType(e);r==="number"?t="agNumberColumnFloatingFilter":r==="date"||r==="dateString"?t="agDateColumnFloatingFilter":t="agTextColumnFloatingFilter"}return t}createFilterInstance(e,t){const n=this.getDefaultFilter(e),r=e.getColDef();let i;const o={...this.createFilterParams(e,r),filterModifiedCallback:()=>this.filterModifiedCallbackFactory(i,e)(),filterChangedCallback:a=>this.filterChangedCallbackFactory(i,e)(a),doesRowPassOtherFilter:a=>this.filterManager?this.filterManager.doesRowPassOtherFilters(i,a):!0},s=this.userComponentFactory.getFilterDetails(r,o,n);return s?{filterPromise:()=>{const a=s.newAgStackInstance();return a!=null&&a.then(l=>{i=l,t&&(t.filter=l)}),a},compDetails:s}:{filterPromise:null,compDetails:null}}createFilterParams(e,t){return this.gos.addGridCommonParams({column:e,colDef:jQ(t),rowModel:this.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},valueGetter:this.createValueGetter(e),getValue:this.createGetValue(e),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(e){const t={column:e,filterPromise:null,compiledElement:null,compDetails:null},{filterPromise:n,compDetails:r}=this.createFilterInstance(e,t);return t.filterPromise=(n==null?void 0:n())??null,t.compDetails=r,t}onColumnsChanged(){var n;const e=[];this.allColumnFilters.forEach((r,i)=>{let o;r.column.isPrimary()?o=this.columnModel.getColDefCol(i):o=this.columnModel.getCol(i),!(o&&o===r.column)&&(e.push(r.column),this.disposeFilterWrapper(r,"columnChanged"),this.disposeColumnListener(i))});const t=e.every(r=>r.getColDef().filter==="agGroupColumnFilter");e.length>0&&!t?(n=this.filterManager)==null||n.onFilterChanged({columns:e,source:"api"}):this.updateDependentFilters()}updateDependentFilters(){const e=this.columnModel.getAutoCols();e==null||e.forEach(t=>{t.getColDef().filter==="agGroupColumnFilter"&&this.getOrCreateFilterWrapper(t)})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const{filter:n}=this.allColumnFilters.get(e.getColId())??{};return n&&typeof(n==null?void 0:n.isFilterAllowed)=="function"?n.isFilterAllowed():!0}getFloatingFilterCompDetails(e,t){const n=l=>{var u;const c=(u=this.getOrCreateFilterWrapper(e))==null?void 0:u.filterPromise;c!=null&&c.then(f=>{l(gC(f))})},r=e.getColDef(),i={...this.createFilterParams(e,r),filterChangedCallback:()=>n(l=>this.filterChangedCallbackFactory(l,e)())},o=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(r,Y3e,i);let s=Roi(this.frameworkOverrides,r,()=>this.getDefaultFloatingFilter(e));s==null&&(s="agReadOnlyFloatingFilter");const a={column:e,filterParams:o,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:n,showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(r,a,s)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilter(e,t="api"){var i;const n=e.getColId(),r=this.allColumnFilters.get(n);this.disposeColumnListener(n),delete this.initialFilterModel[n],r&&(this.disposeFilterWrapper(r,t),(i=this.filterManager)==null||i.onFilterChanged({columns:[e],source:"api"}))}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){e.filterPromise.then(n=>{this.destroyBean(n),e.column.setFilterActive(!1,"filterDestroyed"),this.allColumnFilters.delete(e.column.getColId()),this.eventService.dispatchEvent({type:"filterDestroyed",source:t,column:e.column})})}filterModifiedCallbackFactory(e,t){return()=>{this.eventService.dispatchEvent({type:"filterModified",column:t,filterInstance:e})}}filterChangedCallbackFactory(e,t){return n=>{const r=(n==null?void 0:n.source)??"columnFilter",i={filter:e,additionalEventAttributes:n,columns:[t],source:r};this.callOnFilterChangedOutsideRenderCycle(i)}}checkDestroyFilter(e){const t=this.allColumnFilters.get(e);if(!t)return;const n=t.column,{compDetails:r}=n.isFilterAllowed()?this.createFilterInstance(n):{compDetails:null};if(this.areFilterCompsDifferent(t.compDetails,r)){this.destroyFilter(n,"paramsUpdated");return}const i=n.getColDef().filterParams;if(!t.filterPromise){this.destroyFilter(n,"paramsUpdated");return}t.filterPromise.then(o=>{(o!=null&&o.refresh?o.refresh({...this.createFilterParams(n,n.getColDef()),filterModifiedCallback:this.filterModifiedCallbackFactory(o,n),filterChangedCallback:this.filterChangedCallbackFactory(o,n),doesRowPassOtherFilter:a=>this.filterManager?this.filterManager.doesRowPassOtherFilters(o,a):!0,...i}):!0)===!1&&this.destroyFilter(n,"paramsUpdated")})}setColumnFilterWrapper(e,t){const n=e.getColId();this.allColumnFilters.set(n,t),this.allColumnListeners.set(n,this.addManagedListeners(e,{colDefChanged:()=>this.checkDestroyFilter(n)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:n}=e,{componentClass:r}=t;return!(n===r||(n==null?void 0:n.render)&&(r==null?void 0:r.render)&&n.render===r.render)}hasFloatingFilters(){return this.columnModel.getCols().some(t=>t.getColDef().floatingFilter)}getFilterInstance(e,t){t&&this.getFilterInstanceImpl(e).then(n=>{const r=gC(n);t(r)})}getColumnFilterInstance(e){return new Promise(t=>{this.getFilterInstanceImpl(e).then(n=>{t(gC(n))})})}getFilterInstanceImpl(e){var r;const t=this.columnModel.getColDefCol(e);return t?((r=this.getOrCreateFilterWrapper(t))==null?void 0:r.filterPromise)??xr.resolve(null):xr.resolve(void 0)}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach(({model:e,source:t})=>this.setFilterModel(e,t)),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(({key:e,model:t,resolve:n})=>{this.setColumnFilterModel(e,t).then(()=>n())}),this.columnFilterModelUpdateQueue=[]}getColumnFilterModel(e){const t=this.getFilterWrapper(e);return t?this.getModelFromFilterWrapper(t):null}setColumnFilterModel(e,t){var o;if((o=this.dataTypeService)!=null&&o.isPendingInference()){let s=()=>{};const a=new Promise(l=>{s=l});return this.columnFilterModelUpdateQueue.push({key:e,model:t,resolve:s}),a}const n=this.columnModel.getColDefCol(e),r=n?this.getOrCreateFilterWrapper(n):null;return r?(s=>new Promise(a=>{s.then(l=>a(l))}))(this.setModelOnFilterWrapper(r.filterPromise,t)):Promise.resolve()}getFilterWrapper(e){const t=this.columnModel.getColDefCol(e);return t?this.cachedFilter(t)??null:null}setColDefPropertiesForDataType(e,t,n){const r=Xie(this.gos),i=this.localeService.getLocaleTextFunc(),o=s=>{const{filterParams:a}=e;e.filterParams=typeof a=="object"?{...a,...s}:s};switch(t.baseDataType){case"number":{r&&o({comparator:(s,a)=>{const l=s==null?0:parseInt(s),c=a==null?0:parseInt(a);return l===c?0:l>c?1:-1}});break}case"boolean":{o(r?{valueFormatter:s=>zt(s.value)?i(String(s.value),s.value?"True":"False"):i("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(s,a)=>a,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(s,a)=>a===!1,numberOfInputs:0}]});break}case"date":{r&&o({valueFormatter:s=>{const a=n(s);return zt(a)?a:i("blanks","(Blanks)")},treeList:!0,treeListFormatter:(s,a)=>{if(a===1&&s!=null){const l=ELe[Number(s)-1];return i(l,xLe[l])}return s??i("blanks","(Blanks)")}});break}case"dateString":{const s=t.dateParser;o(r?{valueFormatter:a=>{const l=n(a);return zt(l)?l:i("blanks","(Blanks)")},treeList:!0,treeListPathGetter:a=>{const l=s(a??void 0);return l?[String(l.getFullYear()),String(l.getMonth()+1),String(l.getDate())]:null},treeListFormatter:(a,l)=>{if(l===1&&a!=null){const c=ELe[Number(a)-1];return i(c,xLe[c])}return a??i("blanks","(Blanks)")}}:{comparator:(a,l)=>{const c=s(l);return l==null||c<a?-1:c>a?1:0}});break}case"object":{r?o({valueFormatter:s=>{const a=n(s);return zt(a)?a:i("blanks","(Blanks)")}}):e.filterValueGetter=s=>n({column:s.column,node:s.node,value:this.valueService.getValue(s.column,s.node)});break}}}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear()}};function Ooi(e){var t;return!!((t=e.filterManager)!=null&&t.isAnyFilterPresent())}function Toi(e,t="api"){var n;(n=e.filterManager)==null||n.onFilterChanged({source:t})}var Ioi=class extends wn{constructor(){super(`
|
||
<div class="ag-floating-filter-input" role="presentation">
|
||
<ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
|
||
</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(`
|
||
<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>
|
||
</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(`
|
||
<div class="ag-filter-filter">
|
||
<ag-input-text-field class="ag-date-filter" data-ref="eDateInput"></ag-input-text-field>
|
||
</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(`
|
||
<div class="ag-floating-filter-input" role="presentation" data-ref="eFloatingFilterInputContainer"></div>
|
||
`)}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.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return Wft}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(){return this.createManagedBean(new oht)}};function Loi(e){var t;return!!((t=e.filterManager)!=null&&t.isQuickFilterPresent())}function Foi(e){return e.gos.get("quickFilterText")}function Noi(e){var t;(t=e.filterManager)==null||t.resetQuickFilterCache()}var koi=class extends ct{constructor(){super(...arguments),this.beanName="quickFilterService",this.quickFilter=null,this.quickFilterParts=null}wireBeans(e){this.valueService=e.valueService,this.columnModel=e.columnModel,this.rowModel=e.rowModel,this.pivotResultColsService=e.pivotResultColsService}postConstruct(){const e=this.resetQuickFilterCache.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{this.gos.get("includeHiddenColumnsInQuickFilter")||this.resetQuickFilterCache()}}),this.addManagedPropertyListener("quickFilterText",t=>this.setQuickFilter(t.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onQuickFilterColumnConfigChanged()),this.quickFilter=this.parseQuickFilter(this.gos.get("quickFilterText")),this.parser=this.gos.get("quickFilterParser"),this.matcher=this.gos.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setQuickFilterParserAndMatcher())}refreshQuickFilterCols(){var i;const e=this.columnModel.isPivotMode(),t=this.columnModel.getAutoCols(),n=this.columnModel.getColDefCols();let r=(e&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")?(i=this.pivotResultColsService.getPivotResultCols())==null?void 0:i.list:n)??[];t&&(r=r.concat(t)),this.colsForQuickFilter=this.gos.get("includeHiddenColumnsInQuickFilter")?r:r.filter(o=>o.isVisible()||o.isRowGroupActive())}isQuickFilterPresent(){return this.quickFilter!==null}doesRowPassQuickFilter(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(t,e):this.quickFilterParts.every(n=>t?this.doesRowPassQuickFilterCache(e,n):this.doesRowPassQuickFilterNoCache(e,n))}resetQuickFilterCache(){this.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}setQuickFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseQuickFilter(e){return zt(e)?Li(this.gos)?e.toUpperCase():(rt("Quick filtering only works with the Client-Side Row Model"),null):null}setQuickFilter(e){if(e!=null&&typeof e!="string"){rt(`Grid option quickFilterText only supports string inputs, received: ${typeof e}`);return}const t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setQuickFilterParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),n=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,n&&(this.setQuickFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onQuickFilterColumnConfigChanged(){this.refreshQuickFilterCols(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassQuickFilterNoCache(e,t){return this.colsForQuickFilter.some(n=>{const r=this.getQuickFilterTextForColumn(n,e);return zt(r)&&r.indexOf(t)>=0})}doesRowPassQuickFilterCache(e,t){return this.checkGenerateQuickFilterAggregateText(e),e.quickFilterAggregateText.indexOf(t)>=0}doesRowPassQuickFilterMatcher(e,t){let n;e?(this.checkGenerateQuickFilterAggregateText(t),n=t.quickFilterAggregateText):n=this.getQuickFilterAggregateText(t);const{quickFilterParts:r,matcher:i}=this;return i(r,n)}checkGenerateQuickFilterAggregateText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getQuickFilterAggregateText(e))}getQuickFilterTextForColumn(e,t){let n=this.valueService.getValue(e,t,!0);const r=e.getColDef();if(r.getQuickFilterText){const i=this.gos.addGridCommonParams({value:n,node:t,data:t.data,column:e,colDef:r});n=r.getQuickFilterText(i)}return zt(n)?n.toString().toUpperCase():null}getQuickFilterAggregateText(e){const t=[];return this.colsForQuickFilter.forEach(n=>{const r=this.getQuickFilterTextForColumn(n,e);zt(r)&&t.push(r)}),t.join(`
|
||
`)}},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">
|
||
<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>
|
||
</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">
|
||
<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>
|
||
</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">
|
||
<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>
|
||
</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;return a<0&&(a=0,l=i,u=!0),a>=o?(a=-1,this.setCurrentHeaderRowWithoutSpan(-1)):c!==void 0&&(this.currentHeaderRowWithoutSpan=c),!u&&!l?!1:this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a,column:l},allowUserOverride:!0,event:n})}setCurrentHeaderRowWithoutSpan(e){this.currentHeaderRowWithoutSpan=e}navigateHorizontally(e,t=!1,n){const r=this.focusService.getFocusedHeader(),i=e===2,o=this.gos.get("enableRtl");let s,a;if(this.currentHeaderRowWithoutSpan!==-1?r.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=r.headerRowIndex,i!==o?(a="Before",s=this.headerPositionUtils.findHeader(r,a)):(a="After",s=this.headerPositionUtils.findHeader(r,a)),s||!t)return this.focusService.focusHeaderPosition({headerPosition:s,direction:a,fromTab:t,allowUserOverride:!0,event:n});if(t){const l=this.gos.getCallback("tabToNextHeader");if(l)return this.focusService.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:s,direction:a})}return this.focusNextHeaderRow(r,a,n)}focusNextHeaderRow(e,t,n){const r=e.headerRowIndex;let i=null,o;if(t==="Before"?r>0&&(o=r-1,this.currentHeaderRowWithoutSpan-=1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")):(o=r+1,this.currentHeaderRowWithoutSpan<this.getHeaderRowCount()?this.currentHeaderRowWithoutSpan+=1:this.setCurrentHeaderRowWithoutSpan(-1),i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start")),!i)return!1;const{column:s,headerRowIndex:a}=this.headerPositionUtils.getHeaderIndexToFocus(i.column,i==null?void 0:i.headerRowIndex);return this.focusService.focusHeaderPosition({headerPosition:{column:s,headerRowIndex:a},direction:t,fromTab:!0,allowUserOverride:!0,event:n})}scrollToColumn(e,t="After"){if(e.getPinned())return;let n;if(Ss(e)){const r=e.getDisplayedLeafColumns();n=t==="Before"?Dn(r):r[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n)}},cht=class extends ct{wireBeans(e){this.animationFrameService=e.animationFrameService,this.headerNavigationService=e.headerNavigationService,this.focusService=e.focusService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.ctrlsService=e.ctrlsService,this.filterManager=e.filterManager,this.menuService=e.menuService}setComp(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new Rv(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),this.onPivotModeChanged(),this.setupHeaderHeight();const r=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:r}),this.mockContextMenuForIPad(r),this.ctrlsService.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({displayedColumnsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>this.animationFrameService.requestAnimationFrame(()=>e()),gridStylesChanged:e,advancedFilterEnabledChanged:e})}getHeaderHeight(){return this.headerHeight}setHeaderHeight(){var o;const{columnModel:e}=this;let t=0;const n=this.columnModel.getGroupRowsHeight().reduce((s,a)=>s+a,0),r=this.columnModel.getColumnHeaderRowHeight();if((o=this.filterManager)!=null&&o.hasFloatingFilters()&&(t+=e.getFloatingFiltersHeight()),t+=n,t+=r,this.headerHeight===t)return;this.headerHeight=t;const i=`${t+1}px`;this.comp.setHeightAndMinHeight(i),this.eventService.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(){const e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)}onDisplayedColumnsChanged(){const t=this.visibleColsService.getAllCols().some(n=>n.isSpanHeaderHeight());this.comp.addOrRemoveCssClass("ag-header-allow-overflow",t)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),n=e.shiftKey,r=n!==t?2:3;(this.headerNavigationService.navigateHorizontally(r,!0,e)||!n&&this.focusService.focusOverlay(!1)||this.focusService.focusNextGridCoreContainer(n,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;switch(e.key){case Je.LEFT:t=2;case Je.RIGHT:{zt(t)||(t=3),this.headerNavigationService.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case Je.UP:t=0;case Je.DOWN:{zt(t)||(t=1),this.headerNavigationService.navigateVertically(t,null,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e;!t&&this.eGui.contains(gi(this.gos))||this.eGui.contains(t)||this.focusService.clearFocusedHeader()}onHeaderContextMenu(e,t,n){var i;if(!e&&!n||!this.menuService.isHeaderContextMenuEnabled())return;const{target:r}=e??t;(r===this.eGui||r===((i=this.ctrlsService.getHeaderRowContainerCtrl())==null?void 0:i.getViewportElement()))&&this.menuService.showHeaderContextMenu(void 0,e,n)}mockContextMenuForIPad(e){if(!Ev())return;const t=new Cm(this.eGui),n=r=>{e(void 0,r.touchStart,r.touchEvent)};this.addManagedListeners(t,{longTap:n}),this.addDestroyFunc(()=>t.destroy())}},o6e=class extends ct{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}wireBeans(e){this.visibleColsService=e.visibleColsService,this.scrollVisibleService=e.scrollVisibleService}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=La(this.gos,"print"),t=this.visibleColsService.getBodyContainerWidth(),n=this.visibleColsService.getColsLeftWidth(),r=this.visibleColsService.getDisplayedColumnsRightWidth();let i;e?i=t+n+r:(i=t,this.addSpacer&&(this.gos.get("enableRtl")?n:r)===0&&this.scrollVisibleService.isVerticalScrollShowing()&&(i+=this.scrollVisibleService.getScrollbarWidth())),this.callback(i)}},Zoi=class extends ct{constructor(e){super(),this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}wireBeans(e){this.funcColsService=e.funcColsService}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;t&&t.forEach(n=>{n.isPrimary()&&(n.isAnyFunctionActive()||(n.isAllowValue()?this.columnsToAggregate.push(n):n.isAllowRowGroup()?this.columnsToGroup.push(n):n.isAllowPivot()&&this.columnsToPivot.push(n)))})}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){this.columnsToAggregate.length>0&&this.funcColsService.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.funcColsService.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.funcColsService.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function uht(e){const{isFromHeader:t,fromLeft:n,xPosition:r,fromEnter:i,fakeEvent:o,pinned:s,gos:a,columnModel:l,columnMoveService:c,visibleColsService:u}=e;let{allMovingColumns:f}=e;if(t){const w=[];f.forEach(x=>{var O;let E=null,R=x.getParent();for(;R!=null&&R.getDisplayedLeafColumns().length===1;)E=R,R=R.getParent();E!=null?(!!((O=E.getColGroupDef())!=null&&O.marryChildren)?E.getProvidedColumnGroup().getLeafColumns():E.getLeafColumns()).forEach(_=>{w.includes(_)||w.push(_)}):w.includes(x)||w.push(x)}),f=w}const h=f.slice();l.sortColsLikeCols(h);const g=nsi({movingCols:h,draggingRight:n,xPosition:r,pinned:s,gos:a,columnModel:l,visibleColsService:u}),p=Joi(h,l);if(g.length===0)return;const m=g[0];let v=p!==null&&!i;if(t&&(v=p!==null),v&&!o&&(!n&&m>=p||n&&m<=p))return;const C=u.getAllCols(),y=[];let b=null;for(let w=0;w<g.length;w++){const x=g[w],E=c.getProposedColumnOrder(h,x);if(!c.doesOrderPassRules(E))continue;const R=E.filter(T=>C.includes(T));if(b===null)b=R;else if(!vc(R,b))break;const O=esi(E);y.push({move:x,fragCount:O})}if(y.length===0)return;y.sort((w,x)=>w.fragCount-x.fragCount);const S=y[0].move;if(!(S>l.getCols().length-f.length))return{columns:f,toIndex:S}}function s6e(e){const{columns:t,toIndex:n}=uht(e)||{},{finished:r,columnMoveService:i}=e;return!t||n==null?null:(i.moveColumns(t,n,"uiColumnMoved",r),r?null:{columns:t,toIndex:n})}function Joi(e,t){const n=t.getCols(),r=Qni(e.map(l=>n.indexOf(l))),i=r[0];return Dn(r)-i!==r.length-1?null:i}function esi(e){function t(r){const i=[];let o=r.getOriginalParent();for(;o!=null;)i.push(o),o=o.getOriginalParent();return i}let n=0;for(let r=0;r<e.length-1;r++){let i=t(e[r]),o=t(e[r+1]);[i,o]=i.length>o.length?[i,o]:[o,i],i.forEach(s=>{o.indexOf(s)===-1&&n++})}return n}function tsi(e,t){switch(t){case"left":return e.getLeftCols();case"right":return e.getRightCols();default:return e.getCenterCols()}}function nsi(e){const{movingCols:t,draggingRight:n,xPosition:r,pinned:i,gos:o,columnModel:s,visibleColsService:a}=e;if(o.get("suppressMovableColumns")||t.some(b=>b.getColDef().suppressMovable))return[];const c=tsi(a,i),u=s.getCols(),f=c.filter(b=>ll(t,b)),h=c.filter(b=>!ll(t,b)),g=u.filter(b=>!ll(t,b));let p=0,m=r;if(n){let b=0;f.forEach(S=>b+=S.getActualWidth()),m-=b}if(m>0){for(let b=0;b<h.length;b++){const S=h[b];if(m-=S.getActualWidth(),m<0)break;p++}n&&p++}let v;if(p>0){const b=h[p-1];v=g.indexOf(b)+1}else v=g.indexOf(h[0]),v===-1&&(v=0);const C=[v],y=(b,S)=>b-S;if(n){let b=v+1;const S=u.length-1;for(;b<=S;)C.push(b),b++;C.sort(y)}else{let b=v;const S=u.length-1;let w=u[b];for(;b<=S&&c.indexOf(w)<0;)b++,C.push(b),w=u[b];b=v-1;const x=0;for(;b>=x;)C.push(b),b--;C.sort(y).reverse()}return C}function OH(e){var c;const{pinned:t,fromKeyboard:n,gos:r,ctrlsService:i,useHeaderRow:o,skipScrollPadding:s}=e;let a=(c=i.getHeaderRowContainerCtrl(t))==null?void 0:c.getViewportElement(),{x:l}=e;return a?(n&&(l-=a.getBoundingClientRect().left),r.get("enableRtl")&&(o&&(a=a.querySelector(".ag-header-row")),l=a.clientWidth-l),t==null&&!s&&(l+=i.get("center").getCenterViewportScrollLeft()),l):0}function hw(e,t){for(const n of e)n.setMoving(t,"uiColumnMoved")}var RLe=7,ffe=100,pF=ffe/2,rsi=5,isi=100,osi=class extends ct{constructor(e){super(),this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.isCenterContainer=!zt(e)}wireBeans(e){this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.columnMoveService=e.columnMoveService,this.dragAndDropService=e.dragAndDropService,this.ctrlsService=e.ctrlsService}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){var t;const e=((t=this.lastDraggingEvent)==null?void 0:t.dragItem.columns)??[];for(const n of e){const r=n.getPinned();if(n.getColDef().lockPinned){if(r==this.pinned)return"move";continue}if(r===this.pinned||!this.pinned)return"move";if(!r&&this.pinned)return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem.columns;if(e.dragSource.type===0)this.setColumnsVisible(t,!0,"uiColumnDragged");else{const r=e.dragItem.visibleState,i=(t||[]).filter(o=>r[o.getId()]);this.setColumnsVisible(i,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(t,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,n=!1,r=!1){const i=this.gos.get("suppressMoveWhenColumnDragging");if(r&&!i){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!r&&ar(e.hDirection))return;const{pinned:o,gos:s,ctrlsService:a}=this,l=OH({x:e.x,pinned:o,gos:s,ctrlsService:a});t||this.checkCenterForScrolling(l),i?this.handleColumnDragWhileSuppressingMovement(e,t,n,l,r):this.handleColumnDragWhileAllowingMovement(e,t,n,l,r)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,n){if(!e)return;const r=e.filter(i=>!i.getColDef().lockVisible);this.columnModel.setColsVisible(r,t,n)}finishColumnMoving(){if(this.clearHighlighted(),!this.lastMovedInfo)return;const{columns:e,toIndex:t}=this.lastMovedInfo;this.columnMoveService.moveColumns(e,t,"uiColumnMoved",!0)}handleColumnDragWhileSuppressingMovement(e,t,n,r,i){const o=this.getAllMovingColumns(e,!0);if(i){const s=this.isAttemptingToPin(o);s&&this.attemptToPinColumns(o,void 0,!0);const{fromLeft:a,xPosition:l}=this.getNormalisedXPositionInfo(o,s)||{};if(a==null||l==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:o,xPosition:l,fromEnter:t,fakeEvent:n,fromLeft:a})}else{if(!this.dragAndDropService.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(o,r)}}handleColumnDragWhileAllowingMovement(e,t,n,r,i){const o=this.getAllMovingColumns(e),s=this.normaliseDirection(e.hDirection)===1,a=e.dragSource.type===1,l=this.getMoveColumnParams({allMovingColumns:o,isFromHeader:a,xPosition:r,fromLeft:s,fromEnter:t,fakeEvent:n}),c=s6e({...l,finished:i});c&&(this.lastMovedInfo=c)}getAllMovingColumns(e,t=!1){const n=e.dragSource.getDragItem();let r=null;t?(r=n.columnsInSplit,r||(r=n.columns)):r=n.columns;const i=o=>o.getColDef().lockPinned?o.getPinned()==this.pinned:!0;return r?r.filter(i):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:n,xPosition:r,fromLeft:i,fromEnter:o,fakeEvent:s}=e,{pinned:a,gos:l,columnModel:c,columnMoveService:u,visibleColsService:f}=this;return{allMovingColumns:t,isFromHeader:n,fromLeft:i,xPosition:r,pinned:a,fromEnter:o,fakeEvent:s,gos:l,columnModel:c,columnMoveService:u,visibleColsService:f}}findFirstAndLastMovingColumns(e){const t=e.length;let n,r;for(let i=0;i<=t;i++){if(!n){const o=e[i];o.getLeft()!=null&&(n=o)}if(!r){const o=e[t-1-i];o.getLeft()!=null&&(r=o)}if(n&&r)break}return{firstMovingCol:n,lastMovingCol:r}}highlightHoveredColumn(e,t){var u;const{gos:n,columnModel:r}=this,i=n.get("enableRtl"),o=r.getCols().filter(f=>f.isVisible()&&f.getPinned()===this.pinned);let s=null,a=null,l=null;for(const f of o){if(a=f.getActualWidth(),s=this.getNormalisedColumnLeft(f,0,i),s!=null){const h=s+a;if(s<=t&&h>=t){l=f;break}}s=null,a=null}if(l)e.indexOf(l)!==-1&&(l=null);else{for(let f=o.length-1;f>=0;f--){const h=o[f],g=o[f].getParent();if(!g){l=h;break}const p=g==null?void 0:g.getDisplayedLeafColumns();if(p.length){l=Dn(p);break}}if(!l)return;s=this.getNormalisedColumnLeft(l,0,i),a=l.getActualWidth()}if(((u=this.lastHighlightedColumn)==null?void 0:u.column)!==l&&this.clearHighlighted(),l==null||s==null||a==null)return;let c;t-s<a/2!==i?c=0:c=1,l.setHighlighted(c),this.lastHighlightedColumn={column:l,position:c}}getNormalisedXPositionInfo(e,t){const{gos:n,visibleColsService:r}=this,i=n.get("enableRtl"),{firstMovingCol:o,column:s,position:a}=this.getColumnMoveAndTargetInfo(e,t,i);if(!o||!s||a==null)return;const l=r.getAllCols(),c=l.indexOf(o),u=l.indexOf(s),f=a===0!==i,h=c<u||c===u&&!f;let g=0;if(f?h&&(g-=1):h||(g+=1),u+g===c)return;const p=l[u+g];if(!p)return;const m=this.getNormalisedColumnLeft(p,20,i);return{fromLeft:h,xPosition:m}}getColumnMoveAndTargetInfo(e,t,n){const r=this.lastHighlightedColumn||{},{firstMovingCol:i,lastMovingCol:o}=this.findFirstAndLastMovingColumns(e);if(!i||!o||r.column||!t)return{firstMovingCol:i,...r};const a=this.getPinDirection()==="left";return{firstMovingCol:i,position:a?1:0,column:a!==n?i:o}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case 0:return 1;case 1:return 0}return e}getNormalisedColumnLeft(e,t,n){const{gos:r,ctrlsService:i}=this,o=e.getLeft();if(o==null)return null;const s=e.getActualWidth();return OH({x:n?o+s-t:o+t,pinned:e.getPinned(),useHeaderRow:n,skipScrollPadding:!0,gos:r,ctrlsService:i})}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,n=this.failedMoveAttempts>RLe;return t&&n||e.some(r=>r.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:n,fromEnter:r,fakeEvent:i,fromLeft:o}=e,s=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:n,fromLeft:o,fromEnter:r,fakeEvent:i}),{columns:a,toIndex:l}=uht(s)||{};a&&l!=null&&(this.lastMovedInfo={columns:a,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){this.lastHighlightedColumn&&(this.lastHighlightedColumn.column.setHighlighted(null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.ctrlsService.get("center"),n=t.getCenterViewportScrollLeft(),r=n+t.getCenterWidth();this.gos.get("enableRtl")?(this.needToMoveRight=e<n+pF,this.needToMoveLeft=e>r-pF):(this.needToMoveLeft=e<n+pF,this.needToMoveRight=e>r-pF),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){var e;this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),isi),(e=this.dragAndDropService.getDragAndDropImageComponent())==null||e.setIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){var e;this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,(e=this.dragAndDropService.getDragAndDropImageComponent())==null||e.setIcon(this.getIconName()))}moveInterval(){var r,i;let e;this.intervalCount++,e=10+this.intervalCount*rsi,e>ffe&&(e=ffe);let t=null;const n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{if(this.failedMoveAttempts++,this.failedMoveAttempts<=RLe+1)return;if((r=this.dragAndDropService.getDragAndDropImageComponent())==null||r.setIcon("pinned"),!this.gos.get("suppressMoveWhenColumnDragging")){const o=(i=this.lastDraggingEvent)==null?void 0:i.dragItem.columns;this.attemptToPinColumns(o,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,n=!1){const r=(e||[]).filter(i=>!i.getColDef().lockPinned);return r.length?(n&&(t=this.getPinDirection()),this.columnModel.setColsPinned(r,t,"uiColumnDragged"),n&&this.dragAndDropService.nudge(),r.length):0}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}},ssi=class extends ct{wireBeans(e){this.dragAndDropService=e.dragAndDropService,this.columnModel=e.columnModel,this.ctrlsService=e.ctrlsService}constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){this.ctrlsService.whenReady(this,e=>{switch(this.pinned){case"left":this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.left.getContainerElement()],[e.bottomLeft.getContainerElement()],[e.topLeft.getContainerElement()]];break;case"right":this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.right.getContainerElement()],[e.bottomRight.getContainerElement()],[e.topRight.getContainerElement()]];break;default:this.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.center.getViewportElement()],[e.bottomCenter.getViewportElement()],[e.topCenter.getViewportElement()]];break}}),this.moveColumnFeature=this.createManagedBean(new osi(this.pinned)),this.bodyDropPivotTarget=this.createManagedBean(new Zoi(this.pinned)),this.dragAndDropService.addDropTarget(this),this.addDestroyFunc(()=>this.dragAndDropService.removeDropTarget(this))}isInterestedIn(e){return e===1||e===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.columnModel.isPivotMode()&&e.dragSource.type===0}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}},asi=class extends ct{wireBeans(e){this.horizontalResizeService=e.horizontalResizeService,this.pinnedWidthService=e.pinnedWidthService,this.ctrlsService=e.ctrlsService,this.columnSizeService=e.columnSizeService,this.columnAutosizeService=e.columnAutosizeService}constructor(e,t,n,r,i){super(),this.pinned=e,this.column=t,this.eResize=n,this.comp=r,this.ctrl=i}postConstruct(){const e=[];let t,n;const r=()=>{if(Mn(this.eResize,t),!t)return;const s=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(e.push(s),n){const a=this.gos.get("skipHeaderOnAutoSize"),l=()=>{this.columnAutosizeService.autoSizeColumn(this.column,"uiColumnResized",a)};this.eResize.addEventListener("dblclick",l);const c=new Cm(this.eResize);c.addEventListener("doubleTap",l),e.push(()=>{this.eResize.removeEventListener("dblclick",l),c.removeEventListener("doubleTap",l),c.destroy()})}},i=()=>{e.forEach(s=>s()),e.length=0},o=()=>{const s=this.column.isResizable(),a=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(s!==t||a!==n)&&(t=s,n=a,i(),r())};o(),this.addDestroyFunc(i),this.ctrl.setRefreshFunction("resize",o)}onResizing(e,t){const{column:n,lastResizeAmount:r,resizeStartWidth:i}=this,o=this.normaliseResizeAmount(t),s=i+o,a=[{key:n,newWidth:s}];if(this.column.getPinned()){const l=this.pinnedWidthService.getPinnedLeftWidth(),c=this.pinnedWidthService.getPinnedRightWidth(),u=dE(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50;if(l+c+(o-r)>u)return}this.lastResizeAmount=o,this.columnSizeService.setColumnWidths(a,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const n=this.pinned!=="left",r=this.pinned==="right";return this.gos.get("enableRtl")?n&&(t*=-1):r&&(t*=-1),t}},lsi=class extends ct{constructor(e){super(),this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1,this.column=e}wireBeans(e){this.rowModel=e.rowModel,this.selectionService=e.selectionService}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(gi(this.gos))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new UQ),this.cbSelectAll.addCssClass("ag-header-select-all"),jo(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedEventListeners({newColumnsLoaded:this.onNewColumnsLoaded.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:this.onSelectionChanged.bind(this),paginationChanged:this.onSelectionChanged.bind(this),modelUpdated:this.onModelChanged.bind(this)}),this.addManagedListeners(this.cbSelectAll,{fieldValueChanged:this.onCbSelectAll.bind(this)}),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onNewColumnsLoaded(){this.showOrHideSelectAll()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.selectionService.getSelectAllState(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e);const t=this.selectionService.hasNodesToSelect(this.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setDisabled(!t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){const e=this.localeService.getLocaleTextFunc(),n=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll",`${r} (${n})`):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(e("ariaHeaderSelection","Column with Header Selection")),this.headerCellCtrl.announceAriaDescription()}checkSelectionType(e){return xx(this.gos)?!0:(rt(`${e} is only available if using 'multiRow' selection mode.`),!1)}checkRightRowModelType(e){return Li(this.gos)||ml(this.gos)?!0:(rt(`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${this.rowModel.getType()}.`),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.isFilteredOnly(),n=this.isCurrentPageOnly();let r="uiSelectAll";n?r="uiSelectAllCurrentPage":t&&(r="uiSelectAllFiltered");const i={source:r,justFiltered:t,justCurrentPage:n};e?this.selectionService.selectAllRowNodes(i):this.selectionService.deselectAllRowNodes(i)}isCheckboxSelection(){const e=this.gos.get("rowSelection"),t=typeof e=="object"&&vH(e)&&k_(this.column),n=this.column.getColDef().headerCheckboxSelection;let r=!1;return t?r=!0:typeof n=="function"?r=n(this.gos.addGridCommonParams({column:this.column,colDef:this.column.getColDef()})):r=!!n,r&&this.checkRightRowModelType(t?"headerCheckbox":"headerCheckboxSelection")&&this.checkSelectionType(t?"headerCheckbox":"headerCheckboxSelection")}isFilteredOnly(){const e=this.gos.get("rowSelection");return typeof e=="object"?e.mode==="multiRow"&&e.selectAll==="filtered":!!this.column.getColDef().headerCheckboxSelectionFilteredOnly}isCurrentPageOnly(){const e=this.gos.get("rowSelection");return typeof e=="object"?e.mode==="multiRow"&&e.selectAll==="currentPage":!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly}},csi=class extends QQ{constructor(e,t,n){super(e,t,n),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map,this.column=e}setComp(e,t,n,r,i){this.comp=e,i=z_(this,this.beans.context,i),this.setGui(t,i),this.updateState(),this.setupWidth(i),this.setupMovingCss(i),this.setupMenuClass(i),this.setupSortableClass(i),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:r,checkMeasuringCallback:s=>this.setRefreshFunction("measuring",s),compBean:i}),this.addColumnHoverListener(i),this.setupFilterClass(i),this.setupClassesFromColDef(),this.setupTooltip(i),this.addActiveHeaderMouseListeners(i),this.setupSelectAll(i),this.setupUserComp(i),this.refreshAria(),this.resizeFeature=i.createManagedBean(new asi(this.getPinned(),this.column,n,e,this)),i.createManagedBean(new t6e([this.column],t)),i.createManagedBean(new e6e(this.column,t,this.beans)),i.createManagedBean(new Rv(t,{shouldStopEventPropagation:s=>this.shouldStopEventPropagation(s),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(i),i.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],()=>this.refresh(i)),i.addManagedListeners(this.column,{colDefChanged:()=>this.refresh(i)}),i.addManagedListeners(this.column,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const o=()=>this.checkDisplayName(i);i.addManagedEventListeners({columnValueChanged:o,columnRowGroupChanged:o,columnPivotChanged:o,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),i.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){if(!this.column.isResizable())return;const n=this.column.getActualWidth(),r=this.column.getMinWidth(),i=this.column.getMaxWidth(),o=Math.min(Math.max(n+e,r),i);this.beans.columnSizeService.setColumnWidths([{key:this.column,newWidth:o}],t,!0,"uiColumnResized")}moveHeader(e){const{eGui:t,beans:n,column:r,ctrlsService:i}=this,{gos:o,columnModel:s,columnMoveService:a,visibleColsService:l}=n,c=this.getPinned(),u=t.getBoundingClientRect().left,f=r.getActualWidth(),h=o.get("enableRtl"),p=OH({x:e===0!==h?u-20:u+f+20,pinned:c,fromKeyboard:!0,gos:o,ctrlsService:i}),m=this.focusService.getFocusedHeader();s6e({allMovingColumns:[r],isFromHeader:!0,fromLeft:e===1,xPosition:p,pinned:c,fromEnter:!1,fakeEvent:!1,gos:o,columnModel:s,columnMoveService:a,visibleColsService:l,finished:!0}),i.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(r,"auto"),(!this.isAlive()||this.beans.gos.get("ensureDomOrder"))&&m&&this.restoreFocus(m)}restoreFocus(e){this.focusService.focusHeaderPosition({headerPosition:{...e,column:this.column}})}setupUserComp(e){const t=this.lookupUserCompDetails(e);this.setCompDetails(t)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(e){const t=this.createParams(e),n=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(n,t)}createParams(e){return this.gos.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&this.menuService.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!this.openFilterEnabled||this.menuService.isLegacyMenuEnabled(),showColumnMenu:n=>{this.menuService.showColumnMenu({column:this.column,buttonElement:n,positionBy:"button"})},showColumnMenuAfterMouseClick:n=>{this.menuService.showColumnMenu({column:this.column,mouseEvent:n,positionBy:"mouse"})},showFilter:n=>{this.menuService.showFilterMenu({column:this.column,buttonElement:n,containerType:"columnFilter",positionBy:"button"})},progressSort:n=>{this.beans.sortController.progressSort(this.column,!!n,"uiColumnSorted")},setSort:(n,r)=>{this.beans.sortController.setSortForColumn(this.column,n,!!r,"uiColumnSorted")},eGridHeader:this.getGui(),setTooltip:(n,r)=>{this.setupTooltip(e,n,r)}})}setupSelectAll(e){this.selectAllFeature=e.createManagedBean(new lsi(this.column)),this.selectAllFeature.setComp(this)}getSelectAllGui(){return this.selectAllFeature.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===Je.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===Je.ENTER&&this.onEnterKeyDown(e),e.key===Je.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){if(e.ctrlKey||e.metaKey)this.showMenuOnKeyPress(e,!0);else if(this.sortable){const t=e.shiftKey;this.beans.sortController.progressSort(this.column,t,"uiColumnSorted")}}showMenuOnKeyPress(e,t){const n=this.comp.getUserCompInstance();!n||!(n instanceof lfe)||n.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){if(!this.getGui().contains(e.relatedTarget)){const t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column),this.announceAriaDescription()}this.focusService.isKeyboardMode()&&this.setActiveHeader(!0)}onFocusOut(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t,n){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));const r=this.gos.get("tooltipShowMode")==="whenTruncated",i=this.eGui,o=this.column.getColDef();!n&&r&&!o.headerComponent&&(n=()=>{const l=i.querySelector(".ag-header-cell-text");return l?l.scrollWidth>l.clientWidth:!0});const s={getColumn:()=>this.column,getColDef:()=>this.column.getColDef(),getGui:()=>i,getLocation:()=>"header",getTooltipValue:()=>t??this.column.getColDef().headerTooltip,shouldDisplayTooltip:n},a=e.createManagedBean(new Lb(s));this.setRefreshFunction("tooltip",()=>a.refreshToolTip())}setupClassesFromColDef(){const e=()=>{const t=this.column.getColDef(),n=Zft(t,this.gos,this.column,null),r=this.userHeaderClasses;this.userHeaderClasses=new Set(n),n.forEach(i=>{r.has(i)?r.delete(i):this.comp.addOrRemoveCssClass(i,!0)}),r.forEach(i=>this.comp.addOrRemoveCssClass(i,!1))};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){if(this.dragSourceElement=e,this.removeDragSource(),!e||!this.draggable)return;const{column:t,beans:n,displayName:r,dragAndDropService:i,gos:o}=this,{columnModel:s}=n;let a=!this.gos.get("suppressDragLeaveHidesColumns");const l=this.dragSource={type:1,eElement:e,getDefaultIconName:()=>a?"hide":"notAllowed",getDragItem:()=>this.createDragItem(t),dragItemName:r,onDragStarted:()=>{a=!o.get("suppressDragLeaveHidesColumns"),hw([t],!0)},onDragStopped:()=>hw([t],!1),onDragCancelled:()=>hw([t],!1),onGridEnter:c=>{var u;if(a){const f=((u=c==null?void 0:c.columns)==null?void 0:u.filter(h=>!h.getColDef().lockVisible))||[];s.setColsVisible(f,!0,"uiColumnMoved")}},onGridExit:c=>{var u;if(a){const f=((u=c==null?void 0:c.columns)==null?void 0:u.filter(h=>!h.getColDef().lockVisible))||[];s.setColsVisible(f,!1,"uiColumnMoved")}}};i.addDragSource(l,!0)}createDragItem(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t}}updateState(){this.menuEnabled=this.menuService.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=this.menuService.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(e){this.updateState(),this.refreshHeaderComp(e),this.refreshAria(),Object.values(this.refreshFunctions).forEach(t=>t())}refreshHeaderComp(e){const t=this.lookupUserCompDetails(e);(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==t.componentClass?this.attemptHeaderCompRefresh(t.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(t)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.columnNameService.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(e){this.displayName!==this.calculateDisplayName()&&this.refresh(e)}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const n=this.column.getActualWidth();this.comp.setWidth(`${n}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const n=this.column.isFilterActive();this.comp.addOrRemoveCssClass("ag-header-cell-filtered",n),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,n=e===1;this.comp.addOrRemoveCssClass("ag-header-highlight-before",t),this.comp.addOrRemoveCssClass("ag-header-highlight-after",n)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:n,beans:r}=this,i=this.beans.columnModel.getGroupRowsHeight(),o=i.reduce((f,h)=>f+=h,0)===0;if(n.addOrRemoveCssClass("ag-header-parent-hidden",o),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),n.addOrRemoveCssClass("ag-header-span-height",!1),n.addOrRemoveCssClass("ag-header-span-total",!1);return}const{numberOfParents:s,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();n.addOrRemoveCssClass("ag-header-span-height",s>0);const{columnModel:l}=r,c=l.getColumnHeaderRowHeight();if(s===0){n.addOrRemoveCssClass("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${c}px`);return}n.addOrRemoveCssClass("ag-header-span-total",a);let u=0;for(let f=0;f<s;f++)u+=i[i.length-1-f];e.style.setProperty("top",`${-u}px`),e.style.setProperty("height",`${c+u}px`)}refreshAriaSort(){if(this.sortable){const e=this.localeService.getLocaleTextFunc(),t=this.beans.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(Iri(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){const e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!this.menuService.isLegacyMenuEnabled()){const e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){const e=this.localeService.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(e,t){t!=null?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)}announceAriaDescription(){if(!this.eGui.contains(gi(this.beans.gos)))return;const e=Array.from(this.ariaDescriptionProperties.keys()).sort((t,n)=>t==="filter"?-1:n.charCodeAt(0)-t.charCodeAt(0)).map(t=>this.ariaDescriptionProperties.get(t)).join(". ");this.beans.ariaAnnouncementService.announceValue(e,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(e){const t=()=>{if(!this.gos.get("columnHoverHighlight"))return;const n=this.beans.columnHoverService.isHovered(this.column);this.comp.addOrRemoveCssClass("ag-column-hover",n)};e.addManagedEventListeners({columnHoverChanged:t}),t()}getColId(){return this.column.getColId()}addActiveHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),n=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column),r=i=>this.handleContextMenuMouseEvent(i,void 0,this.column);e.addManagedListeners(this.getGui(),{mouseenter:t,mouseleave:t,click:n,contextmenu:r})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventService.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.addOrRemoveCssClass("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return t instanceof lfe?t.getAnchorElementForMenu(e):this.getGui()}destroy(){super.destroy()}},usi=class extends ct{wireBeans(e){this.horizontalResizeService=e.horizontalResizeService,this.autoWidthCalculator=e.autoWidthCalculator,this.visibleColsService=e.visibleColsService,this.columnSizeService=e.columnSizeService,this.columnAutosizeService=e.columnAutosizeService}constructor(e,t,n,r){super(),this.eResize=t,this.comp=e,this.pinned=n,this.columnGroup=r}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const e=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(e),!this.gos.get("suppressAutoSize")){const t=this.gos.get("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",()=>{const n=[];this.columnGroup.getDisplayedLeafColumns().forEach(i=>{i.getColDef().suppressAutoSize||n.push(i.getColId())}),n.length>0&&this.columnAutosizeService.autoSizeCols({colKeys:n,skipHeader:t,stopAtGroup:this.columnGroup,source:"uiColumnResized"}),this.resizeLeafColumnsToFit("uiColumnResized")})}}onResizeStart(e){const t=this.getInitialValues(e);this.storeLocalValues(t),this.toggleColumnResizing(!0)}onResizing(e,t,n="uiColumnResized"){const r=this.normaliseDragChange(t),i=this.resizeStartWidth+r;this.resizeColumnsFromLocalValues(i,n,e)}getInitialValues(e){const t=this.getColumnsToResize(),n=this.getInitialSizeOfColumns(t),r=this.getSizeRatiosOfColumns(t,n),i={columnsToResize:t,resizeStartWidth:n,resizeRatios:r};let o=null;if(e&&(o=this.visibleColsService.getGroupAtDirection(this.columnGroup,"After")),o){const s=o.getDisplayedLeafColumns(),a=i.groupAfterColumns=s.filter(c=>c.isResizable()),l=i.groupAfterStartWidth=this.getInitialSizeOfColumns(a);i.groupAfterRatios=this.getSizeRatiosOfColumns(a,l)}else i.groupAfterColumns=void 0,i.groupAfterStartWidth=void 0,i.groupAfterRatios=void 0;return i}storeLocalValues(e){const{columnsToResize:t,resizeStartWidth:n,resizeRatios:r,groupAfterColumns:i,groupAfterStartWidth:o,groupAfterRatios:s}=e;this.resizeCols=t,this.resizeStartWidth=n,this.resizeRatios=r,this.resizeTakeFromCols=i,this.resizeTakeFromStartWidth=o,this.resizeTakeFromRatios=s}clearLocalValues(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}resizeLeafColumnsToFit(e){const t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),n=this.getInitialValues();t>n.resizeStartWidth&&this.resizeColumns(n,t,e,!0)}resizeColumnsFromLocalValues(e,t,n=!0){if(!this.resizeCols||!this.resizeRatios)return;const r={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols??void 0,groupAfterStartWidth:this.resizeTakeFromStartWidth??void 0,groupAfterRatios:this.resizeTakeFromRatios??void 0};this.resizeColumns(r,e,t,n)}resizeColumns(e,t,n,r=!0){const{columnsToResize:i,resizeStartWidth:o,resizeRatios:s,groupAfterColumns:a,groupAfterStartWidth:l,groupAfterRatios:c}=e,u=[];if(u.push({columns:i,ratios:s,width:t}),a){const f=t-o;u.push({columns:a,ratios:c,width:l-f})}this.columnSizeService.resizeColumnSets({resizeSets:u,finished:r,source:n}),r&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(t=>t.isResizable())}getInitialSizeOfColumns(e){return e.reduce((t,n)=>t+n.getActualWidth(),0)}getSizeRatiosOfColumns(e,t){return e.map(n=>n.getActualWidth()/t)}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?this.pinned!=="left"&&(t*=-1):this.pinned==="right"&&(t*=-1),t}destroy(){super.destroy(),this.clearLocalValues()}},dsi=class extends ct{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(t=>{t.addEventListener("widthChanged",e),t.addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.removeEventListener("widthChanged",e),t.removeEventListener("visibleChanged",e)})})}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach(e=>e()),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.addOrRemoveCssClass("ag-hidden",e===0)}},fsi=class extends QQ{constructor(e,t,n){super(e,t,n),this.onSuppressColMoveChange=()=>{if(!this.isAlive()||this.isSuppressMoving())this.removeDragSource();else if(!this.dragSource){const r=this.getGui();this.setDragSource(r)}},this.column=e}setComp(e,t,n,r,i){this.comp=e,i=z_(this,this.beans.context,i),this.setGui(t,i),this.displayName=this.beans.columnNameService.getDisplayNameForColumnGroup(this.column,"header"),this.addClasses(),this.setupMovingCss(i),this.setupExpandable(i),this.setupTooltip(i),this.setupAutoHeight({wrapperElement:r,compBean:i}),this.setupUserComp(i),this.addHeaderMouseListeners(i),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const o=this.getParentRowCtrl().getPinned(),s=this.column.getProvidedColumnGroup().getLeafColumns();i.createManagedBean(new t6e(s,t)),i.createManagedBean(new e6e(this.column,t,this.beans)),i.createManagedBean(new dsi(e,this.column)),this.resizeFeature=i.createManagedBean(new usi(e,n,o,this.column)),i.createManagedBean(new Rv(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(i,s),i.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(i),i.addDestroyFunc(()=>this.clearComponent())}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,n=e.get("groupHeaderHeight");n!=null?n===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(n):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const n of t)e.addManagedListeners(n,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,n)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),n=t[0]===e,r=Dn(t)===e;if(!n&&!r)return;const i=e.getHighlighted(),o=!!this.getParentRowCtrl().findHeaderCellCtrl(l=>l.getColumnGroupChild().isMoving());let s=!1,a=!1;if(o){const l=this.beans.gos.get("enableRtl"),c=i===1,u=i===0;n&&(l?a=c:s=u),r&&(l?s=u:a=c)}this.comp.addOrRemoveCssClass("ag-header-highlight-before",s),this.comp.addOrRemoveCssClass("ag-header-highlight-after",a)}getColumn(){return this.column}resizeHeader(e,t){if(!this.resizeFeature)return;const n=this.resizeFeature.getInitialValues(t);this.resizeFeature.resizeColumns(n,n.resizeStartWidth+e,"uiColumnResized",!0)}moveHeader(e){const{beans:t,eGui:n,column:r,ctrlsService:i}=this,{gos:o,columnModel:s,columnMoveService:a,visibleColsService:l}=t,c=o.get("enableRtl"),u=e===0,f=this.getPinned(),h=n.getBoundingClientRect(),g=h.left,p=h.width,m=OH({x:u!==c?g-20:g+p+20,pinned:f,fromKeyboard:!0,gos:o,ctrlsService:i}),v=r.getGroupId(),C=this.focusService.getFocusedHeader();s6e({allMovingColumns:this.column.getLeafColumns(),isFromHeader:!0,fromLeft:e===1,xPosition:m,pinned:f,fromEnter:!1,fakeEvent:!1,gos:o,columnModel:s,columnMoveService:a,visibleColsService:l,finished:!0});const y=r.getDisplayedLeafColumns(),b=u?y[0]:Dn(y);this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(b,"auto"),(!this.isAlive()||this.beans.gos.get("ensureDomOrder"))&&C&&this.restoreFocus(v,r,C)}restoreFocus(e,t,n){const r=t.getLeafColumns();if(!r.length)return;const i=r[0].getParent();if(!i)return;const o=this.findGroupWidthId(i,e);o&&this.focusService.focusHeaderPosition({headerPosition:{...n,column:o}})}findGroupWidthId(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}return null}resizeLeafColumnsToFit(e){this.resizeFeature&&this.resizeFeature.resizeLeafColumnsToFit(e)}setupUserComp(e){const t=this.gos.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:r=>{this.beans.columnModel.setColumnGroupOpened(this.column.getProvidedColumnGroup(),r,"gridInitializing")},setTooltip:(r,i)=>{this.setupTooltip(e,r,i)}}),n=this.userComponentFactory.getHeaderGroupCompDetails(t);this.comp.setUserCompDetails(n)}addHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),n=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),r=i=>this.handleContextMenuMouseEvent(i,void 0,this.column.getProvidedColumnGroup());e.addManagedListeners(this.getGui(),{mouseenter:t,mouseleave:t,click:n,contextmenu:r})}handleMouseOverChange(e){this.eventService.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t,n){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature));const r=this.column.getColGroupDef(),i=this.gos.get("tooltipShowMode")==="whenTruncated",o=this.eGui;!n&&i&&!(r!=null&&r.headerGroupComponent)&&(n=()=>{const a=o.querySelector(".ag-header-group-text");return a?a.scrollWidth>a.clientWidth:!0});const s={getColumn:()=>this.column,getGui:()=>o,getLocation:()=>"headerGroup",getTooltipValue:()=>t??(r&&r.headerTooltip),shouldDisplayTooltip:n};r&&(s.getColDef=()=>r),e.createManagedBean(new Lb(s))}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const n=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:n,expandableChanged:n})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)}getColId(){return this.column.getUniqueId()}addClasses(){const e=this.column.getColGroupDef(),t=Zft(e,this.gos,null,this.column);this.column.isPadding()?(t.push("ag-header-group-cell-no-group"),this.column.getLeafColumns().every(r=>r.isSpanHeaderHeight())&&t.push("ag-header-span-height")):(t.push("ag-header-group-cell-with-group"),e!=null&&e.wrapHeaderText&&t.push("ag-header-cell-wrap-text")),t.forEach(n=>this.comp.addOrRemoveCssClass(n,!0))}setupMovingCss(e){const n=this.column.getProvidedColumnGroup().getLeafColumns(),r=()=>this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving());n.forEach(i=>{e.addManagedListeners(i,{movingChanged:r})}),r()}onFocusIn(e){if(!this.eGui.contains(e.relatedTarget)){const t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.column)}}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();if(!(!this.expandable||!t)&&e.key===Je.ENTER){const n=this.column,r=!n.isExpanded();this.beans.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),r,"uiColumnExpanded")}}setDragSource(e){if(!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),!e))return;const{beans:t,column:n,displayName:r,gos:i,dragAndDropService:o}=this,{columnModel:s}=t,a=n.getProvidedColumnGroup().getLeafColumns();let l=!i.get("suppressDragLeaveHidesColumns");const c=this.dragSource={type:1,eElement:e,getDefaultIconName:()=>l?"hide":"notAllowed",dragItemName:r,getDragItem:()=>this.getDragItemForGroup(n),onDragStarted:()=>{l=!i.get("suppressDragLeaveHidesColumns"),hw(a,!0)},onDragStopped:()=>hw(a,!1),onDragCancelled:()=>hw(a,!1),onGridEnter:u=>{if(l){const{columns:f=[],visibleState:h}=u??{},g=f.filter(p=>!p.getColDef().lockVisible&&(!h||h[p.getColId()]));s.setColsVisible(g,!0,"uiColumnMoved")}},onGridExit:u=>{var f;if(l){const h=((f=u==null?void 0:u.columns)==null?void 0:f.filter(g=>!g.getColDef().lockVisible))||[];s.setColsVisible(h,!1,"uiColumnMoved")}}};o.addDragSource(c,!0)}getDragItemForGroup(e){const t=e.getProvidedColumnGroup().getLeafColumns(),n={};t.forEach(s=>n[s.getId()]=s.isVisible());const r=[];this.beans.visibleColsService.getAllCols().forEach(s=>{t.indexOf(s)>=0&&(r.push(s),rl(t,s))}),t.forEach(s=>r.push(s));const i=[],o=e.getLeafColumns();for(const s of r)o.indexOf(s)!==-1&&i.push(s);return{columns:r,columnsInSplit:i,visibleState:n}}isSuppressMoving(){let e=!1;return this.column.getLeafColumns().forEach(n=>{(n.getColDef().suppressMovable||n.getColDef().lockPosition)&&(e=!0)}),e||this.gos.get("suppressMovableColumns")}destroy(){super.destroy()}},hsi=0,soe=class extends ct{constructor(e,t,n){super(),this.instanceId=hsi++,this.rowIndex=e,this.pinned=t,this.type=n;const r=n=="group"?"ag-header-row-column-group":n=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${r}`}wireBeans(e){this.beans=e}postConstruct(){this.isPrintLayout=La(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.getHeaderCellCtrls().every(e=>e.getGui()!=null):!1}setComp(e,t,n=!0){this.comp=e,t=z_(this,this.beans.context,t),n&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getHeaderRowClass(){return this.headerRowClass}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this);e.addManagedEventListeners({columnResized:this.onColumnResized.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:n=>this.onVirtualColumnsChanged(n.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,gridStylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),e.addManagedPropertyListener("ensureDomOrder",n=>this.isEnsureDomOrder=n.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}getHeaderCellCtrl(e){if(this.headerCellCtrls)return lk(this.headerCellCtrls).find(t=>t.getColumnGroupChild()===e)}onDisplayedColumnsChanged(){this.isPrintLayout=La(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}getType(){return this.type}onColumnResized(){this.setWidth()}setWidth(){const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleColsService:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){const{columnModel:e,filterManager:t}=this.beans,n=[],r=e.getGroupRowsHeight(),i=e.getColumnHeaderRowHeight();n.push(...r),n.push(i),t!=null&&t.hasFloatingFilters()&&n.push(e.getFloatingFiltersHeight());let o=0;for(let a=0;a<this.rowIndex;a++)o+=n[a];const s=n[this.rowIndex];return{topOffset:o,rowHeight:s}}getPinned(){return this.pinned}getRowIndex(){return this.rowIndex}onVirtualColumnsChanged(e=!1){const t=this.getHeaderCtrls(),n=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(t,n,e)}getHeaderCtrls(){const e=this.headerCellCtrls;this.headerCellCtrls=new Map;const t=this.getColumnsInViewport();for(const r of t)this.recycleAndCreateHeaderCtrls(r,e);const n=r=>{const{focusService:i,visibleColsService:o}=this.beans;return i.isHeaderWrapperFocused(r)?o.isVisible(r.getColumnGroupChild()):!1};if(e)for(const[r,i]of e)n(i)?this.headerCellCtrls.set(r,i):this.destroyBean(i);return this.getHeaderCellCtrls()}getHeaderCellCtrls(){var e;return Array.from(((e=this.headerCellCtrls)==null?void 0:e.values())??[])}recycleAndCreateHeaderCtrls(e,t){if(!this.headerCellCtrls||e.isEmptyGroup())return;const n=e.getUniqueId();let r;if(t&&(r=t.get(n),t.delete(n)),r&&r.getColumnGroupChild()!=e&&(this.destroyBean(r),r=void 0),r==null)switch(this.type){case"filter":{r=this.createBean(this.beans.ctrlsFactory.getInstance("headerFilterCell",e,this.beans,this));break}case"group":r=this.createBean(new fsi(e,this.beans,this));break;default:r=this.createBean(new csi(e,this.beans,this));break}this.headerCellCtrls.set(n,r)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let e=[];const t=this.getActualDepth(),{columnViewportService:n}=this.beans;return["left",null,"right"].forEach(r=>{const i=n.getHeadersToRender(r,t);e=e.concat(i)}),e}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.columnViewportService.getHeadersToRender(this.pinned,this.getActualDepth())}findHeaderCellCtrl(e){if(!this.headerCellCtrls)return;const t=this.getHeaderCellCtrls();let n;return typeof e=="function"?n=t.find(e):n=t.find(r=>r.getColumnGroupChild()==e),n}focusHeader(e,t){const n=this.findHeaderCellCtrl(e);return n?n.focus(t):!1}destroy(){var e;(e=this.headerCellCtrls)==null||e.forEach(t=>{this.destroyBean(t)}),this.headerCellCtrls=void 0,super.destroy()}},dht=class extends ct{constructor(e){super(),this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[],this.pinned=e}wireBeans(e){this.ctrlsService=e.ctrlsService,this.scrollVisibleService=e.scrollVisibleService,this.pinnedWidthService=e.pinnedWidthService,this.columnModel=e.columnModel,this.focusService=e.focusService,this.filterManager=e.filterManager}setComp(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport);const n=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:n,advancedFilterEnabledChanged:n});const r=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;this.ctrlsService.register(r,this),this.columnModel.isReady()&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const t=new ad,n=this.focusService.getFocusHeaderToUseAfterRefresh(),r=()=>{const a=this.columnModel.getHeaderRowCount()-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let l=0;l<a;l++){const c=this.createBean(new soe(t.next(),this.pinned,"group"));this.groupsRowCtrls.push(c)}},i=()=>{const a=t.next(),l=!this.hidden&&(this.columnsRowCtrl==null||!e||this.columnsRowCtrl.getRowIndex()!==a);(l||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),l&&(this.columnsRowCtrl=this.createBean(new soe(a,this.pinned,"column")))},o=()=>{var c;this.includeFloatingFilter=!!((c=this.filterManager)!=null&&c.hasFloatingFilters())&&!this.hidden;const a=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){a();return}const l=t.next();if(this.filtersRowCtrl){const u=this.filtersRowCtrl.getRowIndex()!==l;(!e||u)&&a()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new soe(l,this.pinned,"filter")))};r(),i(),o();const s=this.getAllCtrls();this.comp.setCtrls(s),this.restoreFocusOnHeader(n)}getHeaderCtrlForColumn(e){var t;if(km(e))return(t=this.columnsRowCtrl)==null?void 0:t.getHeaderCellCtrl(e);if(this.groupsRowCtrls.length!==0)for(let n=0;n<this.groupsRowCtrls.length;n++){const r=this.groupsRowCtrls[n].getHeaderCellCtrl(e);if(r)return r}}getHtmlElementForColumnHeader(e){const t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null}getRowType(e){const n=this.getAllCtrls()[e];return n?n.getType():void 0}focusHeader(e,t,n){const i=this.getAllCtrls()[e];return i?i.focusHeader(t,n):!1}getViewportElement(){return this.eViewport}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.getViewportElement(),{scroll:e})}destroy(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),super.destroy()}setupDragAndDrop(e){const t=new ssi(this.pinned,e);this.createManagedBean(t)}restoreFocusOnHeader(e){if(!e)return;const{column:t}=e;t.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(){var t;const e=((t=this.filterManager)==null?void 0:t.hasFloatingFilters())&&!this.hidden;this.includeFloatingFilter!==e&&this.refresh(!0)}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new o6e(e=>this.comp.setCenterWidth(`${e}px`),!0))}setupPinnedWidth(){if(this.pinned==null)return;const e=this.pinned==="left",t=this.pinned==="right";this.hidden=!0;const n=()=>{const r=e?this.pinnedWidthService.getPinnedLeftWidth():this.pinnedWidthService.getPinnedRightWidth();if(r==null)return;const i=r==0,o=this.hidden!==i,s=this.gos.get("enableRtl"),a=this.scrollVisibleService.getScrollbarWidth(),c=this.scrollVisibleService.isVerticalScrollShowing()&&(s&&e||!s&&t)?r+a:r;this.comp.setPinnedContainerWidth(`${c}px`),this.comp.setDisplayed(!i),o&&(this.hidden=i,this.refresh())};this.addManagedEventListeners({leftPinnedWidthChanged:n,rightPinnedWidthChanged:n,scrollVisibilityChanged:n,scrollbarWidthChanged:n})}},gsi='<div class="ag-pinned-left-header" role="rowgroup"></div>',psi='<div class="ag-pinned-right-header" role="rowgroup"></div>',msi=`<div class="ag-header-viewport" role="presentation">
|
||
<div class="ag-header-container" data-ref="eCenterContainer" role="rowgroup"></div>
|
||
</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(`
|
||
<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>
|
||
</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-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),this.hideTimeout=null},400)}})}attemptSettingScrollPosition(e){const t=this.getViewportElement();zdt(()=>Su(t),()=>this.setScrollPosition(e),100)}getViewportElement(){return this.eViewport}getContainer(){return this.eContainer}onScrollCallback(e){this.addManagedElementListeners(this.getViewportElement(),{scroll:e})}},ght=class extends hht{constructor(){super(`<div class="ag-body-horizontal-scroll" aria-hidden="true">
|
||
<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>
|
||
</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">
|
||
<div class="ag-body-vertical-scroll-viewport" data-ref="eViewport">
|
||
<div class="ag-body-vertical-scroll-container" data-ref="eContainer"></div>
|
||
</div>
|
||
</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.doHorizontalScroll(r),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;e==="Viewport"?t=this.eBodyViewport.scrollTop:t=this.ctrlsService.get("fakeVScrollComp").getScrollPosition(),!this.shouldBlockScrollUpdate(0,t,!0)&&(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,e==="Viewport"?this.ctrlsService.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,this.gos.get("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())}doHorizontalScroll(e){const t=this.ctrlsService.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(()=>{this.eventService.dispatchEvent({...t,type:"bodyScrollEnd"})},100)}shouldBlockScrollUpdate(e,t,n=!1){return n&&!Ev()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=GQ(this.eBodyViewport),{scrollHeight:n}=this.eBodyViewport;return e<0||e+t>n}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:n}=this.centerRowsCtrl.getViewportElement();if(this.enableRtl&&SH()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>n}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll("Viewport")}scrollGridIfNeeded(){const e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e}setHorizontalScrollPosition(e,t=!1){const r=this.centerRowsCtrl.getViewportElement().scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl&&SH()?e=e>0?0:r:e=Math.min(Math.max(e,0),r)),xH(this.centerRowsCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.eBodyViewport.scrollTop=e}getVScrollPosition(){return this.lastScrollTop=this.eBodyViewport.scrollTop,this.lastOffsetHeight=this.eBodyViewport.offsetHeight,{top:this.lastScrollTop,bottom:this.lastScrollTop+this.lastOffsetHeight}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.centerRowsCtrl.isHorizontalScrollShowing()}scrollHorizontally(e){const t=this.centerRowsCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.getViewportElement().scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const n=this.rowModel.getRowCount();let r=-1;for(let i=0;i<n;i++){const o=this.rowModel.getRow(i);if(typeof e=="function"){if(o&&e(o)){r=i;break}}else if(e===o||e===o.data){r=i;break}}r>=0&&this.ensureIndexVisible(r,t)}ensureIndexVisible(e,t){if(La(this.gos,"print"))return;const n=this.rowModel.getRowCount();if(typeof e!="number"||e<0||e>=n){rt("Invalid row index for ensureIndexVisible: "+e);return}const i=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.getFrameworkOverrides().wrapIncoming(()=>{var u;i||(u=this.paginationService)==null||u.goToPageWithIndex(e);const o=this.ctrlsService.getGridBodyCtrl(),s=o.getStickyTopHeight(),a=o.getStickyBottomHeight(),l=this.rowModel.getRow(e);let c;do{const f=l.rowTop,h=l.rowHeight,g=this.pageBoundsService.getPixelOffset(),p=l.rowTop-g,m=p+l.rowHeight,v=this.getVScrollPosition(),C=this.heightScaler.getDivStretchOffset(),y=v.top+C,b=v.bottom+C,S=b-y,w=this.heightScaler.getScrollPositionForPixel(p),x=this.heightScaler.getScrollPositionForPixel(m-S),E=Math.min((w+x)/2,p),R=y+s>p,O=b-a<m;let T=null;t==="top"?T=w:t==="bottom"?T=x:t==="middle"?T=E:R?T=w-s:O&&(T=x+a),T!==null&&(this.setVerticalScrollPosition(T),this.rowRenderer.redraw({afterScroll:!0})),c=f!==l.rowTop||h!==l.rowHeight}while(c);this.animationFrameService.flushAllFrames()})}ensureColumnVisible(e,t="auto"){const n=this.columnModel.getCol(e);if(!n||n.isPinned()||!this.visibleColsService.isColDisplayed(n))return;const r=this.getPositionedHorizontalScroll(n,t);this.getFrameworkOverrides().wrapIncoming(()=>{r!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(r),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()})}setScrollPosition(e,t){this.getFrameworkOverrides().wrapIncoming(()=>{this.centerRowsCtrl.setCenterViewportScrollLeft(t),this.setVerticalScrollPosition(e),this.rowRenderer.redraw({afterScroll:!0}),this.animationFrameService.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:n,columnAfterEnd:r}=this.isColumnOutsideViewport(e),i=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),o=this.centerRowsCtrl.getCenterWidth(),s=this.enableRtl;let a=(s?n:r)||i,l=s?r:n;t!=="auto"&&(a=t==="start",l=t==="end");const c=t==="middle";if(a||l||c){const{colLeft:u,colMiddle:f,colRight:h}=this.getColumnBounds(e);return c?f-o/2:a?s?h:u:s?u-o:h-o}return null}isColumnOutsideViewport(e){const{start:t,end:n}=this.getViewportBounds(),{colLeft:r,colRight:i}=this.getColumnBounds(e),o=this.enableRtl,s=o?t>i:n<i,a=o?n<r:t>r;return{columnBeforeStart:s,columnAfterEnd:a}}getColumnBounds(e){const t=this.enableRtl,n=this.visibleColsService.getBodyContainerWidth(),r=e.getActualWidth(),i=e.getLeft(),o=t?-1:1,s=t?n-i:i,a=s+r*o,l=s+r/2*o;return{colLeft:s,colMiddle:l,colRight:a}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),n=t,r=e+t;return{start:n,end:r,width:e}}},xsi=class extends ct{wireBeans(e){this.animationFrameService=e.animationFrameService,this.ctrlsService=e.ctrlsService,this.pinnedWidthService=e.pinnedWidthService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.columnSizeService=e.columnSizeService,this.scrollVisibleService=e.scrollVisibleService,this.columnViewportService=e.columnViewportService}constructor(e){super(),this.centerContainerCtrl=e}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const e=()=>{this.animationFrameService.requestAnimationFrame(()=>{this.onCenterViewportResized()})};this.centerContainerCtrl.registerViewportResizeListener(e),this.gridBodyCtrl.registerBodyViewportResizeListener(e)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleService.onCentreViewportResized(),this.centerContainerCtrl.isViewportInTheDOMTree()){this.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnSizeService.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}keepPinnedColumnsNarrowerThanViewport(){const e=this.gridBodyCtrl.getBodyViewportElement(),t=dE(e);if(t<=50)return;let n=this.getPinnedColumnsOverflowingViewport(t-50);const r=this.gos.getCallback("processUnpinnedColumns");n.length&&(r&&(n=r({columns:n,viewportWidth:t})),this.columnModel.setColsPinned(n,null,"viewportSizeFeature"))}getPinnedColumnsOverflowingViewport(e){const t=this.pinnedWidthService.getPinnedRightWidth(),n=this.pinnedWidthService.getPinnedLeftWidth(),r=t+n;if(r<e)return[];const i=[...this.visibleColsService.getLeftCols()],o=[...this.visibleColsService.getRightCols()];let s=0,a=0;const l=0,c=[];let u=r-l-e;for(;(a<i.length||s<o.length)&&u>0;){if(s<o.length){const f=o[s++];u-=f.getActualWidth(),c.push(f)}if(a<i.length&&u>0){const f=i[a++];u-=f.getActualWidth(),c.push(f)}}return c}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.getBodyViewportElement(),t=GQ(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventService.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){const e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)}isHorizontalScrollShowing(){return this.centerContainerCtrl.isHorizontalScrollShowing()}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnViewportService.setScrollPosition(e,t)}},Esi=class extends ct{wireBeans(e){this.dragService=e.dragService,this.rangeService=e.rangeService}constructor(e){super(),this.eContainer=e}postConstruct(){if(!this.rangeService)return;this.params={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)},this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{su(this.gos)?this.enableFeature():this.disableFeature()}),this.addDestroyFunc(()=>this.disableFeature()),su(this.gos)&&this.enableFeature()}enableFeature(){this.dragService.addDragSource(this.params)}disableFeature(){this.dragService.removeDragSource(this.params)}},vht=class extends wn{constructor(){super(`
|
||
<div class="ag-selection-checkbox" role="presentation">
|
||
<ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
|
||
</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?void 0:this.cellClassRules,t,n,r=>this.cellComp.addOrRemoveCssClass(r,!0),r=>this.cellComp.addOrRemoveCssClass(r,!1)),this.cellClassRules=t}applyUserStyles(){const e=this.column.getColDef();if(!e.cellStyle)return;let t;if(typeof e.cellStyle=="function"){const n=this.beans.gos.addGridCommonParams({column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex}),r=e.cellStyle;t=r(n)}else t=e.cellStyle;t&&this.cellComp.setUserStyles(t)}applyClassesFromColDef(){const e=this.column.getColDef(),t=this.beans.gos.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:e,rowIndex:this.rowNode.rowIndex});this.staticClasses.length&&this.staticClasses.forEach(n=>this.cellComp.addOrRemoveCssClass(n,!1)),this.staticClasses=this.beans.stylingService.getStaticCellClasses(e,t),this.staticClasses.length&&this.staticClasses.forEach(n=>this.cellComp.addOrRemoveCssClass(n,!0))}destroy(){super.destroy()}},Osi=class extends ct{constructor(e,t,n,r,i){super(),this.cellCtrl=e,this.beans=t,this.rowNode=r,this.rowCtrl=i}setComp(e){this.eGui=e}onKeyDown(e){const t=e.key;switch(t){case Je.ENTER:this.onEnterKeyDown(e);break;case Je.F2:this.onF2KeyDown(e);break;case Je.ESCAPE:this.onEscapeKeyDown(e);break;case Je.TAB:this.onTabKeyDown(e);break;case Je.BACKSPACE:case Je.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case Je.DOWN:case Je.UP:case Je.RIGHT:case Je.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())}onShiftRangeSelect(e){if(!this.beans.rangeService)return;const t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}onTabKeyDown(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:n,beans:r,rowNode:i}=this,{gos:o,rangeService:s,eventService:a}=r;if(!n.isEditing()){if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),ioi(e,o.get("enableCellEditingOnBackspace"))){if(s&&su(o))s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(n.isCellEditable()){const l=n.getColumn(),c=this.beans.valueService.getDeleteValue(l,i);i.setDataValue(l,c,"cellClear")}}else n.startRowOrCellEdit(e,t);a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gos.get("enterNavigatesVertically")){const t=e.shiftKey?Je.UP:Je.DOWN;this.beans.navigationService.navigateToNextCell(null,t,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(Je.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()}onF2KeyDown(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Je.F2,e)}onEscapeKeyDown(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))}processCharacter(e){if(e.target!==this.eGui||this.cellCtrl.isEditing())return;const r=e.key;r===" "?this.onSpaceKeyDown(e):this.cellCtrl.startRowOrCellEdit(r,e)&&e.preventDefault()}onSpaceKeyDown(e){const{gos:t}=this.beans;if(!this.cellCtrl.isEditing()&&pI(t)){const n=this.rowNode.isSelected(),r=!n,i=A3e(t)==="filteredDescendants",o=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:i,event:e,source:"spaceKey"});n===void 0&&o===0&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:i,event:e,source:"spaceKey"})}e.preventDefault()}destroy(){super.destroy()}},Tsi=class extends ct{constructor(e,t,n){super(),this.cellCtrl=e,this.beans=t,this.column=n}onMouseEvent(e,t){if(!Ig(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){if(this.isDoubleClickOnIPad()){this.onCellDoubleClicked(e),e.preventDefault();return}const{eventService:t,rangeService:n,gos:r}=this.beans,i=e.ctrlKey||e.metaKey;n&&i&&n.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&n.intersectLastRange(!0);const o=this.cellCtrl.createEvent(e,"cellClicked");t.dispatchEvent(o);const s=this.column.getColDef();s.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{s.onCellClicked(o)})},0),(r.get("singleClickEdit")||s.singleClickEdit)&&!r.get("suppressClickEdit")&&!(e.shiftKey&&(n==null?void 0:n.getCellRanges().length)!=0)&&this.cellCtrl.startRowOrCellEdit()}isDoubleClickOnIPad(){if(!Ev()||qdt("dblclick"))return!1;const e=new Date().getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t}onCellDoubleClicked(e){const{column:t,beans:n,cellCtrl:r}=this,{eventService:i,frameworkOverrides:o,gos:s}=n,a=t.getColDef(),l=r.createEvent(e,"cellDoubleClicked");i.dispatchEvent(l),typeof a.onCellDoubleClicked=="function"&&window.setTimeout(()=>{o.wrapOutgoing(()=>{a.onCellDoubleClicked(l)})},0),!s.get("singleClickEdit")&&!s.get("suppressClickEdit")&&r.startRowOrCellEdit(null,e)}onMouseDown(e){const{ctrlKey:t,metaKey:n,shiftKey:r}=e,i=e.target,{cellCtrl:o,beans:s}=this,{eventService:a,rangeService:l,focusService:c,gos:u}=s;if(this.isRightClickInExistingRange(e))return;const f=l&&l.getCellRanges().length!=0;if(!r||!f){const g=u.get("enableCellTextSelection")&&e.defaultPrevented,p=(zm()||g)&&!o.isEditing()&&!U3e(i);o.focusCell(p)}if(r&&f&&!c.isCellFocused(o.getCellPosition())){e.preventDefault();const h=c.getFocusedCell();if(h){const{column:g,rowIndex:p,rowPinned:m}=h,v=s.rowRenderer.getRowByPosition({rowIndex:p,rowPinned:m}),C=v==null?void 0:v.getCellCtrl(g);C!=null&&C.isEditing()&&C.stopEditing(),c.setFocusedCell({column:g,rowIndex:p,rowPinned:m,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(i)){if(l){const h=this.cellCtrl.getCellPosition();if(r)l.extendLatestRangeToCell(h);else{const g=t||n;l.setRangeToCell(h,g)}}a.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){const{rangeService:t}=this.beans;if(t){const n=t.isCellInAnyRange(this.cellCtrl.getCellPosition()),r=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(n&&r)return!0}return!1}containsWidget(e){return fw(e,"ag-selection-checkbox",3)}onMouseOut(e){this.mouseStayingInsideCell(e)||(this.beans.eventService.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),this.beans.columnHoverService.clearMouseOver())}onMouseOver(e){this.mouseStayingInsideCell(e)||(this.beans.eventService.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),this.beans.columnHoverService.setMouseOver([this.column]))}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.getGui(),n=t.contains(e.target),r=t.contains(e.relatedTarget);return n&&r}destroy(){super.destroy()}},Isi=class extends ct{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventService,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}setComp(e){this.eGui=e,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this.applyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();vc(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventService,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eGui)return;const e=this.getCellWidth();this.eGui.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const e=this.column.getColSpan(this.rowNode),t=[];if(e===1)t.push(this.column);else{let n=this.column;const r=this.column.getPinned();for(let i=0;n&&i<e&&(t.push(n),n=this.beans.visibleColsService.getColAfter(n),!(!n||ar(n)||r!==n.getPinned()));i++);}return t}onLeftChanged(){if(!this.eGui)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}getCellLeft(){let e;return this.beans.gos.get("enableRtl")&&this.colsSpanning?e=Dn(this.colsSpanning):e=this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()==="left")return e;const t=this.beans.visibleColsService.getColsLeftWidth();if(this.column.getPinned()==="right"){const n=this.beans.visibleColsService.getBodyContainerWidth();return t+n+(e||0)}return t+(e||0)}applyRowSpan(e){if(this.rowSpan===1&&!e)return;const n=W0(this.beans.gos)*this.rowSpan;this.eGui.style.height=`${n}px`,this.eGui.style.zIndex="1"}destroy(){super.destroy()}},j_=(e=>(e[e.FILL=0]="FILL",e[e.RANGE=1]="RANGE",e))(j_||{}),gfe=(e=>(e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION",e))(gfe||{}),jR="ag-cell-range-selected",Msi="ag-cell-range-chart",Psi="ag-cell-range-single-cell",_si="ag-cell-range-chart-category",Asi="ag-cell-range-handle",Dsi="ag-cell-range-top",Lsi="ag-cell-range-right",Fsi="ag-cell-range-bottom",Nsi="ag-cell-range-left",ksi=class{constructor(e,t){this.beans=e,this.rangeService=e.rangeService,this.selectionHandleFactory=e.selectionHandleFactory,this.cellCtrl=t}setComp(e,t){this.cellComp=e,this.eGui=t,this.onCellSelectionChanged()}onCellSelectionChanged(){this.cellComp&&(this.rangeCount=this.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(jR,this.rangeCount!==0),this.cellComp.addOrRemoveCssClass(`${jR}-1`,this.rangeCount===1),this.cellComp.addOrRemoveCssClass(`${jR}-2`,this.rangeCount===2),this.cellComp.addOrRemoveCssClass(`${jR}-3`,this.rangeCount===3),this.cellComp.addOrRemoveCssClass(`${jR}-4`,this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(Msi,this.hasChartRange),yH(this.eGui,this.rangeCount>0?!0:void 0),this.cellComp.addOrRemoveCssClass(Psi,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())}updateRangeBorders(){const e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,r=!t&&e.right,i=!t&&e.bottom,o=!t&&e.left;this.cellComp.addOrRemoveCssClass(Dsi,n),this.cellComp.addOrRemoveCssClass(Lsi,r),this.cellComp.addOrRemoveCssClass(Fsi,i),this.cellComp.addOrRemoveCssClass(Nsi,o)}isSingleCell(){const{rangeService:e}=this.beans;return this.rangeCount===1&&!!e&&!e.isMoreThanOneCell()}getHasChartRange(){const{rangeService:e}=this.beans;if(!this.rangeCount||!e)return!1;const t=e.getCellRanges();return t.length>0&&t.every(n=>ll([1,0],n.type))}updateRangeBordersIfRangeCount(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())}getRangeBorders(){const e=this.beans.gos.get("enableRtl");let t=!1,n=!1,r=!1,i=!1;const o=this.cellCtrl.getCellPosition().column,s=this.beans.visibleColsService;let a,l;e?(a=s.getColAfter(o),l=s.getColBefore(o)):(a=s.getColBefore(o),l=s.getColAfter(o));const c=this.rangeService.getCellRanges().filter(u=>this.rangeService.isCellInSpecificRange(this.cellCtrl.getCellPosition(),u));a||(i=!0),l||(n=!0);for(let u=0;u<c.length&&!(t&&n&&r&&i);u++){const f=c[u],h=this.rangeService.getRangeStartRow(f),g=this.rangeService.getRangeEndRow(f);!t&&this.beans.rowPositionUtils.sameRow(h,this.cellCtrl.getCellPosition())&&(t=!0),!r&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(r=!0),!i&&a&&f.columns.indexOf(a)<0&&(i=!0),!n&&l&&f.columns.indexOf(l)<0&&(n=!0)}return{top:t,right:n,bottom:r,left:i}}refreshHandle(){if(this.beans.context.isDestroyed())return;const e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(Asi,!!this.selectionHandle)}shouldHaveSelectionHandle(){const e=this.beans.gos,t=this.rangeService.getCellRanges(),n=t.length;if(this.rangeCount<1||n<1)return!1;const r=Dn(t),i=this.cellCtrl.getCellPosition(),o=cLe(e)&&!this.cellCtrl.isSuppressFillHandle(),s=qni(e);let a=n===1&&!this.cellCtrl.isEditing()&&(o||s);if(this.hasChartRange){const c=t[0].type===1&&this.rangeService.isCellInSpecificRange(i,t[0]);this.cellComp.addOrRemoveCssClass(_si,c),a=r.type===0}return a&&r.endRow!=null&&this.rangeService.isContiguousRange(r)&&this.rangeService.isBottomRightCell(r,i)}addSelectionHandle(){const e=Dn(this.rangeService.getCellRanges()).type,n=cLe(this.beans.gos)&&ar(e)?0:1;this.selectionHandle&&this.selectionHandle.getType()!==n&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.selectionHandleFactory.createSelectionHandle(n)),this.selectionHandle.refresh(this.cellCtrl)}destroy(){this.beans.context.destroyBean(this.selectionHandle)}},zsi="ag-cell",Bsi="ag-cell-auto-height",Hsi="ag-cell-normal-height",jsi="ag-cell-focus",Vsi="ag-cell-first-right-pinned",Gsi="ag-cell-last-left-pinned",Wsi="ag-cell-not-inline-editing",Usi="ag-column-hover",qsi="ag-cell-wrap-text",Ksi=0,Cht=class pfe extends ct{constructor(t,n,r,i){super(),this.column=t,this.rowNode=n,this.beans=r,this.rowCtrl=i,this.cellRangeFeature=void 0,this.cellPositionFeature=void 0,this.cellCustomStyleFeature=void 0,this.tooltipFeature=void 0,this.cellMouseListenerFeature=void 0,this.cellKeyboardListenerFeature=void 0,this.suppressRefreshCell=!1,this.onCellCompAttachedFuncs=[],this.onCellEditorAttachedFuncs=[],this.instanceId=t.getId()+"-"+Ksi++,this.colIdSanitised=Wl(this.column.getId()),this.createCellPosition(),this.updateAndFormatValue(!1)}shouldRestoreFocus(){return this.beans.focusService.shouldRestoreFocus(this.cellPosition)}onFocusOut(){this.beans.focusService.clearRestoreFocus()}addFeatures(){this.cellPositionFeature=new Isi(this,this.beans),this.cellCustomStyleFeature=new $si(this,this.beans),this.cellMouseListenerFeature=new Tsi(this,this.beans,this.column),this.cellKeyboardListenerFeature=new Osi(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature(),this.beans.rangeService&&su(this.beans.gos)&&(this.cellRangeFeature=new ksi(this.beans,this))}removeFeatures(){const t=this.beans.context;this.cellPositionFeature=t.destroyBean(this.cellPositionFeature),this.cellCustomStyleFeature=t.destroyBean(this.cellCustomStyleFeature),this.cellMouseListenerFeature=t.destroyBean(this.cellMouseListenerFeature),this.cellKeyboardListenerFeature=t.destroyBean(this.cellKeyboardListenerFeature),this.cellRangeFeature=t.destroyBean(this.cellRangeFeature),this.disableTooltipFeature()}enableTooltipFeature(t,n){const r=()=>{const s=this.column.getColDef(),a=this.rowNode.data;if(s.tooltipField&&zt(a))return CO(a,s.tooltipField,this.column.isTooltipFieldContainsDots());const l=s.tooltipValueGetter;return l?l(this.beans.gos.addGridCommonParams({location:"cell",colDef:this.column.getColDef(),column:this.column,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,value:this.value,valueFormatted:this.valueFormatted})):null},i=this.beans.gos.get("tooltipShowMode")==="whenTruncated";!n&&i&&!this.isCellRenderer()&&(n=()=>{const s=this.getGui(),a=s.children.length===0?s:s.querySelector(".ag-cell-value");return a?a.scrollWidth>a.clientWidth:!0});const o={getColumn:()=>this.column,getColDef:()=>this.column.getColDef(),getRowIndex:()=>this.cellPosition.rowIndex,getRowNode:()=>this.rowNode,getGui:()=>this.getGui(),getLocation:()=>"cell",getTooltipValue:t!=null?()=>t:r,getValueFormatted:()=>this.valueFormatted,shouldDisplayTooltip:n};this.tooltipFeature=new Lb(o,this.beans)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(t,n,r,i,o,s){var a,l,c,u;this.cellComp=t,this.eGui=n,this.printLayout=i,s??(s=this),this.addDomData(s),this.addFeatures(),s.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(r,s),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),(a=this.cellPositionFeature)==null||a.setComp(n),(l=this.cellCustomStyleFeature)==null||l.setComp(t),(c=this.tooltipFeature)==null||c.refreshToolTip(),(u=this.cellKeyboardListenerFeature)==null||u.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(t,n),o&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach(f=>f()),this.onCellCompAttachedFuncs=[])}setupAutoHeight(t,n){if(this.isAutoHeight=this.column.isAutoHeight(),!this.isAutoHeight||!t)return;const r=t.parentElement,i=kl(this.beans.gos,this.rowNode).height,o=l=>{if(this.editing||!this.isAlive()||!n.isAlive())return;const{paddingTop:c,paddingBottom:u,borderBottomWidth:f,borderTopWidth:h}=Db(r),g=c+u+f+h,m=t.offsetHeight+g;if(l<5){const C=uo(this.beans.gos),y=!C||!C.contains(t),b=m==0;if(y||b){window.setTimeout(()=>o(l+1),0);return}}const v=Math.max(m,i);this.rowNode.setRowAutoHeight(v,this.column)},s=()=>o(0);s();const a=this.beans.resizeObserverService.observeResize(t,s);n.addDestroyFunc(()=>{a(),this.rowNode.setRowAutoHeight(void 0,this.column)})}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const t=this.column.getColDef();return t.cellRenderer!=null||t.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(t=!1){var h;const{beans:n,column:r,rowNode:i,cellRangeFeature:o,cellComp:s}=this,{userComponentFactory:a,animationFrameService:l}=n,c=this.getValueToDisplay();let u;if(i.stub&&((h=i.groupData)==null?void 0:h[this.column.getId()])==null){const g=this.createCellRendererParams();u=a.getLoadingCellRendererDetails(r.getColDef(),g)}else if(this.isCellRenderer()){const g=this.createCellRendererParams();u=a.getCellRendererDetails(r.getColDef(),g)}s.setRenderDetails(u,c,t),l.requestAnimationFrame(()=>o==null?void 0:o.refreshHandle())}setupControlComps(){const t=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(t)),this.includeRowDrag=this.isIncludeControl(t.rowDrag),this.includeDndSource=this.isIncludeControl(t.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(t){return this.rowNode.rowPinned!=null?!1:typeof t=="function"||t===!0}isCheckboxSelection(t){const{rowSelection:n}=this.beans.gridOptions;return t.checkboxSelection||k_(this.column)&&n&&typeof n!="string"&&wx(n)}refreshShouldDestroy(){const t=this.column.getColDef(),n=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(t)),r=this.includeRowDrag!=this.isIncludeControl(t.rowDrag),i=this.includeDndSource!=this.isIncludeControl(t.dndSource),o=this.isAutoHeight!=this.column.isAutoHeight();return n||r||i||o}startEditing(t=null,n=!1,r=null){const{editService:i}=this.beans;return!this.isCellEditable()||this.editing||!i?!0:this.cellComp?i.startEditing(this,t,n,r):(this.onCellCompAttachedFuncs.push(()=>{this.startEditing(t,n,r)}),!0)}setEditing(t,n){this.editCompDetails=n,this.editing!==t&&(this.editing=t)}stopRowOrCellEdit(t=!1){this.beans.gos.get("editType")==="fullRow"?this.rowCtrl.stopEditing(t):this.stopEditing(t)}onPopupEditorClosed(){this.editing&&this.stopEditingAndFocus()}stopEditing(t=!1){this.onCellEditorAttachedFuncs=[];const{editService:n}=this.beans;return!this.editing||!n?!1:n.stopEditing(this,t)}createCellRendererParams(){return this.beans.gos.addGridCommonParams({value:this.value,valueFormatted:this.valueFormatted,getValue:()=>this.beans.valueService.getValueForDisplay(this.column,this.rowNode),setValue:n=>this.beans.valueService.setValue(this.rowNode,this.column,n),formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:(n,r,i,o)=>this.registerRowDragger(n,r,o),setTooltip:(n,r)=>{var i;this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(n,r),(i=this.tooltipFeature)==null||i.refreshToolTip()}})}setFocusOutOnEditor(){var t;this.editing&&((t=this.beans.editService)==null||t.setFocusOutOnEditor(this))}setFocusInOnEditor(){var t;this.editing&&((t=this.beans.editService)==null||t.setFocusInOnEditor(this))}onCellChanged(t){t.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(t){var n;this.refreshShouldDestroy()?(n=this.rowCtrl)==null||n.recreateCell(this):this.refreshCell(t)}refreshCell(t){var u,f,h,g,p;if(this.suppressRefreshCell||this.editing)return;const n=this.column.getColDef(),r=t!=null&&!!t.newData,i=t!=null&&!!t.suppressFlash||!!n.suppressCellFlash,o=n.field==null&&n.valueGetter==null&&n.showRowGroup==null,s=t&&t.forceRefresh||o||r,a=!!this.cellComp,l=this.updateAndFormatValue(a),c=s||l;if(a){if(c){this.showValue(r);const m=(u=this.beans.filterManager)==null?void 0:u.isSuppressFlashingCellsBecauseFiltering();!i&&!m&&(this.beans.gos.get("enableCellChangeFlash")||n.enableCellChangeFlash)&&this.flashCell(),(f=this.cellCustomStyleFeature)==null||f.applyUserStyles(),(h=this.cellCustomStyleFeature)==null||h.applyClassesFromColDef()}(g=this.tooltipFeature)==null||g.refreshToolTip(),(p=this.cellCustomStyleFeature)==null||p.applyCellClassRules()}}stopEditingAndFocus(t=!1,n=!1){var r;(r=this.beans.editService)==null||r.stopEditingAndFocus(this,t,n)}flashCell(t){const n=(t==null?void 0:t.flashDuration)??(t==null?void 0:t.flashDelay),r=(t==null?void 0:t.fadeDuration)??(t==null?void 0:t.fadeDelay);this.animateCell("data-changed",n,r)}animateCell(t,n,r){if(!this.cellComp)return;const{gos:i}=this.beans;if(n||(n=i.get("cellFlashDuration")),n===0)return;zt(r)||(r=i.get("cellFadeDuration"));const o=`ag-cell-${t}`,s=`ag-cell-${t}-animation`;this.cellComp.addOrRemoveCssClass(o,!0),this.cellComp.addOrRemoveCssClass(s,!1),this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(o,!1),this.cellComp.addOrRemoveCssClass(s,!0),this.eGui.style.transition=`background-color ${r}ms`,window.setTimeout(()=>{this.isAlive()&&(this.cellComp.addOrRemoveCssClass(s,!1),this.eGui.style.transition="")},r))},n)})}onFlashCells(t){if(!this.cellComp)return;const n=this.beans.cellPositionUtils.createId(this.getCellPosition());t.cells[n]&&this.animateCell("highlight")}isCellEditable(){return this.column.isCellEditable(this.rowNode)}isSuppressFillHandle(){return this.column.isSuppressFillHandle()}formatValue(t){return this.callValueFormatter(t)??t}callValueFormatter(t){return this.beans.valueService.formatValue(this.column,this.rowNode,t)}updateAndFormatValue(t){const n=this.value,r=this.valueFormatted;return this.value=this.beans.valueService.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),t?!this.valuesAreEqual(n,this.value)||this.valueFormatted!=r:!0}valuesAreEqual(t,n){const r=this.column.getColDef();return r.equals?r.equals(t,n):t===n}getComp(){return this.cellComp}getValue(){return this.value}addDomData(t){const n=this.getGui();Cy(this.beans.gos,n,pfe.DOM_DATA_KEY_CELL_CTRL,this),t.addDestroyFunc(()=>Cy(this.beans.gos,n,pfe.DOM_DATA_KEY_CELL_CTRL,null))}createEvent(t,n){return this.beans.gos.addGridCommonParams({type:n,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),rowPinned:this.rowNode.rowPinned,event:t,rowIndex:this.rowNode.rowIndex})}processCharacter(t){var n;(n=this.cellKeyboardListenerFeature)==null||n.processCharacter(t)}onKeyDown(t){var n;(n=this.cellKeyboardListenerFeature)==null||n.onKeyDown(t)}onMouseEvent(t,n){var r;(r=this.cellMouseListenerFeature)==null||r.onMouseEvent(t,n)}getGui(){return this.eGui}getColSpanningList(){return this.cellPositionFeature.getColSpanningList()}onLeftChanged(){var t;this.cellComp&&((t=this.cellPositionFeature)==null||t.onLeftChanged())}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{cellComp:t,column:n,beans:r}=this;eht(t,n,r.visibleColsService)}refreshAriaColIndex(){const t=this.beans.visibleColsService.getAriaColIndex(this.column);sft(this.getGui(),t)}isSuppressNavigable(){return this.column.isSuppressNavigable(this.rowNode)}onWidthChanged(){var t;return(t=this.cellPositionFeature)==null?void 0:t.onWidthChanged()}getColumn(){return this.column}getRowNode(){return this.rowNode}isPrintLayout(){return this.printLayout}getCellPosition(){return this.cellPosition}isEditing(){return this.editing}startRowOrCellEdit(t,n=null){return this.cellComp?this.beans.gos.get("editType")==="fullRow"?this.rowCtrl.startRowEditing(t,this):this.startEditing(t,!0,n):(this.onCellCompAttachedFuncs.push(()=>{this.startRowOrCellEdit(t,n)}),!0)}getRowCtrl(){return this.rowCtrl}getRowPosition(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}}updateRangeBordersIfRangeCount(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.cellRangeFeature!=null}focusCell(t=!1){this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:t})}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onCellSelectionChanged()}onSuppressCellFocusChanged(t){this.eGui&&jf(this.eGui,"tabindex",t?void 0:-1)}onFirstRightPinnedChanged(){if(!this.cellComp)return;const t=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(Vsi,t)}onLastLeftPinnedChanged(){if(!this.cellComp)return;const t=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(Gsi,t)}onCellFocused(t){if(this.beans.focusService.isCellFocusSuppressed())return;const n=this.beans.focusService.isCellFocused(this.cellPosition);if(!this.cellComp){n&&(t!=null&&t.forceBrowserFocus)&&(this.focusEventToRestore=t);return}if(this.focusEventToRestore=void 0,this.cellComp.addOrRemoveCssClass(jsi,n),n&&t&&t.forceBrowserFocus){let i=this.cellComp.getFocusableElement();if(this.editing){const o=this.beans.focusService.findFocusableElements(i,null,!0);o.length&&(i=o[0])}i.focus({preventScroll:!!t.preventScrollOnBrowserFocus})}const r=this.beans.gos.get("editType")==="fullRow";!n&&!r&&this.editing&&this.stopRowOrCellEdit(),n&&this.rowCtrl.announceDescription()}createCellPosition(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:Da(this.rowNode.rowPinned),column:this.column}}applyStaticCssClasses(){this.cellComp.addOrRemoveCssClass(zsi,!0),this.cellComp.addOrRemoveCssClass(Wsi,!0);const t=this.column.isAutoHeight()==!0;this.cellComp.addOrRemoveCssClass(Bsi,t),this.cellComp.addOrRemoveCssClass(Hsi,!t)}onColumnHover(){if(!this.cellComp||!this.beans.gos.get("columnHoverHighlight"))return;const t=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(Usi,t)}onColDefChanged(){var n;if(!this.cellComp)return;this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?(n=this.beans.editService)==null||n.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0})}setWrapText(){const t=this.column.getColDef().wrapText==!0;this.cellComp.addOrRemoveCssClass(qsi,t)}dispatchCellContextMenuEvent(t){const n=this.column.getColDef(),r=this.createEvent(t,"cellContextMenu");this.beans.eventService.dispatchEvent(r),n.onCellContextMenu&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{n.onCellContextMenu(r)})},0)}getCellRenderer(){return this.cellComp?this.cellComp.getCellRenderer():null}getCellEditor(){return this.cellComp?this.cellComp.getCellEditor():null}destroy(){this.onCellCompAttachedFuncs=[],this.onCellEditorAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){const t=new vht;return this.beans.context.createBean(t),t.init({rowNode:this.rowNode,column:this.column}),t}createDndSource(){const t=new Rsi(this.rowNode,this.column,this.eGui);return this.beans.context.createBean(t),t}registerRowDragger(t,n,r){if(this.customRowDragComp){this.customRowDragComp.setDragElement(t,n);return}const i=this.createRowDragComp(t,n,r);i&&(this.customRowDragComp=i,this.addDestroyFunc(()=>{this.beans.context.destroyBean(i),this.customRowDragComp=null}))}createRowDragComp(t,n,r){const i=this.beans.gos.get("pagination"),o=this.beans.gos.get("rowDragManaged"),s=Li(this.beans.gos);if(o){if(!s){rt("managed row dragging is only allowed in the Client Side Row Model");return}if(i){rt("managed row dragging is not possible when doing pagination");return}}const a=new RH(()=>this.value,this.rowNode,this.column,t,n,r);return this.beans.context.createBean(a),a}setSuppressRefreshCell(t){this.suppressRefreshCell=t}getEditCompDetails(){return this.editCompDetails}onCellEditorAttached(t){this.onCellEditorAttachedFuncs.push(t)}cellEditorAttached(){this.onCellEditorAttachedFuncs.forEach(t=>t()),this.onCellEditorAttachedFuncs=[]}};Cht.DOM_DATA_KEY_CELL_CTRL="cellCtrl";var P4=Cht,Ysi=0,yht=class mfe extends ct{constructor(t,n,r,i,o){var s;super(),this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKeySanitised=null,this.beans=n,this.gos=n.gos,this.rowNode=t,this.paginationPage=((s=n.paginationService)==null?void 0:s.getCurrentPage())??0,this.useAnimationFrameForCreate=i,this.printLayout=o,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=t.id+"-"+Ysi++,this.rowId=Wl(t.id),this.initRowBusinessKey(),this.rowFocused=n.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=n.rowCssClassCalculator.calculateRowLevel(this.rowNode),this.setRowType(),this.setAnimateFlags(r),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const t=this.businessKeyForNodeFunc(this.rowNode);this.businessKeySanitised=Wl(t)}getRowId(){return this.rowId}getRowStyles(){return this.rowStyles}isSticky(){return this.rowNode.sticky}updateGui(t,n){t==="left"?this.leftGui=n:t==="right"?this.rightGui=n:t==="fullWidth"?this.fullWidthGui=n:this.centerGui=n}setComp(t,n,r,i){i=z_(this,this.beans.context,i);const o={rowComp:t,element:n,containerType:r,compBean:i};this.allRowGuis.push(o),this.updateGui(r,o),this.initialiseRowComp(o),this.rowType!=="FullWidthLoading"&&!this.rowNode.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(t){this.allRowGuis=this.allRowGuis.filter(n=>n.containerType!==t),this.updateGui(t,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(t){const n=t?"none":"";this.allRowGuis.forEach(r=>r.element.style.display=n)}initialiseRowComp(t){const n=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(t),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights(),this.onRowHeightChanged(t),this.updateRowIndexes(t),this.setFocusedClasses(t),this.setStylesFromGridOptions(!1,t),pI(n)&&this.rowNode.selectable&&this.onRowSelected(t),this.updateColumnLists(!this.useAnimationFrameForCreate);const r=t.rowComp;this.getInitialRowClasses(t.containerType).forEach(o=>r.addOrRemoveCssClass(o,!0)),this.executeSlideAndFadeAnimations(t),this.rowNode.group&&wd(t.element,this.rowNode.expanded==!0),this.setRowCompRowId(r),this.setRowCompRowBusinessKey(r),Cy(n,t.element,mfe.DOM_DATA_KEY_ROW_CTRL,this),t.compBean.addDestroyFunc(()=>Cy(n,t.element,mfe.DOM_DATA_KEY_ROW_CTRL,null)),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,t),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(t),this.isFullWidth()&&this.setupFullWidth(t),n.get("rowDragEntireRow")&&this.addRowDraggerToRow(t),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask(()=>{this.isAlive()&&t.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(t){this.businessKeySanitised!=null&&t.setRowBusinessKey(this.businessKeySanitised)}getBusinessKey(){return this.businessKeySanitised}setRowCompRowId(t){this.rowId=Wl(this.rowNode.id),this.rowId!=null&&t.setRowId(this.rowId)}executeSlideAndFadeAnimations(t){const{containerType:n}=t;this.slideInAnimation[n]&&(aLe(()=>{this.onTopChanged()}),this.slideInAnimation[n]=!1),this.fadeInAnimation[n]&&(aLe(()=>{t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[n]=!1)}addRowDraggerToRow(t){if(su(this.gos)){rt("Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `cellSelection: true`");return}const n=this.beans.localeService.getLocaleTextFunc(),r=new RH(()=>`1 ${n("rowDragRow","row")}`,this.rowNode,void 0,t.element,void 0,!0),i=this.createBean(r,this.beans.context);this.rowDragComps.push(i),t.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(o=>o!==i),this.destroyBean(i,this.beans.context)})}setupFullWidth(t){const n=this.getPinnedForContainer(t.containerType);if(this.rowType=="FullWidthDetail"&&!this.gos.assertModuleRegistered("@ag-grid-enterprise/master-detail","cell renderer 'agDetailCellRenderer' (for master detail)"))return;const r=this.createFullWidthCompDetails(t.element,n);t.rowComp.showFullWidth(r)}isPrintLayout(){return this.printLayout}getFullWidthCellRenderers(){var t,n;return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(r=>{var i;return(i=r==null?void 0:r.rowComp)==null?void 0:i.getFullWidthCellRenderer()}):[(n=(t=this.fullWidthGui)==null?void 0:t.rowComp)==null?void 0:n.getFullWidthCellRenderer()]}getCellElement(t){const n=this.getCellCtrl(t);return n?n.getGui():null}executeProcessRowPostCreateFunc(){const t=this.gos.getCallback("processRowPostCreate");if(!t||!this.areAllContainersReady())return;const n={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};t(n)}areAllContainersReady(){const t=!!this.leftGui||!this.beans.visibleColsService.isPinningLeft(),n=!!this.centerGui,r=!!this.rightGui||!this.beans.visibleColsService.isPinningRight();return t&&n&&r}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const t=this.beans.gos.getCallback("isFullWidthRow");return t?t({rowNode:this.rowNode}):!1}setRowType(){const t=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),n=this.isNodeFullWidthCell(),r=this.gos.get("masterDetail")&&this.rowNode.detail,i=this.beans.columnModel.isPivotMode(),s=!!this.rowNode.group&&!this.rowNode.footer&&HQ(this.gos,i);t?this.rowType="FullWidthLoading":r?this.rowType="FullWidthDetail":n?this.rowType="FullWidth":s?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(t=!1,n=!1){if(this.isFullWidth())return;if(t||this.gos.get("suppressAnimationFrame")||this.printLayout){this.updateColumnListsImpl(n);return}this.updateColumnListsPending||(this.beans.animationFrameService.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}createCellCtrls(t,n,r=null){const i={list:[],map:{}},o=(s,a)=>{i.list.push(a),i.map[s]=a};return n.forEach(s=>{const a=s.getInstanceId();let l=t.map[a];l||(l=new P4(s,this.rowNode,this.beans,this)),o(a,l)}),t.list.forEach(s=>{const a=s.getColumn().getInstanceId();if(i.map[a]!=null)return;if(!this.isCellEligibleToBeRemoved(s,r)){o(a,s);return}s.destroy()}),i}updateColumnListsImpl(t){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(t)}setCellCtrls(t){this.allRowGuis.forEach(n=>{const r=this.getCellCtrlsForContainer(n.containerType);n.rowComp.setCellCtrls(r,t)})}getCellCtrlsForContainer(t){switch(t){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const t=this.beans.columnViewportService,n=this.beans.visibleColsService;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n.getAllCols()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const r=t.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,r);const i=n.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,i,"left");const o=n.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,o,"right")}}isCellEligibleToBeRemoved(t,n){if(t.getColumn().getPinned()!=n)return!0;const s=t.isEditing(),a=this.beans.focusService.isCellFocused(t.getCellPosition());if(s||a){const c=t.getColumn();return!(this.beans.visibleColsService.getAllCols().indexOf(c)>=0)}return!0}getDomOrder(){return this.gos.get("ensureDomOrder")||La(this.gos,"print")}listenOnDomOrder(t){const n=()=>{t.rowComp.setDomOrder(this.getDomOrder())};t.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],n)}setAnimateFlags(t){if(this.isSticky()||!t)return;const n=zt(this.rowNode.oldRowTop),r=this.beans.visibleColsService.isPinningLeft(),i=this.beans.visibleColsService.isPinningRight();if(n){if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){this.slideInAnimation.fullWidth=!0;return}this.slideInAnimation.center=!0,this.slideInAnimation.left=r,this.slideInAnimation.right=i}else{if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){this.fadeInAnimation.fullWidth=!0;return}this.fadeInAnimation.center=!0,this.fadeInAnimation.left=r,this.fadeInAnimation.right=i}}isEditing(){return this.editingRow}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const t=(a,l)=>a?a.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(a.element,l).params):!0,n=t(this.fullWidthGui,null),r=t(this.centerGui,null),i=t(this.leftGui,"left"),o=t(this.rightGui,"right");return n&&r&&i&&o}addListeners(){this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),expandedChanged:this.updateExpandedCss.bind(this),hasChildrenChanged:this.updateExpandedCss.bind(this)}),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this)}),this.addManagedListeners(this.beans.eventService,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context))}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(this.gos.get("rowDragEntireRow")){this.allRowGuis.forEach(n=>{this.addRowDraggerToRow(n)});return}this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(t=>t.onRowIndexChanged())},cellChanged:t=>{this.getAllCellCtrls().forEach(n=>n.onCellChanged(t))}})}onRowNodeDataChanged(t){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(r=>r.refreshCell({suppressFlash:!t.update,newData:!t.update})),this.allRowGuis.forEach(r=>{this.setRowCompRowId(r.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(r.rowComp)}),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const t=this.rowNode.highlighted;this.allRowGuis.forEach(n=>{const r=t===0,i=t===1;n.rowComp.addOrRemoveCssClass("ag-row-highlight-above",r),n.rowComp.addOrRemoveCssClass("ag-row-highlight-below",i)})}postProcessRowDragging(){const t=this.rowNode.dragging;this.allRowGuis.forEach(n=>n.rowComp.addOrRemoveCssClass("ag-row-dragging",t))}updateExpandedCss(){const t=this.rowNode.isExpandable(),n=this.rowNode.expanded==!0;this.allRowGuis.forEach(r=>{r.rowComp.addOrRemoveCssClass("ag-row-group",t),r.rowComp.addOrRemoveCssClass("ag-row-group-expanded",t&&n),r.rowComp.addOrRemoveCssClass("ag-row-group-contracted",t&&!n),wd(r.element,t&&n)})}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:Da(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}findFullWidthRowGui(t){return this.allRowGuis.find(n=>n.element.contains(t))}onKeyboardNavigate(t){const n=this.findFullWidthRowGui(t.target);if(!((n?n.element:null)===t.target))return;const o=this.rowNode,s=this.beans.focusService.getFocusedCell(),a={rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:(s==null?void 0:s.column)??this.getColumnForFullWidth(n)};this.beans.navigationService.navigateToNextCell(t,t.key,a,!0),t.preventDefault()}onTabKeyDown(t){if(t.defaultPrevented||Ig(t))return;const n=this.allRowGuis.find(l=>l.element.contains(t.target)),r=n?n.element:null,i=r===t.target,o=gi(this.gos);let s=!1;r&&o&&(s=r.contains(o)&&o.classList.contains("ag-cell"));let a=null;!i&&!s&&(a=this.beans.focusService.findNextFocusableElement(r,!1,t.shiftKey)),(this.isFullWidth()&&i||!a)&&this.beans.navigationService.onTabKeyDown(this,t)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){var n;const t=(n=this.allRowGuis.find(r=>Su(r.element)))==null?void 0:n.element;return t?t.getBoundingClientRect().top:0}onSuppressCellFocusChanged(t){const n=this.isFullWidth()&&t?void 0:-1;this.allRowGuis.forEach(r=>{jf(r.element,"tabindex",n)})}onFullWidthRowFocused(t){var o;const n=this.rowNode,r=t?this.isFullWidth()&&t.rowIndex===n.rowIndex&&t.rowPinned==n.rowPinned:!1,i=this.fullWidthGui?this.fullWidthGui.element:(o=this.centerGui)==null?void 0:o.element;i&&(i.classList.toggle("ag-full-width-focus",r),r&&(t!=null&&t.forceBrowserFocus)&&i.focus({preventScroll:!0}))}recreateCell(t){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,t),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,t),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,t),t.destroy(),this.updateColumnLists()}removeCellCtrl(t,n){const r={list:[],map:{}};return t.list.forEach(i=>{i!==n&&(r.list.push(i),r.map[i.getColumn().getInstanceId()]=i)}),r}onMouseEvent(t,n){switch(t){case"dblclick":this.onRowDblClick(n);break;case"click":this.onRowClick(n);break;case"touchstart":case"mousedown":this.onRowMouseDown(n);break}}createRowEvent(t,n){return this.gos.addGridCommonParams({type:t,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,event:n})}createRowEventWithSource(t,n){const r=this.createRowEvent(t,n);return r.source=this,r}onRowDblClick(t){Ig(t)||this.beans.eventService.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",t))}getColumnForFullWidth(t){const{visibleColsService:n}=this.beans;switch(t==null?void 0:t.containerType){case"center":return n.getCenterCols()[0];case"left":return n.getLeftCols()[0];case"right":return n.getRightCols()[0];default:return n.getAllCols()[0]}}onRowMouseDown(t){if(this.lastMouseDownOnDragger=fw(t.target,"ag-row-drag",3),!this.isFullWidth())return;const n=this.rowNode;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges();const r=this.findFullWidthRowGui(t.target),i=r==null?void 0:r.element,o=t.target;let s=!0;i&&i.contains(o)&&U3e(o)&&(s=!1),this.beans.focusService.setFocusedCell({rowIndex:n.rowIndex,column:this.getColumnForFullWidth(r),rowPinned:n.rowPinned,forceBrowserFocus:s})}onRowClick(t){if(Ig(t)||this.lastMouseDownOnDragger)return;const{gos:r}=this;this.beans.eventService.dispatchEvent(this.createRowEventWithSource("rowClicked",t));const i=t.ctrlKey||t.metaKey,o=t.shiftKey,s=this.rowNode.isSelected(),a=q0(r),l=uLe(r),c=Kni(r);if(a&&this.rowNode.group||this.isRowSelectionBlocked()||!c&&!s||!l&&s)return;const u=Yni(r),f="rowClicked";if(s)u?this.rowNode.setSelectedParams({newValue:!1,event:t,source:f}):i?l&&this.rowNode.setSelectedParams({newValue:!1,event:t,source:f}):c&&this.rowNode.setSelectedParams({newValue:!0,clearSelection:!o,rangeSelect:o,event:t,source:f});else{const h=u?!1:!i;this.rowNode.setSelectedParams({newValue:!0,clearSelection:h,rangeSelect:o,event:t,source:f})}}isRowSelectionBlocked(){return!this.rowNode.selectable||!!this.rowNode.rowPinned||!pI(this.gos)}setupDetailRowAutoHeight(t){if(this.rowType!=="FullWidthDetail"||!this.gos.get("detailRowAutoHeight"))return;const n=()=>{const i=t.clientHeight;if(i!=null&&i>0){const o=()=>{this.rowNode.setRowHeight(i),(Li(this.gos)||ml(this.gos))&&this.beans.rowModel.onRowHeightChanged()};window.setTimeout(o,0)}},r=this.beans.resizeObserverService.observeResize(t,n);this.addDestroyFunc(r),n()}createFullWidthCompDetails(t,n){const{gos:r,rowNode:i}=this,o=r.addGridCommonParams({fullWidth:!0,data:i.data,node:i,value:i.key,valueFormatted:i.key,eGridCell:t,eParentOfValue:t,pinned:n,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(a,l,c,u)=>this.addFullWidthRowDragging(a,l,c,u),setTooltip:(a,l)=>this.refreshRowTooltip(a,l)}),s=this.beans.userComponentFactory;switch(this.rowType){case"FullWidthDetail":return s.getFullWidthDetailCellRendererDetails(o);case"FullWidthGroup":return s.getFullWidthGroupCellRendererDetails(o);case"FullWidthLoading":return s.getFullWidthLoadingCellRendererDetails(o);default:return s.getFullWidthCellRendererDetails(o)}}refreshRowTooltip(t,n){if(!this.fullWidthGui)return;const r={getGui:()=>this.fullWidthGui.element,getTooltipValue:()=>t,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:n};this.tooltipFeature&&this.destroyBean(this.tooltipFeature,this.beans.context),this.tooltipFeature=this.createBean(new Lb(r,this.beans))}addFullWidthRowDragging(t,n,r="",i){if(!this.isFullWidth())return;const o=new RH(()=>r,this.rowNode,void 0,t,n,i);this.createBean(o,this.beans.context),this.addDestroyFunc(()=>{this.destroyBean(o,this.beans.context)})}onUiLevelChanged(){const t=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=t){const n="ag-row-level-"+t,r="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(i=>{i.rowComp.addOrRemoveCssClass(n,!0),i.rowComp.addOrRemoveCssClass(r,!1)})}this.rowLevel=t}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBoundsService.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBoundsService.getLastRow()}refreshFirstAndLastRowStyles(){const t=this.isFirstRowOnPage(),n=this.isLastRowOnPage();this.firstRowOnPage!==t&&(this.firstRowOnPage=t,this.allRowGuis.forEach(r=>r.rowComp.addOrRemoveCssClass("ag-row-first",t))),this.lastRowOnPage!==n&&(this.lastRowOnPage=n,this.allRowGuis.forEach(r=>r.rowComp.addOrRemoveCssClass("ag-row-last",n)))}stopEditing(t=!1){var n;this.stoppingRowEdit||(n=this.beans.rowEditService)==null||n.stopEditing(this,t)}setInlineEditingCss(){const t=this.editingRow||this.getAllCellCtrls().some(n=>n.isEditing());this.allRowGuis.forEach(n=>{n.rowComp.addOrRemoveCssClass("ag-row-inline-editing",t),n.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!t)})}setEditingRow(t){this.editingRow=t}startRowEditing(t=null,n=null,r=null){var i;return this.editingRow?!0:((i=this.beans.rowEditService)==null?void 0:i.startEditing(this,t,n,r))??!0}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);!t||!t.length||t.forEach(n=>{this.allRowGuis.forEach(r=>r.rowComp.addOrRemoveCssClass(n,!0))})}postProcessRowClassRules(){this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,t=>{this.allRowGuis.forEach(n=>n.rowComp.addOrRemoveCssClass(t,!0))},t=>{this.allRowGuis.forEach(n=>n.rowComp.addOrRemoveCssClass(t,!1))})}setStylesFromGridOptions(t,n){t&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(n,r=>r.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(t){return t==="left"||t==="right"?t:null}getInitialRowClasses(t){const n=this.getPinnedForContainer(t),r={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[t],rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:n};return this.beans.rowCssClassCalculator.getInitialRowClasses(r)}processStylesFromGridOptions(){const t=this.gos.get("rowStyle");if(t&&typeof t=="function"){rt("rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");return}const n=this.gos.getCallback("getRowStyle");let r;if(n){const i={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex};r=n(i)}return r||t?Object.assign({},t,r):this.emptyStyle}onRowSelected(t){const n=!!this.rowNode.isSelected();this.forEachGui(t,r=>{r.rowComp.addOrRemoveCssClass("ag-row-selected",n),yH(r.element,n),r.element.contains(gi(this.gos))&&(r===this.centerGui||r===this.fullWidthGui)&&this.announceDescription()})}announceDescription(){if(this.isRowSelectionBlocked())return;const t=this.rowNode.isSelected();if(t&&!uLe(this.gos))return;const r=this.beans.localeService.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row.`);this.beans.ariaAnnouncementService.announceValue(r,"rowSelection")}addHoverFunctionality(t){if(!this.active)return;const{element:n,compBean:r}=t,{rowNode:i,beans:o,gos:s}=this;r.addManagedListeners(n,{mouseenter:()=>i.onMouseEnter(),mouseleave:()=>i.onMouseLeave()}),r.addManagedListeners(i,{mouseEnter:()=>{!o.dragService.isDragging()&&!s.get("suppressRowHoverHighlight")&&(n.classList.add("ag-row-hover"),i.setHovered(!0))},mouseLeave:()=>{n.classList.remove("ag-row-hover"),i.setHovered(!1)}})}roundRowTopToBounds(t){const n=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getApproximateVScollPosition(),r=this.applyPaginationOffset(n.top,!0)-100,i=this.applyPaginationOffset(n.bottom,!0)+100;return Math.min(Math.max(r,t),i)}getFrameworkOverrides(){return this.beans.frameworkOverrides}forEachGui(t,n){t?n(t):this.allRowGuis.forEach(n)}onRowHeightChanged(t){if(this.rowNode.rowHeight==null)return;const n=this.rowNode.rowHeight,r=this.beans.environment.getDefaultRowHeight(),o=I3e(this.gos)?kl(this.gos,this.rowNode).height:void 0,s=o?`${Math.min(r,o)-2}px`:void 0;this.forEachGui(t,a=>{a.element.style.height=`${n}px`,s&&a.element.style.setProperty("--ag-line-height",s)})}addEventListener(t,n){super.addEventListener(t,n)}removeEventListener(t,n){super.removeEventListener(t,n)}destroyFirstPass(t=!1){if(this.active=!1,!t&&uw(this.gos)&&!this.isSticky())if(this.rowNode.rowTop!=null){const i=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(i)}else this.allRowGuis.forEach(i=>i.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0));this.rowNode.setHovered(!1);const n=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(n),this.beans.eventService.dispatchEvent(n),super.destroy()}destroySecondPass(){this.allRowGuis.length=0,this.stopEditing();const t=n=>(n.list.forEach(r=>r.destroy()),{list:[],map:{}});this.centerCellCtrls=t(this.centerCellCtrls),this.leftCellCtrls=t(this.leftCellCtrls),this.rightCellCtrls=t(this.rightCellCtrls)}setFocusedClasses(t){this.forEachGui(t,n=>{n.rowComp.addOrRemoveCssClass("ag-row-focus",this.rowFocused),n.rowComp.addOrRemoveCssClass("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const t=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses()),!t&&this.editingRow&&this.stopEditing(!1)}onPaginationChanged(){var n;const t=((n=this.beans.paginationService)==null?void 0:n.getCurrentPage())??0;this.paginationPage!==t&&(this.paginationPage=t,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(t,n=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return t;const r=this.beans.pageBoundsService.getPixelOffset();return t+r*(n?1:-1)}setRowTop(t){if(!this.printLayout&&zt(t)){const n=this.applyPaginationOffset(t),o=`${this.rowNode.isRowPinned()||this.rowNode.sticky?n:this.beans.rowContainerHeightService.getRealPixelPosition(n)}px`;this.setRowTopStyle(o)}}getInitialRowTop(t){return this.suppressRowTransform?this.getInitialRowTopShared(t):void 0}getInitialTransform(t){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(t)})`}getInitialRowTopShared(t){if(this.printLayout)return"";const n=this.rowNode;let r;if(this.isSticky())r=n.stickyRowTop;else{const i=this.slideInAnimation[t]?this.roundRowTopToBounds(n.oldRowTop):n.rowTop,o=this.applyPaginationOffset(i);r=n.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o)}return r+"px"}setRowTopStyle(t){this.allRowGuis.forEach(n=>this.suppressRowTransform?n.rowComp.setTop(t):n.rowComp.setTransform(`translateY(${t})`))}getRowNode(){return this.rowNode}getCellCtrl(t){let n=null;return this.getAllCellCtrls().forEach(r=>{r.getColumn()==t&&(n=r)}),n!=null||this.getAllCellCtrls().forEach(r=>{r.getColSpanningList().indexOf(t)>=0&&(n=r)}),n}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}getRowIndex(){return this.rowNode.getRowIndexString()}updateRowIndexes(t){var s;const n=this.rowNode.getRowIndexString();if(n===null)return;const r=this.beans.headerNavigationService.getHeaderRowCount()+(((s=this.beans.filterManager)==null?void 0:s.getHeaderRowCount())??0),i=this.rowNode.rowIndex%2===0,o=r+this.rowNode.rowIndex+1;this.forEachGui(t,a=>{a.rowComp.setRowIndex(n),a.rowComp.addOrRemoveCssClass("ag-row-even",i),a.rowComp.addOrRemoveCssClass("ag-row-odd",!i),ift(a.element,o)})}setStoppingRowEdit(t){this.stoppingRowEdit=t}};yht.DOM_DATA_KEY_ROW_CTRL="renderedRow";var pC=yht,Xsi=class extends ct{wireBeans(e){this.mouseEventService=e.mouseEventService,this.valueService=e.valueService,this.menuService=e.menuService,this.ctrlsService=e.ctrlsService,this.navigationService=e.navigationService,this.focusService=e.focusService,this.undoRedoService=e.undoRedoService,this.visibleColsService=e.visibleColsService,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel,this.rangeService=e.rangeService,this.clipboardService=e.clipboardService}constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",qdt("touchstart")?"touchstart":"mousedown"].forEach(n=>{const r=this.processMouseEvent.bind(this,n);this.addManagedElementListeners(this.element,{[n]:r})})}processMouseEvent(e,t){if(!this.mouseEventService.isEventFromThisGrid(t)||Ig(t))return;const n=this.getRowForEvent(t),r=this.mouseEventService.getRenderedCellForEvent(t);e==="contextmenu"?this.handleContextMenuMouseEvent(t,void 0,n,r):(r&&r.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}mockContextMenuForIPad(){if(!Ev())return;const e=new Cm(this.element),t=n=>{const r=this.getRowForEvent(n.touchEvent),i=this.mouseEventService.getRenderedCellForEvent(n.touchEvent);this.handleContextMenuMouseEvent(void 0,n.touchEvent,r,i)};this.addManagedListeners(e,{longTap:t}),this.addDestroyFunc(()=>e.destroy())}getRowForEvent(e){let t=e.target;for(;t;){const n=mI(this.gos,t,pC.DOM_DATA_KEY_ROW_CTRL);if(n)return n;t=t.parentElement}return null}handleContextMenuMouseEvent(e,t,n,r){const i=n?n.getRowNode():null,o=r?r.getColumn():null;let s=null;if(o){const c=e||t;r.dispatchCellContextMenuEvent(c??null),s=this.valueService.getValue(o,i)}const a=this.ctrlsService.getGridBodyCtrl(),l=r?r.getGui():a.getGridBodyElement();this.menuService.showContextMenu({mouseEvent:e,touchEvent:t,rowNode:i,column:o,value:s,anchorToElement:l})}getControlsForEventTarget(e){return{cellCtrl:CH(this.gos,e,P4.DOM_DATA_KEY_CELL_CTRL),rowCtrl:CH(this.gos,e,pC.DOM_DATA_KEY_ROW_CTRL)}}processKeyboardEvent(e,t){const{cellCtrl:n,rowCtrl:r}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))}processCellKeyboardEvent(e,t,n){const r=e.getRowNode(),i=e.getColumn(),o=e.isEditing();!cfe(this.gos,n,r,i,o)&&t==="keydown"&&(!o&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing()),jft(n)&&e.processCharacter(n)),t==="keydown"&&this.eventService.dispatchEvent(e.createEvent(n,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,n){const r=e.getRowNode(),i=this.focusService.getFocusedCell(),o=i&&i.column;if(!cfe(this.gos,n,r,o,!1)){const a=n.key;if(t==="keydown")switch(a){case Je.PAGE_HOME:case Je.PAGE_END:case Je.PAGE_UP:case Je.PAGE_DOWN:this.navigationService.handlePageScrollingKey(n,!0);break;case Je.UP:case Je.DOWN:e.onKeyboardNavigate(n);break;case Je.TAB:e.onTabKeyDown(n);break}}t==="keydown"&&this.eventService.dispatchEvent(e.createRowEvent("cellKeyDown",n))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!this.mouseEventService.isEventFromThisGrid(e))return;const n=roi(e);if(n===Je.A)return this.onCtrlAndA(e);if(n===Je.C)return this.onCtrlAndC(e);if(n===Je.D)return this.onCtrlAndD(e);if(n===Je.V)return this.onCtrlAndV(e);if(n===Je.X)return this.onCtrlAndX(e);if(n===Je.Y)return this.onCtrlAndY();if(n===Je.Z)return this.onCtrlAndZ(e)}onCtrlAndA(e){const{pinnedRowModel:t,rowModel:n,rangeService:r}=this;if(r&&n.isRowsToRender()){const[i,o]=[t.isEmpty("top"),t.isEmpty("bottom")],s=i?null:"top";let a,l;o?(a=null,l=n.getRowCount()-1):(a="bottom",l=t.getPinnedBottomRowCount()-1);const c=this.visibleColsService.getAllCols();if(Es(c))return;r.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:l,rowEndPinned:a,columnStart:c[0],columnEnd:Dn(c)})}e.preventDefault()}onCtrlAndC(e){if(!this.clipboardService||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:t,rowCtrl:n}=this.getControlsForEventTarget(e.target);t!=null&&t.isEditing()||n!=null&&n.isEditing()||(e.preventDefault(),this.clipboardService.copyToClipboard())}onCtrlAndX(e){if(!this.clipboardService||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:t,rowCtrl:n}=this.getControlsForEventTarget(e.target);t!=null&&t.isEditing()||n!=null&&n.isEditing()||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}onCtrlAndV(e){const{cellCtrl:t,rowCtrl:n}=this.getControlsForEventTarget(e.target);t!=null&&t.isEditing()||n!=null&&n.isEditing()||this.clipboardService&&!this.gos.get("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()}onCtrlAndD(e){this.clipboardService&&!this.gos.get("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()}onCtrlAndZ(e){!this.gos.get("undoRedoCellEditing")||!this.undoRedoService||(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))}onCtrlAndY(){var e;(e=this.undoRedoService)==null||e.redo("ui")}},Qsi=class extends ct{wireBeans(e){this.pinnedWidthService=e.pinnedWidthService}constructor(e){super(),this.element=e}postConstruct(){this.addManagedEventListeners({leftPinnedWidthChanged:this.onPinnedLeftWidthChanged.bind(this)})}onPinnedLeftWidthChanged(){const e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;Mn(this.element,t),Mg(this.element,e)}getWidth(){return this.pinnedWidthService.getPinnedLeftWidth()}},Zsi=class extends ct{wireBeans(e){this.pinnedWidthService=e.pinnedWidthService}constructor(e){super(),this.element=e}postConstruct(){this.addManagedEventListeners({rightPinnedWidthChanged:this.onPinnedRightWidthChanged.bind(this)})}onPinnedRightWidthChanged(){const e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;Mn(this.element,t),Mg(this.element,e)}getWidth(){return this.pinnedWidthService.getPinnedRightWidth()}},mF=e=>e.getTopRowCtrls(),vF=e=>e.getStickyTopRowCtrls(),CF=e=>e.getStickyBottomRowCtrls(),yF=e=>e.getBottomRowCtrls(),bF=e=>e.getCentreRowCtrls(),Jsi={center:{type:"center",container:"ag-center-cols-container",viewport:"ag-center-cols-viewport",getRowCtrls:bF},left:{type:"left",container:"ag-pinned-left-cols-container",pinnedType:"left",getRowCtrls:bF},right:{type:"right",container:"ag-pinned-right-cols-container",pinnedType:"right",getRowCtrls:bF},fullWidth:{type:"fullWidth",container:"ag-full-width-container",fullWidth:!0,getRowCtrls:bF},topCenter:{type:"center",container:"ag-floating-top-container",viewport:"ag-floating-top-viewport",getRowCtrls:mF},topLeft:{type:"left",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:mF},topRight:{type:"right",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:mF},topFullWidth:{type:"fullWidth",container:"ag-floating-top-full-width-container",fullWidth:!0,getRowCtrls:mF},stickyTopCenter:{type:"center",container:"ag-sticky-top-container",viewport:"ag-sticky-top-viewport",getRowCtrls:vF},stickyTopLeft:{type:"left",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:vF},stickyTopRight:{type:"right",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:vF},stickyTopFullWidth:{type:"fullWidth",container:"ag-sticky-top-full-width-container",fullWidth:!0,getRowCtrls:vF},stickyBottomCenter:{type:"center",container:"ag-sticky-bottom-container",viewport:"ag-sticky-bottom-viewport",getRowCtrls:CF},stickyBottomLeft:{type:"left",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:CF},stickyBottomRight:{type:"right",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:CF},stickyBottomFullWidth:{type:"fullWidth",container:"ag-sticky-bottom-full-width-container",fullWidth:!0,getRowCtrls:CF},bottomCenter:{type:"center",container:"ag-floating-bottom-container",viewport:"ag-floating-bottom-viewport",getRowCtrls:yF},bottomLeft:{type:"left",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:yF},bottomRight:{type:"right",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:yF},bottomFullWidth:{type:"fullWidth",container:"ag-floating-bottom-full-width-container",fullWidth:!0,getRowCtrls:yF}};function z8(e){return Jsi[e]}var eai=["topCenter","topLeft","topRight"],tai=["bottomCenter","bottomLeft","bottomRight"],nai=["center","left","right"],rai=["center","left","right","fullWidth"],iai=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],oai=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],sai=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],bht=["stickyTopCenter","stickyTopLeft","stickyTopRight"],Sht=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],aai=[...bht,"stickyTopFullWidth",...Sht,"stickyBottomFullWidth"],lai=[...eai,...tai,...nai,...bht,...Sht],wht=class extends ct{constructor(e){super(),this.visible=!0,this.EMPTY_CTRLS=[],this.name=e,this.options=z8(e)}wireBeans(e){this.dragService=e.dragService,this.ctrlsService=e.ctrlsService,this.columnViewportService=e.columnViewportService,this.resizeObserverService=e.resizeObserverService,this.rowRenderer=e.rowRenderer}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new xsi(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.ctrlsService.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}getContainerElement(){return this.eContainer}getViewportSizeFeature(){return this.viewportSizeFeature}setComp(e,t,n){this.comp=e,this.eContainer=t,this.eViewport=n,this.createManagedBean(new Xsi(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const r=()=>this.onPinnedWidthChanged();this.forContainers(oai,()=>{this.pinnedWidthFeature=this.createManagedBean(new Qsi(this.eContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:r})}),this.forContainers(sai,()=>{this.pinnedWidthFeature=this.createManagedBean(new Zsi(this.eContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:r})}),this.forContainers(rai,()=>this.createManagedBean(new pht(this.eContainer,this.name==="center"?n:void 0))),this.forContainers(lai,()=>this.createManagedBean(new Esi(this.eContainer))),this.forContainers(iai,()=>this.createManagedBean(new o6e(i=>this.comp.setContainerWidth(`${i}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.getViewportElement(),{scroll:e})}addListeners(){this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),displayedRowsChanged:e=>this.onDisplayedRowsChanged(e.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if(aai.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const n=this.gos.get("ensureDomOrder"),r=La(this.gos,"print");this.comp.setDomOrder(n||r)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}onDisplayedColumnsWidthChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const e=t=>{this.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",e,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",e))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),n=this.getCenterViewportScrollLeft();this.columnViewportService.setScrollPosition(t,n,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return dE(this.eViewport)}getCenterViewportScrollLeft(){return wH(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return vft(this.eViewport)}getViewportScrollLeft(){return wH(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||Wri(this.eViewport)}getViewportElement(){return this.eViewport}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){xH(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const n=La(this.gos,"print"),i=this.gos.get("embedFullWidthRows")||n,o=t.filter(s=>{const a=s.isFullWidth();return this.options.fullWidth?!i&&a:i||!a});this.comp.setRowCtrls({rowCtrls:o,useFlushSync:e})}},xht="ag-force-vertical-scroll",cai="ag-selectable",uai="ag-column-moving",Eht=class extends ct{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.animationFrameService=e.animationFrameService,this.rowContainerHeightService=e.rowContainerHeightService,this.ctrlsService=e.ctrlsService,this.columnModel=e.columnModel,this.columnSizeService=e.columnSizeService,this.scrollVisibleService=e.scrollVisibleService,this.menuService=e.menuService,this.headerNavigationService=e.headerNavigationService,this.dragAndDropService=e.dragAndDropService,this.pinnedRowModel=e.pinnedRowModel,this.rowRenderer=e.rowRenderer,this.popupService=e.popupService,this.mouseEventService=e.mouseEventService,this.rowModel=e.rowModel,this.filterManager=e.filterManager,this.environment=e.environment}getScrollFeature(){return this.bodyScrollFeature}getBodyViewportElement(){return this.eBodyViewport}setComp(e,t,n,r,i,o,s){var a;this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=r,this.eBottom=i,this.eStickyTop=o,this.eStickyBottom=s,this.eCenterColsViewport=n.querySelector(`.${z8("center").viewport}`),this.eFullWidthContainer=n.querySelector(`.${z8("fullWidth").container}`),this.eStickyTopFullWidthContainer=o.querySelector(`.${z8("stickyTopFullWidth").container}`),this.eStickyBottomFullWidthContainer=s.querySelector(`.${z8("stickyBottomFullWidth").container}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",l=>this.setCellTextSelection(l.currentValue)),this.createManagedBean(new a6e(this.comp)),this.bodyScrollFeature=this.createManagedBean(new wsi(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,n,i,o,s]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),(a=this.filterManager)==null||a.setupAdvancedFilterHeaderComp(r),this.ctrlsService.register("gridBodyCtrl",this)}getComp(){return this.comp}addEventListeners(){const e=this.setFloatingHeights.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.onScrollGapChanged.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,headerHeightChanged:this.onHeaderHeightChanged.bind(this)})}addFocusListeners(e){e.forEach(t=>{this.addManagedElementListeners(t,{focusin:n=>{const{target:r}=n,i=fw(r,"ag-root",t);t.classList.toggle("ag-has-focus",!i)},focusout:n=>{const{target:r,relatedTarget:i}=n,o=t.contains(i),s=fw(i,"ag-root",t);fw(r,"ag-root",t)||(!o||s)&&t.classList.remove("ag-has-focus")}})})}setColumnMovingCss(e){this.comp.setColumnMovingCss(uai,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(cai,e)}onScrollVisibilityChanged(){const e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyWidth(e),this.setStickyBottomOffsetBottom();const t=e&&this.scrollVisibleService.getScrollbarWidth()||0,n=hft()?16:0,r=`calc(100% + ${t+n}px)`;this.animationFrameService.requestAnimationFrame(()=>this.comp.setBodyViewportWidth(r)),this.updateScrollingClasses()}onScrollGapChanged(){this.updateScrollingClasses()}updateScrollingClasses(){this.eGridBody.classList.toggle("ag-body-vertical-content-no-gap",!this.scrollVisibleService.hasVerticalScrollGap()),this.eGridBody.classList.toggle("ag-body-horizontal-content-no-gap",!this.scrollVisibleService.hasHorizontalScrollGap())}onGridColumnsChanged(){const e=this.columnModel.getCols();this.comp.setColumnCount(e.length)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){if(!this.gos.get("stopEditingWhenCellsLoseFocus"))return;const e=n=>{const r=n.relatedTarget;if(afe(r)===null){this.rowRenderer.stopEditing();return}let i=t.some(o=>o.contains(r))&&this.mouseEventService.isElementInThisGrid(r);if(!i){const o=this.popupService;i=o.getActivePopups().some(s=>s.contains(r))||o.isElementWithinCustomPopup(r)}i||this.rowRenderer.stopEditing()},t=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom];t.forEach(n=>this.addManagedElementListeners(n,{focusout:e}))}updateRowCount(){var r;const e=this.headerNavigationService.getHeaderRowCount()+(((r=this.filterManager)==null?void 0:r.getHeaderRowCount())??0),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,n=t===-1?-1:e+t;this.comp.setRowCount(n)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?xht:null,n=La(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||n&&Uri(this.eBodyViewport)}setupRowAnimationCssClass(){let e=this.environment.hasMeasuredSizes();const t=()=>{const n=e&&uw(this.gos)&&!this.rowContainerHeightService.isStretching(),r=n?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(r,n)};t(),this.addManagedEventListeners({heightScaleChanged:t}),this.addManagedPropertyListener("animateRows",t),this.addManagedEventListeners({gridStylesChanged:()=>{!e&&this.environment.hasMeasuredSizes()&&(e=!0,t())}})}getGridBodyElement(){return this.eGridBody}addBodyViewportListener(){const e=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(this.eBodyViewport,{contextmenu:e}),this.mockContextMenuForIPad(e),this.addManagedElementListeners(this.eBodyViewport,{wheel:this.onBodyViewportWheel.bind(this)}),this.addManagedElementListeners(this.eStickyTop,{wheel:this.onStickyWheel.bind(this)}),this.addManagedElementListeners(this.eStickyBottom,{wheel:this.onStickyWheel.bind(this)}),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:n,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(n))&&this.mouseEventService.isEventFromThisGrid(e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaX:t,deltaY:n,shiftKey:r}=e,i=r||Math.abs(t)>Math.abs(n),o=e.target;i?(this.eStickyTopFullWidthContainer.contains(o)||this.eStickyBottomFullWidthContainer.contains(o))&&this.scrollGridBodyToMatchEvent(e):(e.preventDefault(),this.scrollVertically(n))}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:n}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||n})}onBodyViewportContextMenu(e,t,n){if(!e&&!n)return;this.gos.get("preventDefaultOnContextMenu")&&(e||n).preventDefault();const{target:r}=e||t;(r===this.eBodyViewport||r===this.ctrlsService.get("center").getViewportElement())&&this.menuService.showContextMenu({mouseEvent:e,touchEvent:n,value:null,anchorToElement:this.eGridBody})}mockContextMenuForIPad(e){if(!Ev())return;const t=new Cm(this.eBodyViewport),n=r=>{e(void 0,r.touchStart,r.touchEvent)};this.addManagedListeners(t,{longTap:n}),this.addDestroyFunc(()=>t.destroy())}onBodyViewportWheel(e){this.gos.get("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()}getGui(){return this.eGridBody}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}addRowDragListener(){this.rowDragFeature=this.createManagedBean(new zii(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature),this.addDestroyFunc(()=>this.dragAndDropService.removeDropTarget(this.rowDragFeature))}getRowDragFeature(){return this.rowDragFeature}setFloatingHeights(){const{pinnedRowModel:e}=this,t=e.getPinnedTopTotalHeight(),n=e.getPinnedBottomTotalHeight();this.comp.setTopHeight(t),this.comp.setBottomHeight(n),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none"),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}getStickyTopHeight(){return this.stickyTopHeight}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}getStickyBottomHeight(){return this.stickyBottomHeight}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{const t=this.scrollVisibleService.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}onHeaderHeightChanged(){this.setStickyTopOffsetTop()}setStickyTopOffsetTop(){var i;const t=this.ctrlsService.get("gridHeaderCtrl").getHeaderHeight()+(((i=this.filterManager)==null?void 0:i.getHeaderHeight())??0),n=this.pinnedRowModel.getPinnedTopTotalHeight();let r=0;t>0&&(r+=t),n>0&&(r+=n),r>0&&(r+=1),this.comp.setStickyTopTop(`${r}px`)}setStickyBottomOffsetBottom(){const e=this.pinnedRowModel.getPinnedBottomTotalHeight(),n=this.scrollVisibleService.isHorizontalScrollShowing()&&this.scrollVisibleService.getScrollbarWidth()||0,r=e+n;this.comp.setStickyBottomBottom(`${r}px`)}sizeColumnsToFit(e,t){const r=this.isVerticalScrollShowing()?this.scrollVisibleService.getScrollbarWidth():0,o=dE(this.eGridBody)-r;if(o>0){this.columnSizeService.sizeColumnsToFit(o,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFit(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFit(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFit(e,-1)},500):rt("tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")}addScrollEventListener(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})}removeScrollEventListener(e){this.eBodyViewport.removeEventListener("scroll",e)}},dai=class extends wn{constructor(t,n,r,i,o){super(),this.rendererVersion=0,this.editorVersion=0,this.beans=t,this.column=n.getColumn(),this.rowNode=n.getRowNode(),this.rowCtrl=n.getRowCtrl(),this.eRow=i,this.cellCtrl=n;const s=document.createElement("div");s.setAttribute("comp-id",`${this.getCompId()}`),this.setTemplateFromElement(s);const a=this.getGui();this.forceWrapper=n.isForceWrapper(),this.refreshWrapper(!1),jo(a,n.getCellAriaRole()),a.setAttribute("col-id",n.colIdSanitised);const l={addOrRemoveCssClass:(c,u)=>this.addOrRemoveCssClass(c,u),setUserStyles:c=>bft(a,c),getFocusableElement:()=>this.getFocusableElement(),setIncludeSelection:c=>this.includeSelection=c,setIncludeRowDrag:c=>this.includeRowDrag=c,setIncludeDndSource:c=>this.includeDndSource=c,setRenderDetails:(c,u,f)=>this.setRenderDetails(c,u,f),setEditDetails:(c,u,f)=>this.setEditDetails(c,u,f),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};n.setComp(l,this.getGui(),this.eCellWrapper,r,o,void 0)}getParentOfValue(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()}setRenderDetails(t,n,r){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;const o=this.refreshWrapper(!1);this.refreshEditStyles(!1),t?!(r||o)&&this.refreshCellRenderer(t)||(this.destroyRenderer(),this.createCellRendererInstance(t)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(n))}setEditDetails(t,n,r){t?this.createCellEditorInstance(t,n,r):this.destroyEditor()}removeControls(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)}refreshWrapper(t){const n=this.includeRowDrag||this.includeDndSource||this.includeSelection,r=n||this.forceWrapper,i=r&&this.eCellWrapper==null;if(i){const u=document.createElement("div");u.setAttribute("role","presentation"),u.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=u,this.getGui().appendChild(this.eCellWrapper)}const o=!r&&this.eCellWrapper!=null;o&&(au(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!r);const s=!t&&r,a=s&&this.eCellValue==null;if(a){const u=document.createElement("span");u.setAttribute("role","presentation"),u.setAttribute("class","ag-cell-value"),this.eCellValue=u,this.eCellWrapper.appendChild(this.eCellValue)}const l=!s&&this.eCellValue!=null;l&&(au(this.eCellValue),this.eCellValue=void 0);const c=i||o||a||l;return c&&this.removeControls(),t||n&&this.addControls(),c}addControls(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))}createCellEditorInstance(t,n,r){const i=this.editorVersion,o=t.newAgStackInstance();if(o==null)return;const{params:s}=t;o.then(l=>this.afterCellEditorCreated(i,l,s,n,r)),ar(this.cellEditor)&&s.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(t){const n=this.getParentOfValue();go(n);const r=t!=null?Wl(t,!0):null;r!=null&&(n.textContent=r)}destroyEditorAndRenderer(){this.destroyRenderer(),this.destroyEditor()}destroyRenderer(){const{context:t}=this.beans;this.cellRenderer=t.destroyBean(this.cellRenderer),au(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){const{context:t}=this.beans;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=t.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper),au(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(t){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==t.componentClass)return!1;const n=this.cellRenderer.refresh(t.params);return n===!0||n===void 0}createCellRendererInstance(t){const r=!this.beans.gos.get("suppressAnimationFrame"),i=this.rendererVersion,{componentClass:o}=t,s=()=>{if(this.rendererVersion!==i||!this.isAlive())return;const l=t.newAgStackInstance(),c=this.afterCellRendererCreated.bind(this,i,o);l&&l.then(c)};r&&this.firstRender?this.beans.animationFrameService.createTask(s,this.rowNode.rowIndex,"createTasksP2"):s()}getCtrl(){return this.cellCtrl}getRowCtrl(){return this.rowCtrl}getCellRenderer(){return this.cellRenderer}getCellEditor(){return this.cellEditor}afterCellRendererCreated(t,n,r){if(!this.isAlive()||t!==this.rendererVersion){this.beans.context.destroyBean(r);return}if(this.cellRenderer=r,this.cellRendererClass=n,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){const o=this.getParentOfValue();go(o),o.appendChild(this.cellRendererGui)}}afterCellEditorCreated(t,n,r,i,o){if(t!==this.editorVersion){this.beans.context.destroyBean(n);return}if(n.isCancelBeforeStart&&n.isCancelBeforeStart()){this.beans.context.destroyBean(n),this.cellCtrl.stopEditing(!0);return}if(!n.getGui){rt(`cellEditor for column ${this.column.getId()} is missing getGui() method`),this.beans.context.destroyBean(n);return}this.cellEditor=n,this.cellEditorGui=n.getGui();const l=i||n.isPopup!==void 0&&n.isPopup();l?this.addPopupCellEditor(r,o):this.addInCellEditor(),this.refreshEditStyles(!0,l),n.afterGuiAttached&&n.afterGuiAttached(),this.cellCtrl.cellEditorAttached()}refreshEditStyles(t,n){var r;this.addOrRemoveCssClass("ag-cell-inline-editing",t&&!n),this.addOrRemoveCssClass("ag-cell-popup-editing",t&&!!n),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!t||!!n),(r=this.rowCtrl)==null||r.setInlineEditingCss()}addInCellEditor(){const t=this.getGui();t.contains(gi(this.beans.gos))&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(t,n){var g;this.beans.gos.get("editType")==="fullRow"&&rt("popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");const r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(this.beans.editService.createPopupEditorWrapper(t));const i=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&i.appendChild(this.cellEditorGui);const o=this.beans.popupService,s=this.beans.gos.get("stopEditingWhenCellsLoseFocus"),a=n??((g=r.getPopupPosition)==null?void 0:g.call(r))??"over",l=this.beans.gos.get("enableRtl"),c={ePopup:i,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:a,alignSide:l?"right":"left",keepWithinBounds:!0},u=o.positionPopupByComponent.bind(o,c),f=this.beans.localeService.getLocaleTextFunc(),h=o.addPopup({modal:s,eChild:i,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:u,ariaLabel:f("ariaLabelCellEditor","Cell Editor")});h&&(this.hideEditorPopup=h.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),super.destroy()}clearParentOfValue(){const t=this.getGui();t.contains(gi(this.beans.gos))&&sfe()&&t.focus({preventScroll:!0}),go(this.getParentOfValue())}},fai=class extends wn{constructor(t,n,r){super(),this.cellComps={},this.beans=n,this.rowCtrl=t;const i=document.createElement("div");i.setAttribute("comp-id",`${this.getCompId()}`),i.setAttribute("style",this.getInitialStyle(r)),this.setTemplateFromElement(i);const o=this.getGui(),s=o.style;this.domOrder=this.rowCtrl.getDomOrder(),jo(o,"row");const a={setDomOrder:l=>this.domOrder=l,setCellCtrls:l=>this.setCellCtrls(l),showFullWidth:l=>this.showFullWidth(l),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,addOrRemoveCssClass:(l,c)=>this.addOrRemoveCssClass(l,c),setUserStyles:l=>bft(o,l),setTop:l=>s.top=l,setTransform:l=>s.transform=l,setRowIndex:l=>o.setAttribute("row-index",l),setRowId:l=>o.setAttribute("row-id",l),setRowBusinessKey:l=>o.setAttribute("row-business-key",l),refreshFullWidth:l=>{var c,u;return((u=(c=this.fullWidthCellRenderer)==null?void 0:c.refresh)==null?void 0:u.call(c,l()))??!1}};t.setComp(a,this.getGui(),r,void 0),this.addDestroyFunc(()=>{t.unsetComp(r)})}getInitialStyle(t){const n=this.rowCtrl.getInitialTransform(t);return n?`transform: ${n}`:`top: ${this.rowCtrl.getInitialRowTop(t)}`}showFullWidth(t){const n=i=>{if(this.isAlive()){const o=i.getGui();this.getGui().appendChild(o),this.rowCtrl.setupDetailRowAutoHeight(o),this.setFullWidthRowComp(i)}else this.beans.context.destroyBean(i)},r=t.newAgStackInstance();r!=null&&r.then(n)}setCellCtrls(t){const n=Object.assign({},this.cellComps);t.forEach(i=>{const o=i.instanceId;this.cellComps[o]==null?this.newCellComp(i):n[o]=null});const r=c3(n).filter(i=>i!=null);this.destroyCells(r),this.ensureDomOrder(t)}ensureDomOrder(t){if(!this.domOrder)return;const n=[];t.forEach(r=>{const i=this.cellComps[r.instanceId];i&&n.push(i.getGui())}),yft(this.getGui(),n)}newCellComp(t){const n=new dai(this.beans,t,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[t.instanceId]=n,this.getGui().appendChild(n.getGui())}destroy(){super.destroy(),this.destroyAllCells()}destroyAllCells(){const t=c3(this.cellComps).filter(n=>n!=null);this.destroyCells(t)}setFullWidthRowComp(t){this.fullWidthCellRenderer&&Mr("should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=t,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)})}destroyCells(t){t.forEach(n=>{if(!n)return;const r=n.getCtrl().instanceId;this.cellComps[r]===n&&(n.detach(),n.destroy(),this.cellComps[r]=null)})}};function hai(e){let t;return e.type==="center"?t=`<div class="${e.viewport}" data-ref="eViewport" role="presentation">
|
||
<div class="${e.container}" data-ref="eContainer"></div>
|
||
</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">
|
||
<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>
|
||
</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.dispatchEvent({type:"scrollVisibilityChanged"}))}isHorizontalScrollShowing(){return this.horizontalScrollShowing}isVerticalScrollShowing(){return this.verticalScrollShowing}hasHorizontalScrollGap(){return this.horizontalScrollGap}hasVerticalScrollGap(){return this.verticalScrollGap}getScrollbarWidth(){if(this.scrollbarWidth==null){const e=this.gos.get("scrollbarWidth"),n=typeof e=="number"&&e>=0?e:Hri();n!=null&&(this.scrollbarWidth=n,this.eventService.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},$Le="__ag_grid_instance",Rht=class $ht extends ct{constructor(){super(...arguments),this.beanName="mouseEventService",this.gridInstanceId=$ht.gridInstanceSequence.next()}wireBeans(t){this.ctrlsService=t.ctrlsService}stampTopLevelGridCompWithGridInstance(t){t[$Le]=this.gridInstanceId}getRenderedCellForEvent(t){return CH(this.gos,t.target,P4.DOM_DATA_KEY_CELL_CTRL)}isEventFromThisGrid(t){return this.isElementInThisGrid(t.target)}isElementInThisGrid(t){let n=t;for(;n;){const r=n[$Le];if(zt(r))return r===this.gridInstanceId;n=n.parentElement}return!1}getCellPositionForEvent(t){const n=this.getRenderedCellForEvent(t);return n?n.getCellPosition():null}getNormalisedPosition(t){const n=La(this.gos,"normal"),r=t;let i,o;if(r.clientX!=null||r.clientY!=null?(i=r.clientX,o=r.clientY):(i=r.x,o=r.y),n){const s=this.ctrlsService.getGridBodyCtrl(),a=s.getScrollFeature().getVScrollPosition(),l=s.getScrollFeature().getHScrollPosition();i+=l.left,o+=a.top}return{x:i,y:o}}};Rht.gridInstanceSequence=new ad;var bai=Rht,Sai=class extends ct{constructor(){super(),this.beanName="navigationService",this.onPageDown=lLe(this.onPageDown,100),this.onPageUp=lLe(this.onPageUp,100)}wireBeans(e){this.mouseEventService=e.mouseEventService,this.pageBoundsService=e.pageBoundsService,this.focusService=e.focusService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.rowModel=e.rowModel,this.ctrlsService=e.ctrlsService,this.rowRenderer=e.rowRenderer,this.headerNavigationService=e.headerNavigationService,this.rowPositionUtils=e.rowPositionUtils,this.cellNavigationService=e.cellNavigationService,this.pinnedRowModel=e.pinnedRowModel,this.scrollVisibleService=e.scrollVisibleService,this.rangeService=e.rangeService}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const n=e.key,r=e.altKey,i=e.ctrlKey||e.metaKey,o=!!this.rangeService&&e.shiftKey,s=this.mouseEventService.getCellPositionForEvent(e);let a=!1;switch(n){case Je.PAGE_HOME:case Je.PAGE_END:!i&&!r&&(this.onHomeOrEndKey(n),a=!0);break;case Je.LEFT:case Je.RIGHT:case Je.UP:case Je.DOWN:if(!s)return!1;i&&!r&&!o&&(this.onCtrlUpDownLeftRight(n,s),a=!0);break;case Je.PAGE_DOWN:case Je.PAGE_UP:!i&&!r&&(a=this.handlePageUpDown(n,s,t));break}return a&&e.preventDefault(),a}handlePageUpDown(e,t,n){return n&&(t=this.focusService.getFocusedCell()),t?(e===Je.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo(e){var s;const{scrollIndex:t,scrollType:n,scrollColumn:r,focusIndex:i,focusColumn:o}=e;zt(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),zt(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(i),this.focusService.setFocusedCell({rowIndex:i,column:o,rowPinned:null,forceBrowserFocus:!0}),(s=this.rangeService)==null||s.setRangeToCell({rowIndex:i,rowPinned:null,column:o})}onPageDown(e){const n=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.getViewportHeight(),i=this.pageBoundsService.getPixelOffset(),o=n.top+r,s=this.rowModel.getRowIndexAtPixel(o+i);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,s):this.navigateToNextPage(e,s)}onPageUp(e){const n=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.pageBoundsService.getPixelOffset(),i=n.top,o=this.rowModel.getRowIndexAtPixel(i+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,o,!0):this.navigateToNextPage(e,o,!0)}navigateToNextPage(e,t,n=!1){const r=this.getViewportHeight(),i=this.pageBoundsService.getFirstRow(),o=this.pageBoundsService.getLastRow(),s=this.pageBoundsService.getPixelOffset(),a=this.rowModel.getRow(e.rowIndex),l=n?(a==null?void 0:a.rowHeight)-r-s:r-s,c=(a==null?void 0:a.rowTop)+l;let u=this.rowModel.getRowIndexAtPixel(c+s);if(u===e.rowIndex){const h=n?-1:1;t=u=e.rowIndex+h}let f;n?(f="bottom",u<i&&(u=i),t<i&&(t=i)):(f="top",u>o&&(u=o),t>o&&(t=o)),this.isRowTallerThanView(u)&&(t=u,f="top"),this.navigateTo({scrollIndex:t,scrollType:f,scrollColumn:null,focusIndex:u,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,n=!1){this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const r=this.getNextFocusIndexForAutoHeight(e,n);this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const n=t?-1:1,r=this.getViewportHeight(),i=this.pageBoundsService.getLastRow();let o=0,s=e.rowIndex;for(;s>=0&&s<=i;){const a=this.rowModel.getRow(s);if(a){const l=a.rowHeight??0;if(o+l>r)break;o+=l}s+=n}return Math.max(0,Math.min(s,i))}getViewportHeight(){const e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.scrollVisibleService.getScrollbarWidth();let n=e.bottom-e.top;return this.ctrlsService.get("center").isHorizontalScrollShowing()&&(n-=t),n}isRowTallerThanView(e){const t=this.rowModel.getRow(e);if(!t)return!1;const n=t.rowHeight;return typeof n!="number"?!1:n>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const n=this.cellNavigationService.getNextCellToFocus(e,t,!0),{rowIndex:r}=n,i=n.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:i,focusIndex:r,focusColumn:i})}onHomeOrEndKey(e){const t=e===Je.PAGE_HOME,n=this.visibleColsService.getAllCols(),r=t?n[0]:Dn(n),i=t?this.pageBoundsService.getFirstRow():this.pageBoundsService.getLastRow();this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:r,focusIndex:i,focusColumn:r})}onTabKeyDown(e,t){const n=t.shiftKey,r=this.tabToNextCellCommon(e,n,t);if(r!==!1){r?t.preventDefault():r===null&&this.focusService.allowFocusForNextGridCoreContainer(n);return}if(n){const{rowIndex:i,rowPinned:o}=e.getRowPosition();(o?i===0:i===this.pageBoundsService.getFirstRow())&&(this.gos.get("headerHeight")===0||this.focusService.isHeaderFocusSuppressed()?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusPreviousFromFirstCell(t)))}else e instanceof P4&&e.focusCell(!0),(!n&&this.focusService.focusOverlay(!1)||this.focusService.focusNextGridCoreContainer(n))&&t.preventDefault()}tabToNextCell(e,t){const n=this.focusService.getFocusedCell();if(!n)return!1;let r=this.getCellByPosition(n);return!r&&(r=this.rowRenderer.getRowByPosition(n),!r||!r.isFullWidth())?!1:!!this.tabToNextCellCommon(r,e,t)}tabToNextCellCommon(e,t,n){let r=e.isEditing();if(!r&&e instanceof P4){const s=e.getRowCtrl();s&&(r=s.isEditing())}let i;return r?this.gos.get("editType")==="fullRow"?i=this.moveToNextEditingRow(e,t,n):i=this.moveToNextEditingCell(e,t,n):i=this.moveToNextCellNotEditing(e,t),i===null?i:i||!!this.focusService.getFocusedHeader()}moveToNextEditingCell(e,t,n=null){const r=e.getCellPosition();e.getGui().focus(),e.stopEditing();const i=this.findNextCellToFocusOn(r,t,!0);return i===!1?null:i==null?!1:(i.startEditing(null,!0,n),i.focusCell(!1),!0)}moveToNextEditingRow(e,t,n=null){const r=e.getCellPosition(),i=this.findNextCellToFocusOn(r,t,!0);if(i===!1)return null;if(i==null)return!1;const o=i.getCellPosition(),s=this.isCellEditable(r),a=this.isCellEditable(o),l=o&&r.rowIndex===o.rowIndex&&r.rowPinned===o.rowPinned;return s&&e.setFocusOutOnEditor(),l||(e.getRowCtrl().stopEditing(),i.getRowCtrl().startRowEditing(void 0,void 0,n)),a?(i.setFocusInOnEditor(),i.focusCell()):i.focusCell(!0),!0}moveToNextCellNotEditing(e,t){const n=this.visibleColsService.getAllCols();let r;e instanceof pC?r={...e.getRowPosition(),column:t?n[0]:Dn(n)}:r=e.getCellPosition();const i=this.findNextCellToFocusOn(r,t,!1);if(i===!1)return null;if(i instanceof P4)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return zt(i)}findNextCellToFocusOn(e,t,n){var i;let r=e;for(;;){e!==r&&(e=r),t||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,t);const o=this.gos.getCallback("tabToNextCell");if(zt(o)){const c=o({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:r||null});if(c===!0||c===null)c===null&&rt("Returning `null` from tabToNextCell is deprecated. Return `true` to stay on the current cell, or `false` to let the browser handle the tab behaviour."),r=e;else{if(c===!1)return!1;r={rowIndex:c.rowIndex,column:c.column,rowPinned:c.rowPinned}}}if(!r)return null;if(r.rowIndex<0){const l=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l+r.rowIndex,column:r.column},fromCell:!0}),null}const s=this.gos.get("editType")==="fullRow";if(n&&!s&&!this.isCellEditable(r))continue;this.ensureCellVisible(r);const a=this.getCellByPosition(r);if(!a){const l=this.rowRenderer.getRowByPosition(r);if(!l||!l.isFullWidth()||n)continue;return l}if(!a.isSuppressNavigable())return(i=this.rangeService)==null||i.setRangeToCell(r),a}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}getCellByPosition(e){const t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null}lookupRowNodeForCell(e){return e.rowPinned==="top"?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned==="bottom"?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.rowModel.getRow(e.rowIndex)}navigateToNextCell(e,t,n,r){let i=n,o=!1;for(;i&&(i===n||!this.isValidNavigateCell(i));)this.gos.get("enableRtl")?t===Je.LEFT&&(i=this.getLastCellOfColSpan(i)):t===Je.RIGHT&&(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextCellToFocus(t,i),o=ar(i);if(o&&e&&e.key===Je.UP&&(i={rowIndex:-1,rowPinned:null,column:n.column}),r){const a=this.gos.getCallback("navigateToNextCell");if(zt(a)){const c=a({key:t,previousCellPosition:n,nextCellPosition:i||null,event:e});zt(c)?i={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}:i=null}}if(!i)return;if(i.rowIndex<0){const a=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+i.rowIndex,column:n.column},event:e||void 0,fromCell:!0});return}const s=this.getNormalisedPosition(i);s?this.focusPosition(s):this.tryToFocusFullWidthRow(i)}getNormalisedPosition(e){this.ensureCellVisible(e);const t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const n=this.visibleColsService.getAllCols(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;const i=this.focusService.getFocusedCell(),o={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?Dn(n):n[0])};this.focusPosition(o);const s=t??(i!=null&&this.rowPositionUtils.before(o,i));return this.eventService.dispatchEvent({type:"fullWidthRowFocused",rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:o.column,isFullWidthCell:!0,fromBelow:s}),!0}focusPosition(e){var t;this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),(t=this.rangeService)==null||t.setRangeToCell(e)}isValidNavigateCell(e){return!!this.rowPositionUtils.getRowNode(e)}getLastCellOfColSpan(e){const t=this.getCellByPosition(e);if(!t)return e;const n=t.getColSpanningList();return n.length===1?e:{rowIndex:e.rowIndex,column:Dn(n),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=zQ(this.gos),n=this.rowModel.getRow(e.rowIndex);!(t&&(n==null?void 0:n.sticky))&&ar(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)}},wai=class extends ct{constructor(){super(...arguments),this.beanName="horizontalResizeService"}wireBeans(e){this.dragService=e.dragService,this.ctrlsService=e.ctrlsService}addResizeBar(e){const t={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0};return this.dragService.addDragSource(t),()=>this.dragService.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const n=t instanceof MouseEvent&&t.shiftKey===!0;e.onResizeStart(n)}setResizeIcons(){const e=this.ctrlsService.get("gridCtrl");e.setResizeCursor(!0),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.ctrlsService.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}},xai=class extends ct{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupService=e.popupService,this.focusService=e.focusService,this.ctrlsService=e.ctrlsService,this.menuService=e.menuService}hideActiveMenu(){this.hidePopup&&this.hidePopup()}showMenuAfterMouseEvent(e,t,n){this.showPopup(e,r=>{this.popupService.positionPopupUnderMouseEvent({column:e,type:n,mouseEvent:t,ePopup:r})},n,t.target,this.menuService.isLegacyMenuEnabled())}showMenuAfterButtonClick(e,t,n){let r=-1,i="left";const o=this.menuService.isLegacyMenuEnabled();!o&&this.gos.get("enableRtl")&&(r=1,i="right");const s=o?void 0:4*r,a=o?void 0:4;this.showPopup(e,l=>{this.popupService.positionPopupByComponent({type:n,eventSource:t,ePopup:l,nudgeX:s,nudgeY:a,alignSide:i,keepWithinBounds:!0,position:"under",column:e})},n,t,o)}showPopup(e,t,n,r,i){const o=e?this.createBean(new KQ(e,"COLUMN_MENU")):void 0;if(this.activeMenu=o,!(o!=null&&o.hasFilter())||!e)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");const s=document.createElement("div");jo(s,"presentation"),s.classList.add("ag-menu"),i||s.classList.add("ag-filter-menu"),[this.tabListener]=this.addManagedElementListeners(s,{keydown:p=>this.trapFocusWithin(p,s)}),s.appendChild(o==null?void 0:o.getGui());let a;const l=()=>o==null?void 0:o.afterGuiDetached(),c=this.menuService.isColumnMenuAnchoringEnabled()?r??this.ctrlsService.getGridBodyCtrl().getGui():void 0,u=p=>{e.setMenuVisible(!1,"contextMenu");const m=p instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),m&&r&&Su(r)){const v=this.focusService.findTabbableParent(r);v&&v.focus()}l(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,n,e)},f=this.localeService.getLocaleTextFunc(),h=i&&n!=="columnFilter"?f("ariaLabelColumnMenu","Column Menu"):f("ariaLabelColumnFilter","Column Filter"),g=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:u,positionCallback:()=>t(s),anchorToElement:c,ariaLabel:h});g&&(this.hidePopup=a=g.hideFunc),o.afterInit().then(()=>{t(s),o.afterGuiAttached({container:n,hidePopup:a})}),e.setMenuVisible(!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,n,e)}trapFocusWithin(e,t){e.key!==Je.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,n){this.eventService.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:n??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},Eai=class extends ct{constructor(){super(...arguments),this.beanName="resizeObserverService"}observeResize(e,t){const r=Hdt(this.gos).ResizeObserver,i=r?new r(t):null;return i==null||i.observe(e),()=>i==null?void 0:i.disconnect()}},Rai=class extends ct{constructor(){super(...arguments),this.beanName="animationFrameService",this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastPage=0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}wireBeans(e){this.ctrlsService=e.ctrlsService,this.paginationService=e.paginationService}setScrollTop(e){var n;const t=this.gos.get("pagination");if(this.scrollGoingDown=e>=this.lastScrollTop,t&&e===0){const r=((n=this.paginationService)==null?void 0:n.getCurrentPage())??0;r!==this.lastPage&&(this.lastPage=r,this.scrollGoingDown=!0)}this.lastScrollTop=e}postConstruct(){this.useAnimationFrame=!this.gos.get("suppressAnimationFrame")}isOn(){return this.useAnimationFrame}verifyAnimationFrameOn(e){this.useAnimationFrame===!1&&rt(`AnimationFrameService.${e} called but animation frames are off`)}createTask(e,t,n){this.verifyAnimationFrameOn(n);const r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],r),this.schedule()}cancelTask(e){this.cancelledTasks.add(e)}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((n,r)=>n.index!==r.index?t*(r.index-n.index):r.createOrder-n.createOrder),e.sorted=!0}addDestroyTask(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()}executeFrame(e){this.verifyAnimationFrameOn("executeFrame");const t=this.createTasksP1,n=t.list,r=this.createTasksP2,i=r.list,o=this.destroyTasks,s=new Date().getTime();let a=new Date().getTime()-s;const l=e<=0,c=this.ctrlsService.getGridBodyCtrl();for(;l||a<e;){if(!c.getScrollFeature().scrollGridIfNeeded()){let f;if(n.length)this.sortTaskList(t),f=n.pop().task;else if(i.length)this.sortTaskList(r),f=i.pop().task;else if(o.length)f=o.pop();else{this.cancelledTasks.clear();break}this.cancelledTasks.has(f)||f()}a=new Date().getTime()-s}n.length||i.length||o.length?this.requestFrame():this.stopTicking()}stopTicking(){this.ticking=!1}flushAllFrames(){this.useAnimationFrame&&this.executeFrame(-1)}schedule(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);this.requestAnimationFrame(e)}requestAnimationFrame(e){const t=Hdt(this.gos);t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)}isQueueEmpty(){return!this.ticking}debounce(e){let t=!1;return()=>{if(!this.isOn()){window.setTimeout(e,0);return}t||(t=!0,this.addDestroyTask(()=>{t=!1,e()}))}}},ti=(e=>(e.EVERYTHING="group",e.FILTER="filter",e.SORT="sort",e.MAP="map",e.AGGREGATE="aggregate",e.FILTER_AGGREGATES="filter_aggregates",e.PIVOT="pivot",e.NOTHING="nothing",e))(ti||{}),Oht=class extends ct{constructor(){super(...arguments),this.beanName="expansionService"}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.isClientSideRowModel=Li(this.gos)}expandRows(e){if(!this.isClientSideRowModel)return;const t=new Set(e);this.rowModel.forEachNode(n=>{n.id&&t.has(n.id)&&(n.expanded=!0)}),this.onGroupExpandedOrCollapsed()}getExpandedRows(){const e=[];return this.rowModel.forEachNode(({expanded:t,id:n})=>{t&&n&&e.push(n)}),e}expandAll(e){this.isClientSideRowModel&&this.rowModel.expandOrCollapseAll(e)}setRowNodeExpanded(e,t,n,r){e&&(n&&e.parent&&e.parent.level!==-1&&this.setRowNodeExpanded(e.parent,t,n,r),e.setExpanded(t,void 0,r))}onGroupExpandedOrCollapsed(){this.isClientSideRowModel&&this.rowModel.refreshModel({step:"map"})}},$ai=class extends ct{constructor(){super(...arguments),this.beanName="menuService"}wireBeans(e){this.valueService=e.valueService,this.filterMenuFactory=e.filterMenuFactory,this.ctrlsService=e.ctrlsService,this.animationFrameService=e.animationFrameService,this.filterManager=e.filterManager,this.rowRenderer=e.rowRenderer,this.columnChooserFactory=e.columnChooserFactory,this.contextMenuFactory=e.contextMenuFactory,this.enterpriseMenuFactory=e.enterpriseMenuFactory}postConstruct(){this.activeMenuFactory=this.enterpriseMenuFactory??this.filterMenuFactory}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){const t=this.enterpriseMenuFactory&&this.isLegacyMenuEnabled()?this.enterpriseMenuFactory:this.filterMenuFactory;this.showColumnMenuCommon(t,e,e.containerType,!0)}showHeaderContextMenu(e,t,n){this.activeMenuFactory.showMenuAfterContextMenuEvent(e,t,n)}getContextMenuPosition(e,t){const n=this.getRowCtrl(e),r=this.getCellGui(n,t);if(!r)return n?{x:0,y:n.getRowYPosition()}:{x:0,y:0};const i=r.getBoundingClientRect();return{x:i.x+i.width/2,y:i.y+i.height/2}}showContextMenu(e){var o;const t=e.rowNode,n=e.column;let{anchorToElement:r,value:i}=e;t&&n&&i==null&&(i=this.valueService.getValueForDisplay(n,t)),r==null&&(r=this.getContextMenuAnchorElement(t,n)),(o=this.contextMenuFactory)==null||o.onContextMenu(e.mouseEvent??null,e.touchEvent??null,t??null,n??null,i,r)}showColumnChooser(e){var t;(t=this.columnChooserFactory)==null||t.showColumnChooser(e)}hidePopupMenu(){var e;(e=this.contextMenuFactory)==null||e.hideActiveMenu(),this.activeMenuFactory.hideActiveMenu()}hideColumnChooser(){var e;(e=this.columnChooserFactory)==null||e.hideActiveColumnChooser()}isColumnMenuInHeaderEnabled(e){const{suppressMenu:t,suppressHeaderMenuButton:n}=e.getColDef();return!(n??t)&&this.activeMenuFactory.isMenuEnabled(e)&&(this.isLegacyMenuEnabled()||!!this.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){var t;return!e.getColDef().suppressHeaderFilterButton&&!!((t=this.filterManager)!=null&&t.isFilterAllowed(e))}isHeaderContextMenuEnabled(e){const t=e&&km(e)?e.getColDef():e==null?void 0:e.getColGroupDef();return!(t!=null&&t.suppressHeaderContextMenu)&&this.getColumnMenuType()==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(Ev()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!this.isLegacyMenuEnabled()&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){var t;return!!((t=this.filterManager)!=null&&t.isFilterAllowed(e))&&!this.isLegacyMenuEnabled()&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isColumnMenuAnchoringEnabled(){return!this.isLegacyMenuEnabled()}areAdditionalColumnMenuItemsEnabled(){return this.getColumnMenuType()==="new"}isLegacyMenuEnabled(){return this.getColumnMenuType()==="legacy"}isFloatingFilterButtonEnabled(e){var r;const t=e.getColDef(),n=(r=t.floatingFilterComponentParams)==null?void 0:r.suppressFilterButton;return n!=null&&rt("As of v31.1, 'colDef.floatingFilterComponentParams.suppressFilterButton' is deprecated. Use 'colDef.suppressFloatingFilterButton' instead."),t.suppressFloatingFilterButton==null?!n:!t.suppressFloatingFilterButton}getColumnMenuType(){return this.gos.get("columnMenu")}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos.get("suppressMenuHide");return this.isLegacyMenuEnabled()?this.gos.exists("suppressMenuHide")?e:!1:e}showColumnMenuCommon(e,t,n,r){const{positionBy:i}=t,o=t.column;if(i==="button"){const{buttonElement:s}=t;e.showMenuAfterButtonClick(o,s,n,r)}else if(i==="mouse"){const{mouseEvent:s}=t;e.showMenuAfterMouseEvent(o,s,n,r)}else o&&(this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(o,"auto"),this.animationFrameService.requestAnimationFrame(()=>{var a;const s=(a=this.ctrlsService.getHeaderRowContainerCtrl(o.getPinned()))==null?void 0:a.getHeaderCtrlForColumn(o);s&&e.showMenuAfterButtonClick(o,s.getAnchorElementForMenu(r),n,!0)}))}getRowCtrl(e){const{rowIndex:t,rowPinned:n}=e||{};if(t!=null)return this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:n})||void 0}getCellGui(e,t){if(!e||!t)return;const n=e.getCellCtrl(t);return(n==null?void 0:n.getGui())||void 0}getContextMenuAnchorElement(e,t){const n=this.ctrlsService.getGridBodyCtrl().getGridBodyElement(),r=this.getRowCtrl(e);if(!r)return n;const i=this.getCellGui(r,t);return i||(r.isFullWidth()?r.getFullWidthElement():n)}},Oai=class extends k8{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const n=super.setValue(e,t);return this.eInput.value=e,n}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},Tai={selector:"AG-INPUT-TEXT-AREA",component:Oai},Iai=class extends fE{constructor(){super(`<div class="ag-large-text">
|
||
<ag-input-text-area data-ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
|
||
</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">
|
||
<ag-select class="ag-cell-editor" data-ref="eSelect"></ag-select>
|
||
</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(`
|
||
<div class="ag-cell-edit-wrapper">
|
||
${e.getTemplate()}
|
||
</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 extends ZQ{constructor(){super(new Fai)}},kai=class{constructor(e){this.getDataTypeService=e}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.formatDate(this.eInput.getDate());return!zt(e)&&!zt(this.params.value)?this.params.value:this.params.parseValue(e??"")}getStartValue(){return Vf(this.parseDate(this.params.value??void 0)??null,!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):cu(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):Vf(e??null,!1)??void 0}},zai=class extends ZQ{wireBeans(e){this.dataTypeService=e.dataTypeService}constructor(){super(new kai(()=>this.dataTypeService))}},Bai=class extends fE{constructor(){super(`
|
||
<div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
|
||
<ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
|
||
</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.setLastFocusedCell(n));const a={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:r.startColumn,columns:r.columns};e.addCellRange(a)})}processCell(e){const t=e[0],{rowIndex:n,rowPinned:r}=t,i={rowIndex:n,rowPinned:r},o=this.rowPositionUtils.getRowNode(i),s={rowPinned:t.rowPinned,rowIndex:o.rowIndex,columnId:t.columnId};this.setLastFocusedCell(s,this.rangeService)}setLastFocusedCell(e,t){const{rowIndex:n,columnId:r,rowPinned:i}=e,o=this.gridBodyCtrl.getScrollFeature(),s=this.columnModel.getCol(r);if(!s)return;o.ensureIndexVisible(n),o.ensureColumnVisible(s);const a={rowIndex:n,column:s,rowPinned:i};this.focusService.setFocusedCell({...a,forceBrowserFocus:!0}),t==null||t.setRangeToCell(a)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new $$(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const n=new $$(this.cellValueChanges);this.pushActionsToUndoStack(n)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new $$(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new loe(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;this.rangeService&&su(this.gos)?e=new loe(this.cellValueChanges,void 0,void 0,[...this.rangeService.getCellRanges()]):e=new $$(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1}})}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}};function Vai(e){return e.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition()}function Gai(e){return e.ctrlsService.getGridBodyCtrl().getScrollFeature().getHScrollPosition()}function Mht(e,t,n="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(t,n),"ensureVisible")}function Pht(e,t,n){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureIndexVisible(t,n),"ensureVisible")}function Wai(e,t,n=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureNodeVisible(t,n),"ensureVisible")}function Uai(e){var t;(t=e.undoRedoService)==null||t.undo("api")}function qai(e){var t;(t=e.undoRedoService)==null||t.redo("api")}function Kai(e,t={}){return e.rowRenderer.getCellEditorInstances(t).map(gC)}function Yai(e){return e.rowRenderer.getEditingCells()}function Xai(e,t=!1){e.rowRenderer.stopEditing(t)}function Qai(e,t){const n=e.columnModel.getCol(t.colKey);if(!n){rt(`no column found for ${t.colKey}`);return}const r={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:n};t.rowPinned==null&&Pht(e,t.rowIndex),Mht(e,t.colKey);const o=e.navigationService.getCellByPosition(r);if(!o)return;const{focusService:s,gos:a}=e,l=()=>{const u=gi(a),f=o.getGui();return u!==f&&!!(f!=null&&f.contains(u))},c=a.get("stopEditingWhenCellsLoseFocus")&&l();(c||!s.isCellFocused(r))&&s.setFocusedCell({...r,forceBrowserFocus:c,preventScrollOnBrowserFocus:!0}),o.startRowOrCellEdit(t.key)}function Zai(e){var t;return((t=e.undoRedoService)==null?void 0:t.getCurrentUndoStackSize())??0}function Jai(e){var t;return((t=e.undoRedoService)==null?void 0:t.getCurrentRedoStackSize())??0}var eli=class extends ct{constructor(){super(...arguments),this.beanName="editService"}wireBeans(e){this.navigationService=e.navigationService,this.userComponentFactory=e.userComponentFactory,this.valueService=e.valueService}startEditing(e,t=null,n=!1,r=null){var c;const i=this.createCellEditorParams(e,t,n),o=e.getColumn().getColDef(),s=this.userComponentFactory.getCellEditorDetails(o,i),a=(s==null?void 0:s.popupFromSelector)!=null?s.popupFromSelector:!!o.cellEditorPopup,l=(s==null?void 0:s.popupPositionFromSelector)!=null?s.popupPositionFromSelector:o.cellEditorPopupPosition;return e.setEditing(!0,s),e.getComp().setEditDetails(s,a,l,this.gos.get("reactiveCustomComponents")),this.eventService.dispatchEvent(e.createEvent(r,"cellEditingStarted")),!((c=s==null?void 0:s.params)!=null&&c.suppressPreventDefault)}stopEditing(e,t){const n=e.getComp(),{newValue:r,newValueExists:i}=this.takeValueFromCellEditor(t,n),o=e.getRowNode(),s=e.getColumn(),a=this.valueService.getValueForDisplay(s,o);let l=!1;return i&&(l=this.saveNewValue(e,a,r,o,s)),e.setEditing(!1,void 0),n.setEditDetails(),e.updateAndFormatValue(!1),e.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.eventService.dispatchEvent({...e.createEvent(null,"cellEditingStopped"),oldValue:a,newValue:r,valueChanged:l}),l}handleColDefChanged(e){const t=e.getCellEditor();if(t!=null&&t.refresh){const{eventKey:n,cellStartedEdit:r}=e.getEditCompDetails().params,i=this.createCellEditorParams(e,n,r),o=e.getColumn().getColDef(),s=this.userComponentFactory.getCellEditorDetails(o,i);t.refresh(s.params)}}setFocusOutOnEditor(e){const t=e.getComp().getCellEditor();t&&t.focusOut&&t.focusOut()}setFocusInOnEditor(e){const t=e.getComp(),n=t.getCellEditor();n!=null&&n.focusIn?n.focusIn():(e.focusCell(!0),e.onCellEditorAttached(()=>{var r,i;return(i=(r=t.getCellEditor())==null?void 0:r.focusIn)==null?void 0:i.call(r)}))}stopEditingAndFocus(e,t=!1,n=!1){e.stopRowOrCellEdit(),e.focusCell(!0),t||this.navigateAfterEdit(n,e.getCellPosition())}createPopupEditorWrapper(e){return new Mai(e)}takeValueFromCellEditor(e,t){const n={newValueExists:!1};if(e)return n;const r=t.getCellEditor();return!r||r.isCancelAfterEnd&&r.isCancelAfterEnd()?n:{newValue:r.getValue(),newValueExists:!0}}saveNewValue(e,t,n,r,i){if(n===t)return!1;e.setSuppressRefreshCell(!0);const o=r.setDataValue(i,n,"edit");return e.setSuppressRefreshCell(!1),o}createCellEditorParams(e,t,n){const r=e.getColumn(),i=e.getRowNode();return this.gos.addGridCommonParams({value:this.valueService.getValueForDisplay(r,i),eventKey:t,column:r,colDef:r.getColDef(),rowIndex:e.getCellPosition().rowIndex,node:i,data:i.data,cellStartedEdit:n,onKeyDown:e.onKeyDown.bind(e),stopEditing:e.stopEditingAndFocus.bind(e),eGridCell:e.getGui(),parseValue:o=>this.valueService.parseValue(r,i,o,e.getValue()),formatValue:e.formatValue.bind(e)})}navigateAfterEdit(e,t){if(this.gos.get("enterNavigatesVerticallyAfterEdit")){const r=e?Je.UP:Je.DOWN;this.navigationService.navigateToNextCell(null,r,t,!1)}}},tli=class extends ct{constructor(){super(...arguments),this.beanName="rowEditService"}startEditing(e,t=null,n=null,r=null){let i=!0;return e.getAllCellCtrls().reduce((s,a)=>{const l=a===n;return l?i=a.startEditing(t,l,r):a.startEditing(null,l,r),s?!0:a.isEditing()},!1)&&this.setEditing(e,!0),i}stopEditing(e,t=!1){const n=e.getAllCellCtrls(),r=e.isEditing();e.setStoppingRowEdit(!0);let i=!1;for(const o of n){const s=o.stopEditing(t);r&&!t&&!i&&s&&(i=!0)}i&&this.eventService.dispatchEvent(e.createRowEvent("rowValueChanged")),r&&this.setEditing(e,!1),e.setStoppingRowEdit(!1)}setEditing(e,t){e.setEditingRow(t),e.forEachGui(void 0,r=>r.rowComp.addOrRemoveCssClass("ag-row-editing",t));const n=t?e.createRowEvent("rowEditingStarted"):e.createRowEvent("rowEditingStopped");this.eventService.dispatchEvent(n)}},Nb={version:ur,moduleName:"@ag-grid-community/edit-core",beans:[eli]},nli={version:ur,moduleName:"@ag-grid-community/edit-api",apiFunctions:{undoCellEditing:Uai,redoCellEditing:qai,getCellEditorInstances:Kai,getEditingCells:Yai,stopEditing:Xai,startEditingCell:Qai,getCurrentUndoSize:Zai,getCurrentRedoSize:Jai},dependantModules:[Nb]},rli={version:ur,moduleName:"@ag-grid-community/undo-redo-edit",beans:[jai],dependantModules:[Nb]},ili={version:ur,moduleName:"@ag-grid-community/full-row-edit",beans:[tli],dependantModules:[Nb]},_ht={version:ur,moduleName:"@ag-grid-community/default-editor",userComponents:[{name:"agCellEditor",classImp:Tht}],dependantModules:[Nb]},oli={version:ur,moduleName:"@ag-grid-community/data-type-editors",userComponents:[{name:"agTextCellEditor",classImp:Tht},{name:"agNumberCellEditor",classImp:Dai,params:{suppressPreventDefault:!0}},{name:"agDateCellEditor",classImp:Nai},{name:"agDateStringCellEditor",classImp:zai},{name:"agCheckboxCellEditor",classImp:Bai}],dependantModules:[_ht]},sli={version:ur,moduleName:"@ag-grid-community/select-editor",userComponents:[{name:"agSelectCellEditor",classImp:Pai}],dependantModules:[Nb]},ali={version:ur,moduleName:"@ag-grid-community/large-text-editor",userComponents:[{name:"agLargeTextCellEditor",classImp:Iai}],dependantModules:[Nb]},lli={version:ur,moduleName:"@ag-grid-community/all-editors",dependantModules:[_ht,oli,sli,ali]},cli={version:ur,moduleName:"@ag-grid-community/editing",dependantModules:[Nb,rli,ili,lli,nli]},uli=class extends ct{constructor(){super(...arguments),this.beanName="autoWidthCalculator"}wireBeans(e){this.rowRenderer=e.rowRenderer,this.ctrlsService=e.ctrlsService}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const n=this.getHeaderCellForColumn(e);if(!n)return-1;const r=this.rowRenderer.getAllCellsForColumn(e);return t||r.push(n),this.addElementsToContainerAndGetWidth(r)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1}addElementsToContainerAndGetWidth(e){const t=document.createElement("form");t.style.position="fixed";const n=this.centerRowContainerCtrl.getContainerElement();e.forEach(o=>this.cloneItemIntoDummy(o,t)),n.appendChild(t);const r=t.offsetWidth;n.removeChild(t);const i=this.getAutoSizePadding();return r+i}getAutoSizePadding(){return this.gos.get("autoSizePadding")}getHeaderCellForColumn(e){let t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(n=>{const r=n.getHtmlElementForColumnHeader(e);r!=null&&(t=r)}),t}cloneItemIntoDummy(e,t){const n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";const r=document.createElement("div"),i=r.classList;["ag-header-cell","ag-header-group-cell"].some(a=>n.classList.contains(a))?(i.add("ag-header","ag-header-row"),r.style.position="static"):i.add("ag-row");let s=e.parentElement;for(;s;){if(["ag-header-row","ag-row"].some(l=>s.classList.contains(l))){for(let l=0;l<s.classList.length;l++){const c=s.classList[l];c!="ag-row-position-absolute"&&i.add(c)}break}s=s.parentElement}r.appendChild(n),t.appendChild(r)}},dli=class extends ct{constructor(e,t){super(),this.createRowCon=e,this.destroyRowCtrls=t,this.stickyTopRowCtrls=[],this.stickyBottomRowCtrls=[],this.extraTopHeight=0,this.extraBottomHeight=0}wireBeans(e){this.rowModel=e.rowModel,this.rowRenderer=e.rowRenderer,this.ctrlsService=e.ctrlsService,this.pageBoundsService=e.pageBoundsService}postConstruct(){this.isClientSide=Li(this.gos),this.ctrlsService.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl}),this.resetStickyContainers()}getStickyTopRowCtrls(){return this.stickyTopRowCtrls}getStickyBottomRowCtrls(){return this.stickyBottomRowCtrls}setOffsetTop(e){this.extraTopHeight!==e&&(this.extraTopHeight=e,this.eventService.dispatchEvent({type:"stickyTopOffsetChanged",offset:e}))}setOffsetBottom(e){this.extraBottomHeight!==e&&(this.extraBottomHeight=e)}resetOffsets(){this.setOffsetBottom(0),this.setOffsetTop(0)}getExtraTopHeight(){return this.extraTopHeight}getExtraBottomHeight(){return this.extraBottomHeight}getLastPixelOfGroup(e){return this.isClientSide?this.getClientSideLastPixelOfGroup(e):this.getServerSideLastPixelOfGroup(e)}getFirstPixelOfGroup(e){return e.footer?e.sibling.rowTop+e.sibling.rowHeight-1:e.hasChildren()?e.rowTop-1:0}getServerSideLastPixelOfGroup(e){var t,n;if(this.isClientSide)throw new Error("This func should only be called in server side row model.");if(e.isExpandable()||e.footer){if(e.master)return e.detailNode.rowTop+e.detailNode.rowHeight;if(!e.sibling||Math.abs(e.sibling.rowIndex-e.rowIndex)===1){let i=(t=e.childStore)==null?void 0:t.getStoreBounds();return e.footer&&(i=(n=e.sibling.childStore)==null?void 0:n.getStoreBounds()),((i==null?void 0:i.heightPx)??0)+((i==null?void 0:i.topPx)??0)}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}getClientSideLastPixelOfGroup(e){if(!this.isClientSide)throw new Error("This func should only be called in client side row model.");if(e.isExpandable()||e.footer){if(e.footer&&e.rowIndex===0)return Number.MAX_SAFE_INTEGER;if(!e.sibling||Math.abs(e.sibling.rowIndex-e.rowIndex)===1){let r=e.footer?e.sibling:e;for(;r.isExpandable()&&r.expanded;)if(r.master)r=r.detailNode;else if(r.childrenAfterSort){if(r.childrenAfterSort.length===0)break;r=Dn(r.childrenAfterSort)}return r.rowTop+r.rowHeight}return e.footer?e.rowTop+e.rowHeight:e.sibling.rowTop+e.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}updateStickyRows(e){const t=e==="top";let n=0;if(!this.canRowsBeSticky())return this.refreshNodesAndContainerHeight(e,new Set,n);const r=t?this.rowRenderer.getFirstVisibleVerticalPixel()-this.extraTopHeight:this.rowRenderer.getLastVisibleVerticalPixel()-this.extraTopHeight,i=new Set,o=c=>{if(i.add(c),t){const u=this.getLastPixelOfGroup(c),f=r+n+c.rowHeight;u<f?c.stickyRowTop=n+(u-f):c.stickyRowTop=n}else{const u=this.getFirstPixelOfGroup(c),f=r-(n+c.rowHeight);u>f?c.stickyRowTop=n-(u-f):c.stickyRowTop=n}n=0,i.forEach(u=>{const f=u.stickyRowTop+u.rowHeight;n<f&&(n=f)})},s=this.areFooterRowsStickySuppressed(),a=this.gos.get("suppressGroupRowsSticky"),l=c=>{if(!c.displayed)return!1;if(c.footer){if(s===!0||s==="grand"&&c.level===-1||s==="group"&&c.level>-1)return!1;const u=c.sibling.rowIndex?c.sibling.rowIndex+1===c.rowIndex:!1;return e==="bottom"&&u?!1:!i.has(c)}return c.isExpandable()?a===!0||e==="bottom"?!1:!i.has(c)&&c.expanded:!1};for(let c=0;c<100;c++){let u=r+n;t||(u=r-n);const f=this.rowModel.getRowIndexAtPixel(u),h=this.rowModel.getRow(f);if(h==null)break;const p=this.getStickyAncestors(h).find(v=>(t?v.rowIndex<f:v.rowIndex>f)&&l(v));if(p){o(p);continue}if((t?h.rowTop<u:h.rowTop+h.rowHeight>u)&&l(h)){o(h);continue}break}return t||i.forEach(c=>{c.stickyRowTop=n-(c.stickyRowTop+c.rowHeight)}),this.refreshNodesAndContainerHeight(e,i,n)}areFooterRowsStickySuppressed(){const e=this.gos.get("suppressStickyTotalRow");if(e===!0)return!0;const t=!!this.gos.get("groupIncludeFooter")||e==="group",n=!!this.gos.get("groupIncludeTotalFooter")||e==="grand";return t&&n?!0:n?"grand":t?"group":!1}canRowsBeSticky(){const e=zQ(this.gos),t=this.areFooterRowsStickySuppressed(),n=this.gos.get("suppressGroupRowsSticky");return e&&(!t||!n)}getStickyAncestors(e){const t=[];let n=e.footer?e.sibling:e.parent;for(;n;)n.sibling&&t.push(n.sibling),t.push(n),n=n.parent;return t.reverse()}checkStickyRows(){const e=this.updateStickyRows("top"),t=this.updateStickyRows("bottom");return e||t}destroyStickyCtrls(){this.resetStickyContainers()}resetStickyContainers(){this.refreshNodesAndContainerHeight("top",new Set,0),this.refreshNodesAndContainerHeight("bottom",new Set,0)}refreshStickyNode(e){const t=new Set;if(this.stickyTopRowCtrls.some(n=>n.getRowNode()===e)){for(let n=0;n<this.stickyTopRowCtrls.length;n++){const r=this.stickyTopRowCtrls[n].getRowNode();r!==e&&t.add(r)}this.refreshNodesAndContainerHeight("top",t,this.topContainerHeight)&&this.checkStickyRows();return}for(let n=0;n<this.stickyBottomRowCtrls.length;n++){const r=this.stickyBottomRowCtrls[n].getRowNode();r!==e&&t.add(r)}this.refreshNodesAndContainerHeight("bottom",t,this.bottomContainerHeight)&&this.checkStickyRows()}refreshNodesAndContainerHeight(e,t,n){const r=e==="top",i=r?this.stickyTopRowCtrls:this.stickyBottomRowCtrls,o={},s=[];for(let h=0;h<i.length;h++){const g=i[h].getRowNode();if(!t.has(g)){o[g.id]=i[h],g.sticky=!1;continue}s.push(i[h])}const a=new Set;for(let h=0;h<s.length;h++)a.add(s[h].getRowNode());const l=[];t.forEach(h=>{a.has(h)||(h.sticky=!0,l.push(this.createRowCon(h,!1,!1)))});let c=!!l.length||s.length!==i.length;r?this.topContainerHeight!==n&&(this.topContainerHeight=n,this.gridBodyCtrl.setStickyTopHeight(n),c=!0):this.bottomContainerHeight!==n&&(this.bottomContainerHeight=n,this.gridBodyCtrl.setStickyBottomHeight(n),c=!0),this.destroyRowCtrls(o,!1);const u=[...s,...l];u.sort((h,g)=>g.getRowNode().rowIndex-h.getRowNode().rowIndex),r||u.reverse(),u.forEach(h=>h.setRowTop(h.getRowNode().stickyRowTop));let f=0;return r?(t.forEach(h=>{h.rowIndex<this.pageBoundsService.getFirstRow()&&(f+=h.rowHeight)}),f>this.topContainerHeight&&(f=this.topContainerHeight),this.setOffsetTop(f)):(t.forEach(h=>{h.rowIndex>this.pageBoundsService.getLastRow()&&(f+=h.rowHeight)}),f>this.bottomContainerHeight&&(f=this.bottomContainerHeight),this.setOffsetBottom(f)),c?(r?this.stickyTopRowCtrls=u:this.stickyBottomRowCtrls=u,!0):!1}ensureRowHeightsValid(){let e=!1;const t=n=>{const r=n.getRowNode();if(r.rowHeightEstimated){const i=kl(this.gos,r);r.setRowHeight(i.height),e=!0}};return this.stickyTopRowCtrls.forEach(t),this.stickyBottomRowCtrls.forEach(t),e}},fli=class extends ct{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{this.getAllCellCtrls().forEach(o=>o.onCellSelectionChanged())},t=()=>{this.getAllCellCtrls().forEach(o=>o.updateRangeBordersIfRangeCount())},n=()=>{this.eventService.addEventListener("cellSelectionChanged",e),this.eventService.addEventListener("columnMoved",t),this.eventService.addEventListener("columnPinned",t),this.eventService.addEventListener("columnVisible",t)},r=()=>{this.eventService.removeEventListener("cellSelectionChanged",e),this.eventService.removeEventListener("columnMoved",t),this.eventService.removeEventListener("columnPinned",t),this.eventService.removeEventListener("columnVisible",t)};this.addDestroyFunc(()=>r()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{su(this.gos)?n():r()}),su(this.gos)&&n()}}wireBeans(e){this.animationFrameService=e.animationFrameService,this.paginationService=e.paginationService,this.pageBoundsService=e.pageBoundsService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusService=e.focusService,this.beans=e,this.rowContainerHeightService=e.rowContainerHeightService,this.ctrlsService=e.ctrlsService,this.environment=e.environment}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",e=>this.onSuppressCellFocusChanged(e.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection","rowSelection"],()=>this.redrawRows()),zQ(this.gos)&&(Li(this.gos)||ml(this.gos))&&(this.stickyRowFeature=this.createManagedBean(new dli(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=La(this.gos,"print"),this.embedFullWidthRows=this.printLayout||this.gos.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount(),t=e??3;this.cachedRowCtrls=new hli(t)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?this.stickyRowFeature.getStickyTopRowCtrls():[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?this.stickyRowFeature.getStickyBottomRowCtrls():[]}updateAllRowCtrls(){const e=c3(this.rowCtrlsByRowIndex),t=c3(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];t.length>0||n.length>0?this.allRowCtrls=[...e,...t,...n]:this.allRowCtrls=e}onCellFocusChanged(e){this.getAllCellCtrls().forEach(t=>t.onCellFocused(e)),this.getFullWidthRowCtrls().forEach(t=>t.onFullWidthRowFocused(e))}onSuppressCellFocusChanged(e){this.getAllCellCtrls().forEach(t=>t.onSuppressCellFocusChanged(e)),this.getFullWidthRowCtrls().forEach(t=>t.onSuppressCellFocusChanged(e))}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>{this.onCellFocusChanged(e)},cellFocusCleared:()=>this.onCellFocusChanged(),flashCells:e=>{this.getAllCellCtrls().forEach(t=>t.onFlashCells(e))},columnHoverChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onColumnHover())},displayedColumnsChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onDisplayedColumnsChanged())},displayedColumnsWidthChanged:()=>{this.printLayout&&this.getAllCellCtrls().forEach(e=>e.onLeftChanged())}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach(e=>e()),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners(),this.columnModel.getCols().forEach(t=>{const n=l=>{this.getAllCellCtrls().forEach(c=>{c.getColumn()===t&&l(c)})},r=()=>{n(l=>l.onLeftChanged())},i=()=>{n(l=>l.onWidthChanged())},o=()=>{n(l=>l.onFirstRightPinnedChanged())},s=()=>{n(l=>l.onLastLeftPinnedChanged())},a=()=>{n(l=>l.onColDefChanged())};t.addEventListener("leftChanged",r),t.addEventListener("widthChanged",i),t.addEventListener("firstRightPinnedChanged",o),t.addEventListener("lastLeftPinnedChanged",s),t.addEventListener("colDefChanged",a),this.destroyFuncsForColumnListeners.push(()=>{t.removeEventListener("leftChanged",r),t.removeEventListener("widthChanged",i),t.removeEventListener("firstRightPinnedChanged",o),t.removeEventListener("lastLeftPinnedChanged",s),t.removeEventListener("colDefChanged",a)})})}onDomLayoutChanged(){const e=La(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsForColumn(e){const t=[];return this.getAllRowCtrls().forEach(n=>{const r=n.getCellElement(e);r&&t.push(r)}),t}refreshFloatingRowComps(){this.refreshFloatingRows(this.topRowCtrls,"top"),this.refreshFloatingRows(this.bottomRowCtrls,"bottom")}getTopRowCtrls(){return this.topRowCtrls}getCentreRowCtrls(){return this.allRowCtrls}getBottomRowCtrls(){return this.bottomRowCtrls}refreshFloatingRows(e,t){const{pinnedRowModel:n,beans:r,printLayout:i}=this,o=Object.fromEntries(e.map(a=>[a.getRowNode().id,a]));n.forEachPinnedRow(t,(a,l)=>{const c=e[l];c&&n.getPinnedRowById(c.getRowNode().id,t)===void 0&&(c.destroyFirstPass(),c.destroySecondPass()),a.id in o?(e[l]=o[a.id],delete o[a.id]):e[l]=new pC(a,r,!1,!1,i)});const s=t==="top"?n.getPinnedTopRowCount():n.getPinnedBottomRowCount();e.length=s}onPinnedRowDataChanged(){const e={recycleRows:!0};this.redrawAfterModelUpdate(e)}redrawRow(e,t=!1){var n;if(e.sticky)this.stickyRowFeature.refreshStickyNode(e);else if((n=this.cachedRowCtrls)!=null&&n.has(e)){this.cachedRowCtrls.removeRow(e);return}else{const r=i=>{const o=i[e.rowIndex];o&&o.getRowNode()===e&&(o.destroyFirstPass(),o.destroySecondPass(),i[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":r(this.topRowCtrls);break;case"bottom":r(this.bottomRowCtrls);break;default:r(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){if(e!=null){e==null||e.forEach(n=>this.redrawRow(n,!0)),this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}getCellToRestoreFocusToAfterRefresh(e){const t=e!=null&&e.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(t==null)return null;const n=gi(this.gos),r=mI(this.gos,n,P4.DOM_DATA_KEY_CELL_CTRL),i=mI(this.gos,n,pC.DOM_DATA_KEY_ROW_CTRL);return r||i?t:null}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);const n=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&uw(this.gos),i=n?this.getRowsToRecycle():null;if(n||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature){this.stickyRowFeature.checkStickyRows();const o=this.stickyRowFeature.getExtraTopHeight()+this.stickyRowFeature.getExtraBottomHeight();o&&this.updateContainerHeights(o)}this.recycleRows(i,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),t!=null&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){var r;const t=e.newData||e.newPage,n=this.gos.get("suppressScrollOnNewData");t&&!n&&(this.gridBodyCtrl.getScrollFeature().scrollToTop(),(r=this.stickyRowFeature)==null||r.resetOffsets())}updateContainerHeights(e=0){if(this.printLayout){this.rowContainerHeightService.setModelHeight(null);return}let t=this.pageBoundsService.getCurrentPageHeight();t===0&&(t=1),this.rowContainerHeightService.setModelHeight(t+e)}getLockOnRefresh(){var e,t;if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0,(t=(e=this.frameworkOverrides).getLockOnRefresh)==null||t.call(e)}releaseLockOnRefresh(){var e,t;this.refreshInProgress=!1,(t=(e=this.frameworkOverrides).releaseLockOnRefresh)==null||t.call(e)}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){e&&this.focusService.restoreFocusedCell(e,()=>{this.onCellFocusChanged(this.gos.addGridCommonParams({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))})}stopEditing(e=!1){this.getAllRowCtrls().forEach(t=>{t.stopEditing(e)})}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),n=t.length;for(let r=0;r<n;r++){const i=t[r].getAllCellCtrls(),o=i.length;for(let s=0;s<o;s++)e.push(i[s])}return e}getAllRowCtrls(){const e=this.stickyRowFeature&&this.stickyRowFeature.getStickyTopRowCtrls()||[],t=this.stickyRowFeature&&this.stickyRowFeature.getStickyBottomRowCtrls()||[],n=[...this.topRowCtrls,...this.bottomRowCtrls,...e,...t];for(const r in this.rowCtrlsByRowIndex)n.push(this.rowCtrlsByRowIndex[r]);return n}addRenderedRowListener(e,t,n){const r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,n)}flashCells(e={}){this.getCellCtrls(e.rowNodes,e.columns).forEach(t=>t.flashCell(e))}refreshCells(e={}){const t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};for(const n of this.getCellCtrls(e.rowNodes,e.columns))n.refreshOrDestroyCell(t);this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=null;this.stickyRowFeature&&sfe()&&(t=this.getCellToRestoreFocusToAfterRefresh()||null);for(const n of this.getRowCtrls(e)){if(!n.isFullWidth())continue;n.refreshFullWidth()||this.redrawRow(n.getRowNode(),!0)}this.dispatchDisplayedRowsChanged(!1),t&&this.restoreFocusedCell(t)}getCellRendererInstances(e){var i;const t=this.getCellCtrls(e.rowNodes,e.columns).map(o=>o.getCellRenderer()).filter(o=>o!=null);if((i=e.columns)!=null&&i.length)return t;const n=[],r=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach(o=>{if(r&&!this.isRowInMap(o.getRowNode(),r)||!o.isFullWidth())return;const s=o.getFullWidthCellRenderers();for(let a=0;a<s.length;a++){const l=s[a];l!=null&&n.push(l)}}),[...n,...t]}getCellEditorInstances(e){const t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach(n=>{const r=n.getCellEditor();r&&t.push(r)}),t}getEditingCells(){const e=[];return this.getAllCellCtrls().forEach(t=>{if(t.isEditing()){const n=t.getCellPosition();e.push(n)}}),e}mapRowNodes(e){if(!e)return;const t={top:{},bottom:{},normal:{}};return e.forEach(n=>{const r=n.id;switch(n.rowPinned){case"top":t.top[r]=n;break;case"bottom":t.bottom[r]=n;break;default:t.normal[r]=n;break}}),t}isRowInMap(e,t){const n=e.id;switch(e.rowPinned){case"top":return t.top[n]!=null;case"bottom":return t.bottom[n]!=null;default:return t.normal[n]!=null}}getRowCtrls(e){const t=this.mapRowNodes(e),n=this.getAllRowCtrls();return!e||!t?n:n.filter(r=>{const i=r.getRowNode();return this.isRowInMap(i,t)})}getCellCtrls(e,t){let n;zt(t)&&(n={},t.forEach(i=>{const o=this.columnModel.getCol(i);zt(o)&&(n[o.getId()]=!0)}));const r=[];return this.getRowCtrls(e).forEach(i=>{i.getAllCellCtrls().forEach(o=>{const s=o.getColumn().getId();n&&!n[s]||r.push(o)})}),r}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature&&this.stickyRowFeature.destroyStickyCtrls()}getRowsToRecycle(){const e=[];tl(this.rowCtrlsByRowIndex,(n,r)=>{r.getRowNode().id==null&&e.push(n)}),this.removeRowCtrls(e);const t={};return tl(this.rowCtrlsByRowIndex,(n,r)=>{const i=r.getRowNode();t[i.id]=r}),this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){e.forEach(n=>{const r=this.rowCtrlsByRowIndex[n];r&&(r.destroyFirstPass(t),r.destroySecondPass()),delete this.rowCtrlsByRowIndex[n]})}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){const{afterScroll:t}=e;let n;this.stickyRowFeature&&sfe()&&(n=this.getCellToRestoreFocusToAfterRefresh()||void 0);const r=this.firstRenderedRow,i=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let o=!1;if(this.stickyRowFeature){o=this.stickyRowFeature.checkStickyRows();const a=this.stickyRowFeature.getExtraTopHeight()+this.stickyRowFeature.getExtraBottomHeight();a&&this.updateContainerHeights(a)}const s=this.firstRenderedRow!==r||this.lastRenderedRow!==i;if(!(t&&!o&&!s)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,t),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(t&&!o),n!=null)){const a=this.getCellToRestoreFocusToAfterRefresh();n!=null&&a==null&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(n))}}removeRowCompsNotToDraw(e,t){const n={};e.forEach(o=>n[o]=!0);const i=Object.keys(this.rowCtrlsByRowIndex).filter(o=>!n[o]);this.removeRowCtrls(i,t)}calculateIndexesToDraw(e){const t=loi(this.firstRenderedRow,this.lastRenderedRow),n=(i,o)=>{const s=o.getRowNode().rowIndex;s!=null&&(s<this.firstRenderedRow||s>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(o)&&t.push(s)};tl(this.rowCtrlsByRowIndex,n),tl(e,n),t.sort((i,o)=>i-o);const r=[];for(let i=0;i<t.length;i++){const o=t[i],s=this.rowModel.getRow(o);s&&!s.sticky&&r.push(o)}return r}recycleRows(e,t=!1,n=!1){const r=this.calculateIndexesToDraw(e);(this.printLayout||n)&&(t=!1),this.removeRowCompsNotToDraw(r,!t),r.forEach(i=>{this.createOrUpdateRowCtrl(i,e,t,n)}),e&&(n&&!this.gos.get("suppressAnimationFrame")&&!this.printLayout?this.beans.animationFrameService.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)),this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventService.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const e=this.visibleColsService.isPinningLeft(),t=this.visibleColsService.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];this.getFullWidthRowCtrls().forEach(t=>{const n=t.getRowNode().rowIndex;e.push(n.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=this.mapRowNodes(e);return this.getAllRowCtrls().filter(n=>{if(!n.isFullWidth())return!1;const r=n.getRowNode();return!(t!=null&&!this.isRowInMap(r,t))})}createOrUpdateRowCtrl(e,t,n,r){let i,o=this.rowCtrlsByRowIndex[e];if(o||(i=this.rowModel.getRow(e),zt(i)&&zt(t)&&t[i.id]&&i.alreadyRendered&&(o=t[i.id],t[i.id]=null)),!o)if(i||(i=this.rowModel.getRow(e)),zt(i))o=this.createRowCon(i,n,r);else return;return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=o,o}destroyRowCtrls(e,t){const n=[];tl(e,(r,i)=>{if(i){if(this.cachedRowCtrls&&i.isCacheable()){this.cachedRowCtrls.addRow(i);return}if(i.destroyFirstPass(!t),t){const o=i.instanceId;this.zombieRowCtrls[o]=i,n.push(()=>{i.destroySecondPass(),delete this.zombieRowCtrls[o]})}else i.destroySecondPass()}}),t&&(n.push(()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}),Hni(n))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=W0(this.gos);return e*t}workOutFirstAndLastRowsToRender(){this.rowContainerHeightService.updateOffset();let e,t;if(!this.rowModel.isRowsToRender())e=0,t=-1;else if(this.printLayout)this.environment.refreshRowHeightVariable(),e=this.pageBoundsService.getFirstRow(),t=this.pageBoundsService.getLastRow();else{const a=this.getRowBufferInPixels(),l=this.ctrlsService.getGridBodyCtrl(),c=this.gos.get("suppressRowVirtualisation");let u=!1,f,h;do{const C=this.pageBoundsService.getPixelOffset(),{pageFirstPixel:y,pageLastPixel:b}=this.pageBoundsService.getCurrentPagePixelRange(),S=this.rowContainerHeightService.getDivStretchOffset(),w=l.getScrollFeature().getVScrollPosition(),x=w.top,E=w.bottom;c?(f=y+S,h=b+S):(f=Math.max(x+C-a,y)+S,h=Math.min(E+C+a,b)+S),this.firstVisibleVPixel=Math.max(x+C,y)+S,this.lastVisibleVPixel=Math.min(E+C,b)+S,u=this.ensureAllRowsInRangeHaveHeightsCalculated(f,h)}while(u);let g=this.rowModel.getRowIndexAtPixel(f),p=this.rowModel.getRowIndexAtPixel(h);const m=this.pageBoundsService.getFirstRow(),v=this.pageBoundsService.getLastRow();g<m&&(g=m),p>v&&(p=v),e=g,t=p}const n=La(this.gos,"normal"),r=this.gos.get("suppressMaxRenderedRowRestriction"),i=Math.max(this.getRowBuffer(),500);n&&!r&&t-e>i&&(t=e+i);const o=e!==this.firstRenderedRow,s=t!==this.lastRenderedRow;(o||s)&&(this.firstRenderedRow=e,this.lastRenderedRow=t,this.eventService.dispatchEvent({type:"viewportChanged",firstRow:e,lastRow:t}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,window.requestAnimationFrame(()=>{this.beans.eventService.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){var o,s;const n=(o=this.pinnedRowModel)==null?void 0:o.ensureRowHeightsValid(),r=(s=this.stickyRowFeature)==null?void 0:s.ensureRowHeightsValid(),i=this.rowModel.ensureRowHeightsValid(e,t,this.pageBoundsService.getFirstRow(),this.pageBoundsService.getLastRow());return(i||r)&&this.eventService.dispatchEvent({type:"recalculateRowBounds"}),r||i||n?(this.updateContainerHeights(),!0):!1}getFirstVisibleVerticalPixel(){return this.firstVisibleVPixel}getLastVisibleVerticalPixel(){return this.lastVisibleVPixel}getFirstVirtualRenderedRow(){return this.firstRenderedRow}getLastVirtualRenderedRow(){return this.lastRenderedRow}doNotUnVirtualiseRow(e){const r=e.getRowNode(),i=this.focusService.isRowNodeFocused(r),o=e.isEditing(),s=r.detail;return i||o||s?!!this.isRowPresent(r):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.paginationService?this.paginationService.isRowPresent(e):!0:!1}createRowCon(e,t,n){const r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(r)return r;const i=this.gos.get("suppressAnimationFrame"),o=n&&!i&&!this.printLayout;return new pC(e,this.beans,t,o,this.printLayout)}getRenderedNodes(){const e=this.rowCtrlsByRowIndex;return Object.values(e).map(t=>t.getRowNode())}getRowByPosition(e){let t;const{rowIndex:n}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[n];break;case"bottom":t=this.bottomRowCtrls[n];break;default:t=this.rowCtrlsByRowIndex[n],t||(t=this.getStickyTopRowCtrls().find(r=>r.getRowNode().rowIndex===n)||null,t||(t=this.getStickyBottomRowCtrls().find(r=>r.getRowNode().rowIndex===n)||null));break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const r=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!r}},hli=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}}getRow(e){if(e==null||e.id==null)return null;const t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null}has(e){return this.entriesMap[e.id]!=null}removeRow(e){const t=e.id,n=this.entriesMap[t];delete this.entriesMap[t],rl(this.entriesList,n)}removeFromCache(e){const t=e.getRowNode().id;delete this.entriesMap[t],rl(this.entriesList,e)}getEntries(){return this.entriesList}},gli=class extends ct{constructor(){super(...arguments),this.beanName="pinnedRowModel",this.nextId=0,this.pinnedTopRows=new TLe,this.pinnedBottomRows=new TLe}wireBeans(e){this.beans=e}postConstruct(){this.setPinnedRowData(this.gos.get("pinnedTopRowData"),"top"),this.setPinnedRowData(this.gos.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",e=>this.setPinnedRowData(e.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",e=>this.setPinnedRowData(e.currentValue,"bottom")),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}isEmpty(e){return(e==="top"?this.pinnedTopRows:this.pinnedBottomRows).isEmpty()}isRowsToRender(e){return!this.isEmpty(e)}onGridStylesChanges(e){if(e.rowHeightChanged){const t=n=>{n.setRowHeight(n.rowHeight,!0)};this.pinnedBottomRows.forEach(t),this.pinnedTopRows.forEach(t)}}ensureRowHeightsValid(){var r,i;let e=!1,t=0;const n=o=>{if(o.rowHeightEstimated){const s=kl(this.gos,o);o.setRowTop(t),o.setRowHeight(s.height),t+=s.height,e=!0}};return(r=this.pinnedBottomRows)==null||r.forEach(n),t=0,(i=this.pinnedTopRows)==null||i.forEach(n),this.eventService.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventService.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const n=t==="top"?this.pinnedTopRows:this.pinnedBottomRows;if(e===void 0){n.clear();return}const r=U0(this.gos),i=t==="top"?vu.ID_PREFIX_TOP_PINNED:vu.ID_PREFIX_BOTTOM_PINNED,o=n.getIds(),s=[],a=new Set;let l=0,c=-1;for(const u of e){const f=(r==null?void 0:r({data:u,level:0,rowPinned:t}))??i+this.nextId++;if(a.has(f)){rt("Duplicate ID",f,"found for pinned row with data",u,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter.");continue}c++,a.add(f),s.push(f);const h=n.getById(f);if(h!==void 0)h.data!==u&&h.setData(u),l+=this.setRowTopAndRowIndex(h,l,c),o.delete(f);else{const g=new vu(this.beans);g.id=f,g.data=u,g.rowPinned=t,l+=this.setRowTopAndRowIndex(g,l,c),n.push(g)}}o.forEach(u=>{var f;(f=n.getById(u))==null||f.clearRowTopAndRowIndex()}),n.removeAllById(o),n.setOrder(s)}setRowTopAndRowIndex(e,t,n){return e.setRowTop(t),e.setRowHeight(kl(this.gos,e).height),e.setRowIndex(n),e.rowHeight}getPinnedTopTotalHeight(){return this.getTotalHeight(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return this.getTotalHeight(this.pinnedBottomRows)}getPinnedTopRowCount(){return this.pinnedTopRows.getSize()}getPinnedBottomRowCount(){return this.pinnedBottomRows.getSize()}getPinnedTopRow(e){return this.pinnedTopRows.getByIndex(e)}getPinnedBottomRow(e){return this.pinnedBottomRows.getByIndex(e)}getPinnedRowById(e,t){return t==="top"?this.pinnedTopRows.getById(e):this.pinnedBottomRows.getById(e)}forEachPinnedRow(e,t){return e==="top"?this.pinnedTopRows.forEach(t):this.pinnedBottomRows.forEach(t)}getTotalHeight(e){const t=e.getSize();if(t===0)return 0;const n=e.getByIndex(t-1);return n===void 0?0:n.rowTop+n.rowHeight}},TLe=class{constructor(){this.cache={},this.ordering=[]}getById(e){return this.cache[e]}getByIndex(e){const t=this.ordering[e];return this.cache[t]}push(e){this.cache[e.id]=e,this.ordering.push(e.id)}removeAllById(e){for(const t of e)delete this.cache[t];this.ordering=this.ordering.filter(t=>!e.has(t))}setOrder(e){this.ordering=e}forEach(e){this.ordering.forEach((t,n)=>{const r=this.cache[t];r&&e(r,n)})}clear(){this.ordering.length=0,this.cache={}}isEmpty(){return this.ordering.length===0}getSize(){return this.ordering.length}getIds(){return new Set(this.ordering)}},fc=(e=>(e.Applied="Applied",e.StoreNotFound="StoreNotFound",e.StoreLoading="StoreLoading",e.StoreWaitingToLoad="StoreWaitingToLoad",e.StoreLoadingFailed="StoreLoadingFailed",e.StoreWrongType="StoreWrongType",e.Cancelled="Cancelled",e.StoreNotStarted="StoreNotStarted",e))(fc||{}),pli=class extends ct{constructor(e){super(),this.state="needsLoading",this.version=0,this.id=e}getId(){return this.id}load(){this.state="loading",this.loadFromDatasource()}getVersion(){return this.version}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}getState(){return this.state}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed",this.processServerFail()),this.dispatchLoadCompleted(!1)}success(e,t){this.successCommon(e,t)}pageLoaded(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})}isRequestMostRecentAndLive(e){const t=e===this.version,n=this.isAlive();return t&&n}successCommon(e,t){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}dispatchLoadCompleted(e=!0){const t={type:"loadComplete",success:e,block:this};this.dispatchLocalEvent(t)}},mli=class extends ct{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=_a(this.performCheckBlocksToLoad.bind(this),e))}getMaxConcurrentDatasourceRequests(){const e=this.gos.get("maxConcurrentDatasourceRequests");if(e==null)return 2;if(!(e<=0))return e}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){rl(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchLocalEvent({type:"blockLoaded"}),this.activeBlockLoadsCount==0&&this.dispatchLocalEvent({type:"blockLoaderFinished"})}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){this.gos.get("debug")&&mg("RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.getAvailableLoadingCount(),t=this.blocks.filter(n=>n.getState()==="needsLoading").slice(0,e);this.registerLoads(t.length),t.forEach(n=>n.load()),this.printCacheStatus()}getBlockState(){if(ml(this.gos))return this.rowModel.getBlockStates();const e={};return this.blocks.forEach(t=>{const{id:n,state:r}=t.getBlockStateJson();e[n]=r}),e}printCacheStatus(){this.gos.get("debug")&&mg(`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}isLoading(){return this.activeBlockLoadsCount>0}registerLoads(e){this.activeBlockLoadsCount+=e}getAvailableLoadingCount(){return this.maxConcurrentRequests!==void 0?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0}},vli={version:ur,moduleName:"@ag-grid-community/row-node-block",beans:[mli]},Cli=class{constructor(){this.root=null,this.end=null,this.cachedRange=[]}init(e){this.rowModel=e}reset(){this.root=null,this.end=null,this.cachedRange.length=0}setRoot(e){this.root=e,this.end=null,this.cachedRange.length=0}setEndRange(e){this.end=e,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.rowModel.getNodesInRangeForSelection(e,t)}return this.cachedRange}isInRange(e){return this.root===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(){var e;return this.root&&((e=this.root)==null?void 0:e.key)===null&&(this.root=this.rowModel.getRowNode(this.root.id)??null),this.root}getEnd(){var e;return this.end&&((e=this.end)==null?void 0:e.key)===null&&(this.end=this.rowModel.getRowNode(this.end.id)??null),this.end}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const n=t[0].id===this.root.id,r=t.findIndex(i=>i.id===e.id);if(r>-1){const i=t.slice(0,r),o=t.slice(r+1);return this.setEndRange(e),n?{keep:i,discard:o}:{keep:o,discard:i}}else return{keep:t,discard:[]}}extend(e,t=!1){const n=this.getRoot();if(n==null){const i=this.getRange().slice();return t&&e.depthFirstSearch(o=>!o.group&&i.push(o)),i.push(e),this.setRoot(e),{keep:i,discard:[]}}if(this.rowModel.getNodesInRangeForSelection(n,e).find(i=>{var o;return i.id===((o=this.end)==null?void 0:o.id)}))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const i=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:i}}}},yli=class extends ct{constructor(){super(...arguments),this.beanName="stylingService"}wireBeans(e){this.expressionService=e.expressionService}processAllCellClasses(e,t,n,r){this.processClassRules(void 0,e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)}processClassRules(e,t,n,r,i){if(t==null&&e==null)return;const o={},s={},a=(l,c)=>{l.split(" ").forEach(u=>{u.trim()!=""&&c(u)})};if(t){const l=Object.keys(t);for(let c=0;c<l.length;c++){const u=l[c],f=t[u];let h;typeof f=="string"?h=this.expressionService.evaluate(f,n):typeof f=="function"&&(h=f(n)),a(u,g=>{h?o[g]=!0:s[g]=!0})}}e&&i&&Object.keys(e).forEach(l=>a(l,c=>{o[c]||(s[c]=!0)})),i&&Object.keys(s).forEach(i),Object.keys(o).forEach(r)}getStaticCellClasses(e,t){const{cellClass:n}=e;if(!n)return[];let r;return typeof n=="function"?r=n(t):r=n,typeof r=="string"&&(r=[r]),r||[]}processStaticCellClasses(e,t,n){this.getStaticCellClasses(e,t).forEach(i=>{n(i)})}},Aht=class extends UQ{constructor(e){super(e,"ag-toggle-button")}setValue(e,t){return super.setValue(e,t),this.addOrRemoveCssClass("ag-selected",this.getValue()),this}},bli={selector:"AG-TOGGLE-BUTTON",component:Aht},dk=(e=>(e.TAB_GUARD="ag-tab-guard",e.TAB_GUARD_TOP="ag-tab-guard-top",e.TAB_GUARD_BOTTOM="ag-tab-guard-bottom",e))(dk||{}),Dht=class extends ct{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:t,eTopGuard:n,eBottomGuard:r,focusTrapActive:i,forceFocusOutWhenTabGuardsAreEmpty:o,isFocusableContainer:s,focusInnerElement:a,onFocusIn:l,onFocusOut:c,shouldStopEventPropagation:u,onTabKeyDown:f,handleKeyDown:h,eFocusableElement:g}=e;this.comp=t,this.eTopGuard=n,this.eBottomGuard=r,this.providedFocusInnerElement=a,this.eFocusableElement=g,this.focusTrapActive=!!i,this.forceFocusOutWhenTabGuardsAreEmpty=!!o,this.isFocusableContainer=!!s,this.providedFocusIn=l,this.providedFocusOut=c,this.providedShouldStopEventPropagation=u,this.providedOnTabKeyDown=f,this.providedHandleKeyDown=h}wireBeans(e){this.focusService=e.focusService}postConstruct(){this.createManagedBean(new Rv(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(e=>this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)}))}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&this.focusService.findFocusableElements(this.eFocusableElement,".ag-tab-guard").length===0){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}findNextElementOutsideAndFocus(e){var l;const t=uo(this.gos),n=this.focusService.findFocusableElements(t.body,null,!0),r=n.indexOf(e?this.eTopGuard:this.eBottomGuard);if(r===-1)return;let i,o;e?(i=0,o=r):(i=r+1,o=n.length);const s=n.slice(i,o),a=this.gos.get("tabIndex");s.sort((c,u)=>{const f=parseInt(c.getAttribute("tabindex")||"0"),h=parseInt(u.getAttribute("tabindex")||"0");return h===a?1:f===a?-1:f===0?1:h===0?-1:f-h}),(l=s[e?s.length-1:0])==null||l.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const n=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),n&&(n.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},Lht=class extends ct{constructor(e){super(),this.comp=e}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:n,eFocusableElement:r}=this,i=[t,n],o={setTabIndex:m=>{i.forEach(v=>m!=null?v.setAttribute("tabindex",m):v.removeAttribute("tabindex"))}};this.addTabGuards(t,n);const{focusTrapActive:s=!1,onFocusIn:a,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:f,shouldStopEventPropagation:h,forceFocusOutWhenTabGuardsAreEmpty:g,isFocusableContainer:p}=e;this.tabGuardCtrl=this.createManagedBean(new Dht({comp:o,focusTrapActive:s,eTopGuard:t,eBottomGuard:n,eFocusableElement:r,onFocusIn:a,onFocusOut:l,focusInnerElement:c,handleKeyDown:u,onTabKeyDown:f,shouldStopEventPropagation:h,forceFocusOutWhenTabGuardsAreEmpty:g,isFocusableContainer:p}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=uo(this.gos).createElement("div"),n=e==="top"?"ag-tab-guard-top":"ag-tab-guard-bottom";return t.classList.add("ag-tab-guard",n),jo(t,"presentation"),t}addTabGuards(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];go(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,n){WQ(t)||(t=t.getGui());const{eBottomGuard:r}=this;r?r.insertAdjacentElement("beforebegin",t):e(t,n)}},kb=class extends wn{initialiseTabGuard(t){this.tabGuardFeature=this.createManagedBean(new Lht(this)),this.tabGuardFeature.initialiseTabGuard(t)}forceFocusOutOfContainer(t=!1){this.tabGuardFeature.forceFocusOutOfContainer(t)}appendChild(t,n){this.tabGuardFeature.appendChild(super.appendChild.bind(this),t,n)}},Sli=0,wli=200,xli=class extends ct{constructor(){super(...arguments),this.beanName="popupService",this.popupList=[]}wireBeans(e){this.ctrlsService=e.ctrlsService,this.resizeObserverService=e.resizeObserverService,this.environment=e.environment}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.gridCtrl=e.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.gridCtrl.getGui()}positionPopupForMenu(e){const{eventSource:t,ePopup:n}=e,r=this.getPopupIndex(n);if(r!==-1){const g=this.popupList[r];g.alignedToElement=t}const i=t.getBoundingClientRect(),o=this.getParentRect(),s=this.keepXYWithinBounds(n,i.top-o.top,0),a=n.clientWidth>0?n.clientWidth:200;n.style.minWidth=`${a}px`;const c=o.right-o.left-a;let u;this.gos.get("enableRtl")?(u=h(),u<0&&(u=f(),this.setAlignedStyles(n,"left")),u>c&&(u=0,this.setAlignedStyles(n,"right"))):(u=f(),u>c&&(u=h(),this.setAlignedStyles(n,"right")),u<0&&(u=0,this.setAlignedStyles(n,"left"))),n.style.left=`${u}px`,n.style.top=`${s}px`;function f(){return i.right-o.left-2}function h(){return i.left-o.left-a}}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:n,nudgeY:r,skipObserver:i}=e;this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:!0,skipObserver:i,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,eventSource:o,alignSide:s="left",position:a="over",column:l,rowNode:c,type:u}=e,f=o.getBoundingClientRect(),h=this.getParentRect(),g=this.getPopupIndex(t);if(g!==-1){const m=this.popupList[g];m.alignedToElement=o}const p=()=>{let m=f.left-h.left;s==="right"&&(m-=t.offsetWidth-f.width);let v;return a==="over"?(v=f.top-h.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,f,h,e.nudgeY||0)==="under"?v=f.top-h.top+f.height:v=f.top-t.offsetHeight-(r||0)*2-h.top),{x:m,y:v}};this.positionPopup({ePopup:t,nudgeX:n,nudgeY:r,keepWithinBounds:i,updatePosition:p,postProcessCallback:()=>this.callPostProcessPopup(u,t,o,null,l,c)})}shouldRenderUnderOrAbove(e,t,n,r){const i=n.bottom-t.bottom,o=t.top-n.top,s=e.offsetHeight+r;return i>s?"under":o>s||o>i?"above":"under"}setAlignedStyles(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const r=this.popupList[n],{alignedToElement:i}=r;!i||(["right","left","over","above","under"].forEach(s=>{i.classList.remove(`ag-has-popup-positioned-${s}`),e.classList.remove(`ag-popup-positioned-${s}`)}),!t)||(i.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}callPostProcessPopup(e,t,n,r,i,o){const s=this.gos.getCallback("postProcessPopup");s&&s({column:i,rowNode:o,ePopup:t,type:e,eventSource:n,mouseEvent:r})}positionPopup(e){const{ePopup:t,keepWithinBounds:n,nudgeX:r,nudgeY:i,skipObserver:o,updatePosition:s}=e,a={width:0,height:0},l=(c=!1)=>{let{x:u,y:f}=s();c&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,r&&(u+=r),i&&(f+=i),n&&(u=this.keepXYWithinBounds(t,u,1),f=this.keepXYWithinBounds(t,f,0)),t.style.left=`${u}px`,t.style.top=`${f}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!o){const c=this.resizeObserverService.observeResize(t,()=>l(!0));setTimeout(()=>c(),wli)}}getActivePopups(){return this.popupList.map(e=>e.element)}getPopupList(){return this.popupList}getParentRect(){const e=uo(this.gos);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),mft(t)}keepXYWithinBounds(e,t,n){const r=n===0,i=r?"clientHeight":"clientWidth",o=r?"top":"left",s=r?"height":"width",a=r?"scrollTop":"scrollLeft",l=uo(this.gos),c=l.documentElement,u=this.getPopupParent(),f=e.getBoundingClientRect(),h=u.getBoundingClientRect(),g=l.documentElement.getBoundingClientRect(),p=u===l.body,m=Math.ceil(f[s]);let C=p?(r?pft:bH)(c)+c[a]:u[i];p&&(C-=Math.abs(g[o]-h[o]));const y=C-m;return Math.min(Math.max(t,0),Math.abs(y))}addPopup(e){const t=uo(this.gos),{eChild:n,ariaLabel:r,alwaysOnTop:i,positionCallback:o,anchorToElement:s}=e;if(!t)return rt("could not find the document, document is empty"),{hideFunc:()=>{}};const a=this.getPopupIndex(n);if(a!==-1)return{hideFunc:this.popupList[a].hideFunc};this.initialisePopupPosition(n);const l=this.createPopupWrapper(n,r,!!i),c=this.addEventListenersToPopup({...e,wrapperEl:l});return o&&o(),this.addPopupToPopupList(n,l,c,s),{hideFunc:c}}initialisePopupPosition(e){const n=this.getPopupParent().getBoundingClientRect();zt(e.style.top)||(e.style.top=`${n.top*-1}px`),zt(e.style.left)||(e.style.left=`${n.left*-1}px`)}createPopupWrapper(e,t,n){const r=this.getPopupParent(),i=document.createElement("div");return this.environment.applyThemeClasses(i),i.classList.add("ag-popup"),e.classList.add(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||jo(e,"dialog"),Xl(e,t),i.appendChild(e),r.appendChild(i),n?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),i}handleThemeChange(e){if(e.themeChanged)for(const t of this.popupList)this.environment.applyThemeClasses(t.wrapper)}addEventListenersToPopup(e){const t=uo(this.gos),n=this.getPopupParent(),{wrapperEl:r,eChild:i,closedCallback:o,afterGuiAttached:s,closeOnEsc:a,modal:l}=e;let c=!1;const u=p=>{if(!r.contains(gi(this.gos)))return;p.key===Je.ESCAPE&&!Ig(p)&&g({keyboardEvent:p})},f=p=>g({mouseEvent:p}),h=p=>g({touchEvent:p}),g=(p={})=>{const{mouseEvent:m,touchEvent:v,keyboardEvent:C,forceHide:y}=p;!y&&(this.isEventFromCurrentPopup({mouseEvent:m,touchEvent:v},i)||c)||(c=!0,n.removeChild(r),t.removeEventListener("keydown",u),t.removeEventListener("mousedown",f),t.removeEventListener("touchstart",h),t.removeEventListener("contextmenu",f),this.eventService.removeEventListener("dragStarted",f),o&&o(m||v||C),this.removePopupFromPopupList(i))};return s&&s({hidePopup:g}),window.setTimeout(()=>{a&&t.addEventListener("keydown",u),l&&(t.addEventListener("mousedown",f),this.eventService.addEventListener("dragStarted",f),t.addEventListener("touchstart",h),t.addEventListener("contextmenu",f))},0),g}addPopupToPopupList(e,t,n,r){this.popupList.push({element:e,wrapper:t,hideFunc:n,instanceId:Sli++,isAnchored:!!r}),r&&this.setPopupPositionRelatedToElement(e,r)}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const n=this.getPopupIndex(e);if(n===-1)return;const r=this.popupList[n];if(r.stopAnchoringPromise&&r.stopAnchoringPromise.then(o=>o&&o()),r.stopAnchoringPromise=void 0,r.isAnchored=!1,!t)return;const i=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:r.hideFunc});return r.stopAnchoringPromise=i,r.isAnchored=!0,i}removePopupFromPopupList(e){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),this.popupList=this.popupList.filter(t=>t.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),n=t.getBoundingClientRect(),{element:r,ePopup:i}=e,o=r.getBoundingClientRect(),s=f=>parseInt(f.substring(0,f.length-1),10),a=(f,h)=>{const g=n[f]-o[f],p=s(i.style[f]);return{initialDiff:g,lastDiff:g,initial:p,last:p,direction:h}},l=a("top",0),c=a("left",1),u=this.getFrameworkOverrides();return new xr(f=>{u.wrapIncoming(()=>{u.setInterval(()=>{const h=t.getBoundingClientRect(),g=r.getBoundingClientRect();if(g.top==0&&g.left==0&&g.height==0&&g.width==0){e.hidePopup();return}const m=(v,C)=>{const y=s(i.style[C]);v.last!==y&&(v.initial=y,v.last=y);const b=h[C]-g[C];if(b!=v.lastDiff){const S=this.keepXYWithinBounds(i,v.initial+v.initialDiff-b,v.direction);i.style[C]=`${S}px`,v.last=S}v.lastDiff=b};m(l,"top"),m(c,"left")},200).then(h=>{f(()=>{h!=null&&window.clearInterval(h)})})},"popupPositioning")})}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isEventFromCurrentPopup(e,t){const{mouseEvent:n,touchEvent:r}=e,i=n||r;if(!i)return!1;const o=this.getPopupIndex(t);if(o===-1)return!1;for(let s=o;s<this.popupList.length;s++){const a=this.popupList[s];if(efe(a.element,i))return!0}return this.isElementWithinCustomPopup(i.target)}isElementWithinCustomPopup(e){const t=uo(this.gos);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))}bringPopupToFront(e){const t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=n.length,i=this.getWrapper(e);if(!i||r<=1||!t.contains(e))return;const o=[],s=[];for(const h of n)h!==i&&(h.classList.contains("ag-always-on-top")?s.push(h):o.push(h));const a=[],l=s.length,f=i.classList.contains("ag-always-on-top")||!l?[...o,...s,i]:[...o,i,...s];for(let h=0;h<=r;h++){const g=f[h];if(n[h]===f[h]||g===i)continue;g.querySelectorAll("div").forEach(m=>{m.scrollTop!==0&&a.push([m,m.scrollTop])}),h===0?t.insertAdjacentElement("afterbegin",g):f[h-1].insertAdjacentElement("afterend",g)}for(;a.length;){const h=a.pop();h[0].scrollTop=h[1]}}},Eli=["touchstart","touchend","touchmove","touchcancel"],Fht=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t()}setInterval(e,t){return new xr(n=>{n(window.setInterval(e,t))})}addEventListener(e,t,n,r){const i=ll(Eli,t);e.addEventListener(t,n,{capture:!!r,passive:i})}get shouldWrapOutgoing(){return!1}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return`https://www.ag-grid.com/${this.frameworkName==="solid"?"react":this.frameworkName}-data-grid${e?`/${e}`:""}`}},Rli=class extends ct{constructor(){super(...arguments),this.beanName="cellNavigationService"}wireBeans(e){this.visibleColsService=e.visibleColsService,this.rowModel=e.rowModel,this.rowRenderer=e.rowRenderer,this.pinnedRowModel=e.pinnedRowModel,this.paginationService=e.paginationService,this.pageBoundsService=e.pageBoundsService}getNextCellToFocus(e,t,n=!1){return n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const n=e===Je.UP,r=e===Je.DOWN,i=e===Je.LEFT;let o,s;if(n||r)s=n?this.pageBoundsService.getFirstRow():this.pageBoundsService.getLastRow(),o=t.column;else{const a=this.visibleColsService.getAllCols(),l=this.gos.get("enableRtl");s=t.rowIndex,o=i!==l?a[0]:Dn(a)}return{rowIndex:s,rowPinned:null,column:o}}getNextCellToFocusWithoutCtrlPressed(e,t){let n=t,r=!1;for(;!r;){switch(e){case Je.UP:n=this.getCellAbove(n);break;case Je.DOWN:n=this.getCellBelow(n);break;case Je.RIGHT:this.gos.get("enableRtl")?n=this.getCellToLeft(n):n=this.getCellToRight(n);break;case Je.LEFT:this.gos.get("enableRtl")?n=this.getCellToRight(n):n=this.getCellToLeft(n);break;default:n=null,rt("unknown key for navigation ",e);break}n?r=this.isCellGoodToFocusOn(n):r=!0}return n}isCellGoodToFocusOn(e){const t=e.column;let n;switch(e.rowPinned){case"top":n=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case"bottom":n=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:n=this.rowModel.getRow(e.rowIndex);break}return n?!t.isSuppressNavigable(n):!1}getCellToLeft(e){if(!e)return null;const t=this.visibleColsService.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.visibleColsService.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getRowBelow(e){const t=e.rowIndex,n=e.rowPinned;let r=!1;if(this.isLastRowInContainer(e))switch(n){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.pageBoundsService.getFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}else n&&(r=!0);const i=this.rowModel.getRow(e.rowIndex),o=r?void 0:this.getNextStickyPosition(i);return o||{rowIndex:t+1,rowPinned:n}}getNextStickyPosition(e,t){if(!zQ(this.gos)||!e||!e.sticky)return;const n=this.rowRenderer.getStickyTopRowCtrls().some(a=>a.getRowNode().rowIndex===e.rowIndex);let r=[];n?r=[...this.rowRenderer.getStickyTopRowCtrls()].sort((a,l)=>a.getRowNode().rowIndex-l.getRowNode().rowIndex):r=[...this.rowRenderer.getStickyBottomRowCtrls()].sort((a,l)=>l.getRowNode().rowIndex-a.getRowNode().rowIndex);const i=t?-1:1,o=r.findIndex(a=>a.getRowNode().rowIndex===e.rowIndex),s=r[o+i];if(s)return{rowIndex:s.getRowNode().rowIndex,rowPinned:null}}getCellBelow(e){if(!e)return null;const t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null}isLastRowInContainer(e){const t=e.rowPinned,n=e.rowIndex;return t==="top"?this.pinnedRowModel.getPinnedTopRowCount()-1<=n:t==="bottom"?this.pinnedRowModel.getPinnedBottomRowCount()-1<=n:this.pageBoundsService.getLastRow()<=n}getRowAbove(e){const t=e.rowIndex,n=e.rowPinned,r=n?t===0:t===this.pageBoundsService.getFirstRow();let i=!1;if(r)return n==="top"?null:n?this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null:this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;n&&(i=!0);const o=this.rowModel.getRow(e.rowIndex),s=i?void 0:this.getNextStickyPosition(o,!0);return s||{rowIndex:t-1,rowPinned:n}}getCellAbove(e){if(!e)return null;const t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null}getLastBodyCell(){return{rowIndex:this.pageBoundsService.getLastRow(),rowPinned:null}}getLastFloatingTopRow(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowCount()-1,rowPinned:"top"}}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){var o;const t=this.visibleColsService.getAllCols();let n=e.rowIndex,r=e.rowPinned,i=this.visibleColsService.getColAfter(e.column);if(!i){i=t[0];const s=this.getRowBelow(e);if(ar(s)||!s.rowPinned&&!(((o=this.paginationService)==null?void 0:o.isRowInPage(s))??!0))return null;n=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:n,column:i,rowPinned:r}}getNextTabbedCellBackwards(e){var o;const t=this.visibleColsService.getAllCols();let n=e.rowIndex,r=e.rowPinned,i=this.visibleColsService.getColBefore(e.column);if(!i){i=Dn(t);const s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(ar(s)||!s.rowPinned&&!(((o=this.paginationService)==null?void 0:o.isRowInPage(s))??!0))return null;n=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:n,column:i,rowPinned:r}}},oc=(e,t)=>{for(const n in t)t[n]=e;return t},ILe={...oc("@ag-grid-community/core",{dispatchEvent:0,destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,getState:0,setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0,redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRow:0,getFirstDisplayedRowIndex:0,getLastDisplayedRow:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0,getModel:0,getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0,getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0,addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0,expireValueCache:0,getValue:0,getCellValue:0,showColumnMenuAfterButtonClick:0,showColumnMenuAfterMouseClick:0,showColumnMenu:0,hidePopupMenu:0,onSortChanged:0,getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0,setGridAriaProperty:0,refreshCells:0,flashCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0,addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getColumnDef:0,getColumnDefs:0,sizeColumnsToFit:0,setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumn:0,getDisplayNameForColumnGroup:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnVisible:0,setColumnsVisible:0,setColumnPinned:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0,moveColumn:0,moveColumnByIndex:0,moveColumns:0,setColumnWidth:0,setColumnWidths:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0,autoSizeColumn:0,autoSizeColumns:0,autoSizeAllColumns:0,undoCellEditing:0,redoCellEditing:0,getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0,getCurrentUndoSize:0,getCurrentRedoSize:0,isAnyFilterPresent:0,onFilterChanged:0,isColumnFilterPresent:0,getFilterInstance:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0,paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0,expandAll:0,collapseAll:0,onRowHeightChanged:0,setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...oc("@ag-grid-community/client-side-row-model",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0}),...oc("@ag-grid-community/csv-export",{getDataAsCsv:0,exportDataAsCsv:0}),...oc("@ag-grid-community/infinite-row-model",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...oc("@ag-grid-enterprise/advanced-filter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...oc("@ag-grid-enterprise/charts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...oc("@ag-grid-enterprise/clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...oc("@ag-grid-enterprise/excel-export",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...oc("@ag-grid-enterprise/master-detail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...oc("@ag-grid-enterprise/menu",{showContextMenu:0,showColumnChooser:0,hideColumnChooser:0}),...oc("@ag-grid-enterprise/range-selection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...oc("@ag-grid-enterprise/row-grouping",{addAggFunc:0,addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0,isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumn:0,removeValueColumns:0,addValueColumn:0,addValueColumns:0,setRowGroupColumns:0,removeRowGroupColumn:0,removeRowGroupColumns:0,addRowGroupColumn:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0,setPivotColumns:0,removePivotColumn:0,removePivotColumns:0,addPivotColumn:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...oc("@ag-grid-enterprise/server-side-row-model",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0}),...oc("@ag-grid-enterprise/side-bar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...oc("@ag-grid-enterprise/status-bar",{getStatusPanel:0})},coe={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},$li=(e,t)=>e.eventService.dispatchEvent(t),Nht=class{};Reflect.defineProperty(Nht,"name",{value:"GridApi"});var Oli=class extends ct{constructor(){super(),this.beanName="apiFunctionService",this.api=new Nht,this.fns={...coe,dispatchEvent:$li},this.beans=null,this.preDestroyLink="";const{api:e}=this;for(const t in ILe)e[t]=this.makeApi(t)[t]}wireBeans(e){this.beans=e}postConstruct(){this.preDestroyLink=this.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){var i;const{fns:n,beans:r}=this;n!==coe&&(n[e]=((i=r==null?void 0:r.validationService)==null?void 0:i.validateApiFunction(e,t))??t)}makeApi(e){return{[e]:(...t)=>{const{beans:n,fns:{[e]:r}}=this;return r?r(n,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:n,preDestroyLink:r}=this;if(!t)rt(`Grid API function ${e}() cannot be called as the grid has been destroyed.
|
||
Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
|
||
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().map(r=>this.createStateItemFromColumn(r));return this.orderColumnStateList(n),n}createStateItemFromColumn(e){const t=this.funcColsService.getRowGroupColumns(),n=this.funcColsService.getPivotColumns(),r=e.isRowGroupActive()?t.indexOf(e):null,i=e.isPivotActive()?n.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null,s=e.getSort()!=null?e.getSort():null,a=e.getSortIndex()!=null?e.getSortIndex():null,l=e.getFlex()!=null&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:s,sortIndex:a,aggFunc:o,rowGroup:e.isRowGroupActive(),rowGroupIndex:r,pivot:e.isPivotActive(),pivotIndex:i,flex:l}}orderColumnStateList(e){const t=this.columnModel.getCols(),n=new Map(t.map((r,i)=>[r.getColId(),i]));e.sort((r,i)=>{const o=n.has(r.colId)?n.get(r.colId):-1,s=n.has(i.colId)?n.get(i.colId):-1;return o-s})}},_li=class extends ct{constructor(){super(...arguments),this.beanName="columnGroupStateService"}wireBeans(e){this.columnModel=e.columnModel,this.columnAnimationService=e.columnAnimationService,this.eventDispatcher=e.columnEventDispatcher,this.visibleColsService=e.visibleColsService}getColumnGroupState(){const e=[],t=this.columnModel.getColTree();return K0(null,t,n=>{_o(n)&&e.push({groupId:n.getGroupId(),open:n.isExpanded()})}),e}resetColumnGroupState(e){const t=this.columnModel.getColDefColTree();if(!t)return;const n=[];K0(null,t,r=>{if(_o(r)){const i=r.getColGroupDef(),o={groupId:r.getGroupId(),open:i?i.openByDefault:void 0};n.push(o)}}),this.setColumnGroupState(n,e)}setColumnGroupState(e,t){if(!this.columnModel.getColTree())return;this.columnAnimationService.start();const r=[];e.forEach(i=>{const o=i.groupId,s=i.open,a=this.columnModel.getProvidedColGroup(o);a&&a.isExpanded()!==s&&(a.setExpanded(s),r.push(a))}),this.visibleColsService.refresh(t,!0),r.length&&this.eventDispatcher.groupOpened(r),this.columnAnimationService.finish()}},Ali=class extends ct{constructor(){super(...arguments),this.beanName="columnViewportService",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={}}wireBeans(e){this.visibleColsService=e.visibleColsService,this.columnModel=e.columnModel,this.eventDispatcher=e.columnEventDispatcher}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(e,t,n=!1){const r=this.visibleColsService.isBodyWidthDirty();if(!(e===this.scrollWidth&&t===this.scrollPosition&&!r)){if(this.scrollWidth=e,this.scrollPosition=t,this.visibleColsService.setBodyWidthDirty(),this.gos.get("enableRtl")){const o=this.visibleColsService.getBodyContainerWidth();this.viewportLeft=o-this.scrollPosition-this.scrollWidth,this.viewportRight=o-this.scrollPosition}else this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition;this.columnModel.isReady()&&this.checkViewportColumns(n)}}getHeadersToRender(e,t){let n;switch(e){case"left":n=this.rowsOfHeadersToRenderLeft[t];break;case"right":n=this.rowsOfHeadersToRenderRight[t];break;default:n=this.rowsOfHeadersToRenderCenter[t];break}return n||[]}extractViewportColumns(){const e=this.visibleColsService.getCenterCols();this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return e.isAutoHeaderHeight()||this.isAnyParentAutoHeaderHeight(e)?!0:this.isColumnInRowViewport(e)}isAnyParentAutoHeaderHeight(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,n=t+e.getActualWidth(),r=this.viewportLeft-200,i=this.viewportRight+200,o=t<r&&n<r,s=t>i&&n>i;return!o&&!s}getViewportColumns(){const e=this.visibleColsService.getLeftCols(),t=this.visibleColsService.getRightCols();return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.columnModel.isColSpanActive())return this.colsWithinViewport;const t=i=>{const o=i.getLeft();return zt(o)&&o>this.viewportLeft},n=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),r=this.visibleColsService.getColsCenter();return this.visibleColsService.getColsForRow(e,r,n,t)}checkViewportColumns(e=!1){this.extractViewport()&&this.eventDispatcher.virtualColumnsChanged(e)}calculateHeaderRows(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={};const e={},t=this.visibleColsService.getLeftCols(),n=this.visibleColsService.getRightCols();this.headerColsWithinViewport.concat(t).concat(n).forEach(o=>e[o.getId()]=!0);const i=(o,s,a)=>{let l=!1;for(let c=0;c<o.length;c++){const u=o[c];let f=!1;if(km(u))f=e[u.getId()]===!0;else{const g=u.getDisplayedChildren();g&&(f=i(g,s,a+1))}f&&(l=!0,s[a]||(s[a]=[]),s[a].push(u))}return l};i(this.visibleColsService.getTreeLeft(),this.rowsOfHeadersToRenderLeft,0),i(this.visibleColsService.getTreeRight(),this.rowsOfHeadersToRenderRight,0),i(this.visibleColsService.getTreeCenter(),this.rowsOfHeadersToRenderCenter,0)}extractViewport(){const e=r=>`${r.getId()}-${r.getPinned()||"normal"}`;this.extractViewportColumns();const t=this.getViewportColumns().map(e).join("#"),n=this.colsWithinViewportHash!==t;return n&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),n}},Dli=class extends ct{constructor(){super(...arguments),this.beanName="agComponentUtils"}wireBeans(e){this.componentMetadataProvider=e.componentMetadataProvider}adaptFunction(e,t){const n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null}adaptCellRendererFunction(e){class t{refresh(){return!1}getGui(){return this.eGui}init(r){const i=e(r),o=typeof i;if(o==="string"||o==="number"||o==="boolean"){this.eGui=lu("<span>"+i+"</span>");return}if(i==null){this.eGui=lu("<span></span>");return}this.eGui=i}}return t}doesImplementIComponent(e){return e?e.prototype&&"getGui"in e.prototype:!1}},Lli=class extends ct{constructor(){super(...arguments),this.beanName="componentMetadataProvider"}wireBeans(e){this.agComponentUtils=e.agComponentUtils}postConstruct(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","onParamsUpdated","refresh"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},dragAndDropImageComponent:{mandatoryMethodList:["setIcon","setLabel"],optionalMethodList:[]},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached","onParamsUpdated","refresh"]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["refresh"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","getState"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]},menuItem:{mandatoryMethodList:[],optionalMethodList:["setActive","select","setExpanded","configureDefaults"]}}}retrieve(e){return this.componentMetaData[e]}},Fli=["rowPositionUtils","cellPositionUtils","headerPositionUtils","paginationAutoPageSizeService","apiFunctionService","gridApi","userComponentRegistry","agComponentUtils","componentMetadataProvider","resizeObserverService","userComponentFactory","rowContainerHeightService","horizontalResizeService","localeService","validationService","pinnedRowModel","dragService","visibleColsService","eventService","gos","popupService","selectionService","columnFilterService","quickFilterService","filterManager","columnModel","headerNavigationService","pageBoundsService","paginationService","pageBoundsListener","rowRenderer","expressionService","columnFactory","alignedGridsService","navigationService","valueCache","valueService","loggerFactory","autoWidthCalculator","filterMenuFactory","dragAndDropService","focusService","mouseEventService","environment","cellNavigationService","stylingService","scrollVisibleService","sortController","columnHoverService","columnAnimationService","selectableService","autoColService","controlsColService","changeDetectionService","animationFrameService","undoRedoService","columnDefFactory","rowCssClassCalculator","rowNodeBlockLoader","rowNodeSorter","ctrlsService","pinnedWidthService","rowNodeEventThrottle","ctrlsFactory","dataTypeService","syncService","overlayService","stateService","expansionService","apiEventService","ariaAnnouncementService","menuService","columnApplyStateService","columnEventDispatcher","columnMoveService","columnAutosizeService","columnGetStateService","columnGroupStateService","columnSizeService","funcColsService","columnNameService","columnViewportService","pivotResultColsService","showRowGroupColsService"],MLe=Object.fromEntries(Fli.map((e,t)=>[e,t]));function Nli(e,t){const n=(e.beanName?MLe[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,r=(t.beanName?MLe[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return n-r}function kli(e,t){return(e==null?void 0:e.beanName)==="gridDestroyService"?-1:0}var zli=class extends ct{constructor(){super(...arguments),this.beanName="ctrlsFactory",this.registry={}}register(e){this.registry[e.name]=e.classImp}getInstance(e,...t){const n=this.registry[e];if(n!=null)return new n(...t)}},Bli=class extends ct{constructor(){super(...arguments),this.beanName="ctrlsService",this.params={gridCtrl:void 0,gridBodyCtrl:void 0,center:void 0,left:void 0,right:void 0,bottomCenter:void 0,bottomLeft:void 0,bottomRight:void 0,topCenter:void 0,topLeft:void 0,topRight:void 0,stickyTopCenter:void 0,stickyTopLeft:void 0,stickyTopRight:void 0,stickyBottomCenter:void 0,stickyBottomLeft:void 0,stickyBottomRight:void 0,fakeHScrollComp:void 0,fakeVScrollComp:void 0,gridHeaderCtrl:void 0,centerHeader:void 0,leftHeader:void 0,rightHeader:void 0},this.ready=!1,this.readyCallbacks=[],this.runReadyCallbacksAsync=!1}wireBeans(e){var t,n;this.runReadyCallbacksAsync=((n=(t=e.frameworkOverrides).runWhenReadyAsync)==null?void 0:n.call(t))??!1}postConstruct(){this.addEventListener("ready",()=>{this.updateReady(),this.ready&&(this.readyCallbacks.forEach(e=>e(this.params)),this.readyCallbacks.length=0)},this.runReadyCallbacksAsync)}updateReady(){this.ready=Object.values(this.params).every(e=>(e==null?void 0:e.isAlive())??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const n=this.readyCallbacks.indexOf(t);n>=0&&this.readyCallbacks.splice(n,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:n}=this.params;return[e,n,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}},Hli=class extends ct{constructor(){super(...arguments),this.beanName="cellPositionUtils"}createId(e){const{rowIndex:t,rowPinned:n,column:r}=e;return this.createIdFromValues({rowIndex:t,column:r,rowPinned:n})}createIdFromValues(e){const{rowIndex:t,rowPinned:n,column:r}=e;return`${t}.${n??"null"}.${r.getId()}`}equals(e,t){const n=e.column===t.column,r=e.rowPinned===t.rowPinned,i=e.rowIndex===t.rowIndex;return n&&r&&i}},jli=class extends ct{constructor(){super(...arguments),this.beanName="rowNodeEventThrottle",this.events=[]}wireBeans(e){this.animationFrameService=e.animationFrameService,this.rowModel=e.rowModel}postConstruct(){Li(this.gos)&&(this.clientSideRowModel=this.rowModel)}dispatchExpanded(e,t){if(this.clientSideRowModel==null){this.eventService.dispatchEvent(e);return}this.events.push(e);const n=()=>{this.clientSideRowModel&&this.clientSideRowModel.onRowGroupOpened(),this.events.forEach(r=>this.eventService.dispatchEvent(r)),this.events=[]};t?n():(this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(n)),this.dispatchExpandedDebounced())}},Vli=class extends ct{constructor(){super(...arguments),this.beanName="rowPositionUtils"}wireBeans(e){this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel,this.pageBoundsService=e.pageBoundsService}getFirstRow(){let e=0,t;return this.pinnedRowModel.getPinnedTopRowCount()?t="top":this.rowModel.getRowCount()?(t=null,e=this.pageBoundsService.getFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t="bottom"),t===void 0?null:{rowIndex:e,rowPinned:t}}getLastRow(){let e,t=null;const n=this.pinnedRowModel.getPinnedBottomRowCount(),r=this.pinnedRowModel.getPinnedTopRowCount();return n?(t="bottom",e=n-1):this.rowModel.getRowCount()?(t=null,e=this.pageBoundsService.getLastRow()):r&&(t="top",e=r-1),e===void 0?null:{rowIndex:e,rowPinned:t}}getRowNode(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRow(e.rowIndex);case"bottom":return this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);default:return this.rowModel.getRow(e.rowIndex)}}sameRow(e,t){return!e&&!t?!0:e&&!t||!e&&t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}before(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(zt(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}},PLe={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},_Le={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},ALe={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},Gli=class extends ct{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.ancestorThemeClasses=[],this.sizesMeasured=!1,this.gridTheme=null}wireBeans(e){this.resizeObserverService=e.resizeObserverService,this.eGridDiv=e.eGridDiv}postConstruct(){this.addManagedPropertyListener("theme",()=>this.handleThemeGridOptionChange()),this.handleThemeGridOptionChange(),this.addDestroyFunc(()=>this.stopUsingTheme()),this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.ancestorThemeClasses=this.readAncestorThemeClasses(),this.setUpThemeClassObservers(),this.getSizeEl(PLe),this.getSizeEl(_Le),this.getSizeEl(ALe)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(PLe)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(_Le)}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(ALe)}hasMeasuredSizes(){return this.sizesMeasured}getGridThemeClass(){var e;return((e=this.gridTheme)==null?void 0:e.getCssClass())||null}getThemeClasses(){return this.gridTheme?[this.gridTheme.getCssClass()]:this.ancestorThemeClasses}applyThemeClasses(e){const t=this.getThemeClasses();for(const n of Array.from(e.classList))n.startsWith("ag-theme-")&&!t.includes(n)&&e.classList.remove(n);e.classList.add(...t)}refreshRowHeightVariable(){const e=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),t=this.gos.get("rowHeight");if(t==null||isNaN(t)||!isFinite(t))return e!==null&&this.eGridDiv.style.setProperty("--ag-line-height",null),-1;const n=`${t}px`;return e!=n?(this.eGridDiv.style.setProperty("--ag-line-height",n),t):e!=""?parseFloat(e):-1}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const n=this.measureSizeEl(e);return n==="detached"||n==="no-styles"?e.defaultValue:(this.lastKnownValues.set(e,n),n)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const n=t.offsetWidth;return n===DLe?"no-styles":(this.sizesMeasured=!0,n)}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;let n=this.eMeasurementContainer;n||(n=this.eMeasurementContainer=document.createElement("div"),n.className="ag-measurement-container",this.gos.get("theme")&&this.applyThemeClasses(n),this.eGridDiv.appendChild(n)),t=document.createElement("div"),t.style.width=`var(${e.cssName}, ${DLe}px)`,n.appendChild(t),this.sizeEls.set(e,t);let r=this.measureSizeEl(e);r==="no-styles"&&rt(`no value for ${e.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e.defaultValue} will be used and updated when styles load.`);const i=this.resizeObserverService.observeResize(t,()=>{const o=this.measureSizeEl(e);o==="detached"||o==="no-styles"||(this.lastKnownValues.set(e,o),o!==r&&(r=o,this.fireGridStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>i()),t}fireGridStylesChangedEvent(e){this.eventService.dispatchEvent({type:"gridStylesChanged",[e]:!0})}setUpThemeClassObservers(){const e=new MutationObserver(()=>{const n=this.readAncestorThemeClasses();Wli(n,this.ancestorThemeClasses)||(this.ancestorThemeClasses=n,this.fireGridStylesChangedEvent("themeChanged"))});let t=this.eGridDiv;for(;t;)e.observe(t||this.eGridDiv,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement;this.addDestroyFunc(()=>e.disconnect())}readAncestorThemeClasses(){let e=this.eGridDiv;const t=[];for(;e;){const n=Array.from(e.classList).filter(r=>r.startsWith("ag-theme-"));for(const r of n)t.includes(r)||t.unshift(r);e=e.parentElement}return Object.freeze(t)}handleThemeGridOptionChange(){const{gos:e,eMeasurementContainer:t,gridTheme:n}=this,r=e.get("theme")||null;r!==n&&(n==null||n.stopUse(),this.gridTheme=r,r==null||r.startUse({loadThemeGoogleFonts:e.get("loadThemeGoogleFonts"),container:this.eGridDiv}),t&&this.applyThemeClasses(t),this.fireGridStylesChangedEvent("themeChanged"))}stopUsingTheme(){var e;(e=this.gridTheme)==null||e.stopUse(),this.gridTheme=null}},Wli=(e,t)=>e.length===t.length&&e.findIndex((n,r)=>e[r]!==t[r])===-1,DLe=15538,Uli=class extends ct{constructor(){super(...arguments),this.beanName="eventService",this.globalEventService=new s6}wireBeans(e){this.globalEventListener=e.globalEventListener,this.globalSyncEventListener=e.globalSyncEventListener}postConstruct(){if(this.globalEventListener){const e=mH(this.gos);this.addGlobalListener(this.globalEventListener,e)}this.globalSyncEventListener&&this.addGlobalListener(this.globalSyncEventListener,!1)}addEventListener(e,t,n){this.globalEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.globalEventService.removeEventListener(e,t,n)}addGlobalListener(e,t=!1){this.globalEventService.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalEventService.removeGlobalListener(e,t)}dispatchLocalEvent(){}dispatchEvent(e){this.globalEventService.dispatchEvent(this.gos.addGridCommonParams(e))}dispatchEventOnce(e){this.globalEventService.dispatchEventOnce(this.gos.addGridCommonParams(e))}},l6e=class sf extends ct{constructor(){super(...arguments),this.beanName="focusService"}wireBeans(t){this.eGridDiv=t.eGridDiv,this.columnModel=t.columnModel,this.visibleColsService=t.visibleColsService,this.headerNavigationService=t.headerNavigationService,this.headerPositionUtils=t.headerPositionUtils,this.rowRenderer=t.rowRenderer,this.rowPositionUtils=t.rowPositionUtils,this.cellPositionUtils=t.cellPositionUtils,this.navigationService=t.navigationService,this.ctrlsService=t.ctrlsService,this.filterManager=t.filterManager,this.rangeService=t.rangeService,this.advancedFilterService=t.advancedFilterService,this.overlayService=t.overlayService}static addKeyboardModeEvents(t){this.instanceCount>0||(t.addEventListener("keydown",sf.toggleKeyboardMode),t.addEventListener("mousedown",sf.toggleKeyboardMode))}static removeKeyboardModeEvents(t){this.instanceCount>0||(t.removeEventListener("keydown",sf.toggleKeyboardMode),t.removeEventListener("mousedown",sf.toggleKeyboardMode))}static toggleKeyboardMode(t){const n=sf.keyboardModeActive,r=t.type==="keydown";r&&(t.ctrlKey||t.metaKey||t.altKey)||n!==r&&(sf.keyboardModeActive=r)}postConstruct(){const t=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:t,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:t,columnRowGroupChanged:t}),this.registerKeyboardFocusEvents(),this.ctrlsService.whenReady(this,n=>{this.gridCtrl=n.gridCtrl})}registerKeyboardFocusEvents(){const t=uo(this.gos);sf.addKeyboardModeEvents(t),sf.instanceCount++,this.addDestroyFunc(()=>{sf.instanceCount--,sf.removeKeyboardModeEvents(t)})}onColumnEverythingChanged(){if(!this.focusedCellPosition)return;const t=this.focusedCellPosition.column,n=this.columnModel.getCol(t.getId());t!==n&&this.clearFocusedCell()}isKeyboardMode(){return sf.keyboardModeActive}getFocusCellToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(gi(this.gos),pC.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(gi(this.gos),QQ.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition}isDomDataMissingInHierarchy(t,n){let r=t;for(;r;){if(mI(this.gos,r,n))return!1;r=r.parentNode}return!0}getFocusedCell(){return this.focusedCellPosition}shouldRestoreFocus(t){return this.isCellRestoreFocused(t)?(setTimeout(()=>{this.restoredFocusedCellPosition=null},0),!0):!1}clearRestoreFocus(){this.restoredFocusedCellPosition=null,this.awaitRestoreFocusedCell=!1}restoreFocusedCell(t,n){this.awaitRestoreFocusedCell=!0,setTimeout(()=>{this.awaitRestoreFocusedCell&&(this.setRestoreFocusedCell(t),n())})}isCellRestoreFocused(t){return this.restoredFocusedCellPosition==null?!1:this.cellPositionUtils.equals(t,this.restoredFocusedCellPosition)}setRestoreFocusedCell(t){this.getFrameworkOverrides().renderingEngine==="react"&&(this.restoredFocusedCellPosition=t)}getFocusEventParams(t){const{rowIndex:n,rowPinned:r,column:i}=t,o={rowIndex:n,rowPinned:r,column:i,isFullWidthCell:!1},s=this.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:r});return s&&(o.isFullWidthCell=s.isFullWidth()),o}clearFocusedCell(){if(this.restoredFocusedCellPosition=null,this.focusedCellPosition==null)return;const t=this.getFocusEventParams(this.focusedCellPosition);this.focusedCellPosition=null,this.eventService.dispatchEvent({type:"cellFocusCleared",...t})}setFocusedCell(t){const{column:n,rowIndex:r,rowPinned:i,forceBrowserFocus:o=!1,preventScrollOnBrowserFocus:s=!1}=t,a=this.columnModel.getCol(n);if(!a){this.focusedCellPosition=null;return}this.focusedCellPosition={rowIndex:r,rowPinned:Da(i),column:a},this.eventService.dispatchEvent({type:"cellFocused",...this.getFocusEventParams(this.focusedCellPosition),forceBrowserFocus:o,preventScrollOnBrowserFocus:s})}isCellFocused(t){return this.focusedCellPosition==null?!1:this.cellPositionUtils.equals(t,this.focusedCellPosition)}isRowNodeFocused(t){return this.isRowFocused(t.rowIndex,t.rowPinned)}isHeaderWrapperFocused(t){if(this.focusedHeaderPosition==null)return!1;const n=t.getColumnGroupChild(),r=t.getRowIndex(),i=t.getPinned(),{column:o,headerRowIndex:s}=this.focusedHeaderPosition;return n===o&&r===s&&i==o.getPinned()}clearFocusedHeader(){this.focusedHeaderPosition=null}getFocusedHeader(){return this.focusedHeaderPosition}setFocusedHeader(t,n){this.focusedHeaderPosition={headerRowIndex:t,column:n}}isHeaderFocusSuppressed(){return this.gos.get("suppressHeaderFocus")||this.overlayService.isExclusive()}isCellFocusSuppressed(){return this.gos.get("suppressCellFocus")||this.overlayService.isExclusive()}focusHeaderPosition(t){var c;if(this.isHeaderFocusSuppressed())return!1;const{direction:n,fromTab:r,allowUserOverride:i,event:o,fromCell:s,rowWithoutSpanValue:a}=t;let{headerPosition:l}=t;if(s&&((c=this.filterManager)!=null&&c.isAdvancedFilterHeaderActive()))return this.focusAdvancedFilter(l);if(i){const u=this.getFocusedHeader(),f=this.headerNavigationService.getHeaderRowCount();if(r){const h=this.gos.getCallback("tabToNextHeader");h&&(l=this.getHeaderPositionFromUserFunc({userFunc:h,direction:n,currentPosition:u,headerPosition:l,headerRowCount:f}))}else{const h=this.gos.getCallback("navigateToNextHeader");if(h&&o){const g={key:o.key,previousHeaderPosition:u,nextHeaderPosition:l,headerRowCount:f,event:o};l=h(g)}}}return l?this.focusProvidedHeaderPosition({headerPosition:l,direction:n,event:o,fromCell:s,rowWithoutSpanValue:a}):!1}focusHeaderPositionFromUserFunc(t){if(this.isHeaderFocusSuppressed())return!1;const{userFunc:n,headerPosition:r,direction:i,event:o}=t,s=this.getFocusedHeader(),a=this.headerNavigationService.getHeaderRowCount(),l=this.getHeaderPositionFromUserFunc({userFunc:n,direction:i,currentPosition:s,headerPosition:r,headerRowCount:a});return!!l&&this.focusProvidedHeaderPosition({headerPosition:l,direction:i,event:o})}getHeaderPositionFromUserFunc(t){const{userFunc:n,direction:r,currentPosition:i,headerPosition:o,headerRowCount:s}=t,l=n({backwards:r==="Before",previousHeaderPosition:i,nextHeaderPosition:o,headerRowCount:s});return l===!0||l===null?(l===null&&rt("Since v31.3 Returning `null` from tabToNextHeader is deprecated. Return `true` to stay on the current header, or `false` to let the browser handle the tab behaviour."),i):l===!1?null:l}focusProvidedHeaderPosition(t){var f;const{headerPosition:n,direction:r,fromCell:i,rowWithoutSpanValue:o,event:s}=t,{column:a,headerRowIndex:l}=n;if(l===-1)return(f=this.filterManager)!=null&&f.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(n):this.focusGridView(a);this.headerNavigationService.scrollToColumn(a,r);const c=this.ctrlsService.getHeaderRowContainerCtrl(a.getPinned()),u=(c==null?void 0:c.focusHeader(n.headerRowIndex,a,s))||!1;return u&&(o!=null||i)&&this.headerNavigationService.setCurrentHeaderRowWithoutSpan(o??-1),u}focusFirstHeader(){if(this.overlayService.isExclusive()&&this.focusOverlay())return!0;let t=this.visibleColsService.getAllCols()[0];if(!t)return!1;t.getParent()&&(t=this.visibleColsService.getColGroupAtLevel(t,0));const n=this.headerPositionUtils.getHeaderIndexToFocus(t,0);return this.focusHeaderPosition({headerPosition:n,rowWithoutSpanValue:0})}focusLastHeader(t){if(this.overlayService.isExclusive()&&this.focusOverlay(!0))return!0;const n=this.headerNavigationService.getHeaderRowCount()-1,r=Dn(this.visibleColsService.getAllCols());return this.focusHeaderPosition({headerPosition:{headerRowIndex:n,column:r},rowWithoutSpanValue:-1,event:t})}focusPreviousFromFirstCell(t){var n;return(n=this.filterManager)!=null&&n.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(t)}isAnyCellFocused(){return!!this.focusedCellPosition}isRowFocused(t,n){return this.focusedCellPosition==null?!1:this.focusedCellPosition.rowIndex===t&&this.focusedCellPosition.rowPinned===Da(n)}findFocusableElements(t,n,r=!1){const i=jri;let o=gft;n&&(o+=", "+n),r&&(o+=', [tabindex="-1"]');const s=Array.prototype.slice.apply(t.querySelectorAll(i)).filter(c=>Su(c)),a=Array.prototype.slice.apply(t.querySelectorAll(o));return a.length?((c,u)=>c.filter(f=>u.indexOf(f)===-1))(s,a):s}focusInto(t,n=!1,r=!1){const i=this.findFocusableElements(t,null,r),o=n?Dn(i):i[0];return o?(o.focus({preventScroll:!0}),!0):!1}findFocusableElementBeforeTabGuard(t,n){if(!n)return null;const r=this.findFocusableElements(t),i=r.indexOf(n);if(i===-1)return null;let o=-1;for(let s=i-1;s>=0;s--)if(r[s].classList.contains("ag-tab-guard-top")){o=s;break}return o<=0?null:r[o-1]}findNextFocusableElement(t=this.eGridDiv,n,r){const i=this.findFocusableElements(t,n?':not([tabindex="-1"])':null),o=gi(this.gos);let s;n?s=i.findIndex(l=>l.contains(o)):s=i.indexOf(o);const a=s+(r?-1:1);return a<0||a>=i.length?null:i[a]}isTargetUnderManagedComponent(t,n){if(!n)return!1;const r=t.querySelectorAll(`.${Rv.FOCUS_MANAGED_CLASS}`);if(!r.length)return!1;for(let i=0;i<r.length;i++)if(r[i].contains(n))return!0;return!1}findTabbableParent(t,n=5){let r=0;for(;t&&afe(t)===null&&++r<=n;)t=t.parentElement;return afe(t)===null?null:t}focusOverlay(t){var r;const n=this.overlayService.isVisible()&&((r=this.overlayService.getOverlayWrapper())==null?void 0:r.getGui());return!!n&&this.focusInto(n,t)}focusGridViewFailed(t,n){return n&&this.focusOverlay(t)||t&&this.focusLastHeader()}focusGridView(t,n=!1,r=!0){var o,s;if(this.overlayService.isExclusive())return r&&this.focusOverlay(n);if(this.isCellFocusSuppressed())return n&&!this.isHeaderFocusSuppressed()?this.focusLastHeader():r&&this.focusOverlay(n)?!0:this.focusNextGridCoreContainer(!1);const i=n?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(i){const{rowIndex:a,rowPinned:l}=i;if(t??(t=(o=this.getFocusedHeader())==null?void 0:o.column),t&&a!==void 0&&a!==null){if(this.navigationService.ensureCellVisible({rowIndex:a,column:t,rowPinned:l}),n){const c=this.rowRenderer.getRowByPosition(i);if(c!=null&&c.isFullWidth()&&this.navigationService.tryToFocusFullWidthRow(i,n))return!0}return this.setFocusedCell({rowIndex:a,column:t,rowPinned:Da(l),forceBrowserFocus:!0}),(s=this.rangeService)==null||s.setRangeToCell({rowIndex:a,rowPinned:l,column:t}),!0}}return!!(r&&this.focusOverlay(n)||n&&this.focusLastHeader())}isGridFocused(){const t=gi(this.gos);return!!t&&this.eGridDiv.contains(t)}focusNextGridCoreContainer(t,n=!1){return!n&&this.gridCtrl.focusNextInnerContainer(t)?!0:((n||!t&&!this.gridCtrl.isDetailGrid())&&this.gridCtrl.forceFocusOutOfContainer(t),!1)}focusAdvancedFilter(t){var n;return this.advancedFilterFocusColumn=t==null?void 0:t.column,((n=this.advancedFilterService)==null?void 0:n.getCtrl().focusHeaderComp())??!1}focusNextFromAdvancedFilter(t,n){var i;const r=(n?void 0:this.advancedFilterFocusColumn)??((i=this.visibleColsService.getAllCols())==null?void 0:i[0]);return t?this.focusHeaderPosition({headerPosition:{column:r,headerRowIndex:this.headerNavigationService.getHeaderRowCount()-1}}):this.focusGridView(r)}clearAdvancedFilterColumn(){this.advancedFilterFocusColumn=void 0}addFocusableContainer(t){this.gridCtrl.addFocusableContainer(t)}removeFocusableContainer(t){this.gridCtrl.removeFocusableContainer(t)}focusGridInnerElement(t){return this.gridCtrl.focusInnerElement(t)}allowFocusForNextGridCoreContainer(t){this.gridCtrl.allowFocusForNextCoreContainer(t)}};l6e.keyboardModeActive=!1;l6e.instanceCount=0;var qli=l6e,Kli=class extends ct{constructor(){super(...arguments),this.beanName="pinnedWidthService"}wireBeans(e){this.visibleColsService=e.visibleColsService}postConstruct(){const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const e=La(this.gos,"print"),t=e?0:this.visibleColsService.getColsLeftWidth(),n=e?0:this.visibleColsService.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:"leftPinnedWidthChanged"})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:"rightPinnedWidthChanged"}))}getPinnedRightWidth(){return this.rightWidth}getPinnedLeftWidth(){return this.leftWidth}},kht=class extends ct{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}wireBeans(e){this.beans=e,this.focusService=e.focusService,this.visibleColsService=e.visibleColsService}setComp(e,t,n){this.view=e,this.eGridHostDiv=t,this.eGui=n,this.eGui.setAttribute("grid-id",this.beans.context.getGridId());const{dragAndDropService:r,mouseEventService:i,ctrlsService:o,resizeObserverService:s}=this.beans,a={getContainer:()=>this.eGui,isInterestedIn:c=>c===1||c===0,getIconName:()=>"notAllowed"};r.addDropTarget(a),this.addDestroyFunc(()=>r.removeDropTarget(a)),i.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new a6e(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr"),this.updateGridThemeClass(),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)});const l=s.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>l()),o.register("gridCtrl",this)}isDetailGrid(){var t;const e=this.focusService.findTabbableParent(this.getGui());return((t=e==null?void 0:e.getAttribute("row-id"))==null?void 0:t.startsWith("detail"))||!1}getOptionalSelectors(){var t,n,r,i,o;const e=this.beans;return{paginationSelector:(t=e.paginationService)==null?void 0:t.getPaginationSelector(),gridHeaderDropZonesSelector:(n=e.columnDropZonesService)==null?void 0:n.getDropZoneSelector(),sideBarSelector:(r=e.sideBarService)==null?void 0:r.getSideBarSelector(),statusBarSelector:(i=e.statusBarService)==null?void 0:i.getStatusPanelSelector(),watermarkSelector:(o=e.licenseManager)==null?void 0:o.getWatermarkSelector()}}onGridSizeChanged(){this.eventService.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){this.view.setCursor(e?"ew-resize":null)}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:n,nextIndex:r}=this.getNextFocusableIndex(t,e);if(r<0||r>=t.length)return!1;if(r===0){if(n>0){const i=this.visibleColsService.getAllCols(),o=Dn(i);if(this.focusService.focusGridView(o,!0))return!0}return!1}return this.focusContainer(t[r],e)}focusInnerElement(e){const t=this.gos.getCallback("focusGridInnerElement");if(t&&t({fromBottom:!!e}))return!0;const n=this.getFocusableContainers(),r=this.visibleColsService.getAllCols();if(e){if(n.length>1)return this.focusContainer(Dn(n),!0);const i=Dn(r);if(this.focusService.focusGridView(i,!0))return!0}if(this.gos.get("headerHeight")===0||this.focusService.isHeaderFocusSuppressed()){if(this.focusService.focusGridView(r[0]))return!0;for(let i=1;i<n.length;i++)if(this.focusService.focusInto(n[i].getGui()))return!0;return!1}return this.focusService.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){var o;const t=this.view.getFocusableContainers(),{nextIndex:n,indexWithFocus:r}=this.getNextFocusableIndex(t,e);if(r===-1||n<0||n>=t.length)return;const i=t[n];(o=i.setAllowFocus)==null||o.call(i,!0),setTimeout(()=>{var s;(s=i.setAllowFocus)==null||s.call(i,!1)})}getNextFocusableIndex(e,t){const n=gi(this.gos),r=e.findIndex(o=>o.getGui().contains(n)),i=r+(t?-1:1);return{indexWithFocus:r,nextIndex:i}}focusContainer(e,t){var r,i;(r=e.setAllowFocus)==null||r.call(e,!0);const n=this.focusService.focusInto(e.getGui(),t);return(i=e.setAllowFocus)==null||i.call(e,!1),n}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}updateGridThemeClass(){const e=this.beans.environment.getGridThemeClass();e&&this.view.setGridThemeClass(e)}handleThemeChange(e){e.themeChanged&&this.updateGridThemeClass()}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},Yli=class extends kb{constructor(t){super(),this.gridBody=Ot,this.sideBar=Ot,this.pagination=Ot,this.rootWrapperBody=Ot,this.eGridDiv=t}postConstruct(){const t={destroyGridUi:()=>this.destroyBean(this),setRtlClass:s=>this.addCssClass(s),setGridThemeClass:s=>this.addCssClass(s),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:s=>{this.getGui().style.userSelect=s??"",this.getGui().style.webkitUserSelect=s??""},setCursor:s=>{this.getGui().style.cursor=s??""}},n=this.createManagedBean(new kht),r=n.getOptionalSelectors(),i=this.createTemplate(r),o=[Cai,...Object.values(r).filter(s=>!!s)];this.setTemplate(i,o),n.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:s=>n.focusInnerElement(s),forceFocusOutWhenTabGuardsAreEmpty:!0})}insertGridIntoDom(){const t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc(()=>{this.eGridDiv.removeChild(t),this.gos.get("debug")&&mg("Grid removed from DOM")})}updateLayoutClasses(t,n){const r=this.rootWrapperBody.classList;r.toggle("ag-layout-auto-height",n.autoHeight),r.toggle("ag-layout-normal",n.normal),r.toggle("ag-layout-print",n.print),this.addOrRemoveCssClass("ag-layout-auto-height",n.autoHeight),this.addOrRemoveCssClass("ag-layout-normal",n.normal),this.addOrRemoveCssClass("ag-layout-print",n.print)}createTemplate(t){const n=t.gridHeaderDropZonesSelector?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",r=t.sideBarSelector?'<ag-side-bar data-ref="sideBar"></ag-side-bar>':"",i=t.statusBarSelector?"<ag-status-bar></ag-status-bar>":"",o=t.watermarkSelector?"<ag-watermark></ag-watermark>":"",s=t.paginationSelector?'<ag-pagination data-ref="pagination"></ag-pagination>':"";return`<div class="ag-root-wrapper" role="presentation">
|
||
${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}
|
||
</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.resetColumnState("api")}function dci(e){return e.columnGroupStateService.getColumnGroupState()}function fci(e,t){e.columnGroupStateService.setColumnGroupState(t,"api")}function hci(e){e.columnGroupStateService.resetColumnGroupState("api")}function gci(e){return e.visibleColsService.isPinningLeft()||e.visibleColsService.isPinningRight()}function pci(e){return e.visibleColsService.isPinningLeft()}function mci(e){return e.visibleColsService.isPinningRight()}function vci(e,t){return e.visibleColsService.getColAfter(t)}function Cci(e,t){return e.visibleColsService.getColBefore(t)}function yci(e,t,n){e.columnModel.setColsVisible([t],n,"api")}function bci(e,t,n){e.columnModel.setColsVisible(t,n,"api")}function Sci(e,t,n){e.columnModel.setColsPinned([t],n,"api")}function wci(e,t,n){e.columnModel.setColsPinned(t,n,"api")}function xci(e){return e.columnModel.getCols()}function Eci(e){return e.visibleColsService.getLeftCols()}function Rci(e){return e.visibleColsService.getCenterCols()}function $ci(e){return e.visibleColsService.getRightCols()}function Oci(e){return e.visibleColsService.getAllCols()}function Tci(e){return e.columnViewportService.getViewportColumns()}function Ici(e,t,n){e.columnMoveService.moveColumns([t],n,"api")}function Mci(e,t,n){e.columnMoveService.moveColumnByIndex(t,n,"api")}function Pci(e,t,n){e.columnMoveService.moveColumns(t,n,"api")}function _ci(e,t,n,r=!0,i="api"){e.columnSizeService.setColumnWidths([{key:t,newWidth:n}],!1,r,i)}function Aci(e,t,n=!0,r="api"){e.columnSizeService.setColumnWidths(t,!1,n,r)}function Dci(e){return e.visibleColsService.getTreeLeft()}function Lci(e){return e.visibleColsService.getTreeCenter()}function Fci(e){return e.visibleColsService.getTreeRight()}function Nci(e){return e.visibleColsService.getAllTrees()}function kci(e,t,n){return e.columnAutosizeService.autoSizeCols({colKeys:[t],skipHeader:n,source:"api"})}function zci(e,t,n){e.columnAutosizeService.autoSizeCols({colKeys:t,skipHeader:n,source:"api"})}function Bci(e,t){e.columnAutosizeService.autoSizeAllColumns("api",t)}var Hci=class extends ct{constructor(){super(...arguments),this.beanName="dataTypeService",this.dataTypeDefinitions={},this.isWaitingForRowData=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}wireBeans(e){this.rowModel=e.rowModel,this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.valueService=e.valueService,this.columnApplyStateService=e.columnApplyStateService,this.filterManager=e.filterManager}postConstruct(){this.groupHideOpenParents=this.gos.get("groupHideOpenParents"),this.addManagedPropertyListener("groupHideOpenParents",()=>{this.groupHideOpenParents=this.gos.get("groupHideOpenParents")}),this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.columnModel.recreateColumnDefs(y8(e.source))})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes();this.dataTypeDefinitions={},this.formatValueFuncs={};const t=r=>i=>{const{column:o,node:s,value:a}=i;let l=o.getColDef().valueFormatter;return l===r.groupSafeValueFormatter&&(l=r.valueFormatter),this.valueService.formatValue(o,s,a,l)};Object.entries(e).forEach(([r,i])=>{const o={...i,groupSafeValueFormatter:this.createGroupSafeValueFormatter(i)};this.dataTypeDefinitions[r]=o,this.formatValueFuncs[r]=t(o)});const n=this.gos.get("dataTypeDefinitions")??{};this.dataTypeMatchers={},Object.entries(n).forEach(([r,i])=>{const o=this.processDataTypeDefinition(i,n,[r],e);o&&(this.dataTypeDefinitions[r]=o,i.dataTypeMatcher&&(this.dataTypeMatchers[r]=i.dataTypeMatcher),this.formatValueFuncs[r]=t(o))}),this.checkObjectValueHandlers(e),["dateString","text","number","boolean","date"].forEach(r=>{const i=this.dataTypeMatchers[r];i&&delete this.dataTypeMatchers[r],this.dataTypeMatchers[r]=i??e[r].dataTypeMatcher})}mergeDataTypeDefinitions(e,t){const n={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(n.columnTypes=[...uk(e.columnTypes),...uk(t.columnTypes)]),n}processDataTypeDefinition(e,t,n,r){let i;const o=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let s=r[o];const a=t[o];if(s&&a&&(s=a),!this.validateDataTypeDefinition(e,s,o))return;i=this.mergeDataTypeDefinitions(s,e)}else{if(n.includes(o)){rt('Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.');return}const s=t[o];if(!this.validateDataTypeDefinition(e,s,o))return;const a=this.processDataTypeDefinition(s,t,[...n,o],r);if(!a)return;i=this.mergeDataTypeDefinitions(a,e)}return{...i,groupSafeValueFormatter:this.createGroupSafeValueFormatter(i)}}validateDataTypeDefinition(e,t,n){return t?t.baseDataType!==e.baseDataType?(rt('The "baseDataType" property of a data type definition must match that of its parent.'),!1):!0:(rt(`The data type definition ${n} does not exist.`),!1)}createGroupSafeValueFormatter(e){if(e.valueFormatter)return t=>{var n,r;if((n=t.node)!=null&&n.group){const i=(t.colDef.pivotValueColumn??t.column).getAggFunc();if(i){if(i==="first"||i==="last")return e.valueFormatter(t);if(e.baseDataType==="number"&&i!=="count"){if(typeof t.value=="number")return e.valueFormatter(t);if(typeof t.value=="object"){if(!t.value)return;if("toNumber"in t.value)return e.valueFormatter({...t,value:t.value.toNumber()});if("value"in t.value)return e.valueFormatter({...t,value:t.value.value})}}return}if((this.gos.get("suppressGroupMaintainValueType")||this.gos.get("groupDisplayType")==="groupRows")&&!this.gos.get("treeData"))return}else if(this.groupHideOpenParents&&t.column.isRowGroupActive()&&typeof t.value=="string"&&!((r=e.dataTypeMatcher)!=null&&r.call(e,t.value)))return;return e.valueFormatter(t)}}updateColDefAndGetColumnType(e,t,n){let{cellDataType:r}=t;const{field:i}=t;if(r===void 0&&(r=e.cellDataType),(r==null||r===!0)&&(r=this.canInferCellDataType(e,t)?this.inferCellDataType(i,n):!1),!r){e.cellDataType=!1;return}const o=this.dataTypeDefinitions[r];if(!o){rt(`Missing data type definition - "${r}"`);return}return e.cellDataType=r,o.groupSafeValueFormatter&&(e.valueFormatter=o.groupSafeValueFormatter),o.valueParser&&(e.valueParser=o.valueParser),o.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,r,o,n),o.columnTypes}addColumnListeners(e){if(!this.isWaitingForRowData)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const n=r=>{t.add(r.key)};e.addEventListener("columnStateUpdated",n),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.removeEventListener("columnStateUpdated",n))}canInferCellDataType(e,t){if(!Li(this.gos))return!1;const n={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(this.doColDefPropsPreventInference(t,n))return!1;const r=t.type===null?e.type:t.type;if(r){const i=this.gos.get("columnTypes")??{};if(uk(r).some(s=>{const a=i[s.trim()];return a&&this.doColDefPropsPreventInference(a,n)}))return!1}return!this.doColDefPropsPreventInference(e,n)}doColDefPropsPreventInference(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([n,r])=>this.doesColDefPropPreventInference(e,t,n,r))}doesColDefPropPreventInference(e,t,n,r){if(!t[n])return!1;const i=e[n];return i===null?(t[n]=!1,!1):r===void 0?!!i:i===r}inferCellDataType(e,t){if(!e)return;let n;const r=this.getInitialData();if(r){const o=e.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");n=CO(r,e,o)}else this.initWaitForRowData(t);if(n==null)return;const[i]=Object.entries(this.dataTypeMatchers).find(([o,s])=>s(n))??["object"];return i}getInitialData(){const e=this.gos.get("rowData");if(e!=null&&e.length)return e[0];if(this.initialData)return this.initialData;{const t=this.rowModel.getRootNode().allLeafChildren;if(t!=null&&t.length)return t[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isWaitingForRowData)return;this.isWaitingForRowData=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions;t&&this.columnModel.queueResizeOperations();const[n]=this.addManagedEventListeners({rowDataUpdateStarted:r=>{const{firstRowData:i}=r;i&&(n==null||n(),this.isWaitingForRowData=!1,this.processColumnsPendingInference(i,t),this.columnStateUpdatesPendingInference={},t&&this.columnModel.processResizeOperations(),this.eventService.dispatchEvent({type:"dataTypesInferred"}))}})}isPendingInference(){return this.isWaitingForRowData}processColumnsPendingInference(e,t){this.initialData=e;const n=[];this.destroyColumnStateUpdateListeners();const r={},i={};Object.entries(this.columnStateUpdatesPendingInference).forEach(([o,s])=>{const a=this.columnModel.getCol(o);if(!a)return;const l=a.getColDef();if(!this.columnModel.resetColDefIntoCol(a,"cellDataTypeInferred"))return;const c=a.getColDef();if(t&&c.type&&c.type!==l.type){const u=this.getUpdatedColumnState(a,s);u.rowGroup&&u.rowGroupIndex==null&&(r[o]=u),u.pivot&&u.pivotIndex==null&&(i[o]=u),n.push(u)}}),t&&n.push(...this.funcColsService.generateColumnStateForRowGroupAndPivotIndexes(r,i)),n.length&&this.columnApplyStateService.applyColumnState({state:n},"cellDataTypeInferred"),this.initialData=null}getUpdatedColumnState(e,t){const n=this.columnApplyStateService.getColumnStateFromColDef(e);return t.forEach(r=>{delete n[r],r==="rowGroup"?delete n.rowGroupIndex:r==="pivot"&&delete n.pivotIndex}),n}checkObjectValueHandlers(e){const t=this.dataTypeDefinitions.object,n=e.object;this.hasObjectValueParser=t.valueParser!==n.valueParser,this.hasObjectValueFormatter=t.valueFormatter!==n.valueFormatter}getDateStringTypeDefinition(e){return e?this.getDataTypeDefinition(e)??this.dataTypeDefinitions.dateString:this.dataTypeDefinitions.dateString}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){var t;return(t=this.getDataTypeDefinition(e))==null?void 0:t.baseDataType}checkType(e,t){var r;if(t==null)return!0;const n=(r=this.getDataTypeDefinition(e))==null?void 0:r.dataTypeMatcher;return n?n(t):!0}validateColDef(e){const t=n=>rt(`Cell data type is "object" but no Value ${n} has been provided. Please either provide an object data type definition with a Value ${n}, or set "colDef.value${n}"`);e.cellDataType==="object"&&(e.valueFormatter===this.dataTypeDefinitions.object.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&t("Formatter"),e.editable&&e.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&t("Parser"))}getFormatValue(e){return this.formatValueFuncs[e]}setColDefPropertiesForBaseDataType(e,t,n,r){var o;const i=this.formatValueFuncs[t];switch(n.baseDataType){case"number":{e.cellEditor="agNumberCellEditor";break}case"boolean":{e.cellEditor="agCheckboxCellEditor",e.cellRenderer="agCheckboxCellRenderer",e.suppressKeyboardEvent=s=>!!s.colDef.editable&&s.event.key===Je.SPACE;break}case"date":{e.cellEditor="agDateCellEditor",e.keyCreator=i;break}case"dateString":{e.cellEditor="agDateStringCellEditor",e.keyCreator=i;break}case"object":{e.cellEditorParams={useFormatter:!0},e.comparator=(s,a)=>{const l=this.columnModel.getColDefCol(r),c=l==null?void 0:l.getColDef();if(!l||!c)return 0;const u=s==null?"":i({column:l,node:null,value:s}),f=a==null?"":i({column:l,node:null,value:a});return u===f?0:u>f?1:-1},e.keyCreator=i;break}}(o=this.filterManager)==null||o.setColDefPropertiesForDataType(e,n,i)}getDefaultDataTypes(){const e=n=>!!n.match("^\\d{4}-\\d{2}-\\d{2}$"),t=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:n=>{var r,i;return((i=(r=n.newValue)==null?void 0:r.trim)==null?void 0:i.call(r))===""?null:Number(n.newValue)},valueFormatter:n=>n.value==null?"":typeof n.value!="number"||isNaN(n.value)?t("invalidNumber","Invalid Number"):String(n.value),dataTypeMatcher:n=>typeof n=="number"},text:{baseDataType:"text",valueParser:n=>n.newValue===""?null:vm(n.newValue),dataTypeMatcher:n=>typeof n=="string"},boolean:{baseDataType:"boolean",valueParser:n=>{var r,i;return n.newValue==null?n.newValue:((i=(r=n.newValue)==null?void 0:r.trim)==null?void 0:i.call(r))===""?null:String(n.newValue).toLowerCase()==="true"},valueFormatter:n=>n.value==null?"":String(n.value),dataTypeMatcher:n=>typeof n=="boolean"},date:{baseDataType:"date",valueParser:n=>cu(n.newValue==null?null:String(n.newValue)),valueFormatter:n=>n.value==null?"":!(n.value instanceof Date)||isNaN(n.value.getTime())?t("invalidDate","Invalid Date"):Vf(n.value,!1)??"",dataTypeMatcher:n=>n instanceof Date},dateString:{baseDataType:"dateString",dateParser:n=>cu(n)??void 0,dateFormatter:n=>Vf(n??null,!1)??void 0,valueParser:n=>e(String(n.newValue))?n.newValue:null,valueFormatter:n=>e(String(n.value))?n.value:"",dataTypeMatcher:n=>typeof n=="string"&&e(n)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:n=>vm(n.value)??""}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach(e=>e()),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}},jci={version:ur,moduleName:"@ag-grid-community/data-type",beans:[Hci]},Vci={version:ur,moduleName:"@ag-grid-community/column-api",apiFunctions:{getColumnDef:Zli,getColumnDefs:Jli,sizeColumnsToFit:eci,setColumnGroupOpened:tci,getColumnGroup:nci,getProvidedColumnGroup:rci,getDisplayNameForColumn:ici,getDisplayNameForColumnGroup:oci,getColumn:sci,getColumns:aci,applyColumnState:lci,getColumnState:cci,resetColumnState:uci,getColumnGroupState:dci,setColumnGroupState:fci,resetColumnGroupState:hci,isPinning:gci,isPinningLeft:pci,isPinningRight:mci,getDisplayedColAfter:vci,getDisplayedColBefore:Cci,setColumnVisible:yci,setColumnsVisible:bci,setColumnPinned:Sci,setColumnsPinned:wci,getAllGridColumns:xci,getDisplayedLeftColumns:Eci,getDisplayedCenterColumns:Rci,getDisplayedRightColumns:$ci,getAllDisplayedColumns:Oci,getAllDisplayedVirtualColumns:Tci,moveColumn:Ici,moveColumnByIndex:Mci,moveColumns:Pci,setColumnWidth:_ci,setColumnWidths:Aci,getLeftDisplayedColumnGroups:Dci,getCenterDisplayedColumnGroups:Lci,getRightDisplayedColumnGroups:Fci,getAllDisplayedColumnGroups:Nci,autoSizeColumn:kci,autoSizeColumns:zci,autoSizeAllColumns:Bci}};function Gci(e,t){e.ctrlsService.getGridBodyCtrl().getRowDragFeature().addRowDropZone(t)}function Wci(e,t){const n=e.dragAndDropService.findExternalZone(t);n&&e.dragAndDropService.removeDropTarget(n)}function Uci(e,t){return e.ctrlsService.getGridBodyCtrl().getRowDragFeature().getRowDropZone(t)}var qci={version:ur,moduleName:"@ag-grid-community/drag-api",apiFunctions:{addRowDropZone:Gci,removeRowDropZone:Wci,getRowDropZoneParams:Uci}};function Kci(e){return e.pinnedRowModel.getPinnedTopRowCount()}function Yci(e){return e.pinnedRowModel.getPinnedBottomRowCount()}function Xci(e,t){return e.pinnedRowModel.getPinnedTopRow(t)}function Qci(e,t){return e.pinnedRowModel.getPinnedBottomRow(t)}var Zci={version:ur,moduleName:"@ag-grid-community/pinned-row-api",apiFunctions:{getPinnedTopRowCount:Kci,getPinnedBottomRowCount:Yci,getPinnedTopRow:Xci,getPinnedBottomRow:Qci}};function Jci(e){e.overlayService.showLoadingOverlay()}function eui(e){e.overlayService.showNoRowsOverlay()}function tui(e){e.overlayService.hideOverlay()}var nui={version:ur,moduleName:"@ag-grid-community/overlay-api",apiFunctions:{showLoadingOverlay:Jci,showNoRowsOverlay:eui,hideOverlay:tui}};function rui(e,t,n){if(!t)return;const r=e.ctrlsService.getGridBodyCtrl().getGui(),i=`aria-${t}`;n===null?r.removeAttribute(i):r.setAttribute(i,n)}function iui(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function oui(e,t={}){const n=r=>rt(`Since v31.1 api.flashCells parameter '${r}Delay' is deprecated. Please use '${r}Duration' instead.`);zt(t.fadeDelay)&&n("fade"),zt(t.flashDelay)&&n("flash"),e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.flashCells(t))}function sui(e){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsService.getHeaderRowContainerCtrls().forEach(t=>t.refresh()))}function aui(e){return e.animationFrameService.isQueueEmpty()}function lui(e){e.animationFrameService.flushAllFrames()}function cui(e){return{rowHeight:W0(e.gos),headerHeight:e.columnModel.getHeaderHeight()}}function uui(e,t={}){return e.rowRenderer.getCellRendererInstances(t).map(gC)}var dui={version:ur,moduleName:"@ag-grid-community/render-api",apiFunctions:{setGridAriaProperty:rui,refreshCells:iui,flashCells:oui,refreshHeader:sui,isAnimationFrameQueueEmpty:aui,flushAllAnimationFrames:lui,getSizesForCurrentTheme:cui,getCellRendererInstances:uui}};function fui(e){e.valueCache.expire()}function hui(e,t,n){return zht(e,{colKey:t,rowNode:n})}function zht(e,t){const{colKey:n,rowNode:r,useFormatter:i}=t,o=e.columnModel.getColDefCol(n)??e.columnModel.getCol(n);if(ar(o))return null;const s=e.valueService.getValueForDisplay(o,r);return i?e.valueService.formatValue(o,r,s)??Wl(s,!0):s}function gui(e){return e.context.getGridId()}function pui(e){e.gridDestroyService.destroy()}function mui(e){return e.gridDestroyService.isDestroyCalled()}function vui(e,t){return e.gos.get(t)}function Cui(e,t,n){Bht(e,{[t]:n})}function Bht(e,t){e.gos.updateGridOptions({options:t})}function yui(e,t,n){e.apiEventService.addEventListener(t,n)}function bui(e,t,n){e.apiEventService.removeEventListener(t,n)}function Sui(e,t){e.apiEventService.addGlobalListener(t)}function wui(e,t){e.apiEventService.removeGlobalListener(t)}function xui(e){return e.focusService.getFocusedCell()}function Eui(e){return e.focusService.clearFocusedCell()}function Rui(e,t,n,r){e.focusService.setFocusedCell({rowIndex:t,column:n,rowPinned:r,forceBrowserFocus:!0})}function $ui(e,t){return e.navigationService.tabToNextCell(!1,t)}function Oui(e,t){return e.navigationService.tabToNextCell(!0,t)}function Tui(e,t,n=!1){const r=e.headerNavigationService.getHeaderPositionForColumn(t,n);r&&e.focusService.focusHeaderPosition({headerPosition:r})}function Iui(e,t,n){const r=e.columnModel.getCol(t);e.menuService.showColumnMenu({column:r,buttonElement:n,positionBy:"button"})}function Mui(e,t,n){let r=e.columnModel.getCol(t);if(r||(r=e.columnModel.getColDefCol(t)),!r){Mr(`column '${t}' not found`);return}e.menuService.showColumnMenu({column:r,mouseEvent:n,positionBy:"mouse"})}function Pui(e,t){const n=e.columnModel.getCol(t);if(!n){Mr(`column '${t}' not found`);return}e.menuService.showColumnMenu({column:n,positionBy:"auto"})}function _ui(e){e.menuService.hidePopupMenu()}function Aui(e,t={}){const n=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(n))}function Dui(e,t,n,r,i){e.expansionService.setRowNodeExpanded(t,n,r,i)}function Lui(e,t){return e.rowModel.getRowNode(t)}function Fui(e,t,n,r){e.rowRenderer.addRenderedRowListener(t,n,r)}function Nui(e){return e.rowRenderer.getRenderedNodes()}function kui(e,t,n){e.rowModel.forEachNode(t,n)}function zui(e){return Hht(e)}function Hht(e){return e.rowRenderer.getFirstVirtualRenderedRow()}function Bui(e){return jht(e)}function jht(e){return e.rowRenderer.getLastVirtualRenderedRow()}function Hui(e,t){return e.rowModel.getRow(t)}function jui(e){return e.rowModel.getRowCount()}function Vui(e){return e.rowModel}function Gui(e,t){if(!t.nodes.every(a=>a.rowPinned?(rt("cannot select pinned rows"),!1):a.id===void 0?(rt("cannot select node until id for node is known"),!1):!0))return;const{nodes:r,source:i,newValue:o}=t,s=r;e.selectionService.setNodesSelected({nodes:s,source:i??"api",newValue:o})}function Wui(e,t="apiSelectAll"){e.selectionService.selectAllRowNodes({source:t})}function Uui(e,t="apiSelectAll"){e.selectionService.deselectAllRowNodes({source:t})}function qui(e,t="apiSelectAllFiltered"){e.selectionService.selectAllRowNodes({source:t,justFiltered:!0})}function Kui(e,t="apiSelectAllFiltered"){e.selectionService.deselectAllRowNodes({source:t,justFiltered:!0})}function Yui(e,t="apiSelectAllCurrentPage"){e.selectionService.selectAllRowNodes({source:t,justCurrentPage:!0})}function Xui(e,t="apiSelectAllCurrentPage"){e.selectionService.deselectAllRowNodes({source:t,justCurrentPage:!0})}function Qui(e){return e.selectionService.getSelectedNodes()}function Zui(e){return e.selectionService.getSelectedRows()}function Jui(e){e.sortController.onSortChanged("api")}var edi={version:ur,moduleName:"@ag-grid-community/core-api",apiFunctions:{getGridId:gui,destroy:pui,isDestroyed:mui,getGridOption:vui,setGridOption:Cui,updateGridOptions:Bht}},tdi={version:ur,moduleName:"@ag-grid-community/row-selection-api",apiFunctions:{setNodesSelected:Gui,selectAll:Wui,deselectAll:Uui,selectAllFiltered:qui,deselectAllFiltered:Kui,selectAllOnCurrentPage:Yui,deselectAllOnCurrentPage:Xui,getSelectedNodes:Qui,getSelectedRows:Zui}},ndi={version:ur,moduleName:"@ag-grid-community/row-api",apiFunctions:{redrawRows:Aui,setRowNodeExpanded:Dui,getRowNode:Lui,addRenderedRowListener:Fui,getRenderedNodes:Nui,forEachNode:kui,getFirstDisplayedRow:zui,getFirstDisplayedRowIndex:Hht,getLastDisplayedRow:Bui,getLastDisplayedRowIndex:jht,getDisplayedRowAtIndex:Hui,getDisplayedRowCount:jui,getModel:Vui}},rdi={version:ur,moduleName:"@ag-grid-community/scroll-api",apiFunctions:{getVerticalPixelRange:Vai,getHorizontalPixelRange:Gai,ensureColumnVisible:Mht,ensureIndexVisible:Pht,ensureNodeVisible:Wai}},idi={version:ur,moduleName:"@ag-grid-community/keyboard-navigation-api",apiFunctions:{getFocusedCell:xui,clearFocusedCell:Eui,setFocusedCell:Rui,setFocusedHeader:Tui,tabToNextCell:$ui,tabToPreviousCell:Oui}},odi={version:ur,moduleName:"@ag-grid-community/event-api",apiFunctions:{addEventListener:yui,addGlobalListener:Sui,removeEventListener:bui,removeGlobalListener:wui}},sdi={version:ur,moduleName:"@ag-grid-community/cell-api",apiFunctions:{expireValueCache:fui,getValue:hui,getCellValue:zht}},Vht={version:ur,moduleName:"@ag-grid-community/menu-api",apiFunctions:{showColumnMenuAfterButtonClick:Iui,showColumnMenuAfterMouseClick:Mui,showColumnMenu:Pui,hidePopupMenu:_ui}},adi={version:ur,moduleName:"@ag-grid-community/sort-api",apiFunctions:{onSortChanged:Jui}},ldi={version:ur,moduleName:"@ag-grid-community/api",dependantModules:[edi,Zci,tdi,Vci,ndi,qci,rdi,nui,idi,odi,dui,sdi,Vht,adi]};function cdi(e){var t;return((t=e.stateService)==null?void 0:t.getState())??{}}function udi(e){switch(e={...e},e.version||(e.version="32.1.0"),e.version){case"32.1.0":e=ddi(e)}return e}function ddi(e){return e.cellSelection=fdi(e,"rangeSelection"),e}function fdi(e,t){if(e&&typeof e=="object")return e[t]}var hdi=class extends ct{constructor(){super(...arguments),this.beanName="stateService",this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=_a(()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=_a(()=>this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),0),this.onRowSelectedDebounced=_a(()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}wireBeans(e){this.filterManager=e.filterManager,this.ctrlsService=e.ctrlsService,this.pivotResultColsService=e.pivotResultColsService,this.focusService=e.focusService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.columnGroupStateService=e.columnGroupStateService,this.columnGetStateService=e.columnGetStateService,this.paginationService=e.paginationService,this.selectionService=e.selectionService,this.expansionService=e.expansionService,this.columnAnimationService=e.columnAnimationService,this.columnApplyStateService=e.columnApplyStateService,this.sideBarService=e.sideBarService,this.rangeService=e.rangeService}postConstruct(){this.isClientSideRowModel=Li(this.gos),this.cachedState=this.getInitialState(),this.setCachedStateValue("version",ur),this.ctrlsService.whenReady(this,()=>this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnGridReady()));const[e,t,n]=this.addManagedEventListeners({newColumnsLoaded:({source:r})=>{r==="gridInitializing"&&(e(),this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnColumnsInitialised()))},rowCountReady:()=>{t==null||t(),this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnRowCountReady())},firstDataRendered:()=>{n==null||n(),this.suppressEventsAndDispatchInitEvent(()=>this.setupStateOnFirstDataRendered())}})}getInitialState(){return udi(this.gos.get("initialState")??{})}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){this.updateCachedState("sideBar",this.getSideBarState());const e=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:e,sideBarUpdated:e})}setupStateOnColumnsInitialised(){const e=this.getInitialState();this.setColumnState(e),this.setColumnGroupState(e),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState());const t=n=>()=>this.updateColumnState([n]);this.addManagedEventListeners({columnValueChanged:t("aggregation"),columnMoved:t("columnOrder"),columnPinned:t("columnPinning"),columnResized:t("columnSizing"),columnVisible:t("columnVisibility"),columnPivotChanged:t("pivot"),columnPivotModeChanged:t("pivot"),columnRowGroupChanged:t("rowGroup"),sortChanged:t("sort"),newColumnsLoaded:()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setupStateOnRowCountReady(){const{filter:e,rowGroupExpansion:t,rowSelection:n,pagination:r}=this.getInitialState(),i=this.gos.get("advancedFilterModel");(e||i)&&this.setFilterState(e,i),t&&this.setRowGroupExpansionState(t),n&&this.setRowSelectionState(n),r&&this.setPaginationState(r),this.updateCachedState("filter",this.getFilterState()),this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowSelection",this.getRowSelectionState()),this.updateCachedState("pagination",this.getPaginationState());const o=()=>this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState());this.addManagedEventListeners({filterChanged:()=>this.updateCachedState("filter",this.getFilterState()),rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:o,columnRowGroupChanged:o,rowDataUpdated:()=>{this.gos.get("groupDefaultExpanded")!==0&&setTimeout(()=>{o()})},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:s=>{(s.newPage||s.newPageSize)&&this.updateCachedState("pagination",this.getPaginationState())}})}setupStateOnFirstDataRendered(){const{scroll:e,cellSelection:t,focusedCell:n,columnOrder:r}=this.getInitialState();n&&this.setFocusedCellState(n),t&&this.setCellSelectionState(t),e&&this.setScrollState(e),this.setColumnPivotState(!!(r!=null&&r.orderedColIds)),this.updateCachedState("sideBar",this.getSideBarState()),this.updateCachedState("focusedCell",this.getFocusedCellState());const i=this.getRangeSelectionState();this.updateCachedState("rangeSelection",i),this.updateCachedState("cellSelection",i),this.updateCachedState("scroll",this.getScrollState()),this.addManagedEventListeners({cellFocused:()=>this.updateCachedState("focusedCell",this.getFocusedCellState()),cellSelectionChanged:o=>{if(o.finished){const s=this.getRangeSelectionState();this.updateCachedState("rangeSelection",s),this.updateCachedState("cellSelection",s)}},bodyScrollEnd:()=>this.updateCachedState("scroll",this.getScrollState())})}getColumnState(){const e=this.columnModel.isPivotMode(),t=[],n=[],r=[],i=[],o=[],s=[],a=[],l=[],c=[];let u=0;const f=this.columnGetStateService.getColumnState();for(let h=0;h<f.length;h++){const{colId:g,sort:p,sortIndex:m,rowGroup:v,rowGroupIndex:C,aggFunc:y,pivot:b,pivotIndex:S,pinned:w,hide:x,width:E,flex:R}=f[h];c.push(g),p&&(t[m??u++]={colId:g,sort:p}),v&&(n[C??0]=g),typeof y=="string"&&r.push({colId:g,aggFunc:y}),b&&(i[S??0]=g),w&&(w==="right"?s:o).push(g),x&&a.push(g),(R||E)&&l.push({colId:g,flex:R??void 0,width:E})}return{sort:t.length?{sortModel:t}:void 0,rowGroup:n.length?{groupColIds:n}:void 0,aggregation:r.length?{aggregationModel:r}:void 0,pivot:i.length||e?{pivotMode:e,pivotColIds:i}:void 0,columnPinning:o.length||s.length?{leftColIds:o,rightColIds:s}:void 0,columnVisibility:a.length?{hiddenColIds:a}:void 0,columnSizing:l.length?{columnSizingModel:l}:void 0,columnOrder:c.length?{orderedColIds:c}:void 0}}setColumnState(e){const{sort:t,rowGroup:n,aggregation:r,pivot:i,columnPinning:o,columnVisibility:s,columnSizing:a,columnOrder:l,partialColumnState:c}=e,u={},f=v=>{let C=u[v];return C||(C={colId:v},u[v]=C,C)},h=c?{}:{sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};t&&(t.sortModel.forEach(({colId:v,sort:C},y)=>{const b=f(v);b.sort=C,b.sortIndex=y}),h.sort=null,h.sortIndex=null),n&&(n.groupColIds.forEach((v,C)=>{const y=f(v);y.rowGroup=!0,y.rowGroupIndex=C}),h.rowGroup=null,h.rowGroupIndex=null),r&&(r.aggregationModel.forEach(({colId:v,aggFunc:C})=>{f(v).aggFunc=C}),h.aggFunc=null),i&&(i.pivotColIds.forEach((v,C)=>{const y=f(v);y.pivot=!0,y.pivotIndex=C}),this.gos.updateGridOptions({options:{pivotMode:i.pivotMode},source:"gridInitializing"}),h.pivot=null,h.pivotIndex=null),o&&(o.leftColIds.forEach(v=>{f(v).pinned="left"}),o.rightColIds.forEach(v=>{f(v).pinned="right"}),h.pinned=null),s&&(s.hiddenColIds.forEach(v=>{f(v).hide=!0}),h.hide=null),a&&(a.columnSizingModel.forEach(({colId:v,flex:C,width:y})=>{const b=f(v);b.flex=C??null,b.width=y}),h.flex=null);const g=l==null?void 0:l.orderedColIds,p=!!(g!=null&&g.length),m=p?g.map(v=>f(v)):Object.values(u);m.length&&(this.columnStates=m,this.columnApplyStateService.applyColumnState({state:m,applyOrder:p,defaultState:h},"gridInitializing"))}setColumnPivotState(e){const t=this.columnStates;this.columnStates=void 0;const n=this.columnGroupStates;if(this.columnGroupStates=void 0,!!this.pivotResultColsService.isPivotResultColsPresent()){if(t){const r=[];for(const i of t)this.pivotResultColsService.getPivotResultCol(i.colId)&&r.push(i);this.columnApplyStateService.applyColumnState({state:r,applyOrder:e},"gridInitializing")}n&&this.columnGroupStateService.setColumnGroupState(n,"gridInitializing")}}getColumnGroupState(){const e=this.columnGroupStateService.getColumnGroupState(),t=[];return e.forEach(({groupId:n,open:r})=>{r&&t.push(n)}),t.length?{openColumnGroupIds:t}:void 0}setColumnGroupState(e){var i;if(!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const t=new Set((i=e.columnGroup)==null?void 0:i.openColumnGroupIds),r=this.columnGroupStateService.getColumnGroupState().map(({groupId:o})=>{const s=t.has(o);return s&&t.delete(o),{groupId:o,open:s}});t.forEach(o=>{r.push({groupId:o,open:!0})}),r.length&&(this.columnGroupStates=r),this.columnGroupStateService.setColumnGroupState(r,"gridInitializing")}getFilterState(){var n,r;let e=(n=this.filterManager)==null?void 0:n.getFilterModel();e&&Object.keys(e).length===0&&(e=void 0);const t=((r=this.filterManager)==null?void 0:r.getAdvancedFilterModel())??void 0;return e||t?{filterModel:e,advancedFilterModel:t}:void 0}setFilterState(e,t){var i,o;const{filterModel:n,advancedFilterModel:r}=e??{advancedFilterModel:t};n&&((i=this.filterManager)==null||i.setFilterModel(n,"columnFilter")),r&&((o=this.filterManager)==null||o.setAdvancedFilterModel(r))}getRangeSelectionState(){var t;const e=(t=this.rangeService)==null?void 0:t.getCellRanges().map(n=>{const{id:r,type:i,startRow:o,endRow:s,columns:a,startColumn:l}=n;return{id:r,type:i,startRow:o,endRow:s,colIds:a.map(c=>c.getColId()),startColId:l.getColId()}});return e!=null&&e.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeService:n,columnModel:r,visibleColsService:i}=this;if(!su(t)||!n)return;const o=[];if(e.cellRanges.forEach(s=>{const a=[];if(s.colIds.forEach(c=>{const u=r.getCol(c);u&&a.push(u)}),!a.length)return;let l=r.getCol(s.startColId);if(!l){const c=i.getAllCols(),u=new Set(a);l=c.find(f=>u.has(f))}o.push({...s,columns:a,startColumn:l})}),jdt(t)&&x$(t)&&o.length>1)return rt("cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`");n.setCellRanges(o)}getScrollState(){var r;if(!this.isClientSideRowModel)return;const e=(r=this.ctrlsService.getGridBodyCtrl())==null?void 0:r.getScrollFeature(),{left:t}=(e==null?void 0:e.getHScrollPosition())??{left:0},{top:n}=(e==null?void 0:e.getVScrollPosition())??{top:0};return n||t?{top:n,left:t}:void 0}setScrollState(e){var r;if(!this.isClientSideRowModel)return;const{top:t,left:n}=e;(r=this.ctrlsService.getGridBodyCtrl())==null||r.getScrollFeature().setScrollPosition(t,n)}getSideBarState(){var e,t;return(t=(e=this.sideBarService)==null?void 0:e.getSideBarComp())==null?void 0:t.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.focusService.getFocusedCell();if(e){const{column:t,rowIndex:n,rowPinned:r}=e;return{colId:t.getColId(),rowIndex:n,rowPinned:r}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{colId:t,rowIndex:n,rowPinned:r}=e;this.focusService.setFocusedCell({column:this.columnModel.getCol(t),rowIndex:n,rowPinned:r,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){if(!this.paginationService)return;const e=this.paginationService.getCurrentPage(),t=this.gos.get("paginationAutoPageSize")?void 0:this.paginationService.getPageSize();if(!(!e&&!t))return{page:e,pageSize:t}}setPaginationState(e){this.paginationService&&(e.pageSize&&!this.gos.get("paginationAutoPageSize")&&this.paginationService.setPageSize(e.pageSize,"initialState"),typeof e.page=="number"&&this.paginationService.setPage(e.page))}getRowSelectionState(){var n;const e=this.selectionService.getSelectionState();return!e||!Array.isArray(e)&&(e.selectAll===!1||e.selectAllChildren===!1)&&!((n=e==null?void 0:e.toggledNodes)!=null&&n.length)?void 0:e}setRowSelectionState(e){this.selectionService.setSelectionState(e,"gridInitializing")}getRowGroupExpansionState(){const e=this.expansionService.getExpandedRows();return e.length?{expandedRowGroupIds:e}:void 0}setRowGroupExpansionState(e){this.expansionService.expandRows(e.expandedRowGroupIds)}updateColumnState(e){const t=this.getColumnState();let n=!1;Object.entries(t).forEach(([r,i])=>{gI(i,this.cachedState[r])||(n=!0)}),this.cachedState={...this.cachedState,...t},n&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const n=this.cachedState[e];this.setCachedStateValue(e,t),gI(t,n)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){this.staleStateKeys.forEach(e=>{switch(e){case"rowSelection":this.setCachedStateValue(e,this.getRowSelectionState());break}}),this.staleStateKeys.clear()}dispatchStateUpdateEvent(e){this.suppressEvents||(e.forEach(t=>this.queuedUpdateSources.add(t)),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){const e=Array.from(this.queuedUpdateSources);this.queuedUpdateSources.clear(),this.eventService.dispatchEvent({type:"stateUpdated",sources:e,state:this.cachedState})}suppressEventsAndDispatchInitEvent(e){this.suppressEvents=!0,this.columnAnimationService.setSuppressAnimation(!0),e(),setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.columnAnimationService.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))})}},Ght={version:ur,moduleName:"@ag-grid-community/state-core",beans:[hdi]},gdi={version:ur,moduleName:"@ag-grid-community/state-api",apiFunctions:{getState:cdi},dependantModules:[Ght]},pdi={version:ur,moduleName:"@ag-grid-community/state",dependantModules:[Ght,gdi]};function mdi(e){return e.rowModel.isLastRowIndexKnown()}function vdi(e){var t;return((t=e.paginationService)==null?void 0:t.getPageSize())??100}function Cdi(e){var t;return((t=e.paginationService)==null?void 0:t.getCurrentPage())??0}function ydi(e){var t;return((t=e.paginationService)==null?void 0:t.getTotalPages())??1}function bdi(e){return e.paginationService?e.paginationService.getMasterRowCount():e.rowModel.getRowCount()}function Sdi(e){var t;(t=e.paginationService)==null||t.goToNextPage()}function wdi(e){var t;(t=e.paginationService)==null||t.goToPreviousPage()}function xdi(e){var t;(t=e.paginationService)==null||t.goToFirstPage()}function Edi(e){var t;(t=e.paginationService)==null||t.goToLastPage()}function Rdi(e,t){var n;(n=e.paginationService)==null||n.goToPage(t)}var $di=class extends ct{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeService"}wireBeans(e){this.ctrlsService=e.ctrlsService,this.paginationService=e.paginationService}postConstruct(){this.ctrlsService.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.paginationService.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.getViewportSizeFeature().getBodyHeight();if(e>0){const t=()=>{const n=Math.max(W0(this.gos),1),r=Math.floor(e/n);this.paginationService.setPageSize(r,"autoCalculated")};this.isBodyRendered?_a(()=>t(),50)():(t(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};function Wht(e,t,n){e.addManagedElementListeners(t,{keydown:r=>{if(!r.defaultPrevented&&r.key===Je.TAB){const i=r.shiftKey;n.findNextFocusableElement(t,!1,i)||n.focusNextGridCoreContainer(i)&&r.preventDefault()}}})}var GR="paginationPageSizeSelector",Odi=class extends wn{constructor(){super('<span class="ag-paging-page-size"></span>'),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.paginationService.getPageSize()||(this.paginationService.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.paginationService=e.paginationService}postConstruct(){this.addManagedPropertyListener(GR,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!(e!=null&&e.newPageSize))return;const t=this.paginationService.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){go(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(GR)!==!1}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.paginationService.getPageSize(),n=!t||!e.includes(t);if(n){const i=this.gos.exists("paginationPageSize"),o=this.gos.get(GR)!==!0;rt(`'paginationPageSize=${t}'${i?"":" (default value)"}, but ${t} is not included in${o?"":" the default"} paginationPageSizeSelector=[${e.join(", ")}].`),o||rt(`Either set '${GR}' to an array that includes ${t} or to 'false' to disable the page size selector.`),e.unshift("")}const r=String(n?"":t);this.selectPageSizeComp?(vc(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(r,!0)):this.createPageSizeSelectorComp(e,r),this.hasEmptyOption=n}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const n=this.localeService.getLocaleTextFunc(),r=n("pageSizeSelectorLabel","Page Size:"),i=n("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new XQ).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(i).setLabel(r).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(GR);return!Array.isArray(t)||Es(t)?e:[...t].sort((n,r)=>n-r)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},Tdi={selector:"AG-PAGE-SIZE-SELECTOR",component:Odi},Idi=class extends kb{constructor(){super(),this.btFirst=Ot,this.btPrevious=Ot,this.btNext=Ot,this.btLast=Ot,this.lbRecordCount=Ot,this.lbFirstRowOnPage=Ot,this.lbLastRowOnPage=Ot,this.lbCurrent=Ot,this.lbTotal=Ot,this.pageSizeComp=Ot,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1}wireBeans(e){this.rowModel=e.rowModel,this.paginationService=e.paginationService,this.focusService=e.focusService,this.ariaAnnouncementService=e.ariaAnnouncementService}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[Tdi]);const{btFirst:t,btPrevious:n,btNext:r,btLast:i}=this;this.activateTabIndex([t,n,r,i]),t.insertAdjacentElement("afterbegin",Gn(e?"last":"first",this.gos)),n.insertAdjacentElement("afterbegin",Gn(e?"next":"previous",this.gos)),r.insertAdjacentElement("afterbegin",Gn(e?"previous":"next",this.gos)),i.insertAdjacentElement("afterbegin",Gn(e?"first":"last",this.gos)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:o=>{this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(o):this.focusService.focusGridInnerElement(o)},forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)}),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(e=>{const{el:t,fn:n}=e;this.addManagedListeners(t,{click:n,keydown:r=>{(r.key===Je.ENTER||r.key===Je.SPACE)&&(r.preventDefault(),n())}})}),Wht(this,this.getGui(),this.focusService),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.paginationService.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");if(t)return t({value:e});const n=this.localeService.getLocaleTextFunc(),r=n("thousandSeparator",","),i=n("decimalSeparator",".");return Sy(e,r,i)}getTemplate(){const e=this.localeService.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),r=e("of","of"),i=e("firstPage","First Page"),o=e("previousPage","Previous Page"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return`<div class="ag-paging-panel ag-unselectable" id="ag-${l}">
|
||
<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>
|
||
</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(!this.active)return;const t=this.getPageForIndex(e);this.goToPage(t)}isRowInPage(e){return this.active?this.getPageForIndex(e.rowIndex)===this.currentPage:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return zt(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:zt(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:zt(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:zt(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.pageBoundsService.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const n=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}n!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0){this.setZeroRows();return}const e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();const t=this.pageSize*this.currentPage;let n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{const r=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=r-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){if(this.masterRowCount=this.rowModel.getRowCount(),this.masterRowCount===0){this.setZeroRows();return}const e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:n=!1,newPageSize:r=!1}=e;this.eventService.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:n,newPageSize:r,keepRenderedRows:t})}},Uht={version:ur,moduleName:"@ag-grid-community/pagination-core",beans:[Pdi,$di]},_di={version:ur,moduleName:"@ag-grid-community/pagination-api",dependantModules:[Uht],apiFunctions:{paginationIsLastPageFound:mdi,paginationGetPageSize:vdi,paginationGetCurrentPage:Cdi,paginationGetTotalPages:ydi,paginationGetRowCount:bdi,paginationGoToNextPage:Sdi,paginationGoToPreviousPage:wdi,paginationGoToFirstPage:xdi,paginationGoToLastPage:Edi,paginationGoToPage:Rdi}},Adi={version:ur,moduleName:"@ag-grid-community/pagination",dependantModules:[Uht,_di]},Hc="clientSide",sc="serverSide",j5="infinite",Ddi={onGroupExpandedOrCollapsed:[Hc],refreshClientSideRowModel:[Hc],isRowDataEmpty:[Hc],forEachLeafNode:[Hc],forEachNodeAfterFilter:[Hc],forEachNodeAfterFilterAndSort:[Hc],resetRowHeights:[Hc],applyTransaction:[Hc],applyTransactionAsync:[Hc],flushAsyncTransactions:[Hc],getBestCostNodeSelection:[Hc],getServerSideSelectionState:[sc],setServerSideSelectionState:[sc],applyServerSideTransaction:[sc],applyServerSideTransactionAsync:[sc],applyServerSideRowData:[sc],retryServerSideLoads:[sc],flushServerSideAsyncTransactions:[sc],refreshServerSide:[sc],getServerSideGroupLevelState:[sc],refreshInfiniteCache:[j5],purgeInfiniteCache:[j5],getInfiniteRowCount:[j5],isLastRowIndexKnown:[j5,sc],expandAll:[Hc,sc],collapseAll:[Hc,sc],onRowHeightChanged:[Hc,sc],setRowCount:[j5,sc],getCacheBlockState:[j5,sc]},Ldi={getValue:{version:"v31.3",new:"getCellValue"},getFirstDisplayedRow:{version:"v31.1",new:"getFirstDisplayedRowIndex"},getLastDisplayedRow:{version:"v31.1",new:"getLastDisplayedRowIndex"},getModel:{version:"v31.1",message:"Please use the appropriate grid API methods instead."},setColumnVisible:{version:"v31.1",old:"setColumnVisible(key,visible)",new:"setColumnsVisible([key],visible)"},setColumnPinned:{version:"v31.1",old:"setColumnPinned(key,pinned)",new:"setColumnsPinned([key],pinned)"},moveColumn:{version:"v31.1",old:"moveColumn(key, toIndex)",new:"moveColumns([key], toIndex)"},setColumnWidth:{version:"v31.1",old:"setColumnWidth(col, width)",new:"setColumnWidths([{key: col, newWidth: width}])"},autoSizeColumn:{version:"v31.1",old:"autoSizeColumn(key, skipHeader)",new:"autoSizeColumns([key], skipHeader)"},addAggFunc:{version:"v31.1",old:"addAggFunc(key, func)",new:"addAggFuncs({ key: func })"},removeValueColumn:{version:"v31.1",old:"removeValueColumn(colKey)",new:"removeValueColumns([colKey])"},addValueColumn:{version:"v31.1",old:"addValueColumn(colKey)",new:"addValueColumns([colKey])"},removeRowGroupColumn:{version:"v31.1",old:"removeRowGroupColumn(colKey)",new:"removeRowGroupColumns([colKey])"},addRowGroupColumn:{version:"v31.1",old:"addRowGroupColumn(colKey)",new:"addRowGroupColumns([colKey])"},removePivotColumn:{version:"v31.1",old:"removePivotColumn(colKey)",new:"removePivotColumns([colKey])"},addPivotColumn:{version:"v31.1",old:"addPivotColumn(colKey)",new:"addPivotColumns([colKey])"},showColumnMenuAfterButtonClick:{version:"v31.1",message:"Use 'IHeaderParams.showColumnMenu' within a header component, or 'api.showColumnMenu' elsewhere."},showColumnMenuAfterMouseClick:{version:"v31.1",message:"Use 'IHeaderParams.showColumnMenuAfterMouseClick' within a header component, or 'api.showColumnMenu' elsewhere."},getFilterInstance:{version:"v31.1",message:"'getFilterInstance' is deprecated. To get/set individual filter models, use 'getColumnFilterModel' or 'setColumnFilterModel' instead. To get hold of the filter instance, use 'getColumnFilterInstance' which returns the instance asynchronously."},showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"}};function Fdi(e,t,n){const r=Ldi[e];if(r){const{version:o,new:s,old:a,message:l}=r,c=a??e;return(...u)=>{const f=s?`Please use ${s} instead. `:"";return rt(`Since ${o} api.${c} is deprecated. ${f}${l??""}`),t.apply(t,u)}}const i=Ddi[e];return i?(...o)=>{const s=n.rowModel.getType();if(!i.includes(s)){Mr(`api.${e} can only be called when gridOptions.rowModelType is ${i.join(" or ")}`);return}return t.apply(t,o)}:t}var Ndi={columnsMenuParams:{version:"31.1",message:"Use `columnChooserParams` instead."},suppressMenu:{version:"31.1",message:"Use `suppressHeaderMenuButton` instead."},suppressCellFlash:{version:"31.2",message:"Use `enableCellChangeFlash={false}` in the ColDef"},checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."}},o2=(e,t)=>{const n=t.rowModelType??"clientSide";return n==="clientSide"||n==="serverSide"?{module:"@ag-grid-enterprise/row-grouping"}:null},kdi={enableRowGroup:o2,rowGroup:o2,rowGroupIndex:o2,enablePivot:o2,enableValue:o2,pivot:o2,pivotIndex:o2,aggFunc:o2,cellEditor:e=>e.cellEditor==="agRichSelect"||e.cellEditor==="agRichSelectCellEditor"?{module:"@ag-grid-enterprise/rich-select"}:null,menuTabs:e=>{var n;const t=["columnsMenuTab","generalMenuTab"];return(n=e.menuTabs)!=null&&n.some(r=>t.includes(r))?{module:"@ag-grid-enterprise/menu"}:null},columnsMenuParams:{module:["@ag-grid-enterprise/menu","@ag-grid-enterprise/column-tool-panel"]},columnChooserParams:{module:["@ag-grid-enterprise/menu","@ag-grid-enterprise/column-tool-panel"]},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(e,{rowSelection:t})=>t==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>t==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(e,{rowSelection:t})=>t==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},children:()=>aS},zdi={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnsMenuParams:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0},Bdi=Object.keys(zdi),aS={objectName:"colDef",allProperties:Bdi,docsUrl:"column-properties/",deprecations:Ndi,validations:kdi},Hdi=()=>({advancedFilterModel:{version:"31",message:"Use `initialState.filter.advancedFilterModel` instead."},suppressAsyncEvents:{version:"31",message:"Events should be handled asynchronously."},cellFadeDelay:{version:"31.1",renamed:"cellFadeDuration"},cellFlashDelay:{version:"31.1",renamed:"cellFlashDuration"},suppressServerSideInfiniteScroll:{version:"31.1"},serverSideSortOnServer:{version:"31.1"},serverSideFilterOnServer:{version:"31.1"},enableCellChangeFlash:{version:"31.2",message:"Use `enableCellChangeFlash` in the `ColDef` or `defaultColDef` for all columns."},groupIncludeFooter:{version:"31.3",message:"Use `groupTotalRow` instead."},groupIncludeTotalFooter:{version:"31.3",message:"Use `grandTotalRow` instead."},suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."}}),jdi={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressAsyncEvents:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,enableCellChangeFlash:!1,cellFlashDelay:500,cellFlashDuration:500,cellFadeDelay:1e3,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupIncludeTotalFooter:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,suppressServerSideInfiniteScroll:!1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSideSortOnServer:!1,serverSideFilterOnServer:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,suppressGroupMaintainValueType:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1},Vdi=()=>({sideBar:{module:"@ag-grid-enterprise/side-bar"},statusBar:{module:"@ag-grid-enterprise/status-bar"},enableCharts:{module:"@ag-grid-enterprise/charts"},getMainMenuItems:{module:"@ag-grid-enterprise/menu"},getContextMenuItems:{module:"@ag-grid-enterprise/menu"},allowContextMenuWithControlKey:{module:"@ag-grid-enterprise/menu"},enableAdvancedFilter:{module:"@ag-grid-enterprise/advanced-filter"},treeData:{supportedRowModels:["clientSide","serverSide"],module:"@ag-grid-enterprise/row-grouping",validate:e=>{const t=e.rowModelType??"clientSide";switch(t){case"clientSide":{const n=`treeData requires 'getDataPath' in the ${t} row model.`;return e.getDataPath?null:n}case"serverSide":{const n=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${t} row model.`;return e.isServerSideGroup&&e.getServerSideGroupKey?null:n}}return null}},masterDetail:{module:"@ag-grid-enterprise/master-detail"},enableRangeSelection:{module:"@ag-grid-enterprise/range-selection"},enableRangeHandle:{dependencies:{enableRangeSelection:[!0]}},enableFillHandle:{dependencies:{enableRangeSelection:[!0]}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupIncludeFooter:{supportedRowModels:["clientSide","serverSide"],validate:e=>{switch(e.rowModelType??"clientSide"){case"clientSide":return null;case"serverSide":return e.suppressServerSideInfiniteScroll?"groupIncludeFooter is not supported alongside suppressServerSideInfiniteScroll":null}return null}},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:[void 0,"bottom"]}},groupIncludeTotalFooter:{supportedRowModels:["clientSide"]},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveLowestSingleChildren:[void 0,!1]}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:[void 0,!1],groupRemoveSingleChildren:[void 0,!1]}},groupSelectsChildren:{dependencies:{rowSelection:["multiple"]}},viewportDatasource:{supportedRowModels:["viewport"],module:"@ag-grid-enterprise/viewport-row-model"},serverSideDatasource:{supportedRowModels:["serverSide"],module:"@ag-grid-enterprise/server-side-row-model"},cacheBlockSize:{supportedRowModels:["serverSide","infinite"]},datasource:{supportedRowModels:["infinite"],module:"@ag-grid-community/infinite-row-model"},rowData:{supportedRowModels:["clientSide"],module:"@ag-grid-community/client-side-row-model"},paginationPageSizeSelector:{validate:e=>{const t=e.paginationPageSizeSelector;return typeof t=="boolean"||t==null||t.length?null:`'paginationPageSizeSelector' cannot be an empty array.
|
||
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.propertyEventService.removeEventListener(t,n)}getDomDataKey(){return this.domDataKey}getGridCommonParams(){return{api:this.api,context:this.gridOptionsContext}}addGridCommonParams(t){const n=t;return n.api=this.api,n.context=this.gridOptionsContext,n}assertModuleRegistered(t,n){return Pf.__assertRegistered(t,n,this.gridId)}isModuleRegistered(t){return Pf.__isRegistered(t,this.gridId)}};Kht.changeSetId=0;var Jdi=Kht,efi=class extends ct{constructor(){super(...arguments),this.beanName="headerPositionUtils"}wireBeans(e){this.visibleColsService=e.visibleColsService,this.ctrlsService=e.ctrlsService}findHeader(e,t){let n,r;if(Ss(e.column)?n=this.visibleColsService.getGroupAtDirection(e.column,t):(r=`getCol${t}`,n=this.visibleColsService[r](e.column)),!n)return;const{headerRowIndex:i}=e;if(this.getHeaderRowType(i)!=="filter"){const a=[n];for(;n.getParent();)n=n.getParent(),a.push(n);n=a[a.length-1-i]}const{column:o,headerRowIndex:s}=this.getHeaderIndexToFocus(n,i);return{column:o,headerRowIndex:s}}getHeaderIndexToFocus(e,t){let n;if(Ss(e)&&this.isAnyChildSpanningHeaderHeight(e)&&e.isPadding()){const r=e;n=r.getLeafColumns()[0];let i=n;for(;i!==r;)t++,i=i.getParent()}return{column:n||e,headerRowIndex:t}}isAnyChildSpanningHeaderHeight(e){return e?e.getLeafColumns().some(t=>t.isSpanHeaderHeight()):!1}getColumnVisibleParent(e,t){const n=this.getHeaderRowType(t),r=n==="filter",i=n==="column";let o=r?e:e.getParent(),s=t-1,a=s;if(i&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;o&&o.isPadding();)o=o.getParent(),s--;a=s,s<0&&(o=e,s=t,a=void 0)}return{column:o,headerRowIndex:s,headerRowIndexWithoutSpan:a}}getColumnVisibleChild(e,t,n="After"){const r=this.getHeaderRowType(t);let i=e,o=t+1;const s=o;if(r==="group"){const a=e.getDisplayedLeafColumns(),l=n==="After"?a[0]:Dn(a),c=[];let u=l;for(;u.getParent()!==e;)u=u.getParent(),c.push(u);if(i=l,l.isSpanHeaderHeight())for(let f=c.length-1;f>=0;f--){const h=c[f];if(!h.isPadding()){i=h;break}o++}else i=Dn(c),i||(i=l)}return{column:i,headerRowIndex:o,headerRowIndexWithoutSpan:s}}getHeaderRowType(e){const t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}findColAtEdgeForHeaderRow(e,t){const n=this.visibleColsService.getAllCols(),r=n[t==="start"?0:n.length-1];if(!r)return;const i=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()),o=i==null?void 0:i.getRowType(e);if(o=="group"){const s=this.visibleColsService.getColGroupAtLevel(r,e);return{headerRowIndex:e,column:s}}return{headerRowIndex:o==null?-1:e,column:r}}},tfi=class extends ct{constructor(){super(...arguments),this.beanName="localeService"}getLocaleTextFunc(){const e=this.gos.getCallback("getLocaleText");if(e)return(n,r,i)=>e({key:n,defaultValue:r,variableValues:i});const t=this.gos.get("localeText");return(n,r,i)=>{let o=t&&t[n];if(o&&i&&i.length){let s=0;for(;!(s>=i.length||o.indexOf("${variable}")===-1);)o=o.replace("${variable}",i[s++])}return o??r}}},nfi=class extends ct{constructor(){super(...arguments),this.beanName="apiEventService",this.syncEventListeners=new Map,this.asyncEventListeners=new Map,this.syncGlobalEventListeners=new Set,this.globalEventListenerPairs=new Map}postConstruct(){this.frameworkEventWrappingService=new L3e(this.getFrameworkOverrides())}addEventListener(e,t){const n=this.frameworkEventWrappingService.wrap(t),r=mH(this.gos)&&!fk.has(e),i=r?this.asyncEventListeners:this.syncEventListeners;i.has(e)||i.set(e,new Set),i.get(e).add(n),this.eventService.addEventListener(e,n,r)}removeEventListener(e,t){var o;const n=this.frameworkEventWrappingService.unwrap(t),r=this.asyncEventListeners.get(e),i=!!(r!=null&&r.delete(n));i||(o=this.syncEventListeners.get(e))==null||o.delete(n),this.eventService.removeEventListener(e,n,i)}addGlobalListener(e){const t=this.frameworkEventWrappingService.wrapGlobal(e);if(mH(this.gos)){const r=(o,s)=>{fk.has(o)&&t(o,s)},i=(o,s)=>{fk.has(o)||t(o,s)};this.globalEventListenerPairs.set(e,{syncListener:r,asyncListener:i}),this.eventService.addGlobalListener(r,!1),this.eventService.addGlobalListener(i,!0)}else this.syncGlobalEventListeners.add(t),this.eventService.addGlobalListener(t,!1)}removeGlobalListener(e){const t=this.frameworkEventWrappingService.unwrapGlobal(e);if(this.globalEventListenerPairs.has(t)){const{syncListener:r,asyncListener:i}=this.globalEventListenerPairs.get(t);this.eventService.removeGlobalListener(r,!1),this.eventService.removeGlobalListener(i,!0),this.globalEventListenerPairs.delete(e)}else this.syncGlobalEventListeners.delete(t),this.eventService.removeGlobalListener(t,!1)}destroyEventListeners(e,t){e.forEach((n,r)=>{n.forEach(i=>this.eventService.removeEventListener(r,i,t)),n.clear()}),e.clear()}destroyGlobalListeners(e,t){e.forEach(n=>this.eventService.removeGlobalListener(n,t)),e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncEventListeners,!1),this.destroyEventListeners(this.asyncEventListeners,!0),this.destroyGlobalListeners(this.syncGlobalEventListeners,!1),this.globalEventListenerPairs.forEach(({syncListener:e,asyncListener:t})=>{this.eventService.removeGlobalListener(e,!1),this.eventService.removeGlobalListener(t,!0)}),this.globalEventListenerPairs.clear()}},rfi=class extends ct{constructor(){super(...arguments),this.beanName="pageBoundsListener"}wireBeans(e){this.rowModel=e.rowModel,this.paginationService=e.paginationService,this.pageBoundsService=e.pageBoundsService}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventService.dispatchEvent({type:"paginationChanged",animate:(e==null?void 0:e.animate)??!1,newData:(e==null?void 0:e.newData)??!1,newPage:(e==null?void 0:e.newPage)??!1,newPageSize:(e==null?void 0:e.newPageSize)??!1,keepRenderedRows:(e==null?void 0:e.keepRenderedRows)??!1})}calculatePages(){this.paginationService?this.paginationService.calculatePages():this.pageBoundsService.calculateBounds(0,this.rowModel.getRowCount()-1)}},ifi=class extends ct{constructor(){super(...arguments),this.beanName="pageBoundsService",this.pixelOffset=0}wireBeans(e){this.rowModel=e.rowModel}getFirstRow(){return this.topRowBounds?this.topRowBounds.rowIndex:-1}getLastRow(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1}getCurrentPageHeight(){return ar(this.topRowBounds)||ar(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)}getCurrentPagePixelRange(){const e=this.topRowBounds?this.topRowBounds.rowTop:0,t=this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0;return{pageFirstPixel:e,pageLastPixel:t}}calculateBounds(e,t){this.topRowBounds=this.rowModel.getRowBounds(e),this.topRowBounds&&(this.topRowBounds.rowIndex=e),this.bottomRowBounds=this.rowModel.getRowBounds(t),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=t),this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=zt(this.topRowBounds)?this.topRowBounds.rowTop:0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},ofi=class extends ct{constructor(){super(),this.beanName="ariaAnnouncementService",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.updateAnnouncement=_a(this.updateAnnouncement.bind(this),200)}wireBeans(e){this.eGridDiv=e.eGridDiv}postConstruct(){const e=uo(this.gos),t=this.descriptionContainer=e.createElement("div");t.classList.add("ag-aria-description-container"),tft(t,"polite"),Ari(t,"additions text"),_ri(t,!0),this.eGridDiv.appendChild(t)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.isAlive()&&this.descriptionContainer&&(this.descriptionContainer.textContent=e)},50)}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(go(e),e.parentElement&&e.parentElement.removeChild(e)),this.descriptionContainer=null,this.eGridDiv=null,this.pendingAnnouncements.clear()}},sfi=class extends ct{constructor(){super(...arguments),this.beanName="columnAnimationService",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}wireBeans(e){this.ctrlsService=e.ctrlsService}postConstruct(){this.ctrlsService.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){this.active||this.gos.get("suppressColumnMoveAnimation")||this.gos.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&this.gridBodyCtrl.setColumnMovingCss(!1)})}flush(e,t){if(this.executeNextFuncs.length===0&&this.executeLaterFuncs.length===0){e(),t();return}const n=r=>{for(;r.length;){const i=r.pop();i&&i()}};this.getFrameworkOverrides().wrapIncoming(()=>{window.setTimeout(()=>{e(),n(this.executeNextFuncs)},0),window.setTimeout(()=>{t(),n(this.executeLaterFuncs)},200)})}},afi=class extends ct{constructor(){super(...arguments),this.beanName="columnHoverService"}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0}updateState(e){this.selectedColumns=e,this.eventService.dispatchEvent({type:"columnHoverChanged"})}},lfi=class extends ct{constructor(){super(...arguments),this.beanName="overlayService",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}wireBeans(e){this.userComponentFactory=e.userComponentFactory,this.rowModel=e.rowModel,this.columnModel=e.columnModel,this.ctrlsService=e.ctrlsService}postConstruct(){this.isClientSide=Li(this.gos);const e=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:e,rowDataUpdated:e,gridSizeChanged:this.onGridSizeChanged.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",e)}setOverlayWrapperComp(e){this.overlayWrapperComp=e,this.updateOverlayVisibility()}isVisible(){return this.state!==0&&!!this.overlayWrapperComp}isExclusive(){return this.state===1&&!!this.overlayWrapperComp}getOverlayWrapper(){return this.overlayWrapperComp}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos.get("loading");!e&&(e!==void 0||this.gos.get("suppressLoadingOverlay"))||this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1,!(this.gos.get("loading")||this.gos.get("suppressNoRowsOverlay"))&&this.doShowNoRowsOverlay()}hideOverlay(){if(this.showInitialOverlay=!1,this.gos.get("loading")){rt("Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.");return}this.doHideOverlay()}updateOverlayVisibility(){if(!this.overlayWrapperComp){this.state=0;return}let e=this.gos.get("loading");this.showInitialOverlay&&e===void 0&&!this.gos.get("suppressLoadingOverlay")&&(e=!this.gos.get("columnDefs")||!this.columnModel.isReady()||!this.gos.get("rowData")&&this.isClientSide),e?this.state!==1&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,this.rowModel.isEmpty()&&!this.gos.get("suppressNoRowsOverlay")&&this.isClientSide?this.state!==2&&this.doShowNoRowsOverlay():this.state!==0&&this.doHideOverlay())}doShowLoadingOverlay(){this.overlayWrapperComp&&(this.state=1,this.showOverlay(this.userComponentFactory.getLoadingOverlayCompDetails({}),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.overlayWrapperComp&&(this.state=2,this.showOverlay(this.userComponentFactory.getNoRowsOverlayCompDetails({}),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.overlayWrapperComp&&(this.state=0,this.overlayWrapperComp.hideOverlay(),this.updateExclusive())}showOverlay(e,t,n){var i;const r=e.newAgStackInstance();(i=this.overlayWrapperComp)==null||i.showOverlay(r,t,this.isExclusive(),n),this.refreshWrapperPadding()}updateExclusive(){const e=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==e&&this.eventService.dispatchEvent({type:"overlayExclusiveChanged"})}onGridSizeChanged(){this.refreshWrapperPadding()}refreshWrapperPadding(){if(!this.overlayWrapperComp)return;let e=0;if(this.state===2){const t=this.ctrlsService.get("gridHeaderCtrl");e=(t==null?void 0:t.getHeaderHeight())||0}else this.wrapperPadding!==0&&(e=0);this.wrapperPadding!==e&&(this.wrapperPadding=e,this.overlayWrapperComp.updateOverlayWrapperPaddingTop(e))}},cfi=class extends ct{constructor(){super(...arguments),this.beanName="rowCssClassCalculator"}wireBeans(e){this.stylingService=e.stylingService}getInitialRowClasses(e){const t=[];return zt(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),fLe(t,this.processClassesFromGridOptions(e.rowNode)),fLe(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&(e.pinned==="left"&&t.push("ag-cell-last-left-pinned"),e.pinned==="right"&&t.push("ag-cell-first-right-pinned")),t}processClassesFromGridOptions(e){const t=[],n=o=>{typeof o=="string"?t.push(o):Array.isArray(o)&&o.forEach(s=>t.push(s))},r=this.gos.get("rowClass");if(r){if(typeof r=="function")return rt("rowClass should not be a function, please use getRowClass instead"),[];n(r)}const i=this.gos.getCallback("getRowClass");if(i){const o={data:e.data,node:e,rowIndex:e.rowIndex},s=i(o);n(s)}return t}preProcessRowClassRules(e){const t=[];return this.processRowClassRules(e,n=>{t.push(n)},()=>{}),t}processRowClassRules(e,t,n){const r=this.gos.addGridCommonParams({data:e.data,node:e,rowIndex:e.rowIndex});this.stylingService.processClassRules(void 0,this.gos.get("rowClassRules"),r,t,n)}calculateRowLevel(e){return e.group?e.level:e.parent?e.parent.level+1:0}},ufi=class extends ct{constructor(){super(...arguments),this.beanName="rowContainerHeightService",this.scrollY=0,this.uiBodyHeight=0}wireBeans(e){this.ctrlsService=e.ctrlsService}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=kri(),this.gos.get("debug")&&mg("RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}isStretching(){return this.stretching}getDivStretchOffset(){return this.divStretchOffset}updateOffset(){if(!this.stretching)return;const t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,n=this.getUiBodyHeight();(t!==this.scrollY||n!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=n,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.gos.get("debug")&&mg(`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getUiContainerHeight(){return this.uiContainerHeight}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return t.bottom-t.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=this.modelHeight-this.getUiBodyHeight(),n=e/t;return this.maxScrollY*n}},dfi=class extends ct{constructor(){super(...arguments),this.beanName="rowNodeSorter"}wireBeans(e){this.valueService=e.valueService,this.columnModel=e.columnModel,this.showRowGroupColsService=e.showRowGroupColsService}postConstruct(){this.isAccentedSort=this.gos.get("accentedSort"),this.primaryColumnsSortGroups=ug(this.gos),this.addManagedPropertyListener("accentedSort",e=>this.isAccentedSort=e.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=ug(this.gos))}doFullSort(e,t){const n=(i,o)=>({currentPos:o,rowNode:i}),r=e.map(n);return r.sort(this.compareRowNodes.bind(this,t)),r.map(i=>i.rowNode)}compareRowNodes(e,t,n){const r=t.rowNode,i=n.rowNode;for(let o=0,s=e.length;o<s;o++){const a=e[o],l=a.sort==="desc",c=this.getValue(r,a.column),u=this.getValue(i,a.column);let f;const h=this.getComparator(a,r);if(h?f=h(c,u,r,i,l):f=ak(c,u,this.isAccentedSort),!isNaN(f)&&f!==0)return a.sort==="asc"?f:f*-1}return t.currentPos-n.currentPos}getComparator(e,t){const n=e.column,r=n.getColDef().comparator;if(r!=null)return r;if(!n.getColDef().showRowGroup)return;const i=!t.group&&n.getColDef().field;if(!i)return;const o=this.columnModel.getColDefCol(i);if(o)return o.getColDef().comparator}getValue(e,t){var r,i,o;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(t,e,!1,!1);if(e.rowGroupColumn===t){if(HQ(this.gos,this.columnModel.isPivotActive())){const l=(r=e.allLeafChildren)==null?void 0:r[0];return l?this.valueService.getValue(t,l,!1,!1):void 0}const a=(i=this.showRowGroupColsService)==null?void 0:i.getShowRowGroupCol(t.getId());return a?(o=e.groupData)==null?void 0:o[a.getId()]:void 0}if(!(e.group&&t.getColDef().showRowGroup))return this.valueService.getValue(t,e,!1,!1)}},V_=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}setInactive(){this.active=!1}isActive(){return this.active}depthFirstSearchChangedPath(e,t){if(e.children)for(let n=0;n<e.children.length;n++)this.depthFirstSearchChangedPath(e.children[n],t);t(e.rowNode)}depthFirstSearchEverything(e,t,n){if(e.childrenAfterGroup)for(let r=0;r<e.childrenAfterGroup.length;r++){const i=e.childrenAfterGroup[r];i.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[r],t,n):n&&t(i)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,n=!1){this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,n=0;for(;!this.mapToItems[t.id];){const r={rowNode:t,children:null};this.mapToItems[t.id]=r,n++,t=t.parent}return n}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let n=e;for(;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),t.forEach(r=>this.nodeIdsToColumns[n.id][r.getId()]=!0),n=n.parent}linkPathItems(e,t){let n=e;for(let r=0;r<t;r++){const i=this.mapToItems[n.id],o=this.mapToItems[n.parent.id];o.children||(o.children=[]),o.children.push(i),n=n.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const n=this.createPathItems(e);this.linkPathItems(e,n),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const n=this.nodeIdsToColumns[e.id];return t.filter(i=>n[i.getId()])}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const n=this.nodeIdsToColumns[e.id];return t.filter(i=>!n[i.getId()])}},Xht=class extends ct{constructor(){super(...arguments),this.beanName="selectionService",this.selectedNodes=new Map,this.selectionCtx=new Cli,this.rowSelectionMode=void 0}wireBeans(e){this.rowModel=e.rowModel,this.pageBoundsService=e.pageBoundsService}postConstruct(){const{gos:e,rowModel:t,onRowSelected:n}=this;this.selectionCtx.init(t),this.rowSelectionMode=hC(e),this.groupSelectsChildren=q0(e),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],()=>{const r=q0(e),i=hC(e);(r!==this.groupSelectsChildren||i!==this.rowSelectionMode)&&(this.groupSelectsChildren=r,this.rowSelectionMode=i,this.deselectAllRowNodes({source:"api"}))}),this.addManagedEventListeners({rowSelected:n.bind(this)})}destroy(){super.destroy(),this.resetNodes(),this.selectionCtx.reset()}isMultiSelect(){return this.rowSelectionMode==="multiRow"}overrideSelectionValue(e,t){if(!c6e(t))return e;const n=this.selectionCtx.getRoot();return n?n.isSelected()??!1:!0}setNodesSelected(e){var f;const{newValue:t,clearSelection:n,suppressFinishActions:r,rangeSelect:i,nodes:o,event:s,source:a}=e;if(o.length===0)return 0;if(o.length>1&&!this.isMultiSelect())return rt("cannot multi select unless selection mode is 'multiRow'"),0;const l=this.groupSelectsChildren&&e.groupSelectsFiltered===!0,c=o.map(h=>h.footer?h.sibling:h);if(i){if(c.length>1)return rt("cannot range select while selecting multiple rows"),0;const h=c[0],g=this.overrideSelectionValue(t,a);if(this.isMultiSelect()){if(this.selectionCtx.isInRange(h)){const p=this.selectionCtx.truncate(h);return g&&this.selectRange(p.discard,!1,a),this.selectRange(p.keep,g,a)}else if(this.selectionCtx.getRoot()!==h){const v=this.selectionCtx.extend(h,this.groupSelectsChildren);return g&&this.selectRange(v.discard,!1,a),this.selectRange(v.keep,g,a)}}}r||this.selectionCtx.setRoot(c[0]);let u=0;for(let h=0;h<c.length;h++){const g=c[h];l&&g.group||g.selectThisNode(t,s,a)&&u++,this.groupSelectsChildren&&((f=g.childrenAfterGroup)!=null&&f.length)&&(u+=this.selectChildren(g,t,l,a))}return r||(t&&(n||!this.isMultiSelect())&&(u+=this.clearOtherNodes(c[0],a)),u>0&&(this.updateGroupsFromChildrenSelections(a),this.dispatchSelectionChanged(a))),u}selectRange(e,t,n){let r=0;return e.forEach(i=>{if(i.group&&this.groupSelectsChildren)return;i.selectThisNode(t,void 0,n)&&r++}),r>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n)),r}selectChildren(e,t,n,r){const i=n?e.childrenAfterAggFilter:e.childrenAfterGroup;return ar(i)?0:this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:n,source:r,nodes:i})}getSelectedNodes(){const e=[];return this.selectedNodes.forEach(t=>{t&&e.push(t)}),e}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>{t&&t.data&&e.push(t.data)}),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((n,r)=>{n&&e(n)&&t.set(r,n)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsChildren||!Li(this.gos))return!1;const r=this.rowModel.getRootNode();t||(t=new V_(!0,r),t.setInactive());let i=!1;return t.forEachChangedNodeDepthFirst(o=>{if(o!==r){const s=o.calculateSelectedFromChildren();i=o.selectThisNode(s===null?!1:s,void 0,e)||i}}),i}clearOtherNodes(e,t){const n=new Map;let r=0;return this.selectedNodes.forEach(i=>{if(i&&i.id!==e.id){const o=this.selectedNodes.get(i.id);r+=o.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:t}),this.groupSelectsChildren&&i.parent&&n.set(i.parent.id,i.parent)}}),n.forEach(i=>{const o=i.calculateSelectedFromChildren();i.selectThisNode(o===null?!1:o,void 0,t)}),r}onRowSelected(e){const t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}syncInOldRowNode(e,t){if(zt(t)&&e.id!==t.id&&t){const r=t.id;this.selectedNodes.get(r)==e&&this.selectedNodes.set(t.id,t)}}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.setSelectedInitialValue(!0),this.selectedNodes.set(e.id,e)):e.setSelectedInitialValue(!1)}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){var e;(e=this.selectedNodes)==null||e.clear()}getBestCostNodeSelection(){if(!Li(this.gos))return;const t=this.rowModel.getTopLevelNodes();if(t===null)return;const n=[];function r(i){for(let o=0,s=i.length;o<s;o++){const a=i[o];if(a.isSelected())n.push(a);else{const l=a;l.group&&l.children&&r(l.children)}}}return r(t),n}isEmpty(){let e=0;return this.selectedNodes.forEach(t=>{t&&e++}),e===0}deselectAllRowNodes(e){const t=s=>s.selectThisNode(!1,void 0,r),n=Li(this.gos),{source:r,justFiltered:i,justCurrentPage:o}=e;if(o||i){if(!n){Mr("selecting just filtered only works when gridOptions.rowModelType='clientSide'");return}this.getNodesToSelect(i,o).forEach(t)}else this.selectedNodes.forEach(s=>{s&&t(s)}),this.reset(r);this.selectionCtx.reset(),n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(r),this.dispatchSelectionChanged(r)}getSelectedCounts(e,t){let n=0,r=0;const i=o=>{this.groupSelectsChildren&&o.group||(o.isSelected()?n++:o.selectable&&r++)};return this.getNodesToSelect(e,t).forEach(i),{selectedCount:n,notSelectedCount:r}}getSelectAllState(e,t){const{selectedCount:n,notSelectedCount:r}=this.getSelectedCounts(e,t);return n===0&&r===0?!1:n>0&&r>0?null:n>0}hasNodesToSelect(e=!1,t=!1){return this.getNodesToSelect(e,t).filter(n=>n.selectable).length>0}getNodesToSelect(e=!1,t=!1){this.validateSelectAllType();const n=[];if(t)return this.forEachNodeOnPage(i=>{if(!i.group){n.push(i);return}if(!i.expanded){const o=s=>{var a;n.push(s),(a=s.childrenAfterFilter)!=null&&a.length&&s.childrenAfterFilter.forEach(o)};o(i);return}this.groupSelectsChildren||n.push(i)}),n;const r=this.rowModel;return e?(r.forEachNodeAfterFilter(i=>{n.push(i)}),n):(r.forEachNode(i=>{n.push(i)}),n)}forEachNodeOnPage(e){const t=this.pageBoundsService.getFirstRow(),n=this.pageBoundsService.getLastRow();for(let r=t;r<=n;r++){const i=this.rowModel.getRow(r);i&&e(i)}}selectAllRowNodes(e){if(P3e(this.gos)&&!xx(this.gos))return rt("cannot multi select unless selection mode is 'multiRow'");this.validateSelectAllType();const{source:t,justFiltered:n,justCurrentPage:r}=e,i=this.getNodesToSelect(n,r);i.forEach(o=>o.selectThisNode(!0,void 0,t)),this.selectionCtx.setRoot(i[0]??null),this.selectionCtx.setEndRange(Dn(i)??null),Li(this.gos)&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t),this.dispatchSelectionChanged(t)}getSelectionState(){const e=[];return this.selectedNodes.forEach(t=>{t!=null&&t.id&&e.push(t.id)}),e.length?e:null}setSelectionState(e,t){if(!Array.isArray(e))return Mr("Invalid selection state. When using client-side row model, the state must conform to `string[]`.");const n=new Set(e),r=[];this.rowModel.forEachNode(i=>{n.has(i.id)&&r.push(i)}),this.setNodesSelected({newValue:!0,nodes:r,source:t})}dispatchSelectionChanged(e){this.eventService.dispatchEvent({type:"selectionChanged",source:e})}validateSelectAllType(){if(!Li(this.gos))throw new Error(`selectAll only available when rowModelType='clientSide', ie not ${this.rowModel.getType()}`)}},ffi=class extends ct{constructor(){super(...arguments),this.beanName="selectableService"}wireBeans(e){this.rowModel=e.rowModel,this.selectionService=e.selectionService}postConstruct(){this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>this.updateSelectable())}updateSelectableAfterGrouping(){this.updateSelectable(!0)}updateSelectable(e=!1){const{gos:t}=this,n=pI(t),r=_3e(t);if(!n||!r)return;const i=q0(t),o=Li(t)&&i,s=[],a=l=>{if(e&&!l.group)return;if(o&&l.group){const u=l.childrenAfterGroup.some(f=>f.selectable===!0);l.setRowSelectable(u,!0);return}const c=(r==null?void 0:r(l))??!0;l.setRowSelectable(c,!0),!c&&l.isSelected()&&s.push(l)};if(o){const l=this.rowModel;new V_(!1,l.getRootNode()).forEachChangedNodeDepthFirst(a,!0,!0)}else this.rowModel.forEachNode(a);s.length&&this.selectionService.setNodesSelected({nodes:s,newValue:!1,source:"selectableChanged"}),o&&this.selectionService instanceof Xht&&this.selectionService.updateGroupsFromChildrenSelections("selectableChanged")}},LLe=["asc","desc",null],hfi=class extends ct{constructor(){super(...arguments),this.beanName="sortController"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.showRowGroupColsService=e.showRowGroupColsService}progressSort(e,t,n){const r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)}setSortForColumn(e,t,n,r){t!=="asc"&&t!=="desc"&&(t=null);const i=ug(this.gos);let o=[e];if(i&&e.getColDef().showRowGroup){const l=this.funcColsService.getSourceColumnsForGroupColumn(e),c=l==null?void 0:l.filter(u=>u.isSortable());c&&(o=[e,...c])}o.forEach(l=>l.setSort(t,r));const s=(n||this.gos.get("alwaysMultiSort"))&&!this.gos.get("suppressMultiSort"),a=[];if(!s){const l=this.clearSortBarTheseColumns(o,r);a.push(...l)}this.updateSortIndex(e),a.push(...o),this.dispatchSortChangedEvents(r,a)}updateSortIndex(e){var a;const t=ug(this.gos),n=(a=this.showRowGroupColsService)==null?void 0:a.getShowRowGroupCol(e.getId()),r=t&&n||e,i=this.getColumnsWithSortingOrdered();this.columnModel.getAllCols().forEach(l=>l.setSortIndex(null));const o=i.filter(l=>t&&l.getColDef().showRowGroup?!1:l!==r);(r.getSort()?[...o,r]:o).forEach((l,c)=>{l.setSortIndex(c)})}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){const t=this.columnModel.getAllCols().filter(n=>!!n.getSort());return t&&t.length>0}dispatchSortChangedEvents(e,t){const n={type:"sortChanged",source:e};t&&(n.columns=t),this.eventService.dispatchEvent(n)}clearSortBarTheseColumns(e,t){const n=[];return this.columnModel.getAllCols().forEach(r=>{e.includes(r)||(r.getSort()&&n.push(r),r.setSort(void 0,t))}),n}getNextSortDirection(e){let t;if(e.getColDef().sortingOrder?t=e.getColDef().sortingOrder:this.gos.get("sortingOrder")?t=this.gos.get("sortingOrder"):t=LLe,!Array.isArray(t)||t.length<=0)return rt(`sortingOrder must be an array with at least one element, currently it's ${t}`),null;const n=t.indexOf(e.getSort()),r=n<0,i=n==t.length-1;let o;return r||i?o=t[0]:o=t[n+1],LLe.indexOf(o)<0?(rt("invalid sort type ",o),null):o}getIndexedSortMap(){let e=this.columnModel.getAllCols().filter(o=>!!o.getSort());if(this.columnModel.isPivotMode()){const o=ug(this.gos);e=e.filter(s=>{var u;const a=!!s.getAggFunc(),l=!s.isPrimary(),c=o?(u=this.showRowGroupColsService)==null?void 0:u.getShowRowGroupCol(s.getId()):s.getColDef().showRowGroup;return a||l||c})}const t=this.funcColsService.getRowGroupColumns().filter(o=>!!o.getSort()),n={};e.forEach((o,s)=>n[o.getId()]=s),e.sort((o,s)=>{const a=o.getSortIndex(),l=s.getSortIndex();if(a!=null&&l!=null)return a-l;if(a==null&&l==null){const c=n[o.getId()],u=n[s.getId()];return c>u?1:-1}else return l==null?-1:1});const r=ug(this.gos)&&!!t.length;r&&(e=[...new Set(e.map(o=>{var s;return((s=this.showRowGroupColsService)==null?void 0:s.getShowRowGroupCol(o.getId()))??o}))]);const i=new Map;return e.forEach((o,s)=>i.set(o,s)),r&&t.forEach(o=>{const s=this.showRowGroupColsService.getShowRowGroupCol(o.getId());i.set(o,i.get(s))}),i}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([e,t],[n,r])=>t-r).map(([e])=>e)}getSortModel(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),colId:e.getId()}))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),column:e}))}canColumnDisplayMixedSort(e){const t=ug(this.gos),n=!!e.getColDef().showRowGroup;return t&&n}getDisplaySortForColumn(e){const t=this.funcColsService.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!(t!=null&&t.length))return e.getSort();const r=e.getColDef().field!=null||!!e.getColDef().valueGetter?[e,...t]:t,i=r[0].getSort();return r.every(s=>s.getSort()==i)?i:"mixed"}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}},gfi=class extends ct{constructor(){super(...arguments),this.beanName="syncService",this.waitingForColumns=!1}wireBeans(e){this.ctrlsService=e.ctrlsService,this.columnModel=e.columnModel,this.rowModel=e.rowModel}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.ctrlsService.whenReady(this,()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){this.columnModel.setColumnDefs(e??[],"gridInitializing"),this.rowModel.start()}gridReady(){this.eventService.dispatchEvent({type:"gridReady"});const e=this.gos.isModuleRegistered("@ag-grid-enterprise/core");this.gos.get("debug")&&mg(`initialised successfully, enterprise = ${e}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.columnModel.setColumnDefs(t,y8(e.source))}}},pfi="paste",mfi=class extends ct{constructor(){super(...arguments),this.beanName="changeDetectionService"}wireBeans(e){this.rowModel=e.rowModel,this.rowRenderer=e.rowRenderer}postConstruct(){Li(this.gos)&&(this.clientSideRowModel=this.rowModel),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){e.source!==pfi&&this.doChangeDetection(e.node,e.column)}doChangeDetection(e,t){if(this.gos.get("suppressChangeDetection"))return;const n=[e];if(this.clientSideRowModel&&!e.isRowPinned()){const r=this.gos.get("aggregateOnlyChangedColumns"),i=new V_(r,this.clientSideRowModel.getRootNode());i.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(i),i.forEachChangedNodeDepthFirst(o=>{n.push(o)})}this.rowRenderer.refreshCells({rowNodes:n})}},vfi=class extends ct{constructor(){super(...arguments),this.beanName="expressionService",this.expressionToFunctionCache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);Mr("value should be either a string or a function",e)}evaluateExpression(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.getValue,t.column,t.columnGroup)}catch(n){return mg("Processing of the expression failed"),mg("Expression = ",e),mg("Params = ",t),mg("Exception = ",n),null}}createExpressionFunction(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];const t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n}createFunctionBody(e){return e.indexOf("return")>=0?e:"return "+e+";"}},Cfi=class extends ct{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){this.active=this.gos.get("valueCache"),this.neverExpires=this.gos.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)}getValue(e,t){if(!(!this.active||e.__cacheVersion!==this.cacheVersion))return e.__cacheData[t]}},yfi=class extends ct{constructor(){super(...arguments),this.beanName="valueService",this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionService=e.expressionService,this.columnModel=e.columnModel,this.valueCache=e.valueCache,this.dataTypeService=e.dataTypeService}postConstruct(){this.initialised||this.init()}init(){this.isSsrm=ml(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;const e=n=>this.callColumnCellValueChangedHandler(n),t=mH(this.gos);this.eventService.addEventListener("cellValueChanged",e,t),this.addDestroyFunc(()=>this.eventService.removeEventListener("cellValueChanged",e,t)),this.addManagedPropertyListener("treeData",n=>this.isTreeData=n.currentValue)}getValueForDisplay(e,t){const n=t.leafGroup&&this.columnModel.isPivotMode(),r=t.group&&t.expanded&&!t.footer&&!n,i=this.gos.get("groupSuppressBlankHeader");if(!r||i)return this.getValue(e,t);let o=!1;const s=this.gos.get("groupTotalRow")??this.gos.get("groupIncludeFooter");typeof s!="function"?o=!!s:o=!!(this.gos.getCallback("groupTotalRow")??this.gos.getCallback("groupIncludeFooter"))({node:this});const a=r&&o;return this.getValue(e,t,!1,a)}getValue(e,t,n=!1,r=!1){if(this.initialised||this.init(),!t)return;const i=e.getColDef(),o=i.field,s=e.getColId(),a=t.data;let l;const c=t.groupData&&t.groupData[s]!==void 0,u=!r&&t.aggData&&t.aggData[s]!==void 0,f=this.isSsrm&&r&&!!e.getColDef().aggFunc,h=this.isSsrm&&t.footer&&t.field&&(e.getColDef().showRowGroup===!0||e.getColDef().showRowGroup===t.field);if(n&&i.filterValueGetter?l=this.executeFilterValueGetter(i.filterValueGetter,a,e,t):this.isTreeData&&u?l=t.aggData[s]:this.isTreeData&&i.valueGetter?l=this.executeValueGetter(i.valueGetter,a,e,t):this.isTreeData&&o&&a?l=CO(a,o,e.isFieldContainsDots()):c?l=t.groupData[s]:u?l=t.aggData[s]:i.valueGetter?l=this.executeValueGetter(i.valueGetter,a,e,t):h?l=CO(a,t.field,e.isFieldContainsDots()):o&&a&&!f&&(l=CO(a,o,e.isFieldContainsDots())),this.cellExpressions&&typeof l=="string"&&l.indexOf("=")===0){const g=l.substring(1);l=this.executeValueGetter(g,a,e,t)}if(l==null){const g=this.getOpenedGroup(t,e);if(g!=null)return g}return l}parseValue(e,t,n,r){const i=e.getColDef(),o=i.valueParser;if(zt(o)){const s=this.gos.addGridCommonParams({node:t,data:t==null?void 0:t.data,oldValue:r,newValue:n,colDef:i,column:e});return typeof o=="function"?o(s):this.expressionService.evaluate(o,s)}return n}getDeleteValue(e,t){return zt(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay(e,t))??null:null}formatValue(e,t,n,r,i=!0){let o=null,s;const a=e.getColDef();if(r?s=r:i&&(s=a.valueFormatter),s){const l=this.gos.addGridCommonParams({value:n,node:t,data:t?t.data:null,colDef:a,column:e});typeof s=="function"?o=s(l):o=this.expressionService.evaluate(s,l)}else if(a.refData)return a.refData[n]||"";return o==null&&Array.isArray(n)&&(o=n.join(", ")),o}getOpenedGroup(e,t){if(!this.gos.get("showOpenedGroup")||!t.getColDef().showRowGroup)return;const r=t.getColDef().showRowGroup;let i=e.parent;for(;i!=null;){if(i.rowGroupColumn&&(r===!0||r===i.rowGroupColumn.getColId()))return i.key;i=i.parent}}setValue(e,t,n,r){const i=this.columnModel.getColDefCol(t);if(!e||!i)return!1;ar(e.data)&&(e.data={});const{field:o,valueSetter:s}=i.getColDef();if(ar(o)&&ar(s))return rt("you need either field or valueSetter set on colDef for editing to work"),!1;if(this.dataTypeService&&!this.dataTypeService.checkType(i,n))return rt("Data type of the new value does not match the cell data type of the column"),!1;const a=this.gos.addGridCommonParams({node:e,data:e.data,oldValue:this.getValue(i,e),newValue:n,colDef:i.getColDef(),column:i});a.newValue=n;let l;if(zt(s)?typeof s=="function"?l=s(a):l=this.expressionService.evaluate(s,a):l=this.setValueUsingField(e.data,o,n,i.isFieldContainsDots()),l===void 0&&(l=!0),!l)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged();const c=this.getValue(i,e);return this.eventService.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:a.column,colDef:a.colDef,data:e.data,node:e,oldValue:a.oldValue,newValue:c,value:c,source:r}),!0}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.getFrameworkOverrides().wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,n,r){if(!t)return!1;let i=!1;if(!r)i=e[t]===n,i||(e[t]=n);else{const o=t.split(".");let s=e;for(;o.length>0&&s;){const a=o.shift();o.length===0?(i=s[a]===n,i||(s[a]=n)):s=s[a]}}return!i}executeFilterValueGetter(e,t,n,r){const i=this.gos.addGridCommonParams({data:t,node:r,column:n,colDef:n.getColDef(),getValue:this.getValueCallback.bind(this,r)});return typeof e=="function"?e(i):this.expressionService.evaluate(e,i)}executeValueGetter(e,t,n,r){const i=n.getColId(),o=this.valueCache.getValue(r,i);if(o!==void 0)return o;const s=this.gos.addGridCommonParams({data:t,node:r,column:n,colDef:n.getColDef(),getValue:this.getValueCallback.bind(this,r)});let a;return typeof e=="function"?a=e(s):a=this.expressionService.evaluate(e,s),this.valueCache.setValue(r,i,a),a}getValueCallback(e,t){const n=this.columnModel.getColDefCol(t);return n?this.getValue(n,e):null}getKeyForNode(e,t){const n=this.getValue(e,t),r=e.getColDef().keyCreator;let i=n;if(r){const o=this.gos.addGridCommonParams({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data});i=r(o)}return typeof i=="string"||i==null||(i=String(i),i==="[object Object]"&&rt("a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")),i}},u6e=class c8{static applyGlobalGridOptions(t){if(!c8.gridOptions)return t;let n={};return nl(n,c8.gridOptions,!0,!0),c8.mergeStrategy==="deep"?nl(n,t,!0,!0):n={...n,...t},c8.gridOptions.context&&(n.context=c8.gridOptions.context),t.context&&(c8.mergeStrategy==="deep"&&n.context&&nl(t.context,n.context,!0,!0),n.context=t.context),n}};u6e.gridOptions=void 0;u6e.mergeStrategy="shallow";var Qht=u6e;function bfi(e){var t;return(t=Qht.gridOptions)==null?void 0:t[e]}function Sfi(e,t,n){if(!t)return Mr("No gridOptions provided to createGrid"),{};const r=new Zht().create(e,t,i=>{const o=new Yli(e);i.createBean(o)},void 0,n);if(!Object.isFrozen(t)&&!(n!=null&&n.frameworkOverrides)){const i="https://ag-grid.com/javascript-data-grid/grid-interface/#grid-api";Object.defineProperty(t,"api",{get:()=>{Mr(`gridOptions.api is no longer supported. See ${i}.`)},configurable:!0})}return r}var wfi=1,Zht=class{create(e,t,n,r,i){const o=Qht.applyGlobalGridOptions(t),s=Zdi(o),a=s.gridId??String(wfi++),l=this.getRegisteredModules(i,a),c=this.createBeansList(s.rowModelType,l,a),u=this.createProvidedBeans(e,s,i);if(!c){Mr("Failed to create grid.");return}const f={providedBeanInstances:u,beanClasses:c,gridId:a,beanInitComparator:Nli,beanDestroyComparator:kli,derivedBeans:[Tli]},h=new Nii(f);return this.registerModuleUserComponents(h,l),this.registerControllers(h,l),this.registerModuleApiFunctions(h,l),n(h),h.getBean("syncService").start(),r&&r(h),h.getBean("gridApi")}registerControllers(e,t){const n=e.getBean("ctrlsFactory");t.forEach(r=>{r.controllers&&r.controllers.forEach(i=>n.register(i))})}getRegisteredModules(e,t){const n=e?e.modules:null,r=Pf.__getRegisteredModules(t),i=[],o={},s=(a,l,c)=>{(f=>{o[f.moduleName]||(o[f.moduleName]=!0,i.push(f),Pf.__register(f,a,c))})(l),l.dependantModules&&l.dependantModules.forEach(f=>s(a,f,c))};return s(!!(n!=null&&n.length)||!Pf.__isPackageBased(),Ydi,void 0),n&&n.forEach(a=>s(!0,a,t)),r&&r.forEach(a=>s(!Pf.__isPackageBased(),a,void 0)),i}registerModuleUserComponents(e,t){const n=this.extractModuleEntity(t,i=>i.userComponents?i.userComponents:[]),r=e.getBean("userComponentRegistry");n.forEach(({name:i,classImp:o,params:s})=>{r.registerDefaultComponent(i,o,s)})}registerModuleApiFunctions(e,t){const n=e.getBean("apiFunctionService");t.forEach(r=>{const i=r.apiFunctions;i&&Object.keys(i).forEach(s=>{n==null||n.addFunction(s,i[s])})})}createProvidedBeans(e,t,n){let r=n?n.frameworkOverrides:null;ar(r)&&(r=new Fht);const i={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,globalSyncEventListener:n?n.globalSyncEventListener:null,frameworkOverrides:r};return n&&n.providedBeanInstances&&Object.assign(i,n.providedBeanInstances),i}createBeansList(e="clientSide",t,n){const r=t.filter(l=>!l.rowModel||l.rowModel===e),i={clientSide:"@ag-grid-community/client-side-row-model",infinite:"@ag-grid-community/infinite-row-model",serverSide:"@ag-grid-enterprise/server-side-row-model",viewport:"@ag-grid-enterprise/viewport-row-model"};if(!i[e]){Mr("Could not find row model for rowModelType = ",e);return}if(!Pf.__assertRegistered(i[e],`rowModelType = '${e}'`,n))return;const o=[Vli,Hli,efi,Xdi,Oli,vii,Dli,Lli,Eai,Mft,ufi,wai,tfi,gli,Bii,xri,Uli,Jdi,xli,Xht,dri,Qoi,ifi,rfi,fli,vfi,uri,Sai,Cfi,yfi,uli,xai,kii,qli,bai,Gli,Rli,yli,yai,hfi,afi,sfi,ffi,mfi,Rai,Ili,cfi,dfi,Bli,Kli,jli,zli,gfi,lfi,Oht,nfi,ofi,$ai,gri,Mli,pri,fri,Pli,_li,wri,hri,bri,Ali,Sri,ori],s=this.extractModuleEntity(r,l=>l.beans?l.beans:[]);o.push(...s);const a=[];return o.forEach(l=>{a.indexOf(l)<0&&a.push(l)}),a}extractModuleEntity(e,t){return[].concat(...e.map(t))}},Jht=class extends ct{constructor(){super(...arguments),this.beanName="rowModelHelperService"}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){const e=this.rowModel;switch(e.getType()){case"clientSide":this.clientSideRowModel=e;break;case"infinite":this.infiniteRowModel=e;break;case"serverSide":this.serverSideRowModel=e;break}}getClientSideRowModel(){return this.clientSideRowModel}getInfiniteRowModel(){return this.infiniteRowModel}getServerSideRowModel(){return this.serverSideRowModel}};function xfi(e){e.expansionService.expandAll(!0)}function Efi(e){e.expansionService.expandAll(!1)}function Rfi(e){var r,i;const t=(r=e.rowModelHelperService)==null?void 0:r.getClientSideRowModel(),n=(i=e.rowModelHelperService)==null?void 0:i.getServerSideRowModel();t?t.onRowHeightChanged():n&&n.onRowHeightChanged()}function $fi(e,t,n){var o,s;const r=(o=e.rowModelHelperService)==null?void 0:o.getServerSideRowModel();if(r){if(e.funcColsService.isRowGroupEmpty()){r.setRowCount(t,n);return}Mr("setRowCount cannot be used while using row grouping.");return}const i=(s=e.rowModelHelperService)==null?void 0:s.getInfiniteRowModel();if(i){i.setRowCount(t,n);return}}function Ofi(e){var t;return((t=e.rowNodeBlockLoader)==null?void 0:t.getBlockState())??{}}function Tfi(e){return e.rowModel.isLastRowIndexKnown()}var egt={version:ur,moduleName:"@ag-grid-community/csrm-ssrm-shared-api",apiFunctions:{expandAll:xfi,collapseAll:Efi,onRowHeightChanged:Rfi}},Ifi={version:ur,moduleName:"@ag-grid-community/ssrm-infinite-shared-api",apiFunctions:{setRowCount:$fi,getCacheBlockState:Ofi,isLastRowIndexKnown:Tfi}},Mfi=class{wrap(e,t,n=[],r){const i=this.createWrapper(e,r);return t.forEach(o=>{this.createMethod(i,o,!0)}),n.forEach(o=>{this.createMethod(i,o,!1)}),i}createMethod(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))}createMethodProxy(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&rt("Framework component is missing the method "+t+"()"),null)}}},hE=typeof global>"u"?{}:global;hE.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement;hE.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement;hE.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement;hE.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement;hE.Node=typeof Node>"u"?{}:Node;hE.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var Zl=ce.createContext({}),G_=(e,t,n,r)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const o=e.newAgStackInstance();if(o==null)return;let s,a,l=!1;return o.then(c=>{if(l){t.destroyBean(c);return}s=c,a=s.getGui(),n.appendChild(a),FLe(r,s)}),()=>{var c;l=!0,s&&((c=a==null?void 0:a.parentElement)==null||c.removeChild(a),t.destroyBean(s),r&&FLe(r,void 0))}},FLe=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const n=e;n.current=t}},Qh=(...e)=>e.filter(n=>n!=null&&n!=="").join(" "),Nf=class tgt{constructor(...t){this.classesMap={},t.forEach(n=>{this.classesMap[n]=!0})}setClass(t,n){if(!!this.classesMap[t]==n)return this;const i=new tgt;return i.classesMap={...this.classesMap},i.classesMap[t]=n,i}toString(){return Object.keys(this.classesMap).filter(n=>this.classesMap[n]).join(" ")}},gE=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,n=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===n()},CNe,vfe=(CNe=ce.version)==null?void 0:CNe.split(".")[0],Pfi=vfe==="16"||vfe==="17";function _fi(){return vfe==="19"}var hk=!1;function Afi(e){return hk||setTimeout(()=>hk=!1,0),hk=!0,e()}var d6e=(e,t)=>{!Pfi&&e&&!hk?Hw.flushSync(t):t()};function f6e(e,t,n){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(n||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const r=[],i=[],o=new Map,s=new Map;for(let a=0;a<t.length;a++){const l=t[a];s.set(l.instanceId,l)}for(let a=0;a<e.length;a++){const l=e[a];o.set(l.instanceId,l),s.has(l.instanceId)&&r.push(l)}for(let a=0;a<t.length;a++){const l=t[a],c=l.instanceId;o.has(c)||i.push(l)}return r.length===e.length&&i.length===0?e:r.length===0&&i.length===t.length?t:r.length===0?i:i.length===0?r:[...r,...i]}var ngt=d.forwardRef((e,t)=>{var I;const{ctrlsFactory:n,context:r}=d.useContext(Zl),i=d.useRef(null),o=d.useRef(null),s=d.useRef(null),a=d.useRef(null),l=d.useRef(null),c=d.useRef(),[u,f]=d.useState(),[h,g]=d.useState(),[p,m]=d.useState(),[v,C]=d.useState(()=>new Nf),[y,b]=d.useState(()=>new Nf("ag-hidden")),[S,w]=d.useState(()=>new Nf("ag-hidden")),[x,E]=d.useState(()=>new Nf("ag-invisible"));d.useImperativeHandle(t,()=>({refresh(){return!1}})),d.useLayoutEffect(()=>G_(u,r,o.current),[u]);const R=d.useCallback(A=>{if(i.current=A,!A){c.current=r.destroyBean(c.current);return}const N={setInnerRenderer:(z,j)=>{f(z),m(j)},setChildCount:z=>g(z),addOrRemoveCssClass:(z,j)=>C(W=>W.setClass(z,j)),setContractedDisplayed:z=>w(j=>j.setClass("ag-hidden",!z)),setExpandedDisplayed:z=>b(j=>j.setClass("ag-hidden",!z)),setCheckboxVisible:z=>E(j=>j.setClass("ag-invisible",!z))},B=n.getInstance("groupCellRendererCtrl");B&&(c.current=r.createBean(B),c.current.init(N,A,s.current,a.current,l.current,ngt,e))},[]),O=d.useMemo(()=>`ag-cell-wrapper ${v.toString()}`,[v]),T=d.useMemo(()=>`ag-group-expanded ${y.toString()}`,[y]),M=d.useMemo(()=>`ag-group-contracted ${S.toString()}`,[S]),_=d.useMemo(()=>`ag-group-checkbox ${x.toString()}`,[x]),F=u&&u.componentFromFramework,D=F?u.componentClass:void 0,k=u==null&&p!=null,L=Wl(p,!0);return ce.createElement("span",{className:O,ref:R,...e.colDef?{}:{role:(I=c.current)==null?void 0:I.getCellAriaRole()}},ce.createElement("span",{className:T,ref:a}),ce.createElement("span",{className:M,ref:l}),ce.createElement("span",{className:_,ref:s}),ce.createElement("span",{className:"ag-group-value",ref:o},k&&ce.createElement(ce.Fragment,null,L),F&&ce.createElement(D,{...u.params})),ce.createElement("span",{className:"ag-group-child-count"},h))}),NLe=ngt,h6e=d.createContext({setMethods:()=>{}}),Dfi=e=>{const{initialProps:t,addUpdateCallback:n,CustomComponentClass:r,setMethods:i}=e,[{key:o,...s},a]=d.useState(t);return d.useEffect(()=>{n(l=>a(l))},[]),ce.createElement(h6e.Provider,{value:{setMethods:i}},ce.createElement(r,{key:o,...s}))},Lfi=d.memo(Dfi),Ffi=0;function kLe(){return`agPortalKey_${++Ffi}`}var rgt=class{constructor(e,t,n,r){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=n,this.suppressFallbackMethods=!!r,this.statelessComponent=this.isStateless(this.reactComponent),this.key=kLe(),this.portalKey=kLe(),this.instanceCreated=this.isStatelessComponent()?xr.resolve(!1):new xr(i=>{this.resolveInstanceCreated=i})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n}addParentContainerStyleAndClasses(){this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&(rt('Since v31.1 "getReactContainerStyle" is deprecated. Apply styling directly to ".ag-react-container" if needed.'),Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle())),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&(rt('Since v31.1 "getReactContainerClasses" is deprecated. Apply styling directly to ".ag-react-container" if needed.'),this.componentInstance.getReactContainerClasses().forEach(t=>this.eParentElement.classList.add(t))))}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const n=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!n){setTimeout(()=>this.callMethod(e,t));return}const r=n[e];if(r)return r.apply(n,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new xr(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{var n;this.componentInstance=t,this.addParentContainerStyleAndClasses(),(n=this.resolveInstanceCreated)==null||n.call(this,!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=fo.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return d.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const n=this[`${e}Component`];if(!this.suppressFallbackMethods&&n)return n.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function g6e(e,t,n){e.forEach(r=>{const i=t[r];i&&(n[r]=i)})}var l1=class extends rgt{constructor(){super(...arguments),this.awaitUpdateCallback=new xr(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=Lfi}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:n=>this.setMethods(n),addUpdateCallback:n=>{this.updateCallback=()=>(n(this.getProps()),new xr(r=>{setTimeout(()=>{r()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,g6e(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new xr(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},Nfi=class extends l1{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},kfi=class extends l1{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},zfi=class extends l1{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:n,shake:r}=this;return e.label=t,e.icon=n,e.shake=r,e}},Bfi=class extends l1{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterChangedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getOptionalMethods(){return["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){var t;this.expectingNewMethods===!1&&this.hasBeenActive&&((t=this.providedMethods)==null?void 0:t.doesFilterPass)!==(e==null?void 0:e.doesFilterPass)&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e)}updateModel(e){this.setModel(e).then(()=>this.sourceParams.filterChangedCallback())}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,delete e.filterModifiedCallback,delete e.valueGetter,e}};function igt(e,t){e.parentFilterInstance(n=>{(n.setModel(t)||xr.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var Hfi=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=n=>this.updateModel(n)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){g6e(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),igt(this.floatingFilterParams,e)}},jfi=class extends l1{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),igt(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},Vfi=class extends l1{refresh(e){this.sourceParams=e,this.refreshProps()}},Gfi=class extends l1{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},Wfi=class extends l1{refresh(e){this.sourceParams=e,this.refreshProps()}},Ufi=class extends l1{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},qfi=class extends l1{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function p6e(){rt("As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.")}var Kfi=1e3,Yfi=class{constructor(e,t,n){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=n||Kfi}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,n){this.portals=[...this.portals,e],this.waitForInstance(t,n),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,n=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return;window.setTimeout(()=>{this.waitForInstance(e,t,n)})}}},Xfi=({ctrl:e})=>{const t=e.isAlive(),{context:n}=d.useContext(Zl),r=t?e.getColId():void 0,[i,o]=d.useState(),s=d.useRef(),a=d.useRef(null),l=d.useRef(null),c=d.useRef(null),u=d.useRef(),f=d.useRef();t&&!f.current&&(f.current=new B_(()=>a.current));const h=d.useCallback(v=>{var b;if(a.current=v,s.current=v?n.createBean(new uE):n.destroyBean(s.current),!v||!t)return;const C={setWidth:S=>{a.current&&(a.current.style.width=S)},addOrRemoveCssClass:(S,w)=>f.current.addOrRemoveCssClass(S,w),setAriaSort:S=>{a.current&&(S?aft(a.current,S):lft(a.current))},setUserCompDetails:S=>o(S),getUserCompInstance:()=>u.current||void 0};e.setComp(C,v,l.current,c.current,s.current);const y=e.getSelectAllGui();(b=l.current)==null||b.insertAdjacentElement("afterend",y),s.current.addDestroyFunc(()=>y.remove())},[]);d.useLayoutEffect(()=>G_(i,n,c.current,u),[i]),d.useEffect(()=>{e.setDragSource(a.current)},[i]);const g=d.useMemo(()=>!!((i==null?void 0:i.componentFromFramework)&&gE(i.componentClass)),[i]),p=i&&i.componentFromFramework,m=i&&i.componentClass;return ce.createElement("div",{ref:h,className:"ag-header-cell","col-id":r,role:"columnheader"},ce.createElement("div",{ref:l,className:"ag-header-cell-resize",role:"presentation"}),ce.createElement("div",{ref:c,className:"ag-header-cell-comp-wrapper",role:"presentation"},p&&g&&ce.createElement(m,{...i.params}),p&&!g&&ce.createElement(m,{...i.params,ref:u})))},Qfi=d.memo(Xfi),Zfi=({ctrl:e})=>{const{context:t,gos:n}=d.useContext(Zl),[r,i]=d.useState(()=>new Nf("ag-header-cell","ag-floating-filter")),[o,s]=d.useState(()=>new Nf),[a,l]=d.useState(()=>new Nf("ag-floating-filter-button","ag-hidden")),[c,u]=d.useState("false"),[f,h]=d.useState(),[,g]=d.useState(1),p=d.useRef(),m=d.useRef(null),v=d.useRef(null),C=d.useRef(null),y=d.useRef(null),b=d.useRef(),S=d.useRef(),w=L=>{L!=null&&b.current&&b.current(L)},x=d.useCallback(L=>{if(m.current=L,p.current=L?t.createBean(new uE):t.destroyBean(p.current),!L)return;S.current=new xr(A=>{b.current=A});const I={addOrRemoveCssClass:(A,N)=>i(B=>B.setClass(A,N)),addOrRemoveBodyCssClass:(A,N)=>s(B=>B.setClass(A,N)),setButtonWrapperDisplayed:A=>{l(N=>N.setClass("ag-hidden",!A)),u(A?"false":"true")},setWidth:A=>{m.current&&(m.current.style.width=A)},setCompDetails:A=>h(A),getFloatingFilterComp:()=>S.current?S.current:null,setMenuIcon:A=>{var N;return(N=y.current)==null?void 0:N.appendChild(A)}};e.setComp(I,L,y.current,v.current,p.current)},[]);d.useLayoutEffect(()=>G_(f,t,v.current,w),[f]);const E=d.useMemo(()=>r.toString(),[r]),R=d.useMemo(()=>o.toString(),[o]),O=d.useMemo(()=>a.toString(),[a]),T=d.useMemo(()=>!!(f&&f.componentFromFramework&&gE(f.componentClass)),[f]),M=d.useMemo(()=>n.get("reactiveCustomComponents"),[]),_=d.useMemo(()=>{if(f)if(M){const L=new Hfi(f.params,()=>g(I=>I+1));return w(L),L}else f.componentFromFramework&&p6e()},[f]),F=_==null?void 0:_.getProps(),D=f&&f.componentFromFramework,k=f&&f.componentClass;return ce.createElement("div",{ref:x,className:E,role:"gridcell"},ce.createElement("div",{ref:v,className:R,role:"presentation"},D&&!M&&ce.createElement(k,{...f.params,ref:T?()=>{}:w}),D&&M&&ce.createElement(h6e.Provider,{value:{setMethods:L=>_.setMethods(L)}},ce.createElement(k,{...F}))),ce.createElement("div",{ref:C,"aria-hidden":c,className:O,role:"presentation"},ce.createElement("button",{ref:y,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},Jfi=d.memo(Zfi),ehi=({ctrl:e})=>{const{context:t}=d.useContext(Zl),[n,r]=d.useState(()=>new Nf),[i,o]=d.useState(()=>new Nf),[s,a]=d.useState("false"),[l,c]=d.useState(),[u,f]=d.useState(),h=d.useMemo(()=>e.getColId(),[]),g=d.useRef(),p=d.useRef(null),m=d.useRef(null),v=d.useRef(null),C=d.useRef(),y=d.useCallback(R=>{if(p.current=R,g.current=R?t.createBean(new uE):t.destroyBean(g.current),!R)return;const O={setWidth:T=>{p.current&&(p.current.style.width=T)},addOrRemoveCssClass:(T,M)=>r(_=>_.setClass(T,M)),setHeaderWrapperHidden:T=>{const M=v.current;M&&(T?M.style.setProperty("display","none"):M.style.removeProperty("display"))},setHeaderWrapperMaxHeight:T=>{const M=v.current;M&&(T!=null?M.style.setProperty("max-height",`${T}px`):M.style.removeProperty("max-height"),M.classList.toggle("ag-header-cell-comp-wrapper-limited-height",T!=null))},setUserCompDetails:T=>f(T),setResizableDisplayed:T=>{o(M=>M.setClass("ag-hidden",!T)),a(T?"false":"true")},setAriaExpanded:T=>c(T),getUserCompInstance:()=>C.current||void 0};e.setComp(O,R,m.current,v.current,g.current)},[]);d.useLayoutEffect(()=>G_(u,t,v.current),[u]),d.useEffect(()=>{p.current&&e.setDragSource(p.current)},[u]);const b=d.useMemo(()=>!!((u==null?void 0:u.componentFromFramework)&&gE(u.componentClass)),[u]),S=d.useMemo(()=>"ag-header-group-cell "+n.toString(),[n]),w=d.useMemo(()=>"ag-header-cell-resize "+i.toString(),[i]),x=u&&u.componentFromFramework,E=u&&u.componentClass;return ce.createElement("div",{ref:y,className:S,"col-id":h,role:"columnheader","aria-expanded":l},ce.createElement("div",{ref:v,className:"ag-header-cell-comp-wrapper",role:"presentation"},x&&b&&ce.createElement(E,{...u.params}),x&&!b&&ce.createElement(E,{...u.params,ref:C})),ce.createElement("div",{ref:m,"aria-hidden":s,className:w}))},thi=d.memo(ehi),nhi=({ctrl:e})=>{const{context:t}=d.useContext(Zl),{topOffset:n,rowHeight:r}=d.useMemo(()=>e.getTopAndHeight(),[]),i=e.getAriaRowIndex(),o=e.getHeaderRowClass(),[s,a]=d.useState(()=>r+"px"),[l,c]=d.useState(()=>n+"px"),u=d.useRef(null),f=d.useRef(null),[h,g]=d.useState(()=>e.getHeaderCtrls()),p=d.useRef(),m=d.useRef(null),v=d.useCallback(b=>{if(m.current=b,p.current=b?t.createBean(new uE):t.destroyBean(p.current),!b)return;const S={setHeight:w=>a(w),setTop:w=>c(w),setHeaderCtrls:(w,x,E)=>{f.current=u.current,u.current=w;const R=f6e(f.current,w,x);R!==f.current&&d6e(E,()=>g(R))},setWidth:w=>{m.current&&(m.current.style.width=w)}};e.setComp(S,p.current,!1)},[]),C=d.useMemo(()=>({height:s,top:l}),[s,l]),y=d.useCallback(b=>{switch(e.getType()){case dfe.COLUMN_GROUP:return ce.createElement(thi,{ctrl:b,key:b.instanceId});case dfe.FLOATING_FILTER:return ce.createElement(Jfi,{ctrl:b,key:b.instanceId});default:return ce.createElement(Qfi,{ctrl:b,key:b.instanceId})}},[]);return ce.createElement("div",{ref:v,className:o,role:"row",style:C,"aria-rowindex":i},h.map(y))},rhi=d.memo(nhi),ihi=({pinned:e})=>{const[t,n]=d.useState(!0),[r,i]=d.useState([]),{context:o}=d.useContext(Zl),s=d.useRef(null),a=d.useRef(null),l=d.useRef(),c=e==="left",u=e==="right",f=!c&&!u,h=d.useCallback(m=>{if(s.current=m,l.current=m?o.createBean(new dht(e)):o.destroyBean(l.current),!m)return;const v={setDisplayed:n,setCtrls:C=>i(C),setCenterWidth:C=>{a.current&&(a.current.style.width=C)},setViewportScrollLeft:C=>{s.current&&(s.current.scrollLeft=C)},setPinnedContainerWidth:C=>{s.current&&(s.current.style.width=C,s.current.style.minWidth=C,s.current.style.maxWidth=C)}};l.current.setComp(v,s.current)},[]),g=t?"":"ag-hidden",p=()=>r.map(m=>ce.createElement(rhi,{ctrl:m,key:m.instanceId}));return ce.createElement(ce.Fragment,null,c&&ce.createElement("div",{ref:h,className:"ag-pinned-left-header "+g,"aria-hidden":!t,role:"rowgroup"},p()),u&&ce.createElement("div",{ref:h,className:"ag-pinned-right-header "+g,"aria-hidden":!t,role:"rowgroup"},p()),f&&ce.createElement("div",{ref:h,className:"ag-header-viewport "+g,role:"presentation"},ce.createElement("div",{ref:a,className:"ag-header-container",role:"rowgroup"},p())))},uoe=d.memo(ihi),ohi=()=>{const[e,t]=d.useState(()=>new Nf),[n,r]=d.useState(),{context:i}=d.useContext(Zl),o=d.useRef(null),s=d.useRef(),a=d.useCallback(u=>{if(o.current=u,s.current=u?i.createBean(new cht):i.destroyBean(s.current),!u)return;const f={addOrRemoveCssClass:(h,g)=>t(p=>p.setClass(h,g)),setHeightAndMinHeight:h=>r(h)};s.current.setComp(f,u,u)},[]),l=d.useMemo(()=>"ag-header "+e.toString(),[e]),c=d.useMemo(()=>({height:n,minHeight:n}),[n]);return ce.createElement("div",{ref:a,className:l,style:c,role:"presentation"},ce.createElement(uoe,{pinned:"left"}),ce.createElement(uoe,{pinned:null}),ce.createElement(uoe,{pinned:"right"}))},shi=d.memo(ohi),ahi=(e,t)=>{d.useEffect(()=>{const n=t.current;if(n){const r=n.parentElement;if(r){const i=document.createComment(e);return r.insertBefore(i,n),()=>{r.removeChild(i)}}}},[e])},S8=ahi,lhi=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new xr(n=>{this.resolveInstanceCreated=n}),this.onValueChange=n=>this.updateValue(n),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){g6e(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){var t;this.componentInstance=e,(t=this.resolveInstanceCreated)==null||t.call(this),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached"]}updateValue(e){this.value=e,this.refreshProps()}},chi=e=>{const t=d.useRef(e),n=d.useRef(),r=d.useRef(!1),i=d.useRef(!1),[,o]=d.useState(0);r.current&&(i.current=!0),d.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),o(s=>s+1),()=>{var s;i.current&&((s=n.current)==null||s.call(n))}),[])},uhi=e=>{const[t,n]=d.useState(),{context:r,popupService:i,localeService:o,gos:s,editService:a}=d.useContext(Zl);return chi(()=>{var S,w;const{editDetails:l,cellCtrl:c,eParentCell:u}=e,{compDetails:f}=l,h=s.get("stopEditingWhenCellsLoseFocus"),g=r.createBean(a.createPopupEditorWrapper(f.params)),p=g.getGui();if(e.jsChildComp){const x=e.jsChildComp.getGui();x&&p.appendChild(x)}const m={column:c.getColumn(),rowNode:c.getRowNode(),type:"popupCellEditor",eventSource:u,ePopup:p,position:l.popupPosition,keepWithinBounds:!0},v=i.positionPopupByComponent.bind(i,m),C=o.getLocaleTextFunc(),y=i.addPopup({modal:h,eChild:p,closeOnEsc:!0,closedCallback:()=>{c.onPopupEditorClosed()},anchorToElement:u,positionCallback:v,ariaLabel:C("ariaLabelCellEditor","Cell Editor")}),b=y?y.hideFunc:void 0;return n(g),(w=(S=e.jsChildComp)==null?void 0:S.afterGuiAttached)==null||w.call(S),()=>{b==null||b(),r.destroyBean(g)}}),ce.createElement(ce.Fragment,null,t&&e.wrappedContent&&fo.createPortal(e.wrappedContent,t.getGui()))},zLe=d.memo(uhi),dhi=(e,t,n,r,i,o)=>{const{context:s}=d.useContext(Zl),a=d.useCallback(()=>{const l=i.current;if(!l)return;const c=l.getGui();c&&c.parentElement&&c.parentElement.removeChild(c),s.destroyBean(l),i.current=void 0},[]);d.useEffect(()=>{const l=e!=null,c=(e==null?void 0:e.compDetails)&&!e.compDetails.componentFromFramework,u=t&&n==null;if(!(l&&c&&!u)){a();return}const h=e.compDetails;if(i.current){const p=i.current,v=p.refresh!=null&&e.force==!1?p.refresh(h.params):!1;if(v===!0||v===void 0)return;a()}const g=h.newAgStackInstance();g!=null&&g.then(p=>{if(!p)return;const m=p.getGui();if(!m)return;(t?n:o.current).appendChild(m),i.current=p})},[e,t,r]),d.useEffect(()=>a,[])},fhi=dhi,hhi=(e,t,n)=>{const{compProxy:r}=e;n(r);const i=r.getProps(),o=gE(t);return ce.createElement(h6e.Provider,{value:{setMethods:s=>r.setMethods(s)}},o?ce.createElement(t,{...i}):ce.createElement(t,{...i,ref:s=>r.setRef(s)}))},BLe=(e,t,n)=>{const r=e.compProxy;return ce.createElement(ce.Fragment,null,r?hhi(e,t,n):ce.createElement(t,{...e.compDetails.params,ref:n}))},ghi=(e,t,n,r,i)=>{const o=e.compDetails,s=o.componentClass,a=o.componentFromFramework&&!e.popup,l=o.componentFromFramework&&e.popup,c=!o.componentFromFramework&&e.popup;return ce.createElement(ce.Fragment,null,a&&BLe(e,s,t),l&&ce.createElement(zLe,{editDetails:e,cellCtrl:r,eParentCell:n,wrappedContent:BLe(e,s,t)}),c&&i&&ce.createElement(zLe,{editDetails:e,cellCtrl:r,eParentCell:n,jsChildComp:i}))},phi=(e,t,n,r,i,o,s)=>{const{compDetails:a,value:l}=e,c=!a,u=a&&a.componentFromFramework,f=a&&a.componentClass,h=l!=null&&l.toString?l.toString():l,g=()=>ce.createElement(ce.Fragment,null,c&&ce.createElement(ce.Fragment,null,h),u&&!o&&ce.createElement(f,{...a.params,key:t,ref:r}),u&&o&&ce.createElement(f,{...a.params,key:t}));return ce.createElement(ce.Fragment,null,i?ce.createElement("span",{role:"presentation",id:`cell-${n}`,className:"ag-cell-value",ref:s},g()):g())},mhi=({cellCtrl:e,printLayout:t,editingRow:n})=>{const{context:r}=d.useContext(Zl),{colIdSanitised:i,instanceId:o}=e,s=d.useRef(),[a,l]=d.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[c,u]=d.useState(),[f,h]=d.useState(1),[g,p]=d.useState(),[m,v]=d.useState(!1),[C,y]=d.useState(!1),[b,S]=d.useState(!1),[w,x]=d.useState(),E=d.useMemo(()=>e.isForceWrapper(),[e]),R=d.useMemo(()=>e.getCellAriaRole(),[e]),O=d.useRef(null),T=d.useRef(null),M=d.useRef(),_=d.useRef(),F=d.useRef(),D=d.useRef([]),k=d.useRef(),[L,I]=d.useState(0),A=d.useCallback(te=>{k.current=te,I(ne=>ne+1)},[]),N=a!=null&&(m||b||C),B=E||N,z=d.useCallback(te=>{if(_.current=te,te){const ne=te.isCancelBeforeStart&&te.isCancelBeforeStart();setTimeout(()=>{ne?(e.stopEditing(!0),e.focusCell(!0)):e.cellEditorAttached()})}},[e]),j=d.useRef();j.current||(j.current=new B_(()=>O.current)),fhi(a,B,k.current,L,M,O);const W=d.useRef();d.useLayoutEffect(()=>{var oe;const te=W.current,ne=a;if(W.current=a,te==null||te.compDetails==null||ne==null||ne.compDetails==null)return;const Z=te.compDetails,ee=ne.compDetails;if(Z.componentClass!=ee.componentClass||((oe=T.current)==null?void 0:oe.refresh)==null)return;T.current.refresh(ee.params)!=!0&&h(le=>le+1)},[a]),d.useLayoutEffect(()=>{if(!(c&&!c.compDetails.componentFromFramework))return;const ne=c.compDetails,Z=c.popup===!0,ee=ne.newAgStackInstance();return ee.then(J=>{if(!J)return;const oe=J.getGui();if(z(J),!Z){const le=(E?F:O).current;le==null||le.appendChild(oe),J.afterGuiAttached&&J.afterGuiAttached()}x(J)}),()=>{ee.then(J=>{var le;const oe=J.getGui();r.destroyBean(J),z(void 0),x(void 0),(le=oe==null?void 0:oe.parentElement)==null||le.removeChild(oe)})}},[c]);const G=d.useCallback(te=>{if(F.current=te,!te){D.current.forEach(Z=>Z()),D.current=[];return}const ne=Z=>{if(Z){const ee=Z.getGui();te.insertAdjacentElement("afterbegin",ee),D.current.push(()=>{r.destroyBean(Z),au(ee)})}return Z};if(m){const Z=e.createSelectionCheckbox();ne(Z)}b&&ne(e.createDndSource()),C&&ne(e.createRowDragComp())},[e,r,b,C,m]),K=d.useCallback(te=>{if(O.current=te,s.current=te?r.createBean(new uE):r.destroyBean(s.current),!te||!e)return;const ne={addOrRemoveCssClass:(ee,J)=>j.current.addOrRemoveCssClass(ee,J),setUserStyles:ee=>p(ee),getFocusableElement:()=>O.current,setIncludeSelection:ee=>v(ee),setIncludeRowDrag:ee=>y(ee),setIncludeDndSource:ee=>S(ee),getCellEditor:()=>_.current||null,getCellRenderer:()=>T.current??M.current,getParentOfValue:()=>k.current??F.current??O.current,setRenderDetails:(ee,J,oe)=>{l(le=>(le==null?void 0:le.compDetails)!==ee||(le==null?void 0:le.value)!==J||(le==null?void 0:le.force)!==oe?{value:J,compDetails:ee,force:oe}:le)},setEditDetails:(ee,J,oe,le)=>{if(ee){let ge;le?ge=new lhi(ee.params,()=>h(he=>he+1)):ee.componentFromFramework&&p6e(),u({compDetails:ee,popup:J,popupPosition:oe,compProxy:ge}),J||l(void 0)}else u(ge=>{ge!=null&&ge.compProxy&&(_.current=void 0)})}},Z=F.current||void 0;e.setComp(ne,te,Z,t,n,s.current)},[]),q=d.useMemo(()=>{var ne;return!!(((ne=a==null?void 0:a.compDetails)==null?void 0:ne.componentFromFramework)&&gE(a.compDetails.componentClass))},[a]);d.useLayoutEffect(()=>{var te;O.current&&(j.current.addOrRemoveCssClass("ag-cell-value",!B),j.current.addOrRemoveCssClass("ag-cell-inline-editing",!!c&&!c.popup),j.current.addOrRemoveCssClass("ag-cell-popup-editing",!!c&&!!c.popup),j.current.addOrRemoveCssClass("ag-cell-not-inline-editing",!c||!!c.popup),(te=e.getRowCtrl())==null||te.setInlineEditingCss(),e.shouldRestoreFocus()&&!e.isEditing()&&O.current.focus({preventScroll:!0}))});const X=()=>ce.createElement(ce.Fragment,null,a!=null&&phi(a,f,o,T,B,q,A),c!=null&&ghi(c,z,O.current,e,w)),Q=d.useCallback(()=>e.onFocusOut(),[]);return ce.createElement("div",{ref:K,style:g,role:R,"col-id":i,onBlur:Q},B?ce.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:G},X()):X())},vhi=d.memo(mhi),Chi=({rowCtrl:e,containerType:t})=>{const{context:n,gos:r}=d.useContext(Zl),i=d.useRef(),o=d.useRef(e.getDomOrder()),s=e.isFullWidth(),a=e.getRowNode().displayed,[l,c]=d.useState(()=>a?e.getRowIndex():null),[u,f]=d.useState(()=>e.getRowId()),[h,g]=d.useState(()=>e.getBusinessKey()),[p,m]=d.useState(()=>e.getRowStyles()),v=d.useRef(null),C=d.useRef(null),[y,b]=d.useState(()=>null),[S,w]=d.useState(),[x,E]=d.useState(()=>a?e.getInitialRowTop(t):void 0),[R,O]=d.useState(()=>a?e.getInitialTransform(t):void 0),T=d.useRef(null),M=d.useRef(),_=d.useRef(!1),[F,D]=d.useState(0);d.useEffect(()=>{var K;if(_.current||!S||F>10)return;const G=(K=T.current)==null?void 0:K.firstChild;G?(e.setupDetailRowAutoHeight(G),_.current=!0):D(q=>q+1)},[S,F]);const k=d.useRef();k.current||(k.current=new B_(()=>T.current));const L=d.useCallback(G=>{if(T.current=G,i.current=G?n.createBean(new uE):n.destroyBean(i.current),!G){e.unsetComp(t);return}if(!e.isAlive())return;const K={setTop:E,setTransform:O,addOrRemoveCssClass:(q,X)=>k.current.addOrRemoveCssClass(q,X),setDomOrder:q=>o.current=q,setRowIndex:c,setRowId:f,setRowBusinessKey:g,setUserStyles:m,setCellCtrls:(q,X)=>{C.current=v.current,v.current=q;const Q=f6e(C.current,q,o.current);Q!==C.current&&d6e(X,()=>b(Q))},showFullWidth:q=>w(q),getFullWidthCellRenderer:()=>M.current,refreshFullWidth:q=>z.current?(w(X=>({...X,params:q()})),!0):!M.current||!M.current.refresh?!1:M.current.refresh(q())};e.setComp(K,G,t,i.current)},[]);d.useLayoutEffect(()=>G_(S,n,T.current,M),[S]);const I=d.useMemo(()=>{const G={top:x,transform:R};return Object.assign(G,p),G},[x,R,p]),A=s&&(S==null?void 0:S.componentFromFramework),N=!s&&y!=null,B=d.useMemo(()=>!!((S==null?void 0:S.componentFromFramework)&&gE(S.componentClass)),[S]),z=d.useRef(!1);d.useEffect(()=>{z.current=B&&!!S&&!!r.get("reactiveCustomComponents")},[B,S]);const j=()=>y==null?void 0:y.map(G=>ce.createElement(vhi,{cellCtrl:G,editingRow:e.isEditing(),printLayout:e.isPrintLayout(),key:G.instanceId})),W=()=>{const G=S.componentClass;return ce.createElement(ce.Fragment,null,B?ce.createElement(G,{...S.params}):ce.createElement(G,{...S.params,ref:M}))};return ce.createElement("div",{ref:L,role:"row",style:I,"row-index":l,"row-id":u,"row-business-key":h},N&&j(),A&&W())},yhi=d.memo(Chi),bhi=({name:e})=>{const{context:t}=d.useContext(Zl),n=d.useMemo(()=>z8(e),[e]),r=d.useRef(null),i=d.useRef(null),o=d.useRef([]),s=d.useRef([]),[a,l]=d.useState(()=>[]),c=d.useRef(!1),u=d.useRef(),f=d.useMemo(()=>Qh(n.viewport),[n]),h=d.useMemo(()=>Qh(n.container),[n]),g=n.type==="center",p=g?r:i;S8(" AG Row Container "+e+" ",p);const m=d.useCallback(()=>g?r.current!=null&&i.current!=null:i.current!=null,[]),v=d.useCallback(()=>g?r.current==null&&i.current==null:i.current==null,[]),C=d.useCallback(()=>{if(v()&&(u.current=t.destroyBean(u.current)),m()){const w=E=>{const R=f6e(s.current,o.current,c.current);R!==s.current&&(s.current=R,d6e(E,()=>l(R)))},x={setHorizontalScroll:E=>{r.current&&(r.current.scrollLeft=E)},setViewportHeight:E=>{r.current&&(r.current.style.height=E)},setRowCtrls:({rowCtrls:E,useFlushSync:R})=>{const O=!!R&&o.current.length>0&&E.length>0;o.current=E,w(O)},setDomOrder:E=>{c.current!=E&&(c.current=E,w(!1))},setContainerWidth:E=>{i.current&&(i.current.style.width=E)},setOffsetTop:E=>{i.current&&(i.current.style.transform=`translateY(${E})`)}};u.current=t.createBean(new wht(e)),u.current.setComp(x,i.current,r.current)}},[m,v]),y=d.useCallback(w=>{i.current=w,C()},[C]),b=d.useCallback(w=>{r.current=w,C()},[C]),S=()=>ce.createElement("div",{className:h,ref:y,role:"rowgroup"},a.map(w=>ce.createElement(yhi,{rowCtrl:w,containerType:n.type,key:w.instanceId})));return ce.createElement(ce.Fragment,null,g?ce.createElement("div",{className:f,ref:b,role:"presentation"},S()):S())},Shi=d.memo(bhi),whi=()=>{const{context:e,resizeObserverService:t}=d.useContext(Zl),[n,r]=d.useState(""),[i,o]=d.useState(0),[s,a]=d.useState(0),[l,c]=d.useState("0px"),[u,f]=d.useState("0px"),[h,g]=d.useState("100%"),[p,m]=d.useState("0px"),[v,C]=d.useState("0px"),[y,b]=d.useState("100%"),[S,w]=d.useState(""),[x,E]=d.useState(""),[R,O]=d.useState(null),[T,M]=d.useState(""),[_,F]=d.useState(null),[D,k]=d.useState("ag-layout-normal"),L=d.useRef();L.current||(L.current=new B_(()=>I.current));const I=d.useRef(null),A=d.useRef(null),N=d.useRef(null),B=d.useRef(null),z=d.useRef(null),j=d.useRef(null),W=d.useRef(null),G=d.useRef([]),K=d.useRef([]);S8(" AG Grid Body ",I),S8(" AG Pinned Top ",A),S8(" AG Sticky Top ",N),S8(" AG Middle ",j),S8(" AG Pinned Bottom ",W);const q=d.useCallback(ve=>{if(I.current=ve,!ve){G.current=e.destroyBeans(G.current),K.current.forEach(Ge=>Ge()),K.current=[];return}if(!e)return;const de=(Ge,Ue)=>{Ge.appendChild(Ue),K.current.push(()=>Ge.removeChild(Ue))},xe=Ge=>{const Ue=e.createBean(new Ge);return G.current.push(Ue),Ue},Ee=(Ge,Ue,We)=>{de(Ge,document.createComment(We)),de(Ge,xe(Ue).getGui())};Ee(ve,ght," AG Fake Horizontal Scroll "),Ee(ve,fht," AG Overlay Wrapper "),z.current&&Ee(z.current,mht," AG Fake Vertical Scroll ");const De={setRowAnimationCssOnBodyViewport:r,setColumnCount:Ge=>{I.current&&oft(I.current,Ge)},setRowCount:Ge=>{I.current&&rft(I.current,Ge)},setTopHeight:o,setBottomHeight:a,setStickyTopHeight:c,setStickyTopTop:f,setStickyTopWidth:g,setTopDisplay:w,setBottomDisplay:E,setColumnMovingCss:(Ge,Ue)=>L.current.addOrRemoveCssClass(Ge,Ue),updateLayoutClasses:k,setAlwaysVerticalScrollClass:O,setPinnedTopBottomOverflowY:M,setCellSelectableCss:(Ge,Ue)=>F(Ue?Ge:null),setBodyViewportWidth:Ge=>{j.current&&(j.current.style.width=Ge)},registerBodyViewportResizeListener:Ge=>{if(j.current){const Ue=t.observeResize(j.current,Ge);K.current.push(()=>Ue())}},setStickyBottomHeight:m,setStickyBottomBottom:C,setStickyBottomWidth:b},Be=e.createBean(new Eht);G.current.push(Be),Be.setComp(De,ve,j.current,A.current,W.current,N.current,B.current)},[]),X=d.useMemo(()=>Qh("ag-root","ag-unselectable",D),[D]),Q=d.useMemo(()=>Qh("ag-body-viewport",n,D,R,_),[n,D,R,_]),te=d.useMemo(()=>Qh("ag-body",D),[D]),ne=d.useMemo(()=>Qh("ag-floating-top",_),[_]),Z=d.useMemo(()=>Qh("ag-sticky-top",_),[_]),ee=d.useMemo(()=>Qh("ag-sticky-bottom",p==="0px"?"ag-hidden":null,_),[_,p]),J=d.useMemo(()=>Qh("ag-floating-bottom",_),[_]),oe=d.useMemo(()=>({height:i,minHeight:i,display:S,overflowY:T}),[i,S,T]),le=d.useMemo(()=>({height:l,top:u,width:h}),[l,u,h]),ge=d.useMemo(()=>({height:p,bottom:v,width:y}),[p,v,y]),he=d.useMemo(()=>({height:s,minHeight:s,display:x,overflowY:T}),[s,x,T]),ye=ve=>ce.createElement(Shi,{name:ve,key:`${ve}-container`}),ue=({section:ve,children:de,className:xe,style:Ee})=>ce.createElement("div",{ref:ve,className:xe,role:"presentation",style:Ee},de.map(ye));return ce.createElement("div",{ref:q,className:X,role:"treegrid"},ce.createElement(shi,null),ue({section:A,className:ne,style:oe,children:["topLeft","topCenter","topRight","topFullWidth"]}),ce.createElement("div",{className:te,ref:z,role:"presentation"},ue({section:j,className:Q,children:["left","center","right","fullWidth"]})),ue({section:N,className:Z,style:le,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),ue({section:B,className:ee,style:ge,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),ue({section:W,className:J,style:he,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},xhi=d.memo(whi),Ehi=(e,t)=>{const{children:n,eFocusableElement:r,onTabKeyDown:i,gridCtrl:o,forceFocusOutWhenTabGuardsAreEmpty:s}=e,{context:a}=d.useContext(Zl),l=d.useRef(null),c=d.useRef(null),u=d.useRef(),f=v=>{const C=v==null?void 0:parseInt(v,10).toString();[l,c].forEach(y=>{var b,S;C===void 0?(b=y.current)==null||b.removeAttribute("tabindex"):(S=y.current)==null||S.setAttribute("tabindex",C)})};d.useImperativeHandle(t,()=>({forceFocusOutOfContainer(v){var C;(C=u.current)==null||C.forceFocusOutOfContainer(v)}}));const h=d.useCallback(()=>{const v=l.current,C=c.current;if(!v&&!C){u.current=a.destroyBean(u.current);return}if(v&&C){const y={setTabIndex:f};u.current=a.createBean(new Dht({comp:y,eTopGuard:v,eBottomGuard:C,eFocusableElement:r,onTabKeyDown:i,forceFocusOutWhenTabGuardsAreEmpty:s,focusInnerElement:b=>o.focusInnerElement(b)}))}},[]),g=d.useCallback(v=>{l.current=v,h()},[h]),p=d.useCallback(v=>{c.current=v,h()},[h]),m=v=>{const C=v==="top"?dk.TAB_GUARD_TOP:dk.TAB_GUARD_BOTTOM;return ce.createElement("div",{className:`${dk.TAB_GUARD} ${C}`,role:"presentation",ref:v==="top"?g:p})};return ce.createElement(ce.Fragment,null,m("top"),n,m("bottom"))},Rhi=d.forwardRef(Ehi),$hi=d.memo(Rhi),Ohi=({context:e})=>{const[t,n]=d.useState(""),[r,i]=d.useState(""),[o,s]=d.useState(""),[a,l]=d.useState(null),[c,u]=d.useState(null),[f,h]=d.useState(!1),[g,p]=d.useState(),m=d.useRef(),v=d.useRef(null),C=d.useRef(),[y,b]=d.useState(null),S=d.useRef(()=>{}),w=d.useRef(),x=d.useRef([]),E=d.useCallback(()=>{},[]),R=d.useMemo(()=>e.isDestroyed()?null:e.getBeans(),[e]);S8(" AG Grid ",v);const O=d.useCallback(D=>{if(v.current=D,m.current=D?e.createBean(new kht):e.destroyBean(m.current),!D||e.isDestroyed())return;const k=m.current;S.current=k.focusInnerElement.bind(k);const L={destroyGridUi:()=>{},setRtlClass:n,setGridThemeClass:i,forceFocusOutOfContainer:I=>{var A,N;if(!I&&((A=w.current)!=null&&A.isDisplayed())){w.current.forceFocusOutOfContainer(I);return}(N=C.current)==null||N.forceFocusOutOfContainer(I)},updateLayoutClasses:s,getFocusableContainers:()=>{var N;const I=[],A=(N=v.current)==null?void 0:N.querySelector(".ag-root");return A&&I.push({getGui:()=>A}),x.current.forEach(B=>{B.isDisplayed()&&I.push(B)}),I},setCursor:l,setUserSelect:u};k.setComp(L,D,D),h(!0)},[]);d.useEffect(()=>{const D=m.current,k=v.current;if(!g||!R||!D||!y||!k)return;const L=[],{watermarkSelector:I,paginationSelector:A,sideBarSelector:N,statusBarSelector:B,gridHeaderDropZonesSelector:z}=D.getOptionalSelectors(),j=[];if(z){const G=e.createBean(new z.component),K=G.getGui();k.insertAdjacentElement("afterbegin",K),j.push(K),L.push(G)}if(N){const G=e.createBean(new N.component),K=G.getGui(),q=y.querySelector(".ag-tab-guard-bottom");q&&(q.insertAdjacentElement("beforebegin",K),j.push(K)),L.push(G),x.current.push(G)}const W=G=>{const K=e.createBean(new G),q=K.getGui();return k.insertAdjacentElement("beforeend",q),j.push(q),L.push(K),K};if(B&&W(B.component),A){const G=W(A.component);w.current=G,x.current.push(G)}return I&&W(I.component),()=>{e.destroyBeans(L),j.forEach(G=>{var K;(K=G.parentElement)==null||K.removeChild(G)})}},[g,y,R]);const T=d.useMemo(()=>Qh("ag-root-wrapper",t,r,o),[t,r,o]),M=d.useMemo(()=>Qh("ag-root-wrapper-body","ag-focus-managed",o),[o]),_=d.useMemo(()=>({userSelect:c??"",WebkitUserSelect:c??"",cursor:a??""}),[c,a]),F=d.useCallback(D=>{C.current=D,p(D!==null)},[]);return ce.createElement("div",{ref:O,className:T,style:_,role:"presentation"},ce.createElement("div",{className:M,ref:b,role:"presentation"},f&&y&&R&&ce.createElement(Zl.Provider,{value:R},ce.createElement($hi,{ref:F,eFocusableElement:y,onTabKeyDown:E,gridCtrl:m.current,forceFocusOutWhenTabGuardsAreEmpty:!0},ce.createElement(xhi,null)))))},Thi=d.memo(Ohi),Ihi=class extends ct{wireBeans(e){this.ctrlsService=e.ctrlsService}areHeaderCellsRendered(){return this.ctrlsService.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}},ogt=e=>{var v;const t=d.useRef(),n=d.useRef(null),r=d.useRef(null),i=d.useRef([]),o=d.useRef([]),s=d.useRef(e),a=d.useRef(),l=d.useRef(),c=d.useRef(!1),[u,f]=d.useState(void 0),[,h]=d.useState(0),g=d.useCallback(C=>{if(n.current=C,!C){i.current.forEach(M=>M()),i.current.length=0;return}const y=e.modules||[];r.current||(r.current=new Yfi(()=>h(M=>M+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),i.current.push(()=>{var M;(M=r.current)==null||M.destroy(),r.current=null}));const b=Ori(e.gridOptions,e),S=()=>{if(c.current){const M=()=>{var F;return(F=a.current)!=null&&F.shouldQueueUpdates()?void 0:o.current.shift()};let _=M();for(;_;)_(),_=M()}},w=new Ahi(S);a.current=w;const x=new Ihi,E={providedBeanInstances:{frameworkComponentWrapper:new Phi(r.current,b.reactiveCustomComponents??bfi("reactiveCustomComponents")??!0),renderStatusService:x},modules:y,frameworkOverrides:w},R=M=>{f(M),M.createBean(x),i.current.push(()=>{M.destroy()}),M.getBean("ctrlsService").whenReady({addDestroyFunc:_=>{i.current.push(_)}},()=>{var F;if(M.isDestroyed())return;const _=t.current;_&&((F=e.setGridApi)==null||F.call(e,_))})},O=M=>{M.getBean("ctrlsService").whenReady({addDestroyFunc:_=>{i.current.push(_)}},()=>{o.current.forEach(_=>_()),o.current.length=0,c.current=!0})},T=new Zht;b.gridId??(b.gridId=l.current),t.current=T.create(C,b,R,O,E),i.current.push(()=>{t.current=void 0}),t.current&&(l.current=t.current.getGridId())},[]),p=d.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),m=d.useCallback(C=>{var y;c.current&&!((y=a.current)!=null&&y.shouldQueueUpdates())?C():o.current.push(C)},[]);return d.useEffect(()=>{const C=Mhi(s.current,e);s.current=e,m(()=>{t.current&&Tri(C,t.current)})},[e]),ce.createElement("div",{style:p,className:e.className,ref:g},u&&!u.isDestroyed()?ce.createElement(Thi,{context:u}):null,((v=r.current)==null?void 0:v.getPortals())??null)};function Mhi(e,t){const n={};return Object.keys(t).forEach(r=>{const i=t[r];e[r]!==i&&(n[r]=i)}),n}var Phi=class extends Mfi{constructor(e,t){super(),this.parent=e,this.reactiveCustomComponents=t}createWrapper(e,t){if(this.reactiveCustomComponents){const i=(o=>{switch(o){case"filter":return Bfi;case"floatingFilterComponent":return jfi;case"dateComponent":return kfi;case"dragAndDropImageComponent":return zfi;case"loadingOverlayComponent":return Vfi;case"noRowsOverlayComponent":return Wfi;case"statusPanel":return Ufi;case"toolPanel":return qfi;case"menuItem":return Gfi;case"cellRenderer":return Nfi}})(t.propertyName);if(i)return new i(e,this.parent,t)}else switch(t.propertyName){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":p6e();break}const n=!t.cellRenderer&&t.propertyName!=="toolPanel";return new rgt(e,this.parent,t,n)}},_hi=d.forwardRef((e,t)=>{const{ctrlsFactory:n,context:r,gos:i,resizeObserverService:o,rowModel:s}=d.useContext(Zl),[a,l]=d.useState(()=>new Nf),[c,u]=d.useState(()=>new Nf),[f,h]=d.useState(),[g,p]=d.useState(),m=d.useRef(),v=d.useRef(null),C=d.useRef(),y=d.useMemo(()=>Pf.__getGridRegisteredModules(e.api.getGridId()),[e]),b=d.useMemo(()=>a.toString()+" ag-details-row",[a]),S=d.useMemo(()=>c.toString()+" ag-details-grid",[c]);t&&d.useImperativeHandle(t,()=>({refresh(){var E;return((E=m.current)==null?void 0:E.refresh())??!1}})),e.template&&rt("detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://ag-grid.com/react-data-grid/master-detail-custom-detail/");const w=d.useCallback(E=>{var T;if(v.current=E,!E){m.current=r.destroyBean(m.current),(T=C.current)==null||T.call(C);return}const R={addOrRemoveCssClass:(M,_)=>l(F=>F.setClass(M,_)),addOrRemoveDetailGridCssClass:(M,_)=>u(F=>F.setClass(M,_)),setDetailGrid:M=>h(M),setRowData:M=>p(M),getGui:()=>v.current},O=n.getInstance("detailCellRenderer");if(O&&(r.createBean(O),O.init(R,e),m.current=O,i.get("detailRowAutoHeight"))){const M=()=>{if(v.current==null)return;const _=v.current.clientHeight;_!=null&&_>0&&setTimeout(()=>{e.node.setRowHeight(_),(Li(i)||ml(i))&&s.onRowHeightChanged()},0)};C.current=o.observeResize(E,M),M()}},[]),x=d.useCallback(E=>{var R;(R=m.current)==null||R.registerDetailWithMaster(E)},[]);return ce.createElement("div",{className:b,ref:w},f&&ce.createElement(ogt,{className:S,...f,modules:y,rowData:g,setGridApi:x}))}),Ahi=class extends Fht{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.frameworkComponents={agGroupCellRenderer:NLe,agGroupRowRenderer:NLe,agDetailCellRenderer:_hi},this.wrapIncoming=(t,n)=>n==="ensureVisible"?Afi(t):t(),this.renderingEngine="react"}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return _fi()}},Dhi=class extends d.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e,this.apiListeners.forEach(t=>t(e))}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return ce.createElement(ogt,{...this.props,setGridApi:this.setGridApi})}},Lhi=class{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(e,t){let n=e[0],r=e[1],i=e[2],o=e[3];n=this.ff(n,r,i,o,t[0],7,-680876936),o=this.ff(o,n,r,i,t[1],12,-389564586),i=this.ff(i,o,n,r,t[2],17,606105819),r=this.ff(r,i,o,n,t[3],22,-1044525330),n=this.ff(n,r,i,o,t[4],7,-176418897),o=this.ff(o,n,r,i,t[5],12,1200080426),i=this.ff(i,o,n,r,t[6],17,-1473231341),r=this.ff(r,i,o,n,t[7],22,-45705983),n=this.ff(n,r,i,o,t[8],7,1770035416),o=this.ff(o,n,r,i,t[9],12,-1958414417),i=this.ff(i,o,n,r,t[10],17,-42063),r=this.ff(r,i,o,n,t[11],22,-1990404162),n=this.ff(n,r,i,o,t[12],7,1804603682),o=this.ff(o,n,r,i,t[13],12,-40341101),i=this.ff(i,o,n,r,t[14],17,-1502002290),r=this.ff(r,i,o,n,t[15],22,1236535329),n=this.gg(n,r,i,o,t[1],5,-165796510),o=this.gg(o,n,r,i,t[6],9,-1069501632),i=this.gg(i,o,n,r,t[11],14,643717713),r=this.gg(r,i,o,n,t[0],20,-373897302),n=this.gg(n,r,i,o,t[5],5,-701558691),o=this.gg(o,n,r,i,t[10],9,38016083),i=this.gg(i,o,n,r,t[15],14,-660478335),r=this.gg(r,i,o,n,t[4],20,-405537848),n=this.gg(n,r,i,o,t[9],5,568446438),o=this.gg(o,n,r,i,t[14],9,-1019803690),i=this.gg(i,o,n,r,t[3],14,-187363961),r=this.gg(r,i,o,n,t[8],20,1163531501),n=this.gg(n,r,i,o,t[13],5,-1444681467),o=this.gg(o,n,r,i,t[2],9,-51403784),i=this.gg(i,o,n,r,t[7],14,1735328473),r=this.gg(r,i,o,n,t[12],20,-1926607734),n=this.hh(n,r,i,o,t[5],4,-378558),o=this.hh(o,n,r,i,t[8],11,-2022574463),i=this.hh(i,o,n,r,t[11],16,1839030562),r=this.hh(r,i,o,n,t[14],23,-35309556),n=this.hh(n,r,i,o,t[1],4,-1530992060),o=this.hh(o,n,r,i,t[4],11,1272893353),i=this.hh(i,o,n,r,t[7],16,-155497632),r=this.hh(r,i,o,n,t[10],23,-1094730640),n=this.hh(n,r,i,o,t[13],4,681279174),o=this.hh(o,n,r,i,t[0],11,-358537222),i=this.hh(i,o,n,r,t[3],16,-722521979),r=this.hh(r,i,o,n,t[6],23,76029189),n=this.hh(n,r,i,o,t[9],4,-640364487),o=this.hh(o,n,r,i,t[12],11,-421815835),i=this.hh(i,o,n,r,t[15],16,530742520),r=this.hh(r,i,o,n,t[2],23,-995338651),n=this.ii(n,r,i,o,t[0],6,-198630844),o=this.ii(o,n,r,i,t[7],10,1126891415),i=this.ii(i,o,n,r,t[14],15,-1416354905),r=this.ii(r,i,o,n,t[5],21,-57434055),n=this.ii(n,r,i,o,t[12],6,1700485571),o=this.ii(o,n,r,i,t[3],10,-1894986606),i=this.ii(i,o,n,r,t[10],15,-1051523),r=this.ii(r,i,o,n,t[1],21,-2054922799),n=this.ii(n,r,i,o,t[8],6,1873313359),o=this.ii(o,n,r,i,t[15],10,-30611744),i=this.ii(i,o,n,r,t[6],15,-1560198380),r=this.ii(r,i,o,n,t[13],21,1309151649),n=this.ii(n,r,i,o,t[4],6,-145523070),o=this.ii(o,n,r,i,t[11],10,-1120210379),i=this.ii(i,o,n,r,t[2],15,718787259),r=this.ii(r,i,o,n,t[9],21,-343485551),e[0]=this.add32(n,e[0]),e[1]=this.add32(r,e[1]),e[2]=this.add32(i,e[2]),e[3]=this.add32(o,e[3])}cmn(e,t,n,r,i,o){return t=this.add32(this.add32(t,e),this.add32(r,o)),this.add32(t<<i|t>>>32-i,n)}ff(e,t,n,r,i,o,s){return this.cmn(t&n|~t&r,e,t,i,o,s)}gg(e,t,n,r,i,o,s){return this.cmn(t&r|n&~r,e,t,i,o,s)}hh(e,t,n,r,i,o,s){return this.cmn(t^n^r,e,t,i,o,s)}ii(e,t,n,r,i,o,s){return this.cmn(n^(t|~r),e,t,i,o,s)}md51(e){const t=e.length,n=[1732584193,-271733879,-1732584194,271733878];let r;for(r=64;r<=e.length;r+=64)this.md5cycle(n,this.md5blk(e.substring(r-64,r)));e=e.substring(r-64);const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<e.length;r++)i[r>>2]|=e.charCodeAt(r)<<(r%4<<3);if(i[r>>2]|=128<<(r%4<<3),r>55)for(this.md5cycle(n,i),r=0;r<16;r++)i[r]=0;return i[14]=t*8,this.md5cycle(n,i),n}md5blk(e){const t=[];for(let n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}rhex(e){const t="0123456789abcdef".split("");let n="",r=0;for(;r<4;r++)n+=t[e>>r*8+4&15]+t[e>>r*8&15];return n}hex(e){for(let t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")}md5(e){return this.hex(this.md51(e))}add32(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)}add32Std(e,t){return e+t&4294967295}add32Compat(e,t){const n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}},SF={"01":"GRID","02":"CHARTS","0102":"BOTH"},HLe="https://ag-grid.com/licensing/",sgt=class Uc{constructor(t){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=t,this.md5=new Lhi,this.md5.init()}validateLicense(){const t=this.getLicenseDetails(Uc.licenseKey),n=`AG Grid ${t.currentLicenseType==="BOTH"?"and AG Charts ":""}Enterprise`,r=t.suppliedLicenseType===void 0?"":`AG ${t.suppliedLicenseType==="BOTH"?"Grid and AG Charts":t.suppliedLicenseType==="GRID"?"Grid":"Charts"} Enterprise`;if(t.missing)(!this.isWebsiteUrl()||this.isForceWatermark())&&this.outputMissingLicenseKey(n);else if(t.expired){const i=Uc.getGridReleaseDate(),o=Uc.formatDate(i);this.outputExpiredKey(t.expiry,o,n,r)}else t.valid?t.isTrial&&t.trialExpired&&this.outputExpiredTrialKey(t.expiry,n,r):this.outputInvalidLicenseKey(!!t.incorrectLicenseType,n,r)}static extractExpiry(t){const n=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(Uc.decode(n),10))}static extractLicenseComponents(t){let n=t.replace(/[\u200B-\u200D\uFEFF]/g,"");if(n=n.replace(/\r?\n|\r/g,""),t.length<=32)return{md5:null,license:t,version:null,isTrial:null};const r=n.length-32,i=n.substring(r),o=n.substring(0,r),[s,a,l]=Uc.extractBracketedInformation(n);return{md5:i,license:o,version:s,isTrial:a,type:l}}getLicenseDetails(t){const n=Uc.chartsLicenseManager?"BOTH":"GRID";if(Es(t))return{licenseKey:t,valid:!1,missing:!0,currentLicenseType:n};const r=Uc.getGridReleaseDate(),{md5:i,license:o,version:s,isTrial:a,type:l}=Uc.extractLicenseComponents(t);let c=i===this.md5.md5(o)&&t.indexOf("For_Trialing_ag-Grid_Only")===-1,u,f,h=null,g=!1,p;function m(){u=h<new Date,f=void 0}if(c&&(h=Uc.extractExpiry(o),c=!isNaN(h.getTime()),c))switch(f=r>h,s){case"legacy":case"2":{a&&m();break}case"3":Es(l)?c=!1:(p=l,l!==SF["01"]&&l!==SF["0102"]||n==="BOTH"&&p!=="BOTH"?(c=!1,g=!0):a&&m())}return c?{licenseKey:t,valid:c,expiry:Uc.formatDate(h),expired:f,version:s,isTrial:a,trialExpired:u,incorrectLicenseType:g,currentLicenseType:n,suppliedLicenseType:p}:{licenseKey:t,valid:c,incorrectLicenseType:g,currentLicenseType:n,suppliedLicenseType:p}}isDisplayWatermark(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!Es(this.watermarkMessage)}getWatermarkMessage(){return this.watermarkMessage||""}getHostname(){const n=(this.document.defaultView||window).location,{hostname:r=""}=n;return r}isForceWatermark(){const n=(this.document.defaultView||window).location,{pathname:r}=n;return r?r.indexOf("forceWatermark")!==-1:!1}isWebsiteUrl(){return this.getHostname().match(/^((?:[\w-]+\.)?ag-grid\.com)$/)!==null}isLocalhost(){return this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)!==null}static formatDate(t){const n=["January","February","March","April","May","June","July","August","September","October","November","December"],r=t.getDate(),i=t.getMonth(),o=t.getFullYear();return r+" "+n[i]+" "+o}static getGridReleaseDate(){return new Date(parseInt(Uc.decode(Uc.RELEASE_INFORMATION),10))}static decode(t){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r="",i,o,s,a,l,c,u,f=0;const h=t.replace(/[^A-Za-z0-9+/=]/g,"");for(;f<h.length;)a=n.indexOf(h.charAt(f++)),l=n.indexOf(h.charAt(f++)),c=n.indexOf(h.charAt(f++)),u=n.indexOf(h.charAt(f++)),i=a<<2|l>>4,o=(l&15)<<4|c>>2,s=(c&3)<<6|u,r=r+String.fromCharCode(i),c!=64&&(r=r+String.fromCharCode(o)),u!=64&&(r=r+String.fromCharCode(s));return r=Uc.utf8_decode(r),r}static utf8_decode(t){t=t.replace(/rn/g,"n");let n="";for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);i<128?n+=String.fromCharCode(i):i>127&&i<2048?(n+=String.fromCharCode(i>>6|192),n+=String.fromCharCode(i&63|128)):(n+=String.fromCharCode(i>>12|224),n+=String.fromCharCode(i>>6&63|128),n+=String.fromCharCode(i&63|128))}return n}static setChartsLicenseManager(t){this.chartsLicenseManager=t}static setLicenseKey(t){this.licenseKey=t,this.chartsLicenseManager&&this.chartsLicenseManager.setLicenseKey(t,!0)}static extractBracketedInformation(t){if(!t.includes("["))return["legacy",!1,void 0];const n=t.match(/\[(.*?)\]/g).map(a=>a.replace("[","").replace("]",""));if(!n||n.length===0)return["legacy",!1,void 0];const r=n.filter(a=>a==="TRIAL").length===1,i=n.filter(a=>a.indexOf("v")===0)[0],o=i?i.replace("v",""):"legacy",s=SF[n.filter(a=>SF[a])[0]];return[o,r,s]}centerPadAndOutput(t){const n=this.totalMessageLength-t.length;console.error(t.padStart(n/2+t.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(t,n="*",r=""){console.error(t.padEnd(this.totalMessageLength-r.length,n)+r)}outputInvalidLicenseKey(t,n,r){t?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${r} only and does not cover you for ${n}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${HLe}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${HLe}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(t,n,r){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${r} expired on ${t}.`," ","*"),this.padAndOutput("* Please email info@ag-grid.com to purchase a license."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="Trial Period Expired"}outputMissingLicenseKey(t){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${t} License `),this.centerPadAndOutput(" License Key Not Found "),this.padAndOutput(`* All ${t} features are unlocked for trial.`," ","*"),this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="For Trial Use Only"}outputExpiredKey(t,n,r,i){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${r} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions of ${i} released before ${t}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${n}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="License Expired"}};sgt.RELEASE_INFORMATION="MTczMTQzMDQwMzMxOQ==";var wF=sgt,Fhi=class extends wn{constructor(){super(`<div class="ag-watermark">
|
||
<div data-ref="eLicenseTextRef" class="ag-watermark-text"></div>
|
||
</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`
|
||
<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>
|
||
`}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=this.createManagedBean(new Aht({value:this.enabled,label:this.params.title,labelAlignment:"left",labelWidth:"flex",onValueChange:t=>{this.setEnabled(t,!0),this.dispatchEnableChangeEvent(t)}}));return e.addCssClass("ag-group-title-bar"),e.addCssClass(`ag-${this.params.cssIdentifier??"default"}-group-title-bar ag-unselectable`),this.eToggle=e,this.toggleGroupExpand(this.enabled),e}},doe="ag-disabled-group-title-bar";function Hhi(e){const t=e.cssIdentifier??"default",n=e.suppressKeyboardNavigation?"presentation":"role";return`
|
||
<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>
|
||
`}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">
|
||
<div class="ag-virtual-list-container ag-${e}-virtual-list-container" data-ref="eContainer"></div>
|
||
</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.clientHeight>=t*this.rowHeight,()=>{const n=this.awaitStableCallbacks;this.awaitStableCallbacks=[],n.forEach(r=>r())})}canSoftRefresh(e){return!!(e&&this.renderedRows.size&&typeof this.model.areRowsEqual=="function"&&this.componentUpdater)}clearVirtualRows(){this.renderedRows.forEach((e,t)=>this.removeRow(t))}drawVirtualRows(e){if(!this.isAlive()||!this.model)return;const t=this.getGui(),n=t.scrollTop,r=n+t.offsetHeight,i=Math.floor(n/this.rowHeight),o=Math.floor(r/this.rowHeight);this.pageSize=Math.floor((r-n)/this.rowHeight),this.ensureRowsRendered(i,o,e)}ensureRowsRendered(e,t,n){this.renderedRows.forEach((r,i)=>{(i<e||i>t)&&i!==this.lastFocusedRowIndex&&this.removeRow(i)}),n&&this.refreshRows();for(let r=e;r<=t;r++)this.renderedRows.has(r)||r<this.model.getRowCount()&&this.insertRow(r)}insertRow(e){const t=this.model.getRow(e),n=document.createElement("div");n.classList.add("ag-virtual-list-item",`ag-${this.cssIdentifier}-virtual-list-item`),jo(n,this.ariaRole==="tree"?"treeitem":"option"),H3e(n,this.model.getRowCount()),j3e(n,e+1),n.setAttribute("tabindex","-1"),n.style.height=`${this.rowHeight}px`,n.style.top=`${this.rowHeight*e}px`;const r=this.componentCreator(t,n);r.addGuiEventListener("focusin",()=>this.lastFocusedRowIndex=e),n.appendChild(r.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",n):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",n):this.eContainer.appendChild(n),this.renderedRows.set(e,{rowComponent:r,eDiv:n,value:t})}removeRow(e){const t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)}refreshRows(){const e=this.model.getRowCount();this.renderedRows.forEach((t,n)=>{var r,i;if(n>=e)this.removeRow(n);else{const o=this.model.getRow(n);(i=(r=this.model).areRowsEqual)!=null&&i.call(r,t.value,o)?this.componentUpdater(o,t.rowComponent):this.removeRow(n)}})}addScrollListener(){this.addGuiEventListener("scroll",()=>this.drawVirtualRows(),{passive:!0})}setModel(e){this.model=e}getAriaElement(){return this.eContainer}destroy(){this.isAlive()&&(this.clearVirtualRows(),this.awaitStableCallbacks.length=0,super.destroy())}},Whi=class extends wn{constructor(e,t,n,r,i){super(),this.dragSourceDropTarget=e,this.ghost=t,this.horizontal=n,this.template=r,this.agComponents=i,this.eText=Ot,this.eDragHandle=Ot,this.eButton=Ot}wireBeans(e){this.dragAndDropService=e.dragAndDropService}postConstruct(){this.setTemplate(this.template??`
|
||
<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>
|
||
</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("enableRtl");r=!s&&t===Je.RIGHT||s&&t===Je.LEFT,i=!s&&t===Je.LEFT||s&&t===Je.RIGHT}if(!r&&!i)return;const o=this.focusService.findNextFocusableElement(this.getFocusableElement(),!1,i);o&&(e.preventDefault(),o.focus())}addElementClasses(e,t){t=t?`-${t}`:"";const n=this.horizontal?"horizontal":"vertical";e.classList.add(`ag-column-drop${t}`,`ag-column-drop-${n}${t}`)}setupDropTarget(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),onDragCancel:this.onDragCancel.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.dragAndDropService.addDropTarget(this.dropTarget)}minimumAllowedNewInsertIndex(){return 0}checkInsertIndex(e){const t=this.getNewInsertIndex(e);if(t<0)return!1;const n=this.minimumAllowedNewInsertIndex(),r=Math.max(n,t),i=r!==this.insertIndex;return i&&(this.insertIndex=r),i}getNewInsertIndex(e){const t=e.event,n=this.horizontal?t.clientX:t.clientY,r=this.childPillComponents.map(o=>o.getGui().getBoundingClientRect()),i=r.findIndex(o=>this.horizontal?o.right>n&&o.left<n:o.top<n&&o.bottom>n);if(i===-1){const o=this.gos.get("enableRtl");return r.every(l=>n>(this.horizontal?l.right:l.bottom))?o&&this.horizontal?0:this.childPillComponents.length:r.every(l=>n<(this.horizontal?l.left:l.top))?o&&this.horizontal?this.childPillComponents.length:0:this.insertIndex}return this.insertIndex<=i?i+1:i}checkDragStartedBySelf(e){this.state==="notDragging"&&(this.state="rearrangeItems",this.potentialDndItems=this.getItems(e.dragSource.getDragItem()),this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())}onDragging(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()}handleDragEnterEnd(e){}onDragEnter(e){const t=this.getItems(e.dragSource.getDragItem());this.state="newItemsIn";const n=t.filter(i=>this.isItemDroppable(i,e)),r=n.every(i=>this.childPillComponents.map(o=>o.getItem()).indexOf(i)!==-1);if(n.length!==0){if(this.potentialDndItems=n,r){this.state="notDragging";return}this.handleDragEnterEnd(e),this.checkInsertIndex(e),this.refreshGui()}}isPotentialDndItems(){return dw(this.potentialDndItems)}handleDragLeaveEnd(e){}onDragLeave(e){if(this.state==="rearrangeItems"){const t=this.getItems(e.dragSource.getDragItem());this.removeItems(t)}this.isPotentialDndItems()&&(this.handleDragLeaveEnd(e),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragCancel(e){this.isPotentialDndItems()&&(this.state==="newItemsIn"&&this.handleDragLeaveEnd(e),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragStop(){this.isPotentialDndItems()&&(this.state==="newItemsIn"?this.addItems(this.potentialDndItems):this.rearrangeItems(this.potentialDndItems),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}removeItems(e){const t=this.getExistingItems().filter(n=>!ll(e,n));this.updateItems(t)}addItems(e){if(!e)return;const t=this.getExistingItems().slice(),n=e.filter(r=>t.indexOf(r)<0);dLe(t,n,this.insertIndex),this.updateItems(t)}addItem(e){this.insertIndex=this.getExistingItems().length,this.addItems([e]),this.refreshGui()}rearrangeItems(e){const t=this.getNonGhostItems().slice();return dLe(t,e,this.insertIndex),vc(t,this.getExistingItems())?!1:(this.updateItems(t),!0)}refreshGui(){const e=this.ePillDropList.scrollTop,t=this.resizeEnabled,n=this.getFocusedItem();let r=this.focusService.findNextFocusableElement();r||(r=this.focusService.findNextFocusableElement(void 0,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addItemsToGui(),this.isHorizontal()||(this.ePillDropList.scrollTop=e),t&&this.toggleResizable(t),this.focusService.isKeyboardMode()&&this.restoreFocus(n,r)}getFocusedItem(){const e=this.getGui(),t=gi(this.gos);return e.contains(t)?Array.from(e.querySelectorAll(".ag-column-drop-cell")).indexOf(t):-1}restoreFocus(e,t){const n=this.getGui(),r=Array.from(n.querySelectorAll(".ag-column-drop-cell"));if(e===-1)return;r.length===0&&t.focus();const i=Math.min(r.length-1,e),o=r[i];o&&o.focus()}focusList(e){const t=e?this.childPillComponents.length-1:0;this.restoreFocus(t,this.getFocusableElement())}getNonGhostItems(){const e=this.getExistingItems();return this.isPotentialDndItems()?e.filter(t=>!ll(this.potentialDndItems,t)):e}addItemsToGui(){const t=this.getNonGhostItems().map(n=>this.createItemComponent(n,!1));if(this.isPotentialDndItems()){const n=this.potentialDndItems.map(r=>this.createItemComponent(r,!0));this.insertIndex>=t.length?t.push(...n):t.splice(this.insertIndex,0,...n)}this.appendChild(this.ePillDropList),t.forEach((n,r)=>{r>0&&this.addArrow(this.ePillDropList),this.ePillDropList.appendChild(n.getGui())}),this.addAriaLabelsToComponents()}addAriaLabelsToComponents(){this.childPillComponents.forEach((e,t)=>{const n=e.getGui();j3e(n,t+1),H3e(n,this.childPillComponents.length)})}createItemComponent(e,t){const n=this.createPillComponent(e,this.dropTarget,t,this.horizontal);return n.addEventListener("columnRemove",this.removeItems.bind(this,[e])),this.createBean(n),this.guiDestroyFunctions.push(()=>this.destroyBean(n)),t||this.childPillComponents.push(n),n}addIconAndTitleToGui(){const{title:e,icon:t}=this.params;if(!e||!t)return;const n=document.createElement("div");if(B3e(n,!0),this.addElementClasses(n,"title-bar"),this.addElementClasses(t,"icon"),this.addOrRemoveCssClass("ag-column-drop-empty",this.isExistingItemsEmpty()),n.appendChild(t),!this.horizontal){const r=document.createElement("span");this.addElementClasses(r,"title"),r.innerHTML=e,n.appendChild(r)}this.appendChild(n)}isExistingItemsEmpty(){return this.getExistingItems().length===0}addEmptyMessageToGui(){const{emptyMessage:e}=this.params;if(!e||!this.isExistingItemsEmpty()||this.isPotentialDndItems())return;const t=document.createElement("span");t.innerHTML=e,this.addElementClasses(t,"empty-message"),this.ePillDropList.appendChild(t)}addArrow(e){if(this.horizontal){const t=this.gos.get("enableRtl"),n=Gn(t?"smallLeft":"smallRight",this.gos);this.addElementClasses(n,"cell-separator"),e.appendChild(n)}}};function qhi(e){const t=e.cssIdentifier||"default";return`<div class="ag-panel ag-${t}-panel" tabindex="-1">
|
||
<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>
|
||
</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().setAllowFocus(e)}renderComponent(){const e=this.getGui(),{alwaysOnTop:t,modal:n,title:r,afterGuiAttached:i}=this.config,o=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:n,eChild:e,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:t,ariaLabel:r||o("ariaLabelDialog","Dialog"),afterGuiAttached:i});s&&(this.close=s.hideFunc)}onClosed(e){var t,n;this.destroy(),(n=(t=this.config).closedCallback)==null||n.call(t,e)}toggleMaximize(){const e=this.positionableFeature.getPosition();if(this.isMaximized){const{x:t,y:n,width:r,height:i}=this.lastPosition;this.setWidth(r),this.setHeight(i),this.positionableFeature.offsetElement(t,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()}refreshMaximizeIcon(){Mn(this.maximizeIcon,!this.isMaximized),Mn(this.minimizeIcon,this.isMaximized)}clearMaximizebleListeners(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(e=>e()),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)}destroy(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),super.destroy()}setResizable(e){this.positionableFeature.setResizable(e)}setMovable(e){this.positionableFeature.setMovable(e,this.eTitleBar)}setMaximizable(e){if(!e){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}const t=this.eTitleBar;if(!t||e===this.isMaximizable)return;const n=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),n.addManagedElementListeners(n.getGui(),{click:this.toggleMaximize.bind(this)}),this.addTitleBarButton(n,0),this.maximizeListeners.push(...this.addManagedElementListeners(t,{dblclick:this.toggleMaximize.bind(this)})),[this.resizeListenerDestroy]=this.addManagedListeners(this.positionableFeature,{resize:()=>{this.isMaximized=!1,this.refreshMaximizeIcon()}})}buildMaximizeAndMinimizeElements(){const e=this.maximizeButtonComp=this.createBean(new wn('<div class="ag-dialog-button"></span>')),t=e.getGui();return this.maximizeIcon=Gn("maximize",this.gos),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=Gn("minimize",this.gos),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e}},JQ=class extends kb{constructor(e=0,t){super('<div class="ag-menu-list" role="tree"></div>'),this.level=e,this.menuItems=[],this.params=t??{column:null,node:null,value:null}}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.handleFocusIn(e),onFocusOut:e=>this.handleFocusOut(e)})}onTabKeyDown(e){const t=this.getParentComponent(),n=t&&t.getGui();n&&n.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)}handleKeyDown(e){switch(e.key){case Je.UP:case Je.RIGHT:case Je.DOWN:case Je.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case Je.ESCAPE:this.closeIfIsChild()&&Nm(e);break}}handleFocusIn(e){var n,r;const t=e.relatedTarget;!this.tabGuardFeature.getTabGuardCtrl().isTabGuard(t)&&(this.getGui().contains(t)||(r=(n=this.activeMenuItem)==null?void 0:n.getSubMenuGui())!=null&&r.contains(t))||(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())}handleFocusOut(e){var n;const t=e.relatedTarget;!this.activeMenuItem||this.getGui().contains(t)||(n=this.activeMenuItem.getSubMenuGui())!=null&&n.contains(t)||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()}clearActiveItem(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)}addMenuItems(e){e!=null&&xr.all(e.map(t=>t==="separator"?xr.resolve({eGui:this.createSeparator()}):typeof t=="string"?(rt(`unrecognised menu item ${t}`),xr.resolve({eGui:null})):this.addItem(t))).then(t=>{(t??[]).forEach(n=>{n!=null&&n.eGui&&(this.appendChild(n.eGui),n.comp&&this.menuItems.push(n.comp))})})}addItem(e){const t=this.createManagedBean(new jLe);return t.init({menuItemDef:e,isAnotherSubMenuOpen:()=>this.menuItems.some(n=>n.isSubMenuOpen()),level:this.level,contextParams:this.params}).then(()=>(t.setParentComponent(this),this.addManagedListeners(t,{closeMenu:n=>{this.dispatchLocalEvent(n)},menuItemActivated:n=>{this.activeMenuItem&&this.activeMenuItem!==n.menuItem&&this.activeMenuItem.deactivate(),this.activeMenuItem=n.menuItem}}),{comp:t,eGui:t.getGui()}))}activateFirstItem(){const e=this.menuItems.filter(t=>!t.isDisabled())[0];e&&e.activate()}createSeparator(){return lu(`
|
||
<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>
|
||
</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 MouseEvent?t:void 0,h,g)},a=this.localeService.getLocaleTextFunc(),l=o.addPopup({modal:!0,eChild:n,positionCallback:s,anchorToElement:this.eGui,ariaLabel:a("ariaLabelSubMenu","SubMenu"),afterGuiAttached:i});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=()=>{var f,h;l&&l.hideFunc(),this.subMenuIsOpen=!1,this.setAriaExpanded(!1),r(),(h=(f=this.menuItemComp).setExpanded)==null||h.call(f,!1),this.eSubMenuGui=void 0},(u=(c=this.menuItemComp).setExpanded)==null||u.call(c,!0)}setAriaExpanded(e){this.suppressAria||wd(this.eGui,e)}closeSubMenu(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))}isSubMenuOpen(){return this.subMenuIsOpen}isSubMenuOpening(){return this.subMenuIsOpening}activate(e){var t,n;this.cancelActivate(),!this.params.disabled&&(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add(`${this.cssClassPrefix}-active`),(n=(t=this.menuItemComp).setActive)==null||n.call(t,!0),this.suppressFocus||this.eGui.focus({preventScroll:!0}),e&&this.params.subMenu&&window.setTimeout(()=>{this.isAlive()&&this.isActive&&this.openSubMenu()},300),this.onItemActivated())}deactivate(){var e,t;this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove(`${this.cssClassPrefix}-active`),(t=(e=this.menuItemComp).setActive)==null||t.call(e,!1),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()}getGui(){return this.menuItemComp.getGui()}getParentComponent(){return this.parentComponent}setParentComponent(e){this.parentComponent=e}getSubMenuGui(){return this.eSubMenuGui}onItemSelected(e){var t,n;(n=(t=this.menuItemComp).select)==null||n.call(t),this.params.action?this.getFrameworkOverrides().wrapOutgoing(()=>this.params.action(this.gos.addGridCommonParams({...this.contextParams}))):this.openSubMenu(e&&e.type==="keydown",e),!(this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect)&&this.closeMenu(e)}closeMenu(e){const t={type:"closeMenu"};e&&(e instanceof MouseEvent?t.mouseEvent=e:t.keyboardEvent=e),this.dispatchLocalEvent(t)}onItemActivated(){const e={type:"menuItemActivated",menuItem:this};this.dispatchLocalEvent(e)}cancelActivate(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)}cancelDeactivate(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)}onMouseEnter(){this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(()=>this.activate(!0),this.ACTIVATION_DELAY):this.activate(!0)}onMouseLeave(){this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(()=>this.deactivate(),this.ACTIVATION_DELAY):this.deactivate()}configureDefaults(e){var r,i,o;if(!this.menuItemComp){setTimeout(()=>this.configureDefaults(e));return}let t=this.menuItemComp.getGui();const n=(i=(r=this.menuItemComp).getRootElement)==null?void 0:i.call(r);n&&(e!=null&&e.suppressRootStyles||t.classList.add("ag-menu-option-custom"),t=n),this.eGui=t,this.suppressRootStyles=!!(e!=null&&e.suppressRootStyles),this.suppressRootStyles||(t.classList.add(this.cssClassPrefix),(o=this.params.cssClasses)==null||o.forEach(s=>t.classList.add(s)),this.params.disabled&&t.classList.add(`${this.cssClassPrefix}-disabled`)),e!=null&&e.suppressTooltip||this.refreshTooltip(this.params.tooltip),this.suppressAria=!!(e!=null&&e.suppressAria),this.suppressAria||(jo(t,"treeitem"),z3e(t,this.level+1),this.params.disabled&&nft(t,!0)),e!=null&&e.suppressTabIndex||t.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(t,e),this.suppressFocus=!!(e!=null&&e.suppressFocus)}refreshTooltip(e,t){this.tooltip=e,this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),!(!e||!this.menuItemComp)&&(this.tooltipFeature=this.createBean(new Lb({getGui:()=>this.getGui(),getTooltipValue:()=>this.tooltip,getLocation:()=>"menu",shouldDisplayTooltip:t})))}destroy(){var e,t;this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),(t=(e=this.menuItemComp)==null?void 0:e.destroy)==null||t.call(e),super.destroy()}},foe="ag-list-item-hovered",Qhi=class extends ct{constructor(e,t,n){super(),this.comp=e,this.virtualList=t,this.params=n,this.currentDragValue=null,this.lastHoveredListItem=null}wireBeans(e){this.dragAndDropService=e.dragAndDropService}postConstruct(){this.addManagedListeners(this.params.eventSource,{[this.params.listItemDragStartEvent]:this.listItemDragStart.bind(this),[this.params.listItemDragEndEvent]:this.listItemDragEnd.bind(this)}),this.createDropTarget(),this.createAutoScrollService()}listItemDragStart(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)}listItemDragEnd(){window.setTimeout(()=>{this.currentDragValue=null,this.moveBlocked=!1},10)}createDropTarget(){const e={isInterestedIn:t=>t===this.params.dragSourceType,getIconName:()=>this.moveBlocked?"pinned":"move",getContainer:()=>this.comp.getGui(),onDragging:t=>this.onDragging(t),onDragStop:()=>this.onDragStop(),onDragLeave:()=>this.onDragLeave(),onDragCancel:()=>this.onDragCancel()};this.dragAndDropService.addDropTarget(e)}createAutoScrollService(){const e=this.virtualList.getGui();this.autoScrollService=new X3e({scrollContainer:e,scrollAxis:"y",getVerticalPosition:()=>e.scrollTop,setVerticalPosition:t=>e.scrollTop=t})}onDragging(e){if(!this.currentDragValue||this.moveBlocked)return;const t=this.getListDragItem(e),n=this.virtualList.getComponentAt(t.rowIndex);if(!n)return;const r=n.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===t.rowIndex&&this.lastHoveredListItem.position===t.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=t,vLe(r,foe),vLe(r,`ag-item-highlight-${t.position}`))}getListDragItem(e){const t=this.virtualList.getGui(),n=parseFloat(window.getComputedStyle(t).paddingTop),r=this.virtualList.getRowHeight(),i=this.virtualList.getScrollTop(),o=Math.max(0,(e.y-n+i)/r),s=this.params.getNumRows(this.comp)-1,a=Math.min(s,o)|0;return{rowIndex:a,position:Math.round(o)>o||o>s?"bottom":"top",component:this.virtualList.getComponentAt(a)}}onDragStop(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearDragProperties())}onDragCancel(){this.clearDragProperties()}onDragLeave(){this.clearDragProperties()}clearDragProperties(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()}clearHoveredItems(){this.virtualList.getGui().querySelectorAll(`.${foe}`).forEach(t=>{[foe,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(n=>{t.classList.remove(n)})}),this.lastHoveredListItem=null}};function Zhi(e){return`<div class="ag-tabs ${e}">
|
||
<div data-ref="eHeader"></div>
|
||
<div data-ref="eBody" role="presentation" class="ag-tabs-body ${e?`${e}-body`:""}"></div>
|
||
</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.keepScrollPosition){const f=t.getScrollableContainer&&t.getScrollableContainer()||c;[this.lastScrollListener]=this.addManagedElementListeners(f,{scroll:()=>{this.tabbedItemScrollMap.set(t.name,f.scrollTop)}});const h=this.tabbedItemScrollMap.get(t.name);h!==void 0&&setTimeout(()=>{f.scrollTop=h},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),(l=(a=this.activeItem.tabbedItem).afterDetachedCallback)==null||l.call(a)),n.classList.add("ag-tab-selected"),this.activeItem=e}},C6e=class extends ct{wireBeans(e){this.expressionService=e.expressionService,this.valueService=e.valueService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.userComponentFactory=e.userComponentFactory,this.ctrlsService=e.ctrlsService,this.funcColsService=e.funcColsService}init(e,t,n,r,i,o,s){var u,f,h,g;this.params=s,this.eGui=t,this.eCheckbox=n,this.eExpanded=r,this.eContracted=i,this.comp=e,this.compClass=o;const{node:a,colDef:l}=s,c=this.isTopLevelFooter();if(!c){if(this.isEmbeddedRowMismatch())return;if(a.footer&&this.gos.get("groupHideOpenParents")){const m=l&&l.showRowGroup,v=a.rowGroupColumn&&a.rowGroupColumn.getColId();if(m!==v)return}}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!c){const p=s.node.footer&&s.node.rowGroupIndex===this.funcColsService.getRowGroupColumns().findIndex(w=>{var x;return w.getColId()===((x=s.colDef)==null?void 0:x.showRowGroup)}),v=this.gos.get("groupDisplayType")!="multipleColumns"||this.gos.get("treeData")||this.gos.get("showOpenedGroup")&&!s.node.footer&&(!s.node.group||s.node.rowGroupIndex!=null&&s.node.rowGroupIndex>this.funcColsService.getRowGroupColumns().findIndex(w=>{var x;return w.getColId()===((x=s.colDef)==null?void 0:x.showRowGroup)})),C=!a.group&&(((u=this.params.colDef)==null?void 0:u.field)||((f=this.params.colDef)==null?void 0:f.valueGetter)),y=this.isExpandable(),b=this.columnModel.isPivotMode()&&a.leafGroup&&((h=a.rowGroupColumn)==null?void 0:h.getColId())===((g=s.column)==null?void 0:g.getColDef().showRowGroup);if(!this.showingValueForOpenedParent&&!y&&!C&&!v&&!p&&!b)return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()}getCellAriaRole(){var n,r;const e=(n=this.params.colDef)==null?void 0:n.cellAriaRole,t=(r=this.params.column)==null?void 0:r.getColDef().cellAriaRole;return e||t||"gridcell"}destroy(){super.destroy(),this.expandListener=null}refreshAriaExpanded(){const{node:e,eGridCell:t}=this.params;if(this.expandListener&&(this.expandListener=this.expandListener()),!this.isExpandable()){Dri(t);return}const n=()=>{wd(t,this.showingValueForOpenedParent||!!e.expanded)};[this.expandListener]=this.addManagedListeners(e,{expandedChanged:n})||null,n()}isTopLevelFooter(){if(!BQ(this.gos)||this.params.value!=null||this.params.node.level!=-1)return!1;const t=this.params.colDef;if(t==null||t.showRowGroup===!0)return!0;const r=this.funcColsService.getRowGroupColumns();return!r||r.length===0?!0:r[0].getId()===t.showRowGroup}isEmbeddedRowMismatch(){if(!this.params.fullWidth||!this.gos.get("embedFullWidthRows"))return!1;const e=this.params.pinned==="left",t=this.params.pinned==="right",n=!e&&!t;return this.gos.get("enableRtl")?this.visibleColsService.isPinningLeft()?!t:!n:this.visibleColsService.isPinningLeft()?!e:!n}findDisplayedGroupNode(){const e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent){let n=t.parent;for(;n!=null;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}}ar(this.displayedGroupNode)&&(this.displayedGroupNode=t)}setupShowingValueForOpenedParent(){const e=this.params.node,t=this.params.column;if(!this.gos.get("groupHideOpenParents")){this.showingValueForOpenedParent=!1;return}if(!e.groupData){this.showingValueForOpenedParent=!1;return}if(e.rowGroupColumn!=null){const i=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(i)){this.showingValueForOpenedParent=!1;return}}const r=e.groupData[t.getId()]!=null;this.showingValueForOpenedParent=r}addValueElement(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())}addGroupValue(){var o;const e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),{valueFormatted:n,value:r}=e;let i=n;if(i==null){const s=this.displayedGroupNode.rowGroupColumn&&((o=this.params.column)==null?void 0:o.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));this.displayedGroupNode.key===""&&this.displayedGroupNode.group&&s?i=this.localeService.getLocaleTextFunc()("blanks","(Blanks)"):i=r??null}this.comp.setInnerRenderer(t,i)}adjustParamsWithDetailsFromRelatedColumn(){const e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(t!=null&&!t.isRowGroupDisplayed(e.getId()))return this.params;const r=this.params,{value:i,node:o}=this.params,s=this.valueService.formatValue(e,o,i);return{...r,valueFormatted:s}}addFooterValue(){let e=this.params.totalValueGetter;if(!e){const r=this.params.footerValueGetter;r&&(e=r,rt("As of v31.3, footerValueGetter is deprecated. Use `totalValueGetter` instead."))}let t="";if(e){const r=jQ(this.params);r.value=this.params.value,typeof e=="function"?t=e(r):typeof e=="string"?t=this.expressionService.evaluate(e,r):rt("footerValueGetter should be either a function or a string (expression)")}else t=this.localeService.getLocaleTextFunc()("footerTotal","Total")+" "+(this.params.value!=null?this.params.value:"");const n=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(n,t)}getInnerCompDetails(e){if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gos.get("groupRowRendererParams"),e);const t=this.userComponentFactory.getInnerRendererDetails(e,e),n=s=>s&&s.componentClass==this.compClass;if(t&&!n(t))return t;const r=this.displayedGroupNode.rowGroupColumn,i=r?r.getColDef():void 0;if(!i)return;const o=this.userComponentFactory.getCellRendererDetails(i,e);if(o&&!n(o))return o;if(n(o)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}addChildCount(){this.params.suppressCount||(this.addManagedListeners(this.displayedGroupNode,{allChildrenCountChanged:this.updateChildCount.bind(this)}),this.updateChildCount())}updateChildCount(){const e=this.displayedGroupNode.allChildrenCount,r=this.isShowRowGroupForThisRow()&&e!=null&&e>=0?`(${e})`:"";this.comp.setChildCount(r)}isShowRowGroupForThisRow(){if(this.gos.get("treeData"))return!0;const e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;const t=this.params.column;return t==null||t.isRowGroupDisplayed(e.getId())}addExpandAndContract(){var o;const e=this.params,t=(s,a)=>{const l=Gn(s,this.gos,null);l&&(a.appendChild(l),this.addDestroyFunc(()=>a.removeChild(l)))};t("groupExpanded",this.eExpanded),t("groupContracted",this.eContracted);const n=e.eGridCell;!(((o=this.params.column)==null?void 0:o.isCellEditable(e.node))&&this.gos.get("enableGroupEdit"))&&this.isExpandable()&&!e.suppressDoubleClickExpand&&this.addManagedListeners(n,{dblclick:this.onCellDblClicked.bind(this)}),this.addManagedListeners(this.eExpanded,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(this.eContracted,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(n,{keydown:this.onKeyDown.bind(this)}),this.addManagedListeners(e.node,{expandedChanged:this.showExpandAndContractIcons.bind(this)}),this.showExpandAndContractIcons();const i=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListeners(this.displayedGroupNode,{allChildrenCountChanged:i,masterChanged:i,groupChanged:i,hasChildrenChanged:i})}onExpandClicked(e){Ig(e)||(Nm(e),this.onExpandOrContract(e))}onExpandOrContract(e){const t=this.displayedGroupNode,n=!t.expanded;!n&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(n,e)}scrollToStickyNode(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)}isExpandable(){if(this.showingValueForOpenedParent)return!0;const e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;const r=this.params.column;return r!=null&&typeof r.getColDef().showRowGroup=="string"?this.isShowRowGroupForThisRow():!0}showExpandAndContractIcons(){const{params:e,displayedGroupNode:t,columnModel:n}=this,{node:r}=e,i=this.isExpandable();if(i){const c=this.showingValueForOpenedParent?!0:r.expanded;this.comp.setExpandedDisplayed(c),this.comp.setContractedDisplayed(!c)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);const o=n.isPivotMode(),s=o&&t.leafGroup,a=i&&!s,l=r.footer&&r.level===-1;this.comp.addOrRemoveCssClass("ag-cell-expandable",a),this.comp.addOrRemoveCssClass("ag-row-group",a),o?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",!!s):l||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!a)}onRowNodeIsExpandableChanged(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()}setupIndent(){const e=this.params.node;this.params.suppressPadding||(this.addManagedListeners(e,{uiLevelChanged:this.setIndent.bind(this)}),this.setIndent())}setIndent(){if(this.gos.get("groupHideOpenParents"))return;const e=this.params,t=e.node,n=!!e.colDef,r=this.gos.get("treeData"),o=!n||r||e.colDef.showRowGroup===!0?t.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+o,this.comp.addOrRemoveCssClass(this.indentClass,!0),this.eGui.style.setProperty("--ag-indentation-level",String(o))}addFullWidthRowDraggerIfNeeded(){if(!this.params.fullWidth||!this.params.rowDrag)return;const e=new RH(()=>this.params.value,this.params.node);this.createManagedBean(e),this.eGui.insertAdjacentElement("afterbegin",e.getGui())}isUserWantsSelected(){const e=this.params.checkbox;return typeof e=="function"||e===!0}addCheckboxIfNeeded(){const e=this.displayedGroupNode,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){const n=new vht;this.createBean(n),n.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc(()=>{this.eCheckbox.removeChild(n.getGui()),this.destroyBean(n)})}this.comp.setCheckboxVisible(t)}onKeyDown(e){!(e.key===Je.ENTER)||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)}onCellDblClicked(e){if(Ig(e))return;efe(this.eExpanded,e)||efe(this.eContracted,e)||this.onExpandOrContract(e)}},egi=`<span class="ag-cell-wrapper">
|
||
<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>
|
||
</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.funcColsService=e.funcColsService,this.pivotResultColsService=e.pivotResultColsService,this.valueService=e.valueService}execute(e){const t=Es(this.funcColsService.getValueColumns()),n=!this.gos.getCallback("getGroupRowAgg"),r=e.changedPath&&e.changedPath.isActive();if(t&&n&&r)return;const i=this.createAggDetails(e);this.recursivelyCreateAggData(i)}createAggDetails(e){const t=this.columnModel.isPivotActive(),n=this.funcColsService.getValueColumns(),r=t?this.funcColsService.getPivotColumns():[];return{alwaysAggregateAtRootLevel:this.gos.get("alwaysAggregateAtRootLevel"),groupIncludeTotalFooter:!!BQ(this.gos),changedPath:e.changedPath,valueColumns:n,pivotColumns:r,filteredOnly:!this.isSuppressAggFilteredOnly(),userAggFunc:this.gos.getCallback("getGroupRowAgg")}}isSuppressAggFilteredOnly(){return yI(this.gos)!==void 0||this.gos.get("suppressAggFilteredOnly")}recursivelyCreateAggData(e){const t=n=>{if(!n.hasChildren()){n.aggData&&n.setAggData(null);return}if(n.level===-1&&!e.groupIncludeTotalFooter){const o=!this.columnModel.isPivotMode();if(!e.alwaysAggregateAtRootLevel&&o){n.setAggData(null);return}}this.aggregateRowNode(n,e)};e.changedPath.forEachChangedNodeDepthFirst(t,!0)}aggregateRowNode(e,t){const n=t.valueColumns.length===0,r=t.pivotColumns.length===0;let i;t.userAggFunc?i=t.userAggFunc({nodes:e.childrenAfterFilter}):n?i=null:r?i=this.aggregateRowNodeUsingValuesOnly(e,t):i=this.aggregateRowNodeUsingValuesAndPivot(e),e.setAggData(i),e.sibling&&e.sibling.setAggData(i)}aggregateRowNodeUsingValuesAndPivot(e){var i;const t={},n=((i=this.pivotResultColsService.getPivotResultCols())==null?void 0:i.list)??[];let r=!0;for(let o=0;o<n.length;o++){const s=n[o],a=s.getColDef();if(a.pivotTotalColumnIds!=null){r=!1;continue}const l=a.pivotKeys??[];let c;e.leafGroup?c=this.getValuesFromMappedSet(e.childrenMapped,l,a.pivotValueColumn):c=this.getValuesPivotNonLeaf(e,a.colId),t[a.colId]=this.aggregateValues(c,a.pivotValueColumn.getAggFunc(),a.pivotValueColumn,e,s)}if(!r)for(let o=0;o<n.length;o++){const s=n[o],a=s.getColDef();if(a.pivotTotalColumnIds==null||!a.pivotTotalColumnIds.length)continue;const l=a.pivotTotalColumnIds.map(c=>t[c]);t[a.colId]=this.aggregateValues(l,a.pivotValueColumn.getAggFunc(),a.pivotValueColumn,e,s)}return t}aggregateRowNodeUsingValuesOnly(e,t){const n={},r=t.changedPath.isActive()?t.changedPath.getValueColumnsForNode(e,t.valueColumns):t.valueColumns,i=t.changedPath.isActive()?t.changedPath.getNotValueColumnsForNode(e,t.valueColumns):null,o=this.getValuesNormal(e,r,t.filteredOnly),s=e.aggData;return r.forEach((a,l)=>{n[a.getId()]=this.aggregateValues(o[l],a.getAggFunc(),a,e)}),i&&s&&i.forEach(a=>{n[a.getId()]=s[a.getId()]}),n}getValuesPivotNonLeaf(e,t){return e.childrenAfterFilter.map(n=>n.aggData[t])}getValuesFromMappedSet(e,t,n){let r=e;for(let i=0;i<t.length;i++){const o=t[i];r=r?r[o]:null}return r?r.map(i=>this.valueService.getValue(n,i)):[]}getValuesNormal(e,t,n){const r=[];t.forEach(()=>r.push([]));const i=t.length,o=n?e.childrenAfterFilter:e.childrenAfterGroup,s=o.length;for(let a=0;a<s;a++){const l=o[a];for(let c=0;c<i;c++){const u=t[c],f=this.valueService.getValue(u,l);r[c].push(f)}}return r}aggregateValues(e,t,n,r,i){const o=typeof t=="string"?this.aggFuncService.getAggFunc(t):t;if(typeof o!="function")return Mr(`unrecognised aggregation function ${t}`),null;const s=o,a=this.gos.addGridCommonParams({values:e,column:n,colDef:n?n.getColDef():void 0,pivotResultColumn:i,rowNode:r,data:r?r.data:void 0});return s(a)}},dgi=class extends ct{constructor(){super(...arguments),this.beanName="autoColService"}wireBeans(e){this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.columnFactory=e.columnFactory}createAutoCols(e){const t=[],n=this.gos.get("treeData");let r=M3e(this.gos);return n&&r&&(rt('you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),r=!1),r?e.forEach((i,o)=>{t.push(this.createOneAutoCol(i,o))}):t.push(this.createOneAutoCol()),t}updateAutoCols(e,t){e.forEach((n,r)=>this.updateOneAutoCol(n,r,t))}createOneAutoCol(e,t){let n;e?n=`${yy}-${e.getId()}`:n=yy;const r=this.createAutoColDef(n,e,t);r.colId=n;const i=new VQ(r,null,n,!0);return this.createBean(i),i}updateOneAutoCol(e,t,n){const r=e.getColDef(),i=typeof r.showRowGroup=="string"?r.showRowGroup:void 0,o=i!=null?this.columnModel.getColDefCol(i):void 0,s=this.createAutoColDef(e.getId(),o??void 0,t);e.setColDef(s,null,n),this.columnFactory.applyColumnState(e,s,n)}createAutoColDef(e,t,n){let r=this.createBaseColDef(t);const i=this.gos.get("autoGroupColumnDef");nl(r,i),r=this.columnFactory.addColumnDefaultAndTypes(r,e),this.gos.get("treeData")||ar(r.field)&&ar(r.valueGetter)&&ar(r.filterValueGetter)&&r.filter!=="agGroupColumnFilter"&&(r.filter=!1),n&&n>0&&(r.headerCheckboxSelection=!1);const o=ug(this.gos),s=r.valueGetter||r.field!=null;return o&&!s&&(r.sortIndex=void 0,r.initialSort=void 0),r}createBaseColDef(e){const t=this.gos.get("autoGroupColumnDef"),r={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererSelector)||(r.cellRenderer="agGroupCellRenderer"),e){const o=e.getColDef();Object.assign(r,{headerName:this.columnNameService.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),o.cellRenderer&&Object.assign(r,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererParams:o.cellRendererParams}}),r.showRowGroup=e.getColId()}else r.showRowGroup=!0;return r}},fgi=class extends Whi{constructor(e,t,n,r,i){super(t,n,i,`
|
||
<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>
|
||
`,[$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.setComponentCreator(this.createAggSelect.bind(this,l.hideFunc)),e.addGuiEventListener("keydown",u=>{if(u.key===Je.ENTER||u.key===Je.SPACE){const f=e.getLastFocusedRow();if(f==null)return;const h=e.getComponentAt(f);h&&h.selectItem()}}),this.popupService.positionPopupByComponent({type:"aggFuncSelect",eventSource:n,ePopup:i,keepWithinBounds:!0,column:this.column,position:"under"}),e.refresh();let c=t.findIndex(u=>u===this.column.getAggFunc());c===-1&&(c=0),e.focusRow(c)}createAggSelect(e,t){const n=()=>{e(),this.getGui().focus(),this.funcColsService.setColumnAggFunc(this.column,t,"toolPanelDragAndDrop")},r=this.localeService.getLocaleTextFunc(),i=t.toString(),o=r(i,i);return new hgi(n,o)}isGroupingAndLocked(){return this.isGroupingZone()&&this.columnModel.isColGroupLocked(this.column)}isAggregationZone(){return this.dropZonePurpose==="aggregation"}isGroupingZone(){return this.dropZonePurpose==="rowGroup"}getDragSourceType(){return by.ToolPanel}destroy(){super.destroy(),this.column=null}},hgi=class extends wn{constructor(e,t){super('<div class="ag-select-agg-func-item"/>'),this.selectItem=e,this.getGui().innerText=t,this.addGuiEventListener("click",this.selectItem)}},y6e=class extends Uhi{constructor(e,t){super(e),this.dropZonePurpose=t}wireBeans(e){super.wireBeans(e),this.columnModel=e.columnModel,this.funcColsService=e.funcColsService}init(e){super.init(e),this.addManagedEventListeners({newColumnsLoaded:this.refreshGui.bind(this)}),this.addManagedPropertyListeners(["functionsReadOnly","rowGroupPanelSuppressSort","groupLockGroupColumns"],this.refreshGui.bind(this))}getItems(e){return e.columns??[]}isInterestedIn(e){return e===by.HeaderCell||e===by.ToolPanel}minimumAllowedNewInsertIndex(){const e=this.gos.get("groupLockGroupColumns"),t=this.funcColsService.getRowGroupColumns().length;return e===-1?t:Math.min(e,t)}showOrHideColumnOnExit(e){return this.isRowGroupPanel()&&!this.gos.get("suppressRowGroupHidesColumns")&&!e.fromNudge}handleDragEnterEnd(e){if(this.showOrHideColumnOnExit(e)){const r=e.dragSource.getDragItem().columns;this.setColumnsVisible(r,!1,"uiColumnDragged")}}handleDragLeaveEnd(e){if(this.showOrHideColumnOnExit(e)){const n=e.dragSource.getDragItem();this.setColumnsVisible(n.columns,!0,"uiColumnDragged")}}setColumnsVisible(e,t,n){if(e){const r=e.filter(i=>!i.getColDef().lockVisible);this.columnModel.setColsVisible(r,t,n)}}isRowGroupPanel(){return this.dropZonePurpose==="rowGroup"}createPillComponent(e,t,n,r){return new fgi(e,t,n,this.dropZonePurpose,r)}},Cfe=class extends y6e{constructor(e){super(e,"pivot")}postConstruct(){const e=this.localeService.getLocaleTextFunc(),t=e("pivotColumnsEmptyMessage","Drag here to set column labels"),n=e("pivots","Column Labels");super.init({icon:Gn("pivotPanel",this.gos,null),emptyMessage:t,title:n}),this.addManagedEventListeners({newColumnsLoaded:this.refresh.bind(this),columnPivotChanged:this.refresh.bind(this),columnPivotModeChanged:this.checkVisibility.bind(this)}),this.refresh()}getAriaLabel(){return this.localeService.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")}getTooltipParams(){const e=super.getTooltipParams();return e.location="pivotColumnsList",e}refresh(){this.checkVisibility(),this.refreshGui()}checkVisibility(){const e=this.columnModel.isPivotMode();if(this.isHorizontal())switch(this.gos.get("pivotPanelShow")){case"always":this.setDisplayed(e);break;case"onlyWhenPivoting":{const t=this.columnModel.isPivotActive();this.setDisplayed(e&&t);break}default:this.setDisplayed(!1);break}else this.setDisplayed(e)}isItemDroppable(e,t){return this.gos.get("functionsReadOnly")||!e.isPrimary()?!1:e.isAllowPivot()&&(!e.isPivotActive()||this.isSourceEventFromTarget(t))}updateItems(e){this.funcColsService.setPivotColumns(e,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"pivot":"notAllowed"}getExistingItems(){return this.funcColsService.getPivotColumns()}},yfe=class extends y6e{constructor(e){super(e,"rowGroup")}postConstruct(){const e=this.localeService.getLocaleTextFunc(),t=e("rowGroupColumnsEmptyMessage","Drag here to set row groups"),n=e("groups","Row Groups");super.init({icon:Gn("rowGroupPanel",this.gos,null),emptyMessage:t,title:n}),this.addManagedEventListeners({columnRowGroupChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.localeService.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")}getTooltipParams(){const e=super.getTooltipParams();return e.location="rowGroupColumnsList",e}isItemDroppable(e,t){return this.gos.get("functionsReadOnly")||!e.isPrimary()?!1:e.isAllowRowGroup()&&(!e.isRowGroupActive()||this.isSourceEventFromTarget(t))}updateItems(e){this.funcColsService.setRowGroupColumns(e,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"group":"notAllowed"}getExistingItems(){return this.funcColsService.getRowGroupColumns()}},ggi=class extends wn{wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService}constructor(){super()}postConstruct(){this.setGui(this.createNorthPanel());const e=this.onRowGroupChanged.bind(this);this.addManagedEventListeners({columnRowGroupChanged:e,newColumnsLoaded:e}),this.addManagedPropertyListener("rowGroupPanelShow",e),this.addManagedPropertyListener("pivotPanelShow",()=>this.onPivotPanelShow()),this.onRowGroupChanged()}createNorthPanel(){const e=document.createElement("div");e.classList.add("ag-column-drop-wrapper"),jo(e,"presentation"),this.rowGroupComp=new yfe(!0),this.createManagedBean(this.rowGroupComp),this.pivotComp=new Cfe(!0),this.createManagedBean(this.pivotComp),e.appendChild(this.rowGroupComp.getGui()),e.appendChild(this.pivotComp.getGui());const t=this.onDropPanelVisible.bind(this);return this.addManagedListeners(this.rowGroupComp,{displayChanged:t}),this.addManagedListeners(this.pivotComp,{displayChanged:t}),this.onDropPanelVisible(),e}onDropPanelVisible(){const e=this.rowGroupComp.isDisplayed()&&this.pivotComp.isDisplayed(),t="ag-column-drop-horizontal-half-width";this.rowGroupComp.addOrRemoveCssClass(t,e),this.pivotComp.addOrRemoveCssClass(t,e)}onRowGroupChanged(){if(!this.rowGroupComp)return;const e=this.gos.get("rowGroupPanelShow");if(e==="always")this.rowGroupComp.setDisplayed(!0);else if(e==="onlyWhenGrouping"){const t=!this.funcColsService.isRowGroupEmpty();this.rowGroupComp.setDisplayed(t)}else this.rowGroupComp.setDisplayed(!1)}onPivotPanelShow(){if(!this.pivotComp)return;const e=this.gos.get("pivotPanelShow");if(e==="always")this.pivotComp.setDisplayed(!0);else if(e==="onlyWhenPivoting"){const t=this.columnModel.isPivotActive();this.pivotComp.setDisplayed(t)}else this.pivotComp.setDisplayed(!1)}},pgi={selector:"AG-GRID-HEADER-DROP-ZONES",component:ggi},mgi=class extends ct{constructor(){super(...arguments),this.beanName="columnDropZonesService"}getDropZoneSelector(){return pgi}},vgi=class extends ct{constructor(){super(...arguments),this.beanName="filterAggregatesStage"}wireBeans(e){this.filterManager=e.filterManager,this.columnModel=e.columnModel}execute(e){var c,u;const t=this.columnModel.isPivotMode(),n=((c=this.filterManager)==null?void 0:c.isAggregateFilterPresent())||((u=this.filterManager)==null?void 0:u.isAggregateQuickFilterPresent()),r=f=>!f.node.group,i=f=>f.node.leafGroup,o=yI(this.gos)||(t?i:r),{changedPath:s}=e,a=(f,h=!1)=>{f.childrenAfterFilter&&(f.childrenAfterAggFilter=f.childrenAfterFilter,h&&f.childrenAfterAggFilter.forEach(g=>a(g,h)),this.setAllChildrenCount(f)),f.sibling&&(f.sibling.childrenAfterAggFilter=f.childrenAfterAggFilter)},l=f=>{var h;f.childrenAfterAggFilter=((h=f.childrenAfterFilter)==null?void 0:h.filter(g=>{var v;return o({node:g})&&this.filterManager.doesRowPassAggregateFilters({rowNode:g})?(a(g,!0),!0):(v=g.childrenAfterAggFilter)==null?void 0:v.length}))||null,this.setAllChildrenCount(f),f.sibling&&(f.sibling.childrenAfterAggFilter=f.childrenAfterAggFilter)};s.forEachChangedNodeDepthFirst(n?l:a,!0)}setAllChildrenCountTreeData(e){const t=e.childrenAfterAggFilter;let n=0;if(t){const r=t.length;n=r;for(let i=0;i<r;++i)n+=t[i].allChildrenCount??0}e.setAllChildrenCount(n===0&&e.level>=0?null:n)}setAllChildrenCountGridGrouping(e){let t=0;e.childrenAfterAggFilter.forEach(n=>{n.group?t+=n.allChildrenCount:t++}),e.setAllChildrenCount(t)}setAllChildrenCount(e){if(!e.hasChildren()){e.setAllChildrenCount(null);return}this.gos.get("treeData")?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)}},Cgi=class extends kb{constructor(){super(`
|
||
<div class="ag-group-filter">
|
||
<div data-ref="eGroupField"></div>
|
||
<div data-ref="eUnderlyingFilter"></div>
|
||
</div>
|
||
`),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.selectedFilter=t==null?void 0:t.filter,this.dispatchLocalEvent({type:"selectedColumnChanged"}),this.addUnderlyingFilterElement()}isFilterActive(){var e;return!!((e=this.filterColumnPairs)!=null&&e.some(({filter:t})=>t.isFilterActive()))}doesFilterPass(){return!0}getModel(){return null}setModel(){return xr.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.addUnderlyingFilterElement()}afterGuiDetached(){var e,t;go(this.eUnderlyingFilter),(t=(e=this.selectedFilter)==null?void 0:e.afterGuiDetached)==null||t.call(e)}onColumnRowGroupChanged(){this.updateGroups().then(()=>{this.dispatchLocalEvent({type:"columnRowGroupChanged"})})}onFilterDestroyed({column:e,source:t}){var r;if(t==="gridDestroyed")return;const n=e.getColId();(r=this.filterColumnPairs)!=null&&r.some(({column:i})=>i.getColId()===n)&&setTimeout(()=>{this.isAlive()&&this.updateGroups()})}getFilterColumnPair(e){var t;if(e)return(t=this.filterColumnPairs)==null?void 0:t.find(({column:n})=>n.getId()===e)}getSelectedFilter(){return this.selectedFilter}getSelectedColumn(){return this.selectedColumn}isFilterAllowed(){return!!this.selectedColumn}destroy(){super.destroy()}},ygi=class extends wn{constructor(){super(`
|
||
<div data-ref="eFloatingFilter" class="ag-group-floating-filter ag-floating-filter-input" role="presentation"></div>
|
||
`),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(){this.allParents.forEach(e=>{var r;const t=this.allSets[e.id];e.childrenAfterGroup=e.childrenAfterGroup.filter(i=>!t.removeFromChildrenAfterGroup[i.id]),e.allLeafChildren=((r=e.allLeafChildren)==null?void 0:r.filter(i=>!t.removeFromAllLeafChildren[i.id]))??null,e.updateHasChildren();const n=e.sibling;n&&(n.childrenAfterGroup=e.childrenAfterGroup,n.allLeafChildren=e.allLeafChildren)}),this.allSets={},this.allParents.length=0}};function bgi(e){if(!e)return!1;const t=e.length;if(t<2)return!1;let n=!1;for(let r=1;r<t;r++)if(VLe(e[r-1],e[r])>0){n=!0;break}return n?(e.sort(VLe),!0):!1}function VLe(e,t){const n=e.sourceRowIndex,r=t.sourceRowIndex,i=n>=0,o=r>=0,s=i&&o,a=!i&&!o;return s?n-r:a?e.__objectId-t.__objectId:i?1:-1}var Sgi=class extends ct{wireBeans(e){this.beans=e,this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.valueService=e.valueService,this.selectionService=e.selectionService,this.showRowGroupColsService=e.showRowGroupColsService}execute(e){const t=this.createGroupingDetails(e);if(t.transactions)this.handleTransaction(t);else{const n=e.afterColumnsChanged===!0;this.shotgunResetEverything(t,n)}this.positionLeafsAndGroups(e.changedPath),this.orderGroups(t)}positionLeafsAndGroups(e){e.forEachChangedNodeDepthFirst(t=>{if(t.childrenAfterGroup){const n=[],r=[];let i;t.childrenAfterGroup.forEach(o=>{var s;(s=o.childrenAfterGroup)!=null&&s.length?o.key===""&&!i?i=o:r.push(o):n.push(o)}),i&&r.push(i),t.childrenAfterGroup=[...n,...r]}},!1)}createGroupingDetails(e){const{rowNode:t,changedPath:n,rowNodeTransactions:r,rowNodesOrderChanged:i}=e,o=this.funcColsService.getRowGroupColumns();return{expandByDefault:this.gos.get("groupDefaultExpanded"),groupedCols:o,rootNode:t,pivotMode:this.columnModel.isPivotMode(),groupedColCount:(o==null?void 0:o.length)??0,transactions:r,rowNodesOrderChanged:!!i,changedPath:n,groupAllowUnbalanced:this.gos.get("groupAllowUnbalanced"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault"),initialGroupOrderComparator:this.gos.getCallback("initialGroupOrderComparator"),suppressGroupMaintainValueType:this.gos.get("suppressGroupMaintainValueType"),keyCreators:(o==null?void 0:o.map(a=>a.getColDef().keyCreator))??[]}}handleTransaction(e){e.transactions.forEach(t=>{const n=new hoe;dw(t.remove)&&this.removeNodes(t.remove,e,n),dw(t.update)&&this.moveNodesInWrongPath(t.update,e,n),dw(t.add)&&this.insertNodes(t.add,e);const r=n.getAllParents().slice();n.flush(),this.removeEmptyGroups(r,e)}),e.rowNodesOrderChanged&&this.sortChildren(e)}sortChildren(e){e.changedPath.forEachChangedNodeDepthFirst(t=>{bgi(t.childrenAfterGroup)&&e.changedPath.addParentNode(t)},!1,!0)}orderGroups(e){const t=e.initialGroupOrderComparator;zt(t)&&n(e.rootNode);function n(r){zt(r.childrenAfterGroup)&&!r.leafGroup&&(r.childrenAfterGroup.sort((o,s)=>t({nodeA:o,nodeB:s})),r.childrenAfterGroup.forEach(o=>n(o)))}}getExistingPathForNode(e,t){const n=[];let r=e.parent;for(;r&&r!==t.rootNode;)n.push({key:r.key,rowGroupColumn:r.rowGroupColumn,field:r.field}),r=r.parent;return n.reverse(),n}moveNodesInWrongPath(e,t,n){e.forEach(r=>{t.changedPath.isActive()&&t.changedPath.addParentNode(r.parent);const i=l=>l.key,o=this.getExistingPathForNode(r,t).map(i),s=this.getGroupInfo(r,t).map(i);vc(o,s)||this.moveNode(r,t,n)})}moveNode(e,t,n){if(this.removeNodesFromParents([e],t,n),this.insertOneNode(e,t,n),e.setData(e.data),t.changedPath.isActive()){const r=e.parent;t.changedPath.addParentNode(r)}}removeNodes(e,t,n){this.removeNodesFromParents(e,t,n),t.changedPath.isActive()&&e.forEach(r=>t.changedPath.addParentNode(r.parent))}forEachParentGroup(e,t,n){let r=t;for(;r&&r!==e.rootNode;)n(r),r=r.parent}removeNodesFromParents(e,t,n){const r=n==null,i=n||new hoe;e.forEach(o=>{this.removeFromParent(o,i),this.forEachParentGroup(t,o.parent,s=>{i.removeFromAllLeafChildren(s,o)})}),r&&i.flush()}removeEmptyGroups(e,t){let n=!0;const r=i=>{var l;const o=this.getChildrenMappedKey(i.key,i.rowGroupColumn),s=i.parent;return(s!=null&&s.childrenMapped?!s.childrenMapped[o]:!0)?!1:!!i.group&&(((l=i.childrenAfterGroup)==null?void 0:l.length)??0)===0};for(;n;){n=!1;const i=new hoe;e.forEach(o=>{this.forEachParentGroup(t,o,s=>{r(s)&&(n=!0,this.removeFromParent(s,i),s.setSelectedParams({newValue:!1,source:"rowGroupChanged"}))})}),i.flush()}}removeFromParent(e,t){var r;e.parent&&(t?t.removeFromChildrenAfterGroup(e.parent,e):(rl(e.parent.childrenAfterGroup,e),e.parent.updateHasChildren()));const n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);(r=e.parent)!=null&&r.childrenMapped&&delete e.parent.childrenMapped[n],e.setRowTop(null),e.setRowIndex(null)}addToParent(e,t){const n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);t!=null&&t.childrenMapped&&t.childrenMapped[n]!==e&&(t.childrenMapped[n]=e,t.childrenAfterGroup.push(e),t.setGroup(!0))}areGroupColsEqual(e,t){return e==null||t==null||e.pivotMode!==t.pivotMode?!1:vc(e.groupedCols,t.groupedCols)&&vc(e.keyCreators,t.keyCreators)}checkAllGroupDataAfterColsChanged(e){const t=n=>{n&&n.forEach(r=>{var s;if(!r.group)return;const o={field:r.field,key:r.key,rowGroupColumn:r.rowGroupColumn,leafNode:(s=r.allLeafChildren)==null?void 0:s[0]};this.setGroupData(r,o,e),t(r.childrenAfterGroup)})};t(e.rootNode.childrenAfterGroup)}shotgunResetEverything(e,t){if(this.noChangeInGroupingColumns(e,t))return;this.selectionService.filterFromSelection(o=>o&&!o.group);const{groupedCols:n}=e,r=e.rootNode;r.leafGroup=n.length===0,r.childrenAfterGroup=[],r.childrenMapped={},r.updateHasChildren();const i=r.sibling;i&&(i.childrenAfterGroup=r.childrenAfterGroup,i.childrenMapped=r.childrenMapped),this.insertNodes(r.allLeafChildren,e)}noChangeInGroupingColumns(e,t){let n=!1;const r=this.showRowGroupColsService.getShowRowGroupCols(),i=r?r.map(o=>o.getId()).join("-"):"";return t&&(n=this.areGroupColsEqual(e,this.oldGroupingDetails),this.oldGroupDisplayColIds!==i&&this.checkAllGroupDataAfterColsChanged(e)),this.oldGroupingDetails=e,this.oldGroupDisplayColIds=i,n}insertNodes(e,t){e.forEach(n=>{this.insertOneNode(n,t),t.changedPath.isActive()&&t.changedPath.addParentNode(n.parent)})}insertOneNode(e,t,n){const r=this.getGroupInfo(e,t),i=this.findParentForNode(e,r,t,n);i.group||rt("duplicate group keys for row data, keys should be unique",[i.data,e.data]),e.parent=i,e.level=r.length,i.childrenAfterGroup.push(e),i.updateHasChildren()}findParentForNode(e,t,n,r){let i=n.rootNode;return t.forEach((o,s)=>{i=this.getOrCreateNextNode(i,o,s,n),r!=null&&r.isRemoveFromAllLeafChildren(i,e)?r==null||r.preventRemoveFromAllLeafChildren(i,e):i.allLeafChildren.push(e)}),i}getOrCreateNextNode(e,t,n,r){var s;const i=this.getChildrenMappedKey(t.key,t.rowGroupColumn);let o=(s=e==null?void 0:e.childrenMapped)==null?void 0:s[i];return o||(o=this.createGroup(t,e,n,r),this.addToParent(o,e)),o}createGroup(e,t,n,r){const i=new vu(this.beans);return i.group=!0,i.field=e.field,i.rowGroupColumn=e.rowGroupColumn,this.setGroupData(i,e,r),i.key=e.key,i.id=this.createGroupId(i,t,n),i.level=n,i.leafGroup=n===r.groupedColCount-1,i.allLeafChildren=[],i.setAllChildrenCount(0),i.rowGroupIndex=n,i.childrenAfterGroup=[],i.childrenMapped={},i.updateHasChildren(),i.parent=t,this.setExpandedInitialValue(r,i),i}createGroupId(e,t,n){const r=(i,o)=>{if(!i.rowGroupColumn)return null;const s=o?r(o,o.parent):null;return`${s==null?"":s+"-"}${i.rowGroupColumn.getColId()}-${i.key}`};return vu.ID_PREFIX_ROW_GROUP+r(e,t)}setGroupData(e,t,n){e.groupData={},this.showRowGroupColsService.getShowRowGroupCols().forEach(i=>{const o=e.rowGroupColumn;o!==null&&i.isRowGroupDisplayed(o.getId())&&(n.suppressGroupMaintainValueType?e.groupData[i.getColId()]=t.key:e.groupData[i.getColId()]=this.valueService.getValue(o,t.leafNode))})}getChildrenMappedKey(e,t){return t?t.getId()+"-"+e:e}setExpandedInitialValue(e,t){if(e.pivotMode&&t.leafGroup){t.expanded=!1;return}const n=e.isGroupOpenByDefault;if(n){const r={rowNode:t,field:t.field,key:t.key,level:t.level,rowGroupColumn:t.rowGroupColumn};t.expanded=n(r)==!0;return}if(e.expandByDefault===-1){t.expanded=!0;return}t.expanded=t.level<e.expandByDefault}getGroupInfo(e,t){const n=[];return t.groupedCols.forEach(r=>{let i=this.valueService.getKeyForNode(r,e),o=i!=null&&i!=="";if((t.pivotMode||!t.groupAllowUnbalanced)&&!o&&(i="",o=!0),o){const a={key:i,field:r.getColDef().field,rowGroupColumn:r,leafNode:e};n.push(a)}}),n}},wgi=(e,t)=>e.treeNode.oldSourceRowIndex-t.treeNode.oldSourceRowIndex,wa=Object.freeze([]),xgi=wa.values(),xF=(e,t)=>{e.parent=null,e.treeNode=null,t?e.childrenAfterGroup=[]:(e.level=0,e.childrenAfterGroup=null,e.allLeafChildren=null)},Egi=class ugt{constructor(t,n,r){this.parent=t,this.key=n,this.level=r,this.children=null,this.invalidatedHead=null,this.invalidatedNext=void 0,this.row=null,this.oldRow=null,this.duplicateRows=null,this.childrenAfterGroup=wa,this.allLeafChildren=wa,this.childrenChanged=!1,this.leafChildrenChanged=!1,this.oldSourceRowIndex=-1}isEmptyFillerNode(){var t,n;return!((t=this.row)!=null&&t.data)&&!((n=this.children)!=null&&n.size)}hasChildren(){var t;return!!((t=this.children)!=null&&t.size)}enumChildren(){var t;return((t=this.children)==null?void 0:t.values())??xgi}upsertKey(t){var r,i;typeof t!="string"&&(t=String(t));let n=(r=this.children)==null?void 0:r.get(t);return n||(n=new ugt(this,t,this.level+1),(i=this.children??(this.children=new Map))==null||i.set(n.key,n)),n}destroy(){var r;const{row:t,parent:n}=this;n!==null&&((r=n==null?void 0:n.children)==null||r.delete(this.key),t!==null&&xF(t,!0),this.parent=null)}setRow(t){const{level:n,row:r,childrenAfterGroup:i}=this;if(n<0)r!==null&&r!==t&&xF(r,!0);else{if(r===t)return!1;r!==null?(t.allLeafChildren=r.allLeafChildren??this.allLeafChildren??wa,xF(r,!1)):t.allLeafChildren=this.allLeafChildren??wa}return t.level=n,t.childrenAfterGroup=i,t.treeNode=this,this.row=t,!0}removeRow(t){const{level:n,row:r,duplicateRows:i,childrenAfterGroup:o}=this;if(r===t){const s=this.popDuplicateRow();s?(this.row=s,s.childrenAfterGroup=o,n>=0&&(s.allLeafChildren=r.allLeafChildren??this.allLeafChildren??wa)):this.row=null}else{if(!(i!=null&&i.delete(t)))return!1;i.size===0&&(this.duplicateRows=null)}return xF(t,n<0),!0}addDuplicateRow(t){const{level:n}=this;let r=this.duplicateRows;if(r===null)r=new Set,this.duplicateRows=r;else if(r.has(t))return!1;return r.add(t),t.treeNode=this,t.level=n,n>=0&&(t.allLeafChildren=wa),t.childrenAfterGroup=wa,!0}sortFirstDuplicateRow(){const t=this.duplicateRows,n=this.row;if(!n||!t)return n;let r=n;for(const i of t)i.sourceRowIndex<r.sourceRowIndex&&(r=i);return r!==n&&(r.childrenAfterGroup=this.childrenAfterGroup,r.allLeafChildren=n.allLeafChildren??this.allLeafChildren??wa,n.childrenAfterGroup=wa,n.allLeafChildren=wa,t.delete(r),t.add(n),this.row=r),r}popDuplicateRow(){let t=null;const n=this.duplicateRows;return n!==null&&(t=n.values().next().value,t!==null&&n.delete(t)&&n.size===0&&(this.duplicateRows=null)),t}dequeueInvalidated(){const t=this.invalidatedHead;return t!==null&&(this.invalidatedHead=t.invalidatedNext??null,t.invalidatedNext=void 0),t}invalidate(){let t=this,n=this.parent;for(;n!==null&&t.invalidatedNext===void 0;)t.invalidatedNext=n.invalidatedHead,n.invalidatedHead=t,t=n,n=t.parent}invalidateOrder(){var n,r;const t=this.parent;t!==null&&!t.childrenChanged&&((((n=this.children)==null?void 0:n.size)??0)>1||!((r=t.row)!=null&&r.data))&&(t.childrenChanged=!0,t.invalidate())}getRowPosition(){var n,r;const t=this.row;return t!=null&&t.data?t.sourceRowIndex:((r=(n=this.childrenAfterGroup[0])==null?void 0:n.treeNode)==null?void 0:r.oldSourceRowIndex)??this.oldSourceRowIndex}updateChildrenAfterGroup(){var a;this.childrenChanged=!1;const t=((a=this.children)==null?void 0:a.size)??0;if(t===0)return this.childrenAfterGroup.length===0?!1:(this.leafChildrenChanged=!0,this.childrenAfterGroup=wa,this.row.childrenAfterGroup=wa,!0);let n=!1,r=this.childrenAfterGroup;r===wa?(r=new Array(t),this.childrenAfterGroup=r,this.row.childrenAfterGroup=r,n=!0):r.length!==t&&(r.length=t,n=!0);let i=0,o=-1,s=!1;for(const l of this.enumChildren()){const c=l.getRowPosition();c<o&&(s=!0),o=c,l.oldSourceRowIndex=c;const u=l.row;r[i]!==u&&(r[i]=u,n=!0),++i}return n&&(this.leafChildrenChanged=!0),s&&this.reorderChildrenList(r),n||s}reorderChildrenList(t){const n=t.length,r=this.children;t.sort(wgi),r.clear();for(let i=0;i<n;++i){const o=t[i].treeNode;r.set(o.key,o)}}updateAllLeafChildren(){var s,a;const{parent:t,row:n,childrenAfterGroup:r}=this;this.leafChildrenChanged=!1;let i=!1;const o=r.length;if(o===0)i=((s=n.allLeafChildren)==null?void 0:s.length)!==0,n.allLeafChildren=wa,this.allLeafChildren=wa;else if(o===1&&((a=r[0].allLeafChildren)!=null&&a.length))n.allLeafChildren=r[0].allLeafChildren,this.allLeafChildren=null,i=!0;else{let l=this.allLeafChildren;(l===wa||l===null)&&(l=[],this.allLeafChildren=l);const c=l.length;let u=0;for(let f=0;f<o;++f){const h=r[f],g=h.allLeafChildren,p=g.length;if(p)for(let m=0;m<p;++m){const v=g[m];(u>=c||l[u]!==v)&&(l[u]=v,i=!0),++u}else(u>=c||l[u]!==h)&&h&&(l[u]=h,i=!0),++u}c!==u&&(l.length=u,i=!0),n.allLeafChildren!==l&&(n.allLeafChildren=l,i=!0)}i&&t&&(t.leafChildrenChanged=!0)}},GLe=e=>(e.treeNodeFlags&1)!==0,WLe=e=>(e.treeNodeFlags&2)!==0,ULe=e=>(e.treeNodeFlags&4)!==0,Rgi=e=>(e.treeNodeFlags&8)!==0,qLe=e=>(e.treeNodeFlags&16)!==0,KLe=(e,t)=>{t?e.treeNodeFlags|=2:e.treeNodeFlags&=-3},$gi=e=>{const t=e.treeNodeFlags;t&1&&(e.treeNodeFlags=t|4)},Ogi=e=>{const t=e.treeNodeFlags;t&1&&(e.treeNodeFlags=t|12)},s2=e=>{e.treeNodeFlags|=16},YLe=e=>{e.treeNodeFlags=1|e.treeNodeFlags&-29},WR=e=>{e.treeNodeFlags=0},Tgi=class extends ct{constructor(){super(...arguments),this.rowsPendingDestruction=null,this.root=new Egi(null,"",-1)}wireBeans(e){this.beans=e,this.showRowGroupColsService=e.showRowGroupColsService}destroy(){const e=this.root.row;e!==null&&(this.root.removeRow(e),WR(e)),this.destroyTree(this.root),this.commitDestroyedRows(),super.destroy()}execute(e){const{rowNodeTransactions:t,rowNodesOrderChanged:n,changedPath:r}=e,i=e.rowNode,o=this.gos,s={changedPath:r,expandByDefault:o.get("groupDefaultExpanded"),suppressGroupMaintainValueType:o.get("suppressGroupMaintainValueType"),getDataPath:o.get("getDataPath"),isGroupOpenByDefault:o.getCallback("isGroupOpenByDefault"),initialGroupOrderComparator:o.getCallback("initialGroupOrderComparator")};this.root.setRow(i),i.leafGroup=!1;const l=i.sibling;l&&(l.childrenAfterGroup=i.childrenAfterGroup,l.childrenMapped=i.childrenMapped),t?this.handleTransaction(s,t,n):this.handleRowData(s,i,e.afterColumnsChanged===!0)}handleRowData(e,t,n){var i,o,s;const r=this.root;if(n||this.oldGroupDisplayColIds===void 0){const a=((o=(i=this.showRowGroupColsService)==null?void 0:i.getShowRowGroupCols())==null?void 0:o.map(l=>l.getId()).join("-"))??"";if(n){this.oldGroupDisplayColIds!==a&&this.checkAllGroupDataAfterColsChanged((s=r.row)==null?void 0:s.childrenAfterGroup);return}this.oldGroupDisplayColIds=a}this.clearTree(r),this.addOrUpdateRows(e,t.allLeafChildren,!1),this.commitTree(e)}handleTransaction(e,t,n){for(const{remove:r,update:i,add:o}of t)this.removeRows(r),this.addOrUpdateRows(e,i,!0),this.addOrUpdateRows(e,o,!1);n&&this.handleRowNodesOrderChanged(),this.commitTree(e)}handleRowNodesOrderChanged(){var t;const e=(t=this.root.row)==null?void 0:t.allLeafChildren;if(e)for(let n=0,r=e.length;n<r;++n){const i=e[n].treeNode;i&&i.oldSourceRowIndex!==n&&i.invalidateOrder()}}checkAllGroupDataAfterColsChanged(e){var t;for(let n=0,r=(e==null?void 0:e.length)??0;n<r;++n){const i=e[n];this.setGroupData(i,((t=i.treeNode)==null?void 0:t.key)??i.key),this.checkAllGroupDataAfterColsChanged(i.childrenAfterGroup)}}addOrUpdateRows(e,t,n){for(let r=0,i=(t==null?void 0:t.length)??0;r<i;++r){const o=t[r],s=this.upsertPath(this.getDataPath(e,o));s&&this.addOrUpdateRow(s,o,n)}}removeRows(e){for(let t=0,n=(e==null?void 0:e.length)??0;t<n;++t){const r=e[t],i=r.treeNode;i!==null&&this.removeRow(i,r)}}getDataPath({getDataPath:e},{data:t}){const n=(e==null?void 0:e(t))||wa;return n.length||rt("getDataPath() should not return an empty path",[t]),n}upsertPath(e){let t=this.root;const n=e.length-1;for(let r=0;r<=n;++r){const i=t.upsertKey(e[r]);if(r>=n)return i.invalidate(),i;t=i}return null}addOrUpdateRow(e,t,n){var s;const{level:r,row:i}=e;if(r<0)return;let o=!1;if(i!==t){const a=t.treeNode;a!==null&&a!==e&&(a.removeRow(t),a.invalidate()),i===null?(e.setRow(t),o=!0):i.data?e.addDuplicateRow(t)&&(o=!0):(e.setRow(t),this.destroyRow(i,!0),o=!0)}n&&!ULe(t)&&($gi(t),o=!0),o&&e.invalidate(),(s=this.rowsPendingDestruction)==null||s.delete(t)}removeRow(e,t){const{parent:n,level:r}=e;if(r<0)return;let i=!1;e.removeRow(t)&&(i=!0,n&&(n.childrenChanged=!0),this.destroyRow(t,!t.data)),i&&e.invalidate()}commitTree(e){var r;const t=this.root;this.commitInvalidatedChildren(e,t);const n=t.row;t.childrenChanged&&t.updateChildrenAfterGroup()&&s2(n),n.updateHasChildren(),qLe(n)&&(r=e.changedPath)!=null&&r.isActive()&&e.changedPath.addParentNode(n),YLe(n),this.commitDestroyedRows()}commitInvalidatedChildren(e,t){for(;;){const n=t.dequeueInvalidated();if(n===null)break;n.parent===t&&this.commitChild(e,t,n)}}commitChild(e,t,n){if(n.isEmptyFillerNode()){this.clearTree(n);return}this.commitNodePreOrder(t,n),this.commitInvalidatedChildren(e,n),this.commitNodePostOrder(e,t,n)}commitNodePreOrder(e,t){let n=t.row;if(n===null?(n=this.createFillerRow(t),t.setRow(n)):(n=t.sortFirstDuplicateRow(),n.allChildrenCount===void 0&&(n.allChildrenCount=null)),n.parent=e.row,t.oldRow!==n)for(const i of t.enumChildren()){const o=i.row;o!==null&&(o.parent=n)}const r=t.key;n.key!==r?(n.key=r,Ogi(n),this.setGroupData(n,r)):n.groupData||this.setGroupData(n,r)}commitNodePostOrder(e,t,n){var c,u,f;const r=n.row,i=n.oldRow;if(n.isEmptyFillerNode()){this.clearTree(n);return}n.childrenChanged&&n.updateChildrenAfterGroup()&&s2(r),n.leafChildrenChanged&&n.updateAllLeafChildren();const o=n.getRowPosition();n.oldSourceRowIndex!==o&&(n.oldSourceRowIndex=o,t.childrenChanged=!0);const s=!!((c=r.childrenAfterGroup)!=null&&c.length),a=s||!r.data,l=r.group;l!==a?(s2(r),r.setGroup(a),!a&&!r.expanded&&KLe(r,!1)):r.hasChildren()!==s&&(s2(r),r.updateHasChildren()),r.group&&!WLe(r)&&(i!==r&&i!==null&&i.group&&WLe(i)&&!e.isGroupOpenByDefault?r.expanded=i.expanded:r.expanded=this.getExpandedInitialValue(e,r),KLe(r,!0)),ULe(r)&&(s2(t.row),Rgi(r)&&r.setData(r.data)),i!==r&&(n.oldRow=r,i!==null&&(l||n.hasChildren())&&s2(r),t.childrenChanged=!0,s2(t.row)),qLe(r)?(u=e.changedPath)!=null&&u.isActive()&&e.changedPath.addParentNode(r):GLe(r)||(r.childrenAfterFilter||(r.childrenAfterFilter=r.childrenAfterGroup.slice()),r.childrenAfterAggFilter||(r.childrenAfterAggFilter=r.childrenAfterFilter.slice()),r.childrenAfterSort||(r.childrenAfterSort=r.childrenAfterAggFilter.slice())),YLe(r),(f=n.duplicateRows)!=null&&f.size&&!n.duplicateRowsWarned&&(n.duplicateRowsWarned=!0,rt("duplicate group keys for row data, keys should be unique",[r.id,r.data,...Array.from(n.duplicateRows).map(h=>h.data)]))}createFillerRow(e){const t=new vu(this.beans);t.key=e.key,t.group=!0,t.field=null,t.leafGroup=!1,t.rowGroupIndex=null,t.allChildrenCount=null;let n=e.level+"-"+e.key,r=e.parent;for(;r!==null;){const i=r.parent;if(i===null)break;n=`${r.level}-${r.key}-${n}`,r=i}return t.id=vu.ID_PREFIX_ROW_GROUP+n,t}setGroupData(e,t){var i;const n={};e.groupData=n;const r=(i=this.showRowGroupColsService)==null?void 0:i.getShowRowGroupCols();if(r)for(const o of r)n[o.getColId()]=t}getExpandedInitialValue(e,t){const n=e.isGroupOpenByDefault;return n?n({rowNode:t,field:t.field,key:t.key,level:t.level,rowGroupColumn:t.rowGroupColumn})==!0:e.expandByDefault===-1||t.level<e.expandByDefault}clearTree(e){const{parent:t,oldRow:n,row:r,level:i}=e;if(t!==null&&n!==null&&(t.childrenChanged=!0,t.row!==null&&s2(t.row)),r!==null&&i>=0){let o=e.row;for(;o!==null&&e.removeRow(o);)this.destroyRow(o,!o.data),o=e.row}for(const o of e.enumChildren())this.clearTree(o);e.destroy()}destroyTree(e){const{row:t,level:n,duplicateRows:r}=e;if(t&&(n>=0&&!t.data?this.destroyRow(t,!0):WR(t)),r)for(const i of r)n>=0&&!i.data?this.destroyRow(i,!0):WR(i);for(const i of e.enumChildren())this.destroyTree(i);e.destroy()}destroyRow(e,t){if(!GLe(e)){WR(e);return}if(!t){(this.rowsPendingDestruction??(this.rowsPendingDestruction=new Set)).add(e);return}WR(e),e.setRowIndex(null),e.setRowTop(null),!e.data&&e.isSelected()&&e.setSelectedParams({newValue:!1,source:"rowGroupChanged"})}commitDestroyedRows(){const{rowsPendingDestruction:e}=this;if(e!==null){this.rowsPendingDestruction=null;for(const t of e)this.destroyRow(t,!0)}}},Igi=class extends ct{constructor(){super(...arguments),this.beanName="groupStage"}wireBeans(e){this.selectableService=e.selectableService}execute(e){const t=this.gos.get("treeData")?Tgi:Sgi;let n=this.strategy;(n==null?void 0:n.constructor)!==t&&(this.destroyBean(n),n=this.createManagedBean(new t),this.strategy=n),n.execute(e),this.selectableService.updateSelectableAfterGrouping()}destroy(){this.destroyBean(this.strategy),this.strategy=void 0,super.destroy()}},XLe="PivotRowTotal_",Mgi=class extends ct{constructor(){super(...arguments),this.beanName="pivotColDefService"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.columnNameService=e.columnNameService}postConstruct(){const e=()=>this.gos.get("serverSidePivotResultFieldSeparator")??"_";this.fieldSeparator=e(),this.addManagedPropertyListener("serverSidePivotResultFieldSeparator",()=>{this.fieldSeparator=e()});const t=()=>this.gos.get("pivotDefaultExpanded");this.pivotDefaultExpanded=t(),this.addManagedPropertyListener("pivotDefaultExpanded",()=>{this.pivotDefaultExpanded=t()})}createPivotColumnDefs(e){const t=this.createPivotColumnsFromUniqueValues(e);function n(o,s=[]){return o.forEach(a=>{a.children!==void 0?n(a.children,s):s.push(a)}),s}const r=n(t);this.addRowGroupTotals(t,r),this.addExpandablePivotGroups(t,r),this.addPivotTotalsToGroups(t,r);const i=r.map(o=>jQ(o));return{pivotColumnGroupDefs:t,pivotColumnDefs:i}}createPivotColumnsFromUniqueValues(e){const t=this.funcColsService.getPivotColumns(),n=t.length;return this.recursivelyBuildGroup(0,e,[],n,t)}recursivelyBuildGroup(e,t,n,r,i){const o=this.funcColsService.getValueColumns();if(e>=r)return this.buildMeasureCols(n);const s=i[e].getColDef(),a=this.headerNameComparator.bind(this,s.pivotComparator);if(o.length===1&&this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&e===r-1){const c=[];return tl(t,u=>{const f=[...n,u],h=this.createColDef(o[0],u,f);h.columnGroupShow="open",c.push(h)}),c.sort(a),c}const l=[];return tl(t,(c,u)=>{const f=this.pivotDefaultExpanded===-1||e<this.pivotDefaultExpanded,h=[...n,c];l.push({children:this.recursivelyBuildGroup(e+1,u,h,r,i),headerName:c,pivotKeys:h,columnGroupShow:"open",openByDefault:f,groupId:this.generateColumnGroupId(h)})}),l.sort(a),l}buildMeasureCols(e){const t=this.funcColsService.getValueColumns();return t.length===0?[this.createColDef(null,"-",e)]:t.map(n=>{const r=this.columnNameService.getDisplayNameForColumn(n,"header");return{...this.createColDef(n,r,e),columnGroupShow:"open"}})}addExpandablePivotGroups(e,t){const n=this.gos.get("suppressExpandablePivotGroups");if(n||this.gos.get("pivotColumnGroupTotals"))return;const r=(i,o,s)=>{if("children"in i){const c=new Map;i.children.forEach(f=>{r(f,o,c)});const u=!i.children.some(f=>f.children);this.funcColsService.getValueColumns().forEach(f=>{const h=this.columnNameService.getDisplayNameForColumn(f,"header"),g=this.createColDef(f,h,i.pivotKeys);g.pivotTotalColumnIds=c.get(f.getColId()),g.columnGroupShow=n?"open":"closed",g.aggFunc=f.getAggFunc(),u||(i.children.push(g),o.push(g))}),this.merge(s,c);return}if(!i.pivotValueColumn)return;const a=i.pivotValueColumn.getColId();s.has(a)?s.get(a).push(i.colId):s.set(a,[i.colId])};e.forEach(i=>{r(i,t,new Map)})}addPivotTotalsToGroups(e,t){if(!this.gos.get("pivotColumnGroupTotals"))return;const n=this.gos.get("pivotColumnGroupTotals")==="after",r=this.funcColsService.getValueColumns(),i=r.map(s=>s.getAggFunc());if(!i||i.length<1||!this.sameAggFuncs(i))return;const o=r[0];e.forEach(s=>{this.recursivelyAddPivotTotal(s,t,o,n)})}recursivelyAddPivotTotal(e,t,n,r){const i=e;if(!i.children){const s=e;return s.colId?[s.colId]:null}let o=[];if(i.children.forEach(s=>{const a=this.recursivelyAddPivotTotal(s,t,n,r);a&&(o=o.concat(a))}),i.children.length>1){const a=this.localeService.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),l=this.createColDef(n,a,e.pivotKeys,!0);l.pivotTotalColumnIds=o,l.aggFunc=n.getAggFunc(),l.columnGroupShow=this.gos.get("suppressExpandablePivotGroups")?"open":void 0;const c=e.children;r?c.push(l):c.unshift(l),t.push(l)}return o}addRowGroupTotals(e,t){if(!this.gos.get("pivotRowTotals"))return;const n=this.gos.get("pivotRowTotals")==="after",i=this.funcColsService.getValueColumns().slice();n||i.reverse();const o=i.length>1||!this.gos.get("removePivotHeaderRowWhenSingleValueColumn");for(let s=0;s<i.length;s++){const a=i[s],l=this.columnNameService.getDisplayNameForColumn(a,"header"),c=this.createColDef(a,l,[]),u=[];for(let h=0;h<t.length;h++){const g=t[h];g.pivotValueColumn===a&&u.push(g.colId)}c.pivotTotalColumnIds=u,c.colId=XLe+c.colId;const f=o?{children:[c],pivotKeys:[],groupId:`${XLe}_pivotGroup_${a.getColId()}`}:c;t.push(c),n?e.push(f):e.unshift(f)}}createColDef(e,t,n,r=!1){const i={};if(e){const o=e.getColDef();Object.assign(i,o),i.hide=!1}return i.headerName=t,i.colId=this.generateColumnId(n||[],e&&!r?e.getColId():""),i.field=i.colId,i.valueGetter=o=>{var s;return(s=o.data)==null?void 0:s[o.colDef.field]},i.pivotKeys=n,i.pivotValueColumn=e,i.filter===!0&&(i.filter="agNumberColumnFilter"),i}sameAggFuncs(e){if(e.length==1)return!0;for(let t=1;t<e.length;t++)if(e[t]!==e[0])return!1;return!0}headerNameComparator(e,t,n){return e?e(t.headerName,n.headerName):t.headerName&&!n.headerName?1:!t.headerName&&n.headerName?-1:!t.headerName||!n.headerName?0:t.headerName<n.headerName?-1:t.headerName>n.headerName?1:0}merge(e,t){t.forEach((n,r)=>{const o=[...e.has(r)?e.get(r):[],...n];e.set(r,o)})}generateColumnGroupId(e){return`pivotGroup_${this.funcColsService.getPivotColumns().map(n=>n.getColId()).join("-")}_${e.join("-")}`}generateColumnId(e,t){return`pivot_${this.funcColsService.getPivotColumns().map(r=>r.getColId()).join("-")}_${e.join("-")}_${t}`}createColDefsFromFields(e){const t={};for(let i=0;i<e.length;i++){const s=e[i].split(this.fieldSeparator);let a=t;for(let l=0;l<s.length;l++){const c=s[l];a[c]==null&&(a[c]={}),a=a[c]}}const n=(i,o,s,a)=>{const l=[];for(const f in s){const h=s[f],g=n(`${i}${this.fieldSeparator}${f}`,f,h,a+1);l.push(g)}if(l.length===0){const f=this.columnModel.getColDefCol(o);if(f){const g=this.columnNameService.getDisplayNameForColumn(f,"header")??o,p=this.createColDef(f,g,void 0,!1);return p.colId=i,p.aggFunc=f.getAggFunc(),p.valueGetter=m=>{var v;return(v=m.data)==null?void 0:v[i]},p}return{colId:i,headerName:o,valueGetter:g=>{var p;return(p=g.data)==null?void 0:p[i]}}}return this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&l.length===1&&"colId"in l[0]?(l[0].headerName=o,l[0]):{openByDefault:this.pivotDefaultExpanded===-1||a<this.pivotDefaultExpanded,groupId:i,headerName:o,children:l}},r=[];for(const i in t){const o=t[i],s=n(i,i,o,0);r.push(s)}return r}},QLe="Exceeded maximum allowed pivot column count.",Pgi=class extends ct{constructor(){super(...arguments),this.beanName="pivotStage",this.uniqueValues={},this.lastTimeFailed=!1,this.maxUniqueValues=-1,this.currentUniqueCount=0}wireBeans(e){this.valueService=e.valueService,this.columnModel=e.columnModel,this.pivotResultColsService=e.pivotResultColsService,this.funcColsService=e.funcColsService,this.pivotColDefService=e.pivotColDefService}execute(e){const t=e.changedPath;this.columnModel.isPivotActive()?this.executePivotOn(t):this.executePivotOff(t)}executePivotOff(e){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.pivotResultColsService.isPivotResultColsPresent()&&(this.pivotResultColsService.setPivotResultCols(null,"rowModelUpdated"),e&&e.setInactive())}executePivotOn(e){const t=this.funcColsService.getValueColumns().length??1,n=this.gos.get("pivotMaxGeneratedColumns");this.maxUniqueValues=n===-1?-1:n/t;let r;try{r=this.bucketUpRowNodes(e)}catch(C){if(C.message===QLe){this.pivotResultColsService.setPivotResultCols([],"rowModelUpdated"),this.eventService.dispatchEvent({type:"pivotMaxColumnsExceeded",message:C.message}),this.lastTimeFailed=!0;return}throw C}const i=this.setUniqueValues(r),o=this.funcColsService.getValueColumns(),s=o.map(C=>`${C.getId()}-${C.getColDef().headerName}`).join("#"),a=o.map(C=>C.getAggFunc().toString()).join("#"),l=this.aggregationColumnsHashLastTime!==s,c=this.aggregationFuncsHashLastTime!==a;this.aggregationColumnsHashLastTime=s,this.aggregationFuncsHashLastTime=a;const u=this.funcColsService.getRowGroupColumns().map(C=>C.getId()).join("#"),f=u!==this.groupColumnsHashLastTime;this.groupColumnsHashLastTime=u;const h=this.gos.get("pivotRowTotals"),g=this.gos.get("pivotColumnGroupTotals"),p=this.gos.get("suppressExpandablePivotGroups"),m=this.gos.get("removePivotHeaderRowWhenSingleValueColumn"),v=h!==this.pivotRowTotalsLastTime||g!==this.pivotColumnGroupTotalsLastTime||p!==this.suppressExpandablePivotGroupsLastTime||m!==this.removePivotHeaderRowWhenSingleValueColumnLastTime;if(this.pivotRowTotalsLastTime=h,this.pivotColumnGroupTotalsLastTime=g,this.suppressExpandablePivotGroupsLastTime=p,this.removePivotHeaderRowWhenSingleValueColumnLastTime=m,this.lastTimeFailed||i||l||f||c||v){const{pivotColumnGroupDefs:C,pivotColumnDefs:y}=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues);this.pivotColumnDefs=y,this.pivotResultColsService.setPivotResultCols(C,"rowModelUpdated"),e&&e.setInactive()}this.lastTimeFailed=!1}setUniqueValues(e){const t=JSON.stringify(e),n=JSON.stringify(this.uniqueValues);return t!==n?(this.uniqueValues=e,!0):!1}bucketUpRowNodes(e){this.currentUniqueCount=0;const t={};e.forEachChangedNodeDepthFirst(r=>{r.leafGroup&&(r.childrenMapped=null)});const n=r=>{var i;r.leafGroup?this.bucketRowNode(r,t):(i=r.childrenAfterFilter)==null||i.forEach(n)};return e.executeFromRootNode(n),t}bucketRowNode(e,t){const n=this.funcColsService.getPivotColumns();n.length===0?e.childrenMapped=null:e.childrenMapped=this.bucketChildren(e.childrenAfterFilter,n,0,t),e.sibling&&(e.sibling.childrenMapped=e.childrenMapped)}bucketChildren(e,t,n,r){const i={},o=t[n];if(e.forEach(s=>{let a=this.valueService.getKeyForNode(o,s);if(ar(a)&&(a=""),!r[a]){this.currentUniqueCount+=1,r[a]={};const l=this.maxUniqueValues!==-1,c=this.currentUniqueCount>this.maxUniqueValues;if(l&&c)throw Error(QLe)}i[a]||(i[a]=[]),i[a].push(s)}),n===t.length-1)return i;{const s={};return tl(i,(a,l)=>{s[a]=this.bucketChildren(l,t,n+1,r[a])}),s}}getPivotColumnDefs(){return this.pivotColumnDefs}};function _gi(e,t,n){e.aggFuncService&&e.aggFuncService.addAggFuncs({key:n})}function Agi(e,t){e.aggFuncService&&e.aggFuncService.addAggFuncs(t)}function Dgi(e){e.aggFuncService&&e.aggFuncService.clear()}function Lgi(e,t,n){e.funcColsService.setColumnAggFunc(t,n,"api")}function Fgi(e){return e.columnModel.isPivotMode()}function Ngi(e,t,n){return e.pivotResultColsService.lookupPivotResultCol(t,n)}function kgi(e,t){e.funcColsService.setValueColumns(t,"api")}function zgi(e){return e.funcColsService.getValueColumns()}function Bgi(e,t){e.funcColsService.removeValueColumns([t],"api")}function Hgi(e,t){e.funcColsService.removeValueColumns(t,"api")}function jgi(e,t){e.funcColsService.addValueColumns([t],"api")}function Vgi(e,t){e.funcColsService.addValueColumns(t,"api")}function Ggi(e,t){e.funcColsService.setRowGroupColumns(t,"api")}function Wgi(e,t){e.funcColsService.removeRowGroupColumns([t],"api")}function Ugi(e,t){e.funcColsService.removeRowGroupColumns(t,"api")}function qgi(e,t){e.funcColsService.addRowGroupColumns([t],"api")}function Kgi(e,t){e.funcColsService.addRowGroupColumns(t,"api")}function Ygi(e,t,n){e.funcColsService.moveRowGroupColumn(t,n,"api")}function Xgi(e){return e.funcColsService.getRowGroupColumns()}function Qgi(e,t){e.funcColsService.setPivotColumns(t,"api")}function Zgi(e,t){e.funcColsService.removePivotColumns([t],"api")}function Jgi(e,t){e.funcColsService.removePivotColumns(t,"api")}function epi(e,t){e.funcColsService.addPivotColumns([t],"api")}function tpi(e,t){e.funcColsService.addPivotColumns(t,"api")}function npi(e){return e.funcColsService.getPivotColumns()}function rpi(e,t){e.pivotResultColsService.setPivotResultCols(t,"api")}function ipi(e){const t=e.pivotResultColsService.getPivotResultCols();return t?t.list:null}var opi=class extends ct{constructor(){super(...arguments),this.beanName="showRowGroupColsService"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService}refresh(){this.showRowGroupCols=[],this.showRowGroupColsMap={},this.columnModel.getCols().forEach(e=>{const n=e.getColDef().showRowGroup,r=typeof n=="string";!r&&!(n===!0)||(this.showRowGroupCols.push(e),r?this.showRowGroupColsMap[n]=e:this.funcColsService.getRowGroupColumns().forEach(s=>{this.showRowGroupColsMap[s.getId()]=e}))})}getShowRowGroupCols(){return this.showRowGroupCols}getShowRowGroupCol(e){return this.showRowGroupColsMap[e]}},W_="32.3.3",b6e={version:W_,moduleName:`${rr.RowGroupingModule}-core`,beans:[ugi,vgi,Igi,Mgi,Pgi,ngi,dgi,opi,mgi],userComponents:[{name:"agGroupRowRenderer",classImp:TH},{name:"agGroupCellRenderer",classImp:TH}],controllers:[{name:"groupCellRendererCtrl",classImp:C6e}],dependantModules:[dp]},spi={version:W_,moduleName:`${rr.RowGroupingModule}-api`,apiFunctions:{addAggFunc:_gi,addAggFuncs:Agi,clearAggFuncs:Dgi,setColumnAggFunc:Lgi,isPivotMode:Fgi,getPivotResultColumn:Ngi,setValueColumns:kgi,getValueColumns:zgi,removeValueColumn:Bgi,removeValueColumns:Hgi,addValueColumn:jgi,addValueColumns:Vgi,setRowGroupColumns:Ggi,removeRowGroupColumn:Wgi,removeRowGroupColumns:Ugi,addRowGroupColumn:qgi,addRowGroupColumns:Kgi,getRowGroupColumns:Xgi,moveRowGroupColumn:Ygi,setPivotColumns:Qgi,removePivotColumn:Zgi,removePivotColumns:Jgi,addPivotColumn:epi,addPivotColumns:tpi,getPivotColumns:npi,setPivotResultColumns:rpi,getPivotResultColumns:ipi},dependantModules:[b6e]},dgt={version:W_,moduleName:"@ag-grid-enterprise/group-filter",userComponents:[{name:"agGroupColumnFilter",classImp:Cgi}],dependantModules:[b6e,Fb]},api={version:W_,moduleName:"@ag-grid-enterprise/group-floating-filter",userComponents:[{name:"agGroupColumnFloatingFilter",classImp:ygi}],dependantModules:[dgt,aht]},lpi={version:W_,moduleName:rr.RowGroupingModule,dependantModules:[b6e,spi,dgt,api]},ZLe=class extends y6e{constructor(e){super(e,"aggregation")}postConstruct(){const e=this.localeService.getLocaleTextFunc(),t=e("valueColumnsEmptyMessage","Drag here to aggregate"),n=e("values","Values");super.init({icon:Gn("valuePanel",this.gos,null),emptyMessage:t,title:n}),this.addManagedEventListeners({columnValueChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.localeService.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")}getTooltipParams(){const e=super.getTooltipParams();return e.location="valueColumnsList",e}getIconName(){return this.isPotentialDndItems()?"aggregate":"notAllowed"}isItemDroppable(e,t){return this.gos.get("functionsReadOnly")||!e.isPrimary()?!1:e.isAllowValue()&&(!e.isValueActive()||this.isSourceEventFromTarget(t))}updateItems(e){this.funcColsService.setValueColumns(e,"toolPanelUi")}getExistingItems(){return this.funcColsService.getValueColumns()}};function gw(e){return!!e&&typeof e.children<"u"}function M2(e){return gw(e)?e.groupId:e.colId}function fgt(e,t,n){const r=(s,a)=>{const l=s.children.map(M2),c=ll(l,M2(a)),u=Dn(s.children),f=u&&M2(u)!==M2(a);return c&&f};if(!gw(e))return!0;const i=e,o=n;if(r(i,o))return i.children.push(o),!0;if(i.groupId===t){const s=i.children.map(M2);if(!ll(s,M2(o)))return i.children.push(o),!0}for(let s=i.children.length-1;s>=0&&!fgt(i.children[s],t,n);s--);return!1}function cpi(e){const t=(i,o)=>gw(i)&&gw(o)&&M2(i)===M2(o),n=(i,o)=>{if(!gw(o))return i;const s=i,a=o;return a.children&&a.groupId&&fgt(s,a.groupId,a.children[0])||a.children.forEach(l=>n(s,l)),s},r=[];for(let i=1;i<=e.length;i++){const o=e[i-1],s=e[i];t(o,s)?e[i]=n(o,s):r.push(o)}return r}var upi=class extends ct{constructor(){super(...arguments),this.beanName="toolPanelColDefService"}wireBeans(e){this.columnModel=e.columnModel}createColumnTree(e){const t=[],n=(i,o)=>{if(gw(i)){const s=i,a=typeof s.groupId<"u"?s.groupId:s.headerName,l=new vO(s,a,!1,o),c=[];return s.children.forEach(u=>{const f=n(u,o+1);f&&c.push(f)}),l.setChildren(c),l}else{const s=i,a=s.colId?s.colId:s.field,l=this.columnModel.getColDefCol(a);return l||t.push(s),l}},r=[];return e.forEach(i=>{const o=n(i,0);o&&r.push(o)}),t.length>0&&rt("unable to find grid columns for the supplied colDef(s):",t),r}syncLayoutWithGrid(e){const t=this.getLeafPathTrees(),n=cpi(t);e(n)}getLeafPathTrees(){const e=(r,i)=>{let o;if(_o(r))if(r.isPadding())o=i;else{const a=Object.assign({},r.getColGroupDef());a.groupId=r.getGroupId(),a.children=[i],o=a}else{const a=Object.assign({},r.getColDef());a.colId=r.getColId(),o=a}const s=r.getOriginalParent();return s?e(s,o):o};return this.columnModel.getCols().filter(r=>{const i=r.getColDef();return r.isPrimary()&&!i.showRowGroup}).map(r=>e(r,r.getColDef()))}};function dpi(e){var t;return((t=e.sideBarService)==null?void 0:t.getSideBarComp().isDisplayed())??!1}function fpi(e,t){var n;(n=e.sideBarService)==null||n.getSideBarComp().setDisplayed(t)}function hpi(e,t){var n;(n=e.sideBarService)==null||n.getSideBarComp().setSideBarPosition(t)}function gpi(e,t){var n;(n=e.sideBarService)==null||n.getSideBarComp().openToolPanel(t,"api")}function ppi(e){var t;(t=e.sideBarService)==null||t.getSideBarComp().close("api")}function mpi(e){var t;return((t=e.sideBarService)==null?void 0:t.getSideBarComp().openedItem())??null}function vpi(e){var t;(t=e.sideBarService)==null||t.getSideBarComp().refresh()}function Cpi(e){var t;return((t=e.sideBarService)==null?void 0:t.getSideBarComp().isToolPanelShowing())??!1}function ypi(e,t){var r;const n=(r=e.sideBarService)==null?void 0:r.getSideBarComp().getToolPanelInstance(t);return gC(n)}function bpi(e){var t;return(t=e.sideBarService)==null?void 0:t.getSideBarComp().getDef()}var Spi=class extends wn{constructor(e){super(),this.eToggleButton=Ot,this.eIconWrapper=Ot,this.eLabel=Ot,this.toolPanelDef=e}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){const e=this.createTemplate();this.setTemplate(e,[]),this.setLabel(),this.setIcon(),this.addManagedElementListeners(this.eToggleButton,{click:this.onButtonPressed.bind(this)}),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}createTemplate(){return`<div class="ag-side-button" role="presentation">
|
||
<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>
|
||
</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.getToolPanelCompDetails(e,t),a=s.newAgStackInstance();if(this.params=s.params,a==null){rt(`error processing tool panel component ${n}. You need to specify 'toolPanel'`);return}a.then(this.setToolPanelComponent.bind(this)),r!=null&&this.resizeBar.setMinWidth(r),i!=null&&this.resizeBar.setMaxWidth(i)}setToolPanelComponent(e){this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc(()=>{this.destroyBean(e)}),this.width&&(this.getGui().style.width=`${this.width}px`)}getToolPanelInstance(){return this.toolPanelCompInstance}setResizerSizerSide(e){const t=this.gos.get("enableRtl"),n=e==="left",r=t?n:!n;this.resizeBar.setInverted(r)}refresh(){var e;(e=this.toolPanelCompInstance)==null||e.refresh(this.params)}},Opi=class extends wn{constructor(){super(`<div class="ag-side-bar ag-unselectable">
|
||
<ag-side-bar-buttons data-ref="sideBarButtons"></ag-side-bar-buttons>
|
||
</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}createToolPanelAndSideButton(e,t,n){if(!this.validateDef(e))return;const r=this.sideBarButtons.addButtonComp(e);let i;n?i=n:(i=this.createBean(new $pi),i.setToolPanelDef(e,{initialState:t,onStateUpdated:()=>this.dispatchSideBarUpdated()})),i.setDisplayed(!1);const o=i.getGui();this.appendChild(o),this.toolPanelWrappers.push(i),cft(r.getButtonElement(),o)}refresh(){this.toolPanelWrappers.forEach(e=>e.refresh())}openToolPanel(e,t="api"){const n=this.openedItem();if(n===e)return;this.toolPanelWrappers.forEach(o=>{const s=e===o.getToolPanelId();o.setDisplayed(s)});const r=this.openedItem();n!==r&&(this.sideBarButtons.setActiveButton(e),this.raiseToolPanelVisibleEvent(e,n??void 0,t))}getToolPanelInstance(e){const t=this.toolPanelWrappers.filter(n=>n.getToolPanelId()===e)[0];if(!t){rt(`unable to lookup Tool Panel as invalid key supplied: ${e}`);return}return t.getToolPanelInstance()}raiseToolPanelVisibleEvent(e,t,n){const r=!!e&&!!t;t&&this.eventService.dispatchEvent({type:"toolPanelVisibleChanged",source:n,key:t,visible:!1,switchingToolPanel:r}),e&&this.eventService.dispatchEvent({type:"toolPanelVisibleChanged",source:n,key:e,visible:!0,switchingToolPanel:r})}close(e="api"){this.openToolPanel(void 0,e)}isToolPanelShowing(){return!!this.openedItem()}openedItem(){let e=null;return this.toolPanelWrappers.forEach(t=>{t.isDisplayed()&&(e=t.getToolPanelId())}),e}onSideBarUpdated(){var n;const e=bfe(this.gos.get("sideBar")),t={};e&&this.sideBar&&((n=e.toolPanels)==null||n.forEach(r=>{var c,u;const{id:i}=r;if(!i)return;const o=(c=this.sideBar.toolPanels)==null?void 0:c.find(f=>f.id===i);if(!o||r.toolPanel!==o.toolPanel)return;const s=this.toolPanelWrappers.find(f=>f.getToolPanelId()===i);if(!s)return;const a=this.gos.addGridCommonParams({...r.toolPanelParams??{},onStateUpdated:()=>this.dispatchSideBarUpdated()});((u=s.getToolPanelInstance())==null?void 0:u.refresh(a))===!0&&(this.toolPanelWrappers=this.toolPanelWrappers.filter(f=>f!==s),au(s.getGui()),t[i]=s)})),this.clearDownUi(),this.setSideBarDef({sideBarDef:e,existingToolPanelWrappers:t})}dispatchSideBarUpdated(){this.eventService.dispatchEvent({type:"sideBarUpdated"})}destroyToolPanelWrappers(){this.toolPanelWrappers.forEach(e=>{au(e.getGui()),this.destroyBean(e)}),this.toolPanelWrappers.length=0}destroy(){this.destroyToolPanelWrappers(),super.destroy()}},Tpi={selector:"AG-SIDE-BAR",component:Opi},Ipi=class extends ct{constructor(){super(...arguments),this.beanName="sideBarService"}registerSideBarComp(e){this.sideBarComp=e}getSideBarComp(){return this.sideBarComp}getSideBarSelector(){return Tpi}},w6e="32.3.3",mgt={version:w6e,moduleName:`${rr.SideBarModule}-core`,beans:[upi,Ipi],dependantModules:[dp]},Mpi={version:w6e,moduleName:`${rr.SideBarModule}-api`,apiFunctions:{isSideBarVisible:dpi,setSideBarVisible:fpi,setSideBarPosition:hpi,openToolPanel:gpi,closeToolPanel:ppi,getOpenedToolPanel:mpi,refreshToolPanel:vpi,isToolPanelShowing:Cpi,getToolPanelInstance:ypi,getSideBar:bpi},dependantModules:[mgt]},vgt={version:w6e,moduleName:rr.SideBarModule,dependantModules:[mgt,Mpi]},JLe=300,Ppi=class extends wn{constructor(){super(`<div class="ag-column-select-header" role="presentation">
|
||
<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>
|
||
</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(){if(this.initializeProperties(this.column),this.buildMenuItemMap(),km(this.column)?this.displayName=this.columnNameService.getDisplayNameForColumn(this.column,"columnToolPanel"):this.displayName=this.columnNameService.getDisplayNameForProvidedColumnGroup(null,this.column,"columnToolPanel"),this.isActive()){this.mouseEvent.preventDefault();const e=this.getMappedMenuItems();if(e.length===0)return;this.displayContextMenu(e)}}initializeProperties(e){_o(e)?this.columns=e.getLeafColumns():this.columns=[e],this.allowGrouping=this.columns.some(t=>t.isPrimary()&&t.isAllowRowGroup()),this.allowValues=this.columns.some(t=>t.isPrimary()&&t.isAllowValue()),this.allowPivoting=this.columnModel.isPivotMode()&&this.columns.some(t=>t.isPrimary()&&t.isAllowPivot())}buildMenuItemMap(){const e=this.localeService.getLocaleTextFunc();this.menuItemMap=new Map,this.menuItemMap.set("rowGroup",{allowedFunction:t=>t.isPrimary()&&t.isAllowRowGroup()&&!this.columnModel.isColGroupLocked(t),activeFunction:t=>t.isRowGroupActive(),activateLabel:()=>`${e("groupBy","Group by")} ${this.displayName}`,deactivateLabel:()=>`${e("ungroupBy","Un-Group by")} ${this.displayName}`,activateFunction:()=>{const t=this.funcColsService.getRowGroupColumns();this.funcColsService.setRowGroupColumns(this.addColumnsToList(t),"toolPanelUi")},deActivateFunction:()=>{const t=this.funcColsService.getRowGroupColumns();this.funcColsService.setRowGroupColumns(this.removeColumnsFromList(t),"toolPanelUi")},addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),this.menuItemMap.set("value",{allowedFunction:t=>t.isPrimary()&&t.isAllowValue(),activeFunction:t=>t.isValueActive(),activateLabel:()=>e("addToValues",`Add ${this.displayName} to values`,[this.displayName]),deactivateLabel:()=>e("removeFromValues",`Remove ${this.displayName} from values`,[this.displayName]),activateFunction:()=>{const t=this.funcColsService.getValueColumns();this.funcColsService.setValueColumns(this.addColumnsToList(t),"toolPanelUi")},deActivateFunction:()=>{const t=this.funcColsService.getValueColumns();this.funcColsService.setValueColumns(this.removeColumnsFromList(t),"toolPanelUi")},addIcon:"valuePanel",removeIcon:"valuePanel"}),this.menuItemMap.set("pivot",{allowedFunction:t=>this.columnModel.isPivotMode()&&t.isPrimary()&&t.isAllowPivot(),activeFunction:t=>t.isPivotActive(),activateLabel:()=>e("addToLabels",`Add ${this.displayName} to labels`,[this.displayName]),deactivateLabel:()=>e("removeFromLabels",`Remove ${this.displayName} from labels`,[this.displayName]),activateFunction:()=>{const t=this.funcColsService.getPivotColumns();this.funcColsService.setPivotColumns(this.addColumnsToList(t),"toolPanelUi")},deActivateFunction:()=>{const t=this.funcColsService.getPivotColumns();this.funcColsService.setPivotColumns(this.removeColumnsFromList(t),"toolPanelUi")},addIcon:"pivotPanel",removeIcon:"pivotPanel"})}addColumnsToList(e){return[...e].concat(this.columns.filter(t=>e.indexOf(t)===-1))}removeColumnsFromList(e){return e.filter(t=>this.columns.indexOf(t)===-1)}displayContextMenu(e){const t=this.getGui(),n=this.createBean(new JQ),r=this.localeService.getLocaleTextFunc();let i=()=>{};t.appendChild(n.getGui()),n.addMenuItems(e),n.addManagedListeners(n,{closeMenu:()=>{this.parentEl.focus(),i()}});const o=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,afterGuiAttached:()=>this.focusService.focusInto(n.getGui()),ariaLabel:r("ariaLabelContextMenu","Context Menu"),closedCallback:s=>{s instanceof KeyboardEvent&&this.parentEl.focus(),this.destroyBean(n)}});o&&(i=o.hideFunc),this.popupService.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:t})}isActive(){return this.allowGrouping||this.allowValues||this.allowPivoting}getMappedMenuItems(){const e=[];for(const t of this.menuItemMap.values()){const n=this.columns.some(i=>t.allowedFunction(i)&&!t.activeFunction(i)),r=this.columns.some(i=>t.allowedFunction(i)&&t.activeFunction(i));n&&e.push({name:t.activateLabel(this.displayName),icon:Gn(t.addIcon,this.gos,null),action:()=>t.activateFunction()}),r&&e.push({name:t.deactivateLabel(this.displayName),icon:Gn(t.removeIcon,this.gos,null),action:()=>t.deActivateFunction()})}return e}},ygt=class extends wn{constructor(e,t,n,r){super(),this.modelItem=e,this.allowDragging=t,this.eventType=n,this.focusWrapper=r,this.cbSelect=Ot,this.eLabel=Ot,this.eGroupOpenedIcon=Ot,this.eGroupClosedIcon=Ot,this.eColumnGroupIcons=Ot,this.processingColumnStateChange=!1,this.modelItem=e,this.columnGroup=e.getColumnGroup(),this.columnDept=e.getDept(),this.displayName=e.getDisplayName(),this.allowDragging=t}wireBeans(e){this.columnModel=e.columnModel,this.dragAndDropService=e.dragAndDropService,this.modelItemUtils=e.modelItemUtils}postConstruct(){this.setTemplate(`<div class="ag-column-select-column-group">
|
||
<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>
|
||
</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);this.addManagedListeners(t,{tap:e}),this.addDestroyFunc(t.destroy.bind(t))}onLabelClicked(){const e=!this.cbSelect.getValue();this.onChangeCommon(e)}onCheckboxChanged(e){this.onChangeCommon(e.selected)}getVisibleLeafColumns(){const e=[],t=n=>{n.forEach(r=>{r.isPassesFilter()&&(r.isGroup()?t(r.getChildren()):e.push(r.getColumn()))})};return t(this.modelItem.getChildren()),e}onChangeCommon(e){this.refreshAriaLabel(),!this.processingColumnStateChange&&this.modelItemUtils.selectAllChildren(this.modelItem.getChildren(),e,this.eventType)}refreshAriaLabel(){const e=this.localeService.getLocaleTextFunc(),t=e("ariaColumnGroup","Column Group"),n=this.cbSelect.getValue(),r=n===void 0?e("ariaIndeterminate","indeterminate"):n?e("ariaVisible","visible"):e("ariaHidden","hidden"),i=e("ariaToggleVisibility","Press SPACE to toggle visibility");Xl(this.focusWrapper,`${this.displayName} ${t}`),this.cbSelect.setInputAriaLabel(`${i} (${r})`),k3e(this.focusWrapper,this.cbSelect.getInputElement().id)}onColumnStateChanged(){const e=this.workOutSelectedValue(),t=this.workOutReadOnlyValue();this.processingColumnStateChange=!0,this.cbSelect.setValue(e),this.cbSelect.setReadOnly(t),this.addOrRemoveCssClass("ag-column-select-column-group-readonly",t),this.processingColumnStateChange=!1}workOutSelectedValue(){const e=this.columnModel.isPivotMode(),t=this.getVisibleLeafColumns();let n=0,r=0;if(t.forEach(i=>{!e&&i.getColDef().lockVisible||(this.isColumnChecked(i,e)?n++:r++)}),!(n>0&&r>0))return n>0}workOutReadOnlyValue(){const e=this.columnModel.isPivotMode();let t=0;return this.columnGroup.getLeafColumns().forEach(n=>{e?n.isAnyFunctionAllowed()&&t++:n.getColDef().lockVisible||t++}),t===0}isColumnChecked(e,t){if(t){const n=e.isPivotActive(),r=e.isRowGroupActive(),i=e.isValueActive();return n||r||i}return e.isVisible()}onExpandOrContractClicked(){const e=this.modelItem.isExpanded();this.modelItem.setExpanded(!e)}onExpandChanged(){this.setOpenClosedIcons(),this.refreshAriaExpanded()}setOpenClosedIcons(){const e=this.modelItem.isExpanded();Mn(this.eGroupClosedIcon,!e),Mn(this.eGroupOpenedIcon,e)}refreshAriaExpanded(){wd(this.focusWrapper,this.modelItem.isExpanded())}getDisplayName(){return this.displayName}onSelectAllChanged(e){const t=this.cbSelect.getValue();!this.cbSelect.isReadOnly()&&(e&&!t||!e&&t)&&this.cbSelect.toggle()}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}setSelected(e){this.cbSelect.setValue(e,!0)}},Api=class extends ct{constructor(e,t){super(),this.comp=e,this.virtualList=t}wireBeans(e){this.columnMoveService=e.columnMoveService,this.columnModel=e.columnModel}postConstruct(){this.createManagedBean(new Qhi(this.comp,this.virtualList,{dragSourceType:by.ToolPanel,listItemDragStartEvent:"columnPanelItemDragStart",listItemDragEndEvent:"columnPanelItemDragEnd",eventSource:this.eventService,getCurrentDragValue:e=>this.getCurrentDragValue(e),isMoveBlocked:e=>this.isMoveBlocked(e),getNumRows:e=>e.getDisplayedColsList().length,moveItem:(e,t)=>this.moveItem(this.getCurrentColumnsBeingMoved(e),t)}))}getCurrentDragValue(e){return e.column}getCurrentColumnsBeingMoved(e){return _o(e)?e.getLeafColumns():e?[e]:[]}isMoveBlocked(e){return this.gos.get("suppressMovableColumns")?!0:!!this.getCurrentColumnsBeingMoved(e).find(i=>{const o=i.getColDef();return!!o.suppressMovable||!!o.lockPosition})}moveItem(e,t){if(!t)return;const{component:n}=t;let r=null,i=t.position==="top";if(n instanceof ygt?(r=n.getColumns()[0],i=!0):n&&(r=n.getColumn()),!r)return;const o=this.getMoveTargetIndex({currentColumns:e,lastHoveredColumn:r,isBefore:i});o!=null&&this.columnMoveService.moveColumns(e,o,"toolPanelUi")}getMoveTargetIndex(e){const{currentColumns:t,lastHoveredColumn:n,isBefore:r}=e;if(!n||!t)return null;const i=this.columnModel.getCols().indexOf(n),o=r?i:i+1,s=this.getMoveDiff(t,o);return o-s}getMoveDiff(e,t){const n=this.columnModel.getCols();if(!e)return 0;const r=e[0],i=e.length;return n.indexOf(r)<t?i:0}},Dpi=class extends wn{constructor(e,t,n,r){super(),this.allowDragging=t,this.groupsExist=n,this.focusWrapper=r,this.eLabel=Ot,this.cbSelect=Ot,this.processingColumnStateChange=!1,this.column=e.getColumn(),this.columnDept=e.getDept(),this.displayName=e.getDisplayName()}wireBeans(e){this.columnModel=e.columnModel,this.dragAndDropService=e.dragAndDropService,this.modelItemUtils=e.modelItemUtils}postConstruct(){this.setTemplate(`<div class="ag-column-select-column">
|
||
<ag-checkbox data-ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>
|
||
<span class="ag-column-select-column-label" data-ref="eLabel"></span>
|
||
</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.isPivotMode();if(e){const r=this.column.isAnyFunctionActive();this.cbSelect.setValue(r)}else this.cbSelect.setValue(this.column.isVisible());let t=!0,n=!0;if(e){const r=this.gos.get("functionsReadOnly"),i=!this.column.isAnyFunctionAllowed();t=!r&&!i,n=t}else{const{enableRowGroup:r,enableValue:i,lockPosition:o,suppressMovable:s,lockVisible:a}=this.column.getColDef(),l=!!r||!!i,c=!!o||!!s;t=!a,n=l||!c}this.cbSelect.setReadOnly(!t),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!n),this.addOrRemoveCssClass("ag-column-select-column-readonly",!n&&!t),this.cbSelect.setPassive(!1),this.processingColumnStateChange=!1}getDisplayName(){return this.displayName}onSelectAllChanged(e){e!==this.cbSelect.getValue()&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}isExpandable(){return!1}setExpanded(e){rt("can not expand a column item that does not represent a column group header")}},Lpi=class{constructor(e){this.items=e}getRowCount(){return this.items.length}getRow(e){return this.items[e]}},Fpi="ag-column-select-list",Npi=class extends wn{constructor(){super(`<div class="${Fpi}" role="presentation"></div>`),this.destroyColumnItemFuncs=[],this.hasLoadedInitialState=!1,this.isInitialState=!1}wireBeans(e){this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.colDefService=e.toolPanelColDefService,this.modelItemUtils=e.modelItemUtils}destroy(){this.destroyColumnTree(),super.destroy()}destroyColumnTree(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach(e=>e()),this.destroyColumnItemFuncs=[]}init(e,t,n){this.params=e,this.allowDragging=t,this.eventType=n,this.params.suppressSyncLayoutWithGrid||this.addManagedEventListeners({columnMoved:this.onColumnsChanged.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.onColumnsChanged.bind(this)});const r=this.fireSelectionChangedEvent.bind(this);this.addManagedEventListeners({columnPivotChanged:r,columnPivotModeChanged:r,columnRowGroupChanged:r,columnValueChanged:r,columnVisible:r,newColumnsLoaded:r}),this.expandGroupsByDefault=!this.params.contractColumnSelection,this.virtualList=this.createManagedBean(new v6e({cssIdentifier:"column-select",ariaRole:"tree"})),this.appendChild(this.virtualList.getGui()),this.virtualList.setComponentCreator((i,o)=>(z3e(o,i.getDept()+1),this.createComponentFromItem(i,o))),this.columnModel.isReady()&&this.onColumnsChanged(),!this.params.suppressColumnMove&&this.createManagedBean(new Api(this,this.virtualList))}createComponentFromItem(e,t){if(e.isGroup()){const r=new ygt(e,this.allowDragging,this.eventType,t);return this.createBean(r),r}const n=new Dpi(e,this.allowDragging,this.groupsExist,t);return this.createBean(n),n}onColumnsChanged(){this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!this.params.initialState);const e=this.getExpandedStates(),t=this.columnModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!t?this.buildTreeFromWhatGridIsDisplaying():this.buildTreeFromProvidedColumnDefs(),this.setExpandedStates(e),this.markFilteredColumns(),this.flattenAndFilterModel(),this.isInitialState=!1}getDisplayedColsList(){return this.displayedColsList}getExpandedStates(){const e={};if(this.isInitialState){const{expandedGroupIds:t}=this.params.initialState;return t.forEach(n=>{e[n]=!0}),e}return this.allColsTree?(this.forEachItem(t=>{if(!t.isGroup())return;const n=t.getColumnGroup();n&&(e[n.getId()]=t.isExpanded())}),e):{}}setExpandedStates(e){if(!this.allColsTree)return;const{isInitialState:t}=this;this.forEachItem(n=>{if(!n.isGroup())return;const r=n.getColumnGroup();if(r){const i=e[r.getId()];(i!=null||t)&&n.setExpanded(!!i)}})}buildTreeFromWhatGridIsDisplaying(){this.colDefService.syncLayoutWithGrid(this.setColumnLayout.bind(this))}setColumnLayout(e){const t=this.colDefService.createColumnTree(e);this.buildListModel(t),this.groupsExist=e.some(n=>n&&typeof n.children<"u"),this.markFilteredColumns(),this.flattenAndFilterModel()}buildTreeFromProvidedColumnDefs(){this.buildListModel(this.columnModel.getColDefColTree()),this.groupsExist=this.columnModel.isProvidedColGroupsPresent()}buildListModel(e){const t=this.onColumnExpanded.bind(this),n=s=>{s.addEventListener("expandedChanged",t);const a=s.removeEventListener.bind(s,"expandedChanged",t);this.destroyColumnItemFuncs.push(a)},r=(s,a,l)=>{s.forEach(c=>{_o(c)?i(c,a,l):o(c,a,l)})},i=(s,a,l)=>{const c=s.getColGroupDef();if(c&&c.suppressColumnsToolPanel)return;if(s.isPadding()){r(s.getChildren(),a,l);return}const f=this.columnNameService.getDisplayNameForProvidedColumnGroup(null,s,"columnToolPanel"),h=new eFe(f,s,a,!0,this.expandGroupsByDefault);l.push(h),n(h),r(s.getChildren(),a+1,h.getChildren())},o=(s,a,l)=>{if(s.getColDef()&&s.getColDef().suppressColumnsToolPanel)return;const u=this.columnNameService.getDisplayNameForColumn(s,"columnToolPanel");l.push(new eFe(u,s,a))};this.destroyColumnTree(),r(e,0,this.allColsTree)}onColumnExpanded(){this.flattenAndFilterModel()}flattenAndFilterModel(){this.displayedColsList=[];const e=n=>{n.isPassesFilter()&&(this.displayedColsList.push(n),n.isGroup()&&n.isExpanded()&&n.getChildren().forEach(e))};this.allColsTree.forEach(e),this.virtualList.setModel(new Lpi(this.displayedColsList));const t=this.virtualList.getLastFocusedRow();this.virtualList.refresh(),t!=null&&this.focusRowIfAlive(t),this.notifyListeners(),this.refreshAriaLabel()}refreshAriaLabel(){const e=this.localeService.getLocaleTextFunc(),t=e("ariaColumnPanelList","Column List"),n=e("columns","Columns"),r=this.displayedColsList.length;Xl(this.virtualList.getAriaElement(),`${t} ${r} ${n}`)}focusRowIfAlive(e){window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(e)},0)}forEachItem(e){const t=n=>{n.forEach(r=>{e(r),r.isGroup()&&t(r.getChildren())})};this.allColsTree&&t(this.allColsTree)}doSetExpandedAll(e){this.forEachItem(t=>{t.isGroup()&&t.setExpanded(e)})}setGroupsExpanded(e,t){if(!t){this.doSetExpandedAll(e);return}const n=[];this.forEachItem(i=>{if(!i.isGroup())return;const o=i.getColumnGroup().getId();t.indexOf(o)>=0&&(i.setExpanded(e),n.push(o))});const r=t.filter(i=>!ll(n,i));r.length>0&&rt("unable to find group(s) for supplied groupIds:",r)}getExpandState(){let e=0,t=0;return this.forEachItem(n=>{n.isGroup()&&(n.isExpanded()?e++:t++)}),e>0&&t>0?2:t>0?1:0}doSetSelectedAll(e){this.modelItemUtils.selectAllChildren(this.allColsTree,e,this.eventType)}getSelectionState(){let e=0,t=0;const n=this.columnModel.isPivotMode();if(this.forEachItem(r=>{if(r.isGroup()||!r.isPassesFilter())return;const i=r.getColumn(),o=i.getColDef();let s;if(n){if(!i.isAllowPivot()&&!i.isAllowRowGroup()&&!i.isAllowValue())return;s=i.isValueActive()||i.isPivotActive()||i.isRowGroupActive()}else{if(o.lockVisible)return;s=i.isVisible()}s?e++:t++}),!(e>0&&t>0))return!(e===0||t>0)}setFilterText(e){this.filterText=zt(e)?e.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()}markFilteredColumns(){const e=n=>{if(!zt(this.filterText))return!0;const r=n.getDisplayName();return r==null||r.toLowerCase().indexOf(this.filterText)!==-1},t=(n,r)=>{let i=!1;if(n.isGroup()){const s=e(n);n.getChildren().forEach(a=>{const l=t(a,s||r);l&&(i=l)})}const o=r||i?!0:e(n);return n.setPassesFilter(o),o};this.allColsTree.forEach(n=>t(n,!1))}notifyListeners(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()}fireGroupExpandedEvent(){const e=this.getExpandState();this.dispatchLocalEvent({type:"groupExpanded",state:e})}fireSelectionChangedEvent(){if(!this.allColsTree)return;const e=this.getSelectionState();this.dispatchLocalEvent({type:"selectionChanged",state:e})}getExpandedGroups(){const e=[];return this.allColsTree&&this.forEachItem(t=>{t.isGroup()&&t.isExpanded()&&e.push(t.getColumnGroup().getId())}),e}},kpi={selector:"AG-PRIMARY-COLS-LIST",component:Npi},bgt=class extends wn{constructor(){super(`<div class="ag-column-select">
|
||
<ag-primary-cols-header data-ref="primaryColsHeaderPanel"></ag-primary-cols-header>
|
||
<ag-primary-cols-list data-ref="primaryColsListPanel"></ag-primary-cols-list>
|
||
</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">
|
||
<ag-toggle-button data-ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>
|
||
</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"))})}setLastVisible(){const e=this.getGui();Array.prototype.slice.call(e.querySelectorAll(".ag-column-drop")).forEach(i=>i.classList.remove("ag-last-column-drop"));const n=e.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),r=Dn(n);r&&r.classList.add("ag-last-column-drop"),this.setResizers()}resetChildrenHeight(){const t=this.getGui().children;for(let n=0;n<t.length;n++){const r=t[n];r.style.removeProperty("height"),r.style.removeProperty("flex")}}isRowGroupingModuleLoaded(){return this.gos.assertModuleRegistered(rr.RowGroupingModule,"Row Grouping")}expandColumnGroups(e){this.primaryColsPanel.expandGroups(e)}collapseColumnGroups(e){this.primaryColsPanel.collapseGroups(e)}setColumnLayout(e){this.primaryColsPanel.setColumnLayout(e)}syncLayoutWithGrid(){this.primaryColsPanel.syncLayoutWithGrid()}destroyChildren(){this.childDestroyFuncs.forEach(e=>e()),this.childDestroyFuncs.length=0,go(this.getGui())}refresh(e){return this.destroyChildren(),this.init(e),!0}getState(){return{expandedGroupIds:this.primaryColsPanel.getExpandedGroups()}}destroy(){this.destroyChildren(),super.destroy()}},Bpi=class extends ct{constructor(){super(...arguments),this.beanName="modelItemUtils"}wireBeans(e){this.aggFuncService=e.aggFuncService,this.columnModel=e.columnModel,this.columnApplyStateService=e.columnApplyStateService}selectAllChildren(e,t,n){const r=this.extractAllLeafColumns(e);this.setAllColumns(r,t,n)}setColumn(e,t,n){this.setAllColumns([e],t,n)}setAllColumns(e,t,n){this.columnModel.isPivotMode()?this.setAllPivot(e,t,n):this.setAllVisible(e,t,n)}extractAllLeafColumns(e){const t=[],n=r=>{r.forEach(i=>{i.isPassesFilter()&&(i.isGroup()?n(i.getChildren()):t.push(i.getColumn()))})};return n(e),t}setAllVisible(e,t,n){const r=[];e.forEach(i=>{i.getColDef().lockVisible||i.isVisible()!=t&&r.push({colId:i.getId(),hide:!t})}),r.length>0&&this.columnApplyStateService.applyColumnState({state:r},n)}setAllPivot(e,t,n){this.setAllPivotActive(e,t,n)}setAllPivotActive(e,t,n){const r=[],s=t?a=>{var l;if(!a.isAnyFunctionActive())if(a.isAllowValue()){const c=typeof a.getAggFunc()=="string"?a.getAggFunc():(l=this.aggFuncService)==null?void 0:l.getDefaultAggFunc(a);r.push({colId:a.getId(),aggFunc:c})}else a.isAllowRowGroup()?r.push({colId:a.getId(),rowGroup:!0}):a.isAllowPivot()&&r.push({colId:a.getId(),pivot:!0})}:a=>{(a.isPivotActive()||a.isRowGroupActive()||a.isValueActive())&&r.push({colId:a.getId(),pivot:!1,rowGroup:!1,aggFunc:null})};e.forEach(s),r.length>0&&this.columnApplyStateService.applyColumnState({state:r},n)}updateColumns(e){const{columns:t,visibleState:n,pivotState:r,eventType:i}=e,o=t.map(s=>{const a=s.getColId();if(this.columnModel.isPivotMode()){const l=r==null?void 0:r[a];return{colId:a,pivot:l==null?void 0:l.pivot,rowGroup:l==null?void 0:l.rowGroup,aggFunc:l==null?void 0:l.aggFunc}}else return{colId:a,hide:!(n!=null&&n[a])}});this.columnApplyStateService.applyColumnState({state:o},i)}createPivotState(e){return{pivot:e.isPivotActive(),rowGroup:e.isRowGroupActive(),aggFunc:e.isValueActive()?e.getAggFunc():void 0}}},Hpi="32.3.3",jpi={version:Hpi,moduleName:rr.ColumnsToolPanelModule,beans:[Bpi],userComponents:[{name:"agColumnsToolPanel",classImp:zpi},{name:"agMenuItem",classImp:m6e}],dependantModules:[dp,lpi,vgt]},Vpi=class extends wn{constructor(){super(...arguments),this.eExpand=Ot,this.eFilterTextField=Ot}wireBeans(e){this.columnModel=e.columnModel}postConstruct(){this.setTemplate(`<div class="ag-filter-toolpanel-search" role="presentation">
|
||
<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>
|
||
</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(`
|
||
<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>
|
||
</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">
|
||
<ag-group-component data-ref="filterGroupComp"></ag-group-component>
|
||
</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,suppressSyncLayoutWithGrid:!1});nl(t,e),this.params=t,this.params.suppressSyncLayoutWithGrid||this.addManagedEventListeners({columnMoved:()=>this.onColumnsChanged()}),this.addManagedEventListeners({newColumnsLoaded:()=>this.onColumnsChanged(),toolPanelVisibleChanged:n=>{n.key==="filters"&&this.refreshFilters(n.visible)},dragStarted:()=>{this.suppressOnColumnsChanged=!0},dragStopped:()=>{this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending&&(this.onColumnsChangedPending=!1,this.onColumnsChanged())}}),this.columnModel.isReady()&&this.onColumnsChanged()}onColumnsChanged(){if(this.suppressOnColumnsChanged){this.onColumnsChangedPending=!0;return}const e=this.columnModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs(),this.refreshAriaLabel()}syncFilterLayout(){this.toolPanelColDefService.syncLayoutWithGrid(this.setFiltersLayout.bind(this)),this.refreshAriaLabel()}buildTreeFromProvidedColumnDefs(){const e=this.columnModel.getColDefColTree();this.recreateFilters(e)}setFiltersLayout(e){const t=this.toolPanelColDefService.createColumnTree(e);this.recreateFilters(t)}recreateFilters(e){const t=gi(this.gos);this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!this.params.initialState);const n=this.getExpansionState();this.destroyFilters(),this.filterGroupComps=this.recursivelyAddComps(e,0,n);const r=this.filterGroupComps.length;r&&(this.filterGroupComps.forEach(i=>this.appendChild(i)),this.setFirstAndLastVisible(0,r-1)),zt(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent(),this.getGui().contains(t)&&t.focus(),this.isInitialState=!1,this.refreshAriaLabel()}recursivelyAddComps(e,t,n){return ck(e.map(r=>{if(_o(r))return ck(this.recursivelyAddFilterGroupComps(r,t,n));const i=r;if(!this.shouldDisplayFilter(i))return[];const o=t===0,s=new Sgt(o,()=>this.onFilterExpanded());if(this.createBean(s),s.setColumn(i),n.get(i.getId())&&s.expand(),t>0)return s;const a=this.createBean(new a2(i,[s],this.onGroupExpanded.bind(this),t,!0));return a.addCssClassToTitleBar("ag-filter-toolpanel-header"),n.get(a.getFilterGroupId())||a.collapse(),a}))}refreshAriaLabel(){const e=this.localeService.getLocaleTextFunc(),t=e("ariaFilterPanelList","Filter List"),n=e("filters","Filters"),l=this.getGui().querySelectorAll(".ag-filter-toolpanel-group-item:not(.ag-filter-toolpanel-group-wrapper, .ag-hidden)").length;Xl(this.getAriaElement(),`${t} ${l} ${n}`)}recursivelyAddFilterGroupComps(e,t,n){if(!this.filtersExistInChildren(e.getChildren()))return;const r=e.getColGroupDef();if(r&&r.suppressFiltersToolPanel)return[];const i=e.isPadding()?t:t+1,o=ck(this.recursivelyAddComps(e.getChildren(),i,n));if(e.isPadding())return o;const s=new a2(e,o,this.onGroupExpanded.bind(this),t,!1);this.createBean(s),s.addCssClassToTitleBar("ag-filter-toolpanel-header");const a=n.get(s.getFilterGroupId());return(this.isInitialState&&!a||a===!1)&&s.collapse(),[s]}filtersExistInChildren(e){return e.some(t=>_o(t)?this.filtersExistInChildren(t.getChildren()):this.shouldDisplayFilter(t))}shouldDisplayFilter(e){const t=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!t}getExpansionState(){const e=new Map;if(this.isInitialState){const{expandedColIds:n,expandedGroupIds:r}=this.params.initialState;return n.forEach(i=>e.set(i,!0)),r.forEach(i=>e.set(i,!0)),e}const t=n=>{e.set(n.getFilterGroupId(),n.isExpanded()),n.getChildren().forEach(r=>{r instanceof a2?t(r):e.set(r.getColumn().getId(),r.isExpanded())})};return this.filterGroupComps.forEach(t),e}refresh(){}setVisible(e){super.setDisplayed(e),e&&!this.initialised&&this.init(this.params)}expandFilterGroups(e,t){const n=[],r=i=>{const o=i.getFilterGroupId();(!t||ll(t,o))&&(e&&i.isColumnGroup()?i.expand():i.collapse(),n.push(o)),i.getChildren().forEach(a=>{a instanceof a2&&r(a)})};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){const i=t.filter(o=>n.indexOf(o)<0);i.length>0&&rt("unable to find groups for these supplied groupIds:",i)}}expandFilters(e,t){const n=[],r=i=>{if(i instanceof a2){let a=!1;return i.getChildren().forEach(l=>{r(l)&&(e?(i.expand(),a=!0):i.isColumnGroup()||i.collapse())}),a}const o=i.getColumn().getColId(),s=!t||ll(t,o);return s&&(e?i.expand():i.collapse(),n.push(o)),s};if(this.filterGroupComps.forEach(r),this.onGroupExpanded(),t){const i=t.filter(o=>n.indexOf(o)<0);i.length>0&&rt("unable to find columns for these supplied colIds:"+i)}}onGroupExpanded(){this.fireExpandedEvent()}onFilterExpanded(){this.dispatchLocalEvent({type:"filterExpanded"})}fireExpandedEvent(){let e=0,t=0;const n=i=>{i.isColumnGroup()&&(i.isExpanded()?e++:t++,i.getChildren().forEach(o=>{o instanceof a2&&n(o)}))};this.filterGroupComps.forEach(n);let r;e>0&&t>0?r=2:t>0?r=1:r=0,this.dispatchLocalEvent({type:"groupExpanded",state:r})}performFilterSearch(e){this.searchFilterText=zt(e)?e.toLowerCase():null,this.searchFilters(this.searchFilterText)}searchFilters(e){const t=o=>!zt(e)||o.toLowerCase().indexOf(e)!==-1,n=(o,s)=>{if(!(o instanceof a2))return t(o.getColumnFilterName()||"");const a=o.getChildren(),l=t(o.getFilterGroupName()),c=s||l;if(c){o.hideGroup(!1);for(let f=0;f<a.length;f++)n(a[f],c),o.hideGroupItem(!1,f);return!0}let u=!1;return a.forEach((f,h)=>{const g=n(f,s);o.hideGroupItem(!g,h),g&&(u=!0)}),o.hideGroup(!u),u};let r,i;this.filterGroupComps.forEach((o,s)=>{n(o,!1),r===void 0?o.containsCssClass("ag-hidden")||(r=s,i=s):!o.containsCssClass("ag-hidden")&&i!==s&&(i=s)}),this.setFirstAndLastVisible(r,i),this.refreshAriaLabel()}setFirstAndLastVisible(e,t){this.filterGroupComps.forEach((n,r)=>{n.removeCssClass("ag-first-group-visible"),n.removeCssClass("ag-last-group-visible"),r===e&&n.addCssClass("ag-first-group-visible"),r===t&&n.addCssClass("ag-last-group-visible")})}refreshFilters(e){this.filterGroupComps.forEach(t=>t.refreshFilters(e))}getExpandedFiltersAndGroups(){const e=[],t=new Set,n=r=>{if(r instanceof a2){r.getChildren().forEach(o=>n(o));const i=r.getFilterGroupId();r.isExpanded()&&!t.has(i)&&e.push(i)}else r.isExpanded()&&t.add(r.getColumn().getColId())};return this.filterGroupComps.forEach(n),{expandedGroupIds:e,expandedColIds:Array.from(t)}}destroyFilters(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),go(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}},Upi={selector:"AG-FILTERS-TOOL-PANEL-LIST",component:Wpi},qpi=class extends wn{constructor(){super(`<div class="ag-filter-toolpanel">
|
||
<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>
|
||
</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.columns.filter(o=>o.isVisible()&&e.indexOf(o)!==-1),!vc(r,n.columns)&&this.dispatchChangedEvent(!1,!0,n.id)});const t=this.cellRanges.length;this.cellRanges=this.cellRanges.filter(n=>n.columns.length>0),t>this.cellRanges.length&&this.dispatchChangedEvent(!1,!0)}refreshLastRangeStart(){const e=Dn(this.cellRanges);e&&this.refreshRangeStart(e)}isContiguousRange(e){const t=e.columns;if(!t.length)return!1;const n=this.visibleColsService.getAllCols(),r=t.map(i=>n.indexOf(i)).sort((i,o)=>i-o);return Dn(r)-r[0]+1===t.length}getRangeStartRow(e){return e.startRow&&e.endRow?this.rowPositionUtils.before(e.startRow,e.endRow)?e.startRow:e.endRow:{rowIndex:0,rowPinned:this.pinnedRowModel.getPinnedTopRowCount()>0?"top":null}}getRangeEndRow(e){if(e.startRow&&e.endRow)return this.rowPositionUtils.before(e.startRow,e.endRow)?e.endRow:e.startRow;const t=this.pinnedRowModel.getPinnedBottomRowCount();return t>0?{rowIndex:t-1,rowPinned:"bottom"}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}}setRangeToCell(e,t=!1){if(!su(this.gos))return;const n=this.calculateColumnsBetween(e.column,e.column);if(!n)return;(x$(this.gos)||!t||ar(this.cellRanges))&&this.removeAllCellRanges(!0);const i={rowIndex:e.rowIndex,rowPinned:e.rowPinned},o={startRow:i,endRow:i,columns:n,startColumn:e.column};this.cellRanges.push(o),this.setNewestRangeStartCell(e),this.onDragStop(),this.dispatchChangedEvent(!0,!0)}extendLatestRangeToCell(e){if(this.isEmpty()||!this.newestRangeStartCell)return;const t=Dn(this.cellRanges);this.updateRangeEnd(t,e)}updateRangeEnd(e,t,n=!1){const r=t.column,i=this.calculateColumnsBetween(e.startColumn,r);!i||this.isLastCellOfRange(e,t)||(e.columns=i,e.endRow={rowIndex:t.rowIndex,rowPinned:t.rowPinned},n||this.dispatchChangedEvent(!0,!0,e.id))}refreshRangeStart(e){const{startColumn:t,columns:n}=e,r=(l,c)=>{const u=e.columns.filter(f=>f!==l);l?(e.startColumn=l,e.columns=c?[l,...u]:[...u,l]):e.columns=u},{left:i,right:o}=this.getRangeEdgeColumns(e);if(t===n[0]&&t!==i){r(i,!0);return}if(t===Dn(n)&&t===o){r(o,!1);return}}getRangeEdgeColumns(e){const t=this.visibleColsService.getAllCols(),n=e.columns.map(r=>t.indexOf(r)).filter(r=>r>-1).sort((r,i)=>r-i);return{left:t[n[0]],right:t[Dn(n)]}}extendLatestRangeInDirection(e){if(this.isEmpty()||!this.newestRangeStartCell)return;const t=e.key,n=e.ctrlKey||e.metaKey,r=Dn(this.cellRanges),i=this.newestRangeStartCell,o=r.columns[0],s=Dn(r.columns),a=r.endRow.rowIndex,l=r.endRow.rowPinned,u={column:i.column===o?s:o,rowIndex:a,rowPinned:l},f=this.cellNavigationService.getNextCellToFocus(t,u,n);if(f)return this.setCellRange({rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,rowEndIndex:f.rowIndex,rowEndPinned:f.rowPinned,columnStart:i.column,columnEnd:f.column}),f}setCellRange(e){su(this.gos)&&(this.removeAllCellRanges(!0),this.addCellRange(e))}setCellRanges(e){Xni(this.cellRanges,e)||(this.removeAllCellRanges(!0),e.forEach(t=>{t.columns&&t.startRow&&this.setNewestRangeStartCell({rowIndex:t.startRow.rowIndex,rowPinned:t.startRow.rowPinned,column:t.columns[0]}),this.cellRanges.push(t)}),this.dispatchChangedEvent(!1,!0))}setNewestRangeStartCell(e){this.newestRangeStartCell=e}clearCellRangeCellValues(e){let{cellRanges:t}=e;const{cellEventSource:n="rangeService",dispatchWrapperEvents:r,wrapperEventSource:i="deleteKey"}=e;r&&(this.eventService.dispatchEvent({type:"cellSelectionDeleteStart",source:i}),this.eventService.dispatchEvent({type:"rangeDeleteStart",source:i})),t||(t=this.cellRanges),t.forEach(o=>{this.forEachRowInRange(o,s=>{const a=this.rowPositionUtils.getRowNode(s);if(a)for(let l=0;l<o.columns.length;l++){const c=this.columnModel.getCol(o.columns[l]);if(!c||!c.isCellEditable(a))continue;const u=this.valueService.getDeleteValue(c,a);a.setDataValue(c,u,n)}})}),r&&(this.eventService.dispatchEvent({type:"cellSelectionDeleteEnd",source:i}),this.eventService.dispatchEvent({type:"rangeDeleteEnd",source:i}))}createCellRangeFromCellRangeParams(e){return this.createPartialCellRangeFromRangeParams(e,!1)}createPartialCellRangeFromRangeParams(e,t){let n,r=!1;if(e.columns)n=e.columns.map(s=>this.columnModel.getCol(s)).filter(s=>s);else{const s=this.columnModel.getCol(e.columnStart),a=this.columnModel.getCol(e.columnEnd);if(!s||!a)return;n=this.calculateColumnsBetween(s,a),n&&n.length&&(r=n[0]!==s)}if(!n||!t&&n.length===0)return;const i=e.rowStartIndex!=null?{rowIndex:e.rowStartIndex,rowPinned:e.rowStartPinned||null}:void 0,o=e.rowEndIndex!=null?{rowIndex:e.rowEndIndex,rowPinned:e.rowEndPinned||null}:void 0;return{startRow:i,endRow:o,columns:n,startColumn:r?Dn(n):n[0]}}addCellRange(e){const t=this.gos;if(!su(t))return;if(jdt(t)&&x$(t)&&this.cellRanges.length>0)return rt("cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`");const n=this.createCellRangeFromCellRangeParams(e);n&&(n.startRow&&this.setNewestRangeStartCell({rowIndex:n.startRow.rowIndex,rowPinned:n.startRow.rowPinned,column:n.startColumn}),this.cellRanges.push(n),this.dispatchChangedEvent(!1,!0,n.id))}getCellRanges(){return this.cellRanges}isEmpty(){return this.cellRanges.length===0}isMoreThanOneCell(){const e=this.cellRanges.length;if(e===0)return!1;if(e>1)return!0;const t=this.cellRanges[0],n=this.getRangeStartRow(t),r=this.getRangeEndRow(t);return n.rowPinned!==r.rowPinned||n.rowIndex!==r.rowIndex||t.columns.length!==1}areAllRangesAbleToMerge(){const e=new Map;if(this.cellRanges.length<=1)return!0;this.cellRanges.forEach(r=>{this.forEachRowInRange(r,i=>{const o=`${i.rowPinned||"normal"}_${i.rowIndex}`,s=e.get(o),a=r.columns.map(l=>l.getId());if(s){const l=a.filter(c=>s.indexOf(c)===-1);s.push(...l)}else e.set(o,a)})});let n;for(const r of e.values()){const i=r.sort().join();if(n===void 0){n=i;continue}if(n!==i)return!1}return!0}forEachRowInRange(e,t){const n=this.getRangeStartRow(e),r=this.getRangeEndRow(e);let i=n;for(;i&&(t(i),!this.rowPositionUtils.sameRow(i,r));)i=this.cellNavigationService.getRowBelow(i)}removeAllCellRanges(e){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,e||this.dispatchChangedEvent(!1,!0))}onBodyScroll(){this.dragging&&this.lastMouseEvent&&this.onDragging(this.lastMouseEvent)}isCellInAnyRange(e){return this.getCellRangeCount(e)>0}isCellInSpecificRange(e,t){const n=t.columns!==null&&ll(t.columns,e.column),r=this.isRowInRange(e.rowIndex,e.rowPinned,t);return n&&r}isLastCellOfRange(e,t){const{startRow:n,endRow:r}=e,i=this.rowPositionUtils.before(n,r)?r:n,o=t.rowIndex===i.rowIndex&&t.rowPinned===i.rowPinned,s=e.columns[0],a=Dn(e.columns),l=e.startColumn===s?a:s;return t.column===l&&o}isBottomRightCell(e,t){const n=this.visibleColsService.getAllCols(),r=e.columns.map(c=>n.indexOf(c)).sort((c,u)=>c-u),{startRow:i,endRow:o}=e,s=this.rowPositionUtils.before(i,o)?o:i,a=n.indexOf(t.column)===Dn(r),l=t.rowIndex===s.rowIndex&&Da(t.rowPinned)===Da(s.rowPinned);return a&&l}getCellRangeCount(e){return this.isEmpty()?0:this.cellRanges.filter(t=>this.isCellInSpecificRange(e,t)).length}isRowInRange(e,t,n){const r=this.getRangeStartRow(n),i=this.getRangeEndRow(n),o={rowIndex:e,rowPinned:t||null},s=o.rowIndex===r.rowIndex&&o.rowPinned==r.rowPinned,a=o.rowIndex===i.rowIndex&&o.rowPinned==i.rowPinned;if(s||a)return!0;const l=!this.rowPositionUtils.before(o,r),c=this.rowPositionUtils.before(o,i);return l&&c}getDraggingRange(){return this.draggingRange}onDragStart(e){if(!su(this.gos))return;const{ctrlKey:t,metaKey:n,shiftKey:r}=e,i=t||n,s=!x$(this.gos)?i:!1,a=r&&dw(this.cellRanges);!s&&(!a||zt(Dn(this.cellRanges).type))&&this.removeAllCellRanges(!0);const l=this.dragService.getStartTarget();if(l&&this.updateValuesOnMove(l),!!this.lastCellHovered){if(this.dragging=!0,this.lastMouseEvent=e,this.intersectionRange=s&&this.getCellRangeCount(this.lastCellHovered)>1,a||this.setNewestRangeStartCell(this.lastCellHovered),this.cellRanges.length>0)this.draggingRange=Dn(this.cellRanges);else{const c={rowIndex:this.lastCellHovered.rowIndex,rowPinned:this.lastCellHovered.rowPinned};this.draggingRange={startRow:c,endRow:c,columns:[this.lastCellHovered.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.ctrlsService.getGridBodyCtrl().addScrollEventListener(this.bodyScrollListener),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}intersectLastRange(e){if(e&&this.dragging||x$(this.gos)||this.isEmpty())return;const t=this.rowPositionUtils,n=Dn(this.cellRanges),r=this.getRangeStartRow(n),i=this.getRangeEndRow(n),o=[];this.cellRanges.slice(0,-1).forEach(s=>{const a=this.getRangeStartRow(s),l=this.getRangeEndRow(s),c=s.columns,u=c.filter(h=>n.columns.indexOf(h)===-1);if(u.length===c.length){o.push(s);return}if(t.before(i,a)||t.before(l,r)){o.push(s);return}const f=o.length;if(t.before(a,r)){const h={columns:[...c],startColumn:n.startColumn,startRow:{...a},endRow:this.cellNavigationService.getRowAbove(r)};o.push(h)}if(u.length>0){const h={columns:u,startColumn:ll(u,n.startColumn)?n.startColumn:u[0],startRow:this.rowMax([{...r},{...a}]),endRow:this.rowMin([{...i},{...l}])};o.push(h)}t.before(i,l)&&o.push({columns:[...c],startColumn:n.startColumn,startRow:this.cellNavigationService.getRowBelow(i),endRow:{...l}}),o.length-f===1&&(o[o.length-1].id=s.id)}),this.cellRanges=o,e&&this.dispatchChangedEvent(!1,!0)}rowMax(e){let t;return e.forEach(n=>{(t===void 0||this.rowPositionUtils.before(t,n))&&(t=n)}),t}rowMin(e){let t;return e.forEach(n=>{(t===void 0||this.rowPositionUtils.before(n,t))&&(t=n)}),t}updateValuesOnMove(e){const t=CH(this.gos,e,P4.DOM_DATA_KEY_CELL_CTRL),n=t==null?void 0:t.getCellPosition();if(this.cellHasChanged=!1,!(!n||this.lastCellHovered&&this.cellPositionUtils.equals(n,this.lastCellHovered))){if(t!=null&&t.isEditing()){this.dragService.cancelDrag(e);return}this.lastCellHovered&&(this.cellHasChanged=!0),this.lastCellHovered=n}}onDragging(e){if(!this.dragging||!e)return;this.updateValuesOnMove(e.target),this.lastMouseEvent=e;const t=this.lastCellHovered,n=o=>t&&t.rowPinned===o&&this.newestRangeStartCell.rowPinned===o,r=n("top")||n("bottom");if(this.autoScrollService.check(e,r),!this.cellHasChanged)return;const i=this.calculateColumnsBetween(this.newestRangeStartCell.column,t.column);i&&(this.draggingRange.endRow={rowIndex:t.rowIndex,rowPinned:t.rowPinned},this.draggingRange.columns=i,this.dispatchChangedEvent(!1,!1,this.draggingRange.id))}onDragStop(){if(!this.dragging)return;const{id:e}=this.draggingRange;this.autoScrollService.ensureCleared(),this.ctrlsService.getGridBodyCtrl().removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.lastCellHovered=void 0,this.intersectionRange&&(this.intersectionRange=!1,this.intersectLastRange()),this.dispatchChangedEvent(!1,!0,e)}dispatchChangedEvent(e,t,n){this.eventService.dispatchEvent({type:"cellSelectionChanged",started:e,finished:t,id:n}),this.eventService.dispatchEvent({type:"rangeSelectionChanged",started:e,finished:t,id:n})}calculateColumnsBetween(e,t){const n=this.visibleColsService.getAllCols(),r=e===t,i=n.indexOf(e),o=u=>rt(`column ${u.getId()} is not visible`);if(i<0){o(e);return}const s=r?i:n.indexOf(t);if(s<0){o(t);return}if(r)return[e];const a=Math.min(i,s),l=a===i?s:i,c=[];for(let u=a;u<=l;u++)c.push(n[u]);return c}},xgt=class extends wn{constructor(){super(...arguments),this.changedCalculatedValues=!1,this.dragging=!1,this.shouldDestroyOnEndDragging=!1}wireBeans(e){this.dragService=e.dragService,this.rangeService=e.rangeService,this.mouseEventService=e.mouseEventService,this.rowPositionUtils=e.rowPositionUtils,this.cellPositionUtils=e.cellPositionUtils,this.ctrlsService=e.ctrlsService}postConstruct(){this.dragService.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:e=>{this.dragging=!0,this.rangeService.autoScrollService.check(e),this.changedCalculatedValues&&(this.onDrag(e),this.changedCalculatedValues=!1)},onDragStop:e=>{this.dragging=!1,this.onDragEnd(e),this.clearDragProperties(),this.shouldDestroyOnEndDragging&&this.destroy()},onDragCancel:()=>{this.dragging=!1,this.onDragCancel(),this.clearDragProperties()}}),this.addManagedElementListeners(this.getGui(),{mousedown:this.preventRangeExtension.bind(this)})}isDragging(){return this.dragging}getCellCtrl(){return this.cellCtrl}setCellCtrl(e){this.cellCtrl=e}getCellRange(){return this.cellRange}setCellRange(e){this.cellRange=e}getRangeStartRow(){return this.rangeStartRow}setRangeStartRow(e){this.rangeStartRow=e}getRangeEndRow(){return this.rangeEndRow}setRangeEndRow(e){this.rangeEndRow=e}getLastCellHovered(){return this.lastCellHovered}preventRangeExtension(e){e.stopPropagation()}onDragStart(e){[this.cellHoverListener]=this.addManagedElementListeners(this.ctrlsService.get("gridCtrl").getGui(),{mousemove:this.updateValuesOnMove.bind(this)}),document.body.classList.add(this.getDraggingCssClass())}getDraggingCssClass(){return`ag-dragging-${this.type===j_.FILL?"fill":"range"}-handle`}updateValuesOnMove(e){const t=this.mouseEventService.getCellPositionForEvent(e);!t||this.lastCellHovered&&this.cellPositionUtils.equals(t,this.lastCellHovered)||(this.lastCellHovered=t,this.changedCalculatedValues=!0)}clearDragProperties(){this.clearValues(),this.rangeService.autoScrollService.ensureCleared(),document.body.classList.remove(this.getDraggingCssClass())}getType(){return this.type}refresh(e){const t=this.getCellCtrl(),n=this.getGui(),r=Dn(this.rangeService.getCellRanges()),i=r.startRow,o=r.endRow;if(i&&o&&(this.rowPositionUtils.before(o,i)?(this.setRangeStartRow(o),this.setRangeEndRow(i)):(this.setRangeStartRow(i),this.setRangeEndRow(o))),t!==e||!Su(n)){this.setCellCtrl(e);const s=e.getComp().getParentOfValue();s&&s.appendChild(n)}this.setCellRange(r)}clearValues(){this.lastCellHovered=void 0,this.removeListeners()}removeListeners(){this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0)}destroy(){if(!this.shouldDestroyOnEndDragging&&this.isDragging()){Mn(this.getGui(),!1),this.shouldDestroyOnEndDragging=!0;return}this.shouldDestroyOnEndDragging=!1,super.destroy(),this.removeListeners();const e=this.getGui();e.parentElement&&e.parentElement.removeChild(e)}};function Jpi(e){const t=e.length;let n=0;if(t<=1)return e;for(let f=0;f<e.length;f++){const h=e[f],g=h.toString().split("e-");if(g.length>1){n=Math.max(n,parseInt(g[1],10));continue}Math.floor(h)!==h&&(n=Math.max(n,h.toString().split(".")[1].length))}let r=0,i=0,o=0,s=0,a=0;for(let f=0;f<t;f++)a=e[f],r+=f,i+=a,s+=f*f,o+=f*a;const l=(t*o-r*i)/(t*s-r*r),c=i/t-l*r/t,u=[];for(let f=0;f<=t;f++)u.push(parseFloat((f*l+c).toFixed(n)));return u}var emi=class extends xgt{constructor(){super('<div class="ag-fill-handle"></div>'),this.markedCells=[],this.cellValues=[],this.isUp=!1,this.isLeft=!1,this.isReduce=!1,this.type=j_.FILL}wireBeans(e){super.wireBeans(e),this.valueService=e.valueService,this.navigationService=e.navigationService,this.cellNavigationService=e.cellNavigationService,this.visibleColsService=e.visibleColsService}updateValuesOnMove(e){super.updateValuesOnMove(e),this.initialXY||(this.initialXY=this.mouseEventService.getNormalisedPosition(e));const{x:t,y:n}=this.initialXY,{x:r,y:i}=this.mouseEventService.getNormalisedPosition(e),o=Math.abs(t-r),s=Math.abs(n-i),a=this.getFillHandleDirection();let l;a==="xy"?l=o>s?"x":"y":l=a,l!==this.dragAxis&&(this.dragAxis=l,this.changedCalculatedValues=!0)}onDrag(e){if(!this.initialPosition){const n=this.getCellCtrl();if(!n)return;this.initialPosition=n.getCellPosition()}const t=this.getLastCellHovered();t&&this.markPathFrom(this.initialPosition,t)}onDragEnd(e){if(this.initialXY=null,!this.markedCells.length)return;const t=this.dragAxis==="x",n=this.getCellRange(),r=n.columns.length,i=this.getRangeStartRow(),o=this.getRangeEndRow();let s;if(!this.isUp&&!this.isLeft)s=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,columnStart:n.columns[0],rowEndIndex:t?o.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:t?o.rowPinned:this.lastCellMarked.rowPinned,columnEnd:t?this.lastCellMarked.column:n.columns[r-1]});else{const a=t?i:this.lastCellMarked;s=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,columnStart:t?this.lastCellMarked.column:n.columns[0],rowEndIndex:o.rowIndex,rowEndPinned:o.rowPinned,columnEnd:n.columns[r-1]})}s&&(this.eventService.dispatchEvent({type:"fillStart"}),this.handleValueChanged(n,s,e),this.rangeService.setCellRanges([s]),this.eventService.dispatchEvent({type:"fillEnd",initialRange:n,finalRange:s}))}onDragCancel(){this.initialXY=null,this.markedCells.length&&this.clearMarkedPath()}getFillHandleDirection(){var t;const e=(t=Yie(this.gos))==null?void 0:t.direction;return e?e!=="x"&&e!=="y"&&e!=="xy"?(rt("valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'."),"xy"):e:"xy"}handleValueChanged(e,t,n){var C;const r=this.rangeService.getRangeEndRow(e),i=this.rangeService.getRangeStartRow(e),o=this.rangeService.getRangeEndRow(t),s=this.rangeService.getRangeStartRow(t),a=this.dragAxis==="y";if(this.isReduce&&!((C=Yie(this.gos))!=null&&C.suppressClearOnFillReduction)){const y=a?e.columns:e.columns.filter(S=>t.columns.indexOf(S)<0),b=a?this.cellNavigationService.getRowBelow(o):s;b&&this.clearCellsInRange(b,r,y);return}const l=[],c=[],u=[],f=[];let h=!0,g=0;const p=()=>{l.length=0,c.length=0,u.length=0,f.length=0,g=0},m=(y,b)=>{let S=this.isUp?r:i,w=!1;for(a&&(h=!0,p());!w&&S;){const x=this.rowPositionUtils.getRowNode(S);if(!x)break;a&&y?v(l,y,x,()=>!this.rowPositionUtils.sameRow(S,this.isUp?i:r)):b&&(h=!0,p(),b.forEach(E=>v(l,E,x,()=>E!==(this.isLeft?e.columns[0]:Dn(e.columns))))),w=this.rowPositionUtils.sameRow(S,this.isUp?s:o),S=this.isUp?this.cellNavigationService.getRowAbove(S):this.cellNavigationService.getRowBelow(S)}},v=(y,b,S,w)=>{var R;let x,E=!1;if(h)x=this.valueService.getValue(b,S),c.push(x),u.push(this.valueService.getValue(b,S,void 0,!0)),f.push(this.valueService.formatValue(b,S,x)),h=w();else{const{value:O,fromUserFunction:T,sourceCol:M,sourceRowNode:_}=this.processValues({event:n,values:y,initialValues:c,initialNonAggregatedValues:u,initialFormattedValues:f,col:b,rowNode:S,idx:g++});if(x=O,b.isCellEditable(S)){const F=this.valueService.getValue(b,S);T||(M&&((R=M.getColDef())==null?void 0:R.useValueFormatterForExport)!==!1&&(x=this.valueService.formatValue(M,_,x)??x),b.getColDef().useValueParserForImport!==!1&&(x=this.valueService.parseValue(b,S,M?x:vm(x),F))),!T||F!==x?S.setDataValue(b,x,"rangeService"):E=!0}}E||y.push({value:x,column:b,rowNode:S})};if(a)e.columns.forEach(y=>{m(y)});else{const y=this.isLeft?[...t.columns].reverse():t.columns;m(void 0,y)}}clearCellsInRange(e,t,n){const r={startRow:e,endRow:t,columns:n,startColumn:n[0]};this.rangeService.clearCellRangeCellValues({cellRanges:[r]})}processValues(e){var g;const{event:t,values:n,initialValues:r,initialNonAggregatedValues:i,initialFormattedValues:o,col:s,rowNode:a,idx:l}=e,c=(g=Yie(this.gos))==null?void 0:g.setFillValue,u=this.dragAxis==="y";let f;if(u?f=this.isUp?"up":"down":f=this.isLeft?"left":"right",c){const p=this.gos.addGridCommonParams({event:t,values:n.map(({value:v})=>v),initialValues:r,initialNonAggregatedValues:i,initialFormattedValues:o,currentIndex:l,currentCellValue:this.valueService.getValue(s,a),direction:f,column:s,rowNode:a}),m=c(p);if(m!==!1)return{value:m,fromUserFunction:!0}}const h=!n.some(({value:p})=>{const m=parseFloat(p);return isNaN(m)||m.toString()!==p.toString()});if(t.altKey||!h){if(h&&r.length===1){const C=this.isUp||this.isLeft?-1:1;return{value:parseFloat(Dn(n).value)+1*C,fromUserFunction:!1}}const{value:p,column:m,rowNode:v}=n[l%n.length];return{value:p,fromUserFunction:!1,sourceCol:m,sourceRowNode:v}}return{value:Dn(Jpi(n.map(({value:p})=>Number(p)))),fromUserFunction:!1}}clearValues(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,super.clearValues()}clearMarkedPath(){this.markedCells.forEach(e=>{if(!e.isAlive())return;const t=e.getComp();t.addOrRemoveCssClass("ag-selection-fill-top",!1),t.addOrRemoveCssClass("ag-selection-fill-right",!1),t.addOrRemoveCssClass("ag-selection-fill-bottom",!1),t.addOrRemoveCssClass("ag-selection-fill-left",!1)}),this.markedCells.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1}clearCellValues(){this.cellValues.length=0}markPathFrom(e,t){if(this.clearMarkedPath(),this.clearCellValues(),this.dragAxis==="y"){if(this.rowPositionUtils.sameRow(t,e))return;const n=this.rowPositionUtils.before(t,e),r=this.getRangeStartRow(),i=this.getRangeEndRow();n&&(t.rowPinned==r.rowPinned&&t.rowIndex>=r.rowIndex||r.rowPinned!=i.rowPinned&&t.rowPinned==i.rowPinned&&t.rowIndex<=i.rowIndex)?(this.reduceVertical(e,t),this.isReduce=!0):(this.extendVertical(e,t,n),this.isReduce=!1)}else{const n=e.column,r=t.column;if(n===r)return;const i=this.visibleColsService.getAllCols(),o=i.indexOf(n),s=i.indexOf(r);s<=o&&s>=i.indexOf(this.getCellRange().columns[0])?(this.reduceHorizontal(e,t),this.isReduce=!0):(this.extendHorizontal(e,t,s<o),this.isReduce=!1)}this.lastCellMarked=t}extendVertical(e,t,n){const{navigationService:r,rangeService:i}=this;let o=e;do{const s=this.getCellRange(),a=s.columns.length;for(let l=0;l<a;l++){const c=s.columns[l],f={...{rowIndex:o.rowIndex,rowPinned:o.rowPinned},column:c},h=i.isCellInSpecificRange(f,s),g=this.rowPositionUtils.sameRow(o,e);if(n&&(this.isUp=!0),!g){const p=r.getCellByPosition(f);if(p){this.markedCells.push(p);const m=p.getComp();h||(m.addOrRemoveCssClass("ag-selection-fill-left",l===0),m.addOrRemoveCssClass("ag-selection-fill-right",l===a-1)),m.addOrRemoveCssClass(n?"ag-selection-fill-top":"ag-selection-fill-bottom",this.rowPositionUtils.sameRow(o,t))}}}if(this.rowPositionUtils.sameRow(o,t))break}while(o=n?this.cellNavigationService.getRowAbove(o):this.cellNavigationService.getRowBelow(o))}reduceVertical(e,t){let n=e;do{const r=this.getCellRange(),i=r.columns.length,o=this.rowPositionUtils.sameRow(n,t);for(let s=0;s<i;s++){const l={...{rowIndex:n.rowIndex,rowPinned:n.rowPinned},column:r.columns[s]},c=this.navigationService.getCellByPosition(l);c&&(this.markedCells.push(c),c.getComp().addOrRemoveCssClass("ag-selection-fill-bottom",this.rowPositionUtils.sameRow(n,t)))}if(o)break}while(n=this.cellNavigationService.getRowAbove(n))}extendHorizontal(e,t,n){const r=this.visibleColsService.getAllCols(),i=r.indexOf(n?t.column:e.column),o=r.indexOf(n?this.getCellRange().columns[0]:t.column),s=n?0:1,a=r.slice(i+s,o+s),l=this.getRangeStartRow(),c=this.getRangeEndRow();a.forEach(u=>{let f=l,h=!1;do{h=this.rowPositionUtils.sameRow(f,c);const g=this.navigationService.getCellByPosition({rowIndex:f.rowIndex,rowPinned:f.rowPinned,column:u});if(g){this.markedCells.push(g);const p=g.getComp();p.addOrRemoveCssClass("ag-selection-fill-top",this.rowPositionUtils.sameRow(f,l)),p.addOrRemoveCssClass("ag-selection-fill-bottom",this.rowPositionUtils.sameRow(f,c)),n?(this.isLeft=!0,p.addOrRemoveCssClass("ag-selection-fill-left",u===a[0])):p.addOrRemoveCssClass("ag-selection-fill-right",u===Dn(a))}f=this.cellNavigationService.getRowBelow(f)}while(!h)})}reduceHorizontal(e,t){const n=this.visibleColsService.getAllCols(),r=n.indexOf(t.column),i=n.indexOf(e.column),o=n.slice(r,i),s=this.getRangeStartRow(),a=this.getRangeEndRow();o.forEach(l=>{let c=s,u=!1;do{u=this.rowPositionUtils.sameRow(c,a);const f=this.navigationService.getCellByPosition({rowIndex:c.rowIndex,rowPinned:c.rowPinned,column:l});f&&(this.markedCells.push(f),f.getComp().addOrRemoveCssClass("ag-selection-fill-right",l===o[0])),c=this.cellNavigationService.getRowBelow(c)}while(!u)})}refresh(e){const t=this.rangeService.getCellRanges()[0];if(!t.startRow||!t.endRow){this.destroy();return}super.refresh(e)}},tmi=class extends xgt{constructor(){super('<div class="ag-range-handle"></div>'),this.type=j_.RANGE,this.rangeFixed=!1}onDrag(e){const t=this.getLastCellHovered();if(!t)return;const n=this.rangeService.getCellRanges(),r=Dn(n);this.rangeFixed||(this.fixRangeStartEnd(r),this.rangeFixed=!0),this.endPosition={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column},n.length===2&&n[0].type===gfe.DIMENSION&&r.type===gfe.VALUE&&!this.rowPositionUtils.sameRow(this.endPosition,this.rangeService.getRangeEndRow(r))&&this.rangeService.updateRangeEnd(n[0],{...this.endPosition,column:n[0].columns[0]},!0),this.rangeService.extendLatestRangeToCell(this.endPosition)}onDragEnd(e){const t=Dn(this.rangeService.getCellRanges());this.fixRangeStartEnd(t),this.rangeFixed=!1}onDragCancel(){this.rangeFixed=!1}fixRangeStartEnd(e){const t=this.rangeService.getRangeStartRow(e),n=this.rangeService.getRangeEndRow(e),r=e.columns[0];e.startRow=t,e.endRow=n,e.startColumn=r}},nmi=class extends ct{constructor(){super(...arguments),this.beanName="selectionHandleFactory"}createSelectionHandle(e){return this.createBean(e===j_.RANGE?new tmi:new emi)}},x6e="32.3.3",Egt={version:x6e,moduleName:`${rr.RangeSelectionModule}-core`,beans:[Zpi,nmi],dependantModules:[dp]},rmi={version:x6e,moduleName:`${rr.RangeSelectionModule}-api`,apiFunctions:{getCellRanges:Xpi,addCellRange:Qpi,clearRangeSelection:nFe,clearCellSelection:nFe},dependantModules:[Egt]},imi={version:x6e,moduleName:rr.RangeSelectionModule,dependantModules:[Egt,rmi]},_l=class{};_l.SELECT_ALL="__AG_SELECT_ALL__";_l.ADD_SELECTION_TO_FILTER="__AG_ADD_SELECTION_TO_FILTER__";var omi={loadingOoo:"Loading...",blanks:"(Blanks)",searchOoo:"Search...",selectAll:"(Select All)",selectAllSearchResults:"(Select All Search Results)",addCurrentSelectionToFilter:"Add current selection to filter",noMatches:"No matches."},smi=class extends wn{constructor(e){super(e.isGroup?`
|
||
<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>
|
||
</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}}=this;let{value:t}=this,n=null;typeof t=="function"?(this.valueFunction=t,n=this.valueFunction(),t=n):this.isTree?n=vm(t):n=this.getFormattedValue(e,t),this.setTooltipAndCellRendererParams(t,n),this.renderCell()}setTooltipAndCellRendererParams(e,t){const n=this.gos.get("tooltipShowMode")==="whenTruncated";if(this.params.showTooltips&&(!n||!this.params.cellRenderer)){const r=t??vm(e);let i;n&&(i=()=>{const o=this.eCheckbox.getGui().querySelector(".ag-label");return o?o.scrollWidth>o.clientWidth:!0}),this.setTooltip({newTooltipText:r,location:"setFilterValue",getColDef:()=>this.params.colDef,getColumn:()=>this.params.column,shouldDisplayTooltip:i})}this.cellRendererParams=this.gos.addGridCommonParams({value:e,valueFormatted:t,colDef:this.params.colDef,column:this.params.column,setTooltip:(r,i)=>{this.setTooltip({newTooltipText:r,getColDef:()=>this.params.colDef,getColumn:()=>this.params.column,location:"setFilterValue",shouldDisplayTooltip:i})}})}getTooltipParams(){const e=super.getTooltipParams();return e.location="setFilterValue",e.colDef=this.getComponentHolder(),this.isTree&&(e.level=this.depth),e}getFormattedValue(e,t){return this.valueService.formatValue(e,null,t,this.valueFormatter,!1)}renderCell(){const e=this.userComponentFactory.getSetFilterCellRendererDetails(this.params,this.cellRendererParams),t=e?e.newAgStackInstance():void 0;if(t==null){this.renderCellWithoutCellRenderer();return}t.then(n=>{n&&(this.cellRendererComponent=n,this.eCheckbox.setLabel(n.getGui()),this.destroyCellRendererComponent=()=>this.destroyBean(n))})}renderCellWithoutCellRenderer(){let e=(this.cellRendererParams.valueFormatted==null?this.cellRendererParams.value:this.cellRendererParams.valueFormatted)??this.translate("blanks");typeof e!="string"&&(rt(`Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects. See ${this.getFrameworkOverrides().getDocLink("filter-set-filter-list/#filter-value-types")}`),e=""),this.eCheckbox.setLabel(e),this.setupFixedAriaLabels(e)}getComponentHolder(){return this.params.column.getColDef()}},Rgt=class{getModelAsString(e,t){const{values:n}=e||t.getModel()||{},r=t.getValueModel();if(n==null||r==null)return"";const i=n.filter(a=>r.isKeyAvailable(a)),o=i.length,s=i.slice(0,10).map(a=>t.getFormattedValue(a));return`(${o}) ${s.join(",")}${o>10?",...":""}`}};function Sfe(e,t,n){let r=e;return r?(r=r.map(i=>vm(Da(i))),!t&&n&&r.some(i=>i==null)?Dn(r)==null?null:r.filter(i=>i!=null):r):null}var ami=class{constructor(e,t,n,r,i,o,s,a,l,c,u){this.rowModel=e,this.filterParams=t,this.createKey=n,this.caseFormat=r,this.funcColsService=i,this.valueService=o,this.treeDataOrGrouping=s,this.treeData=a,this.getDataPath=l,this.groupAllowUnbalanced=c,this.addManagedEventListeners=u}extractUniqueValuesAsync(e,t){return new xr(n=>{if(this.rowModel.isRowDataLoaded())n(this.extractUniqueValues(e,t));else{const[r]=this.addManagedEventListeners({rowCountReady:()=>{r==null||r(),n(this.extractUniqueValues(e,t))}})}})}extractUniqueValues(e,t){const n=new Map,r=this.extractExistingFormattedKeys(t),i=new Set,o=this.treeData&&!!this.getDataPath,s=this.funcColsService.getRowGroupColumns(),a=(l,c)=>{const u=this.caseFormat(l);if(!i.has(u)){i.add(u);let f=l,h=Da(c);const g=r==null?void 0:r.get(u);g!=null&&(f=g,h=t.get(g)),n.set(f,h)}};return this.rowModel.forEachLeafNode(l=>{if(!l.data||!e(l))return;if(this.treeDataOrGrouping){this.addValueForTreeDataOrGrouping(l,o,s,a);return}const c=this.getValue(l);c!=null&&Array.isArray(c)?(c.forEach(u=>{a(this.createKey(u,l),u)}),c.length===0&&a(null,null)):a(this.createKey(c,l),c)}),n}addValueForTreeDataOrGrouping(e,t,n,r){var s;let i;if(t){if((s=e.childrenAfterGroup)!=null&&s.length)return;i=this.getDataPath(e.data)}else i=n.map(a=>this.valueService.getKeyForNode(a,e)),i.push(this.getValue(e));const o=Sfe(i,t,this.groupAllowUnbalanced);r(this.createKey(o),o)}getValue(e){return this.filterParams.getValue(e)}extractExistingFormattedKeys(e){if(!e)return null;const t=new Map;return e.forEach((n,r)=>{t.set(this.caseFormat(r),r)}),t}},lmi=class{constructor({caseFormat:e}){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1,this.caseFormat=e}allFilteringKeys(){return this.filteringKeys}allFilteringKeysCaseFormatted(){return this.filteringKeysCaseFormatted}noAppliedFilteringKeys(){return this.hasNoAppliedFilteringKeys}setFilteringKeys(e){this.filteringKeys=new Set(e),this.hasNoAppliedFilteringKeys=!this.filteringKeys||this.filteringKeys.size===0,this.filteringKeysCaseFormatted=new Set,this.filteringKeys.forEach(t=>this.filteringKeysCaseFormatted.add(this.caseFormat(t)))}addFilteringKey(e){this.filteringKeys==null&&(this.filteringKeys=new Set,this.filteringKeysCaseFormatted=new Set),this.filteringKeys.add(e),this.filteringKeysCaseFormatted.add(this.caseFormat(e)),this.hasNoAppliedFilteringKeys&&(this.hasNoAppliedFilteringKeys=!1)}hasCaseFormattedFilteringKey(e){return this.filteringKeysCaseFormatted.has(this.caseFormat(e))}hasFilteringKey(e){return this.filteringKeys.has(e)}reset(){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1}},cmi=class{constructor(e,t,n,r){this.valueService=e,this.valueFormatter=t,this.formatter=n,this.column=r,this.displayedKeys=[]}updateDisplayedValuesToAllAvailable(e,t,n){this.displayedKeys=Array.from(n)}updateDisplayedValuesToMatchMiniFilter(e,t,n,r,i){this.displayedKeys=[];for(const o of n)if(o==null)i&&this.displayedKeys.push(o);else{const s=e(o),a=this.valueService.formatValue(this.column,null,s,this.valueFormatter,!1),l=this.formatter(a);r(l)&&this.displayedKeys.push(o)}}getDisplayedValueCount(){return this.displayedKeys.length}getDisplayedItem(e){return this.displayedKeys[e]}getSelectAllItem(){return _l.SELECT_ALL}getAddSelectionToFilterItem(){return _l.ADD_SELECTION_TO_FILTER}getDisplayedKeys(){return this.displayedKeys}forEachDisplayedKey(e){this.displayedKeys.forEach(e)}someDisplayedKey(e){return this.displayedKeys.some(e)}hasGroups(){return!1}refresh(){}},umi=e=>e?[String(e.getFullYear()),String(e.getMonth()+1),String(e.getDate())]:null,rFe=class{constructor(e,t,n,r){this.formatter=e,this.treeListPathGetter=t,this.treeListFormatter=n,this.treeDataOrGrouping=r,this.allDisplayedItemsTree=[],this.activeDisplayedItemsFlat=[],this.selectAllItem={depth:0,filterPasses:!0,available:!0,treeKey:_l.SELECT_ALL,children:this.allDisplayedItemsTree,expanded:!0,key:_l.SELECT_ALL,parentTreeKeys:[]},this.addSelectionToFilterItem={depth:0,filterPasses:!0,available:!0,treeKey:_l.ADD_SELECTION_TO_FILTER,expanded:!0,key:_l.ADD_SELECTION_TO_FILTER,parentTreeKeys:[]}}updateOnParamsChange(e){this.treeListFormatter=e}updateDisplayedValuesToAllAvailable(e,t,n,r){r==="reload"?this.generateItemTree(e,t,n):r==="otherFilter"?(this.updateAvailable(n),this.updateExpandAll()):r==="miniFilter"&&(this.resetFilter(),this.updateExpandAll()),this.flattenItems()}updateDisplayedValuesToMatchMiniFilter(e,t,n,r,i,o){o==="reload"?this.generateItemTree(e,t,n):o==="otherFilter"&&this.updateAvailable(n),this.updateFilter(r,i),this.updateExpandAll(),this.flattenItems()}generateItemTree(e,t,n){this.allDisplayedItemsTree=[],this.groupsExist=!1;const r=this.getTreeListPathGetter(e,n);for(const i of t){const o=e(i),s=r(o)??[null];s.length>1&&(this.groupsExist=!0);const a=n.has(i);let l=this.allDisplayedItemsTree,c,u=[];s.forEach((f,h)=>{l||(l=[],c.children=l),c=l.find(g=>{var p;return((p=g.treeKey)==null?void 0:p.toUpperCase())===(f==null?void 0:f.toUpperCase())}),c||(c={treeKey:f,depth:h,filterPasses:!0,expanded:!1,available:a,parentTreeKeys:u},h===s.length-1&&(c.key=i),l.push(c)),l=c.children,u=[...u,f]})}this.updateAvailable(n),this.selectAllItem.children=this.allDisplayedItemsTree,this.selectAllItem.expanded=!1}getTreeListPathGetter(e,t){if(this.treeListPathGetter)return this.treeListPathGetter;if(this.treeDataOrGrouping)return r=>r;let n=!1;for(const r of t){const i=e(r);if(i instanceof Date){n=!0;break}else if(i!=null)break}return n?umi:(rt("property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date."),r=>[String(r)])}flattenItems(){this.activeDisplayedItemsFlat=[];const e=t=>{t.forEach(n=>{!n.filterPasses||!n.available||(this.activeDisplayedItemsFlat.push(n),n.children&&n.expanded&&e(n.children))})};e(this.allDisplayedItemsTree)}resetFilter(){const e=t=>{t.children&&t.children.forEach(n=>{e(n)}),t.filterPasses=!0};this.allDisplayedItemsTree.forEach(t=>e(t))}updateFilter(e,t){const n=r=>r.available?r.treeKey==null?t:e(this.formatter(this.treeListFormatter?this.treeListFormatter(r.treeKey,r.depth,r.parentTreeKeys):r.treeKey)):!1;this.allDisplayedItemsTree.forEach(r=>this.recursiveItemCheck(r,!1,n,"filterPasses"))}getDisplayedValueCount(){return this.activeDisplayedItemsFlat.length}getDisplayedItem(e){return this.activeDisplayedItemsFlat[e]}getSelectAllItem(){return this.selectAllItem}getAddSelectionToFilterItem(){return this.addSelectionToFilterItem}getDisplayedKeys(){const e=[];return this.forEachDisplayedKey(t=>e.push(t)),e}forEachDisplayedKey(e){const t=(n,r)=>{n.children?(!n.expanded||!r)&&n.children.forEach(i=>{i.filterPasses&&t(i,!1)}):e(n.key)};this.activeDisplayedItemsFlat.forEach(n=>t(n,!0))}someDisplayedKey(e){const t=(n,r)=>{if(n.children){if(!n.expanded||!r)return n.children.some(i=>i.filterPasses?t(i,!1):!1)}else return e(n.key);return!1};return this.activeDisplayedItemsFlat.some(n=>t(n,!0))}hasGroups(){return this.groupsExist}refresh(){this.updateExpandAll(),this.flattenItems()}updateExpandAll(){const e=(n,r,i)=>{for(const o of n){if(!o.filterPasses||!o.available||!o.children)continue;if(r=r||!!o.expanded,i=i||!o.expanded,r&&i)return;const s=e(o.children,r,i);if(s===void 0)return;s?r=!0:i=!0}return r&&i?void 0:r},t=this.getSelectAllItem();t.expanded=e(t.children,!1,!1)}recursiveItemCheck(e,t,n,r){let i=!1;e.children&&e.children.forEach(s=>{const a=this.recursiveItemCheck(s,t||n(e),n,r);i=i||a});const o=t||i||n(e);return e[r]=o,o}updateAvailable(e){const t=n=>e.has(n.key);this.allDisplayedItemsTree.forEach(n=>this.recursiveItemCheck(n,!1,t,"available"))}},dmi=class{constructor(e){this.localEventService=new s6,this.miniFilterText=null,this.addCurrentSelectionToFilter=!1,this.providedValues=null,this.allValues=new Map,this.availableKeys=new Set,this.selectedKeys=new Set,this.initialised=!1;const{usingComplexObjects:t,funcColsService:n,valueService:r,treeDataTreeList:i,groupingTreeList:o,filterParams:s,gos:a,valueFormatter:l,addManagedEventListeners:c}=e,{column:u,colDef:f,textFormatter:h,doesRowPassOtherFilter:g,suppressSorting:p,comparator:m,rowModel:v,values:C,caseSensitive:y,treeList:b,treeListPathGetter:S,treeListFormatter:w}=s;this.filterParams=s,this.gos=a,this.setIsLoading=e.setIsLoading,this.translate=e.translate,this.caseFormat=e.caseFormat,this.createKey=e.createKey,this.usingComplexObjects=!!e.usingComplexObjects,this.formatter=h??(T=>T??null),this.doesRowPassOtherFilters=g,this.suppressSorting=p||!1,this.filteringKeys=new lmi({caseFormat:this.caseFormat});const x=m??f.comparator,E=!!i||!!o;this.compareByValue=!!(t&&x||E||b&&!S),E&&!x?this.entryComparator=this.createTreeDataOrGroupingComparator():b&&!S&&!x?this.entryComparator=([T,M],[_,F])=>ak(M,F):this.entryComparator=([T,M],[_,F])=>x(M,F),this.keyComparator=x??ak,this.caseSensitive=!!y;const R=a.get("getDataPath"),O=a.get("groupAllowUnbalanced");Li(a)&&(this.clientSideValuesExtractor=new ami(v,this.filterParams,this.createKey,this.caseFormat,n,r,E,!!i,R,O,c)),C==null?this.valuesType=2:(this.valuesType=Array.isArray(C)?0:1,this.providedValues=C),this.displayValueModel=b?new rFe(this.formatter,S,w,i||o):new cmi(r,l,this.formatter,u),this.updateAllValues().then(T=>this.resetSelectionState(T||[]))}addEventListener(e,t,n){this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService.removeEventListener(e,t,n)}updateOnParamsChange(e){return new xr(t=>{const{values:n,textFormatter:r,suppressSorting:i,treeListFormatter:o}=e,s=this.providedValues,a=this.suppressSorting;if(this.filterParams=e,this.formatter=r??(l=>l??null),this.suppressSorting=i||!1,this.providedValues=n??null,this.displayValueModel instanceof rFe&&this.displayValueModel.updateOnParamsChange(o),this.providedValues!==s||this.suppressSorting!==a){!n||n.length===0?(this.valuesType=2,this.providedValues=null):this.valuesType=Array.isArray(n)?0:1;const l=this.getModel();this.updateAllValues().then(()=>{this.setModel(l).then(()=>t())})}else t()})}refreshValues(){return new xr(e=>{this.allValuesPromise.then(()=>{const t=this.getModel();this.updateAllValues(),this.setModel(t).then(()=>e())})})}overrideValues(e){return new xr(t=>{this.allValuesPromise.then(()=>{this.valuesType=0,this.providedValues=e,this.refreshValues().then(()=>t())})})}refreshAfterAnyFilterChanged(){return this.showAvailableOnly()?this.allValuesPromise.then(e=>(this.updateAvailableKeys(e??[],"otherFilter"),!0)):xr.resolve(!1)}isInitialised(){return this.initialised}updateAllValues(){return this.allValuesPromise=new xr(e=>{switch(this.valuesType){case 2:this.getValuesFromRowsAsync(!1).then(t=>e(this.processAllValues(t)));break;case 0:{e(this.processAllValues(this.uniqueValues(this.validateProvidedValues(this.providedValues))));break}case 1:{this.setIsLoading(!0);const t=this.providedValues,{column:n,colDef:r}=this.filterParams,i=this.gos.addGridCommonParams({success:o=>{this.setIsLoading(!1),e(this.processAllValues(this.uniqueValues(this.validateProvidedValues(o))))},colDef:r,column:n});window.setTimeout(()=>t(i),0);break}default:throw new Error("Unrecognised valuesType")}}),this.allValuesPromise.then(e=>this.updateAvailableKeys(e||[],"reload")).then(()=>this.initialised=!0),this.allValuesPromise}processAllValues(e){const t=this.sortKeys(e);return this.allValues=e??new Map,t}validateProvidedValues(e){if(this.usingComplexObjects&&(e!=null&&e.length)){const t=e[0];t&&typeof t!="object"&&typeof t!="function"&&(this.createKey(t)==null?rt("Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See https://www.ag-grid.com/javascript-data-grid/filter-set-filter-list/#filter-value-types"):rt("Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?"))}return e}setValuesType(e){this.valuesType=e}getValuesType(){return this.valuesType}isKeyAvailable(e){return this.availableKeys.has(e)}showAvailableOnly(){return this.valuesType===2}updateAvailableKeys(e,t){const n=this.showAvailableOnly()?this.sortKeys(this.getValuesFromRows(!0)):e;this.availableKeys=new Set(n),this.localEventService.dispatchEvent({type:"availableValuesChanged"}),this.updateDisplayedValues(t,e)}sortKeys(e){const t=e??new Map;if(this.suppressSorting)return Array.from(t.keys());let n;return this.compareByValue?n=Array.from(t.entries()).sort(this.entryComparator).map(([r])=>r):n=Array.from(t.keys()).sort(this.keyComparator),this.filterParams.excelMode&&t.has(null)&&(n=n.filter(r=>r!=null),n.push(null)),n}getParamsForValuesFromRows(e=!1){if(!this.clientSideValuesExtractor)return Mr("Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values"),null;const t=r=>!e||this.doesRowPassOtherFilters(r),n=e&&!this.caseSensitive?this.allValues:void 0;return{predicate:t,existingValues:n}}getValuesFromRows(e=!1){const t=this.getParamsForValuesFromRows(e);return t?this.clientSideValuesExtractor.extractUniqueValues(t.predicate,t.existingValues):null}getValuesFromRowsAsync(e=!1){const t=this.getParamsForValuesFromRows(e);return t?this.clientSideValuesExtractor.extractUniqueValuesAsync(t.predicate,t.existingValues):xr.resolve(null)}setMiniFilter(e){return e=Da(e),this.miniFilterText===e?!1:(e===null&&this.setAddCurrentSelectionToFilter(!1),this.miniFilterText=e,this.updateDisplayedValues("miniFilter"),!0)}getMiniFilter(){return this.miniFilterText}updateDisplayedValues(e,t){if(e==="expansion"){this.displayValueModel.refresh();return}if(this.miniFilterText==null){this.displayValueModel.updateDisplayedValuesToAllAvailable(o=>this.getValue(o),t,this.availableKeys,e);return}const n=this.caseFormat(this.formatter(this.miniFilterText)||""),r=o=>o!=null&&this.caseFormat(o).indexOf(n)>=0,i=!!this.filterParams.excelMode&&r(this.translate("blanks"));this.displayValueModel.updateDisplayedValuesToMatchMiniFilter(o=>this.getValue(o),t,this.availableKeys,r,i,e)}getDisplayedValueCount(){return this.displayValueModel.getDisplayedValueCount()}getDisplayedItem(e){return this.displayValueModel.getDisplayedItem(e)}getSelectAllItem(){return this.displayValueModel.getSelectAllItem()}getAddSelectionToFilterItem(){return this.displayValueModel.getAddSelectionToFilterItem()}hasSelections(){return this.filterParams.defaultToNothingSelected?this.selectedKeys.size>0:this.allValues.size!==this.selectedKeys.size}getKeys(){return Array.from(this.allValues.keys())}getValues(){return Array.from(this.allValues.values())}getValue(e){return this.allValues.get(e)}setAddCurrentSelectionToFilter(e){this.addCurrentSelectionToFilter=e}isInWindowsExcelMode(){return this.filterParams.excelMode==="windows"}isAddCurrentSelectionToFilterChecked(){return this.isInWindowsExcelMode()&&this.addCurrentSelectionToFilter}showAddCurrentSelectionToFilter(){return this.isInWindowsExcelMode()&&zt(this.miniFilterText)&&this.miniFilterText.length>0}selectAllMatchingMiniFilter(e=!1){this.miniFilterText==null?this.selectedKeys=new Set(this.allValues.keys()):(e&&this.selectedKeys.clear(),this.displayValueModel.forEachDisplayedKey(t=>this.selectedKeys.add(t)))}deselectAllMatchingMiniFilter(){this.miniFilterText==null?this.selectedKeys.clear():this.displayValueModel.forEachDisplayedKey(e=>this.selectedKeys.delete(e))}selectKey(e){this.selectedKeys.add(e)}deselectKey(e){this.filterParams.excelMode&&this.isEverythingVisibleSelected()&&this.resetSelectionState(this.displayValueModel.getDisplayedKeys()),this.selectedKeys.delete(e)}isKeySelected(e){return this.selectedKeys.has(e)}isEverythingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(e=>!this.isKeySelected(e))}isNothingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(e=>this.isKeySelected(e))}getModel(){if(!this.hasSelections())return null;const e=this.isAddCurrentSelectionToFilterChecked()?this.filteringKeys.allFilteringKeys():null;if(e&&e.size>0){if(this.selectedKeys){const t=new Set([...Array.from(e),...Array.from(this.selectedKeys).filter(n=>!e.has(n))]);return Array.from(t)}return Array.from(e)}return Array.from(this.selectedKeys)}setModel(e){return this.allValuesPromise.then(t=>{if(e==null)this.resetSelectionState(t??[]);else{this.selectedKeys.clear();const n=new Map;this.allValues.forEach((r,i)=>{n.set(this.caseFormat(i),i)}),e.forEach(r=>{const i=this.caseFormat(Da(r)),o=n.get(i);o!==void 0&&this.selectKey(o)})}})}uniqueValues(e){const t=new Map,n=new Set;return(e??[]).forEach(r=>{const i=Da(r),o=this.createKey(i),s=this.caseFormat(o);n.has(s)||(n.add(s),t.set(o,i))}),t}resetSelectionState(e){this.filterParams.defaultToNothingSelected?this.selectedKeys.clear():this.selectedKeys=new Set(e)}hasGroups(){return this.displayValueModel.hasGroups()}createTreeDataOrGroupingComparator(){return([e,t],[n,r])=>{if(t==null)return r==null?0:-1;if(r==null)return 1;for(let i=0;i<t.length;i++){if(i>=r.length)return 1;const o=ak(t[i],r[i]);if(o!==0)return o}return 0}}setAppliedModelKeys(e){this.filteringKeys.setFilteringKeys(e)}addToAppliedModelKeys(e){this.filteringKeys.addFilteringKey(e)}getAppliedModelKeys(){return this.filteringKeys.allFilteringKeys()}getCaseFormattedAppliedModelKeys(){return this.filteringKeys.allFilteringKeysCaseFormatted()}hasAppliedModelKey(e){return this.filteringKeys.hasCaseFormattedFilteringKey(e)}hasAnyAppliedModelKey(){return!this.filteringKeys.noAppliedFilteringKeys()}},$gt=class extends kft{constructor(){super("setFilter"),this.eMiniFilter=Ot,this.eFilterLoading=Ot,this.eSetFilterList=Ot,this.eFilterNoMatches=Ot,this.valueModel=null,this.setFilterParams=null,this.virtualList=null,this.caseSensitive=!1,this.treeDataTreeList=!1,this.groupingTreeList=!1,this.hardRefreshVirtualList=!1,this.noValueFormatterSupplied=!1,this.filterModelFormatter=new Rgt,this.updateSetFilterOnParamsChange=e=>{this.setFilterParams=e,this.caseSensitive=!!e.caseSensitive;const t=e.keyCreator??e.colDef.keyCreator;this.setValueFormatter(e.valueFormatter,t,!!e.treeList,!!e.colDef.refData);const n=e.column.getId().startsWith(yy);this.treeDataTreeList=this.gos.get("treeData")&&!!e.treeList&&n,this.getDataPath=this.gos.get("getDataPath"),this.groupingTreeList=!!this.funcColsService.getRowGroupColumns().length&&!!e.treeList&&n,this.createKey=this.generateCreateKey(t,this.treeDataTreeList||this.groupingTreeList)}}wireBeans(e){super.wireBeans(e),this.funcColsService=e.funcColsService,this.valueService=e.valueService,this.dataTypeService=e.dataTypeService}postConstruct(){super.postConstruct()}updateUiVisibility(){}createBodyTemplate(){return`
|
||
<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>
|
||
</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 or Row Grouping is enabled.");return e?(n,r=null)=>{const i=this.getKeyCreatorParams(n,r);return Da(e(i))}:n=>Da(vm(n))}getFormattedValue(e){let t=this.valueModel.getValue(e);this.noValueFormatterSupplied&&(this.treeDataTreeList||this.groupingTreeList)&&Array.isArray(t)&&(t=Dn(t));const n=this.valueService.formatValue(this.setFilterParams.column,null,t,this.valueFormatter,!1);return n??vm(t)??this.translateForSetFilter("blanks")}applyExcelModeOptions(e){e.excelMode==="windows"?(e.buttons||(e.buttons=["apply","cancel"]),e.closeOnApply==null&&(e.closeOnApply=!0)):e.excelMode==="mac"&&(e.buttons||(e.buttons=["reset"]),e.applyMiniFilterWhileTyping==null&&(e.applyMiniFilterWhileTyping=!0),e.debounceMs==null&&(e.debounceMs=500)),e.excelMode&&e.defaultToNothingSelected&&(e.defaultToNothingSelected=!1,rt('The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.'))}addEventListenersForDataChanges(){this.isValuesTakenFromGrid()&&(this.addManagedEventListeners({cellValueChanged:e=>{this.setFilterParams&&e.column===this.setFilterParams.column&&this.syncAfterDataChange()}}),this.addManagedPropertyListeners(["treeData","getDataPath","groupAllowUnbalanced"],()=>{this.syncAfterDataChange()}))}syncAfterDataChange(){if(!this.valueModel)throw new Error("Value model has not been created.");return this.valueModel.refreshValues().then(()=>{this.checkAndRefreshVirtualList(),(!this.applyActive||this.areModelsEqual(this.getModel(),this.getModelFromUi()))&&this.onBtApply(!1,!0)})}setIsLoading(e){Mn(this.eFilterLoading,e),e||(this.hardRefreshVirtualList=!0)}initialiseFilterBodyUi(){this.initVirtualList(),this.initMiniFilter()}initVirtualList(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");const t=this.localeService.getLocaleTextFunc()("ariaFilterList","Filter List"),n=!!this.setFilterParams.treeList,r=this.virtualList=this.createBean(new v6e({cssIdentifier:"filter",ariaRole:n?"tree":"listbox",listName:t})),i=this.eSetFilterList;n&&i.classList.add("ag-set-filter-tree-list"),i&&i.appendChild(r.getGui());const{cellHeight:o}=this.setFilterParams;o!=null&&r.setRowHeight(o);const s=(l,c)=>this.createSetListItem(l,n,c);r.setComponentCreator(s);const a=(l,c)=>this.updateSetListItem(l,c);r.setComponentUpdater(a),this.createVirtualListModel(this.setFilterParams)}createVirtualListModel(e){var n;if(!this.valueModel)return;let t;e.suppressSelectAll?t=new fmi(this.valueModel):t=new hmi(this.valueModel,()=>this.isSelectAllSelected()),e.treeList&&(t=new gmi(t)),(n=this.virtualList)==null||n.setModel(t)}getSelectAllLabel(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");const e=this.valueModel.getMiniFilter()==null||!this.setFilterParams.excelMode?"selectAll":"selectAllSearchResults";return this.translateForSetFilter(e)}getAddSelectionToFilterLabel(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");return this.translateForSetFilter("addCurrentSelectionToFilter")}createSetListItem(e,t,n){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");const r=this.valueModel.hasGroups(),{isSelected:i,isExpanded:o}=this.isSelectedExpanded(e),{value:s,depth:a,isGroup:l,hasIndeterminateExpandState:c,selectedListener:u,expandedListener:f}=this.newSetListItemAttributes(e),h={focusWrapper:n,value:s,params:this.setFilterParams,translate:p=>this.translateForSetFilter(p),valueFormatter:this.valueFormatter,item:e,isSelected:i,isTree:t,depth:a,groupsExist:r,isGroup:l,isExpanded:o,hasIndeterminateExpandState:c},g=this.createBean(new smi(h));return g.addEventListener("selectionChanged",u),f&&g.addEventListener("expandedChanged",f),g}newSetTreeItemAttributes(e){var n,r,i,o;if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");const t=this.valueModel.hasGroups();return e.key===_l.SELECT_ALL?{value:()=>this.getSelectAllLabel(),isGroup:t,depth:e.depth,hasIndeterminateExpandState:!0,selectedListener:s=>this.onSelectAll(s.isSelected),expandedListener:s=>this.onExpandAll(s.item,s.isExpanded)}:e.key===_l.ADD_SELECTION_TO_FILTER?{value:()=>this.getAddSelectionToFilterLabel(),depth:e.depth,isGroup:!1,hasIndeterminateExpandState:!1,selectedListener:s=>{this.onAddCurrentSelectionToFilterChange(s.isSelected)}}:e.children?{value:((r=(n=this.setFilterParams).treeListFormatter)==null?void 0:r.call(n,e.treeKey,e.depth,e.parentTreeKeys))??e.treeKey,depth:e.depth,isGroup:!0,selectedListener:s=>this.onGroupItemSelected(s.item,s.isSelected),expandedListener:s=>this.onExpandedChanged(s.item,s.isExpanded)}:{value:((o=(i=this.setFilterParams).treeListFormatter)==null?void 0:o.call(i,e.treeKey,e.depth,e.parentTreeKeys))??e.treeKey,depth:e.depth,selectedListener:s=>this.onItemSelected(s.item.key,s.isSelected)}}newSetListItemAttributes(e){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");return this.isSetFilterModelTreeItem(e)?this.newSetTreeItemAttributes(e):e===_l.SELECT_ALL?{value:()=>this.getSelectAllLabel(),selectedListener:t=>this.onSelectAll(t.isSelected)}:e===_l.ADD_SELECTION_TO_FILTER?{value:()=>this.getAddSelectionToFilterLabel(),selectedListener:t=>{this.onAddCurrentSelectionToFilterChange(t.isSelected)}}:{value:this.valueModel.getValue(e),selectedListener:t=>this.onItemSelected(t.item,t.isSelected)}}updateSetListItem(e,t){const{isSelected:n,isExpanded:r}=this.isSelectedExpanded(e);t.refresh(e,n,r)}isSelectedExpanded(e){let t,n;return this.isSetFilterModelTreeItem(e)?(n=e.expanded,e.key===_l.SELECT_ALL?t=this.isSelectAllSelected():e.key===_l.ADD_SELECTION_TO_FILTER?t=this.valueModel.isAddCurrentSelectionToFilterChecked():e.children?t=this.areAllChildrenSelected(e):t=this.valueModel.isKeySelected(e.key)):e===_l.SELECT_ALL?t=this.isSelectAllSelected():e===_l.ADD_SELECTION_TO_FILTER?t=this.valueModel.isAddCurrentSelectionToFilterChecked():t=this.valueModel.isKeySelected(e),{isSelected:t,isExpanded:n}}isSetFilterModelTreeItem(e){return(e==null?void 0:e.treeKey)!==void 0}initMiniFilter(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");const{eMiniFilter:e,localeService:t}=this,n=t.getLocaleTextFunc();e.setDisplayed(!this.setFilterParams.suppressMiniFilter),e.setValue(this.valueModel.getMiniFilter()),e.onValueChange(()=>this.onMiniFilterInput()),e.setInputAriaLabel(n("ariaSearchFilterValues","Search filter values")),this.addManagedElementListeners(e.getInputElement(),{keydown:r=>this.onMiniFilterKeyDown(r)})}updateMiniFilter(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");const{eMiniFilter:e}=this;e.isDisplayed()!==!this.setFilterParams.suppressMiniFilter&&e.setDisplayed(!this.setFilterParams.suppressMiniFilter);const t=this.valueModel.getMiniFilter();e.getValue()!==t&&e.setValue(t)}afterGuiAttached(e){var n;if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");super.afterGuiAttached(e),this.resetExpansion(),this.refreshVirtualList();const{eMiniFilter:t}=this;t.setInputPlaceholder(this.translateForSetFilter("searchOoo")),(!e||!e.suppressFocus)&&(t.isDisplayed()?t.getFocusableElement().focus():(n=this.virtualList)==null||n.awaitStable(()=>{var r;return(r=this.virtualList)==null?void 0:r.focusRow(0)}))}afterGuiDetached(){var t,n;super.afterGuiDetached(),(t=this.setFilterParams)!=null&&t.excelMode&&this.resetMiniFilter();const e=this.getModel();((n=this.setFilterParams)!=null&&n.excelMode||!this.areModelsEqual(e,this.getModelFromUi()))&&(this.resetUiToActiveModel(e),this.showOrHideResults())}applyModel(e="api"){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");this.setFilterParams.excelMode&&e!=="rowDataUpdated"&&this.valueModel.isEverythingVisibleSelected()&&this.valueModel.selectAllMatchingMiniFilter();const t=this.valueModel.showAddCurrentSelectionToFilter()&&this.valueModel.isAddCurrentSelectionToFilterChecked();if(t&&!this.getModel())return!1;const n=super.applyModel(e),r=this.getModel();return r?(t||this.valueModel.setAppliedModelKeys(new Set),r.values.forEach(i=>{this.valueModel.addToAppliedModelKeys(i)})):t||this.valueModel.setAppliedModelKeys(null),n}isModelValid(e){return this.setFilterParams&&this.setFilterParams.excelMode?e==null||e.values.length>0:!0}doesFilterPass(e){if(!this.setFilterParams||!this.valueModel||!this.valueModel.getCaseFormattedAppliedModelKeys())return!0;if(!this.valueModel.hasAnyAppliedModelKey())return!1;const{node:t,data:n}=e;if(this.treeDataTreeList)return this.doesFilterPassForTreeData(t,n);if(this.groupingTreeList)return this.doesFilterPassForGrouping(t);const r=this.getValueFromNode(t);return r!=null&&Array.isArray(r)?r.length===0?this.valueModel.hasAppliedModelKey(null):r.some(i=>this.isInAppliedModel(this.createKey(i,t))):this.isInAppliedModel(this.createKey(r,t))}doesFilterPassForTreeData(e,t){var n;return(n=e.childrenAfterGroup)!=null&&n.length?!1:this.isInAppliedModel(this.createKey(Sfe(this.getDataPath(t),!0,this.gos.get("groupAllowUnbalanced"))))}doesFilterPassForGrouping(e){const t=this.funcColsService.getRowGroupColumns().map(n=>this.valueService.getKeyForNode(n,e));return t.push(this.getValueFromNode(e)),this.isInAppliedModel(this.createKey(Sfe(t,!1,this.gos.get("groupAllowUnbalanced"))))}isInAppliedModel(e){return this.valueModel.hasAppliedModelKey(e)}getValueFromNode(e){return this.setFilterParams.getValue(e)}getKeyCreatorParams(e,t=null){return{value:e,colDef:this.setFilterParams.colDef,column:this.setFilterParams.column,node:t,data:t==null?void 0:t.data,api:this.setFilterParams.api,context:this.setFilterParams.context}}onNewRowsLoaded(){this.isValuesTakenFromGrid()&&this.syncAfterDataChange()}isValuesTakenFromGrid(){return this.valueModel?this.valueModel.getValuesType()===2:!1}setFilterValues(e){if(!this.valueModel)throw new Error("Value model has not been created.");this.valueModel.overrideValues(e).then(()=>{this.checkAndRefreshVirtualList(),this.onUiChanged()})}resetFilterValues(){if(!this.valueModel)throw new Error("Value model has not been created.");this.valueModel.setValuesType(2),this.syncAfterDataChange()}refreshFilterValues(){if(!this.valueModel)throw new Error("Value model has not been created.");this.valueModel.isInitialised()&&this.valueModel.refreshValues().then(()=>{this.hardRefreshVirtualList=!0,this.checkAndRefreshVirtualList(),this.onUiChanged()})}onAnyFilterChanged(){setTimeout(()=>{if(this.isAlive()){if(!this.valueModel)throw new Error("Value model has not been created.");this.valueModel.refreshAfterAnyFilterChanged().then(e=>{e&&(this.checkAndRefreshVirtualList(),this.showOrHideResults())})}},0)}onMiniFilterInput(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");if(!this.valueModel.setMiniFilter(this.eMiniFilter.getValue()))return;const{applyMiniFilterWhileTyping:e,readOnly:t}=this.setFilterParams||{};!t&&e?this.filterOnAllVisibleValues(!1):this.updateUiAfterMiniFilterChange()}updateUiAfterMiniFilterChange(){if(!this.setFilterParams)throw new Error("Set filter params have not been provided.");if(!this.valueModel)throw new Error("Value model has not been created.");const{excelMode:e,readOnly:t}=this.setFilterParams||{};e==null||t?this.checkAndRefreshVirtualList():this.valueModel.getMiniFilter()==null?this.resetUiToActiveModel(this.getModel()):(this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged()),this.showOrHideResults()}showOrHideResults(){if(!this.valueModel)throw new Error("Value model has not been created.");const e=this.valueModel.getMiniFilter()!=null&&this.valueModel.getDisplayedValueCount()<1;Mn(this.eFilterNoMatches,e),Mn(this.eSetFilterList,!e)}resetMiniFilter(){var e;this.eMiniFilter.setValue(null,!0),(e=this.valueModel)==null||e.setMiniFilter(null)}resetUiToActiveModel(e,t){this.setModelAndRefresh(e==null?null:e.values).then(()=>{this.onUiChanged(!1,"prevent"),t==null||t()})}handleCancelEnd(e){this.setMiniFilter(null),super.handleCancelEnd(e)}onMiniFilterKeyDown(e){const{excelMode:t,readOnly:n}=this.setFilterParams||{};e.key===Je.ENTER&&!t&&!n&&this.filterOnAllVisibleValues()}filterOnAllVisibleValues(e=!0){const{readOnly:t}=this.setFilterParams||{};if(!this.valueModel)throw new Error("Value model has not been created.");if(t)throw new Error("Unable to filter in readOnly mode.");this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged(!1,e?"immediately":"debounce"),this.showOrHideResults()}focusRowIfAlive(e){e!=null&&window.setTimeout(()=>{if(!this.virtualList)throw new Error("Virtual list has not been created.");this.isAlive()&&this.virtualList.focusRow(e)},0)}onSelectAll(e){if(!this.valueModel)throw new Error("Value model has not been created.");if(!this.virtualList)throw new Error("Virtual list has not been created.");e?this.valueModel.selectAllMatchingMiniFilter():this.valueModel.deselectAllMatchingMiniFilter(),this.refreshAfterSelection()}onGroupItemSelected(e,t){const n=r=>{r.children?r.children.forEach(i=>n(i)):this.selectItem(r.key,t)};n(e),this.refreshAfterSelection()}onItemSelected(e,t){if(!this.valueModel)throw new Error("Value model has not been created.");if(!this.virtualList)throw new Error("Virtual list has not been created.");this.selectItem(e,t),this.refreshAfterSelection()}selectItem(e,t){t?this.valueModel.selectKey(e):this.valueModel.deselectKey(e)}onExpandAll(e,t){const n=r=>{r.filterPasses&&r.available&&r.children&&(r.children.forEach(i=>n(i)),r.expanded=t)};n(e),this.refreshAfterExpansion()}onExpandedChanged(e,t){e.expanded=t,this.refreshAfterExpansion()}refreshAfterExpansion(){const e=this.virtualList.getLastFocusedRow();this.valueModel.updateDisplayedValues("expansion"),this.checkAndRefreshVirtualList(),this.focusRowIfAlive(e)}refreshAfterSelection(){const e=this.virtualList.getLastFocusedRow();this.checkAndRefreshVirtualList(),this.onUiChanged(),this.focusRowIfAlive(e)}setMiniFilter(e){this.eMiniFilter.setValue(e),this.onMiniFilterInput()}getMiniFilter(){return this.valueModel?this.valueModel.getMiniFilter():null}checkAndRefreshVirtualList(){if(!this.virtualList)throw new Error("Virtual list has not been created.");this.virtualList.refresh(!this.hardRefreshVirtualList),this.hardRefreshVirtualList&&(this.hardRefreshVirtualList=!1)}getFilterKeys(){return this.valueModel?this.valueModel.getKeys():[]}getFilterValues(){return this.valueModel?this.valueModel.getValues():[]}getValues(){return this.getFilterKeys()}refreshVirtualList(){this.setFilterParams&&this.setFilterParams.refreshValuesOnOpen?this.refreshFilterValues():this.checkAndRefreshVirtualList()}translateForSetFilter(e){return this.localeService.getLocaleTextFunc()(e,omi[e])}isSelectAllSelected(){if(!this.setFilterParams||!this.valueModel)return!1;if(this.setFilterParams.defaultToNothingSelected){if(this.valueModel.hasSelections()&&this.valueModel.isEverythingVisibleSelected())return!0;if(this.valueModel.isNothingVisibleSelected())return!1}else{if(this.valueModel.hasSelections()&&this.valueModel.isNothingVisibleSelected())return!1;if(this.valueModel.isEverythingVisibleSelected())return!0}}areAllChildrenSelected(e){const t=n=>{if(n.children){let r=!1,i=!1;return n.children.some(s=>{if(!s.filterPasses||!s.available)return!1;const a=t(s);return a===void 0?!0:(a?r=!0:i=!0,r&&i)})?void 0:r}else return this.valueModel.isKeySelected(n.key)};return this.setFilterParams.defaultToNothingSelected?this.valueModel.hasSelections()&&t(e):t(e)}destroy(){this.virtualList!=null&&(this.virtualList.destroy(),this.virtualList=null),super.destroy()}caseFormat(e){return e==null||typeof e!="string"||this.caseSensitive?e:e.toUpperCase()}resetExpansion(){var t,n;if(!((t=this.setFilterParams)!=null&&t.treeList))return;const e=(n=this.valueModel)==null?void 0:n.getSelectAllItem();if(this.isSetFilterModelTreeItem(e)){const r=i=>{i.children&&(i.children.forEach(o=>r(o)),i.expanded=!1)};r(e),this.valueModel.updateDisplayedValues("expansion")}}getModelAsString(e){return this.filterModelFormatter.getModelAsString(e,this)}getPositionableElement(){return this.eSetFilterList}},fmi=class{constructor(e){this.model=e}getRowCount(){return this.model.getDisplayedValueCount()}getRow(e){return this.model.getDisplayedItem(e)}areRowsEqual(e,t){return e===t}},hmi=class{constructor(e,t){this.model=e,this.isSelectAllSelected=t}getRowCount(){const t=this.model.showAddCurrentSelectionToFilter()?2:1;return this.model.getDisplayedValueCount()+t}getRow(e){if(e===0)return this.model.getSelectAllItem();const t=this.model.showAddCurrentSelectionToFilter(),n=t?2:1;return e===1&&t?this.model.getAddSelectionToFilterItem():this.model.getDisplayedItem(e-n)}areRowsEqual(e,t){return e===t}},gmi=class{constructor(e){this.model=e}getRowCount(){return this.model.getRowCount()}getRow(e){return this.model.getRow(e)}areRowsEqual(e,t){return e==null&&t==null?!0:e!=null&&t!=null&&e.treeKey===t.treeKey&&e.depth===t.depth}},pmi=class extends wn{constructor(){super(`
|
||
<div class="ag-floating-filter-input ag-set-floating-filter-input" role="presentation">
|
||
<ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
|
||
</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 getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData");return}const n=a=>{this.loadRowDataVersion===e&&this.comp.setRowData(a)},r={node:this.params.node,data:this.params.node.data,successCallback:n,context:this.gos.getGridCommonParams().context};t(r)}refresh(){switch(this.refreshStrategy){case"nothing":return!0;case"everything":return!1}return this.loadRowData(),!0}},Cmi=class{constructor(e){this.parentWrapper=e}wrap(e,t,n,r){return this.parentWrapper.wrap(e,t,n,r)}},ymi=class extends wn{constructor(){super(...arguments),this.eDetailGrid=Ot}wireBeans(e){this.context=e.context}init(e){this.params=e,this.selectAndSetTemplate();const t={addOrRemoveCssClass:(n,r)=>this.addOrRemoveCssClass(n,r),addOrRemoveDetailGridCssClass:(n,r)=>this.eDetailGrid.classList.toggle(n,r),setDetailGrid:n=>this.setDetailGrid(n),setRowData:n=>this.setRowData(n),getGui:()=>this.eDetailGrid};this.ctrl=this.createManagedBean(new Tgt),this.ctrl.init(t,e)}refresh(){return this.ctrl&&this.ctrl.refresh()}destroy(){super.destroy()}selectAndSetTemplate(){if(this.params.pinned){this.setTemplate('<div class="ag-details-row"></div>');return}const e=()=>{this.setTemplate(`<div class="ag-details-row" role="gridcell">
|
||
<div data-ref="eDetailGrid" class="ag-details-grid" role="presentation"></div>
|
||
</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">
|
||
<span data-ref="eLabel"></span>:
|
||
<span data-ref="eValue" class="ag-status-name-value-value"></span>
|
||
</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">
|
||
<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>
|
||
</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})}onRowSelectionChanged(){const e=this.selectionService.getSelectionCount();if(e<0){this.setValue("?"),this.setDisplayed(!0);return}const t=this.localeService.getLocaleTextFunc(),n=t("thousandSeparator",","),r=t("decimalSeparator",".");this.setValue(Sy(e,n,r)),this.setDisplayed(e>0)}init(){}refresh(){return!0}destroy(){super.destroy()}},Pmi=class extends U_{wireBeans(e){this.rowModel=e.rowModel}postConstruct(){if(!Li(this.gos)){rt("agTotalAndFilteredRowCountComponent should only be used with the client side row model.");return}this.setLabel("totalAndFilteredRows","Rows"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-and-filtered-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)}),this.onDataChanged()}onDataChanged(){const e=this.localeService.getLocaleTextFunc(),t=e("thousandSeparator",","),n=e("decimalSeparator","."),r=Sy(this.getFilteredRowCountValue(),t,n),i=Sy(this.getTotalRowCount(),t,n);if(r===i)this.setValue(r);else{const o=this.localeService.getLocaleTextFunc();this.setValue(`${r} ${o("of","of")} ${i}`)}}getFilteredRowCountValue(){let e=0;return this.rowModel.forEachNodeAfterFilter(t=>{t.group||e++}),e}getTotalRowCount(){let e=0;return this.rowModel.forEachNode(t=>{t.group||e++}),e}init(){}refresh(){return!0}destroy(){super.destroy()}},_mi=class extends U_{wireBeans(e){this.rowModel=e.rowModel}postConstruct(){if(this.setLabel("totalRows","Total Rows"),!Li(this.gos)){rt("agTotalRowCountComponent should only be used with the client side row model.");return}this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)}),this.onDataChanged()}onDataChanged(){const e=this.localeService.getLocaleTextFunc(),t=e("thousandSeparator",","),n=e("decimalSeparator",".");this.setValue(Sy(this.getRowCountValue(),t,n))}getRowCountValue(){let e=0;return this.rowModel.forEachLeafNode(()=>e+=1),e}init(){}refresh(){return!0}destroy(){super.destroy()}};function Ami(e,t){const n=e.statusBarService.getStatusPanel(t);return gC(n)}var Dmi=class extends wn{constructor(){super(`<div class="ag-status-bar">
|
||
<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>
|
||
</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,this.processGroupHeaderCallback=l,this.processRowGroupCallback=c}prepare(e){this.groupColumns=e.filter(t=>!!t.getColDef().showRowGroup)}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e,t,n,r,i){const s=(!this.gos.get("groupHideOpenParents")||i.footer)&&this.shouldRenderGroupSummaryCell(i,e,t)?this.createValueForGroupNode(e,i):this.valueService.getValue(e,i);return this.processCell({accumulatedRowIndex:n,rowNode:i,column:e,value:s,processCellCallback:this.processCellCallback,type:r})}shouldRenderGroupSummaryCell(e,t,n){var s;if(!(e&&e.group))return!1;if(this.groupColumns.indexOf(t)!==-1){const a=(s=e.groupData)==null?void 0:s[t.getId()],l=this.gos.get("suppressGroupMaintainValueType");if(l&&a!=null||!l&&a!==void 0||ml(this.gos)&&e.group)return!0;if(e.footer&&e.level===-1){const c=t.getColDef();return c==null||c.showRowGroup===!0||c.showRowGroup===this.funcColsService.getRowGroupColumns()[0].getId()}}const o=HQ(this.gos,this.columnModel.isPivotMode());return n===0&&o}getHeaderName(e,t){return e?e(this.gos.addGridCommonParams({column:t})):this.columnNameService.getDisplayNameForColumn(t,"csv",!0)}createValueForGroupNode(e,t){if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gos.addGridCommonParams({column:e,node:t}));const n=this.gos.get("treeData"),r=this.gos.get("suppressGroupMaintainValueType"),i=l=>{var u;if(n||r)return l.key;const c=(u=l.groupData)==null?void 0:u[e.getId()];return!c||!l.rowGroupColumn||l.rowGroupColumn.getColDef().useValueFormatterForExport===!1?c:this.valueService.formatValue(l.rowGroupColumn,l,c)??c},o=t.footer,s=[i(t)];if(!M3e(this.gos))for(;t.parent;)t=t.parent,s.push(i(t));const a=s.reverse().join(" -> ");return o?`Total ${a}`:a}processCell(e){const{accumulatedRowIndex:t,rowNode:n,column:r,value:i,processCellCallback:o,type:s}=e;return o?{value:o(this.gos.addGridCommonParams({accumulatedRowIndex:t,column:r,node:n,value:i,type:s,parseValue:a=>this.valueService.parseValue(r,n,a,this.valueService.getValue(r,n)),formatValue:a=>this.valueService.formatValue(r,n,a)??a}))??""}:r.getColDef().useValueFormatterForExport!==!1?{value:i??"",valueFormatted:this.valueService.formatValue(r,n,i)}:{value:i??""}}},Hmi=class{static download(e,t){const n=document.defaultView||window;if(!n){rt("There is no `window` associated with the current `document`");return}const r=document.createElement("a"),i=n.URL.createObjectURL(t);r.setAttribute("href",i),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(r),n.setTimeout(()=>{n.URL.revokeObjectURL(i)},0)}},iFe=`\r
|
||
`,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){var C;const i=t.shouldRowBeSkipped||(()=>!1),o=this.gos.get("groupRemoveSingleChildren"),s=this.gos.get("groupRemoveLowestSingleChildren"),l=t.rowPositions!=null||!!t.onlySelected,c=this.gos.get("groupHideOpenParents")&&!l,u=this.columnModel.isPivotMode()?r.leafGroup:!r.group,f=!!r.footer,h=s&&r.leafGroup,g=r.allChildrenCount===1&&((C=r.childrenAfterGroup)==null?void 0:C.length)===1&&(o||h);if(!u&&!f&&(t.skipRowGroups||g||c)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&r.rowPinned==="top"||t.skipPinnedBottom&&r.rowPinned==="bottom"||r.level===-1&&!u&&!f||i(this.gos.addGridCommonParams({node:r})))return;const v=e.onNewBodyRow(r);if(n.forEach((y,b)=>{v.onColumn(y,b,r)}),t.getCustomContentBelowRow){const y=t.getCustomContentBelowRow(this.gos.addGridCommonParams({node:r}));y&&e.addCustomContent(y)}}appendContent(e){return t=>{const n=e.appendContent;return n&&t.addCustomContent(n),t}}prependContent(e){return t=>{const n=e.prependContent;return n&&t.addCustomContent(n),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return n=>{if(!e.skipColumnGroupHeaders){const r=new Zdt,i=this.visibleColsService.createGroups({columns:t,idCreator:r,pinned:null,isStandaloneStructure:!0});this.recursivelyAddHeaderGroups(i,n,e.processGroupHeaderCallback)}return n}}exportHeaders(e,t){return n=>{if(!e.skipColumnHeaders){const r=n.onNewHeaderRow();t.forEach((i,o)=>{r.onColumn(i,o,void 0)})}return n}}processPinnedTopRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="top").sort((i,o)=>i.rowIndex-o.rowIndex).map(i=>this.pinnedRowModel.getPinnedTopRow(i.rowIndex)).forEach(r):this.pinnedRowModel.forEachPinnedRow("top",r),n}}processRows(e,t){return n=>{const r=this.rowModel,i=Li(this.gos),o=ml(this.gos),s=!i&&e.onlySelected,a=this.processRow.bind(this,n,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(c=>c.rowPinned==null).sort((c,u)=>c.rowIndex-u.rowIndex).map(c=>r.getRow(c.rowIndex)).forEach(a);else if(this.columnModel.isPivotMode())i?r.forEachPivotNode(a,!0):o?r.forEachNodeAfterFilterAndSort(a,!0):r.forEachNode(a);else if(e.onlySelectedAllPages||s){const c=this.selectionService.getSelectedNodes();this.replicateSortedOrder(c),c.forEach(a)}else l==="all"?r.forEachNode(a):i||o?r.forEachNodeAfterFilterAndSort(a,!0):r.forEachNode(a);return n}}replicateSortedOrder(e){const t=this.sortController.getSortOptions(),n=(r,i)=>{var o,s;return r.rowIndex!=null&&i.rowIndex!=null?r.rowIndex-i.rowIndex:r.level===i.level?((o=r.parent)==null?void 0:o.id)===((s=i.parent)==null?void 0:s.id)?this.rowNodeSorter.compareRowNodes(t,{rowNode:r,currentPos:r.rowIndex??-1},{rowNode:i,currentPos:i.rowIndex??-1}):n(r.parent,i.parent):r.level>i.level?n(r.parent,i):n(r,i.parent)};e.sort(n)}processPinnedBottomRows(e,t){return n=>{const r=this.processRow.bind(this,n,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="bottom").sort((i,o)=>i.rowIndex-o.rowIndex).map(i=>this.pinnedRowModel.getPinnedBottomRow(i.rowIndex)).forEach(r):this.pinnedRowModel.forEachPinnedRow("bottom",r),n}}getColumnsToExport(e=!1,t=!1,n){const r=this.columnModel.isPivotMode();if(n&&n.length)return this.columnModel.getColsForKeys(n);const i=this.gos.get("treeData");let o=[];return e&&!r?o=this.columnModel.getCols():o=this.visibleColsService.getAllCols(),t&&!i&&(o=o.filter(s=>tfe(s)||k_(s))),o}recursivelyAddHeaderGroups(e,t,n){const r=[];e.forEach(i=>{const o=i;o.getChildren&&o.getChildren().forEach(s=>r.push(s))}),e.length>0&&Ss(e[0])&&this.doAddHeaderHeader(t,e,n),r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)}doAddHeaderHeader(e,t,n){const r=e.onNewHeaderGroupingRow();let i=0;t.forEach(o=>{const s=o;let a;n?a=n(this.gos.addGridCommonParams({columnGroup:s})):a=this.columnNameService.getDisplayNameForColumnGroup(s,"header");const l=s.getLeafColumns().reduce((c,u,f,h)=>{let g=Dn(c);return u.getColumnGroupShow()==="open"?(!g||g[1]!=null)&&(g=[f],c.push(g)):g&&g[1]==null&&(g[1]=f-1),f===h.length-1&&g&&g[1]==null&&(g[1]=f),c},[]);r.onColumn(s,a||"",i++,s.getLeafColumns().length-1,l)})}},O6e="32.3.3",Pgt={version:O6e,moduleName:`${rr.CsvExportModule}-core`,beans:[Vmi,Umi]},qmi={version:O6e,moduleName:`${rr.CsvExportModule}-api`,apiFunctions:{getDataAsCsv:Gmi,exportDataAsCsv:Wmi},dependantModules:[Pgt]},Kmi={version:O6e,moduleName:rr.CsvExportModule,dependantModules:[Pgt,qmi]};function Ymi(e,t){var n;(n=e.clipboardService)==null||n.copyToClipboard(t)}function Xmi(e,t){var n;(n=e.clipboardService)==null||n.cutToClipboard(t)}function Qmi(e,t){var n;(n=e.clipboardService)==null||n.copySelectedRowsToClipboard(t)}function Zmi(e,t){var n;(n=e.clipboardService)==null||n.copySelectedRangeToClipboard(t)}function Jmi(e){var t;(t=e.clipboardService)==null||t.copyRangeDown()}function e1i(e){var t;(t=e.clipboardService)==null||t.pasteFromClipboard()}var goe="paste",poe="dragCopy",oFe="clipboard",sFe=e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,t1i=class _gt extends ct{constructor(){super(...arguments),this.beanName="clipboardService",this.lastPasteOperationTime=0,this.navigatorApiFailed=!1}wireBeans(t){this.csvCreator=t.csvCreator,this.selectionService=t.selectionService,this.rowModel=t.rowModel,this.ctrlsService=t.ctrlsService,this.valueService=t.valueService,this.focusService=t.focusService,this.rowRenderer=t.rowRenderer,this.visibleColsService=t.visibleColsService,this.funcColsService=t.funcColsService,this.cellNavigationService=t.cellNavigationService,this.cellPositionUtils=t.cellPositionUtils,this.rowPositionUtils=t.rowPositionUtils,this.rangeService=t.rangeService}postConstruct(){Li(this.gos)&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady(this,t=>{this.gridCtrl=t.gridCtrl})}pasteFromClipboard(){!this.gos.get("suppressClipboardApi")&&!this.navigatorApiFailed&&navigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch(n=>{rt(`${n}
|
||
${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===`
|
||
`;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===`
|
||
`&&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,includeGroupHeaders:i}=t;r==null&&(r=this.gos.get("copyHeadersToClipboard")),i==null&&(i=this.gos.get("copyGroupHeadersToClipboard"));const o={includeHeaders:r,includeGroupHeaders:i},s=this.gos.get("rowSelection"),a=this.gos.get("cellSelection");let l=null;this.shouldCopyCells(a,s)?(this.copySelectedRangeToClipboard(o),l=0):this.shouldCopyRows(s)?(this.copySelectedRowsToClipboard(o),l=1):this.focusService.isAnyCellFocused()&&(this.copyFocusedCellToClipboard(o),l=2),n&&l!==null&&this.clearCellsAfterCopy(l)}shouldCopyCells(t,n){if(!this.rangeService||this.rangeService.isEmpty())return!1;if(t)return!(typeof n=="object"&&n.copySelectedRows&&!this.selectionService.isEmpty());{const r=this.gos.get("suppressCopySingleCellRanges");return!(!this.rangeService.isMoreThanOneCell()&&r)}}shouldCopyRows(t){return this.selectionService.isEmpty()?!1:t&&typeof t!="string"?t.copySelectedRows??!1:!this.gos.get("suppressCopyRowsToClipboard")}clearCellsAfterCopy(t){if(this.eventService.dispatchEvent({type:"keyShortcutChangedCellStart"}),t===0)this.rangeService.clearCellRangeCellValues({cellEventSource:"clipboardService"});else if(t===1)this.clearSelectedRows();else{const n=this.focusService.getFocusedCell();if(n==null)return;const r=this.rowPositionUtils.getRowNode(n);r&&this.clearCellValue(r,n.column)}this.eventService.dispatchEvent({type:"keyShortcutChangedCellEnd"})}clearSelectedRows(){const t=this.selectionService.getSelectedNodes(),n=this.visibleColsService.getAllCols();for(const r of t)for(const i of n)this.clearCellValue(r,i)}clearCellValue(t,n){if(!n.isCellEditable(t))return;const r=this.valueService.getDeleteValue(n,t);t.setDataValue(n,r,"clipboardService")}iterateActiveRanges(t,n,r){if(!this.rangeService||this.rangeService.isEmpty())return;const i=this.rangeService.getCellRanges();t?this.iterateActiveRange(i[0],n,r,!0):i.forEach((o,s)=>this.iterateActiveRange(o,n,r,s===i.length-1))}iterateActiveRange(t,n,r,i){if(!this.rangeService)return;let o=this.rangeService.getRangeStartRow(t);const s=this.rangeService.getRangeEndRow(t);r&&t.columns&&r(t.columns);let a=0,l=!1;for(;!l&&o!=null;){const c=this.rowPositionUtils.getRowNode(o);l=this.rowPositionUtils.sameRow(o,s),n(o,c,t.columns,a++,l&&i),o=this.cellNavigationService.getRowBelow(o)}}copySelectedRangeToClipboard(t={}){if(!this.rangeService||this.rangeService.isEmpty())return;const n=this.rangeService.areAllRangesAbleToMerge(),{data:r,cellsToFlash:i}=n?this.buildDataFromMergedRanges(this.rangeService,t):this.buildDataFromRanges(this.rangeService,t);this.copyDataToClipboard(r),this.dispatchFlashCells(i)}buildDataFromMergedRanges(t,n){const r=new Set,i=t.getCellRanges(),o=new Map,s=[],a={};i.forEach(f=>{f.columns.forEach(p=>r.add(p));const{rowPositions:h,cellsToFlash:g}=this.getRangeRowPositionsAndCellsToFlash(t,f);h.forEach(p=>{const m=`${p.rowIndex}-${p.rowPinned||"null"}`;o.get(m)||(o.set(m,!0),s.push(p))}),Object.assign(a,g)});const l=this.visibleColsService.getAllCols(),c=Array.from(r);return c.sort((f,h)=>{const g=l.indexOf(f),p=l.indexOf(h);return g-p}),{data:this.buildExportParams({columns:c,rowPositions:s,includeHeaders:n.includeHeaders,includeGroupHeaders:n.includeGroupHeaders}),cellsToFlash:a}}buildDataFromRanges(t,n){const r=t.getCellRanges(),i=[],o={};return r.forEach(s=>{const{rowPositions:a,cellsToFlash:l}=this.getRangeRowPositionsAndCellsToFlash(t,s);Object.assign(o,l),i.push(this.buildExportParams({columns:s.columns,rowPositions:a,includeHeaders:n.includeHeaders,includeGroupHeaders:n.includeGroupHeaders}))}),{data:i.join(`
|
||
`),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}
|
||
${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‎","groupedColumn","pivotGroupedColumn"),t("stackedColumn","Stacked‎","stackedColumn","pivotStackedColumn"),t("normalizedColumn","100% Stacked‎","normalizedColumn","pivotNormalizedColumn")]},{_key:"pivotBarChart",name:e("barChart","Bar"),subMenu:[t("groupedBar","Grouped‎","groupedBar","pivotGroupedBar"),t("stackedBar","Stacked‎","stackedBar","pivotStackedBar"),t("normalizedBar","100% Stacked‎","normalizedBar","pivotNormalizedBar")]},{_key:"pivotPieChart",name:e("pieChart","Pie"),subMenu:[t("pie","Pie‎","pie","pivotPie"),t("donut","Donut‎","donut","pivotDonut")]},t("line","Line‎","line","pivotLineChart"),{_key:"pivotXYChart",name:e("xyChart","X Y (Scatter)"),subMenu:[t("scatter","Scatter‎","scatter","pivotScatter"),t("bubble","Bubble‎","bubble","pivotBubble")]},{_key:"pivotAreaChart",name:e("areaChart","Area"),subMenu:[t("area","Area‎","area","pivotArea"),t("stackedArea","Stacked‎","stackedArea","pivotStackedArea"),t("normalizedArea","100% Stacked‎","normalizedArea","pivotNormalizedArea")]},{_key:"pivotStatisticalChart",_enterprise:!1,name:e("statisticalChart","Statistical"),subMenu:[t("histogramChart","Histogram‎","histogram","pivotHistogram",!1)]},{_key:"pivotHierarchicalChart",_enterprise:!0,name:e("hierarchicalChart","Hierarchical"),subMenu:[t("treemapChart","Treemap‎","treemap","pivotTreemap",!0),t("sunburstChart","Sunburst‎","sunburst","pivotSunburst",!0)]},{_key:"pivotCombinationChart",name:e("combinationChart","Combination"),subMenu:[t("columnLineCombo","Column & Line‎","columnLineCombo","pivotColumnLineCombo"),t("AreaColumnCombo","Area & Column‎","areaColumnCombo","pivotAreaColumnCombo")]}],icon:Gn("chart",this.gos,void 0)}}getConfigLookup(){return{columnGroup:{_key:"pivotColumnChart",column:"pivotGroupedColumn",stackedColumn:"pivotStackedColumn",normalizedColumn:"pivotNormalizedColumn"},barGroup:{_key:"pivotBarChart",bar:"pivotGroupedBar",stackedBar:"pivotStackedBar",normalizedBar:"pivotNormalizedBar"},pieGroup:{_key:"pivotPieChart",pie:"pivotPie",donut:"pivotDonut",doughnut:"pivotDonut"},lineGroup:{_key:"pivotLineChart",line:"pivotLineChart"},scatterGroup:{_key:"pivotXYChart",bubble:"pivotBubble",scatter:"pivotScatter"},areaGroup:{_key:"pivotAreaChart",area:"pivotArea",stackedArea:"pivotStackedArea",normalizedArea:"pivotNormalizedArea"},combinationGroup:{_key:"pivotCombinationChart",columnLineCombo:"pivotColumnLineCombo",areaColumnCombo:"pivotAreaColumnCombo",customCombo:null},hierarchicalGroup:{_key:"pivotHierarchicalChart",treemap:"pivotTreemap",sunburst:"pivotSunburst"},statisticalGroup:{_key:"pivotStatisticalChart",histogram:"pivotHistogram",rangeBar:null,rangeArea:null,boxPlot:null},polarGroup:null,specializedGroup:null}}},s1i=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.createChartFromCurrentRange(i),_key:o,_enterprise:s});return{name:e("chartRange","Chart Range"),_key:"chartRange",subMenu:[{name:e("columnChart","Column"),subMenu:[t("groupedColumn","Grouped‎","groupedColumn","rangeGroupedColumn"),t("stackedColumn","Stacked‎","stackedColumn","rangeStackedColumn"),t("normalizedColumn","100% Stacked‎","normalizedColumn","rangeNormalizedColumn")],_key:"rangeColumnChart"},{name:e("barChart","Bar"),subMenu:[t("groupedBar","Grouped‎","groupedBar","rangeGroupedBar"),t("stackedBar","Stacked‎","stackedBar","rangeStackedBar"),t("normalizedBar","100% Stacked‎","normalizedBar","rangeNormalizedBar")],_key:"rangeBarChart"},{name:e("pieChart","Pie"),subMenu:[t("pie","Pie‎","pie","rangePie"),t("donut","Donut‎","donut","rangeDonut")],_key:"rangePieChart"},t("line","Line‎","line","rangeLineChart"),{name:e("xyChart","X Y (Scatter)"),subMenu:[t("scatter","Scatter‎","scatter","rangeScatter"),t("bubble","Bubble‎","bubble","rangeBubble")],_key:"rangeXYChart"},{name:e("areaChart","Area"),subMenu:[t("area","Area‎","area","rangeArea"),t("stackedArea","Stacked‎","stackedArea","rangeStackedArea"),t("normalizedArea","100% Stacked‎","normalizedArea","rangeNormalizedArea")],_key:"rangeAreaChart"},{name:e("polarChart","Polar"),subMenu:[t("radarLine","Radar Line‎","radarLine","rangeRadarLine"),t("radarArea","Radar Area‎","radarArea","rangeRadarArea"),t("nightingale","Nightingale‎","nightingale","rangeNightingale"),t("radialColumn","Radial Column‎","radialColumn","rangeRadialColumn"),t("radialBar","Radial Bar‎","radialBar","rangeRadialBar")],_key:"rangePolarChart",_enterprise:!0},{name:e("statisticalChart","Statistical"),subMenu:[t("boxPlot","Box Plot‎","boxPlot","rangeBoxPlot",!0),t("histogramChart","Histogram‎","histogram","rangeHistogram",!1),t("rangeBar","Range Bar‎","rangeBar","rangeRangeBar",!0),t("rangeArea","Range Area‎","rangeArea","rangeRangeArea",!0)],_key:"rangeStatisticalChart",_enterprise:!1},{name:e("hierarchicalChart","Hierarchical"),subMenu:[t("treemap","Treemap‎","treemap","rangeTreemap"),t("sunburst","Sunburst‎","sunburst","rangeSunburst")],_key:"rangeHierarchicalChart",_enterprise:!0},{name:e("specializedChart","Specialized"),subMenu:[t("heatmap","Heatmap‎","heatmap","rangeHeatmap"),t("waterfall","Waterfall‎","waterfall","rangeWaterfall")],_key:"rangeSpecializedChart",_enterprise:!0},{name:e("combinationChart","Combination"),subMenu:[t("columnLineCombo","Column & Line‎","columnLineCombo","rangeColumnLineCombo"),t("AreaColumnCombo","Area & Column‎","areaColumnCombo","rangeAreaColumnCombo")],_key:"rangeCombinationChart"}],icon:Gn("chart",this.gos,void 0)}}getConfigLookup(){return{columnGroup:{_key:"rangeColumnChart",column:"rangeGroupedColumn",stackedColumn:"rangeStackedColumn",normalizedColumn:"rangeNormalizedColumn"},barGroup:{_key:"rangeBarChart",bar:"rangeGroupedBar",stackedBar:"rangeStackedBar",normalizedBar:"rangeNormalizedBar"},pieGroup:{_key:"rangePieChart",pie:"rangePie",donut:"rangeDonut",doughnut:"rangeDonut"},lineGroup:{_key:"rangeLineChart",line:"rangeLineChart"},scatterGroup:{_key:"rangeXYChart",bubble:"rangeBubble",scatter:"rangeScatter"},areaGroup:{_key:"rangeAreaChart",area:"rangeArea",stackedArea:"rangeStackedArea",normalizedArea:"rangeNormalizedArea"},polarGroup:{_key:"rangePolarChart",radarLine:"rangeRadarLine",radarArea:"rangeRadarArea",nightingale:"rangeNightingale",radialColumn:"rangeRadialColumn",radialBar:"rangeRadialBar"},statisticalGroup:{_key:"rangeStatisticalChart",boxPlot:"rangeBoxPlot",histogram:"rangeHistogram",rangeBar:"rangeRangeBar",rangeArea:"rangeRangeArea"},hierarchicalGroup:{_key:"rangeHierarchicalChart",treemap:"rangeTreemap",sunburst:"rangeSunburst"},specializedGroup:{_key:"rangeSpecializedChart",heatmap:"rangeHeatmap",waterfall:"rangeWaterfall"},combinationGroup:{_key:"rangeCombinationChart",columnLineCombo:"rangeColumnLineCombo",areaColumnCombo:"rangeAreaColumnCombo",customCombo:null}}}},a1i=class extends ct{constructor(){super(...arguments),this.beanName="columnChooserFactory"}wireBeans(e){this.focusService=e.focusService,this.menuUtils=e.menuUtils,this.visibleColsService=e.visibleColsService}createColumnSelectPanel(e,t,n,r){const i=e.createManagedBean(new bgt),o=r??(t==null?void 0:t.getColDef().columnChooserParams)??(t==null?void 0:t.getColDef().columnsMenuParams)??{},{contractColumnSelection:s,suppressColumnExpandAll:a,suppressColumnFilter:l,suppressColumnSelectAll:c,suppressSyncLayoutWithGrid:u,columnLayout:f}=o;return i.init(!!n,this.gos.addGridCommonParams({suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!s,suppressColumnExpandAll:!!a,suppressColumnFilter:!!l,suppressColumnSelectAll:!!c,suppressSyncLayoutWithGrid:!!f||!!u,onStateUpdated:()=>{}}),"columnMenu"),f&&i.setColumnLayout(f),i}showColumnChooser({column:e,chooserParams:t,eventSource:n}){this.hideActiveColumnChooser();const r=this.createColumnSelectPanel(this,e,!0,t),i=this.localeService.getLocaleTextFunc(),o=this.visibleColsService.getAllCols().indexOf(e),s=e?this.focusService.getFocusedHeader():null;this.activeColumnChooserDialog=this.createBean(new Yhi({title:i("chooseColumns","Choose Columns"),component:r,width:300,height:300,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{var a;(a=this.focusService.findNextFocusableElement(r.getGui()))==null||a.focus({preventScroll:!0}),this.dispatchVisibleChangedEvent(!0,e)},closedCallback:a=>{const l=this.activeColumnChooser.getGui();this.destroyBean(this.activeColumnChooser),this.activeColumnChooser=void 0,this.activeColumnChooserDialog=void 0,this.dispatchVisibleChangedEvent(!1,e),e&&this.menuUtils.restoreFocusOnClose({column:e,headerPosition:s,columnIndex:o,eventSource:n},l,a,!0)},postProcessPopupParams:{type:"columnChooser",column:e,eventSource:n}})),this.activeColumnChooser=r}hideActiveColumnChooser(){this.activeColumnChooserDialog&&this.destroyBean(this.activeColumnChooserDialog)}dispatchVisibleChangedEvent(e,t){this.eventService.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:"columnChooser",column:t??null})}},V5="separator",l1i=class extends ct{constructor(){super(...arguments),this.beanName="columnMenuFactory"}wireBeans(e){this.menuItemMapper=e.menuItemMapper,this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.menuService=e.menuService}createMenu(e,t,n,r){const i=e.createManagedBean(new JQ(0,{column:n??null,node:null,value:null})),o=this.menuItemMapper.mapWithStockItems(t,n??null,r,"columnMenu");return i.addMenuItems(o),i}getMenuItems(e,t){const n=this.getDefaultMenuOptions(e);let r;const i=e==null?void 0:e.getColDef().mainMenuItems;if(Array.isArray(i))r=i;else if(typeof i=="function")r=i(this.gos.addGridCommonParams({column:e,defaultItems:n}));else{const o=this.gos.getCallback("getMainMenuItems");o&&e?r=o({column:e,defaultItems:n}):r=n}return Zni(r,V5),r}getDefaultMenuOptions(e){const t=[],n=this.menuService.isLegacyMenuEnabled();if(!e)return n||t.push("columnChooser"),t.push("resetColumns"),t;const r=!e.getColDef().lockPinned,i=this.funcColsService.getRowGroupColumns().length,o=i>0,s=e.isAllowValue(),a=e.isAllowRowGroup(),l=e.isPrimary(),c=this.columnModel.isPivotMode(),u=Li(this.gos),f=this.gos.get("treeData"),h=l&&o&&s||!l;if(!n&&e.isSortable()){const m=e.getSort();m!=="asc"&&t.push("sortAscending"),m!=="desc"&&t.push("sortDescending"),m&&t.push("sortUnSort"),t.push(V5)}return this.menuService.isFilterMenuItemEnabled(e)&&(t.push("columnFilter"),t.push(V5)),r&&t.push("pinSubMenu"),h&&t.push("valueAggSubMenu"),(r||h)&&t.push(V5),t.push("autoSizeThis"),t.push("autoSizeAll"),t.push(V5),e.getColDef().showRowGroup?t.push("rowUnGroup"):a&&e.isPrimary()&&(e.isRowGroupActive()?this.columnModel.isColGroupLocked(e)||t.push("rowUnGroup"):t.push("rowGroup")),t.push(V5),n||t.push("columnChooser"),t.push("resetColumns"),u&&(f||i>(c?1:0))&&(t.push("expandAll"),t.push("contractAll")),t}},c1i="ag-menu",aFe="ag-context-menu-open",u1i=class extends ct{constructor(){super(...arguments),this.beanName="contextMenuFactory"}wireBeans(e){this.popupService=e.popupService,this.ctrlsService=e.ctrlsService,this.columnModel=e.columnModel,this.menuUtils=e.menuUtils,this.rangeService=e.rangeService,this.focusService=e.focusService}hideActiveMenu(){this.destroyBean(this.activeMenu)}getMenuItems(e,t,n){const r=[];if(zt(e)&&this.gos.isModuleRegistered(rr.ClipboardModule)&&t&&(this.gos.get("suppressCutToClipboard")||r.push("cut"),r.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator")),this.gos.get("enableCharts")&&this.gos.isModuleRegistered(rr.GridChartsModule)&&(this.columnModel.isPivotMode()&&r.push("pivotChart"),this.rangeService&&!this.rangeService.isEmpty()&&r.push("chartRange")),zt(e)){const a=!this.gos.isModuleRegistered(rr.CsvExportModule),l=!this.gos.isModuleRegistered(rr.ExcelExportModule),c=this.gos.get("suppressExcelExport")||l,u=this.gos.get("suppressCsvExport")||a;!Ev()&&(!c||!u)&&r.push("export")}const i=r.length?r:void 0,o=t==null?void 0:t.getColDef().contextMenuItems;if(Array.isArray(o))return o;if(typeof o=="function")return o(this.gos.addGridCommonParams({column:t,node:e,value:n,defaultItems:i}));const s=this.gos.getCallback("getContextMenuItems");return s?s({column:t,node:e,value:n,defaultItems:i}):r}onContextMenu(e,t,n,r,i,o){this.menuUtils.onContextMenu(e,t,s=>this.showMenu(n,r,i,s,o))}showMenu(e,t,n,r,i){const o=this.getMenuItems(e,t,n),s=this.ctrlsService.getGridBodyCtrl().getGui();if(o===void 0||Es(o))return!1;const a=new d1i(o,t,e,n);this.createBean(a);const l=a.getGui();t||this.focusService.clearFocusedCell();const c={column:t,rowNode:e,type:"contextMenu",mouseEvent:r,ePopup:l,nudgeY:1},u=this.localeService.getLocaleTextFunc(),f=this.popupService.addPopup({modal:!0,eChild:l,closeOnEsc:!0,closedCallback:g=>{s.classList.remove(aFe),this.destroyBean(a),this.dispatchVisibleChangedEvent(!1,g===void 0?"api":"ui")},click:r,positionCallback:()=>{const g=this.gos.get("enableRtl");this.popupService.positionPopupUnderMouseEvent({...c,nudgeX:g?(l.offsetWidth+1)*-1:1})},anchorToElement:i,ariaLabel:u("ariaLabelContextMenu","Context Menu")});f&&(s.classList.add(aFe),a.afterGuiAttached({container:"contextMenu",hidePopup:f.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=a,a.addEventListener("destroyed",()=>{this.activeMenu===a&&(this.activeMenu=null)}),f&&a.addEventListener("closeMenu",g=>f.hideFunc({mouseEvent:g.mouseEvent??void 0,keyboardEvent:g.keyboardEvent??void 0,forceHide:!0}));const h=r&&r instanceof MouseEvent&&r.type==="mousedown";return this.dispatchVisibleChangedEvent(!0,h?"api":"ui"),!0}dispatchVisibleChangedEvent(e,t="ui"){this.eventService.dispatchEvent({type:"contextMenuVisibleChanged",visible:e,source:t})}},d1i=class extends wn{constructor(e,t,n,r){super(`<div class="${c1i}" role="presentation"></div>`),this.menuItems=e,this.column=t,this.node=n,this.value=r,this.menuList=null,this.focusedCell=null}wireBeans(e){this.focusService=e.focusService,this.menuItemMapper=e.menuItemMapper,this.cellPositionUtils=e.cellPositionUtils}postConstruct(){const e=this.createManagedBean(new JQ(0,{column:this.column,node:this.node,value:this.value})),t=this.menuItemMapper.mapWithStockItems(this.menuItems,null,()=>this.getGui(),"contextMenu");e.addMenuItems(t),this.appendChild(e),this.menuList=e,e.addEventListener("closeMenu",n=>this.dispatchLocalEvent(n))}afterGuiAttached(e){e.hidePopup&&this.addDestroyFunc(e.hidePopup),this.focusedCell=this.focusService.getFocusedCell(),this.menuList&&this.focusService.focusInto(this.menuList.getGui())}restoreFocusedCell(){const e=this.focusService.getFocusedCell();if(e&&this.focusedCell&&this.cellPositionUtils.equals(e,this.focusedCell)){const{rowIndex:t,rowPinned:n,column:r}=this.focusedCell;CI(this.gos)&&this.focusService.setFocusedCell({rowIndex:t,column:r,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!this.focusService.isKeyboardMode()})}}destroy(){this.restoreFocusedCell(),super.destroy()}},P2="filterMenuTab",_2="generalMenuTab",w2="columnsMenuTab",gk=[_2,P2,w2],f1i=class extends ct{constructor(){super(...arguments),this.beanName="enterpriseMenuFactory"}wireBeans(e){this.popupService=e.popupService,this.focusService=e.focusService,this.ctrlsService=e.ctrlsService,this.visibleColsService=e.visibleColsService,this.filterManager=e.filterManager,this.menuUtils=e.menuUtils,this.menuService=e.menuService,this.columnMenuFactory=e.columnMenuFactory}hideActiveMenu(){this.destroyBean(this.activeMenu)}showMenuAfterMouseEvent(e,t,n,r){const{column:i,columnGroup:o}=this.splitColumnOrGroup(e),s=r?"filterMenuTab":void 0;this.showMenu(i,o,a=>{var c;const l=a.getGui();this.popupService.positionPopupUnderMouseEvent({type:n,column:i,mouseEvent:t,ePopup:l}),s&&((c=a.showTab)==null||c.call(a,s)),this.dispatchVisibleChangedEvent(!0,!1,i,o,s)},n,s,void 0,t.target)}splitColumnOrGroup(e){const t=e&&km(e);return{column:t?e:void 0,columnGroup:t?void 0:e}}showMenuAfterButtonClick(e,t,n,r){let i=-1,o="left";this.gos.get("enableRtl")&&(i=1,o="right");const s=r?"filterMenuTab":void 0,a=s?[s]:void 0,l=this.menuService.isLegacyMenuEnabled(),c=(l?9:4)*i,u=l?-23:4,{column:f,columnGroup:h}=this.splitColumnOrGroup(e);this.showMenu(f,h,g=>{var m;const p=g.getGui();this.popupService.positionPopupByComponent({type:n,column:f,eventSource:t,ePopup:p,alignSide:o,nudgeX:c,nudgeY:u,position:"under",keepWithinBounds:!0}),s&&((m=g.showTab)==null||m.call(g,s)),this.dispatchVisibleChangedEvent(!0,!1,f,h,s)},n,s,a,t)}showMenu(e,t,n,r,i,o,s){var p;const a=this.getMenuParams(e,t,o,s);if(!a)return;const{menu:l,eMenuGui:c,anchorToElement:u,restoreFocusParams:f}=a,h=[];h.push(m=>{const v=l.getGui();this.destroyBean(l),e&&(e.setMenuVisible(!1,"contextMenu"),this.menuUtils.restoreFocusOnClose(f,v,m))});const g=this.localeService.getLocaleTextFunc();if(this.popupService.addPopup({modal:!0,eChild:c,closeOnEsc:!0,closedCallback:m=>{h.forEach(v=>v(m)),this.dispatchVisibleChangedEvent(!1,!1,e,t,i)},afterGuiAttached:m=>l.afterGuiAttached(Object.assign({},{container:r},m)),positionCallback:i?()=>n(l):void 0,ariaLabel:g("ariaLabelColumnMenu","Column Menu")}),i||((p=l.showTabBasedOnPreviousSelection)==null||p.call(l),n(l)),this.menuService.isColumnMenuAnchoringEnabled()){const m=this.popupService.setPopupPositionRelatedToElement(c,u);m&&e&&this.addStopAnchoring(m,e,h)}l.addEventListener("tabSelected",m=>{this.dispatchVisibleChangedEvent(!1,!0,e),this.lastSelectedTab=m.key,this.dispatchVisibleChangedEvent(!0,!0,e)}),e==null||e.setMenuVisible(!0,"contextMenu"),this.activeMenu=l,l.addEventListener("destroyed",()=>{this.activeMenu===l&&(this.activeMenu=null)})}addStopAnchoring(e,t,n){e.then(r=>{t.addEventListener("leftChanged",r),t.addEventListener("visibleChanged",r),n.push(()=>{t.removeEventListener("leftChanged",r),t.removeEventListener("visibleChanged",r)})})}getMenuParams(e,t,n,r){const i={column:e,headerPosition:this.focusService.getFocusedHeader(),columnIndex:this.visibleColsService.getAllCols().indexOf(e),eventSource:r},o=this.createMenu(e,t,i,n,r);return o?{menu:o,eMenuGui:o.getGui(),anchorToElement:r||this.ctrlsService.getGridBodyCtrl().getGui(),restoreFocusParams:i}:void 0}createMenu(e,t,n,r,i){if(this.menuService.isLegacyMenuEnabled())return this.createBean(new h1i(e,n,this.lastSelectedTab,r,i));{const o=this.columnMenuFactory.getMenuItems(e,t);return o.length?this.createBean(new g1i(o,e,n,i)):void 0}}dispatchVisibleChangedEvent(e,t,n,r,i){this.eventService.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:t,key:this.lastSelectedTab??i??(this.menuService.isLegacyMenuEnabled()?_2:"columnMenu"),column:n??null,columnGroup:r??null})}isMenuEnabled(e){var i;if(!this.menuService.isLegacyMenuEnabled())return!0;const t=!((i=this.filterManager)!=null&&i.isFilterAllowed(e)),n=e.getColDef().menuTabs??gk;return(t&&n.includes(P2)?n.length-1:n.length)>0}showMenuAfterContextMenuEvent(e,t,n){this.menuUtils.onContextMenu(t,n,r=>(this.showMenuAfterMouseEvent(e,r,"columnMenu"),!0))}},h1i=class extends ct{constructor(e,t,n,r,i){super(),this.column=e,this.restoreFocusParams=t,this.initialSelection=n,this.restrictTo=r,this.sourceElement=i,this.tabFactories={},this.includeChecks={},this.tabFactories[_2]=this.createMainPanel.bind(this),this.tabFactories[P2]=this.createFilterPanel.bind(this),this.tabFactories[w2]=this.createColumnsPanel.bind(this),this.includeChecks[_2]=()=>!0,this.includeChecks[P2]=()=>{var o;return e?!!((o=this.filterManager)!=null&&o.isFilterAllowed(e)):!1},this.includeChecks[w2]=()=>!0}wireBeans(e){this.filterManager=e.filterManager,this.columnChooserFactory=e.columnChooserFactory,this.columnMenuFactory=e.columnMenuFactory,this.menuUtils=e.menuUtils}postConstruct(){const e=this.getTabsToCreate().map(t=>this.createTab(t));this.tabbedLayout=new Jhi({items:e,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)}),this.createBean(this.tabbedLayout),this.mainMenuList&&this.mainMenuList.setParentComponent(this.tabbedLayout),this.addDestroyFunc(()=>this.destroyBean(this.tabbedLayout))}getTabsToCreate(){var e;return this.restrictTo?this.restrictTo:(((e=this.column)==null?void 0:e.getColDef().menuTabs)??gk).filter(t=>this.isValidMenuTabItem(t)).filter(t=>this.isNotSuppressed(t)).filter(t=>this.isModuleLoaded(t))}isModuleLoaded(e){return e===w2?this.gos.isModuleRegistered(rr.ColumnsToolPanelModule):!0}isValidMenuTabItem(e){let t=!0,n=gk;return this.restrictTo!=null&&(t=this.restrictTo.indexOf(e)>-1,n=this.restrictTo),t=t&&gk.indexOf(e)>-1,t||rt(`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of [${n}]`),t}isNotSuppressed(e){return this.includeChecks[e]()}createTab(e){return this.tabFactories[e]()}showTabBasedOnPreviousSelection(){this.showTab(this.initialSelection)}showTab(e){this.tabItemColumns&&e===w2?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&e===P2?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&e===_2?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()}onTabItemClicked(e){let t=null;switch(e.item){case this.tabItemColumns:t=w2;break;case this.tabItemFilter:t=P2;break;case this.tabItemGeneral:t=_2;break}t&&this.activateTab(t)}activateTab(e){const t={type:"tabSelected",key:e};this.dispatchLocalEvent(t)}createMainPanel(){return this.mainMenuList=this.columnMenuFactory.createMenu(this,this.columnMenuFactory.getMenuItems(this.column),this.column,()=>this.sourceElement??this.getGui()),this.mainMenuList.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.tabItemGeneral={title:Gn("menu",this.gos,this.column),titleLabel:_2.replace("MenuTab",""),bodyPromise:xr.resolve(this.mainMenuList.getGui()),name:_2},this.tabItemGeneral}onHidePopup(e){this.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,e)}createFilterPanel(){const e=this.column?this.createBean(new KQ(this.column,"COLUMN_MENU")):null;if(this.filterComp=e,!(e!=null&&e.hasFilter()))throw new Error("AG Grid - Unable to instantiate filter");const t=r=>e.afterGuiAttached(r),n=()=>e.afterGuiDetached();return this.tabItemFilter={title:Gn("filter",this.gos,this.column),titleLabel:P2.replace("MenuTab",""),bodyPromise:xr.resolve(e==null?void 0:e.getGui()),afterAttachedCallback:t,afterDetachedCallback:n,name:P2},this.tabItemFilter}createColumnsPanel(){const e=document.createElement("div");e.classList.add("ag-menu-column-select-wrapper");const n=this.columnChooserFactory.createColumnSelectPanel(this,this.column).getGui();return n.classList.add("ag-menu-column-select"),e.appendChild(n),this.tabItemColumns={title:Gn("columns",this.gos,this.column),titleLabel:w2.replace("MenuTab",""),bodyPromise:xr.resolve(e),name:w2},this.tabItemColumns}afterGuiAttached(e){const{container:t,hidePopup:n}=e;this.tabbedLayout.setAfterAttachedParams({container:t,hidePopup:n}),n&&(this.hidePopupFunc=n,this.addDestroyFunc(n))}getGui(){return this.tabbedLayout.getGui()}destroy(){super.destroy(),this.destroyBean(this.filterComp)}},g1i=class extends wn{constructor(e,t,n,r){super(`
|
||
<div data-ref="eColumnMenu" role="presentation" class="ag-menu ag-column-menu"></div>
|
||
`),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.funcColsService.setRowGroupColumns(this.funcColsService.getRowGroupColumns().slice(0,l),r),icon:s};if(typeof a=="string"){const c=this.columnModel.getColDefCol(a),u=c!=null?Wl(this.columnNameService.getDisplayNameForColumn(c,"header")):a;return{name:i("ungroupBy","Un-Group by")+" "+u,disabled:this.gos.get("functionsReadOnly")||c!=null&&this.columnModel.isColGroupLocked(c),action:()=>this.funcColsService.removeRowGroupColumns([a],r),icon:s}}return{name:i("ungroupBy","Un-Group by")+" "+Wl(this.columnNameService.getDisplayNameForColumn(t,"header")),disabled:this.gos.get("functionsReadOnly")||!(t!=null&&t.isRowGroupActive())||!(t!=null&&t.getColDef().enableRowGroup)||this.columnModel.isColGroupLocked(t),action:()=>this.funcColsService.removeRowGroupColumns([t],r),icon:s}}case"resetColumns":return{name:i("resetColumns","Reset Columns"),action:()=>this.columnApplyStateService.resetColumnState(r)};case"expandAll":return{name:i("expandAll","Expand All Row Groups"),action:()=>this.expansionService.expandAll(!0)};case"contractAll":return{name:i("collapseAll","Collapse All Row Groups"),action:()=>this.expansionService.expandAll(!1)};case"copy":return this.gos.assertModuleRegistered(rr.ClipboardModule,"Copy from Menu")?{name:i("copy","Copy"),shortcut:i("ctrlC","Ctrl+C"),icon:Gn("clipboardCopy",this.gos,null),action:()=>this.clipboardService.copyToClipboard()}:null;case"copyWithHeaders":return this.gos.assertModuleRegistered(rr.ClipboardModule,"Copy with Headers from Menu")?{name:i("copyWithHeaders","Copy with Headers"),icon:Gn("clipboardCopy",this.gos,null),action:()=>this.clipboardService.copyToClipboard({includeHeaders:!0})}:null;case"copyWithGroupHeaders":return this.gos.assertModuleRegistered(rr.ClipboardModule,"Copy with Group Headers from Menu")?{name:i("copyWithGroupHeaders","Copy with Group Headers"),icon:Gn("clipboardCopy",this.gos,null),action:()=>this.clipboardService.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}:null;case"cut":if(this.gos.assertModuleRegistered(rr.ClipboardModule,"Cut from Menu")){const s=this.focusService.getFocusedCell(),a=s?this.rowPositionUtils.getRowNode(s):null,l=a?s==null?void 0:s.column.isCellEditable(a):!1;return{name:i("cut","Cut"),shortcut:i("ctrlX","Ctrl+X"),icon:Gn("clipboardCut",this.gos,null),disabled:!l||this.gos.get("suppressCutToClipboard"),action:()=>this.clipboardService.cutToClipboard(void 0,"contextMenu")}}else return null;case"paste":return this.gos.assertModuleRegistered(rr.ClipboardModule,"Paste from Clipboard")?{name:i("paste","Paste"),shortcut:i("ctrlV","Ctrl+V"),disabled:!0,icon:Gn("clipboardPaste",this.gos,null),action:()=>this.clipboardService.pasteFromClipboard()}:null;case"export":{const s=[],a=this.gos.isModuleRegistered(rr.CsvExportModule),l=this.gos.isModuleRegistered(rr.ExcelExportModule);return!this.gos.get("suppressCsvExport")&&a&&s.push("csvExport"),!this.gos.get("suppressExcelExport")&&l&&s.push("excelExport"),{name:i("export","Export"),subMenu:s,icon:Gn("save",this.gos,null)}}case"csvExport":return{name:i("csvExport","CSV Export"),icon:Gn("csvExport",this.gos,null),action:()=>{var s;return(s=this.csvCreator)==null?void 0:s.exportDataAsCsv()}};case"excelExport":return{name:i("excelExport","Excel Export"),icon:Gn("excelExport",this.gos,null),action:()=>{var s;return(s=this.excelCreator)==null?void 0:s.exportDataAsExcel()}};case"separator":return"separator";case"pivotChart":case"chartRange":return this.chartMenuItemMapper.getChartItems(e)??null;case"columnFilter":return t?{name:i("columnFilter","Column Filter"),icon:Gn("filter",this.gos,null),action:()=>this.menuService.showFilterMenu({column:t,buttonElement:n(),containerType:"columnFilter",positionBy:"button"})}:null;case"columnChooser":return this.gos.isModuleRegistered(rr.ColumnsToolPanelModule)?{name:i("columnChooser","Choose Columns"),icon:Gn("columns",this.gos,null),action:()=>this.menuService.showColumnChooser({column:t,eventSource:n()})}:null;case"sortAscending":return{name:i("sortAscending","Sort Ascending"),icon:Gn("sortAscending",this.gos,null),action:()=>this.sortController.setSortForColumn(t,"asc",!1,r)};case"sortDescending":return{name:i("sortDescending","Sort Descending"),icon:Gn("sortDescending",this.gos,null),action:()=>this.sortController.setSortForColumn(t,"desc",!1,r)};case"sortUnSort":return{name:i("sortUnSort","Clear Sort"),icon:Gn("sortUnSort",this.gos,null),action:()=>this.sortController.setSortForColumn(t,null,!1,r)};default:return rt(`unknown menu item type ${e}`),null}}createAggregationSubMenu(e,t){const n=this.localeService.getLocaleTextFunc();let r;if(e.isPrimary())r=e;else{const o=e.getColDef().pivotValueColumn;r=zt(o)?o:void 0}const i=[];if(r){const o=r.isValueActive(),s=t.getFuncNames(r);i.push({name:n("noAggregation","None"),action:()=>{this.funcColsService.removeValueColumns([r],"contextMenu"),this.funcColsService.setColumnAggFunc(r,void 0,"contextMenu")},checked:!o}),s.forEach(a=>{i.push({name:n(a,t.getDefaultFuncLabel(a)),action:()=>{this.funcColsService.setColumnAggFunc(r,a,"contextMenu"),this.funcColsService.addValueColumns([r],"contextMenu")},checked:o&&r.getAggFunc()===a})})}return i}},y1i=class extends ct{constructor(){super(...arguments),this.beanName="menuUtils"}wireBeans(e){this.focusService=e.focusService,this.headerNavigationService=e.headerNavigationService,this.visibleColsService=e.visibleColsService}restoreFocusOnClose(e,t,n,r){const{eventSource:i}=e,o=n instanceof KeyboardEvent;if(!r&&!o||!i)return;const s=gi(this.gos);!t.contains(s)&&!CI(this.gos)||this.focusHeaderCell(e)}closePopupAndRestoreFocusOnSelect(e,t,n){let r;n&&n.keyboardEvent&&(r=n.keyboardEvent),e(r&&{keyboardEvent:r});const i=this.focusService.getFocusedCell();if(CI(this.gos))if(i){const{rowIndex:o,rowPinned:s,column:a}=i;this.focusService.setFocusedCell({rowIndex:o,column:a,rowPinned:s,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}else this.focusHeaderCell(t)}onContextMenu(e,t,n){if(!this.gos.get("allowContextMenuWithControlKey")&&e&&(e.ctrlKey||e.metaKey)||(e&&this.blockMiddleClickScrollsIfNeeded(e),this.gos.get("suppressContextMenu")))return;const r=e??t.touches[0];if(n(r)){const i=e??t;i&&i.cancelable&&i.preventDefault()}}async focusHeaderCell(e){const{column:t,columnIndex:n,headerPosition:r,eventSource:i}=e,o=await this.visibleColsService.getAllCols().some(s=>s===t);if(!(t&&!t.isAlive())){if(o&&i&&Su(i)){const s=this.focusService.findTabbableParent(i);s&&(t&&this.headerNavigationService.scrollToColumn(t),s.focus())}else if(r&&n!==-1){const s=this.visibleColsService.getAllCols(),a=s[n]||Dn(s);a&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:r.headerRowIndex,column:a}})}}}blockMiddleClickScrollsIfNeeded(e){this.gos.get("suppressMiddleClickScrolls")&&e.which===2&&e.preventDefault()}},I6e="32.3.3",Lgt={version:I6e,moduleName:`${rr.MenuModule}-core`,beans:[f1i,u1i,C1i,i1i,a1i,l1i,y1i],dependantModules:[dp],userComponents:[{name:"agMenuItem",classImp:m6e}]},b1i={version:I6e,moduleName:`${rr.MenuModule}-api`,apiFunctions:{showContextMenu:p1i,showColumnChooser:m1i,hideColumnChooser:v1i},dependantModules:[Lgt,Vht]},S1i={version:I6e,moduleName:rr.MenuModule,dependantModules:[Lgt,b1i]},w1i="ag-Grid-MissingKey",x1i=class extends ct{constructor(){super(...arguments),this.beanName="ssrmBlockUtils"}wireBeans(e){this.valueService=e.valueService,this.showRowGroupColsService=e.showRowGroupColsService,this.nodeManager=e.ssrmNodeManager,this.beans=e,this.expansionService=e.expansionService,this.serverSideRowModel=e.rowModel,this.storeFactory=e.ssrmStoreFactory}createRowNode(e){const t=new vu(this.beans),n=e.rowHeight!=null?e.rowHeight:W0(this.gos);return t.setRowHeight(n),t.group=e.group,t.leafGroup=e.leafGroup,t.level=e.level,t.uiLevel=e.level,t.parent=e.parent,t.stub=!0,t.__needsRefreshWhenVisible=!1,t.group&&(t.expanded=!1,t.field=e.field,t.rowGroupColumn=e.rowGroupColumn),t}destroyRowNodes(e){e&&e.forEach(t=>this.destroyRowNode(t))}destroyRowNode(e,t=!1){e.childStore&&!t&&(this.destroyBean(e.childStore),e.childStore=null),e.sibling&&!e.footer&&this.destroyRowNode(e.sibling,!1),e.clearRowTopAndRowIndex(),e.id!=null&&this.nodeManager.removeNode(e)}setTreeGroupInfo(e){e.updateHasChildren();const t=this.gos.get("getServerSideGroupKey");e.hasChildren()&&t!=null&&(e.key=t(e.data)),!e.hasChildren()&&e.childStore!=null&&(this.destroyBean(e.childStore),e.childStore=null,e.expanded=!1)}setRowGroupInfo(e){if(e.key=this.valueService.getValue(e.rowGroupColumn,e),(e.key===null||e.key===void 0)&&kQ(()=>{rt("null and undefined values are not allowed for server side row model keys"),e.rowGroupColumn&&rt(`column = ${e.rowGroupColumn.getId()}`),rt("data is "+e.data)},"ServerSideBlock-CannotHaveNullOrUndefinedForKey"),this.gos.get("groupAllowUnbalanced")&&e.key===""){const i=this.serverSideRowModel.getParams();e.childStore=this.createBean(this.storeFactory.createStore(i,e))}Sx(this.beans.gos)({node:e})&&(e.createFooter(),e.sibling&&(e.sibling.uiLevel=e.uiLevel+1))}setMasterDetailInfo(e){const t=this.gos.get("isRowMaster");t!=null?e.master=t(e.data):e.master=!0}updateDataIntoRowNode(e,t){e.updateData(t),this.gos.get("treeData")?(this.setTreeGroupInfo(e),this.setChildCountIntoRowNode(e)):e.group?(this.setChildCountIntoRowNode(e),e.footer||(Sx(this.beans.gos)({node:e})?e.sibling?e.sibling.updateData(t):e.createFooter():e.sibling&&e.destroyFooter())):this.gos.get("masterDetail")}setDataIntoRowNode(e,t,n,r){var o;e.stub=!1;const i=this.gos.get("treeData");zt(t)?(e.setDataAndId(t,n),i?this.setTreeGroupInfo(e):e.group?this.setRowGroupInfo(e):this.gos.get("masterDetail")&&this.setMasterDetailInfo(e)):(e.setDataAndId(void 0,void 0),e.key=null),(i||e.group)&&(this.setGroupDataIntoRowNode(e),this.setChildCountIntoRowNode(e)),zt(t)&&(e.setRowHeight(kl(this.gos,e,!1,r).height),(o=e.sibling)==null||o.setRowHeight(kl(this.gos,e.sibling,!1,r).height))}setChildCountIntoRowNode(e){const t=this.gos.get("getChildCount");t&&e.setAllChildrenCount(t(e.data))}setGroupDataIntoRowNode(e){var r;const t=((r=this.showRowGroupColsService)==null?void 0:r.getShowRowGroupCols())??[],n=this.gos.get("treeData");t.forEach(i=>{if(e.groupData==null&&(e.groupData={}),n)e.groupData[i.getColId()]=e.key;else if(i.isRowGroupDisplayed(e.rowGroupColumn.getId())){const o=this.valueService.getValue(e.rowGroupColumn,e);e.groupData[i.getColId()]=o}})}clearDisplayIndex(e){e.clearRowTopAndRowIndex(),e.hasChildren()&&zt(e.childStore)&&e.childStore.clearDisplayIndexes(),e.master&&e.detailNode&&e.detailNode.clearRowTopAndRowIndex()}setDisplayIndex(e,t,n,r){const i=this.gos.get("groupAllowUnbalanced")&&e.group&&e.key==="";if(this.gos.get("groupHideOpenParents")&&e.group&&e.expanded||i?(e.setRowIndex(null),e.setRowTop(null)):(e.setRowIndex(t.next()),e.setRowTop(n.value),n.value+=e.rowHeight),e.setUiLevel(r),e.footer)return;if(e.master&&(e.expanded&&e.detailNode?(e.detailNode.setRowIndex(t.next()),e.detailNode.setRowTop(n.value),n.value+=e.detailNode.rowHeight):e.detailNode&&e.detailNode.clearRowTopAndRowIndex()),e.hasChildren()&&zt(e.childStore)){const l=e.childStore;e.expanded||i?l.setDisplayIndexes(t,n,i?r:r+1):l.clearDisplayIndexes()}}binarySearchForDisplayIndex(e,t){let n=0,r=t.length-1;if(ar(r)||ar(n)){rt(`error: topPointer = ${r}, bottomPointer = ${n}`);return}for(;;){const i=Math.floor((n+r)/2),o=t[i];if(o.rowIndex===e)return o;const s=o.master&&o.expanded,a=o.detailNode;if(s&&a&&a.rowIndex===e)return o.detailNode;const l=o.childStore;if(o.expanded&&l&&l.isDisplayIndexInStore(e))return l.getRowUsingDisplayIndex(e);if(o.rowIndex<e)n=i+1;else if(o.rowIndex>e)r=i-1;else{rt(`error: unable to locate rowIndex = ${e} in cache`);return}}}extractRowBounds(e,t){const n=r=>({rowHeight:r.rowHeight,rowTop:r.rowTop});if(e.rowIndex===t)return n(e);if(e.hasChildren()&&e.expanded&&zt(e.childStore)){const r=e.childStore;if(r.isDisplayIndexInStore(t))return r.getRowBounds(t)}else if(e.master&&e.expanded&&zt(e.detailNode)&&e.detailNode.rowIndex===t)return n(e.detailNode)}isPixelInNodeRange(e,t){return!zt(e.rowTop)||!zt(e.rowHeight)?!1:t>=e.rowTop&&t<e.rowTop+e.rowHeight}getIndexAtPixel(e,t){if(this.isPixelInNodeRange(e,t))return e.rowIndex;const n=e.master&&e.expanded,r=e.detailNode;if(n&&r&&this.isPixelInNodeRange(r,t))return e.detailNode.rowIndex;if(e.hasChildren()&&e.expanded&&zt(e.childStore)){const i=e.childStore;if(i.isPixelInRange(t))return i.getRowIndexAtPixel(t)}return null}createNodeIdPrefix(e){const t=[];let n=e;for(;n&&n.level>=0;)n.key===""?t.push(w1i):t.push(n.key),n=n.parent;if(t.length>0)return t.reverse().join("-")}checkOpenByDefault(e){return this.expansionService.checkOpenByDefault(e)}},E1i=class extends ct{constructor(){super(...arguments),this.beanName="ssrmExpandListener"}wireBeans(e){this.serverSideRowModel=e.rowModel,this.storeFactory=e.ssrmStoreFactory,this.beans=e}postConstruct(){ml(this.gos)&&this.addManagedEventListeners({rowGroupOpened:this.onRowGroupOpened.bind(this)})}onRowGroupOpened(e){const t=e.node;if(t.expanded){if(t.master)this.createDetailNode(t);else if(ar(t.childStore)){const n=this.serverSideRowModel.getParams();t.childStore=this.createBean(this.storeFactory.createStore(n,t))}}else this.gos.get("purgeClosedRowNodes")&&zt(t.childStore)&&(t.childStore=this.destroyBean(t.childStore));this.eventService.dispatchEvent({type:"storeUpdated"})}createDetailNode(e){if(zt(e.detailNode))return e.detailNode;const t=new vu(this.beans);t.detail=!0,t.selectable=!1,t.parent=e,zt(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1;const n=200,r=kl(this.gos,t).height;return t.rowHeight=r||n,e.detailNode=t,t}},R1i=class extends ct{constructor(){super(...arguments),this.beanName="ssrmFilterListener"}wireBeans(e){this.serverSideRowModel=e.rowModel,this.filterManager=e.filterManager,this.listenerUtils=e.ssrmListenerUtils}postConstruct(){ml(this.gos)&&this.addManagedEventListeners({advancedFilterEnabledChanged:()=>this.onFilterChanged(!0),filterChanged:()=>this.onFilterChanged()})}onFilterChanged(e){var l,c;const t=this.serverSideRowModel.getParams();if(!t)return;const n=t.filterModel;let r,i;if((l=this.filterManager)!=null&&l.isAdvancedFilterEnabled()){r=this.filterManager.getAdvancedFilterModel();const u=e?Object.keys(n??{}):this.getAdvancedFilterColumns(n),f=this.getAdvancedFilterColumns(r);u.forEach(h=>f.add(h)),i=Array.from(f)}else if(r=((c=this.filterManager)==null?void 0:c.getFilterModel())??{},e){const u=this.getAdvancedFilterColumns(n);Object.keys(r).forEach(f=>u.add(f)),i=Array.from(u)}else i=this.findChangedColumns(n,r);const o=this.listenerUtils.isSortingWithValueColumn(i),s=this.listenerUtils.isSortingWithSecondaryColumn(i),a={valueColChanged:o,secondaryColChanged:s,changedColumns:i};this.serverSideRowModel.refreshAfterFilter(r,a)}findChangedColumns(e,t){const n={};Object.keys(e).forEach(i=>n[i]=!0),Object.keys(t).forEach(i=>n[i]=!0);const r=[];return Object.keys(n).forEach(i=>{const o=JSON.stringify(e[i]),s=JSON.stringify(t[i]);o!=s&&r.push(i)}),r}getAdvancedFilterColumns(e){const t=new Set;if(!e)return t;const n=r=>{r.filterType==="join"?r.conditions.forEach(i=>n(i)):t.add(r.colId)};return n(e),t}},$1i=class extends ct{constructor(){super(...arguments),this.beanName="ssrmListenerUtils"}wireBeans(e){this.pivotResultColsService=e.pivotResultColsService,this.funcColsService=e.funcColsService}isSortingWithValueColumn(e){const t=this.funcColsService.getValueColumns().map(n=>n.getColId());for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1}isSortingWithSecondaryColumn(e){const t=this.pivotResultColsService.getPivotResultCols();if(!t)return!1;const n=t.list.map(r=>r.getColId());for(let r=0;r<e.length;r++)if(n.indexOf(e[r])>-1)return!0;return!1}},O1i=class extends ct{constructor(){super(...arguments),this.beanName="ssrmSortService"}wireBeans(e){this.sortController=e.sortController,this.serverSideRowModel=e.rowModel,this.listenerUtils=e.ssrmListenerUtils}postConstruct(){ml(this.gos)&&this.addManagedEventListeners({sortChanged:this.onSortChanged.bind(this)})}onSortChanged(){const e=this.serverSideRowModel.getParams();if(!e)return;const t=this.sortController.getSortModel(),n=e.sortModel,r=this.findChangedColumnsInSort(t,n),i=this.listenerUtils.isSortingWithValueColumn(r),o=this.listenerUtils.isSortingWithSecondaryColumn(r),s={valueColChanged:i,secondaryColChanged:o,changedColumns:r};this.serverSideRowModel.refreshAfterSort(t,s)}findChangedColumnsInSort(e,t){let n=[];[e,t].forEach(o=>{if(o){const s=o.map(a=>a.colId);n=n.concat(s)}});const r=(o,s)=>{const a=o?o.sort:null,l=s?s.sort:null;return a!==l},i=(o,s)=>{const a=o?t.indexOf(o):-1,l=s?e.indexOf(s):-1;return a!==l};return n.filter(o=>{const s=t.find(l=>l.colId===o),a=e.find(l=>l.colId===o);return r(s,a)||i(s,a)})}},T1i=class extends ct{constructor(){super(...arguments),this.beanName="ssrmNodeManager",this.rowNodes={}}addRowNode(e){const t=e.id;this.rowNodes[t]&&(rt(`Duplicate node id ${e.id}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`),rt("first instance",this.rowNodes[t].data),rt("second instance",e.data)),this.rowNodes[t]=e}removeNode(e){const t=e.id;this.rowNodes[t]&&(this.rowNodes[t]=void 0)}destroy(){this.clear(),super.destroy()}clear(){this.rowNodes={},super.destroy()}},wfe=class extends pli{constructor(e,t,n){super(0),this.nodeIdSequence=new ad,this.info={},this.ssrmParams=e,this.parentRowNode=n,this.level=n.level+1,this.groupLevel=e.rowGroupCols?this.level<e.rowGroupCols.length:void 0,this.leafGroup=e.rowGroupCols?this.level===e.rowGroupCols.length-1:!1}wireBeans(e){this.storeUtils=e.ssrmStoreUtils,this.blockUtils=e.ssrmBlockUtils,this.funcColsService=e.funcColsService,this.rowNodeBlockLoader=e.rowNodeBlockLoader,this.rowNodeSorter=e.rowNodeSorter,this.sortController=e.sortController,this.selectionService=e.selectionService,this.nodeManager=e.ssrmNodeManager,this.filterManager=e.filterManager,this.transactionManager=e.ssrmTransactionManager,this.serverSideRowModel=e.rowModel}postConstruct(){if(this.usingTreeData=this.gos.get("treeData"),this.nodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.parentRowNode),!this.usingTreeData&&this.groupLevel){const r=this.ssrmParams.rowGroupCols[this.level];this.groupField=r.field,this.rowGroupColumn=this.funcColsService.getRowGroupColumns()[this.level]}let e=1;const t=this.parentRowNode.level===-1,n=this.storeUtils.getServerSideInitialRowCount();t&&n!=null&&(e=n),this.initialiseRowNodes(e),this.rowNodeBlockLoader.addBlock(this),this.addDestroyFunc(()=>this.rowNodeBlockLoader.removeBlock(this)),this.postSortFunc=this.gos.getCallback("postSortRows"),n!=null&&this.eventService.dispatchEventOnce({type:"rowCountReady"})}destroy(){this.destroyRowNodes(),super.destroy()}destroyRowNodes(){this.blockUtils.destroyRowNodes(this.allRowNodes),this.allRowNodes=[],this.nodesAfterSort=[],this.nodesAfterFilter=[],this.allNodesMap={}}initialiseRowNodes(e,t=!1){this.destroyRowNodes();for(let n=0;n<e;n++){const r=this.blockUtils.createRowNode({field:this.groupField,group:this.groupLevel,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn});t&&(r.failedLoad=!0),this.allRowNodes.push(r),this.nodesAfterFilter.push(r),this.nodesAfterSort.push(r)}}getBlockStateJson(){return{id:this.nodeIdPrefix?this.nodeIdPrefix:"",state:this.getState()}}loadFromDatasource(){this.storeUtils.loadFromDatasource({startRow:void 0,endRow:void 0,parentBlock:this,parentNode:this.parentRowNode,storeParams:this.ssrmParams,success:this.success.bind(this,this.getVersion()),fail:this.pageLoadFailed.bind(this,this.getVersion())})}getStartRow(){return 0}getEndRow(){return this.nodesAfterSort.length}createDataNode(e,t){const n=this.blockUtils.createRowNode({field:this.groupField,group:this.groupLevel,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn});t!=null?Ex(this.allRowNodes,n,t):this.allRowNodes.push(n);const r=this.prefixId(this.nodeIdSequence.next());return this.blockUtils.setDataIntoRowNode(n,e,r,void 0),this.nodeManager.addRowNode(n),this.blockUtils.checkOpenByDefault(n),this.allNodesMap[n.id]=n,n}prefixId(e){return this.nodeIdPrefix?this.nodeIdPrefix+"-"+e:e.toString()}processServerFail(){this.initialiseRowNodes(1,!0),this.fireStoreUpdatedEvent(),this.flushAsyncTransactions()}processServerResult(e){if(!this.isAlive())return;const t=e.groupLevelInfo;t&&Object.assign(this.info,t),e.pivotResultFields&&this.serverSideRowModel.generateSecondaryColumns(e.pivotResultFields);const n=this.allRowNodes.length>0?this.allNodesMap:void 0;this.allRowNodes=[],this.nodesAfterSort=[],this.nodesAfterFilter=[],this.allNodesMap={},e.rowData||rt('"params.data" is missing from Server-Side Row Model success() callback. Please use the "data" attribute. If no data is returned, set an empty list.'),this.createOrRecycleNodes(n,e.rowData),n&&this.blockUtils.destroyRowNodes(c3(n)),this.level===0&&this.eventService.dispatchEventOnce({type:"rowCountReady"}),this.filterAndSortNodes(),this.fireStoreUpdatedEvent(),this.flushAsyncTransactions()}createOrRecycleNodes(e,t){if(!t)return;const n=i=>{if(!e)return;const o=U0(this.gos);if(!o)return;const s=this.parentRowNode.getRoute()??[],a=this.level,l=o({data:i,parentKeys:s.length>0?s:void 0,level:a}),c=e[l];if(c)return delete e[l],c},r=(i,o)=>{this.allNodesMap[i.id]=i,this.blockUtils.updateDataIntoRowNode(i,o),this.allRowNodes.push(i)};t.forEach(i=>{const o=n(i);o?r(o,i):this.createDataNode(i)})}flushAsyncTransactions(){window.setTimeout(()=>this.transactionManager.flushAsyncTransactions(),0)}filterAndSortNodes(){this.filterRowNodes(),this.sortRowNodes()}sortRowNodes(){const e=this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerSideSortOnServer(),t=this.sortController.getSortOptions(),n=!t||t.length==0;if(e||n){this.nodesAfterSort=this.nodesAfterFilter;return}if(this.nodesAfterSort=this.rowNodeSorter.doFullSort(this.nodesAfterFilter,t),this.postSortFunc){const r={nodes:this.nodesAfterSort};this.postSortFunc(r)}}filterRowNodes(){const e=!this.storeUtils.isServerSideOnlyRefreshFilteredGroups()||this.storeUtils.isServerSideFilterOnServer(),t=this.groupLevel;if(e||t){this.nodesAfterFilter=this.allRowNodes;return}this.nodesAfterFilter=this.filterManager?this.allRowNodes.filter(n=>this.filterManager.doesRowPassFilter({rowNode:n})):this.allRowNodes}clearDisplayIndexes(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.allRowNodes.forEach(e=>this.blockUtils.clearDisplayIndex(e))}getDisplayIndexEnd(){return this.displayIndexEnd}isDisplayIndexInStore(e){return this.getRowCount()===0?!1:e>=this.displayIndexStart&&e<this.displayIndexEnd}setDisplayIndexes(e,t,n){this.displayIndexStart=e.peek(),this.topPx=t.value;const r={};this.nodesAfterSort.forEach(i=>{this.blockUtils.setDisplayIndex(i,e,t,n),r[i.id]=!0}),this.allRowNodes.forEach(i=>{r[i.id]||this.blockUtils.clearDisplayIndex(i)}),this.displayIndexEnd=e.peek(),this.heightPx=t.value-this.topPx}forEachStoreDeep(e,t=new ad){e(this,t.next()),this.allRowNodes.forEach(n=>{const r=n.childStore;r&&r.forEachStoreDeep(e,t)})}forEachNodeDeep(e,t=new ad){this.allRowNodes.forEach(n=>{e(n,t.next());const r=n.childStore;r&&r.forEachNodeDeep(e,t)})}forEachNodeDeepAfterFilterAndSort(e,t=new ad,n=!1){this.nodesAfterSort.forEach(r=>{e(r,t.next());const i=r.childStore;i&&i.forEachNodeDeepAfterFilterAndSort(e,t,n)}),n&&this.parentRowNode.sibling&&e(this.parentRowNode.sibling,t.next())}getRowUsingDisplayIndex(e){return this.isDisplayIndexInStore(e)?this.blockUtils.binarySearchForDisplayIndex(e,this.nodesAfterSort):void 0}getRowBounds(e){for(let t=0;t<this.nodesAfterSort.length;t++){const n=this.nodesAfterSort[t],r=this.blockUtils.extractRowBounds(n,e);if(r)return r}return null}isPixelInRange(e){return e>=this.topPx&&e<this.topPx+this.heightPx}getRowIndexAtPixel(e){if(e<=this.topPx)return this.nodesAfterSort[0].rowIndex;if(e>=this.topPx+this.heightPx){const o=this.nodesAfterSort[this.nodesAfterSort.length-1];if(!o)return null;const s=o.rowTop+o.rowHeight;if(e>=s&&o.expanded){if(o.childStore&&o.childStore.getRowCount()>0)return o.childStore.getRowIndexAtPixel(e);if(o.detailNode)return o.detailNode.rowIndex}return o.rowIndex}let r=null;return this.nodesAfterSort.forEach(o=>{const s=this.blockUtils.getIndexAtPixel(o,e);s!=null&&(r=s)}),r??this.displayIndexEnd-1}getChildStore(e){return this.storeUtils.getChildStore(e,this,t=>this.allRowNodes.find(r=>r.key==t))}forEachChildStoreShallow(e){this.allRowNodes.forEach(t=>{const n=t.childStore;n&&e(n)})}refreshAfterFilter(e){const t=this.storeUtils.isServerSideFilterOnServer(),n=this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e);if(!this.storeUtils.isServerSideOnlyRefreshFilteredGroups()||t&&n){this.refreshStore(!0),this.sortRowNodes();return}this.filterRowNodes(),this.sortRowNodes(),this.forEachChildStoreShallow(i=>i.refreshAfterFilter(e))}refreshAfterSort(e){const t=this.storeUtils.isServerSideSortOnServer(),n=this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e);if(this.storeUtils.isServerSideSortAllLevels()||t&&n){this.refreshStore(!0),this.filterRowNodes();return}this.filterRowNodes(),this.sortRowNodes(),this.forEachChildStoreShallow(i=>i.refreshAfterSort(e))}applyTransaction(e){switch(this.getState()){case"failed":return{status:fc.StoreLoadingFailed};case"loading":return{status:fc.StoreLoading};case"needsLoading":return{status:fc.StoreWaitingToLoad}}const t=this.gos.getCallback("isApplyServerSideTransaction");if(t){const i={transaction:e,parentNode:this.parentRowNode,groupLevelInfo:this.info};if(!t(i))return{status:fc.Cancelled}}const n={status:fc.Applied,remove:[],update:[],add:[]},r=[];return this.executeAdd(e,n),this.executeRemove(e,n,r),this.executeUpdate(e,n,r),this.filterAndSortNodes(),this.updateSelection(r),n}updateSelection(e){e.length>0&&(this.selectionService.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,clearSelection:!1,source:"rowDataChanged"}),this.eventService.dispatchEvent({type:"selectionChanged",source:"rowDataChanged"}))}executeAdd(e,t){const{add:n,addIndex:r}=e;if(Es(n))return;typeof r=="number"&&r>=0?n.reverse().forEach(o=>{const s=this.createDataNode(o,r);t.add.push(s)}):n.forEach(o=>{const s=this.createDataNode(o);t.add.push(s)})}executeRemove(e,t,n){const{remove:r}=e;if(r==null)return;const i={};r.forEach(o=>{const s=this.lookupRowNode(o);s&&(s.isSelected()&&n.push(s),s.clearRowTopAndRowIndex(),i[s.id]=!0,delete this.allNodesMap[s.id],t.remove.push(s),this.nodeManager.removeNode(s))}),this.allRowNodes=this.allRowNodes.filter(o=>!i[o.id])}executeUpdate(e,t,n){const{update:r}=e;r!=null&&r.forEach(i=>{const o=this.lookupRowNode(i);o&&(this.blockUtils.updateDataIntoRowNode(o,i),!o.selectable&&o.isSelected()&&n.push(o),t.update.push(o))})}lookupRowNode(e){const t=U0(this.gos);if(t!=null){const n=this.parentRowNode.getRoute()??[],r=t({data:e,parentKeys:n.length>0?n:void 0,level:this.level}),i=this.allNodesMap[r];return i||(Mr(`could not find row id=${r}, data item was not found for this id`),null)}else{const n=this.allRowNodes.find(r=>r.data===e);return n||(Mr("could not find data item as object was not found",e),null)}}addStoreStates(e){e.push({suppressInfiniteScroll:!0,route:this.parentRowNode.getRoute()??[],rowCount:this.allRowNodes.length,info:this.info}),this.forEachChildStoreShallow(t=>t.addStoreStates(e))}refreshStore(e){if(e){const t=this.nodesAfterSort?this.nodesAfterSort.length:1;this.initialiseRowNodes(t)}this.scheduleLoad(),this.fireStoreUpdatedEvent()}retryLoads(){this.getState()==="failed"&&(this.initialiseRowNodes(1),this.scheduleLoad()),this.forEachChildStoreShallow(e=>e.retryLoads())}scheduleLoad(){this.setStateWaitingToLoad(),this.rowNodeBlockLoader.checkBlockToLoad()}fireStoreUpdatedEvent(){this.eventService.dispatchEvent({type:"storeUpdated"})}getRowCount(){return this.nodesAfterSort.length}getTopLevelRowDisplayedIndex(e){return this.nodesAfterSort[e].rowIndex}isLastRowIndexKnown(){return this.getState()=="loaded"}getRowNodesInRange(e,t){const n=[];let r=!1;return ar(e)&&(r=!0),this.nodesAfterSort.forEach(o=>{const s=o===e||o===t;(r||s)&&n.push(o),s&&(r=!r)}),r?[]:n}getStoreBounds(){return{topPx:this.topPx,heightPx:this.heightPx}}},M6e=class extends ct{constructor(){super(...arguments),this.beanName="lazyBlockLoadingService",this.cacheLoadingNodesMap=new Map,this.isCheckQueued=!1,this.nextBlockToLoad=void 0}wireBeans(e){this.rowNodeBlockLoader=e.rowNodeBlockLoader,this.rowRenderer=e.rowRenderer,this.rowModel=e.rowModel}postConstruct(){this.addManagedListeners(this.rowNodeBlockLoader,{blockLoaded:()=>this.queueLoadCheck()})}subscribe(e){this.cacheLoadingNodesMap.set(e,new Set)}unsubscribe(e){this.cacheLoadingNodesMap.delete(e)}queueLoadCheck(){this.isCheckQueued||(this.isCheckQueued=!0,window.queueMicrotask(()=>{this.queueLoadAction(),this.isCheckQueued=!1}))}queueLoadAction(){const e=this.getBlockToLoad();if(!e)return;const t=this.nextBlockToLoad&&this.nextBlockToLoad.cache===e.cache&&this.nextBlockToLoad.index===e.index;if(!t&&(!this.nextBlockToLoad||!t)){this.nextBlockToLoad=e,window.clearTimeout(this.loaderTimeout);const n=Number(this.nextBlockToLoad.index),r=this.nextBlockToLoad.cache,i=e.index+e.cache.getBlockSize();this.loaderTimeout=window.setTimeout(()=>{r.isAlive()&&(this.loaderTimeout=void 0,this.attemptLoad(r,n,i),this.nextBlockToLoad=void 0)},this.gos.get("blockLoadDebounceMillis"))}}attemptLoad(e,t,n){const r=this.rowNodeBlockLoader.getAvailableLoadingCount();r!=null&&r===0||(this.rowNodeBlockLoader.registerLoads(1),this.executeLoad(e,t,n),this.queueLoadCheck())}executeLoad(e,t,n){var f;const r=e.getSsrmParams(),i={startRow:t,endRow:n,rowGroupCols:r.rowGroupCols,valueCols:r.valueCols,pivotCols:r.pivotCols,pivotMode:r.pivotMode,groupKeys:e.store.getParentNode().getRoute()??[],filterModel:r.filterModel,sortModel:r.sortModel},o=this.cacheLoadingNodesMap.get(e),s=()=>{for(let h=0;h<n-t;h++)o.delete(t+h)},a=()=>{for(let h=0;h<n-t;h++)o.add(t+h)},l=h=>{this.rowNodeBlockLoader.loadComplete(),e.onLoadSuccess(t,n-t,h),s()},c=()=>{this.rowNodeBlockLoader.loadComplete(),e.onLoadFailed(t,n-t),s()},u=this.gos.addGridCommonParams({request:i,success:l,fail:c,parentNode:e.store.getParentNode()});a(),(f=e.getSsrmParams().datasource)==null||f.getRows(u)}getBlockToLoad(){var a;const e=this.rowRenderer.getFirstVirtualRenderedRow(),t=this.rowRenderer.getLastVirtualRenderedRow();for(let l=e;l<=t;l++){const c=this.rowModel.getRow(l);if(!c)continue;const u=c.parent&&c.parent.childStore;if(!u||!(u instanceof wO))continue;const f=u.getCache(),h=f.getNodes().getBy("node",c);if(!h)continue;const g=this.cacheLoadingNodesMap.get(f);if(!(g!=null&&g.has(h.index))&&(c.__needsRefreshWhenVisible||c.stub&&!c.failedLoad))return{cache:f,index:f.getBlockStartIndex(h.index)}}let n=null,r=null,i=Number.MAX_SAFE_INTEGER;for(const l of this.cacheLoadingNodesMap.keys())l.getNodesToRefresh().forEach(u=>{if(u.rowIndex==null){r=u,n=l;return}const f=l.getNodes().getBy("node",u);if(!f)return;const h=this.cacheLoadingNodesMap.get(l);if(h!=null&&h.has(f.index))return;const g=Math.abs(e-u.rowIndex),p=Math.abs(u.rowIndex-t);g<i&&(r=u,i=g,n=l),p<i&&(r=u,i=p,n=l)});if(!n)return;const o=n,s=(a=o.getNodes().getBy("node",r))==null?void 0:a.index;return s==null?void 0:{cache:o,index:o.getBlockStartIndex(s)}}isRowLoading(e,t){var n;return((n=this.cacheLoadingNodesMap.get(e))==null?void 0:n.has(t))??!1}};M6e.DEFAULT_BLOCK_SIZE=100;var I1i=class{constructor(...e){if(e.length<1)throw new Error("AG Grid: At least one index must be provided.");this.indexes=e,this.maps=new Map(this.indexes.map(t=>[t,new Map]))}getSize(){return this.maps.get(this.indexes[0]).size}getBy(e,t){const n=this.maps.get(e);if(!n)throw new Error(`AG Grid: ${String(e)} not found`);return n.get(t)}set(e){this.indexes.forEach(t=>{const n=this.maps.get(t);if(!n)throw new Error(`AG Grid: ${String(t)} not found`);n.set(e[t],e)})}delete(e){this.indexes.forEach(t=>{const n=this.maps.get(t);if(!n)throw new Error(`AG Grid: ${String(t)} not found`);n.delete(e[t])})}clear(){this.maps.forEach(e=>e.clear())}getIterator(e){const t=this.maps.get(e);if(!t)throw new Error(`AG Grid: ${String(e)} not found`);return t.values()}forEach(e){const t=this.getIterator(this.indexes[0]);let n;for(;(n=t.next())&&!n.done;)e(n.value)}find(e){const t=this.getIterator(this.indexes[0]);let n;for(;(n=t.next())&&!n.done;)if(e(n.value))return n.value}filter(e){const t=this.getIterator(this.indexes[0]);let n;const r=[];for(;(n=t.next())&&!n.done;)e(n.value)&&r.push(n.value);return r}},moe=class extends ct{constructor(e,t,n,r){super(),this.live=!0,this.removedNodeCache=new Map,this.store=e,this.numberOfRows=t,this.isLastRowKnown=n,this.storeParams=r}wireBeans(e){this.rowRenderer=e.rowRenderer,this.blockUtils=e.ssrmBlockUtils,this.focusService=e.focusService,this.nodeManager=e.ssrmNodeManager,this.serverSideRowModel=e.rowModel,this.rowNodeSorter=e.rowNodeSorter,this.sortController=e.sortController,this.lazyBlockLoadingService=e.lazyBlockLoadingService}postConstruct(){this.lazyBlockLoadingService.subscribe(this),this.nodeMap=new I1i("index","id","node"),this.nodeDisplayIndexMap=new Map,this.nodesToRefresh=new Set,this.defaultNodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),this.getRowIdFunc=U0(this.gos),this.isMasterDetail=this.gos.get("masterDetail")}destroy(){this.lazyBlockLoadingService.unsubscribe(this),this.numberOfRows=0,this.nodeMap.forEach(e=>this.blockUtils.destroyRowNode(e.node)),this.nodeMap.clear(),this.nodeDisplayIndexMap.clear(),this.nodesToRefresh.clear(),this.live=!1,super.destroy()}getRowByDisplayIndex(e){var l,c,u,f,h;if(!this.store.isDisplayIndexInStore(e))return;const t=this.nodeDisplayIndexMap.get(e);if(t)return(t.stub||t.__needsRefreshWhenVisible)&&this.lazyBlockLoadingService.queueLoadCheck(),t;if(this.gos.get("groupHideOpenParents")||this.gos.get("groupAllowUnbalanced")){const g=this.nodeMap.find(p=>{var m;return!!((m=p.node.childStore)!=null&&m.isDisplayIndexInStore(e))});if(g)return(l=g.node.childStore)==null?void 0:l.getRowUsingDisplayIndex(e)}if(e===this.store.getDisplayIndexStart())return this.createStubNode(0,e);const r=this.nodeDisplayIndexMap.get(e-1);if(r){if(this.isMasterDetail&&r.master&&r.expanded)return r.detailNode;if(r.expanded&&((c=r.childStore)!=null&&c.isDisplayIndexInStore(e)))return(u=r.childStore)==null?void 0:u.getRowUsingDisplayIndex(e);const g=this.nodeMap.getBy("node",r);return this.createStubNode(g.index+1,e)}const i=this.getSurroundingNodesByDisplayIndex(e);if(i==null){const g=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(g,e)}const{previousNode:o,nextNode:s}=i;if(o&&o.node.expanded&&((f=o.node.childStore)!=null&&f.isDisplayIndexInStore(e)))return(h=o.node.childStore)==null?void 0:h.getRowUsingDisplayIndex(e);if(s){const g=s.node.rowIndex-e,p=s.index-g;return this.createStubNode(p,e)}const a=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(a,e)}createStubNode(e,t){const n=this.store.getRowBounds(t),r=this.createRowAtIndex(e,null,i=>{i.setRowIndex(t),i.setRowTop(n.rowTop),this.nodeDisplayIndexMap.set(t,i)});if(e===0&&this.gos.get("groupHideOpenParents")){const i=this.store.getParentNode().groupData;for(const o in i)r.setGroupValue(o,i[o])}return this.lazyBlockLoadingService.queueLoadCheck(),r}getRowByStoreIndex(e){var t;return(t=this.nodeMap.getBy("index",e))==null?void 0:t.node}skipDisplayIndexes(e,t,n){if(e===0)return;const r=W0(this.gos);t.skip(e),n.value+=e*r}setDisplayIndexes(e,t,n){this.nodeDisplayIndexMap.clear();const r={};this.nodeMap.forEach(s=>{r[s.index]=s.node});let i=-1;for(const s in r){const a=r[s],l=Number(s),c=l-1-i;this.skipDisplayIndexes(c,e,t);const u=l===0;if(a.setFirstChild(u),u&&this.gos.get("groupHideOpenParents")){const f=this.store.getParentNode().groupData;for(const h in f)a.setGroupValue(h,u?f[h]:void 0)}this.blockUtils.setDisplayIndex(a,e,t,n),a.rowIndex!=null&&this.nodeDisplayIndexMap.set(a.rowIndex,a),i=l}const o=this.numberOfRows-1-i;this.skipDisplayIndexes(o,e,t),this.purgeExcessRows()}getRowCount(){return this.numberOfRows}setRowCount(e,t){if(e<0)throw new Error("AG Grid: setRowCount can only accept a positive row count.");this.numberOfRows=e,t!=null&&(this.isLastRowKnown=t,t===!1&&(this.numberOfRows+=1)),this.fireStoreUpdatedEvent()}getNodes(){return this.nodeMap}getNodeCachedByDisplayIndex(e){return this.nodeDisplayIndexMap.get(e)??null}getNodesToRefresh(){return this.nodesToRefresh}getSurroundingNodesByDisplayIndex(e){let t,n;return this.nodeMap.forEach(r=>{if(e>r.node.rowIndex){(n==null||n.node.rowIndex<r.node.rowIndex)&&(n=r);return}if(t==null||t.node.rowIndex>r.node.rowIndex){t=r;return}}),!n&&!t?null:{previousNode:n,nextNode:t}}getDisplayIndexFromStoreIndex(e){var s;const t=this.nodeMap.getBy("index",e);if(t)return t.node.rowIndex;let n,r;if(this.nodeMap.forEach(a=>{if(e>a.index){(r==null||r.index<a.index)&&(r=a);return}if(n==null||n.index>a.index){n=a;return}}),!n)return this.store.getDisplayIndexEnd()-(this.numberOfRows-e);if(!r)return this.store.getDisplayIndexStart()+e;const i=e-r.index;return(((s=r.node.childStore)==null?void 0:s.getDisplayIndexEnd())??r.node.rowIndex)+i}createRowAtIndex(e,t,n){var o,s;const r=this.nodeMap.getBy("index",e);if(r){const{node:a}=r;if(a.__needsRefreshWhenVisible=!1,this.doesNodeMatch(t,a))return this.blockUtils.updateDataIntoRowNode(a,t),this.nodesToRefresh.delete(a),a;if(this.getRowIdFunc==null&&a.hasChildren()&&a.expanded)return this.nodesToRefresh.delete(a),a;this.destroyRowAtIndex(e)}if(t&&this.getRowIdFunc!=null){const a=this.getRowId(t),l=a&&((o=this.removedNodeCache)==null?void 0:o.get(a));if(l)return(s=this.removedNodeCache)==null||s.delete(a),this.blockUtils.updateDataIntoRowNode(l,t),this.nodeMap.set({id:l.id,node:l,index:e}),this.nodesToRefresh.delete(l),l.__needsRefreshWhenVisible=!1,l;const c=this.nodeMap.getBy("id",a);if(c){this.nodeMap.delete(c);const{node:u,index:f}=c;return this.blockUtils.updateDataIntoRowNode(u,t),this.nodeMap.set({id:u.id,node:u,index:e}),this.nodesToRefresh.delete(u),u.__needsRefreshWhenVisible=!1,this.getBlockStartIndex(f)===this.getBlockStartIndex(e)||this.markBlockForVerify(f),u}}const i=this.blockUtils.createRowNode(this.store.getRowDetails());if(t!=null){const a=this.getPrefixedId(this.store.getIdSequence().next());this.blockUtils.setDataIntoRowNode(i,t,a,void 0),this.serverSideRowModel.setPaused(!0),this.blockUtils.checkOpenByDefault(i),this.serverSideRowModel.setPaused(!1),this.nodeManager.addRowNode(i)}return this.nodeMap.set({id:i.id,node:i,index:e}),n&&n(i),i}getBlockStates(){const e={},t={};this.nodeMap.forEach(({node:o,index:s})=>{const a=this.getBlockStartIndex(s);!o.stub&&!o.failedLoad&&(e[a]=(e[a]??0)+1);let l="loaded";o.failedLoad?l="failed":this.lazyBlockLoadingService.isRowLoading(this,a)?l="loading":(this.nodesToRefresh.has(o)||o.stub)&&(l="needsLoading"),t[a]||(t[a]=new Set),t[a].add(l)});const n={loading:4,failed:3,needsLoading:2,loaded:1},r=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),i={};return Object.entries(t).forEach(([o,s])=>{const l=[...s].sort((f,h)=>(n[f]??0)-(n[h]??0))[0],c=Number(o)/this.getBlockSize(),u=r?`${r}-${c}`:String(c);i[u]={blockNumber:c,startRow:Number(o),endRow:Number(o)+this.getBlockSize(),pageStatus:l,loadedRowCount:e[o]??0}}),i}destroyRowAtIndex(e){const t=this.nodeMap.getBy("index",e);t&&(this.nodeMap.delete(t),this.nodeDisplayIndexMap.delete(t.node.rowIndex),this.nodesToRefresh.size>0?this.removedNodeCache.set(t.node.id,t.node):this.blockUtils.destroyRowNode(t.node),this.nodesToRefresh.delete(t.node))}getSsrmParams(){return this.store.getSsrmParams()}getPrefixedId(e){return this.defaultNodeIdPrefix?this.defaultNodeIdPrefix+"-"+e:e.toString()}markBlockForVerify(e){const[t,n]=this.getBlockBounds(e);this.nodeMap.filter(i=>i.index>=t&&i.index<n).forEach(({node:i})=>{i.__needsRefreshWhenVisible=!0})}doesNodeMatch(e,t){if(t.stub)return!1;const n=this.getRowId(e);return n===null?t.data===e:t.id===n}purgeStubsOutsideOfViewport(){const e=this.rowRenderer.getFirstVirtualRenderedRow(),t=this.rowRenderer.getLastVirtualRenderedRow(),n=this.getBlockStartIndex(e),[,r]=this.getBlockBounds(t);this.nodeMap.forEach(i=>{this.lazyBlockLoadingService.isRowLoading(this,i.index)||i.node.failedLoad||i.node.stub&&(i.index<n||i.index>r)&&this.destroyRowAtIndex(i.index)})}getBlocksDistanceFromRow(e,t){const n={};return e.forEach(({node:r,index:i})=>{const[o,s]=this.getBlockBounds(i);if(o in n)return;const a=Math.abs(r.rowIndex-t);let l;const c=this.nodeMap.getBy("index",[s-1]);c&&(l=Math.abs(c.node.rowIndex-t));const u=l==null||a<l?a:l;n[o]=u}),Object.entries(n)}purgeExcessRows(){if(this.purgeStubsOutsideOfViewport(),this.store.getDisplayIndexEnd()==null||this.storeParams.maxBlocksInCache==null)return;const e=this.rowRenderer.getFirstVirtualRenderedRow(),t=this.rowRenderer.getLastVirtualRenderedRow(),n=new Set,r=new Set;this.nodeMap.forEach(({index:g,node:p})=>{const m=this.getBlockStartIndex(g);n.add(m),p.rowIndex>=e&&p.rowIndex<=t&&r.add(m)});const i=Math.max(r.size,this.storeParams.maxBlocksInCache??0),s=n.size-i;if(s<=0)return;let a=Number.MAX_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;r.forEach(g=>{a>g&&(a=g),l<g&&(l=g)});const c=this.nodeMap.filter(({node:g,index:p})=>{const m=this.getBlockStartIndex(p);return!(m>=a&&m<=l)&&!this.isNodeCached(g)});if(c.length===0)return;const u=e+(t-e)/2,f=this.getBlocksDistanceFromRow(c,u),h=this.getBlockSize();f.sort((g,p)=>Math.sign(p[1]-g[1]));for(let g=0;g<Math.min(s,f.length);g++){const p=Number(f[g][0]);for(let m=p;m<p+h;m++){const v=this.nodeMap.getBy("index",m);!v||this.isNodeCached(v.node)||this.destroyRowAtIndex(m)}}}isNodeFocused(e){const t=this.focusService.getFocusCellToUseAfterRefresh();return!t||t.rowPinned!=null?!1:t.rowIndex===e.rowIndex}isNodeCached(e){const t=this.gos.get("groupAllowUnbalanced")&&e.key==="";return e.isExpandable()&&e.expanded||this.isNodeFocused(e)||t}extractDuplicateIds(e){if(this.getRowIdFunc==null)return[];const t=new Set,n=new Set;return e.forEach(r=>{const i=this.getRowId(r);if(t.has(i)){n.add(i);return}t.add(i)}),[...n]}onLoadSuccess(e,t,n){if(!this.live)return;const r=n.groupLevelInfo;if(this.store.setStoreInfo(r),this.getRowIdFunc!=null){const s=this.extractDuplicateIds(n.rowData);if(s.length>0){const a=s.join(", ");rt(`Unable to display rows as duplicate row ids (${a}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`),this.onLoadFailed(e,t);return}}n.pivotResultFields&&this.serverSideRowModel.generateSecondaryColumns(n.pivotResultFields);const i=this.nodesToRefresh.size>0;if(n.rowData.forEach((s,a)=>{var u;const l=e+a,c=this.nodeMap.getBy("index",l);if((u=c==null?void 0:c.node)!=null&&u.stub){this.createRowAtIndex(l,s);return}if(c&&this.doesNodeMatch(s,c.node)){this.blockUtils.updateDataIntoRowNode(c.node,s),this.nodesToRefresh.delete(c.node),c.node.__needsRefreshWhenVisible=!1;return}this.createRowAtIndex(l,s)}),n.rowCount!=null&&n.rowCount!==-1)this.numberOfRows=n.rowCount,this.isLastRowKnown=!0;else if(t>n.rowData.length)this.numberOfRows=e+n.rowData.length,this.isLastRowKnown=!0;else if(!this.isLastRowKnown){const s=e+n.rowData.length+1;s>this.numberOfRows&&(this.numberOfRows=s)}this.isLastRowKnown&&this.nodeMap.filter(a=>a.index>=this.numberOfRows).forEach(a=>this.destroyRowAtIndex(a.index)),this.fireStoreUpdatedEvent();const o=this.nodesToRefresh.size===0;i&&o&&this.fireRefreshFinishedEvent()}fireRefreshFinishedEvent(){this.nodesToRefresh.size===0&&(this.removedNodeCache.forEach(t=>{this.blockUtils.destroyRowNode(t)}),this.removedNodeCache=new Map,this.store.fireRefreshFinishedEvent())}isStoreFullyLoaded(){const e=this.isLastRowKnown,t=this.nodeMap.getSize()===this.numberOfRows;if(!e||!t||this.nodesToRefresh.size>0)return;let n=-1;return this.nodeMap.find(i=>(n+=1,!!(i.index!==n||i.node.__needsRefreshWhenVisible||i.node.stub)))==null}isLastRowIndexKnown(){return this.isLastRowKnown}onLoadFailed(e,t){if(!this.live)return;const n=this.nodesToRefresh.size>0;for(let i=e;i<e+t&&i<this.getRowCount();i++){let{node:o}=this.nodeMap.getBy("index",i)??{};o&&this.nodesToRefresh.delete(o),(!o||!o.stub)&&(o&&!o.stub&&this.destroyRowAtIndex(i),o=this.createRowAtIndex(i)),o.__needsRefreshWhenVisible=!1,o.failedLoad=!0}const r=this.nodesToRefresh.size===0;n&&r&&this.fireRefreshFinishedEvent(),this.fireStoreUpdatedEvent()}markNodesForRefresh(){this.nodeMap.forEach(e=>{e.node.stub&&!e.node.failedLoad||this.nodesToRefresh.add(e.node)}),this.lazyBlockLoadingService.queueLoadCheck(),this.isLastRowKnown&&this.numberOfRows===0&&(this.numberOfRows=1,this.isLastRowKnown=!1,this.fireStoreUpdatedEvent())}isNodeInCache(e){return!!this.nodeMap.getBy("id",e)}fireStoreUpdatedEvent(){this.live&&this.store.fireStoreUpdatedEvent()}getRowId(e){if(this.getRowIdFunc==null)return null;const{level:t}=this.store.getRowDetails(),n=this.store.getParentNode().getRoute()??[];return this.getRowIdFunc({data:e,parentKeys:n.length>0?n:void 0,level:t})}getOrderedNodeMap(){const e={};return this.nodeMap.forEach(t=>e[t.index]=t),e}clearDisplayIndexes(){this.nodeDisplayIndexMap.clear()}clientSideSortRows(){const e=this.sortController.getSortOptions();if(!e.some(i=>i.sort!=null))return;const n=new Array(this.nodeMap.getSize());this.nodeMap.forEach(i=>n[i.index]=i.node),this.nodeMap.clear(),this.rowNodeSorter.doFullSort(n,e).forEach((i,o)=>{this.nodeMap.set({id:i.id,node:i,index:o})})}updateRowNodes(e){if(this.getRowIdFunc==null)throw new Error("AG Grid: Transactions can only be applied when row ids are supplied.");const t=[];return e.forEach(n=>{const r=this.getRowId(n),i=this.nodeMap.getBy("id",r);i&&(this.blockUtils.updateDataIntoRowNode(i.node,n),t.push(i.node))}),t}insertRowNodes(e,t){const n=this.store.getRowCount()-(this.store.getParentNode().sibling?1:0),r=t==null&&this.isLastRowKnown?n:t;if(r==null||n<r)return[];if(this.getRowIdFunc==null)throw new Error("AG Grid: Transactions can only be applied when row ids are supplied.");const i={};e.forEach(l=>{const c=this.getRowId(l);c&&this.isNodeInCache(c)||(i[c]=l)});const o=Object.values(i),s=o.length;if(s===0)return[];const a=this.nodeMap.filter(l=>l.index>=r);return a.forEach(l=>this.nodeMap.delete(l)),a.forEach(l=>{this.nodeMap.set({node:l.node,index:l.index+s,id:l.id})}),this.numberOfRows+=s,o.map((l,c)=>this.createRowAtIndex(r+c,l))}removeRowNodes(e){if(this.getRowIdFunc==null)throw new Error("AG Grid: Transactions can only be applied when row ids are supplied.");const t=[],n=[];let r=0;const i=[...e],o=this.getOrderedNodeMap();let s=-1;for(const a in o){s+=1;const l=o[a],c=i.findIndex(f=>f===l.id);if(c!==-1){i.splice(c,1),this.destroyRowAtIndex(Number(a)),t.push(l.node),r+=1;continue}if(r===0)continue;const u=Number(a);s!==u&&n.push(l.node),this.nodeMap.delete(o[a]),this.nodeMap.set({id:l.id,node:l.node,index:u-r})}return this.numberOfRows-=this.isLastRowIndexKnown()?e.length:r,i.length>0&&n.length>0&&(n.forEach(a=>a.__needsRefreshWhenVisible=!0),this.lazyBlockLoadingService.queueLoadCheck()),t}getBlockSize(){return this.storeParams.cacheBlockSize||M6e.DEFAULT_BLOCK_SIZE}getBlockStartIndex(e){const t=this.getBlockSize();return e-e%t}getBlockBounds(e){const t=this.getBlockStartIndex(e),n=this.getBlockSize();return[t,t+n]}},wO=class extends ct{constructor(e,t,n){super(),this.idSequence=new ad,this.ssrmParams=e,this.parentRowNode=n,this.storeParams=t,this.level=n.level+1,this.group=e.rowGroupCols?this.level<e.rowGroupCols.length:!1,this.leafGroup=e.rowGroupCols?this.level===e.rowGroupCols.length-1:!1,this.info={}}wireBeans(e){this.blockUtils=e.ssrmBlockUtils,this.storeUtils=e.ssrmStoreUtils,this.selectionService=e.selectionService,this.funcColsService=e.funcColsService}postConstruct(){let e=1;if(this.level===0&&(e=this.storeUtils.getServerSideInitialRowCount()??1,this.eventService.dispatchEventOnce({type:"rowCountReady"})),this.cache=this.createManagedBean(new moe(this,e,!1,this.storeParams)),!this.gos.get("treeData")&&this.group){const n=this.ssrmParams.rowGroupCols[this.level];this.groupField=n.field,this.rowGroupColumn=this.funcColsService.getRowGroupColumns()[this.level]}}destroy(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.destroyBean(this.cache),super.destroy()}applyRowData(e,t,n){this.cache.onLoadSuccess(t,n,e)}applyTransaction(e){var u,f,h;const t=U0(this.gos);if(!t)return rt("getRowId callback must be implemented for transactions to work. Transaction was ignored."),{status:fc.Cancelled};const n=this.gos.getCallback("isApplyServerSideTransaction");if(n){const g={transaction:e,parentNode:this.parentRowNode,groupLevelInfo:this.info};if(!n(g))return{status:fc.Cancelled}}const r=this.cache.isStoreFullyLoaded();let i;(u=e.update)!=null&&u.length&&(i=this.cache.updateRowNodes(e.update));let o;if((f=e.add)!=null&&f.length){let g=e.addIndex;g!=null&&g<0&&(g=void 0),o=this.cache.insertRowNodes(e.add,g)}let s;if((h=e.remove)!=null&&h.length){const g=e.remove.map(m=>t({level:this.level,parentKeys:this.parentRowNode.getRoute()??[],data:m})),p=[...new Set(g)];s=this.cache.removeRowNodes(p)}const a=this.gos.get("serverSideEnableClientSideSort"),l=(i==null?void 0:i.length)||(o==null?void 0:o.length);return r&&a&&l&&this.cache.clientSideSortRows(),this.updateSelectionAfterTransaction(i,s),{status:fc.Applied,update:i,add:o,remove:s}}updateSelectionAfterTransaction(e,t){const n=[];e==null||e.forEach(r=>{r.isSelected()&&!r.selectable&&n.push(r)}),t==null||t.forEach(r=>{r.isSelected()&&n.push(r)}),n.length&&this.selectionService.setNodesSelected({newValue:!1,clearSelection:!1,nodes:n,source:"rowDataChanged"})}clearDisplayIndexes(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.cache.getNodes().forEach(e=>this.blockUtils.clearDisplayIndex(e.node)),this.parentRowNode.sibling&&this.blockUtils.clearDisplayIndex(this.parentRowNode.sibling),this.cache.clearDisplayIndexes()}getDisplayIndexStart(){return this.displayIndexStart}getDisplayIndexEnd(){return this.displayIndexEnd}getRowCount(){return this.parentRowNode.sibling?this.cache.getRowCount()+1:this.cache.getRowCount()}setRowCount(e,t){this.cache.setRowCount(e,t)}isDisplayIndexInStore(e){return this.cache.getRowCount()===0?!1:this.displayIndexStart<=e&&e<this.getDisplayIndexEnd()}setDisplayIndexes(e,t,n){this.displayIndexStart=e.peek(),this.topPx=t.value;const r=this.parentRowNode.level>-1&&Sx(this.gos)({node:this.parentRowNode});r||this.parentRowNode.destroyFooter(),r==="top"&&(this.parentRowNode.createFooter(),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,n)),this.cache.setDisplayIndexes(e,t,n),r==="bottom"&&(this.parentRowNode.createFooter(),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,n)),this.displayIndexEnd=e.peek(),this.heightPx=t.value-this.topPx}forEachStoreDeep(e,t=new ad){e(this,t.next()),this.cache.getNodes().forEach(n=>{const r=n.node.childStore;r&&r.forEachStoreDeep(e,t)})}forEachNodeDeep(e,t=new ad){this.cache.getNodes().forEach(n=>{e(n.node,t.next());const r=n.node.childStore;r&&r.forEachNodeDeep(e,t)})}forEachNodeDeepAfterFilterAndSort(e,t=new ad,n=!1){const r=this.parentRowNode.level>-1&&Sx(this.gos)({node:this.parentRowNode});r==="top"&&e(this.parentRowNode.sibling,t.next());const i=this.cache.getOrderedNodeMap();for(const o in i){const s=i[o];e(s.node,t.next());const a=s.node.childStore;a&&a.forEachNodeDeepAfterFilterAndSort(e,t,n)}r==="bottom"&&e(this.parentRowNode.sibling,t.next())}retryLoads(){this.cache.getNodes().forEach(({node:e})=>{e.failedLoad&&(e.failedLoad=!1,e.__needsRefreshWhenVisible=!0,e.stub=!0)}),this.forEachChildStoreShallow(e=>e.retryLoads()),this.fireStoreUpdatedEvent()}getRowUsingDisplayIndex(e){return this.parentRowNode.sibling&&e===this.parentRowNode.sibling.rowIndex?this.parentRowNode.sibling:this.cache.getRowByDisplayIndex(e)}getRowBounds(e){if(!this.isDisplayIndexInStore(e))return null;const t=this.cache.getNodeCachedByDisplayIndex(e);if(t){const a=this.blockUtils.extractRowBounds(t,e);if(a)return a}const{previousNode:n,nextNode:r}=this.cache.getSurroundingNodesByDisplayIndex(e)??{};if(n){const a=this.blockUtils.extractRowBounds(n.node,e);if(a!=null)return a}const i=W0(this.gos);if(r){const a=(r.node.rowIndex-e)*i;return{rowTop:r.node.rowTop-a,rowHeight:i}}const o=this.topPx+this.heightPx,s=(this.getDisplayIndexEnd()-e)*i;return{rowTop:o-s,rowHeight:i}}isPixelInRange(e){return e>=this.topPx&&e<this.topPx+this.heightPx}getRowIndexAtPixel(e){if(e<this.topPx)return this.getDisplayIndexStart();if(e>=this.topPx+this.heightPx)return this.getDisplayIndexEnd()-1;if(this.parentRowNode.sibling&&e>this.parentRowNode.sibling.rowTop&&e<this.parentRowNode.sibling.rowTop+this.parentRowNode.sibling.rowHeight)return this.parentRowNode.sibling.rowIndex;let t=Number.MAX_SAFE_INTEGER,n=null,r=Number.MAX_SAFE_INTEGER,i=null;if(this.cache.getNodes().forEach(({node:l})=>{const c=Math.abs(e-l.rowTop);if(l.rowTop<e){c<t&&(t=c,n=l);return}c<r&&(r=c,i=l)}),n=n,i=i,n){const l=this.blockUtils.getIndexAtPixel(n,e);if(l!=null)return l}const o=W0(this.gos);if(i){const l=i.rowTop,c=Math.ceil((l-e)/o);return i.rowIndex-c}const s=this.topPx+this.heightPx,a=Math.floor((s-e)/o);return this.getDisplayIndexEnd()-a}getChildStore(e){return this.storeUtils.getChildStore(e,this,t=>{const n=this.cache.getNodes().find(r=>r.node.key==t);return n?n.node:null})}forEachChildStoreShallow(e){this.cache.getNodes().forEach(({node:t})=>{t.childStore&&e(t.childStore)})}refreshAfterSort(e){if(this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){const n=this.cache.isStoreFullyLoaded(),r=this.gos.get("serverSideEnableClientSideSort");if(!(n&&r)){const o=this.cache.getRowCount(),s=this.cache.isLastRowIndexKnown();this.destroyBean(this.cache),this.cache=this.createManagedBean(new moe(this,o,s,this.storeParams));return}this.cache.clientSideSortRows()}this.forEachChildStoreShallow(n=>n.refreshAfterSort(e))}refreshAfterFilter(e){if(!this.storeUtils.isServerSideOnlyRefreshFilteredGroups()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){this.refreshStore(!0);return}this.forEachChildStoreShallow(n=>n.refreshAfterFilter(e))}refreshStore(e){if(e){this.destroyBean(this.cache),this.cache=this.createManagedBean(new moe(this,1,!1,this.storeParams)),this.fireStoreUpdatedEvent();return}this.cache.markNodesForRefresh()}getTopLevelRowDisplayedIndex(e){return this.cache.getDisplayIndexFromStoreIndex(e)??e}isLastRowIndexKnown(){return this.cache.isLastRowIndexKnown()}getRowNodesInRange(e,t){return this.cache.getNodes().filter(({node:n})=>n.rowIndex>=e.rowIndex&&n.rowIndex<=t.rowIndex).map(({node:n})=>n)}addStoreStates(e){e.push({suppressInfiniteScroll:!1,route:this.parentRowNode.getRoute()??[],rowCount:this.getRowCount(),lastRowIndexKnown:this.isLastRowIndexKnown(),info:this.info,maxBlocksInCache:this.storeParams.maxBlocksInCache,cacheBlockSize:this.storeParams.cacheBlockSize}),this.forEachChildStoreShallow(t=>t.addStoreStates(e))}getIdSequence(){return this.idSequence}getParentNode(){return this.parentRowNode}getRowDetails(){return{field:this.groupField,group:this.group,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn}}getSsrmParams(){return this.ssrmParams}setStoreInfo(e){e&&Object.assign(this.info,e)}fireStoreUpdatedEvent(){this.eventService.dispatchEvent({type:"storeUpdated"})}fireRefreshFinishedEvent(){this.eventService.dispatchEvent({type:"storeRefreshed",route:this.parentRowNode.getRoute()})}getBlockStates(){return this.cache.getBlockStates()}getStoreBounds(){return{topPx:this.topPx,heightPx:this.heightPx}}getCache(){return this.cache}},M1i=class extends ct{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=_a(this.onRowHeightChanged.bind(this),100),this.pauseStoreUpdateListening=!1,this.started=!1,this.managingPivotResultColumns=!1}wireBeans(e){this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.pivotResultColsService=e.pivotResultColsService,this.funcColsService=e.funcColsService,this.filterManager=e.filterManager,this.sortController=e.sortController,this.rowRenderer=e.rowRenderer,this.nodeManager=e.ssrmNodeManager,this.storeFactory=e.ssrmStoreFactory,this.beans=e,this.pivotColDefService=e.pivotColDefService}ensureRowHeightsValid(){return!1}start(){this.started=!0,this.updateDatasource()}destroyDatasource(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)}postConstruct(){const e=this.resetRootStore.bind(this);this.addManagedEventListeners({newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.onStoreUpdated.bind(this),columnValueChanged:e,columnPivotChanged:e,columnRowGroupChanged:e,columnPivotModeChanged:e}),this.addManagedPropertyListeners(["masterDetail","treeData","removePivotHeaderRowWhenSingleValueColumn","suppressServerSideInfiniteScroll","cacheBlockSize"],e),this.addManagedPropertyListener("groupAllowUnbalanced",()=>this.onStoreUpdated()),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights()),this.verifyProps(),this.addManagedPropertyListener("serverSideDatasource",()=>this.updateDatasource())}updateDatasource(){const e=this.gos.get("serverSideDatasource");e&&this.setDatasource(e)}verifyProps(){this.gos.exists("initialGroupOrderComparator")&&rt("initialGroupOrderComparator cannot be used with Server Side Row Model."),pI(this.gos)&&!this.gos.exists("getRowId")&&rt("getRowId callback must be provided for Server Side Row Model selection to work correctly.")}setDatasource(e){this.started&&(this.destroyDatasource(),this.datasource=e,this.resetRootStore())}applyRowData(e,t,n){const r=this.getRootStore();if(!r)return;const i=r.getChildStore(n);i&&(i instanceof wO?i.applyRowData(e,t,e.rowData.length):i instanceof wfe&&i.processServerResult(e))}isLastRowIndexKnown(){const e=this.getRootStore();return e?e.isLastRowIndexKnown():!1}onColumnEverything(){if(!this.storeParams){this.resetRootStore();return}const e=this.columnsToValueObjects(this.funcColsService.getRowGroupColumns()),t=this.columnsToValueObjects(this.funcColsService.getValueColumns()),n=this.columnsToValueObjects(this.funcColsService.getPivotColumns()),r=c=>{const u={};c.oldCols.forEach(g=>u[g.id]=g);const f=c.newCols.every(g=>{const p=u[g.id];return p&&delete u[g.id],p&&p.field===g.field&&p.aggFunc===g.aggFunc}),h=!c.allowRemovedColumns&&!!Object.values(u).length;return f&&!h},i=!gI(this.storeParams.sortModel,this.sortController.getSortModel()),o=!r({oldCols:this.storeParams.rowGroupCols,newCols:e}),s=!r({oldCols:this.storeParams.pivotCols,newCols:n}),a=!!(e!=null&&e.length)&&!r({oldCols:this.storeParams.valueCols,newCols:t,allowRemovedColumns:!0});if(i||o||s||a)this.resetRootStore();else{const c=this.createStoreParams();this.storeParams.rowGroupCols=c.rowGroupCols,this.storeParams.pivotCols=c.pivotCols,this.storeParams.valueCols=c.valueCols}}destroyRootStore(){!this.rootNode||!this.rootNode.childStore||(this.rootNode.childStore=this.destroyBean(this.rootNode.childStore),this.nodeManager.clear())}refreshAfterSort(e,t){this.storeParams&&(this.storeParams.sortModel=e);const n=this.getRootStore();n&&(n.refreshAfterSort(t),this.onStoreUpdated())}generateSecondaryColumns(e){if(!this.pivotColDefService){this.gos.assertModuleRegistered(rr.RowGroupingModule,"pivotResultFields");return}const t=this.pivotColDefService.createColDefsFromFields(e);this.managingPivotResultColumns=!0,this.pivotResultColsService.setPivotResultCols(t,"rowModelUpdated")}resetRowHeights(){const e=this.resetRowHeightsForAllRowNodes(),t=kl(this.gos,this.rootNode);if(this.rootNode.setRowHeight(t.height,t.estimated),this.rootNode.sibling){const n=kl(this.gos,this.rootNode.sibling);this.rootNode.sibling.setRowHeight(n.height,n.estimated)}e&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{const n=kl(this.gos,t);t.setRowHeight(n.height,n.estimated);const r=t.detailNode;if(r){const i=kl(this.gos,r);r.setRowHeight(i.height,i.estimated)}if(t.sibling){const i=kl(this.gos,t.sibling);r.setRowHeight(i.height,i.estimated)}e=!0}),e}resetRootStore(){this.destroyRootStore(),this.rootNode=new vu(this.beans),this.rootNode.group=!0,this.rootNode.level=-1,this.datasource&&(this.storeParams=this.createStoreParams(),this.rootNode.childStore=this.createBean(this.storeFactory.createStore(this.storeParams,this.rootNode)),this.updateRowIndexesAndBounds()),this.managingPivotResultColumns&&(this.pivotResultColsService.setPivotResultCols(null,"api"),this.managingPivotResultColumns=!1),this.dispatchModelUpdated(!0)}columnsToValueObjects(e){return e.map(t=>({id:t.getId(),aggFunc:t.getAggFunc(),displayName:this.columnNameService.getDisplayNameForColumn(t,"model"),field:t.getColDef().field}))}createStoreParams(){var o,s,a;const e=this.columnsToValueObjects(this.funcColsService.getRowGroupColumns()),t=this.columnsToValueObjects(this.funcColsService.getValueColumns()),n=this.columnsToValueObjects(this.funcColsService.getPivotColumns()),r=I3e(this.gos);return{valueCols:t,rowGroupCols:e,pivotCols:n,pivotMode:this.columnModel.isPivotMode(),filterModel:(o=this.filterManager)!=null&&o.isAdvancedFilterEnabled()?(s=this.filterManager)==null?void 0:s.getAdvancedFilterModel():((a=this.filterManager)==null?void 0:a.getFilterModel())??{},sortModel:this.sortController.getSortModel(),datasource:this.datasource,lastAccessedSequence:new ad,dynamicRowHeight:r}}getParams(){return this.storeParams}dispatchModelUpdated(e=!1){this.eventService.dispatchEvent({type:"modelUpdated",animate:!e,keepRenderedRows:!e,newPage:!1,newData:!1})}onStoreUpdated(){this.pauseStoreUpdateListening||(this.updateRowIndexesAndBounds(),this.dispatchModelUpdated())}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}onRowHeightChanged(){this.updateRowIndexesAndBounds(),this.dispatchModelUpdated()}updateRowIndexesAndBounds(){const e=this.getRootStore();e&&e.setDisplayIndexes(new ad,{value:0},0)}retryLoads(){const e=this.getRootStore();e&&(e.retryLoads(),this.onStoreUpdated())}getRow(e){const t=this.getRootStore();if(t)return t.getRowUsingDisplayIndex(e)}setPaused(e){this.pauseStoreUpdateListening=e}expandAll(e){this.pauseStoreUpdateListening=!0,this.forEachNode(t=>{t.stub||t.hasChildren()&&t.setExpanded(e)}),this.pauseStoreUpdateListening=!1,this.onStoreUpdated()}refreshAfterFilter(e,t){this.storeParams&&(this.storeParams.filterModel=e);const n=this.getRootStore();n&&(n.refreshAfterFilter(t),this.onStoreUpdated())}getRootStore(){if(this.rootNode&&this.rootNode.childStore)return this.rootNode.childStore}getRowCount(){const e=this.getRootStore();return e?e.getDisplayIndexEnd():0}getTopLevelRowCount(){const e=this.getRootStore();return e?e.getRowCount():1}getTopLevelRowDisplayedIndex(e){const t=this.getRootStore();return t?t.getTopLevelRowDisplayedIndex(e):e}getRowBounds(e){const t=this.getRootStore();return t?t.getRowBounds(e):{rowTop:0,rowHeight:W0(this.gos)}}getBlockStates(){const e=this.getRootStore();if(!e)return;const t={};return e.forEachStoreDeep(n=>{if(n instanceof wfe){const{id:r,state:i}=n.getBlockStateJson();t[r]=i}else if(n instanceof wO)Object.entries(n.getBlockStates()).forEach(([r,i])=>{t[r]=i});else throw new Error("AG Grid: Unsupported store type")}),t}getRowIndexAtPixel(e){const t=this.getRootStore();return e<=0||!t?0:t.getRowIndexAtPixel(e)}isEmpty(){return!1}isRowsToRender(){return this.getRootStore()!=null&&this.getRowCount()>0}getType(){return"serverSide"}forEachNode(e){const t=this.getRootStore();t&&t.forEachNodeDeep(e)}forEachNodeAfterFilterAndSort(e,t=!1){const n=this.getRootStore();n&&n.forEachNodeDeepAfterFilterAndSort(e,void 0,t)}executeOnStore(e,t){if(!this.started)return!1;const n=this.getRootStore();if(!n)return!0;const r=n.getChildStore(e);return r&&t(r),!0}refreshStore(e={}){const t=e.route?e.route:[];this.executeOnStore(t,n=>n.refreshStore(e.purge==!0))}getStoreState(){const e=[],t=this.getRootStore();return t&&t.addStoreStates(e),e}getNodesInRangeForSelection(e,t){const n=e.rowIndex,r=t.rowIndex;if(n===null&&r===null)return[];if(r===null)return e?[e]:[];if(n===null)return[t];const i=[],[o,s]=[n,r].sort((a,l)=>a-l);return this.forEachNode(a=>{const l=a.rowIndex;l==null||a.stub||l>=o&&l<=s&&i.push(a)}),i.length!==s-o+1?e?[e,t]:[]:i}getRowNode(e){let t;return this.forEachNode(n=>{n.id===e&&(t=n),n.detailNode&&n.detailNode.id===e&&(t=n.detailNode)}),t}isRowPresent(e){return!!this.getRowNode(e.id)}setRowCount(e,t){const n=this.getRootStore();if(n){if(n instanceof wO){n.setRowCount(e,t);return}Mr("Infinite scrolling must be enabled in order to set the row count.")}}destroy(){this.destroyDatasource(),this.destroyRootStore(),super.destroy()}};function P1i(e){return e.selectionService.getSelectionState()}function _1i(e,t){e.selectionService.setSelectionState(t,"api")}function A1i(e,t){var n;return(n=e.ssrmTransactionManager)==null?void 0:n.applyTransaction(t)}function D1i(e,t){var i,o;const n=t.startRow??0,r=t.route??[];if(n<0){rt(`invalid value ${t.startRow} for startRow, the value should be >= 0`);return}(o=(i=e.rowModelHelperService)==null?void 0:i.getServerSideRowModel())==null||o.applyRowData(t.successParams,n,r)}function L1i(e,t,n){var r;return(r=e.ssrmTransactionManager)==null?void 0:r.applyTransactionAsync(t,n)}function F1i(e){var t,n;(n=(t=e.rowModelHelperService)==null?void 0:t.getServerSideRowModel())==null||n.retryLoads()}function N1i(e){var t;return(t=e.ssrmTransactionManager)==null?void 0:t.flushAsyncTransactions()}function k1i(e,t){var n,r;(r=(n=e.rowModelHelperService)==null?void 0:n.getServerSideRowModel())==null||r.refreshStore(t)}function z1i(e){var t,n;return((n=(t=e.rowModelHelperService)==null?void 0:t.getServerSideRowModel())==null?void 0:n.getStoreState())??[]}var B1i=class extends Oht{constructor(){super(...arguments),this.beanName="expansionService",this.queuedRowIds=new Set}wireBeans(e){super.wireBeans(e),this.serverSideRowModel=e.rowModel}postConstruct(){super.postConstruct(),this.addManagedEventListeners({columnRowGroupChanged:()=>{this.queuedRowIds.clear()}})}checkOpenByDefault(e){if(!e.isExpandable())return;if(this.queuedRowIds.has(e.id)){this.queuedRowIds.delete(e.id),e.setExpanded(!0);return}const t=this.gos.getCallback("isServerSideGroupOpenByDefault");if(!t)return;const n={data:e.data,rowNode:e};t(n)&&e.setExpanded(!0)}expandRows(e){e.forEach(t=>{const n=this.serverSideRowModel.getRowNode(t);n?n.setExpanded(!0):this.queuedRowIds.add(t)})}expandAll(e){this.serverSideRowModel.expandAll(e)}onGroupExpandedOrCollapsed(){}},Fgt=class{constructor(){this.root=null,this.end=null,this.cachedRange=[]}init(e){this.rowModel=e}reset(){this.root=null,this.end=null,this.cachedRange.length=0}setRoot(e){this.root=e,this.end=null,this.cachedRange.length=0}setEndRange(e){this.end=e,this.cachedRange.length=0}getRoot(){return this.root}getRange(){if(this.cachedRange.length===0){const e=this.root?this.rowModel.getRowNode(this.root):void 0,t=this.end?this.rowModel.getRowNode(this.end):void 0;if(e==null||t==null)return this.cachedRange;this.cachedRange=this.rowModel.getNodesInRangeForSelection(e,t)}return this.cachedRange}isInRange(e){return this.root===null?!1:this.getRange().some(t=>t.id===e)}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const n=t[0].id===this.root,r=t.findIndex(i=>i.id===e);if(r>-1){const i=t.slice(0,r),o=t.slice(r+1);return this.setEndRange(e),n?{keep:i,discard:o}:{keep:o,discard:i}}else return{keep:t,discard:[]}}extend(e,t=!1){if(this.root==null){const o=this.getRange().slice(),s=this.rowModel.getRowNode(e);return s&&(t&&s.depthFirstSearch(a=>!a.group&&o.push(a)),o.push(s)),this.setRoot(e),{keep:o,discard:[]}}const n=this.rowModel.getRowNode(e),r=this.rowModel.getRowNode(this.root);if(n==null)return{keep:this.getRange(),discard:[]};if(r==null)return{keep:this.getRange().concat(n),discard:[]};if(this.rowModel.getNodesInRangeForSelection(r,n).find(o=>o.id===this.end))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const o=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:o}}}},voe=class extends ct{constructor(){super(...arguments),this.selectionCtx=new Fgt,this.selectedState={selectAll:!1,toggledNodes:new Set},this.selectAllUsed=!1,this.selectedNodes={}}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.selectionCtx.init(this.rowModel)}getSelectedState(){return{selectAll:this.selectedState.selectAll,toggledNodes:[...this.selectedState.toggledNodes]}}setSelectedState(e){const t={selectAll:!1,toggledNodes:new Set};if(typeof e!="object")return Mr("The provided selection state should be an object.");if(!("selectAll"in e))return Mr("Invalid selection state. The state must conform to `IServerSideSelectionState`.");if(typeof e.selectAll=="boolean")t.selectAll=e.selectAll;else return Mr("selectAll must be of boolean type.");if("toggledNodes"in e&&Array.isArray(e.toggledNodes))e.toggledNodes.forEach(r=>{typeof r=="string"?t.toggledNodes.add(r):rt(`Provided ids must be of string type. Invalid id provided: ${r}`)});else return rt("`toggledNodes` must be an array of string ids.");const n=t.selectAll||t.toggledNodes.size>1;if(P3e(this.gos)&&!xx(this.gos)&&n)return rt("cannot multi select unless selection mode is 'multiRow'");this.selectedState=t}deleteSelectionStateFromParent(e,t){if(this.selectedState.toggledNodes.size===0)return!1;let n=!1;return t.forEach(r=>{this.selectedState.toggledNodes.delete(r)&&(n=!0)}),n}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(e){const{nodes:t,clearSelection:n,newValue:r,rangeSelect:i,source:o}=e;if(t.length===0)return 0;const s=n&&r&&!i;if(!xx(this.gos)||s){if(t.length>1)throw new Error("AG Grid: cannot select multiple rows when rowSelection.mode is set to 'singleRow'");const l=t[0];return r&&l.selectable?(this.selectedNodes={[l.id]:l},this.selectedState={selectAll:!1,toggledNodes:new Set([l.id])}):(this.selectedNodes={},this.selectedState={selectAll:!1,toggledNodes:new Set}),l.selectable&&this.selectionCtx.setRoot(l.id),1}const a=(l,c=r)=>{c&&l.selectable?this.selectedNodes[l.id]=l:delete this.selectedNodes[l.id],c===this.selectedState.selectAll||!l.selectable?this.selectedState.toggledNodes.delete(l.id):this.selectedState.toggledNodes.add(l.id)};if(i){if(t.length>1)throw new Error("AG Grid: cannot select multiple rows when using rangeSelect");const l=t[0],c=this.overrideSelectionValue(r,o);if(this.selectionCtx.isInRange(l.id)){const u=this.selectionCtx.truncate(l.id);c&&u.discard.forEach(f=>a(f,!1)),u.keep.forEach(f=>a(f,c))}else if(this.selectionCtx.getRoot()!==l.id){const h=this.selectionCtx.extend(l.id);c&&h.discard.forEach(g=>a(g,!1)),h.keep.forEach(g=>a(g,c))}return 1}return t.forEach(l=>a(l)),this.selectionCtx.setRoot(Dn(t).id),1}processNewRow(e){this.selectedNodes[e.id]&&(this.selectedNodes[e.id]=e)}isNodeSelected(e){const t=this.selectedState.toggledNodes.has(e.id);return this.selectedState.selectAll?!t:t}getSelectedNodes(){return this.selectAllUsed&&rt("getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model.\n Use `api.getServerSideSelectionState()` instead."),Object.values(this.selectedNodes)}getSelectedRows(){return this.getSelectedNodes().map(e=>e.data)}getSelectionCount(){return this.selectedState.selectAll?-1:this.selectedState.toggledNodes.size}clearOtherNodes(e,t){const n=this.selectedState.selectAll?1:this.selectedState.toggledNodes.size-1;return this.selectedState={selectAll:!1,toggledNodes:new Set([e.id])},this.rowModel.forEachNode(r=>{r!==e&&r.selectThisNode(!1,void 0,t)}),this.eventService.dispatchEvent({type:"selectionChanged",source:t}),n}isEmpty(){var e;return!this.selectedState.selectAll&&!((e=this.selectedState.toggledNodes)!=null&&e.size)}selectAllRowNodes(){this.selectedState={selectAll:!0,toggledNodes:new Set},this.selectedNodes={},this.selectAllUsed=!0,this.selectionCtx.reset()}deselectAllRowNodes(){this.selectedState={selectAll:!1,toggledNodes:new Set},this.selectedNodes={},this.selectionCtx.reset()}getSelectAllState(){return this.selectedState.selectAll?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}},Coe=class extends ct{constructor(){super(...arguments),this.selectionCtx=new Fgt,this.selectedState={selectAllChildren:!1,toggledNodes:new Map}}wireBeans(e){this.rowModel=e.rowModel,this.funcColsService=e.funcColsService,this.filterManager=e.filterManager,this.selectionService=e.selectionService}postConstruct(){this.addManagedEventListeners({modelUpdated:()=>this.removeRedundantState(),columnRowGroupChanged:()=>this.selectionService.reset("rowGroupChanged")}),this.selectionCtx.init(this.rowModel)}getSelectedState(){const e=this.gos.get("treeData"),t=(n,r,i)=>{const o={nodeId:i};if((e||r<=this.funcColsService.getRowGroupColumns().length)&&(o.selectAllChildren=n.selectAllChildren),n.toggledNodes.size){const s=[];n.toggledNodes.forEach((a,l)=>{const c=t(a,r+1,l);s.push(c)}),o.toggledNodes=s}return o};return t(this.selectedState,0)}setSelectedState(e){if("selectAll"in e)return Mr("Invalid selection state. When `groupSelectsChildren` is enabled, the state must conform to `IServerSideGroupSelectionState`.");const t=(n,r)=>{var a;if(typeof n!="object")throw new Error("Each provided state object must be an object.");if("selectAllChildren"in n&&typeof n.selectAllChildren!="boolean")throw new Error("`selectAllChildren` must be a boolean value or undefined.");if("toggledNodes"in n){if(!Array.isArray(n.toggledNodes))throw new Error("`toggledNodes` must be an array.");if(!n.toggledNodes.every(c=>typeof c=="object"&&"nodeId"in c&&typeof c.nodeId=="string"))throw new Error("Every `toggledNode` requires an associated string id.")}const i=n.selectAllChildren??!r,o=(a=n.toggledNodes)==null?void 0:a.map(l=>[l.nodeId,t(l,i)]);if(o==null?void 0:o.some(([,l])=>i===l.selectAllChildren&&l.toggledNodes.size===0))throw new Error(`
|
||
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.
|
||
`);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.selectionCtx.reset()}getSelectAllState(){return this.selectedState.selectAllChildren?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}},H1i=class extends ct{constructor(){super(...arguments),this.beanName="selectionService"}wireBeans(e){this.rowModel=e.rowModel}postConstruct(){this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],()=>{const n=q0(this.gos),r=n&&this.selectionStrategy instanceof voe?Coe:!n&&this.selectionStrategy instanceof Coe?voe:void 0;r&&(this.destroyBean(this.selectionStrategy),this.selectionStrategy=this.createManagedBean(new r),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}),this.addManagedPropertyListeners(["rowSelection"],()=>{const n=hC(this.gos);n!==this.selectionMode&&(this.selectionMode=n,this.deselectAllRowNodes({source:"api"}))}),this.selectionMode=hC(this.gos);const t=q0(this.gos)?Coe:voe;this.selectionStrategy=this.createManagedBean(new t)}getSelectionState(){return this.selectionStrategy.getSelectedState()}setSelectionState(e,t){Array.isArray(e)||(this.selectionStrategy.setSelectedState(e),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged(t))}setNodesSelected(e){const{nodes:t,...n}=e;if(t.length>1&&this.selectionMode!=="multiRow")return rt("cannot multi select unless selection mode is 'multiRow'"),0;if(t.length>1&&e.rangeSelect)return rt("cannot use range selection when multi selecting rows"),0;const r={nodes:t.filter(o=>o.selectable),...n};if(!r.nodes.length)return 0;const i=this.selectionStrategy.setNodesSelected(r);return this.shotgunResetNodeSelectionState(r.source),this.dispatchSelectionChanged(r.source),i}deleteSelectionStateFromParent(e,t){this.selectionStrategy.deleteSelectionStateFromParent(e,t)&&(this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}shotgunResetNodeSelectionState(e){this.rowModel.forEachNode(t=>{if(t.stub)return;const n=this.selectionStrategy.isNodeSelected(t);n!==t.isSelected()&&t.selectThisNode(n,void 0,e)})}getSelectedNodes(){return this.selectionStrategy.getSelectedNodes()}getSelectedRows(){return this.selectionStrategy.getSelectedRows()}getSelectionCount(){return this.selectionStrategy.getSelectionCount()}syncInRowNode(e){this.selectionStrategy.processNewRow(e);const t=this.selectionStrategy.isNodeSelected(e);if(t!=!1&&!e.selectable){this.selectionStrategy.setNodesSelected({nodes:[e],newValue:!1,source:"api"}),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api");return}e.setSelectedInitialValue(t)}reset(){this.selectionStrategy.deselectAllRowNodes({source:"api"})}isEmpty(){return this.selectionStrategy.isEmpty()}hasNodesToSelect(){return!0}selectAllRowNodes(e){if(lFe(e),P3e(this.gos)&&hC(this.gos)!=="multiRow")return rt("cannot multi select unless selection mode is 'multiRow'");this.selectionStrategy.selectAllRowNodes(e),this.rowModel.forEachNode(t=>{t.stub||t.selectThisNode(!0,void 0,e.source)}),this.dispatchSelectionChanged(e.source)}deselectAllRowNodes(e){lFe(e),this.selectionStrategy.deselectAllRowNodes(e),this.rowModel.forEachNode(t=>{t.stub||t.selectThisNode(!1,void 0,e.source)}),this.dispatchSelectionChanged(e.source)}getSelectAllState(e,t){return this.selectionStrategy.getSelectAllState(e,t)}updateGroupsFromChildrenSelections(){return!1}getBestCostNodeSelection(){rt("calling gridApi.getBestCostNodeSelection() is only possible when using rowModelType=`clientSide`.")}filterFromSelection(){}dispatchSelectionChanged(e){this.eventService.dispatchEvent({type:"selectionChanged",source:e})}};function lFe({justCurrentPage:e,justFiltered:t}){(e||t)&&rt(`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`)}var j1i=class extends ct{constructor(){super(...arguments),this.beanName="ssrmStoreFactory"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService}createStore(e,t){const n=this.getStoreParams(e,t),r=n.suppressInfiniteScroll?wfe:wO;return new r(e,n,t)}getStoreParams(e,t){const n=this.getLevelSpecificParams(t),r=this.isInfiniteScroll(n),i=this.getBlockSize(r,n),o=this.getMaxBlocksInCache(r,e,n);return{suppressInfiniteScroll:!r,cacheBlockSize:i,maxBlocksInCache:o}}getMaxBlocksInCache(e,t,n){if(!e)return;const r=n&&n.maxBlocksInCache!=null?n.maxBlocksInCache:this.gos.get("maxBlocksInCache");if(r!=null&&r>=0){if(t.dynamicRowHeight){rt("Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.");return}if(this.columnModel.isAutoRowHeightActive()){rt("Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.");return}return r}}getBlockSize(e,t){if(!e)return;const n=t&&t.cacheBlockSize!=null?t.cacheBlockSize:this.gos.get("cacheBlockSize");return n!=null&&n>0?n:100}getLevelSpecificParams(e){const t=this.gos.getCallback("getServerSideGroupLevelParams");if(!t)return;const n={level:e.level+1,parentRowNode:e.level>=0?e:void 0,rowGroupColumns:this.funcColsService.getRowGroupColumns(),pivotColumns:this.funcColsService.getPivotColumns(),pivotMode:this.columnModel.isPivotMode()};return t(n)}isInfiniteScroll(e){return!(e&&e.suppressInfiniteScroll!=null?e.suppressInfiniteScroll:this.isSuppressServerSideInfiniteScroll())}isSuppressServerSideInfiniteScroll(){return this.gos.get("suppressServerSideInfiniteScroll")}},V1i=class extends ct{constructor(){super(...arguments),this.beanName="ssrmStoreUtils"}wireBeans(e){this.columnModel=e.columnModel,this.serverSideRowModel=e.rowModel,this.storeFactory=e.ssrmStoreFactory}loadFromDatasource(e){const{storeParams:t,parentBlock:n,parentNode:r}=e,i=r.getRoute()??[];if(!t.datasource)return;const o={startRow:e.startRow,endRow:e.endRow,rowGroupCols:t.rowGroupCols,valueCols:t.valueCols,pivotCols:t.pivotCols,pivotMode:t.pivotMode,groupKeys:i,filterModel:t.filterModel,sortModel:t.sortModel},s=this.gos.addGridCommonParams({success:e.success,fail:e.fail,request:o,parentNode:e.parentNode});window.setTimeout(()=>{if(!t.datasource||!n.isAlive()){e.fail();return}t.datasource.getRows(s)},0)}getChildStore(e,t,n){if(Es(e))return t;const r=e[0],i=n(r);if(i){if(e.length===1&&!i.childStore){const a=this.serverSideRowModel.getParams();i.childStore=this.createBean(this.storeFactory.createStore(a,i))}const o=e.slice(1,e.length),s=i.childStore;return s?s.getChildStore(o):null}return null}isServerRefreshNeeded(e,t,n){if(n.valueColChanged||n.secondaryColChanged)return!0;const r=e.level+1;if(!(r<t.length))return!0;const s=t[r].id;return n.changedColumns.indexOf(s)>-1?!0:this.columnModel.getCols().filter(u=>u.getColDef().showRowGroup&&n.changedColumns.includes(u.getId())).map(u=>u.getColDef().showRowGroup).some(u=>u===!0||u===s)}getServerSideInitialRowCount(){return this.gos.get("serverSideInitialRowCount")}assertRowModelIsServerSide(e){return ml(this.gos)?!0:(rt(`The '${e}' property can only be used with the Server Side Row Model.`),!1)}assertNotTreeData(e){return this.gos.get("treeData")?(rt(`The '${e}' property cannot be used while using tree data.`),!1):!0}isServerSideSortAllLevels(){return this.gos.get("serverSideSortAllLevels")&&this.assertRowModelIsServerSide("serverSideSortAllLevels")}isServerSideOnlyRefreshFilteredGroups(){return this.gos.get("serverSideOnlyRefreshFilteredGroups")&&this.assertRowModelIsServerSide("serverSideOnlyRefreshFilteredGroups")}isServerSideSortOnServer(){return this.gos.get("serverSideSortOnServer")&&this.assertRowModelIsServerSide("serverSideSortOnServer")&&this.assertNotTreeData("serverSideSortOnServer")}isServerSideFilterOnServer(){return this.gos.get("serverSideFilterOnServer")&&this.assertRowModelIsServerSide("serverSideFilterOnServer")&&this.assertNotTreeData("serverSideFilterOnServer")}},G1i=class extends ct{constructor(){super(...arguments),this.beanName="ssrmTransactionManager",this.asyncTransactions=[]}wireBeans(e){this.valueCache=e.valueCache,this.serverSideRowModel=e.rowModel,this.selectionService=e.selectionService}postConstruct(){ml(this.gos)}applyTransactionAsync(e,t){this.asyncTransactionsTimeout==null&&this.scheduleExecuteAsync(),this.asyncTransactions.push({transaction:e,callback:t})}scheduleExecuteAsync(){const e=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimeout=window.setTimeout(()=>{this.executeAsyncTransactions()},e)}executeAsyncTransactions(){if(!this.asyncTransactions)return;const e=[],t=[],n=[];let r=!1;this.asyncTransactions.forEach(i=>{let o;if(this.serverSideRowModel.executeOnStore(i.transaction.route,l=>{o=l.applyTransaction(i.transaction)})?o==null&&(o={status:fc.StoreNotFound}):o={status:fc.StoreNotStarted},t.push(o),o.status==fc.StoreLoading){n.push(i);return}i.callback&&e.push(()=>i.callback(o)),o.status===fc.Applied&&(r=!0)}),e.length>0&&window.setTimeout(()=>{e.forEach(i=>i())},0),this.asyncTransactionsTimeout=void 0,this.asyncTransactions=n,r&&(this.valueCache.onDataChanged(),this.eventService.dispatchEvent({type:"storeUpdated"})),t.length>0&&this.eventService.dispatchEvent({type:"asyncTransactionsFlushed",results:t})}flushAsyncTransactions(){this.asyncTransactionsTimeout!=null&&clearTimeout(this.asyncTransactionsTimeout),this.executeAsyncTransactions()}applyTransaction(e){let t;if(this.serverSideRowModel.executeOnStore(e.route,r=>{t=r.applyTransaction(e)}))if(t){if(this.valueCache.onDataChanged(),t.remove){const r=t.remove.map(i=>i.id);this.selectionService.deleteSelectionStateFromParent(e.route||[],r)}return this.eventService.dispatchEvent({type:"storeUpdated"}),t}else return{status:fc.StoreNotFound};else return{status:fc.StoreNotStarted}}},P6e="32.3.3",Ngt={version:P6e,moduleName:`${rr.ServerSideRowModelModule}-core`,rowModel:"serverSide",beans:[M1i,E1i,O1i,V1i,x1i,T1i,G1i,R1i,j1i,$1i,H1i,B1i,M6e],dependantModules:[dp,vli]},W1i={version:P6e,moduleName:`${rr.ServerSideRowModelModule}-api`,beans:[Jht],apiFunctions:{getServerSideSelectionState:P1i,setServerSideSelectionState:_1i,applyServerSideTransaction:A1i,applyServerSideTransactionAsync:L1i,applyServerSideRowData:D1i,retryServerSideLoads:F1i,flushServerSideAsyncTransactions:N1i,refreshServerSide:k1i,getServerSideGroupLevelState:z1i},dependantModules:[Ngt,egt,Ifi]},U1i={version:P6e,moduleName:rr.ServerSideRowModelModule,dependantModules:[Ngt,W1i]};const q1i={selectAll:"全选",selectAllSearchResults:"全选搜索结果",addCurrentSelectionToFilter:"将当前选择添加到过滤器",searchOoo:"搜索...",blanks:"空白",noMatches:"没有匹配项",autosize:"自适应大小",filterOoo:"筛选...",equals:"等于",notEqual:"不等于",blank:"空白",notBlank:"非空白",empty:"选择一个",lessThan:"小于",greaterThan:"大于",lessThanOrEqual:"小于或等于",greaterThanOrEqual:"大于或等于",inRange:"介于",inRangeStart:"从",inRangeEnd:"到",contains:"包含",notContains:"不包含",startsWith:"以...开头",endsWith:"以...结尾",dateFormatOoo:"yyyy-mm-dd",before:"之前",after:"之后",andCondition:"并且",orCondition:"或者",applyFilter:"应用",resetFilter:"重置",clearFilter:"清除",cancelFilter:"取消",textFilter:"文本过滤器",numberFilter:"数字过滤器",dateFilter:"日期过滤器",setFilter:"设置过滤器",groupFilterSelect:"选择字段:",advancedFilterContains:"包含",advancedFilterNotContains:"不包含",advancedFilterTextEquals:"等于",advancedFilterTextNotEqual:"不等于",advancedFilterStartsWith:"以...开头",advancedFilterEndsWith:"以...结尾",advancedFilterBlank:"空白",advancedFilterNotBlank:"非空白",advancedFilterEquals:"=",advancedFilterNotEqual:"!=",advancedFilterGreaterThan:">",advancedFilterGreaterThanOrEqual:">=",advancedFilterLessThan:"<",advancedFilterLessThanOrEqual:"<=",advancedFilterTrue:"为真",advancedFilterFalse:"为假",advancedFilterAnd:"并且",advancedFilterOr:"或者",advancedFilterApply:"应用",advancedFilterBuilder:"构建器",advancedFilterValidationMissingColumn:"缺少列",advancedFilterValidationMissingOption:"缺少选项",advancedFilterValidationMissingValue:"缺少值",advancedFilterValidationInvalidColumn:"找不到列",advancedFilterValidationInvalidOption:"找不到选项",advancedFilterValidationMissingQuote:"值缺少结束引号",advancedFilterValidationNotANumber:"值不是数字",advancedFilterValidationInvalidDate:"值不是有效的日期",advancedFilterValidationMissingCondition:"缺少条件",advancedFilterValidationJoinOperatorMismatch:"条件内的连接符必须相同",advancedFilterValidationInvalidJoinOperator:"找不到连接符",advancedFilterValidationMissingEndBracket:"缺少结束括号",advancedFilterValidationExtraEndBracket:"结束括号过多",advancedFilterValidationMessage:"表达式有错误。 ${variable} - ${variable}.",advancedFilterValidationMessageAtEnd:"表达式有错误。 ${variable} 在表达式末尾。",advancedFilterBuilderTitle:"高级过滤器",advancedFilterBuilderApply:"应用",advancedFilterBuilderCancel:"取消",advancedFilterBuilderAddButtonTooltip:"添加过滤器或组",advancedFilterBuilderRemoveButtonTooltip:"删除",advancedFilterBuilderMoveUpButtonTooltip:"上移",advancedFilterBuilderMoveDownButtonTooltip:"下移",advancedFilterBuilderAddJoin:"添加组",advancedFilterBuilderAddCondition:"添加过滤器",advancedFilterBuilderSelectColumn:"选择列",advancedFilterBuilderSelectOption:"选择选项",advancedFilterBuilderEnterValue:"输入值...",advancedFilterBuilderValidationAlreadyApplied:"当前过滤器已应用。",advancedFilterBuilderValidationIncomplete:"并非所有条件都已完成。",advancedFilterBuilderValidationSelectColumn:"必须选择列。",advancedFilterBuilderValidationSelectOption:"必须选择选项。",advancedFilterBuilderValidationEnterValue:"必须输入值。",columns:"列",filters:"过滤器",pivotMode:"透视模式",groups:"行组",rowGroupColumnsEmptyMessage:"拖放到此处设置行组",values:"值",valueColumnsEmptyMessage:"拖放到此处进行聚合",pivots:"列标签",pivotColumnsEmptyMessage:"拖放到此处设置列标签",group:"组",rowDragRow:"行",rowDragRows:"行",loadingOoo:"加载中...",loadingError:"错误",noRowsToShow:"暂无数据",enabled:"启用",pinColumn:"固定列",pinLeft:"固定到左边",pinRight:"固定到右边",noPin:"不固定",valueAggregation:"值聚合",noAggregation:"无",autosizeThisColumn:"自动调整此列大小",autosizeAllColumns:"自动调整所有列大小",groupBy:"按...分组",ungroupBy:"取消按...分组",ungroupAll:"取消所有分组",addToValues:"将 ${variable} 添加到值",removeFromValues:"从值中删除 ${variable}",addToLabels:"将 ${variable} 添加到标签",removeFromLabels:"从标签中删除 ${variable}",resetColumns:"重置列",expandAll:"展开所有行组",collapseAll:"关闭所有行组",copy:"复制",ctrlC:"Ctrl+C",ctrlX:"Ctrl+X",copyWithHeaders:"复制带标题",copyWithGroupHeaders:"复制带组标题",cut:"剪切",paste:"粘贴",ctrlV:"Ctrl+V",export:"导出",csvExport:"CSV 导出",excelExport:"Excel 导出",columnFilter:"列过滤器",columnChooser:"选择列",sortAscending:"升序排列",sortDescending:"降序排列",sortUnSort:"清除排序",sum:"求和",first:"第一个",last:"最后一个",min:"最小值",max:"最大值",none:"无",count:"计数",avg:"平均值",filteredRows:"已筛选",selectedRows:"已选择",totalRows:"总行数",totalAndFilteredRows:"行",more:"更多",to:"到",of:"的",page:"页",pageLastRowUnknown:"?",nextPage:"下一页",lastPage:"上一页",firstPage:"第一页",previousPage:"上一页",pageSizeSelectorLabel:"页面大小:",footerTotal:"总计",pivotColumnGroupTotals:"总计",pivotChartAndPivotMode:"透视图表和透视模式",pivotChart:"透视图表",chartRange:"图表范围",columnChart:"柱形图",groupedColumn:"分组柱形图",stackedColumn:"堆积柱形图",normalizedColumn:"100% 堆积柱形图",barChart:"条形图",groupedBar:"分组条形图",stackedBar:"堆积条形图",normalizedBar:"100% 堆积条形图",pieChart:"饼图",pie:"饼图",donut:"环形图",line:"折线图",xyChart:"X Y(散点图)",scatter:"散点图",bubble:"气泡图",areaChart:"面积图",area:"面积图",stackedArea:"堆积面积图",normalizedArea:"100% 堆积面积图",histogramChart:"直方图",histogramFrequency:"频率",polarChart:"极坐标图",radarLine:"雷达线图",radarArea:"雷达面积图",nightingale:"南丁格尔玫瑰图",radialColumn:"径向柱形图",radialBar:"径向条形图",statisticalChart:"统计图",boxPlot:"箱线图",rangeBar:"范围条形图",rangeArea:"范围面积图",hierarchicalChart:"层级图",treemap:"矩形树图",sunburst:"旭日图",specializedChart:"专用图",waterfall:"瀑布图",heatmap:"热力图",combinationChart:"组合图",columnLineCombo:"柱形和折线图",AreaColumnCombo:"面积和柱形图",pivotChartTitle:"透视图表",rangeChartTitle:"范围图表",settings:"图表",data:"数据",format:"格式",categories:"类别",defaultCategory:"(无)",series:"系列",switchCategorySeries:"切换类别/系列",categoryValues:"类别值",seriesLabels:"系列标签",aggregate:"聚合",xyValues:"X Y 值",paired:"配对模式",axis:"轴",xAxis:"水平轴",yAxis:"垂直轴",polarAxis:"极坐标轴",radiusAxis:"半径轴",navigator:"导航器",zoom:"缩放",animation:"动画",crosshair:"十字线",color:"颜色",thickness:"厚度",preferredLength:"首选长度",xType:"X 类型",axisType:"轴类型",automatic:"自动",category:"类别",number:"数字",time:"时间",timeFormat:"时间格式",autoRotate:"自动旋转",labelRotation:"旋转",circle:"圆",polygon:"多边形",orientation:"方向",fixed:"固定",parallel:"平行",perpendicular:"垂直",radiusAxisPosition:"位置",ticks:"刻度线",gridLines:"网格线",width:"宽度",height:"高度",length:"长度",padding:"填充",spacing:"间距",chart:"图表",title:"标题",titlePlaceholder:"图表标题 - 双击编辑",background:"背景",font:"字体",top:"顶部",right:"右侧",bottom:"底部",left:"左侧",labels:"标签",calloutLabels:"标注标签",sectorLabels:"扇区标签",positionRatio:"位置比例",size:"大小",shape:"形状",minSize:"最小尺寸",maxSize:"最大尺寸",legend:"图例",position:"位置",markerSize:"标记大小",markerStroke:"标记描边",markerPadding:"标记填充",itemSpacing:"项目间距",itemPaddingX:"项目填充 X",itemPaddingY:"项目填充 Y",layoutHorizontalSpacing:"水平间距",layoutVerticalSpacing:"垂直间距",strokeWidth:"描边宽度",offset:"偏移",offsets:"偏移量",tooltips:"工具提示",callout:"标注",markers:"标记",shadow:"阴影",blur:"模糊",xOffset:"X 偏移",yOffset:"Y 偏移",lineWidth:"线宽",lineDash:"线段",lineDashOffset:"线段偏移",scrollingZoom:"滚动",scrollingStep:"滚动步长",selectingZoom:"选择",durationMillis:"持续时间(毫秒)",crosshairLabel:"标签",crosshairSnap:"捕捉到节点",normal:"常规",bold:"粗体",italic:"斜体",boldItalic:"粗斜体",predefined:"预定义",fillOpacity:"填充透明度",strokeColor:"线颜色",strokeOpacity:"线透明度",miniChart:"迷你图表",histogramBinCount:"柱数",connectorLine:"连接线",seriesItems:"系列项",seriesPilotItemType:"项类型",seriesItemPositive:"正值",seriesItemNegative:"负值",seriesItemLabels:"项标签",columnGroup:"柱形",barGroup:"条形",pieGroup:"饼图",lineGroup:"折线",scatterGroup:"X Y (散点)",areaGroup:"面积",polarGroup:"极坐标",statisticalGroup:"统计",hierarchicalGroup:"层级",specializedGroup:"专用",combinationGroup:"组合",groupedColumnTooltip:"分组",stackedColumnTooltip:"堆积",normalizedColumnTooltip:"100% 堆积",groupedBarTooltip:"分组",stackedBarTooltip:"堆积",normalizedBarTooltip:"100% 堆积",pieTooltip:"饼图",donutTooltip:"环形",lineTooltip:"折线",groupedAreaTooltip:"面积",stackedAreaTooltip:"堆积",normalizedAreaTooltip:"100% 堆积",scatterTooltip:"散点",bubbleTooltip:"气泡",histogramTooltip:"直方图",radialColumnTooltip:"径向柱形",radialBarTooltip:"径向条形",radarLineTooltip:"雷达线",radarAreaTooltip:"雷达面积",nightingaleTooltip:"南丁格尔玫瑰",rangeBarTooltip:"范围条形",rangeAreaTooltip:"范围面积",boxPlotTooltip:"箱线",treemapTooltip:"矩形树",sunburstTooltip:"旭日",waterfallTooltip:"瀑布",heatmapTooltip:"热力",columnLineComboTooltip:"柱形和折线",areaColumnComboTooltip:"面积和柱形",customComboTooltip:"自定义组合",innerRadius:"内半径",startAngle:"起始角度",endAngle:"结束角度",reverseDirection:"反向",groupPadding:"组填充",seriesPadding:"系列填充",tile:"平铺",whisker:"须",cap:"帽",capLengthRatio:"帽长比",labelPlacement:"位置",inside:"内部",outside:"外部",noDataToChart:"无数据可供绘制图表。",pivotChartRequiresPivotMode:"透视图表需要启用透视图模式。",chartSettingsToolbarTooltip:"菜单",chartLinkToolbarTooltip:"与网格链接",chartUnlinkToolbarTooltip:"与网格取消链接",chartDownloadToolbarTooltip:"下载图表",chartEdit:"编辑图表",chartAdvancedSettings:"高级设置",chartLink:"链接到网格",chartUnlink:"从网格取消链接",chartDownload:"下载图表",seriesChartType:"系列图表类型",seriesType:"系列类型",secondaryAxis:"次要轴",seriesAdd:"添加系列",categoryAdd:"添加类别",advancedSettings:"高级设置",ariaAdvancedFilterBuilderItem:"${variable}. 级别 ${variable}. 按 ENTER 编辑。",ariaAdvancedFilterBuilderItemValidation:"${variable}. 级别 ${variable}. ${variable} 按 ENTER 编辑。",ariaAdvancedFilterBuilderList:"高级筛选器构建器列表",ariaAdvancedFilterBuilderFilterItem:"筛选条件",ariaAdvancedFilterBuilderGroupItem:"筛选组",ariaAdvancedFilterBuilderColumn:"列",ariaAdvancedFilterBuilderOption:"选项",ariaAdvancedFilterBuilderValueP:"值",ariaAdvancedFilterBuilderJoinOperator:"连接运算符",ariaAdvancedFilterInput:"高级筛选器输入",ariaChecked:"选中",ariaColumn:"列",ariaColumnGroup:"列组",ariaColumnFiltered:"列已筛选",ariaColumnSelectAll:"切换全选列",ariaDateFilterInput:"日期筛选器输入",ariaDefaultListName:"列表",ariaFilterColumnsInput:"筛选列输入",ariaFilterFromValue:"筛选起始值",ariaFilterInput:"筛选器输入",ariaFilterList:"筛选器列表",ariaFilterToValue:"筛选结束值",ariaFilterValue:"筛选器值",ariaFilterMenuOpen:"打开筛选器菜单",ariaFilteringOperator:"筛选器运算符",ariaHidden:"隐藏",ariaIndeterminate:"不确定",ariaInputEditor:"输入编辑器",ariaMenuColumn:"按 ALT + 下箭头打开列菜单",ariaFilterColumn:"按 CTRL + ENTER 打开筛选器",ariaRowDeselect:"按空格键取消选中此行",ariaRowSelectAll:"按空格键切换所有行的选中状态",ariaRowToggleSelection:"按空格键切换行的选中状态",ariaRowSelect:"按空格键选中此行",ariaRowSelectionDisabled:"此行的行选择已禁用",ariaSearch:"搜索",ariaSortableColumn:"按 ENTER 排序",ariaToggleVisibility:"按空格键切换可见性",ariaToggleCellValue:"按空格键切换单元格值",ariaUnchecked:"未选中",ariaVisible:"可见",ariaSearchFilterValues:"搜索筛选器值",ariaPageSizeSelectorLabel:"页面大小",ariaChartMenuClose:"关闭图表编辑菜单",ariaRowGroupDropZonePanelLabel:"行组",ariaValuesDropZonePanelLabel:"值",ariaPivotDropZonePanelLabel:"列标签",ariaDropZoneColumnComponentDescription:"按 DELETE 键删除",ariaDropZoneColumnValueItemDescription:"按 ENTER 键更改聚合类型",ariaDropZoneColumnGroupItemDescription:"按 ENTER 键排序",ariaDropZoneColumnComponentAggFuncSeparator:" of ",ariaDropZoneColumnComponentSortAscending:"ascending",ariaDropZoneColumnComponentSortDescending:"descending",ariaLabelColumnMenu:"列菜单",ariaLabelColumnFilter:"列筛选器",ariaLabelCellEditor:"单元格编辑器",ariaLabelDialog:"对话框",ariaLabelSelectField:"选择字段",ariaLabelRichSelectField:"富文本选择字段",ariaLabelTooltip:"工具提示",ariaLabelContextMenu:"上下文菜单",ariaLabelSubMenu:"子菜单",ariaLabelAggregationFunction:"聚合函数",ariaLabelAdvancedFilterAutocomplete:"高级筛选器自动完成",ariaLabelAdvancedFilterBuilderAddField:"高级筛选器构建器添加字段",ariaLabelAdvancedFilterBuilderColumnSelectField:"高级筛选器构建器列选择字段",ariaLabelAdvancedFilterBuilderOptionSelectField:"高级筛选器构建器选项选择字段",ariaLabelAdvancedFilterBuilderJoinSelectField:"高级筛选器构建器连接运算符选择字段",ariaColumnPanelList:"列列表",ariaFilterPanelList:"筛选器列表",thousandSeparator:",",decimalSeparator:".",true:"真",false:"假",invalidDate:"无效日期",invalidNumber:"无效数字",january:"一月",february:"二月",march:"三月",april:"四月",may:"五月",june:"六月",july:"七月",august:"八月",september:"九月",october:"十月",november:"十一月",december:"十二月",timeFormatSlashesDDMMYYYY:"DD/MM/YYYY",timeFormatSlashesMMDDYYYY:"MM/DD/YYYY",timeFormatSlashesDDMMYY:"DD/MM/YY",timeFormatSlashesMMDDYY:"MM/DD/YY",timeFormatDotsDDMYY:"DD.M.YY",timeFormatDotsMDDYY:"M.DD.YY",timeFormatDashesYYYYMMDD:"YYYY-MM-DD",timeFormatSpacesDDMMMMYYYY:"DD MMMM YYYY",timeFormatHHMMSS:"HH:MM:SS",timeFormatHHMMSSAmPm:"HH:MM:SS AM/PM"};Pf.registerModules([$mi,jpi,Ypi,S1i,vmi,imi,kmi,r1i,U1i]);const eZ=({objectType:e,onChange:t,height:n=400,defaultExpandedRows:r=[],defaultRowGroupColumns:i=[],params:o,rowHeight:s=50,...a})=>{const l=an.useUtils(),{sessionId:c}=Wi(),u=jm(),[f,h]=d.useState(r),g=d.useRef(null),p=d.useRef(),m=d.useRef(),[v,C]=d.useState(null);d.useEffect(()=>{const z=async({operation:j,data:W,type:G})=>{if(G===e){console.log(e,j,W);const K=Array.isArray(W)?W:[W];M(),B(K)}};return SS.on("dataChanged",z),()=>{SS.off("dataChanged",z)}},[]);const y=d.useCallback(async z=>{try{const j={...z.request,...o};console.log(j);const W=await l.client[e].getRows.query(j);console.log(W),z.success({rowData:W==null?void 0:W.rowData,rowCount:W==null?void 0:W.rowCount})}catch(j){console.error("Error in getRows function:",j),z.fail()}},[e,o,l]),b=d.useMemo(()=>({getRows:y}),[y]);d.useEffect(()=>{g.current&&g.current.setGridOption("serverSideDatasource",b)},[b]);const S=d.useMemo(()=>({statusPanels:[{statusPanel:"agSelectedRowCountComponent"},{statusPanel:"agAggregationComponent"}]}),[]),w=d.useCallback(z=>["copy","separator","export"],[]),x=d.useCallback(z=>{_()},[f]),E=d.useMemo(()=>({width:"100%",display:"flex"}),[]),R=d.useMemo(()=>({width:"100%",flexGrow:1,backgroundColor:"#ffffff"}),[]);function O(z){if(a.treeData)p.current=["id"];else{const W=z.getColumnState().filter(G=>G.rowGroup);W.sort((G,K)=>G.rowGroupIndex-K.rowGroupIndex),p.current=W.map(G=>G.colId.replace(".","_"))||[]}}function T(z){O(z.api),g.current&&g.current.refreshServerSide({purge:!0})}const M=()=>{if(g.current){const z=[];return g.current.forEachNode(j=>{j.expanded&&(j.key||j.id)&&z.push(j.key||j.id)}),h(z),z}},_=()=>{g.current&&g.current.forEachNode(z=>{(f.includes(z.key||z.id)||r.includes(z.key||z.id))&&z.setExpanded(!0)})},F=d.useRef(-1),D=d.useMemo(()=>{const z=`${e}-${u.pathname}-${c}-agstate`,j=localStorage.getItem(z);if(j)return JSON.parse(j)},[]),k=d.useCallback(z=>{const j=`${e}-${u.pathname}-${c}-agstate`;localStorage.setItem(j,JSON.stringify({...z,rowIndex:F.current}))},[]),L=d.useRef(null),I=d.useMemo(()=>L.current?L.current.clientHeight-100:700,[L.current]),A=d.useMemo(()=>{if(D&&!D.rowGroup){const z=(D==null?void 0:D.rowIndex)+I/s;return z<31?31:z}},[I,D]),N=d.useCallback(z=>{g.current=z.api,g.current.setGridOption("serverSideDatasource",b),!(D!=null&&D.rowGroup)&&(D==null?void 0:D.rowIndex)!==-1&&g.current.ensureIndexVisible(D==null?void 0:D.rowIndex,"top"),g.current.addEventListener("gridPreDestroyed",j=>k(j.state)),g.current.addEventListener("bodyScroll",j=>{F.current=Math.round(j.top/s)}),O(z.api)},[b]),B=d.useCallback(z=>{if(!g.current)return;const j=Object.values(m.current),W=G=>{const q=(X=>{var ne;const Q=[];let te=X.parent_id;for(;te;){const Z=j==null?void 0:j.find(ee=>ee.id===te);if(console.log(Z),Z){const ee=(ne=p.current)==null?void 0:ne.map(J=>Z[J]).filter(Boolean);ee&&ee.length&&Q.unshift(...ee),te=Z.parent_id}else break}return Q})(G);console.log("ancestor route",q);{let X=[...q];X.pop(),console.log("parent route",X),g.current.refreshServerSide({route:X}),g.current.refreshServerSide({route:q})}};console.log("refresh data",z),console.log("rowdata",j),console.log(p.current),console.log("tree fresh",a.treeData),z.forEach(G=>{var q,X,Q;const K=j==null?void 0:j.find(te=>te.id===G.id);if(a.treeData)W(G);else for(let te=0;te<=(((q=p.current)==null?void 0:q.length)||0);te++){const ne=(X=p.current)==null?void 0:X.slice(0,te).map(ee=>G[ee]).filter(Boolean),Z=(Q=p.current)==null?void 0:Q.slice(0,te).map(ee=>K==null?void 0:K[ee]).filter(Boolean);ne&&Z&&ne.join("-")!==Z.join("-")&&g.current.refreshServerSide({route:Z}),ne&&g.current.refreshServerSide({route:ne})}})},[p.current,g.current,m.current]);return H.jsx("div",{ref:L,style:{...E,flexDirection:"column",height:n},children:H.jsx("div",{style:{...R},className:"ag-theme-alpine",children:H.jsx(Dhi,{serverSideInitialRowCount:A,localeText:q1i,defaultColDef:{flex:1,minWidth:150,resizable:!0,sortable:!1,suppressHeaderMenuButton:!0,floatingFilter:!0},getChildCount:z=>z==null?void 0:z.child_count,onColumnRowGroupChanged:T,statusBar:S,initialState:D,rowModelType:"serverSide",onStoreRefreshed:z=>{_()},isServerSideGroupOpenByDefault:z=>f.includes(z.rowNode.key||z.rowNode.id),getRowId:z=>{let j="";z.parentKeys&&z.parentKeys.length&&(j+=z.parentKeys.join("-")+"-");const W=z.api.getRowGroupColumns();if(W.length>z.level){const G=W[z.level];j+=z.data[G.getColDef().field.replace(".","_")]+"-"}return z.data.id&&(j=z.data.id),m.current={...m.current,[j]:z.data},j},blockLoadDebounceMillis:100,onFirstDataRendered:x,detailRowAutoHeight:!0,cellSelection:!0,suppressServerSideFullWidthLoadingRow:!0,allowContextMenuWithControlKey:!0,getContextMenuItems:w,onGridReady:N,onRowDragEnd:async z=>{C(void 0);const{overNode:j,node:W}=z;if(!j||!W)return;const{id:G,data:K}=j,{id:q,data:X}=W;if(!(!(K!=null&&K.id)||!(X!=null&&X.id)||G===q))try{if(console.log(K,X),(K==null?void 0:K.parent_id)===(X==null?void 0:X.parent_id)){li.info("更新排序");const Q=await l.client[e].updateOrder.mutate({id:q,overId:G});gu(e,Q,dd.UPDATED)}}catch(Q){console.error("更新排序失败:",Q),li.error("无法更新排序,请稍后重试。")}},rowHeight:s,cacheBlockSize:30,onRowDragLeave:z=>{C(void 0)},onRowDragEnter:z=>{const j=z.overNode;C(j.id)},onRowDragMove:z=>{C(z.overNode.id)},rowClassRules:{"ag-custom-dragging-class":z=>z.data&&z.data.id&&z.data.id===v},...a})})})};function tZ(){return typeof window<"u"}function u6(e){return kgt(e)?(e.nodeName||"").toLowerCase():"#document"}function md(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function c1(e){var t;return(t=(kgt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kgt(e){return tZ()?e instanceof Node||e instanceof md(e).Node:!1}function Ao(e){return tZ()?e instanceof Element||e instanceof md(e).Element:!1}function na(e){return tZ()?e instanceof HTMLElement||e instanceof md(e).HTMLElement:!1}function xfe(e){return!tZ()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof md(e).ShadowRoot}function q_(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=nh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function K1i(e){return["table","td","th"].includes(u6(e))}function nZ(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _6e(e){const t=rZ(),n=Ao(e)?nh(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Y1i(e){let t=Y0(e);for(;na(t)&&!u3(t);){if(_6e(t))return t;if(nZ(t))return null;t=Y0(t)}return null}function rZ(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function u3(e){return["html","body","#document"].includes(u6(e))}function nh(e){return md(e).getComputedStyle(e)}function iZ(e){return Ao(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Y0(e){if(u6(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xfe(e)&&e.host||c1(e);return xfe(t)?t.host:t}function zgt(e){const t=Y0(e);return u3(t)?e.ownerDocument?e.ownerDocument.body:e.body:na(t)&&q_(t)?t:zgt(t)}function _4(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=zgt(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=md(i);if(o){const a=Efe(s);return t.concat(s,s.visualViewport||[],q_(i)?i:[],a&&n?_4(a):[])}return t.concat(i,_4(i,[],n))}function Efe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function i0(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function $a(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&xfe(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Bgt(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Hgt(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function jgt(e){return e.mozInputSource===0&&e.isTrusted?!0:Rfe()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Vgt(e){return Q1i()?!1:!Rfe()&&e.width===0&&e.height===0||Rfe()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Ggt(){return/apple/i.test(navigator.vendor)}function Rfe(){const e=/android/i;return e.test(Bgt())||e.test(Hgt())}function X1i(){return Bgt().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Q1i(){return Hgt().includes("jsdom/")}function xI(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Z1i(e){return"nativeEvent"in e}function J1i(e){return e.matches("html,body")}function Al(e){return(e==null?void 0:e.ownerDocument)||document}function yoe(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function z2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const e0i="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Wgt(e){return na(e)&&e.matches(e0i)}function Za(e){e.preventDefault(),e.stopPropagation()}function $fe(e){return e?e.getAttribute("role")==="combobox"&&Wgt(e):!1}const IH=Math.min,mC=Math.max,MH=Math.round,FS=Math.floor,ym=e=>({x:e,y:e}),t0i={left:"right",right:"left",bottom:"top",top:"bottom"},n0i={start:"end",end:"start"};function cFe(e,t,n){return mC(e,IH(t,n))}function oZ(e,t){return typeof e=="function"?e(t):e}function wy(e){return e.split("-")[0]}function sZ(e){return e.split("-")[1]}function Ugt(e){return e==="x"?"y":"x"}function qgt(e){return e==="y"?"height":"width"}function $x(e){return["top","bottom"].includes(wy(e))?"y":"x"}function Kgt(e){return Ugt($x(e))}function r0i(e,t,n){n===void 0&&(n=!1);const r=sZ(e),i=Kgt(e),o=qgt(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=PH(s)),[s,PH(s)]}function i0i(e){const t=PH(e);return[Ofe(e),t,Ofe(t)]}function Ofe(e){return e.replace(/start|end/g,t=>n0i[t])}function o0i(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function s0i(e,t,n,r){const i=sZ(e);let o=o0i(wy(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Ofe)))),o}function PH(e){return e.replace(/left|right|bottom|top/g,t=>t0i[t])}function a0i(e){return{top:0,right:0,bottom:0,left:0,...e}}function l0i(e){return typeof e!="number"?a0i(e):{top:e,right:e,bottom:e,left:e}}function _H(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
|
||
* tabbable 6.2.0
|
||
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||
*/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")return!0}else if(r==="non-zero-area")return uFe(t);return!1},x0i=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Ox.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},E0i=function(t,n){return!(n.disabled||LH(n)||p0i(n)||w0i(n,t)||m0i(n)||x0i(n))},Tfe=function(t,n){return!(b0i(n)||Qgt(n)<0||!E0i(t,n))},R0i=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},$0i=function e(t){var n=[],r=[];return t.forEach(function(i,o){var s=!!i.scopeParent,a=s?i.scopeParent:i,l=h0i(a,s),c=s?e(i.candidates):a;l===0?s?n.push.apply(n,c):n.push(a):r.push({documentOrder:o,tabIndex:l,item:i,isScope:s,content:c})}),r.sort(g0i).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},aZ=function(t,n){n=n||{};var r;return n.getShadowRoot?r=f0i([t],n.includeContainer,{filter:Tfe.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:R0i}):r=d0i(t,n.includeContainer,Tfe.bind(null,n)),$0i(r)},O0i=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ox.call(t,AH)===!1?!1:Tfe(n,t)};function dFe(e,t,n){let{reference:r,floating:i}=e;const o=$x(t),s=Kgt(t),a=qgt(s),l=wy(t),c=o==="y",u=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let g;switch(l){case"top":g={x:u,y:r.y-i.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch(sZ(t)){case"start":g[s]-=h*(n&&c?-1:1);break;case"end":g[s]+=h*(n&&c?-1:1);break}return g}const T0i=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:f}=dFe(c,r,l),h=r,g={},p=0;for(let m=0;m<a.length;m++){const{name:v,fn:C}=a[m],{x:y,y:b,data:S,reset:w}=await C({x:u,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});u=y??u,f=b??f,g={...g,[v]:{...g[v],...S}},w&&p<=50&&(p++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:f}=dFe(c,h,l)),m=-1)}return{x:u,y:f,placement:h,strategy:i,middlewareData:g}};async function Jgt(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=oZ(t,e),p=l0i(g),v=a[h?f==="floating"?"reference":"floating":f],C=_H(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},w=_H(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(C.top-w.top+p.top)/S.y,bottom:(w.bottom-C.bottom+p.bottom)/S.y,left:(C.left-w.left+p.left)/S.x,right:(w.right-C.right+p.right)/S.x}}const I0i=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...v}=oZ(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const C=wy(i),y=$x(a),b=wy(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=h||(b||!m?[PH(a)]:i0i(a)),x=p!=="none";!h&&x&&w.push(...s0i(a,m,p,S));const E=[a,...w],R=await Jgt(t,v),O=[];let T=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&O.push(R[C]),f){const D=r0i(i,s,S);O.push(R[D[0]],R[D[1]])}if(T=[...T,{placement:i,overflows:O}],!O.every(D=>D<=0)){var M,_;const D=(((M=o.flip)==null?void 0:M.index)||0)+1,k=E[D];if(k)return{data:{index:D,overflows:T},reset:{placement:k}};let L=(_=T.filter(I=>I.overflows[0]<=0).sort((I,A)=>I.overflows[1]-A.overflows[1])[0])==null?void 0:_.placement;if(!L)switch(g){case"bestFit":{var F;const I=(F=T.filter(A=>{if(x){const N=$x(A.placement);return N===y||N==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(N=>N>0).reduce((N,B)=>N+B,0)]).sort((A,N)=>A[1]-N[1])[0])==null?void 0:F[0];I&&(L=I);break}case"initialPlacement":L=a;break}if(i!==L)return{reset:{placement:L}}}return{}}}};async function M0i(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=wy(n),a=sZ(n),l=$x(n)==="y",c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,f=oZ(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(g=a==="end"?p*-1:p),l?{x:g*u,y:h*c}:{x:h*c,y:g*u}}const P0i=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await M0i(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},_0i=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:C,y}=v;return{x:C,y}}},...l}=oZ(e,t),c={x:n,y:r},u=await Jgt(t,l),f=$x(wy(i)),h=Ugt(f);let g=c[h],p=c[f];if(o){const v=h==="y"?"top":"left",C=h==="y"?"bottom":"right",y=g+u[v],b=g-u[C];g=cFe(y,g,b)}if(s){const v=f==="y"?"top":"left",C=f==="y"?"bottom":"right",y=p+u[v],b=p-u[C];p=cFe(y,p,b)}const m=a.fn({...t,[h]:g,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:o,[f]:s}}}}}};function ept(e){const t=nh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=na(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=MH(n)!==o||MH(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function A6e(e){return Ao(e)?e:e.contextElement}function pw(e){const t=A6e(e);if(!na(t))return ym(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ept(t);let s=(o?MH(n.width):n.width)/r,a=(o?MH(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const A0i=ym(0);function tpt(e){const t=md(e);return!rZ()||!t.visualViewport?A0i:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function D0i(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==md(e)?!1:t}function xy(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=A6e(e);let s=ym(1);t&&(r?Ao(r)&&(s=pw(r)):s=pw(e));const a=D0i(o,n,r)?tpt(o):ym(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,f=i.height/s.y;if(o){const h=md(o),g=r&&Ao(r)?md(r):r;let p=h,m=Efe(p);for(;m&&r&&g!==p;){const v=pw(m),C=m.getBoundingClientRect(),y=nh(m),b=C.left+(m.clientLeft+parseFloat(y.paddingLeft))*v.x,S=C.top+(m.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,f*=v.y,l+=b,c+=S,p=md(m),m=Efe(p)}}return _H({width:u,height:f,x:l,y:c})}function D6e(e,t){const n=iZ(e).scrollLeft;return t?t.left+n:xy(c1(e)).left+n}function npt(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:D6e(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function L0i(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=c1(r),a=t?nZ(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=ym(1);const u=ym(0),f=na(r);if((f||!f&&!o)&&((u6(r)!=="body"||q_(s))&&(l=iZ(r)),na(r))){const g=xy(r);c=pw(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}const h=s&&!f&&!o?npt(s,l,!0):ym(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function F0i(e){return Array.from(e.getClientRects())}function N0i(e){const t=c1(e),n=iZ(e),r=e.ownerDocument.body,i=mC(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=mC(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+D6e(e);const a=-n.scrollTop;return nh(r).direction==="rtl"&&(s+=mC(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function k0i(e,t){const n=md(e),r=c1(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=rZ();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function z0i(e,t){const n=xy(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=na(e)?pw(e):ym(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function fFe(e,t,n){let r;if(t==="viewport")r=k0i(e,n);else if(t==="document")r=N0i(c1(e));else if(Ao(t))r=z0i(t,n);else{const i=tpt(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return _H(r)}function rpt(e,t){const n=Y0(e);return n===t||!Ao(n)||u3(n)?!1:nh(n).position==="fixed"||rpt(n,t)}function B0i(e,t){const n=t.get(e);if(n)return n;let r=_4(e,[],!1).filter(a=>Ao(a)&&u6(a)!=="body"),i=null;const o=nh(e).position==="fixed";let s=o?Y0(e):e;for(;Ao(s)&&!u3(s);){const a=nh(s),l=_6e(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||q_(s)&&!l&&rpt(e,s))?r=r.filter(u=>u!==s):i=a,s=Y0(s)}return t.set(e,r),r}function H0i(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?nZ(t)?[]:B0i(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const f=fFe(t,u,i);return c.top=mC(f.top,c.top),c.right=IH(f.right,c.right),c.bottom=IH(f.bottom,c.bottom),c.left=mC(f.left,c.left),c},fFe(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function j0i(e){const{width:t,height:n}=ept(e);return{width:t,height:n}}function V0i(e,t,n){const r=na(t),i=c1(t),o=n==="fixed",s=xy(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=ym(0);if(r||!r&&!o)if((u6(t)!=="body"||q_(i))&&(a=iZ(t)),r){const h=xy(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&(l.x=D6e(i));const c=i&&!r&&!o?npt(i,a):ym(0),u=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:u,y:f,width:s.width,height:s.height}}function boe(e){return nh(e).position==="static"}function hFe(e,t){if(!na(e)||nh(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return c1(e)===n&&(n=n.ownerDocument.body),n}function ipt(e,t){const n=md(e);if(nZ(e))return n;if(!na(e)){let i=Y0(e);for(;i&&!u3(i);){if(Ao(i)&&!boe(i))return i;i=Y0(i)}return n}let r=hFe(e,t);for(;r&&K1i(r)&&boe(r);)r=hFe(r,t);return r&&u3(r)&&boe(r)&&!_6e(r)?n:r||Y1i(e)||n}const G0i=async function(e){const t=this.getOffsetParent||ipt,n=this.getDimensions,r=await n(e.floating);return{reference:V0i(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function W0i(e){return nh(e).direction==="rtl"}const U0i={convertOffsetParentRelativeRectToViewportRelativeRect:L0i,getDocumentElement:c1,getClippingRect:H0i,getOffsetParent:ipt,getElementRects:G0i,getClientRects:F0i,getDimensions:j0i,getScale:pw,isElement:Ao,isRTL:W0i};function opt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function q0i(e,t){let n=null,r;const i=c1(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:f,width:h,height:g}=c;if(a||t(),!h||!g)return;const p=FS(f),m=FS(i.clientWidth-(u+h)),v=FS(i.clientHeight-(f+g)),C=FS(u),b={rootMargin:-p+"px "+-m+"px "+-v+"px "+-C+"px",threshold:mC(0,IH(1,l))||1};let S=!0;function w(x){const E=x[0].intersectionRatio;if(E!==l){if(!S)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!opt(c,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(w,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,b)}n.observe(e)}return s(!0),o}function K0i(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=A6e(e),u=i||o?[...c?_4(c):[],..._4(t)]:[];u.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),o&&C.addEventListener("resize",n)});const f=c&&a?q0i(c,n):null;let h=-1,g=null;s&&(g=new ResizeObserver(C=>{let[y]=C;y&&y.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let p,m=l?xy(e):null;l&&v();function v(){const C=xy(e);m&&!opt(m,C)&&n(),m=C,p=requestAnimationFrame(v)}return n(),()=>{var C;u.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),f==null||f(),(C=g)==null||C.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const Y0i=P0i,X0i=_0i,Q0i=I0i,Z0i=(e,t,n)=>{const r=new Map,i={platform:U0i,...n},o={...i.platform,_c:r};return T0i(e,t,{...i,platform:o})};var pk=typeof document<"u"?d.useLayoutEffect:d.useEffect;function FH(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!FH(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!FH(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function spt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gFe(e,t){const n=spt(e);return Math.round(t*n)/n}function Soe(e){const t=d.useRef(e);return pk(()=>{t.current=e}),t}function J0i(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=d.useState(r);FH(h,r)||g(r);const[p,m]=d.useState(null),[v,C]=d.useState(null),y=d.useCallback(A=>{A!==x.current&&(x.current=A,m(A))},[]),b=d.useCallback(A=>{A!==E.current&&(E.current=A,C(A))},[]),S=o||p,w=s||v,x=d.useRef(null),E=d.useRef(null),R=d.useRef(u),O=l!=null,T=Soe(l),M=Soe(i),_=Soe(c),F=d.useCallback(()=>{if(!x.current||!E.current)return;const A={placement:t,strategy:n,middleware:h};M.current&&(A.platform=M.current),Z0i(x.current,E.current,A).then(N=>{const B={...N,isPositioned:_.current!==!1};D.current&&!FH(R.current,B)&&(R.current=B,fo.flushSync(()=>{f(B)}))})},[h,t,n,M,_]);pk(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[c]);const D=d.useRef(!1);pk(()=>(D.current=!0,()=>{D.current=!1}),[]),pk(()=>{if(S&&(x.current=S),w&&(E.current=w),S&&w){if(T.current)return T.current(S,w,F);F()}},[S,w,F,T,O]);const k=d.useMemo(()=>({reference:x,floating:E,setReference:y,setFloating:b}),[y,b]),L=d.useMemo(()=>({reference:S,floating:w}),[S,w]),I=d.useMemo(()=>{const A={position:n,left:0,top:0};if(!L.floating)return A;const N=gFe(L.floating,u.x),B=gFe(L.floating,u.y);return a?{...A,transform:"translate("+N+"px, "+B+"px)",...spt(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:B}},[n,a,L.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:F,refs:k,elements:L,floatingStyles:I}),[u,F,k,L,I])}const evi=(e,t)=>({...Y0i(e),options:[e,t]}),tvi=(e,t)=>({...X0i(e),options:[e,t]}),nvi=(e,t)=>({...Q0i(e),options:[e,t]});function apt(e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const lpt={...Mx},rvi=lpt.useInsertionEffect,ivi=rvi||(e=>e());function Ma(e){const t=d.useRef(()=>{});return ivi(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}const L6e="ArrowUp",K_="ArrowDown",A4="ArrowLeft",D4="ArrowRight";function EF(e,t,n){return Math.floor(e/t)!==n}function xO(e,t){return t<0||t>=e.current.length}function woe(e,t){return Tl(e,{disabledIndices:t})}function pFe(e,t){return Tl(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Tl(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:o=1}=t===void 0?{}:t;const s=e.current;let a=n;do a+=r?-o:o;while(a>=0&&a<=s.length-1&&mk(s,a,i));return a}function ovi(e,t){let{event:n,orientation:r,loop:i,rtl:o,cols:s,disabledIndices:a,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:f=!1}=t,h=u;if(n.key===L6e){if(f&&Za(n),u===-1)h=c;else if(h=Tl(e,{startingIndex:h,amount:s,decrement:!0,disabledIndices:a}),i&&(u-s<l||h<0)){const g=u%s,p=c%s,m=c-(p-g);p===g?h=c:h=p>g?m:m-s}xO(e,h)&&(h=u)}if(n.key===K_&&(f&&Za(n),u===-1?h=l:(h=Tl(e,{startingIndex:u,amount:s,disabledIndices:a}),i&&u+s>c&&(h=Tl(e,{startingIndex:u%s-s,amount:s,disabledIndices:a}))),xO(e,h)&&(h=u)),r==="both"){const g=FS(u/s);n.key===(o?A4:D4)&&(f&&Za(n),u%s!==s-1?(h=Tl(e,{startingIndex:u,disabledIndices:a}),i&&EF(h,s,g)&&(h=Tl(e,{startingIndex:u-u%s-1,disabledIndices:a}))):i&&(h=Tl(e,{startingIndex:u-u%s-1,disabledIndices:a})),EF(h,s,g)&&(h=u)),n.key===(o?D4:A4)&&(f&&Za(n),u%s!==0?(h=Tl(e,{startingIndex:u,decrement:!0,disabledIndices:a}),i&&EF(h,s,g)&&(h=Tl(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:a}))):i&&(h=Tl(e,{startingIndex:u+(s-u%s),decrement:!0,disabledIndices:a})),EF(h,s,g)&&(h=u));const p=FS(c/s)===g;xO(e,h)&&(i&&p?h=n.key===(o?D4:A4)?c:Tl(e,{startingIndex:u-u%s-1,disabledIndices:a}):h=u)}return h}function svi(e,t,n){const r=[];let i=0;return e.forEach((o,s)=>{let{width:a,height:l}=o,c=!1;for(n&&(i=0);!c;){const u=[];for(let f=0;f<a;f++)for(let h=0;h<l;h++)u.push(i+f+h*t);i%t+a<=t&&u.every(f=>r[f]==null)?(u.forEach(f=>{r[f]=s}),c=!0):i++}}),[...r]}function avi(e,t,n,r,i){if(e===-1)return-1;const o=n.indexOf(e),s=t[e];switch(i){case"tl":return o;case"tr":return s?o+s.width-1:o;case"bl":return s?o+(s.height-1)*r:o;case"br":return n.lastIndexOf(e)}}function lvi(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function mk(e,t,n){if(n)return n.includes(t);const r=e[t];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}var co=typeof document<"u"?d.useLayoutEffect:d.useEffect;function cvi(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function uvi(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}const cpt=d.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function dvi(e){const{children:t,elementsRef:n,labelsRef:r}=e,[i,o]=d.useState(()=>new Map),s=d.useCallback(l=>{o(c=>new Map(c).set(l,null))},[]),a=d.useCallback(l=>{o(c=>{const u=new Map(c);return u.delete(l),u})},[]);return co(()=>{const l=new Map(i);Array.from(l.keys()).sort(cvi).forEach((u,f)=>{l.set(u,f)}),uvi(i,l)||o(l)},[i]),d.createElement(cpt.Provider,{value:d.useMemo(()=>({register:s,unregister:a,map:i,elementsRef:n,labelsRef:r}),[s,a,i,n,r])},t)}function upt(e){e===void 0&&(e={});const{label:t}=e,{register:n,unregister:r,map:i,elementsRef:o,labelsRef:s}=d.useContext(cpt),[a,l]=d.useState(null),c=d.useRef(null),u=d.useCallback(f=>{if(c.current=f,a!==null&&(o.current[a]=f,s)){var h;const g=t!==void 0;s.current[a]=g?t:(h=f==null?void 0:f.textContent)!=null?h:null}},[a,o,s,t]);return co(()=>{const f=c.current;if(f)return n(f),()=>{r(f)}},[n,r]),co(()=>{const f=c.current?i.get(c.current):null;f!=null&&l(f)},[i]),d.useMemo(()=>({ref:u,index:a??-1}),[a,u])}function NH(){return NH=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},NH.apply(this,arguments)}let mFe=!1,fvi=0;const vFe=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+fvi++;function hvi(){const[e,t]=d.useState(()=>mFe?vFe():void 0);return co(()=>{e==null&&t(vFe())},[]),d.useEffect(()=>{mFe=!0},[]),e}const gvi=lpt.useId,lZ=gvi||hvi;function dpt(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const fpt=d.createContext(null),hpt=d.createContext(null),d6=()=>{var e;return((e=d.useContext(fpt))==null?void 0:e.id)||null},f6=()=>d.useContext(hpt);function pvi(e){const t=lZ(),n=f6(),i=d6();return co(()=>{const o={id:t,parentId:i};return n==null||n.addNode(o),()=>{n==null||n.removeNode(o)}},[n,t,i]),t}function mvi(e){const{children:t,id:n}=e,r=d6();return d.createElement(fpt.Provider,{value:d.useMemo(()=>({id:n,parentId:r}),[n,r])},t)}function vvi(e){const{children:t}=e,n=d.useRef([]),r=d.useCallback(s=>{n.current=[...n.current,s]},[]),i=d.useCallback(s=>{n.current=n.current.filter(a=>a!==s)},[]),o=d.useState(()=>dpt())[0];return d.createElement(hpt.Provider,{value:d.useMemo(()=>({nodesRef:n,addNode:r,removeNode:i,events:o}),[r,i,o])},t)}function Tx(e){return"data-floating-ui-"+e}function ed(e){const t=d.useRef(e);return co(()=>{t.current=e}),t}const CFe=Tx("safe-polygon");function xoe(e,t,n){return n&&!xI(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Cvi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:s}=e,{enabled:a=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:f=0,move:h=!0}=t,g=f6(),p=d6(),m=ed(c),v=ed(l),C=ed(n),y=d.useRef(),b=d.useRef(-1),S=d.useRef(),w=d.useRef(-1),x=d.useRef(!0),E=d.useRef(!1),R=d.useRef(()=>{}),O=d.useRef(!1),T=d.useCallback(()=>{var I;const A=(I=i.current.openEvent)==null?void 0:I.type;return(A==null?void 0:A.includes("mouse"))&&A!=="mousedown"},[i]);d.useEffect(()=>{if(!a)return;function I(A){let{open:N}=A;N||(clearTimeout(b.current),clearTimeout(w.current),x.current=!0,O.current=!1)}return o.on("openchange",I),()=>{o.off("openchange",I)}},[a,o]),d.useEffect(()=>{if(!a||!m.current||!n)return;function I(N){T()&&r(!1,N,"hover")}const A=Al(s.floating).documentElement;return A.addEventListener("mouseleave",I),()=>{A.removeEventListener("mouseleave",I)}},[s.floating,n,r,a,m,T]);const M=d.useCallback(function(I,A,N){A===void 0&&(A=!0),N===void 0&&(N="hover");const B=xoe(v.current,"close",y.current);B&&!S.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>r(!1,I,N),B)):A&&(clearTimeout(b.current),r(!1,I,N))},[v,r]),_=Ma(()=>{R.current(),S.current=void 0}),F=Ma(()=>{if(E.current){const I=Al(s.floating).body;I.style.pointerEvents="",I.removeAttribute(CFe),E.current=!1}}),D=Ma(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);d.useEffect(()=>{if(!a)return;function I(z){if(clearTimeout(b.current),x.current=!1,u&&!xI(y.current)||f>0&&!xoe(v.current,"open"))return;const j=xoe(v.current,"open",y.current);j?b.current=window.setTimeout(()=>{C.current||r(!0,z,"hover")},j):n||r(!0,z,"hover")}function A(z){if(D())return;R.current();const j=Al(s.floating);if(clearTimeout(w.current),O.current=!1,m.current&&i.current.floatingContext){n||clearTimeout(b.current),S.current=m.current({...i.current.floatingContext,tree:g,x:z.clientX,y:z.clientY,onClose(){F(),_(),D()||M(z,!0,"safe-polygon")}});const G=S.current;j.addEventListener("mousemove",G),R.current=()=>{j.removeEventListener("mousemove",G)};return}(y.current==="touch"?!$a(s.floating,z.relatedTarget):!0)&&M(z)}function N(z){D()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:g,x:z.clientX,y:z.clientY,onClose(){F(),_(),D()||M(z)}})(z))}if(Ao(s.domReference)){var B;const z=s.domReference;return n&&z.addEventListener("mouseleave",N),(B=s.floating)==null||B.addEventListener("mouseleave",N),h&&z.addEventListener("mousemove",I,{once:!0}),z.addEventListener("mouseenter",I),z.addEventListener("mouseleave",A),()=>{var j;n&&z.removeEventListener("mouseleave",N),(j=s.floating)==null||j.removeEventListener("mouseleave",N),h&&z.removeEventListener("mousemove",I),z.removeEventListener("mouseenter",I),z.removeEventListener("mouseleave",A)}}},[s,a,e,u,f,h,M,_,F,r,n,C,g,v,m,i,D]),co(()=>{var I;if(a&&n&&(I=m.current)!=null&&I.__options.blockPointerEvents&&T()){E.current=!0;const N=s.floating;if(Ao(s.domReference)&&N){var A;const B=Al(s.floating).body;B.setAttribute(CFe,"");const z=s.domReference,j=g==null||(A=g.nodesRef.current.find(W=>W.id===p))==null||(A=A.context)==null?void 0:A.elements.floating;return j&&(j.style.pointerEvents=""),B.style.pointerEvents="none",z.style.pointerEvents="auto",N.style.pointerEvents="auto",()=>{B.style.pointerEvents="",z.style.pointerEvents="",N.style.pointerEvents=""}}}},[a,n,p,s,g,m,T]),co(()=>{n||(y.current=void 0,O.current=!1,_(),F())},[n,_,F]),d.useEffect(()=>()=>{_(),clearTimeout(b.current),clearTimeout(w.current),F()},[a,s.domReference,_,F]);const k=d.useMemo(()=>{function I(A){y.current=A.pointerType}return{onPointerDown:I,onPointerEnter:I,onMouseMove(A){const{nativeEvent:N}=A;function B(){!x.current&&!C.current&&r(!0,N,"hover")}u&&!xI(y.current)||n||f===0||O.current&&A.movementX**2+A.movementY**2<2||(clearTimeout(w.current),y.current==="touch"?B():(O.current=!0,w.current=window.setTimeout(B,f)))}}},[u,r,n,C,f]),L=d.useMemo(()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(I){D()||M(I.nativeEvent,!1)}}),[M,D]);return d.useMemo(()=>a?{reference:k,floating:L}:{},[a,k,L])}let yFe=0;function A2(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(yFe);const o=()=>e==null?void 0:e.focus({preventScroll:n});i?o():yFe=requestAnimationFrame(o)}function yvi(e,t){var n;let r=[],i=(n=e.find(o=>o.id===t))==null?void 0:n.parentId;for(;i;){const o=e.find(s=>s.id===i);i=o==null?void 0:o.parentId,o&&(r=r.concat(o))}return r}function vC(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(s=>{var a;return i.parentId===s.id&&((a=i.context)==null?void 0:a.open)})}),n=n.concat(r);return n}function bvi(e,t){let n,r=-1;function i(o,s){s>r&&(n=o,r=s),vC(e,o).forEach(l=>{i(l.id,s+1)})}return i(t,0),e.find(o=>o.id===n)}let G5=new WeakMap,RF=new WeakSet,$F={},Eoe=0;const Svi=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,gpt=e=>e&&(e.host||gpt(e.parentNode)),wvi=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=gpt(n);return e.contains(r)?r:null}).filter(n=>n!=null);function xvi(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,s=wvi(t,e),a=new Set,l=new Set(s),c=[];$F[i]||($F[i]=new WeakMap);const u=$F[i];s.forEach(f),h(t),a.clear();function f(g){!g||a.has(g)||(a.add(g),g.parentNode&&f(g.parentNode))}function h(g){!g||l.has(g)||[].forEach.call(g.children,p=>{if(u6(p)!=="script")if(a.has(p))h(p);else{const m=o?p.getAttribute(o):null,v=m!==null&&m!=="false",C=(G5.get(p)||0)+1,y=(u.get(p)||0)+1;G5.set(p,C),u.set(p,y),c.push(p),C===1&&v&&RF.add(p),y===1&&p.setAttribute(i,""),!v&&o&&p.setAttribute(o,"true")}})}return Eoe++,()=>{c.forEach(g=>{const p=(G5.get(g)||0)-1,m=(u.get(g)||0)-1;G5.set(g,p),u.set(g,m),p||(!RF.has(g)&&o&&g.removeAttribute(o),RF.delete(g)),m||g.removeAttribute(i)}),Eoe--,Eoe||(G5=new WeakMap,G5=new WeakMap,RF=new WeakSet,$F={})}}function bFe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=Al(e[0]).body;return xvi(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const EI=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ppt(e,t){const n=aZ(e,EI());t==="prev"&&n.reverse();const r=n.indexOf(i0(Al(e)));return n.slice(r+1)[0]}function mpt(){return ppt(document.body,"next")}function vpt(){return ppt(document.body,"prev")}function EO(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!$a(n,r)}function Evi(e){aZ(e,EI()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function SFe(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const cZ={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Rvi;function wFe(e){e.key==="Tab"&&(e.target,clearTimeout(Rvi))}const kH=d.forwardRef(function(t,n){const[r,i]=d.useState();co(()=>(Ggt()&&i("button"),document.addEventListener("keydown",wFe),()=>{document.removeEventListener("keydown",wFe)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Tx("focus-guard")]:"",style:cZ};return d.createElement("span",NH({},t,o))}),Cpt=d.createContext(null),xFe=Tx("portal");function $vi(e){e===void 0&&(e={});const{id:t,root:n}=e,r=lZ(),i=ypt(),[o,s]=d.useState(null),a=d.useRef(null);return co(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{a.current=null})},[o]),co(()=>{if(!r||a.current)return;const l=t?document.getElementById(t):null;if(!l)return;const c=document.createElement("div");c.id=r,c.setAttribute(xFe,""),l.appendChild(c),a.current=c,s(c)},[t,r]),co(()=>{if(n===null||!r||a.current)return;let l=n||(i==null?void 0:i.portalNode);l&&!Ao(l)&&(l=l.current),l=l||document.body;let c=null;t&&(c=document.createElement("div"),c.id=t,l.appendChild(c));const u=document.createElement("div");u.id=r,u.setAttribute(xFe,""),l=c||l,l.appendChild(u),a.current=u,s(u)},[t,n,r,i]),o}function Ovi(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=$vi({id:n,root:r}),[s,a]=d.useState(null),l=d.useRef(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=s==null?void 0:s.modal,g=s==null?void 0:s.open,p=!!s&&!s.modal&&s.open&&i&&!!(r||o);return d.useEffect(()=>{if(!o||!i||h)return;function m(v){o&&EO(v)&&(v.type==="focusin"?SFe:Evi)(o)}return o.addEventListener("focusin",m,!0),o.addEventListener("focusout",m,!0),()=>{o.removeEventListener("focusin",m,!0),o.removeEventListener("focusout",m,!0)}},[o,i,h]),d.useEffect(()=>{o&&(g||SFe(o))},[g,o]),d.createElement(Cpt.Provider,{value:d.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:f,portalNode:o,setFocusManagerState:a}),[i,o])},p&&o&&d.createElement(kH,{"data-type":"outside",ref:l,onFocus:m=>{if(EO(m,o)){var v;(v=u.current)==null||v.focus()}else{const C=vpt()||(s==null?void 0:s.refs.domReference.current);C==null||C.focus()}}}),p&&o&&d.createElement("span",{"aria-owns":o.id,style:cZ}),o&&fo.createPortal(t,o),p&&o&&d.createElement(kH,{"data-type":"outside",ref:c,onFocus:m=>{if(EO(m,o)){var v;(v=f.current)==null||v.focus()}else{const C=mpt()||(s==null?void 0:s.refs.domReference.current);C==null||C.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,m.nativeEvent,"focus-out"))}}}))}const ypt=()=>d.useContext(Cpt),Ife="data-floating-ui-focusable";function bpt(e){return e?e.hasAttribute(Ife)?e:e.querySelector("["+Ife+"]")||e:null}const Tvi=20;let u8=[];function Roe(e){u8=u8.filter(n=>n.isConnected);let t=e;if(!(!t||u6(t)==="body")){if(!O0i(t,EI())){const n=aZ(t,EI())[0];n&&(t=n)}u8.push(t),u8.length>Tvi&&(u8=u8.slice(-20))}}function EFe(){return u8.slice().reverse().find(e=>e.isConnected)}const Ivi=d.forwardRef(function(t,n){return d.createElement("button",NH({},t,{type:"button",ref:n,tabIndex:-1,style:cZ}))});function Mvi(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:o=!0,initialFocus:s=0,returnFocus:a=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:f=!0}=e,{open:h,refs:g,nodeId:p,onOpenChange:m,events:v,dataRef:C,floatingId:y,elements:{domReference:b,floating:S}}=t,w=typeof s=="number"&&s<0,x=$fe(b)&&w,E=Svi()?o:!0,R=ed(i),O=ed(s),T=ed(a),M=f6(),_=ypt(),F=d.useRef(null),D=d.useRef(null),k=d.useRef(!1),L=d.useRef(!1),I=d.useRef(-1),A=_!=null,N=bpt(S),B=Ma(function(G){return G===void 0&&(G=N),G?aZ(G,EI()):[]}),z=Ma(G=>{const K=B(G);return R.current.map(q=>b&&q==="reference"?b:N&&q==="floating"?N:K).filter(Boolean).flat()});d.useEffect(()=>{if(r||!c)return;function G(q){if(q.key==="Tab"){$a(N,i0(Al(N)))&&B().length===0&&!x&&Za(q);const X=z(),Q=z2(q);R.current[0]==="reference"&&Q===b&&(Za(q),q.shiftKey?A2(X[X.length-1]):A2(X[1])),R.current[1]==="floating"&&Q===N&&q.shiftKey&&(Za(q),A2(X[0]))}}const K=Al(N);return K.addEventListener("keydown",G),()=>{K.removeEventListener("keydown",G)}},[r,b,N,c,R,x,B,z]),d.useEffect(()=>{if(r||!S)return;function G(K){const q=z2(K),Q=B().indexOf(q);Q!==-1&&(I.current=Q)}return S.addEventListener("focusin",G),()=>{S.removeEventListener("focusin",G)}},[r,S,B]),d.useEffect(()=>{if(r||!f)return;function G(){L.current=!0,setTimeout(()=>{L.current=!1})}function K(q){const X=q.relatedTarget;queueMicrotask(()=>{const Q=!($a(b,X)||$a(S,X)||$a(X,S)||$a(_==null?void 0:_.portalNode,X)||X!=null&&X.hasAttribute(Tx("focus-guard"))||M&&(vC(M.nodesRef.current,p).find(te=>{var ne,Z;return $a((ne=te.context)==null?void 0:ne.elements.floating,X)||$a((Z=te.context)==null?void 0:Z.elements.domReference,X)})||yvi(M.nodesRef.current,p).find(te=>{var ne,Z;return((ne=te.context)==null?void 0:ne.elements.floating)===X||((Z=te.context)==null?void 0:Z.elements.domReference)===X})));if(l&&Q&&i0(Al(N))===Al(N).body){na(N)&&N.focus();const te=I.current,ne=B(),Z=ne[te]||ne[ne.length-1]||N;na(Z)&&Z.focus()}(x||!c)&&X&&Q&&!L.current&&X!==EFe()&&(k.current=!0,m(!1,q,"focus-out"))})}if(S&&na(b))return b.addEventListener("focusout",K),b.addEventListener("pointerdown",G),S.addEventListener("focusout",K),()=>{b.removeEventListener("focusout",K),b.removeEventListener("pointerdown",G),S.removeEventListener("focusout",K)}},[r,b,S,N,c,p,M,_,m,f,l,B,x]),d.useEffect(()=>{var G;if(r)return;const K=Array.from((_==null||(G=_.portalNode)==null?void 0:G.querySelectorAll("["+Tx("portal")+"]"))||[]);if(S){const q=[S,...K,F.current,D.current,R.current.includes("reference")||x?b:null].filter(Q=>Q!=null),X=c||x?bFe(q,E,!E):bFe(q);return()=>{X()}}},[r,b,S,c,R,_,x,E]),co(()=>{if(r||!na(N))return;const G=Al(N),K=i0(G);queueMicrotask(()=>{const q=z(N),X=O.current,Q=(typeof X=="number"?q[X]:X.current)||N,te=$a(N,K);!w&&!te&&h&&A2(Q,{preventScroll:Q===N})})},[r,h,N,w,z,O]),co(()=>{if(r||!N)return;let G=!1;const K=Al(N),q=i0(K);let Q=C.current.openEvent;Roe(q);function te(ee){let{open:J,reason:oe,event:le,nested:ge}=ee;J&&(Q=le),oe==="escape-key"&&g.domReference.current&&Roe(g.domReference.current),oe==="hover"&&le.type==="mouseleave"&&(k.current=!0),oe==="outside-press"&&(ge?(k.current=!1,G=!0):k.current=!(jgt(le)||Vgt(le)))}v.on("openchange",te);const ne=K.createElement("span");ne.setAttribute("tabindex","-1"),ne.setAttribute("aria-hidden","true"),Object.assign(ne.style,cZ),A&&b&&b.insertAdjacentElement("afterend",ne);function Z(){return typeof T.current=="boolean"?EFe()||ne:T.current.current||ne}return()=>{v.off("openchange",te);const ee=i0(K),J=$a(S,ee)||M&&vC(M.nodesRef.current,p).some(ge=>{var he;return $a((he=ge.context)==null?void 0:he.elements.floating,ee)});(J||Q&&["click","mousedown"].includes(Q.type))&&g.domReference.current&&Roe(g.domReference.current);const le=Z();queueMicrotask(()=>{T.current&&!k.current&&na(le)&&(!(le!==ee&&ee!==K.body)||J)&&le.focus({preventScroll:G}),ne.remove()})}},[r,S,N,T,C,g,v,M,p,A,b]),d.useEffect(()=>{queueMicrotask(()=>{k.current=!1})},[r]),co(()=>{if(!r&&_)return _.setFocusManagerState({modal:c,closeOnFocusOut:f,open:h,onOpenChange:m,refs:g}),()=>{_.setFocusManagerState(null)}},[r,_,c,h,m,g,f]),co(()=>{if(r||!N||typeof MutationObserver!="function"||w)return;const G=()=>{const q=N.getAttribute("tabindex"),X=B(),Q=i0(Al(S)),te=X.indexOf(Q);te!==-1&&(I.current=te),R.current.includes("floating")||Q!==g.domReference.current&&X.length===0?q!=="0"&&N.setAttribute("tabindex","0"):q!=="-1"&&N.setAttribute("tabindex","-1")};G();const K=new MutationObserver(G);return K.observe(N,{childList:!0,subtree:!0,attributes:!0}),()=>{K.disconnect()}},[r,S,N,g,R,B,w]);function j(G){return r||!u||!c?null:d.createElement(Ivi,{ref:G==="start"?F:D,onClick:K=>m(!1,K.nativeEvent)},typeof u=="string"?u:"Dismiss")}const W=!r&&E&&(c?!x:!0)&&(A||c);return d.createElement(d.Fragment,null,W&&d.createElement(kH,{"data-type":"inside",ref:_==null?void 0:_.beforeInsideRef,onFocus:G=>{if(c){const q=z();A2(i[0]==="reference"?q[0]:q[q.length-1])}else if(_!=null&&_.preserveTabOrder&&_.portalNode)if(k.current=!1,EO(G,_.portalNode)){const q=mpt()||b;q==null||q.focus()}else{var K;(K=_.beforeOutsideRef.current)==null||K.focus()}}}),!x&&j("start"),n,j("end"),W&&d.createElement(kH,{"data-type":"inside",ref:_==null?void 0:_.afterInsideRef,onFocus:G=>{if(c)A2(z()[0]);else if(_!=null&&_.preserveTabOrder&&_.portalNode)if(f&&(k.current=!0),EO(G,_.portalNode)){const q=vpt()||b;q==null||q.focus()}else{var K;(K=_.afterOutsideRef.current)==null||K.focus()}}}))}function RFe(e){return na(e.target)&&e.target.tagName==="BUTTON"}function $Fe(e){return Wgt(e)}function Pvi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:f=!0}=t,h=d.useRef(),g=d.useRef(!1),p=d.useMemo(()=>({onPointerDown(m){h.current=m.pointerType},onMouseDown(m){const v=h.current;m.button===0&&a!=="click"&&(xI(v,!0)&&c||(n&&l&&(!(i.current.openEvent&&f)||i.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent,"click"):(m.preventDefault(),r(!0,m.nativeEvent,"click"))))},onClick(m){const v=h.current;if(a==="mousedown"&&h.current){h.current=void 0;return}xI(v,!0)&&c||(n&&l&&(!(i.current.openEvent&&f)||i.current.openEvent.type==="click")?r(!1,m.nativeEvent,"click"):r(!0,m.nativeEvent,"click"))},onKeyDown(m){h.current=void 0,!(m.defaultPrevented||!u||RFe(m))&&(m.key===" "&&!$Fe(o)&&(m.preventDefault(),g.current=!0),m.key==="Enter"&&r(!(n&&l),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!u||RFe(m)||$Fe(o)||m.key===" "&&g.current&&(g.current=!1,r(!(n&&l),m.nativeEvent,"click"))}}),[i,o,a,c,u,r,n,f,l]);return d.useMemo(()=>s?{reference:p}:{},[s,p])}const _vi={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Avi={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},OFe=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Dvi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:g,capture:p}=t,m=f6(),v=Ma(typeof l=="function"?l:()=>!1),C=typeof l=="function"?v:l,y=d.useRef(!1),b=d.useRef(!1),{escapeKey:S,outsidePress:w}=OFe(g),{escapeKey:x,outsidePress:E}=OFe(p),R=d.useRef(!1),O=Ma(k=>{var L;if(!n||!s||!a||k.key!=="Escape"||R.current)return;const I=(L=o.current.floatingContext)==null?void 0:L.nodeId,A=m?vC(m.nodesRef.current,I):[];if(!S&&(k.stopPropagation(),A.length>0)){let N=!0;if(A.forEach(B=>{var z;if((z=B.context)!=null&&z.open&&!B.context.dataRef.current.__escapeKeyBubbles){N=!1;return}}),!N)return}r(!1,Z1i(k)?k.nativeEvent:k,"escape-key")}),T=Ma(k=>{var L;const I=()=>{var A;O(k),(A=z2(k))==null||A.removeEventListener("keydown",I)};(L=z2(k))==null||L.addEventListener("keydown",I)}),M=Ma(k=>{var L;const I=y.current;y.current=!1;const A=b.current;if(b.current=!1,c==="click"&&A||I||typeof C=="function"&&!C(k))return;const N=z2(k),B="["+Tx("inert")+"]",z=Al(i.floating).querySelectorAll(B);let j=Ao(N)?N:null;for(;j&&!u3(j);){const q=Y0(j);if(u3(q)||!Ao(q))break;j=q}if(z.length&&Ao(N)&&!J1i(N)&&!$a(N,i.floating)&&Array.from(z).every(q=>!$a(j,q)))return;if(na(N)&&D){const q=N.clientWidth>0&&N.scrollWidth>N.clientWidth,X=N.clientHeight>0&&N.scrollHeight>N.clientHeight;let Q=X&&k.offsetX>N.clientWidth;if(X&&nh(N).direction==="rtl"&&(Q=k.offsetX<=N.offsetWidth-N.clientWidth),Q||q&&k.offsetY>N.clientHeight)return}const W=(L=o.current.floatingContext)==null?void 0:L.nodeId,G=m&&vC(m.nodesRef.current,W).some(q=>{var X;return yoe(k,(X=q.context)==null?void 0:X.elements.floating)});if(yoe(k,i.floating)||yoe(k,i.domReference)||G)return;const K=m?vC(m.nodesRef.current,W):[];if(K.length>0){let q=!0;if(K.forEach(X=>{var Q;if((Q=X.context)!=null&&Q.open&&!X.context.dataRef.current.__outsidePressBubbles){q=!1;return}}),!q)return}r(!1,k,"outside-press")}),_=Ma(k=>{var L;const I=()=>{var A;M(k),(A=z2(k))==null||A.removeEventListener(c,I)};(L=z2(k))==null||L.addEventListener(c,I)});d.useEffect(()=>{if(!n||!s)return;o.current.__escapeKeyBubbles=S,o.current.__outsidePressBubbles=w;let k=-1;function L(z){r(!1,z,"ancestor-scroll")}function I(){window.clearTimeout(k),R.current=!0}function A(){k=window.setTimeout(()=>{R.current=!1},rZ()?5:0)}const N=Al(i.floating);a&&(N.addEventListener("keydown",x?T:O,x),N.addEventListener("compositionstart",I),N.addEventListener("compositionend",A)),C&&N.addEventListener(c,E?_:M,E);let B=[];return h&&(Ao(i.domReference)&&(B=_4(i.domReference)),Ao(i.floating)&&(B=B.concat(_4(i.floating))),!Ao(i.reference)&&i.reference&&i.reference.contextElement&&(B=B.concat(_4(i.reference.contextElement)))),B=B.filter(z=>{var j;return z!==((j=N.defaultView)==null?void 0:j.visualViewport)}),B.forEach(z=>{z.addEventListener("scroll",L,{passive:!0})}),()=>{a&&(N.removeEventListener("keydown",x?T:O,x),N.removeEventListener("compositionstart",I),N.removeEventListener("compositionend",A)),C&&N.removeEventListener(c,E?_:M,E),B.forEach(z=>{z.removeEventListener("scroll",L)}),window.clearTimeout(k)}},[o,i,a,C,c,n,r,h,s,S,w,O,x,T,M,E,_]),d.useEffect(()=>{y.current=!1},[C,c]);const F=d.useMemo(()=>({onKeyDown:O,[_vi[f]]:k=>{u&&r(!1,k.nativeEvent,"reference-press")}}),[O,r,u,f]),D=d.useMemo(()=>({onKeyDown:O,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[Avi[c]]:()=>{y.current=!0}}),[O,c]);return d.useMemo(()=>s?{reference:F,floating:D}:{},[s,F,D])}function Lvi(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=lZ(),o=d.useRef({}),[s]=d.useState(()=>dpt()),a=d6()!=null,[l,c]=d.useState(r.reference),u=Ma((g,p,m)=>{o.current.openEvent=g?p:void 0,s.emit("openchange",{open:g,event:p,reason:m,nested:a}),n==null||n(g,p,m)}),f=d.useMemo(()=>({setPositionReference:c}),[]),h=d.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return d.useMemo(()=>({dataRef:o,open:t,onOpenChange:u,elements:h,events:s,floatingId:i,refs:f}),[t,u,h,s,i,f])}function Fvi(e){e===void 0&&(e={});const{nodeId:t}=e,n=Lvi({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=d.useState(null),[a,l]=d.useState(null),u=(i==null?void 0:i.domReference)||o,f=d.useRef(null),h=f6();co(()=>{u&&(f.current=u)},[u]);const g=J0i({...e,elements:{...i,...a&&{reference:a}}}),p=d.useCallback(b=>{const S=Ao(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l(S),g.refs.setReference(S)},[g.refs]),m=d.useCallback(b=>{(Ao(b)||b===null)&&(f.current=b,s(b)),(Ao(g.refs.reference.current)||g.refs.reference.current===null||b!==null&&!Ao(b))&&g.refs.setReference(b)},[g.refs]),v=d.useMemo(()=>({...g.refs,setReference:m,setPositionReference:p,domReference:f}),[g.refs,m,p]),C=d.useMemo(()=>({...g.elements,domReference:u}),[g.elements,u]),y=d.useMemo(()=>({...g,...r,refs:v,elements:C,nodeId:t}),[g,v,C,t,r]);return co(()=>{r.dataRef.current.floatingContext=y;const b=h==null?void 0:h.nodesRef.current.find(S=>S.id===t);b&&(b.context=y)}),d.useMemo(()=>({...g,context:y,refs:v,elements:C}),[g,v,C,y])}const TFe="active",IFe="selected";function $oe(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[TFe]:s,[IFe]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[Ife]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,u]=l;if(!(i&&[TFe,IFe].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof u=="function"){var f;(f=r.get(c))==null||f.push(u),s[c]=function(){for(var h,g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];return(h=r.get(c))==null?void 0:h.map(v=>v(...p)).find(v=>v!==void 0)}}}else s[c]=u}),s),{})}}function Nvi(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),i=d.useCallback(a=>$oe(a,e,"reference"),t),o=d.useCallback(a=>$oe(a,e,"floating"),n),s=d.useCallback(a=>$oe(a,e,"item"),r);return d.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}let MFe=!1;function uZ(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function PFe(e,t){return uZ(t,e===L6e||e===K_,e===A4||e===D4)}function Ooe(e,t,n){return uZ(t,e===K_,n?e===A4:e===D4)||e==="Enter"||e===" "||e===""}function kvi(e,t,n){return uZ(t,n?e===A4:e===D4,e===K_)}function _Fe(e,t,n){return uZ(t,n?e===D4:e===A4,e===L6e)}function zvi(e,t){const{open:n,onOpenChange:r,elements:i}=e,{listRef:o,activeIndex:s,onNavigate:a=()=>{},enabled:l=!0,selectedIndex:c=null,allowEscape:u=!1,loop:f=!1,nested:h=!1,rtl:g=!1,virtual:p=!1,focusItemOnOpen:m="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:C=!0,disabledIndices:y=void 0,orientation:b="vertical",cols:S=1,scrollItemIntoView:w=!0,virtualItemRef:x,itemSizes:E,dense:R=!1}=t,O=bpt(i.floating),T=ed(O),M=d6(),_=f6(),F=Ma(a),D=$fe(i.domReference),k=d.useRef(m),L=d.useRef(c??-1),I=d.useRef(null),A=d.useRef(!0),N=d.useRef(F),B=d.useRef(!!i.floating),z=d.useRef(n),j=d.useRef(!1),W=d.useRef(!1),G=ed(y),K=ed(n),q=ed(w),X=ed(c),[Q,te]=d.useState(),[ne,Z]=d.useState(),ee=Ma(function(ue,ve,de){de===void 0&&(de=!1);function xe(De){p?(te(De.id),_==null||_.events.emit("virtualfocus",De),x&&(x.current=De)):A2(De,{preventScroll:!0,sync:X1i()&&Ggt()?MFe||j.current:!1})}const Ee=ue.current[ve.current];Ee&&xe(Ee),requestAnimationFrame(()=>{const De=ue.current[ve.current]||Ee;if(!De)return;Ee||xe(De);const Be=q.current;Be&&oe&&(de||!A.current)&&(De.scrollIntoView==null||De.scrollIntoView(typeof Be=="boolean"?{block:"nearest",inline:"nearest"}:Be))})});co(()=>{document.createElement("div").focus({get preventScroll(){return MFe=!0,!1}})},[]),co(()=>{l&&(n&&i.floating?k.current&&c!=null&&(W.current=!0,L.current=c,F(c)):B.current&&(L.current=-1,N.current(null)))},[l,n,i.floating,c,F]),co(()=>{if(l&&n&&i.floating)if(s==null){if(j.current=!1,X.current!=null)return;if(B.current&&(L.current=-1,ee(o,L)),(!z.current||!B.current)&&k.current&&(I.current!=null||k.current===!0&&I.current==null)){let ue=0;const ve=()=>{o.current[0]==null?(ue<2&&(ue?requestAnimationFrame:queueMicrotask)(ve),ue++):(L.current=I.current==null||Ooe(I.current,b,g)||h?woe(o,G.current):pFe(o,G.current),I.current=null,F(L.current))};ve()}}else xO(o,s)||(L.current=s,ee(o,L,W.current),W.current=!1)},[l,n,i.floating,s,X,h,o,b,g,F,ee,G]),co(()=>{var ue;if(!l||i.floating||!_||p||!B.current)return;const ve=_.nodesRef.current,de=(ue=ve.find(De=>De.id===M))==null||(ue=ue.context)==null?void 0:ue.elements.floating,xe=i0(Al(i.floating)),Ee=ve.some(De=>De.context&&$a(De.context.elements.floating,xe));de&&!Ee&&A.current&&de.focus({preventScroll:!0})},[l,i.floating,_,M,p]),co(()=>{if(!l||!_||!p||M)return;function ue(ve){Z(ve.id),x&&(x.current=ve)}return _.events.on("virtualfocus",ue),()=>{_.events.off("virtualfocus",ue)}},[l,_,p,M,x]),co(()=>{N.current=F,B.current=!!i.floating}),co(()=>{n||(I.current=null)},[n]),co(()=>{z.current=n},[n]);const J=s!=null,oe=d.useMemo(()=>{function ue(de){if(!n)return;const xe=o.current.indexOf(de);xe!==-1&&F(xe)}return{onFocus(de){let{currentTarget:xe}=de;ue(xe)},onClick:de=>{let{currentTarget:xe}=de;return xe.focus({preventScroll:!0})},...v&&{onMouseMove(de){let{currentTarget:xe}=de;ue(xe)},onPointerLeave(de){let{pointerType:xe}=de;!A.current||xe==="touch"||(L.current=-1,ee(o,L),F(null),p||A2(T.current,{preventScroll:!0}))}}}},[n,T,ee,v,o,F,p]),le=Ma(ue=>{if(A.current=!1,j.current=!0,ue.which===229||!K.current&&ue.currentTarget===T.current)return;if(h&&_Fe(ue.key,b,g)){Za(ue),r(!1,ue.nativeEvent,"list-navigation"),na(i.domReference)&&(p?_==null||_.events.emit("virtualfocus",i.domReference):i.domReference.focus());return}const ve=L.current,de=woe(o,y),xe=pFe(o,y);if(D||(ue.key==="Home"&&(Za(ue),L.current=de,F(L.current)),ue.key==="End"&&(Za(ue),L.current=xe,F(L.current))),S>1){const Ee=E||Array.from({length:o.current.length},()=>({width:1,height:1})),De=svi(Ee,S,R),Be=De.findIndex(We=>We!=null&&!mk(o.current,We,y)),Ge=De.reduce((We,Ve,Fe)=>Ve!=null&&!mk(o.current,Ve,y)?Fe:We,-1),Ue=De[ovi({current:De.map(We=>We!=null?o.current[We]:null)},{event:ue,orientation:b,loop:f,rtl:g,cols:S,disabledIndices:lvi([...y||o.current.map((We,Ve)=>mk(o.current,Ve)?Ve:void 0),void 0],De),minIndex:Be,maxIndex:Ge,prevIndex:avi(L.current>xe?de:L.current,Ee,De,S,ue.key===K_?"bl":ue.key===(g?A4:D4)?"tr":"tl"),stopEvent:!0})];if(Ue!=null&&(L.current=Ue,F(L.current)),b==="both")return}if(PFe(ue.key,b)){if(Za(ue),n&&!p&&i0(ue.currentTarget.ownerDocument)===ue.currentTarget){L.current=Ooe(ue.key,b,g)?de:xe,F(L.current);return}Ooe(ue.key,b,g)?f?L.current=ve>=xe?u&&ve!==o.current.length?-1:de:Tl(o,{startingIndex:ve,disabledIndices:y}):L.current=Math.min(xe,Tl(o,{startingIndex:ve,disabledIndices:y})):f?L.current=ve<=de?u&&ve!==-1?o.current.length:xe:Tl(o,{startingIndex:ve,decrement:!0,disabledIndices:y}):L.current=Math.max(de,Tl(o,{startingIndex:ve,decrement:!0,disabledIndices:y})),xO(o,L.current)?F(null):F(L.current)}}),ge=d.useMemo(()=>p&&n&&J&&{"aria-activedescendant":ne||Q},[p,n,J,ne,Q]),he=d.useMemo(()=>({"aria-orientation":b==="both"?void 0:b,...!$fe(i.domReference)&&ge,onKeyDown:le,onPointerMove(){A.current=!0}}),[ge,le,i.domReference,b]),ye=d.useMemo(()=>{function ue(de){m==="auto"&&jgt(de.nativeEvent)&&(k.current=!0)}function ve(de){k.current=m,m==="auto"&&Vgt(de.nativeEvent)&&(k.current=!0)}return{...ge,onKeyDown(de){A.current=!1;const xe=de.key.startsWith("Arrow"),Ee=["Home","End"].includes(de.key),De=xe||Ee,Be=kvi(de.key,b,g),Ge=_Fe(de.key,b,g),Ue=PFe(de.key,b),We=(h?Be:Ue)||de.key==="Enter"||de.key.trim()==="";if(p&&n){const Ye=_==null?void 0:_.nodesRef.current.find(Re=>Re.parentId==null),ze=_&&Ye?bvi(_.nodesRef.current,Ye.id):null;if(De&&ze&&x){const Re=new KeyboardEvent("keydown",{key:de.key,bubbles:!0});if(Be||Ge){var Ve,Fe;const Le=((Ve=ze.context)==null?void 0:Ve.elements.domReference)===de.currentTarget,Me=Ge&&!Le?(Fe=ze.context)==null?void 0:Fe.elements.domReference:Be?o.current.find(be=>(be==null?void 0:be.id)===Q):null;Me&&(Za(de),Me.dispatchEvent(Re),Z(void 0))}if((Ue||Ee)&&ze.context&&ze.context.open&&ze.parentId&&de.currentTarget!==ze.context.elements.domReference){var ke;Za(de),(ke=ze.context.elements.domReference)==null||ke.dispatchEvent(Re);return}}return le(de)}if(!(!n&&!C&&xe)){if(We&&(I.current=h&&Ue?null:de.key),h){Be&&(Za(de),n?(L.current=woe(o,G.current),F(L.current)):r(!0,de.nativeEvent,"list-navigation"));return}Ue&&(c!=null&&(L.current=c),Za(de),!n&&C?r(!0,de.nativeEvent,"list-navigation"):le(de),n&&F(L.current))}},onFocus(){n&&!p&&F(null)},onPointerDown:ve,onMouseDown:ue,onClick:ue}},[Q,ge,le,G,m,o,h,F,r,n,C,b,g,c,_,p,x]);return d.useMemo(()=>l?{reference:ye,floating:he,item:oe}:{},[l,ye,he,oe])}const Bvi=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Hvi(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:s="dialog"}=t,a=(n=Bvi.get(s))!=null?n:s,l=lZ(),u=d6()!=null,f=d.useMemo(()=>a==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":r?i:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&u&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[a,i,u,r,l,s]),h=d.useMemo(()=>{const p={id:i,...a&&{role:a}};return a==="tooltip"||s==="label"?p:{...p,...a==="menu"&&{"aria-labelledby":l}}},[a,i,l,s]),g=d.useCallback(p=>{let{active:m,selected:v}=p;const C={role:"option",...m&&{id:i+"-option"}};switch(s){case"select":return{...C,"aria-selected":m&&v};case"combobox":return{...C,...m&&{"aria-selected":!0}}}return{}},[i,s]);return d.useMemo(()=>o?{reference:f,floating:h,item:g}:{},[o,f,h,g])}function jvi(e,t){var n;const{open:r,dataRef:i}=e,{listRef:o,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:u=null,resetMs:f=750,ignoreKeys:h=[],selectedIndex:g=null}=t,p=d.useRef(),m=d.useRef(""),v=d.useRef((n=g??s)!=null?n:-1),C=d.useRef(null),y=Ma(a),b=Ma(l),S=ed(u),w=ed(h);co(()=>{r&&(clearTimeout(p.current),C.current=null,m.current="")},[r]),co(()=>{if(r&&m.current===""){var T;v.current=(T=g??s)!=null?T:-1}},[r,g,s]);const x=Ma(T=>{T?i.current.typing||(i.current.typing=T,b(T)):i.current.typing&&(i.current.typing=T,b(T))}),E=Ma(T=>{function M(L,I,A){const N=S.current?S.current(I,A):I.find(B=>(B==null?void 0:B.toLocaleLowerCase().indexOf(A.toLocaleLowerCase()))===0);return N?L.indexOf(N):-1}const _=o.current;if(m.current.length>0&&m.current[0]!==" "&&(M(_,_,m.current)===-1?x(!1):T.key===" "&&Za(T)),_==null||w.current.includes(T.key)||T.key.length!==1||T.ctrlKey||T.metaKey||T.altKey)return;r&&T.key!==" "&&(Za(T),x(!0)),_.every(L=>{var I,A;return L?((I=L[0])==null?void 0:I.toLocaleLowerCase())!==((A=L[1])==null?void 0:A.toLocaleLowerCase()):!0})&&m.current===T.key&&(m.current="",v.current=C.current),m.current+=T.key,clearTimeout(p.current),p.current=setTimeout(()=>{m.current="",v.current=C.current,x(!1)},f);const D=v.current,k=M(_,[..._.slice((D||0)+1),..._.slice(0,(D||0)+1)],m.current);k!==-1?(y(k),C.current=k):T.key!==" "&&(m.current="",x(!1))}),R=d.useMemo(()=>({onKeyDown:E}),[E]),O=d.useMemo(()=>({onKeyDown:E,onKeyUp(T){T.key===" "&&x(!1)}}),[E,x]);return d.useMemo(()=>c?{reference:R,floating:O}:{},[c,R,O])}function AFe(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let s=0,a=o-1;s<o;a=s++){const[l,c]=t[s]||[0,0],[u,f]=t[a]||[0,0];c>=r!=f>=r&&n<=(u-l)*(r-c)/(f-c)+l&&(i=!i)}return i}function Vvi(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Gvi(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,o=!1,s=null,a=null,l=performance.now();function c(f,h){const g=performance.now(),p=g-l;if(s===null||a===null||p===0)return s=f,a=h,l=g,null;const m=f-s,v=h-a,y=Math.sqrt(m*m+v*v)/p;return s=f,a=h,l=g,y}const u=f=>{let{x:h,y:g,placement:p,elements:m,onClose:v,nodeId:C,tree:y}=f;return function(S){function w(){clearTimeout(i),v()}if(clearTimeout(i),!m.domReference||!m.floating||p==null||h==null||g==null)return;const{clientX:x,clientY:E}=S,R=[x,E],O=z2(S),T=S.type==="mouseleave",M=$a(m.floating,O),_=$a(m.domReference,O),F=m.domReference.getBoundingClientRect(),D=m.floating.getBoundingClientRect(),k=p.split("-")[0],L=h>D.right-D.width/2,I=g>D.bottom-D.height/2,A=Vvi(R,F),N=D.width>F.width,B=D.height>F.height,z=(N?F:D).left,j=(N?F:D).right,W=(B?F:D).top,G=(B?F:D).bottom;if(M&&(o=!0,!T))return;if(_&&(o=!1),_&&!T){o=!0;return}if(T&&Ao(S.relatedTarget)&&$a(m.floating,S.relatedTarget)||y&&vC(y.nodesRef.current,C).some(X=>{let{context:Q}=X;return Q==null?void 0:Q.open}))return;if(k==="top"&&g>=F.bottom-1||k==="bottom"&&g<=F.top+1||k==="left"&&h>=F.right-1||k==="right"&&h<=F.left+1)return w();let K=[];switch(k){case"top":K=[[z,F.top+1],[z,D.bottom-1],[j,D.bottom-1],[j,F.top+1]];break;case"bottom":K=[[z,D.top+1],[z,F.bottom-1],[j,F.bottom-1],[j,D.top+1]];break;case"left":K=[[D.right-1,G],[D.right-1,W],[F.left+1,W],[F.left+1,G]];break;case"right":K=[[F.right-1,G],[F.right-1,W],[D.left+1,W],[D.left+1,G]];break}function q(X){let[Q,te]=X;switch(k){case"top":{const ne=[N?Q+t/2:L?Q+t*4:Q-t*4,te+t+1],Z=[N?Q-t/2:L?Q+t*4:Q-t*4,te+t+1],ee=[[D.left,L||N?D.bottom-t:D.top],[D.right,L?N?D.bottom-t:D.top:D.bottom-t]];return[ne,Z,...ee]}case"bottom":{const ne=[N?Q+t/2:L?Q+t*4:Q-t*4,te-t],Z=[N?Q-t/2:L?Q+t*4:Q-t*4,te-t],ee=[[D.left,L||N?D.top+t:D.bottom],[D.right,L?N?D.top+t:D.bottom:D.top+t]];return[ne,Z,...ee]}case"left":{const ne=[Q+t+1,B?te+t/2:I?te+t*4:te-t*4],Z=[Q+t+1,B?te-t/2:I?te+t*4:te-t*4];return[...[[I||B?D.right-t:D.left,D.top],[I?B?D.right-t:D.left:D.right-t,D.bottom]],ne,Z]}case"right":{const ne=[Q-t,B?te+t/2:I?te+t*4:te-t*4],Z=[Q-t,B?te-t/2:I?te+t*4:te-t*4],ee=[[I||B?D.left+t:D.right,D.top],[I?B?D.left+t:D.right:D.left+t,D.bottom]];return[ne,Z,...ee]}}}if(!AFe([x,E],K)){if(o&&!A)return w();if(!T&&r){const X=c(S.clientX,S.clientY);if(X!==null&&X<.1)return w()}AFe([x,E],q([h,g]))?!o&&r&&(i=window.setTimeout(w,40)):w()}}};return u.__options={blockPointerEvents:n},u}const Mfe=d.createContext({getItemProps:()=>({}),activeIndex:null,setActiveIndex:()=>{},setHasFocusInside:()=>{},isOpen:!1}),DFe=d.forwardRef(({children:e,label:t,node:n,icon:r,...i},o)=>{const[s,a]=d.useState(!1),[l,c]=d.useState(!1),[u,f]=d.useState(null),h=d.useRef([]),g=d.useRef([]),p=d.useContext(Mfe),m=f6(),v=pvi(),C=d6(),y=upt(),b=C!=null,{floatingStyles:S,refs:w,context:x}=Fvi({nodeId:v,open:s,onOpenChange:a,placement:b?"right-start":"bottom-start",middleware:[evi({mainAxis:4,alignmentAxis:b?-4:0}),nvi(),tvi()],whileElementsMounted:K0i}),E=Cvi(x,{enabled:b,delay:{open:75},handleClose:Gvi({blockPointerEvents:!0})}),R=Pvi(x,{event:"mousedown",toggle:!b,ignoreMouse:b}),O=Hvi(x,{role:"menu"}),T=Dvi(x,{bubbles:!0}),M=zvi(x,{listRef:h,activeIndex:u,nested:b,onNavigate:f}),_=jvi(x,{listRef:g,onMatch:s?f:void 0,activeIndex:u}),{getReferenceProps:F,getFloatingProps:D,getItemProps:k}=Nvi([E,R,O,T,M,_]);return d.useEffect(()=>{if(!m)return;function L(){a(!1)}function I(A){A.nodeId!==v&&A.parentId===C&&a(!1)}return m.events.on("click",L),m.events.on("menuopen",I),()=>{m.events.off("click",L),m.events.off("menuopen",I)}},[m,v,C]),d.useEffect(()=>{s&&m&&m.events.emit("menuopen",{parentId:C,nodeId:v})},[m,s,v,C]),H.jsxs(mvi,{id:v,children:[H.jsxs("button",{ref:apt([w.setReference,y.ref,o]),tabIndex:b?p.activeIndex===y.index?0:-1:void 0,role:b?"menuitem":void 0,"data-open":s?"":void 0,"data-nested":b?"":void 0,"data-focus-inside":l?"":void 0,className:`${b?"hover:bg-textHover hover:text-default":"RootMenu"} rounded-lg outline-none flex items-center px-2 py-1 justify-between`,...F(p.getItemProps({...i,onFocus(L){var I;(I=i.onFocus)==null||I.call(i,L),c(!1),p.setHasFocusInside(!0)}})),children:[H.jsxs("div",{className:"flex items-center",children:[r&&H.jsx("span",{className:"mr-2",children:r}),t,n]}),b&&H.jsx("span",{"aria-hidden":!0,style:{marginLeft:10,fontSize:10},children:H.jsx(kdt,{name:"caret-right"})})]}),H.jsx(Mfe.Provider,{value:{activeIndex:u,setActiveIndex:f,getItemProps:k,setHasFocusInside:c,isOpen:s},children:H.jsx(dvi,{elementsRef:h,labelsRef:g,children:s&&H.jsxs(Ovi,{children:[H.jsx("div",{className:"fixed inset-0 bg-transparent z-10",onClick:()=>a(!1)}),H.jsx(Mvi,{context:x,modal:!1,initialFocus:b?-1:0,returnFocus:!b,children:H.jsx("div",{ref:w.setFloating,className:"Menu bg-container flex flex-col p-1 min-w-20 border-default text-sm text-secondary border outline-none rounded-lg shadow-lg z-20",style:S,...D(),children:e})})]})})})]})}),kf=d.forwardRef(({label:e,disabled:t,icon:n,...r},i)=>{const o=d.useContext(Mfe),s=upt({label:t?null:e}),a=f6(),l=s.index===o.activeIndex;return H.jsxs("button",{...r,ref:apt([s.ref,i]),type:"button",role:"menuitem",className:`MenuItem ${t?"text-quaternary":"hover:bg-textHover hover:text-default"} outline-none rounded-lg flex items-center px-2 py-1 `,tabIndex:l?0:-1,disabled:t,...o.getItemProps({onClick(c){var u;(u=r.onClick)==null||u.call(r,c),a==null||a.events.emit("click")},onFocus(c){var u;(u=r.onFocus)==null||u.call(r,c),o.setHasFocusInside(!0)}}),children:[n&&H.jsx("span",{className:"mr-2",children:n}),e]})}),Y_=d.forwardRef((e,t)=>d6()===null?H.jsx(vvi,{children:H.jsx(DFe,{...e,ref:t})}):H.jsx(H.Fragment,{children:H.jsx(DFe,{...e,ref:t})}));function Wvi(){const{setEditId:e,setModalOpen:t,setParentId:n}=d.useContext(pE),[r,i]=d.useState({parentId:null}),{softDeleteByIds:o}=mge(),s=({props:f})=>{const h=()=>{var p;e((p=f==null?void 0:f.data)==null?void 0:p.id),t(!0)},g=()=>{var p;n((p=f.data)==null?void 0:p.id),t(!0)};return H.jsx("div",{children:H.jsxs(Y_,{node:H.jsx(rv,{className:" hover:bg-textHover p-1 rounded"}),children:[H.jsx(kf,{label:"添加子节点",icon:H.jsx(Zf,{}),onClick:g}),H.jsx(kf,{label:"编辑",icon:H.jsx(WV,{}),onClick:h}),H.jsx(kf,{label:"移除",onClick:()=>{var p;o.mutateAsync({ids:[(p=f==null?void 0:f.data)==null?void 0:p.id]},{onSettled:()=>{li.success("删除成功"),gu(ri.DEPARTMENT,f.data,dd.DELETED)}})},icon:H.jsx(Dg,{})})]})})},a=d.useMemo(()=>[{headerName:"是否为域",field:"is_domain",cellRenderer:f=>H.jsx(jC,{color:f.value?"cyan":"blue",children:f.value?"域节点":"普通节点"})},{field:"order",hide:!0,sort:"asc"},{headerName:"操作",sortable:!0,cellRenderer:f=>H.jsx(s,{props:f}),maxWidth:80}].filter(Boolean),[]),l=d.useMemo(()=>({rowDrag:!0,headerName:"单位名",field:"name",filter:"agTextColumnFilter"}),[]),c=d.useCallback(f=>f.id,[]),u=d.useCallback(f=>f.has_children,[]);return H.jsx(eZ,{height:"calc(100vh - 48px - 49px)",columnDefs:a,objectType:ri.DEPARTMENT,treeData:!0,params:r,getServerSideGroupKey:c,isServerSideGroup:u,autoGroupColumnDef:l})}function Uvi(){const{editId:e,form:t,parentId:n,setModalOpen:r,setEditId:i,setParentId:o}=d.useContext(pE),{create:s,update:a}=mge(),[l,c]=d.useState(!1),{data:u,isLoading:f}=an.department.findFirst.useQuery({where:{id:e},include:{terms:!0}},{enabled:!!e}),{data:h}=an.taxonomy.getAll.useQuery({type:ri.DEPARTMENT});return d.useEffect(()=>{e&&u&&h?t.setFieldsValue({...u,taxonomy:h.reduce((g,p)=>(g[p.name]=((u==null?void 0:u.terms)||[]).filter(m=>m.taxonomyId===p.id).map(m=>m.id),g),{})}):t.resetFields(),n&&(t==null||t.setFieldValue("parentId",n))},[u,h,e,n]),f?H.jsx("div",{className:"flex flex-col justify-center items-center",children:H.jsx(iv,{})}):H.jsxs(Rn,{initialValues:u,form:t,layout:"vertical",requiredMark:"optional",onFinish:async g=>{c(!0);const{taxonomy:p,...m}=g;try{const v=h==null?void 0:h.reduce((C,y)=>{const b=y==null?void 0:y[y.name];return b&&(Array.isArray(b)?C.push(...b):C.push(b)),C},[]);u?await a.mutateAsync({where:{id:e},data:{...m,terms:{set:l5e(v)}}}):(await s.mutateAsync({data:{...m,terms:{connect:l5e(v)}}}),t==null||t.resetFields(),n&&(t==null||t.setFieldValue("parentId",n))),c(!1),li.success("提交成功"),r(!1),o(void 0),i(void 0)}catch(v){console.log(v),li.error("提交失败")}finally{c(!1)}},children:[H.jsx(Rn.Item,{rules:[{required:!0}],name:"name",label:"名称",children:H.jsx(Ai,{})}),H.jsx(Rn.Item,{name:"parentId",label:"父单位",children:H.jsx(bu,{})}),h==null?void 0:h.map(g=>H.jsx(Rn.Item,{label:g.name,name:["taxonomy",g.name],children:H.jsx(xM,{taxonomyId:g.id})},g.id)),H.jsx(Rn.Item,{name:"order",label:"顺序",children:H.jsx(gKe,{})}),H.jsx(Rn.Item,{name:"isDomain",valuePropName:"checked",children:H.jsx(BC,{children:"是否为域"})})]})}function qvi(){const{editId:e,form:t,setEditId:n,modalOpen:r,setModalOpen:i}=d.useContext(pE),o=()=>{t.submit()};return H.jsx(la,{onOk:()=>o(),open:r,onCancel:()=>{i(!1),n(void 0)},title:e?"编辑单位":"创建单位",width:600,children:H.jsx(Uvi,{})})}const Spt=({onBase64:e})=>{const[t,n]=d.useState(""),r=s=>s.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"||s.type==="application/vnd.ms-excel"||s.name.endsWith(".xls")||s.name.endsWith(".xlsx")?!0:(li.error("请选择一个有效的 Excel 文件"),!1),i=async s=>{try{const a=await o(s);e(a),n(s.name)}catch(a){li.error("文件转换失败"),console.error(a)}},o=s=>new Promise((a,l)=>{const c=new FileReader;c.onload=()=>{const u=c.result;typeof u=="string"?a(u.split(",")[1]):l(new Error("无法读取文件"))},c.onerror=l,c.readAsDataURL(s)});return H.jsx("div",{children:H.jsxs(kT.Dragger,{beforeUpload:r,customRequest:({file:s,onSuccess:a})=>{i(s),a&&a("ok")},showUploadList:!1,style:{width:"100%",padding:"20px",border:"1px dashed #d9d9d9",borderRadius:"4px"},children:[H.jsx("p",{className:"ant-upload-drag-icon",children:t?H.jsx(fme,{}):H.jsx(BYe,{})}),H.jsx("p",{className:"ant-upload-text",children:t||"点击或拖拽文件到此区域进行上传"}),!t&&H.jsx("p",{className:"ant-upload-hint",children:"仅支持 .xls 和 .xlsx 文件"})]})})};function Kvi(){const{importDepts:e}=bge(),{user:t}=Wi(),{parentId:n,setParentId:r,canManageDept:i,domainId:o,setDomainId:s}=d.useContext(pE),[a,l]=d.useState(void 0),c=async()=>{if(!a)li.warning("请先上传一个文件");else{console.log("导入的 Base64:",a);try{li.info("正在导入..."),await e.mutateAsync({base64:a,parentId:n,domainId:o}),li.success("导入完成")}catch(u){li.error(u.message)}}};return H.jsx(H.Fragment,{children:H.jsxs("div",{className:"flex flex-col items-stretch",children:[H.jsx(Spt,{onBase64:u=>{l(u)}}),H.jsxs("div",{className:"flex gap-2 justify-end mt-4 items-center",children:[H.jsx("span",{className:"text-sm",children:"所属域:"}),H.jsx(bu,{rootId:t==null?void 0:t.domainId,onChange:u=>s(u),disabled:!i,domain:!0,value:o,className:"w-32"}),H.jsx("span",{className:"text-sm",children:"所属单位:"}),H.jsx(bu,{rootId:t==null?void 0:t.domainId,onChange:u=>r(u),disabled:!i,value:n,className:"w-32"}),H.jsx(Cr,{type:"primary",onClick:c,children:"导入"})]})]})})}function Yvi(){const{importModalOpen:e,setImportModalOpen:t}=d.useContext(pE),n=()=>{};return H.jsx(la,{onOk:()=>n(),open:e,onCancel:()=>{t(!1)},title:"导入单位",width:600,footer:null,children:H.jsx(Kvi,{})})}const pE=d.createContext(void 0);function Xvi(){const[e,t]=d.useState(),[n,r]=d.useState(),[i,o]=d.useState(!1),[s,a]=d.useState(!1),{user:l,hasSomePermissions:c}=Wi(),[u,f]=d.useState(),[h]=F0(),g=d.useMemo(()=>c(Ki.MANAGE_ANY_DEPT,Ki.MANAGE_DOM_DEPT),[l]);return H.jsxs(pE.Provider,{value:{canManageDept:g,parentId:e,domainId:n,modalOpen:i,setParentId:t,setDomainId:r,setModalOpen:o,form:h,editId:u,setEditId:f,setImportModalOpen:a,importModalOpen:s},children:[H.jsx(L_,{roomId:"dept-editor",children:H.jsx("div",{className:" flex items-center gap-4 ",children:g&&H.jsxs(H.Fragment,{children:[H.jsx(Cr,{ghost:!0,type:"primary",onClick:()=>{a(!0)},children:"导入单位"}),H.jsx(Cr,{type:"primary",onClick:()=>{o(!0)},children:"新建单位"})]})})}),H.jsx(Wvi,{}),H.jsx(qvi,{}),H.jsx(Yvi,{})]})}function Qvi(){return H.jsx("div",{className:" flex-grow bg-white rounded-xl",children:H.jsx(Xvi,{})})}const Zvi=({props:e})=>{const{deleteMany:t}=yge();return H.jsx("div",{children:H.jsx(Y_,{node:H.jsx(rv,{className:" hover:bg-textHover p-1 rounded"}),children:H.jsx(kf,{label:"移除",onClick:()=>{var n;t.mutateAsync({ids:[(n=e==null?void 0:e.data)==null?void 0:n.id]})},icon:H.jsx(Dg,{})})})})};function Jvi(){const{user:e,hasSomePermissions:t}=Wi(),{domainId:n,setModalOpen:r,role:i,setDomainId:o,canManageRole:s}=d.useContext(d3);d.useEffect(()=>{e&&(o==null||o(e.domainId))},[e]);const a=[{headerName:"帐号",field:"staff.username",sort:"desc",valueGetter:l=>{var c;return(c=l.data)==null?void 0:c.staff_username},filter:"agTextColumnFilter",maxWidth:300},{headerName:"姓名",field:"staff.showname",sort:"desc",valueGetter:l=>{var c;return(c=l.data)==null?void 0:c.staff_showname},filter:"agTextColumnFilter",maxWidth:300},{headerName:"证件号",field:"staff.officer_id",sort:"desc",valueGetter:l=>{var c;return(c=l.data)==null?void 0:c.staff_officer_id},filter:"agTextColumnFilter"},{headerName:"所在单位",field:"department.name",sort:"desc",valueGetter:l=>{var c;return(c=l.data)==null?void 0:c.department_name},filter:"agTextColumnFilter",maxWidth:300},{headerName:"操作",sortable:!0,cellRenderer:l=>H.jsx(Zvi,{props:l}),maxWidth:100}];return H.jsxs("div",{className:" flex-grow",children:[H.jsxs("div",{className:"p-2 border-b flex items-center justify-between",children:[H.jsxs("div",{className:"flex items-center gap-2 ",children:[H.jsxs("span",{className:"",children:[" ",i==null?void 0:i.name]}),H.jsx("span",{className:" text-tertiary ",children:" 角色成员列表"})]}),H.jsxs("div",{className:" flex items-center gap-4",children:[H.jsx(bu,{onChange:l=>o(l),rootId:e==null?void 0:e.domainId,value:n,disabled:!s,domain:!0,className:" w-48"}),s&&H.jsx(Cr,{onClick:()=>{r(!0)},type:"primary",icon:H.jsx(Zf,{}),children:"添加成员"})]})]}),H.jsx(eZ,{rowGroupPanelShow:"onlyWhenGrouping",height:"calc(100vh - 48px - 49px - 49px)",columnDefs:a,rowHeight:50,params:{domainId:n,roleId:i==null?void 0:i.id},objectType:ri.ROLE_MAP})]})}const e2i=({data:e})=>{const{softDeleteByIds:t}=Cge(),{setEditRoleId:n,setRoleModalOpen:r}=d.useContext(d3);return H.jsx("div",{children:H.jsxs(Y_,{node:H.jsx(rv,{className:" hover:bg-textHover p-1 rounded"}),children:[H.jsx(kf,{label:"编辑",onClick:()=>{n(e==null?void 0:e.id),r(!0)},icon:H.jsx(dme,{})}),H.jsx(kf,{label:"移除",disabled:e==null?void 0:e.system,onClick:()=>{t.mutateAsync({ids:[e==null?void 0:e.id]})},icon:H.jsx(Dg,{})})]})})};function t2i(){const{setRoleModalOpen:e}=d.useContext(d3),{setRole:t,role:n}=d.useContext(d3),{data:r}=an.role.findMany.useQuery({}),{token:i}=Wm.useToken(),{user:o,hasSomePermissions:s}=Wi(),a=d.useMemo(()=>s(Ki.MANAGE_ANY_ROLE),[o]),l=d.useMemo(()=>r?a?r:r.filter(c=>c.name!=="根管理员"):[],[r]);return d.useEffect(()=>{!n&&r&&r.length>0&&(t==null||t(r[0]))},[r]),H.jsxs("div",{className:"w-1/6 border-r",children:[H.jsxs("div",{className:"p-2 border-b justify-between items-center flex",children:[H.jsx("div",{className:" text-primary",children:"角色列表"}),a&&H.jsx(Cr,{onClick:()=>{e(!0)},type:"primary",ghost:!0,icon:H.jsx(Zf,{}),children:"添加角色"})]}),H.jsx("div",{className:"flex flex-col ",children:l==null?void 0:l.map(c=>H.jsxs("div",{onClick:()=>{t(c)},style:{background:c.id===(n==null?void 0:n.id)?i.colorPrimaryBg:""},className:`p-2 hover:bg-textHover text-secondary ${c.id===(n==null?void 0:n.id)?" text-primary border-l-4 border-primaryHover":""} transition-all ease-in-out flex items-center justify-between `,children:[H.jsxs("div",{className:" flex items-center gap-2",children:[H.jsxs("span",{className:"text-primary",children:[" ",H.jsx(fM,{})]}),c.name]}),a&&H.jsx(e2i,{data:c})]},c.id))})]})}const n2i=d.forwardRef(({staffs:e=[],onChange:t},n)=>{const[r,i]=d.useState([]),{token:o}=Wm.useToken(),s=d.useMemo(()=>e.map(c=>({key:c.id,title:c.showname||c.username,description:c.officerId,chosen:!1})),[e]),a=(c,u,f)=>{i(c),t&&t(c)},l=(c,u)=>{var f;return u.title.toLowerCase().includes(c.toLowerCase())||((f=u.description)==null?void 0:f.toLowerCase().includes(c.toLowerCase()))};return d.useImperativeHandle(n,()=>({resetSelection:()=>{i([])}})),H.jsx(QV,{dataSource:s,targetKeys:r,oneWay:!0,onChange:a,showSearch:!0,filterOption:l,listStyle:{width:400,height:450},render:c=>{var u;return H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx(Xz,{style:{background:o.colorPrimary},children:(u=c.title)==null?void 0:u.slice(0,1).toUpperCase()}),H.jsx("span",{children:c.title}),H.jsx("span",{className:"text-tertiary",children:c.description})]})}})});function r2i(){const{domainId:e,mapStaffIds:t,setMapStaffIds:n,modalOpen:r,setModalOpen:i,role:o}=d.useContext(d3),s=d.useRef(null),{data:a}=an.rolemap.getStaffsNotMap.useQuery({domainId:e,roleId:o==null?void 0:o.id}),{addRoleForObjects:l}=yge(),[c,u]=d.useState(!1),f=async()=>{if(!(t!=null&&t.length)){li.warning("未选择人员");return}u(!0);try{const g=await l.mutateAsync({roleId:o==null?void 0:o.id,domainId:e,objectType:ri.STAFF,objectIds:t});li.success("人员分配成功"),i(!1),n([]),s.current&&s.current.resetSelection()}catch{li.error("人员分配失败,请稍后重试")}finally{u(!1)}},h=()=>i(!1);return H.jsx(la,{width:600,title:"选择人员",open:r,onOk:f,confirmLoading:c,onCancel:h,children:H.jsx(n2i,{ref:s,onChange:g=>n(g),staffs:a})})}const i2i=Object.values(Ki).map(e=>({value:e,label:e}));function o2i(){const{editRoleId:e,roleForm:t,setRoleModalOpen:n}=d.useContext(d3),{data:r,isLoading:i}=an.role.findFirst.useQuery({where:{id:e}},{enabled:!!e});d.useEffect(()=>{t.resetFields(),r&&(t.setFieldValue("name",r.name),t.setFieldValue("permissions",r.permissions))},[r]);const{create:o,update:s}=Cge();return H.jsx("div",{className:"relative",children:H.jsxs(Rn,{disabled:i,initialValues:r,form:t,layout:"vertical",requiredMark:"optional",onFinish:async a=>{if(r)try{await s.mutateAsync({where:{id:r.id},data:{...a}})}catch{li.error("更新失败")}else try{await o.mutateAsync(a),t==null||t.resetFields()}catch{li.error("创建失败")}li.success("提交成功"),n(!1)},children:[H.jsx(Rn.Item,{rules:[{required:!0}],name:"name",label:"名称",children:H.jsx(Ai,{})}),H.jsx(Rn.Item,{rules:[{required:!0}],name:"permissions",label:"权限",children:H.jsx(Qf,{mode:"multiple",placeholder:"选择权限",options:i2i})})]})})}function s2i(){const{roleForm:e,editRoleId:t,roleModalOpen:n,setRoleModalOpen:r}=d.useContext(d3),i=async()=>{e.submit()},o=()=>r(!1);return H.jsx(la,{width:500,title:t?"编辑角色":"创建角色",open:n,onOk:i,onCancel:o,children:H.jsx(o2i,{})})}const d3=d.createContext({role:void 0,domainId:void 0,modalOpen:!1,mapStaffIds:[],setRole:void 0,setDomainId:void 0,setModalOpen:void 0,setMapStaffIds:void 0,canManageRole:!1,editRoleId:void 0,setEditRoleId:void 0,roleModalOpen:void 0,roleForm:void 0,setRoleModalOpen:void 0});function a2i(){const[e,t]=d.useState(),[n,r]=d.useState(),[i,o]=d.useState(),[s]=F0(),[a,l]=d.useState(!1),[c,u]=d.useState(!1),[f,h]=d.useState([]),{user:g,hasSomePermissions:p}=Wi(),m=d.useMemo(()=>p(Ki.MANAGE_ANY_ROLE,Ki.MANAGE_DOM_ROLE),[g]);return H.jsxs(d3.Provider,{value:{roleForm:s,roleModalOpen:c,setRoleModalOpen:u,editRoleId:n,setEditRoleId:r,role:e,domainId:i,modalOpen:a,mapStaffIds:f,setRole:t,setDomainId:o,setModalOpen:l,setMapStaffIds:h,canManageRole:m},children:[H.jsxs("div",{className:"flex",children:[H.jsx(t2i,{}),H.jsx(Jvi,{})]}),H.jsx(r2i,{}),H.jsx(s2i,{})]})}function l2i(){return H.jsxs(H.Fragment,{children:[H.jsx(L_,{roomId:"role-editor"}),H.jsx(a2i,{})]})}function c2i(){const{create:e,update:t}=nje(),[n,r]=d.useState(!1),{taxonomyForm:i,setTaxonomyModalOpen:o,editTaxonomyId:s}=d.useContext(u1),{data:a,isLoading:l}=an.taxonomy.findById.useQuery({id:s},{enabled:!!s});return H.jsxs(Rn,{initialValues:a,form:i,layout:"vertical",requiredMark:"optional",onFinish:async c=>{console.log(c),r(!0),a?await t.mutateAsync({id:a.id,...c}):(await e.mutateAsync(c),i.resetFields()),r(!1),o(!1)},children:[H.jsx(Rn.Item,{rules:[{required:!0,message:"请输入姓名"}],name:"name",label:"名称",children:H.jsx(Ai,{})}),H.jsx(Rn.Item,{rules:[{required:!0,message:"请输入别名"}],name:"slug",label:"别名",children:H.jsx(Ai,{})}),H.jsx(Rn.Item,{rules:[{required:!0,message:"选择作用对象类型"}],name:"objectType",label:"对象类型",children:H.jsx(Qf,{mode:"multiple",placeholder:"选择作用对象类型",children:Object.keys(ri).map(c=>H.jsx(Qf.Option,{value:ri[c],children:ri[c]},c))})})]})}function u2i(){const{editTaxonomyId:e,taxonomyForm:t,setTaxonomyModalOpen:n,taxonomyModalOpen:r}=d.useContext(u1),i=()=>{t.submit()};return H.jsx(la,{onOk:()=>i(),open:r,onCancel:()=>{n(!1)},title:e?"编辑分类法":"创建分类法",width:400,children:H.jsx(c2i,{})})}const d2i=()=>{const{token:e}=Wm.useToken(),{data:t,isLoading:n}=an.taxonomy.getAll.useQuery({}),{taxonomyId:r,taxonomyName:i,setTaxonomyName:o,setTaxonomyId:s,setTaxonomyModalOpen:a}=d.useContext(u1);return d.useEffect(()=>{var l,c;!r&&t&&t.length>0&&(s((l=t[0])==null?void 0:l.id),o((c=t[0])==null?void 0:c.name))},[t]),H.jsxs("div",{className:"flex flex-col w-1/6 border-r",children:[H.jsxs("div",{className:" flex justify-between items-center gap-4 p-2 border-b",style:{height:49},children:[H.jsx("span",{className:"text-primary",children:" 分类法列表"}),H.jsx(Cr,{type:"primary",ghost:!0,onClick:()=>{a(!0)},children:"创建分类法"})]}),H.jsx("div",{className:"flex flex-col",children:t==null?void 0:t.map(l=>H.jsx("div",{style:{background:l.id===r?e.colorPrimaryBg:""},onClick:()=>{s(l.id),o(l==null?void 0:l.name)},className:`flex items-center ${l.id===r?" text-primary border-l-4 border-primaryHover":""} gap-4 p-2 hover:bg-textHover transition-all ease-in-out`,children:H.jsx("div",{className:"",children:H.jsx("span",{children:l.name})})},l.id))})]})},f2i=({props:e})=>{const{setEditId:t,setTermModalOpen:n,setImportModalOpen:r,setParentId:i}=d.useContext(u1),{softDeleteByIds:o}=vge();return H.jsxs(Y_,{node:H.jsx(rv,{className:" hover:bg-textHover p-1 rounded"}),children:[H.jsx(kf,{label:"导入子节点",icon:H.jsx(hme,{}),onClick:()=>{var s;i((s=e==null?void 0:e.data)==null?void 0:s.id),r(!0)}}),H.jsx(kf,{label:"添加子节点",icon:H.jsx(Zf,{}),onClick:()=>{var s;i((s=e==null?void 0:e.data)==null?void 0:s.id),n(!0)}}),H.jsx(kf,{label:"编辑",icon:H.jsx(WV,{}),onClick:()=>{var s;t((s=e==null?void 0:e.data)==null?void 0:s.id),n(!0)}}),H.jsx(kf,{label:"移除",onClick:()=>{var s;o.mutateAsync({ids:[(s=e==null?void 0:e.data)==null?void 0:s.id]},{onSettled:()=>{li.success("删除成功"),gu(ri.TERM,e.data,dd.DELETED)}})},icon:H.jsx(Dg,{})})]})};function h2i(){const{domainId:e,setDomainId:t,taxonomyId:n,canManageAnyTerm:r,setTermModalOpen:i,setImportModalOpen:o}=d.useContext(u1),{user:s}=Wi();d.useEffect(()=>{s&&t(s.domainId)},[s]);const[a,l]=d.useState({parentId:null,domainId:null,taxonomyId:null});d.useEffect(()=>{n&&l(g=>({...g,taxonomyId:n})),l(e?g=>({...g,domainId:e}):g=>({...g,domainId:null}))},[n,e]);const c=d.useMemo(()=>[{field:"order",hide:!0,sort:"asc"},{headerName:"操作",sortable:!0,cellRenderer:g=>H.jsx(f2i,{props:g}),maxWidth:80}].filter(Boolean),[]),u=d.useMemo(()=>({rowDrag:!0,headerName:"术语名",field:"name",filter:"agTextColumnFilter"}),[]),f=d.useCallback(g=>g.id,[]),h=d.useCallback(g=>g.has_children,[]);return H.jsxs("div",{className:"flex flex-col w-full",children:[H.jsxs("div",{className:" justify-between flex items-center gap-4 border-b p-2",children:[H.jsx("span",{className:" text-secondary",children:"分类项列表"}),H.jsxs("div",{className:" flex items-center gap-4",children:[H.jsx(bu,{disabled:!r,className:"w-48",domain:!0,value:e,onChange:g=>t(g)}),H.jsx(Cr,{type:"primary",icon:H.jsx(hme,{}),onClick:()=>{o(!0)},ghost:!0,children:"导入数据"}),H.jsx(Cr,{icon:H.jsx(Zf,{}),type:"primary",onClick:()=>{i(!0)},children:"新建分类"})]})]}),H.jsx(eZ,{height:"calc(100vh - 49px - 48px - 49px)",columnDefs:c,objectType:ri.TERM,treeData:!0,params:a,getServerSideGroupKey:f,isServerSideGroup:h,autoGroupColumnDef:u})]})}function g2i(){const{termForm:e,setTermModalOpen:t,taxonomyId:n,domainId:r,editId:i,parentId:o,setEditId:s,setParentId:a}=d.useContext(u1),{create:l,update:c}=vge(),[u,f]=d.useState(!1),{data:h,isLoading:g}=an.term.findFirst.useQuery({where:{id:i}},{enabled:!!i});return d.useEffect(()=>{h?(e.setFieldValue("parentId",h==null?void 0:h.parentId),e.setFieldValue("name",h==null?void 0:h.name)):e.resetFields(),o&&e.setFieldValue("parentId",o)},[h,o]),H.jsxs("div",{className:"relative",children:[g&&H.jsx("div",{className:"absolute h-full inset-0 flex items-center justify-center bg-white bg-opacity-50 z-10",children:H.jsx(iv,{})}),H.jsxs(Rn,{disabled:g,form:e,layout:"vertical",requiredMark:"optional",onFinish:async p=>{f(!0);try{h?await c.mutateAsync({where:{id:h.id},data:{taxonomyId:n,domainId:r,...p}}):(await l.mutateAsync({data:{domainId:r,taxonomyId:n,...p}}),e==null||e.resetFields()),t(!1),s(void 0),a(void 0)}catch{li.error("提交失败")}finally{f(!1)}},children:[H.jsx(Rn.Item,{name:"parentId",label:"父分类",children:H.jsx(xM,{taxonomyId:n})}),H.jsx(Rn.Item,{rules:[{required:!0}],name:"name",label:"名称",children:H.jsx(Ai,{})})]})]})}function p2i(){const{editId:e,termForm:t,termModalOpen:n,setTermModalOpen:r,setEditId:i,setParentId:o}=d.useContext(u1),s=()=>{t.submit()};return H.jsx(H.Fragment,{children:H.jsx(la,{onOk:()=>s(),open:n,onCancel:()=>{r(!1),i(void 0),o(void 0)},title:e?"编辑分类":"创建分类",width:400,children:H.jsx(g2i,{})})})}function m2i(){const{importTerms:e}=bge(),{user:t}=Wi(),{canManageAnyTerm:n,domainId:r,setDomainId:i,taxonomyId:o,parentId:s,setParentId:a}=d.useContext(u1),[l,c]=d.useState(void 0),u=async()=>{if(!l)li.warning("请先上传一个文件");else{console.log("导入的 Base64:",l);try{li.info("正在导入..."),await e.mutateAsync({base64:l,domainId:r,taxonomyId:o,parentId:s}),li.success("导入完成")}catch(f){li.error(f.message)}}};return H.jsx(H.Fragment,{children:H.jsxs("div",{className:"flex flex-col items-stretch",children:[H.jsx(Spt,{onBase64:f=>{c(f)}}),H.jsxs("div",{className:"flex gap-2 justify-end mt-4 items-center",children:[H.jsx("span",{className:"text-sm",children:"父节点:"}),H.jsx("div",{style:{width:180},children:H.jsx(xM,{taxonomyId:o,domainId:r,value:s,onChange:f=>a(f)})}),H.jsx("span",{className:"text-sm",children:"所属域:"}),H.jsx(bu,{rootId:t==null?void 0:t.domainId,onChange:f=>i(f),disabled:!n,value:r,className:"w-32",domain:!0}),H.jsx(Cr,{type:"primary",onClick:u,children:"导入"})]})]})})}function v2i(){const{importModalOpen:e,setImportModalOpen:t,taxonomyName:n}=d.useContext(u1),r=()=>{};return H.jsx(la,{onOk:()=>r(),open:e,onCancel:()=>{t(!1)},title:`导入${n}`,width:600,footer:null,children:H.jsx(m2i,{})})}const u1=d.createContext(void 0);function C2i(){const[e,t]=d.useState(),[n,r]=d.useState(),[i,o]=d.useState(),[s,a]=d.useState(!1),[l,c]=d.useState(!1),[u,f]=d.useState(!1),{user:h,hasSomePermissions:g}=Wi(),[p,m]=d.useState(),[v,C]=d.useState(),[y,b]=d.useState(),[S]=F0(),[w]=F0(),x=d.useMemo(()=>g(Ki.MANAGE_ANY_TERM,Ki.MANAGE_DOM_TERM),[h]),E=d.useMemo(()=>g(Ki.MANAGE_ANY_TERM),[h]);return H.jsxs(u1.Provider,{value:{parentId:y,setParentId:b,canManageAnyTerm:E,canManageTerm:x,taxonomyId:e,taxonomyName:n,domainId:i,taxonomyModalOpen:s,termModalOpen:l,setTaxonomyId:t,setTaxonomyName:r,setDomainId:o,setTaxonomyModalOpen:a,setTermModalOpen:c,termForm:S,editId:p,setEditId:m,taxonomyForm:w,editTaxonomyId:v,setEditTaxonomyId:C,setImportModalOpen:f,importModalOpen:u},children:[H.jsxs("div",{className:"flex",children:[H.jsx(d2i,{}),H.jsx(h2i,{})]}),H.jsx(u2i,{}),H.jsx(p2i,{}),H.jsx(v2i,{})]})}function y2i(){return H.jsxs(H.Fragment,{children:[H.jsx(L_,{}),H.jsx(C2i,{})]})}function b2i({id:e,...t}){return H.jsx("div",{className:"flex items-center",style:{maxWidth:150},...t,children:e?H.jsxs("div",{className:"w-full truncate text-ellipsis flex items-center gap-2 text-secondary",children:[H.jsx(zYe,{className:"text-primary"}),H.jsx("span",{className:"text-ellipsis truncate",children:e})]}):H.jsx("span",{className:"text-tertiary",children:"未录入证件号"})})}function S2i({phoneNumber:e,...t}){return H.jsx("div",{className:"flex items-center",style:{maxWidth:150},...t,children:e?H.jsxs("div",{className:"w-full truncate text-ellipsis flex items-center gap-2 text-secondary",children:[H.jsx(gme,{className:"text-primary"}),H.jsx("span",{className:"text-ellipsis truncate",children:e})]}):H.jsx("span",{className:"text-tertiary",children:"未录入手机号"})})}const w2i=({props:e})=>{var i;const{setEditId:t,setModalOpen:n}=d.useContext(X_),{softDeleteByIds:r}=Nx();if((i=e==null?void 0:e.data)!=null&&i.id)return H.jsx("div",{children:H.jsxs(Y_,{node:H.jsx(rv,{className:" hover:bg-textHover p-1 rounded"}),children:[H.jsx(kf,{label:"编辑",icon:H.jsx(WV,{}),onClick:()=>{var o;t((o=e==null?void 0:e.data)==null?void 0:o.id),n(!0)}}),H.jsx(kf,{label:"移除",onClick:()=>{var o;r.mutateAsync({ids:[(o=e==null?void 0:e.data)==null?void 0:o.id]},{onSettled:()=>{li.success("删除成功"),gu(ri.STAFF,e.data,dd.DELETED)}})},icon:H.jsx(Dg,{})})]})})},x2i=({domainId:e,height:t="calc(100vh - 48px - 49px)"})=>{const{canManageAnyStaff:n}=d.useContext(X_),[r,i]=d.useState({domainId:null});d.useEffect(()=>{i(e?s=>({...s,domainId:e}):s=>({...s,domainId:null}))},[e]);const o=[n&&{headerName:"所属域",field:"domain.name",sortable:!0,valueGetter:s=>{var a;return(a=s.data)==null?void 0:a.domain_name},filter:"agTextColumnFilter"},{headerName:"所属单位",field:"dept.name",valueGetter:s=>{var a;return(a=s.data)==null?void 0:a.dept_name},cellRenderer:s=>s.value||H.jsx("span",{className:"text-tertiary",children:"未录入所属单位"}),sortable:!0,filter:"agTextColumnFilter",enableRowGroup:!0,maxWidth:200},{field:"order",hide:!0,sort:"asc"},{headerName:"帐号",field:"username",cellRenderer:s=>{var a;if((a=s==null?void 0:s.data)!=null&&a.id)return s.value||H.jsx("span",{className:"text-tertiary",children:"未录入帐号"})},sortable:!0,rowDrag:!0,filter:"agTextColumnFilter",maxWidth:300},{headerName:"姓名",field:"showname",cellRenderer:s=>{var a;if((a=s==null?void 0:s.data)!=null&&a.id)return s.value||H.jsx("span",{className:"text-tertiary",children:"未录入姓名"})},sortable:!0,filter:"agTextColumnFilter",maxWidth:300},{headerName:"证件号",field:"officer_id",sortable:!0,filter:"agTextColumnFilter",cellRenderer:s=>{var l;const{data:a}=s;if((l=s==null?void 0:s.data)!=null&&l.id)return H.jsx(b2i,{id:a==null?void 0:a.officer_id})}},{headerName:"手机号",field:"phone_number",sortable:!0,filter:"agTextColumnFilter",cellRenderer:s=>{var l;const{data:a}=s;if((l=s==null?void 0:s.data)!=null&&l.id)return H.jsx(S2i,{phoneNumber:a==null?void 0:a.phone_number})}},{headerName:"是否启用",field:"enabled",sortable:!0,enableRowGroup:!0,cellRenderer:s=>{var a,l;return H.jsx(jC,{color:(a=s==null?void 0:s.data)!=null&&a.enabled?"success":"error",children:(l=s==null?void 0:s.data)!=null&&l.enabled?"已启用":"已禁用"})}},{headerName:"操作",sortable:!0,cellRenderer:s=>H.jsx(w2i,{props:s}),maxWidth:80}].filter(Boolean);return H.jsx(eZ,{height:t,rowHeight:60,columnDefs:o,objectType:ri.STAFF,params:r,rowGroupPanelShow:"always"})};function E2i(){const{create:e,update:t}=Nx(),{domainId:n,form:r,editId:i,setModalOpen:o,formLoading:s,setFormLoading:a,canManageAnyStaff:l,setEditId:c}=d.useContext(X_),{data:u,isLoading:f}=an.staff.findFirst.useQuery({where:{id:i}},{enabled:!!i}),{isRoot:h}=Wi();async function g(p){const{username:m,showname:v,deptId:C,domainId:y,password:b,phoneNumber:S,officerId:w,enabled:x,avatar:E}=p;a(!0);try{u&&i?await t.mutateAsync({where:{id:u.id},data:{username:m,deptId:C,showname:v,domainId:y||n,password:b,phoneNumber:S,officerId:w,enabled:x,avatar:E}}):(await e.mutateAsync({data:{username:m,deptId:C,showname:v,domainId:y||n,password:b,officerId:w,phoneNumber:S,avatar:E}}),r.resetFields(),C&&r.setFieldValue("deptId",C),n&&r.setFieldValue("domainId",n)),li.success("提交成功"),o(!1)}catch(R){li.error(R.message)}finally{a(!1),c(void 0)}}return d.useEffect(()=>{r.resetFields(),u&&i&&(r.setFieldValue("username",u==null?void 0:u.username),r.setFieldValue("showname",u==null?void 0:u.showname),r.setFieldValue("domainId",u==null?void 0:u.domainId),r.setFieldValue("deptId",u==null?void 0:u.deptId),r.setFieldValue("officerId",u==null?void 0:u.officerId),r.setFieldValue("phoneNumber",u==null?void 0:u.phoneNumber),r.setFieldValue("enabled",u==null?void 0:u.enabled),r.setFieldValue("avatar",u==null?void 0:u.avatar))},[u]),d.useEffect(()=>{!u&&n&&(r.setFieldValue("domainId",n),r.setFieldValue("deptId",n))},[n,u]),H.jsxs("div",{className:"relative",children:[f&&H.jsx("div",{className:"absolute h-full inset-0 flex items-center justify-center bg-white bg-opacity-50 z-10",children:H.jsx(iv,{})}),H.jsxs(Rn,{disabled:f,form:r,layout:"vertical",requiredMark:"optional",autoComplete:"off",onFinish:g,children:[H.jsx(Rn.Item,{name:"avatar",label:"头像",children:H.jsx(hQ,{})}),l&&H.jsx(Rn.Item,{name:"domainId",label:"所属域",rules:[{required:!0}],children:H.jsx(bu,{rootId:h?void 0:n,domain:!0})}),H.jsx(Rn.Item,{name:"deptId",label:"所属单位",rules:[{required:!0}],children:H.jsx(bu,{rootId:h?void 0:n})}),H.jsx(Rn.Item,{rules:[{required:!0}],name:"username",label:"帐号",children:H.jsx(Ai,{allowClear:!0,autoComplete:"new-username",spellCheck:!1})}),H.jsx(Rn.Item,{rules:[{required:!0}],name:"showname",label:"姓名",children:H.jsx(Ai,{allowClear:!0,autoComplete:"new-name",spellCheck:!1})}),H.jsx(Rn.Item,{rules:[{required:!1,pattern:/^\d{5,18}$/,message:"请输入正确的证件号(数字)"}],name:"officerId",label:"证件号",children:H.jsx(Ai,{autoComplete:"off",spellCheck:!1,allowClear:!0})}),H.jsx(Rn.Item,{rules:[{required:!1,pattern:/^\d{6,11}$/,message:"请输入正确的手机号(数字)"}],name:"phoneNumber",label:"手机号",children:H.jsx(Ai,{autoComplete:"new-phone",spellCheck:!1,allowClear:!0})}),H.jsx(Rn.Item,{label:"密码",name:"password",children:H.jsx(Ai.Password,{spellCheck:!1,visibilityToggle:!0,autoComplete:"new-password"})}),i&&H.jsx(Rn.Item,{label:"是否启用",name:"enabled",children:H.jsx(iXe,{})})]})]})}function R2i(){const{editId:e,formLoading:t,modalOpen:n,setModalOpen:r,form:i,setEditId:o}=d.useContext(X_),s=()=>{i.submit()};return H.jsx(la,{width:400,onOk:s,open:n,confirmLoading:t,onCancel:()=>{r(!1),o(void 0)},title:e?"编辑用户":"创建用户",children:H.jsx(E2i,{})})}const X_=d.createContext({domainId:void 0,modalOpen:!1,setDomainId:void 0,setModalOpen:void 0,editId:void 0,setEditId:void 0,form:void 0,formLoading:void 0,setFormLoading:void 0,canManageAnyStaff:!1});function $2i(){const[e]=F0(),[t,n]=d.useState(),[r,i]=d.useState(!1),[o,s]=d.useState(),{user:a,hasSomePermissions:l}=Wi(),[c,u]=d.useState();d.useEffect(()=>{a&&n(a.domainId)},[a]);const f=d.useMemo(()=>l(Ki.MANAGE_ANY_STAFF,Ki.MANAGE_DOM_STAFF),[a]),h=d.useMemo(()=>l(Ki.MANAGE_ANY_STAFF),[a]);return H.jsxs(X_.Provider,{value:{canManageAnyStaff:h,formLoading:c,setFormLoading:u,form:e,editId:o,setEditId:s,domainId:t,modalOpen:r,setDomainId:n,setModalOpen:i},children:[H.jsx(L_,{roomId:"staff-editor",children:H.jsxs("div",{className:"flex items-center gap-4",children:[H.jsx(bu,{rootId:a==null?void 0:a.domainId,onChange:g=>n(g),disabled:!h,value:t,className:"w-48",domain:!0}),f&&H.jsx(Cr,{type:"primary",icon:H.jsx(kdt,{name:"add"}),onClick:()=>{i(!0)},children:"添加用户"})]})}),H.jsx(x2i,{domainId:t}),H.jsx(R2i,{})]})}function O2i(){return H.jsx("div",{className:" bg-white rounded-xl flex-grow",children:H.jsx($2i,{})})}const{Sider:T2i}=Mm,{useToken:I2i}=Wm;function M2i({routes:e}){const[t,n]=d.useState(!1),{token:r}=I2i(),i=Yze();console.log(i);const o=d.useMemo(()=>e.map(s=>({key:s.path,icon:s.icon,label:H.jsx($yt,{to:s.path,children:s.name})})),[e]);return H.jsx(T2i,{collapsible:!0,collapsed:t,onCollapse:s=>n(s),width:150,className:"h-screen sticky top-0",style:{backgroundColor:r.colorBgContainer,borderRight:`1px solid ${r.colorBorderSecondary}`},children:H.jsx(J4,{theme:"light",mode:"inline",selectedKeys:e.filter(s=>i.some(a=>a.pathname.includes(s.path))).map(s=>s.path),items:o,className:"border-r-0",style:{borderRight:0}})})}const{Content:P2i}=Mm;function _2i(){return H.jsxs(Mm,{className:"min-h-screen",children:[H.jsx(M2i,{routes:wpt.children||[]}),H.jsx(Mm,{children:H.jsx(P2i,{children:H.jsx(Dhe,{})})})]})}const wpt={path:"admin",name:"系统设置",element:H.jsx(_2i,{}),children:[{path:"base-setting",name:"基本设置",icon:H.jsx(pme,{}),element:H.jsx(qu,{options:{orPermissions:[Ki.MANAGE_BASE_SETTING]},children:H.jsx(Bni,{})}),handle:{crumb(){return H.jsx(h8,{to:"/admin/base-setting",children:"基本设置"})}}},{path:"department",name:"组织架构",icon:H.jsx(qV,{}),element:H.jsx(qu,{options:{orPermissions:[Ki.MANAGE_ANY_DEPT]},children:H.jsx(Qvi,{})}),handle:{crumb(){return H.jsx(h8,{to:"/admin/department",children:"组织架构"})}}},{path:"staff",name:"用户管理",icon:H.jsx(fM,{}),element:H.jsx(qu,{options:{orPermissions:[Ki.MANAGE_ANY_STAFF,Ki.MANAGE_DOM_STAFF]},children:H.jsx(O2i,{})}),handle:{crumb(){return H.jsx(h8,{to:"/admin/staff",children:"用户管理"})}}},{path:"term",name:"分类配置",icon:H.jsx(eXe,{}),element:H.jsx(qu,{options:{orPermissions:[Ki.MANAGE_ANY_TERM]},children:H.jsx(y2i,{})}),handle:{crumb(){return H.jsx(h8,{to:"/admin/term",children:"分类配置"})}}},{path:"role",name:"角色管理",icon:H.jsx(QYe,{}),element:H.jsx(qu,{options:{orPermissions:[Ki.MANAGE_ANY_ROLE,Ki.MANAGE_DOM_ROLE]},children:H.jsx(l2i,{})}),handle:{crumb(){return H.jsx(h8,{to:"/admin/role",children:"角色管理"})}}}]};function A2i({post:e}){var t,n,r;return H.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[" ",H.jsx("img",{src:((t=e==null?void 0:e.meta)==null?void 0:t.thumbnail)||"/placeholder.webp",className:"w-8 h-8 object-cover rounded flex-shrink-0",alt:"课程封面"}),H.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[" ",((n=e==null?void 0:e.meta)==null?void 0:n.type)&&H.jsx("span",{className:"text-sm text-gray-500 truncate",children:hz[(r=e==null?void 0:e.meta)==null?void 0:r.type]}),H.jsx("span",{className:"font-medium truncate",children:e==null?void 0:e.title})]})]})}function D2i({value:e,onChange:t,placeholder:n="请选择课时",params:r={where:{},select:{}},className:i}){const[o,s]=d.useState(""),a=d.useMemo(()=>{const g={contains:o,mode:"insensitive"};return o?{OR:[{title:g},{content:g}]}:{}},[o]),l=d.useMemo(()=>e===void 0?{}:typeof e=="string"?{id:e}:Array.isArray(e)?e.length>0?{id:{in:e}}:{}:{},[e]),{data:c,isLoading:u}=an.post.findMany.useQuery({where:wjn([{...l},{...a,...(r==null?void 0:r.where)||{}}]),select:{...cxt,...(r==null?void 0:r.select)||{}},take:15}),f=d.useMemo(()=>(c||[]).map((g,p)=>({value:g.id,label:H.jsx(A2i,{post:g}),tag:g==null?void 0:g.title})),[c,u]),h=g=>{const p=f.find(m=>m.value===g.value);return H.jsx("span",{style:{marginRight:3},children:p==null?void 0:p.tag})};return H.jsx("div",{style:{width:200},children:H.jsx(Qf,{showSearch:!0,value:e,dropdownStyle:{minWidth:200},placeholder:n,onChange:t,filterOption:!1,loading:u,className:`flex-1 w-full ${i}`,options:f,tagRender:h,optionLabelProp:"tag",onSearch:g=>s(g)})})}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".mind-elixir{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif}.mind-elixir .hyper-link{text-decoration:none;margin-left:.3em}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transition:transform .3s;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary{pointer-events:none}.map-container .topiclinks text,.map-container .linkcontroller text,.map-container .summary text{pointer-events:all}.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container .topiclinks g{cursor:pointer}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:#f6f6f6;max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px;border:#666666 2px solid}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.mind-elixir .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.mind-elixir .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.mind-elixir .context-menu .menu-list li span{line-height:20px}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none}.mind-elixir .context-menu .menu-list li:hover{filter:brightness(.95)}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.mind-elixir .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();(function(e){var t,n,r,i,o,s,a='<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>',l=(l=document.getElementsByTagName("script"))[l.length-1].getAttribute("data-injectcss");if(l&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch{}}function c(){o||(o=!0,r())}t=function(){var u,f,h,g;(g=document.createElement("div")).innerHTML=a,a=null,(h=g.getElementsByTagName("svg")[0])&&(h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.width=0,h.style.height=0,h.style.overflow="hidden",u=h,(f=document.body).firstChild?(g=u,(h=f.firstChild).parentNode.insertBefore(g,h)):f.appendChild(u))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(r=t,i=e.document,o=!1,(s=function(){try{i.documentElement.doScroll("left")}catch{return void setTimeout(s,50)}c()})(),i.onreadystatechange=function(){i.readyState=="complete"&&(i.onreadystatechange=null,c())})})(window);const zf=0,a4=1,dZ=2,xpt={name:"Latte",type:"light",palette:["#dd7878","#ea76cb","#8839ef","#e64553","#fe640b","#df8e1d","#40a02b","#209fb5","#1e66f5","#7287fd"],cssVar:{"--gap":"30px","--main-color":"#444446","--main-bgcolor":"#ffffff","--color":"#777777","--bgcolor":"#f6f6f6","--panel-color":"#444446","--panel-bgcolor":"#ffffff","--panel-border-color":"#eaeaea"}},Ept={name:"Dark",type:"dark",palette:["#848FA0","#748BE9","#D2F9FE","#4145A5","#789AFA","#706CF4","#EF987F","#775DD5","#FCEECF","#DA7FBC"],cssVar:{"--main-color":"#ffffff","--main-bgcolor":"#4c4f69","--color":"#cccccc","--bgcolor":"#252526","--panel-color":"#ffffff","--panel-bgcolor":"#2d3748","--panel-border-color":"#696969"}};function zH(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""")}const BH=function(e,t){if(t.id===e)return t;if(t.children&&t.children.length){for(let n=0;n<t.children.length;n++){const r=BH(e,t.children[n]);if(r)return r}return null}else return null},h6=(e,t)=>{if(e.parent=t,e.children)for(let n=0;n<e.children.length;n++)h6(e.children[n],e)};function F6e(e){if(e.id=Q_(),e.children)for(let t=0;t<e.children.length;t++)F6e(e.children[t])}const L2i=(e,t)=>{let n=Date.now();return function(...r){Date.now()-n<t||(e(...r),n=Date.now())}};function Rpt(e,t,n,r){const i=r-t,o=e-n;let s=Math.atan(Math.abs(i)/Math.abs(o))/3.14*180;o<0&&i>0&&(s=180-s),o<0&&i<0&&(s=180+s),o>0&&i<0&&(s=360-s);const a=15,l=30,c=s+l,u=s-l;return{x1:n+Math.cos(Math.PI*c/180)*a,y1:r-Math.sin(Math.PI*c/180)*a,x2:n+Math.cos(Math.PI*u/180)*a,y2:r-Math.sin(Math.PI*u/180)*a}}function Q_(){return(new Date().getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}const F2i=function(){const e=Q_();return{topic:this.newTopicName,id:e}};function N6e(e){return JSON.parse(JSON.stringify(e,(t,n)=>{if(t!=="parent")return n}))}const g6=(e,t)=>{let n=0,r=0;for(;t&&t!==e;)n+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{offsetLeft:n,offsetTop:r}},Zo=(e,t)=>{for(const n in t)e.setAttribute(n,t[n])},Pfe=e=>e?e.tagName==="ME-TPC":!1,fZ=e=>e.filter(t=>{for(let n=0;n<e.length;n++)if(t!==e[n]&&e[n].parentElement.parentElement.contains(t))return!1;return!0}),Qu={moved:!1,mousedown:!1,onMove(e,t){if(this.mousedown){this.moved=!0;const n=e.movementX,r=e.movementY;t.scrollTo(t.scrollLeft-n,t.scrollTop-r)}},clear(){setTimeout(()=>{this.moved=!1,this.mousedown=!1},0)}};function N2i(e){e.map.addEventListener("click",t=>{var n,r;if(t.button!==0)return;if((n=e.helper1)!=null&&n.moved){e.helper1.clear();return}if((r=e.helper2)!=null&&r.moved){e.helper2.clear();return}if(Qu.moved){Qu.clear();return}e.clearSelection();const i=t.target;if(i.tagName==="ME-EPD")e.expandNode(i.previousSibling);else if(Pfe(i))e.selectNode(i,!1,t);else if(e.editable)i.tagName==="text"?i.dataset.type==="custom-link"?e.selectArrow(i.parentElement):e.selectSummary(i.parentElement):i.className;else return}),e.map.addEventListener("dblclick",t=>{if(!e.editable)return;const n=t.target;Pfe(n)?e.beginEdit(n):n.tagName==="text"&&(n.dataset.type==="custom-link"?e.editArrowLabel(n.parentElement):e.editSummary(n.parentElement))}),e.map.addEventListener("mousemove",t=>{t.target.contentEditable!=="true"&&Qu.onMove(t,e.container)}),e.map.addEventListener("mousedown",t=>{const n=e.mouseSelectionButton===0?2:0;t.button===n&&t.target.contentEditable!=="true"&&(Qu.moved=!1,Qu.mousedown=!0)}),e.map.addEventListener("mouseleave",t=>{const n=e.mouseSelectionButton===0?2:0;t.button===n&&Qu.clear()}),e.map.addEventListener("mouseup",t=>{const n=e.mouseSelectionButton===0?2:0;t.button===n&&Qu.clear()})}const k2i={create(){return{handlers:{},showHandler:function(){},addListener:function(e,t){this.handlers[e]===void 0&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e,...t){if(this.handlers[e]instanceof Array){const n=this.handlers[e];for(let r=0;r<n.length;r++)n[r](...t)}},removeListener:function(e,t){if(!this.handlers[e])return;const n=this.handlers[e];if(!t)n.length=0;else if(n.length)for(let r=0;r<n.length;r++)n[r]===t&&this.handlers[e].splice(r,1)}}}};var wu=(e=>(e.LHS="lhs",e.RHS="rhs",e))(wu||{});const HH=document,z2i=function(){this.nodes.innerHTML="";const e=this.createTopic(this.nodeData);k6e(e,this.nodeData),e.draggable=!1;const t=HH.createElement("me-root");t.appendChild(e);const n=this.nodeData.children||[];if(this.direction===dZ){let r=0,i=0;n.map(o=>{o.direction===zf?r+=1:o.direction===a4?i+=1:r<=i?(o.direction=zf,r+=1):(o.direction=a4,i+=1)})}B2i(this,n,t)},B2i=function(e,t,n){const r=HH.createElement("me-main");r.className=wu.LHS;const i=HH.createElement("me-main");i.className=wu.RHS;for(let o=0;o<t.length;o++){const s=t[o],{grp:a}=e.createWrapper(s);e.direction===dZ?s.direction===zf?r.appendChild(a):i.appendChild(a):e.direction===zf?r.appendChild(a):i.appendChild(a)}e.nodes.appendChild(r),e.nodes.appendChild(n),e.nodes.appendChild(i),e.nodes.appendChild(e.lines)},H2i=function(e,t){const n=HH.createElement("me-children");for(let r=0;r<t.length;r++){const i=t[r],{grp:o}=e.createWrapper(i);n.appendChild(o)}return n},td=document,fs=(e,t)=>{const n=(t?t.mindElixirBox:td).querySelector(`[data-nodeid=me${e}]`);if(!n)throw new Error(`FindEle: Node ${e} not found, maybe it's collapsed.`);return n},k6e=function(e,t){if(e.innerHTML="",t.style&&(e.style.color=t.style.color||"",e.style.background=t.style.background||"",e.style.fontSize=t.style.fontSize+"px",e.style.fontWeight=t.style.fontWeight||"normal"),t.dangerouslySetInnerHTML){e.innerHTML=t.dangerouslySetInnerHTML;return}if(t.image){const n=t.image;if(n.url&&n.width&&n.height){const r=td.createElement("img");r.src=n.url,r.style.width=n.width+"px",r.style.height=n.height+"px",n.fit&&(r.style.objectFit=n.fit),e.appendChild(r),e.image=r}}else e.image&&(e.image=void 0);{const n=td.createElement("span");n.className="text",n.textContent=t.topic,e.appendChild(n),e.text=n}if(t.hyperLink){const n=td.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n),e.link=n}else e.link&&(e.link=void 0);if(t.icons&&t.icons.length){const n=td.createElement("span");n.className="icons",n.innerHTML=t.icons.map(r=>`<span>${zH(r)}</span>`).join(""),e.appendChild(n),e.icons=n}else e.icons&&(e.icons=void 0);if(t.tags&&t.tags.length){const n=td.createElement("div");n.className="tags",n.innerHTML=t.tags.map(r=>`<span>${zH(r)}</span>`).join(""),e.appendChild(n),e.tags=n}else e.tags&&(e.tags=void 0)},j2i=function(e,t){const n=td.createElement("me-wrapper"),{p:r,tpc:i}=this.createParent(e);if(n.appendChild(r),!t&&e.children&&e.children.length>0){const o=z6e(e.expanded);if(r.appendChild(o),e.expanded!==!1){const s=H2i(this,e.children);n.appendChild(s)}}return{grp:n,top:r,tpc:i}},V2i=function(e){const t=td.createElement("me-parent"),n=this.createTopic(e);return k6e(n,e),t.appendChild(n),{p:t,tpc:n}},G2i=function(e){const t=td.createElement("me-children");return t.append(...e),t},W2i=function(e){const t=td.createElement("me-tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t};function $pt(e){const t=td.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}const U2i=function(e){if(!e)return;const t=td.createElement("div"),n=e.text.textContent;e.appendChild(t),t.id="input-box",t.textContent=n,t.contentEditable="true",t.spellcheck=!1;const r=getComputedStyle(e);t.style.cssText=`min-width:${e.offsetWidth-8}px;
|
||
color:${r.color};
|
||
padding:${r.padding};
|
||
margin:${r.margin};
|
||
font:${r.font};
|
||
background-color:${r.backgroundColor!=="rgba(0, 0, 0, 0)"&&r.backgroundColor};
|
||
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=`
|
||
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; // 外边距修正
|
||
`,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",moveDown:"Sposta giù",link:"Collega",clickTips:"Si prega di fare clic sul nodo di destinazione",summary:"Unisci nodi"},es:{addChild:"Agregar hijo",addParent:"Agregar padre",addSibling:"Agregar hermano",removeNode:"Eliminar nodo",focus:"Modo Enfoque",cancelFocus:"Cancelar Modo Enfoque",moveUp:"Mover hacia arriba",moveDown:"Mover hacia abajo",link:"Enlace",clickTips:"Por favor haga clic en el nodo de destino",summary:"Resumen"},fr:{addChild:"Ajout enfant",addParent:"Ajout parent",addSibling:"Ajout voisin",removeNode:"Supprimer",focus:"Cibler",cancelFocus:"Retour",moveUp:"Monter",moveDown:"Descendre",link:"Lier",clickTips:"Cliquer sur le noeud cible",summary:"Annoter"},ko:{addChild:"자식 추가",addParent:"부모 추가",addSibling:"형제 추가",removeNode:"노드 삭제",focus:"포커스 모드",cancelFocus:"포커스 모드 취소",moveUp:"위로 이동",moveDown:"아래로 이동",link:"연결",clickTips:"대상 노드를 클릭하십시오",summary:"요약"}};function Y2i(e,t){const n=b=>{const S=document.createElement("div");return S.innerText=b,S.className="tips",S},r=(b,S,w)=>{const x=document.createElement("li");return x.id=b,x.innerHTML=`<span>${zH(S)}</span><span ${w?'class="key"':""}>${zH(w)}</span>`,x},i=NFe[e.locale]?e.locale:"en",o=NFe[i],s=r("cm-add_child",o.addChild,"Tab"),a=r("cm-add_parent",o.addParent,"Ctrl + Enter"),l=r("cm-add_sibling",o.addSibling,"Enter"),c=r("cm-remove_child",o.removeNode,"Delete"),u=r("cm-fucus",o.focus,""),f=r("cm-unfucus",o.cancelFocus,""),h=r("cm-up",o.moveUp,"PgUp"),g=r("cm-down",o.moveDown,"Pgdn"),p=r("cm-link",o.link,""),m=r("cm-summary",o.summary,""),v=document.createElement("ul");if(v.className="menu-list",v.appendChild(s),v.appendChild(a),v.appendChild(l),v.appendChild(c),(!t||t.focus)&&(v.appendChild(u),v.appendChild(f)),v.appendChild(h),v.appendChild(g),v.appendChild(m),(!t||t.link)&&v.appendChild(p),t&&t.extend)for(let b=0;b<t.extend.length;b++){const S=t.extend[b],w=r(S.name,S.name,S.key||"");v.appendChild(w),w.onclick=x=>{S.onclick(x)}}const C=document.createElement("div");C.className="context-menu",C.appendChild(v),C.hidden=!0,e.container.append(C);let y=!0;return e.container.oncontextmenu=function(b){if(b.preventDefault(),!e.editable||Qu.moved)return;const S=b.target;if(Pfe(S)){S.parentElement.tagName==="ME-ROOT"?y=!0:y=!1,y?(u.className="disabled",h.className="disabled",g.className="disabled",a.className="disabled",l.className="disabled",c.className="disabled"):(u.className="",h.className="",g.className="",a.className="",l.className="",c.className=""),e.currentNodes||e.selectNode(S),C.hidden=!1,Qu.mousedown&&(Qu.mousedown=!1),v.style.top="",v.style.bottom="",v.style.left="",v.style.right="";const w=v.getBoundingClientRect(),x=v.offsetHeight,E=v.offsetWidth,R=b.clientY-w.top,O=b.clientX-w.left;x+R>window.innerHeight?(v.style.top="",v.style.bottom="0px"):(v.style.bottom="",v.style.top=R+15+"px"),E+O>window.innerWidth?(v.style.left="",v.style.right="0px"):(v.style.right="",v.style.left=O+10+"px")}},C.onclick=b=>{b.target===C&&(C.hidden=!0)},s.onclick=()=>{e.addChild(),C.hidden=!0},a.onclick=()=>{e.insertParent(),C.hidden=!0},l.onclick=()=>{y||(e.insertSibling("after"),C.hidden=!0)},c.onclick=()=>{y||(e.removeNode(),C.hidden=!0)},u.onclick=()=>{y||(e.focusNode(e.currentNode),C.hidden=!0)},f.onclick=()=>{e.cancelFocus(),C.hidden=!0},h.onclick=()=>{y||(e.moveUpNode(),C.hidden=!0)},g.onclick=()=>{y||(e.moveDownNode(),C.hidden=!0)},p.onclick=()=>{C.hidden=!0;const b=e.currentNode,S=n(o.clickTips);e.container.appendChild(S),e.map.addEventListener("click",w=>{w.preventDefault(),S.remove();const x=w.target;(x.parentElement.tagName==="ME-PARENT"||x.parentElement.tagName==="ME-ROOT")&&e.createArrow(b,x)},{once:!0})},m.onclick=()=>{C.hidden=!0,e.createSummary(),e.unselectNodes()},()=>{s.onclick=null,a.onclick=null,l.onclick=null,c.onclick=null,u.onclick=null,f.onclick=null,h.onclick=null,g.onclick=null,p.onclick=null,m.onclick=null,C.onclick=null,e.container.oncontextmenu=null}}const X2i=e=>{const t=e.map.querySelectorAll(".lhs>me-wrapper>me-parent>me-tpc");e.selectNode(t[Math.ceil(t.length/2)-1])},Q2i=e=>{const t=e.map.querySelectorAll(".rhs>me-wrapper>me-parent>me-tpc");e.selectNode(t[Math.ceil(t.length/2)-1])},Z2i=e=>{e.selectNode(e.map.querySelector("me-root>me-tpc"))},J2i=function(e,t){const n=t.parentElement.parentElement.parentElement.previousSibling;if(n){const r=n.firstChild;e.selectNode(r)}},e4i=function(e,t){const n=t.parentElement.nextSibling;if(n&&n.firstChild){const r=n.firstChild.firstChild.firstChild;e.selectNode(r)}},kFe=function(e,t){var n,r;const i=e.currentNode||((n=e.currentNodes)==null?void 0:n[0]);if(!i)return;const o=i.nodeObj,s=i.offsetParent.offsetParent.parentElement;o.parent?s.className===t?e4i(e,i):(r=o.parent)!=null&&r.parent?J2i(e,i):Z2i(e):t===wu.LHS?X2i(e):Q2i(e)},zFe=function(e,t){var n;const r=e.currentNode||((n=e.currentNodes)==null?void 0:n[0]);if(!r||!r.nodeObj.parent)return;const i=t+"Sibling",o=r.parentElement.parentElement[i];o&&e.selectNode(o.firstChild.firstChild)},OF=function(e,t,n=1){switch(t){case"in":if(e.scaleVal*n>1.6)return;e.scale(e.scaleVal+=.2);break;case"out":if(e.scaleVal*n<.6)return;e.scale(e.scaleVal-=.2)}};function t4i(e){const t=()=>{e.currentArrow?e.removeArrow():e.currentSummary?e.removeSummary(e.currentSummary.summaryObj.id):e.currentNode?e.removeNode():e.currentNodes&&e.removeNodes(e.currentNodes)},n={Enter:r=>{r.shiftKey?e.insertSibling("before"):r.ctrlKey?e.insertParent():e.insertSibling("after")},Tab:()=>{e.addChild()},F1:()=>{e.toCenter()},F2:()=>{e.beginEdit()},ArrowUp:r=>{if(r.altKey)e.moveUpNode();else{if(r.metaKey||r.ctrlKey)return e.initSide();zFe(e,"previous")}},ArrowDown:r=>{r.altKey?e.moveDownNode():zFe(e,"next")},ArrowLeft:r=>{if(r.metaKey||r.ctrlKey)return e.initLeft();kFe(e,wu.LHS)},ArrowRight:r=>{if(r.metaKey||r.ctrlKey)return e.initRight();kFe(e,wu.RHS)},PageUp:()=>e.moveUpNode(),PageDown:()=>{e.moveDownNode()},c:r=>{(r.metaKey||r.ctrlKey)&&(e.currentNode?e.waitCopy=[e.currentNode]:e.currentNodes&&(e.waitCopy=e.currentNodes))},x:r=>{(r.metaKey||r.ctrlKey)&&(e.currentNode?e.waitCopy=[e.currentNode]:e.currentNodes&&(e.waitCopy=e.currentNodes),t())},v:r=>{!e.waitCopy||!e.currentNode||(r.metaKey||r.ctrlKey)&&(e.waitCopy.length===1?e.copyNode(e.waitCopy[0],e.currentNode):e.copyNodes(e.waitCopy,e.currentNode))},"+":r=>{(r.metaKey||r.ctrlKey)&&OF(e,"in")},"-":r=>{(r.metaKey||r.ctrlKey)&&OF(e,"out")},0:r=>{(r.metaKey||r.ctrlKey)&&e.scale(1)},Delete:t,Backspace:t};e.map.onkeydown=r=>{if(r.preventDefault(),!e.editable||r.target!==r.currentTarget)return;const i=n[r.key];i&&i(r)},e.map.onwheel=r=>{if(r.ctrlKey||r.metaKey){r.preventDefault();const i=Math.abs(r.deltaY/100);r.deltaY<0?OF(e,"in",i):e.scaleVal-.2>0&&OF(e,"out",i),r.stopPropagation()}}}const _fe=document,n4i=function(e,t){if(!t)return Afe(e),e;let n=e.querySelector(".insert-preview");const r=`insert-preview ${t} show`;return n||(n=_fe.createElement("div"),e.appendChild(n)),n.className=r,e},Afe=function(e){if(!e)return;const t=e.querySelectorAll(".insert-preview");for(const n of t||[])n.remove()},BFe=function(e,t){for(const n of t){const r=n.parentElement.parentElement.contains(e);if(!(e&&e.tagName==="ME-TPC"&&e!==n&&!r&&e.nodeObj.parent))return!1}return!0},r4i=function(e){const t=document.createElement("div");return t.className="mind-elixir-ghost",e.map.appendChild(t),t};function i4i(e){let t=null,n=null,r=null;const i=r4i(e),o=48;e.map.addEventListener("dragstart",s=>{var a,l;const c=s.target;if((c==null?void 0:c.tagName)!=="ME-TPC"){s.preventDefault();return}(a=e.currentNodes)!=null&&a.includes(c)||(e.unselectNodes(),e.selectNode(c)),e.currentNodes?(t=e.currentNodes,i.innerHTML=e.currentNodes.length+" nodes"):(t=[c],i.innerHTML=c.innerHTML);for(const u of t)u.parentElement.parentElement.style.opacity="0.5";(l=s.dataTransfer)==null||l.setDragImage(i,0,0),Qu.clear()}),e.map.addEventListener("dragend",async s=>{if(!t)return;for(const l of t)l.parentElement.parentElement.style.opacity="1";const a=s.target;a.style.opacity="",r&&(Afe(r),n==="before"?e.moveNodeBefore(t,r):n==="after"?e.moveNodeAfter(t,r):n==="in"&&e.moveNodeIn(t,r),t=null)}),e.map.addEventListener("dragover",L2i(function(s){if(!t)return;Afe(r);const a=_fe.elementFromPoint(s.clientX,s.clientY-o);if(BFe(a,t)){r=a;const l=a.getBoundingClientRect().y;s.clientY>l+a.clientHeight?n="after":n="in"}else{const l=_fe.elementFromPoint(s.clientX,s.clientY+o);if(BFe(l,t)){r=l;const c=l.getBoundingClientRect().y;s.clientY<c?n="before":n="in"}else n=r=null}r&&n4i(r,n)},100))}const o4i=function(e){return["createSummary","removeSummary","finishEditSummary"].includes(e.name)?{type:"summary",value:e.obj.id}:["createArrow","removeArrow","finishEditArrowLabel"].includes(e.name)?{type:"arrow",value:e.obj.id}:["removeNodes","copyNodes","moveNodeBefore","moveNodeAfter","moveNodeIn"].includes(e.name)?{type:"nodes",value:e.objs.map(t=>t.id)}:{type:"node",value:e.obj.id}};function s4i(e){let t=[],n=-1,r=e.getData();e.bus.addListener("operation",i=>{if(i.name==="beginEdit")return;t=t.slice(0,n+1);const o=e.getData();t.push({prev:r,currentObject:o4i(i),next:o}),r=o,n=t.length-1}),e.undo=function(){if(n>-1){const i=t[n];r=i.prev,e.refresh(i.prev);try{i.currentObject.type==="node"?e.selectNode(fs(i.currentObject.value)):i.currentObject.type==="nodes"&&e.selectNodes(i.currentObject.value.map(o=>fs(o)))}catch{}finally{n--}}},e.redo=function(){if(n<t.length-1){n++;const i=t[n];r=i.next,e.refresh(i.next),i.currentObject.type==="node"?e.selectNode(fs(i.currentObject.value)):i.currentObject.type==="nodes"&&e.selectNodes(i.currentObject.value.map(o=>fs(o)))}},e.map.addEventListener("keydown",i=>{(i.metaKey||i.ctrlKey)&&i.shiftKey&&i.key==="Z"?e.redo():(i.metaKey||i.ctrlKey)&&i.key==="z"&&e.undo()})}const B8=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
|
||
<use xlink:href="#icon-${t}"></use>
|
||
</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},scrolling:{speedDivider:10,manualSpeed:750,...(n=e.behaviour)==null?void 0:n.scrolling,startScrollMargins:{x:0,y:0,...(i=(r=e.behaviour)==null?void 0:r.scrolling)==null?void 0:i.startScrollMargins}}},features:{range:!0,touch:!0,deselectOnBlur:!1,...e.features,singleTap:{allow:!0,intersect:"native",...(o=e.features)==null?void 0:o.singleTap}}};for(const c of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))typeof this[c]=="function"&&(this[c]=this[c].bind(this));const{document:s,selectionAreaClass:a,selectionContainerClass:l}=this._options;this._area=s.createElement("div"),this._clippingElement=s.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(a),l&&this._clippingElement.classList.add(l),l2(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),l2(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=d4i(c=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",c),this._redrawSelectionArea()}),this.enable()}_toggleStartEvents(e=!0){const{document:t,features:n}=this._options,r=e?c2:Mh;r(t,"mousedown",this._onTapStart),n.touch&&r(t,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(e,t=!1){const{x:n,y:r,target:i}=TF(e),{document:o,startAreas:s,boundaries:a,features:l,behaviour:c}=this._options,u=i.getBoundingClientRect();if(e instanceof MouseEvent&&!g4i(e,c.triggers))return;const f=W5(s,o),h=W5(a,o);this._targetElement=h.find(v=>VFe(v.getBoundingClientRect(),u));const g=e.composedPath(),p=f.find(v=>g.includes(v));if(this._targetBoundary=h.find(v=>g.includes(v)),!this._targetElement||!p||!this._targetBoundary||!t&&this._emitEvent("beforestart",e)===!1)return;this._areaLocation={x1:n,y1:r,x2:0,y2:0};const m=o.scrollingElement??o.body;this._scrollDelta={x:m.scrollLeft,y:m.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),c2(o,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),c2(o,["mouseup","touchcancel","touchend"],this._onTapStop),c2(o,"scroll",this._onScroll),l.deselectOnBlur&&(this._targetBoundaryScrolled=!1,c2(this._targetBoundary,"scroll",this._onStartAreaScroll))}_onSingleTap(e){const{singleTap:{intersect:t},range:n}=this._options.features,r=TF(e);let i;if(t==="native")i=r.target;else if(t==="touch"){this.resolveSelectables();const{x:s,y:a}=r;i=this._selectables.find(l=>{const{right:c,left:u,top:f,bottom:h}=l.getBoundingClientRect();return s<c&&s>u&&a<h&&a>f})}if(!i)return;for(this.resolveSelectables();!this._selectables.includes(i);)if(i.parentElement)i=i.parentElement;else{this._targetBoundaryScrolled||this.clearSelection();return}const{stored:o}=this._selection;if(this._emitEvent("start",e),e.shiftKey&&n&&this._latestElement){const s=this._latestElement,[a,l]=s.compareDocumentPosition(i)&4?[i,s]:[s,i],c=[...this._selectables.filter(u=>u.compareDocumentPosition(a)&4&&u.compareDocumentPosition(l)&2),a,l];this.select(c),this._latestElement=s}else o.includes(i)&&(o.length===1||e.ctrlKey||o.every(s=>this._selection.stored.includes(s)))?this.deselect(i):(this.select(i),this._latestElement=i)}_delayedTapMove(e){const{container:t,document:n,behaviour:{startThreshold:r}}=this._options,{x1:i,y1:o}=this._areaLocation,{x:s,y:a}=TF(e);if(typeof r=="number"&&Y6(s+a-(i+o))>=r||typeof r=="object"&&Y6(s-i)>=r.x||Y6(a-o)>=r.y){if(Mh(n,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),this._emitEvent("beforedrag",e)===!1){Mh(n,["mouseup","touchcancel","touchend"],this._onTapStop);return}c2(n,["mousemove","touchmove"],this._onTapMove,{passive:!1}),l2(this._area,"display","block"),W5(t,n)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&(c2(this._targetElement,"wheel",this._wheelScroll,{passive:!1}),c2(this._options.document,"keydown",this._keyboardScroll,{passive:!1}),this._selectables=this._selectables.filter(l=>this._targetElement.contains(l))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}_setupSelectionArea(){const{_clippingElement:e,_targetElement:t,_area:n}=this,r=this._targetRect=t.getBoundingClientRect();this._scrollAvailable?(l2(e,{top:r.top,left:r.left,width:r.width,height:r.height}),l2(n,{marginTop:-r.top,marginLeft:-r.left})):(l2(e,{top:0,left:0,width:"100%",height:"100%"}),l2(n,{marginTop:0,marginLeft:0}))}_onTapMove(e){const{_scrollSpeed:t,_areaLocation:n,_options:r,_frame:i}=this,{speedDivider:o}=r.behaviour.scrolling,s=this._targetElement,{x:a,y:l}=TF(e);if(n.x2=a,n.y2=l,this._lastMousePosition.x=a,this._lastMousePosition.y=l,this._scrollAvailable&&!this._scrollingActive&&(t.y||t.x)){this._scrollingActive=!0;const c=()=>{if(!t.x&&!t.y){this._scrollingActive=!1;return}const{scrollTop:u,scrollLeft:f}=s;t.y&&(s.scrollTop+=UFe(t.y/o),n.y1-=s.scrollTop-u),t.x&&(s.scrollLeft+=UFe(t.x/o),n.x1-=s.scrollLeft-f),i.next(e),requestAnimationFrame(c)};requestAnimationFrame(c)}else i.next(e);this._handleMoveEvent(e)}_handleMoveEvent(e){const{features:t}=this._options;(t.touch&&f4i()||this._scrollAvailable&&h4i())&&e.preventDefault()}_onScroll(){const{_scrollDelta:e,_options:{document:t}}=this,{scrollTop:n,scrollLeft:r}=t.scrollingElement??t.body;this._areaLocation.x1+=e.x-r,this._areaLocation.y1+=e.y-n,e.x=r,e.y=n,this._setupSelectionArea(),this._frame.next(null)}_onStartAreaScroll(){this._targetBoundaryScrolled=!0,Mh(this._targetElement,"scroll",this._onStartAreaScroll)}_wheelScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,n=e.deltaY?e.deltaY>0?1:-1:0,r=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=n*t,this._scrollSpeed.x+=r*t,this._onTapMove(e),e.preventDefault()}_keyboardScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,n=e.key==="ArrowLeft"?-1:e.key==="ArrowRight"?1:0,r=e.key==="ArrowUp"?-1:e.key==="ArrowDown"?1:0;this._scrollSpeed.x+=Math.sign(n)*t,this._scrollSpeed.y+=Math.sign(r)*t,e.preventDefault(),this._onTapMove({clientX:this._lastMousePosition.x,clientY:this._lastMousePosition.y,preventDefault:()=>{}})}_recalculateSelectionAreaRect(){const{_scrollSpeed:e,_areaLocation:t,_targetElement:n,_options:r}=this,{scrollTop:i,scrollHeight:o,clientHeight:s,scrollLeft:a,scrollWidth:l,clientWidth:c}=n,u=this._targetRect,{x1:f,y1:h}=t;let{x2:g,y2:p}=t;const{behaviour:{scrolling:{startScrollMargins:m}}}=r;g<u.left+m.x?(e.x=a?-Y6(u.left-g+m.x):0,g=g<u.left?u.left:g):g>u.right-m.x?(e.x=l-a-c?Y6(u.left+u.width-g-m.x):0,g=g>u.right?u.right:g):e.x=0,p<u.top+m.y?(e.y=i?-Y6(u.top-p+m.y):0,p=p<u.top?u.top:p):p>u.bottom-m.y?(e.y=o-i-s?Y6(u.top+u.height-p-m.y):0,p=p>u.bottom?u.bottom:p):e.y=0;const v=WFe(f,g),C=WFe(h,p),y=GFe(f,g),b=GFe(h,p);this._areaRect=jFe(v,C,y-v,b-C)}_redrawSelectionArea(){const{x:e,y:t,width:n,height:r}=this._areaRect,{style:i}=this._area;i.left=`${e}px`,i.top=`${t}px`,i.width=`${n}px`,i.height=`${r}px`}_onTapStop(e,t){var n;const{document:r,features:i}=this._options,{_singleClick:o}=this;Mh(this._targetElement,"scroll",this._onStartAreaScroll),Mh(r,["mousemove","touchmove"],this._delayedTapMove),Mh(r,["touchmove","mousemove"],this._onTapMove),Mh(r,["mouseup","touchcancel","touchend"],this._onTapStop),Mh(r,"scroll",this._onScroll),this._keepSelection(),e&&o&&i.singleTap.allow?this._onSingleTap(e):!o&&!t&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,Mh(this._targetElement,"wheel",this._wheelScroll,{passive:!0}),Mh(this._options.document,"keydown",this._keyboardScroll,{passive:!0}),this._clippingElement.remove(),(n=this._frame)==null||n.cancel(),l2(this._area,"display","none")}_updateElementSelection(){const{_selectables:e,_options:t,_selection:n,_areaRect:r}=this,{stored:i,selected:o,touched:s}=n,{intersect:a,overlap:l}=t.behaviour,c=l==="invert",u=[],f=[],h=[];for(let p=0;p<e.length;p++){const m=e[p];if(VFe(r,m.getBoundingClientRect(),a)){if(o.includes(m))i.includes(m)&&!s.includes(m)&&s.push(m);else if(c&&i.includes(m)){h.push(m);continue}else f.push(m);u.push(m)}}c&&f.push(...i.filter(p=>!o.includes(p)));const g=l==="keep";for(let p=0;p<o.length;p++){const m=o[p];!u.includes(m)&&!(g&&i.includes(m))&&h.push(m)}n.selected=u,n.changed={added:f,removed:h},this._latestElement=void 0}_emitEvent(e,t){return this.emit(e,{event:t,store:this._selection,selection:this})}_keepSelection(){const{_options:e,_selection:t}=this,{selected:n,changed:r,touched:i,stored:o}=t,s=n.filter(a=>!o.includes(a));switch(e.behaviour.overlap){case"drop":{t.stored=[...s,...o.filter(a=>!i.includes(a))];break}case"invert":{t.stored=[...s,...o.filter(a=>!r.removed.includes(a))];break}case"keep":{t.stored=[...o,...n.filter(a=>!o.includes(a))];break}}}trigger(e,t=!0){this._onTapStart(e,t)}resolveSelectables(){this._selectables=W5(this._options.selectables,this._options.document)}clearSelection(e=!0,t=!1){const{selected:n,stored:r,changed:i}=this._selection;i.added=[],i.removed.push(...n,...e?r:[]),t||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection=qFe(e?[]:r)}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}getSelectables(){return this._selectables}setAreaLocation(e){Object.assign(this._areaLocation,e),this._redrawSelectionArea()}getAreaLocation(){return this._areaLocation}cancel(e=!1){this._onTapStop(null,!e)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(e,t=!1){const{changed:n,selected:r,stored:i}=this._selection,o=W5(e,this._options.document).filter(s=>!r.includes(s)&&!i.includes(s));return i.push(...o),r.push(...o),n.added.push(...o),n.removed=[],this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)),o}deselect(e,t=!1){const{selected:n,stored:r,changed:i}=this._selection,o=W5(e,this._options.document).filter(s=>n.includes(s)||r.includes(s));this._selection.stored=r.filter(s=>!o.includes(s)),this._selection.selected=n.filter(s=>!o.includes(s)),this._selection.changed.added=[],this._selection.changed.removed.push(...o.filter(s=>!i.removed.includes(s))),this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null))}};Ppt.version="3.9.0";let p4i=Ppt;function m4i(e){const t=e.mouseSelectionButton===2?[2]:[0],n=new p4i({selectables:[".map-container me-tpc"],boundaries:[e.container],container:e.selectionContainer,behaviour:{triggers:t,scrolling:{speedDivider:10,manualSpeed:750,startScrollMargins:{x:10,y:10}}}}).on("beforestart",({event:r})=>{if(r.target.tagName==="ME-TPC"||r.target.id==="input-box"||r.target.className==="circle")return!1;const i=n.getSelectionArea();return i.style.background="#4f90f22d",i.style.border="1px solid #4f90f2",i.parentElement&&(i.parentElement.style.zIndex="9999"),!0}).on("start",({event:r})=>{!r.ctrlKey&&!r.metaKey&&(e.clearSelection(),n.clearSelection(!0,!0))}).on("move",({store:{changed:{added:r,removed:i}}})=>{Qu.moved=!0;for(const o of r)o.classList.add("selected");for(const o of i)o.classList.remove("selected")}).on("stop",({store:{stored:r}})=>{e.selectNodes(r)});e.selection=n}const v4i=function(e,t=!0){this.theme=e;const n=this.theme.cssVar,r=Object.keys(n);this.mindElixirBox.style.cssText="";for(let i=0;i<r.length;i++){const o=r[i];this.mindElixirBox.style.setProperty(o,n[o])}e.cssVar["--gap"]||this.mindElixirBox.style.setProperty("--gap","30px"),t&&this.refresh()},mE=e=>{var t;const n=(t=e.parent)==null?void 0:t.children,r=(n==null?void 0:n.indexOf(e))??0;return{siblings:n,index:r}};function C4i(e){const{siblings:t,index:n}=mE(e);if(t===void 0)return;const r=t[n];n===0?(t[n]=t[t.length-1],t[t.length-1]=r):(t[n]=t[n-1],t[n-1]=r)}function y4i(e){const{siblings:t,index:n}=mE(e);if(t===void 0)return;const r=t[n];n===t.length-1?(t[n]=t[0],t[0]=r):(t[n]=t[n+1],t[n+1]=r)}function B6e(e){const{siblings:t,index:n}=mE(e);return t===void 0?0:(t.splice(n,1),t.length)}function b4i(e,t,n){const{siblings:r,index:i}=mE(n);r!==void 0&&(t==="before"?r.splice(i,0,e):r.splice(i+1,0,e))}function S4i(e,t){const{siblings:n,index:r}=mE(e);n!==void 0&&(n[r]=t,t.children=[e])}function _pt(e,t,n){if(B6e(t),e==="in")n.children?n.children.push(t):n.children=[t];else{t.direction!==void 0&&(t.direction=n.direction);const{siblings:r,index:i}=mE(n);if(r===void 0)return;e==="before"?r.splice(i,0,t):r.splice(i+1,0,t)}}const w4i=function(e,t){var n,r;if(e===zf)return zf;if(e===a4)return a4;if(e===dZ){const i=((n=document.querySelector(".lhs"))==null?void 0:n.childElementCount)||0,o=((r=document.querySelector(".rhs"))==null?void 0:r.childElementCount)||0;return i<=o?(t.direction=zf,zf):(t.direction=a4,a4)}},Apt=function(e,t,n){var r,i;const o=n.children[0].children[0],s=t.parentElement;if(s.tagName==="ME-PARENT"){if(Z_(o),s.children[1])s.nextSibling.appendChild(n);else{const a=e.createChildren([n]);s.appendChild(z6e(!0)),s.insertAdjacentElement("afterend",a)}e.linkDiv(n.offsetParent)}else s.tagName==="ME-ROOT"&&(w4i(e.direction,o.nodeObj)===zf?(r=e.container.querySelector(".lhs"))==null||r.appendChild(n):(i=e.container.querySelector(".rhs"))==null||i.appendChild(n),e.linkDiv())},Dpt=function(e,t){const n=e.parentNode;if(t===0){const r=n.parentNode.parentNode;r.tagName!=="ME-MAIN"&&r.previousSibling.children[1].remove()}n.parentNode.remove()},Lpt={before:"beforebegin",after:"afterend"},Z_=function(e){const t=e.parentElement.parentElement.lastElementChild;(t==null?void 0:t.tagName)==="svg"&&(t==null||t.remove())},x4i=function(e,t){const n=e.nodeObj,r=N6e(n);r.style&&t.style&&(t.style=Object.assign(r.style,t.style));const i=Object.assign(n,t);k6e(e,i),this.linkDiv(),this.bus.fire("operation",{name:"reshapeNode",obj:i,origin:r})},H6e=function(e,t,n){if(!t)return null;const r=t.nodeObj;r.expanded===!1&&(e.expandNode(t,!0),t=fs(r.id));const i=n||e.generateNewObj();r.children?r.children.push(i):r.children=[i],h6(e.nodeData);const{grp:o,top:s}=e.createWrapper(i);return Apt(e,t,o),{newTop:s,newNodeObj:i}},E4i=function(e,t,n){var r,i,o,s;const a=t||this.currentNode;if(!a)return;const l=a.nodeObj;if(l.parent){if(!((r=l.parent)!=null&&r.parent)&&((o=(i=l.parent)==null?void 0:i.children)==null?void 0:o.length)===1){this.addChild(fs(l.parent.id),n);return}}else{this.addChild();return}const c=n||this.generateNewObj();if(!((s=l.parent)!=null&&s.parent)){const g=a.closest("me-main").className===wu.LHS?zf:a4;c.direction=g}b4i(c,e,l),h6(this.nodeData);const u=a.parentElement,{grp:f,top:h}=this.createWrapper(c);u.parentElement.insertAdjacentElement(Lpt[e],f),this.linkDiv(f.offsetParent),n||this.editTopic(h.firstChild),this.selectNode(h.firstChild,!0),this.bus.fire("operation",{name:"insertSibling",type:e,obj:c})},R4i=function(e,t){const n=e||this.currentNode;if(!n)return;Z_(n);const r=n.nodeObj;if(!r.parent)return;const i=t||this.generateNewObj();S4i(r,i),h6(this.nodeData);const o=n.parentElement.parentElement,{grp:s,top:a}=this.createWrapper(i,!0);a.appendChild(z6e(!0)),o.insertAdjacentElement("afterend",s);const l=this.createChildren([o]);a.insertAdjacentElement("afterend",l),this.linkDiv(),t||this.editTopic(a.firstChild),this.selectNode(a.firstChild,!0),this.bus.fire("operation",{name:"insertParent",obj:i})},$4i=function(e,t){const n=e||this.currentNode;if(!n)return;const r=H6e(this,n,t);if(!r)return;const{newTop:i,newNodeObj:o}=r;this.bus.fire("operation",{name:"addChild",obj:o}),t||this.editTopic(i.firstChild),this.selectNode(i.firstChild,!0)},O4i=function(e,t){const n=N6e(e.nodeObj);F6e(n);const r=H6e(this,t,n);if(!r)return;const{newNodeObj:i}=r;this.selectNode(fs(i.id)),this.bus.fire("operation",{name:"copyNode",obj:i})},T4i=function(e,t){e=fZ(e);const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=N6e(i.nodeObj);F6e(o);const s=H6e(this,t,o);if(!s)return;const{newNodeObj:a}=s;n.push(a)}this.selectNodes(n.map(r=>fs(r.id))),this.bus.fire("operation",{name:"copyNodes",objs:n})},I4i=function(e){const t=e||this.currentNode;if(!t)return;const n=t.nodeObj;C4i(n);const r=t.parentNode.parentNode;r.parentNode.insertBefore(r,r.previousSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveUpNode",obj:n})},M4i=function(e){const t=e||this.currentNode;if(!t)return;const n=t.nodeObj;y4i(n);const r=t.parentNode.parentNode;r.nextSibling?r.nextSibling.insertAdjacentElement("afterend",r):r.parentNode.prepend(r),this.linkDiv(),this.bus.fire("operation",{name:"moveDownNode",obj:n})},P4i=function(e){var t;const n=e||this.currentNode;if(!n)return;const r=n.nodeObj;if(!r.parent)throw new Error("Can not remove root node");const i=r.parent.children,o=i.findIndex(a=>a===r),s=B6e(r);if(Dpt(n,s),i.length!==0){const a=i[o]||i[o-1];this.selectNode(fs(a.id))}else this.selectNode(fs(r.parent.id));this.linkDiv(),this.bus.fire("operation",{name:"removeNode",obj:r,originIndex:o,originParentId:(t=r==null?void 0:r.parent)==null?void 0:t.id})},_4i=function(e){e=fZ(e);for(const t of e){const n=t.nodeObj;if(!n.parent)continue;const r=B6e(n);Dpt(t,r)}this.linkDiv(),this.bus.fire("operation",{name:"removeNodes",objs:e.map(t=>t.nodeObj)})},A4i=function(e,t){e=fZ(e);const n=t.nodeObj;n.expanded===!1&&(this.expandNode(t,!0),t=fs(n.id));for(const r of e){const i=r.nodeObj;_pt("in",i,n),h6(this.nodeData);const o=r.parentElement;Apt(this,t,o.parentElement)}this.linkDiv(),this.bus.fire("operation",{name:"moveNodeIn",objs:e.map(r=>r.nodeObj),toObj:n})},Fpt=(e,t,n,r)=>{e=fZ(e),t==="after"&&(e=e.reverse());const i=n.nodeObj;for(const o of e){const s=o.nodeObj;_pt(t,s,i),h6(r.nodeData),Z_(o);const a=o.parentElement.parentNode;n.parentElement.parentNode.insertAdjacentElement(Lpt[t],a)}r.linkDiv(),r.bus.fire("operation",{name:t==="before"?"moveNodeBefore":"moveNodeAfter",objs:e.map(o=>o.nodeObj),toObj:i})},D4i=function(e,t){Fpt(e,"before",t,this)},L4i=function(e,t){Fpt(e,"after",t,this)},F4i=function(e){const t=e||this.currentNode;t&&(t.nodeObj.dangerouslySetInnerHTML||this.editTopic(t))},N4i=function(e,t){e.text.textContent=t,e.nodeObj.topic=t,this.linkDiv()},Npt=Object.freeze(Object.defineProperty({__proto__:null,addChild:$4i,beginEdit:F4i,copyNode:O4i,copyNodes:T4i,insertParent:R4i,insertSibling:E4i,moveDownNode:M4i,moveNodeAfter:L4i,moveNodeBefore:D4i,moveNodeIn:A4i,moveUpNode:I4i,removeNode:P4i,removeNodes:_4i,reshapeNode:x4i,rmSubline:Z_,setNodeTopic:N4i},Symbol.toStringTag,{value:"Module"}));function kpt(e){return{nodeData:e.isFocusMode?e.nodeDataBackup:e.nodeData,arrows:e.arrows,summaries:e.summaries,direction:e.direction,theme:e.theme}}const k4i=function(e,t,n){if(e){if(this.clearSelection(),typeof e=="string"){const r=fs(e);return r?this.selectNode(r):void 0}e.className="selected",e.scrollIntoView({block:"nearest",inline:"nearest"}),this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj):this.bus.fire("selectNode",e.nodeObj,n)}},z4i=function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},B4i=function(e){this.clearSelection();for(const t of e)t.className="selected";this.currentNodes=e,this.bus.fire("selectNodes",e.map(t=>t.nodeObj))},H4i=function(){if(this.currentNodes)for(const e of this.currentNodes)e.classList.remove("selected");this.currentNodes=null,this.bus.fire("unselectNodes")},j4i=function(){this.unselectNode(),this.unselectNodes(),this.unselectSummary(),this.unselectArrow()},V4i=function(){const e=kpt(this);return JSON.stringify(e,(t,n)=>{if(!(t==="parent"&&typeof n!="string"))return n})},G4i=function(){return JSON.parse(this.getDataString())},W4i=function(){const e=kpt(this).nodeData;let t="# "+e.topic+`
|
||
|
||
`;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+`
|
||
`,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.label,C,y,e.theme.cssVar["--color"]);v.appendChild(b),v.arrowObj=r,v.dataset.linkid=r.id,e.linkSvgGroup.appendChild(v),i||(e.arrows.push(r),e.currentArrow=v,Hpt(e,r,o,s)),performance.now()},l3i=function(e,t){const n={id:Q_(),label:"Custom Link",from:e.nodeObj.id,to:t.nodeObj.id,delta1:{x:0,y:-200},delta2:{x:0,y:-200}};zpt(this,e,t,n),this.bus.fire("operation",{name:"createArrow",obj:n})},c3i=function(e){let t;if(e?t=e:t=this.currentArrow,!t)return;Bpt(this);const n=t.arrowObj.id;this.arrows=this.arrows.filter(r=>r.id!==n),t.remove(),this.bus.fire("operation",{name:"removeArrow",obj:{id:n}})},u3i=function(e){this.currentArrow=e;const t=e.arrowObj,n=fs(t.from),r=fs(t.to),i=jH(this,n,t.delta1),o=jH(this,r,t.delta2);Hpt(this,t,i,o)},d3i=function(){this.currentArrow=null,Bpt(this)},Bpt=function(e){e.linkController.style.display="none",e.P2.style.display="none",e.P3.style.display="none"},Hpt=function(e,t,n,r){var i;e.linkController.style.display="initial",e.P2.style.display="initial",e.P3.style.display="initial",e.nodes.appendChild(e.linkController),e.nodes.appendChild(e.P2),e.nodes.appendChild(e.P3);let{x:o,y:s}=NS(n),{ctrlX:a,ctrlY:l}=n,{ctrlX:c,ctrlY:u}=r,{x:f,y:h}=NS(r);e.P2.style.cssText=`top:${l}px;left:${a}px;`,e.P3.style.cssText=`top:${u}px;left:${c}px;`,Zo(e.line1,{x1:o+"",y1:s+"",x2:a+"",y2:l+""}),Zo(e.line2,{x1:c+"",y1:u+"",x2:f+"",y2:h+""}),e.helper1&&(e.helper1.destory(e.map),(i=e.helper2)==null||i.destory(e.map)),e.helper1=KFe.create(e.P2),e.helper2=KFe.create(e.P3),e.helper1.init(e.map,(g,p)=>{var m;a=a+g/e.scaleVal,l=l+p/e.scaleVal;const v=NS({...n,ctrlX:a,ctrlY:l});o=v.x,s=v.y;const C=o/8+a*3/8+c*3/8+f/8,y=s/8+l*3/8+u*3/8+h/8;e.P2.style.top=l+"px",e.P2.style.left=a+"px",(m=e.currentArrow)==null||m.children[0].setAttribute("d",`M ${o} ${s} C ${a} ${l} ${c} ${u} ${f} ${h}`),Zo(e.currentArrow.children[2],{x:C+"",y:y+""}),Zo(e.line1,{x1:o+"",y1:s+"",x2:a+"",y2:l+""}),t.delta1.x=a-n.cx,t.delta1.y=l-n.cy}),e.helper2.init(e.map,(g,p)=>{var m,v;c=c+g/e.scaleVal,u=u+p/e.scaleVal;const C=NS({...r,ctrlX:c,ctrlY:u});f=C.x,h=C.y;const y=o/8+a*3/8+c*3/8+f/8,b=s/8+l*3/8+u*3/8+h/8,S=Rpt(c,u,f,h);e.P3.style.top=u+"px",e.P3.style.left=c+"px",(m=e.currentArrow)==null||m.children[0].setAttribute("d",`M ${o} ${s} C ${a} ${l} ${c} ${u} ${f} ${h}`),(v=e.currentArrow)==null||v.children[1].setAttribute("d",`M ${S.x1} ${S.y1} L ${f} ${h} L ${S.x2} ${S.y2}`),Zo(e.currentArrow.children[2],{x:y+"",y:b+""}),Zo(e.line2,{x1:c+"",y1:u+"",x2:f+"",y2:h+""}),t.delta2.x=c-r.cx,t.delta2.y=u-r.cy})};function f3i(){this.linkSvgGroup.innerHTML="";for(let e=0;e<this.arrows.length;e++){const t=this.arrows[e];try{zpt(this,fs(t.from),fs(t.to),t,!0)}catch{}}this.nodes.appendChild(this.linkSvgGroup)}function h3i(e){if(!e)return;const t=e.children[2];Tpt(this,t,n=>{var r;const i=e.arrowObj,o=((r=n.textContent)==null?void 0:r.trim())||"";o===""?i.label=origin:i.label=o,n.remove(),o!==origin&&(t.innerHTML=i.label,this.linkDiv(),this.bus.fire("operation",{name:"finishEditArrowLabel",obj:i}))})}function g3i(){this.arrows=this.arrows.filter(e=>BH(e.from,this.nodeData)&&BH(e.to,this.nodeData))}const p3i=Object.freeze(Object.defineProperty({__proto__:null,createArrow:l3i,editArrowLabel:h3i,removeArrow:c3i,renderArrow:f3i,selectArrow:u3i,tidyArrow:g3i,unselectArrow:d3i},Symbol.toStringTag,{value:"Module"})),m3i=function(e){var t,n;if(e.length===0)throw new Error("No selected node.");if(e.length===1){const u=e[0].nodeObj,f=e[0].nodeObj.parent;if(!f)throw new Error("Can not select root node.");const h=f.children.findIndex(g=>u===g);return{parent:f.id,start:h,end:h}}let r=0;const i=e.map(u=>{let f=u.nodeObj;const h=[];for(;f.parent;){const g=f.parent,p=g.children,m=p==null?void 0:p.indexOf(f);f=g,h.unshift({node:f,index:m})}return h.length>r&&(r=h.length),h});let o=0;e:for(;o<r;o++){const u=(t=i[0][o])==null?void 0:t.node;for(let f=1;f<i.length;f++)if(((n=i[f][o])==null?void 0:n.node)!==u)break e}if(!o)throw new Error("Can not select root node.");const s=i.map(u=>u[o-1].index).sort(),a=s[0]||0,l=s[s.length-1]||0,c=i[0][o-1].node;if(!c.parent)throw new Error("Please select nodes in the same main topic.");return{parent:c.id,start:a,end:l}},v3i=function(e){const t=document.createElementNS("http://www.w3.org/2000/svg","g");return t.setAttribute("id",e),t},YFe=function(e,t){const n=document.createElementNS("http://www.w3.org/2000/svg","path");return Zo(n,{d:e,stroke:t||"#666",fill:"none","stroke-linecap":"round","stroke-width":"2"}),n},XFe=function(e,t,n,r,i){const o=document.createElementNS("http://www.w3.org/2000/svg","text");return Zo(o,{"text-anchor":r,x:t+"",y:n+"",fill:i||"#666"}),o.innerHTML=e,o},C3i=e=>fs(e).parentElement.parentElement,y3i=function({parent:e,start:t}){const n=fs(e),r=n.nodeObj;let i;return r.parent?i=n.closest("me-main").className:i=fs(r.children[t].id).closest("me-main").className,i},jpt=function(e,t){var n;const{id:r,text:i,parent:o,start:s,end:a}=t,l=e.nodes,c=fs(o).nodeObj,u=y3i(t);let f=1/0,h=0,g=0,p=0;for(let x=s;x<=a;x++){const E=(n=c.children)==null?void 0:n[x];if(!E)return e.removeSummary(r),null;const R=C3i(E.id),{offsetLeft:O,offsetTop:T}=g6(l,R),M=s===a?10:20;x===s&&(g=T+M),x===a&&(p=T+R.offsetHeight-M),O<f&&(f=O),R.offsetWidth+O>h&&(h=R.offsetWidth+O)}let m,v;const C=g+10,y=p+10,b=(C+y)/2,S=e.theme.cssVar["--color"];u===wu.LHS?(m=YFe(`M ${f+10} ${C} c -5 0 -10 5 -10 10 L ${f} ${y-10} c 0 5 5 10 10 10 M ${f} ${b} h -10`,S),v=XFe(i,f-20,b+6,"end",S)):(m=YFe(`M ${h-10} ${C} c 5 0 10 5 10 10 L ${h} ${y-10} c 0 5 -5 10 -10 10 M ${h} ${b} h 10`,S),v=XFe(i,h+20,b+6,"start",S));const w=v3i("s-"+r);return w.appendChild(m),w.appendChild(v),w.summaryObj=t,e.summarySvg.appendChild(w),w},b3i=function(){let e=[];this.currentNode?e=[this.currentNode]:this.currentNodes&&(e=this.currentNodes);const{parent:t,start:n,end:r}=m3i(e),i={id:Q_(),parent:t,start:n,end:r,text:"summary"},o=jpt(this,i);this.summaries.push(i),this.editSummary(o),this.bus.fire("operation",{name:"createSummary",obj:i})},S3i=function(e){var t;const n=this.summaries.findIndex(r=>r.id===e);n>-1&&(this.summaries.splice(n,1),(t=document.querySelector("#s-"+e))==null||t.remove()),this.bus.fire("operation",{name:"removeSummary",obj:{id:e}})},w3i=function(e){const t=e.children[1].getBBox(),n=6,r=3,i=document.createElementNS("http://www.w3.org/2000/svg","rect");Zo(i,{x:t.x-n+"",y:t.y-n+"",width:t.width+n*2+"",height:t.height+n*2+"",rx:r+"",stroke:this.theme.cssVar["--selected"]||"#4dc4ff","stroke-width":"2",fill:"none"}),e.appendChild(i),this.currentSummary=e},x3i=function(){var e,t;(t=(e=this.currentSummary)==null?void 0:e.querySelector("rect"))==null||t.remove(),this.currentSummary=null},E3i=function(){this.summarySvg.innerHTML="",this.summaries.forEach(e=>{try{jpt(this,e)}catch{}}),this.nodes.insertAdjacentElement("beforeend",this.summarySvg)},R3i=function(e){if(!e)return;const t=e.childNodes[1];Tpt(this,t,n=>{var r;const i=e.summaryObj,o=((r=n.textContent)==null?void 0:r.trim())||"";o===""?i.text=origin:i.text=o,n.remove(),o!==origin&&(t.innerHTML=i.text,this.linkDiv(),this.bus.fire("operation",{name:"finishEditSummary",obj:i}))})},$3i=Object.freeze(Object.defineProperty({__proto__:null,createSummary:b3i,editSummary:R3i,removeSummary:S3i,renderSummary:E3i,selectSummary:w3i,unselectSummary:x3i},Symbol.toStringTag,{value:"Module"})),xd="http://www.w3.org/2000/svg";function O3i(e,t){const n=document.createElementNS(xd,"svg");return Zo(n,{version:"1.1",xmlns:xd,height:e,width:t}),n}function T3i(e,t){return(parseInt(e)-parseInt(t))/2}function I3i(e,t,n,r){const i=document.createElementNS(xd,"g");let o="";return e.text?o=e.text.textContent:o=e.childNodes[0].textContent,o.split(`
|
||
`).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,o)=>{const s=new Image;s.setAttribute("crossOrigin","anonymous"),s.onload=()=>{const a=document.createElement("canvas");a.width=s.width,a.height=s.height,a.getContext("2d").drawImage(s,0,0),a.toBlob(i,"image/png",1)},s.src=r,s.onerror=o})},B3i=Object.freeze(Object.defineProperty({__proto__:null,exportPng:z3i,exportSvg:k3i},Symbol.toStringTag,{value:"Module"}));function H3i(e,t){return async function(...n){const r=this.before[t];r&&!await r.apply(this,n)||e.apply(this,n)}}const QFe=Object.keys(Npt),Vpt={};for(let e=0;e<QFe.length;e++){const t=QFe[e];Vpt[t]=H3i(Npt[t],t)}const j3i={getObjById:BH,generateNewObj:F2i,layout:z2i,linkDiv:K2i,editTopic:U2i,createWrapper:j2i,createParent:V2i,createChildren:G2i,createTopic:W2i,findEle:fs,changeTheme:v4i,...o3i,...Vpt,...p3i,...$3i,...B3i,init(e){if(!e||!e.nodeData)return new Error("MindElixir: `data` is required");e.direction!==void 0&&(this.direction=e.direction),this.changeTheme(e.theme||this.theme,!1),this.nodeData=e.nodeData,h6(this.nodeData),this.arrows=e.arrows||[],this.summaries=e.summaries||[],this.tidyArrow(),this.toolBar&&c4i(this),this.keypress&&t4i(this),this.editable&&m4i(this),this.contextMenu&&this.disposable.push(Y2i(this,this.contextMenuOption)),this.draggable&&i4i(this),this.allowUndo&&s4i(this),this.toCenter(),this.layout(),this.linkDiv()},destroy(){var e;this.disposable.forEach(t=>t()),this.mindElixirBox&&(this.mindElixirBox.innerHTML=""),this.mindElixirBox=void 0,this.nodeData=void 0,this.arrows=void 0,this.summaries=void 0,this.currentArrow=void 0,this.currentNode=void 0,this.currentNodes=void 0,this.currentSummary=void 0,this.waitCopy=void 0,this.theme=void 0,this.direction=void 0,this.bus=void 0,this.container=void 0,this.map=void 0,this.lines=void 0,this.linkController=void 0,this.linkSvgGroup=void 0,this.P2=void 0,this.P3=void 0,this.line1=void 0,this.line2=void 0,this.nodes=void 0,(e=this.selection)==null||e.destroy(),this.selection=void 0}};function V3i({pT:e,pL:t,pW:n,pH:r,cT:i,cL:o,cW:s,cH:a,direction:l,containerHeight:c}){let u=t+n/2;const f=e+r/2;let h;l===wu.LHS?h=o+s:h=o;const g=i+a/2,p=(1-Math.abs(g-f)/c)*.25*(n/2);return l===wu.LHS?u=u-n/10-p:u=u+n/10+p,`M ${u} ${f} Q ${u} ${g} ${h} ${g}`}function G3i({pT:e,pL:t,pW:n,pH:r,cT:i,cL:o,cW:s,cH:a,direction:l,isFirst:c}){const u=parseInt(this.mindElixirBox.style.getPropertyValue("--gap"));let f=0,h=0;c?f=e+r/2:f=e+r;const g=i+a;let p=0,m=0,v=0;const C=Math.abs(f-g)/300*u;return l===wu.LHS?(v=t,p=v+u,m=v-u,h=o+u,`M ${p} ${f} C ${v} ${f} ${v+C} ${g} ${m} ${g} H ${h}`):(v=t+n,p=v-u,m=v+u,h=o+s-u,`M ${p} ${f} C ${v} ${f} ${v-C} ${g} ${m} ${g} H ${h}`)}const W3i="4.3.6",UR=document;function Ed({el:e,direction:t,locale:n,draggable:r,editable:i,contextMenu:o,contextMenuOption:s,toolBar:a,keypress:l,mouseSelectionButton:c,selectionContainer:u,before:f,newTopicName:h,allowUndo:g,generateMainBranch:p,generateSubBranch:m,overflowHidden:v,theme:C}){let y=null;const b=Object.prototype.toString.call(e);if(b==="[object HTMLDivElement]"?y=e:b==="[object String]"&&(y=document.querySelector(e)),!y)throw new Error("MindElixir: el is not a valid element");y.className+=" mind-elixir",y.innerHTML="",this.mindElixirBox=y,this.disposable=[],this.before=f||{},this.locale=n||"en",this.contextMenuOption=s,this.contextMenu=o===void 0?!0:o,this.toolBar=a===void 0?!0:a,this.keypress=l===void 0?!0:l,this.mouseSelectionButton=c||0,this.direction=typeof t=="number"?t:1,this.draggable=r===void 0?!0:r,this.newTopicName=h||"new node",this.editable=i===void 0?!0:i,this.allowUndo=g===void 0?!1:g,this.currentNode=null,this.currentArrow=null,this.scaleVal=1,this.tempDirection=null,this.generateMainBranch=p||V3i,this.generateSubBranch=m||G3i,this.overflowHidden=v||!1,this.bus=k2i.create(),this.container=UR.createElement("div"),this.selectionContainer=u||this.container,this.container.className="map-container";const S=window.matchMedia("(prefers-color-scheme: dark)");this.theme=C||(S.matches?Ept:xpt);const w=UR.createElement("div");w.className="map-canvas",this.map=w,this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.nodes=UR.createElement("me-nodes"),this.nodes.className="main-node-container",this.lines=O$("lines"),this.summarySvg=O$("summary"),this.linkController=O$("linkcontroller"),this.P2=UR.createElement("div"),this.P3=UR.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=LFe(),this.line2=LFe(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=O$("topiclinks"),this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":N2i(this)}Ed.prototype=j3i;Ed.LEFT=zf;Ed.RIGHT=a4;Ed.SIDE=dZ;Ed.THEME=xpt;Ed.DARK_THEME=Ept;Ed.version=W3i;Ed.E=fs;Ed.new=e=>({nodeData:{id:Q_(),topic:e||"new topic",children:[]}});Ed.dragMoveHelper=Qu;const U3i={direction:Ed.SIDE,draggable:!0,contextMenu:!0,toolBar:!0,nodeMenu:!0,keypress:!0,locale:"zh_CN",theme:{name:"Latte",palette:["#dd7878","#ea76cb","#8839ef","#e64553","#fe640b","#df8e1d","#40a02b","#209fb5","#1e66f5","#7287fd"],cssVar:{"--main-color":"#444446","--main-bgcolor":"#ffffff","--color":"#777777","--bgcolor":"#f6f6f6","--panel-color":"#444446","--panel-bgcolor":"#ffffff","--panel-border-color":"#eaeaea"}}},ZFe=["#FFFFFF","#F5F5F5","#2196F3","#1976D2","#4CAF50","#388E3C","#FF9800","#F57C00","#F44336","#D32F2F","#9C27B0","#7B1FA2","#424242","#757575","#FFEB3B","#FBC02D"],q3i=({mind:e})=>{const[t,n]=d.useState(!1),[r,i]=d.useState(""),[o,s]=d.useState(""),[a,l]=d.useState(""),[c,u]=d.useState(!1),[f,h]=d.useState("POSTURL"),[g,p]=d.useState(""),[m,v]=d.useState(""),C=d.useRef(null),{data:y,isLoading:b}=an.post.findFirst.useQuery({where:{id:m}},{enabled:!!m});d.useEffect(()=>{f==="POSTURL"&&p(`/course/${y==null?void 0:y.courseId}/detail/${y==null?void 0:y.id}`),e.reshapeNode(e.currentNode,{hyperLink:`/course/${y==null?void 0:y.courseId}/detail/${y==null?void 0:y.id}`})},[m,y,b,f]),d.useEffect(()=>{const R=T=>{n(!0);const M=T.style||{};i(M.color||""),s(M.background||""),l(M.fontSize||"24"),u(M.fontWeight==="bold"),p(T.hyperLink||"")},O=()=>{n(!1)};e.bus.addListener("selectNode",R),e.bus.addListener("unselectNode",O)},[e]),d.useEffect(()=>{const R=T=>{n(!0);const M=T.style||{};i(M.color||""),s(M.background||""),l(M.fontSize||"24"),u(M.fontWeight==="bold"),p(T.hyperLink||"")},O=()=>{n(!1)};e.bus.addListener("selectNode",R),e.bus.addListener("unselectNode",O)},[e]),d.useEffect(()=>{C.current&&e.container&&e.container.appendChild(C.current)},[e.container]);const S=(R,O)=>{R==="font"?i(O):s(O);const T={style:{}};R==="font"?T.style.color=O:T.style.background=O,e.reshapeNode(e.currentNode,T)},w=R=>{l(R),e.reshapeNode(e.currentNode,{style:{fontSize:R}})},x=()=>{const R=c?"":"bold";u(!c),e.reshapeNode(e.currentNode,{style:{fontWeight:R}})},E=R=>{const O=R.target.value;p(O),e.reshapeNode(e.currentNode,{hyperLink:O})};return H.jsx("div",{className:`node-menu-container absolute right-2 top-2 rounded-lg bg-slate-200 shadow-xl ring-2 ring-white transition-all duration-300 ${t?"opacity-100 translate-y-0":"opacity-0 translate-y-4 pointer-events-none"}`,ref:C,children:H.jsxs("div",{className:"p-5 space-y-6",children:[H.jsxs("div",{className:"space-y-2",children:[H.jsx("h3",{className:"text-sm font-medium text-gray-600",children:"文字样式"}),H.jsxs("div",{className:"flex gap-3 items-center justify-between",children:[H.jsx(Qf,{value:a,onChange:w,prefix:H.jsx(NYe,{className:"mr-2"}),className:"w-1/2",options:[{value:"12",label:"12"},{value:"14",label:"14"},{value:"16",label:"16"},{value:"18",label:"18"},{value:"20",label:"20"},{value:"24",label:"24"},{value:"28",label:"28"},{value:"32",label:"32"}]}),H.jsx(Cr,{type:c?"primary":"default",onClick:x,className:"w-1/2",icon:H.jsx(CYe,{}),children:"加粗"})]})]}),H.jsxs("div",{className:"space-y-3",children:[H.jsx("h3",{className:"text-sm font-medium text-gray-600",children:"颜色设置"}),H.jsxs("div",{className:"space-y-2",children:[H.jsx("h4",{className:"text-xs font-medium text-gray-500",children:"文字颜色"}),H.jsx("div",{className:"grid grid-cols-8 gap-2 p-2 bg-gray-50 rounded-lg",children:ZFe.map(R=>H.jsx("div",{className:`w-6 h-6 rounded-full cursor-pointer hover:scale-105 transition-transform outline outline-2 outline-offset-1 ${r===R?"outline-blue-500":"outline-transparent"}`,style:{backgroundColor:R},onClick:()=>{S("font",R)}},`font-${R}`))})]}),H.jsxs("div",{className:"space-y-2",children:[H.jsx("h4",{className:"text-xs font-medium text-gray-500",children:"背景颜色"}),H.jsx("div",{className:"grid grid-cols-8 gap-2 p-2 bg-gray-50 rounded-lg",children:ZFe.map(R=>H.jsx("div",{className:`w-6 h-6 rounded-full cursor-pointer hover:scale-105 transition-transform outline outline-2 outline-offset-1 ${o===R?"outline-blue-500":"outline-transparent"}`,style:{backgroundColor:R},onClick:()=>{S("background",R)}},`bg-${R}`))})]})]}),H.jsxs("div",{className:"text-sm font-medium text-gray-600 flex items-center gap-2",children:[f==="URL"?"关联链接":"关联课时",H.jsx(Cr,{type:"text",className:" hover:bg-gray-400 active:bg-gray-300 rounded-md text-gray-600 border transition-colors",size:"small",icon:H.jsx(cB,{}),onClick:()=>h(R=>R==="POSTURL"?"URL":"POSTURL")})]}),H.jsxs("div",{className:"space-y-1",children:[f==="POSTURL"?H.jsx(D2i,{onChange:R=>{typeof R=="string"&&v(R)},params:{where:{type:vo.LECTURE}}}):H.jsx(Ai,{placeholder:"例如:https://example.com",value:g,onChange:E,addonBefore:H.jsx(HYe,{})}),f==="URL"&&g&&!/^(https?:\/\/\S+|\/|\.\/|\.\.\/)?\S+$/.test(g)&&H.jsx("p",{className:"text-xs text-red-500",children:"请输入有效的URL地址"})]})]})})};function K3i({id:e}){const t=d.useRef(null),{post:n,isLoading:r}=d.useContext(sv),[i,o]=d.useState(null),{isAuthenticated:s,user:a,hasSomePermissions:l}=Wi(),{read:c}=Sge(),u=d.useMemo(()=>{var b;const y=s&&(a==null?void 0:a.id)===((b=n==null?void 0:n.author)==null?void 0:b.id);return!!e||y||l(Ki.MANAGE_ANY_POST)},[a]),f=Gs(),{create:h,update:g}=My(),{data:p}=an.taxonomy.getAll.useQuery({type:ri.COURSE}),{handleFileUpload:m}=k1e(),[v]=Rn.useForm();d.useEffect(()=>{n!=null&&n.id&&e&&c.mutateAsync({data:{visitorId:(a==null?void 0:a.id)||null,postId:n==null?void 0:n.id,type:fz.READED}})},[n]),d.useEffect(()=>{var y,b;if(n&&v&&i&&e){i.refresh(n.meta);const S=(y=(n==null?void 0:n.depts)||[])==null?void 0:y.map(x=>x.id),w={title:n.title,deptIds:S};(b=n.terms)==null||b.forEach(x=>{w[x.taxonomyId]=x.id}),v.setFieldsValue(w)}},[n,v,i,e]),d.useEffect(()=>{if(!t.current)return;const y=new Ed({...U3i,el:t.current,before:{beginEdit(){return u}},draggable:u,contextMenu:u,toolBar:u,nodeMenu:u,keypress:u});y.init(Ed.new("新思维导图")),t.current.hidden=!0,o(y)},[u]),d.useEffect(()=>{var y;(!e||n)&&i&&(t.current.hidden=!1,i.toCenter(),(y=n==null?void 0:n.meta)!=null&&y.nodeData&&i.refresh(n==null?void 0:n.meta))},[e,n,i]);const C=async()=>{if(!i)return;const y=v.getFieldsValue(),b=await(i==null?void 0:i.exportPng());m(b,async S=>{const w=p.map(O=>y[O.id]).filter(O=>O),x=(y==null?void 0:y.deptIds)||[],{theme:E,...R}=i.getData();try{if(n&&e){const O={where:{id:e},data:{title:R.nodeData.topic,meta:{...R,thumbnail:S.compressedUrl},terms:{set:w.map(T=>({id:T}))},depts:{set:x.map(T=>({id:T}))},updatedAt:new Date}};await g.mutateAsync(O),sl.success("更新成功")}else{const O={type:vo.PATH,title:R.nodeData.topic,meta:{...R,thumbnail:S.compressedUrl},terms:{connect:w.map(M=>({id:M}))},depts:{connect:x.map(M=>({id:M}))},updatedAt:new Date},T=await h.mutateAsync({data:O});f(`/path/editor/${T.id}`,{replace:!0}),sl.success("创建成功")}}catch(O){throw sl.error("保存失败"),O}console.log(S)},S=>{},`mind-thumb-${new Date().toString()}`)};return d.useEffect(()=>{t.current.style.height=`${Math.floor(window.innerHeight-271)}px`},[]),H.jsxs("div",{className:" flex-col flex ",children:[u&&p&&H.jsx(Rn,{form:v,className:" bg-white p-4 border-b",children:H.jsxs("div",{className:"flex items-center justify-between gap-4",children:[H.jsxs("div",{className:"flex items-center gap-4",children:[p.map((y,b)=>H.jsx(Rn.Item,{name:y.id,noStyle:!0,children:H.jsx(xM,{disabled:!u,className:" w-48",placeholder:`请选择${y.name}`,taxonomyId:y.id})},y.id)),H.jsx(Rn.Item,{name:"deptIds",noStyle:!0,children:H.jsx(bu,{disabled:!u,className:"w-96",placeholder:"请选择制作单位",multiple:!0})}),H.jsx(zJe,{})]}),H.jsx("div",{children:u&&H.jsx(Cr,{ghost:!0,type:"primary",icon:H.jsx(UV,{}),onSubmit:y=>y.preventDefault(),onClick:C,children:e?"更新":"保存"})})]})}),H.jsx("div",{ref:t,className:"w-full",onContextMenu:y=>y.preventDefault()}),u&&i&&H.jsx(q3i,{mind:i}),r&&H.jsx("div",{className:"py-64 justify-center flex",style:{height:"calc(100vh - 271px)"},children:H.jsx(iv,{size:"large"})}),!n&&e&&!r&&H.jsx("div",{className:"py-64",style:{height:"calc(100vh - 271px)"},children:H.jsx(Wp,{})})]})}function Y3i(){const{id:e}=Z0();return H.jsxs(WXe,{editId:e,children:[H.jsx(K3i,{id:e}),";"]})}function X3i(){const{user:e}=Wi(),{searchCondition:t,termsCondition:n}=ca();return H.jsx(H.Fragment,{children:H.jsx(x3,{renderItem:r=>H.jsx(mM,{post:r}),params:{pageSize:12,where:{type:vo.COURSE,students:{some:{id:e==null?void 0:e.id}},...n,...t}},cols:4})})}function Q3i(){const{setSearchMode:e}=ca();return d.useEffect(()=>{e(vo.COURSE)},[e]),H.jsx(_b,{children:H.jsx(X3i,{})})}function Z3i(){const{user:e}=Wi(),{searchCondition:t,termsCondition:n}=ca();return H.jsx(H.Fragment,{children:H.jsx(x3,{renderItem:r=>H.jsx(mM,{post:r}),params:{pageSize:12,where:{type:vo.COURSE,authorId:e.id,...n,...t}},cols:4})})}function J3i(){const{setSearchMode:e}=ca();return d.useEffect(()=>{e(vo.COURSE)},[e]),H.jsx(_b,{children:H.jsx(Z3i,{})})}function e6i(){const{user:e}=Wi(),{searchCondition:t,termsCondition:n}=ca();return H.jsx(H.Fragment,{children:H.jsx(x3,{renderItem:r=>H.jsx(pM,{post:r}),params:{pageSize:12,where:{type:vo.PATH,students:{some:{id:e==null?void 0:e.id}},...n,...t}},cols:4})})}function t6i(){const{setSearchMode:e}=ca();return d.useEffect(()=>{e(vo.PATH)},[e]),H.jsx(_b,{children:H.jsx(e6i,{})})}const n6i={[vo.COURSE]:mM,[vo.PATH]:pM};function r6i(){const{searchCondition:e,termsCondition:t,searchMode:n}=ca();return H.jsx(H.Fragment,{children:H.jsx(x3,{renderItem:r=>{const i=n6i[r.type]||Mme;return H.jsx(i,{post:r})},params:{pageSize:12,where:{type:n==="both"?void 0:n,...t,...e}},cols:4})})}function i6i(){const{setShowSearchMode:e,setSearchValue:t}=ca();return d.useEffect(()=>(e(!0),()=>{e(!1),t("")}),[e]),H.jsx(_b,{children:H.jsx(r6i,{})})}function o6i(){const{user:e}=Wi(),{searchCondition:t,termsCondition:n}=ca();return H.jsx(H.Fragment,{children:H.jsx(x3,{renderItem:r=>H.jsx(pM,{post:r}),params:{pageSize:12,where:{type:vo.PATH,authorId:e.id,...n,...t}},cols:4})})}function s6i(){const{setSearchMode:e}=ca();return d.useEffect(()=>{e(vo.PATH)},[e]),H.jsx(_b,{children:H.jsx(o6i,{})})}const a6i=[{path:"/",errorElement:H.jsx(iRt,{}),handle:{crumb(){return H.jsx(h8,{to:"/",children:"主页"})}},children:[{element:H.jsx(sti,{}),children:[{index:!0,element:H.jsx(x_n,{})},{path:"path",children:[{index:!0,element:H.jsx(hti,{})},{path:"editor/:id?",element:H.jsx(qu,{children:H.jsx(Y3i,{})})}]},{path:"courses",element:H.jsx(dti,{})},{path:"my-path",element:H.jsx(qu,{children:H.jsx(t6i,{})})},{path:"my-duty-path",element:H.jsx(qu,{children:H.jsx(s6i,{})})},{path:"my-duty",element:H.jsx(qu,{children:H.jsx(J3i,{})})},{path:"my-learning",element:H.jsx(qu,{children:H.jsx(Q3i,{})})},{path:"search",element:H.jsx(i6i,{})},{path:"course/:id?/detail/:lectureId?",element:H.jsx(PVn,{})}]},{path:"course",children:[{path:":id?/editor",element:H.jsx(qu,{children:H.jsx(Xei,{})}),children:[{index:!0,element:H.jsx(qu,{children:H.jsx(oUr,{})})},{path:"content",element:H.jsx(qu,{children:H.jsx(Uei,{})})}]}]},wpt]},{path:"/login",breadcrumb:"登录",element:H.jsx(a_n,{})}],l6i=hyt(a6i),c6i=d.createContext(null);function u6i({children:e}){const{token:t}=Wm.useToken(),n=i=>{for(let o in i)document.documentElement.style.setProperty(o,i[o])},r=d.useMemo(()=>({"--color-primary":t.colorPrimary,"--color-primary-active":t.colorPrimaryActive,"--color-primary-hover":t.colorPrimaryHover,"--color-bg-primary-hover":t.colorPrimaryBgHover,"--color-text-secondary":t.colorTextSecondary,"--color-text-tertiary":t.colorTextTertiary,"--color-bg-text-hover":t.colorBgTextHover,"--color-bg-container":t.colorBgContainer,"--color-bg-layout":t.colorBgLayout,"--color-bg-mask":t.colorBgMask,"--color-bg-primary":t.colorPrimary,"--color-text":t.colorText,"--color-text-heading":t.colorTextHeading,"--color-text-label":t.colorTextLabel,"--color-text-lightsolid":t.colorTextLightSolid,"--color-text-quaternary":t.colorTextQuaternary,"--color-text-placeholder":t.colorTextPlaceholder,"--color-text-description":t.colorTextDescription,"--color-border":t.colorBorder,"--color-border-secondary":t.colorBorderSecondary,"--color-border-primary":t.colorPrimaryBorder,"--color-text-primary":t.colorPrimaryText,"--color-error":t.colorError,"--color-warning":t.colorWarning,"--color-info":t.colorInfo,"--color-success":t.colorSuccess,"--color-error-bg":t.colorErrorBg,"--color-warning-bg":t.colorWarningBg,"--color-info-bg":t.colorInfoBg,"--color-success-bg":t.colorSuccessBg,"--color-link":t.colorLink,"--color-highlight":t.colorHighlight,"--color-fill-quaternary":t.colorFillQuaternary,"--color-fill-tertiary":t.colorFillTertiary,"--color-fill-secondary":t.colorFillSecondary}),[t]);return d.useEffect(()=>{n(r)},[r]),H.jsx(c6i.Provider,{value:{},children:e})}var hZ={},gZ={};Object.defineProperty(gZ,"__esModule",{value:!0});gZ.default=void 0;var d6i={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};gZ.default=d6i;var pZ={},J_={},mZ={},f6i=pe.default;Object.defineProperty(mZ,"__esModule",{value:!0});mZ.default=void 0;var JFe=f6i(Eu),h6i=_M,g6i=(0,JFe.default)((0,JFe.default)({},h6i.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});mZ.default=g6i;var eA={};Object.defineProperty(eA,"__esModule",{value:!0});eA.default=void 0;const p6i={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};eA.default=p6i;var Gpt=pe.default;Object.defineProperty(J_,"__esModule",{value:!0});J_.default=void 0;var m6i=Gpt(mZ),v6i=Gpt(eA);const Wpt={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},m6i.default),timePickerLocale:Object.assign({},v6i.default)};Wpt.lang.ok="确定";J_.default=Wpt;var C6i=pe.default;Object.defineProperty(pZ,"__esModule",{value:!0});pZ.default=void 0;var y6i=C6i(J_);pZ.default=y6i.default;var vZ=pe.default;Object.defineProperty(hZ,"__esModule",{value:!0});hZ.default=void 0;var b6i=vZ(gZ),S6i=vZ(pZ),w6i=vZ(J_),x6i=vZ(eA);const ku="${label}不是一个有效的${type}",E6i={locale:"zh-cn",Pagination:b6i.default,DatePicker:w6i.default,TimePicker:x6i.default,Calendar:S6i.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:ku,method:ku,array:ku,object:ku,number:ku,date:ku,boolean:ku,integer:ku,float:ku,regexp:ku,email:ku,url:ku,hex:ku},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};hZ.default=E6i;var R6i=hZ;const $6i=Bm(R6i);var O6i={exports:{}};(function(e,t){(function(n,r){e.exports=r(gge)})(Jo,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,a){return a==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,a){var l=100*s+a;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(O6i);_C.locale("zh-cn");function T6i(){return H.jsxs(H.Fragment,{children:[H.jsx(nRt,{children:H.jsx(rRt,{children:H.jsx(Wg,{locale:$6i,theme:{algorithm:Wm.defaultAlgorithm,token:{colorPrimary:"#0088E8"},components:{}},children:H.jsx(u6i,{children:H.jsx(MWe,{children:H.jsx(Syt,{router:l6i})})})})})}),H.jsx(hVn,{})]})}var I6i="ROOT_NODE_ID",Toe=0,M6i=class{constructor(e,t,n,r,i,o){this.nextId=0,this.rowCountReady=!1,this.allNodesMap={},this.rootNode=e,this.gos=t,this.eventService=n,this.funcColsService=r,this.beans=o,this.selectionService=i,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=I6i,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[]}getCopyOfNodesMap(){return jQ(this.allNodesMap)}getRowNode(e){return this.allNodesMap[e]}setRowData(e){if(typeof e=="string"){rt("rowData must be an array.");return}this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e);const t=this.rootNode,n=this.rootNode.sibling;t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.nextId=0,this.allNodesMap={},e?t.allLeafChildren=e.map((r,i)=>this.createNode(r,this.rootNode,Toe,i)):(t.allLeafChildren=[],t.childrenAfterGroup=[]),n&&(n.childrenAfterFilter=t.childrenAfterFilter,n.childrenAfterGroup=t.childrenAfterGroup,n.childrenAfterAggFilter=t.childrenAfterAggFilter,n.childrenAfterSort=t.childrenAfterSort,n.childrenMapped=t.childrenMapped,n.allLeafChildren=t.allLeafChildren)}updateRowData(e){this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e.add);const t={rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},n=[];return this.executeRemove(e,t,n),this.executeUpdate(e,t,n),this.executeAdd(e,t),this.updateSelection(n,"rowDataChanged"),t}updateRowOrderFromRowData(e){const t=this.rootNode.allLeafChildren,n=(t==null?void 0:t.length)??0,r=new Map;let i=-1,o=-1;for(let s=0;s<n;++s){const a=t[s],l=a.data;l!==e[s]&&(o<0&&(i=s),o=s,r.set(l,a))}if(i<0)return!1;for(let s=i;s<=o;++s){const a=r.get(e[s]);a!==void 0&&(t[s]=a,a.sourceRowIndex=s)}return!0}isRowCountReady(){return this.rowCountReady}dispatchRowDataUpdateStartedEvent(e){this.eventService.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e!=null&&e.length?e[0]:null})}updateSelection(e,t){const n=e.length>0;n&&this.selectionService.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),this.selectionService.updateGroupsFromChildrenSelections(t),n&&this.eventService.dispatchEvent({type:"selectionChanged",source:t})}executeAdd(e,t){const n=e.add;if(Es(n))return;const r=this.rootNode.allLeafChildren;let i=r.length;if(typeof e.addIndex=="number"&&(i=this.sanitizeAddIndex(e.addIndex),i>0&&this.gos.get("treeData")))for(let l=0;l<r.length;l++){const c=r[l];if((c==null?void 0:c.rowIndex)==i-1){i=l+1;break}}const o=n.map((a,l)=>this.createNode(a,this.rootNode,Toe,i+l));if(i<r.length){const a=r.slice(0,i),l=r.slice(i,r.length),c=a.length+o.length;for(let u=0,f=l.length;u<f;++u)l[u].sourceRowIndex=c+u;this.rootNode.allLeafChildren=[...a,...o,...l],t.rowsInserted=!0}else this.rootNode.allLeafChildren=r.concat(o);const s=this.rootNode.sibling;s&&(s.allLeafChildren=r),t.rowNodeTransaction.add=o}sanitizeAddIndex(e){var n;const t=((n=this.rootNode.allLeafChildren)==null?void 0:n.length)??0;return e<0||e>=t||Number.isNaN(e)?t:Math.ceil(e)}executeRemove(e,{rowNodeTransaction:t},n){var s,a;const{remove:r}=e;if(Es(r))return;const i={};r.forEach(l=>{const c=this.lookupRowNode(l);c&&(c.isSelected()&&n.push(c),c.clearRowTopAndRowIndex(),i[c.id]=!0,delete this.allNodesMap[c.id],t.remove.push(c))}),this.rootNode.allLeafChildren=((s=this.rootNode.allLeafChildren)==null?void 0:s.filter(l=>!i[l.id]))??null,(a=this.rootNode.allLeafChildren)==null||a.forEach((l,c)=>{l.sourceRowIndex=c});const o=this.rootNode.sibling;o&&(o.allLeafChildren=this.rootNode.allLeafChildren)}executeUpdate(e,{rowNodeTransaction:t},n){const{update:r}=e;Es(r)||r.forEach(i=>{const o=this.lookupRowNode(i);o&&(o.updateData(i),!o.selectable&&o.isSelected()&&n.push(o),this.setMasterForRow(o,i,Toe,!1),t.update.push(o))})}lookupRowNode(e){var r;const t=U0(this.gos);let n;if(t){const i=t({data:e,level:0});if(n=this.allNodesMap[i],!n)return Mr(`could not find row id=${i}, data item was not found for this id`),null}else if(n=(r=this.rootNode.allLeafChildren)==null?void 0:r.find(i=>i.data===e),!n)return Mr("could not find data item as object was not found",e),Mr("Consider using getRowId to help the Grid find matching row data"),null;return n||null}createNode(e,t,n,r){const i=new vu(this.beans);return i.sourceRowIndex=r,i.group=!1,this.setMasterForRow(i,e,n,!0),t&&(i.parent=t),i.level=n,i.setDataAndId(e,this.nextId.toString()),this.allNodesMap[i.id]&&rt(`duplicate node id '${i.id}' detected from getRowId callback, this could cause issues in your grid.`),this.allNodesMap[i.id]=i,this.nextId++,i}setMasterForRow(e,t,n,r){if(this.gos.get("treeData"))e.setMaster(!1),r&&(e.expanded=!1);else{if(this.gos.get("masterDetail")){const s=this.gos.get("isRowMaster");s?e.setMaster(s(t)):e.setMaster(!0)}else e.setMaster(!1);if(r){const s=this.funcColsService.getRowGroupColumns(),a=s?s.length:0,l=n+a;e.expanded=e.master?this.isExpanded(l):!1}}}isExpanded(e){const t=this.gos.get("groupDefaultExpanded");return t===-1?!0:e<t}},P6i=class extends ct{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=_a(this.onRowHeightChanged.bind(this),100),this.rowsToDisplay=[],this.hasStarted=!1,this.shouldSkipSettingDataOnStart=!1,this.isRefreshingModel=!1,this.rowCountReady=!1}wireBeans(e){this.beans=e,this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.selectionService=e.selectionService,this.valueCache=e.valueCache,this.environment=e.environment,this.filterStage=e.filterStage,this.sortStage=e.sortStage,this.flattenStage=e.flattenStage,this.groupStage=e.groupStage,this.aggregationStage=e.aggregationStage,this.pivotStage=e.pivotStage,this.filterAggregatesStage=e.filterAggregatesStage}postConstruct(){const e=this.refreshModel.bind(this,{step:ti.EVERYTHING}),t=!this.gos.get("suppressAnimationFrame"),n=this.refreshModel.bind(this,{step:ti.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:t});this.addManagedEventListeners({newColumnsLoaded:n,columnRowGroupChanged:e,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:ti.PIVOT}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:e,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new vu(this.beans),this.nodeManager=new M6i(this.rootNode,this.gos,this.eventService,this.funcColsService,this.selectionService,this.beans)}addPropertyListeners(){const e=new Set(["treeData","masterDetail"]),t=new Set(["groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType"]),n=new Set(["excludeChildrenWhenTreeDataFiltering"]),r=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),i=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","groupIncludeTotalFooter","suppressAggFilteredOnly","grandTotalRow"]),o=new Set(["postSortRows","groupDisplayType","accentedSort"]),s=new Set([]),a=new Set(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter","groupTotalRow"]),l=[...e,...t,...n,...r,...r,...i,...o,...s,...a];this.addManagedPropertyListeners(l,c=>{var h;const u=(h=c.changeSet)==null?void 0:h.properties;if(!u)return;const f=g=>u.some(p=>g.has(p));if(f(e)){this.setRowData(this.rootNode.allLeafChildren.map(g=>g.data));return}if(f(t)){this.refreshModel({step:ti.EVERYTHING});return}if(f(n)){this.refreshModel({step:ti.FILTER});return}if(f(r)){this.refreshModel({step:ti.PIVOT});return}if(f(i)){this.refreshModel({step:ti.AGGREGATE});return}if(f(o)){this.refreshModel({step:ti.SORT});return}if(f(s)){this.refreshModel({step:ti.FILTER_AGGREGATES});return}f(a)&&this.refreshModel({step:ti.MAP})}),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.hasStarted=!0,this.shouldSkipSettingDataOnStart?this.dispatchUpdateEventsAndRefresh():this.setInitialData()}setInitialData(){const e=this.gos.get("rowData");e&&(this.shouldSkipSettingDataOnStart=!0,this.setRowData(e))}ensureRowHeightsValid(e,t,n,r){let i,o=!1;do{i=!1;const s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,n),c=Math.min(a,r);for(let u=l;u<=c;u++){const f=this.getRow(u);if(f.rowHeightEstimated){const h=kl(this.gos,f);f.setRowHeight(h.height),i=!0,o=!0}}i&&this.setRowTopAndRowIndex()}while(i);return o}setRowTopAndRowIndex(){const e=this.environment.getDefaultRowHeight();let t=0;const n=new Set,r=La(this.gos,"normal");for(let i=0;i<this.rowsToDisplay.length;i++){const o=this.rowsToDisplay[i];if(o.id!=null&&n.add(o.id),o.rowHeight==null){const s=kl(this.gos,o,r,e);o.setRowHeight(s.height,s.estimated)}o.setRowTop(t),o.setRowIndex(i),t+=o.rowHeight}return n}clearRowTopAndRowIndex(e,t){const n=e.isActive(),r=o=>{o&&o.id!=null&&!t.has(o.id)&&o.clearRowTopAndRowIndex()},i=o=>{if(r(o),r(o.detailNode),r(o.sibling),o.hasChildren()&&o.childrenAfterGroup){const s=o.level==-1;n&&!s&&!o.expanded||o.childrenAfterGroup.forEach(i)}};i(this.rootNode)}ensureRowsAtPixel(e,t,n=0){const r=this.getRowIndexAtPixel(t),i=this.getRow(r),o=!this.gos.get("suppressAnimationFrame");if(i===e[0])return!1;const s=this.rootNode.allLeafChildren;return e.forEach(a=>{rl(s,a)}),e.forEach((a,l)=>{Ex(s,a,Math.max(r+n,0)+l)}),e.forEach((a,l)=>{a.sourceRowIndex=l}),this.refreshModel({step:ti.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:o,rowNodesOrderChanged:!0}),!0}highlightRowAtPixel(e,t){const n=t!=null?this.getRowIndexAtPixel(t):null,r=n!=null?this.getRow(n):null;if(!r||!e||t==null){this.clearHighlightedRow();return}const i=this.getHighlightPosition(t,r),o=this.isHighlightingCurrentPosition(e,r,i),s=this.lastHighlightedRow!=null&&this.lastHighlightedRow!==r;(o||s)&&(this.clearHighlightedRow(),o)||(r.setHighlighted(i),this.lastHighlightedRow=r)}getHighlightPosition(e,t){if(!t){const i=this.getRowIndexAtPixel(e);if(t=this.getRow(i||0),!t)return R$.Below}const{rowTop:n,rowHeight:r}=t;return e-n<r/2?R$.Above:R$.Below}getLastHighlightedRowNode(){return this.lastHighlightedRow}isHighlightingCurrentPosition(e,t,n){if(e===t)return!0;const r=n===R$.Above?-1:1;return this.getRow(t.rowIndex+r)===e}clearHighlightedRow(){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){if(this.rowsToDisplay.length===0)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;const t=this.rootNode.childrenAfterAggFilter,n=this.rootNode.sibling?1:0;return(t?t.length:0)+n}getTopLevelRowDisplayedIndex(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;let n=e;if(this.rowsToDisplay[0].footer){if(e===0)return 0;n-=1}const r=this.rowsToDisplay[this.rowsToDisplay.length-1],i=n>=this.rootNode.childrenAfterSort.length;if(r.footer&&i)return r.rowIndex;let o=this.rootNode.childrenAfterSort[n];if(this.gos.get("groupHideOpenParents"))for(;o.expanded&&o.childrenAfterSort&&o.childrenAfterSort.length>0;)o=o.childrenAfterSort[0];return o.rowIndex}getRowBounds(e){if(ar(this.rowsToDisplay))return null;const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){const e=uw(this.gos);this.refreshModel({step:ti.MAP,keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;const t=uw(this.gos),r=e.columns.length===0||e.columns.some(i=>i.isPrimary())?ti.FILTER:ti.FILTER_AGGREGATES;this.refreshModel({step:r,keepRenderedRows:!0,animate:t})}onSortChanged(){const e=uw(this.gos);this.refreshModel({step:ti.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})}getType(){return"clientSide"}onValueChanged(){this.columnModel.isPivotActive()?this.refreshModel({step:ti.PIVOT}):this.refreshModel({step:ti.AGGREGATE})}createChangePath(e){const t=Es(e),n=new V_(!1,this.rootNode);return t&&n.setInactive(),n}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction")||e.rowNodeTransactions==null)return!1;const t=e.rowNodeTransactions.filter(r=>r.add!=null&&r.add.length>0||r.remove!=null&&r.remove.length>0);return t==null||t.length==0}buildRefreshModelParams(e){let t=ti.EVERYTHING;const n={everything:ti.EVERYTHING,group:ti.EVERYTHING,filter:ti.FILTER,map:ti.MAP,aggregate:ti.AGGREGATE,filter_aggregates:ti.FILTER_AGGREGATES,sort:ti.SORT,pivot:ti.PIVOT,nothing:ti.NOTHING};if(zt(e)&&(t=n[e]),ar(t)){Mr(`invalid step ${e}, available steps are ${Object.keys(n).join(", ")}`);return}const r=!this.gos.get("suppressAnimationFrame");return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:r}}refreshModel(e){if(!this.hasStarted||this.isRefreshingModel||this.columnModel.isChangeEventsDispatching())return;const t=typeof e=="object"&&"step"in e?e:this.buildRefreshModelParams(e);if(!t||this.isSuppressModelUpdateAfterUpdateTransaction(t))return;const n=this.createChangePath(t.rowNodeTransactions);switch(this.isRefreshingModel=!0,t.step){case ti.EVERYTHING:this.doRowGrouping(t.rowNodeTransactions,n,!!t.rowNodesOrderChanged,!!t.afterColumnsChanged);case ti.FILTER:this.doFilter(n);case ti.PIVOT:this.doPivot(n);case ti.AGGREGATE:this.doAggregate(n);case ti.FILTER_AGGREGATES:this.doFilterAggregates(n);case ti.SORT:this.doSort(t.rowNodeTransactions,n);case ti.MAP:this.doRowsToDisplay()}const r=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,r),this.isRefreshingModel=!1,this.eventService.dispatchEvent({type:"modelUpdated",animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack})}isEmpty(){const e=ar(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return ar(this.rootNode)||e||!this.columnModel.isReady()}isRowsToRender(){return zt(this.rowsToDisplay)&&this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let n=!1,r=!1;const i=[],o=q0(this.gos);return this.forEachNodeAfterFilterAndSort(s=>{if(r)return;if(n&&(s===t||s===e)&&(r=!0,s.group&&o)){i.push(...s.allLeafChildren);return}if(!n){if(s!==t&&s!==e)return;n=!0}if(!s.group||!o){i.push(s);return}}),i}setDatasource(e){Mr("should never call setDatasource on clientSideRowController")}getTopLevelNodes(){return this.rootNode?this.rootNode.childrenAfterGroup:null}getRootNode(){return this.rootNode}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){if(this.isEmpty()||this.rowsToDisplay.length===0)return-1;let t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Dn(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;let i=-1,o=-1;for(;;){const s=Math.floor((t+n)/2),a=this.rowsToDisplay[s];if(this.isRowInPixel(a,e)||(a.rowTop<e?t=s+1:a.rowTop>e&&(n=s-1),i===t&&o===n))return s;i=t,o=n}}isRowInPixel(e,t){const n=e.rowTop,r=e.rowTop+e.rowHeight;return n<=t&&r>t}forEachLeafNode(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((t,n)=>e(t,n))}forEachNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterGroup||[]],callback:e,recursionType:0,index:0,includeFooterNodes:t})}forEachNodeAfterFilter(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterAggFilter||[]],callback:e,recursionType:1,index:0,includeFooterNodes:t})}forEachNodeAfterFilterAndSort(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterSort||[]],callback:e,recursionType:2,index:0,includeFooterNodes:t})}forEachPivotNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:3,index:0,includeFooterNodes:t})}recursivelyWalkNodesAndCallback(e){const{nodes:t,callback:n,recursionType:r,includeFooterNodes:i}=e;let{index:o}=e;const s=a=>{var g;const l=(g=t[0])==null?void 0:g.parent;if(!l)return;const c=i&&BQ(this.gos),u=Sx(this.gos),f=i&&u({node:l});if(l===this.rootNode){c===a&&(l.createFooter(),n(l.sibling,o++));return}f===a&&(l.createFooter(),n(l.sibling,o++))};s("top");for(let a=0;a<t.length;a++){const l=t[a];if(n(l,o++),l.hasChildren()&&!l.footer){let c=null;switch(r){case 0:c=l.childrenAfterGroup;break;case 1:c=l.childrenAfterAggFilter;break;case 2:c=l.childrenAfterSort;break;case 3:c=l.leafGroup?null:l.childrenAfterSort;break}c&&(o=this.recursivelyWalkNodesAndCallback({nodes:[...c],callback:n,recursionType:r,index:o,includeFooterNodes:i}))}}return s("bottom"),o}doAggregate(e){var t;(t=this.aggregationStage)==null||t.execute({rowNode:this.rootNode,changedPath:e})}doFilterAggregates(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter}expandOrCollapseAll(e){const t=this.gos.get("treeData"),n=this.columnModel.isPivotActive(),r=i=>{i&&i.forEach(o=>{const s=()=>{o.expanded=e,r(o.childrenAfterGroup)};if(t){zt(o.childrenAfterGroup)&&s();return}if(n){!o.leafGroup&&s();return}o.group&&s()})};this.rootNode&&r(this.rootNode.childrenAfterGroup),this.refreshModel({step:ti.MAP}),this.eventService.dispatchEvent({type:"expandOrCollapseAll",source:e?"expandAll":"collapseAll"})}doSort(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})}doRowGrouping(e,t,n,r){if(this.groupStage)e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodesOrderChanged:n,changedPath:t}):this.groupStage.execute({rowNode:this.rootNode,changedPath:t,afterColumnsChanged:r}),q0(this.gos)&&this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",t)&&this.eventService.dispatchEvent({type:"selectionChanged",source:"rowGroupChanged"});else{const i=this.rootNode,o=i.sibling;i.childrenAfterGroup=i.allLeafChildren,o&&(o.childrenAfterGroup=i.childrenAfterGroup),this.rootNode.updateHasChildren()}this.nodeManager.isRowCountReady()&&(this.rowCountReady=!0,this.eventService.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})}doPivot(e){var t;(t=this.pivotStage)==null||t.execute({rowNode:this.rootNode,changedPath:e})}getNodeManager(){return this.nodeManager}getRowNode(e){if(typeof e=="string"&&e.indexOf(vu.ID_PREFIX_ROW_GROUP)==0){let n;return this.forEachNode(r=>{r.id===e&&(n=r)}),n}return this.nodeManager.getRowNode(e)}setRowData(e){this.selectionService.reset("rowDataChanged"),this.nodeManager.setRowData(e),this.hasStarted&&this.dispatchUpdateEventsAndRefresh()}dispatchUpdateEventsAndRefresh(){this.eventService.dispatchEvent({type:"rowDataUpdated"}),this.refreshModel({step:ti.EVERYTHING,newData:!0})}batchUpdateRowData(e,t){if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];const n=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout(()=>{this.isAlive()&&this.executeBatchUpdateRowData()},n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){var r;this.valueCache.onDataChanged();const e=[],t=[];let n=!1;(r=this.rowDataTransactionBatch)==null||r.forEach(i=>{const{rowNodeTransaction:o,rowsInserted:s}=this.nodeManager.updateRowData(i.rowDataTransaction);s&&(n=!0),t.push(o),i.callback&&e.push(i.callback.bind(null,o))}),this.commonUpdateRowData(t,n),e.length>0&&window.setTimeout(()=>{e.forEach(i=>i())},0),t.length>0&&this.eventService.dispatchEvent({type:"asyncTransactionsFlushed",results:t}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e){this.valueCache.onDataChanged();const{rowNodeTransaction:t,rowsInserted:n}=this.nodeManager.updateRowData(e);return this.commonUpdateRowData([t],n),t}afterImmutableDataChange(e,t){this.commonUpdateRowData([e],t)}commonUpdateRowData(e,t){if(!this.hasStarted)return;const n=!this.gos.get("suppressAnimationFrame");this.eventService.dispatchEvent({type:"rowDataUpdated"}),this.refreshModel({step:ti.EVERYTHING,rowNodeTransactions:e,rowNodesOrderChanged:t,keepRenderedRows:!0,keepEditingRows:!0,animate:n})}doRowsToDisplay(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})}onRowHeightChanged(){this.refreshModel({step:ti.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}resetRowHeights(){const e=this.resetRowHeightsForAllRowNodes();this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),this.rootNode.sibling&&this.rootNode.sibling.setRowHeight(this.rootNode.sibling.rowHeight,!0),e&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){if(e.rowHeightChanged){if(this.columnModel.isAutoRowHeightActive())return;this.resetRowHeights()}}onGridReady(){this.hasStarted||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.clearHighlightedRow()}};function _6i(e){e.expansionService.onGroupExpandedOrCollapsed()}function A6i(e,t){var n,r;(r=(n=e.rowModelHelperService)==null?void 0:n.getClientSideRowModel())==null||r.refreshModel(t)}function D6i(e){var t,n;return((n=(t=e.rowModelHelperService)==null?void 0:t.getClientSideRowModel())==null?void 0:n.isEmpty())??!0}function L6i(e,t){var n,r;(r=(n=e.rowModelHelperService)==null?void 0:n.getClientSideRowModel())==null||r.forEachLeafNode(t)}function F6i(e,t){var n,r;(r=(n=e.rowModelHelperService)==null?void 0:n.getClientSideRowModel())==null||r.forEachNodeAfterFilter(t)}function N6i(e,t){var n,r;(r=(n=e.rowModelHelperService)==null?void 0:n.getClientSideRowModel())==null||r.forEachNodeAfterFilterAndSort(t)}function k6i(e){var t,n;if(e.columnModel.isAutoRowHeightActive()){rt("calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");return}(n=(t=e.rowModelHelperService)==null?void 0:t.getClientSideRowModel())==null||n.resetRowHeights()}function z6i(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var n,r;return(r=(n=e.rowModelHelperService)==null?void 0:n.getClientSideRowModel())==null?void 0:r.updateRowData(t)})}function B6i(e,t,n){e.frameworkOverrides.wrapIncoming(()=>{var r,i;return(i=(r=e.rowModelHelperService)==null?void 0:r.getClientSideRowModel())==null?void 0:i.batchUpdateRowData(t,n)})}function H6i(e){e.frameworkOverrides.wrapIncoming(()=>{var t,n;return(n=(t=e.rowModelHelperService)==null?void 0:t.getClientSideRowModel())==null?void 0:n.flushAsyncTransactions()})}function j6i(e){return e.selectionService.getBestCostNodeSelection()}var V6i=class extends ct{constructor(){super(...arguments),this.beanName="filterStage"}wireBeans(e){this.filterManager=e.filterManager}execute(e){const{changedPath:t}=e;this.filter(t)}filter(e){var n;const t=!!((n=this.filterManager)!=null&&n.isChildFilterPresent());this.filterNodes(t,e)}filterNodes(e,t){const n=(r,i)=>{r.hasChildren()&&e&&!i?r.childrenAfterFilter=r.childrenAfterGroup.filter(o=>{const s=o.childrenAfterFilter&&o.childrenAfterFilter.length>0,a=o.data&&this.filterManager.doesRowPassFilter({rowNode:o});return s||a}):r.childrenAfterFilter=r.childrenAfterGroup,r.sibling&&(r.sibling.childrenAfterFilter=r.childrenAfterFilter)};if(this.doingTreeDataFiltering()){const r=(o,s)=>{if(o.childrenAfterGroup)for(let a=0;a<o.childrenAfterGroup.length;a++){const l=o.childrenAfterGroup[a],c=s||this.filterManager.doesRowPassFilter({rowNode:l});l.childrenAfterGroup?r(o.childrenAfterGroup[a],c):n(l,c)}n(o,s)},i=o=>r(o,!1);t.executeFromRootNode(i)}else{const r=i=>n(i,!1);t.forEachChangedNodeDepthFirst(r,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}},G6i=class extends ct{constructor(){super(...arguments),this.beanName="flattenStage"}wireBeans(e){this.beans=e,this.columnModel=e.columnModel}execute(e){const t=e.rowNode,n=[],r=this.columnModel.isPivotMode(),i=r&&t.leafGroup,o=i?[t]:t.childrenAfterSort,s=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(s,o,n,r,0);const a=n.length>0;if(!i&&a&&s.grandTotalRow){t.createFooter();const c=s.grandTotalRow==="top";this.addRowNodeToRowsToDisplay(s,t.sibling,n,0,c)}return n}getFlattenDetails(){const e=this.gos.get("groupRemoveSingleChildren");return{groupRemoveLowestSingleChildren:!e&&this.gos.get("groupRemoveLowestSingleChildren"),groupRemoveSingleChildren:e,isGroupMultiAutoColumn:M3e(this.gos),hideOpenParents:this.gos.get("groupHideOpenParents"),grandTotalRow:BQ(this.gos),groupTotalRow:Sx(this.gos)}}recursivelyAddToRowsToDisplay(e,t,n,r,i){if(!Es(t))for(let o=0;o<t.length;o++){const s=t[o],a=s.hasChildren(),l=r&&!a,c=e.groupRemoveSingleChildren&&a&&s.childrenAfterGroup.length===1,u=e.groupRemoveLowestSingleChildren&&a&&s.leafGroup&&s.childrenAfterGroup.length===1,f=r&&s.leafGroup,h=e.hideOpenParents&&s.expanded&&!s.master&&!f;if(!l&&!h&&!c&&!u&&this.addRowNodeToRowsToDisplay(e,s,n,i),!(r&&s.leafGroup)){if(a){const p=c||u;if(s.expanded||p){const m=e.groupTotalRow({node:s});m||s.destroyFooter();const v=p?i:i+1;m==="top"&&(s.createFooter(),this.addRowNodeToRowsToDisplay(e,s.sibling,n,v)),this.recursivelyAddToRowsToDisplay(e,s.childrenAfterSort,n,r,v),m==="bottom"&&(s.createFooter(),this.addRowNodeToRowsToDisplay(e,s.sibling,n,v))}}else if(s.master&&s.expanded){const p=this.createDetailNode(s);this.addRowNodeToRowsToDisplay(e,p,n,i)}}}}addRowNodeToRowsToDisplay(e,t,n,r,i){i?n.unshift(t):n.push(t),t.setUiLevel(e.isGroupMultiAutoColumn?0:r)}createDetailNode(e){if(zt(e.detailNode))return e.detailNode;const t=new vu(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,zt(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t}},W6i=class extends ct{constructor(){super(...arguments),this.beanName="immutableService"}wireBeans(e){this.rowModel=e.rowModel,this.selectionService=e.selectionService}postConstruct(){Li(this.gos)&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",()=>this.onRowDataUpdated()))}isActive(){const e=this.gos.exists("getRowId");return this.gos.get("resetRowDataOnUpdate")?!1:e}setRowData(e){const t=this.createTransactionForRowData(e);if(!t)return;const n=this.clientSideRowModel.getNodeManager(),{rowNodeTransaction:r,rowsInserted:i}=n.updateRowData(t);let o=!1;this.gos.get("suppressMaintainUnsortedOrder")||(o=n.updateRowOrderFromRowData(e)),this.clientSideRowModel.afterImmutableDataChange(r,o||i)}createTransactionForRowData(e){if(!Li(this.gos))return Mr("ImmutableService only works with ClientSideRowModel"),null;const t=U0(this.gos);if(t==null)return Mr("ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!"),null;const n=this.clientSideRowModel.getNodeManager().getCopyOfNodesMap(),r=[],i=[],o=[];return zt(e)&&e.forEach(s=>{const a=t({data:s,level:0}),l=n[a];l?(l.data!==s&&i.push(s),n[a]=void 0):o.push(s)}),tl(n,(s,a)=>{a&&r.push(a.data)}),{remove:r,update:i,add:o}}onRowDataUpdated(){const e=this.gos.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))}},U6i=class extends ct{constructor(){super(...arguments),this.beanName="sortService"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService,this.rowNodeSorter=e.rowNodeSorter,this.showRowGroupColsService=e.showRowGroupColsService}sort(e,t,n,r,i,o){const s=this.gos.get("groupMaintainOrder"),a=this.columnModel.getCols().some(h=>h.isRowGroupActive());let l={};n&&r&&(l=this.calculateDirtyNodes(r));const c=this.columnModel.isPivotMode(),u=this.gos.getCallback("postSortRows"),f=h=>{var m;this.pullDownGroupDataForHideOpenParents(h.childrenAfterAggFilter,!0);const g=c&&h.leafGroup;if(s&&a&&!h.leafGroup&&!o){const v=(m=this.funcColsService.getRowGroupColumns())==null?void 0:m[h.level+1],C=(v==null?void 0:v.getSort())===null,y=h.childrenAfterAggFilter.slice(0);if(h.childrenAfterSort&&!C){const b={};h.childrenAfterSort.forEach((S,w)=>{b[S.id]=w}),y.sort((S,w)=>(b[S.id]??0)-(b[w.id]??0))}h.childrenAfterSort=y}else!t||g?h.childrenAfterSort=h.childrenAfterAggFilter.slice(0):n?h.childrenAfterSort=this.doDeltaSort(h,l,i,e):h.childrenAfterSort=this.rowNodeSorter.doFullSort(h.childrenAfterAggFilter,e);if(h.sibling&&(h.sibling.childrenAfterSort=h.childrenAfterSort),this.updateChildIndexes(h),u){const v={nodes:h.childrenAfterSort};u(v)}};i&&i.forEachChangedNodeDepthFirst(f),this.updateGroupDataForHideOpenParents(i)}calculateDirtyNodes(e){const t={},n=r=>{r&&r.forEach(i=>t[i.id]=!0)};return e&&e.forEach(r=>{n(r.add),n(r.update),n(r.remove)}),t}doDeltaSort(e,t,n,r){const i=e.childrenAfterAggFilter,o=e.childrenAfterSort;if(!o)return this.rowNodeSorter.doFullSort(i,r);const s={},a=[];i.forEach(f=>{t[f.id]||!n.canSkip(f)?a.push(f):s[f.id]=!0});const l=o.filter(f=>s[f.id]),c=(f,h)=>({currentPos:h,rowNode:f}),u=a.map(c).sort((f,h)=>this.rowNodeSorter.compareRowNodes(r,f,h));return this.mergeSortedArrays(r,u,l.map(c)).map(({rowNode:f})=>f)}mergeSortedArrays(e,t,n){const r=[];let i=0,o=0;for(;i<t.length&&o<n.length;)this.rowNodeSorter.compareRowNodes(e,t[i],n[o])<0?r.push(t[i++]):r.push(n[o++]);for(;i<t.length;)r.push(t[i++]);for(;o<n.length;)r.push(n[o++]);return r}updateChildIndexes(e){if(ar(e.childrenAfterSort))return;const t=e.childrenAfterSort;for(let n=0;n<t.length;n++){const r=t[n],i=n===0,o=n===e.childrenAfterSort.length-1;r.setFirstChild(i),r.setLastChild(o),r.setChildIndex(n)}}updateGroupDataForHideOpenParents(e){if(!this.gos.get("groupHideOpenParents"))return;if(this.gos.get("treeData"))return rt("The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them."),!1;const t=n=>{this.pullDownGroupDataForHideOpenParents(n.childrenAfterSort,!1),n.childrenAfterSort.forEach(r=>{r.hasChildren()&&t(r)})};e&&e.executeFromRootNode(n=>t(n))}pullDownGroupDataForHideOpenParents(e,t){!this.gos.get("groupHideOpenParents")||ar(e)||e.forEach(n=>{var i;(((i=this.showRowGroupColsService)==null?void 0:i.getShowRowGroupCols())??[]).forEach(o=>{const s=o.getColDef().showRowGroup;if(typeof s!="string"){Mr("groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");return}const a=s,l=this.columnModel.getColDefCol(a);if(l!==n.rowGroupColumn)if(t)n.setGroupValue(o.getId(),void 0);else{const u=this.getFirstChildOfFirstChild(n,l);u&&n.setGroupValue(o.getId(),u.key)}})})}getFirstChildOfFirstChild(e,t){let n=e;for(;n;){const r=n.parent;if(r&&n.firstChild){if(r.rowGroupColumn===t)return r}else return null;n=r}return null}},q6i=class extends ct{constructor(){super(...arguments),this.beanName="sortStage"}wireBeans(e){this.sortService=e.sortService,this.sortController=e.sortController}execute(e){const t=this.sortController.getSortOptions(),n=zt(t)&&t.length>0,r=n&&zt(e.rowNodeTransactions)&&this.gos.get("deltaSort"),i=t.some(o=>ug(this.gos)?o.column.isPrimary()&&o.column.isRowGroupActive():!!o.column.getColDef().showRowGroup);this.sortService.sort(t,n,r,e.rowNodeTransactions,e.changedPath,i)}},j6e="32.3.3",Upt={version:j6e,moduleName:`${rr.ClientSideRowModelModule}-core`,rowModel:"clientSide",beans:[P6i,V6i,q6i,G6i,U6i,W6i]},K6i={version:j6e,moduleName:`${rr.ClientSideRowModelModule}-api`,beans:[Jht],apiFunctions:{onGroupExpandedOrCollapsed:_6i,refreshClientSideRowModel:A6i,isRowDataEmpty:D6i,forEachLeafNode:L6i,forEachNodeAfterFilter:F6i,forEachNodeAfterFilterAndSort:N6i,resetRowHeights:k6i,applyTransaction:z6i,applyTransactionAsync:B6i,flushAsyncTransactions:H6i,getBestCostNodeSelection:j6i},dependantModules:[Upt,egt]},Y6i={version:j6e,moduleName:rr.ClientSideRowModelModule,dependantModules:[Upt,K6i]};Pf.registerModules([Y6i]);agt.setLicenseKey("LICENSE_KEY_BODY[version=v3][0102]_EXPIRY_NDg4NDc0ODcwNTExMw==094bf1c7852b11df1841f4d14457ae96");Ioe.createRoot(document.getElementById("root")).render(H.jsx(ce.StrictMode,{children:H.jsx(T6i,{})}));export{d as r};
|