xmirror-components 1.0.29 → 1.0.30-alpha.10

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