xmirror-components 1.0.29 → 1.0.30-alpha.1
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/build/dist/index.cjs +161 -16
- package/build/dist/index.mjs +1756 -1583
- package/build/es/components/Table/Footer/index.d.ts +0 -1
- package/build/es/components/Table/Footer/index.js +20 -17
- package/build/es/components/Table/Footer/styles.d.ts +25 -0
- package/build/es/components/Table/Footer/styles.js +25 -0
- package/build/es/components/Table/PopoverSetColumns/index.d.ts +0 -1
- package/build/es/components/Table/PopoverSetColumns/index.js +2 -2
- package/build/es/components/Table/PopoverSetColumns/styles.d.ts +8 -0
- package/build/es/components/Table/PopoverSetColumns/styles.js +11 -0
- package/build/es/components/Table/index.d.ts +0 -1
- package/build/es/components/Table/index.js +2 -2
- package/build/es/components/Table/styles.d.ts +4 -0
- package/build/es/components/Table/styles.js +7 -0
- package/build/lib/components/Table/Footer/index.js +19 -16
- package/build/lib/components/Table/Footer/styles.js +31 -0
- package/build/lib/components/Table/PopoverSetColumns/index.js +2 -2
- package/build/lib/components/Table/PopoverSetColumns/styles.js +17 -0
- package/build/lib/components/Table/index.js +2 -2
- package/build/lib/components/Table/styles.js +13 -0
- package/build/package.json +1 -1
- package/build/types/components/Table/Footer/index.d.ts +0 -1
- package/build/types/components/Table/Footer/styles.d.ts +25 -0
- package/build/types/components/Table/PopoverSetColumns/index.d.ts +0 -1
- package/build/types/components/Table/PopoverSetColumns/styles.d.ts +8 -0
- package/build/types/components/Table/index.d.ts +0 -1
- package/build/types/components/Table/styles.d.ts +4 -0
- package/package.json +1 -1
- package/build/dist/index.css +0 -1
package/build/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),oe=require("antd"),He=require("react-dom"),Qr=require("@ant-design/icons");function Gn(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const H=Gn(w);var Xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ke={exports:{}},Ie={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.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
|
|
9
|
+
*/var gt;function Bn(){if(gt)return Ie;gt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return Ie.Fragment=r,Ie.jsx=t,Ie.jsxs=t,Ie}var $e={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,49 +14,49 @@
|
|
|
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
|
|
17
|
+
*/var yt;function Hn(){return yt||(yt=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case v:return"Fragment";case E:return"Profiler";case x:return"StrictMode";case p:return"Suspense";case P:return"SuspenseList";case D:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case h:return"Portal";case S:return(f.displayName||"Context")+".Provider";case T:return(f._context.displayName||"Context")+".Consumer";case R:var y=f.render;return f=f.displayName,f||(f=y.displayName||y.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case N:return y=f.displayName||null,y!==null?y:e(f.type)||"Memo";case J:y=f._payload,f=f._init;try{return e(f(y))}catch{}}return null}function r(f){return""+f}function t(f){try{r(f);var y=!1}catch{y=!0}if(y){y=console;var C=y.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return C.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),r(f)}}function n(f){if(f===v)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===J)return"<...>";try{var y=e(f);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function o(){var f=W.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function i(f){if(Z.call(f,"key")){var y=Object.getOwnPropertyDescriptor(f,"key").get;if(y&&y.isReactWarning)return!1}return f.key!==void 0}function s(f,y){function C(){ee||(ee=!0,console.error("%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://react.dev/link/special-props)",y))}C.isReactWarning=!0,Object.defineProperty(f,"key",{get:C,configurable:!0})}function u(){var f=e(this.type);return re[f]||(re[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function c(f,y,C,O,A,k,$,M){return C=k.ref,f={$$typeof:g,type:f,key:y,props:k,_owner:A},(C!==void 0?C:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:u}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:M}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function l(f,y,C,O,A,k,$,M){var j=y.children;if(j!==void 0)if(O)if(X(j)){for(O=0;O<j.length;O++)d(j[O]);Object.freeze&&Object.freeze(j)}else console.error("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 d(j);if(Z.call(y,"key")){j=e(f);var F=Object.keys(y).filter(function(te){return te!=="key"});O=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",xe[j+O]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,O,j,F,j),xe[j+O]=!0)}if(j=null,C!==void 0&&(t(C),j=""+C),i(y)&&(t(y.key),j=""+y.key),"key"in y){C={};for(var q in y)q!=="key"&&(C[q]=y[q])}else C=y;return j&&s(C,typeof f=="function"?f.displayName||f.name||"Unknown":f),c(f,j,k,A,o(),C,$,M)}function d(f){typeof f=="object"&&f!==null&&f.$$typeof===g&&f._store&&(f._store.validated=1)}var b=w,g=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),S=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),W=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Object.prototype.hasOwnProperty,X=Array.isArray,K=console.createTask?console.createTask:function(){return null};b={"react-stack-bottom-frame":function(f){return f()}};var ee,re={},pe=b["react-stack-bottom-frame"].bind(b,a)(),ve=K(n(a)),xe={};$e.Fragment=v,$e.jsx=function(f,y,C,O,A){var k=1e4>W.recentlyCreatedOwnerStacks++;return l(f,y,C,!1,O,A,k?Error("react-stack-top-frame"):pe,k?K(n(f)):ve)},$e.jsxs=function(f,y,C,O,A){var k=1e4>W.recentlyCreatedOwnerStacks++;return l(f,y,C,!0,O,A,k?Error("react-stack-top-frame"):pe,k?K(n(f)):ve)}}()),$e}var bt;function Xn(){return bt||(bt=1,process.env.NODE_ENV==="production"?Ke.exports=Bn():Ke.exports=Hn()),Ke.exports}var _=Xn();function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ze.apply(null,arguments)}function vn(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Ur(e,r){return Ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Ur(e,r)}function mn(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Ur(e,r)}var Je={exports:{}},Ze={exports:{}},U={};/** @license React v16.13.1
|
|
23
23
|
* react-is.production.min.js
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var
|
|
29
|
+
*/var xt;function Kn(){if(xt)return U;xt=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(p){if(typeof p=="object"&&p!==null){var P=p.$$typeof;switch(P){case r:switch(p=p.type,p){case u:case c:case n:case a:case o:case d:return p;default:switch(p=p&&p.$$typeof,p){case s:case l:case h:case g:case i:return p;default:return P}}case t:return P}}}function R(p){return S(p)===c}return U.AsyncMode=u,U.ConcurrentMode=c,U.ContextConsumer=s,U.ContextProvider=i,U.Element=r,U.ForwardRef=l,U.Fragment=n,U.Lazy=h,U.Memo=g,U.Portal=t,U.Profiler=a,U.StrictMode=o,U.Suspense=d,U.isAsyncMode=function(p){return R(p)||S(p)===u},U.isConcurrentMode=R,U.isContextConsumer=function(p){return S(p)===s},U.isContextProvider=function(p){return S(p)===i},U.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===r},U.isForwardRef=function(p){return S(p)===l},U.isFragment=function(p){return S(p)===n},U.isLazy=function(p){return S(p)===h},U.isMemo=function(p){return S(p)===g},U.isPortal=function(p){return S(p)===t},U.isProfiler=function(p){return S(p)===a},U.isStrictMode=function(p){return S(p)===o},U.isSuspense=function(p){return S(p)===d},U.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===c||p===a||p===o||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===g||p.$$typeof===i||p.$$typeof===s||p.$$typeof===l||p.$$typeof===x||p.$$typeof===E||p.$$typeof===T||p.$$typeof===v)},U.typeOf=S,U}var V={};/** @license React v16.13.1
|
|
30
30
|
* react-is.development.js
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var
|
|
36
|
+
*/var Et;function Jn(){return Et||(Et=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===a||m===o||m===d||m===b||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===g||m.$$typeof===i||m.$$typeof===s||m.$$typeof===l||m.$$typeof===x||m.$$typeof===E||m.$$typeof===T||m.$$typeof===v)}function R(m){if(typeof m=="object"&&m!==null){var ce=m.$$typeof;switch(ce){case r:var be=m.type;switch(be){case u:case c:case n:case a:case o:case d:return be;default:var ke=be&&be.$$typeof;switch(ke){case s:case l:case h:case g:case i:return ke;default:return ce}}case t:return ce}}}var p=u,P=c,N=s,J=i,D=r,L=l,W=n,Z=h,X=g,K=t,ee=a,re=o,pe=d,ve=!1;function xe(m){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),f(m)||R(m)===u}function f(m){return R(m)===c}function y(m){return R(m)===s}function C(m){return R(m)===i}function O(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function A(m){return R(m)===l}function k(m){return R(m)===n}function $(m){return R(m)===h}function M(m){return R(m)===g}function j(m){return R(m)===t}function F(m){return R(m)===a}function q(m){return R(m)===o}function te(m){return R(m)===d}V.AsyncMode=p,V.ConcurrentMode=P,V.ContextConsumer=N,V.ContextProvider=J,V.Element=D,V.ForwardRef=L,V.Fragment=W,V.Lazy=Z,V.Memo=X,V.Portal=K,V.Profiler=ee,V.StrictMode=re,V.Suspense=pe,V.isAsyncMode=xe,V.isConcurrentMode=f,V.isContextConsumer=y,V.isContextProvider=C,V.isElement=O,V.isForwardRef=A,V.isFragment=k,V.isLazy=$,V.isMemo=M,V.isPortal=j,V.isProfiler=F,V.isStrictMode=q,V.isSuspense=te,V.isValidElementType=S,V.typeOf=R}()),V}var Tt;function hn(){return Tt||(Tt=1,process.env.NODE_ENV==="production"?Ze.exports=Kn():Ze.exports=Jn()),Ze.exports}/*
|
|
37
37
|
object-assign
|
|
38
38
|
(c) Sindre Sorhus
|
|
39
39
|
@license MIT
|
|
40
|
-
*/var yr,
|
|
41
|
-
Valid keys: `+JSON.stringify(Object.keys(f),null," "));var m=te(M,q,A,I,$+"."+q,t);if(m)return m}return null}return E(g)}function X(f){switch(typeof f){case"number":case"string":case"undefined":return!0;case"boolean":return!f;case"object":if(Array.isArray(f))return f.every(X);if(f===null||s(f))return!0;var g=d(f);if(g){var w=g.call(f),_;if(g!==f.entries){for(;!(_=w.next()).done;)if(!X(_.value))return!1}else for(;!(_=w.next()).done;){var A=_.value;if(A&&!X(A[1]))return!1}}else return!1;return!0;default:return!1}}function ee(f,g){return f==="symbol"?!0:g?g["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&g instanceof Symbol:!1}function re(f){var g=typeof f;return Array.isArray(f)?"array":f instanceof RegExp?"object":ee(g,f)?"symbol":g}function de(f){if(typeof f>"u"||f===null)return""+f;var g=re(f);if(g==="object"){if(f instanceof Date)return"date";if(f instanceof RegExp)return"regexp"}return g}function pe(f){var g=de(f);switch(g){case"array":case"object":return"an "+g;case"boolean":case"date":case"regexp":return"a "+g;default:return g}}function be(f){return!f.constructor||!f.constructor.name?b:f.constructor.name}return y.checkPropTypes=a,y.resetWarningCache=a.resetWarningCache,y.PropTypes=y,y},xr}var Tr,Rt;function Zn(){if(Rt)return Tr;Rt=1;var e=Qr();function r(){}function t(){}return t.resetWarningCache=r,Tr=function(){function n(o,s,u,c,l,d){if(d!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:r};return i.PropTypes=i,i},Tr}var Ct;function Qn(){if(Ct)return Je.exports;if(Ct=1,process.env.NODE_ENV!=="production"){var e=ln(),r=!0;Je.exports=Jn()(e.isElement,r)}else Je.exports=Zn()();return Je.exports}var ea=Qn();const k=ur(ea);function ra(e,r){return e.classList?!!r&&e.classList.contains(r):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+r+" ")!==-1}function ta(e,r){e.classList?e.classList.add(r):ra(e,r)||(typeof e.className=="string"?e.className=e.className+" "+r:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+r))}function wt(e,r){return e.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function na(e,r){e.classList?e.classList.remove(r):typeof e.className=="string"?e.className=wt(e.className,r):e.setAttribute("class",wt(e.className&&e.className.baseVal||"",r))}const _t={disabled:!1};var aa=process.env.NODE_ENV!=="production"?k.oneOfType([k.number,k.shape({enter:k.number,exit:k.number,appear:k.number}).isRequired]):null,ia=process.env.NODE_ENV!=="production"?k.oneOfType([k.string,k.shape({enter:k.string,exit:k.string,active:k.string}),k.shape({enter:k.string,enterDone:k.string,enterActive:k.string,exit:k.string,exitDone:k.string,exitActive:k.string})]):null;const pn=C.createContext(null);var vn=function(r){return r.scrollTop},Fe="unmounted",Ee="exited",xe="entering",we="entered",Ur="exiting",ye=function(e){fn(r,e);function r(n,a){var i;i=e.call(this,n,a)||this;var o=a,s=o&&!o.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?s?(u=Ee,i.appearStatus=xe):u=we:n.unmountOnExit||n.mountOnEnter?u=Fe:u=Ee,i.state={status:u},i.nextCallback=null,i}r.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===Fe?{status:Ee}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==xe&&o!==we&&(i=xe):(o===xe||o===we)&&(i=Ur)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},t.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:He.findDOMNode(this);o&&vn(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ee&&this.setState({status:Fe})},t.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[He.findDOMNode(this),s],c=u[0],l=u[1],d=this.getTimeouts(),b=s?d.appear:d.enter;if(!a&&!o||_t.disabled){this.safeSetState({status:we},function(){i.props.onEntered(c)});return}this.props.onEnter(c,l),this.safeSetState({status:xe},function(){i.props.onEntering(c,l),i.onTransitionEnd(b,function(){i.safeSetState({status:we},function(){i.props.onEntered(c,l)})})})},t.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:He.findDOMNode(this);if(!i||_t.disabled){this.safeSetState({status:Ee},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ur},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Ee},function(){a.props.onExited(s)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},t.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},t.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:He.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=u[0],l=u[1];this.props.addEndListener(c,l)}a!=null&&setTimeout(this.nextCallback,a)},t.render=function(){var a=this.state.status;if(a===Fe)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=un(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(pn.Provider,{value:null},typeof o=="function"?o(a,s):C.cloneElement(C.Children.only(o),s))},r}(C.Component);ye.contextType=pn;ye.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:k.shape({current:typeof Element>"u"?k.any:function(e,r,t,n,a,i){var o=e[r];return k.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,r,t,n,a,i)}}),children:k.oneOfType([k.func.isRequired,k.element.isRequired]).isRequired,in:k.bool,mountOnEnter:k.bool,unmountOnExit:k.bool,appear:k.bool,enter:k.bool,exit:k.bool,timeout:function(r){var t=aa;r.addEndListener||(t=t.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return t.apply(void 0,[r].concat(a))},addEndListener:k.func,onEnter:k.func,onEntering:k.func,onEntered:k.func,onExit:k.func,onExiting:k.func,onExited:k.func}:{};function Ce(){}ye.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ce,onEntering:Ce,onEntered:Ce,onExit:Ce,onExiting:Ce,onExited:Ce};ye.UNMOUNTED=Fe;ye.EXITED=Ee;ye.ENTERING=xe;ye.ENTERED=we;ye.EXITING=Ur;var oa=function(r,t){return r&&t&&t.split(" ").forEach(function(n){return ta(r,n)})},Sr=function(r,t){return r&&t&&t.split(" ").forEach(function(n){return na(r,n)})},fr=function(e){fn(r,e);function r(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=e.call.apply(e,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,u){var c=n.resolveArguments(s,u),l=c[0],d=c[1];n.removeClasses(l,"exit"),n.addClass(l,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,u)},n.onEntering=function(s,u){var c=n.resolveArguments(s,u),l=c[0],d=c[1],b=d?"appear":"enter";n.addClass(l,b,"active"),n.props.onEntering&&n.props.onEntering(s,u)},n.onEntered=function(s,u){var c=n.resolveArguments(s,u),l=c[0],d=c[1],b=d?"appear":"enter";n.removeClasses(l,b),n.addClass(l,b,"done"),n.props.onEntered&&n.props.onEntered(s,u)},n.onExit=function(s){var u=n.resolveArguments(s),c=u[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var u=n.resolveArguments(s),c=u[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var u=n.resolveArguments(s),c=u[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,u){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,u]},n.getClassNames=function(s){var u=n.props.classNames,c=typeof u=="string",l=c&&u?u+"-":"",d=c?""+l+s:u[s],b=c?d+"-active":u[s+"Active"],y=c?d+"-done":u[s+"Done"];return{baseClassName:d,activeClassName:b,doneClassName:y}},n}var t=r.prototype;return t.addClass=function(a,i,o){var s=this.getClassNames(i)[o+"ClassName"],u=this.getClassNames("enter"),c=u.doneClassName;i==="appear"&&o==="done"&&c&&(s+=" "+c),o==="active"&&a&&vn(a),s&&(this.appliedClasses[i][o]=s,oa(a,s))},t.removeClasses=function(a,i){var o=this.appliedClasses[i],s=o.base,u=o.active,c=o.done;this.appliedClasses[i]={},s&&Sr(a,s),u&&Sr(a,u),c&&Sr(a,c)},t.render=function(){var a=this.props;a.classNames;var i=un(a,["classNames"]);return C.createElement(ye,Ye({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(C.Component);fr.defaultProps={classNames:""};fr.propTypes=process.env.NODE_ENV!=="production"?Ye({},ye.propTypes,{classNames:ia,onEnter:k.func,onEntering:k.func,onEntered:k.func,onExit:k.func,onExiting:k.func,onExited:k.func}):{};function sa(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function ca(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var ua=function(){function e(t){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ca(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=sa(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),oe="-ms-",or="-moz-",Y="-webkit-",mn="comm",et="rule",rt="decl",fa="@import",hn="@keyframes",la="@layer",da=Math.abs,lr=String.fromCharCode,pa=Object.assign;function va(e,r){return ne(e,0)^45?(((r<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}function yn(e){return e.trim()}function ma(e,r){return(e=r.exec(e))?e[0]:e}function z(e,r,t){return e.replace(r,t)}function Vr(e,r){return e.indexOf(r)}function ne(e,r){return e.charCodeAt(r)|0}function ze(e,r,t){return e.slice(r,t)}function ve(e){return e.length}function tt(e){return e.length}function Qe(e,r){return r.push(e),e}function ha(e,r){return e.map(r).join("")}var dr=1,Oe=1,gn=0,ue=0,Q=0,je="";function pr(e,r,t,n,a,i,o){return{value:e,root:r,parent:t,type:n,props:a,children:i,line:dr,column:Oe,length:o,return:""}}function Me(e,r){return pa(pr("",null,null,"",null,null,0),e,{length:-e.length},r)}function ya(){return Q}function ga(){return Q=ue>0?ne(je,--ue):0,Oe--,Q===10&&(Oe=1,dr--),Q}function le(){return Q=ue<gn?ne(je,ue++):0,Oe++,Q===10&&(Oe=1,dr++),Q}function he(){return ne(je,ue)}function rr(){return ue}function Ge(e,r){return ze(je,e,r)}function Ue(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bn(e){return dr=Oe=1,gn=ve(je=e),ue=0,[]}function En(e){return je="",e}function tr(e){return yn(Ge(ue-1,Gr(e===91?e+2:e===40?e+1:e)))}function ba(e){for(;(Q=he())&&Q<33;)le();return Ue(e)>2||Ue(Q)>3?"":" "}function Ea(e,r){for(;--r&&le()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return Ge(e,rr()+(r<6&&he()==32&&le()==32))}function Gr(e){for(;le();)switch(Q){case e:return ue;case 34:case 39:e!==34&&e!==39&&Gr(Q);break;case 40:e===41&&Gr(e);break;case 92:le();break}return ue}function xa(e,r){for(;le()&&e+Q!==57;)if(e+Q===84&&he()===47)break;return"/*"+Ge(r,ue-1)+"*"+lr(e===47?e:le())}function Ta(e){for(;!Ue(he());)le();return Ge(e,ue)}function Sa(e){return En(nr("",null,null,null,[""],e=bn(e),0,[0],e))}function nr(e,r,t,n,a,i,o,s,u){for(var c=0,l=0,d=o,b=0,y=0,h=0,v=1,E=1,x=1,T=0,S="",R=a,p=i,P=n,N=S;E;)switch(h=T,T=le()){case 40:if(h!=108&&ne(N,d-1)==58){Vr(N+=z(tr(T),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:N+=tr(T);break;case 9:case 10:case 13:case 32:N+=ba(h);break;case 92:N+=Ea(rr()-1,7);continue;case 47:switch(he()){case 42:case 47:Qe(Ra(xa(le(),rr()),r,t),u);break;default:N+="/"}break;case 123*v:s[c++]=ve(N)*x;case 125*v:case 59:case 0:switch(T){case 0:case 125:E=0;case 59+l:x==-1&&(N=z(N,/\f/g,"")),y>0&&ve(N)-d&&Qe(y>32?Pt(N+";",n,t,d-1):Pt(z(N," ","")+";",n,t,d-2),u);break;case 59:N+=";";default:if(Qe(P=Ot(N,r,t,c,l,a,s,S,R=[],p=[],d),i),T===123)if(l===0)nr(N,r,P,P,R,i,d,s,p);else switch(b===99&&ne(N,3)===110?100:b){case 100:case 108:case 109:case 115:nr(e,P,P,n&&Qe(Ot(e,P,P,0,0,a,s,S,a,R=[],d),p),a,p,d,s,n?R:p);break;default:nr(N,P,P,P,[""],p,0,s,p)}}c=l=y=0,v=x=1,S=N="",d=o;break;case 58:d=1+ve(N),y=h;default:if(v<1){if(T==123)--v;else if(T==125&&v++==0&&ga()==125)continue}switch(N+=lr(T),T*v){case 38:x=l>0?1:(N+="\f",-1);break;case 44:s[c++]=(ve(N)-1)*x,x=1;break;case 64:he()===45&&(N+=tr(le())),b=he(),l=d=ve(S=N+=Ta(rr())),T++;break;case 45:h===45&&ve(N)==2&&(v=0)}}return i}function Ot(e,r,t,n,a,i,o,s,u,c,l){for(var d=a-1,b=a===0?i:[""],y=tt(b),h=0,v=0,E=0;h<n;++h)for(var x=0,T=ze(e,d+1,d=da(v=o[h])),S=e;x<y;++x)(S=yn(v>0?b[x]+" "+T:z(T,/&\f/g,b[x])))&&(u[E++]=S);return pr(e,r,t,a===0?et:s,u,c,l)}function Ra(e,r,t){return pr(e,r,t,mn,lr(ya()),ze(e,2,-2),0)}function Pt(e,r,t,n){return pr(e,r,t,rt,ze(e,0,n),ze(e,n+1,-1),n)}function _e(e,r){for(var t="",n=tt(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Ca(e,r,t,n){switch(e.type){case la:if(e.children.length)break;case fa:case rt:return e.return=e.return||e.value;case mn:return"";case hn:return e.return=e.value+"{"+_e(e.children,n)+"}";case et:e.value=e.props.join(",")}return ve(t=_e(e.children,n))?e.return=e.value+"{"+t+"}":""}function wa(e){var r=tt(e);return function(t,n,a,i){for(var o="",s=0;s<r;s++)o+=e[s](t,n,a,i)||"";return o}}function _a(e){return function(r){r.root||(r=r.return)&&e(r)}}function xn(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Oa=function(r,t,n){for(var a=0,i=0;a=i,i=he(),a===38&&i===12&&(t[n]=1),!Ue(i);)le();return Ge(r,ue)},Pa=function(r,t){var n=-1,a=44;do switch(Ue(a)){case 0:a===38&&he()===12&&(t[n]=1),r[n]+=Oa(ue-1,t,n);break;case 2:r[n]+=tr(a);break;case 4:if(a===44){r[++n]=he()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=lr(a)}while(a=le());return r},Aa=function(r,t){return En(Pa(bn(r),t))},At=new WeakMap,ja=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!At.get(n))&&!a){At.set(r,!0);for(var i=[],o=Aa(t,i),s=n.props,u=0,c=0;u<o.length;u++)for(var l=0;l<s.length;l++,c++)r.props[c]=i[u]?o[u].replace(/&\f/g,s[l]):s[l]+" "+o[u]}}},Na=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Tn(e,r){switch(va(e,r)){case 5103:return Y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+or+e+oe+e+e;case 6828:case 4268:return Y+e+oe+e+e;case 6165:return Y+e+oe+"flex-"+e+e;case 5187:return Y+e+z(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+oe+"flex-$1$2")+e;case 5443:return Y+e+oe+"flex-item-"+z(e,/flex-|-self/,"")+e;case 4675:return Y+e+oe+"flex-line-pack"+z(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+oe+z(e,"shrink","negative")+e;case 5292:return Y+e+oe+z(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+z(e,"-grow","")+Y+e+oe+z(e,"grow","positive")+e;case 4554:return Y+z(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+oe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,Y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ve(e)-1-r>6)switch(ne(e,r+1)){case 109:if(ne(e,r+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+or+(ne(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Vr(e,"stretch")?Tn(z(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ne(e,r+1)!==115)break;case 6444:switch(ne(e,ve(e)-3-(~Vr(e,"!important")&&10))){case 107:return z(e,":",":"+Y)+e;case 101:return z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(ne(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+oe+"$2box$3")+e}break;case 5936:switch(ne(e,r+11)){case 114:return Y+e+oe+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+oe+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+oe+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+oe+e+e}return e}var Ia=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case rt:r.return=Tn(r.value,r.length);break;case hn:return _e([Me(r,{value:z(r.value,"@","@"+Y)})],a);case et:if(r.length)return ha(r.props,function(i){switch(ma(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _e([Me(r,{props:[z(i,/:(read-\w+)/,":"+or+"$1")]})],a);case"::placeholder":return _e([Me(r,{props:[z(i,/:(plac\w+)/,":"+Y+"input-$1")]}),Me(r,{props:[z(i,/:(plac\w+)/,":"+or+"$1")]}),Me(r,{props:[z(i,/:(plac\w+)/,oe+"input-$1")]})],a)}return""})}},ka=[Ia],$a=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var E=v.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var a=r.stylisPlugins||ka,i={},o,s=[];o=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var E=v.getAttribute("data-emotion").split(" "),x=1;x<E.length;x++)i[E[x]]=!0;s.push(v)});var u,c=[ja,Na];{var l,d=[Ca,_a(function(v){l.insert(v)})],b=wa(c.concat(a,d)),y=function(E){return _e(Sa(E),b)};u=function(E,x,T,S){l=T,y(E?E+"{"+x.styles+"}":x.styles),S&&(h.inserted[x.name]=!0)}}var h={key:t,sheet:new ua({key:t,container:o,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:u};return h.sheet.hydrate(s),h},er={exports:{}},G={};/** @license React v16.13.1
|
|
40
|
+
*/var yr,St;function Zn(){if(St)return yr;St=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(i).map(function(l){return i[l]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(l){c[l]=l}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return yr=o()?Object.assign:function(a,i){for(var s,u=n(a),c,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var d in s)r.call(s,d)&&(u[d]=s[d]);if(e){c=e(s);for(var b=0;b<c.length;b++)t.call(s,c[b])&&(u[c[b]]=s[c[b]])}}return u},yr}var br,Rt;function et(){if(Rt)return br;Rt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return br=e,br}var xr,wt;function gn(){return wt||(wt=1,xr=Function.call.bind(Object.prototype.hasOwnProperty)),xr}var Er,Ct;function Qn(){if(Ct)return Er;Ct=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=et(),t={},n=gn();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,s,u,c){if(process.env.NODE_ENV!=="production"){for(var l in a)if(n(a,l)){var d;try{if(typeof a[l]!="function"){var b=Error((u||"React class")+": "+s+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}d=a[l](i,l,u,s,null,r)}catch(h){d=h}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var g=c?c():"";e("Failed "+s+" type: "+d.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Er=o,Er}var Tr,_t;function ea(){if(_t)return Tr;_t=1;var e=hn(),r=Zn(),t=et(),n=gn(),o=Qn(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function i(){return null}return Tr=function(s,u){var c=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function d(f){var y=f&&(c&&f[c]||f[l]);if(typeof y=="function")return y}var b="<<anonymous>>",g={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:T(),arrayOf:S,element:R(),elementType:p(),instanceOf:P,node:L(),objectOf:J,oneOf:N,oneOfType:D,shape:Z,exact:X};function h(f,y){return f===y?f!==0||1/f===1/y:f!==f&&y!==y}function v(f,y){this.message=f,this.data=y&&typeof y=="object"?y:{},this.stack=""}v.prototype=Error.prototype;function x(f){if(process.env.NODE_ENV!=="production")var y={},C=0;function O(k,$,M,j,F,q,te){if(j=j||b,q=q||M,te!==t){if(u){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=j+":"+M;!y[ce]&&C<3&&(a("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+j+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),y[ce]=!0,C++)}}return $[M]==null?k?$[M]===null?new v("The "+F+" `"+q+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new v("The "+F+" `"+q+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:f($,M,j,F,q)}var A=O.bind(null,!1);return A.isRequired=O.bind(null,!0),A}function E(f){function y(C,O,A,k,$,M){var j=C[O],F=re(j);if(F!==f){var q=pe(j);return new v("Invalid "+k+" `"+$+"` of type "+("`"+q+"` supplied to `"+A+"`, expected ")+("`"+f+"`."),{expectedType:f})}return null}return x(y)}function T(){return x(i)}function S(f){function y(C,O,A,k,$){if(typeof f!="function")return new v("Property `"+$+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var M=C[O];if(!Array.isArray(M)){var j=re(M);return new v("Invalid "+k+" `"+$+"` of type "+("`"+j+"` supplied to `"+A+"`, expected an array."))}for(var F=0;F<M.length;F++){var q=f(M,F,A,k,$+"["+F+"]",t);if(q instanceof Error)return q}return null}return x(y)}function R(){function f(y,C,O,A,k){var $=y[C];if(!s($)){var M=re($);return new v("Invalid "+A+" `"+k+"` of type "+("`"+M+"` supplied to `"+O+"`, expected a single ReactElement."))}return null}return x(f)}function p(){function f(y,C,O,A,k){var $=y[C];if(!e.isValidElementType($)){var M=re($);return new v("Invalid "+A+" `"+k+"` of type "+("`"+M+"` supplied to `"+O+"`, expected a single ReactElement type."))}return null}return x(f)}function P(f){function y(C,O,A,k,$){if(!(C[O]instanceof f)){var M=f.name||b,j=xe(C[O]);return new v("Invalid "+k+" `"+$+"` of type "+("`"+j+"` supplied to `"+A+"`, expected ")+("instance of `"+M+"`."))}return null}return x(y)}function N(f){if(!Array.isArray(f))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function y(C,O,A,k,$){for(var M=C[O],j=0;j<f.length;j++)if(h(M,f[j]))return null;var F=JSON.stringify(f,function(te,m){var ce=pe(m);return ce==="symbol"?String(m):m});return new v("Invalid "+k+" `"+$+"` of value `"+String(M)+"` "+("supplied to `"+A+"`, expected one of "+F+"."))}return x(y)}function J(f){function y(C,O,A,k,$){if(typeof f!="function")return new v("Property `"+$+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var M=C[O],j=re(M);if(j!=="object")return new v("Invalid "+k+" `"+$+"` of type "+("`"+j+"` supplied to `"+A+"`, expected an object."));for(var F in M)if(n(M,F)){var q=f(M,F,A,k,$+"."+F,t);if(q instanceof Error)return q}return null}return x(y)}function D(f){if(!Array.isArray(f))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var y=0;y<f.length;y++){var C=f[y];if(typeof C!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ve(C)+" at index "+y+"."),i}function O(A,k,$,M,j){for(var F=[],q=0;q<f.length;q++){var te=f[q],m=te(A,k,$,M,j,t);if(m==null)return null;m.data&&n(m.data,"expectedType")&&F.push(m.data.expectedType)}var ce=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new v("Invalid "+M+" `"+j+"` supplied to "+("`"+$+"`"+ce+"."))}return x(O)}function L(){function f(y,C,O,A,k){return K(y[C])?null:new v("Invalid "+A+" `"+k+"` supplied to "+("`"+O+"`, expected a ReactNode."))}return x(f)}function W(f,y,C,O,A){return new v((f||"React class")+": "+y+" type `"+C+"."+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function Z(f){function y(C,O,A,k,$){var M=C[O],j=re(M);if(j!=="object")return new v("Invalid "+k+" `"+$+"` of type `"+j+"` "+("supplied to `"+A+"`, expected `object`."));for(var F in f){var q=f[F];if(typeof q!="function")return W(A,k,$,F,pe(q));var te=q(M,F,A,k,$+"."+F,t);if(te)return te}return null}return x(y)}function X(f){function y(C,O,A,k,$){var M=C[O],j=re(M);if(j!=="object")return new v("Invalid "+k+" `"+$+"` of type `"+j+"` "+("supplied to `"+A+"`, expected `object`."));var F=r({},C[O],f);for(var q in F){var te=f[q];if(n(f,q)&&typeof te!="function")return W(A,k,$,q,pe(te));if(!te)return new v("Invalid "+k+" `"+$+"` key `"+q+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(C[O],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys(f),null," "));var m=te(M,q,A,k,$+"."+q,t);if(m)return m}return null}return x(y)}function K(f){switch(typeof f){case"number":case"string":case"undefined":return!0;case"boolean":return!f;case"object":if(Array.isArray(f))return f.every(K);if(f===null||s(f))return!0;var y=d(f);if(y){var C=y.call(f),O;if(y!==f.entries){for(;!(O=C.next()).done;)if(!K(O.value))return!1}else for(;!(O=C.next()).done;){var A=O.value;if(A&&!K(A[1]))return!1}}else return!1;return!0;default:return!1}}function ee(f,y){return f==="symbol"?!0:y?y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&y instanceof Symbol:!1}function re(f){var y=typeof f;return Array.isArray(f)?"array":f instanceof RegExp?"object":ee(y,f)?"symbol":y}function pe(f){if(typeof f>"u"||f===null)return""+f;var y=re(f);if(y==="object"){if(f instanceof Date)return"date";if(f instanceof RegExp)return"regexp"}return y}function ve(f){var y=pe(f);switch(y){case"array":case"object":return"an "+y;case"boolean":case"date":case"regexp":return"a "+y;default:return y}}function xe(f){return!f.constructor||!f.constructor.name?b:f.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Tr}var Sr,Ot;function ra(){if(Ot)return Sr;Ot=1;var e=et();function r(){}function t(){}return t.resetWarningCache=r,Sr=function(){function n(i,s,u,c,l,d){if(d!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:r};return a.PropTypes=a,a},Sr}var Pt;function ta(){if(Pt)return Je.exports;if(Pt=1,process.env.NODE_ENV!=="production"){var e=hn(),r=!0;Je.exports=ea()(e.isElement,r)}else Je.exports=ra()();return Je.exports}var na=ta();const I=ur(na);function aa(e,r){return e.classList?!!r&&e.classList.contains(r):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+r+" ")!==-1}function oa(e,r){e.classList?e.classList.add(r):aa(e,r)||(typeof e.className=="string"?e.className=e.className+" "+r:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+r))}function At(e,r){return e.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ia(e,r){e.classList?e.classList.remove(r):typeof e.className=="string"?e.className=At(e.className,r):e.setAttribute("class",At(e.className&&e.className.baseVal||"",r))}const jt={disabled:!1};var sa=process.env.NODE_ENV!=="production"?I.oneOfType([I.number,I.shape({enter:I.number,exit:I.number,appear:I.number}).isRequired]):null,ca=process.env.NODE_ENV!=="production"?I.oneOfType([I.string,I.shape({enter:I.string,exit:I.string,active:I.string}),I.shape({enter:I.string,enterDone:I.string,enterActive:I.string,exit:I.string,exitDone:I.string,exitActive:I.string})]):null;const yn=w.createContext(null);var bn=function(r){return r.scrollTop},Fe="unmounted",Ee="exited",Te="entering",_e="entered",Vr="exiting",ye=function(e){mn(r,e);function r(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=Ee,a.appearStatus=Te):u=_e:n.unmountOnExit||n.mountOnEnter?u=Fe:u=Ee,a.state={status:u},a.nextCallback=null,a}r.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Fe?{status:Ee}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Te&&i!==_e&&(a=Te):(i===Te||i===_e)&&(a=Vr)}this.updateStatus(!1,a)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},t.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Te){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:He.findDOMNode(this);i&&bn(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ee&&this.setState({status:Fe})},t.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,u=this.props.nodeRef?[s]:[He.findDOMNode(this),s],c=u[0],l=u[1],d=this.getTimeouts(),b=s?d.appear:d.enter;if(!o&&!i||jt.disabled){this.safeSetState({status:_e},function(){a.props.onEntered(c)});return}this.props.onEnter(c,l),this.safeSetState({status:Te},function(){a.props.onEntering(c,l),a.onTransitionEnd(b,function(){a.safeSetState({status:_e},function(){a.props.onEntered(c,l)})})})},t.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:He.findDOMNode(this);if(!a||jt.disabled){this.safeSetState({status:Ee},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Vr},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Ee},function(){o.props.onExited(s)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},t.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},t.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:He.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=u[0],l=u[1];this.props.addEndListener(c,l)}o!=null&&setTimeout(this.nextCallback,o)},t.render=function(){var o=this.state.status;if(o===Fe)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=vn(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return w.createElement(yn.Provider,{value:null},typeof i=="function"?i(o,s):w.cloneElement(w.Children.only(i),s))},r}(w.Component);ye.contextType=yn;ye.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:I.shape({current:typeof Element>"u"?I.any:function(e,r,t,n,o,a){var i=e[r];return I.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,r,t,n,o,a)}}),children:I.oneOfType([I.func.isRequired,I.element.isRequired]).isRequired,in:I.bool,mountOnEnter:I.bool,unmountOnExit:I.bool,appear:I.bool,enter:I.bool,exit:I.bool,timeout:function(r){var t=sa;r.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return t.apply(void 0,[r].concat(o))},addEndListener:I.func,onEnter:I.func,onEntering:I.func,onEntered:I.func,onExit:I.func,onExiting:I.func,onExited:I.func}:{};function Ce(){}ye.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ce,onEntering:Ce,onEntered:Ce,onExit:Ce,onExiting:Ce,onExited:Ce};ye.UNMOUNTED=Fe;ye.EXITED=Ee;ye.ENTERING=Te;ye.ENTERED=_e;ye.EXITING=Vr;var ua=function(r,t){return r&&t&&t.split(" ").forEach(function(n){return oa(r,n)})},Rr=function(r,t){return r&&t&&t.split(" ").forEach(function(n){return ia(r,n)})},fr=function(e){mn(r,e);function r(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,u){var c=n.resolveArguments(s,u),l=c[0],d=c[1];n.removeClasses(l,"exit"),n.addClass(l,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,u)},n.onEntering=function(s,u){var c=n.resolveArguments(s,u),l=c[0],d=c[1],b=d?"appear":"enter";n.addClass(l,b,"active"),n.props.onEntering&&n.props.onEntering(s,u)},n.onEntered=function(s,u){var c=n.resolveArguments(s,u),l=c[0],d=c[1],b=d?"appear":"enter";n.removeClasses(l,b),n.addClass(l,b,"done"),n.props.onEntered&&n.props.onEntered(s,u)},n.onExit=function(s){var u=n.resolveArguments(s),c=u[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var u=n.resolveArguments(s),c=u[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var u=n.resolveArguments(s),c=u[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,u){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,u]},n.getClassNames=function(s){var u=n.props.classNames,c=typeof u=="string",l=c&&u?u+"-":"",d=c?""+l+s:u[s],b=c?d+"-active":u[s+"Active"],g=c?d+"-done":u[s+"Done"];return{baseClassName:d,activeClassName:b,doneClassName:g}},n}var t=r.prototype;return t.addClass=function(o,a,i){var s=this.getClassNames(a)[i+"ClassName"],u=this.getClassNames("enter"),c=u.doneClassName;a==="appear"&&i==="done"&&c&&(s+=" "+c),i==="active"&&o&&bn(o),s&&(this.appliedClasses[a][i]=s,ua(o,s))},t.removeClasses=function(o,a){var i=this.appliedClasses[a],s=i.base,u=i.active,c=i.done;this.appliedClasses[a]={},s&&Rr(o,s),u&&Rr(o,u),c&&Rr(o,c)},t.render=function(){var o=this.props;o.classNames;var a=vn(o,["classNames"]);return w.createElement(ye,ze({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(w.Component);fr.defaultProps={classNames:""};fr.propTypes=process.env.NODE_ENV!=="production"?ze({},ye.propTypes,{classNames:ca,onEnter:I.func,onEntering:I.func,onEntered:I.func,onExit:I.func,onExiting:I.func,onExited:I.func}):{};function fa(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function la(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var da=function(){function e(t){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(la(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=fa(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ie="-ms-",ir="-moz-",z="-webkit-",xn="comm",rt="rule",tt="decl",pa="@import",En="@keyframes",va="@layer",ma=Math.abs,lr=String.fromCharCode,ha=Object.assign;function ga(e,r){return ne(e,0)^45?(((r<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}function Tn(e){return e.trim()}function ya(e,r){return(e=r.exec(e))?e[0]:e}function Y(e,r,t){return e.replace(r,t)}function Gr(e,r){return e.indexOf(r)}function ne(e,r){return e.charCodeAt(r)|0}function Ye(e,r,t){return e.slice(r,t)}function me(e){return e.length}function nt(e){return e.length}function Qe(e,r){return r.push(e),e}function ba(e,r){return e.map(r).join("")}var dr=1,Pe=1,Sn=0,ue=0,Q=0,je="";function pr(e,r,t,n,o,a,i){return{value:e,root:r,parent:t,type:n,props:o,children:a,line:dr,column:Pe,length:i,return:""}}function Me(e,r){return ha(pr("",null,null,"",null,null,0),e,{length:-e.length},r)}function xa(){return Q}function Ea(){return Q=ue>0?ne(je,--ue):0,Pe--,Q===10&&(Pe=1,dr--),Q}function de(){return Q=ue<Sn?ne(je,ue++):0,Pe++,Q===10&&(Pe=1,dr++),Q}function ge(){return ne(je,ue)}function rr(){return ue}function Ge(e,r){return Ye(je,e,r)}function Ue(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Rn(e){return dr=Pe=1,Sn=me(je=e),ue=0,[]}function wn(e){return je="",e}function tr(e){return Tn(Ge(ue-1,Br(e===91?e+2:e===40?e+1:e)))}function Ta(e){for(;(Q=ge())&&Q<33;)de();return Ue(e)>2||Ue(Q)>3?"":" "}function Sa(e,r){for(;--r&&de()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return Ge(e,rr()+(r<6&&ge()==32&&de()==32))}function Br(e){for(;de();)switch(Q){case e:return ue;case 34:case 39:e!==34&&e!==39&&Br(Q);break;case 40:e===41&&Br(e);break;case 92:de();break}return ue}function Ra(e,r){for(;de()&&e+Q!==57;)if(e+Q===84&&ge()===47)break;return"/*"+Ge(r,ue-1)+"*"+lr(e===47?e:de())}function wa(e){for(;!Ue(ge());)de();return Ge(e,ue)}function Ca(e){return wn(nr("",null,null,null,[""],e=Rn(e),0,[0],e))}function nr(e,r,t,n,o,a,i,s,u){for(var c=0,l=0,d=i,b=0,g=0,h=0,v=1,x=1,E=1,T=0,S="",R=o,p=a,P=n,N=S;x;)switch(h=T,T=de()){case 40:if(h!=108&&ne(N,d-1)==58){Gr(N+=Y(tr(T),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:N+=tr(T);break;case 9:case 10:case 13:case 32:N+=Ta(h);break;case 92:N+=Sa(rr()-1,7);continue;case 47:switch(ge()){case 42:case 47:Qe(_a(Ra(de(),rr()),r,t),u);break;default:N+="/"}break;case 123*v:s[c++]=me(N)*E;case 125*v:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+l:E==-1&&(N=Y(N,/\f/g,"")),g>0&&me(N)-d&&Qe(g>32?kt(N+";",n,t,d-1):kt(Y(N," ","")+";",n,t,d-2),u);break;case 59:N+=";";default:if(Qe(P=Nt(N,r,t,c,l,o,s,S,R=[],p=[],d),a),T===123)if(l===0)nr(N,r,P,P,R,a,d,s,p);else switch(b===99&&ne(N,3)===110?100:b){case 100:case 108:case 109:case 115:nr(e,P,P,n&&Qe(Nt(e,P,P,0,0,o,s,S,o,R=[],d),p),o,p,d,s,n?R:p);break;default:nr(N,P,P,P,[""],p,0,s,p)}}c=l=g=0,v=E=1,S=N="",d=i;break;case 58:d=1+me(N),g=h;default:if(v<1){if(T==123)--v;else if(T==125&&v++==0&&Ea()==125)continue}switch(N+=lr(T),T*v){case 38:E=l>0?1:(N+="\f",-1);break;case 44:s[c++]=(me(N)-1)*E,E=1;break;case 64:ge()===45&&(N+=tr(de())),b=ge(),l=d=me(S=N+=wa(rr())),T++;break;case 45:h===45&&me(N)==2&&(v=0)}}return a}function Nt(e,r,t,n,o,a,i,s,u,c,l){for(var d=o-1,b=o===0?a:[""],g=nt(b),h=0,v=0,x=0;h<n;++h)for(var E=0,T=Ye(e,d+1,d=ma(v=i[h])),S=e;E<g;++E)(S=Tn(v>0?b[E]+" "+T:Y(T,/&\f/g,b[E])))&&(u[x++]=S);return pr(e,r,t,o===0?rt:s,u,c,l)}function _a(e,r,t){return pr(e,r,t,xn,lr(xa()),Ye(e,2,-2),0)}function kt(e,r,t,n){return pr(e,r,t,tt,Ye(e,0,n),Ye(e,n+1,-1),n)}function Oe(e,r){for(var t="",n=nt(e),o=0;o<n;o++)t+=r(e[o],o,e,r)||"";return t}function Oa(e,r,t,n){switch(e.type){case va:if(e.children.length)break;case pa:case tt:return e.return=e.return||e.value;case xn:return"";case En:return e.return=e.value+"{"+Oe(e.children,n)+"}";case rt:e.value=e.props.join(",")}return me(t=Oe(e.children,n))?e.return=e.value+"{"+t+"}":""}function Pa(e){var r=nt(e);return function(t,n,o,a){for(var i="",s=0;s<r;s++)i+=e[s](t,n,o,a)||"";return i}}function Aa(e){return function(r){r.root||(r=r.return)&&e(r)}}function Cn(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var ja=function(r,t,n){for(var o=0,a=0;o=a,a=ge(),o===38&&a===12&&(t[n]=1),!Ue(a);)de();return Ge(r,ue)},Na=function(r,t){var n=-1,o=44;do switch(Ue(o)){case 0:o===38&&ge()===12&&(t[n]=1),r[n]+=ja(ue-1,t,n);break;case 2:r[n]+=tr(o);break;case 4:if(o===44){r[++n]=ge()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=lr(o)}while(o=de());return r},ka=function(r,t){return wn(Na(Rn(r),t))},It=new WeakMap,Ia=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,o=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!It.get(n))&&!o){It.set(r,!0);for(var a=[],i=ka(t,a),s=n.props,u=0,c=0;u<i.length;u++)for(var l=0;l<s.length;l++,c++)r.props[c]=a[u]?i[u].replace(/&\f/g,s[l]):s[l]+" "+i[u]}}},$a=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function _n(e,r){switch(ga(e,r)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+ir+e+ie+e+e;case 6828:case 4268:return z+e+ie+e+e;case 6165:return z+e+ie+"flex-"+e+e;case 5187:return z+e+Y(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return z+e+ie+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return z+e+ie+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+ie+Y(e,"shrink","negative")+e;case 5292:return z+e+ie+Y(e,"basis","preferred-size")+e;case 6060:return z+"box-"+Y(e,"-grow","")+z+e+ie+Y(e,"grow","positive")+e;case 4554:return z+Y(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(me(e)-1-r>6)switch(ne(e,r+1)){case 109:if(ne(e,r+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+ir+(ne(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Gr(e,"stretch")?_n(Y(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ne(e,r+1)!==115)break;case 6444:switch(ne(e,me(e)-3-(~Gr(e,"!important")&&10))){case 107:return Y(e,":",":"+z)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(ne(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(ne(e,r+11)){case 114:return z+e+ie+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+ie+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+ie+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+ie+e+e}return e}var Ma=function(r,t,n,o){if(r.length>-1&&!r.return)switch(r.type){case tt:r.return=_n(r.value,r.length);break;case En:return Oe([Me(r,{value:Y(r.value,"@","@"+z)})],o);case rt:if(r.length)return ba(r.props,function(a){switch(ya(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oe([Me(r,{props:[Y(a,/:(read-\w+)/,":"+ir+"$1")]})],o);case"::placeholder":return Oe([Me(r,{props:[Y(a,/:(plac\w+)/,":"+z+"input-$1")]}),Me(r,{props:[Y(a,/:(plac\w+)/,":"+ir+"$1")]}),Me(r,{props:[Y(a,/:(plac\w+)/,ie+"input-$1")]})],o)}return""})}},Da=[Ma],La=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=r.stylisPlugins||Da,a={},i,s=[];i=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),E=1;E<x.length;E++)a[x[E]]=!0;s.push(v)});var u,c=[Ia,$a];{var l,d=[Oa,Aa(function(v){l.insert(v)})],b=Pa(c.concat(o,d)),g=function(x){return Oe(Ca(x),b)};u=function(x,E,T,S){l=T,g(x?x+"{"+E.styles+"}":E.styles),S&&(h.inserted[E.name]=!0)}}var h={key:t,sheet:new da({key:t,container:i,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:a,registered:{},insert:u};return h.sheet.hydrate(s),h},er={exports:{}},G={};/** @license React v16.13.1
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
48
|
+
*/var $t;function Fa(){if($t)return G;$t=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(p){if(typeof p=="object"&&p!==null){var P=p.$$typeof;switch(P){case r:switch(p=p.type,p){case u:case c:case n:case a:case o:case d:return p;default:switch(p=p&&p.$$typeof,p){case s:case l:case h:case g:case i:return p;default:return P}}case t:return P}}}function R(p){return S(p)===c}return G.AsyncMode=u,G.ConcurrentMode=c,G.ContextConsumer=s,G.ContextProvider=i,G.Element=r,G.ForwardRef=l,G.Fragment=n,G.Lazy=h,G.Memo=g,G.Portal=t,G.Profiler=a,G.StrictMode=o,G.Suspense=d,G.isAsyncMode=function(p){return R(p)||S(p)===u},G.isConcurrentMode=R,G.isContextConsumer=function(p){return S(p)===s},G.isContextProvider=function(p){return S(p)===i},G.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===r},G.isForwardRef=function(p){return S(p)===l},G.isFragment=function(p){return S(p)===n},G.isLazy=function(p){return S(p)===h},G.isMemo=function(p){return S(p)===g},G.isPortal=function(p){return S(p)===t},G.isProfiler=function(p){return S(p)===a},G.isStrictMode=function(p){return S(p)===o},G.isSuspense=function(p){return S(p)===d},G.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===c||p===a||p===o||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===g||p.$$typeof===i||p.$$typeof===s||p.$$typeof===l||p.$$typeof===x||p.$$typeof===E||p.$$typeof===T||p.$$typeof===v)},G.typeOf=S,G}var B={};/** @license React v16.13.1
|
|
49
49
|
* react-is.development.js
|
|
50
50
|
*
|
|
51
51
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/var Nt;function Da(){return Nt||(Nt=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===i||m===a||m===d||m===b||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===y||m.$$typeof===o||m.$$typeof===s||m.$$typeof===l||m.$$typeof===E||m.$$typeof===x||m.$$typeof===T||m.$$typeof===v)}function R(m){if(typeof m=="object"&&m!==null){var ce=m.$$typeof;switch(ce){case r:var ge=m.type;switch(ge){case u:case c:case n:case i:case a:case d:return ge;default:var Ie=ge&&ge.$$typeof;switch(Ie){case s:case l:case h:case y:case o:return Ie;default:return ce}}case t:return ce}}}var p=u,P=c,N=s,J=o,D=r,L=l,W=n,Z=h,H=y,X=t,ee=i,re=a,de=d,pe=!1;function be(m){return pe||(pe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),f(m)||R(m)===u}function f(m){return R(m)===c}function g(m){return R(m)===s}function w(m){return R(m)===o}function _(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function A(m){return R(m)===l}function I(m){return R(m)===n}function $(m){return R(m)===h}function M(m){return R(m)===y}function j(m){return R(m)===t}function F(m){return R(m)===i}function q(m){return R(m)===a}function te(m){return R(m)===d}B.AsyncMode=p,B.ConcurrentMode=P,B.ContextConsumer=N,B.ContextProvider=J,B.Element=D,B.ForwardRef=L,B.Fragment=W,B.Lazy=Z,B.Memo=H,B.Portal=X,B.Profiler=ee,B.StrictMode=re,B.Suspense=de,B.isAsyncMode=be,B.isConcurrentMode=f,B.isContextConsumer=g,B.isContextProvider=w,B.isElement=_,B.isForwardRef=A,B.isFragment=I,B.isLazy=$,B.isMemo=M,B.isPortal=j,B.isProfiler=F,B.isStrictMode=q,B.isSuspense=te,B.isValidElementType=S,B.typeOf=R}()),B}var It;function La(){return It||(It=1,process.env.NODE_ENV==="production"?er.exports=Ma():er.exports=Da()),er.exports}var Rr,kt;function Fa(){if(kt)return Rr;kt=1;var e=La(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=a;function o(h){return e.isMemo(h)?a:i[h.$$typeof]||r}var s=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,b=Object.prototype;function y(h,v,E){if(typeof v!="string"){if(b){var x=d(v);x&&x!==b&&y(h,x,E)}var T=u(v);c&&(T=T.concat(c(v)));for(var S=o(h),R=o(v),p=0;p<T.length;++p){var P=T[p];if(!t[P]&&!(E&&E[P])&&!(R&&R[P])&&!(S&&S[P])){var N=l(v,P);try{s(h,P,N)}catch{}}}}return h}return Rr=y,Rr}Fa();var qa=!0;function Sn(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var nt=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||qa===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},Rn=function(r,t,n){nt(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+a:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function Wa(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Ya={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},za=/[A-Z]|^ms/g,Ua=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cn=function(r){return r.charCodeAt(1)===45},$t=function(r){return r!=null&&typeof r!="boolean"},Cr=xn(function(e){return Cn(e)?e:e.replace(za,"-$&").toLowerCase()}),Mt=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(Ua,function(n,a,i){return me={name:a,styles:i,next:me},a})}return Ya[r]!==1&&!Cn(r)&&typeof t=="number"&&t!==0?t+"px":t};function Ve(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var a=t;if(a.anim===1)return me={name:a.name,styles:a.styles,next:me},a.name;var i=t;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)me={name:o.name,styles:o.styles,next:me},o=o.next;var s=i.styles+";";return s}return Va(e,r,t)}case"function":{if(e!==void 0){var u=me,c=t(e);return me=u,Ve(e,r,c)}break}}var l=t;if(r==null)return l;var d=r[l];return d!==void 0?d:l}function Va(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=Ve(e,r,t[a])+";";else for(var i in t){var o=t[i];if(typeof o!="object"){var s=o;r!=null&&r[s]!==void 0?n+=i+"{"+r[s]+"}":$t(s)&&(n+=Cr(i)+":"+Mt(i,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(r==null||r[o[0]]===void 0))for(var u=0;u<o.length;u++)$t(o[u])&&(n+=Cr(i)+":"+Mt(i,o[u])+";");else{var c=Ve(e,r,o);switch(i){case"animation":case"animationName":{n+=Cr(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var Dt=/label:\s*([^\s;{]+)\s*(;|$)/g,me;function at(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";me=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=Ve(t,r,i);else{var o=i;a+=o[0]}for(var s=1;s<e.length;s++)if(a+=Ve(t,r,e[s]),n){var u=i;a+=u[s]}Dt.lastIndex=0;for(var c="",l;(l=Dt.exec(a))!==null;)c+="-"+l[1];var d=Wa(a)+c;return{name:d,styles:a,next:me}}var Ga=function(r){return r()},Ba=K.useInsertionEffect?K.useInsertionEffect:!1,wn=Ba||Ga,_n=K.createContext(typeof HTMLElement<"u"?$a({key:"css"}):null);_n.Provider;var On=function(r){return C.forwardRef(function(t,n){var a=C.useContext(_n);return r(t,a,n)})},Pn=K.createContext({}),it={}.hasOwnProperty,Br="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ha=function(r,t){var n={};for(var a in t)it.call(t,a)&&(n[a]=t[a]);return n[Br]=r,n},Xa=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return nt(t,n,a),wn(function(){return Rn(t,n,a)}),null},Ka=On(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var a=e[Br],i=[n],o="";typeof e.className=="string"?o=Sn(r.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=at(i,void 0,K.useContext(Pn));o+=r.key+"-"+s.name;var u={};for(var c in e)it.call(e,c)&&c!=="css"&&c!==Br&&(u[c]=e[c]);return u.className=o,t&&(u.ref=t),K.createElement(K.Fragment,null,K.createElement(Xa,{cache:r,serialized:s,isStringTag:typeof a=="string"}),K.createElement(a,u))}),Ja=Ka,Lt=function(r,t){var n=arguments;if(t==null||!it.call(t,"css"))return K.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=Ja,i[1]=Ha(r,t);for(var o=2;o<a;o++)i[o]=n[o];return K.createElement.apply(null,i)};(function(e){var r;r||(r=e.JSX||(e.JSX={}))})(Lt||(Lt={}));function Za(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return at(r)}function Qa(){var e=Za.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var ei=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ri=xn(function(e){return ei.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ti=ri,ni=function(r){return r!=="theme"},Ft=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?ti:ni},qt=function(r,t,n){var a;if(t){var i=t.shouldForwardProp;a=r.__emotion_forwardProp&&i?function(o){return r.__emotion_forwardProp(o)&&i(o)}:i}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},ai=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return nt(t,n,a),wn(function(){return Rn(t,n,a)}),null},ii=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,i,o;t!==void 0&&(i=t.label,o=t.target);var s=qt(r,t,n),u=s||Ft(a),c=!u("as");return function(){var l=arguments,d=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)d.push.apply(d,l);else{var b=l[0];d.push(b[0]);for(var y=l.length,h=1;h<y;h++)d.push(l[h],b[h])}var v=On(function(E,x,T){var S=c&&E.as||a,R="",p=[],P=E;if(E.theme==null){P={};for(var N in E)P[N]=E[N];P.theme=K.useContext(Pn)}typeof E.className=="string"?R=Sn(x.registered,p,E.className):E.className!=null&&(R=E.className+" ");var J=at(d.concat(p),x.registered,P);R+=x.key+"-"+J.name,o!==void 0&&(R+=" "+o);var D=c&&s===void 0?Ft(S):u,L={};for(var W in E)c&&W==="as"||D(W)&&(L[W]=E[W]);return L.className=R,T&&(L.ref=T),K.createElement(K.Fragment,null,K.createElement(ai,{cache:x,serialized:J,isStringTag:typeof S=="string"}),K.createElement(S,L))});return v.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",v.defaultProps=r.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(E,x){var T=e(E,Ye({},t,x,{shouldForwardProp:qt(v,x,!0)}));return T.apply(void 0,d)},v}},oi=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Pe=ii.bind(null);oi.forEach(function(e){Pe[e]=Pe(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const si=Qa`
|
|
55
|
+
*/var Mt;function qa(){return Mt||(Mt=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===a||m===o||m===d||m===b||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===g||m.$$typeof===i||m.$$typeof===s||m.$$typeof===l||m.$$typeof===x||m.$$typeof===E||m.$$typeof===T||m.$$typeof===v)}function R(m){if(typeof m=="object"&&m!==null){var ce=m.$$typeof;switch(ce){case r:var be=m.type;switch(be){case u:case c:case n:case a:case o:case d:return be;default:var ke=be&&be.$$typeof;switch(ke){case s:case l:case h:case g:case i:return ke;default:return ce}}case t:return ce}}}var p=u,P=c,N=s,J=i,D=r,L=l,W=n,Z=h,X=g,K=t,ee=a,re=o,pe=d,ve=!1;function xe(m){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),f(m)||R(m)===u}function f(m){return R(m)===c}function y(m){return R(m)===s}function C(m){return R(m)===i}function O(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function A(m){return R(m)===l}function k(m){return R(m)===n}function $(m){return R(m)===h}function M(m){return R(m)===g}function j(m){return R(m)===t}function F(m){return R(m)===a}function q(m){return R(m)===o}function te(m){return R(m)===d}B.AsyncMode=p,B.ConcurrentMode=P,B.ContextConsumer=N,B.ContextProvider=J,B.Element=D,B.ForwardRef=L,B.Fragment=W,B.Lazy=Z,B.Memo=X,B.Portal=K,B.Profiler=ee,B.StrictMode=re,B.Suspense=pe,B.isAsyncMode=xe,B.isConcurrentMode=f,B.isContextConsumer=y,B.isContextProvider=C,B.isElement=O,B.isForwardRef=A,B.isFragment=k,B.isLazy=$,B.isMemo=M,B.isPortal=j,B.isProfiler=F,B.isStrictMode=q,B.isSuspense=te,B.isValidElementType=S,B.typeOf=R}()),B}var Dt;function Wa(){return Dt||(Dt=1,process.env.NODE_ENV==="production"?er.exports=Fa():er.exports=qa()),er.exports}var wr,Lt;function za(){if(Lt)return wr;Lt=1;var e=Wa(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=n,a[e.Memo]=o;function i(h){return e.isMemo(h)?o:a[h.$$typeof]||r}var s=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,b=Object.prototype;function g(h,v,x){if(typeof v!="string"){if(b){var E=d(v);E&&E!==b&&g(h,E,x)}var T=u(v);c&&(T=T.concat(c(v)));for(var S=i(h),R=i(v),p=0;p<T.length;++p){var P=T[p];if(!t[P]&&!(x&&x[P])&&!(R&&R[P])&&!(S&&S[P])){var N=l(v,P);try{s(h,P,N)}catch{}}}}return h}return wr=g,wr}za();var Ya=!0;function On(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ")}),n}var at=function(r,t,n){var o=r.key+"-"+t.name;(n===!1||Ya===!1)&&r.registered[o]===void 0&&(r.registered[o]=t.styles)},ot=function(r,t,n){at(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var a=t;do r.insert(t===a?"."+o:"",a,r.sheet,!0),a=a.next;while(a!==void 0)}};function Ua(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Va={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ga=/[A-Z]|^ms/g,Ba=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pn=function(r){return r.charCodeAt(1)===45},Ft=function(r){return r!=null&&typeof r!="boolean"},Cr=Cn(function(e){return Pn(e)?e:e.replace(Ga,"-$&").toLowerCase()}),qt=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(Ba,function(n,o,a){return he={name:o,styles:a,next:he},o})}return Va[r]!==1&&!Pn(r)&&typeof t=="number"&&t!==0?t+"px":t};function Ve(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return he={name:o.name,styles:o.styles,next:he},o.name;var a=t;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)he={name:i.name,styles:i.styles,next:he},i=i.next;var s=a.styles+";";return s}return Ha(e,r,t)}case"function":{if(e!==void 0){var u=he,c=t(e);return he=u,Ve(e,r,c)}break}}var l=t;if(r==null)return l;var d=r[l];return d!==void 0?d:l}function Ha(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Ve(e,r,t[o])+";";else for(var a in t){var i=t[a];if(typeof i!="object"){var s=i;r!=null&&r[s]!==void 0?n+=a+"{"+r[s]+"}":Ft(s)&&(n+=Cr(a)+":"+qt(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(r==null||r[i[0]]===void 0))for(var u=0;u<i.length;u++)Ft(i[u])&&(n+=Cr(a)+":"+qt(a,i[u])+";");else{var c=Ve(e,r,i);switch(a){case"animation":case"animationName":{n+=Cr(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}return n}var Wt=/label:\s*([^\s;{]+)\s*(;|$)/g,he;function vr(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";he=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Ve(t,r,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=Ve(t,r,e[s]),n){var u=a;o+=u[s]}Wt.lastIndex=0;for(var c="",l;(l=Wt.exec(o))!==null;)c+="-"+l[1];var d=Ua(o)+c;return{name:d,styles:o,next:he}}var Xa=function(r){return r()},An=H.useInsertionEffect?H.useInsertionEffect:!1,jn=An||Xa,zt=An||H.useLayoutEffect,Nn=H.createContext(typeof HTMLElement<"u"?La({key:"css"}):null);Nn.Provider;var it=function(r){return w.forwardRef(function(t,n){var o=w.useContext(Nn);return r(t,o,n)})},st=H.createContext({}),ct={}.hasOwnProperty,Hr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ka=function(r,t){var n={};for(var o in t)ct.call(t,o)&&(n[o]=t[o]);return n[Hr]=r,n},Ja=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return at(t,n,o),jn(function(){return ot(t,n,o)}),null},Za=it(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var o=e[Hr],a=[n],i="";typeof e.className=="string"?i=On(r.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=vr(a,void 0,H.useContext(st));i+=r.key+"-"+s.name;var u={};for(var c in e)ct.call(e,c)&&c!=="css"&&c!==Hr&&(u[c]=e[c]);return u.className=i,t&&(u.ref=t),H.createElement(H.Fragment,null,H.createElement(Ja,{cache:r,serialized:s,isStringTag:typeof o=="string"}),H.createElement(o,u))}),Qa=Za,Yt=function(r,t){var n=arguments;if(t==null||!ct.call(t,"css"))return H.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=Qa,a[1]=Ka(r,t);for(var i=2;i<o;i++)a[i]=n[i];return H.createElement.apply(null,a)};(function(e){var r;r||(r=e.JSX||(e.JSX={}))})(Yt||(Yt={}));var eo=it(function(e,r){var t=e.styles,n=vr([t],void 0,H.useContext(st)),o=H.useRef();return zt(function(){var a=r.key+"-global",i=new r.sheet.constructor({key:a,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),s=!1,u=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return r.sheet.tags.length&&(i.before=r.sheet.tags[0]),u!==null&&(s=!0,u.setAttribute("data-emotion",a),i.hydrate([u])),o.current=[i,s],function(){i.flush()}},[r]),zt(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&ot(r,n.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}r.insert("",n,i,!1)},[r,n.name]),null});function ro(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return vr(r)}function ut(){var e=ro.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var to=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,no=Cn(function(e){return to.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ao=no,oo=function(r){return r!=="theme"},Ut=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?ao:oo},Vt=function(r,t,n){var o;if(t){var a=t.shouldForwardProp;o=r.__emotion_forwardProp&&a?function(i){return r.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},io=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return at(t,n,o),jn(function(){return ot(t,n,o)}),null},so=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,a,i;t!==void 0&&(a=t.label,i=t.target);var s=Vt(r,t,n),u=s||Ut(o),c=!u("as");return function(){var l=arguments,d=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),l[0]==null||l[0].raw===void 0)d.push.apply(d,l);else{var b=l[0];d.push(b[0]);for(var g=l.length,h=1;h<g;h++)d.push(l[h],b[h])}var v=it(function(x,E,T){var S=c&&x.as||o,R="",p=[],P=x;if(x.theme==null){P={};for(var N in x)P[N]=x[N];P.theme=H.useContext(st)}typeof x.className=="string"?R=On(E.registered,p,x.className):x.className!=null&&(R=x.className+" ");var J=vr(d.concat(p),E.registered,P);R+=E.key+"-"+J.name,i!==void 0&&(R+=" "+i);var D=c&&s===void 0?Ut(S):u,L={};for(var W in x)c&&W==="as"||D(W)&&(L[W]=x[W]);return L.className=R,T&&(L.ref=T),H.createElement(H.Fragment,null,H.createElement(io,{cache:E,serialized:J,isStringTag:typeof S=="string"}),H.createElement(S,L))});return v.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=r.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(x,E){var T=e(x,ze({},t,E,{shouldForwardProp:Vt(v,E,!0)}));return T.apply(void 0,d)},v}},co=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],fe=so.bind(null);co.forEach(function(e){fe[e]=fe(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const uo=ut`
|
|
56
56
|
0% { transform: rotate(0deg) translateX(35px) rotate(0deg); }
|
|
57
57
|
50% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
|
|
58
58
|
100% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
|
|
59
|
-
`,
|
|
59
|
+
`,fo=fe.div`
|
|
60
60
|
position: fixed;
|
|
61
61
|
top: 0;
|
|
62
62
|
left: 0;
|
|
@@ -81,7 +81,7 @@ Valid keys: `+JSON.stringify(Object.keys(f),null," "));var m=te(M,q,A,I,$+"."+q
|
|
|
81
81
|
&.global-loading-transition-exit-active {
|
|
82
82
|
opacity: 0;
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,lo=fe.div`
|
|
85
85
|
width: 120px;
|
|
86
86
|
height: 120px;
|
|
87
87
|
position: relative;
|
|
@@ -91,15 +91,15 @@ Valid keys: `+JSON.stringify(Object.keys(f),null," "));var m=te(M,q,A,I,$+"."+q
|
|
|
91
91
|
display: flex;
|
|
92
92
|
justify-content: center;
|
|
93
93
|
align-items: center;
|
|
94
|
-
`,De=
|
|
94
|
+
`,De=fe.div(({size:e,delay:r})=>({position:"absolute",margin:"auto",borderRadius:"50%",backgroundImage:" linear-gradient(var(--color-primary) 10%, var(--color-primary-hover) 100%)",transform:"rotate(0deg) translateX(35px) rotate(0deg)",width:e,height:e,animation:`${uo} 4s ease-in-out infinite`,animationDelay:r||"0s"}));function kn(){const e=w.useRef(null),[r,t]=w.useState(!1);return w.useEffect(()=>{exports.setGlobalLoading=n=>{t(n)}},[]),_.jsx(fr,{in:r,nodeRef:e,timeout:500,classNames:"global-loading-transition",unmountOnExit:!0,children:()=>_.jsxs(fo,{ref:e,className:"global-loading",children:[_.jsxs(lo,{className:"global-loading-container",children:[_.jsx(De,{className:"dot dot-1",size:15,delay:"0.0s"}),_.jsx(De,{className:"dot dot-2",size:13,delay:"0.2s"}),_.jsx(De,{className:"dot dot-3",size:11,delay:"0.4s"}),_.jsx(De,{className:"dot dot-4",size:9,delay:"0.6s"}),_.jsx(De,{className:"dot dot-5",size:7,delay:"0.8s"})]}),_.jsx("svg",{style:{visibility:"hidden",position:"absolute"},children:_.jsx("defs",{children:_.jsxs("filter",{id:"goo",children:[_.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),_.jsx("feColorMatrix",{in:"blur",type:"matrix",values:`
|
|
95
95
|
1 0 0 0 0
|
|
96
96
|
0 1 0 0 0
|
|
97
97
|
0 0 1 0 0
|
|
98
|
-
0 0 0 18 -6`}),
|
|
98
|
+
0 0 0 18 -6`}),_.jsx("feComposite",{in:"SourceGraphic",in2:"goo",operator:"atop"})]})})})]})})}function In(e,r){const t={...e};for(const n in r)r[n]!==void 0&&(r[n]&&typeof r[n]=="object"&&!Array.isArray(r[n])?t[n]=In(e[n]||{},r[n]):t[n]=r[n]);return t}const $n={iconButton:{size:"small",render:({children:e,...r})=>e},iconFont:{}},mr=w.createContext($n);function Mn({children:e,config:r}){return _.jsx(mr.Provider,{value:In($n,r),children:e})}exports.message=oe.message;exports.notification=oe.notification;exports.modal=oe.Modal;function po({children:e}){const r=oe.App.useApp();return exports.message=r.message,exports.modal=r.modal,exports.notification=r.notification,e||""}function vo({children:e,config:r,...t}){return _.jsx(Mn,{config:r||{},children:_.jsxs(oe.App,{...t,children:[_.jsx(kn,{}),_.jsx(po,{children:e})]})})}var _r={exports:{}};/*!
|
|
99
99
|
Copyright (c) 2018 Jed Watson.
|
|
100
100
|
Licensed under the MIT License (MIT), see
|
|
101
101
|
http://jedwatson.github.io/classnames
|
|
102
|
-
*/var
|
|
102
|
+
*/var Gt;function mo(){return Gt||(Gt=1,function(e){(function(){var r={}.hasOwnProperty;function t(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return t.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)r.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(t.default=t,e.exports=t):window.classNames=t})()}(_r)),_r.exports}var ho=mo();const Xr=ur(ho),ft=w.forwardRef(({type:e="",className:r="",symbol:t=!1,style:n,...o},a)=>{const{iconFont:i}=w.useContext(mr);return t?_.jsx("svg",{className:Xr(["iconfont-symbol",i.className||"",e,r]),"aria-hidden":"true",ref:a,style:{...i.style,...n||{}},...o,children:_.jsx("use",{xlinkHref:`#${e}`})}):_.jsx("i",{className:Xr(["iconfont",i.className||"",e,r]),ref:a,style:{...i.style,...n||{}},...o})}),go=({checked:e,onChange:r,trueValue:t=!0,falseValue:n=!1,trueLabel:o="",falseLabel:a="",children:i,...s})=>{const u=e===t,c=l=>{r==null||r(l.target.checked?t:n,l)};return _.jsx(oe.Checkbox,{checked:u,onChange:c,...s,children:i||(u?o:a)})},yo=({checked:e,onChange:r,trueValue:t=!0,falseValue:n=!1,...o})=>{const a=e===t,i=(s,u)=>{r==null||r(s?t:n,u)};return _.jsx(oe.Switch,{checked:a,onChange:i,...o})};var bo=typeof global=="object"&&global&&global.Object===Object&&global,xo=typeof self=="object"&&self&&self.Object===Object&&self,Eo=bo||xo||Function("return this")(),sr=Eo.Symbol,Dn=Object.prototype,To=Dn.hasOwnProperty,So=Dn.toString,Le=sr?sr.toStringTag:void 0;function Ro(e){var r=To.call(e,Le),t=e[Le];try{e[Le]=void 0;var n=!0}catch{}var o=So.call(e);return n&&(r?e[Le]=t:delete e[Le]),o}var wo=Object.prototype,Co=wo.toString;function _o(e){return Co.call(e)}var Oo="[object Null]",Po="[object Undefined]",Bt=sr?sr.toStringTag:void 0;function Ao(e){return e==null?e===void 0?Po:Oo:Bt&&Bt in Object(e)?Ro(e):_o(e)}function jo(e){return e!=null&&typeof e=="object"}var No=Array.isArray;function ko(){}var Io="[object String]";function $o(e){return typeof e=="string"||!No(e)&&jo(e)&&Ao(e)==Io}const Mo=w.forwardRef((e,r)=>_.jsx(oe.Button,{ref:r,...e})),Do=fe(Mo)`
|
|
103
103
|
&&.icon-button {
|
|
104
104
|
font-size: 18px;
|
|
105
105
|
color: var(--color-primary);
|
|
@@ -118,4 +118,149 @@ Valid keys: `+JSON.stringify(Object.keys(f),null," "));var m=te(M,q,A,I,$+"."+q
|
|
|
118
118
|
background: var(--color-primary-bg);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
`,$i=({children:e,tooltipDisabled:r,disabled:t,disabledReason:n,title:a,...i})=>r?e:O.jsx(ie.Tooltip,{title:t&&n||a,...i,children:e}),Mi=C.forwardRef((e,r)=>{const{iconButton:t}=C.useContext(vr),{icon:n,tooltipDisabled:a=!1,title:i,hide:o=!1,disabledReason:s,onClick:u=Ai,disabled:c,size:l=t.size||"small",style:d={},className:b,loading:y=!1,...h}=e,v=()=>Ni(n)?O.jsx(ot,{type:n}):n,E=t.render;return n||console.warn("Icon props not found"),O.jsx(E,{...e,children:O.jsx($i,{tooltipDisabled:a,hide:o,disabled:c,disabledReason:s,title:i,...h,children:O.jsx(ki,{ref:r,icon:v(),size:l,className:Hr(["icon-button",t.className,b]),disabled:c,style:{...t.style,...d},loading:y,onClick:u})})})});var Di=function(e){return function(r,t){var n=C.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return r()},t)}},fe=function(){return fe=Object.assign||function(r){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},fe.apply(this,arguments)};function Ae(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t}function Li(e,r,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(l){try{c(n.next(l))}catch(d){o(d)}}function u(l){try{c(n.throw(l))}catch(d){o(d)}}function c(l){l.done?i(l.value):a(l.value).then(s,u)}c((n=n.apply(e,r||[])).next())})}function Fi(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(t=0)),t;)try{if(n=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,a=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){t.label=c[1];break}if(c[0]===6&&t.label<i[1]){t.label=i[1],i=c;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(c);break}i[2]&&t.ops.pop(),t.trys.pop();continue}c=r.call(e,t)}catch(l){c=[6,l],a=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ae(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,i=[],o;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i}function se(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))}var Re=function(e){return typeof e=="function"},qi=function(e){return typeof e>"u"},mr=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Te(e){mr&&(Re(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var r=C.useRef(e);r.current=C.useMemo(function(){return e},[e]);var t=C.useRef(void 0);return t.current||(t.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return r.current.apply(this,n)}),t.current}const cr=Di(C.useEffect);var $n=function(e,r){var t=r.manual,n=r.ready,a=n===void 0?!0:n,i=r.defaultParams,o=i===void 0?[]:i,s=r.refreshDeps,u=s===void 0?[]:s,c=r.refreshDepsAction,l=C.useRef(!1);return l.current=!1,cr(function(){!t&&a&&(l.current=!0,e.run.apply(e,se([],ae(o),!1)))},[a]),cr(function(){l.current||t||(l.current=!0,c?c():e.refresh())},se([],ae(u),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};$n.onInit=function(e){var r=e.ready,t=r===void 0?!0:r,n=e.manual;return{loading:!n&&t}};function Xr(e,r){if(e===r)return!0;for(var t=0;t<e.length;t++)if(!Object.is(e[t],r[t]))return!1;return!0}var Mn=function(e,r){var t=C.useRef({deps:r,obj:void 0,initialized:!1}).current;return(t.initialized===!1||!Xr(t.deps,r))&&(t.deps=r,t.obj=e(),t.initialized=!0),t.obj};function st(e){var r=C.useRef(e);return r.current=e,r}var hr=function(e){mr&&(Re(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var r=st(e);C.useEffect(function(){return function(){r.current()}},[])},ar=new Map,Wi=function(e,r,t){var n=ar.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var a=void 0;r>-1&&(a=setTimeout(function(){ar.delete(e)},r)),ar.set(e,fe(fe({},t),{timer:a}))},Yi=function(e){return ar.get(e)},ir=new Map,zi=function(e){return ir.get(e)},Ui=function(e,r){ir.set(e,r),r.then(function(t){return ir.delete(e),t}).catch(function(){ir.delete(e)})},Se={},Vi=function(e,r){Se[e]&&Se[e].forEach(function(t){return t(r)})},_r=function(e,r){return Se[e]||(Se[e]=[]),Se[e].push(r),function(){var n=Se[e].indexOf(r);Se[e].splice(n,1)}},Gi=function(e,r){var t=r.cacheKey,n=r.cacheTime,a=n===void 0?5*60*1e3:n,i=r.staleTime,o=i===void 0?0:i,s=r.setCache,u=r.getCache,c=C.useRef(void 0),l=C.useRef(void 0),d=function(y,h){s?s(h):Wi(y,a,h),Vi(y,h.data)},b=function(y,h){return h===void 0&&(h=[]),u?u(h):Yi(y)};return Mn(function(){if(t){var y=b(t);y&&Object.hasOwnProperty.call(y,"data")&&(e.state.data=y.data,e.state.params=y.params,(o===-1||Date.now()-y.time<=o)&&(e.state.loading=!1)),c.current=_r(t,function(h){e.setState({data:h})})}},[]),hr(function(){var y;(y=c.current)===null||y===void 0||y.call(c)}),t?{onBefore:function(y){var h=b(t,y);return!h||!Object.hasOwnProperty.call(h,"data")?{}:o===-1||Date.now()-h.time<=o?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(y,h){var v=zi(t);return v&&v!==l.current?{servicePromise:v}:(v=y.apply(void 0,se([],ae(h),!1)),l.current=v,Ui(t,v),{servicePromise:v})},onSuccess:function(y,h){var v;t&&((v=c.current)===null||v===void 0||v.call(c),d(t,{data:y,params:h,time:Date.now()}),c.current=_r(t,function(E){e.setState({data:E})}))},onMutate:function(y){var h;t&&((h=c.current)===null||h===void 0||h.call(c),d(t,{data:y,params:e.state.params,time:Date.now()}),c.current=_r(t,function(v){e.setState({data:v})}))}}:{}},Or,zt;function ct(){if(zt)return Or;zt=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return Or=e,Or}var Pr,Ut;function Bi(){if(Ut)return Pr;Ut=1;var e=typeof Xe=="object"&&Xe&&Xe.Object===Object&&Xe;return Pr=e,Pr}var Ar,Vt;function Dn(){if(Vt)return Ar;Vt=1;var e=Bi(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return Ar=t,Ar}var jr,Gt;function Hi(){if(Gt)return jr;Gt=1;var e=Dn(),r=function(){return e.Date.now()};return jr=r,jr}var Nr,Bt;function Xi(){if(Bt)return Nr;Bt=1;var e=/\s/;function r(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return Nr=r,Nr}var Ir,Ht;function Ki(){if(Ht)return Ir;Ht=1;var e=Xi(),r=/^\s+/;function t(n){return n&&n.slice(0,e(n)+1).replace(r,"")}return Ir=t,Ir}var kr,Xt;function Ln(){if(Xt)return kr;Xt=1;var e=Dn(),r=e.Symbol;return kr=r,kr}var $r,Kt;function Ji(){if(Kt)return $r;Kt=1;var e=Ln(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,a=e?e.toStringTag:void 0;function i(o){var s=t.call(o,a),u=o[a];try{o[a]=void 0;var c=!0}catch{}var l=n.call(o);return c&&(s?o[a]=u:delete o[a]),l}return $r=i,$r}var Mr,Jt;function Zi(){if(Jt)return Mr;Jt=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return Mr=t,Mr}var Dr,Zt;function Qi(){if(Zt)return Dr;Zt=1;var e=Ln(),r=Ji(),t=Zi(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?r(s):t(s)}return Dr=o,Dr}var Lr,Qt;function eo(){if(Qt)return Lr;Qt=1;function e(r){return r!=null&&typeof r=="object"}return Lr=e,Lr}var Fr,en;function ro(){if(en)return Fr;en=1;var e=Qi(),r=eo(),t="[object Symbol]";function n(a){return typeof a=="symbol"||r(a)&&e(a)==t}return Fr=n,Fr}var qr,rn;function to(){if(rn)return qr;rn=1;var e=Ki(),r=ct(),t=ro(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(c){if(typeof c=="number")return c;if(t(c))return n;if(r(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=r(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=i.test(c);return d||o.test(c)?s(c.slice(2),d?2:8):a.test(c)?n:+c}return qr=u,qr}var Wr,tn;function Fn(){if(tn)return Wr;tn=1;var e=ct(),r=Hi(),t=to(),n="Expected a function",a=Math.max,i=Math.min;function o(s,u,c){var l,d,b,y,h,v,E=0,x=!1,T=!1,S=!0;if(typeof s!="function")throw new TypeError(n);u=t(u)||0,e(c)&&(x=!!c.leading,T="maxWait"in c,b=T?a(t(c.maxWait)||0,u):b,S="trailing"in c?!!c.trailing:S);function R(H){var X=l,ee=d;return l=d=void 0,E=H,y=s.apply(ee,X),y}function p(H){return E=H,h=setTimeout(J,u),x?R(H):y}function P(H){var X=H-v,ee=H-E,re=u-X;return T?i(re,b-ee):re}function N(H){var X=H-v,ee=H-E;return v===void 0||X>=u||X<0||T&&ee>=b}function J(){var H=r();if(N(H))return D(H);h=setTimeout(J,P(H))}function D(H){return h=void 0,S&&l?R(H):(l=d=void 0,y)}function L(){h!==void 0&&clearTimeout(h),E=0,l=v=d=h=void 0}function W(){return h===void 0?y:D(r())}function Z(){var H=r(),X=N(H);if(l=arguments,d=this,v=H,X){if(h===void 0)return p(v);if(T)return clearTimeout(h),h=setTimeout(J,u),R(v)}return h===void 0&&(h=setTimeout(J,u)),y}return Z.cancel=L,Z.flush=W,Z}return Wr=o,Wr}var no=Fn();const ao=ur(no);var io=function(e,r){var t=r.debounceWait,n=r.debounceLeading,a=r.debounceTrailing,i=r.debounceMaxWait,o=C.useRef(void 0),s=C.useMemo(function(){var u={};return n!==void 0&&(u.leading=n),a!==void 0&&(u.trailing=a),i!==void 0&&(u.maxWait=i),u},[n,a,i]);return C.useEffect(function(){if(t){var u=e.runAsync.bind(e);return o.current=ao(function(c){c()},t,s),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(d,b){var y;(y=o.current)===null||y===void 0||y.call(o,function(){u.apply(void 0,se([],ae(c),!1)).then(d).catch(b)})})},function(){var c;(c=o.current)===null||c===void 0||c.cancel(),e.runAsync=u}}},[t,s]),t?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},oo=function(e,r){var t=r.loadingDelay,n=r.ready,a=C.useRef(void 0);if(!t)return{};var i=function(){a.current&&clearTimeout(a.current)};return{onBefore:function(){return i(),n!==!1&&(a.current=setTimeout(function(){e.setState({loading:!0})},t)),{loading:!1}},onFinally:function(){i()},onCancel:function(){i()}}},Ne=!!(typeof window<"u"&&window.document&&window.document.createElement);function ut(){return Ne?document.visibilityState!=="hidden":!0}var qe=[];function so(e){return qe.push(e),function(){var t=qe.indexOf(e);qe.splice(t,1)}}if(Ne){var co=function(){if(ut())for(var e=0;e<qe.length;e++){var r=qe[e];r()}};window.addEventListener("visibilitychange",co,!1)}var uo=function(e,r){var t=r.pollingInterval,n=r.pollingWhenHidden,a=n===void 0?!0:n,i=r.pollingErrorRetryCount,o=i===void 0?-1:i,s=C.useRef(void 0),u=C.useRef(void 0),c=C.useRef(0),l=function(){var d;s.current&&clearTimeout(s.current),(d=u.current)===null||d===void 0||d.call(u)};return cr(function(){t||l()},[t]),t?{onBefore:function(){l()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){o===-1||o!==-1&&c.current<=o?s.current=setTimeout(function(){!a&&!ut()?u.current=so(function(){e.refresh()}):e.refresh()},t):c.current=0},onCancel:function(){l()}}:{}};function fo(e,r){var t=!1;return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];t||(t=!0,e.apply(void 0,se([],ae(n),!1)),setTimeout(function(){t=!1},r))}}var lo=function(){return Ne&&typeof navigator.onLine<"u"?navigator.onLine:!0},We=[];function po(e){return We.push(e),function(){var t=We.indexOf(e);t>-1&&We.splice(t,1)}}if(Ne){var nn=function(){if(!(!ut()||!lo()))for(var e=0;e<We.length;e++){var r=We[e];r()}};window.addEventListener("visibilitychange",nn,!1),window.addEventListener("focus",nn,!1)}var vo=function(e,r){var t=r.refreshOnWindowFocus,n=r.focusTimespan,a=n===void 0?5e3:n,i=C.useRef(void 0),o=function(){var s;(s=i.current)===null||s===void 0||s.call(i)};return C.useEffect(function(){if(t){var s=fo(e.refresh.bind(e),a);i.current=po(function(){s()})}return function(){o()}},[t,a]),hr(function(){o()}),{}},mo=function(e,r){var t=r.retryInterval,n=r.retryCount,a=C.useRef(void 0),i=C.useRef(0),o=C.useRef(!1);return n?{onBefore:function(){o.current||(i.current=0),o.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){i.current=0},onError:function(){if(i.current+=1,n===-1||i.current<=n){var s=t??Math.min(1e3*Math.pow(2,i.current),3e4);a.current=setTimeout(function(){o.current=!0,e.refresh()},s)}else i.current=0},onCancel:function(){i.current=0,a.current&&clearTimeout(a.current)}}:{}},Yr,an;function ho(){if(an)return Yr;an=1;var e=Fn(),r=ct(),t="Expected a function";function n(a,i,o){var s=!0,u=!0;if(typeof a!="function")throw new TypeError(t);return r(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),e(a,i,{leading:s,maxWait:i,trailing:u})}return Yr=n,Yr}var yo=ho();const go=ur(yo);var bo=function(e,r){var t=r.throttleWait,n=r.throttleLeading,a=r.throttleTrailing,i=C.useRef(void 0),o={};return n!==void 0&&(o.leading=n),a!==void 0&&(o.trailing=a),C.useEffect(function(){if(t){var s=e.runAsync.bind(e);return i.current=go(function(u){u()},t,o),e.runAsync=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return new Promise(function(l,d){var b;(b=i.current)===null||b===void 0||b.call(i,function(){s.apply(void 0,se([],ae(u),!1)).then(l).catch(d)})})},function(){var u;e.runAsync=s,(u=i.current)===null||u===void 0||u.cancel()}}},[t,n,a]),t?{onCancel:function(){var s;(s=i.current)===null||s===void 0||s.cancel()}}:{}},Eo=function(e){mr&&(Re(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),C.useEffect(function(){e==null||e()},[])},xo=function(){var e=ae(C.useState({}),2),r=e[1];return C.useCallback(function(){return r({})},[])},To=function(){function e(r,t,n,a){a===void 0&&(a={}),this.serviceRef=r,this.options=t,this.subscribe=n,this.initState=a,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=fe(fe(fe({},this.state),{loading:!t.manual}),a)}return e.prototype.setState=function(r){r===void 0&&(r={}),this.state=fe(fe({},this.state),r),this.subscribe()},e.prototype.runPluginHandler=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=this.pluginImpls.map(function(i){var o;return(o=i[r])===null||o===void 0?void 0:o.call.apply(o,se([i],ae(t),!1))}).filter(Boolean);return Object.assign.apply(Object,se([{}],ae(a),!1))},e.prototype.runAsync=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return Li(this,void 0,void 0,function(){var n,a,i,o,s,u,c,l,d,b,y,h,v,E,x,T,S,R,p,P,N;return Fi(this,function(J){switch(J.label){case 0:if(this.count+=1,n=this.count,a=this.runPluginHandler("onBefore",r),i=a.stopNow,o=i===void 0?!1:i,s=a.returnNow,u=s===void 0?!1:s,c=Ae(a,["stopNow","returnNow"]),o)return[2,new Promise(function(){})];if(this.setState(fe({loading:!0,params:r},c)),u)return[2,Promise.resolve(c.data)];(v=(h=this.options).onBefore)===null||v===void 0||v.call(h,r),J.label=1;case 1:return J.trys.push([1,3,,4]),l=this.runPluginHandler("onRequest",this.serviceRef.current,r).servicePromise,l||(l=(y=this.serviceRef).current.apply(y,se([],ae(r),!1))),[4,l];case 2:return d=J.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(x=(E=this.options).onSuccess)===null||x===void 0||x.call(E,d,r),this.runPluginHandler("onSuccess",d,r),(S=(T=this.options).onFinally)===null||S===void 0||S.call(T,r,d,void 0),n===this.count&&this.runPluginHandler("onFinally",r,d,void 0),[2,d]);case 3:if(b=J.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:b,loading:!1}),(p=(R=this.options).onError)===null||p===void 0||p.call(R,b,r),this.runPluginHandler("onError",b,r),(N=(P=this.options).onFinally)===null||N===void 0||N.call(P,r,void 0,b),n===this.count&&this.runPluginHandler("onFinally",r,void 0,b),b;case 4:return[2]}})})},e.prototype.run=function(){for(var r=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.runAsync.apply(this,se([],ae(t),!1)).catch(function(a){r.options.onError||console.error(a)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,se([],ae(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,se([],ae(this.state.params||[]),!1))},e.prototype.mutate=function(r){var t=Re(r)?r(this.state.data):r;this.runPluginHandler("onMutate",t),this.setState({data:t})},e}();function So(e,r,t){r===void 0&&(r={}),t===void 0&&(t=[]);var n=r.manual,a=n===void 0?!1:n,i=r.ready,o=i===void 0?!0:i,s=Ae(r,["manual","ready"]);mr&&r.defaultParams&&!Array.isArray(r.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof r.defaultParams));var u=fe({manual:a,ready:o},s),c=st(e),l=xo(),d=Mn(function(){var b=t.map(function(y){var h;return(h=y==null?void 0:y.onInit)===null||h===void 0?void 0:h.call(y,u)}).filter(Boolean);return new To(c,u,l,Object.assign.apply(Object,se([{}],ae(b),!1)))},[]);return d.options=u,d.pluginImpls=t.map(function(b){return b(d,u)}),Eo(function(){if(!a&&o){var b=d.state.params||r.defaultParams||[];d.run.apply(d,se([],ae(b),!1))}}),hr(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:Te(d.cancel.bind(d)),refresh:Te(d.refresh.bind(d)),refreshAsync:Te(d.refreshAsync.bind(d)),run:Te(d.run.bind(d)),runAsync:Te(d.runAsync.bind(d)),mutate:Te(d.mutate.bind(d))}}function Ro(e,r,t){return So(e,r,se(se([],ae(t||[]),!1),[io,oo,uo,vo,bo,$n,Gi,mo],!1))}function qn(e,r){if(Ne){if(!e)return r;var t;return Re(e)?t=e():"current"in e?t=e.current:t=e,t}}var Co=function(e){var r=function(t,n,a){var i=C.useRef(!1),o=C.useRef([]),s=C.useRef([]),u=C.useRef(void 0);e(function(){var c,l=Array.isArray(a)?a:[a],d=l.map(function(b){return qn(b)});if(!i.current){i.current=!0,o.current=d,s.current=n,u.current=t();return}(d.length!==o.current.length||!Xr(o.current,d)||!Xr(s.current,n))&&((c=u.current)===null||c===void 0||c.call(u),o.current=d,s.current=n,u.current=t())}),hr(function(){var c;(c=u.current)===null||c===void 0||c.call(u),i.current=!1})};return r},wo=Co(C.useEffect);function on(e,r,t){t===void 0&&(t={});var n=t.enable,a=n===void 0?!0:n,i=st(r);wo(function(){if(a){var o=qn(t.target,window);if(o!=null&&o.addEventListener){var s=function(c){return i.current(c)},u=Array.isArray(e)?e:[e];return u.forEach(function(c){o.addEventListener(c,s,{capture:t.capture,once:t.once,passive:t.passive})}),function(){u.forEach(function(c){o.removeEventListener(c,s,{capture:t.capture})})}}}},[e,t.capture,t.once,t.passive,a],t.target)}var sn="AHOOKS_SYNC_STORAGE_EVENT_NAME";function _o(e){function r(t,n){n===void 0&&(n={});var a,i=n.listenStorageChange,o=i===void 0?!1:i,s=n.onError,u=s===void 0?function(T){console.error(T)}:s;try{a=e()}catch(T){u(T)}var c=function(T){return n.serializer?n.serializer(T):JSON.stringify(T)},l=function(T){return n.deserializer?n.deserializer(T):JSON.parse(T)};function d(){try{var T=a==null?void 0:a.getItem(t);if(T)return l(T)}catch(S){u(S)}return Re(n.defaultValue)?n.defaultValue():n.defaultValue}var b=ae(C.useState(d),2),y=b[0],h=b[1];cr(function(){h(d())},[t]);var v=function(T){var S=Re(T)?T(y):T;o||h(S);try{var R=void 0,p=a==null?void 0:a.getItem(t);qi(S)?(R=null,a==null||a.removeItem(t)):(R=c(S),a==null||a.setItem(t,R)),dispatchEvent(new CustomEvent(sn,{detail:{key:t,newValue:R,oldValue:p,storageArea:a}}))}catch(P){u(P)}},E=function(T){T.key!==t||T.storageArea!==a||h(d())},x=function(T){E(T.detail)};return on("storage",E,{enable:o}),on(sn,x,{enable:o}),[y,Te(v)]}return r}var Oo=_o(function(){return Ne?localStorage:void 0}),Po=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},Ao=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},jo={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Po,onWarn:Ao};function No(e,r,t){if(t===void 0&&(t=Error),!e)throw new t(r)}function Io(e){No(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}fe(fe({},jo),{textComponent:K.Fragment});function cn(e,r){if(e===r)return!0;if(!e||!r)return!1;var t=Object.keys(e),n=Object.keys(r),a=t.length;if(n.length!==a)return!1;for(var i=0;i<a;i++){var o=t[i];if(e[o]!==r[o]||!Object.prototype.hasOwnProperty.call(r,o))return!1}return!0}var ft=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=K.createContext(null)):K.createContext(null);ft.Consumer;ft.Provider;var ko=ft;function lt(){var e=K.useContext(ko);return Io(e),e}var Kr;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Kr||(Kr={}));var Jr;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Jr||(Jr={}));function Wn(e){var r=function(t){var n=lt(),a=t.value,i=t.children,o=Ae(t,["value","children"]),s=typeof a=="string"?new Date(a||0):a,u=e==="formatDate"?n.formatDateToParts(s,o):n.formatTimeToParts(s,o);return i(u)};return r.displayName=Jr[e],r}function Be(e){var r=function(t){var n=lt(),a=t.value,i=t.children,o=Ae(t,["value","children"]),s=n[e](a,o);if(typeof i=="function")return i(s);var u=n.textComponent||K.Fragment;return K.createElement(u,null,s)};return r.displayName=Kr[e],r}function $o(e,r){var t=e.values,n=Ae(e,["values"]),a=r.values,i=Ae(r,["values"]);return cn(a,t)&&cn(n,i)}function Yn(e){var r=lt(),t=r.formatMessage,n=r.textComponent,a=n===void 0?K.Fragment:n,i=e.id,o=e.description,s=e.defaultMessage,u=e.values,c=e.children,l=e.tagName,d=l===void 0?a:l,b=e.ignoreTag,y={id:i,description:o,defaultMessage:s},h=t(y,u,{ignoreTag:b});return typeof c=="function"?c(Array.isArray(h)?h:[h]):d?K.createElement(d,null,h):K.createElement(K.Fragment,null,h)}Yn.displayName="FormattedMessage";var dt=K.memo(Yn,$o);dt.displayName="MemoizedFormattedMessage";Be("formatDate");Be("formatTime");Be("formatNumber");Be("formatList");Be("formatDisplayName");Wn("formatDate");Wn("formatTime");function Mo({order:e,visibleItems:r,columns:t=[],onChangeOrder:n,columnsVisible:a,columnsSort:i,onChangeVisible:o}){const s=C.useRef(null),u=C.useRef(null),c=v=>{s.current=v.currentTarget},l=v=>{if(!u.current||!s.current)return;s.current.style.display="block",v.currentTarget.classList.remove("drag-up"),u.current.classList.remove("drag-up"),v.currentTarget.classList.remove("drag-down"),u.current.classList.remove("drag-down");const E=[...e],x=Number(s.current.dataset.index),T=Number(u.current.dataset.index);E.splice(T,0,E.splice(x,1)[0]),n(E)},d=v=>{if(v.preventDefault(),!s.current)return;s.current.style.display="none";const E=v.target;if(E.tagName!=="LI")return;const x=s.current.dataset.index,T=E.dataset.index,S=E.dataset.id;if(!S||y.includes(S)||!x||!T)return;const R=x>T?"drag-up":"drag-down";u.current&&E.dataset.index!==u.current.dataset.index&&u.current.classList.remove("drag-up","drag-down"),E.classList.contains(R)||(E.classList.add(R),u.current=E)},b=({target:{checked:v}},{dataIndex:E})=>{if(r.length===1&&!v){exports.message.error(O.jsx(dt,{id:"component.table.visibleError",defaultMessage:"列表最少保留一个字段"}));return}const x=Array.isArray(E)?E.join(","):E,T=[...r];v?T.push(x):T.splice(T.indexOf(x),1),o(T)},y=C.useMemo(()=>{const v=[];for(const E of t)if(E.columnSortDisabled&&"dataIndex"in E){let x;Array.isArray(E.dataIndex)?x=E.dataIndex.join(","):x=E.dataIndex,v.push(x)}return v},[t]),h=C.useMemo(()=>e.map((v,E)=>{let x;for(const p of t)if("dataIndex"in p){let P;if(Array.isArray(p.dataIndex)?P=p.dataIndex.join(","):P=p.dataIndex,v===P){x=p;break}}if(!x||!("dataIndex"in x))return"";const T=i&&x&&!x.columnSortDisabled;let S;x&&Array.isArray(x.dataIndex)?S=x.dataIndex.join(","):x&&(S=x.dataIndex);const R=typeof S=="string"&&r.includes(S);return x?O.jsxs("li",{draggable:T,onDragEnd:l,onDragStart:c,"data-index":E,"data-id":Array.isArray(x.dataIndex)?x.dataIndex.join(","):String(x.dataIndex),children:[i&&O.jsx(Zr.HolderOutlined,{className:"icon-drag"}),a&&O.jsx(ie.Checkbox,{style:{marginRight:"10px"},checked:!!R,disabled:x.columnVisibleDisabled,onChange:p=>{b(p,x)}}),typeof x.title=="function"?x.title({}):x.title]},Array.isArray(x.dataIndex)?x.dataIndex.join(","):String(x.dataIndex)):null}),[e,r,t,i,a]);return O.jsx(ie.Popover,{overlayClassName:"table-columns-setting-popover",content:O.jsx("ul",{onDragOver:d,className:"table-columns-setting-wrapper",children:h}),trigger:"click",align:{offset:[-60,-14]},children:O.jsx(ot,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}function Do(e){const r=C.useRef(null),{pagination:t,rowSelection:n={selectedRowKeys:[],onChange:()=>{}},dataSource:a=[],selectionPopover:i=!1}=e,o=({target:{checked:l}})=>{const{rowKey:d="id"}=e;if(!(!n||!n.onChange))if(l){const{getCheckboxProps:b}=n;let y=a;b&&(y=a.filter(v=>!b(v).disabled));const h=typeof d=="function"?d:v=>v[d];n.onChange(Array.from(y.map(h)),Array.from(y),{type:"none"})}else n.onChange([],[],{type:"none"})},s=C.useMemo(()=>{const{getCheckboxProps:l}=n;let d=a;return l&&(d=a.filter(b=>!l(b).disabled)),d.length},[a,n]),u=C.useMemo(()=>{const l=n.selectedRowKeys??[];return l.length>0&&l.length<s},[n.selectedRowKeys,s]),c=C.useMemo(()=>{const l=n.selectedRowKeys??[];return l.length>0&&l.length===s},[n.selectedRowKeys,s]);return O.jsxs("div",{className:"table-footer",children:[O.jsx(fr,{in:!!(e.rowSelection&&e.selectionPopover&&(c||u)),nodeRef:r,classNames:"zoom",unmountOnExit:!0,timeout:300,children:()=>{var l;return O.jsxs(ie.Row,{ref:r,className:"table-batch-dialog",justify:"space-between",children:[O.jsx(ie.Col,{style:{display:"flex",alignItems:"center"},children:O.jsx(ie.Checkbox,{checked:c,indeterminate:u,onChange:o,children:O.jsx(dt,{id:"component.table.selected",defaultMessage:"已选{length}条",values:{length:((l=n.selectedRowKeys)==null?void 0:l.length)??0}})})}),O.jsxs(ie.Col,{style:{display:"flex",alignItems:"center"},children:[i,O.jsx("span",{className:"btn-close",onClick:()=>{o({target:{checked:!1}})},children:O.jsx(Zr.CloseOutlined,{})})]})]})}}),t&&O.jsx("span",{className:"table-footer-total",children:t.showTotal?t.showTotal(t.total??0,[0,0]):null})]})}function Lo(e,r){const{columns:t=[],columnsSort:n,columnsVisible:a,tableId:i="",pagination:o,dataSource:s}=e,c=location.pathname+i,[l,d]=Oo("TABLE_"+c,{defaultValue:null}),[b,y]=C.useState([]),[h,v]=C.useState([]),E=C.useRef(null),x=D=>{y(D),S(D,h)},T=D=>{v(D),S(b,D)},S=(D,L)=>{d({order:D,visibleItems:L})},R=()=>{if(l)y(l.order),v(l.visibleItems);else{const D=[],L=[];for(const W of t){let Z;"dataIndex"in W&&(Array.isArray(W.dataIndex)?Z=W.dataIndex.join(","):Z=W.dataIndex,D.push(Z),"columnVisible"in W&&!W.columnVisible||L.push(Z))}y(D),v(L)}},p=D=>{const L={...D},W=Z=>O.jsxs("span",{children:[Z,O.jsx(Mo,{onChangeOrder:x,onChangeVisible:T,order:b,columnsSort:n,visibleItems:h,columns:t,columnsVisible:a})]});return typeof D.title=="function"?L.title=Z=>W(D.title(Z)):L.title=W(D.title),L},P=D=>D!=null&&D!==""?O.jsx(ie.Tooltip,{title:D,placement:"topLeft",children:O.jsx("span",{className:"column-ellipsis",children:D})}):"-",N=C.useMemo(()=>{let D=t;if(!n&&!a)D=t;else{const L=[];b.filter(W=>h.includes(W)).forEach((W,Z,H)=>{for(const X of t)if("dataIndex"in X){let ee;if(Array.isArray(X.dataIndex)?ee=X.dataIndex.join(","):ee=X.dataIndex,W===ee){(n||a)&&Z===H.length-1?L.push(p(X)):L.push(X);break}}}),D=L}return D.map(L=>{if(L.filters&&!L.filterIcon&&(L.filterIcon=O.jsx(Zr.DownOutlined,{type:"icon-xiajiantou",style:{fontWeight:500}})),L.ellipsis===!1)L.ellipsis=!1;else{const W=L.ellipsis||{};L.ellipsis={showTitle:!1,...W},L.render||(L.render=P)}return L})},[b,h,t]),J=C.useMemo(()=>e.pagination?{...o||{},showTotal:()=>s&&s.length>0&&O.jsx(Do,{...e})}:!1,[o]);return C.useEffect(()=>{R()},[]),O.jsx("div",{className:"table-wrapper",style:{position:"relative"},ref:r,children:O.jsx(ie.Table,{ref:E,scroll:{x:900},...e,pagination:J,columns:N})})}const Fo=C.forwardRef(Lo);function qo(e,r,t){const n=Ro(e,{...r,onError(i,o){var s;((r==null?void 0:r.errorMessage)??!0)&&exports.message.error(i.message),(s=r==null?void 0:r.onError)==null||s.call(r,i,o)}},t),a=n.data&&typeof n.data=="object"&&"data"in n.data?n.data.data:n.data;return{...n,data:a}}exports.App=li;exports.CheckboxValue=vi;exports.ConfigContext=vr;exports.ConfigProvider=In;exports.GlobalLoading=An;exports.IconButton=Mi;exports.IconFont=ot;exports.SwitchValue=mi;exports.Table=Fo;exports.useRequest=qo;
|
|
121
|
+
`,Lo=({children:e,tooltipDisabled:r,disabled:t,disabledReason:n,title:o,...a})=>r?e:_.jsx(oe.Tooltip,{title:t&&n||o,...a,children:e}),Fo=w.forwardRef((e,r)=>{const{iconButton:t}=w.useContext(mr),{icon:n,tooltipDisabled:o=!1,title:a,hide:i=!1,disabledReason:s,onClick:u=ko,disabled:c,size:l=t.size||"small",style:d={},className:b,loading:g=!1,...h}=e,v=()=>$o(n)?_.jsx(ft,{type:n}):n,x=t.render;return n||console.warn("Icon props not found"),_.jsx(x,{...e,children:_.jsx(Lo,{tooltipDisabled:o,hide:i,disabled:c,disabledReason:s,title:a,...h,children:_.jsx(Do,{ref:r,icon:v(),size:l,className:Xr(["icon-button",t.className,b]),disabled:c,style:{...t.style,...d},loading:g,onClick:u})})})});var qo=function(e){return function(r,t){var n=w.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return r()},t)}},le=function(){return le=Object.assign||function(r){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},le.apply(this,arguments)};function Ae(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]]);return t}function Wo(e,r,t,n){function o(a){return a instanceof t?a:new t(function(i){i(a)})}return new(t||(t=Promise))(function(a,i){function s(l){try{c(n.next(l))}catch(d){i(d)}}function u(l){try{c(n.throw(l))}catch(d){i(d)}}function c(l){l.done?a(l.value):o(l.value).then(s,u)}c((n=n.apply(e,r||[])).next())})}function zo(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(t=0)),t;)try{if(n=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){t.label=c[1];break}if(c[0]===6&&t.label<a[1]){t.label=a[1],a=c;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(c);break}a[2]&&t.ops.pop(),t.trys.pop();continue}c=r.call(e,t)}catch(l){c=[6,l],o=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ae(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,a=[],i;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(i)throw i.error}}return a}function se(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,a;n<o;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))}var we=function(e){return typeof e=="function"},Yo=function(e){return typeof e>"u"},hr=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Se(e){hr&&(we(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var r=w.useRef(e);r.current=w.useMemo(function(){return e},[e]);var t=w.useRef(void 0);return t.current||(t.current=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return r.current.apply(this,n)}),t.current}const cr=qo(w.useEffect);var Ln=function(e,r){var t=r.manual,n=r.ready,o=n===void 0?!0:n,a=r.defaultParams,i=a===void 0?[]:a,s=r.refreshDeps,u=s===void 0?[]:s,c=r.refreshDepsAction,l=w.useRef(!1);return l.current=!1,cr(function(){!t&&o&&(l.current=!0,e.run.apply(e,se([],ae(i),!1)))},[o]),cr(function(){l.current||t||(l.current=!0,c?c():e.refresh())},se([],ae(u),!1)),{onBefore:function(){if(!o)return{stopNow:!0}}}};Ln.onInit=function(e){var r=e.ready,t=r===void 0?!0:r,n=e.manual;return{loading:!n&&t}};function Kr(e,r){if(e===r)return!0;for(var t=0;t<e.length;t++)if(!Object.is(e[t],r[t]))return!1;return!0}var Fn=function(e,r){var t=w.useRef({deps:r,obj:void 0,initialized:!1}).current;return(t.initialized===!1||!Kr(t.deps,r))&&(t.deps=r,t.obj=e(),t.initialized=!0),t.obj};function lt(e){var r=w.useRef(e);return r.current=e,r}var gr=function(e){hr&&(we(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var r=lt(e);w.useEffect(function(){return function(){r.current()}},[])},ar=new Map,Uo=function(e,r,t){var n=ar.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var o=void 0;r>-1&&(o=setTimeout(function(){ar.delete(e)},r)),ar.set(e,le(le({},t),{timer:o}))},Vo=function(e){return ar.get(e)},or=new Map,Go=function(e){return or.get(e)},Bo=function(e,r){or.set(e,r),r.then(function(t){return or.delete(e),t}).catch(function(){or.delete(e)})},Re={},Ho=function(e,r){Re[e]&&Re[e].forEach(function(t){return t(r)})},Or=function(e,r){return Re[e]||(Re[e]=[]),Re[e].push(r),function(){var n=Re[e].indexOf(r);Re[e].splice(n,1)}},Xo=function(e,r){var t=r.cacheKey,n=r.cacheTime,o=n===void 0?5*60*1e3:n,a=r.staleTime,i=a===void 0?0:a,s=r.setCache,u=r.getCache,c=w.useRef(void 0),l=w.useRef(void 0),d=function(g,h){s?s(h):Uo(g,o,h),Ho(g,h.data)},b=function(g,h){return h===void 0&&(h=[]),u?u(h):Vo(g)};return Fn(function(){if(t){var g=b(t);g&&Object.hasOwnProperty.call(g,"data")&&(e.state.data=g.data,e.state.params=g.params,(i===-1||Date.now()-g.time<=i)&&(e.state.loading=!1)),c.current=Or(t,function(h){e.setState({data:h})})}},[]),gr(function(){var g;(g=c.current)===null||g===void 0||g.call(c)}),t?{onBefore:function(g){var h=b(t,g);return!h||!Object.hasOwnProperty.call(h,"data")?{}:i===-1||Date.now()-h.time<=i?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(g,h){var v=Go(t);return v&&v!==l.current?{servicePromise:v}:(v=g.apply(void 0,se([],ae(h),!1)),l.current=v,Bo(t,v),{servicePromise:v})},onSuccess:function(g,h){var v;t&&((v=c.current)===null||v===void 0||v.call(c),d(t,{data:g,params:h,time:Date.now()}),c.current=Or(t,function(x){e.setState({data:x})}))},onMutate:function(g){var h;t&&((h=c.current)===null||h===void 0||h.call(c),d(t,{data:g,params:e.state.params,time:Date.now()}),c.current=Or(t,function(v){e.setState({data:v})}))}}:{}},Pr,Ht;function dt(){if(Ht)return Pr;Ht=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return Pr=e,Pr}var Ar,Xt;function Ko(){if(Xt)return Ar;Xt=1;var e=typeof Xe=="object"&&Xe&&Xe.Object===Object&&Xe;return Ar=e,Ar}var jr,Kt;function qn(){if(Kt)return jr;Kt=1;var e=Ko(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return jr=t,jr}var Nr,Jt;function Jo(){if(Jt)return Nr;Jt=1;var e=qn(),r=function(){return e.Date.now()};return Nr=r,Nr}var kr,Zt;function Zo(){if(Zt)return kr;Zt=1;var e=/\s/;function r(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return kr=r,kr}var Ir,Qt;function Qo(){if(Qt)return Ir;Qt=1;var e=Zo(),r=/^\s+/;function t(n){return n&&n.slice(0,e(n)+1).replace(r,"")}return Ir=t,Ir}var $r,en;function Wn(){if(en)return $r;en=1;var e=qn(),r=e.Symbol;return $r=r,$r}var Mr,rn;function ei(){if(rn)return Mr;rn=1;var e=Wn(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,o=e?e.toStringTag:void 0;function a(i){var s=t.call(i,o),u=i[o];try{i[o]=void 0;var c=!0}catch{}var l=n.call(i);return c&&(s?i[o]=u:delete i[o]),l}return Mr=a,Mr}var Dr,tn;function ri(){if(tn)return Dr;tn=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return Dr=t,Dr}var Lr,nn;function ti(){if(nn)return Lr;nn=1;var e=Wn(),r=ei(),t=ri(),n="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?o:n:a&&a in Object(s)?r(s):t(s)}return Lr=i,Lr}var Fr,an;function ni(){if(an)return Fr;an=1;function e(r){return r!=null&&typeof r=="object"}return Fr=e,Fr}var qr,on;function ai(){if(on)return qr;on=1;var e=ti(),r=ni(),t="[object Symbol]";function n(o){return typeof o=="symbol"||r(o)&&e(o)==t}return qr=n,qr}var Wr,sn;function oi(){if(sn)return Wr;sn=1;var e=Qo(),r=dt(),t=ai(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function u(c){if(typeof c=="number")return c;if(t(c))return n;if(r(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=r(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=a.test(c);return d||i.test(c)?s(c.slice(2),d?2:8):o.test(c)?n:+c}return Wr=u,Wr}var zr,cn;function zn(){if(cn)return zr;cn=1;var e=dt(),r=Jo(),t=oi(),n="Expected a function",o=Math.max,a=Math.min;function i(s,u,c){var l,d,b,g,h,v,x=0,E=!1,T=!1,S=!0;if(typeof s!="function")throw new TypeError(n);u=t(u)||0,e(c)&&(E=!!c.leading,T="maxWait"in c,b=T?o(t(c.maxWait)||0,u):b,S="trailing"in c?!!c.trailing:S);function R(X){var K=l,ee=d;return l=d=void 0,x=X,g=s.apply(ee,K),g}function p(X){return x=X,h=setTimeout(J,u),E?R(X):g}function P(X){var K=X-v,ee=X-x,re=u-K;return T?a(re,b-ee):re}function N(X){var K=X-v,ee=X-x;return v===void 0||K>=u||K<0||T&&ee>=b}function J(){var X=r();if(N(X))return D(X);h=setTimeout(J,P(X))}function D(X){return h=void 0,S&&l?R(X):(l=d=void 0,g)}function L(){h!==void 0&&clearTimeout(h),x=0,l=v=d=h=void 0}function W(){return h===void 0?g:D(r())}function Z(){var X=r(),K=N(X);if(l=arguments,d=this,v=X,K){if(h===void 0)return p(v);if(T)return clearTimeout(h),h=setTimeout(J,u),R(v)}return h===void 0&&(h=setTimeout(J,u)),g}return Z.cancel=L,Z.flush=W,Z}return zr=i,zr}var ii=zn();const si=ur(ii);var ci=function(e,r){var t=r.debounceWait,n=r.debounceLeading,o=r.debounceTrailing,a=r.debounceMaxWait,i=w.useRef(void 0),s=w.useMemo(function(){var u={};return n!==void 0&&(u.leading=n),o!==void 0&&(u.trailing=o),a!==void 0&&(u.maxWait=a),u},[n,o,a]);return w.useEffect(function(){if(t){var u=e.runAsync.bind(e);return i.current=si(function(c){c()},t,s),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(d,b){var g;(g=i.current)===null||g===void 0||g.call(i,function(){u.apply(void 0,se([],ae(c),!1)).then(d).catch(b)})})},function(){var c;(c=i.current)===null||c===void 0||c.cancel(),e.runAsync=u}}},[t,s]),t?{onCancel:function(){var u;(u=i.current)===null||u===void 0||u.cancel()}}:{}},ui=function(e,r){var t=r.loadingDelay,n=r.ready,o=w.useRef(void 0);if(!t)return{};var a=function(){o.current&&clearTimeout(o.current)};return{onBefore:function(){return a(),n!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0})},t)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}},Ne=!!(typeof window<"u"&&window.document&&window.document.createElement);function pt(){return Ne?document.visibilityState!=="hidden":!0}var qe=[];function fi(e){return qe.push(e),function(){var t=qe.indexOf(e);qe.splice(t,1)}}if(Ne){var li=function(){if(pt())for(var e=0;e<qe.length;e++){var r=qe[e];r()}};window.addEventListener("visibilitychange",li,!1)}var di=function(e,r){var t=r.pollingInterval,n=r.pollingWhenHidden,o=n===void 0?!0:n,a=r.pollingErrorRetryCount,i=a===void 0?-1:a,s=w.useRef(void 0),u=w.useRef(void 0),c=w.useRef(0),l=function(){var d;s.current&&clearTimeout(s.current),(d=u.current)===null||d===void 0||d.call(u)};return cr(function(){t||l()},[t]),t?{onBefore:function(){l()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){i===-1||i!==-1&&c.current<=i?s.current=setTimeout(function(){!o&&!pt()?u.current=fi(function(){e.refresh()}):e.refresh()},t):c.current=0},onCancel:function(){l()}}:{}};function pi(e,r){var t=!1;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t||(t=!0,e.apply(void 0,se([],ae(n),!1)),setTimeout(function(){t=!1},r))}}var vi=function(){return Ne&&typeof navigator.onLine<"u"?navigator.onLine:!0},We=[];function mi(e){return We.push(e),function(){var t=We.indexOf(e);t>-1&&We.splice(t,1)}}if(Ne){var un=function(){if(!(!pt()||!vi()))for(var e=0;e<We.length;e++){var r=We[e];r()}};window.addEventListener("visibilitychange",un,!1),window.addEventListener("focus",un,!1)}var hi=function(e,r){var t=r.refreshOnWindowFocus,n=r.focusTimespan,o=n===void 0?5e3:n,a=w.useRef(void 0),i=function(){var s;(s=a.current)===null||s===void 0||s.call(a)};return w.useEffect(function(){if(t){var s=pi(e.refresh.bind(e),o);a.current=mi(function(){s()})}return function(){i()}},[t,o]),gr(function(){i()}),{}},gi=function(e,r){var t=r.retryInterval,n=r.retryCount,o=w.useRef(void 0),a=w.useRef(0),i=w.useRef(!1);return n?{onBefore:function(){i.current||(a.current=0),i.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,n===-1||a.current<=n){var s=t??Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh()},s)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},Yr,fn;function yi(){if(fn)return Yr;fn=1;var e=zn(),r=dt(),t="Expected a function";function n(o,a,i){var s=!0,u=!0;if(typeof o!="function")throw new TypeError(t);return r(i)&&(s="leading"in i?!!i.leading:s,u="trailing"in i?!!i.trailing:u),e(o,a,{leading:s,maxWait:a,trailing:u})}return Yr=n,Yr}var bi=yi();const xi=ur(bi);var Ei=function(e,r){var t=r.throttleWait,n=r.throttleLeading,o=r.throttleTrailing,a=w.useRef(void 0),i={};return n!==void 0&&(i.leading=n),o!==void 0&&(i.trailing=o),w.useEffect(function(){if(t){var s=e.runAsync.bind(e);return a.current=xi(function(u){u()},t,i),e.runAsync=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return new Promise(function(l,d){var b;(b=a.current)===null||b===void 0||b.call(a,function(){s.apply(void 0,se([],ae(u),!1)).then(l).catch(d)})})},function(){var u;e.runAsync=s,(u=a.current)===null||u===void 0||u.cancel()}}},[t,n,o]),t?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel()}}:{}},Ti=function(e){hr&&(we(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),w.useEffect(function(){e==null||e()},[])},Si=function(){var e=ae(w.useState({}),2),r=e[1];return w.useCallback(function(){return r({})},[])},Ri=function(){function e(r,t,n,o){o===void 0&&(o={}),this.serviceRef=r,this.options=t,this.subscribe=n,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=le(le(le({},this.state),{loading:!t.manual}),o)}return e.prototype.setState=function(r){r===void 0&&(r={}),this.state=le(le({},this.state),r),this.subscribe()},e.prototype.runPluginHandler=function(r){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this.pluginImpls.map(function(a){var i;return(i=a[r])===null||i===void 0?void 0:i.call.apply(i,se([a],ae(t),!1))}).filter(Boolean);return Object.assign.apply(Object,se([{}],ae(o),!1))},e.prototype.runAsync=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return Wo(this,void 0,void 0,function(){var n,o,a,i,s,u,c,l,d,b,g,h,v,x,E,T,S,R,p,P,N;return zo(this,function(J){switch(J.label){case 0:if(this.count+=1,n=this.count,o=this.runPluginHandler("onBefore",r),a=o.stopNow,i=a===void 0?!1:a,s=o.returnNow,u=s===void 0?!1:s,c=Ae(o,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState(le({loading:!0,params:r},c)),u)return[2,Promise.resolve(c.data)];(v=(h=this.options).onBefore)===null||v===void 0||v.call(h,r),J.label=1;case 1:return J.trys.push([1,3,,4]),l=this.runPluginHandler("onRequest",this.serviceRef.current,r).servicePromise,l||(l=(g=this.serviceRef).current.apply(g,se([],ae(r),!1))),[4,l];case 2:return d=J.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(E=(x=this.options).onSuccess)===null||E===void 0||E.call(x,d,r),this.runPluginHandler("onSuccess",d,r),(S=(T=this.options).onFinally)===null||S===void 0||S.call(T,r,d,void 0),n===this.count&&this.runPluginHandler("onFinally",r,d,void 0),[2,d]);case 3:if(b=J.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:b,loading:!1}),(p=(R=this.options).onError)===null||p===void 0||p.call(R,b,r),this.runPluginHandler("onError",b,r),(N=(P=this.options).onFinally)===null||N===void 0||N.call(P,r,void 0,b),n===this.count&&this.runPluginHandler("onFinally",r,void 0,b),b;case 4:return[2]}})})},e.prototype.run=function(){for(var r=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.runAsync.apply(this,se([],ae(t),!1)).catch(function(o){r.options.onError||console.error(o)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,se([],ae(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,se([],ae(this.state.params||[]),!1))},e.prototype.mutate=function(r){var t=we(r)?r(this.state.data):r;this.runPluginHandler("onMutate",t),this.setState({data:t})},e}();function wi(e,r,t){r===void 0&&(r={}),t===void 0&&(t=[]);var n=r.manual,o=n===void 0?!1:n,a=r.ready,i=a===void 0?!0:a,s=Ae(r,["manual","ready"]);hr&&r.defaultParams&&!Array.isArray(r.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof r.defaultParams));var u=le({manual:o,ready:i},s),c=lt(e),l=Si(),d=Fn(function(){var b=t.map(function(g){var h;return(h=g==null?void 0:g.onInit)===null||h===void 0?void 0:h.call(g,u)}).filter(Boolean);return new Ri(c,u,l,Object.assign.apply(Object,se([{}],ae(b),!1)))},[]);return d.options=u,d.pluginImpls=t.map(function(b){return b(d,u)}),Ti(function(){if(!o&&i){var b=d.state.params||r.defaultParams||[];d.run.apply(d,se([],ae(b),!1))}}),gr(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:Se(d.cancel.bind(d)),refresh:Se(d.refresh.bind(d)),refreshAsync:Se(d.refreshAsync.bind(d)),run:Se(d.run.bind(d)),runAsync:Se(d.runAsync.bind(d)),mutate:Se(d.mutate.bind(d))}}function Ci(e,r,t){return wi(e,r,se(se([],ae(t||[]),!1),[ci,ui,di,hi,Ei,Ln,Xo,gi],!1))}function Yn(e,r){if(Ne){if(!e)return r;var t;return we(e)?t=e():"current"in e?t=e.current:t=e,t}}var _i=function(e){var r=function(t,n,o){var a=w.useRef(!1),i=w.useRef([]),s=w.useRef([]),u=w.useRef(void 0);e(function(){var c,l=Array.isArray(o)?o:[o],d=l.map(function(b){return Yn(b)});if(!a.current){a.current=!0,i.current=d,s.current=n,u.current=t();return}(d.length!==i.current.length||!Kr(i.current,d)||!Kr(s.current,n))&&((c=u.current)===null||c===void 0||c.call(u),i.current=d,s.current=n,u.current=t())}),gr(function(){var c;(c=u.current)===null||c===void 0||c.call(u),a.current=!1})};return r},Oi=_i(w.useEffect);function ln(e,r,t){t===void 0&&(t={});var n=t.enable,o=n===void 0?!0:n,a=lt(r);Oi(function(){if(o){var i=Yn(t.target,window);if(i!=null&&i.addEventListener){var s=function(c){return a.current(c)},u=Array.isArray(e)?e:[e];return u.forEach(function(c){i.addEventListener(c,s,{capture:t.capture,once:t.once,passive:t.passive})}),function(){u.forEach(function(c){i.removeEventListener(c,s,{capture:t.capture})})}}}},[e,t.capture,t.once,t.passive,o],t.target)}var dn="AHOOKS_SYNC_STORAGE_EVENT_NAME";function Pi(e){function r(t,n){n===void 0&&(n={});var o,a=n.listenStorageChange,i=a===void 0?!1:a,s=n.onError,u=s===void 0?function(T){console.error(T)}:s;try{o=e()}catch(T){u(T)}var c=function(T){return n.serializer?n.serializer(T):JSON.stringify(T)},l=function(T){return n.deserializer?n.deserializer(T):JSON.parse(T)};function d(){try{var T=o==null?void 0:o.getItem(t);if(T)return l(T)}catch(S){u(S)}return we(n.defaultValue)?n.defaultValue():n.defaultValue}var b=ae(w.useState(d),2),g=b[0],h=b[1];cr(function(){h(d())},[t]);var v=function(T){var S=we(T)?T(g):T;i||h(S);try{var R=void 0,p=o==null?void 0:o.getItem(t);Yo(S)?(R=null,o==null||o.removeItem(t)):(R=c(S),o==null||o.setItem(t,R)),dispatchEvent(new CustomEvent(dn,{detail:{key:t,newValue:R,oldValue:p,storageArea:o}}))}catch(P){u(P)}},x=function(T){T.key!==t||T.storageArea!==o||h(d())},E=function(T){x(T.detail)};return ln("storage",x,{enable:i}),ln(dn,E,{enable:i}),[g,Se(v)]}return r}var Ai=Pi(function(){return Ne?localStorage:void 0}),ji=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},Ni=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},ki={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:ji,onWarn:Ni};function Ii(e,r,t){if(t===void 0&&(t=Error),!e)throw new t(r)}function $i(e){Ii(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}le(le({},ki),{textComponent:H.Fragment});function pn(e,r){if(e===r)return!0;if(!e||!r)return!1;var t=Object.keys(e),n=Object.keys(r),o=t.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var i=t[a];if(e[i]!==r[i]||!Object.prototype.hasOwnProperty.call(r,i))return!1}return!0}var vt=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=H.createContext(null)):H.createContext(null);vt.Consumer;vt.Provider;var Mi=vt;function mt(){var e=H.useContext(Mi);return $i(e),e}var Jr;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Jr||(Jr={}));var Zr;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Zr||(Zr={}));function Un(e){var r=function(t){var n=mt(),o=t.value,a=t.children,i=Ae(t,["value","children"]),s=typeof o=="string"?new Date(o||0):o,u=e==="formatDate"?n.formatDateToParts(s,i):n.formatTimeToParts(s,i);return a(u)};return r.displayName=Zr[e],r}function Be(e){var r=function(t){var n=mt(),o=t.value,a=t.children,i=Ae(t,["value","children"]),s=n[e](o,i);if(typeof a=="function")return a(s);var u=n.textComponent||H.Fragment;return H.createElement(u,null,s)};return r.displayName=Jr[e],r}function Di(e,r){var t=e.values,n=Ae(e,["values"]),o=r.values,a=Ae(r,["values"]);return pn(o,t)&&pn(n,a)}function Vn(e){var r=mt(),t=r.formatMessage,n=r.textComponent,o=n===void 0?H.Fragment:n,a=e.id,i=e.description,s=e.defaultMessage,u=e.values,c=e.children,l=e.tagName,d=l===void 0?o:l,b=e.ignoreTag,g={id:a,description:i,defaultMessage:s},h=t(g,u,{ignoreTag:b});return typeof c=="function"?c(Array.isArray(h)?h:[h]):d?H.createElement(d,null,h):H.createElement(H.Fragment,null,h)}Vn.displayName="FormattedMessage";var ht=H.memo(Vn,Di);ht.displayName="MemoizedFormattedMessage";Be("formatDate");Be("formatTime");Be("formatNumber");Be("formatList");Be("formatDisplayName");Un("formatDate");Un("formatTime");const Li=ut`
|
|
122
|
+
from {
|
|
123
|
+
margin-top: 0;
|
|
124
|
+
}
|
|
125
|
+
to {
|
|
126
|
+
margin-top: 32px;
|
|
127
|
+
}
|
|
128
|
+
`,Fi=ut`
|
|
129
|
+
from {
|
|
130
|
+
margin-top: 32px;
|
|
131
|
+
margin-bottom: 0;
|
|
132
|
+
}
|
|
133
|
+
to {
|
|
134
|
+
margin-top: 0;
|
|
135
|
+
margin-bottom: 32px;
|
|
136
|
+
}
|
|
137
|
+
`;fe.div`
|
|
138
|
+
.ant-popover-inner-content {
|
|
139
|
+
max-height: 360px;
|
|
140
|
+
padding: 0;
|
|
141
|
+
overflow-y: auto;
|
|
142
|
+
}
|
|
143
|
+
`;const qi=fe.ul`
|
|
144
|
+
padding: 10px 0;
|
|
145
|
+
|
|
146
|
+
.drag-up {
|
|
147
|
+
border: solid 2px #ccc;
|
|
148
|
+
animation: ${Li} ease 0.2s 1;
|
|
149
|
+
animation-fill-mode: forwards;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.drag-down {
|
|
153
|
+
border: solid 2px #ccc;
|
|
154
|
+
animation: ${Fi} ease 0.2s 1;
|
|
155
|
+
animation-fill-mode: forwards;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
li {
|
|
159
|
+
width: 150px;
|
|
160
|
+
padding: 5px 12px;
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
text-overflow: ellipsis;
|
|
163
|
+
word-break: keep-all;
|
|
164
|
+
white-space: nowrap;
|
|
165
|
+
user-select: none;
|
|
166
|
+
transition: background-color 0.5s;
|
|
167
|
+
|
|
168
|
+
.icon-drag {
|
|
169
|
+
margin-right: 10px;
|
|
170
|
+
color: #999;
|
|
171
|
+
cursor: move;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&[draggable="false"] {
|
|
175
|
+
.icon-drag {
|
|
176
|
+
cursor: no-drop;
|
|
177
|
+
opacity: 0.2;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&:hover {
|
|
182
|
+
background-color: #f0f0f0;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
`;function Wi({order:e,visibleItems:r,columns:t=[],onChangeOrder:n,columnsVisible:o,columnsSort:a,onChangeVisible:i}){const s=w.useRef(null),u=w.useRef(null),c=v=>{s.current=v.currentTarget},l=v=>{if(!u.current||!s.current)return;s.current.style.display="block",v.currentTarget.classList.remove("drag-up"),u.current.classList.remove("drag-up"),v.currentTarget.classList.remove("drag-down"),u.current.classList.remove("drag-down");const x=[...e],E=Number(s.current.dataset.index),T=Number(u.current.dataset.index);x.splice(T,0,x.splice(E,1)[0]),n(x)},d=v=>{if(v.preventDefault(),!s.current)return;s.current.style.display="none";const x=v.target;if(x.tagName!=="LI")return;const E=s.current.dataset.index,T=x.dataset.index,S=x.dataset.id;if(!S||g.includes(S)||!E||!T)return;const R=E>T?"drag-up":"drag-down";u.current&&x.dataset.index!==u.current.dataset.index&&u.current.classList.remove("drag-up","drag-down"),x.classList.contains(R)||(x.classList.add(R),u.current=x)},b=({target:{checked:v}},{dataIndex:x})=>{if(r.length===1&&!v){exports.message.error(_.jsx(ht,{id:"component.table.visibleError",defaultMessage:"列表最少保留一个字段"}));return}const E=Array.isArray(x)?x.join(","):x,T=[...r];v?T.push(E):T.splice(T.indexOf(E),1),i(T)},g=w.useMemo(()=>{const v=[];for(const x of t)if(x.columnSortDisabled&&"dataIndex"in x){let E;Array.isArray(x.dataIndex)?E=x.dataIndex.join(","):E=x.dataIndex,v.push(E)}return v},[t]),h=w.useMemo(()=>e.map((v,x)=>{let E;for(const p of t)if("dataIndex"in p){let P;if(Array.isArray(p.dataIndex)?P=p.dataIndex.join(","):P=p.dataIndex,v===P){E=p;break}}if(!E||!("dataIndex"in E))return"";const T=a&&E&&!E.columnSortDisabled;let S;E&&Array.isArray(E.dataIndex)?S=E.dataIndex.join(","):E&&(S=E.dataIndex);const R=typeof S=="string"&&r.includes(S);return E?_.jsxs("li",{draggable:T,onDragEnd:l,onDragStart:c,"data-index":x,"data-id":Array.isArray(E.dataIndex)?E.dataIndex.join(","):String(E.dataIndex),children:[a&&_.jsx(Qr.HolderOutlined,{className:"icon-drag"}),o&&_.jsx(oe.Checkbox,{style:{marginRight:"10px"},checked:!!R,disabled:E.columnVisibleDisabled,onChange:p=>{b(p,E)}}),typeof E.title=="function"?E.title({}):E.title]},Array.isArray(E.dataIndex)?E.dataIndex.join(","):String(E.dataIndex)):null}),[e,r,t,a,o]);return _.jsx(oe.Popover,{overlayClassName:"table-columns-setting-popover",content:_.jsx(qi,{onDragOver:d,children:h}),trigger:"click",align:{offset:[-60,-14]},children:_.jsx(ft,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}const zi=fe.div`
|
|
186
|
+
position: absolute;
|
|
187
|
+
left: 8px;
|
|
188
|
+
`,Yi=fe.span`
|
|
189
|
+
font-size: 14px;
|
|
190
|
+
color: #666;
|
|
191
|
+
`;fe.div`
|
|
192
|
+
position: fixed;
|
|
193
|
+
right: 0;
|
|
194
|
+
bottom: 30px;
|
|
195
|
+
left: 0;
|
|
196
|
+
z-index: 9;
|
|
197
|
+
width: 600px;
|
|
198
|
+
padding: 15px 20px;
|
|
199
|
+
margin: auto;
|
|
200
|
+
color: #fff;
|
|
201
|
+
background-color: #666;
|
|
202
|
+
border-radius: 5px;
|
|
203
|
+
transition: all 0.5s;
|
|
204
|
+
|
|
205
|
+
.ant-checkbox-wrapper {
|
|
206
|
+
margin-right: 10px;
|
|
207
|
+
color: #fff;
|
|
208
|
+
|
|
209
|
+
.ant-checkbox-indeterminate .ant-checkbox-inner {
|
|
210
|
+
background-color: transparent;
|
|
211
|
+
border-color: #d9d9d9;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
`;const Ui=fe(oe.Row)`
|
|
215
|
+
position: fixed;
|
|
216
|
+
right: 0;
|
|
217
|
+
bottom: 30px;
|
|
218
|
+
left: 0;
|
|
219
|
+
z-index: 9;
|
|
220
|
+
width: 600px;
|
|
221
|
+
padding: 15px 20px;
|
|
222
|
+
margin: auto;
|
|
223
|
+
color: #fff;
|
|
224
|
+
background-color: #666;
|
|
225
|
+
border-radius: 5px;
|
|
226
|
+
transition: all 0.5s;
|
|
227
|
+
|
|
228
|
+
.ant-checkbox-wrapper {
|
|
229
|
+
margin-right: 10px;
|
|
230
|
+
color: #fff;
|
|
231
|
+
|
|
232
|
+
.ant-checkbox-indeterminate .ant-checkbox-inner {
|
|
233
|
+
background-color: transparent;
|
|
234
|
+
border-color: #d9d9d9;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
`,Vi=fe.span`
|
|
238
|
+
margin-left: 20px;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
opacity: 0.5;
|
|
241
|
+
transition: all 0.5s;
|
|
242
|
+
|
|
243
|
+
&:hover {
|
|
244
|
+
opacity: 1;
|
|
245
|
+
}
|
|
246
|
+
`,Gi={enter:"zoom-enter",enterActive:"zoom-enter-active",leaveActive:"zoom-leave-active"},Bi=`
|
|
247
|
+
.zoom-enter {
|
|
248
|
+
transform: scale(0);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.zoom-enter-active {
|
|
252
|
+
transform: scale(1);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.zoom-leave-active {
|
|
256
|
+
transform: scale(0);
|
|
257
|
+
}
|
|
258
|
+
`;function Hi(e){const r=w.useRef(null),{pagination:t,rowSelection:n={selectedRowKeys:[],onChange:()=>{}},dataSource:o=[],selectionPopover:a=!1}=e,i=({target:{checked:l}})=>{const{rowKey:d="id"}=e;if(!(!n||!n.onChange))if(l){const{getCheckboxProps:b}=n;let g=o;b&&(g=o.filter(v=>!b(v).disabled));const h=typeof d=="function"?d:v=>v[d];n.onChange(Array.from(g.map(h)),Array.from(g),{type:"none"})}else n.onChange([],[],{type:"none"})},s=w.useMemo(()=>{const{getCheckboxProps:l}=n;let d=o;return l&&(d=o.filter(b=>!l(b).disabled)),d.length},[o,n]),u=w.useMemo(()=>{const l=n.selectedRowKeys??[];return l.length>0&&l.length<s},[n.selectedRowKeys,s]),c=w.useMemo(()=>{const l=n.selectedRowKeys??[];return l.length>0&&l.length===s},[n.selectedRowKeys,s]);return _.jsxs(_.Fragment,{children:[_.jsx(eo,{styles:Bi}),_.jsxs(zi,{children:[_.jsx(fr,{in:!!(e.rowSelection&&e.selectionPopover&&(c||u)),nodeRef:r,classNames:Gi,unmountOnExit:!0,timeout:300,children:()=>{var l;return _.jsxs(Ui,{ref:r,justify:"space-between",children:[_.jsx(oe.Col,{style:{display:"flex",alignItems:"center"},children:_.jsx(oe.Checkbox,{checked:c,indeterminate:u,onChange:i,children:_.jsx(ht,{id:"component.table.selected",defaultMessage:"已选{length}条",values:{length:((l=n.selectedRowKeys)==null?void 0:l.length)??0}})})}),_.jsxs(oe.Col,{style:{display:"flex",alignItems:"center"},children:[a,_.jsx(Vi,{onClick:()=>{i({target:{checked:!1}})},children:_.jsx(Qr.CloseOutlined,{})})]})]})}}),t&&_.jsx(Yi,{children:t.showTotal?t.showTotal(t.total??0,[0,0]):null})]})]})}const Xi=fe.div`
|
|
259
|
+
position: relative;
|
|
260
|
+
|
|
261
|
+
.ant-pagination-options {
|
|
262
|
+
.ant-select {
|
|
263
|
+
width: auto !important;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
`;function Ki(e,r){const{columns:t=[],columnsSort:n,columnsVisible:o,tableId:a="",pagination:i,dataSource:s}=e,c=location.pathname+a,[l,d]=Ai("TABLE_"+c,{defaultValue:null}),[b,g]=w.useState([]),[h,v]=w.useState([]),x=w.useRef(null),E=D=>{g(D),S(D,h)},T=D=>{v(D),S(b,D)},S=(D,L)=>{d({order:D,visibleItems:L})},R=()=>{if(l)g(l.order),v(l.visibleItems);else{const D=[],L=[];for(const W of t){let Z;"dataIndex"in W&&(Array.isArray(W.dataIndex)?Z=W.dataIndex.join(","):Z=W.dataIndex,D.push(Z),"columnVisible"in W&&!W.columnVisible||L.push(Z))}g(D),v(L)}},p=D=>{const L={...D},W=Z=>_.jsxs("span",{children:[Z,_.jsx(Wi,{onChangeOrder:E,onChangeVisible:T,order:b,columnsSort:n,visibleItems:h,columns:t,columnsVisible:o})]});return typeof D.title=="function"?L.title=Z=>W(D.title(Z)):L.title=W(D.title),L},P=D=>D!=null&&D!==""?_.jsx(oe.Tooltip,{title:D,placement:"topLeft",children:_.jsx("span",{className:"column-ellipsis",children:D})}):"-",N=w.useMemo(()=>{let D=t;if(!n&&!o)D=t;else{const L=[];b.filter(W=>h.includes(W)).forEach((W,Z,X)=>{for(const K of t)if("dataIndex"in K){let ee;if(Array.isArray(K.dataIndex)?ee=K.dataIndex.join(","):ee=K.dataIndex,W===ee){(n||o)&&Z===X.length-1?L.push(p(K)):L.push(K);break}}}),D=L}return D.map(L=>{if(L.filters&&!L.filterIcon&&(L.filterIcon=_.jsx(Qr.DownOutlined,{type:"icon-xiajiantou",style:{fontWeight:500}})),L.ellipsis===!1)L.ellipsis=!1;else{const W=L.ellipsis||{};L.ellipsis={showTitle:!1,...W},L.render||(L.render=P)}return L})},[b,h,t]),J=w.useMemo(()=>e.pagination?{...i||{},showTotal:()=>s&&s.length>0&&_.jsx(Hi,{...e})}:!1,[i]);return w.useEffect(()=>{R()},[]),_.jsx(Xi,{ref:r,children:_.jsx(oe.Table,{ref:x,scroll:{x:900},...e,pagination:J,columns:N})})}const Ji=w.forwardRef(Ki);function Zi(e,r,t){const n=Ci(e,{...r,onError(a,i){var s;((r==null?void 0:r.errorMessage)??!0)&&exports.message.error(a.message),(s=r==null?void 0:r.onError)==null||s.call(r,a,i)}},t),o=n.data&&typeof n.data=="object"&&"data"in n.data?n.data.data:n.data;return{...n,data:o}}exports.App=vo;exports.CheckboxValue=go;exports.ConfigContext=mr;exports.ConfigProvider=Mn;exports.GlobalLoading=kn;exports.IconButton=Fo;exports.IconFont=ft;exports.SwitchValue=yo;exports.Table=Ji;exports.useRequest=Zi;
|