@mi-avalon/libs 0.0.24 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(w,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react","antd"],p):(w=typeof globalThis<"u"?globalThis:w||self,p(w.MiAvalonLibs={},w.React,w.antd))})(this,function(w,p,C){"use strict";var Xn=Object.defineProperty;var Qn=(w,p,C)=>p in w?Xn(w,p,{enumerable:!0,configurable:!0,writable:!0,value:C}):w[p]=C;var v=(w,p,C)=>(Qn(w,typeof p!="symbol"?p+"":p,C),C);function nr(r){if(r&&r.__esModule)return r;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const H=nr(p);function ar(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Me={exports:{}},pe={};/**
1
+ (function(b,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("antd"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","react-dom"],p):(b=typeof globalThis<"u"?globalThis:b||self,p(b.MiAvalonLibs={},b.React,b.antd,b.ReactDOM))})(this,function(b,p,S,br){"use strict";var ya=Object.defineProperty;var Ca=(b,p,S)=>p in b?ya(b,p,{enumerable:!0,configurable:!0,writable:!0,value:S}):b[p]=S;var v=(b,p,S)=>(Ca(b,typeof p!="symbol"?p+"":p,S),S);const yr=n=>n&&n.__esModule?n:{default:n};function Cr(n){if(n&&n.__esModule)return n;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}function wr(n,e){for(var t=0;t<e.length;t++){const r=e[t];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in n)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(n,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}const L=Cr(p),Sr=yr(br);function xr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Be={exports:{}},Ce={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var st;function sr(){if(st)return pe;st=1;var r=H.default,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(c,u,l){var g,d={},y=null,k=null;l!==void 0&&(y=""+l),u.key!==void 0&&(y=""+u.key),u.ref!==void 0&&(k=u.ref);for(g in u)n.call(u,g)&&!i.hasOwnProperty(g)&&(d[g]=u[g]);if(c&&c.defaultProps)for(g in u=c.defaultProps,u)d[g]===void 0&&(d[g]=u[g]);return{$$typeof:e,type:c,key:y,ref:k,props:d,_owner:s.current}}return pe.Fragment=t,pe.jsx=o,pe.jsxs=o,pe}var me={};/**
9
+ */var bt;function _r(){if(bt)return Ce;bt=1;var n=L.default,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(l,u,c){var g,d={},C=null,N=null;c!==void 0&&(C=""+c),u.key!==void 0&&(C=""+u.key),u.ref!==void 0&&(N=u.ref);for(g in u)r.call(u,g)&&!i.hasOwnProperty(g)&&(d[g]=u[g]);if(l&&l.defaultProps)for(g in u=l.defaultProps,u)d[g]===void 0&&(d[g]=u[g]);return{$$typeof:e,type:l,key:C,ref:N,props:d,_owner:s.current}}return Ce.Fragment=t,Ce.jsx=o,Ce.jsxs=o,Ce}var we={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,27 +14,27 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var it;function ir(){return it||(it=1,process.env.NODE_ENV!=="production"&&function(){var r=H.default,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),A=Symbol.iterator,D="@@iterator";function V(a){if(a===null||typeof a!="object")return null;var f=A&&a[A]||a[D];return typeof f=="function"?f:null}var N=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(a){{for(var f=arguments.length,h=new Array(f>1?f-1:0),b=1;b<f;b++)h[b-1]=arguments[b];P("error",a,h)}}function P(a,f,h){{var b=N.ReactDebugCurrentFrame,E=b.getStackAddendum();E!==""&&(f+="%s",h=h.concat([E]));var O=h.map(function(_){return String(_)});O.unshift("Warning: "+f),Function.prototype.apply.call(console[a],console,O)}}var L=!1,q=!1,ae=!1,J=!1,xe=!1,X;X=Symbol.for("react.module.reference");function ce(a){return!!(typeof a=="string"||typeof a=="function"||a===n||a===i||xe||a===s||a===l||a===g||J||a===k||L||q||ae||typeof a=="object"&&a!==null&&(a.$$typeof===y||a.$$typeof===d||a.$$typeof===o||a.$$typeof===c||a.$$typeof===u||a.$$typeof===X||a.getModuleId!==void 0))}function _e(a,f,h){var b=a.displayName;if(b)return b;var E=f.displayName||f.name||"";return E!==""?h+"("+E+")":h}function F(a){return a.displayName||"Context"}function $(a){if(a==null)return null;if(typeof a.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case s:return"StrictMode";case l:return"Suspense";case g:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case c:var f=a;return F(f)+".Consumer";case o:var h=a;return F(h._context)+".Provider";case u:return _e(a,a.render,"ForwardRef");case d:var b=a.displayName||null;return b!==null?b:$(a.type)||"Memo";case y:{var E=a,O=E._payload,_=E._init;try{return $(_(O))}catch{return null}}}return null}var U=Object.assign,R=0,Y,te,G,le,re,ke,Lt;function Vt(){}Vt.__reactDisabledLog=!0;function En(){{if(R===0){Y=console.log,te=console.info,G=console.warn,le=console.error,re=console.group,ke=console.groupCollapsed,Lt=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Vt,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}R++}}function Rn(){{if(R--,R===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},a,{value:Y}),info:U({},a,{value:te}),warn:U({},a,{value:G}),error:U({},a,{value:le}),group:U({},a,{value:re}),groupCollapsed:U({},a,{value:ke}),groupEnd:U({},a,{value:Lt})})}R<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ke=N.ReactCurrentDispatcher,Je;function Ne(a,f,h){{if(Je===void 0)try{throw Error()}catch(E){var b=E.stack.trim().match(/\n( *(at )?)/);Je=b&&b[1]||""}return`
18
- `+Je+a}}var Xe=!1,Ae;{var jn=typeof WeakMap=="function"?WeakMap:Map;Ae=new jn}function Ft(a,f){if(!a||Xe)return"";{var h=Ae.get(a);if(h!==void 0)return h}var b;Xe=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=Ke.current,Ke.current=null,En();try{if(f){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(K){b=K}Reflect.construct(a,[],_)}else{try{_.call()}catch(K){b=K}a.call(_.prototype)}}else{try{throw Error()}catch(K){b=K}a()}}catch(K){if(K&&b&&typeof K.stack=="string"){for(var x=K.stack.split(`
19
- `),Z=b.stack.split(`
20
- `),M=x.length-1,I=Z.length-1;M>=1&&I>=0&&x[M]!==Z[I];)I--;for(;M>=1&&I>=0;M--,I--)if(x[M]!==Z[I]){if(M!==1||I!==1)do if(M--,I--,I<0||x[M]!==Z[I]){var Q=`
21
- `+x[M].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),typeof a=="function"&&Ae.set(a,Q),Q}while(M>=1&&I>=0);break}}}finally{Xe=!1,Ke.current=O,Rn(),Error.prepareStackTrace=E}var ge=a?a.displayName||a.name:"",ue=ge?Ne(ge):"";return typeof a=="function"&&Ae.set(a,ue),ue}function On(a,f,h){return Ft(a,!1)}function Pn(a){var f=a.prototype;return!!(f&&f.isReactComponent)}function De(a,f,h){if(a==null)return"";if(typeof a=="function")return Ft(a,Pn(a));if(typeof a=="string")return Ne(a);switch(a){case l:return Ne("Suspense");case g:return Ne("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case u:return On(a.render);case d:return De(a.type,f,h);case y:{var b=a,E=b._payload,O=b._init;try{return De(O(E),f,h)}catch{}}}return""}var Ee=Object.prototype.hasOwnProperty,Ut={},Bt=N.ReactDebugCurrentFrame;function $e(a){if(a){var f=a._owner,h=De(a.type,a._source,f?f.type:null);Bt.setExtraStackFrame(h)}else Bt.setExtraStackFrame(null)}function Tn(a,f,h,b,E){{var O=Function.call.bind(Ee);for(var _ in a)if(O(a,_)){var x=void 0;try{if(typeof a[_]!="function"){var Z=Error((b||"React class")+": "+h+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Z.name="Invariant Violation",Z}x=a[_](f,_,b,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){x=M}x&&!(x instanceof Error)&&($e(E),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",b||"React class",h,_,typeof x),$e(null)),x instanceof Error&&!(x.message in Ut)&&(Ut[x.message]=!0,$e(E),S("Failed %s type: %s",h,x.message),$e(null))}}}var kn=Array.isArray;function Qe(a){return kn(a)}function Nn(a){{var f=typeof Symbol=="function"&&Symbol.toStringTag,h=f&&a[Symbol.toStringTag]||a.constructor.name||"Object";return h}}function An(a){try{return Wt(a),!1}catch{return!0}}function Wt(a){return""+a}function Zt(a){if(An(a))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Nn(a)),Wt(a)}var Re=N.ReactCurrentOwner,Dn={key:!0,ref:!0,__self:!0,__source:!0},qt,Gt,et;et={};function $n(a){if(Ee.call(a,"ref")){var f=Object.getOwnPropertyDescriptor(a,"ref").get;if(f&&f.isReactWarning)return!1}return a.ref!==void 0}function Mn(a){if(Ee.call(a,"key")){var f=Object.getOwnPropertyDescriptor(a,"key").get;if(f&&f.isReactWarning)return!1}return a.key!==void 0}function In(a,f){if(typeof a.ref=="string"&&Re.current&&f&&Re.current.stateNode!==f){var h=$(Re.current.type);et[h]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',$(Re.current.type),a.ref),et[h]=!0)}}function Hn(a,f){{var h=function(){qt||(qt=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};h.isReactWarning=!0,Object.defineProperty(a,"key",{get:h,configurable:!0})}}function Yn(a,f){{var h=function(){Gt||(Gt=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};h.isReactWarning=!0,Object.defineProperty(a,"ref",{get:h,configurable:!0})}}var zn=function(a,f,h,b,E,O,_){var x={$$typeof:e,type:a,key:f,ref:h,props:_,_owner:O};return x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x,"_self",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.defineProperty(x,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x};function Ln(a,f,h,b,E){{var O,_={},x=null,Z=null;h!==void 0&&(Zt(h),x=""+h),Mn(f)&&(Zt(f.key),x=""+f.key),$n(f)&&(Z=f.ref,In(f,E));for(O in f)Ee.call(f,O)&&!Dn.hasOwnProperty(O)&&(_[O]=f[O]);if(a&&a.defaultProps){var M=a.defaultProps;for(O in M)_[O]===void 0&&(_[O]=M[O])}if(x||Z){var I=typeof a=="function"?a.displayName||a.name||"Unknown":a;x&&Hn(_,I),Z&&Yn(_,I)}return zn(a,x,Z,E,b,Re.current,_)}}var tt=N.ReactCurrentOwner,Kt=N.ReactDebugCurrentFrame;function he(a){if(a){var f=a._owner,h=De(a.type,a._source,f?f.type:null);Kt.setExtraStackFrame(h)}else Kt.setExtraStackFrame(null)}var rt;rt=!1;function nt(a){return typeof a=="object"&&a!==null&&a.$$typeof===e}function Jt(){{if(tt.current){var a=$(tt.current.type);if(a)return`
17
+ */var yt;function Er(){return yt||(yt=1,process.env.NODE_ENV!=="production"&&function(){var n=L.default,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),k=Symbol.iterator,A="@@iterator";function F(a){if(a===null||typeof a!="object")return null;var f=k&&a[k]||a[A];return typeof f=="function"?f:null}var D=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(a){{for(var f=arguments.length,h=new Array(f>1?f-1:0),y=1;y<f;y++)h[y-1]=arguments[y];T("error",a,h)}}function T(a,f,h){{var y=D.ReactDebugCurrentFrame,E=y.getStackAddendum();E!==""&&(f+="%s",h=h.concat([E]));var j=h.map(function(_){return String(_)});j.unshift("Warning: "+f),Function.prototype.apply.call(console[a],console,j)}}var V=!1,G=!1,ie=!1,X=!1,Te=!1,Q;Q=Symbol.for("react.module.reference");function fe(a){return!!(typeof a=="string"||typeof a=="function"||a===r||a===i||Te||a===s||a===c||a===g||X||a===N||V||G||ie||typeof a=="object"&&a!==null&&(a.$$typeof===C||a.$$typeof===d||a.$$typeof===o||a.$$typeof===l||a.$$typeof===u||a.$$typeof===Q||a.getModuleId!==void 0))}function Pe(a,f,h){var y=a.displayName;if(y)return y;var E=f.displayName||f.name||"";return E!==""?h+"("+E+")":h}function B(a){return a.displayName||"Context"}function M(a){if(a==null)return null;if(typeof a.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case r:return"Fragment";case t:return"Portal";case i:return"Profiler";case s:return"StrictMode";case c:return"Suspense";case g:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case l:var f=a;return B(f)+".Consumer";case o:var h=a;return B(h._context)+".Provider";case u:return Pe(a,a.render,"ForwardRef");case d:var y=a.displayName||null;return y!==null?y:M(a.type)||"Memo";case C:{var E=a,j=E._payload,_=E._init;try{return M(_(j))}catch{return null}}}return null}var U=Object.assign,R=0,Y,re,K,de,ne,Ye,rr;function nr(){}nr.__reactDisabledLog=!0;function Wn(){{if(R===0){Y=console.log,re=console.info,K=console.warn,de=console.error,ne=console.group,Ye=console.groupCollapsed,rr=console.groupEnd;var a={configurable:!0,enumerable:!0,value:nr,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}R++}}function qn(){{if(R--,R===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},a,{value:Y}),info:U({},a,{value:re}),warn:U({},a,{value:K}),error:U({},a,{value:de}),group:U({},a,{value:ne}),groupCollapsed:U({},a,{value:Ye}),groupEnd:U({},a,{value:rr})})}R<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var lt=D.ReactCurrentDispatcher,ut;function He(a,f,h){{if(ut===void 0)try{throw Error()}catch(E){var y=E.stack.trim().match(/\n( *(at )?)/);ut=y&&y[1]||""}return`
18
+ `+ut+a}}var ft=!1,ze;{var Zn=typeof WeakMap=="function"?WeakMap:Map;ze=new Zn}function ar(a,f){if(!a||ft)return"";{var h=ze.get(a);if(h!==void 0)return h}var y;ft=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=lt.current,lt.current=null,Wn();try{if(f){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(J){y=J}Reflect.construct(a,[],_)}else{try{_.call()}catch(J){y=J}a.call(_.prototype)}}else{try{throw Error()}catch(J){y=J}a()}}catch(J){if(J&&y&&typeof J.stack=="string"){for(var x=J.stack.split(`
19
+ `),Z=y.stack.split(`
20
+ `),$=x.length-1,I=Z.length-1;$>=1&&I>=0&&x[$]!==Z[I];)I--;for(;$>=1&&I>=0;$--,I--)if(x[$]!==Z[I]){if($!==1||I!==1)do if($--,I--,I<0||x[$]!==Z[I]){var ee=`
21
+ `+x[$].replace(" at new "," at ");return a.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",a.displayName)),typeof a=="function"&&ze.set(a,ee),ee}while($>=1&&I>=0);break}}}finally{ft=!1,lt.current=j,qn(),Error.prepareStackTrace=E}var ye=a?a.displayName||a.name:"",he=ye?He(ye):"";return typeof a=="function"&&ze.set(a,he),he}function Gn(a,f,h){return ar(a,!1)}function Kn(a){var f=a.prototype;return!!(f&&f.isReactComponent)}function Ve(a,f,h){if(a==null)return"";if(typeof a=="function")return ar(a,Kn(a));if(typeof a=="string")return He(a);switch(a){case c:return He("Suspense");case g:return He("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case u:return Gn(a.render);case d:return Ve(a.type,f,h);case C:{var y=a,E=y._payload,j=y._init;try{return Ve(j(E),f,h)}catch{}}}return""}var Ne=Object.prototype.hasOwnProperty,sr={},ir=D.ReactDebugCurrentFrame;function Fe(a){if(a){var f=a._owner,h=Ve(a.type,a._source,f?f.type:null);ir.setExtraStackFrame(h)}else ir.setExtraStackFrame(null)}function Jn(a,f,h,y,E){{var j=Function.call.bind(Ne);for(var _ in a)if(j(a,_)){var x=void 0;try{if(typeof a[_]!="function"){var Z=Error((y||"React class")+": "+h+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Z.name="Invariant Violation",Z}x=a[_](f,_,y,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){x=$}x&&!(x instanceof Error)&&(Fe(E),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",h,_,typeof x),Fe(null)),x instanceof Error&&!(x.message in sr)&&(sr[x.message]=!0,Fe(E),w("Failed %s type: %s",h,x.message),Fe(null))}}}var Xn=Array.isArray;function dt(a){return Xn(a)}function Qn(a){{var f=typeof Symbol=="function"&&Symbol.toStringTag,h=f&&a[Symbol.toStringTag]||a.constructor.name||"Object";return h}}function ea(a){try{return or(a),!1}catch{return!0}}function or(a){return""+a}function cr(a){if(ea(a))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qn(a)),or(a)}var De=D.ReactCurrentOwner,ta={key:!0,ref:!0,__self:!0,__source:!0},lr,ur,ht;ht={};function ra(a){if(Ne.call(a,"ref")){var f=Object.getOwnPropertyDescriptor(a,"ref").get;if(f&&f.isReactWarning)return!1}return a.ref!==void 0}function na(a){if(Ne.call(a,"key")){var f=Object.getOwnPropertyDescriptor(a,"key").get;if(f&&f.isReactWarning)return!1}return a.key!==void 0}function aa(a,f){if(typeof a.ref=="string"&&De.current&&f&&De.current.stateNode!==f){var h=M(De.current.type);ht[h]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',M(De.current.type),a.ref),ht[h]=!0)}}function sa(a,f){{var h=function(){lr||(lr=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};h.isReactWarning=!0,Object.defineProperty(a,"key",{get:h,configurable:!0})}}function ia(a,f){{var h=function(){ur||(ur=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};h.isReactWarning=!0,Object.defineProperty(a,"ref",{get:h,configurable:!0})}}var oa=function(a,f,h,y,E,j,_){var x={$$typeof:e,type:a,key:f,ref:h,props:_,_owner:j};return x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(x,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x};function ca(a,f,h,y,E){{var j,_={},x=null,Z=null;h!==void 0&&(cr(h),x=""+h),na(f)&&(cr(f.key),x=""+f.key),ra(f)&&(Z=f.ref,aa(f,E));for(j in f)Ne.call(f,j)&&!ta.hasOwnProperty(j)&&(_[j]=f[j]);if(a&&a.defaultProps){var $=a.defaultProps;for(j in $)_[j]===void 0&&(_[j]=$[j])}if(x||Z){var I=typeof a=="function"?a.displayName||a.name||"Unknown":a;x&&sa(_,I),Z&&ia(_,I)}return oa(a,x,Z,E,y,De.current,_)}}var gt=D.ReactCurrentOwner,fr=D.ReactDebugCurrentFrame;function be(a){if(a){var f=a._owner,h=Ve(a.type,a._source,f?f.type:null);fr.setExtraStackFrame(h)}else fr.setExtraStackFrame(null)}var pt;pt=!1;function mt(a){return typeof a=="object"&&a!==null&&a.$$typeof===e}function dr(){{if(gt.current){var a=M(gt.current.type);if(a)return`
22
22
 
23
- Check the render method of \``+a+"`."}return""}}function Vn(a){{if(a!==void 0){var f=a.fileName.replace(/^.*[\\\/]/,""),h=a.lineNumber;return`
23
+ Check the render method of \``+a+"`."}return""}}function la(a){{if(a!==void 0){var f=a.fileName.replace(/^.*[\\\/]/,""),h=a.lineNumber;return`
24
24
 
25
- Check your code at `+f+":"+h+"."}return""}}var Xt={};function Fn(a){{var f=Jt();if(!f){var h=typeof a=="string"?a:a.displayName||a.name;h&&(f=`
25
+ Check your code at `+f+":"+h+"."}return""}}var hr={};function ua(a){{var f=dr();if(!f){var h=typeof a=="string"?a:a.displayName||a.name;h&&(f=`
26
26
 
27
- Check the top-level render call using <`+h+">.")}return f}}function Qt(a,f){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var h=Fn(f);if(Xt[h])return;Xt[h]=!0;var b="";a&&a._owner&&a._owner!==tt.current&&(b=" It was passed a child from "+$(a._owner.type)+"."),he(a),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,b),he(null)}}function er(a,f){{if(typeof a!="object")return;if(Qe(a))for(var h=0;h<a.length;h++){var b=a[h];nt(b)&&Qt(b,f)}else if(nt(a))a._store&&(a._store.validated=!0);else if(a){var E=V(a);if(typeof E=="function"&&E!==a.entries)for(var O=E.call(a),_;!(_=O.next()).done;)nt(_.value)&&Qt(_.value,f)}}}function Un(a){{var f=a.type;if(f==null||typeof f=="string")return;var h;if(typeof f=="function")h=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===u||f.$$typeof===d))h=f.propTypes;else return;if(h){var b=$(f);Tn(h,a.props,"prop",b,a)}else if(f.PropTypes!==void 0&&!rt){rt=!0;var E=$(f);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bn(a){{for(var f=Object.keys(a.props),h=0;h<f.length;h++){var b=f[h];if(b!=="children"&&b!=="key"){he(a),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",b),he(null);break}}a.ref!==null&&(he(a),S("Invalid attribute `ref` supplied to `React.Fragment`."),he(null))}}var tr={};function rr(a,f,h,b,E,O){{var _=ce(a);if(!_){var x="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z=Vn(E);Z?x+=Z:x+=Jt();var M;a===null?M="null":Qe(a)?M="array":a!==void 0&&a.$$typeof===e?(M="<"+($(a.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):M=typeof a,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",M,x)}var I=Ln(a,f,h,E,O);if(I==null)return I;if(_){var Q=f.children;if(Q!==void 0)if(b)if(Qe(Q)){for(var ge=0;ge<Q.length;ge++)er(Q[ge],a);Object.freeze&&Object.freeze(Q)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else er(Q,a)}if(Ee.call(f,"key")){var ue=$(a),K=Object.keys(f).filter(function(Jn){return Jn!=="key"}),at=K.length>0?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}";if(!tr[ue+at]){var Kn=K.length>0?"{"+K.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+h+">.")}return f}}function gr(a,f){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var h=ua(f);if(hr[h])return;hr[h]=!0;var y="";a&&a._owner&&a._owner!==gt.current&&(y=" It was passed a child from "+M(a._owner.type)+"."),be(a),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,y),be(null)}}function pr(a,f){{if(typeof a!="object")return;if(dt(a))for(var h=0;h<a.length;h++){var y=a[h];mt(y)&&gr(y,f)}else if(mt(a))a._store&&(a._store.validated=!0);else if(a){var E=F(a);if(typeof E=="function"&&E!==a.entries)for(var j=E.call(a),_;!(_=j.next()).done;)mt(_.value)&&gr(_.value,f)}}}function fa(a){{var f=a.type;if(f==null||typeof f=="string")return;var h;if(typeof f=="function")h=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===u||f.$$typeof===d))h=f.propTypes;else return;if(h){var y=M(f);Jn(h,a.props,"prop",y,a)}else if(f.PropTypes!==void 0&&!pt){pt=!0;var E=M(f);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function da(a){{for(var f=Object.keys(a.props),h=0;h<f.length;h++){var y=f[h];if(y!=="children"&&y!=="key"){be(a),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),be(null);break}}a.ref!==null&&(be(a),w("Invalid attribute `ref` supplied to `React.Fragment`."),be(null))}}var mr={};function vr(a,f,h,y,E,j){{var _=fe(a);if(!_){var x="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z=la(E);Z?x+=Z:x+=dr();var $;a===null?$="null":dt(a)?$="array":a!==void 0&&a.$$typeof===e?($="<"+(M(a.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):$=typeof a,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,x)}var I=ca(a,f,h,E,j);if(I==null)return I;if(_){var ee=f.children;if(ee!==void 0)if(y)if(dt(ee)){for(var ye=0;ye<ee.length;ye++)pr(ee[ye],a);Object.freeze&&Object.freeze(ee)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else pr(ee,a)}if(Ne.call(f,"key")){var he=M(a),J=Object.keys(f).filter(function(ba){return ba!=="key"}),vt=J.length>0?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}";if(!mr[he+vt]){var va=J.length>0?"{"+J.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,at,ue,Kn,ue),tr[ue+at]=!0}}return a===n?Bn(I):Un(I),I}}function Wn(a,f,h){return rr(a,f,h,!0)}function Zn(a,f,h){return rr(a,f,h,!1)}var qn=Zn,Gn=Wn;me.Fragment=n,me.jsx=qn,me.jsxs=Gn}()),me}process.env.NODE_ENV==="production"?Me.exports=sr():Me.exports=ir();var m=Me.exports;class or{constructor(){v(this,"add",function(e,t){let n,s,i,o;try{n=e.toString().split(".")[1].length}catch{n=0}try{s=t.toString().split(".")[1].length}catch{s=0}if(o=Math.abs(n-s),i=Math.pow(10,Math.max(n,s)),o>0){let c=Math.pow(10,o);n>s?(e=Number(e.toString().replace(".","")),t=Number(t.toString().replace(".",""))*c):(e=Number(e.toString().replace(".",""))*c,t=Number(t.toString().replace(".","")))}else e=Number(e==null?void 0:e.toString().replace(".","")),t=Number(t==null?void 0:t.toString().replace(".",""));return(e+t)/i});v(this,"sub",function(e,t){let n,s,i,o;try{n=e.toString().split(".")[1].length}catch{n=0}try{s=t.toString().split(".")[1].length}catch{s=0}return i=Math.pow(10,Math.max(n,s)),o=n>=s?n:s,Number(((e*i-t*i)/i).toFixed(o))});v(this,"mul",function(e,t){let n=0,s=e.toString(),i=t.toString();try{n+=s.split(".")[1].length}catch{}try{n+=i.split(".")[1].length}catch{}return Number(s.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)});v(this,"div",function(e,t){let n=0,s=0,i,o;try{n=e.toString().split(".")[1].length}catch{}try{s=t.toString().split(".")[1].length}catch{}return i=Number(e.toString().replace(".","")),o=Number(t.toString().replace(".","")),i/o*Math.pow(10,s-n)})}}const cr=new or,Ce=class Ce{constructor(){v(this,"callbacks",[]);v(this,"pending",!1);v(this,"timerFunc");this.timerFunc=this.determineTimerFunc()}determineTimerFunc(){if(typeof Promise<"u"){const e=Promise.resolve();return()=>e.then(this.flushCallbacks.bind(this))}if(typeof MutationObserver<"u"&&typeof window<"u"){let e=1;const t=new MutationObserver(this.flushCallbacks.bind(this)),n=document.createTextNode(String(e));return t.observe(n,{characterData:!0}),()=>{e=(e+1)%2,n.data=String(e)}}return()=>setTimeout(this.flushCallbacks.bind(this),0)}flushCallbacks(){this.pending=!1;const e=this.callbacks.slice(0);this.callbacks.length=0;for(let t=0;t<e.length;t++)e[t]()}nextTick(e,t){let n;if(this.callbacks.push(()=>{if(e)try{e.call(t)}catch(s){console.error("Error in nextTick:",s)}else n&&n()}),this.pending||(this.pending=!0,this.timerFunc()),!e&&typeof Promise<"u")return new Promise(s=>{n=s})}static nextTick(e,t){return Ce.instance.nextTick(e,t)}static get instance(){return this._instance||(this._instance=new Ce),this._instance}};v(Ce,"_instance");let ve=Ce;const lr=ve.instance.nextTick.bind(ve.instance),ur=()=>{},be=(r,e)=>{const t=r;let n=r;if(e.includes(" ")){n="";const s=e==null?void 0:e.split(" ");for(const i of s)n+=` ${t}-${i}`}else e&&(n=`${r}-${e}`);return n},fr=(r,e)=>{const t=e==null?void 0:e.split(".");let n=r;for(const s of t)n=n[s];return n},ot=r=>{for(const e in r)r[e]===null&&delete r[e];return r},Ie=(r,e)=>{let t=null;return(...n)=>{t&&clearTimeout(t),t=setTimeout(()=>{r(...n)},e)}},dr=(r,e)=>{let t=null,n=0;return(...s)=>{const i=Date.now();t?i-n>=e&&(r(...s),n=i):(r(...s),n=i,t=setTimeout(()=>{t=null},e))}};class hr{static isValid(e){return/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/i.test(e)}static compare(e,t){if(!this.isValid(e)||!this.isValid(t))throw new Error("Invalid version format");const n=u=>u.replace(/^v/,"").split(/[-+]/)[0].split("."),s=n(e),i=n(t);for(let u=0;u<3;u++){const l=parseInt(s[u]||"0",10),g=parseInt(i[u]||"0",10);if(l>g)return 1;if(l<g)return-1}const o=e.match(/-(.+)/),c=t.match(/-(.+)/);return o&&!c?-1:!o&&c?1:o&&c?o[1].localeCompare(c[1]):0}static satisfies(e,t){if(!this.isValid(e))return!1;const n=/([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g,s=t.match(n);return!s||s.length===0?!1:s.every(i=>{const o=i.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);if(!o)return!1;const c=o[1]||"==",u=o[2];if(!this.isValid(u))return!1;const l=this.compare(e,u);switch(c){case">":return l>0;case">=":return l>=0;case"<":return l<0;case"<=":return l<=0;case"^":return this.caretRange(e,u);case"~":return this.tildeRange(e,u);case"=":case"==":default:return l===0}})}static caretRange(e,t){const n=c=>c.replace(/^v/,"").split(/[-+]/)[0].split("."),s=n(e),i=n(t);let o=0;for(let c=0;c<i.length;c++)if(parseInt(i[c],10)!==0){o=c;break}for(let c=0;c<=o;c++){const u=parseInt(s[c]||"0",10),l=parseInt(i[c]||"0",10);if(u!==l)return!1}return this.compare(e,t)>=0}static tildeRange(e,t){const n=u=>u.replace(/^v/,"").split(/[-+]/)[0].split("."),s=n(e),i=n(t);for(let u=0;u<i.length-1;u++){const l=parseInt(s[u]||"0",10),g=parseInt(i[u]||"0",10);if(l!==g)return!1}const o=parseInt(s[i.length-1]||"0",10),c=parseInt(i[i.length-1]||"0",10);return o>=c}static getMajor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[0],10)}static getMinor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[1]||"0",10)}static getPatch(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[2]||"0",10)}static getPrerelease(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/-([^+]+)/);return t?t[1]:null}static getBuildMetadata(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/\+([^]+)/);return t?t[1]:null}}const ct=p.createContext({theme:{cssVar:!0,algorithm:[C.theme.defaultAlgorithm]}}),gr=ct.Provider;function lt(){return p.useContext(ct)}function se(r){const{theme:e}=lt();return m.jsx(C.ConfigProvider,{theme:e,children:r.children})}const ut=(r="")=>be("items-row",r),ft=r=>r.items?m.jsx(se,{children:m.jsx("div",{className:`${ut()} ${r.className||""}`,style:r.style,children:(r.items||[]).map((e,t)=>{const n=`${ut("item")} ${e.className}`;return e.render?m.jsx("span",{className:n,children:e.render()},t):m.jsx(C.Button,{className:n,...e.btnProps,type:e.type||"primary",onClick:e.onClick,children:e.label},e.label)})})}):null,ea="",ye=(r="")=>be("m-breadcrumb",r),pr=r=>{const{routes:e,customItems:t,style:n,className:s,offsetTop:i=64,mainAppBaseUrl:o,microAppName:c}=r,u=H.useRef(null),l=H.useCallback(()=>{var d,y;(y=(d=u.current)==null?void 0:d.updatePosition)==null||y.call(d)},[]);H.useEffect(()=>(window.addEventListener("scroll",l,!0),()=>window.removeEventListener("scroll",l)),[l]);const g=H.useCallback(d=>{if(!d)return"";const y=d.replace(/^\/+/,"");return`/${[o==null?void 0:o.replace(/\/+$/,""),c==null?void 0:c.replace(/\/+$/,""),y].filter(Boolean).join("/")}`},[o,c]);return m.jsx(se,{children:m.jsx("div",{className:`${ye()} ${s||""}`,style:n,children:m.jsx(C.Affix,{ref:u,offsetTop:i,children:m.jsxs(C.Card,{className:ye("container"),rootClassName:ye("body"),variant:"borderless",children:[m.jsx(C.Breadcrumb,{className:ye("inner-breadcrumb"),style:{fontSize:"18px"},children:e==null?void 0:e.map(d=>m.jsx(C.Breadcrumb.Item,{children:d.url?m.jsx("a",{href:`#${g(d.url)}`,children:d.name}):d.name},d.url||d.name))}),m.jsx("div",{className:ye("custom-item-wrapper"),children:m.jsx(ft,{items:t})})]})})})})},dt=r=>{const{data:e,title:t,column:n=3,lineHeight:s,align:i="left",itemLayout:o,colon:c=!0,bordered:u=!1,style:l,className:g,labelStyle:d,contentStyle:y}=r,k={...s?{lineHeight:`${s}px`}:{},textAlign:i,...o!=null&&o.label?{width:`${o.label}px`}:{},...d},A={...s?{lineHeight:`${s}px`}:{},...o!=null&&o.value?{width:`${o.value}px`}:{},...y};return m.jsx(se,{children:m.jsx(C.Descriptions,{title:t,column:n,colon:c,bordered:u,style:l,className:g,labelStyle:k,contentStyle:A,children:e.map((D,V)=>{var N;return m.jsx(C.Descriptions.Item,{label:D.label,span:D.span,children:D.value||"-"},((N=D.label)==null?void 0:N.toString())||V)})})})};dt.displayName="MDescriptions";const ta="";var mr=p.createContext({});const ht=mr;function fe(){return fe=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},fe.apply(null,arguments)}function vr(r){if(Array.isArray(r))return r}function br(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,s,i,o,c=[],u=!0,l=!1;try{if(i=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=i.call(t)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(g){l=!0,s=g}finally{try{if(!u&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw s}}return c}}function gt(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function yr(r,e){if(r){if(typeof r=="string")return gt(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?gt(r,e):void 0}}function Sr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pt(r,e){return vr(r)||br(r,e)||yr(r,e)||Sr()}function ie(r){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(r)}function wr(r,e){if(ie(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(ie(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Cr(r){var e=wr(r,"string");return ie(e)=="symbol"?e:e+""}function B(r,e,t){return(e=Cr(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function xr(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)!==-1)continue;t[n]=r[n]}return t}function mt(r,e){if(r==null)return{};var t,n,s=xr(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(r,t)&&(s[t]=r[t])}return s}var vt={exports:{}};/*!
32
+ <%s key={someKey} {...props} />`,vt,he,va,he),mr[he+vt]=!0}}return a===r?da(I):fa(I),I}}function ha(a,f,h){return vr(a,f,h,!0)}function ga(a,f,h){return vr(a,f,h,!1)}var pa=ga,ma=ha;we.Fragment=r,we.jsx=pa,we.jsxs=ma}()),we}process.env.NODE_ENV==="production"?Be.exports=_r():Be.exports=Er();var m=Be.exports;const z=class z{static getDecimalLength(e){const t=e.toString(),r=t.indexOf(".");return r===-1?0:t.length-r-1}static toInteger(e,t){const r=e.toString().replace(".","");return Number(r)*Math.pow(10,t)}add(...e){return e.length<2?e[0]||0:e.reduce((t,r)=>{const s=z.getDecimalLength(t),i=z.getDecimalLength(r),o=Math.max(s,i),l=Math.pow(10,o),u=z.toInteger(t,o-s),c=z.toInteger(r,o-i);return(u+c)/l})}sub(e,t){const r=z.getDecimalLength(e),s=z.getDecimalLength(t),i=Math.max(r,s),o=Math.pow(10,i);return Number(((e*o-t*o)/o).toFixed(i))}mul(...e){return e.length<2?e[0]||0:e.reduce((t,r)=>{const s=z.getDecimalLength(t)+z.getDecimalLength(r),i=Number(t.toString().replace(".","")),o=Number(r.toString().replace(".",""));return i*o/Math.pow(10,s)})}div(e,t){if(t===0)throw new Error("除数不能为零");const r=1+Number.EPSILON,s=z.getDecimalLength(e),i=z.getDecimalLength(t),o=Number(e.toString().replace(".",""))*r,l=Number(t.toString().replace(".",""))*r;return o/l*Math.pow(10,i-s)}round(e,t=0){const r=Math.pow(10,t);return Math.round(e*r)/r}percent(e,t){return this.div(this.mul(e,t),100)}average(...e){return e.length===0?0:this.div(e.reduce((t,r)=>this.add(t,r)),e.length)}approxEqual(e,t,r=1e-10){return Math.abs(this.sub(e,t))<r}ln(e,t=10){if(e<=0)throw new Error("对数函数的输入必须为正数");if(e===1)return 0;let r=0;const s=Math.pow(10,-t-1);let i=this.div(this.sub(e,1),this.add(e,1));const o=this.mul(i,i);let l=i,u=1;do r=this.add(r,this.div(l,u)),l=this.mul(l,o),u+=2;while(Math.abs(l)>s);return this.round(this.mul(2,r),t)}exp(e,t=10){if(e===0)return 1;if(e===1)return Math.E;let r=1,s=1;const i=Math.pow(10,-t-1);let o=1,l=0;do l=r,s=this.div(this.mul(s,e),o),r=this.add(r,s),o++;while(Math.abs(s)>i&&!this.approxEqual(r,l,i));return this.round(r,t)}sqrt(e,t=10){if(e<0)throw new Error("负数平方根需使用复数计算");if(e===0)return 0;let r=e/2;const s=Math.pow(10,-t-1);do r=this.div(this.add(r,this.div(e,r)),2);while(Math.abs(this.sub(this.mul(r,r),e))>s);return this.round(r,t)}safeLog(e,t={}){const{safe:r=!0,replaceNeg:s=NaN,replaceZero:i=-1/0}=t;if(e>0)return Math.log(e);if(!r)throw new Error("Invalid input");return e===0?i:s}factorial(e){if(!Number.isInteger(e)||e<0)return NaN;if(e<0)return NaN;if(e>Number.MAX_SAFE_INTEGER){let r=BigInt(1);for(let s=2;s<=e;s++)r*=BigInt(s);return Number(r.toString())}if(e>170)return 1/0;if(z.factorialCache.has(e))return z.factorialCache.get(e);let t=1;for(let r=2;r<=e;r++){if(z.factorialCache.has(r)){t=z.factorialCache.get(r);continue}t=this.mul(t,r),z.factorialCache.set(r,t)}return t}hypFunc(e,t,r=10){const s=this.exp(e,r+2),i=this.exp(-e,r+2);switch(t){case"sinh":return this.round(this.div(this.sub(s,i),2),r);case"cosh":return this.round(this.div(this.add(s,i),2),r);case"tanh":return this.round(this.div(this.sub(s,i),this.add(s,i)),r);default:throw new Error("不支持的函数类型")}}permComb(e,t,r){if(!Number.isInteger(e)||!Number.isInteger(t)||t>e||t<0)return NaN;let s=1;for(let i=0;i<t;i++)s=this.mul(s,e-i),r==="combination"&&(s=this.div(s,i+1));return s}gcd(e,t){for(e=Math.abs(e),t=Math.abs(t);t!==0;){const r=t;t=e%t,e=r}return e}lcm(e,t){return this.div(this.mul(e,t),this.gcd(e,t))}};v(z,"factorialCache",new Map);let Ue=z;const Rr=new Ue,je=class je{constructor(){v(this,"callbacks",[]);v(this,"pending",!1);v(this,"timerFunc");this.timerFunc=this.determineTimerFunc()}determineTimerFunc(){if(typeof Promise<"u"){const e=Promise.resolve();return()=>e.then(this.flushCallbacks.bind(this))}if(typeof MutationObserver<"u"&&typeof window<"u"){let e=1;const t=new MutationObserver(this.flushCallbacks.bind(this)),r=document.createTextNode(String(e));return t.observe(r,{characterData:!0}),()=>{e=(e+1)%2,r.data=String(e)}}return()=>setTimeout(this.flushCallbacks.bind(this),0)}flushCallbacks(){this.pending=!1;const e=this.callbacks.slice(0);this.callbacks.length=0;for(let t=0;t<e.length;t++)e[t]()}nextTick(e,t){let r;if(this.callbacks.push(()=>{if(e)try{e.call(t)}catch(s){console.error("Error in nextTick:",s)}else r&&r()}),this.pending||(this.pending=!0,this.timerFunc()),!e&&typeof Promise<"u")return new Promise(s=>{r=s})}static nextTick(e,t){return je.instance.nextTick(e,t)}static get instance(){return this._instance||(this._instance=new je),this._instance}};v(je,"_instance");let Se=je;const Or=Se.instance.nextTick.bind(Se.instance);var ge={},We,qe,xe=Sr.default;if(process.env.NODE_ENV==="production")qe=ge.createRoot=xe.createRoot,We=ge.hydrateRoot=xe.hydrateRoot;else{var ke=xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;qe=ge.createRoot=function(n,e){ke.usingClientEntryPoint=!0;try{return xe.createRoot(n,e)}finally{ke.usingClientEntryPoint=!1}},We=ge.hydrateRoot=function(n,e,t){ke.usingClientEntryPoint=!0;try{return xe.hydrateRoot(n,e,t)}finally{ke.usingClientEntryPoint=!1}}}const jr=wr({__proto__:null,get createRoot(){return qe},default:ge,get hydrateRoot(){return We}},[ge]),{createRoot:Tr}=jr;let ae=null,oe=null;function Pr(){return ae||(ae=document.createElement("div"),document.body.appendChild(ae)),ae}function Ct(n,e){const t=Pr();let r={open:!0,...e,onClosed:e.onClosed||(c=>{u(c)})};if(!oe)try{oe=Tr(t)}catch(c){return console.error("Failed to create root:",c),{destroy:()=>{},update:()=>{}}}const s=()=>{oe&&(oe.unmount(),oe=null),ae&&ae.parentNode&&(ae.parentNode.removeChild(ae),ae=null)},i=c=>{typeof r.onClosed=="function"&&r.onClosed(c),s()},o=c=>{oe&&oe.render(m.jsx(n,{...c}))},l=c=>{r=typeof c=="function"?c(r):{...r,...c},o(r)},u=c=>{r.open?(r={...r,open:!1,onClosed:g=>{e.onClosed&&e.onClosed(g||c),i(g||c)}},o(r)):console.warn("Modal is already closed.")};return o(r),{destroy:u,update:l}}const Nr=()=>{},_e=(n,e)=>{const t=n;let r=n;if(e.includes(" ")){r="";const s=e==null?void 0:e.split(" ");for(const i of s)r+=` ${t}-${i}`}else e&&(r=`${n}-${e}`);return r},Dr=(n,e)=>{const t=e==null?void 0:e.split(".");let r=n;for(const s of t)r=r[s];return r},wt=n=>{for(const e in n)n[e]===null&&delete n[e];return n},Ze=(n,e)=>{let t=null;return(...r)=>{t&&clearTimeout(t),t=setTimeout(()=>{n(...r)},e)}},kr=(n,e)=>{let t=null,r=0;return(...s)=>{const i=Date.now();t?i-r>=e&&(n(...s),r=i):(n(...s),r=i,t=setTimeout(()=>{t=null},e))}};class Ar{static isValid(e){return/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/i.test(e)}static compare(e,t){if(!this.isValid(e)||!this.isValid(t))throw new Error("Invalid version format");const r=u=>u.replace(/^v/,"").split(/[-+]/)[0].split("."),s=r(e),i=r(t);for(let u=0;u<3;u++){const c=parseInt(s[u]||"0",10),g=parseInt(i[u]||"0",10);if(c>g)return 1;if(c<g)return-1}const o=e.match(/-(.+)/),l=t.match(/-(.+)/);return o&&!l?-1:!o&&l?1:o&&l?o[1].localeCompare(l[1]):0}static satisfies(e,t){if(!this.isValid(e))return!1;const r=/([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g,s=t.match(r);return!s||s.length===0?!1:s.every(i=>{const o=i.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);if(!o)return!1;const l=o[1]||"==",u=o[2];if(!this.isValid(u))return!1;const c=this.compare(e,u);switch(l){case">":return c>0;case">=":return c>=0;case"<":return c<0;case"<=":return c<=0;case"^":return this.caretRange(e,u);case"~":return this.tildeRange(e,u);case"=":case"==":default:return c===0}})}static caretRange(e,t){const r=l=>l.replace(/^v/,"").split(/[-+]/)[0].split("."),s=r(e),i=r(t);let o=0;for(let l=0;l<i.length;l++)if(parseInt(i[l],10)!==0){o=l;break}for(let l=0;l<=o;l++){const u=parseInt(s[l]||"0",10),c=parseInt(i[l]||"0",10);if(u!==c)return!1}return this.compare(e,t)>=0}static tildeRange(e,t){const r=u=>u.replace(/^v/,"").split(/[-+]/)[0].split("."),s=r(e),i=r(t);for(let u=0;u<i.length-1;u++){const c=parseInt(s[u]||"0",10),g=parseInt(i[u]||"0",10);if(c!==g)return!1}const o=parseInt(s[i.length-1]||"0",10),l=parseInt(i[i.length-1]||"0",10);return o>=l}static getMajor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[0],10)}static getMinor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[1]||"0",10)}static getPatch(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[2]||"0",10)}static getPrerelease(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/-([^+]+)/);return t?t[1]:null}static getBuildMetadata(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/\+([^]+)/);return t?t[1]:null}}const St=p.createContext({theme:{cssVar:!0,algorithm:[S.theme.defaultAlgorithm]}}),Mr=St.Provider;function xt(){return p.useContext(St)}function ce(n){const{theme:e}=xt();return m.jsx(S.ConfigProvider,{theme:e,children:n.children})}const _t=(n="")=>_e("items-row",n),Et=n=>n.items?m.jsx(ce,{children:m.jsx("div",{className:`${_t()} ${n.className||""}`,style:n.style,children:(n.items||[]).map((e,t)=>{const r=`${_t("item")} ${e.className}`;return e.render?m.jsx("span",{className:r,children:e.render()},t):m.jsx(S.Button,{className:r,...e.btnProps,type:e.type||"primary",onClick:e.onClick,children:e.label},e.label)})})}):null,wa="",Ee=(n="")=>_e("m-breadcrumb",n),$r=n=>{const{routes:e,customItems:t,style:r,className:s,offsetTop:i=64,mainAppBaseUrl:o,microAppName:l}=n,u=L.useRef(null),c=L.useCallback(()=>{var d,C;(C=(d=u.current)==null?void 0:d.updatePosition)==null||C.call(d)},[]);L.useEffect(()=>(window.addEventListener("scroll",c,!0),()=>window.removeEventListener("scroll",c)),[c]);const g=L.useCallback(d=>{if(!d)return"";const C=d.replace(/^\/+/,"");return`/${[o==null?void 0:o.replace(/\/+$/,""),l==null?void 0:l.replace(/\/+$/,""),C].filter(Boolean).join("/")}`},[o,l]);return m.jsx(ce,{children:m.jsx("div",{className:`${Ee()} ${s||""}`,style:r,children:m.jsx(S.Affix,{ref:u,offsetTop:i,children:m.jsxs(S.Card,{className:Ee("container"),rootClassName:Ee("body"),variant:"borderless",children:[m.jsx(S.Breadcrumb,{className:Ee("inner-breadcrumb"),style:{fontSize:"18px"},children:e==null?void 0:e.map(d=>m.jsx(S.Breadcrumb.Item,{children:d.url?m.jsx("a",{href:`#${g(d.url)}`,children:d.name}):d.name},d.url||d.name))}),m.jsx("div",{className:Ee("custom-item-wrapper"),children:m.jsx(Et,{items:t})})]})})})})},Rt=n=>{const{data:e,title:t,column:r=3,lineHeight:s,align:i="left",itemLayout:o,colon:l=!0,bordered:u=!1,style:c,className:g,labelStyle:d,contentStyle:C}=n,N={...s?{lineHeight:`${s}px`}:{},textAlign:i,...o!=null&&o.label?{width:`${o.label}px`}:{},...d},k={...s?{lineHeight:`${s}px`}:{},...o!=null&&o.value?{width:`${o.value}px`}:{},...C};return m.jsx(ce,{children:m.jsx(S.Descriptions,{title:t,column:r,colon:l,bordered:u,style:c,className:g,labelStyle:N,contentStyle:k,children:e.map((A,F)=>{var D;return m.jsx(S.Descriptions.Item,{label:A.label,span:A.span,children:A.value||"-"},((D=A.label)==null?void 0:D.toString())||F)})})})};Rt.displayName="MDescriptions";const Sa="";var Ir=p.createContext({});const Ot=Ir;function pe(){return pe=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},pe.apply(null,arguments)}function Lr(n){if(Array.isArray(n))return n}function Yr(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,s,i,o,l=[],u=!0,c=!1;try{if(i=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=i.call(t)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(g){c=!0,s=g}finally{try{if(!u&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw s}}return l}}function jt(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function Hr(n,e){if(n){if(typeof n=="string")return jt(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?jt(n,e):void 0}}function zr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tt(n,e){return Lr(n)||Yr(n,e)||Hr(n,e)||zr()}function le(n){"@babel/helpers - typeof";return le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(n)}function Vr(n,e){if(le(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(le(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Fr(n){var e=Vr(n,"string");return le(e)=="symbol"?e:e+""}function W(n,e,t){return(e=Fr(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Br(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function Pt(n,e){if(n==null)return{};var t,r,s=Br(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(n,t)&&(s[t]=n[t])}return s}var Nt={exports:{}};/*!
34
34
  Copyright (c) 2018 Jed Watson.
35
35
  Licensed under the MIT License (MIT), see
36
36
  http://jedwatson.github.io/classnames
37
- */(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var i="",o=0;o<arguments.length;o++){var c=arguments[o];c&&(i=s(i,n(c)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var c in i)e.call(i,c)&&i[c]&&(o=s(o,c));return o}function s(i,o){return o?i?i+" "+o:i+o:i}r.exports?(t.default=t,r.exports=t):window.classNames=t})()})(vt);var _r=vt.exports;const Er=ar(_r),z=Math.round;function He(r,e){const t=r.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)n[s]=e(n[s]||0,t[s]||"",s);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const bt=(r,e,t)=>t===0?r:r/100;function Se(r,e){const t=e||255;return r>t?t:r<0?0:r}class de{constructor(e){B(this,"isValid",!0),B(this,"r",0),B(this,"g",0),B(this,"b",0),B(this,"a",1),B(this,"_h",void 0),B(this,"_s",void 0),B(this,"_l",void 0),B(this,"_v",void 0),B(this,"_max",void 0),B(this,"_min",void 0),B(this,"_brightness",void 0);function t(n){return n[0]in e&&n[1]in e&&n[2]in e}if(e)if(typeof e=="string"){let s=function(i){return n.startsWith(i)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):s("rgb")?this.fromRgbString(n):s("hsl")?this.fromHslString(n):(s("hsv")||s("hsb"))&&this.fromHsvString(n)}else if(e instanceof de)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Se(e.r),this.g=Se(e.g),this.b=Se(e.b),this.a=typeof e.a=="number"?Se(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const t=e(this.r),n=e(this.g),s=e(this.b);return .2126*t+.7152*n+.0722*s}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=z(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/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(e=10){const t=this.getHue(),n=this.getSaturation();let s=this.getLightness()-e/100;return s<0&&(s=0),this._c({h:t,s:n,l:s,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let s=this.getLightness()+e/100;return s>1&&(s=1),this._c({h:t,s:n,l:s,a:this.a})}mix(e,t=50){const n=this._c(e),s=t/100,i=c=>(n[c]-this[c])*s+this[c],o={r:z(i("r")),g:z(i("g")),b:z(i("b")),a:z(i("a")*100)/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),s=i=>z((this[i]*this.a+t[i]*t.a*(1-this.a))/n);return this._c({r:s("r"),g:s("g"),b:s("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const s=(this.b||0).toString(16);if(e+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=z(this.a*255).toString(16);e+=i.length===2?i:"0"+i}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=z(this.getSaturation()*100),n=z(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}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(e,t,n){const s=this.clone();return s[e]=Se(t,n),s}_c(e){return new this.constructor(e)}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(e){const t=e.replace("#","");function n(s,i){return parseInt(t[s]+t[i||s],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:s}){if(this._h=e%360,this._s=t,this._l=n,this.a=typeof s=="number"?s:1,t<=0){const y=z(n*255);this.r=y,this.g=y,this.b=y}let i=0,o=0,c=0;const u=e/60,l=(1-Math.abs(2*n-1))*t,g=l*(1-Math.abs(u%2-1));u>=0&&u<1?(i=l,o=g):u>=1&&u<2?(i=g,o=l):u>=2&&u<3?(o=l,c=g):u>=3&&u<4?(o=g,c=l):u>=4&&u<5?(i=g,c=l):u>=5&&u<6&&(i=l,c=g);const d=n-l/2;this.r=z((i+d)*255),this.g=z((o+d)*255),this.b=z((c+d)*255)}fromHsv({h:e,s:t,v:n,a:s}){this._h=e%360,this._s=t,this._v=n,this.a=typeof s=="number"?s:1;const i=z(n*255);if(this.r=i,this.g=i,this.b=i,t<=0)return;const o=e/60,c=Math.floor(o),u=o-c,l=z(n*(1-t)*255),g=z(n*(1-t*u)*255),d=z(n*(1-t*(1-u))*255);switch(c){case 0:this.g=d,this.b=l;break;case 1:this.r=g,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=g;break;case 4:this.r=d,this.g=l;break;case 5:default:this.g=l,this.b=g;break}}fromHsvString(e){const t=He(e,bt);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=He(e,bt);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=He(e,(n,s)=>s.includes("%")?z(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var je=2,yt=.16,Rr=.05,jr=.05,Or=.15,St=5,wt=4,Pr=[{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 Ct(r,e,t){var n;return Math.round(r.h)>=60&&Math.round(r.h)<=240?n=t?Math.round(r.h)-je*e:Math.round(r.h)+je*e:n=t?Math.round(r.h)+je*e:Math.round(r.h)-je*e,n<0?n+=360:n>=360&&(n-=360),n}function xt(r,e,t){if(r.h===0&&r.s===0)return r.s;var n;return t?n=r.s-yt*e:e===wt?n=r.s+yt:n=r.s+Rr*e,n>1&&(n=1),t&&e===St&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function _t(r,e,t){var n;return t?n=r.v+jr*e:n=r.v-Or*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Tr(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=new de(r),s=n.toHsv(),i=St;i>0;i-=1){var o=new de({h:Ct(s,i,!0),s:xt(s,i,!0),v:_t(s,i,!0)});t.push(o)}t.push(n);for(var c=1;c<=wt;c+=1){var u=new de({h:Ct(s,c),s:xt(s,c),v:_t(s,c)});t.push(u)}return e.theme==="dark"?Pr.map(function(l){var g=l.index,d=l.amount;return new de(e.backgroundColor||"#141414").mix(t[g],d).toHexString()}):t.map(function(l){return l.toHexString()})}var Ye=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ye.primary=Ye[5];function Et(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function ee(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Et(Object(t),!0).forEach(function(n){B(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Et(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function kr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nr(r,e){if(!r)return!1;if(r.contains)return r.contains(e);for(var t=e;t;){if(t===r)return!0;t=t.parentNode}return!1}var Rt="data-rc-order",jt="data-rc-priority",Ar="rc-util-key",ze=new Map;function Ot(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.mark;return e?e.startsWith("data-")?e:"data-".concat(e):Ar}function Le(r){if(r.attachTo)return r.attachTo;var e=document.querySelector("head");return e||document.body}function Dr(r){return r==="queue"?"prependQueue":r?"prepend":"append"}function Ve(r){return Array.from((ze.get(r)||r).children).filter(function(e){return e.tagName==="STYLE"})}function Pt(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!kr())return null;var t=e.csp,n=e.prepend,s=e.priority,i=s===void 0?0:s,o=Dr(n),c=o==="prependQueue",u=document.createElement("style");u.setAttribute(Rt,o),c&&i&&u.setAttribute(jt,"".concat(i)),t!=null&&t.nonce&&(u.nonce=t==null?void 0:t.nonce),u.innerHTML=r;var l=Le(e),g=l.firstChild;if(n){if(c){var d=(e.styles||Ve(l)).filter(function(y){if(!["prepend","prependQueue"].includes(y.getAttribute(Rt)))return!1;var k=Number(y.getAttribute(jt)||0);return i>=k});if(d.length)return l.insertBefore(u,d[d.length-1].nextSibling),u}l.insertBefore(u,g)}else l.appendChild(u);return u}function $r(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Le(e);return(e.styles||Ve(t)).find(function(n){return n.getAttribute(Ot(e))===r})}function Mr(r,e){var t=ze.get(r);if(!t||!Nr(document,t)){var n=Pt("",e),s=n.parentNode;ze.set(r,s),r.removeChild(n)}}function Ir(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Le(t),s=Ve(n),i=ee(ee({},t),{},{styles:s});Mr(n,i);var o=$r(e,i);if(o){var c,u;if((c=i.csp)!==null&&c!==void 0&&c.nonce&&o.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var l;o.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==r&&(o.innerHTML=r),o}var g=Pt(r,i);return g.setAttribute(Ot(i),e),g}function Tt(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}function Hr(r){return Tt(r)instanceof ShadowRoot}function Yr(r){return Hr(r)?Tt(r):null}var Fe={},Ue=[],zr=function(e){Ue.push(e)};function Lr(r,e){if(process.env.NODE_ENV!=="production"&&!r&&console!==void 0){var t=Ue.reduce(function(n,s){return s(n??"","warning")},e);t&&console.error("Warning: ".concat(t))}}function Vr(r,e){if(process.env.NODE_ENV!=="production"&&!r&&console!==void 0){var t=Ue.reduce(function(n,s){return s(n??"","note")},e);t&&console.warn("Note: ".concat(t))}}function Fr(){Fe={}}function kt(r,e,t){!e&&!Fe[t]&&(r(!1,t),Fe[t]=!0)}function Oe(r,e){kt(Lr,r,e)}function Ur(r,e){kt(Vr,r,e)}Oe.preMessage=zr,Oe.resetWarned=Fr,Oe.noteOnce=Ur;function Br(r){return r.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function Wr(r,e){Oe(r,"[@ant-design/icons] ".concat(e))}function Nt(r){return ie(r)==="object"&&typeof r.name=="string"&&typeof r.theme=="string"&&(ie(r.icon)==="object"||typeof r.icon=="function")}function At(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(r).reduce(function(e,t){var n=r[t];switch(t){case"class":e.className=n,delete e.class;break;default:delete e[t],e[Br(t)]=n}return e},{})}function Be(r,e,t){return t?H.default.createElement(r.tag,ee(ee({key:e},At(r.attrs)),t),(r.children||[]).map(function(n,s){return Be(n,"".concat(e,"-").concat(r.tag,"-").concat(s))})):H.default.createElement(r.tag,ee({key:e},At(r.attrs)),(r.children||[]).map(function(n,s){return Be(n,"".concat(e,"-").concat(r.tag,"-").concat(s))}))}function Dt(r){return Tr(r)[0]}function $t(r){return r?Array.isArray(r)?r:[r]:[]}var Zr=`
37
+ */(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var i="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(i=s(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var l in i)e.call(i,l)&&i[l]&&(o=s(o,l));return o}function s(i,o){return o?i?i+" "+o:i+o:i}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(Nt);var Ur=Nt.exports;const Wr=xr(Ur),H=Math.round;function Ge(n,e){const t=n.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=t.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)r[s]=e(r[s]||0,t[s]||"",s);return t[3]?r[3]=t[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Dt=(n,e,t)=>t===0?n:n/100;function Re(n,e){const t=e||255;return n>t?t:n<0?0:n}class me{constructor(e){W(this,"isValid",!0),W(this,"r",0),W(this,"g",0),W(this,"b",0),W(this,"a",1),W(this,"_h",void 0),W(this,"_s",void 0),W(this,"_l",void 0),W(this,"_v",void 0),W(this,"_max",void 0),W(this,"_min",void 0),W(this,"_brightness",void 0);function t(r){return r[0]in e&&r[1]in e&&r[2]in e}if(e)if(typeof e=="string"){let s=function(i){return r.startsWith(i)};const r=e.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):s("rgb")?this.fromRgbString(r):s("hsl")?this.fromHslString(r):(s("hsv")||s("hsb"))&&this.fromHsvString(r)}else if(e instanceof me)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Re(e.r),this.g=Re(e.g),this.b=Re(e.b),this.a=typeof e.a=="number"?Re(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const t=e(this.r),r=e(this.g),s=e(this.b);return .2126*t+.7152*r+.0722*s}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=H(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/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(e=10){const t=this.getHue(),r=this.getSaturation();let s=this.getLightness()-e/100;return s<0&&(s=0),this._c({h:t,s:r,l:s,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let s=this.getLightness()+e/100;return s>1&&(s=1),this._c({h:t,s:r,l:s,a:this.a})}mix(e,t=50){const r=this._c(e),s=t/100,i=l=>(r[l]-this[l])*s+this[l],o={r:H(i("r")),g:H(i("g")),b:H(i("b")),a:H(i("a")*100)/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),s=i=>H((this[i]*this.a+t[i]*t.a*(1-this.a))/r);return this._c({r:s("r"),g:s("g"),b:s("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const s=(this.b||0).toString(16);if(e+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=H(this.a*255).toString(16);e+=i.length===2?i:"0"+i}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=H(this.getSaturation()*100),r=H(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${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(e,t,r){const s=this.clone();return s[e]=Re(t,r),s}_c(e){return new this.constructor(e)}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(e){const t=e.replace("#","");function r(s,i){return parseInt(t[s]+t[i||s],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:s}){if(this._h=e%360,this._s=t,this._l=r,this.a=typeof s=="number"?s:1,t<=0){const C=H(r*255);this.r=C,this.g=C,this.b=C}let i=0,o=0,l=0;const u=e/60,c=(1-Math.abs(2*r-1))*t,g=c*(1-Math.abs(u%2-1));u>=0&&u<1?(i=c,o=g):u>=1&&u<2?(i=g,o=c):u>=2&&u<3?(o=c,l=g):u>=3&&u<4?(o=g,l=c):u>=4&&u<5?(i=g,l=c):u>=5&&u<6&&(i=c,l=g);const d=r-c/2;this.r=H((i+d)*255),this.g=H((o+d)*255),this.b=H((l+d)*255)}fromHsv({h:e,s:t,v:r,a:s}){this._h=e%360,this._s=t,this._v=r,this.a=typeof s=="number"?s:1;const i=H(r*255);if(this.r=i,this.g=i,this.b=i,t<=0)return;const o=e/60,l=Math.floor(o),u=o-l,c=H(r*(1-t)*255),g=H(r*(1-t*u)*255),d=H(r*(1-t*(1-u))*255);switch(l){case 0:this.g=d,this.b=c;break;case 1:this.r=g,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=g;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=g;break}}fromHsvString(e){const t=Ge(e,Dt);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Ge(e,Dt);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Ge(e,(r,s)=>s.includes("%")?H(r/100*255):r);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Ae=2,kt=.16,qr=.05,Zr=.05,Gr=.15,At=5,Mt=4,Kr=[{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 $t(n,e,t){var r;return Math.round(n.h)>=60&&Math.round(n.h)<=240?r=t?Math.round(n.h)-Ae*e:Math.round(n.h)+Ae*e:r=t?Math.round(n.h)+Ae*e:Math.round(n.h)-Ae*e,r<0?r+=360:r>=360&&(r-=360),r}function It(n,e,t){if(n.h===0&&n.s===0)return n.s;var r;return t?r=n.s-kt*e:e===Mt?r=n.s+kt:r=n.s+qr*e,r>1&&(r=1),t&&e===At&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Lt(n,e,t){var r;return t?r=n.v+Zr*e:r=n.v-Gr*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Jr(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],r=new me(n),s=r.toHsv(),i=At;i>0;i-=1){var o=new me({h:$t(s,i,!0),s:It(s,i,!0),v:Lt(s,i,!0)});t.push(o)}t.push(r);for(var l=1;l<=Mt;l+=1){var u=new me({h:$t(s,l),s:It(s,l),v:Lt(s,l)});t.push(u)}return e.theme==="dark"?Kr.map(function(c){var g=c.index,d=c.amount;return new me(e.backgroundColor||"#141414").mix(t[g],d).toHexString()}):t.map(function(c){return c.toHexString()})}var Ke=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ke.primary=Ke[5];function Yt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,r)}return t}function te(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Yt(Object(t),!0).forEach(function(r){W(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Yt(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Xr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Qr(n,e){if(!n)return!1;if(n.contains)return n.contains(e);for(var t=e;t;){if(t===n)return!0;t=t.parentNode}return!1}var Ht="data-rc-order",zt="data-rc-priority",en="rc-util-key",Je=new Map;function Vt(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.mark;return e?e.startsWith("data-")?e:"data-".concat(e):en}function Xe(n){if(n.attachTo)return n.attachTo;var e=document.querySelector("head");return e||document.body}function tn(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function Qe(n){return Array.from((Je.get(n)||n).children).filter(function(e){return e.tagName==="STYLE"})}function Ft(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Xr())return null;var t=e.csp,r=e.prepend,s=e.priority,i=s===void 0?0:s,o=tn(r),l=o==="prependQueue",u=document.createElement("style");u.setAttribute(Ht,o),l&&i&&u.setAttribute(zt,"".concat(i)),t!=null&&t.nonce&&(u.nonce=t==null?void 0:t.nonce),u.innerHTML=n;var c=Xe(e),g=c.firstChild;if(r){if(l){var d=(e.styles||Qe(c)).filter(function(C){if(!["prepend","prependQueue"].includes(C.getAttribute(Ht)))return!1;var N=Number(C.getAttribute(zt)||0);return i>=N});if(d.length)return c.insertBefore(u,d[d.length-1].nextSibling),u}c.insertBefore(u,g)}else c.appendChild(u);return u}function rn(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Xe(e);return(e.styles||Qe(t)).find(function(r){return r.getAttribute(Vt(e))===n})}function nn(n,e){var t=Je.get(n);if(!t||!Qr(document,t)){var r=Ft("",e),s=r.parentNode;Je.set(n,s),n.removeChild(r)}}function an(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Xe(t),s=Qe(r),i=te(te({},t),{},{styles:s});nn(r,i);var o=rn(e,i);if(o){var l,u;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&o.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var c;o.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==n&&(o.innerHTML=n),o}var g=Ft(n,i);return g.setAttribute(Vt(i),e),g}function Bt(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}function sn(n){return Bt(n)instanceof ShadowRoot}function on(n){return sn(n)?Bt(n):null}var et={},tt=[],cn=function(e){tt.push(e)};function ln(n,e){if(process.env.NODE_ENV!=="production"&&!n&&console!==void 0){var t=tt.reduce(function(r,s){return s(r??"","warning")},e);t&&console.error("Warning: ".concat(t))}}function un(n,e){if(process.env.NODE_ENV!=="production"&&!n&&console!==void 0){var t=tt.reduce(function(r,s){return s(r??"","note")},e);t&&console.warn("Note: ".concat(t))}}function fn(){et={}}function Ut(n,e,t){!e&&!et[t]&&(n(!1,t),et[t]=!0)}function Me(n,e){Ut(ln,n,e)}function dn(n,e){Ut(un,n,e)}Me.preMessage=cn,Me.resetWarned=fn,Me.noteOnce=dn;function hn(n){return n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function gn(n,e){Me(n,"[@ant-design/icons] ".concat(e))}function Wt(n){return le(n)==="object"&&typeof n.name=="string"&&typeof n.theme=="string"&&(le(n.icon)==="object"||typeof n.icon=="function")}function qt(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(n).reduce(function(e,t){var r=n[t];switch(t){case"class":e.className=r,delete e.class;break;default:delete e[t],e[hn(t)]=r}return e},{})}function rt(n,e,t){return t?L.default.createElement(n.tag,te(te({key:e},qt(n.attrs)),t),(n.children||[]).map(function(r,s){return rt(r,"".concat(e,"-").concat(n.tag,"-").concat(s))})):L.default.createElement(n.tag,te({key:e},qt(n.attrs)),(n.children||[]).map(function(r,s){return rt(r,"".concat(e,"-").concat(n.tag,"-").concat(s))}))}function Zt(n){return Jr(n)[0]}function Gt(n){return n?Array.isArray(n)?n:[n]:[]}var pn=`
38
38
  .anticon {
39
39
  display: inline-flex;
40
40
  align-items: center;
@@ -89,6 +89,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
89
89
  transform: rotate(360deg);
90
90
  }
91
91
  }
92
- `,qr=function(e){var t=p.useContext(ht),n=t.csp,s=t.prefixCls,i=t.layer,o=Zr;s&&(o=o.replace(/anticon/g,s)),i&&(o="@layer ".concat(i,` {
92
+ `,mn=function(e){var t=p.useContext(Ot),r=t.csp,s=t.prefixCls,i=t.layer,o=pn;s&&(o=o.replace(/anticon/g,s)),i&&(o="@layer ".concat(i,` {
93
93
  `).concat(o,`
94
- }`)),p.useEffect(function(){var c=e.current,u=Yr(c);Ir(o,"@ant-design-icons",{prepend:!i,csp:n,attachTo:u})},[])},Gr=["icon","className","onClick","style","primaryColor","secondaryColor"],we={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Kr(r){var e=r.primaryColor,t=r.secondaryColor;we.primaryColor=e,we.secondaryColor=t||Dt(e),we.calculated=!!t}function Jr(){return ee({},we)}var Pe=function(e){var t=e.icon,n=e.className,s=e.onClick,i=e.style,o=e.primaryColor,c=e.secondaryColor,u=mt(e,Gr),l=H.useRef(),g=we;if(o&&(g={primaryColor:o,secondaryColor:c||Dt(o)}),qr(l),Wr(Nt(t),"icon should be icon definiton, but got ".concat(t)),!Nt(t))return null;var d=t;return d&&typeof d.icon=="function"&&(d=ee(ee({},d),{},{icon:d.icon(g.primaryColor,g.secondaryColor)})),Be(d.icon,"svg-".concat(d.name),ee(ee({className:n,onClick:s,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:l}))};Pe.displayName="IconReact",Pe.getTwoToneColors=Jr,Pe.setTwoToneColors=Kr;const We=Pe;function Mt(r){var e=$t(r),t=pt(e,2),n=t[0],s=t[1];return We.setTwoToneColors({primaryColor:n,secondaryColor:s})}function Xr(){var r=We.getTwoToneColors();return r.calculated?[r.primaryColor,r.secondaryColor]:r.primaryColor}var Qr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Mt(Ye.primary);var Te=H.forwardRef(function(r,e){var t=r.className,n=r.icon,s=r.spin,i=r.rotate,o=r.tabIndex,c=r.onClick,u=r.twoToneColor,l=mt(r,Qr),g=H.useContext(ht),d=g.prefixCls,y=d===void 0?"anticon":d,k=g.rootClassName,A=Er(k,y,B(B({},"".concat(y,"-").concat(n.name),!!n.name),"".concat(y,"-spin"),!!s||n.name==="loading"),t),D=o;D===void 0&&c&&(D=-1);var V=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,N=$t(u),S=pt(N,2),P=S[0],L=S[1];return H.createElement("span",fe({role:"img","aria-label":n.name},l,{ref:e,tabIndex:D,onClick:c,className:A}),H.createElement(We,{icon:n,primaryColor:P,secondaryColor:L,style:V}))});Te.displayName="AntdIcon",Te.getTwoToneColor=Xr,Te.setTwoToneColor=Mt;const Ze=Te;var en={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"};const tn=en;var rn=function(e,t){return H.createElement(Ze,fe({},e,{ref:t,icon:tn}))},It=H.forwardRef(rn);process.env.NODE_ENV!=="production"&&(It.displayName="CaretDownOutlined");const nn=It;var an={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"};const sn=an;var on=function(e,t){return H.createElement(Ze,fe({},e,{ref:t,icon:sn}))},Ht=H.forwardRef(on);process.env.NODE_ENV!=="production"&&(Ht.displayName="CaretUpOutlined");const cn=Ht;var ln={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"};const un=ln;var fn=function(e,t){return H.createElement(Ze,fe({},e,{ref:t,icon:un}))},Yt=H.forwardRef(fn);process.env.NODE_ENV!=="production"&&(Yt.displayName="UploadOutlined");const dn=Yt;var W=(r=>(r.Input="input",r.InputNumber="inputNumber",r.Text="text",r.Password="password",r.Radio="radio",r.Select="select",r.Checkbox="checkbox",r.DatePicker="datePicker",r.RangePicker="rangePicker",r.Upload="upload",r.Mentions="mentions",r.Cascader="cascader",r.TreeSelect="treeSelect",r))(W||{});const{RangePicker:hn}=C.DatePicker,j=class j{static getDefaultArrayPlaceholder(e){let t;switch(e.type){case"rangePicker":t=["开始时间","结束时间"];break}return t}static getDefaultPlaceholder(e){let t;switch(e.type){case W.Input:case W.Password:case W.InputNumber:case W.Text:case W.Mentions:t=`请输入${e.label}`;break;case W.Select:case W.Checkbox:case W.Radio:case W.DatePicker:case W.RangePicker:case W.Cascader:case W.Upload:case W.TreeSelect:t=`请选择${e.label}`;break}return t}};v(j,"labelCol",{span:7}),v(j,"wrapperCol",{span:17}),v(j,"defaultRowGutter",24),v(j,"input",e=>m.jsx(C.Input,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||j.getDefaultPlaceholder(e)})),v(j,"password",e=>m.jsx(C.Input.Password,{disabled:e.disabled,...e.props,placeholder:e.placeholder||j.getDefaultPlaceholder(e)})),v(j,"text",e=>m.jsx(C.Input.TextArea,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||j.getDefaultPlaceholder(e)})),v(j,"inputNumber",e=>m.jsx(C.InputNumber,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||j.getDefaultPlaceholder(e)})),v(j,"datePicker",e=>m.jsx(C.DatePicker,{disabled:e.disabled,...e.props,placeholder:e.placeholder||j.getDefaultPlaceholder(e)})),v(j,"rangePicker",e=>m.jsx(hn,{disabled:e.disabled,...e.props,placeholder:e.placeholder||j.getDefaultArrayPlaceholder(e)})),v(j,"select",e=>m.jsx(C.Select,{...e.props,disabled:e.disabled,placeholder:e.placeholder||j.getDefaultPlaceholder(e)})),v(j,"radio",e=>m.jsx(C.Radio.Group,{disabled:e.disabled,...e.props})),v(j,"checkbox",e=>m.jsx(C.Checkbox.Group,{disabled:e.disabled,...e.props})),v(j,"upload",e=>m.jsx(C.Upload,{defaultFileList:e.initialValue,...e.props,children:e.children||m.jsxs(C.Button,{children:[m.jsx(dn,{})," 点击上传"]})})),v(j,"mentions",e=>m.jsx(C.Mentions,{...e.props,placeholder:e.placeholder||j.getDefaultPlaceholder(e)})),v(j,"cascader",e=>m.jsx(C.Cascader,{...e.props,placeholder:e.placeholder||j.getDefaultPlaceholder(e)})),v(j,"treeSelect",e=>m.jsx(C.TreeSelect,{...e.props,placeholder:e.placeholder||j.getDefaultPlaceholder(e)}));let oe=j;const qe=(r="")=>be("m-form",r);function Ge(r){const{formProps:e,formItems:t=[],column:n=1,form:s,itemLayout:i,formRowProps:o}=r,c=(l,g)=>{if(l.render)return l.render(g);const d=oe[l.type];return l&&l.type&&d?d(l):m.jsx("div",{className:"error-message",children:"Invalid form item configuration"})},u=l=>{const{show:g=!0}=l;if(!g)return null;const d=[...l.rules||[]];l.required&&d.push({required:!0,message:l.required});const y={labelCol:oe.labelCol,wrapperCol:oe.wrapperCol,...i,...l.itemLayout};return m.jsx(C.Col,{span:l.span||24/n,children:m.jsx("div",{className:qe("item-wrapper"),children:m.jsx(C.Form.Item,{label:l.label,name:l.id,rules:d,initialValue:l.initialValue,...y,...l.formItemProps,children:c(l,s)})})},`col-${l.id}`)};return m.jsx(se,{children:m.jsx(C.Form,{form:s,...e,className:`${qe()} ${e==null?void 0:e.className}`,children:m.jsx(C.Row,{gutter:oe.defaultRowGutter,...o,className:`${qe("grid")} ${o==null?void 0:o.className}`,children:t.map(l=>u(l))})})})}Ge.displayName="MForm";const ra="",gn=13,ne=(r="")=>be("m-search",r),pn=r=>{const{className:e,searchItems:t=[],onSearch:n,defaultShowAll:s=!1,customButtons:i=[],form:o}=r,[c,u]=p.useState(s),[l]=C.Form.useForm(),g=p.useRef(null),d=o??l,y=S=>{const{keyCode:P}=S;P===gn&&A()};p.useEffect(()=>{const S=g.current;return S==null||S.addEventListener("keydown",y),()=>{S==null||S.removeEventListener("keydown",y)}},[]);const k=()=>{d==null||d.resetFields(),A(!0)},A=(S=!1)=>{d==null||d.validateFields().then(P=>{ot(P),n==null||n(P,S)})},D=()=>{const S=t.length>2;return m.jsxs("div",{className:ne("btn-wrapper"),children:[(i==null?void 0:i.length)>0?m.jsx(m.Fragment,{children:i.map((P,L)=>m.jsx(C.Button,{className:ne("btn"),...P,children:P.children},`custom-btn-${L}`))}):m.jsxs(m.Fragment,{children:[m.jsx(C.Button,{className:ne("btn btn-reset"),onClick:k,children:"重置"}),m.jsx(C.Button,{className:ne("btn btn-search"),onClick:()=>A(),type:"primary",children:"搜索"})]}),S&&m.jsxs("div",{className:ne("btn btn-collapse"),onClick:()=>u(!c),children:[m.jsx("span",{children:c?"收起":"展开"}),c?m.jsx(cn,{}):m.jsx(nn,{})]})]})},V=t.map((S,P)=>{var q;const L={...S};return t.length>2&&P>=2&&!c&&(L.formItemProps={...S.formItemProps,style:{...(q=S.formItemProps)==null?void 0:q.style,display:"none"}}),L}),N=t.length>2;return m.jsx(se,{children:m.jsx("div",{className:`${ne("")} ${c?"":ne("collapsed")} ${e||""}`,ref:g,children:m.jsxs(C.Card,{children:[m.jsxs("div",{className:ne("form"),children:[m.jsx(Ge,{form:d,formItems:V,column:3}),(!N||N&&!c)&&D()]}),N&&c&&m.jsx("div",{className:ne("footer"),children:D()})]})})})};function mn(r){var t;const e=((t=r.columns)==null?void 0:t.map(n=>({...n,dataIndex:n.key})))??[];return m.jsxs(se,{children:[m.jsx(C.Table,{rowKey:n=>n.id,...r,columns:e}),";"]})}const vn={YMD_Hms:"YYYY-MM-DD HH:mm:ss",YMD:"YYYY-MM-DD",YMD2:"YYYYMMDD",YMD_POINT:"YYYY.M.DD",Hms:"HH:mm:ss",Hm:"HH:mm",YMD_000:"YYYY-MM-DD 00:00:00",YMD_end:"YYYY-MM-DD 23:59:59",YMD_Hm:"YYYYMMDD HHmm"},zt=10;class T{}v(T,"integerRegex",/^-?\d+$/),v(T,"positiveIntegerRegex",/^[1-9]\d*$/),v(T,"negativeIntegerRegex",/^-[1-9]\d*$/),v(T,"floatRegex",/^-?\d+(\.\d+)?$/),v(T,"letter",/^[a-zA-Z]+$/),v(T,"chinese",/^[\u4e00-\u9fa5]+$/),v(T,"number",/^[0-9]*$/),v(T,"username",/^[a-zA-Z]\w{3,15}$/),v(T,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),v(T,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),v(T,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),v(T,"phone",/^1[3-9]\d{9}$/),v(T,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),v(T,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),v(T,"idCard",/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/),v(T,"bankCard",/^[1-9]\d{3,30}$/),v(T,"zipCode",/^[1-9]\d{5}$/),v(T,"ip",/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/),v(T,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),v(T,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),v(T,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),v(T,"date",/^(\d{4})-(\d{2})-(\d{2})$/);function bn(r,e){const[t,n]=p.useState(!1),[s,i]=p.useState(null),[o,c]=p.useState(null),u=p.useRef(void 0),l=p.useRef(0),g=()=>{var y;(y=u.current)==null||y.abort(),n(!1),i(null)},d=async(...y)=>{var D,V,N,S;const k=++l.current;g();const A=new AbortController;u.current=A;try{if(n(!0),i(null),e!=null&&e.onBefore&&!await((D=e==null?void 0:e.onBefore)==null?void 0:D.call(e,...y))){g();return}const P=y.length>=r.length?y:[...y,{signal:A.signal}],L=await r(...P);return!A.signal.aborted&&k===l.current&&(c(L),await((V=e==null?void 0:e.onSuccess)==null?void 0:V.call(e,L))),L}catch(P){throw!A.signal.aborted&&k===l.current&&(i(P),await((N=e==null?void 0:e.onError)==null?void 0:N.call(e,P))),P}finally{!A.signal.aborted&&k===l.current&&(n(!1),await((S=e==null?void 0:e.onFinally)==null?void 0:S.call(e)))}};return p.useEffect(()=>(e!=null&&e.autoRunArgs&&d(...e.autoRunArgs).catch(()=>{}),g),[JSON.stringify(e==null?void 0:e.autoRunArgs)]),{run:d,cancel:g,loading:t,error:s,data:o}}function yn(r,e,t=!1){const n=p.useRef(void 0),s=p.useRef(r);p.useEffect(()=>{s.current=r},[r]);const i=p.useCallback(()=>{n.current&&(clearInterval(n.current),n.current=void 0)},[]),o=p.useCallback(()=>{i(),e!=null&&(n.current=setInterval(()=>s.current(),e))},[e,i]);return p.useEffect(()=>(t&&s.current(),o(),i),[e,o,i,t]),{start:o,clear:i,isRunning:!!n.current}}const Sn=(r,e,t)=>{const{isReady:n=!0,dataSource:s=[],current:i=1,pageSize:o=10}=t||{},[c,u]=p.useState(i),[l,g]=p.useState(o),[d,y]=p.useState(s),[k,A]=p.useState(0),[D,V]=p.useState(!1),[N,S]=p.useState(!1),P=p.useRef(c),L=p.useRef(l),q=R=>{u(R),P.current=R},ae=R=>{g(R),L.current=R},J=p.useRef(0),xe=async()=>{if(!n)return;let R=P.current,Y=L.current;V(!0),J.current++;const te=J.current;try{let G=Math.round((R-1)*Y);G<0&&(G=0),Y<1&&(Y=1);let{dataSource:le,total:re}=await r({limit:Y,offset:G,current:R});if(te!==J.current)return;if(l*(R-1)>=re&&R!==1){R=1;const ke=Math.ceil(re/l);if({dataSource:le,total:re}=await r({limit:Y,offset:G,current:R}),te!==J.current)return;R=ke}y(le),q(R),ae(Y),A(re)}catch(G){if(console.error("fetch err",G),te!==J.current)return}finally{S(!0),V(!1)}},X=async R=>{R&&(y([]),q(i),ae(o)),await xe()},ce=p.useCallback(Ie(X,500),[X]),_e=[...e||[],n];return p.useEffect(()=>{n&&ce(!0)},_e),{tableProps:{loading:D,dataSource:d},loading:D,dataSource:d,paginationProps:{current:c,pageSize:l,total:k,onChange:async(R,Y)=>{q(R),ae(Y),await X()},onShowSizeChange:async(R,Y)=>{ae(R),q(Y),await X()}},isFirstComplete:N,refresh:X,debounceRefresh:ce,setDataSource:y}};function wn(){const r=window.location.href.split("?")[1]||"",e=new URLSearchParams(r);return Object.fromEntries(e.entries())}const Cn=r=>{const[e,t]=p.useState(r),n=p.useRef(e),s=p.useCallback(c=>{t(u=>{const l=typeof c=="function"?c(u):c,g={...u,...l};return n.current=g,g})},[]),i=p.useCallback(()=>n.current,[]),o=p.useCallback(()=>{t(r),n.current=r},[r]);return[e,s,i,o]};function xn(r,e,t=!1){const n=p.useRef(void 0),s=p.useRef(r);p.useEffect(()=>{s.current=r},[r]);const i=p.useCallback(()=>{n.current&&(clearTimeout(n.current),n.current=void 0)},[]),o=p.useCallback(()=>{i(),e!=null&&(n.current=setTimeout(()=>s.current(),e))},[e,i]);return p.useEffect(()=>(t&&s.current(),o(),i),[e,o,i,t]),{start:o,clear:i,isRunning:!!n.current}}const _n=(r,e,t)=>{const{isReady:n=!0,dataSource:s=[],current:i=1,pageSize:o=zt}=t||{},[c,u]=p.useState(!1),[l,g]=p.useState(i),[d,y]=p.useState(o),[k,A]=p.useState(0),[D,V]=p.useState(!1),[N,S]=p.useState(s),P=p.useRef(l),L=p.useRef(d),q=F=>{g(F),P.current=F},ae=F=>{y(F),L.current=F},J=p.useRef(0),xe=async F=>{if(!n)return;let $=P.current,U=L.current;V(!0),J.current+=1;const R=J.current;try{let Y=Math.round(($-1)*U);Y<0&&(Y=0),U<1&&(U=1);let{dataSource:te,total:G}=await r({limit:U,offset:Y,current:$});if(R!==J.current)return;if(d*($-1)>=G&&$!==1){const re=Math.ceil(G/d);if({dataSource:te,total:G}=await r({limit:U,offset:Math.round((re-1)*U),current:$}),R!==J.current)return;$=re}const le=F?te:N.concat(te);S(le),q($),ae(U),A(G)}catch(Y){if(console.error("fetch err",Y),R!==J.current)return}u(!0),V(!1)},X=async F=>{if(F)S([]),q(i),ae(o);else{const $=d*l;if(k&&k<=$)return;q(l+1)}await xe(F)},ce=p.useCallback(Ie(X,500),[X]),_e=[...e||[],n];return p.useEffect(()=>{n&&ce(!0)},_e),{loading:D,dataSource:N,paginationProps:{current:l,pageSize:d,total:k},isFirstComplete:c,refresh:async F=>{await X(F)},debounceRefresh:ce,setDataSource:S,setTotal:A}};w.CompThemeProvider=se,w.DATE_FORMAT=vn,w.ItemsRow=ft,w.MBreadcrumb=pr,w.MDescriptions=dt,w.MForm=Ge,w.MFormItemConst=oe,w.MFormItemTypeEnum=W,w.MSearch=pn,w.MTable=mn,w.MiThemeProvider=gr,w.NextTick=ve,w.PAGE_SIZE=zt,w.PatternType=T,w.VersionUtil=hr,w.cmx=cr,w.debounce=Ie,w.getClassName=be,w.getFieldsByPath=fr,w.nextTick=lr,w.noop=ur,w.removeNull=ot,w.throttle=dr,w.useFuncRequest=bn,w.useInterval=yn,w.useMiThemeConfig=lt,w.usePagination=Sn,w.useQuery=wn,w.useReactive=Cn,w.useTimeout=xn,w.useVirtualList=_n,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
94
+ }`)),p.useEffect(function(){var l=e.current,u=on(l);an(o,"@ant-design-icons",{prepend:!i,csp:r,attachTo:u})},[])},vn=["icon","className","onClick","style","primaryColor","secondaryColor"],Oe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function bn(n){var e=n.primaryColor,t=n.secondaryColor;Oe.primaryColor=e,Oe.secondaryColor=t||Zt(e),Oe.calculated=!!t}function yn(){return te({},Oe)}var $e=function(e){var t=e.icon,r=e.className,s=e.onClick,i=e.style,o=e.primaryColor,l=e.secondaryColor,u=Pt(e,vn),c=L.useRef(),g=Oe;if(o&&(g={primaryColor:o,secondaryColor:l||Zt(o)}),mn(c),gn(Wt(t),"icon should be icon definiton, but got ".concat(t)),!Wt(t))return null;var d=t;return d&&typeof d.icon=="function"&&(d=te(te({},d),{},{icon:d.icon(g.primaryColor,g.secondaryColor)})),rt(d.icon,"svg-".concat(d.name),te(te({className:r,onClick:s,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};$e.displayName="IconReact",$e.getTwoToneColors=yn,$e.setTwoToneColors=bn;const nt=$e;function Kt(n){var e=Gt(n),t=Tt(e,2),r=t[0],s=t[1];return nt.setTwoToneColors({primaryColor:r,secondaryColor:s})}function Cn(){var n=nt.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var wn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Kt(Ke.primary);var Ie=L.forwardRef(function(n,e){var t=n.className,r=n.icon,s=n.spin,i=n.rotate,o=n.tabIndex,l=n.onClick,u=n.twoToneColor,c=Pt(n,wn),g=L.useContext(Ot),d=g.prefixCls,C=d===void 0?"anticon":d,N=g.rootClassName,k=Wr(N,C,W(W({},"".concat(C,"-").concat(r.name),!!r.name),"".concat(C,"-spin"),!!s||r.name==="loading"),t),A=o;A===void 0&&l&&(A=-1);var F=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,D=Gt(u),w=Tt(D,2),T=w[0],V=w[1];return L.createElement("span",pe({role:"img","aria-label":r.name},c,{ref:e,tabIndex:A,onClick:l,className:k}),L.createElement(nt,{icon:r,primaryColor:T,secondaryColor:V,style:F}))});Ie.displayName="AntdIcon",Ie.getTwoToneColor=Cn,Ie.setTwoToneColor=Kt;const at=Ie;var Sn={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"};const xn=Sn;var _n=function(e,t){return L.createElement(at,pe({},e,{ref:t,icon:xn}))},Jt=L.forwardRef(_n);process.env.NODE_ENV!=="production"&&(Jt.displayName="CaretDownOutlined");const En=Jt;var Rn={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"};const On=Rn;var jn=function(e,t){return L.createElement(at,pe({},e,{ref:t,icon:On}))},Xt=L.forwardRef(jn);process.env.NODE_ENV!=="production"&&(Xt.displayName="CaretUpOutlined");const Tn=Xt;var Pn={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"};const Nn=Pn;var Dn=function(e,t){return L.createElement(at,pe({},e,{ref:t,icon:Nn}))},Qt=L.forwardRef(Dn);process.env.NODE_ENV!=="production"&&(Qt.displayName="UploadOutlined");const kn=Qt;var q=(n=>(n.Input="input",n.InputNumber="inputNumber",n.Text="text",n.Password="password",n.Radio="radio",n.Select="select",n.Checkbox="checkbox",n.DatePicker="datePicker",n.RangePicker="rangePicker",n.Upload="upload",n.Mentions="mentions",n.Cascader="cascader",n.TreeSelect="treeSelect",n))(q||{});const{RangePicker:An}=S.DatePicker,O=class O{static getDefaultArrayPlaceholder(e){let t;switch(e.type){case"rangePicker":t=["开始时间","结束时间"];break}return t}static getDefaultPlaceholder(e){let t;switch(e.type){case q.Input:case q.Password:case q.InputNumber:case q.Text:case q.Mentions:t=`请输入${e.label}`;break;case q.Select:case q.Checkbox:case q.Radio:case q.DatePicker:case q.RangePicker:case q.Cascader:case q.Upload:case q.TreeSelect:t=`请选择${e.label}`;break}return t}};v(O,"labelCol",{span:7}),v(O,"wrapperCol",{span:17}),v(O,"defaultRowGutter",24),v(O,"input",e=>m.jsx(S.Input,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"password",e=>m.jsx(S.Input.Password,{disabled:e.disabled,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"text",e=>m.jsx(S.Input.TextArea,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"inputNumber",e=>m.jsx(S.InputNumber,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"datePicker",e=>m.jsx(S.DatePicker,{disabled:e.disabled,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"rangePicker",e=>m.jsx(An,{disabled:e.disabled,...e.props,placeholder:e.placeholder||O.getDefaultArrayPlaceholder(e)})),v(O,"select",e=>m.jsx(S.Select,{...e.props,disabled:e.disabled,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"radio",e=>m.jsx(S.Radio.Group,{disabled:e.disabled,...e.props})),v(O,"checkbox",e=>m.jsx(S.Checkbox.Group,{disabled:e.disabled,...e.props})),v(O,"upload",e=>m.jsx(S.Upload,{defaultFileList:e.initialValue,...e.props,children:e.children||m.jsxs(S.Button,{children:[m.jsx(kn,{})," 点击上传"]})})),v(O,"mentions",e=>m.jsx(S.Mentions,{...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"cascader",e=>m.jsx(S.Cascader,{...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"treeSelect",e=>m.jsx(S.TreeSelect,{...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)}));let ue=O;const st=(n="")=>_e("m-form",n);function it(n){const{formProps:e,formItems:t=[],column:r=1,form:s,itemLayout:i,formRowProps:o}=n,l=(c,g)=>{if(c.render)return c.render(g);const d=ue[c.type];return c&&c.type&&d?d(c):m.jsx("div",{className:"error-message",children:"Invalid form item configuration"})},u=c=>{const{show:g=!0}=c;if(!g)return null;const d=[...c.rules||[]];c.required&&d.push({required:!0,message:c.required});const C={labelCol:ue.labelCol,wrapperCol:ue.wrapperCol,...i,...c.itemLayout};return m.jsx(S.Col,{span:c.span||24/r,children:m.jsx("div",{className:st("item-wrapper"),children:m.jsx(S.Form.Item,{label:c.label,name:c.id,rules:d,initialValue:c.initialValue,...C,...c.formItemProps,children:l(c,s)})})},`col-${c.id}`)};return m.jsx(ce,{children:m.jsx(S.Form,{form:s,...e,className:`${st()} ${e==null?void 0:e.className}`,children:m.jsx(S.Row,{gutter:ue.defaultRowGutter,...o,className:`${st("grid")} ${o==null?void 0:o.className}`,children:t.map(c=>u(c))})})})}it.displayName="MForm";let ot="default";const Le=[];let er=n=>{switch(n){case"light":return{algorithm:[S.theme.defaultAlgorithm]};case"dark":return{algorithm:[S.theme.darkAlgorithm]};default:return{algorithm:[S.theme.defaultAlgorithm]}}};const ve=class ve extends p.Component{constructor(){super(...arguments);v(this,"handleCancel",t=>{var r,s,i,o;(s=(r=this.props).onCancel)==null||s.call(r,t),(o=(i=this.props).onClosed)==null||o.call(i,{cancel:!0})});v(this,"handleOk",t=>{var r,s,i,o;(s=(r=this.props).onOk)==null||s.call(r,t),(o=(i=this.props).onClosed)==null||o.call(i,{ok:!0})})}getTheme(){const t=this.props.mode||ot;return er(t)}render(){return m.jsx(S.ConfigProvider,{theme:this.getTheme(),componentSize:"middle",componentDisabled:!1,children:m.jsx(S.Modal,{maskClosable:!1,open:this.props.open,onCancel:this.handleCancel,onOk:this.handleOk,okText:"确定",cancelText:"取消",...this.props,children:this.props.children})})}};v(ve,"setMode",t=>{ot=t,Le.forEach(r=>{r.update({mode:t})})}),v(ve,"setThemeConfig",t=>{er=t}),v(ve,"open",t=>{const r=Ct(ve,{mode:ot,...t});Le.push(r);const s=r.destroy;return r.destroy=(...i)=>{const o=Le.indexOf(r);return o!==-1&&Le.splice(o,1),s(...i)},r});let ct=ve;const xa="",Mn=13,se=(n="")=>_e("m-search",n),$n=n=>{const{className:e,searchItems:t=[],onSearch:r,defaultShowAll:s=!1,customButtons:i=[],form:o}=n,[l,u]=p.useState(s),[c]=S.Form.useForm(),g=p.useRef(null),d=o??c,C=w=>{const{keyCode:T}=w;T===Mn&&k()};p.useEffect(()=>{const w=g.current;return w==null||w.addEventListener("keydown",C),()=>{w==null||w.removeEventListener("keydown",C)}},[]);const N=()=>{d==null||d.resetFields(),k(!0)},k=(w=!1)=>{d==null||d.validateFields().then(T=>{wt(T),r==null||r(T,w)})},A=()=>{const w=t.length>2;return m.jsxs("div",{className:se("btn-wrapper"),children:[(i==null?void 0:i.length)>0?m.jsx(m.Fragment,{children:i.map((T,V)=>m.jsx(S.Button,{className:se("btn"),...T,children:T.children},`custom-btn-${V}`))}):m.jsxs(m.Fragment,{children:[m.jsx(S.Button,{className:se("btn btn-reset"),onClick:N,children:"重置"}),m.jsx(S.Button,{className:se("btn btn-search"),onClick:()=>k(),type:"primary",children:"搜索"})]}),w&&m.jsxs("div",{className:se("btn btn-collapse"),onClick:()=>u(!l),children:[m.jsx("span",{children:l?"收起":"展开"}),l?m.jsx(Tn,{}):m.jsx(En,{})]})]})},F=t.map((w,T)=>{var G;const V={...w};return t.length>2&&T>=2&&!l&&(V.formItemProps={...w.formItemProps,style:{...(G=w.formItemProps)==null?void 0:G.style,display:"none"}}),V}),D=t.length>2;return m.jsx(ce,{children:m.jsx("div",{className:`${se("")} ${l?"":se("collapsed")} ${e||""}`,ref:g,children:m.jsxs(S.Card,{children:[m.jsxs("div",{className:se("form"),children:[m.jsx(it,{form:d,formItems:F,column:3}),(!D||D&&!l)&&A()]}),D&&l&&m.jsx("div",{className:se("footer"),children:A()})]})})})};function In(n){var t;const e=((t=n.columns)==null?void 0:t.map(r=>({...r,dataIndex:r.key})))??[];return m.jsxs(ce,{children:[m.jsx(S.Table,{rowKey:r=>r.id,...n,columns:e}),";"]})}const Ln={YMD_Hms:"YYYY-MM-DD HH:mm:ss",YMD:"YYYY-MM-DD",YMD2:"YYYYMMDD",YMD_POINT:"YYYY.M.DD",Hms:"HH:mm:ss",Hm:"HH:mm",YMD_000:"YYYY-MM-DD 00:00:00",YMD_end:"YYYY-MM-DD 23:59:59",YMD_Hm:"YYYYMMDD HHmm",YMD_SLASH:"YYYY/MM/DD",YMD_SLASH_Hms:"YYYY/MM/DD HH:mm:ss"},tr=10;class P{}v(P,"integerRegex",/^-?\d+$/),v(P,"positiveIntegerRegex",/^[1-9]\d*$/),v(P,"negativeIntegerRegex",/^-[1-9]\d*$/),v(P,"floatRegex",/^-?\d+(\.\d+)?$/),v(P,"letter",/^[a-zA-Z]+$/),v(P,"chinese",/^[\u4e00-\u9fa5]+$/),v(P,"number",/^[0-9]*$/),v(P,"username",/^[a-zA-Z]\w{3,15}$/),v(P,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),v(P,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),v(P,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),v(P,"phone",/^1[3-9]\d{9}$/),v(P,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),v(P,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),v(P,"idCard",/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/),v(P,"bankCard",/^[1-9]\d{3,30}$/),v(P,"zipCode",/^[1-9]\d{5}$/),v(P,"ip",/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/),v(P,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),v(P,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),v(P,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),v(P,"date",/^(\d{4})-(\d{2})-(\d{2})$/);function Yn(n,e){const[t,r]=p.useState(!1),[s,i]=p.useState(null),[o,l]=p.useState(null),u=p.useRef(void 0),c=p.useRef(0),g=()=>{var C;(C=u.current)==null||C.abort(),r(!1),i(null)},d=async(...C)=>{var A,F,D,w;const N=++c.current;g();const k=new AbortController;u.current=k;try{if(r(!0),i(null),e!=null&&e.onBefore&&!await((A=e==null?void 0:e.onBefore)==null?void 0:A.call(e,...C))){g();return}const T=C.length>=n.length?C:[...C,{signal:k.signal}],V=await n(...T);return!k.signal.aborted&&N===c.current&&(l(V),await((F=e==null?void 0:e.onSuccess)==null?void 0:F.call(e,V))),V}catch(T){throw!k.signal.aborted&&N===c.current&&(i(T),await((D=e==null?void 0:e.onError)==null?void 0:D.call(e,T))),T}finally{!k.signal.aborted&&N===c.current&&(r(!1),await((w=e==null?void 0:e.onFinally)==null?void 0:w.call(e)))}};return p.useEffect(()=>(e!=null&&e.autoRunArgs&&d(...e.autoRunArgs).catch(()=>{}),g),[JSON.stringify(e==null?void 0:e.autoRunArgs)]),{run:d,cancel:g,loading:t,error:s,data:o}}function Hn(n,e,t=!1){const r=p.useRef(void 0),s=p.useRef(n);p.useEffect(()=>{s.current=n},[n]);const i=p.useCallback(()=>{r.current&&(clearInterval(r.current),r.current=void 0)},[]),o=p.useCallback(()=>{i(),e!=null&&(r.current=setInterval(()=>s.current(),e))},[e,i]);return p.useEffect(()=>(t&&s.current(),o(),i),[e,o,i,t]),{start:o,clear:i,isRunning:!!r.current}}const zn=(n,e,t)=>{const{isReady:r=!0,dataSource:s=[],current:i=1,pageSize:o=10}=t||{},[l,u]=p.useState(i),[c,g]=p.useState(o),[d,C]=p.useState(s),[N,k]=p.useState(0),[A,F]=p.useState(!1),[D,w]=p.useState(!1),T=p.useRef(l),V=p.useRef(c),G=R=>{u(R),T.current=R},ie=R=>{g(R),V.current=R},X=p.useRef(0),Te=async()=>{if(!r)return;let R=T.current,Y=V.current;F(!0),X.current++;const re=X.current;try{let K=Math.round((R-1)*Y);K<0&&(K=0),Y<1&&(Y=1);let{dataSource:de,total:ne}=await n({limit:Y,offset:K,current:R});if(re!==X.current)return;if(c*(R-1)>=ne&&R!==1){R=1;const Ye=Math.ceil(ne/c);if({dataSource:de,total:ne}=await n({limit:Y,offset:K,current:R}),re!==X.current)return;R=Ye}C(de),G(R),ie(Y),k(ne)}catch(K){if(console.error("fetch err",K),re!==X.current)return}finally{w(!0),F(!1)}},Q=async R=>{R&&(C([]),G(i),ie(o)),await Te()},fe=p.useCallback(Ze(Q,500),[Q]),Pe=[...e||[],r];return p.useEffect(()=>{r&&fe(!0)},Pe),{tableProps:{loading:A,dataSource:d},loading:A,dataSource:d,paginationProps:{current:l,pageSize:c,total:N,onChange:async(R,Y)=>{G(R),ie(Y),await Q()},onShowSizeChange:async(R,Y)=>{ie(R),G(Y),await Q()}},isFirstComplete:D,refresh:Q,debounceRefresh:fe,setDataSource:C}};function Vn(){const n=window.location.href.split("?")[1]||"",e=new URLSearchParams(n);return Object.fromEntries(e.entries())}const Fn=n=>{const[e,t]=p.useState(n),r=p.useRef(e),s=p.useCallback(l=>{t(u=>{const c=typeof l=="function"?l(u):l,g={...u,...c};return r.current=g,g})},[]),i=p.useCallback(()=>r.current,[]),o=p.useCallback(()=>{t(n),r.current=n},[n]);return[e,s,i,o]};function Bn(n,e,t=!1){const r=p.useRef(void 0),s=p.useRef(n);p.useEffect(()=>{s.current=n},[n]);const i=p.useCallback(()=>{r.current&&(clearTimeout(r.current),r.current=void 0)},[]),o=p.useCallback(()=>{i(),e!=null&&(r.current=setTimeout(()=>s.current(),e))},[e,i]);return p.useEffect(()=>(t&&s.current(),o(),i),[e,o,i,t]),{start:o,clear:i,isRunning:!!r.current}}const Un=(n,e,t)=>{const{isReady:r=!0,dataSource:s=[],current:i=1,pageSize:o=tr}=t||{},[l,u]=p.useState(!1),[c,g]=p.useState(i),[d,C]=p.useState(o),[N,k]=p.useState(0),[A,F]=p.useState(!1),[D,w]=p.useState(s),T=p.useRef(c),V=p.useRef(d),G=B=>{g(B),T.current=B},ie=B=>{C(B),V.current=B},X=p.useRef(0),Te=async B=>{if(!r)return;let M=T.current,U=V.current;F(!0),X.current+=1;const R=X.current;try{let Y=Math.round((M-1)*U);Y<0&&(Y=0),U<1&&(U=1);let{dataSource:re,total:K}=await n({limit:U,offset:Y,current:M});if(R!==X.current)return;if(d*(M-1)>=K&&M!==1){const ne=Math.ceil(K/d);if({dataSource:re,total:K}=await n({limit:U,offset:Math.round((ne-1)*U),current:M}),R!==X.current)return;M=ne}const de=B?re:D.concat(re);w(de),G(M),ie(U),k(K)}catch(Y){if(console.error("fetch err",Y),R!==X.current)return}u(!0),F(!1)},Q=async B=>{if(B)w([]),G(i),ie(o);else{const M=d*c;if(N&&N<=M)return;G(c+1)}await Te(B)},fe=p.useCallback(Ze(Q,500),[Q]),Pe=[...e||[],r];return p.useEffect(()=>{r&&fe(!0)},Pe),{loading:A,dataSource:D,paginationProps:{current:c,pageSize:d,total:N},isFirstComplete:l,refresh:async B=>{await Q(B)},debounceRefresh:fe,setDataSource:w,setTotal:k}};b.CompThemeProvider=ce,b.DATE_FORMAT=Ln,b.ItemsRow=Et,b.MBreadcrumb=$r,b.MDescriptions=Rt,b.MForm=it,b.MFormItemConst=ue,b.MFormItemTypeEnum=q,b.MSearch=$n,b.MTable=In,b.MiModal=ct,b.MiThemeProvider=Mr,b.NextTick=Se,b.PAGE_SIZE=tr,b.PatternType=P,b.VersionUtil=Ar,b.cmx=Rr,b.debounce=Ze,b.getClassName=_e,b.getFieldsByPath=Dr,b.nextTick=Or,b.noop=Nr,b.openModal=Ct,b.removeNull=wt,b.throttle=kr,b.useFuncRequest=Yn,b.useInterval=Hn,b.useMiThemeConfig=xt,b.usePagination=zn,b.useQuery=Vn,b.useReactive=Fn,b.useTimeout=Bn,b.useVirtualList=Un,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
@@ -1,20 +1,187 @@
1
1
  declare class CMX {
2
+ private static factorialCache;
2
3
  /**
3
- **
4
- **/
5
- add: (arg1: number, arg2: number) => number;
4
+ * 获取数字的小数位数长度
5
+ * @private
6
+ * @param num 要检查的数字
7
+ * @returns 小数位数长度
8
+ */
9
+ private static getDecimalLength;
6
10
  /**
7
- **
8
- **/
9
- sub: (arg1: number, arg2: number) => number;
11
+ * 将数字转换为整数(移除小数点)
12
+ * @private
13
+ * @param num 要转换的数字
14
+ * @param decimalPlaces 需要补零的小数位数
15
+ * @returns 转换后的整数值
16
+ */
17
+ private static toInteger;
10
18
  /**
11
- **
12
- **/
13
- mul: (arg1: number, arg2: number) => number;
19
+ * 精确加法运算(支持多个参数)
20
+ * @param args 要相加的数字序列
21
+ * @returns 所有数字的和
22
+ * @example
23
+ * cmx.add(0.1, 0.2) // 返回 0.3
24
+ * cmx.add(1, 2, 3) // 返回 6
25
+ */
26
+ add(...args: number[]): number;
14
27
  /**
15
- **
16
- **/
17
- div: (arg1: number, arg2: number) => number;
28
+ * 精确减法运算
29
+ * @param arg1 被减数
30
+ * @param arg2 减数
31
+ * @returns 两数之差
32
+ * @example
33
+ * cmx.sub(0.3, 0.1) // 返回 0.2
34
+ */
35
+ sub(arg1: number, arg2: number): number;
36
+ /**
37
+ * 精确乘法运算(支持多个参数)
38
+ * @param args 要相乘的数字序列
39
+ * @returns 所有数字的乘积
40
+ * @example
41
+ * cmx.mul(0.1, 0.2) // 返回 0.02
42
+ * cmx.mul(2, 3, 4) // 返回 24
43
+ */
44
+ mul(...args: number[]): number;
45
+ /**
46
+ * 精确除法运算
47
+ * @param arg1 被除数
48
+ * @param arg2 除数
49
+ * @returns 两数之商
50
+ * @throws {Error} 除数为零时抛出错误
51
+ * @example
52
+ * cmx.div(0.3, 0.1) // 返回 3
53
+ */
54
+ div(arg1: number, arg2: number): number;
55
+ /**
56
+ * 精确四舍五入
57
+ * @param num 要舍入的数字
58
+ * @param decimalPlaces 保留的小数位数(默认为0)
59
+ * @returns 舍入后的数字
60
+ * @example
61
+ * cmx.round(1.2345, 2) // 返回 1.23
62
+ */
63
+ round(num: number, decimalPlaces?: number): number;
64
+ /**
65
+ * 计算百分比值
66
+ * @param value 基础值
67
+ * @param percent 百分比
68
+ * @returns 计算后的百分比值
69
+ * @example
70
+ * cmx.percent(200, 15) // 返回 30(200的15%)
71
+ */
72
+ percent(value: number, percent: number): number;
73
+ /**
74
+ * 计算平均数
75
+ * @param args 要计算平均数的数字序列
76
+ * @returns 平均数
77
+ * @example
78
+ * cmx.average(1, 2, 3) // 返回 2
79
+ */
80
+ average(...args: number[]): number;
81
+ /**
82
+ * 判断两个数是否近似相等(解决浮点数精度问题)
83
+ * @param a 第一个数
84
+ * @param b 第二个数
85
+ * @param tolerance 允许的误差范围(默认为1e-10)
86
+ * @returns 如果差值小于误差范围则返回true
87
+ * @example
88
+ * cmx.approxEqual(0.1 + 0.2, 0.3) // 返回 true
89
+ */
90
+ approxEqual(a: number, b: number, tolerance?: number): boolean;
91
+ /**
92
+ * 计算自然对数(ln(x))
93
+ * @param num 要计算对数的数字
94
+ * @param decimalPlaces 结果保留的小数位数(默认保留10位)
95
+ * @returns 自然对数值
96
+ * @throws {Error} 当输入小于等于0时抛出错误
97
+ * @example
98
+ * cmx.ln(1) // 返回 0
99
+ * cmx.ln(Math.E) // 返回 1
100
+ */
101
+ ln(num: number, decimalPlaces?: number): number;
102
+ /**
103
+ * 高精度指数函数(解决Math.exp的精度问题)
104
+ * @param x 指数
105
+ * @param decimalPlaces 精度位数(默认10位)
106
+ * @returns e^x 的精确值
107
+ * @example
108
+ * cmx.exp(1) // 2.7182818285(比Math.exp(1)更可控精度)
109
+ * cmx.exp(-3.5) // 0.0301973834
110
+ */
111
+ exp(x: number, decimalPlaces?: number): number;
112
+ /**
113
+ * 精确计算平方根(解决Math.sqrt的精度问题)
114
+ * @param num 输入数字(必须 ≥0)
115
+ * @param decimalPlaces 结果精度(默认10位)
116
+ * @returns 精确的平方根值
117
+ * @throws {Error} 输入负数时抛出
118
+ * @example
119
+ * cmx.sqrt(2) // 1.4142135624 (Math.sqrt(2)可能产生微小误差)
120
+ */
121
+ sqrt(num: number, decimalPlaces?: number): number;
122
+ /**
123
+ * 安全对数计算(解决Math.log的边界问题)
124
+ * @param num 输入数字(支持 ≤0 的特殊处理)
125
+ * @param options 配置项:
126
+ * - safe: 是否返回安全值(默认true)
127
+ * - replaceNeg: 负数替换值(默认NaN)
128
+ * - replaceZero: 零替换值(默认-Infinity)
129
+ * @returns 处理后的结果
130
+ * @example
131
+ * cmx.safeLog(-1) // NaN(Math.log直接报错)
132
+ * cmx.safeLog(0) // -Infinity(可配置替换值)
133
+ */
134
+ safeLog(num: number, options?: {
135
+ safe?: boolean;
136
+ replaceNeg?: number;
137
+ replaceZero?: number;
138
+ }): number;
139
+ /**
140
+ * 精确阶乘(解决Math无阶乘方法的问题)
141
+ * @param n 输入整数(0≤n≤170)
142
+ * @returns 精确结果(超过170返回Infinity)
143
+ * @example
144
+ * cmx.factorial(20) // 2432902008176640000(JS整数精确范围)
145
+ */
146
+ factorial(n: number): number;
147
+ /**
148
+ * 双曲函数精确计算(解决大数精度问题)
149
+ * @param x 输入值
150
+ * @param type 函数类型:'sinh' | 'cosh' | 'tanh'
151
+ * @param decimalPlaces 精度(默认10位)
152
+ * @returns 计算结果
153
+ * @example
154
+ * cmx.hypFunc(1, 'tanh') // 0.761594156(比Math.tanh更精确)
155
+ */
156
+ hypFunc(x: number, type: 'sinh' | 'cosh' | 'tanh', decimalPlaces?: number): number;
157
+ /**
158
+ * 精确排列组合(解决大数计算问题)
159
+ * @param n 总数
160
+ * @param k 选取数
161
+ * @param type 计算类型:'permutation' | 'combination'
162
+ * @returns 精确结果
163
+ * @example
164
+ * cmx.permComb(100, 5, 'combination') // 75287520
165
+ */
166
+ permComb(n: number, k: number, type: 'permutation' | 'combination'): number;
167
+ /**
168
+ * 计算最大公约数(GCD)
169
+ * @param a 第一个数字
170
+ * @param b 第二个数字
171
+ * @returns 最大公约数
172
+ * @example
173
+ * cmx.gcd(48, 18) // 返回 6
174
+ */
175
+ gcd(a: number, b: number): number;
176
+ /**
177
+ * 计算最小公倍数(LCM)
178
+ * @param a 第一个数字
179
+ * @param b 第二个数字
180
+ * @returns 最小公倍数
181
+ * @example
182
+ * cmx.lcm(12, 15) // 返回 60
183
+ */
184
+ lcm(a: number, b: number): number;
18
185
  }
19
186
  export declare const cmx: CMX;
20
187
  export {};