xmirror-components 1.0.30-alpha.11 → 1.0.30-alpha.13

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),ie=require("antd"),Ge=require("react-dom"),Xe=require("@ant-design/icons");function qi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const J=qi(O);var wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt={exports:{}},tt={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react"),te=require("antd"),De=require("react-dom"),Ie=require("@ant-design/icons");function Ra(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const se=Ra(C);var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var st={exports:{}},Fe={};/**
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 pn;function Vi(){if(pn)return tt;pn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var s in a)s!=="key"&&(i[s]=a[s])}else i=a;return a=i.ref,{$$typeof:e,type:n,key:o,ref:a!==void 0?a:null,props:i}}return tt.Fragment=t,tt.jsx=r,tt.jsxs=r,tt}var rt={};/**
9
+ */var Dr;function Oa(){if(Dr)return Fe;Dr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(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 u in o)u!=="key"&&(a[u]=o[u])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return Fe.Fragment=t,Fe.jsx=r,Fe.jsxs=r,Fe}var qe={};/**
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 mn;function Yi(){return mn||(mn=1,process.env.NODE_ENV!=="production"&&function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===N?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case b:return"Fragment";case p:return"Profiler";case x:return"StrictMode";case c:return"Suspense";case y:return"SuspenseList";case C:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case w:return"Portal";case m:return(S.displayName||"Context")+".Provider";case h:return(S._context.displayName||"Context")+".Consumer";case v:var _=S.render;return S=S.displayName,S||(S=_.displayName||_.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case g:return _=S.displayName||null,_!==null?_:e(S.type)||"Memo";case R:_=S._payload,S=S._init;try{return e(S(_))}catch{}}return null}function t(S){return""+S}function r(S){try{t(S);var _=!1}catch{_=!0}if(_){_=console;var M=_.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return M.call(_,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),t(S)}}function n(S){if(S===b)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===R)return"<...>";try{var _=e(S);return _?"<"+_+">":"<...>"}catch{return"<...>"}}function a(){var S=A.A;return S===null?null:S.getOwner()}function i(){return Error("react-stack-top-frame")}function o(S){if(F.call(S,"key")){var _=Object.getOwnPropertyDescriptor(S,"key").get;if(_&&_.isReactWarning)return!1}return S.key!==void 0}function s(S,_){function M(){z||(z=!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)",_))}M.isReactWarning=!0,Object.defineProperty(S,"key",{get:M,configurable:!0})}function u(){var S=e(this.type);return H[S]||(H[S]=!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.")),S=this.props.ref,S!==void 0?S:null}function l(S,_,M,j,B,$,G,q){return M=$.ref,S={$$typeof:T,type:S,key:_,props:$,_owner:B},(M!==void 0?M:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:u}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function f(S,_,M,j,B,$,G,q){var U=_.children;if(U!==void 0)if(j)if(D(U)){for(j=0;j<U.length;j++)d(U[j]);Object.freeze&&Object.freeze(U)}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(U);if(F.call(_,"key")){U=e(S);var V=Object.keys(_).filter(function(he){return he!=="key"});j=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",ce[U+j]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Nr;function Pa(){return Nr||(Nr=1,process.env.NODE_ENV!=="production"&&function(){function e(b){if(b==null)return null;if(typeof b=="function")return b.$$typeof===A?null:b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case x:return"Fragment";case h:return"Profiler";case S:return"StrictMode";case s:return"Suspense";case y:return"SuspenseList";case _:return"Activity"}if(typeof b=="object")switch(typeof b.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),b.$$typeof){case w:return"Portal";case m:return(b.displayName||"Context")+".Provider";case f:return(b._context.displayName||"Context")+".Consumer";case v:var P=b.render;return b=b.displayName,b||(b=P.displayName||P.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case p:return P=b.displayName||null,P!==null?P:e(b.type)||"Memo";case R:P=b._payload,b=b._init;try{return e(b(P))}catch{}}return null}function t(b){return""+b}function r(b){try{t(b);var P=!1}catch{P=!0}if(P){P=console;var M=P.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object";return M.call(P,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),t(b)}}function n(b){if(b===x)return"<>";if(typeof b=="object"&&b!==null&&b.$$typeof===R)return"<...>";try{var P=e(b);return P?"<"+P+">":"<...>"}catch{return"<...>"}}function o(){var b=j.A;return b===null?null:b.getOwner()}function a(){return Error("react-stack-top-frame")}function i(b){if($.call(b,"key")){var P=Object.getOwnPropertyDescriptor(b,"key").get;if(P&&P.isReactWarning)return!1}return b.key!==void 0}function u(b,P){function M(){W||(W=!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)",P))}M.isReactWarning=!0,Object.defineProperty(b,"key",{get:M,configurable:!0})}function l(){var b=e(this.type);return I[b]||(I[b]=!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.")),b=this.props.ref,b!==void 0?b:null}function c(b,P,M,k,z,q,Y,H){return M=q.ref,b={$$typeof:E,type:b,key:P,props:q,_owner:z},(M!==void 0?M:null)!==null?Object.defineProperty(b,"ref",{enumerable:!1,get:l}):Object.defineProperty(b,"ref",{enumerable:!1,value:null}),b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(b,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(b,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(b,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b}function g(b,P,M,k,z,q,Y,H){var F=P.children;if(F!==void 0)if(k)if(N(F)){for(k=0;k<F.length;k++)d(F[k]);Object.freeze&&Object.freeze(F)}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(F);if($.call(P,"key")){F=e(b);var B=Object.keys(P).filter(function(ue){return ue!=="key"});k=0<B.length?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}",ae[F+k]||(B=0<B.length?"{"+B.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} />`,j,U,V,U),ce[U+j]=!0)}if(U=null,M!==void 0&&(r(M),U=""+M),o(_)&&(r(_.key),U=""+_.key),"key"in _){M={};for(var Y in _)Y!=="key"&&(M[Y]=_[Y])}else M=_;return U&&s(M,typeof S=="function"?S.displayName||S.name||"Unknown":S),l(S,U,$,B,a(),M,G,q)}function d(S){typeof S=="object"&&S!==null&&S.$$typeof===T&&S._store&&(S._store.validated=1)}var E=O,T=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),A=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,D=Array.isArray,k=console.createTask?console.createTask:function(){return null};E={"react-stack-bottom-frame":function(S){return S()}};var z,H={},K=E["react-stack-bottom-frame"].bind(E,i)(),ue=k(n(i)),ce={};rt.Fragment=b,rt.jsx=function(S,_,M,j,B){var $=1e4>A.recentlyCreatedOwnerStacks++;return f(S,_,M,!1,j,B,$?Error("react-stack-top-frame"):K,$?k(n(S)):ue)},rt.jsxs=function(S,_,M,j,B){var $=1e4>A.recentlyCreatedOwnerStacks++;return f(S,_,M,!0,j,B,$?Error("react-stack-top-frame"):K,$?k(n(S)):ue)}}()),rt}var gn;function Xi(){return gn||(gn=1,process.env.NODE_ENV==="production"?Rt.exports=Vi():Rt.exports=Yi()),Rt.exports}var I=Xi();function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mt.apply(null,arguments)}function Ha(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ir(e,t){return Ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ir(e,t)}function Fa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ir(e,t)}var Pt={exports:{}},_t={exports:{}},te={};/** @license React v16.13.1
22
+ <%s key={someKey} {...props} />`,k,F,B,F),ae[F+k]=!0)}if(F=null,M!==void 0&&(r(M),F=""+M),i(P)&&(r(P.key),F=""+P.key),"key"in P){M={};for(var V in P)V!=="key"&&(M[V]=P[V])}else M=P;return F&&u(M,typeof b=="function"?b.displayName||b.name||"Unknown":b),c(b,F,q,z,o(),M,Y,H)}function d(b){typeof b=="object"&&b!==null&&b.$$typeof===E&&b._store&&(b._store.validated=1)}var T=C,E=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),A=Symbol.for("react.client.reference"),j=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,N=Array.isArray,L=console.createTask?console.createTask:function(){return null};T={"react-stack-bottom-frame":function(b){return b()}};var W,I={},X=T["react-stack-bottom-frame"].bind(T,a)(),re=L(n(a)),ae={};qe.Fragment=x,qe.jsx=function(b,P,M,k,z){var q=1e4>j.recentlyCreatedOwnerStacks++;return g(b,P,M,!1,k,z,q?Error("react-stack-top-frame"):X,q?L(n(b)):re)},qe.jsxs=function(b,P,M,k,z){var q=1e4>j.recentlyCreatedOwnerStacks++;return g(b,P,M,!0,k,z,q?Error("react-stack-top-frame"):X,q?L(n(b)):re)}}()),qe}var Mr;function Ca(){return Mr||(Mr=1,process.env.NODE_ENV==="production"?st.exports=Oa():st.exports=Pa()),st.exports}var D=Ca();function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(null,arguments)}function Wn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function sr(e,t){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},sr(e,t)}function Yn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sr(e,t)}var ut={exports:{}},ct={exports:{}},J={};/** @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 vn;function Zi(){if(vn)return te;vn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,p=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function m(c){if(typeof c=="object"&&c!==null){var y=c.$$typeof;switch(y){case t:switch(c=c.type,c){case u:case l:case n:case i:case a:case d:return c;default:switch(c=c&&c.$$typeof,c){case s:case f:case w:case T:case o:return c;default:return y}}case r:return y}}}function v(c){return m(c)===l}return te.AsyncMode=u,te.ConcurrentMode=l,te.ContextConsumer=s,te.ContextProvider=o,te.Element=t,te.ForwardRef=f,te.Fragment=n,te.Lazy=w,te.Memo=T,te.Portal=r,te.Profiler=i,te.StrictMode=a,te.Suspense=d,te.isAsyncMode=function(c){return v(c)||m(c)===u},te.isConcurrentMode=v,te.isContextConsumer=function(c){return m(c)===s},te.isContextProvider=function(c){return m(c)===o},te.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===t},te.isForwardRef=function(c){return m(c)===f},te.isFragment=function(c){return m(c)===n},te.isLazy=function(c){return m(c)===w},te.isMemo=function(c){return m(c)===T},te.isPortal=function(c){return m(c)===r},te.isProfiler=function(c){return m(c)===i},te.isStrictMode=function(c){return m(c)===a},te.isSuspense=function(c){return m(c)===d},te.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===n||c===l||c===i||c===a||c===d||c===E||typeof c=="object"&&c!==null&&(c.$$typeof===w||c.$$typeof===T||c.$$typeof===o||c.$$typeof===s||c.$$typeof===f||c.$$typeof===x||c.$$typeof===p||c.$$typeof===h||c.$$typeof===b)},te.typeOf=m,te}var re={};/** @license React v16.13.1
29
+ */var kr;function _a(){if(kr)return J;kr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function m(s){if(typeof s=="object"&&s!==null){var y=s.$$typeof;switch(y){case t:switch(s=s.type,s){case l:case c:case n:case a:case o:case d:return s;default:switch(s=s&&s.$$typeof,s){case u:case g:case w:case E:case i:return s;default:return y}}case r:return y}}}function v(s){return m(s)===c}return J.AsyncMode=l,J.ConcurrentMode=c,J.ContextConsumer=u,J.ContextProvider=i,J.Element=t,J.ForwardRef=g,J.Fragment=n,J.Lazy=w,J.Memo=E,J.Portal=r,J.Profiler=a,J.StrictMode=o,J.Suspense=d,J.isAsyncMode=function(s){return v(s)||m(s)===l},J.isConcurrentMode=v,J.isContextConsumer=function(s){return m(s)===u},J.isContextProvider=function(s){return m(s)===i},J.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===t},J.isForwardRef=function(s){return m(s)===g},J.isFragment=function(s){return m(s)===n},J.isLazy=function(s){return m(s)===w},J.isMemo=function(s){return m(s)===E},J.isPortal=function(s){return m(s)===r},J.isProfiler=function(s){return m(s)===a},J.isStrictMode=function(s){return m(s)===o},J.isSuspense=function(s){return m(s)===d},J.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===n||s===c||s===a||s===o||s===d||s===T||typeof s=="object"&&s!==null&&(s.$$typeof===w||s.$$typeof===E||s.$$typeof===i||s.$$typeof===u||s.$$typeof===g||s.$$typeof===S||s.$$typeof===h||s.$$typeof===f||s.$$typeof===x)},J.typeOf=m,J}var Z={};/** @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 yn;function Ji(){return yn||(yn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,p=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function m(P){return typeof P=="string"||typeof P=="function"||P===n||P===l||P===i||P===a||P===d||P===E||typeof P=="object"&&P!==null&&(P.$$typeof===w||P.$$typeof===T||P.$$typeof===o||P.$$typeof===s||P.$$typeof===f||P.$$typeof===x||P.$$typeof===p||P.$$typeof===h||P.$$typeof===b)}function v(P){if(typeof P=="object"&&P!==null){var ye=P.$$typeof;switch(ye){case t:var Ne=P.type;switch(Ne){case u:case l:case n:case i:case a:case d:return Ne;default:var et=Ne&&Ne.$$typeof;switch(et){case s:case f:case w:case T:case o:return et;default:return ye}}case r:return ye}}}var c=u,y=l,g=s,R=o,C=t,N=f,A=n,F=w,D=T,k=r,z=i,H=a,K=d,ue=!1;function ce(P){return ue||(ue=!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.")),S(P)||v(P)===u}function S(P){return v(P)===l}function _(P){return v(P)===s}function M(P){return v(P)===o}function j(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function B(P){return v(P)===f}function $(P){return v(P)===n}function G(P){return v(P)===w}function q(P){return v(P)===T}function U(P){return v(P)===r}function V(P){return v(P)===i}function Y(P){return v(P)===a}function he(P){return v(P)===d}re.AsyncMode=c,re.ConcurrentMode=y,re.ContextConsumer=g,re.ContextProvider=R,re.Element=C,re.ForwardRef=N,re.Fragment=A,re.Lazy=F,re.Memo=D,re.Portal=k,re.Profiler=z,re.StrictMode=H,re.Suspense=K,re.isAsyncMode=ce,re.isConcurrentMode=S,re.isContextConsumer=_,re.isContextProvider=M,re.isElement=j,re.isForwardRef=B,re.isFragment=$,re.isLazy=G,re.isMemo=q,re.isPortal=U,re.isProfiler=V,re.isStrictMode=Y,re.isSuspense=he,re.isValidElementType=m,re.typeOf=v}()),re}var bn;function Ba(){return bn||(bn=1,process.env.NODE_ENV==="production"?_t.exports=Zi():_t.exports=Ji()),_t.exports}/*
36
+ */var Ir;function ja(){return Ir||(Ir=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function m(O){return typeof O=="string"||typeof O=="function"||O===n||O===c||O===a||O===o||O===d||O===T||typeof O=="object"&&O!==null&&(O.$$typeof===w||O.$$typeof===E||O.$$typeof===i||O.$$typeof===u||O.$$typeof===g||O.$$typeof===S||O.$$typeof===h||O.$$typeof===f||O.$$typeof===x)}function v(O){if(typeof O=="object"&&O!==null){var pe=O.$$typeof;switch(pe){case t:var Ee=O.type;switch(Ee){case l:case c:case n:case a:case o:case d:return Ee;default:var Le=Ee&&Ee.$$typeof;switch(Le){case u:case g:case w:case E:case i:return Le;default:return pe}}case r:return pe}}}var s=l,y=c,p=u,R=i,_=t,A=g,j=n,$=w,N=E,L=r,W=a,I=o,X=d,re=!1;function ae(O){return re||(re=!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.")),b(O)||v(O)===l}function b(O){return v(O)===c}function P(O){return v(O)===u}function M(O){return v(O)===i}function k(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function z(O){return v(O)===g}function q(O){return v(O)===n}function Y(O){return v(O)===w}function H(O){return v(O)===E}function F(O){return v(O)===r}function B(O){return v(O)===a}function V(O){return v(O)===o}function ue(O){return v(O)===d}Z.AsyncMode=s,Z.ConcurrentMode=y,Z.ContextConsumer=p,Z.ContextProvider=R,Z.Element=_,Z.ForwardRef=A,Z.Fragment=j,Z.Lazy=$,Z.Memo=N,Z.Portal=L,Z.Profiler=W,Z.StrictMode=I,Z.Suspense=X,Z.isAsyncMode=ae,Z.isConcurrentMode=b,Z.isContextConsumer=P,Z.isContextProvider=M,Z.isElement=k,Z.isForwardRef=z,Z.isFragment=q,Z.isLazy=Y,Z.isMemo=H,Z.isPortal=F,Z.isProfiler=B,Z.isStrictMode=V,Z.isSuspense=ue,Z.isValidElementType=m,Z.typeOf=v}()),Z}var $r;function Un(){return $r||($r=1,process.env.NODE_ENV==="production"?ct.exports=_a():ct.exports=ja()),ct.exports}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var tr,xn;function Ki(){if(xn)return tr;xn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return tr=a()?Object.assign:function(i,o){for(var s,u=n(i),l,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){l=e(s);for(var E=0;E<l.length;E++)r.call(s,l[E])&&(u[l[E]]=s[l[E]])}}return u},tr}var rr,En;function Xr(){if(En)return rr;En=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return rr=e,rr}var nr,Sn;function ka(){return Sn||(Sn=1,nr=Function.call.bind(Object.prototype.hasOwnProperty)),nr}var ar,Tn;function Qi(){if(Tn)return ar;Tn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xr(),r={},n=ka();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var d;try{if(typeof i[f]!="function"){var E=Error((u||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}d=i[f](o,f,u,s,null,t)}catch(w){d=w}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+f+"` 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 r)){r[d.message]=!0;var T=l?l():"";e("Failed "+s+" type: "+d.message+(T??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ar=a,ar}var ir,wn;function eo(){if(wn)return ir;wn=1;var e=Ba(),t=Ki(),r=Xr(),n=ka(),a=Qi(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return ir=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(S){var _=S&&(l&&S[l]||S[f]);if(typeof _=="function")return _}var E="<<anonymous>>",T={array:p("array"),bigint:p("bigint"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:h(),arrayOf:m,element:v(),elementType:c(),instanceOf:y,node:N(),objectOf:R,oneOf:g,oneOfType:C,shape:F,exact:D};function w(S,_){return S===_?S!==0||1/S===1/_:S!==S&&_!==_}function b(S,_){this.message=S,this.data=_&&typeof _=="object"?_:{},this.stack=""}b.prototype=Error.prototype;function x(S){if(process.env.NODE_ENV!=="production")var _={},M=0;function j($,G,q,U,V,Y,he){if(U=U||E,Y=Y||q,he!==r){if(u){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=U+":"+q;!_[ye]&&M<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+U+"`. 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."),_[ye]=!0,M++)}}return G[q]==null?$?G[q]===null?new b("The "+V+" `"+Y+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new b("The "+V+" `"+Y+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:S(G,q,U,V,Y)}var B=j.bind(null,!1);return B.isRequired=j.bind(null,!0),B}function p(S){function _(M,j,B,$,G,q){var U=M[j],V=H(U);if(V!==S){var Y=K(U);return new b("Invalid "+$+" `"+G+"` of type "+("`"+Y+"` supplied to `"+B+"`, expected ")+("`"+S+"`."),{expectedType:S})}return null}return x(_)}function h(){return x(o)}function m(S){function _(M,j,B,$,G){if(typeof S!="function")return new b("Property `"+G+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var q=M[j];if(!Array.isArray(q)){var U=H(q);return new b("Invalid "+$+" `"+G+"` of type "+("`"+U+"` supplied to `"+B+"`, expected an array."))}for(var V=0;V<q.length;V++){var Y=S(q,V,B,$,G+"["+V+"]",r);if(Y instanceof Error)return Y}return null}return x(_)}function v(){function S(_,M,j,B,$){var G=_[M];if(!s(G)){var q=H(G);return new b("Invalid "+B+" `"+$+"` of type "+("`"+q+"` supplied to `"+j+"`, expected a single ReactElement."))}return null}return x(S)}function c(){function S(_,M,j,B,$){var G=_[M];if(!e.isValidElementType(G)){var q=H(G);return new b("Invalid "+B+" `"+$+"` of type "+("`"+q+"` supplied to `"+j+"`, expected a single ReactElement type."))}return null}return x(S)}function y(S){function _(M,j,B,$,G){if(!(M[j]instanceof S)){var q=S.name||E,U=ce(M[j]);return new b("Invalid "+$+" `"+G+"` of type "+("`"+U+"` supplied to `"+B+"`, expected ")+("instance of `"+q+"`."))}return null}return x(_)}function g(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function _(M,j,B,$,G){for(var q=M[j],U=0;U<S.length;U++)if(w(q,S[U]))return null;var V=JSON.stringify(S,function(he,P){var ye=K(P);return ye==="symbol"?String(P):P});return new b("Invalid "+$+" `"+G+"` of value `"+String(q)+"` "+("supplied to `"+B+"`, expected one of "+V+"."))}return x(_)}function R(S){function _(M,j,B,$,G){if(typeof S!="function")return new b("Property `"+G+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var q=M[j],U=H(q);if(U!=="object")return new b("Invalid "+$+" `"+G+"` of type "+("`"+U+"` supplied to `"+B+"`, expected an object."));for(var V in q)if(n(q,V)){var Y=S(q,V,B,$,G+"."+V,r);if(Y instanceof Error)return Y}return null}return x(_)}function C(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var _=0;_<S.length;_++){var M=S[_];if(typeof M!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ue(M)+" at index "+_+"."),o}function j(B,$,G,q,U){for(var V=[],Y=0;Y<S.length;Y++){var he=S[Y],P=he(B,$,G,q,U,r);if(P==null)return null;P.data&&n(P.data,"expectedType")&&V.push(P.data.expectedType)}var ye=V.length>0?", expected one of type ["+V.join(", ")+"]":"";return new b("Invalid "+q+" `"+U+"` supplied to "+("`"+G+"`"+ye+"."))}return x(j)}function N(){function S(_,M,j,B,$){return k(_[M])?null:new b("Invalid "+B+" `"+$+"` supplied to "+("`"+j+"`, expected a ReactNode."))}return x(S)}function A(S,_,M,j,B){return new b((S||"React class")+": "+_+" type `"+M+"."+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function F(S){function _(M,j,B,$,G){var q=M[j],U=H(q);if(U!=="object")return new b("Invalid "+$+" `"+G+"` of type `"+U+"` "+("supplied to `"+B+"`, expected `object`."));for(var V in S){var Y=S[V];if(typeof Y!="function")return A(B,$,G,V,K(Y));var he=Y(q,V,B,$,G+"."+V,r);if(he)return he}return null}return x(_)}function D(S){function _(M,j,B,$,G){var q=M[j],U=H(q);if(U!=="object")return new b("Invalid "+$+" `"+G+"` of type `"+U+"` "+("supplied to `"+B+"`, expected `object`."));var V=t({},M[j],S);for(var Y in V){var he=S[Y];if(n(S,Y)&&typeof he!="function")return A(B,$,G,Y,K(he));if(!he)return new b("Invalid "+$+" `"+G+"` key `"+Y+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(M[j],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(S),null," "));var P=he(q,Y,B,$,G+"."+Y,r);if(P)return P}return null}return x(_)}function k(S){switch(typeof S){case"number":case"string":case"undefined":return!0;case"boolean":return!S;case"object":if(Array.isArray(S))return S.every(k);if(S===null||s(S))return!0;var _=d(S);if(_){var M=_.call(S),j;if(_!==S.entries){for(;!(j=M.next()).done;)if(!k(j.value))return!1}else for(;!(j=M.next()).done;){var B=j.value;if(B&&!k(B[1]))return!1}}else return!1;return!0;default:return!1}}function z(S,_){return S==="symbol"?!0:_?_["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_ instanceof Symbol:!1}function H(S){var _=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":z(_,S)?"symbol":_}function K(S){if(typeof S>"u"||S===null)return""+S;var _=H(S);if(_==="object"){if(S instanceof Date)return"date";if(S instanceof RegExp)return"regexp"}return _}function ue(S){var _=K(S);switch(_){case"array":case"object":return"an "+_;case"boolean":case"date":case"regexp":return"a "+_;default:return _}}function ce(S){return!S.constructor||!S.constructor.name?E:S.constructor.name}return T.checkPropTypes=a,T.resetWarningCache=a.resetWarningCache,T.PropTypes=T,T},ir}var or,Rn;function to(){if(Rn)return or;Rn=1;var e=Xr();function t(){}function r(){}return r.resetWarningCache=t,or=function(){function n(o,s,u,l,f,d){if(d!==e){var E=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 E.name="Invariant Violation",E}}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:r,resetWarningCache:t};return i.PropTypes=i,i},or}var Pn;function bt(){if(Pn)return Pt.exports;if(Pn=1,process.env.NODE_ENV!=="production"){var e=Ba(),t=!0;Pt.exports=eo()(e.isElement,t)}else Pt.exports=to()();return Pt.exports}var ro=bt();const W=Gt(ro);function no(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ao(e,t){e.classList?e.classList.add(t):no(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function _n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function io(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=_n(e.className,t):e.setAttribute("class",_n(e.className&&e.className.baseVal||"",t))}const On={disabled:!1};var oo=process.env.NODE_ENV!=="production"?W.oneOfType([W.number,W.shape({enter:W.number,exit:W.number,appear:W.number}).isRequired]):null,so=process.env.NODE_ENV!=="production"?W.oneOfType([W.string,W.shape({enter:W.string,exit:W.string,active:W.string}),W.shape({enter:W.string,enterDone:W.string,enterActive:W.string,exit:W.string,exitDone:W.string,exitActive:W.string})]):null;const Ua=O.createContext(null);var $a=function(t){return t.scrollTop},dt="unmounted",He="exited",Fe="entering",ze="entered",Dr="exiting",Ae=function(e){Fa(t,e);function t(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=He,i.appearStatus=Fe):u=ze:n.unmountOnExit||n.mountOnEnter?u=dt:u=He,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===dt?{status:He}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Fe&&o!==ze&&(i=Fe):(o===Fe||o===ze)&&(i=Dr)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.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}},r.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Fe){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ge.findDOMNode(this);o&&$a(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===He&&this.setState({status:dt})},r.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[Ge.findDOMNode(this),s],l=u[0],f=u[1],d=this.getTimeouts(),E=s?d.appear:d.enter;if(!a&&!o||On.disabled){this.safeSetState({status:ze},function(){i.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:Fe},function(){i.props.onEntering(l,f),i.onTransitionEnd(E,function(){i.safeSetState({status:ze},function(){i.props.onEntered(l,f)})})})},r.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Ge.findDOMNode(this);if(!i||On.disabled){this.safeSetState({status:He},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Dr},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:He},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},r.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},r.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Ge.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],l=u[0],f=u[1];this.props.addEndListener(l,f)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===dt)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=Ha(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(Ua.Provider,{value:null},typeof o=="function"?o(a,s):O.cloneElement(O.Children.only(o),s))},t}(O.Component);Ae.contextType=Ua;Ae.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:W.shape({current:typeof Element>"u"?W.any:function(e,t,r,n,a,i){var o=e[t];return W.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,i)}}),children:W.oneOfType([W.func.isRequired,W.element.isRequired]).isRequired,in:W.bool,mountOnEnter:W.bool,unmountOnExit:W.bool,appear:W.bool,enter:W.bool,exit:W.bool,timeout:function(t){var r=oo;t.addEndListener||(r=r.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 r.apply(void 0,[t].concat(a))},addEndListener:W.func,onEnter:W.func,onEntering:W.func,onEntered:W.func,onExit:W.func,onExiting:W.func,onExited:W.func}:{};function $e(){}Ae.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$e,onEntering:$e,onEntered:$e,onExit:$e,onExiting:$e,onExited:$e};Ae.UNMOUNTED=dt;Ae.EXITED=He;Ae.ENTERING=Fe;Ae.ENTERED=ze;Ae.EXITING=Dr;var uo=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return ao(t,n)})},sr=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return io(t,n)})},Wt=function(e){Fa(t,e);function t(){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 l=n.resolveArguments(s,u),f=l[0],d=l[1];n.removeClasses(f,"exit"),n.addClass(f,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,u)},n.onEntering=function(s,u){var l=n.resolveArguments(s,u),f=l[0],d=l[1],E=d?"appear":"enter";n.addClass(f,E,"active"),n.props.onEntering&&n.props.onEntering(s,u)},n.onEntered=function(s,u){var l=n.resolveArguments(s,u),f=l[0],d=l[1],E=d?"appear":"enter";n.removeClasses(f,E),n.addClass(f,E,"done"),n.props.onEntered&&n.props.onEntered(s,u)},n.onExit=function(s){var u=n.resolveArguments(s),l=u[0];n.removeClasses(l,"appear"),n.removeClasses(l,"enter"),n.addClass(l,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var u=n.resolveArguments(s),l=u[0];n.addClass(l,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var u=n.resolveArguments(s),l=u[0];n.removeClasses(l,"exit"),n.addClass(l,"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,l=typeof u=="string",f=l&&u?u+"-":"",d=l?""+f+s:u[s],E=l?d+"-active":u[s+"Active"],T=l?d+"-done":u[s+"Done"];return{baseClassName:d,activeClassName:E,doneClassName:T}},n}var r=t.prototype;return r.addClass=function(a,i,o){var s=this.getClassNames(i)[o+"ClassName"],u=this.getClassNames("enter"),l=u.doneClassName;i==="appear"&&o==="done"&&l&&(s+=" "+l),o==="active"&&a&&$a(a),s&&(this.appliedClasses[i][o]=s,uo(a,s))},r.removeClasses=function(a,i){var o=this.appliedClasses[i],s=o.base,u=o.active,l=o.done;this.appliedClasses[i]={},s&&sr(a,s),u&&sr(a,u),l&&sr(a,l)},r.render=function(){var a=this.props;a.classNames;var i=Ha(a,["classNames"]);return O.createElement(Ae,mt({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(O.Component);Wt.defaultProps={classNames:""};Wt.propTypes=process.env.NODE_ENV!=="production"?mt({},Ae.propTypes,{classNames:so,onEnter:W.func,onEntering:W.func,onEntered:W.func,onExit:W.func,onExiting:W.func,onExited:W.func}):{};function lo(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function co(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var fo=function(){function e(r){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=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(co(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=lo(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.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}(),ge="-ms-",Ut="-moz-",Q="-webkit-",za="comm",Zr="rule",Jr="decl",ho="@import",Ga="@keyframes",po="@layer",mo=Math.abs,qt=String.fromCharCode,go=Object.assign;function vo(e,t){return pe(e,0)^45?(((t<<2^pe(e,0))<<2^pe(e,1))<<2^pe(e,2))<<2^pe(e,3):0}function Wa(e){return e.trim()}function yo(e,t){return(e=t.exec(e))?e[0]:e}function ee(e,t,r){return e.replace(t,r)}function Mr(e,t){return e.indexOf(t)}function pe(e,t){return e.charCodeAt(t)|0}function gt(e,t,r){return e.slice(t,r)}function Pe(e){return e.length}function Kr(e){return e.length}function Ot(e,t){return t.push(e),e}function bo(e,t){return e.map(t).join("")}var Vt=1,Ve=1,qa=0,be=0,fe=0,Ze="";function Yt(e,t,r,n,a,i,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Vt,column:Ve,length:o,return:""}}function nt(e,t){return go(Yt("",null,null,"",null,null,0),e,{length:-e.length},t)}function xo(){return fe}function Eo(){return fe=be>0?pe(Ze,--be):0,Ve--,fe===10&&(Ve=1,Vt--),fe}function xe(){return fe=be<qa?pe(Ze,be++):0,Ve++,fe===10&&(Ve=1,Vt++),fe}function Oe(){return pe(Ze,be)}function Lt(){return be}function xt(e,t){return gt(Ze,e,t)}function vt(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 Va(e){return Vt=Ve=1,qa=Pe(Ze=e),be=0,[]}function Ya(e){return Ze="",e}function jt(e){return Wa(xt(be-1,Lr(e===91?e+2:e===40?e+1:e)))}function So(e){for(;(fe=Oe())&&fe<33;)xe();return vt(e)>2||vt(fe)>3?"":" "}function To(e,t){for(;--t&&xe()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return xt(e,Lt()+(t<6&&Oe()==32&&xe()==32))}function Lr(e){for(;xe();)switch(fe){case e:return be;case 34:case 39:e!==34&&e!==39&&Lr(fe);break;case 40:e===41&&Lr(e);break;case 92:xe();break}return be}function wo(e,t){for(;xe()&&e+fe!==57;)if(e+fe===84&&Oe()===47)break;return"/*"+xt(t,be-1)+"*"+qt(e===47?e:xe())}function Ro(e){for(;!vt(Oe());)xe();return xt(e,be)}function Po(e){return Ya(Ht("",null,null,null,[""],e=Va(e),0,[0],e))}function Ht(e,t,r,n,a,i,o,s,u){for(var l=0,f=0,d=o,E=0,T=0,w=0,b=1,x=1,p=1,h=0,m="",v=a,c=i,y=n,g=m;x;)switch(w=h,h=xe()){case 40:if(w!=108&&pe(g,d-1)==58){Mr(g+=ee(jt(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:g+=jt(h);break;case 9:case 10:case 13:case 32:g+=So(w);break;case 92:g+=To(Lt()-1,7);continue;case 47:switch(Oe()){case 42:case 47:Ot(_o(wo(xe(),Lt()),t,r),u);break;default:g+="/"}break;case 123*b:s[l++]=Pe(g)*p;case 125*b:case 59:case 0:switch(h){case 0:case 125:x=0;case 59+f:p==-1&&(g=ee(g,/\f/g,"")),T>0&&Pe(g)-d&&Ot(T>32?An(g+";",n,r,d-1):An(ee(g," ","")+";",n,r,d-2),u);break;case 59:g+=";";default:if(Ot(y=Cn(g,t,r,l,f,a,s,m,v=[],c=[],d),i),h===123)if(f===0)Ht(g,t,y,y,v,i,d,s,c);else switch(E===99&&pe(g,3)===110?100:E){case 100:case 108:case 109:case 115:Ht(e,y,y,n&&Ot(Cn(e,y,y,0,0,a,s,m,a,v=[],d),c),a,c,d,s,n?v:c);break;default:Ht(g,y,y,y,[""],c,0,s,c)}}l=f=T=0,b=p=1,m=g="",d=o;break;case 58:d=1+Pe(g),T=w;default:if(b<1){if(h==123)--b;else if(h==125&&b++==0&&Eo()==125)continue}switch(g+=qt(h),h*b){case 38:p=f>0?1:(g+="\f",-1);break;case 44:s[l++]=(Pe(g)-1)*p,p=1;break;case 64:Oe()===45&&(g+=jt(xe())),E=Oe(),f=d=Pe(m=g+=Ro(Lt())),h++;break;case 45:w===45&&Pe(g)==2&&(b=0)}}return i}function Cn(e,t,r,n,a,i,o,s,u,l,f){for(var d=a-1,E=a===0?i:[""],T=Kr(E),w=0,b=0,x=0;w<n;++w)for(var p=0,h=gt(e,d+1,d=mo(b=o[w])),m=e;p<T;++p)(m=Wa(b>0?E[p]+" "+h:ee(h,/&\f/g,E[p])))&&(u[x++]=m);return Yt(e,t,r,a===0?Zr:s,u,l,f)}function _o(e,t,r){return Yt(e,t,r,za,qt(xo()),gt(e,2,-2),0)}function An(e,t,r,n){return Yt(e,t,r,Jr,gt(e,0,n),gt(e,n+1,-1),n)}function We(e,t){for(var r="",n=Kr(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Oo(e,t,r,n){switch(e.type){case po:if(e.children.length)break;case ho:case Jr:return e.return=e.return||e.value;case za:return"";case Ga:return e.return=e.value+"{"+We(e.children,n)+"}";case Zr:e.value=e.props.join(",")}return Pe(r=We(e.children,n))?e.return=e.value+"{"+r+"}":""}function Co(e){var t=Kr(e);return function(r,n,a,i){for(var o="",s=0;s<t;s++)o+=e[s](r,n,a,i)||"";return o}}function Ao(e){return function(t){t.root||(t=t.return)&&e(t)}}function Xa(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var No=function(t,r,n){for(var a=0,i=0;a=i,i=Oe(),a===38&&i===12&&(r[n]=1),!vt(i);)xe();return xt(t,be)},Io=function(t,r){var n=-1,a=44;do switch(vt(a)){case 0:a===38&&Oe()===12&&(r[n]=1),t[n]+=No(be-1,r,n);break;case 2:t[n]+=jt(a);break;case 4:if(a===44){t[++n]=Oe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=qt(a)}while(a=xe());return t},Do=function(t,r){return Ya(Io(Va(t),r))},Nn=new WeakMap,Mo=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Nn.get(n))&&!a){Nn.set(t,!0);for(var i=[],o=Do(r,i),s=n.props,u=0,l=0;u<o.length;u++)for(var f=0;f<s.length;f++,l++)t.props[l]=i[u]?o[u].replace(/&\f/g,s[f]):s[f]+" "+o[u]}}},Lo=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Za(e,t){switch(vo(e,t)){case 5103:return Q+"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 Q+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Q+e+Ut+e+ge+e+e;case 6828:case 4268:return Q+e+ge+e+e;case 6165:return Q+e+ge+"flex-"+e+e;case 5187:return Q+e+ee(e,/(\w+).+(:[^]+)/,Q+"box-$1$2"+ge+"flex-$1$2")+e;case 5443:return Q+e+ge+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return Q+e+ge+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return Q+e+ge+ee(e,"shrink","negative")+e;case 5292:return Q+e+ge+ee(e,"basis","preferred-size")+e;case 6060:return Q+"box-"+ee(e,"-grow","")+Q+e+ge+ee(e,"grow","positive")+e;case 4554:return Q+ee(e,/([^-])(transform)/g,"$1"+Q+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,Q+"$1"),/(image-set)/,Q+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,Q+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,Q+"box-pack:$3"+ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Q+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,Q+"$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(Pe(e)-1-t>6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+Ut+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mr(e,"stretch")?Za(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,Pe(e)-3-(~Mr(e,"!important")&&10))){case 107:return ee(e,":",":"+Q)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(pe(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+ge+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return Q+e+ge+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+ge+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+ge+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+ge+e+e}return e}var jo=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Jr:t.return=Za(t.value,t.length);break;case Ga:return We([nt(t,{value:ee(t.value,"@","@"+Q)})],a);case Zr:if(t.length)return bo(t.props,function(i){switch(yo(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return We([nt(t,{props:[ee(i,/:(read-\w+)/,":"+Ut+"$1")]})],a);case"::placeholder":return We([nt(t,{props:[ee(i,/:(plac\w+)/,":"+Q+"input-$1")]}),nt(t,{props:[ee(i,/:(plac\w+)/,":"+Ut+"$1")]}),nt(t,{props:[ee(i,/:(plac\w+)/,ge+"input-$1")]})],a)}return""})}},Ho=[jo],Fo=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var a=t.stylisPlugins||Ho,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),p=1;p<x.length;p++)i[x[p]]=!0;s.push(b)});var u,l=[Mo,Lo];{var f,d=[Oo,Ao(function(b){f.insert(b)})],E=Co(l.concat(a,d)),T=function(x){return We(Po(x),E)};u=function(x,p,h,m){f=h,T(x?x+"{"+p.styles+"}":p.styles),m&&(w.inserted[p.name]=!0)}}var w={key:r,sheet:new fo({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return w.sheet.hydrate(s),w},Ct={exports:{}},ne={};/** @license React v16.13.1
40
+ */var Mt,zr;function Aa(){if(zr)return Mt;zr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=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={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(i).map(function(g){return i[g]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(g){c[g]=g}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Mt=o()?Object.assign:function(a,i){for(var u,l=n(a),c,g=1;g<arguments.length;g++){u=Object(arguments[g]);for(var d in u)t.call(u,d)&&(l[d]=u[d]);if(e){c=e(u);for(var T=0;T<c.length;T++)r.call(u,c[T])&&(l[c[T]]=u[c[T]])}}return l},Mt}var kt,Lr;function mr(){if(Lr)return kt;Lr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return kt=e,kt}var It,Fr;function Hn(){return Fr||(Fr=1,It=Function.call.bind(Object.prototype.hasOwnProperty)),It}var $t,qr;function Da(){if(qr)return $t;qr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mr(),r={},n=Hn();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,u,l,c){if(process.env.NODE_ENV!=="production"){for(var g in a)if(n(a,g)){var d;try{if(typeof a[g]!="function"){var T=Error((l||"React class")+": "+u+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}d=a[g](i,g,l,u,null,t)}catch(w){d=w}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+g+"` 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 r)){r[d.message]=!0;var E=c?c():"";e("Failed "+u+" type: "+d.message+(E??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},$t=o,$t}var zt,Wr;function Na(){if(Wr)return zt;Wr=1;var e=Un(),t=Aa(),r=mr(),n=Hn(),o=Da(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return zt=function(u,l){var c=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function d(b){var P=b&&(c&&b[c]||b[g]);if(typeof P=="function")return P}var T="<<anonymous>>",E={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(),arrayOf:m,element:v(),elementType:s(),instanceOf:y,node:A(),objectOf:R,oneOf:p,oneOfType:_,shape:$,exact:N};function w(b,P){return b===P?b!==0||1/b===1/P:b!==b&&P!==P}function x(b,P){this.message=b,this.data=P&&typeof P=="object"?P:{},this.stack=""}x.prototype=Error.prototype;function S(b){if(process.env.NODE_ENV!=="production")var P={},M=0;function k(q,Y,H,F,B,V,ue){if(F=F||T,V=V||H,ue!==r){if(l){var O=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 O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=F+":"+H;!P[pe]&&M<3&&(a("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+F+"`. 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."),P[pe]=!0,M++)}}return Y[H]==null?q?Y[H]===null?new x("The "+B+" `"+V+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new x("The "+B+" `"+V+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:b(Y,H,F,B,V)}var z=k.bind(null,!1);return z.isRequired=k.bind(null,!0),z}function h(b){function P(M,k,z,q,Y,H){var F=M[k],B=I(F);if(B!==b){var V=X(F);return new x("Invalid "+q+" `"+Y+"` of type "+("`"+V+"` supplied to `"+z+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return S(P)}function f(){return S(i)}function m(b){function P(M,k,z,q,Y){if(typeof b!="function")return new x("Property `"+Y+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var H=M[k];if(!Array.isArray(H)){var F=I(H);return new x("Invalid "+q+" `"+Y+"` of type "+("`"+F+"` supplied to `"+z+"`, expected an array."))}for(var B=0;B<H.length;B++){var V=b(H,B,z,q,Y+"["+B+"]",r);if(V instanceof Error)return V}return null}return S(P)}function v(){function b(P,M,k,z,q){var Y=P[M];if(!u(Y)){var H=I(Y);return new x("Invalid "+z+" `"+q+"` of type "+("`"+H+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return S(b)}function s(){function b(P,M,k,z,q){var Y=P[M];if(!e.isValidElementType(Y)){var H=I(Y);return new x("Invalid "+z+" `"+q+"` of type "+("`"+H+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return S(b)}function y(b){function P(M,k,z,q,Y){if(!(M[k]instanceof b)){var H=b.name||T,F=ae(M[k]);return new x("Invalid "+q+" `"+Y+"` of type "+("`"+F+"` supplied to `"+z+"`, expected ")+("instance of `"+H+"`."))}return null}return S(P)}function p(b){if(!Array.isArray(b))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 P(M,k,z,q,Y){for(var H=M[k],F=0;F<b.length;F++)if(w(H,b[F]))return null;var B=JSON.stringify(b,function(ue,O){var pe=X(O);return pe==="symbol"?String(O):O});return new x("Invalid "+q+" `"+Y+"` of value `"+String(H)+"` "+("supplied to `"+z+"`, expected one of "+B+"."))}return S(P)}function R(b){function P(M,k,z,q,Y){if(typeof b!="function")return new x("Property `"+Y+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var H=M[k],F=I(H);if(F!=="object")return new x("Invalid "+q+" `"+Y+"` of type "+("`"+F+"` supplied to `"+z+"`, expected an object."));for(var B in H)if(n(H,B)){var V=b(H,B,z,q,Y+"."+B,r);if(V instanceof Error)return V}return null}return S(P)}function _(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var P=0;P<b.length;P++){var M=b[P];if(typeof M!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(M)+" at index "+P+"."),i}function k(z,q,Y,H,F){for(var B=[],V=0;V<b.length;V++){var ue=b[V],O=ue(z,q,Y,H,F,r);if(O==null)return null;O.data&&n(O.data,"expectedType")&&B.push(O.data.expectedType)}var pe=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new x("Invalid "+H+" `"+F+"` supplied to "+("`"+Y+"`"+pe+"."))}return S(k)}function A(){function b(P,M,k,z,q){return L(P[M])?null:new x("Invalid "+z+" `"+q+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return S(b)}function j(b,P,M,k,z){return new x((b||"React class")+": "+P+" type `"+M+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function $(b){function P(M,k,z,q,Y){var H=M[k],F=I(H);if(F!=="object")return new x("Invalid "+q+" `"+Y+"` of type `"+F+"` "+("supplied to `"+z+"`, expected `object`."));for(var B in b){var V=b[B];if(typeof V!="function")return j(z,q,Y,B,X(V));var ue=V(H,B,z,q,Y+"."+B,r);if(ue)return ue}return null}return S(P)}function N(b){function P(M,k,z,q,Y){var H=M[k],F=I(H);if(F!=="object")return new x("Invalid "+q+" `"+Y+"` of type `"+F+"` "+("supplied to `"+z+"`, expected `object`."));var B=t({},M[k],b);for(var V in B){var ue=b[V];if(n(b,V)&&typeof ue!="function")return j(z,q,Y,V,X(ue));if(!ue)return new x("Invalid "+q+" `"+Y+"` key `"+V+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(M[k],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(H,V,z,q,Y+"."+V,r);if(O)return O}return null}return S(P)}function L(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(L);if(b===null||u(b))return!0;var P=d(b);if(P){var M=P.call(b),k;if(P!==b.entries){for(;!(k=M.next()).done;)if(!L(k.value))return!1}else for(;!(k=M.next()).done;){var z=k.value;if(z&&!L(z[1]))return!1}}else return!1;return!0;default:return!1}}function W(b,P){return b==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function I(b){var P=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":W(P,b)?"symbol":P}function X(b){if(typeof b>"u"||b===null)return""+b;var P=I(b);if(P==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return P}function re(b){var P=X(b);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function ae(b){return!b.constructor||!b.constructor.name?T:b.constructor.name}return E.checkPropTypes=o,E.resetWarningCache=o.resetWarningCache,E.PropTypes=E,E},zt}var Lt,Yr;function Ma(){if(Yr)return Lt;Yr=1;var e=mr();function t(){}function r(){}return r.resetWarningCache=t,Lt=function(){function n(i,u,l,c,g,d){if(d!==e){var T=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 T.name="Invariant Violation",T}}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:r,resetWarningCache:t};return a.PropTypes=a,a},Lt}var Ur;function at(){if(Ur)return ut.exports;if(Ur=1,process.env.NODE_ENV!=="production"){var e=Un(),t=!0;ut.exports=Na()(e.isElement,t)}else ut.exports=Ma()();return ut.exports}var ka=at();const U=wt(ka);function Ia(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function $a(e,t){e.classList?e.classList.add(t):Ia(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Hr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function za(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Hr(e.className,t):e.setAttribute("class",Hr(e.className&&e.className.baseVal||"",t))}const Br={disabled:!1};var La=process.env.NODE_ENV!=="production"?U.oneOfType([U.number,U.shape({enter:U.number,exit:U.number,appear:U.number}).isRequired]):null,Fa=process.env.NODE_ENV!=="production"?U.oneOfType([U.string,U.shape({enter:U.string,exit:U.string,active:U.string}),U.shape({enter:U.string,enterDone:U.string,enterActive:U.string,exit:U.string,exitDone:U.string,exitActive:U.string})]):null;const Bn=C.createContext(null);var Vn=function(t){return t.scrollTop},Je="unmounted",Oe="exited",Pe="entering",Ae="entered",ur="exiting",Se=function(e){Yn(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,u=i&&!i.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?u?(l=Oe,a.appearStatus=Pe):l=Ae:n.unmountOnExit||n.mountOnEnter?l=Je:l=Oe,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Je?{status:Oe}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Pe&&i!==Ae&&(a=Pe):(i===Pe||i===Ae)&&(a=ur)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,u;return a=i=u=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,u=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:u}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Pe){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:De.findDOMNode(this);i&&Vn(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oe&&this.setState({status:Je})},r.performEnter=function(o){var a=this,i=this.props.enter,u=this.context?this.context.isMounting:o,l=this.props.nodeRef?[u]:[De.findDOMNode(this),u],c=l[0],g=l[1],d=this.getTimeouts(),T=u?d.appear:d.enter;if(!o&&!i||Br.disabled){this.safeSetState({status:Ae},function(){a.props.onEntered(c)});return}this.props.onEnter(c,g),this.safeSetState({status:Pe},function(){a.props.onEntering(c,g),a.onTransitionEnd(T,function(){a.safeSetState({status:Ae},function(){a.props.onEntered(c,g)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),u=this.props.nodeRef?void 0:De.findDOMNode(this);if(!a||Br.disabled){this.safeSetState({status:Oe},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:ur},function(){o.props.onExiting(u),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Oe},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(u){i&&(i=!1,a.nextCallback=null,o(u))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:De.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!i||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],g=l[1];this.props.addEndListener(c,g)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Je)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 u=Wn(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(Bn.Provider,{value:null},typeof i=="function"?i(o,u):C.cloneElement(C.Children.only(i),u))},t}(C.Component);Se.contextType=Bn;Se.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:U.shape({current:typeof Element>"u"?U.any:function(e,t,r,n,o,a){var i=e[t];return U.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,a)}}),children:U.oneOfType([U.func.isRequired,U.element.isRequired]).isRequired,in:U.bool,mountOnEnter:U.bool,unmountOnExit:U.bool,appear:U.bool,enter:U.bool,exit:U.bool,timeout:function(t){var r=La;t.addEndListener||(r=r.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 r.apply(void 0,[t].concat(o))},addEndListener:U.func,onEnter:U.func,onEntering:U.func,onEntered:U.func,onExit:U.func,onExiting:U.func,onExited:U.func}:{};function je(){}Se.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:je,onEntering:je,onEntered:je,onExit:je,onExiting:je,onExited:je};Se.UNMOUNTED=Je;Se.EXITED=Oe;Se.ENTERING=Pe;Se.ENTERED=Ae;Se.EXITING=ur;var qa=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return $a(t,n)})},Ft=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return za(t,n)})},Tt=function(e){Yn(t,e);function t(){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(u,l){var c=n.resolveArguments(u,l),g=c[0],d=c[1];n.removeClasses(g,"exit"),n.addClass(g,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(u,l)},n.onEntering=function(u,l){var c=n.resolveArguments(u,l),g=c[0],d=c[1],T=d?"appear":"enter";n.addClass(g,T,"active"),n.props.onEntering&&n.props.onEntering(u,l)},n.onEntered=function(u,l){var c=n.resolveArguments(u,l),g=c[0],d=c[1],T=d?"appear":"enter";n.removeClasses(g,T),n.addClass(g,T,"done"),n.props.onEntered&&n.props.onEntered(u,l)},n.onExit=function(u){var l=n.resolveArguments(u),c=l[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(u)},n.onExiting=function(u){var l=n.resolveArguments(u),c=l[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(u)},n.onExited=function(u){var l=n.resolveArguments(u),c=l[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(u)},n.resolveArguments=function(u,l){return n.props.nodeRef?[n.props.nodeRef.current,u]:[u,l]},n.getClassNames=function(u){var l=n.props.classNames,c=typeof l=="string",g=c&&l?l+"-":"",d=c?""+g+u:l[u],T=c?d+"-active":l[u+"Active"],E=c?d+"-done":l[u+"Done"];return{baseClassName:d,activeClassName:T,doneClassName:E}},n}var r=t.prototype;return r.addClass=function(o,a,i){var u=this.getClassNames(a)[i+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;a==="appear"&&i==="done"&&c&&(u+=" "+c),i==="active"&&o&&Vn(o),u&&(this.appliedClasses[a][i]=u,qa(o,u))},r.removeClasses=function(o,a){var i=this.appliedClasses[a],u=i.base,l=i.active,c=i.done;this.appliedClasses[a]={},u&&Ft(o,u),l&&Ft(o,l),c&&Ft(o,c)},r.render=function(){var o=this.props;o.classNames;var a=Wn(o,["classNames"]);return C.createElement(Se,et({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(C.Component);Tt.defaultProps={classNames:""};Tt.propTypes=process.env.NODE_ENV!=="production"?et({},Se.propTypes,{classNames:Fa,onEnter:U.func,onEntering:U.func,onEntered:U.func,onExit:U.func,onExiting:U.func,onExited:U.func}):{};function Wa(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ya(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ua=function(){function e(r){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=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ya(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Wa(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.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}(),fe="-ms-",xt="-moz-",G="-webkit-",Xn="comm",gr="rule",vr="decl",Ha="@import",Gn="@keyframes",Ba="@layer",Va=Math.abs,Rt=String.fromCharCode,Xa=Object.assign;function Ga(e,t){return ce(e,0)^45?(((t<<2^ce(e,0))<<2^ce(e,1))<<2^ce(e,2))<<2^ce(e,3):0}function Kn(e){return e.trim()}function Ka(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function cr(e,t){return e.indexOf(t)}function ce(e,t){return e.charCodeAt(t)|0}function tt(e,t,r){return e.slice(t,r)}function ye(e){return e.length}function yr(e){return e.length}function lt(e,t){return t.push(e),e}function Ja(e,t){return e.map(t).join("")}var Ot=1,ke=1,Jn=0,he=0,oe=0,$e="";function Pt(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Ot,column:ke,length:i,return:""}}function We(e,t){return Xa(Pt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Za(){return oe}function Qa(){return oe=he>0?ce($e,--he):0,ke--,oe===10&&(ke=1,Ot--),oe}function me(){return oe=he<Jn?ce($e,he++):0,ke++,oe===10&&(ke=1,Ot++),oe}function xe(){return ce($e,he)}function mt(){return he}function ot(e,t){return tt($e,e,t)}function rt(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 Zn(e){return Ot=ke=1,Jn=ye($e=e),he=0,[]}function Qn(e){return $e="",e}function gt(e){return Kn(ot(he-1,lr(e===91?e+2:e===40?e+1:e)))}function eo(e){for(;(oe=xe())&&oe<33;)me();return rt(e)>2||rt(oe)>3?"":" "}function to(e,t){for(;--t&&me()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return ot(e,mt()+(t<6&&xe()==32&&me()==32))}function lr(e){for(;me();)switch(oe){case e:return he;case 34:case 39:e!==34&&e!==39&&lr(oe);break;case 40:e===41&&lr(e);break;case 92:me();break}return he}function ro(e,t){for(;me()&&e+oe!==57;)if(e+oe===84&&xe()===47)break;return"/*"+ot(t,he-1)+"*"+Rt(e===47?e:me())}function no(e){for(;!rt(xe());)me();return ot(e,he)}function ao(e){return Qn(vt("",null,null,null,[""],e=Zn(e),0,[0],e))}function vt(e,t,r,n,o,a,i,u,l){for(var c=0,g=0,d=i,T=0,E=0,w=0,x=1,S=1,h=1,f=0,m="",v=o,s=a,y=n,p=m;S;)switch(w=f,f=me()){case 40:if(w!=108&&ce(p,d-1)==58){cr(p+=K(gt(f),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:p+=gt(f);break;case 9:case 10:case 13:case 32:p+=eo(w);break;case 92:p+=to(mt()-1,7);continue;case 47:switch(xe()){case 42:case 47:lt(oo(ro(me(),mt()),t,r),l);break;default:p+="/"}break;case 123*x:u[c++]=ye(p)*h;case 125*x:case 59:case 0:switch(f){case 0:case 125:S=0;case 59+g:h==-1&&(p=K(p,/\f/g,"")),E>0&&ye(p)-d&&lt(E>32?Xr(p+";",n,r,d-1):Xr(K(p," ","")+";",n,r,d-2),l);break;case 59:p+=";";default:if(lt(y=Vr(p,t,r,c,g,o,u,m,v=[],s=[],d),a),f===123)if(g===0)vt(p,t,y,y,v,a,d,u,s);else switch(T===99&&ce(p,3)===110?100:T){case 100:case 108:case 109:case 115:vt(e,y,y,n&&lt(Vr(e,y,y,0,0,o,u,m,o,v=[],d),s),o,s,d,u,n?v:s);break;default:vt(p,y,y,y,[""],s,0,u,s)}}c=g=E=0,x=h=1,m=p="",d=i;break;case 58:d=1+ye(p),E=w;default:if(x<1){if(f==123)--x;else if(f==125&&x++==0&&Qa()==125)continue}switch(p+=Rt(f),f*x){case 38:h=g>0?1:(p+="\f",-1);break;case 44:u[c++]=(ye(p)-1)*h,h=1;break;case 64:xe()===45&&(p+=gt(me())),T=xe(),g=d=ye(m=p+=no(mt())),f++;break;case 45:w===45&&ye(p)==2&&(x=0)}}return a}function Vr(e,t,r,n,o,a,i,u,l,c,g){for(var d=o-1,T=o===0?a:[""],E=yr(T),w=0,x=0,S=0;w<n;++w)for(var h=0,f=tt(e,d+1,d=Va(x=i[w])),m=e;h<E;++h)(m=Kn(x>0?T[h]+" "+f:K(f,/&\f/g,T[h])))&&(l[S++]=m);return Pt(e,t,r,o===0?gr:u,l,c,g)}function oo(e,t,r){return Pt(e,t,r,Xn,Rt(Za()),tt(e,2,-2),0)}function Xr(e,t,r,n){return Pt(e,t,r,vr,tt(e,0,n),tt(e,n+1,-1),n)}function Ne(e,t){for(var r="",n=yr(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function io(e,t,r,n){switch(e.type){case Ba:if(e.children.length)break;case Ha:case vr:return e.return=e.return||e.value;case Xn:return"";case Gn:return e.return=e.value+"{"+Ne(e.children,n)+"}";case gr:e.value=e.props.join(",")}return ye(r=Ne(e.children,n))?e.return=e.value+"{"+r+"}":""}function so(e){var t=yr(e);return function(r,n,o,a){for(var i="",u=0;u<t;u++)i+=e[u](r,n,o,a)||"";return i}}function uo(e){return function(t){t.root||(t=t.return)&&e(t)}}function ea(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var co=function(t,r,n){for(var o=0,a=0;o=a,a=xe(),o===38&&a===12&&(r[n]=1),!rt(a);)me();return ot(t,he)},lo=function(t,r){var n=-1,o=44;do switch(rt(o)){case 0:o===38&&xe()===12&&(r[n]=1),t[n]+=co(he-1,r,n);break;case 2:t[n]+=gt(o);break;case 4:if(o===44){t[++n]=xe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Rt(o)}while(o=me());return t},fo=function(t,r){return Qn(lo(Zn(t),r))},Gr=new WeakMap,po=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Gr.get(n))&&!o){Gr.set(t,!0);for(var a=[],i=fo(r,a),u=n.props,l=0,c=0;l<i.length;l++)for(var g=0;g<u.length;g++,c++)t.props[c]=a[l]?i[l].replace(/&\f/g,u[g]):u[g]+" "+i[l]}}},ho=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ta(e,t){switch(Ga(e,t)){case 5103:return G+"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 G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+xt+e+fe+e+e;case 6828:case 4268:return G+e+fe+e+e;case 6165:return G+e+fe+"flex-"+e+e;case 5187:return G+e+K(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+fe+"flex-$1$2")+e;case 5443:return G+e+fe+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return G+e+fe+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+fe+K(e,"shrink","negative")+e;case 5292:return G+e+fe+K(e,"basis","preferred-size")+e;case 6060:return G+"box-"+K(e,"-grow","")+G+e+fe+K(e,"grow","positive")+e;case 4554:return G+K(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,G+"$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(ye(e)-1-t>6)switch(ce(e,t+1)){case 109:if(ce(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+xt+(ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cr(e,"stretch")?ta(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ce(e,t+1)!==115)break;case 6444:switch(ce(e,ye(e)-3-(~cr(e,"!important")&&10))){case 107:return K(e,":",":"+G)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(ce(e,14)===45?"inline-":"")+"box$3$1"+G+"$2$3$1"+fe+"$2box$3")+e}break;case 5936:switch(ce(e,t+11)){case 114:return G+e+fe+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+fe+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+fe+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+fe+e+e}return e}var mo=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case vr:t.return=ta(t.value,t.length);break;case Gn:return Ne([We(t,{value:K(t.value,"@","@"+G)})],o);case gr:if(t.length)return Ja(t.props,function(a){switch(Ka(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ne([We(t,{props:[K(a,/:(read-\w+)/,":"+xt+"$1")]})],o);case"::placeholder":return Ne([We(t,{props:[K(a,/:(plac\w+)/,":"+G+"input-$1")]}),We(t,{props:[K(a,/:(plac\w+)/,":"+xt+"$1")]}),We(t,{props:[K(a,/:(plac\w+)/,fe+"input-$1")]})],o)}return""})}},go=[mo],vo=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||go,a={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),h=1;h<S.length;h++)a[S[h]]=!0;u.push(x)});var l,c=[po,ho];{var g,d=[io,uo(function(x){g.insert(x)})],T=so(c.concat(o,d)),E=function(S){return Ne(ao(S),T)};l=function(S,h,f,m){g=f,E(S?S+"{"+h.styles+"}":h.styles),m&&(w.inserted[h.name]=!0)}}var w={key:r,sheet:new Ua({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return w.sheet.hydrate(u),w},ft={exports:{}},Q={};/** @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 In;function Bo(){if(In)return ne;In=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,p=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function m(c){if(typeof c=="object"&&c!==null){var y=c.$$typeof;switch(y){case t:switch(c=c.type,c){case u:case l:case n:case i:case a:case d:return c;default:switch(c=c&&c.$$typeof,c){case s:case f:case w:case T:case o:return c;default:return y}}case r:return y}}}function v(c){return m(c)===l}return ne.AsyncMode=u,ne.ConcurrentMode=l,ne.ContextConsumer=s,ne.ContextProvider=o,ne.Element=t,ne.ForwardRef=f,ne.Fragment=n,ne.Lazy=w,ne.Memo=T,ne.Portal=r,ne.Profiler=i,ne.StrictMode=a,ne.Suspense=d,ne.isAsyncMode=function(c){return v(c)||m(c)===u},ne.isConcurrentMode=v,ne.isContextConsumer=function(c){return m(c)===s},ne.isContextProvider=function(c){return m(c)===o},ne.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===t},ne.isForwardRef=function(c){return m(c)===f},ne.isFragment=function(c){return m(c)===n},ne.isLazy=function(c){return m(c)===w},ne.isMemo=function(c){return m(c)===T},ne.isPortal=function(c){return m(c)===r},ne.isProfiler=function(c){return m(c)===i},ne.isStrictMode=function(c){return m(c)===a},ne.isSuspense=function(c){return m(c)===d},ne.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===n||c===l||c===i||c===a||c===d||c===E||typeof c=="object"&&c!==null&&(c.$$typeof===w||c.$$typeof===T||c.$$typeof===o||c.$$typeof===s||c.$$typeof===f||c.$$typeof===x||c.$$typeof===p||c.$$typeof===h||c.$$typeof===b)},ne.typeOf=m,ne}var ae={};/** @license React v16.13.1
48
+ */var Kr;function yo(){if(Kr)return Q;Kr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function m(s){if(typeof s=="object"&&s!==null){var y=s.$$typeof;switch(y){case t:switch(s=s.type,s){case l:case c:case n:case a:case o:case d:return s;default:switch(s=s&&s.$$typeof,s){case u:case g:case w:case E:case i:return s;default:return y}}case r:return y}}}function v(s){return m(s)===c}return Q.AsyncMode=l,Q.ConcurrentMode=c,Q.ContextConsumer=u,Q.ContextProvider=i,Q.Element=t,Q.ForwardRef=g,Q.Fragment=n,Q.Lazy=w,Q.Memo=E,Q.Portal=r,Q.Profiler=a,Q.StrictMode=o,Q.Suspense=d,Q.isAsyncMode=function(s){return v(s)||m(s)===l},Q.isConcurrentMode=v,Q.isContextConsumer=function(s){return m(s)===u},Q.isContextProvider=function(s){return m(s)===i},Q.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===t},Q.isForwardRef=function(s){return m(s)===g},Q.isFragment=function(s){return m(s)===n},Q.isLazy=function(s){return m(s)===w},Q.isMemo=function(s){return m(s)===E},Q.isPortal=function(s){return m(s)===r},Q.isProfiler=function(s){return m(s)===a},Q.isStrictMode=function(s){return m(s)===o},Q.isSuspense=function(s){return m(s)===d},Q.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===n||s===c||s===a||s===o||s===d||s===T||typeof s=="object"&&s!==null&&(s.$$typeof===w||s.$$typeof===E||s.$$typeof===i||s.$$typeof===u||s.$$typeof===g||s.$$typeof===S||s.$$typeof===h||s.$$typeof===f||s.$$typeof===x)},Q.typeOf=m,Q}var ee={};/** @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 Dn;function ko(){return Dn||(Dn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,p=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function m(P){return typeof P=="string"||typeof P=="function"||P===n||P===l||P===i||P===a||P===d||P===E||typeof P=="object"&&P!==null&&(P.$$typeof===w||P.$$typeof===T||P.$$typeof===o||P.$$typeof===s||P.$$typeof===f||P.$$typeof===x||P.$$typeof===p||P.$$typeof===h||P.$$typeof===b)}function v(P){if(typeof P=="object"&&P!==null){var ye=P.$$typeof;switch(ye){case t:var Ne=P.type;switch(Ne){case u:case l:case n:case i:case a:case d:return Ne;default:var et=Ne&&Ne.$$typeof;switch(et){case s:case f:case w:case T:case o:return et;default:return ye}}case r:return ye}}}var c=u,y=l,g=s,R=o,C=t,N=f,A=n,F=w,D=T,k=r,z=i,H=a,K=d,ue=!1;function ce(P){return ue||(ue=!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.")),S(P)||v(P)===u}function S(P){return v(P)===l}function _(P){return v(P)===s}function M(P){return v(P)===o}function j(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function B(P){return v(P)===f}function $(P){return v(P)===n}function G(P){return v(P)===w}function q(P){return v(P)===T}function U(P){return v(P)===r}function V(P){return v(P)===i}function Y(P){return v(P)===a}function he(P){return v(P)===d}ae.AsyncMode=c,ae.ConcurrentMode=y,ae.ContextConsumer=g,ae.ContextProvider=R,ae.Element=C,ae.ForwardRef=N,ae.Fragment=A,ae.Lazy=F,ae.Memo=D,ae.Portal=k,ae.Profiler=z,ae.StrictMode=H,ae.Suspense=K,ae.isAsyncMode=ce,ae.isConcurrentMode=S,ae.isContextConsumer=_,ae.isContextProvider=M,ae.isElement=j,ae.isForwardRef=B,ae.isFragment=$,ae.isLazy=G,ae.isMemo=q,ae.isPortal=U,ae.isProfiler=V,ae.isStrictMode=Y,ae.isSuspense=he,ae.isValidElementType=m,ae.typeOf=v}()),ae}var Mn;function Uo(){return Mn||(Mn=1,process.env.NODE_ENV==="production"?Ct.exports=Bo():Ct.exports=ko()),Ct.exports}var ur,Ln;function $o(){if(Ln)return ur;Ln=1;var e=Uo(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={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(w){return e.isMemo(w)?a:i[w.$$typeof]||t}var s=Object.defineProperty,u=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,E=Object.prototype;function T(w,b,x){if(typeof b!="string"){if(E){var p=d(b);p&&p!==E&&T(w,p,x)}var h=u(b);l&&(h=h.concat(l(b)));for(var m=o(w),v=o(b),c=0;c<h.length;++c){var y=h[c];if(!r[y]&&!(x&&x[y])&&!(v&&v[y])&&!(m&&m[y])){var g=f(b,y);try{s(w,y,g)}catch{}}}}return w}return ur=T,ur}$o();var zo=!0;function Ja(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var Qr=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||zo===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},en=function(t,r,n){Qr(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Go(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Wo={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},qo=/[A-Z]|^ms/g,Vo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ka=function(t){return t.charCodeAt(1)===45},jn=function(t){return t!=null&&typeof t!="boolean"},lr=Xa(function(e){return Ka(e)?e:e.replace(qo,"-$&").toLowerCase()}),Hn=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Vo,function(n,a,i){return _e={name:a,styles:i,next:_e},a})}return Wo[t]!==1&&!Ka(t)&&typeof r=="number"&&r!==0?r+"px":r};function yt(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return _e={name:a.name,styles:a.styles,next:_e},a.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)_e={name:o.name,styles:o.styles,next:_e},o=o.next;var s=i.styles+";";return s}return Yo(e,t,r)}case"function":{if(e!==void 0){var u=_e,l=r(e);return _e=u,yt(e,t,l)}break}}var f=r;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function Yo(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=yt(e,t,r[a])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":jn(s)&&(n+=lr(i)+":"+Hn(i,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var u=0;u<o.length;u++)jn(o[u])&&(n+=lr(i)+":"+Hn(i,o[u])+";");else{var l=yt(e,t,o);switch(i){case"animation":case"animationName":{n+=lr(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var Fn=/label:\s*([^\s;{]+)\s*(;|$)/g,_e;function Xt(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";_e=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=yt(r,t,i);else{var o=i;a+=o[0]}for(var s=1;s<e.length;s++)if(a+=yt(r,t,e[s]),n){var u=i;a+=u[s]}Fn.lastIndex=0;for(var l="",f;(f=Fn.exec(a))!==null;)l+="-"+f[1];var d=Go(a)+l;return{name:d,styles:a,next:_e}}var Xo=function(t){return t()},Qa=J.useInsertionEffect?J.useInsertionEffect:!1,ei=Qa||Xo,Bn=Qa||J.useLayoutEffect,ti=J.createContext(typeof HTMLElement<"u"?Fo({key:"css"}):null);ti.Provider;var tn=function(t){return O.forwardRef(function(r,n){var a=O.useContext(ti);return t(r,a,n)})},rn=J.createContext({}),nn={}.hasOwnProperty,jr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zo=function(t,r){var n={};for(var a in r)nn.call(r,a)&&(n[a]=r[a]);return n[jr]=t,n},Jo=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Qr(r,n,a),ei(function(){return en(r,n,a)}),null},Ko=tn(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[jr],i=[n],o="";typeof e.className=="string"?o=Ja(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Xt(i,void 0,J.useContext(rn));o+=t.key+"-"+s.name;var u={};for(var l in e)nn.call(e,l)&&l!=="css"&&l!==jr&&(u[l]=e[l]);return u.className=o,r&&(u.ref=r),J.createElement(J.Fragment,null,J.createElement(Jo,{cache:t,serialized:s,isStringTag:typeof a=="string"}),J.createElement(a,u))}),Qo=Ko,kn=function(t,r){var n=arguments;if(r==null||!nn.call(r,"css"))return J.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=Qo,i[1]=Zo(t,r);for(var o=2;o<a;o++)i[o]=n[o];return J.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(kn||(kn={}));var es=tn(function(e,t){var r=e.styles,n=Xt([r],void 0,J.useContext(rn)),a=J.useRef();return Bn(function(){var i=t.key+"-global",o=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,u=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),u!==null&&(s=!0,u.setAttribute("data-emotion",i),o.hydrate([u])),a.current=[o,s],function(){o.flush()}},[t]),Bn(function(){var i=a.current,o=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&en(t,n.next,!0),o.tags.length){var u=o.tags[o.tags.length-1].nextElementSibling;o.before=u,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function ts(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Xt(t)}function an(){var e=ts.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var rs=/^((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)-.*))$/,ns=Xa(function(e){return rs.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),as=ns,is=function(t){return t!=="theme"},Un=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?as:is},$n=function(t,r,n){var a;if(r){var i=r.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},os=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Qr(r,n,a),ei(function(){return en(r,n,a)}),null},ss=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,i,o;r!==void 0&&(i=r.label,o=r.target);var s=$n(t,r,n),u=s||Un(a),l=!u("as");return function(){var f=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)d.push.apply(d,f);else{var E=f[0];d.push(E[0]);for(var T=f.length,w=1;w<T;w++)d.push(f[w],E[w])}var b=tn(function(x,p,h){var m=l&&x.as||a,v="",c=[],y=x;if(x.theme==null){y={};for(var g in x)y[g]=x[g];y.theme=J.useContext(rn)}typeof x.className=="string"?v=Ja(p.registered,c,x.className):x.className!=null&&(v=x.className+" ");var R=Xt(d.concat(c),p.registered,y);v+=p.key+"-"+R.name,o!==void 0&&(v+=" "+o);var C=l&&s===void 0?Un(m):u,N={};for(var A in x)l&&A==="as"||C(A)&&(N[A]=x[A]);return N.className=v,h&&(N.ref=h),J.createElement(J.Fragment,null,J.createElement(os,{cache:p,serialized:R,isStringTag:typeof m=="string"}),J.createElement(m,N))});return b.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=a,b.__emotion_styles=d,b.__emotion_forwardProp=s,Object.defineProperty(b,"toString",{value:function(){return"."+o}}),b.withComponent=function(x,p){var h=e(x,mt({},r,p,{shouldForwardProp:$n(b,p,!0)}));return h.apply(void 0,d)},b}},us=["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"],de=ss.bind(null);us.forEach(function(e){de[e]=de(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const ls=an`
55
+ */var Jr;function bo(){return Jr||(Jr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=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,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function m(O){return typeof O=="string"||typeof O=="function"||O===n||O===c||O===a||O===o||O===d||O===T||typeof O=="object"&&O!==null&&(O.$$typeof===w||O.$$typeof===E||O.$$typeof===i||O.$$typeof===u||O.$$typeof===g||O.$$typeof===S||O.$$typeof===h||O.$$typeof===f||O.$$typeof===x)}function v(O){if(typeof O=="object"&&O!==null){var pe=O.$$typeof;switch(pe){case t:var Ee=O.type;switch(Ee){case l:case c:case n:case a:case o:case d:return Ee;default:var Le=Ee&&Ee.$$typeof;switch(Le){case u:case g:case w:case E:case i:return Le;default:return pe}}case r:return pe}}}var s=l,y=c,p=u,R=i,_=t,A=g,j=n,$=w,N=E,L=r,W=a,I=o,X=d,re=!1;function ae(O){return re||(re=!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.")),b(O)||v(O)===l}function b(O){return v(O)===c}function P(O){return v(O)===u}function M(O){return v(O)===i}function k(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function z(O){return v(O)===g}function q(O){return v(O)===n}function Y(O){return v(O)===w}function H(O){return v(O)===E}function F(O){return v(O)===r}function B(O){return v(O)===a}function V(O){return v(O)===o}function ue(O){return v(O)===d}ee.AsyncMode=s,ee.ConcurrentMode=y,ee.ContextConsumer=p,ee.ContextProvider=R,ee.Element=_,ee.ForwardRef=A,ee.Fragment=j,ee.Lazy=$,ee.Memo=N,ee.Portal=L,ee.Profiler=W,ee.StrictMode=I,ee.Suspense=X,ee.isAsyncMode=ae,ee.isConcurrentMode=b,ee.isContextConsumer=P,ee.isContextProvider=M,ee.isElement=k,ee.isForwardRef=z,ee.isFragment=q,ee.isLazy=Y,ee.isMemo=H,ee.isPortal=F,ee.isProfiler=B,ee.isStrictMode=V,ee.isSuspense=ue,ee.isValidElementType=m,ee.typeOf=v}()),ee}var Zr;function xo(){return Zr||(Zr=1,process.env.NODE_ENV==="production"?ft.exports=yo():ft.exports=bo()),ft.exports}var qt,Qr;function So(){if(Qr)return qt;Qr=1;var e=xo(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={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(w){return e.isMemo(w)?o:a[w.$$typeof]||t}var u=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,T=Object.prototype;function E(w,x,S){if(typeof x!="string"){if(T){var h=d(x);h&&h!==T&&E(w,h,S)}var f=l(x);c&&(f=f.concat(c(x)));for(var m=i(w),v=i(x),s=0;s<f.length;++s){var y=f[s];if(!r[y]&&!(S&&S[y])&&!(v&&v[y])&&!(m&&m[y])){var p=g(x,y);try{u(w,y,p)}catch{}}}}return w}return qt=E,qt}So();var Eo=!0;function ra(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var br=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Eo===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},xr=function(t,r,n){br(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function wo(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var To={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},Ro=/[A-Z]|^ms/g,Oo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,na=function(t){return t.charCodeAt(1)===45},en=function(t){return t!=null&&typeof t!="boolean"},Wt=ea(function(e){return na(e)?e:e.replace(Ro,"-$&").toLowerCase()}),tn=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Oo,function(n,o,a){return be={name:o,styles:a,next:be},o})}return To[t]!==1&&!na(t)&&typeof r=="number"&&r!==0?r+"px":r};function nt(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return be={name:o.name,styles:o.styles,next:be},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)be={name:i.name,styles:i.styles,next:be},i=i.next;var u=a.styles+";";return u}return Po(e,t,r)}case"function":{if(e!==void 0){var l=be,c=r(e);return be=l,nt(e,t,c)}break}}var g=r;if(t==null)return g;var d=t[g];return d!==void 0?d:g}function Po(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=nt(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var u=i;t!=null&&t[u]!==void 0?n+=a+"{"+t[u]+"}":en(u)&&(n+=Wt(a)+":"+tn(a,u)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)en(i[l])&&(n+=Wt(a)+":"+tn(a,i[l])+";");else{var c=nt(e,t,i);switch(a){case"animation":case"animationName":{n+=Wt(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}return n}var rn=/label:\s*([^\s;{]+)\s*(;|$)/g,be;function Ct(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";be=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=nt(r,t,a);else{var i=a;o+=i[0]}for(var u=1;u<e.length;u++)if(o+=nt(r,t,e[u]),n){var l=a;o+=l[u]}rn.lastIndex=0;for(var c="",g;(g=rn.exec(o))!==null;)c+="-"+g[1];var d=wo(o)+c;return{name:d,styles:o,next:be}}var Co=function(t){return t()},aa=se.useInsertionEffect?se.useInsertionEffect:!1,oa=aa||Co,nn=aa||se.useLayoutEffect,ia=se.createContext(typeof HTMLElement<"u"?vo({key:"css"}):null);ia.Provider;var Sr=function(t){return C.forwardRef(function(r,n){var o=C.useContext(ia);return t(r,o,n)})},Er=se.createContext({}),wr={}.hasOwnProperty,fr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_o=function(t,r){var n={};for(var o in r)wr.call(r,o)&&(n[o]=r[o]);return n[fr]=t,n},jo=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return br(r,n,o),oa(function(){return xr(r,n,o)}),null},Ao=Sr(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[fr],a=[n],i="";typeof e.className=="string"?i=ra(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var u=Ct(a,void 0,se.useContext(Er));i+=t.key+"-"+u.name;var l={};for(var c in e)wr.call(e,c)&&c!=="css"&&c!==fr&&(l[c]=e[c]);return l.className=i,r&&(l.ref=r),se.createElement(se.Fragment,null,se.createElement(jo,{cache:t,serialized:u,isStringTag:typeof o=="string"}),se.createElement(o,l))}),Do=Ao,an=function(t,r){var n=arguments;if(r==null||!wr.call(r,"css"))return se.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=Do,a[1]=_o(t,r);for(var i=2;i<o;i++)a[i]=n[i];return se.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(an||(an={}));var No=Sr(function(e,t){var r=e.styles,n=Ct([r],void 0,se.useContext(Er)),o=se.useRef();return nn(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,l=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(u=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,u],function(){i.flush()}},[t]),nn(function(){var a=o.current,i=a[0],u=a[1];if(u){a[1]=!1;return}if(n.next!==void 0&&xr(t,n.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function Mo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ct(t)}function Tr(){var e=Mo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var ko=/^((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)-.*))$/,Io=ea(function(e){return ko.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$o=Io,zo=function(t){return t!=="theme"},on=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?$o:zo},sn=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Lo=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return br(r,n,o),oa(function(){return xr(r,n,o)}),null},Fo=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var u=sn(t,r,n),l=u||on(o),c=!l("as");return function(){var g=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)d.push.apply(d,g);else{var T=g[0];d.push(T[0]);for(var E=g.length,w=1;w<E;w++)d.push(g[w],T[w])}var x=Sr(function(S,h,f){var m=c&&S.as||o,v="",s=[],y=S;if(S.theme==null){y={};for(var p in S)y[p]=S[p];y.theme=se.useContext(Er)}typeof S.className=="string"?v=ra(h.registered,s,S.className):S.className!=null&&(v=S.className+" ");var R=Ct(d.concat(s),h.registered,y);v+=h.key+"-"+R.name,i!==void 0&&(v+=" "+i);var _=c&&u===void 0?on(m):l,A={};for(var j in S)c&&j==="as"||_(j)&&(A[j]=S[j]);return A.className=v,f&&(A.ref=f),se.createElement(se.Fragment,null,se.createElement(Lo,{cache:h,serialized:R,isStringTag:typeof m=="string"}),se.createElement(m,A))});return x.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=d,x.__emotion_forwardProp=u,Object.defineProperty(x,"toString",{value:function(){return"."+i}}),x.withComponent=function(S,h){var f=e(S,et({},r,h,{shouldForwardProp:sn(x,h,!0)}));return f.apply(void 0,d)},x}},qo=["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"],ie=Fo.bind(null);qo.forEach(function(e){ie[e]=ie(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const Wo=Tr`
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
- `,cs=de.div`
59
+ `,Yo=ie.div`
60
60
  position: fixed;
61
61
  top: 0;
62
62
  left: 0;
@@ -81,7 +81,7 @@ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var P=he(q,Y,B,$,G+"."+Y
81
81
  &.global-loading-transition-exit-active {
82
82
  opacity: 0;
83
83
  }
84
- `,fs=de.div`
84
+ `,Uo=ie.div`
85
85
  width: 120px;
86
86
  height: 120px;
87
87
  position: relative;
@@ -91,36 +91,15 @@ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var P=he(q,Y,B,$,G+"."+Y
91
91
  display: flex;
92
92
  justify-content: center;
93
93
  align-items: center;
94
- `,at=de.div(({size:e,delay:t})=>({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:`${ls} 4s ease-in-out infinite`,animationDelay:t||"0s"}));function ri(){const e=O.useRef(null),[t,r]=O.useState(!1);return O.useEffect(()=>{exports.setGlobalLoading=n=>{r(n)}},[]),I.jsx(Wt,{in:t,nodeRef:e,timeout:500,classNames:"global-loading-transition",unmountOnExit:!0,children:()=>I.jsxs(cs,{ref:e,className:"global-loading",children:[I.jsxs(fs,{className:"global-loading-container",children:[I.jsx(at,{className:"dot dot-1",size:15,delay:"0.0s"}),I.jsx(at,{className:"dot dot-2",size:13,delay:"0.2s"}),I.jsx(at,{className:"dot dot-3",size:11,delay:"0.4s"}),I.jsx(at,{className:"dot dot-4",size:9,delay:"0.6s"}),I.jsx(at,{className:"dot dot-5",size:7,delay:"0.8s"})]}),I.jsx("svg",{style:{visibility:"hidden",position:"absolute"},children:I.jsx("defs",{children:I.jsxs("filter",{id:"goo",children:[I.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),I.jsx("feColorMatrix",{in:"blur",type:"matrix",values:`
94
+ `,Ye=ie.div(({size:e,delay:t})=>({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:`${Wo} 4s ease-in-out infinite`,animationDelay:t||"0s"}));function sa(){const e=C.useRef(null),[t,r]=C.useState(!1);return C.useEffect(()=>{exports.setGlobalLoading=n=>{r(n)}},[]),D.jsx(Tt,{in:t,nodeRef:e,timeout:500,classNames:"global-loading-transition",unmountOnExit:!0,children:()=>D.jsxs(Yo,{ref:e,className:"global-loading",children:[D.jsxs(Uo,{className:"global-loading-container",children:[D.jsx(Ye,{className:"dot dot-1",size:15,delay:"0.0s"}),D.jsx(Ye,{className:"dot dot-2",size:13,delay:"0.2s"}),D.jsx(Ye,{className:"dot dot-3",size:11,delay:"0.4s"}),D.jsx(Ye,{className:"dot dot-4",size:9,delay:"0.6s"}),D.jsx(Ye,{className:"dot dot-5",size:7,delay:"0.8s"})]}),D.jsx("svg",{style:{visibility:"hidden",position:"absolute"},children:D.jsx("defs",{children:D.jsxs("filter",{id:"goo",children:[D.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),D.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`}),I.jsx("feComposite",{in:"SourceGraphic",in2:"goo",operator:"atop"})]})})})]})})}var Hr=function(e,t){return Hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Hr(e,t)};function Ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var L=function(){return L=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},L.apply(this,arguments)};function Je(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function ds(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(f){try{l(n.next(f))}catch(d){o(d)}}function u(f){try{l(n.throw(f))}catch(d){o(d)}}function l(f){f.done?i(f.value):a(f.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function hs(e,t){var r={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(l){return function(f){return u([l,f])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(f){l=[6,f],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function me(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function oe(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function we(e,t){var r=t&&t.cache?t.cache:xs,n=t&&t.serializer?t.serializer:ys,a=t&&t.strategy?t.strategy:gs;return a(e,{cache:r,serializer:n})}function ps(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ms(e,t,r,n){var a=ps(n)?n:r(n),i=t.get(a);return typeof i>"u"&&(i=e.call(this,n),t.set(a,i)),i}function ni(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),i=t.get(a);return typeof i>"u"&&(i=e.apply(this,n),t.set(a,i)),i}function ai(e,t,r,n,a){return r.bind(t,e,n,a)}function gs(e,t){var r=e.length===1?ms:ni;return ai(e,this,r,t.cache.create(),t.serializer)}function vs(e,t){return ai(e,this,ni,t.cache.create(),t.serializer)}var ys=function(){return JSON.stringify(arguments)},bs=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),xs={create:function(){return new bs}},Re={variadic:vs},X;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(X||(X={}));var se;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(se||(se={}));var Ye;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ye||(Ye={}));function zn(e){return e.type===se.literal}function Es(e){return e.type===se.argument}function ii(e){return e.type===se.number}function oi(e){return e.type===se.date}function si(e){return e.type===se.time}function ui(e){return e.type===se.select}function li(e){return e.type===se.plural}function Ss(e){return e.type===se.pound}function ci(e){return e.type===se.tag}function fi(e){return!!(e&&typeof e=="object"&&e.type===Ye.number)}function Fr(e){return!!(e&&typeof e=="object"&&e.type===Ye.dateTime)}var di=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ts=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ws(e){var t={};return e.replace(Ts,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Rs=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ps(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Rs).filter(function(E){return E.length>0}),r=[],n=0,a=t;n<a.length;n++){var i=a[n],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],u=o.slice(1),l=0,f=u;l<f.length;l++){var d=f[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function _s(e){return e.replace(/^(.*?)-/,"")}var Gn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hi=/^(@+)?(\+|#+)?[rs]?$/g,Os=/(\*)(0+)|(#+)(0+)|(0+)/g,pi=/^(0+)$/;function Wn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(hi,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function mi(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Cs(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!pi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function qn(e){var t={},r=mi(e);return r||t}function As(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=_s(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=L(L(L({},t),{notation:"scientific"}),a.options.reduce(function(u,l){return L(L({},u),qn(l))},{}));continue;case"engineering":t=L(L(L({},t),{notation:"engineering"}),a.options.reduce(function(u,l){return L(L({},u),qn(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Os,function(u,l,f,d,E,T){if(l)t.minimumIntegerDigits=f.length;else{if(d&&E)throw new Error("We currently do not support maximum integer digits");if(T)throw new Error("We currently do not support exact integer digits")}return""});continue}if(pi.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Gn.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Gn,function(u,l,f,d,E,T){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:E&&T?(t.minimumFractionDigits=E.length,t.maximumFractionDigits=E.length+T.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=a.options[0];i==="w"?t=L(L({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=L(L({},t),Wn(i)));continue}if(hi.test(a.stem)){t=L(L({},t),Wn(a.stem));continue}var o=mi(a.stem);o&&(t=L(L({},t),o));var s=Cs(a.stem);s&&(t=L(L({},t),s))}return t}var At={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ns(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===a;)i++,n++;var o=1+(i&1),s=i<2?1:3+(i>>1),u="a",l=Is(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;o-- >0;)r=l+r}else a==="J"?r+="H":r+=a}return r}function Is(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var a=At[n||""]||At[r||""]||At["".concat(r,"-001")]||At["001"];return a[0]}var cr,Ds=new RegExp("^".concat(di.source,"*")),Ms=new RegExp("".concat(di.source,"*$"));function Z(e,t){return{start:e,end:t}}var Ls=!!String.prototype.startsWith&&"_a".startsWith("a",1),js=!!String.fromCodePoint,Hs=!!Object.fromEntries,Fs=!!String.prototype.codePointAt,Bs=!!String.prototype.trimStart,ks=!!String.prototype.trimEnd,Us=!!Number.isSafeInteger,$s=Us?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Br=!0;try{var zs=vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Br=((cr=zs.exec("a"))===null||cr===void 0?void 0:cr[0])==="a"}catch{Br=!1}var Vn=Ls?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},kr=js?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,i=0,o;a>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},Yn=Hs?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var i=a[n],o=i[0],s=i[1];r[o]=s}return r},gi=Fs?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),i;return a<55296||a>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},Gs=Bs?function(t){return t.trimStart()}:function(t){return t.replace(Ds,"")},Ws=ks?function(t){return t.trimEnd()}:function(t){return t.replace(Ms,"")};function vi(e,t){return new RegExp(e,t)}var Ur;if(Br){var Xn=vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ur=function(t,r){var n;Xn.lastIndex=r;var a=Xn.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else Ur=function(t,r){for(var n=[];;){var a=gi(t,r);if(a===void 0||yi(a)||Xs(a))break;n.push(a),r+=a>=65536?2:1}return kr.apply(void 0,n)};var qs=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,n);if(o.err)return o;a.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),a.push({type:se.pound,location:Z(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(X.UNMATCHED_CLOSING_TAG,Z(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&$r(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;a.push(o.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:se.literal,value:"<".concat(a,"/>"),location:Z(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$r(this.char()))return this.error(X.INVALID_TAG,Z(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return a!==l?this.error(X.UNMATCHED_CLOSING_TAG,Z(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:se.tag,value:a,children:o,location:Z(n,this.clonePosition())},err:null}:this.error(X.INVALID_TAG,Z(s,this.clonePosition())))}else return this.error(X.UNCLOSED_TAG,Z(n,this.clonePosition()))}else return this.error(X.INVALID_TAG,Z(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ys(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var i=this.tryParseQuote(r);if(i){a+=i;continue}var o=this.tryParseUnquoted(t,r);if(o){a+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){a+=s;continue}break}var u=Z(n,this.clonePosition());return{val:{type:se.literal,value:a,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Vs(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return kr.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),kr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Z(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(X.EMPTY_ARGUMENT,Z(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(X.MALFORMED_ARGUMENT,Z(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Z(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:se.argument,value:a,location:Z(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Z(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(X.MALFORMED_ARGUMENT,Z(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ur(this.message,r),a=r+n.length;this.bumpTo(a);var i=this.clonePosition(),o=Z(t,i);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,a){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(X.EXPECT_ARGUMENT_TYPE,Z(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var E=Ws(d.val);if(E.length===0)return this.error(X.EXPECT_ARGUMENT_STYLE,Z(this.clonePosition(),this.clonePosition()));var T=Z(f,this.clonePosition());l={style:E,styleLocation:T}}var w=this.tryParseArgumentClose(a);if(w.err)return w;var b=Z(a,this.clonePosition());if(l&&Vn(l==null?void 0:l.style,"::",0)){var x=Gs(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(x,l.styleLocation);return d.err?d:{val:{type:se.number,value:n,location:b,style:d.val},err:null}}else{if(x.length===0)return this.error(X.EXPECT_DATE_TIME_SKELETON,b);var p=x;this.locale&&(p=Ns(x,this.locale));var E={type:Ye.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ws(p):{}},h=s==="date"?se.date:se.time;return{val:{type:h,value:n,location:b,style:E},err:null}}}return{val:{type:s==="number"?se.number:s==="date"?se.date:se.time,value:n,location:b,style:(i=l==null?void 0:l.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(X.EXPECT_SELECT_ARGUMENT_OPTIONS,Z(m,L({},m)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),c=0;if(s!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),v=this.parseIdentifierIfPossible(),c=d.val}var y=this.tryParsePluralOrSelectOptions(t,s,r,v);if(y.err)return y;var w=this.tryParseArgumentClose(a);if(w.err)return w;var g=Z(a,this.clonePosition());return s==="select"?{val:{type:se.select,value:n,options:Yn(y.val),location:g},err:null}:{val:{type:se.plural,value:n,options:Yn(y.val),offset:c,pluralType:s==="plural"?"cardinal":"ordinal",location:g},err:null}}default:return this.error(X.INVALID_ARGUMENT_TYPE,Z(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,Z(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(X.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Z(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Ps(t)}catch{return this.error(X.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ye.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?As(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var i,o=!1,s=[],u=new Set,l=a.value,f=a.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var E=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_SELECTOR,X.INVALID_PLURAL_ARGUMENT_SELECTOR);if(E.err)return E;f=Z(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?X.DUPLICATE_SELECT_ARGUMENT_SELECTOR:X.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var T=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Z(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,r,n);if(w.err)return w;var b=this.tryParseArgumentClose(T);if(b.err)return b;s.push([l,{value:w.val,location:Z(T,this.clonePosition())}]),u.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,f=i.location}return s.length===0?this.error(r==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR:X.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(X.MISSING_OTHER_CLAUSE,Z(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,o=o*10+(s-48),this.bump();else break}var u=Z(a,this.clonePosition());return i?(o*=n,$s(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=gi(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Vn(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function $r(e){return e>=97&&e<=122||e>=65&&e<=90}function Vs(e){return $r(e)||e===47}function Ys(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function yi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Xs(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function zr(e){e.forEach(function(t){if(delete t.location,ui(t)||li(t))for(var r in t.options)delete t.options[r].location,zr(t.options[r].value);else ii(t)&&fi(t.style)||(oi(t)||si(t))&&Fr(t.style)?delete t.style.location:ci(t)&&zr(t.children)})}function Zs(e,t){t===void 0&&(t={}),t=L({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new qs(e,t).parse();if(r.err){var n=SyntaxError(X[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||zr(r.val),r.val}var Ce;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ce||(Ce={}));var Le=function(e){Ee(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Zn=function(e){Ee(t,e);function t(r,n,a,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Ce.INVALID_VALUE,i)||this}return t}(Le),Js=function(e){Ee(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Ce.INVALID_VALUE,a)||this}return t}(Le),Ks=function(e){Ee(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Ce.MISSING_VALUE,n)||this}return t}(Le),ve;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ve||(ve={}));function Qs(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ve.literal||r.type!==ve.literal?t.push(r):n.value+=r.value,t},[])}function bi(e){return typeof e=="function"}function Ft(e,t,r,n,a,i,o){if(e.length===1&&zn(e[0]))return[{type:ve.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var f=l[u];if(zn(f)){s.push({type:ve.literal,value:f.value});continue}if(Ss(f)){typeof i=="number"&&s.push({type:ve.literal,value:r.getNumberFormat(t).format(i)});continue}var d=f.value;if(!(a&&d in a))throw new Ks(d,o);var E=a[d];if(Es(f)){(!E||typeof E=="string"||typeof E=="number")&&(E=typeof E=="string"||typeof E=="number"?String(E):""),s.push({type:typeof E=="string"?ve.literal:ve.object,value:E});continue}if(oi(f)){var T=typeof f.style=="string"?n.date[f.style]:Fr(f.style)?f.style.parsedOptions:void 0;s.push({type:ve.literal,value:r.getDateTimeFormat(t,T).format(E)});continue}if(si(f)){var T=typeof f.style=="string"?n.time[f.style]:Fr(f.style)?f.style.parsedOptions:n.time.medium;s.push({type:ve.literal,value:r.getDateTimeFormat(t,T).format(E)});continue}if(ii(f)){var T=typeof f.style=="string"?n.number[f.style]:fi(f.style)?f.style.parsedOptions:void 0;T&&T.scale&&(E=E*(T.scale||1)),s.push({type:ve.literal,value:r.getNumberFormat(t,T).format(E)});continue}if(ci(f)){var w=f.children,b=f.value,x=a[b];if(!bi(x))throw new Js(b,"function",o);var p=Ft(w,t,r,n,a,i),h=x(p.map(function(c){return c.value}));Array.isArray(h)||(h=[h]),s.push.apply(s,h.map(function(c){return{type:typeof c=="string"?ve.literal:ve.object,value:c}}))}if(ui(f)){var m=f.options[E]||f.options.other;if(!m)throw new Zn(f.value,E,Object.keys(f.options),o);s.push.apply(s,Ft(m.value,t,r,n,a));continue}if(li(f)){var m=f.options["=".concat(E)];if(!m){if(!Intl.PluralRules)throw new Le(`Intl.PluralRules is not available in this environment.
99
- Try polyfilling it using "@formatjs/intl-pluralrules"
100
- `,Ce.MISSING_INTL_API,o);var v=r.getPluralRules(t,{type:f.pluralType}).select(E-(f.offset||0));m=f.options[v]||f.options.other}if(!m)throw new Zn(f.value,E,Object.keys(f.options),o);s.push.apply(s,Ft(m.value,t,r,n,a,E-(f.offset||0)));continue}}return Qs(s)}function eu(e,t){return t?L(L(L({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=L(L({},e[n]),t[n]||{}),r},{})):e}function tu(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=eu(e[n],t[n]),r},L({},e)):e}function fr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function ru(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:we(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,oe([void 0],r,!1)))},{cache:fr(e.number),strategy:Re.variadic}),getDateTimeFormat:we(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,oe([void 0],r,!1)))},{cache:fr(e.dateTime),strategy:Re.variadic}),getPluralRules:we(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,oe([void 0],r,!1)))},{cache:fr(e.pluralRules),strategy:Re.variadic})}}var xi=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=i.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(d,E){return!d.length||E.type!==ve.literal||typeof d[d.length-1]!="string"?d.push(E.value):d[d.length-1]+=E.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Ft(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=a||{};o.formatters;var s=Je(o,["formatters"]);this.ast=e.__parse(t,L(L({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=tu(e.formats,n),this.formatters=a&&a.formatters||ru(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Zs,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),ke;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(ke||(ke={}));var Et=function(e){Ee(t,e);function t(r,n,a){var i=this,o=a?a instanceof Error?a:new Error(String(a)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
101
- `).concat(o?`
102
- `.concat(o.message,`
103
- `).concat(o.stack):""))||this,i.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),nu=function(e){Ee(t,e);function t(r,n){return e.call(this,ke.UNSUPPORTED_FORMATTER,r,n)||this}return t}(Et),au=function(e){Ee(t,e);function t(r,n){return e.call(this,ke.INVALID_CONFIG,r,n)||this}return t}(Et),Jn=function(e){Ee(t,e);function t(r,n){return e.call(this,ke.MISSING_DATA,r,n)||this}return t}(Et),Se=function(e){Ee(t,e);function t(r,n,a){var i=e.call(this,ke.FORMAT_ERROR,"".concat(r,`
104
- Locale: `).concat(n,`
105
- `),a)||this;return i.locale=n,i}return t}(Et),dr=function(e){Ee(t,e);function t(r,n,a,i){var o=e.call(this,"".concat(r,`
106
- MessageID: `).concat(a==null?void 0:a.id,`
107
- Default Message: `).concat(a==null?void 0:a.defaultMessage,`
108
- Description: `).concat(a==null?void 0:a.description,`
109
- `),n,i)||this;return o.descriptor=a,o.locale=n,o}return t}(Se),iu=function(e){Ee(t,e);function t(r,n){var a=e.call(this,ke.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(i){var o;return(o=i.value)!==null&&o!==void 0?o:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=r,a}return t}(Et);function ou(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}function Ke(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,a){return a in e?n[a]=e[a]:a in r&&(n[a]=r[a]),n},{})}var su=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},uu=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Ei={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:su,onWarn:uu};function Si(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function je(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function lu(e){e===void 0&&(e=Si());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,a=we(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,oe([void 0],u,!1)))},{cache:je(e.dateTime),strategy:Re.variadic}),i=we(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,oe([void 0],u,!1)))},{cache:je(e.number),strategy:Re.variadic}),o=we(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,oe([void 0],u,!1)))},{cache:je(e.pluralRules),strategy:Re.variadic});return{getDateTimeFormat:a,getNumberFormat:i,getMessageFormat:we(function(s,u,l,f){return new xi(s,u,l,L({formatters:{getNumberFormat:i,getDateTimeFormat:a,getPluralRules:o}},f||{}))},{cache:je(e.message),strategy:Re.variadic}),getRelativeTimeFormat:we(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(t.bind.apply(t,oe([void 0],s,!1)))},{cache:je(e.relativeTime),strategy:Re.variadic}),getPluralRules:o,getListFormat:we(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(r.bind.apply(r,oe([void 0],s,!1)))},{cache:je(e.list),strategy:Re.variadic}),getDisplayNames:we(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(n.bind.apply(n,oe([void 0],s,!1)))},{cache:je(e.displayNames),strategy:Re.variadic})}}function on(e,t,r,n){var a=e&&e[t],i;if(a&&(i=a[r]),i)return i;n(new nu("No ".concat(t," format named: ").concat(r)))}function Nt(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=L({timeZone:t},e[n]),r},{})}function Kn(e,t){var r=Object.keys(L(L({},e),t));return r.reduce(function(n,a){return n[a]=L(L({},e[a]||{}),t[a]||{}),n},{})}function Qn(e,t){if(!t)return e;var r=xi.formats;return L(L(L({},r),e),{date:Kn(Nt(r.date,t),Nt(e.date||{},t)),time:Kn(Nt(r.time,t),Nt(e.time||{},t))})}var Gr=function(e,t,r,n,a){var i=e.locale,o=e.formats,s=e.messages,u=e.defaultLocale,l=e.defaultFormats,f=e.fallbackOnEmptyString,d=e.onError,E=e.timeZone,T=e.defaultRichTextElements;r===void 0&&(r={id:""});var w=r.id,b=r.defaultMessage;ou(!!w,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var x=String(w),p=s&&Object.prototype.hasOwnProperty.call(s,x)&&s[x];if(Array.isArray(p)&&p.length===1&&p[0].type===se.literal)return p[0].value;if(!n&&p&&typeof p=="string"&&!T)return p.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=L(L({},T),n||{}),o=Qn(o,E),l=Qn(l,E),!p){if(f===!1&&p==="")return p;if((!b||i&&i.toLowerCase()!==u.toLowerCase())&&d(new iu(r,i)),b)try{var h=t.getMessageFormat(b,u,l,a);return h.format(n)}catch(m){return d(new dr('Error formatting default message for: "'.concat(x,'", rendering default message verbatim'),i,r,m)),typeof b=="string"?b:x}return x}try{var h=t.getMessageFormat(p,i,o,L({formatters:t},a||{}));return h.format(n)}catch(m){d(new dr('Error formatting message: "'.concat(x,'", using ').concat(b?"default message":"id"," as fallback."),i,r,m))}if(b)try{var h=t.getMessageFormat(b,u,l,a);return h.format(n)}catch(m){d(new dr('Error formatting the default message for: "'.concat(x,'", rendering message verbatim'),i,r,m))}return typeof p=="string"?p:typeof b=="string"?b:x},cu=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function St(e,t,r,n){var a=e.locale,i=e.formats,o=e.onError,s=e.timeZone;n===void 0&&(n={});var u=n.format,l=L(L({},s&&{timeZone:s}),u&&on(i,t,u,o)),f=Ke(n,cu,l);return t==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f=L(L({},f),{hour:"numeric",minute:"numeric"})),r(a,f)}function fu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=i===void 0?{}:i,s=typeof a=="string"?new Date(a||0):a;try{return St(e,"date",t,o).format(s)}catch(u){e.onError(new Se("Error formatting date.",e.locale,u))}return String(s)}function du(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=i===void 0?{}:i,s=typeof a=="string"?new Date(a||0):a;try{return St(e,"time",t,o).format(s)}catch(u){e.onError(new Se("Error formatting time.",e.locale,u))}return String(s)}function hu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=r[2],s=o===void 0?{}:o,u=typeof a=="string"?new Date(a||0):a,l=typeof i=="string"?new Date(i||0):i;try{return St(e,"dateTimeRange",t,s).formatRange(u,l)}catch(f){e.onError(new Se("Error formatting date time range.",e.locale,f))}return String(u)}function pu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=i===void 0?{}:i,s=typeof a=="string"?new Date(a||0):a;try{return St(e,"date",t,o).formatToParts(s)}catch(u){e.onError(new Se("Error formatting date.",e.locale,u))}return[]}function mu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=i===void 0?{}:i,s=typeof a=="string"?new Date(a||0):a;try{return St(e,"time",t,o).formatToParts(s)}catch(u){e.onError(new Se("Error formatting time.",e.locale,u))}return[]}var gu=["style","type","fallback","languageDisplay"];function vu(e,t,r,n){var a=e.locale,i=e.onError,o=Intl.DisplayNames;o||i(new Le(`Intl.DisplayNames is not available in this environment.
110
- Try polyfilling it using "@formatjs/intl-displaynames"
111
- `,Ce.MISSING_INTL_API));var s=Ke(n,gu);try{return t(a,s).of(r)}catch(u){i(new Se("Error formatting display name.",a,u))}}var yu=["type","style"],ea=Date.now();function bu(e){return"".concat(ea,"_").concat(e,"_").concat(ea)}function xu(e,t,r,n){n===void 0&&(n={});var a=Ti(e,t,r,n).reduce(function(i,o){var s=o.value;return typeof s!="string"?i.push(s):typeof i[i.length-1]=="string"?i[i.length-1]+=s:i.push(s),i},[]);return a.length===1?a[0]:a.length===0?"":a}function Ti(e,t,r,n){var a=e.locale,i=e.onError;n===void 0&&(n={});var o=Intl.ListFormat;o||i(new Le(`Intl.ListFormat is not available in this environment.
112
- Try polyfilling it using "@formatjs/intl-listformat"
113
- `,Ce.MISSING_INTL_API));var s=Ke(n,yu);try{var u={},l=r.map(function(f,d){if(typeof f=="object"){var E=bu(d);return u[E]=f,E}return String(f)});return t(a,s).formatToParts(l).map(function(f){return f.type==="literal"?f:L(L({},f),{value:u[f.value]||f.value})})}catch(f){i(new Se("Error formatting list.",a,f))}return r}var Eu=["type"];function Su(e,t,r,n){var a=e.locale,i=e.onError;n===void 0&&(n={}),Intl.PluralRules||i(new Le(`Intl.PluralRules is not available in this environment.
114
- Try polyfilling it using "@formatjs/intl-pluralrules"
115
- `,Ce.MISSING_INTL_API));var o=Ke(n,Eu);try{return t(a,o).select(r)}catch(s){i(new Se("Error formatting plural.",a,s))}return"other"}var Tu=["numeric","style"];function wu(e,t,r){var n=e.locale,a=e.formats,i=e.onError;r===void 0&&(r={});var o=r.format,s=!!o&&on(a,"relative",o,i)||{},u=Ke(r,Tu,s);return t(n,u)}function Ru(e,t,r,n,a){a===void 0&&(a={}),n||(n="second");var i=Intl.RelativeTimeFormat;i||e.onError(new Le(`Intl.RelativeTimeFormat is not available in this environment.
116
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
117
- `,Ce.MISSING_INTL_API));try{return wu(e,t,a).format(r,n)}catch(o){e.onError(new Se("Error formatting relative time.",e.locale,o))}return String(r)}var Pu=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function wi(e,t,r){var n=e.locale,a=e.formats,i=e.onError;r===void 0&&(r={});var o=r.format,s=o&&on(a,"number",o,i)||{},u=Ke(r,Pu,s);return t(n,u)}function _u(e,t,r,n){n===void 0&&(n={});try{return wi(e,t,n).format(r)}catch(a){e.onError(new Se("Error formatting number.",e.locale,a))}return String(r)}function Ou(e,t,r,n){n===void 0&&(n={});try{return wi(e,t,n).formatToParts(r)}catch(a){e.onError(new Se("Error formatting number.",e.locale,a))}return[]}function Cu(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Au(e){e.onWarn&&e.defaultRichTextElements&&Cu(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
118
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
119
- For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Nu(e,t){var r=lu(t),n=L(L({},Ei),e),a=n.locale,i=n.defaultLocale,o=n.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&o?o(new Jn('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&o&&o(new Jn('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new au('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Au(n),L(L({},n),{formatters:r,formatNumber:_u.bind(null,n,r.getNumberFormat),formatNumberToParts:Ou.bind(null,n,r.getNumberFormat),formatRelativeTime:Ru.bind(null,n,r.getRelativeTimeFormat),formatDate:fu.bind(null,n,r.getDateTimeFormat),formatDateToParts:pu.bind(null,n,r.getDateTimeFormat),formatTime:du.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:hu.bind(null,n,r.getDateTimeFormat),formatTimeToParts:mu.bind(null,n,r.getDateTimeFormat),formatPlural:Su.bind(null,n,r.getPluralRules),formatMessage:Gr.bind(null,n,r),$t:Gr.bind(null,n,r),formatList:xu.bind(null,n,r.getListFormat),formatListToParts:Ti.bind(null,n,r.getListFormat),formatDisplayName:vu.bind(null,n,r.getDisplayNames)})}function Iu(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}function Ri(e){Iu(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Pi=L(L({},Ei),{textComponent:J.Fragment}),Du={key:42},Mu=function(e){return J.isValidElement(e)?J.createElement(J.Fragment,Du,e):e},Lu=function(e){var t;return(t=J.Children.map(e,Mu))!==null&&t!==void 0?t:[]};function ju(e){return function(t){return e(J.Children.toArray(t))}}function Hu(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var i=0;i<a;i++){var o=r[i];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}var sn=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=J.createContext(null)):J.createContext(null);sn.Consumer;var Fu=sn.Provider,Bu=Fu,ku=sn;function un(){var e=J.useContext(ku);return Ri(e),e}var Wr;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Wr||(Wr={}));var qr;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(qr||(qr={}));function _i(e){var t=function(r){var n=un(),a=r.value,i=r.children,o=Je(r,["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 t.displayName=qr[e],t}function Tt(e){var t=function(r){var n=un(),a=r.value,i=r.children,o=Je(r,["value","children"]),s=n[e](a,o);if(typeof i=="function")return i(s);var u=n.textComponent||J.Fragment;return J.createElement(u,null,s)};return t.displayName=Wr[e],t}function Oi(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=bi(n)?ju(n):n,t},{})}var ta=function(e,t,r,n){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var o=Oi(n),s=Gr.apply(void 0,oe([e,t,r,o],a,!1));return Array.isArray(s)?Lu(s):s},ra=function(e,t){var r=e.defaultRichTextElements,n=Je(e,["defaultRichTextElements"]),a=Oi(r),i=Nu(L(L(L({},Pi),n),{defaultRichTextElements:a}),t),o={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:a};return L(L({},i),{formatMessage:ta.bind(null,o,i.formatters),$t:ta.bind(null,o,i.formatters)})};function hr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var Uu=function(e){Ee(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=Si(),r.state={cache:r.cache,intl:ra(hr(r.props),r.cache),prevConfig:hr(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var a=n.prevConfig,i=n.cache,o=hr(r);return Hu(a,o)?null:{intl:ra(o,i),prevConfig:o}},t.prototype.render=function(){return Ri(this.state.intl),J.createElement(Bu,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Pi,t}(J.PureComponent);Tt("formatDate");Tt("formatTime");Tt("formatNumber");Tt("formatList");Tt("formatDisplayName");_i("formatDate");_i("formatTime");const $u={"operation.add":"添加","operation.delete":"删除","operation.batchDelete":"批量删除","operation.edit":"编辑","operation.download":"下载","operation.logout":"退出登录","operation.export":"导出","operation.close":"关闭","operation.details":"详情","operation.confirm":"确认","operation.save":"保存","operation.cancel":"取消","component.table.selected":"已选{length}条","component.table.total":"共{total}条","component.table.visibleError":"列表最少保留一个字段","component.searcharea.toggle":"高级搜索","component.searcharea.submit":"筛选","component.searcharea.reset":"重置","component.searcharea.close":"收起","message.delete":"删除操作无法恢复,确认删除?","message.success":"操作成功","table.pagination.total":"共{total}条"},zu={"operation.add":"Add","operation.delete":"Delete","operation.batchDelete":"Batch Delete","operation.edit":"Edit","operation.download":"Download","operation.logout":"Logout","operation.export":"Export","operation.close":"Close","operation.details":"Details","operation.confirm":"Confirm","operation.save":"Save","operation.cancel":"Cancel","component.table.selected":"{length} selected","component.table.total":"Total {total} items","component.table.visibleError":"At least one field must be visible","component.searcharea.toggle":"Advanced Search","component.searcharea.submit":"Submit","component.searcharea.reset":"Reset","component.searcharea.close":"Close","message.delete":"This action cannot be undone, confirm delete?","message.success":"Operation successful","table.pagination.total":"Total {total} items"},Ci={zh:$u,en:zu};function Ai(e,t){const r={...e};for(const n in t)t[n]!==void 0&&(t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?r[n]=Ai(e[n]||{},t[n]):r[n]=t[n]);return r}const Ni={iconButton:{size:"small",render:({children:e,...t})=>e},iconFont:{},locale:"zh"},Zt=O.createContext(Ni);function Ii({children:e,config:t}){const r=Ai(Ni,t);return I.jsx(Zt.Provider,{value:r,children:I.jsx(Uu,{locale:t.locale,messages:Ci[r.locale],children:e})})}exports.message=ie.message;exports.notification=ie.notification;exports.modal=ie.Modal;function Gu({children:e}){const t=ie.App.useApp();return exports.message=t.message,exports.modal=t.modal,exports.notification=t.notification,e||""}function Wu({children:e,config:t,...r}){return I.jsx(Ii,{config:t||{},children:I.jsxs(ie.App,{...r,children:[I.jsx(ri,{}),I.jsx(Gu,{children:e})]})})}var pr={exports:{}};/*!
98
+ 0 0 0 18 -6`}),D.jsx("feComposite",{in:"SourceGraphic",in2:"goo",operator:"atop"})]})})})]})})}const Ho={"operation.add":"添加","operation.delete":"删除","operation.batchDelete":"批量删除","operation.edit":"编辑","operation.download":"下载","operation.logout":"退出登录","operation.export":"导出","operation.close":"关闭","operation.details":"详情","operation.confirm":"确认","operation.save":"保存","operation.cancel":"取消","component.table.selected":"已选{length}条","component.table.total":"共{total}条","component.table.visibleError":"列表最少保留一个字段","component.searcharea.toggle":"高级搜索","component.searcharea.submit":"筛选","component.searcharea.reset":"重置","component.searcharea.close":"收起","message.delete":"删除操作无法恢复,确认删除?","message.success":"操作成功","table.pagination.total":"共{total}条"},Bo={"operation.add":"Add","operation.delete":"Delete","operation.batchDelete":"Batch Delete","operation.edit":"Edit","operation.download":"Download","operation.logout":"Logout","operation.export":"Export","operation.close":"Close","operation.details":"Details","operation.confirm":"Confirm","operation.save":"Save","operation.cancel":"Cancel","component.table.selected":"{length} selected","component.table.total":"Total {total} items","component.table.visibleError":"At least one field must be visible","component.searcharea.toggle":"Advanced Search","component.searcharea.submit":"Submit","component.searcharea.reset":"Reset","component.searcharea.close":"Close","message.delete":"This action cannot be undone, confirm delete?","message.success":"Operation successful","table.pagination.total":"Total {total} items"},Rr={zh:Ho,en:Bo},dr=({messages:e,locale:t})=>({id:r,defaultMessage:n,values:o})=>{var i;let a=((i=e==null?void 0:e[t])==null?void 0:i[r])||n;return typeof o=="object"&&Object.keys(o).forEach(u=>{a=a.replace(`{${u}}`,o[u])}),a};function Vo(){const{messages:e,locale:t}=C.useContext(Or);return{$t:({id:r,defaultMessage:n},o)=>dr({messages:e,locale:t})({id:r,defaultMessage:n,values:o}),formatMessage:dr({messages:e,locale:t})}}function Me({id:e,defaultMessage:t,values:r}){const{messages:n,locale:o}=C.useContext(Or);return dr({messages:n,locale:o})({id:e,defaultMessage:t,values:r})}const Xo={locale:"zh",messages:Rr},Or=C.createContext(Xo);function Go({children:e,config:t}){return D.jsx(Or.Provider,{value:{locale:t.locale,messages:Rr},children:e})}function ua(e,t){const r={...e};for(const n in t)t[n]!==void 0&&(t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?r[n]=ua(e[n]||{},t[n]):r[n]=t[n]);return r}const ca={iconButton:{size:"small",render:({children:e})=>e},iconFont:{},locale:"zh"},_t=C.createContext(ca);function la({children:e,config:t}){const r=ua(ca,t);return D.jsx(_t.Provider,{value:r,children:D.jsx(Go,{config:{locale:t.locale,messages:Rr},children:e})})}exports.message=te.message;exports.notification=te.notification;exports.modal=te.Modal;function Ko({children:e}){const t=te.App.useApp();return exports.message=t.message,exports.modal=t.modal,exports.notification=t.notification,e||""}function Jo({children:e,config:t,...r}){return D.jsx(la,{config:t||{},children:D.jsxs(te.App,{...r,children:[D.jsx(sa,{}),D.jsx(Ko,{children:e})]})})}var Yt={exports:{}};/*!
120
99
  Copyright (c) 2018 Jed Watson.
121
100
  Licensed under the MIT License (MIT), see
122
101
  http://jedwatson.github.io/classnames
123
- */var na;function qu(){return na||(na=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(pr)),pr.exports}var Vu=qu();const Vr=Gt(Vu),ln=O.forwardRef(({type:e="",className:t="",symbol:r=!1,style:n,...a},i)=>{const{iconFont:o}=O.useContext(Zt);return r?I.jsx("svg",{className:Vr(["iconfont-symbol",o.className||"",e,t]),"aria-hidden":"true",ref:i,style:{...o.style,...n||{}},...a,children:I.jsx("use",{xlinkHref:`#${e}`})}):I.jsx("i",{className:Vr(["iconfont",o.className||"",e,t]),ref:i,style:{...o.style,...n||{}},...a})}),Yu=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,trueLabel:a="",falseLabel:i="",children:o,...s})=>{const u=e===r,l=f=>{t==null||t(f.target.checked?r:n,f)};return I.jsx(ie.Checkbox,{checked:u,onChange:l,...s,children:o||(u?a:i)})},Xu=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,...a})=>{const i=e===r,o=(s,u)=>{t==null||t(s?r:n,u)};return I.jsx(ie.Switch,{checked:i,onChange:o,...a})};var Zu=typeof global=="object"&&global&&global.Object===Object&&global,Ju=typeof self=="object"&&self&&self.Object===Object&&self,Ku=Zu||Ju||Function("return this")(),$t=Ku.Symbol,Di=Object.prototype,Qu=Di.hasOwnProperty,el=Di.toString,it=$t?$t.toStringTag:void 0;function tl(e){var t=Qu.call(e,it),r=e[it];try{e[it]=void 0;var n=!0}catch{}var a=el.call(e);return n&&(t?e[it]=r:delete e[it]),a}var rl=Object.prototype,nl=rl.toString;function al(e){return nl.call(e)}var il="[object Null]",ol="[object Undefined]",aa=$t?$t.toStringTag:void 0;function sl(e){return e==null?e===void 0?ol:il:aa&&aa in Object(e)?tl(e):al(e)}function ul(e){return e!=null&&typeof e=="object"}var ll=Array.isArray;function cl(){}var fl="[object String]";function dl(e){return typeof e=="string"||!ll(e)&&ul(e)&&sl(e)==fl}const hl=O.forwardRef((e,t)=>I.jsx(ie.Button,{ref:t,...e})),pl=de(hl)`
102
+ */var un;function Zo(){return un||(un=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(a=o(a,n(u)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var u in a)t.call(a,u)&&a[u]&&(i=o(i,u));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Yt)),Yt.exports}var Qo=Zo();const pr=wt(Qo),Pr=C.forwardRef(({type:e="",className:t="",symbol:r=!1,style:n,...o},a)=>{const{iconFont:i}=C.useContext(_t);return r?D.jsx("svg",{className:pr(["iconfont-symbol",i.className||"",e,t]),"aria-hidden":"true",ref:a,style:{...i.style,...n||{}},...o,children:D.jsx("use",{xlinkHref:`#${e}`})}):D.jsx("i",{className:pr(["iconfont",i.className||"",e,t]),ref:a,style:{...i.style,...n||{}},...o})}),ei=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,trueLabel:o="",falseLabel:a="",children:i,...u})=>{const l=e===r,c=g=>{t==null||t(g.target.checked?r:n,g)};return D.jsx(te.Checkbox,{checked:l,onChange:c,...u,children:i||(l?o:a)})},ti=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,...o})=>{const a=e===r,i=(u,l)=>{t==null||t(u?r:n,l)};return D.jsx(te.Switch,{checked:a,onChange:i,...o})};var ri=typeof global=="object"&&global&&global.Object===Object&&global,ni=typeof self=="object"&&self&&self.Object===Object&&self,ai=ri||ni||Function("return this")(),St=ai.Symbol,fa=Object.prototype,oi=fa.hasOwnProperty,ii=fa.toString,Ue=St?St.toStringTag:void 0;function si(e){var t=oi.call(e,Ue),r=e[Ue];try{e[Ue]=void 0;var n=!0}catch{}var o=ii.call(e);return n&&(t?e[Ue]=r:delete e[Ue]),o}var ui=Object.prototype,ci=ui.toString;function li(e){return ci.call(e)}var fi="[object Null]",di="[object Undefined]",cn=St?St.toStringTag:void 0;function pi(e){return e==null?e===void 0?di:fi:cn&&cn in Object(e)?si(e):li(e)}function hi(e){return e!=null&&typeof e=="object"}var mi=Array.isArray;function gi(){}var vi="[object String]";function yi(e){return typeof e=="string"||!mi(e)&&hi(e)&&pi(e)==vi}const bi=C.forwardRef((e,t)=>D.jsx(te.Button,{ref:t,...e})),xi=ie(bi)`
124
103
  &&.icon-button {
125
104
  font-size: 18px;
126
105
  color: var(--color-primary);
@@ -139,14 +118,14 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
139
118
  background: var(--color-primary-bg);
140
119
  }
141
120
  }
142
- `,ml=({children:e,tooltipDisabled:t,disabled:r,disabledReason:n,title:a,...i})=>t?e:I.jsx(ie.Tooltip,{title:r&&n||a,...i,children:e}),gl=O.forwardRef((e,t)=>{const{iconButton:r}=O.useContext(Zt),{icon:n,tooltipDisabled:a=!1,title:i,hide:o=!1,disabledReason:s,onClick:u=cl,disabled:l,size:f=r.size||"small",style:d={},className:E,loading:T=!1,...w}=e,b=()=>dl(n)?I.jsx(ln,{type:n}):n,x=r.render;return n||console.warn("Icon props not found"),I.jsx(x,{...e,children:I.jsx(ml,{tooltipDisabled:a,hide:o,disabled:l,disabledReason:s,title:i,...w,children:I.jsx(pl,{ref:t,icon:b(),size:f,className:Vr(["icon-button",r.className,E]),disabled:l,style:{...r.style,...d},loading:T,onClick:u})})})});var vl=function(e){return function(t,r){var n=O.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},Ue=function(e){return typeof e=="function"},yl=function(e){return typeof e>"u"},Jt=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Ie(e){Jt&&(Ue(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=O.useRef(e);t.current=O.useMemo(function(){return e},[e]);var r=O.useRef(void 0);return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current}const zt=vl(O.useEffect);var Mi=function(e,t){var r=t.manual,n=t.ready,a=n===void 0?!0:n,i=t.defaultParams,o=i===void 0?[]:i,s=t.refreshDeps,u=s===void 0?[]:s,l=t.refreshDepsAction,f=O.useRef(!1);return f.current=!1,zt(function(){!r&&a&&(f.current=!0,e.run.apply(e,oe([],me(o),!1)))},[a]),zt(function(){f.current||r||(f.current=!0,l?l():e.refresh())},oe([],me(u),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};Mi.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function Yr(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var Li=function(e,t){var r=O.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Yr(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function cn(e){var t=O.useRef(e);return t.current=e,t}var Kt=function(e){Jt&&(Ue(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=cn(e);O.useEffect(function(){return function(){t.current()}},[])},Bt=new Map,bl=function(e,t,r){var n=Bt.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var a=void 0;t>-1&&(a=setTimeout(function(){Bt.delete(e)},t)),Bt.set(e,L(L({},r),{timer:a}))},xl=function(e){return Bt.get(e)},kt=new Map,El=function(e){return kt.get(e)},Sl=function(e,t){kt.set(e,t),t.then(function(r){return kt.delete(e),r}).catch(function(){kt.delete(e)})},Be={},Tl=function(e,t){Be[e]&&Be[e].forEach(function(r){return r(t)})},mr=function(e,t){return Be[e]||(Be[e]=[]),Be[e].push(t),function(){var n=Be[e].indexOf(t);Be[e].splice(n,1)}},wl=function(e,t){var r=t.cacheKey,n=t.cacheTime,a=n===void 0?5*60*1e3:n,i=t.staleTime,o=i===void 0?0:i,s=t.setCache,u=t.getCache,l=O.useRef(void 0),f=O.useRef(void 0),d=function(T,w){s?s(w):bl(T,a,w),Tl(T,w.data)},E=function(T,w){return w===void 0&&(w=[]),u?u(w):xl(T)};return Li(function(){if(r){var T=E(r);T&&Object.hasOwnProperty.call(T,"data")&&(e.state.data=T.data,e.state.params=T.params,(o===-1||Date.now()-T.time<=o)&&(e.state.loading=!1)),l.current=mr(r,function(w){e.setState({data:w})})}},[]),Kt(function(){var T;(T=l.current)===null||T===void 0||T.call(l)}),r?{onBefore:function(T){var w=E(r,T);return!w||!Object.hasOwnProperty.call(w,"data")?{}:o===-1||Date.now()-w.time<=o?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(T,w){var b=El(r);return b&&b!==f.current?{servicePromise:b}:(b=T.apply(void 0,oe([],me(w),!1)),f.current=b,Sl(r,b),{servicePromise:b})},onSuccess:function(T,w){var b;r&&((b=l.current)===null||b===void 0||b.call(l),d(r,{data:T,params:w,time:Date.now()}),l.current=mr(r,function(x){e.setState({data:x})}))},onMutate:function(T){var w;r&&((w=l.current)===null||w===void 0||w.call(l),d(r,{data:T,params:e.state.params,time:Date.now()}),l.current=mr(r,function(b){e.setState({data:b})}))}}:{}},gr,ia;function fn(){if(ia)return gr;ia=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return gr=e,gr}var vr,oa;function Rl(){if(oa)return vr;oa=1;var e=typeof wt=="object"&&wt&&wt.Object===Object&&wt;return vr=e,vr}var yr,sa;function ji(){if(sa)return yr;sa=1;var e=Rl(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return yr=r,yr}var br,ua;function Pl(){if(ua)return br;ua=1;var e=ji(),t=function(){return e.Date.now()};return br=t,br}var xr,la;function _l(){if(la)return xr;la=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return xr=t,xr}var Er,ca;function Ol(){if(ca)return Er;ca=1;var e=_l(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Er=r,Er}var Sr,fa;function Hi(){if(fa)return Sr;fa=1;var e=ji(),t=e.Symbol;return Sr=t,Sr}var Tr,da;function Cl(){if(da)return Tr;da=1;var e=Hi(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(o){var s=r.call(o,a),u=o[a];try{o[a]=void 0;var l=!0}catch{}var f=n.call(o);return l&&(s?o[a]=u:delete o[a]),f}return Tr=i,Tr}var wr,ha;function Al(){if(ha)return wr;ha=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return wr=r,wr}var Rr,pa;function Nl(){if(pa)return Rr;pa=1;var e=Hi(),t=Cl(),r=Al(),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)?t(s):r(s)}return Rr=o,Rr}var Pr,ma;function Il(){if(ma)return Pr;ma=1;function e(t){return t!=null&&typeof t=="object"}return Pr=e,Pr}var _r,ga;function Dl(){if(ga)return _r;ga=1;var e=Nl(),t=Il(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return _r=n,_r}var Or,va;function Ml(){if(va)return Or;va=1;var e=Ol(),t=fn(),r=Dl(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=t(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=i.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):a.test(l)?n:+l}return Or=u,Or}var Cr,ya;function Fi(){if(ya)return Cr;ya=1;var e=fn(),t=Pl(),r=Ml(),n="Expected a function",a=Math.max,i=Math.min;function o(s,u,l){var f,d,E,T,w,b,x=0,p=!1,h=!1,m=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(p=!!l.leading,h="maxWait"in l,E=h?a(r(l.maxWait)||0,u):E,m="trailing"in l?!!l.trailing:m);function v(D){var k=f,z=d;return f=d=void 0,x=D,T=s.apply(z,k),T}function c(D){return x=D,w=setTimeout(R,u),p?v(D):T}function y(D){var k=D-b,z=D-x,H=u-k;return h?i(H,E-z):H}function g(D){var k=D-b,z=D-x;return b===void 0||k>=u||k<0||h&&z>=E}function R(){var D=t();if(g(D))return C(D);w=setTimeout(R,y(D))}function C(D){return w=void 0,m&&f?v(D):(f=d=void 0,T)}function N(){w!==void 0&&clearTimeout(w),x=0,f=b=d=w=void 0}function A(){return w===void 0?T:C(t())}function F(){var D=t(),k=g(D);if(f=arguments,d=this,b=D,k){if(w===void 0)return c(b);if(h)return clearTimeout(w),w=setTimeout(R,u),v(b)}return w===void 0&&(w=setTimeout(R,u)),T}return F.cancel=N,F.flush=A,F}return Cr=o,Cr}var Ll=Fi();const jl=Gt(Ll);var Hl=function(e,t){var r=t.debounceWait,n=t.debounceLeading,a=t.debounceTrailing,i=t.debounceMaxWait,o=O.useRef(void 0),s=O.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 O.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=jl(function(l){l()},r,s),e.runAsync=function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new Promise(function(d,E){var T;(T=o.current)===null||T===void 0||T.call(o,function(){u.apply(void 0,oe([],me(l),!1)).then(d).catch(E)})})},function(){var l;(l=o.current)===null||l===void 0||l.cancel(),e.runAsync=u}}},[r,s]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},Fl=function(e,t){var r=t.loadingDelay,n=t.ready,a=O.useRef(void 0);if(!r)return{};var i=function(){a.current&&clearTimeout(a.current)};return{onBefore:function(){return i(),n!==!1&&(a.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){i()},onCancel:function(){i()}}},Qe=!!(typeof window<"u"&&window.document&&window.document.createElement);function dn(){return Qe?document.visibilityState!=="hidden":!0}var ht=[];function Bl(e){return ht.push(e),function(){var r=ht.indexOf(e);ht.splice(r,1)}}if(Qe){var kl=function(){if(dn())for(var e=0;e<ht.length;e++){var t=ht[e];t()}};window.addEventListener("visibilitychange",kl,!1)}var Ul=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,a=n===void 0?!0:n,i=t.pollingErrorRetryCount,o=i===void 0?-1:i,s=O.useRef(void 0),u=O.useRef(void 0),l=O.useRef(0),f=function(){var d;s.current&&clearTimeout(s.current),(d=u.current)===null||d===void 0||d.call(u)};return zt(function(){r||f()},[r]),r?{onBefore:function(){f()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){o===-1||o!==-1&&l.current<=o?s.current=setTimeout(function(){!a&&!dn()?u.current=Bl(function(){e.refresh()}):e.refresh()},r):l.current=0},onCancel:function(){f()}}:{}};function $l(e,t){var r=!1;return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];r||(r=!0,e.apply(void 0,oe([],me(n),!1)),setTimeout(function(){r=!1},t))}}var zl=function(){return Qe&&typeof navigator.onLine<"u"?navigator.onLine:!0},pt=[];function Gl(e){return pt.push(e),function(){var r=pt.indexOf(e);r>-1&&pt.splice(r,1)}}if(Qe){var ba=function(){if(!(!dn()||!zl()))for(var e=0;e<pt.length;e++){var t=pt[e];t()}};window.addEventListener("visibilitychange",ba,!1),window.addEventListener("focus",ba,!1)}var Wl=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,a=n===void 0?5e3:n,i=O.useRef(void 0),o=function(){var s;(s=i.current)===null||s===void 0||s.call(i)};return O.useEffect(function(){if(r){var s=$l(e.refresh.bind(e),a);i.current=Gl(function(){s()})}return function(){o()}},[r,a]),Kt(function(){o()}),{}},ql=function(e,t){var r=t.retryInterval,n=t.retryCount,a=O.useRef(void 0),i=O.useRef(0),o=O.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=r??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)}}:{}},Ar,xa;function Vl(){if(xa)return Ar;xa=1;var e=Fi(),t=fn(),r="Expected a function";function n(a,i,o){var s=!0,u=!0;if(typeof a!="function")throw new TypeError(r);return t(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 Ar=n,Ar}var Yl=Vl();const Xl=Gt(Yl);var Zl=function(e,t){var r=t.throttleWait,n=t.throttleLeading,a=t.throttleTrailing,i=O.useRef(void 0),o={};return n!==void 0&&(o.leading=n),a!==void 0&&(o.trailing=a),O.useEffect(function(){if(r){var s=e.runAsync.bind(e);return i.current=Xl(function(u){u()},r,o),e.runAsync=function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new Promise(function(f,d){var E;(E=i.current)===null||E===void 0||E.call(i,function(){s.apply(void 0,oe([],me(u),!1)).then(f).catch(d)})})},function(){var u;e.runAsync=s,(u=i.current)===null||u===void 0||u.cancel()}}},[r,n,a]),r?{onCancel:function(){var s;(s=i.current)===null||s===void 0||s.cancel()}}:{}},Jl=function(e){Jt&&(Ue(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),O.useEffect(function(){e==null||e()},[])},Kl=function(){var e=me(O.useState({}),2),t=e[1];return O.useCallback(function(){return t({})},[])},Ql=function(){function e(t,r,n,a){a===void 0&&(a={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=a,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=L(L(L({},this.state),{loading:!r.manual}),a)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=L(L({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var a=this.pluginImpls.map(function(i){var o;return(o=i[t])===null||o===void 0?void 0:o.call.apply(o,oe([i],me(r),!1))}).filter(Boolean);return Object.assign.apply(Object,oe([{}],me(a),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ds(this,void 0,void 0,function(){var n,a,i,o,s,u,l,f,d,E,T,w,b,x,p,h,m,v,c,y,g;return hs(this,function(R){switch(R.label){case 0:if(this.count+=1,n=this.count,a=this.runPluginHandler("onBefore",t),i=a.stopNow,o=i===void 0?!1:i,s=a.returnNow,u=s===void 0?!1:s,l=Je(a,["stopNow","returnNow"]),o)return[2,new Promise(function(){})];if(this.setState(L({loading:!0,params:t},l)),u)return[2,Promise.resolve(l.data)];(b=(w=this.options).onBefore)===null||b===void 0||b.call(w,t),R.label=1;case 1:return R.trys.push([1,3,,4]),f=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,f||(f=(T=this.serviceRef).current.apply(T,oe([],me(t),!1))),[4,f];case 2:return d=R.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(p=(x=this.options).onSuccess)===null||p===void 0||p.call(x,d,t),this.runPluginHandler("onSuccess",d,t),(m=(h=this.options).onFinally)===null||m===void 0||m.call(h,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(E=R.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:E,loading:!1}),(c=(v=this.options).onError)===null||c===void 0||c.call(v,E,t),this.runPluginHandler("onError",E,t),(g=(y=this.options).onFinally)===null||g===void 0||g.call(y,t,void 0,E),n===this.count&&this.runPluginHandler("onFinally",t,void 0,E),E;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,oe([],me(r),!1)).catch(function(a){t.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,oe([],me(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,oe([],me(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=Ue(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function ec(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,a=n===void 0?!1:n,i=t.ready,o=i===void 0?!0:i,s=Je(t,["manual","ready"]);Jt&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var u=L({manual:a,ready:o},s),l=cn(e),f=Kl(),d=Li(function(){var E=r.map(function(T){var w;return(w=T==null?void 0:T.onInit)===null||w===void 0?void 0:w.call(T,u)}).filter(Boolean);return new Ql(l,u,f,Object.assign.apply(Object,oe([{}],me(E),!1)))},[]);return d.options=u,d.pluginImpls=r.map(function(E){return E(d,u)}),Jl(function(){if(!a&&o){var E=d.state.params||t.defaultParams||[];d.run.apply(d,oe([],me(E),!1))}}),Kt(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:Ie(d.cancel.bind(d)),refresh:Ie(d.refresh.bind(d)),refreshAsync:Ie(d.refreshAsync.bind(d)),run:Ie(d.run.bind(d)),runAsync:Ie(d.runAsync.bind(d)),mutate:Ie(d.mutate.bind(d))}}function tc(e,t,r){return ec(e,t,oe(oe([],me(r||[]),!1),[Hl,Fl,Ul,Wl,Zl,Mi,wl,ql],!1))}function Bi(e,t){if(Qe){if(!e)return t;var r;return Ue(e)?r=e():"current"in e?r=e.current:r=e,r}}var rc=function(e){var t=function(r,n,a){var i=O.useRef(!1),o=O.useRef([]),s=O.useRef([]),u=O.useRef(void 0);e(function(){var l,f=Array.isArray(a)?a:[a],d=f.map(function(E){return Bi(E)});if(!i.current){i.current=!0,o.current=d,s.current=n,u.current=r();return}(d.length!==o.current.length||!Yr(o.current,d)||!Yr(s.current,n))&&((l=u.current)===null||l===void 0||l.call(u),o.current=d,s.current=n,u.current=r())}),Kt(function(){var l;(l=u.current)===null||l===void 0||l.call(u),i.current=!1})};return t},nc=rc(O.useEffect);function Ea(e,t,r){r===void 0&&(r={});var n=r.enable,a=n===void 0?!0:n,i=cn(t);nc(function(){if(a){var o=Bi(r.target,window);if(o!=null&&o.addEventListener){var s=function(l){return i.current(l)},u=Array.isArray(e)?e:[e];return u.forEach(function(l){o.addEventListener(l,s,{capture:r.capture,once:r.once,passive:r.passive})}),function(){u.forEach(function(l){o.removeEventListener(l,s,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,a],r.target)}var Sa="AHOOKS_SYNC_STORAGE_EVENT_NAME";function ac(e){function t(r,n){n===void 0&&(n={});var a,i=n.listenStorageChange,o=i===void 0?!1:i,s=n.onError,u=s===void 0?function(h){console.error(h)}:s;try{a=e()}catch(h){u(h)}var l=function(h){return n.serializer?n.serializer(h):JSON.stringify(h)},f=function(h){return n.deserializer?n.deserializer(h):JSON.parse(h)};function d(){try{var h=a==null?void 0:a.getItem(r);if(h)return f(h)}catch(m){u(m)}return Ue(n.defaultValue)?n.defaultValue():n.defaultValue}var E=me(O.useState(d),2),T=E[0],w=E[1];zt(function(){w(d())},[r]);var b=function(h){var m=Ue(h)?h(T):h;o||w(m);try{var v=void 0,c=a==null?void 0:a.getItem(r);yl(m)?(v=null,a==null||a.removeItem(r)):(v=l(m),a==null||a.setItem(r,v)),dispatchEvent(new CustomEvent(Sa,{detail:{key:r,newValue:v,oldValue:c,storageArea:a}}))}catch(y){u(y)}},x=function(h){h.key!==r||h.storageArea!==a||w(d())},p=function(h){x(h.detail)};return Ea("storage",x,{enable:o}),Ea(Sa,p,{enable:o}),[T,Ie(b)]}return t}var ki=ac(function(){return Qe?localStorage:void 0});const ic=({messages:e,locale:t})=>({id:r,defaultMessage:n,values:a})=>{var o;let i=((o=e==null?void 0:e[t])==null?void 0:o[r])||n;return typeof a=="object"&&Object.keys(a).forEach(s=>{i=i.replace(`{${s}}`,a[s])}),i};function qe({id:e,defaultMessage:t,values:r}){const{messages:n,locale:a}=O.useContext(sc);return ic({messages:n,locale:a})({id:e,defaultMessage:t,values:r})}const oc={locale:"zh",messages:Ci},sc=O.createContext(oc),uc=an`
121
+ `,Si=({children:e,tooltipDisabled:t,disabled:r,disabledReason:n,title:o,...a})=>t?e:D.jsx(te.Tooltip,{title:r&&n||o,...a,children:e}),Ei=C.forwardRef((e,t)=>{const{iconButton:r}=C.useContext(_t),{icon:n,tooltipDisabled:o=!1,title:a,hide:i=!1,disabledReason:u,onClick:l=gi,disabled:c,size:g=r.size||"small",style:d={},className:T,loading:E=!1,...w}=e,x=()=>yi(n)?D.jsx(Pr,{type:n}):n,S=r.render;return n||console.warn("Icon props not found"),D.jsx(S,{...e,children:D.jsx(Si,{tooltipDisabled:o,hide:i,disabled:c,disabledReason:u,title:a,...w,children:D.jsx(xi,{ref:t,icon:x(),size:g,className:pr(["icon-button",r.className,T]),disabled:c,style:{...r.style,...d},loading:E,onClick:l})})})});var wi=function(e){return function(t,r){var n=C.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},ge=function(){return ge=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ge.apply(this,arguments)};function da(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Ti(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function u(g){try{c(n.next(g))}catch(d){i(d)}}function l(g){try{c(n.throw(g))}catch(d){i(d)}}function c(g){g.done?a(g.value):o(g.value).then(u,l)}c((n=n.apply(e,t||[])).next())})}function Ri(e,t){var r={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=u(0),i.throw=u(1),i.return=u(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(g){return l([c,g])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(r=0)),r;)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 r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(g){c=[6,g],o=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function le(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(u){i={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function de(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var _e=function(e){return typeof e=="function"},Oi=function(e){return typeof e>"u"},jt=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function we(e){jt&&(_e(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=C.useRef(e);t.current=C.useMemo(function(){return e},[e]);var r=C.useRef(void 0);return r.current||(r.current=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t.current.apply(this,n)}),r.current}const Et=wi(C.useEffect);var pa=function(e,t){var r=t.manual,n=t.ready,o=n===void 0?!0:n,a=t.defaultParams,i=a===void 0?[]:a,u=t.refreshDeps,l=u===void 0?[]:u,c=t.refreshDepsAction,g=C.useRef(!1);return g.current=!1,Et(function(){!r&&o&&(g.current=!0,e.run.apply(e,de([],le(i),!1)))},[o]),Et(function(){g.current||r||(g.current=!0,c?c():e.refresh())},de([],le(l),!1)),{onBefore:function(){if(!o)return{stopNow:!0}}}};pa.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function hr(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var ha=function(e,t){var r=C.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!hr(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function Cr(e){var t=C.useRef(e);return t.current=e,t}var At=function(e){jt&&(_e(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=Cr(e);C.useEffect(function(){return function(){t.current()}},[])},yt=new Map,Pi=function(e,t,r){var n=yt.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var o=void 0;t>-1&&(o=setTimeout(function(){yt.delete(e)},t)),yt.set(e,ge(ge({},r),{timer:o}))},Ci=function(e){return yt.get(e)},bt=new Map,_i=function(e){return bt.get(e)},ji=function(e,t){bt.set(e,t),t.then(function(r){return bt.delete(e),r}).catch(function(){bt.delete(e)})},Ce={},Ai=function(e,t){Ce[e]&&Ce[e].forEach(function(r){return r(t)})},Ut=function(e,t){return Ce[e]||(Ce[e]=[]),Ce[e].push(t),function(){var n=Ce[e].indexOf(t);Ce[e].splice(n,1)}},Di=function(e,t){var r=t.cacheKey,n=t.cacheTime,o=n===void 0?5*60*1e3:n,a=t.staleTime,i=a===void 0?0:a,u=t.setCache,l=t.getCache,c=C.useRef(void 0),g=C.useRef(void 0),d=function(E,w){u?u(w):Pi(E,o,w),Ai(E,w.data)},T=function(E,w){return w===void 0&&(w=[]),l?l(w):Ci(E)};return ha(function(){if(r){var E=T(r);E&&Object.hasOwnProperty.call(E,"data")&&(e.state.data=E.data,e.state.params=E.params,(i===-1||Date.now()-E.time<=i)&&(e.state.loading=!1)),c.current=Ut(r,function(w){e.setState({data:w})})}},[]),At(function(){var E;(E=c.current)===null||E===void 0||E.call(c)}),r?{onBefore:function(E){var w=T(r,E);return!w||!Object.hasOwnProperty.call(w,"data")?{}:i===-1||Date.now()-w.time<=i?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(E,w){var x=_i(r);return x&&x!==g.current?{servicePromise:x}:(x=E.apply(void 0,de([],le(w),!1)),g.current=x,ji(r,x),{servicePromise:x})},onSuccess:function(E,w){var x;r&&((x=c.current)===null||x===void 0||x.call(c),d(r,{data:E,params:w,time:Date.now()}),c.current=Ut(r,function(S){e.setState({data:S})}))},onMutate:function(E){var w;r&&((w=c.current)===null||w===void 0||w.call(c),d(r,{data:E,params:e.state.params,time:Date.now()}),c.current=Ut(r,function(x){e.setState({data:x})}))}}:{}},Ht,ln;function _r(){if(ln)return Ht;ln=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ht=e,Ht}var Bt,fn;function Ni(){if(fn)return Bt;fn=1;var e=typeof it=="object"&&it&&it.Object===Object&&it;return Bt=e,Bt}var Vt,dn;function ma(){if(dn)return Vt;dn=1;var e=Ni(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Vt=r,Vt}var Xt,pn;function Mi(){if(pn)return Xt;pn=1;var e=ma(),t=function(){return e.Date.now()};return Xt=t,Xt}var Gt,hn;function ki(){if(hn)return Gt;hn=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Gt=t,Gt}var Kt,mn;function Ii(){if(mn)return Kt;mn=1;var e=ki(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Kt=r,Kt}var Jt,gn;function ga(){if(gn)return Jt;gn=1;var e=ma(),t=e.Symbol;return Jt=t,Jt}var Zt,vn;function $i(){if(vn)return Zt;vn=1;var e=ga(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function a(i){var u=r.call(i,o),l=i[o];try{i[o]=void 0;var c=!0}catch{}var g=n.call(i);return c&&(u?i[o]=l:delete i[o]),g}return Zt=a,Zt}var Qt,yn;function zi(){if(yn)return Qt;yn=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qt=r,Qt}var er,bn;function Li(){if(bn)return er;bn=1;var e=ga(),t=$i(),r=zi(),n="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(u){return u==null?u===void 0?o:n:a&&a in Object(u)?t(u):r(u)}return er=i,er}var tr,xn;function Fi(){if(xn)return tr;xn=1;function e(t){return t!=null&&typeof t=="object"}return tr=e,tr}var rr,Sn;function qi(){if(Sn)return rr;Sn=1;var e=Li(),t=Fi(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return rr=n,rr}var nr,En;function Wi(){if(En)return nr;En=1;var e=Ii(),t=_r(),r=qi(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var g=typeof c.valueOf=="function"?c.valueOf():c;c=t(g)?g+"":g}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=a.test(c);return d||i.test(c)?u(c.slice(2),d?2:8):o.test(c)?n:+c}return nr=l,nr}var ar,wn;function va(){if(wn)return ar;wn=1;var e=_r(),t=Mi(),r=Wi(),n="Expected a function",o=Math.max,a=Math.min;function i(u,l,c){var g,d,T,E,w,x,S=0,h=!1,f=!1,m=!0;if(typeof u!="function")throw new TypeError(n);l=r(l)||0,e(c)&&(h=!!c.leading,f="maxWait"in c,T=f?o(r(c.maxWait)||0,l):T,m="trailing"in c?!!c.trailing:m);function v(N){var L=g,W=d;return g=d=void 0,S=N,E=u.apply(W,L),E}function s(N){return S=N,w=setTimeout(R,l),h?v(N):E}function y(N){var L=N-x,W=N-S,I=l-L;return f?a(I,T-W):I}function p(N){var L=N-x,W=N-S;return x===void 0||L>=l||L<0||f&&W>=T}function R(){var N=t();if(p(N))return _(N);w=setTimeout(R,y(N))}function _(N){return w=void 0,m&&g?v(N):(g=d=void 0,E)}function A(){w!==void 0&&clearTimeout(w),S=0,g=x=d=w=void 0}function j(){return w===void 0?E:_(t())}function $(){var N=t(),L=p(N);if(g=arguments,d=this,x=N,L){if(w===void 0)return s(x);if(f)return clearTimeout(w),w=setTimeout(R,l),v(x)}return w===void 0&&(w=setTimeout(R,l)),E}return $.cancel=A,$.flush=j,$}return ar=i,ar}var Yi=va();const Ui=wt(Yi);var Hi=function(e,t){var r=t.debounceWait,n=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=C.useRef(void 0),u=C.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),o!==void 0&&(l.trailing=o),a!==void 0&&(l.maxWait=a),l},[n,o,a]);return C.useEffect(function(){if(r){var l=e.runAsync.bind(e);return i.current=Ui(function(c){c()},r,u),e.runAsync=function(){for(var c=[],g=0;g<arguments.length;g++)c[g]=arguments[g];return new Promise(function(d,T){var E;(E=i.current)===null||E===void 0||E.call(i,function(){l.apply(void 0,de([],le(c),!1)).then(d).catch(T)})})},function(){var c;(c=i.current)===null||c===void 0||c.cancel(),e.runAsync=l}}},[r,u]),r?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel()}}:{}},Bi=function(e,t){var r=t.loadingDelay,n=t.ready,o=C.useRef(void 0);if(!r)return{};var a=function(){o.current&&clearTimeout(o.current)};return{onBefore:function(){return a(),n!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}},ze=!!(typeof window<"u"&&window.document&&window.document.createElement);function jr(){return ze?document.visibilityState!=="hidden":!0}var Ze=[];function Vi(e){return Ze.push(e),function(){var r=Ze.indexOf(e);Ze.splice(r,1)}}if(ze){var Xi=function(){if(jr())for(var e=0;e<Ze.length;e++){var t=Ze[e];t()}};window.addEventListener("visibilitychange",Xi,!1)}var Gi=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,o=n===void 0?!0:n,a=t.pollingErrorRetryCount,i=a===void 0?-1:a,u=C.useRef(void 0),l=C.useRef(void 0),c=C.useRef(0),g=function(){var d;u.current&&clearTimeout(u.current),(d=l.current)===null||d===void 0||d.call(l)};return Et(function(){r||g()},[r]),r?{onBefore:function(){g()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){i===-1||i!==-1&&c.current<=i?u.current=setTimeout(function(){!o&&!jr()?l.current=Vi(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){g()}}:{}};function Ki(e,t){var r=!1;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];r||(r=!0,e.apply(void 0,de([],le(n),!1)),setTimeout(function(){r=!1},t))}}var Ji=function(){return ze&&typeof navigator.onLine<"u"?navigator.onLine:!0},Qe=[];function Zi(e){return Qe.push(e),function(){var r=Qe.indexOf(e);r>-1&&Qe.splice(r,1)}}if(ze){var Tn=function(){if(!(!jr()||!Ji()))for(var e=0;e<Qe.length;e++){var t=Qe[e];t()}};window.addEventListener("visibilitychange",Tn,!1),window.addEventListener("focus",Tn,!1)}var Qi=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,o=n===void 0?5e3:n,a=C.useRef(void 0),i=function(){var u;(u=a.current)===null||u===void 0||u.call(a)};return C.useEffect(function(){if(r){var u=Ki(e.refresh.bind(e),o);a.current=Zi(function(){u()})}return function(){i()}},[r,o]),At(function(){i()}),{}},es=function(e,t){var r=t.retryInterval,n=t.retryCount,o=C.useRef(void 0),a=C.useRef(0),i=C.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 u=r??Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh()},u)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},or,Rn;function ts(){if(Rn)return or;Rn=1;var e=va(),t=_r(),r="Expected a function";function n(o,a,i){var u=!0,l=!0;if(typeof o!="function")throw new TypeError(r);return t(i)&&(u="leading"in i?!!i.leading:u,l="trailing"in i?!!i.trailing:l),e(o,a,{leading:u,maxWait:a,trailing:l})}return or=n,or}var rs=ts();const ns=wt(rs);var as=function(e,t){var r=t.throttleWait,n=t.throttleLeading,o=t.throttleTrailing,a=C.useRef(void 0),i={};return n!==void 0&&(i.leading=n),o!==void 0&&(i.trailing=o),C.useEffect(function(){if(r){var u=e.runAsync.bind(e);return a.current=ns(function(l){l()},r,i),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(g,d){var T;(T=a.current)===null||T===void 0||T.call(a,function(){u.apply(void 0,de([],le(l),!1)).then(g).catch(d)})})},function(){var l;e.runAsync=u,(l=a.current)===null||l===void 0||l.cancel()}}},[r,n,o]),r?{onCancel:function(){var u;(u=a.current)===null||u===void 0||u.cancel()}}:{}},os=function(e){jt&&(_e(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),C.useEffect(function(){e==null||e()},[])},is=function(){var e=le(C.useState({}),2),t=e[1];return C.useCallback(function(){return t({})},[])},ss=function(){function e(t,r,n,o){o===void 0&&(o={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=ge(ge(ge({},this.state),{loading:!r.manual}),o)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=ge(ge({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=this.pluginImpls.map(function(a){var i;return(i=a[t])===null||i===void 0?void 0:i.call.apply(i,de([a],le(r),!1))}).filter(Boolean);return Object.assign.apply(Object,de([{}],le(o),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ti(this,void 0,void 0,function(){var n,o,a,i,u,l,c,g,d,T,E,w,x,S,h,f,m,v,s,y,p;return Ri(this,function(R){switch(R.label){case 0:if(this.count+=1,n=this.count,o=this.runPluginHandler("onBefore",t),a=o.stopNow,i=a===void 0?!1:a,u=o.returnNow,l=u===void 0?!1:u,c=da(o,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState(ge({loading:!0,params:t},c)),l)return[2,Promise.resolve(c.data)];(x=(w=this.options).onBefore)===null||x===void 0||x.call(w,t),R.label=1;case 1:return R.trys.push([1,3,,4]),g=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,g||(g=(E=this.serviceRef).current.apply(E,de([],le(t),!1))),[4,g];case 2:return d=R.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(h=(S=this.options).onSuccess)===null||h===void 0||h.call(S,d,t),this.runPluginHandler("onSuccess",d,t),(m=(f=this.options).onFinally)===null||m===void 0||m.call(f,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(T=R.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:T,loading:!1}),(s=(v=this.options).onError)===null||s===void 0||s.call(v,T,t),this.runPluginHandler("onError",T,t),(p=(y=this.options).onFinally)===null||p===void 0||p.call(y,t,void 0,T),n===this.count&&this.runPluginHandler("onFinally",t,void 0,T),T;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,de([],le(r),!1)).catch(function(o){t.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,de([],le(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,de([],le(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=_e(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function us(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,o=n===void 0?!1:n,a=t.ready,i=a===void 0?!0:a,u=da(t,["manual","ready"]);jt&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var l=ge({manual:o,ready:i},u),c=Cr(e),g=is(),d=ha(function(){var T=r.map(function(E){var w;return(w=E==null?void 0:E.onInit)===null||w===void 0?void 0:w.call(E,l)}).filter(Boolean);return new ss(c,l,g,Object.assign.apply(Object,de([{}],le(T),!1)))},[]);return d.options=l,d.pluginImpls=r.map(function(T){return T(d,l)}),os(function(){if(!o&&i){var T=d.state.params||t.defaultParams||[];d.run.apply(d,de([],le(T),!1))}}),At(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:we(d.cancel.bind(d)),refresh:we(d.refresh.bind(d)),refreshAsync:we(d.refreshAsync.bind(d)),run:we(d.run.bind(d)),runAsync:we(d.runAsync.bind(d)),mutate:we(d.mutate.bind(d))}}function cs(e,t,r){return us(e,t,de(de([],le(r||[]),!1),[Hi,Bi,Gi,Qi,as,pa,Di,es],!1))}function ya(e,t){if(ze){if(!e)return t;var r;return _e(e)?r=e():"current"in e?r=e.current:r=e,r}}var ls=function(e){var t=function(r,n,o){var a=C.useRef(!1),i=C.useRef([]),u=C.useRef([]),l=C.useRef(void 0);e(function(){var c,g=Array.isArray(o)?o:[o],d=g.map(function(T){return ya(T)});if(!a.current){a.current=!0,i.current=d,u.current=n,l.current=r();return}(d.length!==i.current.length||!hr(i.current,d)||!hr(u.current,n))&&((c=l.current)===null||c===void 0||c.call(l),i.current=d,u.current=n,l.current=r())}),At(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1})};return t},fs=ls(C.useEffect);function On(e,t,r){r===void 0&&(r={});var n=r.enable,o=n===void 0?!0:n,a=Cr(t);fs(function(){if(o){var i=ya(r.target,window);if(i!=null&&i.addEventListener){var u=function(c){return a.current(c)},l=Array.isArray(e)?e:[e];return l.forEach(function(c){i.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){l.forEach(function(c){i.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,o],r.target)}var Pn="AHOOKS_SYNC_STORAGE_EVENT_NAME";function ds(e){function t(r,n){n===void 0&&(n={});var o,a=n.listenStorageChange,i=a===void 0?!1:a,u=n.onError,l=u===void 0?function(f){console.error(f)}:u;try{o=e()}catch(f){l(f)}var c=function(f){return n.serializer?n.serializer(f):JSON.stringify(f)},g=function(f){return n.deserializer?n.deserializer(f):JSON.parse(f)};function d(){try{var f=o==null?void 0:o.getItem(r);if(f)return g(f)}catch(m){l(m)}return _e(n.defaultValue)?n.defaultValue():n.defaultValue}var T=le(C.useState(d),2),E=T[0],w=T[1];Et(function(){w(d())},[r]);var x=function(f){var m=_e(f)?f(E):f;i||w(m);try{var v=void 0,s=o==null?void 0:o.getItem(r);Oi(m)?(v=null,o==null||o.removeItem(r)):(v=c(m),o==null||o.setItem(r,v)),dispatchEvent(new CustomEvent(Pn,{detail:{key:r,newValue:v,oldValue:s,storageArea:o}}))}catch(y){l(y)}},S=function(f){f.key!==r||f.storageArea!==o||w(d())},h=function(f){S(f.detail)};return On("storage",S,{enable:i}),On(Pn,h,{enable:i}),[E,we(x)]}return t}var ba=ds(function(){return ze?localStorage:void 0});const ps=Tr`
143
122
  from {
144
123
  margin-top: 0;
145
124
  }
146
125
  to {
147
126
  margin-top: 32px;
148
127
  }
149
- `,lc=an`
128
+ `,hs=Tr`
150
129
  from {
151
130
  margin-top: 32px;
152
131
  margin-bottom: 0;
@@ -155,24 +134,24 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
155
134
  margin-top: 0;
156
135
  margin-bottom: 32px;
157
136
  }
158
- `;de.div`
137
+ `;ie.div`
159
138
  .ant-popover-inner-content {
160
139
  max-height: 360px;
161
140
  padding: 0;
162
141
  overflow-y: auto;
163
142
  }
164
- `;const cc=de.ul`
143
+ `;const ms=ie.ul`
165
144
  padding: 10px 0;
166
145
 
167
146
  .drag-up {
168
147
  border: solid 2px #ccc;
169
- animation: ${uc} ease 0.2s 1;
148
+ animation: ${ps} ease 0.2s 1;
170
149
  animation-fill-mode: forwards;
171
150
  }
172
151
 
173
152
  .drag-down {
174
153
  border: solid 2px #ccc;
175
- animation: ${lc} ease 0.2s 1;
154
+ animation: ${hs} ease 0.2s 1;
176
155
  animation-fill-mode: forwards;
177
156
  }
178
157
 
@@ -203,13 +182,13 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
203
182
  background-color: #f0f0f0;
204
183
  }
205
184
  }
206
- `;function fc({order:e,visibleItems:t,columns:r=[],onChangeOrder:n,columnsVisible:a,columnsSort:i,onChangeVisible:o}){const s=O.useRef(null),u=O.useRef(null),l=b=>{s.current=b.currentTarget},f=b=>{if(!u.current||!s.current)return;s.current.style.display="block",b.currentTarget.classList.remove("drag-up"),u.current.classList.remove("drag-up"),b.currentTarget.classList.remove("drag-down"),u.current.classList.remove("drag-down");const x=[...e],p=Number(s.current.dataset.index),h=Number(u.current.dataset.index);x.splice(h,0,x.splice(p,1)[0]),n(x)},d=b=>{if(b.preventDefault(),!s.current)return;s.current.style.display="none";const x=b.target;if(x.tagName!=="LI")return;const p=s.current.dataset.index,h=x.dataset.index,m=x.dataset.id;if(!m||T.includes(m)||!p||!h)return;const v=p>h?"drag-up":"drag-down";u.current&&x.dataset.index!==u.current.dataset.index&&u.current.classList.remove("drag-up","drag-down"),x.classList.contains(v)||(x.classList.add(v),u.current=x)},E=({target:{checked:b}},{dataIndex:x})=>{if(t.length===1&&!b){exports.message.error(I.jsx(qe,{id:"component.table.visibleError",defaultMessage:"列表最少保留一个字段"}));return}const p=Array.isArray(x)?x.join(","):x,h=[...t];b?h.push(p):h.splice(h.indexOf(p),1),o(h)},T=O.useMemo(()=>{const b=[];for(const x of r)if(x.columnSortDisabled&&"dataIndex"in x){let p;Array.isArray(x.dataIndex)?p=x.dataIndex.join(","):p=x.dataIndex,b.push(p)}return b},[r]),w=O.useMemo(()=>e.map((b,x)=>{let p;for(const c of r)if("dataIndex"in c){let y;if(Array.isArray(c.dataIndex)?y=c.dataIndex.join(","):y=c.dataIndex,b===y){p=c;break}}if(!p||!("dataIndex"in p))return"";const h=i&&p&&!p.columnSortDisabled;let m;p&&Array.isArray(p.dataIndex)?m=p.dataIndex.join(","):p&&(m=p.dataIndex);const v=typeof m=="string"&&t.includes(m);return p?I.jsxs("li",{draggable:h,onDragEnd:f,onDragStart:l,"data-index":x,"data-id":Array.isArray(p.dataIndex)?p.dataIndex.join(","):String(p.dataIndex),children:[i&&I.jsx(Xe.HolderOutlined,{className:"icon-drag"}),a&&I.jsx(ie.Checkbox,{style:{marginRight:"10px"},checked:!!v,disabled:p.columnVisibleDisabled,onChange:c=>{E(c,p)}}),typeof p.title=="function"?p.title({}):p.title]},Array.isArray(p.dataIndex)?p.dataIndex.join(","):String(p.dataIndex)):null}),[e,t,r,i,a]);return I.jsx(ie.Popover,{overlayClassName:"table-columns-setting-popover",content:I.jsx(cc,{onDragOver:d,children:w}),trigger:"click",align:{offset:[-60,-14]},children:I.jsx(ln,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}const dc=de.div`
185
+ `;function gs({order:e,visibleItems:t,columns:r=[],onChangeOrder:n,columnsVisible:o,columnsSort:a,onChangeVisible:i}){const u=C.useRef(null),l=C.useRef(null),c=x=>{u.current=x.currentTarget},g=x=>{if(!l.current||!u.current)return;u.current.style.display="block",x.currentTarget.classList.remove("drag-up"),l.current.classList.remove("drag-up"),x.currentTarget.classList.remove("drag-down"),l.current.classList.remove("drag-down");const S=[...e],h=Number(u.current.dataset.index),f=Number(l.current.dataset.index);S.splice(f,0,S.splice(h,1)[0]),n(S)},d=x=>{if(x.preventDefault(),!u.current)return;u.current.style.display="none";const S=x.target;if(S.tagName!=="LI")return;const h=u.current.dataset.index,f=S.dataset.index,m=S.dataset.id;if(!m||E.includes(m)||!h||!f)return;const v=h>f?"drag-up":"drag-down";l.current&&S.dataset.index!==l.current.dataset.index&&l.current.classList.remove("drag-up","drag-down"),S.classList.contains(v)||(S.classList.add(v),l.current=S)},T=({target:{checked:x}},{dataIndex:S})=>{if(t.length===1&&!x){exports.message.error(D.jsx(Me,{id:"component.table.visibleError",defaultMessage:"列表最少保留一个字段"}));return}const h=Array.isArray(S)?S.join(","):S,f=[...t];x?f.push(h):f.splice(f.indexOf(h),1),i(f)},E=C.useMemo(()=>{const x=[];for(const S of r)if(S.columnSortDisabled&&"dataIndex"in S){let h;Array.isArray(S.dataIndex)?h=S.dataIndex.join(","):h=S.dataIndex,x.push(h)}return x},[r]),w=C.useMemo(()=>e.map((x,S)=>{let h;for(const s of r)if("dataIndex"in s){let y;if(Array.isArray(s.dataIndex)?y=s.dataIndex.join(","):y=s.dataIndex,x===y){h=s;break}}if(!h||!("dataIndex"in h))return"";const f=a&&h&&!h.columnSortDisabled;let m;h&&Array.isArray(h.dataIndex)?m=h.dataIndex.join(","):h&&(m=h.dataIndex);const v=typeof m=="string"&&t.includes(m);return h?D.jsxs("li",{draggable:f,onDragEnd:g,onDragStart:c,"data-index":S,"data-id":Array.isArray(h.dataIndex)?h.dataIndex.join(","):String(h.dataIndex),children:[a&&D.jsx(Ie.HolderOutlined,{className:"icon-drag"}),o&&D.jsx(te.Checkbox,{style:{marginRight:"10px"},checked:!!v,disabled:h.columnVisibleDisabled,onChange:s=>{T(s,h)}}),typeof h.title=="function"?h.title({}):h.title]},Array.isArray(h.dataIndex)?h.dataIndex.join(","):String(h.dataIndex)):null}),[e,t,r,a,o]);return D.jsx(te.Popover,{overlayClassName:"table-columns-setting-popover",content:D.jsx(ms,{onDragOver:d,children:w}),trigger:"click",align:{offset:[-60,-14]},children:D.jsx(Pr,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}const vs=ie.div`
207
186
  position: absolute;
208
187
  left: 8px;
209
- `,hc=de.span`
188
+ `,ys=ie.span`
210
189
  font-size: 14px;
211
190
  color: #666;
212
- `;de.div`
191
+ `;ie.div`
213
192
  position: fixed;
214
193
  right: 0;
215
194
  bottom: 30px;
@@ -232,7 +211,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
232
211
  border-color: #d9d9d9;
233
212
  }
234
213
  }
235
- `;const pc=de(ie.Row)`
214
+ `;const bs=ie(te.Row)`
236
215
  position: fixed;
237
216
  right: 0;
238
217
  bottom: 30px;
@@ -255,7 +234,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
255
234
  border-color: #d9d9d9;
256
235
  }
257
236
  }
258
- `,mc=de.span`
237
+ `,xs=ie.span`
259
238
  margin-left: 20px;
260
239
  cursor: pointer;
261
240
  opacity: 0.5;
@@ -264,7 +243,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
264
243
  &:hover {
265
244
  opacity: 1;
266
245
  }
267
- `,gc={enter:"zoom-enter",enterActive:"zoom-enter-active",leaveActive:"zoom-leave-active"},vc=`
246
+ `,Ss={enter:"zoom-enter",enterActive:"zoom-enter-active",leaveActive:"zoom-leave-active"},Es=`
268
247
  .zoom-enter {
269
248
  transform: scale(0);
270
249
  }
@@ -276,9 +255,9 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
276
255
  .zoom-leave-active {
277
256
  transform: scale(0);
278
257
  }
279
- `;function yc(e){const t=O.useRef(null),{pagination:r,rowSelection:n={selectedRowKeys:[],onChange:()=>{}},dataSource:a=[],selectionPopover:i=!1}=e,o=({target:{checked:f}})=>{const{rowKey:d="id"}=e;if(!(!n||!n.onChange))if(f){const{getCheckboxProps:E}=n;let T=a;E&&(T=a.filter(b=>!E(b).disabled));const w=typeof d=="function"?d:b=>b[d];n.onChange(Array.from(T.map(w)),Array.from(T),{type:"none"})}else n.onChange([],[],{type:"none"})},s=O.useMemo(()=>{const{getCheckboxProps:f}=n;let d=a;return f&&(d=a.filter(E=>!f(E).disabled)),d.length},[a,n]),u=O.useMemo(()=>{const f=n.selectedRowKeys??[];return f.length>0&&f.length<s},[n.selectedRowKeys,s]),l=O.useMemo(()=>{const f=n.selectedRowKeys??[];return f.length>0&&f.length===s},[n.selectedRowKeys,s]);return I.jsxs(I.Fragment,{children:[I.jsx(es,{styles:vc}),I.jsxs(dc,{children:[I.jsx(Wt,{in:!!(e.rowSelection&&e.selectionPopover&&(l||u)),nodeRef:t,classNames:gc,unmountOnExit:!0,timeout:300,children:()=>{var f;return I.jsxs(pc,{ref:t,justify:"space-between",children:[I.jsx(ie.Col,{style:{display:"flex",alignItems:"center"},children:I.jsx(ie.Checkbox,{checked:l,indeterminate:u,onChange:o,children:I.jsx(qe,{id:"xmirror.component.table.selected",defaultMessage:"已选{length}条",values:{length:((f=n.selectedRowKeys)==null?void 0:f.length)??0}})})}),I.jsxs(ie.Col,{style:{display:"flex",alignItems:"center"},children:[i,I.jsx(mc,{onClick:()=>{o({target:{checked:!1}})},children:I.jsx(Xe.CloseOutlined,{})})]})]})}}),r&&I.jsx(hc,{children:r.showTotal?r.showTotal(r.total??0,[0,0]):null})]})]})}var ot={exports:{}},st={},ut={exports:{}},Nr={},It={exports:{}},Ta;function bc(){if(Ta)return It.exports;Ta=1;function e(r){var n,a,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(n=0;n<o;n++)r[n]&&(a=e(r[n]))&&(i&&(i+=" "),i+=a)}else for(a in r)r[a]&&(i&&(i+=" "),i+=a);return i}function t(){for(var r,n,a=0,i="",o=arguments.length;a<o;a++)(r=arguments[a])&&(n=e(r))&&(i&&(i+=" "),i+=n);return i}return It.exports=t,It.exports.clsx=t,It.exports}var le={},De={},wa;function Qt(){if(wa)return De;wa=1,Object.defineProperty(De,"__esModule",{value:!0}),De.dontSetMe=a,De.findInArray=e,De.int=n,De.isFunction=t,De.isNum=r;function e(i,o){for(let s=0,u=i.length;s<u;s++)if(o.apply(o,[i[s],s,i]))return i[s]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function r(i){return typeof i=="number"&&!isNaN(i)}function n(i){return parseInt(i,10)}function a(i,o,s){if(i[o])return new Error(`Invalid prop ${o} passed to ${s} - do not set this, set it on the child.`)}return De}var Me={},Ra;function xc(){if(Ra)return Me;Ra=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.browserPrefixToKey=r,Me.browserPrefixToStyle=n,Me.default=void 0,Me.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var s,u;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const o=(u=(s=window.document)==null?void 0:s.documentElement)==null?void 0:u.style;if(!o||i in o)return"";for(let l=0;l<e.length;l++)if(r(i,e[l])in o)return e[l];return""}function r(i,o){return o?`${o}${a(i)}`:i}function n(i,o){return o?`-${o.toLowerCase()}-${i}`:i}function a(i){let o="",s=!0;for(let u=0;u<i.length;u++)s?(o+=i[u].toUpperCase(),s=!1):i[u]==="-"?s=!0:o+=i[u];return o}return Me.default=t(),Me}var Pa;function hn(){if(Pa)return le;Pa=1,Object.defineProperty(le,"__esModule",{value:!0}),le.addClassName=c,le.addEvent=o,le.addUserSelectStyles=h,le.createCSSTransform=T,le.createSVGTransform=w,le.getTouch=x,le.getTouchIdentifier=p,le.getTranslation=b,le.innerHeight=f,le.innerWidth=d,le.matchesSelector=a,le.matchesSelectorAndParentsTo=i,le.offsetXYFromParent=E,le.outerHeight=u,le.outerWidth=l,le.removeClassName=y,le.removeEvent=s,le.scheduleRemoveUserSelectStyles=m;var e=Qt(),t=r(xc());function r(g,R){if(typeof WeakMap=="function")var C=new WeakMap,N=new WeakMap;return(r=function(A,F){if(!F&&A&&A.__esModule)return A;var D,k,z={__proto__:null,default:A};if(A===null||typeof A!="object"&&typeof A!="function")return z;if(D=F?N:C){if(D.has(A))return D.get(A);D.set(A,z)}for(const H in A)H!=="default"&&{}.hasOwnProperty.call(A,H)&&((k=(D=Object.defineProperty)&&Object.getOwnPropertyDescriptor(A,H))&&(k.get||k.set)?D(z,H,k):z[H]=A[H]);return z})(g,R)}let n="";function a(g,R){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(C){return(0,e.isFunction)(g[C])})),(0,e.isFunction)(g[n])?g[n](R):!1}function i(g,R,C){let N=g;do{if(a(N,R))return!0;if(N===C)return!1;N=N.parentNode}while(N);return!1}function o(g,R,C,N){if(!g)return;const A={capture:!0,...N};g.addEventListener?g.addEventListener(R,C,A):g.attachEvent?g.attachEvent("on"+R,C):g["on"+R]=C}function s(g,R,C,N){if(!g)return;const A={capture:!0,...N};g.removeEventListener?g.removeEventListener(R,C,A):g.detachEvent?g.detachEvent("on"+R,C):g["on"+R]=null}function u(g){let R=g.clientHeight;const C=g.ownerDocument.defaultView.getComputedStyle(g);return R+=(0,e.int)(C.borderTopWidth),R+=(0,e.int)(C.borderBottomWidth),R}function l(g){let R=g.clientWidth;const C=g.ownerDocument.defaultView.getComputedStyle(g);return R+=(0,e.int)(C.borderLeftWidth),R+=(0,e.int)(C.borderRightWidth),R}function f(g){let R=g.clientHeight;const C=g.ownerDocument.defaultView.getComputedStyle(g);return R-=(0,e.int)(C.paddingTop),R-=(0,e.int)(C.paddingBottom),R}function d(g){let R=g.clientWidth;const C=g.ownerDocument.defaultView.getComputedStyle(g);return R-=(0,e.int)(C.paddingLeft),R-=(0,e.int)(C.paddingRight),R}function E(g,R,C){const A=R===R.ownerDocument.body?{left:0,top:0}:R.getBoundingClientRect(),F=(g.clientX+R.scrollLeft-A.left)/C,D=(g.clientY+R.scrollTop-A.top)/C;return{x:F,y:D}}function T(g,R){const C=b(g,R,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:C}}function w(g,R){return b(g,R,"")}function b(g,R,C){let{x:N,y:A}=g,F=`translate(${N}${C},${A}${C})`;if(R){const D=`${typeof R.x=="string"?R.x:R.x+C}`,k=`${typeof R.y=="string"?R.y:R.y+C}`;F=`translate(${D}, ${k})`+F}return F}function x(g,R){return g.targetTouches&&(0,e.findInArray)(g.targetTouches,C=>R===C.identifier)||g.changedTouches&&(0,e.findInArray)(g.changedTouches,C=>R===C.identifier)}function p(g){if(g.targetTouches&&g.targetTouches[0])return g.targetTouches[0].identifier;if(g.changedTouches&&g.changedTouches[0])return g.changedTouches[0].identifier}function h(g){if(!g)return;let R=g.getElementById("react-draggable-style-el");R||(R=g.createElement("style"),R.type="text/css",R.id="react-draggable-style-el",R.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
258
+ `;function ws(e){const t=C.useRef(null),{pagination:r,rowSelection:n={selectedRowKeys:[],onChange:()=>{}},dataSource:o=[],selectionPopover:a=!1}=e,i=({target:{checked:g}})=>{const{rowKey:d="id"}=e;if(!(!n||!n.onChange))if(g){const{getCheckboxProps:T}=n;let E=o;T&&(E=o.filter(x=>!T(x).disabled));const w=typeof d=="function"?d:x=>x[d];n.onChange(Array.from(E.map(w)),Array.from(E),{type:"none"})}else n.onChange([],[],{type:"none"})},u=C.useMemo(()=>{const{getCheckboxProps:g}=n;let d=o;return g&&(d=o.filter(T=>!g(T).disabled)),d.length},[o,n]),l=C.useMemo(()=>{const g=n.selectedRowKeys??[];return g.length>0&&g.length<u},[n.selectedRowKeys,u]),c=C.useMemo(()=>{const g=n.selectedRowKeys??[];return g.length>0&&g.length===u},[n.selectedRowKeys,u]);return D.jsxs(D.Fragment,{children:[D.jsx(No,{styles:Es}),D.jsxs(vs,{children:[D.jsx(Tt,{in:!!(e.rowSelection&&e.selectionPopover&&(c||l)),nodeRef:t,classNames:Ss,unmountOnExit:!0,timeout:300,children:()=>{var g;return D.jsxs(bs,{ref:t,justify:"space-between",children:[D.jsx(te.Col,{style:{display:"flex",alignItems:"center"},children:D.jsx(te.Checkbox,{checked:c,indeterminate:l,onChange:i,children:D.jsx(Me,{id:"xmirror.component.table.selected",defaultMessage:"已选{length}条",values:{length:((g=n.selectedRowKeys)==null?void 0:g.length)??0}})})}),D.jsxs(te.Col,{style:{display:"flex",alignItems:"center"},children:[a,D.jsx(xs,{onClick:()=>{i({target:{checked:!1}})},children:D.jsx(Ie.CloseOutlined,{})})]})]})}}),r&&D.jsx(ys,{children:r.showTotal?r.showTotal(r.total??0,[0,0]):null})]})]})}var He={exports:{}},Be={},Ve={exports:{}},ir={},dt={exports:{}},Cn;function Ts(){if(Cn)return dt.exports;Cn=1;function e(r){var n,o,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(n=0;n<i;n++)r[n]&&(o=e(r[n]))&&(a&&(a+=" "),a+=o)}else for(o in r)r[o]&&(a&&(a+=" "),a+=o);return a}function t(){for(var r,n,o=0,a="",i=arguments.length;o<i;o++)(r=arguments[o])&&(n=e(r))&&(a&&(a+=" "),a+=n);return a}return dt.exports=t,dt.exports.clsx=t,dt.exports}var ne={},Te={},_n;function Dt(){if(_n)return Te;_n=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.dontSetMe=o,Te.findInArray=e,Te.int=n,Te.isFunction=t,Te.isNum=r;function e(a,i){for(let u=0,l=a.length;u<l;u++)if(i.apply(i,[a[u],u,a]))return a[u]}function t(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Function]"}function r(a){return typeof a=="number"&&!isNaN(a)}function n(a){return parseInt(a,10)}function o(a,i,u){if(a[i])return new Error(`Invalid prop ${i} passed to ${u} - do not set this, set it on the child.`)}return Te}var Re={},jn;function Rs(){if(jn)return Re;jn=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.browserPrefixToKey=r,Re.browserPrefixToStyle=n,Re.default=void 0,Re.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var u,l;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const i=(l=(u=window.document)==null?void 0:u.documentElement)==null?void 0:l.style;if(!i||a in i)return"";for(let c=0;c<e.length;c++)if(r(a,e[c])in i)return e[c];return""}function r(a,i){return i?`${i}${o(a)}`:a}function n(a,i){return i?`-${i.toLowerCase()}-${a}`:a}function o(a){let i="",u=!0;for(let l=0;l<a.length;l++)u?(i+=a[l].toUpperCase(),u=!1):a[l]==="-"?u=!0:i+=a[l];return i}return Re.default=t(),Re}var An;function Ar(){if(An)return ne;An=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.addClassName=s,ne.addEvent=i,ne.addUserSelectStyles=f,ne.createCSSTransform=E,ne.createSVGTransform=w,ne.getTouch=S,ne.getTouchIdentifier=h,ne.getTranslation=x,ne.innerHeight=g,ne.innerWidth=d,ne.matchesSelector=o,ne.matchesSelectorAndParentsTo=a,ne.offsetXYFromParent=T,ne.outerHeight=l,ne.outerWidth=c,ne.removeClassName=y,ne.removeEvent=u,ne.scheduleRemoveUserSelectStyles=m;var e=Dt(),t=r(Rs());function r(p,R){if(typeof WeakMap=="function")var _=new WeakMap,A=new WeakMap;return(r=function(j,$){if(!$&&j&&j.__esModule)return j;var N,L,W={__proto__:null,default:j};if(j===null||typeof j!="object"&&typeof j!="function")return W;if(N=$?A:_){if(N.has(j))return N.get(j);N.set(j,W)}for(const I in j)I!=="default"&&{}.hasOwnProperty.call(j,I)&&((L=(N=Object.defineProperty)&&Object.getOwnPropertyDescriptor(j,I))&&(L.get||L.set)?N(W,I,L):W[I]=j[I]);return W})(p,R)}let n="";function o(p,R){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(_){return(0,e.isFunction)(p[_])})),(0,e.isFunction)(p[n])?p[n](R):!1}function a(p,R,_){let A=p;do{if(o(A,R))return!0;if(A===_)return!1;A=A.parentNode}while(A);return!1}function i(p,R,_,A){if(!p)return;const j={capture:!0,...A};p.addEventListener?p.addEventListener(R,_,j):p.attachEvent?p.attachEvent("on"+R,_):p["on"+R]=_}function u(p,R,_,A){if(!p)return;const j={capture:!0,...A};p.removeEventListener?p.removeEventListener(R,_,j):p.detachEvent?p.detachEvent("on"+R,_):p["on"+R]=null}function l(p){let R=p.clientHeight;const _=p.ownerDocument.defaultView.getComputedStyle(p);return R+=(0,e.int)(_.borderTopWidth),R+=(0,e.int)(_.borderBottomWidth),R}function c(p){let R=p.clientWidth;const _=p.ownerDocument.defaultView.getComputedStyle(p);return R+=(0,e.int)(_.borderLeftWidth),R+=(0,e.int)(_.borderRightWidth),R}function g(p){let R=p.clientHeight;const _=p.ownerDocument.defaultView.getComputedStyle(p);return R-=(0,e.int)(_.paddingTop),R-=(0,e.int)(_.paddingBottom),R}function d(p){let R=p.clientWidth;const _=p.ownerDocument.defaultView.getComputedStyle(p);return R-=(0,e.int)(_.paddingLeft),R-=(0,e.int)(_.paddingRight),R}function T(p,R,_){const j=R===R.ownerDocument.body?{left:0,top:0}:R.getBoundingClientRect(),$=(p.clientX+R.scrollLeft-j.left)/_,N=(p.clientY+R.scrollTop-j.top)/_;return{x:$,y:N}}function E(p,R){const _=x(p,R,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:_}}function w(p,R){return x(p,R,"")}function x(p,R,_){let{x:A,y:j}=p,$=`translate(${A}${_},${j}${_})`;if(R){const N=`${typeof R.x=="string"?R.x:R.x+_}`,L=`${typeof R.y=="string"?R.y:R.y+_}`;$=`translate(${N}, ${L})`+$}return $}function S(p,R){return p.targetTouches&&(0,e.findInArray)(p.targetTouches,_=>R===_.identifier)||p.changedTouches&&(0,e.findInArray)(p.changedTouches,_=>R===_.identifier)}function h(p){if(p.targetTouches&&p.targetTouches[0])return p.targetTouches[0].identifier;if(p.changedTouches&&p.changedTouches[0])return p.changedTouches[0].identifier}function f(p){if(!p)return;let R=p.getElementById("react-draggable-style-el");R||(R=p.createElement("style"),R.type="text/css",R.id="react-draggable-style-el",R.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
280
259
  `,R.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
281
- `,g.getElementsByTagName("head")[0].appendChild(R)),g.body&&c(g.body,"react-draggable-transparent-selection")}function m(g){window.requestAnimationFrame?window.requestAnimationFrame(()=>{v(g)}):v(g)}function v(g){if(g)try{if(g.body&&y(g.body,"react-draggable-transparent-selection"),g.selection)g.selection.empty();else{const R=(g.defaultView||window).getSelection();R&&R.type!=="Caret"&&R.removeAllRanges()}}catch{}}function c(g,R){g.classList?g.classList.add(R):g.className.match(new RegExp(`(?:^|\\s)${R}(?!\\S)`))||(g.className+=` ${R}`)}function y(g,R){g.classList?g.classList.remove(R):g.className=g.className.replace(new RegExp(`(?:^|\\s)${R}(?!\\S)`,"g"),"")}return le}var Te={},_a;function Ui(){if(_a)return Te;_a=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.canDragX=a,Te.canDragY=i,Te.createCoreData=s,Te.createDraggableData=u,Te.getBoundPosition=r,Te.getControlPosition=o,Te.snapToGrid=n;var e=Qt(),t=hn();function r(d,E,T){if(!d.props.bounds)return[E,T];let{bounds:w}=d.props;w=typeof w=="string"?w:l(w);const b=f(d);if(typeof w=="string"){const{ownerDocument:x}=b,p=x.defaultView;let h;if(w==="parent"?h=b.parentNode:h=b.getRootNode().querySelector(w),!(h instanceof p.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');const m=h,v=p.getComputedStyle(b),c=p.getComputedStyle(m);w={left:-b.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(v.marginLeft),top:-b.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(v.marginTop),right:(0,t.innerWidth)(m)-(0,t.outerWidth)(b)-b.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(v.marginRight),bottom:(0,t.innerHeight)(m)-(0,t.outerHeight)(b)-b.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(v.marginBottom)}}return(0,e.isNum)(w.right)&&(E=Math.min(E,w.right)),(0,e.isNum)(w.bottom)&&(T=Math.min(T,w.bottom)),(0,e.isNum)(w.left)&&(E=Math.max(E,w.left)),(0,e.isNum)(w.top)&&(T=Math.max(T,w.top)),[E,T]}function n(d,E,T){const w=Math.round(E/d[0])*d[0],b=Math.round(T/d[1])*d[1];return[w,b]}function a(d){return d.props.axis==="both"||d.props.axis==="x"}function i(d){return d.props.axis==="both"||d.props.axis==="y"}function o(d,E,T){const w=typeof E=="number"?(0,t.getTouch)(d,E):null;if(typeof E=="number"&&!w)return null;const b=f(T),x=T.props.offsetParent||b.offsetParent||b.ownerDocument.body;return(0,t.offsetXYFromParent)(w||d,x,T.props.scale)}function s(d,E,T){const w=!(0,e.isNum)(d.lastX),b=f(d);return w?{node:b,deltaX:0,deltaY:0,lastX:E,lastY:T,x:E,y:T}:{node:b,deltaX:E-d.lastX,deltaY:T-d.lastY,lastX:d.lastX,lastY:d.lastY,x:E,y:T}}function u(d,E){const T=d.props.scale;return{node:E.node,x:d.state.x+E.deltaX/T,y:d.state.y+E.deltaY/T,deltaX:E.deltaX/T,deltaY:E.deltaY/T,lastX:d.state.x,lastY:d.state.y}}function l(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function f(d){const E=d.findDOMNode();if(!E)throw new Error("<DraggableCore>: Unmounted during event!");return E}return Te}var lt={},Dt={},Oa;function $i(){if(Oa)return Dt;Oa=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=e;function e(){}return Dt}var Ca;function Ec(){if(Ca)return lt;Ca=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.default=void 0;var e=u(O),t=s(bt()),r=s(Ge),n=hn(),a=Ui(),i=Qt(),o=s($i());function s(b){return b&&b.__esModule?b:{default:b}}function u(b,x){if(typeof WeakMap=="function")var p=new WeakMap,h=new WeakMap;return(u=function(m,v){if(!v&&m&&m.__esModule)return m;var c,y,g={__proto__:null,default:m};if(m===null||typeof m!="object"&&typeof m!="function")return g;if(c=v?h:p){if(c.has(m))return c.get(m);c.set(m,g)}for(const R in m)R!=="default"&&{}.hasOwnProperty.call(m,R)&&((y=(c=Object.defineProperty)&&Object.getOwnPropertyDescriptor(m,R))&&(y.get||y.set)?c(g,R,y):g[R]=m[R]);return g})(b,x)}function l(b,x,p){return(x=f(x))in b?Object.defineProperty(b,x,{value:p,enumerable:!0,configurable:!0,writable:!0}):b[x]=p,b}function f(b){var x=d(b,"string");return typeof x=="symbol"?x:x+""}function d(b,x){if(typeof b!="object"||!b)return b;var p=b[Symbol.toPrimitive];if(p!==void 0){var h=p.call(b,x);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(b)}const E={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let T=E.mouse,w=class extends e.Component{constructor(){super(...arguments),l(this,"dragging",!1),l(this,"lastX",NaN),l(this,"lastY",NaN),l(this,"touchIdentifier",null),l(this,"mounted",!1),l(this,"handleDragStart",x=>{if(this.props.onMouseDown(x),!this.props.allowAnyClick&&typeof x.button=="number"&&x.button!==0)return!1;const p=this.findDOMNode();if(!p||!p.ownerDocument||!p.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:h}=p;if(this.props.disabled||!(x.target instanceof h.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(x.target,this.props.handle,p)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(x.target,this.props.cancel,p))return;x.type==="touchstart"&&!this.props.allowMobileScroll&&x.preventDefault();const m=(0,n.getTouchIdentifier)(x);this.touchIdentifier=m;const v=(0,a.getControlPosition)(x,m,this);if(v==null)return;const{x:c,y}=v,g=(0,a.createCoreData)(this,c,y);(0,o.default)("DraggableCore: handleDragStart: %j",g),(0,o.default)("calling",this.props.onStart),!(this.props.onStart(x,g)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(h),this.dragging=!0,this.lastX=c,this.lastY=y,(0,n.addEvent)(h,T.move,this.handleDrag),(0,n.addEvent)(h,T.stop,this.handleDragStop))}),l(this,"handleDrag",x=>{const p=(0,a.getControlPosition)(x,this.touchIdentifier,this);if(p==null)return;let{x:h,y:m}=p;if(Array.isArray(this.props.grid)){let y=h-this.lastX,g=m-this.lastY;if([y,g]=(0,a.snapToGrid)(this.props.grid,y,g),!y&&!g)return;h=this.lastX+y,m=this.lastY+g}const v=(0,a.createCoreData)(this,h,m);if((0,o.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(x,v)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const g=document.createEvent("MouseEvents");g.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(g)}return}this.lastX=h,this.lastY=m}),l(this,"handleDragStop",x=>{if(!this.dragging)return;const p=(0,a.getControlPosition)(x,this.touchIdentifier,this);if(p==null)return;let{x:h,y:m}=p;if(Array.isArray(this.props.grid)){let g=h-this.lastX||0,R=m-this.lastY||0;[g,R]=(0,a.snapToGrid)(this.props.grid,g,R),h=this.lastX+g,m=this.lastY+R}const v=(0,a.createCoreData)(this,h,m);if(this.props.onStop(x,v)===!1||this.mounted===!1)return!1;const y=this.findDOMNode();y&&this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(y.ownerDocument),(0,o.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,y&&((0,o.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(y.ownerDocument,T.move,this.handleDrag),(0,n.removeEvent)(y.ownerDocument,T.stop,this.handleDragStop))}),l(this,"onMouseDown",x=>(T=E.mouse,this.handleDragStart(x))),l(this,"onMouseUp",x=>(T=E.mouse,this.handleDragStop(x))),l(this,"onTouchStart",x=>(T=E.touch,this.handleDragStart(x))),l(this,"onTouchEnd",x=>(T=E.touch,this.handleDragStop(x)))}componentDidMount(){this.mounted=!0;const x=this.findDOMNode();x&&(0,n.addEvent)(x,E.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const x=this.findDOMNode();if(x){const{ownerDocument:p}=x;(0,n.removeEvent)(p,E.mouse.move,this.handleDrag),(0,n.removeEvent)(p,E.touch.move,this.handleDrag),(0,n.removeEvent)(p,E.mouse.stop,this.handleDragStop),(0,n.removeEvent)(p,E.touch.stop,this.handleDragStop),(0,n.removeEvent)(x,E.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(p)}}findDOMNode(){var x,p,h;return(x=this.props)!=null&&x.nodeRef?(h=(p=this.props)==null?void 0:p.nodeRef)==null?void 0:h.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return lt.default=w,l(w,"displayName","DraggableCore"),l(w,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(b,x){if(b[x]&&b[x].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),l(w,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),lt}var Aa;function Sc(){return Aa||(Aa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=d(O),r=f(bt()),n=f(Ge),a=bc(),i=hn(),o=Ui(),s=Qt(),u=f(Ec()),l=f($i());function f(p){return p&&p.__esModule?p:{default:p}}function d(p,h){if(typeof WeakMap=="function")var m=new WeakMap,v=new WeakMap;return(d=function(c,y){if(!y&&c&&c.__esModule)return c;var g,R,C={__proto__:null,default:c};if(c===null||typeof c!="object"&&typeof c!="function")return C;if(g=y?v:m){if(g.has(c))return g.get(c);g.set(c,C)}for(const N in c)N!=="default"&&{}.hasOwnProperty.call(c,N)&&((R=(g=Object.defineProperty)&&Object.getOwnPropertyDescriptor(c,N))&&(R.get||R.set)?g(C,N,R):C[N]=c[N]);return C})(p,h)}function E(){return E=Object.assign?Object.assign.bind():function(p){for(var h=1;h<arguments.length;h++){var m=arguments[h];for(var v in m)({}).hasOwnProperty.call(m,v)&&(p[v]=m[v])}return p},E.apply(null,arguments)}function T(p,h,m){return(h=w(h))in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m,p}function w(p){var h=b(p,"string");return typeof h=="symbol"?h:h+""}function b(p,h){if(typeof p!="object"||!p)return p;var m=p[Symbol.toPrimitive];if(m!==void 0){var v=m.call(p,h);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(p)}class x extends t.Component{static getDerivedStateFromProps(h,m){let{position:v}=h,{prevPropsPosition:c}=m;return v&&(!c||v.x!==c.x||v.y!==c.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:c}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(h){super(h),T(this,"onDragStart",(m,v)=>{if((0,l.default)("Draggable: onDragStart: %j",v),this.props.onStart(m,(0,o.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),T(this,"onDrag",(m,v)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",v);const c=(0,o.createDraggableData)(this,v),y={x:c.x,y:c.y,slackX:0,slackY:0};if(this.props.bounds){const{x:R,y:C}=y;y.x+=this.state.slackX,y.y+=this.state.slackY;const[N,A]=(0,o.getBoundPosition)(this,y.x,y.y);y.x=N,y.y=A,y.slackX=this.state.slackX+(R-y.x),y.slackY=this.state.slackY+(C-y.y),c.x=y.x,c.y=y.y,c.deltaX=y.x-this.state.x,c.deltaY=y.y-this.state.y}if(this.props.onDrag(m,c)===!1)return!1;this.setState(y)}),T(this,"onDragStop",(m,v)=>{if(!this.state.dragging||this.props.onStop(m,(0,o.createDraggableData)(this,v))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",v);const y={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:R,y:C}=this.props.position;y.x=R,y.y=C}this.setState(y)}),this.state={dragging:!1,dragged:!1,x:h.position?h.position.x:h.defaultPosition.x,y:h.position?h.position.y:h.defaultPosition.y,prevPropsPosition:{...h.position},slackX:0,slackY:0,isElementSVG:!1},h.position&&!(h.onDrag||h.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var h,m;return((m=(h=this.props)==null?void 0:h.nodeRef)==null?void 0:m.current)??n.default.findDOMNode(this)}render(){const{axis:h,bounds:m,children:v,defaultPosition:c,defaultClassName:y,defaultClassNameDragging:g,defaultClassNameDragged:R,position:C,positionOffset:N,scale:A,...F}=this.props;let D={},k=null;const H=!!!C||this.state.dragging,K=C||c,ue={x:(0,o.canDragX)(this)&&H?this.state.x:K.x,y:(0,o.canDragY)(this)&&H?this.state.y:K.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(ue,N):D=(0,i.createCSSTransform)(ue,N);const ce=(0,a.clsx)(v.props.className||"",y,{[g]:this.state.dragging,[R]:this.state.dragged});return t.createElement(u.default,E({},F,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:ce,style:{...v.props.style,...D},transform:k}))}}e.default=x,T(x,"displayName","Draggable"),T(x,"propTypes",{...u.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),T(x,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Nr)),Nr}var Na;function zi(){if(Na)return ut.exports;Na=1;const{default:e,DraggableCore:t}=Sc();return ut.exports=e,ut.exports.default=e,ut.exports.DraggableCore=t,ut.exports}var Mt={},Ia;function Tc(){if(Ia)return Mt;Ia=1,Mt.__esModule=!0,Mt.cloneElement=s;var e=t(O);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,l){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(u);l&&(d=d.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),f.push.apply(f,d)}return f}function n(u){for(var l=1;l<arguments.length;l++){var f=arguments[l]!=null?arguments[l]:{};l%2?r(Object(f),!0).forEach(function(d){a(u,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):r(Object(f)).forEach(function(d){Object.defineProperty(u,d,Object.getOwnPropertyDescriptor(f,d))})}return u}function a(u,l,f){return l=i(l),l in u?Object.defineProperty(u,l,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[l]=f,u}function i(u){var l=o(u,"string");return typeof l=="symbol"?l:String(l)}function o(u,l){if(typeof u!="object"||u===null)return u;var f=u[Symbol.toPrimitive];if(f!==void 0){var d=f.call(u,l);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(u)}function s(u,l){return l.style&&u.props.style&&(l.style=n(n({},u.props.style),l.style)),l.className&&u.props.className&&(l.className=u.props.className+" "+l.className),e.default.cloneElement(u,l)}return Mt}var ct={},Da;function Gi(){if(Da)return ct;Da=1,ct.__esModule=!0,ct.resizableProps=void 0;var e=t(bt());zi();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return ct.resizableProps=r,ct}var Ma;function Wi(){if(Ma)return st;Ma=1,st.__esModule=!0,st.default=void 0;var e=o(O),t=zi(),r=Tc(),n=Gi(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(p){if(typeof WeakMap!="function")return null;var h=new WeakMap,m=new WeakMap;return(i=function(c){return c?m:h})(p)}function o(p,h){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var m=i(h);if(m&&m.has(p))return m.get(p);var v={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in p)if(y!=="default"&&Object.prototype.hasOwnProperty.call(p,y)){var g=c?Object.getOwnPropertyDescriptor(p,y):null;g&&(g.get||g.set)?Object.defineProperty(v,y,g):v[y]=p[y]}return v.default=p,m&&m.set(p,v),v}function s(){return s=Object.assign?Object.assign.bind():function(p){for(var h=1;h<arguments.length;h++){var m=arguments[h];for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(p[v]=m[v])}return p},s.apply(this,arguments)}function u(p,h){if(p==null)return{};var m={},v=Object.keys(p),c,y;for(y=0;y<v.length;y++)c=v[y],!(h.indexOf(c)>=0)&&(m[c]=p[c]);return m}function l(p,h){var m=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);h&&(v=v.filter(function(c){return Object.getOwnPropertyDescriptor(p,c).enumerable})),m.push.apply(m,v)}return m}function f(p){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?l(Object(m),!0).forEach(function(v){d(p,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(m)):l(Object(m)).forEach(function(v){Object.defineProperty(p,v,Object.getOwnPropertyDescriptor(m,v))})}return p}function d(p,h,m){return h=E(h),h in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m,p}function E(p){var h=T(p,"string");return typeof h=="symbol"?h:String(h)}function T(p,h){if(typeof p!="object"||p===null)return p;var m=p[Symbol.toPrimitive];if(m!==void 0){var v=m.call(p,h);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(p)}function w(p,h){p.prototype=Object.create(h.prototype),p.prototype.constructor=p,b(p,h)}function b(p,h){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,c){return v.__proto__=c,v},b(p,h)}var x=function(p){w(h,p);function h(){for(var v,c=arguments.length,y=new Array(c),g=0;g<c;g++)y[g]=arguments[g];return v=p.call.apply(p,[this].concat(y))||this,v.handleRefs={},v.lastHandleRect=null,v.slack=null,v}var m=h.prototype;return m.componentWillUnmount=function(){this.resetData()},m.resetData=function(){this.lastHandleRect=this.slack=null},m.runConstraints=function(c,y){var g=this.props,R=g.minConstraints,C=g.maxConstraints,N=g.lockAspectRatio;if(!R&&!C&&!N)return[c,y];if(N){var A=this.props.width/this.props.height,F=c-this.props.width,D=y-this.props.height;Math.abs(F)>Math.abs(D*A)?y=c/A:c=y*A}var k=c,z=y,H=this.slack||[0,0],K=H[0],ue=H[1];return c+=K,y+=ue,R&&(c=Math.max(R[0],c),y=Math.max(R[1],y)),C&&(c=Math.min(C[0],c),y=Math.min(C[1],y)),this.slack=[K+(k-c),ue+(z-y)],[c,y]},m.resizeHandler=function(c,y){var g=this;return function(R,C){var N=C.node,A=C.deltaX,F=C.deltaY;c==="onResizeStart"&&g.resetData();var D=(g.props.axis==="both"||g.props.axis==="x")&&y!=="n"&&y!=="s",k=(g.props.axis==="both"||g.props.axis==="y")&&y!=="e"&&y!=="w";if(!(!D&&!k)){var z=y[0],H=y[y.length-1],K=N.getBoundingClientRect();if(g.lastHandleRect!=null){if(H==="w"){var ue=K.left-g.lastHandleRect.left;A+=ue}if(z==="n"){var ce=K.top-g.lastHandleRect.top;F+=ce}}g.lastHandleRect=K,H==="w"&&(A=-A),z==="n"&&(F=-F);var S=g.props.width+(D?A/g.props.transformScale:0),_=g.props.height+(k?F/g.props.transformScale:0),M=g.runConstraints(S,_);S=M[0],_=M[1];var j=S!==g.props.width||_!==g.props.height,B=typeof g.props[c]=="function"?g.props[c]:null,$=c==="onResize"&&!j;B&&!$&&(R.persist==null||R.persist(),B(R,{node:N,size:{width:S,height:_},handle:y})),c==="onResizeStop"&&g.resetData()}}},m.renderResizeHandle=function(c,y){var g=this.props.handle;if(!g)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+c,ref:y});if(typeof g=="function")return g(c,y);var R=typeof g.type=="string",C=f({ref:y},R?{}:{handleAxis:c});return e.cloneElement(g,C)},m.render=function(){var c=this,y=this.props,g=y.children,R=y.className,C=y.draggableOpts;y.width,y.height,y.handle,y.handleSize,y.lockAspectRatio,y.axis,y.minConstraints,y.maxConstraints,y.onResize,y.onResizeStop,y.onResizeStart;var N=y.resizeHandles;y.transformScale;var A=u(y,a);return(0,r.cloneElement)(g,f(f({},A),{},{className:(R?R+" ":"")+"react-resizable",children:[].concat(g.props.children,N.map(function(F){var D,k=(D=c.handleRefs[F])!=null?D:c.handleRefs[F]=e.createRef();return e.createElement(t.DraggableCore,s({},C,{nodeRef:k,key:"resizableHandle-"+F,onStop:c.resizeHandler("onResizeStop",F),onStart:c.resizeHandler("onResizeStart",F),onDrag:c.resizeHandler("onResize",F)}),c.renderResizeHandle(F,k))}))}))},h}(e.Component);return st.default=x,x.propTypes=n.resizableProps,x.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},st}var ft={},La;function wc(){if(La)return ft;La=1,ft.__esModule=!0,ft.default=void 0;var e=s(O),t=i(bt()),r=i(Wi()),n=Gi(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(h){return h&&h.__esModule?h:{default:h}}function o(h){if(typeof WeakMap!="function")return null;var m=new WeakMap,v=new WeakMap;return(o=function(y){return y?v:m})(h)}function s(h,m){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var v=o(m);if(v&&v.has(h))return v.get(h);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in h)if(g!=="default"&&Object.prototype.hasOwnProperty.call(h,g)){var R=y?Object.getOwnPropertyDescriptor(h,g):null;R&&(R.get||R.set)?Object.defineProperty(c,g,R):c[g]=h[g]}return c.default=h,v&&v.set(h,c),c}function u(){return u=Object.assign?Object.assign.bind():function(h){for(var m=1;m<arguments.length;m++){var v=arguments[m];for(var c in v)Object.prototype.hasOwnProperty.call(v,c)&&(h[c]=v[c])}return h},u.apply(this,arguments)}function l(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(h);m&&(c=c.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),v.push.apply(v,c)}return v}function f(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?l(Object(v),!0).forEach(function(c){d(h,c,v[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):l(Object(v)).forEach(function(c){Object.defineProperty(h,c,Object.getOwnPropertyDescriptor(v,c))})}return h}function d(h,m,v){return m=E(m),m in h?Object.defineProperty(h,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[m]=v,h}function E(h){var m=T(h,"string");return typeof m=="symbol"?m:String(m)}function T(h,m){if(typeof h!="object"||h===null)return h;var v=h[Symbol.toPrimitive];if(v!==void 0){var c=v.call(h,m);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(h)}function w(h,m){if(h==null)return{};var v={},c=Object.keys(h),y,g;for(g=0;g<c.length;g++)y=c[g],!(m.indexOf(y)>=0)&&(v[y]=h[y]);return v}function b(h,m){h.prototype=Object.create(m.prototype),h.prototype.constructor=h,x(h,m)}function x(h,m){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,y){return c.__proto__=y,c},x(h,m)}var p=function(h){b(m,h);function m(){for(var c,y=arguments.length,g=new Array(y),R=0;R<y;R++)g[R]=arguments[R];return c=h.call.apply(h,[this].concat(g))||this,c.state={width:c.props.width,height:c.props.height,propsWidth:c.props.width,propsHeight:c.props.height},c.onResize=function(C,N){var A=N.size;c.props.onResize?(C.persist==null||C.persist(),c.setState(A,function(){return c.props.onResize&&c.props.onResize(C,N)})):c.setState(A)},c}m.getDerivedStateFromProps=function(y,g){return g.propsWidth!==y.width||g.propsHeight!==y.height?{width:y.width,height:y.height,propsWidth:y.width,propsHeight:y.height}:null};var v=m.prototype;return v.render=function(){var y=this.props,g=y.handle,R=y.handleSize;y.onResize;var C=y.onResizeStart,N=y.onResizeStop,A=y.draggableOpts,F=y.minConstraints,D=y.maxConstraints,k=y.lockAspectRatio,z=y.axis;y.width,y.height;var H=y.resizeHandles,K=y.style,ue=y.transformScale,ce=w(y,a);return e.createElement(r.default,{axis:z,draggableOpts:A,handle:g,handleSize:R,height:this.state.height,lockAspectRatio:k,maxConstraints:D,minConstraints:F,onResizeStart:C,onResize:this.onResize,onResizeStop:N,resizeHandles:H,transformScale:ue,width:this.state.width},e.createElement("div",u({},ce,{style:f(f({},K),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},m}(e.Component);return ft.default=p,p.propTypes=f(f({},n.resizableProps),{},{children:t.default.element}),ft}var ja;function Rc(){return ja||(ja=1,ot.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},ot.exports.Resizable=Wi().default,ot.exports.ResizableBox=wc().default),ot.exports}var Pc=Rc();const _c=e=>e?Array.isArray(e)?e.join("."):e:"",Oc=de.span`
260
+ `,p.getElementsByTagName("head")[0].appendChild(R)),p.body&&s(p.body,"react-draggable-transparent-selection")}function m(p){window.requestAnimationFrame?window.requestAnimationFrame(()=>{v(p)}):v(p)}function v(p){if(p)try{if(p.body&&y(p.body,"react-draggable-transparent-selection"),p.selection)p.selection.empty();else{const R=(p.defaultView||window).getSelection();R&&R.type!=="Caret"&&R.removeAllRanges()}}catch{}}function s(p,R){p.classList?p.classList.add(R):p.className.match(new RegExp(`(?:^|\\s)${R}(?!\\S)`))||(p.className+=` ${R}`)}function y(p,R){p.classList?p.classList.remove(R):p.className=p.className.replace(new RegExp(`(?:^|\\s)${R}(?!\\S)`,"g"),"")}return ne}var ve={},Dn;function xa(){if(Dn)return ve;Dn=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.canDragX=o,ve.canDragY=a,ve.createCoreData=u,ve.createDraggableData=l,ve.getBoundPosition=r,ve.getControlPosition=i,ve.snapToGrid=n;var e=Dt(),t=Ar();function r(d,T,E){if(!d.props.bounds)return[T,E];let{bounds:w}=d.props;w=typeof w=="string"?w:c(w);const x=g(d);if(typeof w=="string"){const{ownerDocument:S}=x,h=S.defaultView;let f;if(w==="parent"?f=x.parentNode:f=x.getRootNode().querySelector(w),!(f instanceof h.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');const m=f,v=h.getComputedStyle(x),s=h.getComputedStyle(m);w={left:-x.offsetLeft+(0,e.int)(s.paddingLeft)+(0,e.int)(v.marginLeft),top:-x.offsetTop+(0,e.int)(s.paddingTop)+(0,e.int)(v.marginTop),right:(0,t.innerWidth)(m)-(0,t.outerWidth)(x)-x.offsetLeft+(0,e.int)(s.paddingRight)-(0,e.int)(v.marginRight),bottom:(0,t.innerHeight)(m)-(0,t.outerHeight)(x)-x.offsetTop+(0,e.int)(s.paddingBottom)-(0,e.int)(v.marginBottom)}}return(0,e.isNum)(w.right)&&(T=Math.min(T,w.right)),(0,e.isNum)(w.bottom)&&(E=Math.min(E,w.bottom)),(0,e.isNum)(w.left)&&(T=Math.max(T,w.left)),(0,e.isNum)(w.top)&&(E=Math.max(E,w.top)),[T,E]}function n(d,T,E){const w=Math.round(T/d[0])*d[0],x=Math.round(E/d[1])*d[1];return[w,x]}function o(d){return d.props.axis==="both"||d.props.axis==="x"}function a(d){return d.props.axis==="both"||d.props.axis==="y"}function i(d,T,E){const w=typeof T=="number"?(0,t.getTouch)(d,T):null;if(typeof T=="number"&&!w)return null;const x=g(E),S=E.props.offsetParent||x.offsetParent||x.ownerDocument.body;return(0,t.offsetXYFromParent)(w||d,S,E.props.scale)}function u(d,T,E){const w=!(0,e.isNum)(d.lastX),x=g(d);return w?{node:x,deltaX:0,deltaY:0,lastX:T,lastY:E,x:T,y:E}:{node:x,deltaX:T-d.lastX,deltaY:E-d.lastY,lastX:d.lastX,lastY:d.lastY,x:T,y:E}}function l(d,T){const E=d.props.scale;return{node:T.node,x:d.state.x+T.deltaX/E,y:d.state.y+T.deltaY/E,deltaX:T.deltaX/E,deltaY:T.deltaY/E,lastX:d.state.x,lastY:d.state.y}}function c(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function g(d){const T=d.findDOMNode();if(!T)throw new Error("<DraggableCore>: Unmounted during event!");return T}return ve}var Xe={},pt={},Nn;function Sa(){if(Nn)return pt;Nn=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=e;function e(){}return pt}var Mn;function Os(){if(Mn)return Xe;Mn=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.default=void 0;var e=l(C),t=u(at()),r=u(De),n=Ar(),o=xa(),a=Dt(),i=u(Sa());function u(x){return x&&x.__esModule?x:{default:x}}function l(x,S){if(typeof WeakMap=="function")var h=new WeakMap,f=new WeakMap;return(l=function(m,v){if(!v&&m&&m.__esModule)return m;var s,y,p={__proto__:null,default:m};if(m===null||typeof m!="object"&&typeof m!="function")return p;if(s=v?f:h){if(s.has(m))return s.get(m);s.set(m,p)}for(const R in m)R!=="default"&&{}.hasOwnProperty.call(m,R)&&((y=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(m,R))&&(y.get||y.set)?s(p,R,y):p[R]=m[R]);return p})(x,S)}function c(x,S,h){return(S=g(S))in x?Object.defineProperty(x,S,{value:h,enumerable:!0,configurable:!0,writable:!0}):x[S]=h,x}function g(x){var S=d(x,"string");return typeof S=="symbol"?S:S+""}function d(x,S){if(typeof x!="object"||!x)return x;var h=x[Symbol.toPrimitive];if(h!==void 0){var f=h.call(x,S);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(x)}const T={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let E=T.mouse,w=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",S=>{if(this.props.onMouseDown(S),!this.props.allowAnyClick&&typeof S.button=="number"&&S.button!==0)return!1;const h=this.findDOMNode();if(!h||!h.ownerDocument||!h.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:f}=h;if(this.props.disabled||!(S.target instanceof f.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(S.target,this.props.handle,h)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(S.target,this.props.cancel,h))return;S.type==="touchstart"&&!this.props.allowMobileScroll&&S.preventDefault();const m=(0,n.getTouchIdentifier)(S);this.touchIdentifier=m;const v=(0,o.getControlPosition)(S,m,this);if(v==null)return;const{x:s,y}=v,p=(0,o.createCoreData)(this,s,y);(0,i.default)("DraggableCore: handleDragStart: %j",p),(0,i.default)("calling",this.props.onStart),!(this.props.onStart(S,p)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(f),this.dragging=!0,this.lastX=s,this.lastY=y,(0,n.addEvent)(f,E.move,this.handleDrag),(0,n.addEvent)(f,E.stop,this.handleDragStop))}),c(this,"handleDrag",S=>{const h=(0,o.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:f,y:m}=h;if(Array.isArray(this.props.grid)){let y=f-this.lastX,p=m-this.lastY;if([y,p]=(0,o.snapToGrid)(this.props.grid,y,p),!y&&!p)return;f=this.lastX+y,m=this.lastY+p}const v=(0,o.createCoreData)(this,f,m);if((0,i.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(S,v)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const p=document.createEvent("MouseEvents");p.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(p)}return}this.lastX=f,this.lastY=m}),c(this,"handleDragStop",S=>{if(!this.dragging)return;const h=(0,o.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:f,y:m}=h;if(Array.isArray(this.props.grid)){let p=f-this.lastX||0,R=m-this.lastY||0;[p,R]=(0,o.snapToGrid)(this.props.grid,p,R),f=this.lastX+p,m=this.lastY+R}const v=(0,o.createCoreData)(this,f,m);if(this.props.onStop(S,v)===!1||this.mounted===!1)return!1;const y=this.findDOMNode();y&&this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(y.ownerDocument),(0,i.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,y&&((0,i.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(y.ownerDocument,E.move,this.handleDrag),(0,n.removeEvent)(y.ownerDocument,E.stop,this.handleDragStop))}),c(this,"onMouseDown",S=>(E=T.mouse,this.handleDragStart(S))),c(this,"onMouseUp",S=>(E=T.mouse,this.handleDragStop(S))),c(this,"onTouchStart",S=>(E=T.touch,this.handleDragStart(S))),c(this,"onTouchEnd",S=>(E=T.touch,this.handleDragStop(S)))}componentDidMount(){this.mounted=!0;const S=this.findDOMNode();S&&(0,n.addEvent)(S,T.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const S=this.findDOMNode();if(S){const{ownerDocument:h}=S;(0,n.removeEvent)(h,T.mouse.move,this.handleDrag),(0,n.removeEvent)(h,T.touch.move,this.handleDrag),(0,n.removeEvent)(h,T.mouse.stop,this.handleDragStop),(0,n.removeEvent)(h,T.touch.stop,this.handleDragStop),(0,n.removeEvent)(S,T.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(h)}}findDOMNode(){var S,h,f;return(S=this.props)!=null&&S.nodeRef?(f=(h=this.props)==null?void 0:h.nodeRef)==null?void 0:f.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Xe.default=w,c(w,"displayName","DraggableCore"),c(w,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(x,S){if(x[S]&&x[S].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),c(w,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Xe}var kn;function Ps(){return kn||(kn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=d(C),r=g(at()),n=g(De),o=Ts(),a=Ar(),i=xa(),u=Dt(),l=g(Os()),c=g(Sa());function g(h){return h&&h.__esModule?h:{default:h}}function d(h,f){if(typeof WeakMap=="function")var m=new WeakMap,v=new WeakMap;return(d=function(s,y){if(!y&&s&&s.__esModule)return s;var p,R,_={__proto__:null,default:s};if(s===null||typeof s!="object"&&typeof s!="function")return _;if(p=y?v:m){if(p.has(s))return p.get(s);p.set(s,_)}for(const A in s)A!=="default"&&{}.hasOwnProperty.call(s,A)&&((R=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(s,A))&&(R.get||R.set)?p(_,A,R):_[A]=s[A]);return _})(h,f)}function T(){return T=Object.assign?Object.assign.bind():function(h){for(var f=1;f<arguments.length;f++){var m=arguments[f];for(var v in m)({}).hasOwnProperty.call(m,v)&&(h[v]=m[v])}return h},T.apply(null,arguments)}function E(h,f,m){return(f=w(f))in h?Object.defineProperty(h,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[f]=m,h}function w(h){var f=x(h,"string");return typeof f=="symbol"?f:f+""}function x(h,f){if(typeof h!="object"||!h)return h;var m=h[Symbol.toPrimitive];if(m!==void 0){var v=m.call(h,f);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(h)}class S extends t.Component{static getDerivedStateFromProps(f,m){let{position:v}=f,{prevPropsPosition:s}=m;return v&&(!s||v.x!==s.x||v.y!==s.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:s}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(f){super(f),E(this,"onDragStart",(m,v)=>{if((0,c.default)("Draggable: onDragStart: %j",v),this.props.onStart(m,(0,i.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),E(this,"onDrag",(m,v)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",v);const s=(0,i.createDraggableData)(this,v),y={x:s.x,y:s.y,slackX:0,slackY:0};if(this.props.bounds){const{x:R,y:_}=y;y.x+=this.state.slackX,y.y+=this.state.slackY;const[A,j]=(0,i.getBoundPosition)(this,y.x,y.y);y.x=A,y.y=j,y.slackX=this.state.slackX+(R-y.x),y.slackY=this.state.slackY+(_-y.y),s.x=y.x,s.y=y.y,s.deltaX=y.x-this.state.x,s.deltaY=y.y-this.state.y}if(this.props.onDrag(m,s)===!1)return!1;this.setState(y)}),E(this,"onDragStop",(m,v)=>{if(!this.state.dragging||this.props.onStop(m,(0,i.createDraggableData)(this,v))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",v);const y={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:R,y:_}=this.props.position;y.x=R,y.y=_}this.setState(y)}),this.state={dragging:!1,dragged:!1,x:f.position?f.position.x:f.defaultPosition.x,y:f.position?f.position.y:f.defaultPosition.y,prevPropsPosition:{...f.position},slackX:0,slackY:0,isElementSVG:!1},f.position&&!(f.onDrag||f.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var f,m;return((m=(f=this.props)==null?void 0:f.nodeRef)==null?void 0:m.current)??n.default.findDOMNode(this)}render(){const{axis:f,bounds:m,children:v,defaultPosition:s,defaultClassName:y,defaultClassNameDragging:p,defaultClassNameDragged:R,position:_,positionOffset:A,scale:j,...$}=this.props;let N={},L=null;const I=!!!_||this.state.dragging,X=_||s,re={x:(0,i.canDragX)(this)&&I?this.state.x:X.x,y:(0,i.canDragY)(this)&&I?this.state.y:X.y};this.state.isElementSVG?L=(0,a.createSVGTransform)(re,A):N=(0,a.createCSSTransform)(re,A);const ae=(0,o.clsx)(v.props.className||"",y,{[p]:this.state.dragging,[R]:this.state.dragged});return t.createElement(l.default,T({},$,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:ae,style:{...v.props.style,...N},transform:L}))}}e.default=S,E(S,"displayName","Draggable"),E(S,"propTypes",{...l.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),E(S,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(ir)),ir}var In;function Ea(){if(In)return Ve.exports;In=1;const{default:e,DraggableCore:t}=Ps();return Ve.exports=e,Ve.exports.default=e,Ve.exports.DraggableCore=t,Ve.exports}var ht={},$n;function Cs(){if($n)return ht;$n=1,ht.__esModule=!0,ht.cloneElement=u;var e=t(C);function t(l){return l&&l.__esModule?l:{default:l}}function r(l,c){var g=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);c&&(d=d.filter(function(T){return Object.getOwnPropertyDescriptor(l,T).enumerable})),g.push.apply(g,d)}return g}function n(l){for(var c=1;c<arguments.length;c++){var g=arguments[c]!=null?arguments[c]:{};c%2?r(Object(g),!0).forEach(function(d){o(l,d,g[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(g)):r(Object(g)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(g,d))})}return l}function o(l,c,g){return c=a(c),c in l?Object.defineProperty(l,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):l[c]=g,l}function a(l){var c=i(l,"string");return typeof c=="symbol"?c:String(c)}function i(l,c){if(typeof l!="object"||l===null)return l;var g=l[Symbol.toPrimitive];if(g!==void 0){var d=g.call(l,c);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(l)}function u(l,c){return c.style&&l.props.style&&(c.style=n(n({},l.props.style),c.style)),c.className&&l.props.className&&(c.className=l.props.className+" "+c.className),e.default.cloneElement(l,c)}return ht}var Ge={},zn;function wa(){if(zn)return Ge;zn=1,Ge.__esModule=!0,Ge.resizableProps=void 0;var e=t(at());Ea();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];var u=a[0];if(u.axis==="both"||u.axis==="y"){var l;return(l=e.default.number).isRequired.apply(l,a)}return e.default.number.apply(e.default,a)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];var u=a[0];if(u.axis==="both"||u.axis==="x"){var l;return(l=e.default.number).isRequired.apply(l,a)}return e.default.number.apply(e.default,a)}};return Ge.resizableProps=r,Ge}var Ln;function Ta(){if(Ln)return Be;Ln=1,Be.__esModule=!0,Be.default=void 0;var e=i(C),t=Ea(),r=Cs(),n=wa(),o=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(h){if(typeof WeakMap!="function")return null;var f=new WeakMap,m=new WeakMap;return(a=function(s){return s?m:f})(h)}function i(h,f){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var m=a(f);if(m&&m.has(h))return m.get(h);var v={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in h)if(y!=="default"&&Object.prototype.hasOwnProperty.call(h,y)){var p=s?Object.getOwnPropertyDescriptor(h,y):null;p&&(p.get||p.set)?Object.defineProperty(v,y,p):v[y]=h[y]}return v.default=h,m&&m.set(h,v),v}function u(){return u=Object.assign?Object.assign.bind():function(h){for(var f=1;f<arguments.length;f++){var m=arguments[f];for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(h[v]=m[v])}return h},u.apply(this,arguments)}function l(h,f){if(h==null)return{};var m={},v=Object.keys(h),s,y;for(y=0;y<v.length;y++)s=v[y],!(f.indexOf(s)>=0)&&(m[s]=h[s]);return m}function c(h,f){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);f&&(v=v.filter(function(s){return Object.getOwnPropertyDescriptor(h,s).enumerable})),m.push.apply(m,v)}return m}function g(h){for(var f=1;f<arguments.length;f++){var m=arguments[f]!=null?arguments[f]:{};f%2?c(Object(m),!0).forEach(function(v){d(h,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(m,v))})}return h}function d(h,f,m){return f=T(f),f in h?Object.defineProperty(h,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[f]=m,h}function T(h){var f=E(h,"string");return typeof f=="symbol"?f:String(f)}function E(h,f){if(typeof h!="object"||h===null)return h;var m=h[Symbol.toPrimitive];if(m!==void 0){var v=m.call(h,f);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(h)}function w(h,f){h.prototype=Object.create(f.prototype),h.prototype.constructor=h,x(h,f)}function x(h,f){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,s){return v.__proto__=s,v},x(h,f)}var S=function(h){w(f,h);function f(){for(var v,s=arguments.length,y=new Array(s),p=0;p<s;p++)y[p]=arguments[p];return v=h.call.apply(h,[this].concat(y))||this,v.handleRefs={},v.lastHandleRect=null,v.slack=null,v}var m=f.prototype;return m.componentWillUnmount=function(){this.resetData()},m.resetData=function(){this.lastHandleRect=this.slack=null},m.runConstraints=function(s,y){var p=this.props,R=p.minConstraints,_=p.maxConstraints,A=p.lockAspectRatio;if(!R&&!_&&!A)return[s,y];if(A){var j=this.props.width/this.props.height,$=s-this.props.width,N=y-this.props.height;Math.abs($)>Math.abs(N*j)?y=s/j:s=y*j}var L=s,W=y,I=this.slack||[0,0],X=I[0],re=I[1];return s+=X,y+=re,R&&(s=Math.max(R[0],s),y=Math.max(R[1],y)),_&&(s=Math.min(_[0],s),y=Math.min(_[1],y)),this.slack=[X+(L-s),re+(W-y)],[s,y]},m.resizeHandler=function(s,y){var p=this;return function(R,_){var A=_.node,j=_.deltaX,$=_.deltaY;s==="onResizeStart"&&p.resetData();var N=(p.props.axis==="both"||p.props.axis==="x")&&y!=="n"&&y!=="s",L=(p.props.axis==="both"||p.props.axis==="y")&&y!=="e"&&y!=="w";if(!(!N&&!L)){var W=y[0],I=y[y.length-1],X=A.getBoundingClientRect();if(p.lastHandleRect!=null){if(I==="w"){var re=X.left-p.lastHandleRect.left;j+=re}if(W==="n"){var ae=X.top-p.lastHandleRect.top;$+=ae}}p.lastHandleRect=X,I==="w"&&(j=-j),W==="n"&&($=-$);var b=p.props.width+(N?j/p.props.transformScale:0),P=p.props.height+(L?$/p.props.transformScale:0),M=p.runConstraints(b,P);b=M[0],P=M[1];var k=b!==p.props.width||P!==p.props.height,z=typeof p.props[s]=="function"?p.props[s]:null,q=s==="onResize"&&!k;z&&!q&&(R.persist==null||R.persist(),z(R,{node:A,size:{width:b,height:P},handle:y})),s==="onResizeStop"&&p.resetData()}}},m.renderResizeHandle=function(s,y){var p=this.props.handle;if(!p)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+s,ref:y});if(typeof p=="function")return p(s,y);var R=typeof p.type=="string",_=g({ref:y},R?{}:{handleAxis:s});return e.cloneElement(p,_)},m.render=function(){var s=this,y=this.props,p=y.children,R=y.className,_=y.draggableOpts;y.width,y.height,y.handle,y.handleSize,y.lockAspectRatio,y.axis,y.minConstraints,y.maxConstraints,y.onResize,y.onResizeStop,y.onResizeStart;var A=y.resizeHandles;y.transformScale;var j=l(y,o);return(0,r.cloneElement)(p,g(g({},j),{},{className:(R?R+" ":"")+"react-resizable",children:[].concat(p.props.children,A.map(function($){var N,L=(N=s.handleRefs[$])!=null?N:s.handleRefs[$]=e.createRef();return e.createElement(t.DraggableCore,u({},_,{nodeRef:L,key:"resizableHandle-"+$,onStop:s.resizeHandler("onResizeStop",$),onStart:s.resizeHandler("onResizeStart",$),onDrag:s.resizeHandler("onResize",$)}),s.renderResizeHandle($,L))}))}))},f}(e.Component);return Be.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Be}var Ke={},Fn;function _s(){if(Fn)return Ke;Fn=1,Ke.__esModule=!0,Ke.default=void 0;var e=u(C),t=a(at()),r=a(Ta()),n=wa(),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function a(f){return f&&f.__esModule?f:{default:f}}function i(f){if(typeof WeakMap!="function")return null;var m=new WeakMap,v=new WeakMap;return(i=function(y){return y?v:m})(f)}function u(f,m){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var v=i(m);if(v&&v.has(f))return v.get(f);var s={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in f)if(p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)){var R=y?Object.getOwnPropertyDescriptor(f,p):null;R&&(R.get||R.set)?Object.defineProperty(s,p,R):s[p]=f[p]}return s.default=f,v&&v.set(f,s),s}function l(){return l=Object.assign?Object.assign.bind():function(f){for(var m=1;m<arguments.length;m++){var v=arguments[m];for(var s in v)Object.prototype.hasOwnProperty.call(v,s)&&(f[s]=v[s])}return f},l.apply(this,arguments)}function c(f,m){var v=Object.keys(f);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(f);m&&(s=s.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),v.push.apply(v,s)}return v}function g(f){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?c(Object(v),!0).forEach(function(s){d(f,s,v[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(v)):c(Object(v)).forEach(function(s){Object.defineProperty(f,s,Object.getOwnPropertyDescriptor(v,s))})}return f}function d(f,m,v){return m=T(m),m in f?Object.defineProperty(f,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):f[m]=v,f}function T(f){var m=E(f,"string");return typeof m=="symbol"?m:String(m)}function E(f,m){if(typeof f!="object"||f===null)return f;var v=f[Symbol.toPrimitive];if(v!==void 0){var s=v.call(f,m);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(f)}function w(f,m){if(f==null)return{};var v={},s=Object.keys(f),y,p;for(p=0;p<s.length;p++)y=s[p],!(m.indexOf(y)>=0)&&(v[y]=f[y]);return v}function x(f,m){f.prototype=Object.create(m.prototype),f.prototype.constructor=f,S(f,m)}function S(f,m){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,y){return s.__proto__=y,s},S(f,m)}var h=function(f){x(m,f);function m(){for(var s,y=arguments.length,p=new Array(y),R=0;R<y;R++)p[R]=arguments[R];return s=f.call.apply(f,[this].concat(p))||this,s.state={width:s.props.width,height:s.props.height,propsWidth:s.props.width,propsHeight:s.props.height},s.onResize=function(_,A){var j=A.size;s.props.onResize?(_.persist==null||_.persist(),s.setState(j,function(){return s.props.onResize&&s.props.onResize(_,A)})):s.setState(j)},s}m.getDerivedStateFromProps=function(y,p){return p.propsWidth!==y.width||p.propsHeight!==y.height?{width:y.width,height:y.height,propsWidth:y.width,propsHeight:y.height}:null};var v=m.prototype;return v.render=function(){var y=this.props,p=y.handle,R=y.handleSize;y.onResize;var _=y.onResizeStart,A=y.onResizeStop,j=y.draggableOpts,$=y.minConstraints,N=y.maxConstraints,L=y.lockAspectRatio,W=y.axis;y.width,y.height;var I=y.resizeHandles,X=y.style,re=y.transformScale,ae=w(y,o);return e.createElement(r.default,{axis:W,draggableOpts:j,handle:p,handleSize:R,height:this.state.height,lockAspectRatio:L,maxConstraints:N,minConstraints:$,onResizeStart:_,onResize:this.onResize,onResizeStop:A,resizeHandles:I,transformScale:re,width:this.state.width},e.createElement("div",l({},ae,{style:g(g({},X),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},m}(e.Component);return Ke.default=h,h.propTypes=g(g({},n.resizableProps),{},{children:t.default.element}),Ke}var qn;function js(){return qn||(qn=1,He.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},He.exports.Resizable=Ta().default,He.exports.ResizableBox=_s().default),He.exports}var As=js();const Ds=e=>e?Array.isArray(e)?e.join("."):e:"",Ns=ie.span`
282
261
  position: absolute;
283
262
  top: 0;
284
263
  right: 0;
@@ -307,7 +286,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
307
286
  display: inline-block;
308
287
  transform: rotateZ(90deg) scale(0.3);
309
288
  }
310
- `,Cc=e=>{const{onResize:t,width:r,...n}=e,[a,i]=O.useState(!1);if(!r)return I.jsx("th",{...n});const o=u=>{i(!0)},s=u=>{i(!1)};return I.jsx(Pc.Resizable,{width:r,height:0,handle:I.jsx(Oc,{className:a?"resizing":"",onClick:u=>u.stopPropagation(),children:I.jsx(Xe.MenuOutlined,{className:"react-resizable-handle-icon"})}),onResize:t,onResizeStart:o,onResizeStop:s,draggableOpts:{enableUserSelectHack:!1},children:I.jsx("th",{...n})})},Ac=(e,t)=>{const[r,n]=ki("table-resizable_"+t,{}),a=i=>(o,{size:s})=>{const u=_c(i==null?void 0:i.dataIndex);n(l=>({...l,[u]:s.width}))};return O.useMemo(()=>e.map(i=>{let o=i.dataIndex;Array.isArray(i.dataIndex)?o=i.dataIndex.join("."):o=i.dataIndex;const s=(r==null?void 0:r[o])||i.width;return{...i,width:s,onHeaderCell:u=>({width:u.width,onResize:a(u)})}}),[e,r])},Nc=de.div`
289
+ `,Ms=e=>{const{onResize:t,width:r,...n}=e,[o,a]=C.useState(!1);if(!r)return D.jsx("th",{...n});const i=l=>{a(!0)},u=l=>{a(!1)};return D.jsx(As.Resizable,{width:r,height:0,handle:D.jsx(Ns,{className:o?"resizing":"",onClick:l=>l.stopPropagation(),children:D.jsx(Ie.MenuOutlined,{className:"react-resizable-handle-icon"})}),onResize:t,onResizeStart:i,onResizeStop:u,draggableOpts:{enableUserSelectHack:!1},children:D.jsx("th",{...n})})},ks=(e,t)=>{const[r,n]=ba("table-resizable_"+t,{}),o=a=>(i,{size:u})=>{const l=Ds(a==null?void 0:a.dataIndex);n(c=>({...c,[l]:u.width}))};return C.useMemo(()=>e.map(a=>{let i=a.dataIndex;Array.isArray(a.dataIndex)?i=a.dataIndex.join("."):i=a.dataIndex;const u=(r==null?void 0:r[i])||a.width;return{...a,width:u,onHeaderCell:l=>({width:l.width,onResize:o(l)})}}),[e,r])},Is=ie.div`
311
290
  position: relative;
312
291
 
313
292
  .ant-pagination-options {
@@ -315,7 +294,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
315
294
  width: auto !important;
316
295
  }
317
296
  }
318
- `;function Ic(e,t){const{columns:r=[],columnsSort:n,columnsVisible:a,tableId:i="",pagination:o,dataSource:s,columnsResizable:u}=e,f=location.pathname+i,[d,E]=ki("TABLE_"+f,{defaultValue:null}),[T,w]=O.useState([]),[b,x]=O.useState([]),p=O.useRef(null),h=N=>{w(N),v(N,b)},m=N=>{x(N),v(T,N)},v=(N,A)=>{E({order:N,visibleItems:A})},c=()=>{if(d)w(d.order),x(d.visibleItems);else{const N=[],A=[];for(const F of r){let D;"dataIndex"in F&&(Array.isArray(F.dataIndex)?D=F.dataIndex.join(","):D=F.dataIndex,N.push(D),"columnVisible"in F&&!F.columnVisible||A.push(D))}w(N),x(A)}},y=N=>{const A={...N},F=D=>I.jsxs("span",{children:[D,I.jsx(fc,{onChangeOrder:h,onChangeVisible:m,order:T,columnsSort:n,visibleItems:b,columns:r,columnsVisible:a})]});return typeof N.title=="function"?A.title=D=>F(N.title(D)):A.title=F(N.title),A},g=N=>N!=null&&N!==""?I.jsx(ie.Tooltip,{title:N,placement:"topLeft",children:I.jsx("span",{className:"column-ellipsis",children:N})}):"-",R=O.useMemo(()=>{let N=r;if(!n&&!a)N=r;else{const A=[];T.filter(F=>b.includes(F)).forEach((F,D,k)=>{for(const z of r)if("dataIndex"in z){let H;if(Array.isArray(z.dataIndex)?H=z.dataIndex.join(","):H=z.dataIndex,F===H){(n||a)&&D===k.length-1?A.push(y(z)):A.push(z);break}}}),N=A}return N.map(A=>{if(A.filters&&!A.filterIcon&&(A.filterIcon=I.jsx(Xe.DownOutlined,{type:"icon-xiajiantou",style:{fontWeight:500}})),A.ellipsis===!1)A.ellipsis=!1;else{const F=A.ellipsis||{};A.ellipsis={showTitle:!1,...F},A.render||(A.render=g)}return A})},[T,b,r]),C=O.useMemo(()=>e.pagination?{...o||{},showTotal:()=>s&&s.length>0&&I.jsx(yc,{...e})}:!1,[o]);return O.useEffect(()=>{c()},[]),I.jsx(Nc,{ref:t,children:I.jsx(ie.Table,{ref:p,scroll:{x:900},components:{header:{cell:u?Cc:void 0}},...e,pagination:C,columns:u?Ac(R,i):R})})}const Dc=O.forwardRef(Ic),Mc=de(ie.Form.Item)`
297
+ `;function $s(e,t){const{columns:r=[],columnsSort:n,columnsVisible:o,tableId:a="",pagination:i,dataSource:u,columnsResizable:l}=e,g=location.pathname+a,[d,T]=ba("TABLE_"+g,{defaultValue:null}),[E,w]=C.useState([]),[x,S]=C.useState([]),h=C.useRef(null),f=A=>{w(A),v(A,x)},m=A=>{S(A),v(E,A)},v=(A,j)=>{T({order:A,visibleItems:j})},s=()=>{if(d)w(d.order),S(d.visibleItems);else{const A=[],j=[];for(const $ of r){let N;"dataIndex"in $&&(Array.isArray($.dataIndex)?N=$.dataIndex.join(","):N=$.dataIndex,A.push(N),"columnVisible"in $&&!$.columnVisible||j.push(N))}w(A),S(j)}},y=A=>{const j={...A},$=N=>D.jsxs("span",{children:[N,D.jsx(gs,{onChangeOrder:f,onChangeVisible:m,order:E,columnsSort:n,visibleItems:x,columns:r,columnsVisible:o})]});return typeof A.title=="function"?j.title=N=>$(A.title(N)):j.title=$(A.title),j},p=A=>A!=null&&A!==""?D.jsx(te.Tooltip,{title:A,placement:"topLeft",children:D.jsx("span",{className:"column-ellipsis",children:A})}):"-",R=C.useMemo(()=>{let A=r;if(!n&&!o)A=r;else{const j=[];E.filter($=>x.includes($)).forEach(($,N,L)=>{for(const W of r)if("dataIndex"in W){let I;if(Array.isArray(W.dataIndex)?I=W.dataIndex.join(","):I=W.dataIndex,$===I){(n||o)&&N===L.length-1?j.push(y(W)):j.push(W);break}}}),A=j}return A.map(j=>{if(j.filters&&!j.filterIcon&&(j.filterIcon=D.jsx(Ie.DownOutlined,{type:"icon-xiajiantou",style:{fontWeight:500}})),j.ellipsis===!1)j.ellipsis=!1;else{const $=j.ellipsis||{};j.ellipsis={showTitle:!1,...$},j.render||(j.render=p)}return j})},[E,x,r]),_=C.useMemo(()=>e.pagination?{...i||{},showTotal:()=>u&&u.length>0&&D.jsx(ws,{...e})}:!1,[i]);return C.useEffect(()=>{s()},[]),D.jsx(Is,{ref:t,children:D.jsx(te.Table,{ref:h,scroll:{x:900},components:{header:{cell:l?Ms:void 0}},...e,pagination:_,columns:l?ks(R,a):R})})}const zs=C.forwardRef($s),Ls=ie(te.Form.Item)`
319
298
  margin-bottom: 0 !important;
320
299
 
321
300
  .search-item__label {
@@ -338,14 +317,14 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
338
317
  .search-item__content {
339
318
  flex: 1;
340
319
  }
341
- `;function Lc({children:e,...t}){return I.jsx(Mc,{...t,children:e})}const jc=de(Xe.CaretUpOutlined,{shouldForwardProp:e=>e!=="show"})`
320
+ `;function Fs({children:e,...t}){return D.jsx(Ls,{...t,children:e})}const qs=ie(Ie.CaretUpOutlined,{shouldForwardProp:e=>e!=="show"})`
342
321
  transition: transform 0.3s ease-in-out;
343
322
  transform: rotate(${e=>e.show?"0deg":"180deg"});
344
- `;function Hc({panel:e,onChange:t}){const r=O.useMemo(()=>e==null?void 0:e.show,[e]),n=O.useCallback(()=>{e==null||e.toggle(),t==null||t(!(e!=null&&e.show))},[e]);return I.jsxs(ie.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:n,children:[I.jsx(qe,{id:"comgponent.searcharea.togle",defaultMessage:"高级搜索"}),I.jsx(jc,{show:r})]})}const Fc=de("div",{shouldForwardProp:e=>e!=="show"})`
323
+ `;function Ws({panel:e,onChange:t}){const r=C.useMemo(()=>e==null?void 0:e.show,[e]),n=C.useCallback(()=>{e==null||e.toggle(),t==null||t(!(e!=null&&e.show))},[e]);return D.jsxs(te.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:n,children:[D.jsx(Me,{id:"comgponent.searcharea.togle",defaultMessage:"高级搜索"}),D.jsx(qs,{show:r})]})}const Ys=ie("div",{shouldForwardProp:e=>e!=="show"})`
345
324
  overflow: hidden;
346
325
  transition: max-height 0.4s ease-in-out;
347
326
  max-height: ${e=>e.show?"450px":"0"};
348
- `,Bc=de(ie.Form)`
327
+ `,Us=ie(te.Form)`
349
328
  padding: 20px;
350
329
  padding-bottom: 0;
351
330
  margin-bottom: 20px;
@@ -355,9 +334,9 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
355
334
  .ant-form-item {
356
335
  margin-bottom: 20px;
357
336
  }
358
- `,kc=de.div`
337
+ `,Hs=ie.div`
359
338
  gap: 10px;
360
339
  display: flex;
361
340
  justify-content: flex-end;
362
341
  margin-bottom: 20px;
363
- `;function Uc({children:e,onSearch:t,onClose:r,onReset:n,resetFieldsValue:a,col:i={},row:o={},loading:s=!1,instance:u,...l}){const[f]=ie.Form.useForm(),[d,E]=O.useState((u==null?void 0:u.show)??!1),T=O.useMemo(()=>(u==null?void 0:u.show)??d,[u,d]),w=O.useCallback(()=>{var h;typeof(u==null?void 0:u.toggle)=="function"?(h=u==null?void 0:u.toggle)==null||h.call(u):E(m=>!m)},[u,d]),b=()=>{const h=f.getFieldsValue();t==null||t(h)},x=()=>{a?f.setFieldsValue(a):f.resetFields(),b(),n==null||n()},p=()=>{w(),r==null||r()};return I.jsx(Fc,{show:T,children:I.jsx(Bc,{form:f,labelCol:{flex:"70px"},wrapperCol:{flex:"1",style:{maxWidth:"280px"}},...l,children:I.jsxs(ie.Row,{gutter:10,justify:"space-between",...o,children:[Array.isArray(e)?e.map(h=>O.createElement(ie.Col,{span:6,xxl:6,xl:8,lg:12,xs:24,key:h.props.name||h.key||h.props.label,...i},h)):e,I.jsx(ie.Col,{flex:1,children:I.jsxs(kc,{children:[I.jsx(ie.Button,{loading:s,type:"primary",onClick:b,children:I.jsx(qe,{id:"component.searcharea.submit",defaultMessage:"筛选"})}),I.jsx(ie.Button,{loading:s,onClick:x,children:I.jsx(qe,{id:"component.searcharea.reset",defaultMessage:"重置"})}),I.jsxs(ie.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:p,children:[I.jsx(qe,{id:"component.searcharea.close",defaultMessage:"收起"}),I.jsx(Xe.UpOutlined,{})]})]})})]})})})}const er=Uc;function $c(e){const[t,r]=O.useState(e??!1);return{show:t,toggle:()=>{r(a=>!a)}}}er.useSearchArea=$c;er.Item=Lc;er.ToggleButton=Hc;function zc(e,t,r){const n=tc(e,{...t,onError(i,o){var s;((t==null?void 0:t.errorMessage)??!0)&&exports.message.error(i.message),(s=t==null?void 0:t.onError)==null||s.call(t,i,o)}},r),a=n.data&&typeof n.data=="object"&&"data"in n.data?n.data.data:n.data;return{...n,data:a}}const Gc={ascend:"ASC",descend:"DESC"},Wc={rowKey:"id",interval:!1,immediate:!0,defaultPagination:{current:1,pageSize:10},showRowSelection:!1,multiPageSelection:!1,onBeforeRequest:async e=>{},onAfterRequest:async e=>{}};function qc(e,t={}){const r=un(),{rowKey:n,interval:a,immediate:i,defaultPagination:o,showRowSelection:s,multiPageSelection:u,onBeforeRequest:l,onAfterRequest:f}={...Wc,...t},d=O.useRef(null),[E,T]=O.useState(!1),[w,b]=O.useState([]),[x,p]=O.useState({current:1,pageSize:10,total:0,...o}),[h,m]=O.useState([]),{current:v}=O.useRef({pageNum:1,pageSize:10,column:null,order:null}),c=O.useRef(x);c.current=x;const y=Ie(async(D=1,k=10,z)=>{if(z!=="auto")T(!0),R();else if(h.length!==0){g(D,k);return}try{const H={...v,pageNum:Number(D),pageSize:Number(k)},K=await(l==null?void 0:l(H)),ce=await e(K!==void 0?K:H),{records:S,total:_,current:M,size:j}=ce.data,B=await(f==null?void 0:f(ce)),$=Array.isArray(B)?B:S;if(b($),(M!==x.current||k!==x.pageSize||_!==x.total)&&p({current:M,pageSize:j,total:_}),$.length===0&&M&&M>1&&_&&_>0){const G=Math.ceil(_/j);y(G,k,z)}else g(M,j)}catch(H){const K=H instanceof Error?H.message:"请求失败";exports.message.error(K)}finally{u||m([]),T(!1)}}),g=Ie((D,k)=>{a&&(R(),d.current===null&&(d.current=setTimeout(()=>{y(D,k,"auto")},a)))}),R=O.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),C=O.useCallback((D,k,z)=>{m(k)},[]),N=O.useCallback((D={})=>{const k={pageNum:1,pageSize:x.pageSize,column:v.column,order:v.order};Object.keys(v).forEach(z=>{z!=="column"&&z!=="order"&&z!=="pageNum"&&z!=="pageSize"&&Reflect.deleteProperty(v,z)}),Object.assign(v,k,D),y(1,x.pageSize)},[x.pageSize,y,v]),A=O.useCallback(()=>{y(c.current.current,c.current.pageSize)},[y]),F=O.useCallback((D,k,z)=>{var ce;Object.entries(k).forEach(([S,_])=>{_&&Array.isArray(_)&&_.length===1?v[S]=_[0]:v[S]=_});const H=Array.isArray(z)?z[0]:z;H!=null&&H.order?((ce=H==null?void 0:H.column)!=null&&ce.sort?v.column=H.column.sort:H.field&&(v.column=Array.isArray(H.field)?H.field[0]:H.field),v.order=Gc[H.order]):(v.column=null,v.order=null);const K=D.current??c.current.current,ue=D.pageSize??c.current.pageSize;y(K,ue)},[y,v]);return O.useEffect(()=>(i&&y(c.current.current,c.current.pageSize),()=>{R()}),[i,y,R]),{loading:E,tableProps:{rowKey:String(n),loading:E,dataSource:w,...s?{rowSelection:{selectedRowKeys:h.map(D=>D[n]),onChange:C}}:{},onChange:F,pagination:{showQuickJumper:!0,showSizeChanger:!0,showTotal:D=>r.$t({id:"component.table.total",defaultMessage:"共{total}条"},{total:D}),...x}},search:{pagination:x,params:v,submit:N,refresh:A},rowSelection:{selectedRows:h,selectedRowKeys:h.map(D=>D[n])}}}exports.App=Wu;exports.CheckboxValue=Yu;exports.ConfigContext=Zt;exports.ConfigProvider=Ii;exports.GlobalLoading=ri;exports.IconButton=gl;exports.IconFont=ln;exports.SearchArea=er;exports.SwitchValue=Xu;exports.Table=Dc;exports.useRequest=zc;exports.useTable=qc;
342
+ `;function Bs({children:e,onSearch:t,onClose:r,onReset:n,resetFieldsValue:o,col:a={},row:i={},loading:u=!1,instance:l,...c}){const[g]=te.Form.useForm(),[d,T]=C.useState((l==null?void 0:l.show)??!1),E=C.useMemo(()=>(l==null?void 0:l.show)??d,[l,d]),w=C.useCallback(()=>{var f;typeof(l==null?void 0:l.toggle)=="function"?(f=l==null?void 0:l.toggle)==null||f.call(l):T(m=>!m)},[l,d]),x=()=>{const f=g.getFieldsValue();t==null||t(f)},S=()=>{o?g.setFieldsValue(o):g.resetFields(),x(),n==null||n()},h=()=>{w(),r==null||r()};return D.jsx(Ys,{show:E,children:D.jsx(Us,{form:g,labelCol:{flex:"70px"},wrapperCol:{flex:"1",style:{maxWidth:"280px"}},...c,children:D.jsxs(te.Row,{gutter:10,justify:"space-between",...i,children:[Array.isArray(e)?e.map(f=>C.createElement(te.Col,{span:6,xxl:6,xl:8,lg:12,xs:24,key:f.props.name||f.key||f.props.label,...a},f)):e,D.jsx(te.Col,{flex:1,children:D.jsxs(Hs,{children:[D.jsx(te.Button,{loading:u,type:"primary",onClick:x,children:D.jsx(Me,{id:"component.searcharea.submit",defaultMessage:"筛选"})}),D.jsx(te.Button,{loading:u,onClick:S,children:D.jsx(Me,{id:"component.searcharea.reset",defaultMessage:"重置"})}),D.jsxs(te.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:h,children:[D.jsx(Me,{id:"component.searcharea.close",defaultMessage:"收起"}),D.jsx(Ie.UpOutlined,{})]})]})})]})})})}const Nt=Bs;function Vs(e){const[t,r]=C.useState(e??!1);return{show:t,toggle:()=>{r(o=>!o)}}}Nt.useSearchArea=Vs;Nt.Item=Fs;Nt.ToggleButton=Ws;function Xs(e,t,r){const n=cs(e,{...t,onError(a,i){var u;((t==null?void 0:t.errorMessage)??!0)&&exports.message.error(a.message),(u=t==null?void 0:t.onError)==null||u.call(t,a,i)}},r),o=n.data&&typeof n.data=="object"&&"data"in n.data?n.data.data:n.data;return{...n,data:o}}const Gs={ascend:"ASC",descend:"DESC"},Ks={rowKey:"id",interval:!1,immediate:!0,defaultPagination:{current:1,pageSize:10},showRowSelection:!1,multiPageSelection:!1,onBeforeRequest:async e=>{},onAfterRequest:async e=>{}};function Js(e,t={}){const r=Vo(),{rowKey:n,interval:o,immediate:a,defaultPagination:i,showRowSelection:u,multiPageSelection:l,onBeforeRequest:c,onAfterRequest:g}={...Ks,...t},d=C.useRef(null),[T,E]=C.useState(!1),[w,x]=C.useState([]),[S,h]=C.useState({current:1,pageSize:10,total:0,...i}),[f,m]=C.useState([]),{current:v}=C.useRef({pageNum:1,pageSize:10,column:null,order:null}),s=C.useRef(S);s.current=S;const y=we(async(N=1,L=10,W)=>{if(W!=="auto")E(!0),R();else if(f.length!==0){p(N,L);return}try{const I={...v,pageNum:Number(N),pageSize:Number(L)},X=await(c==null?void 0:c(I)),ae=await e(X!==void 0?X:I),{records:b,total:P,current:M,size:k}=ae.data,z=await(g==null?void 0:g(ae)),q=Array.isArray(z)?z:b;if(x(q),(M!==S.current||L!==S.pageSize||P!==S.total)&&h({current:M,pageSize:k,total:P}),q.length===0&&M&&M>1&&P&&P>0){const Y=Math.ceil(P/k);y(Y,L,W)}else p(M,k)}catch(I){const X=I instanceof Error?I.message:"请求失败";exports.message.error(X)}finally{l||m([]),E(!1)}}),p=we((N,L)=>{o&&(R(),d.current===null&&(d.current=setTimeout(()=>{y(N,L,"auto")},o)))}),R=C.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),_=C.useCallback((N,L,W)=>{m(L)},[]),A=C.useCallback((N={})=>{const L={pageNum:1,pageSize:S.pageSize,column:v.column,order:v.order};Object.keys(v).forEach(W=>{W!=="column"&&W!=="order"&&W!=="pageNum"&&W!=="pageSize"&&Reflect.deleteProperty(v,W)}),Object.assign(v,L,N),y(1,S.pageSize)},[S.pageSize,y,v]),j=C.useCallback(()=>{y(s.current.current,s.current.pageSize)},[y]),$=C.useCallback((N,L,W)=>{var ae;Object.entries(L).forEach(([b,P])=>{P&&Array.isArray(P)&&P.length===1?v[b]=P[0]:v[b]=P});const I=Array.isArray(W)?W[0]:W;I!=null&&I.order?((ae=I==null?void 0:I.column)!=null&&ae.sort?v.column=I.column.sort:I.field&&(v.column=Array.isArray(I.field)?I.field[0]:I.field),v.order=Gs[I.order]):(v.column=null,v.order=null);const X=N.current??s.current.current,re=N.pageSize??s.current.pageSize;y(X,re)},[y,v]);return C.useEffect(()=>(a&&y(s.current.current,s.current.pageSize),()=>{R()}),[a,y,R]),{loading:T,tableProps:{rowKey:String(n),loading:T,dataSource:w,...u?{rowSelection:{selectedRowKeys:f.map(N=>N[n]),onChange:_}}:{},onChange:$,pagination:{showQuickJumper:!0,showSizeChanger:!0,showTotal:N=>r.$t({id:"component.table.total",defaultMessage:"共{total}条"},{total:N}),...S}},search:{pagination:S,params:v,submit:A,refresh:j},rowSelection:{selectedRows:f,selectedRowKeys:f.map(N=>N[n])}}}exports.App=Jo;exports.CheckboxValue=ei;exports.ConfigContext=_t;exports.ConfigProvider=la;exports.GlobalLoading=sa;exports.IconButton=Ei;exports.IconFont=Pr;exports.SearchArea=Nt;exports.SwitchValue=ti;exports.Table=zs;exports.useRequest=Xs;exports.useTable=Js;