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

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.
Files changed (28) hide show
  1. package/build/dist/index.cjs +43 -43
  2. package/build/dist/index.mjs +1043 -1042
  3. package/build/es/components/IntlProvider/FormattedMessage/index.d.ts +7 -0
  4. package/build/es/components/IntlProvider/FormattedMessage/index.js +8 -0
  5. package/build/es/components/IntlProvider/index.d.ts +11 -0
  6. package/build/es/components/IntlProvider/index.js +16 -0
  7. package/build/es/components/IntlProvider/types.d.ts +7 -0
  8. package/build/es/components/IntlProvider/types.js +1 -0
  9. package/build/es/components/IntlProvider/useIntl/index.d.ts +14 -0
  10. package/build/es/components/IntlProvider/useIntl/index.js +26 -0
  11. package/build/es/components/SearchArea/ToggleButton/index.js +2 -2
  12. package/build/es/components/SearchArea/index.js +1 -1
  13. package/build/es/components/Table/Footer/index.js +1 -1
  14. package/build/es/components/Table/PopoverSetColumns/index.js +1 -1
  15. package/build/lib/components/IntlProvider/FormattedMessage/index.js +11 -0
  16. package/build/lib/components/IntlProvider/index.js +23 -0
  17. package/build/lib/components/IntlProvider/types.js +2 -0
  18. package/build/lib/components/IntlProvider/useIntl/index.js +31 -0
  19. package/build/lib/components/SearchArea/ToggleButton/index.js +2 -2
  20. package/build/lib/components/SearchArea/index.js +4 -4
  21. package/build/lib/components/Table/Footer/index.js +2 -2
  22. package/build/lib/components/Table/PopoverSetColumns/index.js +2 -2
  23. package/build/package.json +1 -1
  24. package/build/types/components/IntlProvider/FormattedMessage/index.d.ts +7 -0
  25. package/build/types/components/IntlProvider/index.d.ts +11 -0
  26. package/build/types/components/IntlProvider/types.d.ts +7 -0
  27. package/build/types/components/IntlProvider/useIntl/index.d.ts +14 -0
  28. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),ie=require("antd"),qe=require("react-dom"),Ze=require("@ant-design/icons");function Vi(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 X=Vi(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 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={};/**
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 mn;function Yi(){if(mn)return tt;mn=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 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={};/**
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 gn;function Xi(){return gn||(gn=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 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:
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 vn;function Zi(){return vn||(vn=1,process.env.NODE_ENV==="production"?Rt.exports=Yi():Rt.exports=Xi()),Rt.exports}var I=Zi();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 Fa(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 Dr(e,t){return Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Dr(e,t)}function Ba(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dr(e,t)}var Pt={exports:{}},_t={exports:{}},te={};/** @license React v16.13.1
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
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 yn;function Ji(){if(yn)return te;yn=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 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
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 bn;function Ki(){return bn||(bn=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 xn;function ka(){return xn||(xn=1,process.env.NODE_ENV==="production"?_t.exports=Ji():_t.exports=Ki()),_t.exports}/*
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}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var rr,En;function Qi(){if(En)return rr;En=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 rr=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},rr}var nr,Sn;function Jr(){if(Sn)return nr;Sn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return nr=e,nr}var ar,Tn;function Ua(){return Tn||(Tn=1,ar=Function.call.bind(Object.prototype.hasOwnProperty)),ar}var ir,wn;function eo(){if(wn)return ir;wn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Jr(),r={},n=Ua();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={})},ir=a,ir}var or,Rn;function to(){if(Rn)return or;Rn=1;var e=ka(),t=Qi(),r=Jr(),n=Ua(),a=eo(),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 or=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},or}var sr,Pn;function ro(){if(Pn)return sr;Pn=1;var e=Jr();function t(){}function r(){}return r.resetWarningCache=t,sr=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},sr}var _n;function bt(){if(_n)return Pt.exports;if(_n=1,process.env.NODE_ENV!=="production"){var e=ka(),t=!0;Pt.exports=to()(e.isElement,t)}else Pt.exports=ro()();return Pt.exports}var no=bt();const W=Gt(no);function ao(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function io(e,t){e.classList?e.classList.add(t):ao(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function On(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function oo(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=On(e.className,t):e.setAttribute("class",On(e.className&&e.className.baseVal||"",t))}const Cn={disabled:!1};var so=process.env.NODE_ENV!=="production"?W.oneOfType([W.number,W.shape({enter:W.number,exit:W.number,appear:W.number}).isRequired]):null,uo=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 $a=O.createContext(null);var za=function(t){return t.scrollTop},dt="unmounted",Fe="exited",Be="entering",We="entered",Mr="exiting",Ae=function(e){Ba(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=Fe,i.appearStatus=Be):u=We:n.unmountOnExit||n.mountOnEnter?u=dt:u=Fe,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===dt?{status:Fe}: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!==Be&&o!==We&&(i=Be):(o===Be||o===We)&&(i=Mr)}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===Be){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:qe.findDOMNode(this);o&&za(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fe&&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]:[qe.findDOMNode(this),s],l=u[0],f=u[1],d=this.getTimeouts(),E=s?d.appear:d.enter;if(!a&&!o||Cn.disabled){this.safeSetState({status:We},function(){i.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:Be},function(){i.props.onEntering(l,f),i.onTransitionEnd(E,function(){i.safeSetState({status:We},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:qe.findDOMNode(this);if(!i||Cn.disabled){this.safeSetState({status:Fe},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Mr},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Fe},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:qe.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=Fa(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement($a.Provider,{value:null},typeof o=="function"?o(a,s):O.cloneElement(O.Children.only(o),s))},t}(O.Component);Ae.contextType=$a;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=so;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 Ge(){}Ae.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ge,onEntering:Ge,onEntered:Ge,onExit:Ge,onExiting:Ge,onExited:Ge};Ae.UNMOUNTED=dt;Ae.EXITED=Fe;Ae.ENTERING=Be;Ae.ENTERED=We;Ae.EXITING=Mr;var lo=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return io(t,n)})},ur=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return oo(t,n)})},Wt=function(e){Ba(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&&za(a),s&&(this.appliedClasses[i][o]=s,lo(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&&ur(a,s),u&&ur(a,u),l&&ur(a,l)},r.render=function(){var a=this.props;a.classNames;var i=Fa(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:uo,onEnter:W.func,onEntering:W.func,onEntered:W.func,onExit:W.func,onExiting:W.func,onExited:W.func}):{};function co(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 fo(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 ho=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(fo(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=co(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-",Ga="comm",Kr="rule",Qr="decl",po="@import",Wa="@keyframes",mo="@layer",go=Math.abs,qt=String.fromCharCode,vo=Object.assign;function yo(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 qa(e){return e.trim()}function bo(e,t){return(e=t.exec(e))?e[0]:e}function ee(e,t,r){return e.replace(t,r)}function Lr(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 en(e){return e.length}function Ot(e,t){return t.push(e),e}function xo(e,t){return e.map(t).join("")}var Vt=1,Ye=1,Va=0,be=0,fe=0,Je="";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:Ye,length:o,return:""}}function nt(e,t){return vo(Yt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Eo(){return fe}function So(){return fe=be>0?pe(Je,--be):0,Ye--,fe===10&&(Ye=1,Vt--),fe}function xe(){return fe=be<Va?pe(Je,be++):0,Ye++,fe===10&&(Ye=1,Vt++),fe}function Oe(){return pe(Je,be)}function Lt(){return be}function xt(e,t){return gt(Je,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 Ya(e){return Vt=Ye=1,Va=Pe(Je=e),be=0,[]}function Xa(e){return Je="",e}function jt(e){return qa(xt(be-1,jr(e===91?e+2:e===40?e+1:e)))}function To(e){for(;(fe=Oe())&&fe<33;)xe();return vt(e)>2||vt(fe)>3?"":" "}function wo(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 jr(e){for(;xe();)switch(fe){case e:return be;case 34:case 39:e!==34&&e!==39&&jr(fe);break;case 40:e===41&&jr(e);break;case 92:xe();break}return be}function Ro(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 Po(e){for(;!vt(Oe());)xe();return xt(e,be)}function _o(e){return Xa(Ht("",null,null,null,[""],e=Ya(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){Lr(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+=To(w);break;case 92:g+=wo(Lt()-1,7);continue;case 47:switch(Oe()){case 42:case 47:Ot(Oo(Ro(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?Nn(g+";",n,r,d-1):Nn(ee(g," ","")+";",n,r,d-2),u);break;case 59:g+=";";default:if(Ot(y=An(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(An(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&&So()==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+=Po(Lt())),h++;break;case 45:w===45&&Pe(g)==2&&(b=0)}}return i}function An(e,t,r,n,a,i,o,s,u,l,f){for(var d=a-1,E=a===0?i:[""],T=en(E),w=0,b=0,x=0;w<n;++w)for(var p=0,h=gt(e,d+1,d=go(b=o[w])),m=e;p<T;++p)(m=qa(b>0?E[p]+" "+h:ee(h,/&\f/g,E[p])))&&(u[x++]=m);return Yt(e,t,r,a===0?Kr:s,u,l,f)}function Oo(e,t,r){return Yt(e,t,r,Ga,qt(Eo()),gt(e,2,-2),0)}function Nn(e,t,r,n){return Yt(e,t,r,Qr,gt(e,0,n),gt(e,n+1,-1),n)}function Ve(e,t){for(var r="",n=en(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Co(e,t,r,n){switch(e.type){case mo:if(e.children.length)break;case po:case Qr:return e.return=e.return||e.value;case Ga:return"";case Wa:return e.return=e.value+"{"+Ve(e.children,n)+"}";case Kr:e.value=e.props.join(",")}return Pe(r=Ve(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ao(e){var t=en(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 No(e){return function(t){t.root||(t=t.return)&&e(t)}}function Za(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Io=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)},Do=function(t,r){var n=-1,a=44;do switch(vt(a)){case 0:a===38&&Oe()===12&&(r[n]=1),t[n]+=Io(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},Mo=function(t,r){return Xa(Do(Ya(t),r))},In=new WeakMap,Lo=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&&!In.get(n))&&!a){In.set(t,!0);for(var i=[],o=Mo(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]}}},jo=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ja(e,t){switch(yo(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~Lr(e,"stretch")?Ja(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-(~Lr(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 Ho=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Qr:t.return=Ja(t.value,t.length);break;case Wa:return Ve([nt(t,{value:ee(t.value,"@","@"+Q)})],a);case Kr:if(t.length)return xo(t.props,function(i){switch(bo(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ve([nt(t,{props:[ee(i,/:(read-\w+)/,":"+Ut+"$1")]})],a);case"::placeholder":return Ve([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""})}},Fo=[Ho],Bo=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||Fo,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=[Lo,jo];{var f,d=[Co,No(function(b){f.insert(b)})],E=Ao(l.concat(a,d)),T=function(x){return Ve(_o(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 ho({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 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
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 Dn;function ko(){if(Dn)return ne;Dn=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 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
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 Mn;function Uo(){return Mn||(Mn=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 Ln;function $o(){return Ln||(Ln=1,process.env.NODE_ENV==="production"?Ct.exports=ko():Ct.exports=Uo()),Ct.exports}var lr,jn;function zo(){if(jn)return lr;jn=1;var e=$o(),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 lr=T,lr}zo();var Go=!0;function Ka(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var tn=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Go===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},rn=function(t,r,n){tn(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 Wo(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 qo={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},Vo=/[A-Z]|^ms/g,Yo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qa=function(t){return t.charCodeAt(1)===45},Hn=function(t){return t!=null&&typeof t!="boolean"},cr=Za(function(e){return Qa(e)?e:e.replace(Vo,"-$&").toLowerCase()}),Fn=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Yo,function(n,a,i){return _e={name:a,styles:i,next:_e},a})}return qo[t]!==1&&!Qa(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 Xo(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 Xo(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]+"}":Hn(s)&&(n+=cr(i)+":"+Fn(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++)Hn(o[u])&&(n+=cr(i)+":"+Fn(i,o[u])+";");else{var l=yt(e,t,o);switch(i){case"animation":case"animationName":{n+=cr(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var Bn=/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]}Bn.lastIndex=0;for(var l="",f;(f=Bn.exec(a))!==null;)l+="-"+f[1];var d=Wo(a)+l;return{name:d,styles:a,next:_e}}var Zo=function(t){return t()},ei=X.useInsertionEffect?X.useInsertionEffect:!1,ti=ei||Zo,kn=ei||X.useLayoutEffect,ri=X.createContext(typeof HTMLElement<"u"?Bo({key:"css"}):null);ri.Provider;var nn=function(t){return O.forwardRef(function(r,n){var a=O.useContext(ri);return t(r,a,n)})},an=X.createContext({}),on={}.hasOwnProperty,Hr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jo=function(t,r){var n={};for(var a in r)on.call(r,a)&&(n[a]=r[a]);return n[Hr]=t,n},Ko=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return tn(r,n,a),ti(function(){return rn(r,n,a)}),null},Qo=nn(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Hr],i=[n],o="";typeof e.className=="string"?o=Ka(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Xt(i,void 0,X.useContext(an));o+=t.key+"-"+s.name;var u={};for(var l in e)on.call(e,l)&&l!=="css"&&l!==Hr&&(u[l]=e[l]);return u.className=o,r&&(u.ref=r),X.createElement(X.Fragment,null,X.createElement(Ko,{cache:t,serialized:s,isStringTag:typeof a=="string"}),X.createElement(a,u))}),es=Qo,Un=function(t,r){var n=arguments;if(r==null||!on.call(r,"css"))return X.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=es,i[1]=Jo(t,r);for(var o=2;o<a;o++)i[o]=n[o];return X.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Un||(Un={}));var ts=nn(function(e,t){var r=e.styles,n=Xt([r],void 0,X.useContext(an)),a=X.useRef();return kn(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]),kn(function(){var i=a.current,o=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&rn(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 rs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Xt(t)}function sn(){var e=rs.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 ns=/^((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)-.*))$/,as=Za(function(e){return ns.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),is=as,os=function(t){return t!=="theme"},$n=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?is:os},zn=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},ss=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return tn(r,n,a),ti(function(){return rn(r,n,a)}),null},us=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=zn(t,r,n),u=s||$n(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=nn(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=X.useContext(an)}typeof x.className=="string"?v=Ka(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?$n(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),X.createElement(X.Fragment,null,X.createElement(ss,{cache:p,serialized:R,isStringTag:typeof m=="string"}),X.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:zn(b,p,!0)}));return h.apply(void 0,d)},b}},ls=["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=us.bind(null);ls.forEach(function(e){de[e]=de(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const cs=sn`
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`
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
- `,fs=de.div`
59
+ `,cs=de.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
- `,ds=de.div`
84
+ `,fs=de.div`
85
85
  width: 120px;
86
86
  height: 120px;
87
87
  position: relative;
@@ -91,36 +91,36 @@ 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:`${cs} 4s ease-in-out infinite`,animationDelay:t||"0s"}));function ni(){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(fs,{ref:e,className:"global-loading",children:[I.jsxs(ds,{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
+ `,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:`
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 Fr=function(e,t){return Fr=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])},Fr(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");Fr(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 Le(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 hs(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 ps(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:Es,n=t&&t.serializer?t.serializer:bs,a=t&&t.strategy?t.strategy:vs;return a(e,{cache:r,serializer:n})}function ms(e){return e==null||typeof e=="number"||typeof e=="boolean"}function gs(e,t,r,n){var a=ms(n)?n:r(n),i=t.get(a);return typeof i>"u"&&(i=e.call(this,n),t.set(a,i)),i}function ai(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 ii(e,t,r,n,a){return r.bind(t,e,n,a)}function vs(e,t){var r=e.length===1?gs:ai;return ii(e,this,r,t.cache.create(),t.serializer)}function ys(e,t){return ii(e,this,ai,t.cache.create(),t.serializer)}var bs=function(){return JSON.stringify(arguments)},xs=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}(),Es={create:function(){return new xs}},Re={variadic:ys},Z;(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"})(Z||(Z={}));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 Xe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Xe||(Xe={}));function Gn(e){return e.type===se.literal}function Ss(e){return e.type===se.argument}function oi(e){return e.type===se.number}function si(e){return e.type===se.date}function ui(e){return e.type===se.time}function li(e){return e.type===se.select}function ci(e){return e.type===se.plural}function Ts(e){return e.type===se.pound}function fi(e){return e.type===se.tag}function di(e){return!!(e&&typeof e=="object"&&e.type===Xe.number)}function Br(e){return!!(e&&typeof e=="object"&&e.type===Xe.dateTime)}var hi=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ws=/(?:[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 Rs(e){var t={};return e.replace(ws,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 Ps=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function _s(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ps).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 Os(e){return e.replace(/^(.*?)-/,"")}var Wn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pi=/^(@+)?(\+|#+)?[rs]?$/g,Cs=/(\*)(0+)|(#+)(0+)|(0+)/g,mi=/^(0+)$/;function qn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(pi,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 gi(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 As(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)),!mi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Vn(e){var t={},r=gi(e);return r||t}function Ns(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=Os(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),Vn(l))},{}));continue;case"engineering":t=L(L(L({},t),{notation:"engineering"}),a.options.reduce(function(u,l){return L(L({},u),Vn(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(Cs,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(mi.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Wn.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Wn,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),qn(i)));continue}if(pi.test(a.stem)){t=L(L({},t),qn(a.stem));continue}var o=gi(a.stem);o&&(t=L(L({},t),o));var s=As(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 Is(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=Ds(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 Ds(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 fr,Ms=new RegExp("^".concat(hi.source,"*")),Ls=new RegExp("".concat(hi.source,"*$"));function J(e,t){return{start:e,end:t}}var js=!!String.prototype.startsWith&&"_a".startsWith("a",1),Hs=!!String.fromCodePoint,Fs=!!Object.fromEntries,Bs=!!String.prototype.codePointAt,ks=!!String.prototype.trimStart,Us=!!String.prototype.trimEnd,$s=!!Number.isSafeInteger,zs=$s?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},kr=!0;try{var Gs=yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kr=((fr=Gs.exec("a"))===null||fr===void 0?void 0:fr[0])==="a"}catch{kr=!1}var Yn=js?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ur=Hs?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},Xn=Fs?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},vi=Bs?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}},Ws=ks?function(t){return t.trimStart()}:function(t){return t.replace(Ms,"")},qs=Us?function(t){return t.trimEnd()}:function(t){return t.replace(Ls,"")};function yi(e,t){return new RegExp(e,t)}var $r;if(kr){var Zn=yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$r=function(t,r){var n;Zn.lastIndex=r;var a=Zn.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else $r=function(t,r){for(var n=[];;){var a=vi(t,r);if(a===void 0||bi(a)||Zs(a))break;n.push(a),r+=a>=65536?2:1}return Ur.apply(void 0,n)};var Vs=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:J(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Z.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&zr(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:J(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()||!zr(this.char()))return this.error(Z.INVALID_TAG,J(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return a!==l?this.error(Z.UNMATCHED_CLOSING_TAG,J(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:se.tag,value:a,children:o,location:J(n,this.clonePosition())},err:null}:this.error(Z.INVALID_TAG,J(s,this.clonePosition())))}else return this.error(Z.UNCLOSED_TAG,J(n,this.clonePosition()))}else return this.error(Z.INVALID_TAG,J(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Xs(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=J(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||!Ys(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 Ur.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(),Ur(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,J(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Z.EMPTY_ARGUMENT,J(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(Z.MALFORMED_ARGUMENT,J(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,J(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:se.argument,value:a,location:J(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,J(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(Z.MALFORMED_ARGUMENT,J(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=$r(this.message,r),a=r+n.length;this.bumpTo(a);var i=this.clonePosition(),o=J(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(Z.EXPECT_ARGUMENT_TYPE,J(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=qs(d.val);if(E.length===0)return this.error(Z.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));var T=J(f,this.clonePosition());l={style:E,styleLocation:T}}var w=this.tryParseArgumentClose(a);if(w.err)return w;var b=J(a,this.clonePosition());if(l&&Yn(l==null?void 0:l.style,"::",0)){var x=Ws(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(Z.EXPECT_DATE_TIME_SKELETON,b);var p=x;this.locale&&(p=Is(x,this.locale));var E={type:Xe.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Rs(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(Z.EXPECT_SELECT_ARGUMENT_OPTIONS,J(m,L({},m)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),c=0;if(s!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z.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=J(a,this.clonePosition());return s==="select"?{val:{type:se.select,value:n,options:Xn(y.val),location:g},err:null}:{val:{type:se.plural,value:n,options:Xn(y.val),offset:c,pluralType:s==="plural"?"cardinal":"ordinal",location:g},err:null}}default:return this.error(Z.INVALID_ARGUMENT_TYPE,J(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,J(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(Z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,J(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=_s(t)}catch{return this.error(Z.INVALID_NUMBER_SKELETON,r)}return{val:{type:Xe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ns(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(Z.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(E.err)return E;f=J(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?Z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var T=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(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:J(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"?Z.EXPECT_SELECT_ARGUMENT_SELECTOR:Z.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Z.MISSING_OTHER_CLAUSE,J(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=J(a,this.clonePosition());return i?(o*=n,zs(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=vi(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(Yn(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()&&bi(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 zr(e){return e>=97&&e<=122||e>=65&&e<=90}function Ys(e){return zr(e)||e===47}function Xs(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 bi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Zs(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 Gr(e){e.forEach(function(t){if(delete t.location,li(t)||ci(t))for(var r in t.options)delete t.options[r].location,Gr(t.options[r].value);else oi(t)&&di(t.style)||(si(t)||ui(t))&&Br(t.style)?delete t.style.location:fi(t)&&Gr(t.children)})}function Js(e,t){t===void 0&&(t={}),t=L({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Vs(e,t).parse();if(r.err){var n=SyntaxError(Z[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Gr(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 je=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),Jn=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}(je),Ks=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}(je),Qs=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}(je),ve;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ve||(ve={}));function eu(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 xi(e){return typeof e=="function"}function Ft(e,t,r,n,a,i,o){if(e.length===1&&Gn(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(Gn(f)){s.push({type:ve.literal,value:f.value});continue}if(Ts(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 Qs(d,o);var E=a[d];if(Ss(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(si(f)){var T=typeof f.style=="string"?n.date[f.style]:Br(f.style)?f.style.parsedOptions:void 0;s.push({type:ve.literal,value:r.getDateTimeFormat(t,T).format(E)});continue}if(ui(f)){var T=typeof f.style=="string"?n.time[f.style]:Br(f.style)?f.style.parsedOptions:n.time.medium;s.push({type:ve.literal,value:r.getDateTimeFormat(t,T).format(E)});continue}if(oi(f)){var T=typeof f.style=="string"?n.number[f.style]:di(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(fi(f)){var w=f.children,b=f.value,x=a[b];if(!xi(x))throw new Ks(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(li(f)){var m=f.options[E]||f.options.other;if(!m)throw new Jn(f.value,E,Object.keys(f.options),o);s.push.apply(s,Ft(m.value,t,r,n,a));continue}if(ci(f)){var m=f.options["=".concat(E)];if(!m){if(!Intl.PluralRules)throw new je(`Intl.PluralRules is not available in this environment.
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
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 Jn(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 eu(s)}function tu(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 ru(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=tu(e[n],t[n]),r},L({},e)):e}function dr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function nu(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:dr(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:dr(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:dr(e.pluralRules),strategy:Re.variadic})}}var Ei=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=Le(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=ru(e.formats,n),this.formatters=a&&a.formatters||nu(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=Js,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}(),$e;(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"})($e||($e={}));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,`
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
101
  `).concat(o?`
102
102
  `.concat(o.message,`
103
- `).concat(o.stack):""))||this,i.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),au=function(e){Ee(t,e);function t(r,n){return e.call(this,$e.UNSUPPORTED_FORMATTER,r,n)||this}return t}(Et),iu=function(e){Ee(t,e);function t(r,n){return e.call(this,$e.INVALID_CONFIG,r,n)||this}return t}(Et),Kn=function(e){Ee(t,e);function t(r,n){return e.call(this,$e.MISSING_DATA,r,n)||this}return t}(Et),Se=function(e){Ee(t,e);function t(r,n,a){var i=e.call(this,$e.FORMAT_ERROR,"".concat(r,`
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
104
  Locale: `).concat(n,`
105
- `),a)||this;return i.locale=n,i}return t}(Et),hr=function(e){Ee(t,e);function t(r,n,a,i){var o=e.call(this,"".concat(r,`
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
106
  MessageID: `).concat(a==null?void 0:a.id,`
107
107
  Default Message: `).concat(a==null?void 0:a.defaultMessage,`
108
108
  Description: `).concat(a==null?void 0:a.description,`
109
- `),n,i)||this;return o.descriptor=a,o.locale=n,o}return t}(Se),ou=function(e){Ee(t,e);function t(r,n){var a=e.call(this,$e.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 su(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 uu=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},lu=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Si={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:uu,onWarn:lu};function Ti(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function He(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function cu(e){e===void 0&&(e=Ti());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:He(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:He(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:He(e.pluralRules),strategy:Re.variadic});return{getDateTimeFormat:a,getNumberFormat:i,getMessageFormat:we(function(s,u,l,f){return new Ei(s,u,l,L({formatters:{getNumberFormat:i,getDateTimeFormat:a,getPluralRules:o}},f||{}))},{cache:He(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:He(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:He(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:He(e.displayNames),strategy:Re.variadic})}}function un(e,t,r,n){var a=e&&e[t],i;if(a&&(i=a[r]),i)return i;n(new au("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 Qn(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 ea(e,t){if(!t)return e;var r=Ei.formats;return L(L(L({},r),e),{date:Qn(Nt(r.date,t),Nt(e.date||{},t)),time:Qn(Nt(r.time,t),Nt(e.time||{},t))})}var Wr=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;su(!!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=ea(o,E),l=ea(l,E),!p){if(f===!1&&p==="")return p;if((!b||i&&i.toLowerCase()!==u.toLowerCase())&&d(new ou(r,i)),b)try{var h=t.getMessageFormat(b,u,l,a);return h.format(n)}catch(m){return d(new hr('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 hr('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 hr('Error formatting the default message for: "'.concat(x,'", rendering message verbatim'),i,r,m))}return typeof p=="string"?p:typeof b=="string"?b:x},fu=["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&&un(i,t,u,o)),f=Ke(n,fu,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 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,"date",t,o).format(s)}catch(u){e.onError(new Se("Error formatting date.",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=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 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=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 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,"date",t,o).formatToParts(s)}catch(u){e.onError(new Se("Error formatting date.",e.locale,u))}return[]}function gu(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 vu=["style","type","fallback","languageDisplay"];function yu(e,t,r,n){var a=e.locale,i=e.onError,o=Intl.DisplayNames;o||i(new je(`Intl.DisplayNames is not available in this environment.
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
110
  Try polyfilling it using "@formatjs/intl-displaynames"
111
- `,Ce.MISSING_INTL_API));var s=Ke(n,vu);try{return t(a,s).of(r)}catch(u){i(new Se("Error formatting display name.",a,u))}}var bu=["type","style"],ta=Date.now();function xu(e){return"".concat(ta,"_").concat(e,"_").concat(ta)}function Eu(e,t,r,n){n===void 0&&(n={});var a=wi(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 wi(e,t,r,n){var a=e.locale,i=e.onError;n===void 0&&(n={});var o=Intl.ListFormat;o||i(new je(`Intl.ListFormat is not available in this environment.
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
112
  Try polyfilling it using "@formatjs/intl-listformat"
113
- `,Ce.MISSING_INTL_API));var s=Ke(n,bu);try{var u={},l=r.map(function(f,d){if(typeof f=="object"){var E=xu(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 Su=["type"];function Tu(e,t,r,n){var a=e.locale,i=e.onError;n===void 0&&(n={}),Intl.PluralRules||i(new je(`Intl.PluralRules is not available in this environment.
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
114
  Try polyfilling it using "@formatjs/intl-pluralrules"
115
- `,Ce.MISSING_INTL_API));var o=Ke(n,Su);try{return t(a,o).select(r)}catch(s){i(new Se("Error formatting plural.",a,s))}return"other"}var wu=["numeric","style"];function Ru(e,t,r){var n=e.locale,a=e.formats,i=e.onError;r===void 0&&(r={});var o=r.format,s=!!o&&un(a,"relative",o,i)||{},u=Ke(r,wu,s);return t(n,u)}function Pu(e,t,r,n,a){a===void 0&&(a={}),n||(n="second");var i=Intl.RelativeTimeFormat;i||e.onError(new je(`Intl.RelativeTimeFormat is not available in this environment.
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
116
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
117
- `,Ce.MISSING_INTL_API));try{return Ru(e,t,a).format(r,n)}catch(o){e.onError(new Se("Error formatting relative time.",e.locale,o))}return String(r)}var _u=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Ri(e,t,r){var n=e.locale,a=e.formats,i=e.onError;r===void 0&&(r={});var o=r.format,s=o&&un(a,"number",o,i)||{},u=Ke(r,_u,s);return t(n,u)}function Ou(e,t,r,n){n===void 0&&(n={});try{return Ri(e,t,n).format(r)}catch(a){e.onError(new Se("Error formatting number.",e.locale,a))}return String(r)}function Cu(e,t,r,n){n===void 0&&(n={});try{return Ri(e,t,n).formatToParts(r)}catch(a){e.onError(new Se("Error formatting number.",e.locale,a))}return[]}function Au(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Nu(e){e.onWarn&&e.defaultRichTextElements&&Au(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
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
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 Iu(e,t){var r=cu(t),n=L(L({},Si),e),a=n.locale,i=n.defaultLocale,o=n.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&o?o(new Kn('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 Kn('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 iu('"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"),Nu(n),L(L({},n),{formatters:r,formatNumber:Ou.bind(null,n,r.getNumberFormat),formatNumberToParts:Cu.bind(null,n,r.getNumberFormat),formatRelativeTime:Pu.bind(null,n,r.getRelativeTimeFormat),formatDate:du.bind(null,n,r.getDateTimeFormat),formatDateToParts:mu.bind(null,n,r.getDateTimeFormat),formatTime:hu.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:pu.bind(null,n,r.getDateTimeFormat),formatTimeToParts:gu.bind(null,n,r.getDateTimeFormat),formatPlural:Tu.bind(null,n,r.getPluralRules),formatMessage:Wr.bind(null,n,r),$t:Wr.bind(null,n,r),formatList:Eu.bind(null,n,r.getListFormat),formatListToParts:wi.bind(null,n,r.getListFormat),formatDisplayName:yu.bind(null,n,r.getDisplayNames)})}function Du(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}function Pi(e){Du(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var _i=L(L({},Si),{textComponent:X.Fragment}),Mu={key:42},Lu=function(e){return X.isValidElement(e)?X.createElement(X.Fragment,Mu,e):e},ju=function(e){var t;return(t=X.Children.map(e,Lu))!==null&&t!==void 0?t:[]};function Hu(e){return function(t){return e(X.Children.toArray(t))}}function qr(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 ln=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=X.createContext(null)):X.createContext(null);ln.Consumer;var Fu=ln.Provider,Bu=Fu,ku=ln;function Zt(){var e=X.useContext(ku);return Pi(e),e}var Vr;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Vr||(Vr={}));var Yr;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Yr||(Yr={}));function Oi(e){var t=function(r){var n=Zt(),a=r.value,i=r.children,o=Le(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=Yr[e],t}function Tt(e){var t=function(r){var n=Zt(),a=r.value,i=r.children,o=Le(r,["value","children"]),s=n[e](a,o);if(typeof i=="function")return i(s);var u=n.textComponent||X.Fragment;return X.createElement(u,null,s)};return t.displayName=Vr[e],t}function Ci(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=xi(n)?Hu(n):n,t},{})}var ra=function(e,t,r,n){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var o=Ci(n),s=Wr.apply(void 0,oe([e,t,r,o],a,!1));return Array.isArray(s)?ju(s):s},na=function(e,t){var r=e.defaultRichTextElements,n=Le(e,["defaultRichTextElements"]),a=Ci(r),i=Iu(L(L(L({},_i),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:ra.bind(null,o,i.formatters),$t:ra.bind(null,o,i.formatters)})};function Uu(e,t){var r=e.values,n=Le(e,["values"]),a=t.values,i=Le(t,["values"]);return qr(a,r)&&qr(n,i)}function Ai(e){var t=Zt(),r=t.formatMessage,n=t.textComponent,a=n===void 0?X.Fragment:n,i=e.id,o=e.description,s=e.defaultMessage,u=e.values,l=e.children,f=e.tagName,d=f===void 0?a:f,E=e.ignoreTag,T={id:i,description:o,defaultMessage:s},w=r(T,u,{ignoreTag:E});return typeof l=="function"?l(Array.isArray(w)?w:[w]):d?X.createElement(d,null,w):X.createElement(X.Fragment,null,w)}Ai.displayName="FormattedMessage";var Ue=X.memo(Ai,Uu);Ue.displayName="MemoizedFormattedMessage";function pr(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 $u=function(e){Ee(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=Ti(),r.state={cache:r.cache,intl:na(pr(r.props),r.cache),prevConfig:pr(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var a=n.prevConfig,i=n.cache,o=pr(r);return qr(a,o)?null:{intl:na(o,i),prevConfig:o}},t.prototype.render=function(){return Pi(this.state.intl),X.createElement(Bu,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=_i,t}(X.PureComponent);Tt("formatDate");Tt("formatTime");Tt("formatNumber");Tt("formatList");Tt("formatDisplayName");Oi("formatDate");Oi("formatTime");const zu={"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}条"},Gu={"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"},Wu={zh:zu,en:Gu};function Ni(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]=Ni(e[n]||{},t[n]):r[n]=t[n]);return r}const Ii={iconButton:{size:"small",render:({children:e,...t})=>e},iconFont:{},locale:"zh"},Jt=O.createContext(Ii);function Di({children:e,config:t}){const r=Ni(Ii,t);return I.jsx(Jt.Provider,{value:r,children:I.jsx($u,{locale:t.locale,messages:Wu[r.locale],children:e})})}exports.message=ie.message;exports.notification=ie.notification;exports.modal=ie.Modal;function qu({children:e}){const t=ie.App.useApp();return exports.message=t.message,exports.modal=t.modal,exports.notification=t.notification,e||""}function Vu({children:e,config:t,...r}){return I.jsx(Di,{config:t||{},children:I.jsxs(ie.App,{...r,children:[I.jsx(ni,{}),I.jsx(qu,{children:e})]})})}var mr={exports:{}};/*!
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:{}};/*!
120
120
  Copyright (c) 2018 Jed Watson.
121
121
  Licensed under the MIT License (MIT), see
122
122
  http://jedwatson.github.io/classnames
123
- */var aa;function Yu(){return aa||(aa=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})()}(mr)),mr.exports}var Xu=Yu();const Xr=Gt(Xu),cn=O.forwardRef(({type:e="",className:t="",symbol:r=!1,style:n,...a},i)=>{const{iconFont:o}=O.useContext(Jt);return r?I.jsx("svg",{className:Xr(["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:Xr(["iconfont",o.className||"",e,t]),ref:i,style:{...o.style,...n||{}},...a})}),Zu=({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)})},Ju=({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 Ku=typeof global=="object"&&global&&global.Object===Object&&global,Qu=typeof self=="object"&&self&&self.Object===Object&&self,el=Ku||Qu||Function("return this")(),$t=el.Symbol,Mi=Object.prototype,tl=Mi.hasOwnProperty,rl=Mi.toString,it=$t?$t.toStringTag:void 0;function nl(e){var t=tl.call(e,it),r=e[it];try{e[it]=void 0;var n=!0}catch{}var a=rl.call(e);return n&&(t?e[it]=r:delete e[it]),a}var al=Object.prototype,il=al.toString;function ol(e){return il.call(e)}var sl="[object Null]",ul="[object Undefined]",ia=$t?$t.toStringTag:void 0;function ll(e){return e==null?e===void 0?ul:sl:ia&&ia in Object(e)?nl(e):ol(e)}function cl(e){return e!=null&&typeof e=="object"}var fl=Array.isArray;function dl(){}var hl="[object String]";function pl(e){return typeof e=="string"||!fl(e)&&cl(e)&&ll(e)==hl}const ml=O.forwardRef((e,t)=>I.jsx(ie.Button,{ref:t,...e})),gl=de(ml)`
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)`
124
124
  &&.icon-button {
125
125
  font-size: 18px;
126
126
  color: var(--color-primary);
@@ -139,14 +139,14 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
139
139
  background: var(--color-primary-bg);
140
140
  }
141
141
  }
142
- `,vl=({children:e,tooltipDisabled:t,disabled:r,disabledReason:n,title:a,...i})=>t?e:I.jsx(ie.Tooltip,{title:r&&n||a,...i,children:e}),yl=O.forwardRef((e,t)=>{const{iconButton:r}=O.useContext(Jt),{icon:n,tooltipDisabled:a=!1,title:i,hide:o=!1,disabledReason:s,onClick:u=dl,disabled:l,size:f=r.size||"small",style:d={},className:E,loading:T=!1,...w}=e,b=()=>pl(n)?I.jsx(cn,{type:n}):n,x=r.render;return n||console.warn("Icon props not found"),I.jsx(x,{...e,children:I.jsx(vl,{tooltipDisabled:a,hide:o,disabled:l,disabledReason:s,title:i,...w,children:I.jsx(gl,{ref:t,icon:b(),size:f,className:Xr(["icon-button",r.className,E]),disabled:l,style:{...r.style,...d},loading:T,onClick:u})})})});var bl=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)}},ze=function(e){return typeof e=="function"},xl=function(e){return typeof e>"u"},Kt=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Ie(e){Kt&&(ze(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=bl(O.useEffect);var Li=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}}}};Li.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function Zr(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 ji=function(e,t){var r=O.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Zr(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function fn(e){var t=O.useRef(e);return t.current=e,t}var Qt=function(e){Kt&&(ze(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=fn(e);O.useEffect(function(){return function(){t.current()}},[])},Bt=new Map,El=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}))},Sl=function(e){return Bt.get(e)},kt=new Map,Tl=function(e){return kt.get(e)},wl=function(e,t){kt.set(e,t),t.then(function(r){return kt.delete(e),r}).catch(function(){kt.delete(e)})},ke={},Rl=function(e,t){ke[e]&&ke[e].forEach(function(r){return r(t)})},gr=function(e,t){return ke[e]||(ke[e]=[]),ke[e].push(t),function(){var n=ke[e].indexOf(t);ke[e].splice(n,1)}},Pl=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):El(T,a,w),Rl(T,w.data)},E=function(T,w){return w===void 0&&(w=[]),u?u(w):Sl(T)};return ji(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=gr(r,function(w){e.setState({data:w})})}},[]),Qt(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=Tl(r);return b&&b!==f.current?{servicePromise:b}:(b=T.apply(void 0,oe([],me(w),!1)),f.current=b,wl(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=gr(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=gr(r,function(b){e.setState({data:b})}))}}:{}},vr,oa;function dn(){if(oa)return vr;oa=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return vr=e,vr}var yr,sa;function _l(){if(sa)return yr;sa=1;var e=typeof wt=="object"&&wt&&wt.Object===Object&&wt;return yr=e,yr}var br,ua;function Hi(){if(ua)return br;ua=1;var e=_l(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return br=r,br}var xr,la;function Ol(){if(la)return xr;la=1;var e=Hi(),t=function(){return e.Date.now()};return xr=t,xr}var Er,ca;function Cl(){if(ca)return Er;ca=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Er=t,Er}var Sr,fa;function Al(){if(fa)return Sr;fa=1;var e=Cl(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Sr=r,Sr}var Tr,da;function Fi(){if(da)return Tr;da=1;var e=Hi(),t=e.Symbol;return Tr=t,Tr}var wr,ha;function Nl(){if(ha)return wr;ha=1;var e=Fi(),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 wr=i,wr}var Rr,pa;function Il(){if(pa)return Rr;pa=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Rr=r,Rr}var Pr,ma;function Dl(){if(ma)return Pr;ma=1;var e=Fi(),t=Nl(),r=Il(),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 Pr=o,Pr}var _r,ga;function Ml(){if(ga)return _r;ga=1;function e(t){return t!=null&&typeof t=="object"}return _r=e,_r}var Or,va;function Ll(){if(va)return Or;va=1;var e=Dl(),t=Ml(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Or=n,Or}var Cr,ya;function jl(){if(ya)return Cr;ya=1;var e=Al(),t=dn(),r=Ll(),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 Cr=u,Cr}var Ar,ba;function Bi(){if(ba)return Ar;ba=1;var e=dn(),t=Ol(),r=jl(),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 Ar=o,Ar}var Hl=Bi();const Fl=Gt(Hl);var Bl=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=Fl(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()}}:{}},kl=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 hn(){return Qe?document.visibilityState!=="hidden":!0}var ht=[];function Ul(e){return ht.push(e),function(){var r=ht.indexOf(e);ht.splice(r,1)}}if(Qe){var $l=function(){if(hn())for(var e=0;e<ht.length;e++){var t=ht[e];t()}};window.addEventListener("visibilitychange",$l,!1)}var zl=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&&!hn()?u.current=Ul(function(){e.refresh()}):e.refresh()},r):l.current=0},onCancel:function(){f()}}:{}};function Gl(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 Wl=function(){return Qe&&typeof navigator.onLine<"u"?navigator.onLine:!0},pt=[];function ql(e){return pt.push(e),function(){var r=pt.indexOf(e);r>-1&&pt.splice(r,1)}}if(Qe){var xa=function(){if(!(!hn()||!Wl()))for(var e=0;e<pt.length;e++){var t=pt[e];t()}};window.addEventListener("visibilitychange",xa,!1),window.addEventListener("focus",xa,!1)}var Vl=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=Gl(e.refresh.bind(e),a);i.current=ql(function(){s()})}return function(){o()}},[r,a]),Qt(function(){o()}),{}},Yl=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)}}:{}},Nr,Ea;function Xl(){if(Ea)return Nr;Ea=1;var e=Bi(),t=dn(),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 Nr=n,Nr}var Zl=Xl();const Jl=Gt(Zl);var Kl=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=Jl(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()}}:{}},Ql=function(e){Kt&&(ze(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),O.useEffect(function(){e==null||e()},[])},ec=function(){var e=me(O.useState({}),2),t=e[1];return O.useCallback(function(){return t({})},[])},tc=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 hs(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 ps(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=Le(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=ze(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function rc(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=Le(t,["manual","ready"]);Kt&&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=fn(e),f=ec(),d=ji(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 tc(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)}),Ql(function(){if(!a&&o){var E=d.state.params||t.defaultParams||[];d.run.apply(d,oe([],me(E),!1))}}),Qt(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 nc(e,t,r){return rc(e,t,oe(oe([],me(r||[]),!1),[Bl,kl,zl,Vl,Kl,Li,Pl,Yl],!1))}function ki(e,t){if(Qe){if(!e)return t;var r;return ze(e)?r=e():"current"in e?r=e.current:r=e,r}}var ac=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 ki(E)});if(!i.current){i.current=!0,o.current=d,s.current=n,u.current=r();return}(d.length!==o.current.length||!Zr(o.current,d)||!Zr(s.current,n))&&((l=u.current)===null||l===void 0||l.call(u),o.current=d,s.current=n,u.current=r())}),Qt(function(){var l;(l=u.current)===null||l===void 0||l.call(u),i.current=!1})};return t},ic=ac(O.useEffect);function Sa(e,t,r){r===void 0&&(r={});var n=r.enable,a=n===void 0?!0:n,i=fn(t);ic(function(){if(a){var o=ki(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 Ta="AHOOKS_SYNC_STORAGE_EVENT_NAME";function oc(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 ze(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=ze(h)?h(T):h;o||w(m);try{var v=void 0,c=a==null?void 0:a.getItem(r);xl(m)?(v=null,a==null||a.removeItem(r)):(v=l(m),a==null||a.setItem(r,v)),dispatchEvent(new CustomEvent(Ta,{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 Sa("storage",x,{enable:o}),Sa(Ta,p,{enable:o}),[T,Ie(b)]}return t}var Ui=oc(function(){return Qe?localStorage:void 0});const sc=sn`
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`
143
143
  from {
144
144
  margin-top: 0;
145
145
  }
146
146
  to {
147
147
  margin-top: 32px;
148
148
  }
149
- `,uc=sn`
149
+ `,lc=an`
150
150
  from {
151
151
  margin-top: 32px;
152
152
  margin-bottom: 0;
@@ -161,18 +161,18 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
161
161
  padding: 0;
162
162
  overflow-y: auto;
163
163
  }
164
- `;const lc=de.ul`
164
+ `;const cc=de.ul`
165
165
  padding: 10px 0;
166
166
 
167
167
  .drag-up {
168
168
  border: solid 2px #ccc;
169
- animation: ${sc} ease 0.2s 1;
169
+ animation: ${uc} ease 0.2s 1;
170
170
  animation-fill-mode: forwards;
171
171
  }
172
172
 
173
173
  .drag-down {
174
174
  border: solid 2px #ccc;
175
- animation: ${uc} ease 0.2s 1;
175
+ animation: ${lc} ease 0.2s 1;
176
176
  animation-fill-mode: forwards;
177
177
  }
178
178
 
@@ -203,10 +203,10 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
203
203
  background-color: #f0f0f0;
204
204
  }
205
205
  }
206
- `;function cc({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(Ue,{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(Ze.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(lc,{onDragOver:d,children:w}),trigger:"click",align:{offset:[-60,-14]},children:I.jsx(cn,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}const fc=de.div`
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`
207
207
  position: absolute;
208
208
  left: 8px;
209
- `,dc=de.span`
209
+ `,hc=de.span`
210
210
  font-size: 14px;
211
211
  color: #666;
212
212
  `;de.div`
@@ -232,7 +232,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
232
232
  border-color: #d9d9d9;
233
233
  }
234
234
  }
235
- `;const hc=de(ie.Row)`
235
+ `;const pc=de(ie.Row)`
236
236
  position: fixed;
237
237
  right: 0;
238
238
  bottom: 30px;
@@ -255,7 +255,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
255
255
  border-color: #d9d9d9;
256
256
  }
257
257
  }
258
- `,pc=de.span`
258
+ `,mc=de.span`
259
259
  margin-left: 20px;
260
260
  cursor: pointer;
261
261
  opacity: 0.5;
@@ -264,7 +264,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
264
264
  &:hover {
265
265
  opacity: 1;
266
266
  }
267
- `,mc={enter:"zoom-enter",enterActive:"zoom-enter-active",leaveActive:"zoom-leave-active"},gc=`
267
+ `,gc={enter:"zoom-enter",enterActive:"zoom-enter-active",leaveActive:"zoom-leave-active"},vc=`
268
268
  .zoom-enter {
269
269
  transform: scale(0);
270
270
  }
@@ -276,9 +276,9 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
276
276
  .zoom-leave-active {
277
277
  transform: scale(0);
278
278
  }
279
- `;function vc(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(ts,{styles:gc}),I.jsxs(fc,{children:[I.jsx(Wt,{in:!!(e.rowSelection&&e.selectionPopover&&(l||u)),nodeRef:t,classNames:mc,unmountOnExit:!0,timeout:300,children:()=>{var f;return I.jsxs(hc,{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(Ue,{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(pc,{onClick:()=>{o({target:{checked:!1}})},children:I.jsx(Ze.CloseOutlined,{})})]})]})}}),r&&I.jsx(dc,{children:r.showTotal?r.showTotal(r.total??0,[0,0]):null})]})]})}var ot={exports:{}},st={},ut={exports:{}},Ir={},It={exports:{}},wa;function yc(){if(wa)return It.exports;wa=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={},Ra;function er(){if(Ra)return De;Ra=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={},Pa;function bc(){if(Pa)return Me;Pa=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 _a;function pn(){if(_a)return le;_a=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=er(),t=r(bc());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;}
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;}
280
280
  `,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={},Oa;function $i(){if(Oa)return Te;Oa=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=er(),t=pn();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={},Ca;function zi(){if(Ca)return Dt;Ca=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=e;function e(){}return Dt}var Aa;function xc(){if(Aa)return lt;Aa=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.default=void 0;var e=u(O),t=s(bt()),r=s(qe),n=pn(),a=$i(),i=er(),o=s(zi());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 Na;function Ec(){return Na||(Na=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(qe),a=yc(),i=pn(),o=$i(),s=er(),u=f(xc()),l=f(zi());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})}(Ir)),Ir}var Ia;function Gi(){if(Ia)return ut.exports;Ia=1;const{default:e,DraggableCore:t}=Ec();return ut.exports=e,ut.exports.default=e,ut.exports.DraggableCore=t,ut.exports}var Mt={},Da;function Sc(){if(Da)return Mt;Da=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={},Ma;function Wi(){if(Ma)return ct;Ma=1,ct.__esModule=!0,ct.resizableProps=void 0;var e=t(bt());Gi();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 La;function qi(){if(La)return st;La=1,st.__esModule=!0,st.default=void 0;var e=o(O),t=Gi(),r=Sc(),n=Wi(),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={},ja;function Tc(){if(ja)return ft;ja=1,ft.__esModule=!0,ft.default=void 0;var e=s(O),t=i(bt()),r=i(qi()),n=Wi(),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 Ha;function wc(){return Ha||(Ha=1,ot.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},ot.exports.Resizable=qi().default,ot.exports.ResizableBox=Tc().default),ot.exports}var Rc=wc();const Pc=e=>e?Array.isArray(e)?e.join("."):e:"",_c=de.span`
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`
282
282
  position: absolute;
283
283
  top: 0;
284
284
  right: 0;
@@ -307,7 +307,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
307
307
  display: inline-block;
308
308
  transform: rotateZ(90deg) scale(0.3);
309
309
  }
310
- `,Oc=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(Rc.Resizable,{width:r,height:0,handle:I.jsx(_c,{className:a?"resizing":"",onClick:u=>u.stopPropagation(),children:I.jsx(Ze.MenuOutlined,{className:"react-resizable-handle-icon"})}),onResize:t,onResizeStart:o,onResizeStop:s,draggableOpts:{enableUserSelectHack:!1},children:I.jsx("th",{...n})})},Cc=(e,t)=>{const[r,n]=Ui("table-resizable_"+t,{}),a=i=>(o,{size:s})=>{const u=Pc(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])},Ac=de.div`
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`
311
311
  position: relative;
312
312
 
313
313
  .ant-pagination-options {
@@ -315,7 +315,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
315
315
  width: auto !important;
316
316
  }
317
317
  }
318
- `;function Nc(e,t){const{columns:r=[],columnsSort:n,columnsVisible:a,tableId:i="",pagination:o,dataSource:s,columnsResizable:u}=e,f=location.pathname+i,[d,E]=Ui("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(cc,{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(Ze.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(vc,{...e})}:!1,[o]);return O.useEffect(()=>{c()},[]),I.jsx(Ac,{ref:t,children:I.jsx(ie.Table,{ref:p,scroll:{x:900},components:{header:{cell:u?Oc:void 0}},...e,pagination:C,columns:u?Cc(R,i):R})})}const Ic=O.forwardRef(Nc),Dc=de(ie.Form.Item)`
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)`
319
319
  margin-bottom: 0 !important;
320
320
 
321
321
  .search-item__label {
@@ -338,14 +338,14 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
338
338
  .search-item__content {
339
339
  flex: 1;
340
340
  }
341
- `;function Mc({children:e,...t}){return I.jsx(Dc,{...t,children:e})}const Lc=de(Ze.CaretUpOutlined,{shouldForwardProp:e=>e!=="show"})`
341
+ `;function Lc({children:e,...t}){return I.jsx(Mc,{...t,children:e})}const jc=de(Xe.CaretUpOutlined,{shouldForwardProp:e=>e!=="show"})`
342
342
  transition: transform 0.3s ease-in-out;
343
343
  transform: rotate(${e=>e.show?"0deg":"180deg"});
344
- `;function jc({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(Ue,{id:"component.searcharea.toggle",defaultMessage:"高级搜索"}),I.jsx(Lc,{show:r})]})}const Hc=de("div",{shouldForwardProp:e=>e!=="show"})`
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"})`
345
345
  overflow: hidden;
346
346
  transition: max-height 0.4s ease-in-out;
347
347
  max-height: ${e=>e.show?"450px":"0"};
348
- `,Fc=de(ie.Form)`
348
+ `,Bc=de(ie.Form)`
349
349
  padding: 20px;
350
350
  padding-bottom: 0;
351
351
  margin-bottom: 20px;
@@ -355,9 +355,9 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
355
355
  .ant-form-item {
356
356
  margin-bottom: 20px;
357
357
  }
358
- `,Bc=de.div`
358
+ `,kc=de.div`
359
359
  gap: 10px;
360
360
  display: flex;
361
361
  justify-content: flex-end;
362
362
  margin-bottom: 20px;
363
- `;function kc({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(Hc,{show:T,children:I.jsx(Fc,{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(Bc,{children:[I.jsx(ie.Button,{loading:s,type:"primary",onClick:b,children:I.jsx(Ue,{id:"component.searcharea.submit",defaultMessage:"筛选"})}),I.jsx(ie.Button,{loading:s,onClick:x,children:I.jsx(Ue,{id:"component.searcharea.reset",defaultMessage:"重置"})}),I.jsxs(ie.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:p,children:[I.jsx(Ue,{id:"component.searcharea.close",defaultMessage:"收起"}),I.jsx(Ze.UpOutlined,{})]})]})})]})})})}const tr=kc;function Uc(e){const[t,r]=O.useState(e??!1);return{show:t,toggle:()=>{r(a=>!a)}}}tr.useSearchArea=Uc;tr.Item=Mc;tr.ToggleButton=jc;function $c(e,t,r){const n=nc(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 zc={ascend:"ASC",descend:"DESC"},Gc={rowKey:"id",interval:!1,immediate:!0,defaultPagination:{current:1,pageSize:10},showRowSelection:!1,multiPageSelection:!1,onBeforeRequest:async e=>{},onAfterRequest:async e=>{}};function Wc(e,t={}){const r=Zt(),{rowKey:n,interval:a,immediate:i,defaultPagination:o,showRowSelection:s,multiPageSelection:u,onBeforeRequest:l,onAfterRequest:f}={...Gc,...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=zc[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=Vu;exports.CheckboxValue=Zu;exports.ConfigContext=Jt;exports.ConfigProvider=Di;exports.GlobalLoading=ni;exports.IconButton=yl;exports.IconFont=cn;exports.SearchArea=tr;exports.SwitchValue=Ju;exports.Table=Ic;exports.useRequest=$c;exports.useTable=Wc;
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;