@mi-avalon/libs 0.0.20 → 0.0.22

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.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './constants';
3
3
  // export * from './hooks';
4
- // export * from './utils';
4
+ export * from './utils';
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(d,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react","antd"],j):(d=typeof globalThis<"u"?globalThis:d||self,j(d.MiAvalonLibs={},d.React,d.antd))})(this,function(d,j,y){"use strict";var Ar=Object.defineProperty;var Pr=(d,j,y)=>j in d?Ar(d,j,{enumerable:!0,configurable:!0,writable:!0,value:y}):d[j]=y;var m=(d,j,y)=>(Pr(d,typeof j!="symbol"?j+"":j,y),y);function Le(o){if(o&&o.__esModule)return o;const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const _ in o)if(_!=="default"){const c=Object.getOwnPropertyDescriptor(o,_);Object.defineProperty(a,_,c.get?c:{enumerable:!0,get:()=>o[_]})}}return a.default=o,Object.freeze(a)}const I=Le(j);var ee={exports:{}},H={};/**
1
+ (function(h,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react","antd"],j):(h=typeof globalThis<"u"?globalThis:h||self,j(h.MiAvalonLibs={},h.React,h.antd))})(this,function(h,j,C){"use strict";var Wr=Object.defineProperty;var Hr=(h,j,C)=>j in h?Wr(h,j,{enumerable:!0,configurable:!0,writable:!0,value:C}):h[j]=C;var b=(h,j,C)=>(Hr(h,typeof j!="symbol"?j+"":j,C),C);function Ue(o){if(o&&o.__esModule)return o;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:()=>o[n]})}}return r.default=o,Object.freeze(r)}const N=Ue(j);var te={exports:{}},Z={};/**
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 fe;function Ue(){if(fe)return H;fe=1;var o=I.default,a=Symbol.for("react.element"),_=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,T=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A={key:!0,ref:!0,__self:!0,__source:!0};function E(S,h,D){var R,f={},w=null,M=null;D!==void 0&&(w=""+D),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(M=h.ref);for(R in h)c.call(h,R)&&!A.hasOwnProperty(R)&&(f[R]=h[R]);if(S&&S.defaultProps)for(R in h=S.defaultProps,h)f[R]===void 0&&(f[R]=h[R]);return{$$typeof:a,type:S,key:w,ref:M,props:f,_owner:T.current}}return H.Fragment=_,H.jsx=E,H.jsxs=E,H}var L={};/**
9
+ */var ve;function Le(){if(ve)return Z;ve=1;var o=N.default,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function c(u,d,y){var _,R={},P=null,k=null;y!==void 0&&(P=""+y),d.key!==void 0&&(P=""+d.key),d.ref!==void 0&&(k=d.ref);for(_ in d)a.call(d,_)&&!f.hasOwnProperty(_)&&(R[_]=d[_]);if(u&&u.defaultProps)for(_ in d=u.defaultProps,d)R[_]===void 0&&(R[_]=d[_]);return{$$typeof:r,type:u,key:P,ref:k,props:R,_owner:s.current}}return Z.Fragment=n,Z.jsx=c,Z.jsxs=c,Z}var W={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,19 +14,19 @@
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 de;function Ve(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var o=I.default,a=Symbol.for("react.element"),_=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),S=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),q=Symbol.iterator,N="@@iterator";function re(e){if(e===null||typeof e!="object")return null;var r=q&&e[q]||e[N];return typeof r=="function"?r:null}var Y=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ge("error",e,t)}}function Ge(e,r,t){{var n=Y.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var l=t.map(function(s){return String(s)});l.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,l)}}var Xe=!1,Qe=!1,er=!1,rr=!1,tr=!1,_e;_e=Symbol.for("react.module.reference");function nr(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===A||tr||e===T||e===D||e===R||rr||e===M||Xe||Qe||er||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===f||e.$$typeof===E||e.$$typeof===S||e.$$typeof===h||e.$$typeof===_e||e.getModuleId!==void 0))}function ar(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function Ee(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case _:return"Portal";case A:return"Profiler";case T:return"StrictMode";case D:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return Ee(r)+".Consumer";case E:var t=e;return Ee(t._context)+".Provider";case h:return ar(e,e.render,"ForwardRef");case f:var n=e.displayName||null;return n!==null?n:P(e.type)||"Memo";case w:{var u=e,l=u._payload,s=u._init;try{return P(s(l))}catch{return null}}}return null}var k=Object.assign,Z=0,Re,ye,Ce,je,xe,Se,we;function Oe(){}Oe.__reactDisabledLog=!0;function ir(){{if(Z===0){Re=console.log,ye=console.info,Ce=console.warn,je=console.error,xe=console.group,Se=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Oe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Z++}}function or(){{if(Z--,Z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:Re}),info:k({},e,{value:ye}),warn:k({},e,{value:Ce}),error:k({},e,{value:je}),group:k({},e,{value:xe}),groupCollapsed:k({},e,{value:Se}),groupEnd:k({},e,{value:we})})}Z<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=Y.ReactCurrentDispatcher,ne;function K(e,r,t){{if(ne===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);ne=n&&n[1]||""}return`
18
- `+ne+e}}var ae=!1,G;{var sr=typeof WeakMap=="function"?WeakMap:Map;G=new sr}function Te(e,r){if(!e||ae)return"";{var t=G.get(e);if(t!==void 0)return t}var n;ae=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var l;l=te.current,te.current=null,ir();try{if(r){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(O){n=O}Reflect.construct(e,[],s)}else{try{s.call()}catch(O){n=O}e.call(s.prototype)}}else{try{throw Error()}catch(O){n=O}e()}}catch(O){if(O&&n&&typeof O.stack=="string"){for(var i=O.stack.split(`
19
- `),x=n.stack.split(`
20
- `),p=i.length-1,b=x.length-1;p>=1&&b>=0&&i[p]!==x[b];)b--;for(;p>=1&&b>=0;p--,b--)if(i[p]!==x[b]){if(p!==1||b!==1)do if(p--,b--,b<0||i[p]!==x[b]){var $=`
21
- `+i[p].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&G.set(e,$),$}while(p>=1&&b>=0);break}}}finally{ae=!1,te.current=l,or(),Error.prepareStackTrace=u}var z=e?e.displayName||e.name:"",F=z?K(z):"";return typeof e=="function"&&G.set(e,F),F}function ur(e,r,t){return Te(e,!1)}function lr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function X(e,r,t){if(e==null)return"";if(typeof e=="function")return Te(e,lr(e));if(typeof e=="string")return K(e);switch(e){case D:return K("Suspense");case R:return K("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return ur(e.render);case f:return X(e.type,r,t);case w:{var n=e,u=n._payload,l=n._init;try{return X(l(u),r,t)}catch{}}}return""}var B=Object.prototype.hasOwnProperty,De={},$e=Y.ReactDebugCurrentFrame;function Q(e){if(e){var r=e._owner,t=X(e.type,e._source,r?r.type:null);$e.setExtraStackFrame(t)}else $e.setExtraStackFrame(null)}function cr(e,r,t,n,u){{var l=Function.call.bind(B);for(var s in e)if(l(e,s)){var i=void 0;try{if(typeof e[s]!="function"){var x=Error((n||"React class")+": "+t+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}i=e[s](r,s,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(p){i=p}i&&!(i instanceof Error)&&(Q(u),C("%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).",n||"React class",t,s,typeof i),Q(null)),i instanceof Error&&!(i.message in De)&&(De[i.message]=!0,Q(u),C("Failed %s type: %s",t,i.message),Q(null))}}}var fr=Array.isArray;function ie(e){return fr(e)}function dr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function vr(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function Pe(e){if(vr(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dr(e)),Ae(e)}var J=Y.ReactCurrentOwner,mr={key:!0,ref:!0,__self:!0,__source:!0},Ye,Me,oe;oe={};function pr(e){if(B.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function hr(e){if(B.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function br(e,r){if(typeof e.ref=="string"&&J.current&&r&&J.current.stateNode!==r){var t=P(J.current.type);oe[t]||(C('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',P(J.current.type),e.ref),oe[t]=!0)}}function gr(e,r){{var t=function(){Ye||(Ye=!0,C("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function _r(e,r){{var t=function(){Me||(Me=!0,C("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Er=function(e,r,t,n,u,l,s){var i={$$typeof:a,type:e,key:r,ref:t,props:s,_owner:l};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function Rr(e,r,t,n,u){{var l,s={},i=null,x=null;t!==void 0&&(Pe(t),i=""+t),hr(r)&&(Pe(r.key),i=""+r.key),pr(r)&&(x=r.ref,br(r,u));for(l in r)B.call(r,l)&&!mr.hasOwnProperty(l)&&(s[l]=r[l]);if(e&&e.defaultProps){var p=e.defaultProps;for(l in p)s[l]===void 0&&(s[l]=p[l])}if(i||x){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&gr(s,b),x&&_r(s,b)}return Er(e,i,x,u,n,J.current,s)}}var se=Y.ReactCurrentOwner,ke=Y.ReactDebugCurrentFrame;function W(e){if(e){var r=e._owner,t=X(e.type,e._source,r?r.type:null);ke.setExtraStackFrame(t)}else ke.setExtraStackFrame(null)}var ue;ue=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function Fe(){{if(se.current){var e=P(se.current.type);if(e)return`
17
+ */var he;function Be(){return he||(he=1,process.env.NODE_ENV!=="production"&&function(){var o=N.default,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),G=Symbol.iterator,F="@@iterator";function ae(e){if(e===null||typeof e!="object")return null;var t=G&&e[G]||e[F];return typeof t=="function"?t:null}var $=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(e){{for(var t=arguments.length,i=new Array(t>1?t-1:0),l=1;l<t;l++)i[l-1]=arguments[l];cr("error",e,i)}}function cr(e,t,i){{var l=$.ReactDebugCurrentFrame,p=l.getStackAddendum();p!==""&&(t+="%s",i=i.concat([p]));var g=i.map(function(v){return String(v)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var lr=!1,ur=!1,fr=!1,dr=!1,mr=!1,Ee;Ee=Symbol.for("react.module.reference");function vr(e){return!!(typeof e=="string"||typeof e=="function"||e===a||e===f||mr||e===s||e===y||e===_||dr||e===k||lr||ur||fr||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===R||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===Ee||e.getModuleId!==void 0))}function hr(e,t,i){var l=e.displayName;if(l)return l;var p=t.displayName||t.name||"";return p!==""?i+"("+p+")":i}function _e(e){return e.displayName||"Context"}function M(e){if(e==null)return null;if(typeof e.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case a:return"Fragment";case n:return"Portal";case f:return"Profiler";case s:return"StrictMode";case y:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var t=e;return _e(t)+".Consumer";case c:var i=e;return _e(i._context)+".Provider";case d:return hr(e,e.render,"ForwardRef");case R:var l=e.displayName||null;return l!==null?l:M(e.type)||"Memo";case P:{var p=e,g=p._payload,v=p._init;try{return M(v(g))}catch{return null}}}return null}var Y=Object.assign,J=0,we,Se,Te,Ce,xe,je,Oe;function Pe(){}Pe.__reactDisabledLog=!0;function pr(){{if(J===0){we=console.log,Se=console.info,Te=console.warn,Ce=console.error,xe=console.group,je=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function br(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},e,{value:we}),info:Y({},e,{value:Se}),warn:Y({},e,{value:Te}),error:Y({},e,{value:Ce}),group:Y({},e,{value:xe}),groupCollapsed:Y({},e,{value:je}),groupEnd:Y({},e,{value:Oe})})}J<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=$.ReactCurrentDispatcher,se;function X(e,t,i){{if(se===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);se=l&&l[1]||""}return`
18
+ `+se+e}}var oe=!1,Q;{var gr=typeof WeakMap=="function"?WeakMap:Map;Q=new gr}function Ae(e,t){if(!e||oe)return"";{var i=Q.get(e);if(i!==void 0)return i}var l;oe=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ie.current,ie.current=null,pr();try{if(t){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(A){l=A}Reflect.construct(e,[],v)}else{try{v.call()}catch(A){l=A}e.call(v.prototype)}}else{try{throw Error()}catch(A){l=A}e()}}catch(A){if(A&&l&&typeof A.stack=="string"){for(var m=A.stack.split(`
19
+ `),O=l.stack.split(`
20
+ `),w=m.length-1,S=O.length-1;w>=1&&S>=0&&m[w]!==O[S];)S--;for(;w>=1&&S>=0;w--,S--)if(m[w]!==O[S]){if(w!==1||S!==1)do if(w--,S--,S<0||m[w]!==O[S]){var D=`
21
+ `+m[w].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,D),D}while(w>=1&&S>=0);break}}}finally{oe=!1,ie.current=g,br(),Error.prepareStackTrace=p}var V=e?e.displayName||e.name:"",I=V?X(V):"";return typeof e=="function"&&Q.set(e,I),I}function Rr(e,t,i){return Ae(e,!1)}function yr(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ee(e,t,i){if(e==null)return"";if(typeof e=="function")return Ae(e,yr(e));if(typeof e=="string")return X(e);switch(e){case y:return X("Suspense");case _:return X("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Rr(e.render);case R:return ee(e.type,t,i);case P:{var l=e,p=l._payload,g=l._init;try{return ee(g(p),t,i)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,De={},Me=$.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,i=ee(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(i)}else Me.setExtraStackFrame(null)}function Er(e,t,i,l,p){{var g=Function.call.bind(q);for(var v in e)if(g(e,v)){var m=void 0;try{if(typeof e[v]!="function"){var O=Error((l||"React class")+": "+i+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}m=e[v](t,v,l,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){m=w}m&&!(m instanceof Error)&&(re(p),x("%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).",l||"React class",i,v,typeof m),re(null)),m instanceof Error&&!(m.message in De)&&(De[m.message]=!0,re(p),x("Failed %s type: %s",i,m.message),re(null))}}}var _r=Array.isArray;function ce(e){return _r(e)}function wr(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,i=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Sr(e){try{return $e(e),!1}catch{return!0}}function $e(e){return""+e}function ke(e){if(Sr(e))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wr(e)),$e(e)}var K=$.ReactCurrentOwner,Tr={key:!0,ref:!0,__self:!0,__source:!0},Ye,Ie,le;le={};function Cr(e){if(q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function xr(e){if(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function jr(e,t){if(typeof e.ref=="string"&&K.current&&t&&K.current.stateNode!==t){var i=M(K.current.type);le[i]||(x('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(K.current.type),e.ref),le[i]=!0)}}function Or(e,t){{var i=function(){Ye||(Ye=!0,x("%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)",t))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Pr(e,t){{var i=function(){Ie||(Ie=!0,x("%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)",t))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Ar=function(e,t,i,l,p,g,v){var m={$$typeof:r,type:e,key:t,ref:i,props:v,_owner:g};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function Dr(e,t,i,l,p){{var g,v={},m=null,O=null;i!==void 0&&(ke(i),m=""+i),xr(t)&&(ke(t.key),m=""+t.key),Cr(t)&&(O=t.ref,jr(t,p));for(g in t)q.call(t,g)&&!Tr.hasOwnProperty(g)&&(v[g]=t[g]);if(e&&e.defaultProps){var w=e.defaultProps;for(g in w)v[g]===void 0&&(v[g]=w[g])}if(m||O){var S=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&Or(v,S),O&&Pr(v,S)}return Ar(e,m,O,p,l,K.current,v)}}var ue=$.ReactCurrentOwner,Ne=$.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,i=ee(e.type,e._source,t?t.type:null);Ne.setExtraStackFrame(i)}else Ne.setExtraStackFrame(null)}var fe;fe=!1;function de(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Fe(){{if(ue.current){var e=M(ue.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function yr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function Mr(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),i=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var Ie={};function Cr(e){{var r=Fe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+t+":"+i+"."}return""}}var ze={};function $r(e){{var t=Fe();if(!t){var i=typeof e=="string"?e:e.displayName||e.name;i&&(t=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function Ne(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Cr(r);if(Ie[t])return;Ie[t]=!0;var n="";e&&e._owner&&e._owner!==se.current&&(n=" It was passed a child from "+P(e._owner.type)+"."),W(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),W(null)}}function We(e,r){{if(typeof e!="object")return;if(ie(e))for(var t=0;t<e.length;t++){var n=e[t];le(n)&&Ne(n,r)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var u=re(e);if(typeof u=="function"&&u!==e.entries)for(var l=u.call(e),s;!(s=l.next()).done;)le(s.value)&&Ne(s.value,r)}}}function jr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===f))t=r.propTypes;else return;if(t){var n=P(r);cr(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ue){ue=!0;var u=P(r);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){W(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),W(null);break}}e.ref!==null&&(W(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}var ze={};function He(e,r,t,n,u,l){{var s=nr(e);if(!s){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" 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 x=yr(u);x?i+=x:i+=Fe();var p;e===null?p="null":ie(e)?p="array":e!==void 0&&e.$$typeof===a?(p="<"+(P(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):p=typeof e,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",p,i)}var b=Rr(e,r,t,u,l);if(b==null)return b;if(s){var $=r.children;if($!==void 0)if(n)if(ie($)){for(var z=0;z<$.length;z++)We($[z],e);Object.freeze&&Object.freeze($)}else C("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 We($,e)}if(B.call(r,"key")){var F=P(e),O=Object.keys(r).filter(function($r){return $r!=="key"}),ce=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!ze[F+ce]){var Dr=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+i+">.")}return t}}function Ve(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=$r(t);if(ze[i])return;ze[i]=!0;var l="";e&&e._owner&&e._owner!==ue.current&&(l=" It was passed a child from "+M(e._owner.type)+"."),z(e),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,l),z(null)}}function Ze(e,t){{if(typeof e!="object")return;if(ce(e))for(var i=0;i<e.length;i++){var l=e[i];de(l)&&Ve(l,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var p=ae(e);if(typeof p=="function"&&p!==e.entries)for(var g=p.call(e),v;!(v=g.next()).done;)de(v.value)&&Ve(v.value,t)}}}function kr(e){{var t=e.type;if(t==null||typeof t=="string")return;var i;if(typeof t=="function")i=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===d||t.$$typeof===R))i=t.propTypes;else return;if(i){var l=M(t);Er(i,e.props,"prop",l,e)}else if(t.PropTypes!==void 0&&!fe){fe=!0;var p=M(t);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yr(e){{for(var t=Object.keys(e.props),i=0;i<t.length;i++){var l=t[i];if(l!=="children"&&l!=="key"){z(e),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),z(null);break}}e.ref!==null&&(z(e),x("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}var We={};function He(e,t,i,l,p,g){{var v=vr(e);if(!v){var m="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" 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 O=Mr(p);O?m+=O:m+=Fe();var w;e===null?w="null":ce(e)?w="array":e!==void 0&&e.$$typeof===r?(w="<"+(M(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,m)}var S=Dr(e,t,i,p,g);if(S==null)return S;if(v){var D=t.children;if(D!==void 0)if(l)if(ce(D)){for(var V=0;V<D.length;V++)Ze(D[V],e);Object.freeze&&Object.freeze(D)}else x("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 Ze(D,e)}if(q.call(t,"key")){var I=M(e),A=Object.keys(t).filter(function(Zr){return Zr!=="key"}),me=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!We[I+me]){var Vr=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";x(`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} />`,ce,F,Dr,F),ze[F+ce]=!0}}return e===c?xr(b):jr(b),b}}function Sr(e,r,t){return He(e,r,t,!0)}function wr(e,r,t){return He(e,r,t,!1)}var Or=wr,Tr=Sr;L.Fragment=c,L.jsx=Or,L.jsxs=Tr}()),L}process.env.NODE_ENV==="production"?ee.exports=Ue():ee.exports=Ve();var g=ee.exports;const ve=j.createContext({theme:{cssVar:!0,algorithm:[y.theme.defaultAlgorithm]}}),Ze=ve.Provider;function me(){return j.useContext(ve)}function U(o){const{theme:a}=me();return g.jsx(y.ConfigProvider,{theme:a,children:o.children})}const pe=(o,a)=>{const _=o;let c=o;if(a.includes(" ")){c="";const T=a==null?void 0:a.split(" ");for(const A of T)c+=` ${_}-${A}`}else a&&(c=`${o}-${a}`);return c},he=(o="")=>pe("items-row",o),be=o=>o.items?g.jsx(U,{children:g.jsx("div",{className:`${he()} ${o.className||""}`,style:o.style,children:(o.items||[]).map((a,_)=>{const c=`${he("item")} ${a.className}`;return a.render?g.jsx("span",{className:c,children:a.render()},_):g.jsx(y.Button,{className:c,...a.btnProps,type:a.type||"primary",onClick:a.onClick,children:a.label},a.label)})})}):null,Yr="",V=(o="")=>pe("m-breadcrumb",o),Be=o=>{const{routes:a,customItems:_,style:c,className:T,offsetTop:A=64,mainAppBaseUrl:E,microAppName:S}=o,h=I.useRef(null),D=I.useCallback(()=>{var f,w;(w=(f=h.current)==null?void 0:f.updatePosition)==null||w.call(f)},[]);I.useEffect(()=>(window.addEventListener("scroll",D,!0),()=>window.removeEventListener("scroll",D)),[D]);const R=I.useCallback(f=>{if(!f)return"";const w=f.replace(/^\/+/,"");return`/${[E==null?void 0:E.replace(/\/+$/,""),S==null?void 0:S.replace(/\/+$/,""),w].filter(Boolean).join("/")}`},[E,S]);return g.jsx(U,{children:g.jsx("div",{className:`${V()} ${T||""}`,style:c,children:g.jsx(y.Affix,{ref:h,offsetTop:A,children:g.jsxs(y.Card,{className:V("container"),rootClassName:V("body"),variant:"borderless",children:[g.jsx(y.Breadcrumb,{className:V("inner-breadcrumb"),style:{fontSize:"18px"},children:a==null?void 0:a.map(f=>g.jsx(y.Breadcrumb.Item,{children:f.url?g.jsx("a",{href:`#${R(f.url)}`,children:f.name}):f.name},f.url||f.name))}),g.jsx("div",{className:V("custom-item-wrapper"),children:g.jsx(be,{items:_})})]})})})})},ge=o=>{const{data:a,title:_,column:c=3,lineHeight:T,align:A="left",itemLayout:E,colon:S=!0,bordered:h=!1,style:D,className:R,labelStyle:f,contentStyle:w}=o,M={...T?{lineHeight:`${T}px`}:{},textAlign:A,...E!=null&&E.label?{width:`${E.label}px`}:{},...f},q={...T?{lineHeight:`${T}px`}:{},...E!=null&&E.value?{width:`${E.value}px`}:{},...w};return g.jsx(U,{children:g.jsx(y.Descriptions,{title:_,column:c,colon:S,bordered:h,style:D,className:R,labelStyle:M,contentStyle:q,children:a.map((N,re)=>{var Y;return g.jsx(y.Descriptions.Item,{label:N.label,span:N.span,children:N.value||"-"},((Y=N.label)==null?void 0:Y.toString())||re)})})})};ge.displayName="MDescriptions";function Je(o){var _;const a=((_=o.columns)==null?void 0:_.map(c=>({...c,dataIndex:c.key})))??[];return g.jsxs(U,{children:[g.jsx(y.Table,{rowKey:c=>c.id,...o,columns:a}),";"]})}const qe={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"},Ke=10;class v{}m(v,"integerRegex",/^-?\d+$/),m(v,"positiveIntegerRegex",/^[1-9]\d*$/),m(v,"negativeIntegerRegex",/^-[1-9]\d*$/),m(v,"floatRegex",/^-?\d+(\.\d+)?$/),m(v,"letter",/^[a-zA-Z]+$/),m(v,"chinese",/^[\u4e00-\u9fa5]+$/),m(v,"number",/^[0-9]*$/),m(v,"username",/^[a-zA-Z]\w{3,15}$/),m(v,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),m(v,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),m(v,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),m(v,"phone",/^1[3-9]\d{9}$/),m(v,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),m(v,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),m(v,"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)$/),m(v,"bankCard",/^[1-9]\d{3,30}$/),m(v,"zipCode",/^[1-9]\d{5}$/),m(v,"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])$/),m(v,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),m(v,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),m(v,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),m(v,"date",/^(\d{4})-(\d{2})-(\d{2})$/),d.CompThemeProvider=U,d.DATE_FORMAT=qe,d.ItemsRow=be,d.MBreadcrumb=Be,d.MDescriptions=ge,d.MTable=Je,d.MiThemeProvider=Ze,d.PAGE_SIZE=Ke,d.PatternType=v,d.useMiThemeConfig=me,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
32
+ <%s key={someKey} {...props} />`,me,I,Vr,I),We[I+me]=!0}}return e===a?Yr(S):kr(S),S}}function Ir(e,t,i){return He(e,t,i,!0)}function Nr(e,t,i){return He(e,t,i,!1)}var Fr=Nr,zr=Ir;W.Fragment=a,W.jsx=Fr,W.jsxs=zr}()),W}process.env.NODE_ENV==="production"?te.exports=Le():te.exports=Be();var T=te.exports;class Je{constructor(){b(this,"add",function(r,n){let a,s,f,c;try{a=r.toString().split(".")[1].length}catch{a=0}try{s=n.toString().split(".")[1].length}catch{s=0}if(c=Math.abs(a-s),f=Math.pow(10,Math.max(a,s)),c>0){let u=Math.pow(10,c);a>s?(r=Number(r.toString().replace(".","")),n=Number(n.toString().replace(".",""))*u):(r=Number(r.toString().replace(".",""))*u,n=Number(n.toString().replace(".","")))}else r=Number(r==null?void 0:r.toString().replace(".","")),n=Number(n==null?void 0:n.toString().replace(".",""));return(r+n)/f});b(this,"sub",function(r,n){let a,s,f,c;try{a=r.toString().split(".")[1].length}catch{a=0}try{s=n.toString().split(".")[1].length}catch{s=0}return f=Math.pow(10,Math.max(a,s)),c=a>=s?a:s,Number(((r*f-n*f)/f).toFixed(c))});b(this,"mul",function(r,n){let a=0,s=r.toString(),f=n.toString();try{a+=s.split(".")[1].length}catch{}try{a+=f.split(".")[1].length}catch{}return Number(s.replace(".",""))*Number(f.replace(".",""))/Math.pow(10,a)});b(this,"div",function(r,n){let a=0,s=0,f,c;try{a=r.toString().split(".")[1].length}catch{}try{s=n.toString().split(".")[1].length}catch{}return f=Number(r.toString().replace(".","")),c=Number(n.toString().replace(".","")),f/c*Math.pow(10,s-a)})}}const qe=new Je,B=class B{constructor(){b(this,"callbacks",[]);b(this,"pending",!1);b(this,"timerFunc");this.timerFunc=this.determineTimerFunc()}determineTimerFunc(){if(typeof Promise<"u"){const r=Promise.resolve();return()=>r.then(this.flushCallbacks.bind(this))}if(typeof MutationObserver<"u"&&typeof window<"u"){let r=1;const n=new MutationObserver(this.flushCallbacks.bind(this)),a=document.createTextNode(String(r));return n.observe(a,{characterData:!0}),()=>{r=(r+1)%2,a.data=String(r)}}return()=>setTimeout(this.flushCallbacks.bind(this),0)}flushCallbacks(){this.pending=!1;const r=this.callbacks.slice(0);this.callbacks.length=0;for(let n=0;n<r.length;n++)r[n]()}nextTick(r,n){let a;if(this.callbacks.push(()=>{if(r)try{r.call(n)}catch(s){console.error("Error in nextTick:",s)}else a&&a()}),this.pending||(this.pending=!0,this.timerFunc()),!r&&typeof Promise<"u")return new Promise(s=>{a=s})}static nextTick(r,n){return B.instance.nextTick(r,n)}static get instance(){return this._instance||(this._instance=new B),this._instance}};b(B,"_instance");let H=B;const Ke=H.instance.nextTick.bind(H.instance),Ge=()=>{},ne=(o,r)=>{const n=o;let a=o;if(r.includes(" ")){a="";const s=r==null?void 0:r.split(" ");for(const f of s)a+=` ${n}-${f}`}else r&&(a=`${o}-${r}`);return a},Xe=(o,r)=>{const n=r==null?void 0:r.split(".");let a=o;for(const s of n)a=a[s];return a},Qe=o=>{for(const r in o)o[r]===null&&delete o[r];return o},er=(o,r)=>{let n=null;return(...a)=>{n&&clearTimeout(n),n=setTimeout(()=>{o(...a)},r)}},rr=(o,r)=>{let n=null,a=0;return(...s)=>{const f=Date.now();n?f-a>=r&&(o(...s),a=f):(o(...s),a=f,n=setTimeout(()=>{n=null},r))}};class tr{static isValid(r){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(r)}static compare(r,n){if(!this.isValid(r)||!this.isValid(n))throw new Error("Invalid version format");const a=d=>d.replace(/^v/,"").split(/[-+]/)[0].split("."),s=a(r),f=a(n);for(let d=0;d<3;d++){const y=parseInt(s[d]||"0",10),_=parseInt(f[d]||"0",10);if(y>_)return 1;if(y<_)return-1}const c=r.match(/-(.+)/),u=n.match(/-(.+)/);return c&&!u?-1:!c&&u?1:c&&u?c[1].localeCompare(u[1]):0}static satisfies(r,n){if(!this.isValid(r))return!1;const a=/([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g,s=n.match(a);return!s||s.length===0?!1:s.every(f=>{const c=f.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);if(!c)return!1;const u=c[1]||"==",d=c[2];if(!this.isValid(d))return!1;const y=this.compare(r,d);switch(u){case">":return y>0;case">=":return y>=0;case"<":return y<0;case"<=":return y<=0;case"^":return this.caretRange(r,d);case"~":return this.tildeRange(r,d);case"=":case"==":default:return y===0}})}static caretRange(r,n){const a=u=>u.replace(/^v/,"").split(/[-+]/)[0].split("."),s=a(r),f=a(n);let c=0;for(let u=0;u<f.length;u++)if(parseInt(f[u],10)!==0){c=u;break}for(let u=0;u<=c;u++){const d=parseInt(s[u]||"0",10),y=parseInt(f[u]||"0",10);if(d!==y)return!1}return this.compare(r,n)>=0}static tildeRange(r,n){const a=d=>d.replace(/^v/,"").split(/[-+]/)[0].split("."),s=a(r),f=a(n);for(let d=0;d<f.length-1;d++){const y=parseInt(s[d]||"0",10),_=parseInt(f[d]||"0",10);if(y!==_)return!1}const c=parseInt(s[f.length-1]||"0",10),u=parseInt(f[f.length-1]||"0",10);return c>=u}static getMajor(r){if(!this.isValid(r))throw new Error("Invalid version format");const n=r.replace(/^v/,"").split(".");return parseInt(n[0],10)}static getMinor(r){if(!this.isValid(r))throw new Error("Invalid version format");const n=r.replace(/^v/,"").split(".");return parseInt(n[1]||"0",10)}static getPatch(r){if(!this.isValid(r))throw new Error("Invalid version format");const n=r.replace(/^v/,"").split(".");return parseInt(n[2]||"0",10)}static getPrerelease(r){if(!this.isValid(r))throw new Error("Invalid version format");const n=r.match(/-([^+]+)/);return n?n[1]:null}static getBuildMetadata(r){if(!this.isValid(r))throw new Error("Invalid version format");const n=r.match(/\+([^]+)/);return n?n[1]:null}}const pe=j.createContext({theme:{cssVar:!0,algorithm:[C.theme.defaultAlgorithm]}}),nr=pe.Provider;function be(){return j.useContext(pe)}function U(o){const{theme:r}=be();return T.jsx(C.ConfigProvider,{theme:r,children:o.children})}const ge=(o="")=>ne("items-row",o),Re=o=>o.items?T.jsx(U,{children:T.jsx("div",{className:`${ge()} ${o.className||""}`,style:o.style,children:(o.items||[]).map((r,n)=>{const a=`${ge("item")} ${r.className}`;return r.render?T.jsx("span",{className:a,children:r.render()},n):T.jsx(C.Button,{className:a,...r.btnProps,type:r.type||"primary",onClick:r.onClick,children:r.label},r.label)})})}):null,Ur="",L=(o="")=>ne("m-breadcrumb",o),ar=o=>{const{routes:r,customItems:n,style:a,className:s,offsetTop:f=64,mainAppBaseUrl:c,microAppName:u}=o,d=N.useRef(null),y=N.useCallback(()=>{var R,P;(P=(R=d.current)==null?void 0:R.updatePosition)==null||P.call(R)},[]);N.useEffect(()=>(window.addEventListener("scroll",y,!0),()=>window.removeEventListener("scroll",y)),[y]);const _=N.useCallback(R=>{if(!R)return"";const P=R.replace(/^\/+/,"");return`/${[c==null?void 0:c.replace(/\/+$/,""),u==null?void 0:u.replace(/\/+$/,""),P].filter(Boolean).join("/")}`},[c,u]);return T.jsx(U,{children:T.jsx("div",{className:`${L()} ${s||""}`,style:a,children:T.jsx(C.Affix,{ref:d,offsetTop:f,children:T.jsxs(C.Card,{className:L("container"),rootClassName:L("body"),variant:"borderless",children:[T.jsx(C.Breadcrumb,{className:L("inner-breadcrumb"),style:{fontSize:"18px"},children:r==null?void 0:r.map(R=>T.jsx(C.Breadcrumb.Item,{children:R.url?T.jsx("a",{href:`#${_(R.url)}`,children:R.name}):R.name},R.url||R.name))}),T.jsx("div",{className:L("custom-item-wrapper"),children:T.jsx(Re,{items:n})})]})})})})},ye=o=>{const{data:r,title:n,column:a=3,lineHeight:s,align:f="left",itemLayout:c,colon:u=!0,bordered:d=!1,style:y,className:_,labelStyle:R,contentStyle:P}=o,k={...s?{lineHeight:`${s}px`}:{},textAlign:f,...c!=null&&c.label?{width:`${c.label}px`}:{},...R},G={...s?{lineHeight:`${s}px`}:{},...c!=null&&c.value?{width:`${c.value}px`}:{},...P};return T.jsx(U,{children:T.jsx(C.Descriptions,{title:n,column:a,colon:u,bordered:d,style:y,className:_,labelStyle:k,contentStyle:G,children:r.map((F,ae)=>{var $;return T.jsx(C.Descriptions.Item,{label:F.label,span:F.span,children:F.value||"-"},(($=F.label)==null?void 0:$.toString())||ae)})})})};ye.displayName="MDescriptions";function ir(o){var n;const r=((n=o.columns)==null?void 0:n.map(a=>({...a,dataIndex:a.key})))??[];return T.jsxs(U,{children:[T.jsx(C.Table,{rowKey:a=>a.id,...o,columns:r}),";"]})}const sr={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"},or=10;class E{}b(E,"integerRegex",/^-?\d+$/),b(E,"positiveIntegerRegex",/^[1-9]\d*$/),b(E,"negativeIntegerRegex",/^-[1-9]\d*$/),b(E,"floatRegex",/^-?\d+(\.\d+)?$/),b(E,"letter",/^[a-zA-Z]+$/),b(E,"chinese",/^[\u4e00-\u9fa5]+$/),b(E,"number",/^[0-9]*$/),b(E,"username",/^[a-zA-Z]\w{3,15}$/),b(E,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),b(E,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),b(E,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),b(E,"phone",/^1[3-9]\d{9}$/),b(E,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),b(E,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),b(E,"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)$/),b(E,"bankCard",/^[1-9]\d{3,30}$/),b(E,"zipCode",/^[1-9]\d{5}$/),b(E,"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])$/),b(E,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),b(E,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),b(E,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),b(E,"date",/^(\d{4})-(\d{2})-(\d{2})$/),h.CompThemeProvider=U,h.DATE_FORMAT=sr,h.ItemsRow=Re,h.MBreadcrumb=ar,h.MDescriptions=ye,h.MTable=ir,h.MiThemeProvider=nr,h.NextTick=H,h.PAGE_SIZE=or,h.PatternType=E,h.VersionUtil=tr,h.cmx=qe,h.debounce=er,h.getClassName=ne,h.getFieldsByPath=Xe,h.nextTick=Ke,h.noop=Ge,h.removeNull=Qe,h.throttle=rr,h.useMiThemeConfig=be,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,20 @@
1
+ declare class CMX {
2
+ /**
3
+ ** 加
4
+ **/
5
+ add: (arg1: number, arg2: number) => number;
6
+ /**
7
+ ** 减
8
+ **/
9
+ sub: (arg1: number, arg2: number) => number;
10
+ /**
11
+ ** 乘
12
+ **/
13
+ mul: (arg1: number, arg2: number) => number;
14
+ /**
15
+ ** 除
16
+ **/
17
+ div: (arg1: number, arg2: number) => number;
18
+ }
19
+ export declare const cmx: CMX;
20
+ export {};
@@ -0,0 +1,92 @@
1
+ class CMX {
2
+ /**
3
+ ** 加
4
+ **/
5
+ add = function (arg1, arg2) {
6
+ let r1, r2, m, c;
7
+ try {
8
+ r1 = arg1.toString().split('.')[1].length;
9
+ }
10
+ catch (e) {
11
+ r1 = 0;
12
+ }
13
+ try {
14
+ r2 = arg2.toString().split('.')[1].length;
15
+ }
16
+ catch (e) {
17
+ r2 = 0;
18
+ }
19
+ c = Math.abs(r1 - r2);
20
+ m = Math.pow(10, Math.max(r1, r2));
21
+ if (c > 0) {
22
+ let cm = Math.pow(10, c);
23
+ if (r1 > r2) {
24
+ arg1 = Number(arg1.toString().replace('.', ''));
25
+ arg2 = Number(arg2.toString().replace('.', '')) * cm;
26
+ }
27
+ else {
28
+ arg1 = Number(arg1.toString().replace('.', '')) * cm;
29
+ arg2 = Number(arg2.toString().replace('.', ''));
30
+ }
31
+ }
32
+ else {
33
+ arg1 = Number(arg1?.toString().replace('.', ''));
34
+ arg2 = Number(arg2?.toString().replace('.', ''));
35
+ }
36
+ return (arg1 + arg2) / m;
37
+ };
38
+ /**
39
+ ** 减
40
+ **/
41
+ sub = function (arg1, arg2) {
42
+ let r1, r2, m, n;
43
+ try {
44
+ r1 = arg1.toString().split('.')[1].length;
45
+ }
46
+ catch (e) {
47
+ r1 = 0;
48
+ }
49
+ try {
50
+ r2 = arg2.toString().split('.')[1].length;
51
+ }
52
+ catch (e) {
53
+ r2 = 0;
54
+ }
55
+ m = Math.pow(10, Math.max(r1, r2)); //last modify by deeka //动态控制精度长度
56
+ n = r1 >= r2 ? r1 : r2;
57
+ return Number(((arg1 * m - arg2 * m) / m).toFixed(n));
58
+ };
59
+ /**
60
+ ** 乘
61
+ **/
62
+ mul = function (arg1, arg2) {
63
+ let m = 0, s1 = arg1.toString(), s2 = arg2.toString();
64
+ try {
65
+ m += s1.split('.')[1].length;
66
+ }
67
+ catch (e) { }
68
+ try {
69
+ m += s2.split('.')[1].length;
70
+ }
71
+ catch (e) { }
72
+ return ((Number(s1.replace('.', '')) * Number(s2.replace('.', ''))) / Math.pow(10, m));
73
+ };
74
+ /**
75
+ ** 除
76
+ **/
77
+ div = function (arg1, arg2) {
78
+ let t1 = 0, t2 = 0, r1, r2;
79
+ try {
80
+ t1 = arg1.toString().split('.')[1].length;
81
+ }
82
+ catch (e) { }
83
+ try {
84
+ t2 = arg2.toString().split('.')[1].length;
85
+ }
86
+ catch (e) { }
87
+ r1 = Number(arg1.toString().replace('.', ''));
88
+ r2 = Number(arg2.toString().replace('.', ''));
89
+ return (r1 / r2) * Math.pow(10, t2 - t1);
90
+ };
91
+ }
92
+ export const cmx = new CMX();
@@ -0,0 +1,4 @@
1
+ export * from './calc';
2
+ export * from './nextTick';
3
+ export * from './util';
4
+ export * from './version';
@@ -0,0 +1,5 @@
1
+ export * from './calc';
2
+ export * from './nextTick';
3
+ // export * from './openModal';
4
+ export * from './util';
5
+ export * from './version';
@@ -0,0 +1,14 @@
1
+ declare class NextTick {
2
+ private callbacks;
3
+ private pending;
4
+ private timerFunc;
5
+ constructor();
6
+ private determineTimerFunc;
7
+ private flushCallbacks;
8
+ nextTick<T = void>(callback?: (this: T) => void, ctx?: T): Promise<void> | void;
9
+ static nextTick<T = void>(callback?: (this: T) => void, ctx?: T): Promise<void> | void;
10
+ private static _instance;
11
+ static get instance(): NextTick;
12
+ }
13
+ declare const nextTick: <T = void>(callback?: (this: T) => void, ctx?: T) => Promise<void> | void;
14
+ export { NextTick, nextTick };
@@ -0,0 +1,74 @@
1
+ class NextTick {
2
+ callbacks = [];
3
+ pending = false;
4
+ timerFunc;
5
+ constructor() {
6
+ this.timerFunc = this.determineTimerFunc();
7
+ }
8
+ determineTimerFunc() {
9
+ if (typeof Promise !== 'undefined') {
10
+ const p = Promise.resolve();
11
+ return () => p.then(this.flushCallbacks.bind(this));
12
+ }
13
+ if (typeof MutationObserver !== 'undefined' && typeof window !== 'undefined') {
14
+ let counter = 1;
15
+ const observer = new MutationObserver(this.flushCallbacks.bind(this));
16
+ const textNode = document.createTextNode(String(counter));
17
+ observer.observe(textNode, { characterData: true });
18
+ return () => {
19
+ counter = (counter + 1) % 2;
20
+ textNode.data = String(counter);
21
+ };
22
+ }
23
+ // // 仅在 Node.js 环境中使用 setImmediate
24
+ // if (typeof global !== 'undefined' && typeof setImmediate !== 'undefined') {
25
+ // return () => setImmediate(this.flushCallbacks.bind(this));
26
+ // }
27
+ return () => setTimeout(this.flushCallbacks.bind(this), 0);
28
+ }
29
+ flushCallbacks() {
30
+ this.pending = false;
31
+ const copies = this.callbacks.slice(0);
32
+ this.callbacks.length = 0;
33
+ for (let i = 0; i < copies.length; i++) {
34
+ copies[i]();
35
+ }
36
+ }
37
+ nextTick(callback, ctx) {
38
+ let _resolve;
39
+ this.callbacks.push(() => {
40
+ if (callback) {
41
+ try {
42
+ callback.call(ctx);
43
+ }
44
+ catch (e) {
45
+ console.error('Error in nextTick:', e);
46
+ }
47
+ }
48
+ else if (_resolve) {
49
+ _resolve();
50
+ }
51
+ });
52
+ if (!this.pending) {
53
+ this.pending = true;
54
+ this.timerFunc();
55
+ }
56
+ if (!callback && typeof Promise !== 'undefined') {
57
+ return new Promise(resolve => {
58
+ _resolve = resolve;
59
+ });
60
+ }
61
+ }
62
+ static nextTick(callback, ctx) {
63
+ return NextTick.instance.nextTick(callback, ctx);
64
+ }
65
+ static _instance;
66
+ static get instance() {
67
+ if (!this._instance) {
68
+ this._instance = new NextTick();
69
+ }
70
+ return this._instance;
71
+ }
72
+ }
73
+ const nextTick = NextTick.instance.nextTick.bind(NextTick.instance);
74
+ export { NextTick, nextTick };
@@ -0,0 +1,6 @@
1
+ export declare const noop: () => void;
2
+ export declare const getClassName: (key1: string, key2: string) => string;
3
+ export declare const getFieldsByPath: (data: any, path: string) => any;
4
+ export declare const removeNull: (obj: any) => any;
5
+ export declare const debounce: (func: any, wait: number) => (...args: any[]) => void;
6
+ export declare const throttle: (func: any, wait: number) => (...args: any[]) => void;
@@ -0,0 +1,69 @@
1
+ export const noop = () => { };
2
+ // 生成类名
3
+ export const getClassName = (key1, key2) => {
4
+ const cn = key1;
5
+ let str = key1;
6
+ if (key2.includes(' ')) {
7
+ str = '';
8
+ const nArr = key2?.split(' ');
9
+ for (const i of nArr) {
10
+ str += ` ${cn}-${i}`;
11
+ }
12
+ }
13
+ else if (key2) {
14
+ str = `${key1}-${key2}`;
15
+ }
16
+ return str;
17
+ };
18
+ // 根据路径获取数据
19
+ export const getFieldsByPath = (data, path) => {
20
+ const arr = path?.split('.');
21
+ let res = data;
22
+ for (const i of arr) {
23
+ res = res[i];
24
+ }
25
+ return res;
26
+ };
27
+ // 删除空值
28
+ export const removeNull = (obj) => {
29
+ for (const key in obj) {
30
+ if (obj[key] === null) {
31
+ delete obj[key];
32
+ }
33
+ }
34
+ return obj;
35
+ };
36
+ // 防抖函数
37
+ export const debounce = (func, wait) => {
38
+ let timeout = null;
39
+ return (...args) => {
40
+ if (timeout) {
41
+ clearTimeout(timeout);
42
+ }
43
+ timeout = setTimeout(() => {
44
+ func(...args);
45
+ }, wait);
46
+ };
47
+ };
48
+ // 节流函数
49
+ export const throttle = (func, wait) => {
50
+ let timeout = null;
51
+ let lastTime = 0;
52
+ return (...args) => {
53
+ const nowTime = Date.now();
54
+ if (!timeout) {
55
+ func(...args);
56
+ lastTime = nowTime;
57
+ timeout = setTimeout(() => {
58
+ timeout = null;
59
+ }, wait);
60
+ }
61
+ else {
62
+ const diffTime = nowTime - lastTime;
63
+ if (diffTime >= wait) {
64
+ func(...args);
65
+ lastTime = nowTime;
66
+ }
67
+ }
68
+ };
69
+ };
@@ -0,0 +1,70 @@
1
+ /**
2
+ * 版本号工具类
3
+ * 支持语义化版本 (SemVer) 和基本版本号比较
4
+ */
5
+ export declare class VersionUtil {
6
+ /**
7
+ * 验证版本号格式是否有效
8
+ * @param version 版本号字符串
9
+ * @returns 是否有效
10
+ */
11
+ static isValid(version: string): boolean;
12
+ /**
13
+ * 比较两个版本号
14
+ * @param v1 版本号1
15
+ * @param v2 版本号2
16
+ * @returns 比较结果: 1(v1>v2), 0(v1=v2), -1(v1<v2)
17
+ */
18
+ static compare(v1: string, v2: string): number;
19
+ /**
20
+ * 检查版本号是否满足范围要求
21
+ * @param version 要检查的版本
22
+ * @param range 版本范围 (如 ">=1.0.0 <2.0.0") 支持: >, >=, <, <=, ^, ~, ==, =
23
+ * @returns 是否满足
24
+ */
25
+ static satisfies(version: string, range: string): boolean;
26
+ /**
27
+ * 处理 ^ 范围 (允许不修改最左边的非零数字)
28
+ * @param version 版本号
29
+ * @param range 范围版本
30
+ * @returns 是否匹配
31
+ */
32
+ private static caretRange;
33
+ /**
34
+ * 处理 ~ 范围 (允许修改最后一位数字)
35
+ * @param version 版本号
36
+ * @param range 范围版本
37
+ * @returns 是否匹配
38
+ */
39
+ private static tildeRange;
40
+ /**
41
+ * 获取主版本号 (major)
42
+ * @param version 版本号
43
+ * @returns 主版本号
44
+ */
45
+ static getMajor(version: string): number;
46
+ /**
47
+ * 获取次版本号 (minor)
48
+ * @param version 版本号
49
+ * @returns 次版本号
50
+ */
51
+ static getMinor(version: string): number;
52
+ /**
53
+ * 获取修订号 (patch)
54
+ * @param version 版本号
55
+ * @returns 修订号
56
+ */
57
+ static getPatch(version: string): number;
58
+ /**
59
+ * 获取预发布版本标识
60
+ * @param version 版本号
61
+ * @returns 预发布标识 (无则返回null)
62
+ */
63
+ static getPrerelease(version: string): string | null;
64
+ /**
65
+ * 获取构建元数据
66
+ * @param version 版本号
67
+ * @returns 构建元数据 (无则返回null)
68
+ */
69
+ static getBuildMetadata(version: string): string | null;
70
+ }