diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..397b872 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": [ + "Sider" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 17f5caf..48d7dc9 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,28 @@ To use the components from the library, you need to import them into your projec ```tsx import React from 'react'; import ReactDOM from 'react-dom'; -import { config } from '1byte-react-design'; +import { config, Button } from '1byte-react-design'; import { globalToken } from '@/assets/styles/customTheme'; -import { Button } from '1byte-react-design'; + +const seedToken: Partial = { + borderRadius: 6, + colorLink: generatedTheme.colorPrimary, + + colorPrimary: generatedTheme.colorPrimary, + colorTextSecondary: generatedTheme.colorSecondary, + colorTextTertiary: generatedTheme.colorTertiary, + colorTextQuaternary: generatedTheme.colorQuaternary, + + fontFamily: "'Open Sans', sans-serif", + fontSize: 14, + controlHeight: 28, +}; + +const themeConfig: ThemeConfig = { + token: seedToken, +}; + +const globalToken = theme.getDesignToken(themeConfig); // Set the design token config.designToken = globalToken; @@ -53,7 +72,11 @@ config.designToken = globalToken; const App = () => { return (
- + + + + +
); }; @@ -63,7 +86,7 @@ ReactDOM.render(, document.getElementById('root')); ### Note -If you do not provide a [`designToken`](command:_github.copilot.openSymbolFromReferences?%5B%22%22%2C%5B%7B%22uri%22%3A%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fkenneth_wise%2FWorkspace%2F1ByteSoftware%2FLibrary%2F1byte%3Areact-design%2Fsrc%2Findex.tsx%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%2C%22pos%22%3A%7B%22line%22%3A4%2C%22character%22%3A4%7D%7D%2C%7B%22uri%22%3A%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fkenneth_wise%2FWorkspace%2F1ByteSoftware%2FLibrary%2F1byte%3Areact-design%2FREADME.md%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%2C%22pos%22%3A%7B%22line%22%3A72%2C%22character%22%3A26%7D%7D%2C%7B%22uri%22%3A%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fkenneth_wise%2FWorkspace%2F1ByteSoftware%2FLibrary%2F1byte%3Areact-design%2FREADME.md%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%2C%22pos%22%3A%7B%22line%22%3A57%2C%22character%22%3A7%7D%7D%5D%2C%22cd97981e-fe0d-41e4-b8a7-f07d20b5fc41%22%5D "Go to definition"), the library will use the default Antd tokens for the components. +If you do not provide a [`designToken`](command:_github.copilot.openSymbolFromReferences?%5B%22%22%2C%5B%7B%22uri%22%3A%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fkenneth_wise%2FWorkspace%2F1ByteSoftware%2FLibrary%2F1byte%3Areact-design%2Fsrc%2Findex.tsx%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%2C%22pos%22%3A%7B%22line%22%3A4%2C%22character%22%3A4%7D%7D%2C%7B%22uri%22%3A%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fkenneth_wise%2FWorkspace%2F1ByteSoftware%2FLibrary%2F1byte%3Areact-design%2FREADME.md%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%2C%22pos%22%3A%7B%22line%22%3A72%2C%22character%22%3A26%7D%7D%2C%7B%22uri%22%3A%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fkenneth_wise%2FWorkspace%2F1ByteSoftware%2FLibrary%2F1byte%3Areact-design%2FREADME.md%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%2C%22pos%22%3A%7B%22line%22%3A57%2C%22character%22%3A7%7D%7D%5D%2C%22cd97981e-fe0d-41e4-b8a7-f07d20b5fc41%22%5D 'Go to definition'), the library will use the default Antd tokens for the components. ## Getting Started @@ -81,33 +104,13 @@ Before you start, make sure you have a fresh version of [Node.js](https://nodejs yarn install ``` -3. To run and test the app on your local machine (http://localhost:5173): - - ```sh - yarn start:dev - ``` - - This will start a server instance and begin listening for connections in develop environment from localhost on port 5173. +3. To build/deploy the app, you can run: ```sh - yarn start:pro + yarn build ``` - This will start a server instance and begin listening for connections in production environment from localhost on port 5173. - -4. To build/deploy the app, you can run: - - ```sh - yarn build:dev - ``` - - This will place all files needed for deployment for develop server into the [`/dist`](command:_github.copilot.openRelativePath?%5B%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fkenneth_wise%2FWorkspace%2F1ByteSoftware%2FLibrary%2F1byte%3Areact-design%2Fdist%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%2C%22cd97981e-fe0d-41e4-b8a7-f07d20b5fc41%22%5D "/Users/kenneth_wise/Workspace/1ByteSoftware/Library/1byte:react-design/dist") directory. - - ```sh - yarn build:pro - ``` - - This will place all files needed for deployment for production server into the [`/dist`](command:_github.copilot.openRelativePath?%5B%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fkenneth_wise%2FWorkspace%2F1ByteSoftware%2FLibrary%2F1byte%3Areact-design%2Fdist%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%2C%22cd97981e-fe0d-41e4-b8a7-f07d20b5fc41%22%5D "/Users/kenneth_wise/Workspace/1ByteSoftware/Library/1byte:react-design/dist") directory. + This will place all files needed for deployment for develop server into the [`/dist`](command:_github.copilot.openRelativePath?%5B%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fkenneth_wise%2FWorkspace%2F1ByteSoftware%2FLibrary%2F1byte%3Areact-design%2Fdist%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%2C%22cd97981e-fe0d-41e4-b8a7-f07d20b5fc41%22%5D '/Users/kenneth_wise/Workspace/1ByteSoftware/Library/1byte:react-design/dist') directory. ## License @@ -119,17 +122,18 @@ We welcome contributions to improve this library. Please fork the repository and ## Authors -- [Your Name](https://github.com/your-github-username) +- [1byte dev](https://github.com/1Byte-Software/) ## Acknowledgments -- [Ant Design](https://ant.design/) -- [Emotion](https://emotion.sh/docs/introduction) -- [TypeScript](https://www.typescriptlang.org/) +- [Ant Design](https://ant.design/) +- [Emotion](https://emotion.sh/docs/introduction) +- [TypeScript](https://www.typescriptlang.org/) ## About This library is developed by 1Byte to unify the interface for the company, optimize component reuse, and ensure that our developers do not need to remember conventions. The library is based on the Atomic Design architecture. + ``` -Bạn có thể thay thế các thông tin như "Your Name" và "your-github-username" bằng thông tin của bạn. \ No newline at end of file +``` diff --git a/dist/ConfigProviderDesign.d.ts b/dist/ConfigProviderDesign.d.ts new file mode 100644 index 0000000..3ab046a --- /dev/null +++ b/dist/ConfigProviderDesign.d.ts @@ -0,0 +1,16 @@ +import { ThemeConfig } from 'antd'; +import { PropsWithChildren } from 'react'; +interface IConfigProviderDesignProps extends PropsWithChildren { + /** + * The theme components configuration. + * This will override the default `config.componentToken` if provided. + */ + componentToken?: ThemeConfig['components']; + /** + * The theme design token configuration. + * This will override the default `config.designToken` if provided. + */ + designToken?: ThemeConfig['token']; +} +export declare const ConfigProviderDesign: ({ children, componentToken, designToken, }: IConfigProviderDesignProps) => import("react/jsx-runtime").JSX.Element; +export {}; diff --git a/dist/atomics/TextError/TextError.d.ts b/dist/atomics/TextError/TextError.d.ts new file mode 100644 index 0000000..68e247a --- /dev/null +++ b/dist/atomics/TextError/TextError.d.ts @@ -0,0 +1,2 @@ +import { ITextErrorProps } from './types'; +export declare const TextError: (props: ITextErrorProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/atomics/TextError/index.d.ts b/dist/atomics/TextError/index.d.ts new file mode 100644 index 0000000..8c560d6 --- /dev/null +++ b/dist/atomics/TextError/index.d.ts @@ -0,0 +1 @@ +export * from './TextError'; diff --git a/dist/atomics/TextError/styles.d.ts b/dist/atomics/TextError/styles.d.ts new file mode 100644 index 0000000..d5a64e9 --- /dev/null +++ b/dist/atomics/TextError/styles.d.ts @@ -0,0 +1,4 @@ +export declare const TextErrorWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; diff --git a/dist/atomics/Typography/H1.d.ts b/dist/atomics/Typography/H1.d.ts new file mode 100644 index 0000000..1a3d697 --- /dev/null +++ b/dist/atomics/Typography/H1.d.ts @@ -0,0 +1,2 @@ +import { IH1Props } from '../TextError/types'; +export declare const H1: (props: IH1Props) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/atomics/Typography/H2.d.ts b/dist/atomics/Typography/H2.d.ts new file mode 100644 index 0000000..732041b --- /dev/null +++ b/dist/atomics/Typography/H2.d.ts @@ -0,0 +1,2 @@ +import { IH2Props } from '../TextError/types'; +export declare const H2: (props: IH2Props) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/atomics/Typography/H3.d.ts b/dist/atomics/Typography/H3.d.ts new file mode 100644 index 0000000..5845f82 --- /dev/null +++ b/dist/atomics/Typography/H3.d.ts @@ -0,0 +1,2 @@ +import { IH3Props } from '../TextError/types'; +export declare const H3: (props: IH3Props) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/atomics/Typography/H4.d.ts b/dist/atomics/Typography/H4.d.ts new file mode 100644 index 0000000..b50c691 --- /dev/null +++ b/dist/atomics/Typography/H4.d.ts @@ -0,0 +1,2 @@ +import { IH4Props } from '../TextError/types'; +export declare const H4: (props: IH4Props) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/atomics/Typography/H5.d.ts b/dist/atomics/Typography/H5.d.ts new file mode 100644 index 0000000..62283b5 --- /dev/null +++ b/dist/atomics/Typography/H5.d.ts @@ -0,0 +1,2 @@ +import { IH5Props } from '../TextError/types'; +export declare const H5: (props: IH5Props) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/atomics/Typography/H6.d.ts b/dist/atomics/Typography/H6.d.ts new file mode 100644 index 0000000..ff211c6 --- /dev/null +++ b/dist/atomics/Typography/H6.d.ts @@ -0,0 +1,2 @@ +import { IH6Props } from '../TextError/types'; +export declare const H6: (props: IH6Props) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/atomics/Typography/index.d.ts b/dist/atomics/Typography/index.d.ts new file mode 100644 index 0000000..397f5c1 --- /dev/null +++ b/dist/atomics/Typography/index.d.ts @@ -0,0 +1,6 @@ +export * from './H1'; +export * from './H2'; +export * from './H3'; +export * from './H4'; +export * from './H5'; +export * from './H6'; diff --git a/dist/atomics/Typography/styles.d.ts b/dist/atomics/Typography/styles.d.ts new file mode 100644 index 0000000..ddf973a --- /dev/null +++ b/dist/atomics/Typography/styles.d.ts @@ -0,0 +1,24 @@ +export declare const H1Wrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLHeadingElement>, {}>; +export declare const H2Wrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLHeadingElement>, {}>; +export declare const H3Wrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLHeadingElement>, {}>; +export declare const H4Wrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLHeadingElement>, {}>; +export declare const H5Wrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLHeadingElement>, {}>; +export declare const H6Wrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLHeadingElement>, {}>; diff --git a/dist/atomics/index.d.ts b/dist/atomics/index.d.ts new file mode 100644 index 0000000..5c68272 --- /dev/null +++ b/dist/atomics/index.d.ts @@ -0,0 +1,3 @@ +export * from './Flex/index'; +export * from './TextError/index'; +export * from './Typography/index'; diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..943bb19 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,11 @@ +import { ThemeConfig } from 'antd'; +export interface IConfig { + designToken: NonNullable; + componentToken: ThemeConfig['components']; +} +export declare const config: IConfig; +export * from './atomics'; +export * from './models'; +export * from './molecules'; +export * from './organisms'; +export declare const version = "0.0.6"; diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..d73e8e8 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,2 @@ +/*! For license information please see index.js.LICENSE.txt */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("1byte-react-design",["react","react-dom"],t):"object"==typeof exports?exports["1byte-react-design"]=t(require("react"),require("react-dom")):e["1byte-react-design"]=t(e.react,e["react-dom"])}(this,((e,t)=>(()=>{var n={5655:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(x,--b):0,h--,10===y&&(h=1,g--),y}function $(){return y=b2||j(y)>3?"":" "}function R(e,t){for(;--t&&$()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return O(e,E()+(t<6&&32==k()&&32==$()))}function T(e){for(;$();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&T(y);break;case 40:41===e&&T(e);break;case 92:$()}return b}function A(e,t){for(;$()&&e+y!==57&&(e+y!==84||47!==k()););return"/*"+O(t,b-1)+"*"+i(47===e?e:$())}function z(e){for(;!j(k());)$();return O(e,b)}var _="-ms-",D="-moz-",B="-webkit-",H="comm",L="rule",F="decl",W="@keyframes";function V(e,t){for(var n="",r=p(e),o=0;o0&&f(D)-v&&m(y>32?U(D+";",r,n,v-1):U(c(D," ","")+";",r,n,v-2),p);break;case 59:D+=";";default:if(m(_=G(D,t,n,g,h,o,d,M,I=[],T=[],v),a),123===j)if(0===h)X(D,t,_,_,I,a,v,d,T);else switch(99===b&&110===u(D,3)?100:b){case 100:case 108:case 109:case 115:X(e,_,_,r&&m(G(e,_,_,0,0,o,d,M,o,I=[],v),T),o,T,v,d,r?I:T);break;default:X(D,_,_,_,[""],T,0,d,T)}}g=h=y=0,C=O=1,M=D="",v=l;break;case 58:v=1+f(D),y=x;default:if(C<1)if(123==j)--C;else if(125==j&&0==C++&&125==S())continue;switch(D+=i(j),j*C){case 38:O=h>0?1:(D+="\f",-1);break;case 44:d[g++]=(f(D)-1)*O,O=1;break;case 64:45===k()&&(D+=N($())),b=k(),h=v=f(M=D+=z(E())),j++;break;case 45:45===x&&2==f(D)&&(C=0)}}return a}function G(e,t,n,r,i,a,s,u,f,m,g){for(var h=i-1,v=0===i?a:[""],b=p(v),y=0,x=0,w=0;y0?v[S]+" "+$:c($,/&\f/g,v[S])))&&(f[w++]=k);return C(e,t,n,0===i?L:u,f,m,g)}function Y(e,t,n){return C(e,t,n,H,i(y),d(e,2,-2),0)}function U(e,t,n,r){return C(e,t,n,F,d(e,0,r),d(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,o=0;r=o,o=k(),38===r&&12===o&&(t[n]=1),!j(o);)$();return O(e,b)},Z=new WeakMap,J=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var o=[],a=function(e,t){return I(function(e,t){var n=-1,r=44;do{switch(j(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=Q(b-1,t,n);break;case 2:e[n]+=N(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=$());return e}(M(e),t))}(t,o),l=n.props,c=0,s=0;c6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~s(e,"stretch")?te(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~s(e,"!important")&&10))){case 107:return c(e,":",":"+B)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+_+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+_+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+_+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+_+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+_+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case F:e.return=te(e.value,e.length);break;case W:return V([w(e,{value:c(e.value,"@","@"+B)})],r);case L:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return V([w(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([w(e,{props:[c(t,/:(plac\w+)/,":"+B+"input-$1")]}),w(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[c(t,/:(plac\w+)/,_+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||ne,l={},c=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},3228:(e,t,n)=>{"use strict";n.d(t,{C:()=>g,E:()=>O,T:()=>b,_:()=>h,a:()=>C,b:()=>w,c:()=>k,h:()=>S,i:()=>p,u:()=>y,w:()=>v});var r=n(9155),o=n(5655),i=n(8168),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},l=n(4146),c=n.n(l),s=function(e,t){return c()(e,t)},u=n(41),d=n(3174),f=n(1287),p=!1,m=r.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null),g=m.Provider,h=function(){return(0,r.useContext)(m)},v=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(m);return e(t,o,n)}))},b=r.createContext({}),y=function(){return r.useContext(b)},x=a((function(e){return a((function(t){return function(e,t){return"function"==typeof t?t(e):(0,i.A)({},e,t)}(e,t)}))})),C=function(e){var t=r.useContext(b);return e.theme!==t&&(t=x(t)(e.theme)),r.createElement(b.Provider,{value:t},e.children)};function w(e){var t=e.displayName||e.name||"Component",n=function(t,n){var o=r.useContext(b);return r.createElement(e,(0,i.A)({theme:o,ref:n},t))},o=r.forwardRef(n);return o.displayName="WithTheme("+t+")",s(o,e)}var S={}.hasOwnProperty,$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",k=function(e,t){var n={};for(var r in t)S.call(t,r)&&(n[r]=t[r]);return n[$]=e,n},E=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,u.SF)(t,n,r),(0,f.s)((function(){return(0,u.sk)(t,n,r)})),null},O=v((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[$],a=[o],l="";"string"==typeof e.className?l=(0,u.Rk)(t.registered,a,e.className):null!=e.className&&(l=e.className+" ");var c=(0,d.J)(a,void 0,r.useContext(b));l+=t.key+"-"+c.name;var s={};for(var f in e)S.call(e,f)&&"css"!==f&&f!==$&&!p&&(s[f]=e[f]);return s.className=l,n&&(s.ref=n),r.createElement(r.Fragment,null,r.createElement(E,{cache:t,serialized:c,isStringTag:"string"==typeof i}),r.createElement(i,s))}))},7437:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CacheProvider:()=>r.C,ClassNames:()=>m,Global:()=>s,ThemeContext:()=>r.T,ThemeProvider:()=>r.a,__unsafe_useEmotionCache:()=>r._,createElement:()=>c,css:()=>u,jsx:()=>c,keyframes:()=>d,useTheme:()=>r.u,withEmotionCache:()=>r.w,withTheme:()=>r.b});var r=n(3228),o=n(9155),i=n(41),a=n(1287),l=n(3174),c=(n(5655),n(4146),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return o.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var l=2;l{"use strict";n.d(t,{J:()=>h});var r={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},o=n(6289),i=!1,a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!=typeof e},u=(0,o.A)((function(e){return c(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,(function(e,t,n){return m={name:t,styles:n,next:m},t}))}return 1===r[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"},f="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function p(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return m={name:o.name,styles:o.styles,next:m},o.name;var a=n;if(void 0!==a.styles){var l=a.next;if(void 0!==l)for(;void 0!==l;)m={name:l.name,styles:l.styles,next:m},l=l.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:s,styles:o,next:m}}},1479:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(8168),o=n(9155),i=n(6289),a=/^((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)-.*))$/,l=(0,i.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),c=n(3228),s=n(41),u=n(3174),d=n(1287),f=l,p=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?f:p},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.SF)(t,n,r),(0,d.s)((function(){return(0,s.sk)(t,n,r)})),null},v=function e(t,n){var i,a,l=t.__emotion_real===t,d=l&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var f=g(t,n,l),p=f||m(d),v=!p("as");return function(){var b=arguments,y=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{y.push(b[0][0]);for(var x=b.length,C=1;C{"use strict";n.d(t,{i:()=>a,s:()=>i});var r=n(9155),o=!!r.useInsertionEffect&&r.useInsertionEffect,i=o||function(e){return e()},a=o||r.useLayoutEffect},41:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},674:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Affix:()=>ei,Alert:()=>Ka,Anchor:()=>pl,App:()=>Mg,AutoComplete:()=>oy,Avatar:()=>rx,BackTop:()=>ux,Badge:()=>jx,Breadcrumb:()=>uS,Button:()=>$d,Calendar:()=>uE,Card:()=>vO,Carousel:()=>gj,Cascader:()=>$M,Checkbox:()=>NM,Col:()=>LM,Collapse:()=>Nu,ColorPicker:()=>mR,ConfigProvider:()=>Uc,DatePicker:()=>eT,Descriptions:()=>fT,Divider:()=>VM,Drawer:()=>TT,Dropdown:()=>KT,Empty:()=>Xv,Flex:()=>rA,FloatButton:()=>kA,Form:()=>hz,Grid:()=>vz,Image:()=>f_,Input:()=>aP,InputNumber:()=>wN,Layout:()=>w_,List:()=>$D,Mentions:()=>qD,Menu:()=>Kw,Modal:()=>aB,Pagination:()=>J_,Popconfirm:()=>wB,Popover:()=>ex,Progress:()=>QB,QRCode:()=>EH,Radio:()=>jH,Rate:()=>FH,Result:()=>nL,Row:()=>rL,Segmented:()=>iI,Select:()=>Zb,Skeleton:()=>tm,Slider:()=>FP,Space:()=>FT,Spin:()=>fD,Splitter:()=>iU,Statistic:()=>dL,Steps:()=>TL,Switch:()=>KL,Table:()=>oK,Tabs:()=>nO,Tag:()=>gK,TimePicker:()=>EK,Timeline:()=>RK,Tooltip:()=>qy,Tour:()=>JK,Transfer:()=>kX,Tree:()=>ZV,TreeSelect:()=>QX,Typography:()=>FG,Upload:()=>HY,Watermark:()=>GY,message:()=>nB,notification:()=>vB,theme:()=>xK,version:()=>br});var r=n(9155),o=n.n(r),i=n(6942),a=n.n(i),l=n(8168),c=n(6351);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(s(e)):(0,c.isFragment)(e)&&e.props?n=n.concat(s(e.props.children,t)):n.push(e))})),n}var u={},d=[];function f(e,t){}function p(e,t){}function m(e,t,n){t||u[n]||(e(!1,n),u[n]=!0)}function g(e,t){m(f,e,t)}function h(e,t){m(p,e,t)}g.preMessage=function(e){d.push(e)},g.resetWarned=function(){u={}},g.noteOnce=h;const v=g;function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function y(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}function x(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t0},e.prototype.connect_=function(){A&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),B?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){A&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;D.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),L=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Z="undefined"!=typeof WeakMap?new WeakMap:new T,J=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=H.getInstance(),r=new Q(t,n,this);Z.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){J.prototype[e]=function(){var t;return(t=Z.get(this))[e].apply(t,arguments)}}));const ee=void 0!==z.ResizeObserver?z.ResizeObserver:J;var te=new Map,ne=new ee((function(e){e.forEach((function(e){var t,n=e.target;null===(t=te.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:1),t};Me.cancel=function(e){var t=Oe.get(e);return je(e),ke(t)};const Ie=Me,Ne=function(e){let t;const n=function(){if(null==t){for(var n=arguments.length,r=new Array(n),o=0;o()=>{t=null,e.apply(void 0,Se(n))})(r))}};return n.cancel=()=>{Ie.cancel(t),t=null},n},Pe="ant",Re="anticon",Te=["outlined","borderless","filled"],Ae=r.createContext({getPrefixCls:(e,t)=>t||(e?`${Pe}-${e}`:Pe),iconPrefixCls:Re}),{Consumer:ze}=Ae;function _e(e){if(Array.isArray(e))return e}function De(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Be(e,t){return _e(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||we(e,t)||De()}const He=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Le(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Fe(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var We="data-rc-order",Ve="data-rc-priority",qe=new Map;function Ke(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function Xe(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ge(e){return Array.from((qe.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Le())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(We,a),l&&i&&c.setAttribute(Ve,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=Xe(t),u=s.firstChild;if(r){if(l){var d=(t.styles||Ge(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(We)))return!1;var t=Number(e.getAttribute(Ve)||0);return i>=t}));if(d.length)return s.insertBefore(c,d[d.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xe(t);return(t.styles||Ge(n)).find((function(n){return n.getAttribute(Ke(t))===e}))}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ue(e,t);n&&Xe(t).removeChild(n)}function Ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Xe(n),o=Ge(r),i=w(w({},n),{},{styles:o});!function(e,t){var n=qe.get(e);if(!n||!Fe(document,n)){var r=Ye("",t),o=r.parentNode;qe.set(e,o),e.removeChild(r)}}(r,i);var a,l,c,s=Ue(t,i);if(s)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&s.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce)&&(s.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;var u=Ye(e,i);return u.setAttribute(Ke(i),t),u}const Je=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(v(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o=o?null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=Be(e,2)[1];return r.internalGet(t)[1]1&&void 0!==arguments[1]&&arguments[1],n=gt.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof ut?n+=o.id:o&&"object"===b(o)?n+=ht(o,t):n+=o})),t&&(n=He(n)),gt.set(e,n)),n}function vt(e,t){return He("".concat(t,"_").concat(ht(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var bt=Le();function yt(e){return"number"==typeof e?"".concat(e,"px"):e}function xt(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=w(w({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},x(x({},rt,t),ot,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var Ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},wt=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Be(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},St=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=Be(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Ct(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,wt(r,t,{scope:null==n?void 0:n.scope})]},$t=Le()?r.useLayoutEffect:r.useEffect,kt=function(e,t){var n=r.useRef(!0);$t((function(){return e(n.current)}),t),$t((function(){return n.current=!1,function(){n.current=!0}}),[])},Et=function(e,t){kt((function(t){if(!t)return e()}),t)};const Ot=kt;var jt=w({},r).useInsertionEffect;const Mt=jt?function(e,t,n){return jt((function(){return e(),t()}),n)}:function(e,t,n){r.useMemo(e,n),Ot((function(){return t(!0)}),n)},It=void 0!==w({},r).useInsertionEffect?function(e){var t=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function Nt(e,t,n,o,i){var a=r.useContext(lt).cache,l=et([e].concat(Se(t))),c=It([l]),s=function(e){a.opUpdate(l,(function(t){var r=Be(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};r.useMemo((function(){s()}),[l]);var u=a.opGet(l)[1];return Mt((function(){null==i||i(u)}),(function(e){return s((function(t){var n=Be(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=Be(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0==i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),u}var Pt={},Rt=new Map;var Tt=function(e,t,n,r){var o=w(w({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},At="token";function zt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,r.useContext)(lt),i=o.cache.instanceId,a=o.container,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?Pt:s,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,m=function(e,n){for(var r=pt,o=0;o0&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(rt,'="').concat(e,'"]')).forEach((function(e){var n;e[it]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Rt.delete(e)}))}(e[0]._themeKey,i)}),(function(e){var t=Be(e,4),n=t[0],r=t[3];if(p&&r){var o=Ze(r,He("css-variables-".concat(n._themeKey)),{mark:ot,prepend:"queue",attachTo:a,priority:-999});o[it]=i,o.setAttribute(rt,n._themeKey)}}));return b}const _t={animationIterationCount: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,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};var Dt="comm",Bt="rule",Ht="decl",Lt=Math.abs,Ft=String.fromCharCode;function Wt(e){return e.trim()}function Vt(e,t,n){return e.replace(t,n)}function qt(e,t,n){return e.indexOf(t,n)}function Kt(e,t){return 0|e.charCodeAt(t)}function Xt(e,t,n){return e.slice(t,n)}function Gt(e){return e.length}function Yt(e,t){return t.push(e),e}function Ut(e,t){for(var n="",r=0;r0?Kt(rn,--tn):0,Jt--,10===nn&&(Jt=1,Zt--),nn}function ln(){return nn=tn2||dn(nn)>3?"":" "}function mn(e,t){for(;--t&&ln()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return un(e,sn()+(t<6&&32==cn()&&32==ln()))}function gn(e){for(;ln();)switch(nn){case e:return tn;case 34:case 39:34!==e&&39!==e&&gn(nn);break;case 40:41===e&&gn(e);break;case 92:ln()}return tn}function hn(e,t){for(;ln()&&e+nn!==57&&(e+nn!==84||47!==cn()););return"/*"+un(t,tn-1)+"*"+Ft(47===e?e:ln())}function vn(e){for(;!dn(cn());)ln();return un(e,tn)}function bn(e){return function(e){return rn="",e}(yn("",null,null,null,[""],e=function(e){return Zt=Jt=1,en=Gt(rn=e),tn=0,[]}(e),0,[0],e))}function yn(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,m=0,g=1,h=1,v=1,b=0,y="",x=o,C=i,w=r,S=y;h;)switch(m=b,b=ln()){case 40:if(108!=m&&58==Kt(S,d-1)){-1!=qt(S+=Vt(fn(b),"&","&\f"),"&\f",Lt(s?l[s-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=fn(b);break;case 9:case 10:case 13:case 32:S+=pn(m);break;case 92:S+=mn(sn()-1,7);continue;case 47:switch(cn()){case 42:case 47:Yt(Cn(hn(ln(),sn()),t,n,c),c),5!=dn(m||1)&&5!=dn(cn()||1)||!Gt(S)||" "===Xt(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:l[s++]=Gt(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(S=Vt(S,/\f/g,"")),p>0&&(Gt(S)-d||0===g&&47===m)&&Yt(p>32?wn(S+";",r,n,d-1,c):wn(Vt(S," ","")+";",r,n,d-2,c),c);break;case 59:S+=";";default:if(Yt(w=xn(S,t,n,s,u,o,l,y,x=[],C=[],d,i),i),123===b)if(0===u)yn(S,t,w,w,x,i,d,l,C);else switch(99===f&&110===Kt(S,3)?100:f){case 100:case 108:case 109:case 115:yn(e,w,w,r&&Yt(xn(e,w,w,0,0,o,l,y,o,x=[],d,C),C),o,C,d,l,r?x:C);break;default:yn(S,w,w,w,[""],C,0,l,C)}}s=u=p=0,g=v=1,y=S="",d=a;break;case 58:d=1+Gt(S),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==an())continue;switch(S+=Ft(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:l[s++]=(Gt(S)-1)*v,v=1;break;case 64:45===cn()&&(S+=fn(ln())),f=cn(),u=d=Gt(y=S+=vn(sn())),b++;break;case 45:45===m&&2==Gt(S)&&(g=0)}}return i}function xn(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),g=0,h=0,v=0;g0?p[b]+" "+y:Vt(y,/&\f/g,p[b])))&&(c[v++]=x);return on(e,t,n,0===o?Bt:l,c,s,u,d)}function Cn(e,t,n,r){return on(e,t,n,Dt,Ft(nn),Xt(e,2,-2),0,r)}function wn(e,t,n,r,o){return on(e,t,n,Ht,Xt(e,0,r),Xt(e,r+1,-1),r,o)}var Sn,$n="data-ant-cssinjs-cache-path",kn="_FILE_STYLE__",En=!0;var On="_multi_value_";function jn(e){return Ut(bn(e),Qt).replace(/\{%%%\:[^;];}/g,";")}var Mn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function m(t){var r=t.getName(l);if(!p[r]){var o=Be(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return g.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var c=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==b(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===b(e)&&e&&("_skip_check_"in e||On in e)}(r)){var u;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;_t[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===b(r)&&null!=r&&r[On]&&Array.isArray(d)?d.forEach((function(e){S(t,e)})):S(t,d)}else{var g=!1,h=t.trim(),v=!1;(o||i)&&l?h.startsWith("@")?g=!0:h=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Se(n.slice(1))).join(" ")})).join(",")}("&"===h?"":t,l,s):!o||l||"&"!==h&&""!==h||(h="",v=!0);var y=Be(e(r,n,{root:v,injectHash:g,parentSelectors:[].concat(Se(a),[h])}),2),x=y[0],C=y[1];p=w(w({},p),C),f+="".concat(h).concat(x)}}))}})),o?c&&(f="@layer ".concat(c.name," {").concat(f,"}"),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function In(e,t){return He("".concat(e.join("%")).concat(t))}function Nn(){return null}var Pn="style";function Rn(e,t){var n=e.token,o=e.path,i=e.hashId,a=e.layer,c=e.nonce,s=e.clientOnly,u=e.order,d=void 0===u?0:u,f=r.useContext(lt),p=f.autoClear,m=(f.mock,f.defaultCache),g=f.hashPriority,h=f.container,v=f.ssrInline,b=f.transformers,y=f.linters,C=f.cache,S=f.layer,$=n._tokenKey,k=[$];S&&k.push("layer"),k.push.apply(k,Se(o));var E=bt,O=Nt(Pn,k,(function(){var e=k.join("|");if(function(e){return function(){if(!Sn&&(Sn={},Le())){var e=document.createElement("div");e.className=$n,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=Be(e.split(":"),2),n=t[0],r=t[1];Sn[n]=r}));var n,r=document.querySelector("style[".concat($n,"]"));r&&(En=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Sn[e]}(e)){var n=function(e){var t=Sn[e],n=null;if(t&&Le())if(En)n=kn;else{var r=document.querySelector("style[".concat(ot,'="').concat(Sn[e],'"]'));r?n=r.innerHTML:delete Sn[e]}return[n,t]}(e),r=Be(n,2),l=r[0],c=r[1];if(l)return[l,$,c,{},s,d]}var u=t(),f=Be(Mn(u,{hashId:i,hashPriority:g,layer:S?a:void 0,path:o.join("-"),transformers:b,linters:y}),2),p=f[0],m=f[1],h=jn(p),v=In(k,h);return[h,$,v,m,s,d]}),(function(e,t){var n=Be(e,3)[2];(t||p)&&bt&&Qe(n,{mark:ot})}),(function(e){var t=Be(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==kn){var i={mark:ot,prepend:!S&&"queue",attachTo:h,priority:d},a="function"==typeof c?c():c;a&&(i.csp={nonce:a});var l=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):s.push(e)})),l.forEach((function(e){Ze(jn(o[e]),"_layer-".concat(e),w(w({},i),{},{prepend:!0}))}));var u=Ze(n,r,i);u[it]=C.instanceId,u.setAttribute(rt,$),s.forEach((function(e){Ze(jn(o[e]),"_effect-".concat(e),i)}))}})),j=Be(O,3),M=j[0],I=j[1],N=j[2];return function(e){var t;return t=v&&!E&&m?r.createElement("style",(0,l.A)({},x(x({},rt,I),ot,N),{dangerouslySetInnerHTML:{__html:M}})):r.createElement(Nn,null),r.createElement(r.Fragment,null,t,e)}}var Tn="cssVar";x(x(x({},Pn,(function(e,t,n){var r=Be(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=xt(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=xt(jn(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[s,a,d]})),At,(function(e,t,n){var r=Be(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,xt(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),Tn,(function(e,t,n){var r=Be(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;return o?[-999,i,xt(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null}));var An=function(){function e(t,n){re(this,e),x(this,"name",void 0),x(this,"style",void 0),x(this,"_keyframe",!0),this.name=t,this.style=n}return ie(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const zn=An;function _n(e){return e.notSplit=!0,e}_n(["borderTop","borderBottom"]),_n(["borderTop"]),_n(["borderBottom"]),_n(["borderLeft","borderRight"]),_n(["borderLeft"]),_n(["borderRight"]);const Dn=ie((function e(){re(this,e)}));var Bn="CALC_UNIT",Hn=new RegExp(Bn,"g");function Ln(e){return"number"==typeof e?"".concat(e).concat(Bn):e}var Fn=function(e){le(n,e);var t=fe(n);function n(e,r){var o;re(this,n),x(ue(o=t.call(this)),"result",""),x(ue(o),"unitlessCssVar",void 0),x(ue(o),"lowPriority",void 0);var i=b(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Ln(e):"string"===i&&(o.result=e),o}return ie(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Ln(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Ln(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Hn,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Dn);const Wn=function(e){le(n,e);var t=fe(n);function n(e){var r;return re(this,n),x(ue(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return ie(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Dn),Vn=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function qn(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Un(e,t.slice(0,-1))?e:Qn(e,t,n,r)}function Jn(e){return Array.isArray(e)?[]:{}}var er="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function tr(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),ur=new sr;const dr=function(){return{}},fr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},pr=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},mr=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),gr=e=>({outline:`${yt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),hr=e=>({"&:focus-visible":Object.assign({},gr(e))}),vr=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},hr(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),br="5.21.2";function yr(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function xr(e){return Math.min(1,Math.max(0,e))}function Cr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function wr(e){return e<=1?"".concat(100*Number(e),"%"):e}function Sr(e){return 1===e.length?"0"+e:String(e)}function $r(e,t,n){e=yr(e,255),t=yr(t,255),n=yr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Er(e,t,n){e=yr(e,255),t=yr(t,255),n=yr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function Lr(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Fr(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function Wr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Nr(e),o=5;o>0;o-=1){var i=Dr(r),a=Br(Nr({h:Hr(i,o,!0),s:Lr(i,o,!0),v:Fr(i,o,!0)}));n.push(a)}n.push(Br(r));for(var l=1;l<=4;l+=1){var c=Dr(r),s=Br(Nr({h:Hr(c,l),s:Lr(c,l),v:Fr(c,l)}));n.push(s)}return"dark"===t.theme?_r.map((function(e){var r,o,i,a=e.index,l=e.opacity;return Br((r=Nr(t.backgroundColor||"#141414"),i=100*l/100,{r:((o=Nr(n[a])).r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var Vr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},qr=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];qr.primary=qr[5];var Kr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Kr.primary=Kr[5];var Xr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Xr.primary=Xr[5];var Gr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Gr.primary=Gr[5];var Yr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Yr.primary=Yr[5];var Ur=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ur.primary=Ur[5];var Qr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Qr.primary=Qr[5];var Zr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Zr.primary=Zr[5];var Jr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Jr.primary=Jr[5];var eo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];eo.primary=eo[5];var to=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];to.primary=to[5];var no=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];no.primary=no[5];var ro=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ro.primary=ro[5];var oo={red:qr,volcano:Kr,orange:Xr,gold:Gr,yellow:Yr,lime:Ur,green:Qr,cyan:Zr,blue:Jr,geekblue:eo,purple:to,magenta:no,grey:ro},io=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];io.primary=io[5];var ao=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];ao.primary=ao[5];var lo=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];lo.primary=lo[5];var co=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];co.primary=co[5];var so=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];so.primary=so[5];var uo=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];uo.primary=uo[5];var fo=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];fo.primary=fo[5];var po=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];po.primary=po[5];var mo=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];mo.primary=mo[5];var go=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];go.primary=go[5];var ho=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];ho.primary=ho[5];var vo=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];vo.primary=vo[5];var bo=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];bo.primary=bo[5];const yo={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},xo=Object.assign(Object.assign({},yo),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var Co=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Nr(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Cr(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Er(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Er(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=$r(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=$r(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Or(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[Sr(Math.round(e).toString(16)),Sr(Math.round(t).toString(16)),Sr(Math.round(n).toString(16)),Sr((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*yr(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*yr(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Or(this.r,this.g,this.b,!1),t=0,n=Object.entries(Ir);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=xr(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=xr(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=xr(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=xr(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function $o(e){return(e+8)/e}const ko=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:$o(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Eo=(e,t)=>new Co(e).setAlpha(t).toRgbString(),Oo=(e,t)=>new Co(e).darken(t).toHexString(),jo=e=>{const t=Wr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Mo=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Eo(r,.88),colorTextSecondary:Eo(r,.65),colorTextTertiary:Eo(r,.45),colorTextQuaternary:Eo(r,.25),colorFill:Eo(r,.15),colorFillSecondary:Eo(r,.06),colorFillTertiary:Eo(r,.04),colorFillQuaternary:Eo(r,.02),colorBgSolid:Eo(r,1),colorBgSolidHover:Eo(r,.75),colorBgSolidActive:Eo(r,.95),colorBgLayout:Oo(n,4),colorBgContainer:Oo(n,0),colorBgElevated:Oo(n,0),colorBgSpotlight:Eo(r,.85),colorBgBlur:"transparent",colorBorder:Oo(n,15),colorBorderSecondary:Oo(n,6)}};function Io(e){Vr.pink=Vr.magenta,oo.pink=oo.magenta;const t=Object.keys(yo).map((t=>{const n=e[t]===Vr[t]?oo[t]:Wr(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),wo(e,{generateColorPalettes:jo,generateNeutralColorPalettes:Mo})),ko(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),So(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}})(r))}(e))}const No=ft(Io),Po={token:xo,override:{override:xo},hashed:!0},Ro=o().createContext(Po);function To(e){return e>=0&&e<=255}const Ao=function(e,t){const{r:n,g:r,b:o,a:i}=new Co(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Co(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(To(t)&&To(i)&&To(s))return new Co({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new Co({r:n,g:r,b:o,a:1}).toRgbString()};function zo(e){const{override:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ao(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ao(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ao(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ao(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Co("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Co("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Co("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var _o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=_o(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=zo(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=_o(n,["theme"]);let i=o;r&&(i=Lo(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Fo(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=o().useContext(Ro),a=`${br}-${t||""}`,l=n||No,[c,s,u]=zt(l,[xo,e],{salt:a,override:r,getComputedToken:Lo,formatToken:zo,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Do,ignore:Bo,preserve:Ho}});return[l,u,t?s:"",c,i]}const Wo=(e,t)=>{const[n,r]=Fo();return Rn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},{genStyleHooks:Vo,genComponentStyleHook:qo,genSubStyleComponent:Ko}=function(e){var t=e.useCSP,n=void 0===t?dr:t,i=e.useToken,a=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,s=e.getCompUnitless;function u(t,r,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(t)?t:[t,t],f=Be(d,1)[0],p=d.join("-"),m=e.layer||{name:"antd"};return function(e){var t,d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,h=i(),v=h.theme,y=h.realToken,x=h.hashId,C=h.token,S=h.cssVar,$=a(),k=$.rootPrefixCls,E=$.iconPrefixCls,O=n(),j=S?"css":"js",M=(t=function(){var e=new Set;return S&&Object.keys(u.unitless||{}).forEach((function(t){e.add(Ct(t,S.prefix)),e.add(Ct(t,Vn(f,S.prefix)))})),function(e,t){var n="css"===e?Fn:Wn;return function(e){return new n(e,t)}}(j,e)},d=[j,f,null==S?void 0:S.prefix],o().useMemo((function(){var e=ur.get(d);if(e)return e;var n=t();return ur.set(d,n),n}),d)),I=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:e,n=Be(m(e,t),2)[1],r=Be(g(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,w({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(Ae);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Fo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=(0,r.useContext)(Ae);return Wo(t,e),null!=e?e:{}},getResetStyles:e=>[{"&":mr(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>Do}),Xo=Vo("Affix",(e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}}),(e=>({zIndexPopup:e.zIndexBase+10})));function Go(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Yo(e,t,n){if(void 0!==n&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function Uo(e,t,n){if(void 0!==n&&Math.round(t.bottom){var n;const{style:r,offsetTop:i,offsetBottom:l,prefixCls:c,className:s,rootClassName:u,children:d,target:f,onChange:p}=e,{getPrefixCls:m,getTargetContainer:g}=o().useContext(Ae),h=m("affix",c),[v,b]=o().useState(!1),[y,x]=o().useState(),[C,w]=o().useState(),S=o().useRef(0),$=o().useRef(null),k=o().useRef(),E=o().useRef(null),O=o().useRef(null),j=o().useRef(null),M=null!==(n=null!=f?f:g)&&void 0!==n?n:Zo,I=void 0===l&&void 0===i?0:i,N=()=>{S.current=1,(()=>{if(1!==S.current||!O.current||!E.current||!M)return;const e=M();if(e){const t={status:0},n=Go(E.current);if(0===n.top&&0===n.left&&0===n.width&&0===n.height)return;const r=Go(e),o=Yo(n,r,I),i=Uo(n,r,l);void 0!==o?(t.affixStyle={position:"fixed",top:o,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}):void 0!==i&&(t.affixStyle={position:"fixed",bottom:i,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}),t.lastAffix=!!t.affixStyle,v!==t.lastAffix&&(null==p||p(t.lastAffix)),S.current=t.status,x(t.affixStyle),w(t.placeholderStyle),b(t.lastAffix)}})()},P=Ne((()=>{N()})),R=Ne((()=>{if(M&&y){const e=M();if(e&&E.current){const t=Go(e),n=Go(E.current),r=Yo(n,t,I),o=Uo(n,t,l);if(void 0!==r&&y.top===r||void 0!==o&&y.bottom===o)return}}N()})),T=()=>{const e=null==M?void 0:M();e&&(Qo.forEach((t=>{var n;k.current&&(null===(n=$.current)||void 0===n||n.removeEventListener(t,k.current)),null==e||e.addEventListener(t,R)})),$.current=e,k.current=R)};o().useImperativeHandle(t,(()=>({updatePosition:P}))),o().useEffect((()=>(j.current=setTimeout(T),()=>(()=>{j.current&&(clearTimeout(j.current),j.current=null);const e=null==M?void 0:M();Qo.forEach((t=>{var n;null==e||e.removeEventListener(t,R),k.current&&(null===(n=$.current)||void 0===n||n.removeEventListener(t,k.current))})),P.cancel(),R.cancel()})())),[]),o().useEffect((()=>{T()}),[f,y]),o().useEffect((()=>{P()}),[f,i,l]);const[A,z,_]=Xo(h),D=a()(u,z,h,_),B=a()({[D]:y});let H=ye(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return A(o().createElement(be,{onResize:P},o().createElement("div",Object.assign({style:r,className:s,ref:E},H),y&&o().createElement("div",{style:C,"aria-hidden":"true"}),o().createElement("div",{className:B,ref:O,style:y},o().createElement(be,{onResize:P},d)))))})),ei=Jo,ti={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function ni(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=r),t}),{})}function ci(e,t,n){return n?o().createElement(e.tag,w(w({key:t},li(e.attrs)),n),(e.children||[]).map((function(n,r){return ci(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):o().createElement(e.tag,w({key:t},li(e.attrs)),(e.children||[]).map((function(n,r){return ci(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function si(e){return Wr(e)[0]}function ui(e){return e?Array.isArray(e)?e:[e]:[]}var di=["icon","className","onClick","style","primaryColor","secondaryColor"],fi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},pi=function(e){var t,n,o,i,a,l=e.icon,c=e.className,s=e.onClick,u=e.style,d=e.primaryColor,f=e.secondaryColor,p=ni(e,di),m=r.useRef(),g=fi;if(d&&(g={primaryColor:d,secondaryColor:f||si(d)}),t=m,n=(0,r.useContext)(ri),o=n.csp,i=n.prefixCls,a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(a=a.replace(/anticon/g,i)),(0,r.useEffect)((function(){var e=ii(t.current);Ze(a,"@ant-design-icons",{prepend:!0,csp:o,attachTo:e})}),[]),function(e,t){v(e,"[@ant-design/icons] ".concat(t))}(ai(l),"icon should be icon definiton, but got ".concat(l)),!ai(l))return null;var h=l;return h&&"function"==typeof h.icon&&(h=w(w({},h),{},{icon:h.icon(g.primaryColor,g.secondaryColor)})),ci(h.icon,"svg-".concat(h.name),w(w({className:c,onClick:s,style:u,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p),{},{ref:m}))};pi.displayName="IconReact",pi.getTwoToneColors=function(){return w({},fi)},pi.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;fi.primaryColor=t,fi.secondaryColor=n||si(t),fi.calculated=!!n};const mi=pi;function gi(e){var t=Be(ui(e),2),n=t[0],r=t[1];return mi.setTwoToneColors({primaryColor:n,secondaryColor:r})}var hi=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];gi(Jr.primary);var vi=r.forwardRef((function(e,t){var n=e.className,o=e.icon,i=e.spin,c=e.rotate,s=e.tabIndex,u=e.onClick,d=e.twoToneColor,f=ni(e,hi),p=r.useContext(ri),m=p.prefixCls,g=void 0===m?"anticon":m,h=p.rootClassName,v=a()(h,g,x(x({},"".concat(g,"-").concat(o.name),!!o.name),"".concat(g,"-spin"),!!i||"loading"===o.name),n),b=s;void 0===b&&u&&(b=-1);var y=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,C=Be(ui(d),2),w=C[0],S=C[1];return r.createElement("span",(0,l.A)({role:"img","aria-label":o.name},f,{ref:t,tabIndex:b,onClick:u,className:v}),r.createElement(mi,{icon:o,primaryColor:w,secondaryColor:S,style:y}))}));vi.displayName="AntdIcon",vi.getTwoToneColor=function(){var e=mi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},vi.setTwoToneColor=gi;const bi=vi;var yi=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:ti}))};const xi=r.forwardRef(yi),Ci={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var wi=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Ci}))};const Si=r.forwardRef(wi),$i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var ki=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:$i}))};const Ei=r.forwardRef(ki),Oi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var ji=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Oi}))};const Mi=r.forwardRef(ji),Ii={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var Ni=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Ii}))};const Pi=r.forwardRef(Ni);var Ri=["children"],Ti=r.createContext({});function Ai(e){var t=e.children,n=ni(e,Ri);return r.createElement(Ti.Provider,{value:n},t)}const zi=function(e){le(n,e);var t=fe(n);function n(){return re(this,n),t.apply(this,arguments)}return ie(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);var _i="none",Di="appear",Bi="enter",Hi="leave",Li="none",Fi="prepare",Wi="start",Vi="active",qi="end",Ki="prepared";function Xi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Gi,Yi,Ui,Qi=(Gi=Le(),Yi="undefined"!=typeof window?window:{},Ui={animationend:Xi("Animation","AnimationEnd"),transitionend:Xi("Transition","TransitionEnd")},Gi&&("AnimationEvent"in Yi||delete Ui.animationend.animation,"TransitionEvent"in Yi||delete Ui.transitionend.transition),Ui),Zi={};if(Le()){var Ji=document.createElement("div");Zi=Ji.style}var ea={};function ta(e){if(ea[e])return ea[e];var t=Qi[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Ie((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=Be(l,2),s=c[0],u=c[1],d=t?ua:sa;return ca((function(){if(i!==Li&&i!==qi){var e=d.indexOf(i),t=d[e+1],r=n(i);r===da?a(t,!0):t&&s((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(Fi,!0)},i]}(L,!e,(function(e){if(e===Fi){var t=Q[Fi];return t?t(V()):da}var n;return ee in Q&&H((null===(n=Q[ee])||void 0===n?void 0:n.call(Q,V(),null))||null),ee===Vi&&L!==_i&&(Y(V()),m>0&&(clearTimeout(W.current),W.current=setTimeout((function(){X({deadline:!0})}),m))),ee===Ki&&K(),!0})),2),J=Z[0],ee=Z[1],te=fa(ee);q.current=te,ca((function(){R(t);var n,r=F.current;F.current=!0,!r&&t&&d&&(n=Di),r&&t&&s&&(n=Bi),(r&&!t&&p||!r&&g&&!t&&p)&&(n=Hi);var o=U(n);n&&(e||o[Fi])?(_(n),J()):_(_i)}),[t]),(0,r.useEffect)((function(){(L===Di&&!d||L===Bi&&!s||L===Hi&&!p)&&_(_i)}),[d,s,p]),(0,r.useEffect)((function(){return function(){F.current=!1,clearTimeout(W.current)}}),[]);var ne=r.useRef(!1);(0,r.useEffect)((function(){P&&(ne.current=!0),void 0!==P&&L===_i&&((ne.current||P)&&(null==I||I(P)),ne.current=!0)}),[P,L]);var re=B;return Q[Fi]&&ee===Wi&&(re=w({transition:"none"},re)),[L,ee,re,null!=P?P:t]}const ma=function(e){var t=e;"object"===b(e)&&(t=e.transitionSupport);var n=r.forwardRef((function(e,n){var o=e.visible,i=void 0===o||o,l=e.removeOnLeave,c=void 0===l||l,s=e.forceRender,u=e.children,d=e.motionName,f=e.leavedClassName,p=e.eventProps,m=function(e,n){return!(!e.motionName||!t||!1===n)}(e,r.useContext(Ti).motion),g=(0,r.useRef)(),h=(0,r.useRef)(),v=Be(pa(m,i,(function(){try{return g.current instanceof HTMLElement?g.current:O(h.current)}catch(e){return null}}),e),4),b=v[0],y=v[1],C=v[2],S=v[3],$=r.useRef(S);S&&($.current=!0);var k,E=r.useCallback((function(e){g.current=e,M(n,e)}),[n]),j=w(w({},p),{},{visible:i});if(u)if(b===_i)k=S?u(w({},j),E):!c&&$.current&&f?u(w(w({},j),{},{className:f}),E):s||!c&&!f?u(w(w({},j),{},{style:{display:"none"}}),E):null;else{var I;y===Fi?I="prepare":fa(y)?I="active":y===Wi&&(I="start");var N=la(d,"".concat(b,"-").concat(I));k=u(w(w({},j),{},{className:a()(la(d,b),x(x({},N,N&&I),d,"string"==typeof d)),style:C}),E)}else k=null;return r.isValidElement(k)&&P(k)&&(k.ref||(k=r.cloneElement(k,{ref:E}))),r.createElement(zi,{ref:h},k)}));return n.displayName="CSSMotion",n}(oa);var ga="add",ha="keep",va="remove",ba="removed";function ya(e){var t;return w(w({},t=e&&"object"===b(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function xa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ya)}var Ca=["component","children","onVisibleChanged","onAllRemoved"],wa=["status"],Sa=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const $a=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ma,t=function(t){le(o,t);var n=fe(o);function o(){var e;re(this,o);for(var t=arguments.length,r=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=xa(e),a=xa(t);i.forEach((function(e){for(var t=!1,i=r;i1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==va}))).forEach((function(t){t.key===e&&(t.status=ha)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ba||e.status!==va}))}}}]),o}(r.Component);return x(t,"defaultProps",{component:"div"}),t}(oa),ka=ma;var Ea="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Oa(e,t){return 0===e.indexOf(t)}function ja(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:w({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Oa(n,"aria-"))||t.data&&Oa(n,"data-")||t.attr&&Ea.includes(n))&&(r[n]=e[n])})),r}function Ma(e){return e&&o().isValidElement(e)&&e.type===o().Fragment}const Ia=(e,t,n)=>o().isValidElement(e)?o().cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function Na(e,t){return Ia(e,e,t)}const Pa=(e,t,n,r,o)=>({background:e,border:`${yt(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),Ra=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Ta=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":Pa(o,r,n,e,t),"&-info":Pa(p,f,d,e,t),"&-warning":Pa(l,a,i,e,t),"&-error":Object.assign(Object.assign({},Pa(u,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Aa=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:yt(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},za=Vo("Alert",(e=>[Ra(e),Ta(e),Aa(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})));var _a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:n,type:o}=e,i=Da[o]||null;return t?Ia(t,r.createElement("span",{className:`${n}-icon`},t),(()=>({className:a()(`${n}-icon`,{[t.props.className]:t.props.className})}))):r.createElement(i,{className:`${n}-icon`})},Ha=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:i,ariaProps:a}=e,l=!0===o||void 0===o?r.createElement(Ei,null):o;return t?r.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),l):null},La=r.forwardRef(((e,t)=>{const{description:n,prefixCls:o,message:i,banner:l,className:c,rootClassName:s,style:u,onMouseEnter:d,onMouseLeave:f,onClick:p,afterClose:m,showIcon:g,closable:h,closeText:v,closeIcon:b,action:y,id:x}=e,C=_a(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,S]=r.useState(!1),$=r.useRef(null);r.useImperativeHandle(t,(()=>({nativeElement:$.current})));const{getPrefixCls:k,direction:E,alert:O}=r.useContext(Ae),j=k("alert",o),[M,N,P]=za(j),R=t=>{var n;S(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},T=r.useMemo((()=>void 0!==e.type?e.type:l?"warning":"info"),[e.type,l]),A=r.useMemo((()=>!("object"!=typeof h||!h.closeIcon)||!!v||("boolean"==typeof h?h:!1!==b&&null!=b||!!(null==O?void 0:O.closable))),[v,b,h,null==O?void 0:O.closable]),z=!(!l||void 0!==g)||g,_=a()(j,`${j}-${T}`,{[`${j}-with-description`]:!!n,[`${j}-no-icon`]:!z,[`${j}-banner`]:!!l,[`${j}-rtl`]:"rtl"===E},null==O?void 0:O.className,c,s,P,N),D=ja(C,{aria:!0,data:!0}),B=r.useMemo((()=>{var e,t;return"object"==typeof h&&h.closeIcon?h.closeIcon:v||(void 0!==b?b:"object"==typeof(null==O?void 0:O.closable)&&(null===(e=null==O?void 0:O.closable)||void 0===e?void 0:e.closeIcon)?null===(t=null==O?void 0:O.closable)||void 0===t?void 0:t.closeIcon:null==O?void 0:O.closeIcon)}),[b,h,v,null==O?void 0:O.closeIcon]),H=r.useMemo((()=>{const e=null!=h?h:null==O?void 0:O.closable;if("object"==typeof e){const{closeIcon:t}=e;return _a(e,["closeIcon"])}return{}}),[h,null==O?void 0:O.closable]);return M(r.createElement(ka,{visible:!w,motionName:`${j}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:m},((t,o)=>{let{className:l,style:c}=t;return r.createElement("div",Object.assign({id:x,ref:I($,o),"data-show":!w,className:a()(_,l),style:Object.assign(Object.assign(Object.assign({},null==O?void 0:O.style),u),c),onMouseEnter:d,onMouseLeave:f,onClick:p,role:"alert"},D),z?r.createElement(Ba,{description:n,icon:e.icon,prefixCls:j,type:T}):null,r.createElement("div",{className:`${j}-content`},i?r.createElement("div",{className:`${j}-message`},i):null,n?r.createElement("div",{className:`${j}-description`},n):null),y?r.createElement("div",{className:`${j}-action`},y):null,r.createElement(Ha,{isClosable:A,prefixCls:j,closeIcon:B,handleClose:R,ariaProps:H}))})))})),Fa=La;let Wa=function(e){function t(){var e;return re(this,t),e=function(e,t,n){return t=ce(t),de(e,se()?Reflect.construct(t,n||[],ce(e).constructor):t.apply(e,n))}(this,t,arguments),e.state={error:void 0,info:{componentStack:""}},e}return le(t,e),ie(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,id:n,children:o}=this.props,{error:i,info:a}=this.state,l=(null==a?void 0:a.componentStack)||null,c=void 0===e?(i||"").toString():e,s=void 0===t?l:t;return i?r.createElement(Fa,{id:n,type:"error",message:c,description:r.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):o}}])}(r.Component);const Va=Wa,qa=Fa;qa.ErrorBoundary=Va;const Ka=qa,Xa=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Ga=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Ya=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,Qa=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},Za=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!Xa(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;Xa(m)&&d(m);){if(m=Qa(m),m===f){p.push(m);break}null!=m&&m===document.body&&Ya(m)&&!Ya(document.documentElement)||null!=m&&Ya(m,u)&&p.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:x,top:C,right:w,bottom:S,left:$}=e.getBoundingClientRect(),{top:k,right:E,bottom:O,left:j}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let M="start"===l||"nearest"===l?C-k:"end"===l?S+O:C+y/2-k+O,I="center"===c?$+x/2-j+E:"end"===c?w+E:$-j;const N=[];for(let e=0;e=0&&$>=0&&S<=h&&w<=g&&C>=o&&S<=s&&$>=u&&w<=i)return N;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),E=parseInt(d.borderRightWidth,10),O=parseInt(d.borderBottomWidth,10);let j=0,P=0;const R="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-E:0,T="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-O:0,A="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,z="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)j="start"===l?M:"end"===l?M-h:"nearest"===l?Ua(b,b+h,h,k,O,b+M,b+M+y,y):M-h/2,P="start"===c?I:"center"===c?I-g/2:"end"===c?I-g:Ua(v,v+g,g,m,E,v+I,v+I+x,x),j=Math.max(0,j+b),P=Math.max(0,P+v);else{j="start"===l?M-o-k:"end"===l?M-s+O+T:"nearest"===l?Ua(o,s,n,k,O+T,M,M+y,y):M-(o+n/2)+T/2,P="start"===c?I-u-m:"center"===c?I-(u+r/2)+R/2:"end"===c?I-i+E+R:Ua(u,i,r,m,E+R,I,I+x,x);const{scrollLeft:e,scrollTop:a}=t;j=0===z?0:Math.max(0,Math.min(a+j/z,t.scrollHeight-n/z+T)),P=0===A?0:Math.max(0,Math.min(e+P/A,t.scrollWidth-r/A+R)),M+=a-j,I+=e-P}N.push({el:t,top:j,left:P})}return N};function Ja(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(Za(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of Za(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}function el(e){return null!=e&&e===e.window}const tl=e=>{var t,n;if("undefined"==typeof window)return 0;let r=0;return el(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!el(e)&&"number"!=typeof r&&(r=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),r};function nl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=tl(i),l=Date.now(),c=()=>{const t=Date.now()-l,n=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(t>o?o:t,a,e,o);el(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t{const[,,,,t]=Fo();return t?`${e}-css-var`:""},ol=r.createContext(void 0),il=e=>{const{href:t,title:n,prefixCls:o,children:i,className:l,target:c,replace:s}=e,u=r.useContext(ol),{registerLink:d,unregisterLink:f,scrollTo:p,onClick:m,activeLink:g,direction:h}=u||{};r.useEffect((()=>(null==d||d(t),()=>{null==f||f(t)})),[t]);const{getPrefixCls:v}=r.useContext(Ae),b=v("anchor",o),y=g===t,x=a()(`${b}-link`,l,{[`${b}-link-active`]:y}),C=a()(`${b}-link-title`,{[`${b}-link-title-active`]:y});return r.createElement("div",{className:x},r.createElement("a",{className:C,href:t,title:"string"==typeof n?n:"",target:c,onClick:e=>{null==m||m(e,{title:n,href:t}),null==p||p(t),s&&(e.preventDefault(),window.location.replace(t))}},n),"horizontal"!==h?i:null)},al=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:o,colorPrimary:i,lineType:a,colorSplit:l,calc:c}=e;return{[`${t}-wrapper`]:{marginBlockStart:c(n).mul(-1).equal(),paddingBlockStart:n,[t]:Object.assign(Object.assign({},pr(e)),{position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${yt(e.linkPaddingInlineStart)} 0`,"&-title":Object.assign(Object.assign({},fr),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${yt(o)} ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:o,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},ll=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:o}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:r,backgroundColor:o}}}}},cl=Vo("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:r,calc:o}=e,i=ir(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:o(r).div(2).equal(),anchorTitleBlock:o(t).div(14).mul(3).equal(),anchorBallSize:o(n).div(2).equal()});return[al(i),ll(i)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function sl(){return window}function ul(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top}const dl=/#([\S ]+)$/,fl=e=>{var t;const{rootClassName:n,prefixCls:o,className:i,style:l,offsetTop:c,affix:s=!0,showInkInFixed:u=!1,children:d,items:f,direction:p="vertical",bounds:m,targetOffset:g,onClick:h,onChange:v,getContainer:b,getCurrentAnchor:y,replace:x}=e,[C,w]=r.useState([]),[S,$]=r.useState(null),k=r.useRef(S),E=r.useRef(null),O=r.useRef(null),j=r.useRef(!1),{direction:M,anchor:I,getTargetContainer:N,getPrefixCls:P}=r.useContext(Ae),R=P("anchor",o),T=rl(R),[A,z,_]=cl(R,T),D=null!==(t=null!=b?b:N)&&void 0!==t?t:sl,B=JSON.stringify(C),H=qn((e=>{C.includes(e)||w((t=>[].concat(Se(t),[e])))})),L=qn((e=>{C.includes(e)&&w((t=>t.filter((t=>t!==e))))})),F=qn((e=>{if(k.current===e)return;const t="function"==typeof y?y(e):e;$(t),k.current=t,null==v||v(e)})),W=r.useCallback((()=>{if(j.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const r=[],o=D();if(e.forEach((e=>{const i=dl.exec(null==e?void 0:e.toString());if(!i)return;const a=document.getElementById(i[1]);if(a){const i=ul(a,o);i<=t+n&&r.push({link:e,top:i})}})),r.length){const e=r.reduce(((e,t)=>t.top>e.top?t:e));return e.link}return""}(C,void 0!==g?g:c||0,m);F(e)}),[B,g,c]),V=r.useCallback((e=>{F(e);const t=dl.exec(e);if(!t)return;const n=document.getElementById(t[1]);if(!n)return;const r=D();let o=tl(r)+ul(n,r);o-=void 0!==g?g:c||0,j.current=!0,nl(o,{getContainer:D,callback(){j.current=!1}})}),[g,c]),q=a()(z,_,T,n,`${R}-wrapper`,{[`${R}-wrapper-horizontal`]:"horizontal"===p,[`${R}-rtl`]:"rtl"===M},i,null==I?void 0:I.className),K=a()(R,{[`${R}-fixed`]:!s&&!u}),X=a()(`${R}-ink`,{[`${R}-ink-visible`]:S}),G=Object.assign(Object.assign({maxHeight:c?`calc(100vh - ${c}px)`:"100vh"},null==I?void 0:I.style),l),Y=e=>Array.isArray(e)?e.map((e=>r.createElement(il,Object.assign({replace:x},e,{key:e.key}),"vertical"===p&&Y(e.children)))):null,U=r.createElement("div",{ref:E,className:q,style:G},r.createElement("div",{className:K},r.createElement("span",{className:X,ref:O}),"items"in e?Y(f):d));r.useEffect((()=>{const e=D();return W(),null==e||e.addEventListener("scroll",W),()=>{null==e||e.removeEventListener("scroll",W)}}),[B]),r.useEffect((()=>{"function"==typeof y&&F(y(k.current||""))}),[y]),r.useEffect((()=>{(()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.querySelector(`.${R}-link-title-active`);if(t&&O.current){const{style:e}=O.current,n="horizontal"===p;e.top=n?"":`${t.offsetTop+t.clientHeight/2}px`,e.height=n?"":`${t.clientHeight}px`,e.left=n?`${t.offsetLeft}px`:"",e.width=n?`${t.clientWidth}px`:"",n&&Ja(t,{scrollMode:"if-needed",block:"nearest"})}})()}),[p,y,B,S]);const Q=r.useMemo((()=>({registerLink:H,unregisterLink:L,scrollTo:V,activeLink:S,onClick:h,direction:p})),[S,h,V,p]),Z=s&&"object"==typeof s?s:void 0;return A(r.createElement(ol.Provider,{value:Q},s?r.createElement(ei,Object.assign({offsetTop:c,target:D},Z),U):U))};fl.Link=il;const pl=fl;function ml(){}const gl=r.createContext({}),hl=()=>{const e=()=>{};return e.deprecated=ml,e};var vl={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=vl.F1&&t<=vl.F12)return!1;switch(t){case vl.ALT:case vl.CAPS_LOCK:case vl.CONTEXT_MENU:case vl.CTRL:case vl.DOWN:case vl.END:case vl.ESC:case vl.HOME:case vl.INSERT:case vl.LEFT:case vl.MAC_FF_META:case vl.META:case vl.NUMLOCK:case vl.NUM_CENTER:case vl.PAGE_DOWN:case vl.PAGE_UP:case vl.PAUSE:case vl.PRINT_SCREEN:case vl.RIGHT:case vl.SHIFT:case vl.UP:case vl.WIN_KEY:case vl.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=vl.ZERO&&e<=vl.NINE)return!0;if(e>=vl.NUM_ZERO&&e<=vl.NUM_MULTIPLY)return!0;if(e>=vl.A&&e<=vl.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case vl.SPACE:case vl.QUESTION_MARK:case vl.NUM_PLUS:case vl.NUM_MINUS:case vl.NUM_PERIOD:case vl.NUM_DIVISION:case vl.SEMICOLON:case vl.DASH:case vl.EQUALS:case vl.COMMA:case vl.PERIOD:case vl.SLASH:case vl.APOSTROPHE:case vl.SINGLE_QUOTE:case vl.OPEN_SQUARE_BRACKET:case vl.BACKSLASH:case vl.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const bl=vl;var yl=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.style,i=e.className,c=e.duration,s=void 0===c?4.5:c,u=e.showProgress,d=e.pauseOnHover,f=void 0===d||d,p=e.eventKey,m=e.content,g=e.closable,h=e.closeIcon,v=void 0===h?"x":h,y=e.props,C=e.onClick,w=e.onNoticeClose,S=e.times,$=e.hovering,k=Be(r.useState(!1),2),E=k[0],O=k[1],j=Be(r.useState(0),2),M=j[0],I=j[1],N=Be(r.useState(0),2),P=N[0],R=N[1],T=$||E,A=s>0&&u,z=function(){w(p)};r.useEffect((function(){if(!T&&s>0){var e=Date.now()-P,t=setTimeout((function(){z()}),1e3*s-P);return function(){f&&clearTimeout(t),R(Date.now()-e)}}}),[s,T,S]),r.useEffect((function(){if(!T&&A&&(f||0===P)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+P-t,o=Math.min(r/(1e3*s),1);I(100*o),o<1&&n()}))}(),function(){f&&cancelAnimationFrame(e)}}}),[s,P,T,A,S]);var _=r.useMemo((function(){return"object"===b(g)&&null!==g?g:g?{closeIcon:v}:{}}),[g,v]),D=ja(_,!0),B=100-(!M||M<0?0:M>100?100:M),H="".concat(n,"-notice");return r.createElement("div",(0,l.A)({},y,{ref:t,className:a()(H,i,x({},"".concat(H,"-closable"),g)),style:o,onMouseEnter:function(e){var t;O(!0),null==y||null===(t=y.onMouseEnter)||void 0===t||t.call(y,e)},onMouseLeave:function(e){var t;O(!1),null==y||null===(t=y.onMouseLeave)||void 0===t||t.call(y,e)},onClick:C}),r.createElement("div",{className:"".concat(H,"-content")},m),g&&r.createElement("a",(0,l.A)({tabIndex:0,className:"".concat(H,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==bl.ENTER||z()},"aria-label":"Close"},D,{onClick:function(e){e.preventDefault(),e.stopPropagation(),z()}}),_.closeIcon),A&&r.createElement("progress",{className:"".concat(H,"-progress"),max:"100",value:B},B+"%"))}));const xl=yl;var Cl=o().createContext({});const wl=function(e){var t=e.children,n=e.classNames;return o().createElement(Cl.Provider,{value:{classNames:n}},t)};var Sl=["className","style","classNames","styles"];const $l=function(e){var t=e.configList,n=e.placement,i=e.prefixCls,c=e.className,s=e.style,u=e.motion,d=e.onAllNoticeRemoved,f=e.onNoticeClose,p=e.stack,m=(0,r.useContext)(Cl).classNames,g=(0,r.useRef)({}),h=Be((0,r.useState)(null),2),v=h[0],y=h[1],C=Be((0,r.useState)([]),2),S=C[0],$=C[1],k=t.map((function(e){return{config:e,key:String(e.key)}})),E=Be(function(e){var t,n,r,o={offset:8,threshold:3,gap:16};return e&&"object"===b(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16),[!!e,o]}(p),2),O=E[0],j=E[1],M=j.offset,I=j.threshold,N=j.gap,P=O&&(S.length>0||k.length<=I),R="function"==typeof u?u(n):u;return(0,r.useEffect)((function(){O&&S.length>1&&$((function(e){return e.filter((function(e){return k.some((function(t){var n=t.key;return e===n}))}))}))}),[S,k,O]),(0,r.useEffect)((function(){var e,t;O&&g.current[null===(e=k[k.length-1])||void 0===e?void 0:e.key]&&y(g.current[null===(t=k[k.length-1])||void 0===t?void 0:t.key])}),[k,O]),o().createElement($a,(0,l.A)({key:n,className:a()(i,"".concat(i,"-").concat(n),null==m?void 0:m.list,c,x(x({},"".concat(i,"-stack"),!!O),"".concat(i,"-stack-expanded"),P)),style:s,keys:k,motionAppear:!0},R,{onAllRemoved:function(){d(n)}}),(function(e,t){var r=e.config,c=e.className,s=e.style,u=e.index,d=r,p=d.key,h=d.times,b=String(p),y=r,x=y.className,C=y.style,E=y.classNames,j=y.styles,I=ni(y,Sl),R=k.findIndex((function(e){return e.key===b})),T={};if(O){var A=k.length-1-(R>-1?R:u-1),z="top"===n||"bottom"===n?"-50%":"0";if(A>0){var _,D,B;T.height=P?null===(_=g.current[b])||void 0===_?void 0:_.offsetHeight:null==v?void 0:v.offsetHeight;for(var H=0,L=0;L-1?g.current[b]=e:delete g.current[b]},prefixCls:i,classNames:E,styles:j,className:a()(x,null==m?void 0:m.notice),style:C,times:h,key:p,eventKey:p,onNoticeClose:f,hovering:O&&S.length>0})))}))};var kl=r.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-notification":n,i=e.container,a=e.motion,l=e.maxCount,c=e.className,s=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=Be(r.useState([]),2),m=p[0],g=p[1],h=function(e){var t,n=m.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),g((function(t){return t.filter((function(t){return t.key!==e}))}))};r.useImperativeHandle(t,(function(){return{open:function(e){g((function(t){var n,r=Se(t),o=r.findIndex((function(t){return t.key===e.key})),i=w({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),l>0&&r.length>l&&(r=r.slice(-l)),r}))},close:function(e){h(e)},destroy:function(){g([])}}}));var v=Be(r.useState({}),2),b=v[0],y=v[1];r.useEffect((function(){var e={};m.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[m]);var x=function(e){y((function(t){var n=w({},t);return(n[e]||[]).length||delete n[e],n}))},C=r.useRef(!1);if(r.useEffect((function(){Object.keys(b).length>0?C.current=!0:C.current&&(null==u||u(),C.current=!1)}),[b]),!i)return null;var $=Object.keys(b);return(0,S.createPortal)(r.createElement(r.Fragment,null,$.map((function(e){var t=b[e],n=r.createElement($l,{key:e,configList:t,placement:e,prefixCls:o,className:null==c?void 0:c(e),style:null==s?void 0:s(e),motion:a,onNoticeClose:h,onAllNoticeRemoved:x,stack:d});return f?f(n,{prefixCls:o,key:e}):n}))),i)}));const El=kl;var Ol=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],jl=function(){return document.body},Ml=0;function Il(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?jl:t,o=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=ni(e,Ol),p=Be(r.useState(),2),m=p[0],g=p[1],h=r.useRef(),v=r.createElement(El,{container:m,ref:h,prefixCls:i,motion:o,maxCount:a,className:l,style:c,onAllRemoved:s,stack:u,renderNotifications:d}),b=Be(r.useState([]),2),y=b[0],x=b[1],C=r.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r{const[,n]=Fo(),r=o().useContext(Tl),i=e in _l;let a;if(void 0!==t)a=[t,t];else{let o=null!=r?r:0;o+=i?(r?0:n.zIndexPopupBase)+_l[e]:Dl[e],a=[void 0===r?t:o,o]}return a},Hl=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:m,zIndexPopup:g,contentPadding:h,contentBg:v}=e,b=`${t}-notice`,y=new zn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new zn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:h,background:v,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},pr(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},Ll=Vo("Message",(e=>{const t=ir(e,{height:150});return[Hl(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+zl+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));const Fl={info:r.createElement(Pi,null),success:r.createElement(xi,null),error:r.createElement(Si,null),warning:r.createElement(Mi,null),loading:r.createElement(Rl,null)},Wl=e=>{let{prefixCls:t,type:n,icon:o,children:i}=e;return r.createElement("div",{className:a()(`${t}-custom-content`,`${t}-${n}`)},o||Fl[n],r.createElement("span",null,i))};function Vl(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}const ql=3,Kl=e=>{let{children:t,prefixCls:n}=e;const o=rl(n),[i,l,c]=Ll(n,o);return i(r.createElement(wl,{classNames:{list:a()(l,c,o)}},t))},Xl=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(Kl,{prefixCls:n,key:o},e)},Gl=r.forwardRef(((e,t)=>{const{top:n,prefixCls:o,getContainer:i,maxCount:l,duration:c=ql,rtl:s,transitionName:u,onAllRemoved:d}=e,{getPrefixCls:f,getPopupContainer:p,message:m,direction:g}=r.useContext(Ae),h=o||f("message"),v=r.createElement("span",{className:`${h}-close-x`},r.createElement(Ei,{className:`${h}-close-icon`})),[b,y]=Il({prefixCls:h,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>a()({[`${h}-rtl`]:null!=s?s:"rtl"===g}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(h,u),closable:!1,closeIcon:v,duration:c,getContainer:()=>(null==i?void 0:i())||(null==p?void 0:p())||document.body,maxCount:l,onAllRemoved:d,renderNotifications:Xl});return r.useImperativeHandle(t,(()=>Object.assign(Object.assign({},b),{prefixCls:h,message:m}))),y}));let Yl=0;function Ul(e){const t=r.useRef(null),n=(hl(),r.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:l}=t.current,c=`${i}-notice`,{content:s,icon:u,type:d,key:f,className:p,style:m,onClose:g}=n,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o(o(Object.assign(Object.assign({},h),{key:v,content:r.createElement(Wl,{prefixCls:i,type:d,icon:u},s),placement:"top",className:a()(d&&`${c}-${d}`,p,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),m),onClose:()=>{null==g||g(),t()}})),()=>{e(v)})))},o={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{o[e]=(t,r,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(a=r,l=o);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(c)}})),o}),[]));return[n,r.createElement(Gl,Object.assign({key:"message-holder"},e,{ref:t}))]}function Ql(e){return Ul(e)}function Zl(){Zl=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",h={};function v(){}function y(){}function x(){}var C={};s(C,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(P([])));S&&S!==n&&r.call(S,a)&&(C=S);var $=x.prototype=v.prototype=Object.create(C);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==b(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=j(l,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?g:p,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=g,r.method="throw",r.arg=s.arg)}}}function j(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}function Jl(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function ec(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Jl(i,r,o,a,l,"next",e)}function l(e){Jl(i,r,o,a,l,"throw",e)}a(void 0)}))}}var tc,nc=w({},S),rc=nc.version,oc=nc.render,ic=nc.unmountComponentAtNode;try{Number((rc||"").split(".")[0])>=18&&(tc=nc.createRoot)}catch(Ga){}function ac(e){var t=nc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===b(t)&&(t.usingClientEntryPoint=e)}var lc="__rc_react_root__";function cc(e,t){tc?function(e,t){ac(!0);var n=t[lc]||tc(t);ac(!1),n.render(e),t[lc]=n}(e,t):function(e,t){oc(e,t)}(e,t)}function sc(e){return uc.apply(this,arguments)}function uc(){return(uc=ec(Zl().mark((function e(t){return Zl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[lc])||void 0===e||e.unmount(),delete t[lc]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dc(e){ic(e)}function fc(e){return pc.apply(this,arguments)}function pc(){return(pc=ec(Zl().mark((function e(t){return Zl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===tc){e.next=2;break}return e.abrupt("return",sc(t));case 2:dc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const mc=(0,r.createContext)(void 0),gc={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},hc=w(w({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),vc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},bc={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},hc),timePickerLocale:Object.assign({},vc)},yc=bc,xc="${label} is not a valid ${type}",Cc={locale:"en",Pagination:gc,DatePicker:bc,TimePicker:vc,Calendar:yc,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:xc,method:xc,array:xc,object:xc,number:xc,date:xc,boolean:xc,integer:xc,float:xc,regexp:xc,email:xc,url:xc,hex:xc},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let wc=Object.assign({},Cc.Modal),Sc=[];const $c=()=>Sc.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Cc.Modal);function kc(){return wc}const Ec=(0,r.createContext)(void 0),Oc=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;r.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Sc.push(t),wc=$c(),()=>{Sc=Sc.filter((e=>e!==t)),wc=$c()}}wc=Object.assign({},Cc.Modal)}(null==t?void 0:t.Modal);return e}),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(Ec.Provider,{value:i},n)},jc=`-ant-${Date.now()}-${Math.random()}`;const Mc=r.createContext(!1),Ic=e=>{let{children:t,disabled:n}=e;const o=r.useContext(Mc);return r.createElement(Mc.Provider,{value:null!=n?n:o},t)},Nc=Mc,Pc=r.createContext(void 0),Rc=e=>{let{children:t,size:n}=e;const o=r.useContext(Pc);return r.createElement(Pc.Provider,{value:n||o},t)},Tc=Pc,Ac=Object.assign({},r),{useId:zc}=Ac,_c=void 0===zc?()=>"":zc;function Dc(e){const{children:t}=e,[,n]=Fo(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(Ai,{motion:o},t):t}const Bc=()=>null;const Hc=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Lc,Fc,Wc,Vc;function qc(){return Lc||Pe}function Kc(){return Fc||Re}const Xc=()=>({getPrefixCls:(e,t)=>t||(e?`${qc()}-${e}`:qc()),getIconPrefixCls:Kc,getRootPrefixCls:()=>Lc||qc(),getTheme:()=>Wc,holderRender:Vc}),Gc=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:C,segmented:w,statistic:S,spin:$,calendar:k,carousel:E,cascader:O,collapse:M,typography:I,checkbox:N,descriptions:P,divider:R,drawer:T,skeleton:A,steps:z,image:_,layout:D,list:B,mentions:H,modal:L,progress:F,result:W,slider:V,breadcrumb:q,menu:K,pagination:X,input:G,textArea:Y,empty:U,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:he,wave:ve,dropdown:be,warning:ye,tour:xe,floatButtonGroup:Ce,variant:we,inputNumber:Se,treeSelect:$e}=e,ke=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||b.getPrefixCls("");return t?`${o}-${t}`:o}),[b.getPrefixCls,e.prefixCls]),Ee=y||b.iconPrefixCls||Re,Oe=n||b.csp;Wo(Ee,Oe);const je=function(e,t,n){var r;hl();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},Po),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Po.hashed,cssVar:null==t?void 0:t.cssVar}),a=_c();return j((()=>{var r,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>{const r=t[n];return!Je(e,r,!0)}))))}(x,b.theme,{prefixCls:ke("")}),Me={csp:Oe,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||v,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:null!=g?g:m,popupOverflow:h,getPrefixCls:ke,iconPrefixCls:Ee,theme:je,segmented:w,statistic:S,spin:$,calendar:k,carousel:E,cascader:O,collapse:M,typography:I,checkbox:N,descriptions:P,divider:R,drawer:T,skeleton:A,steps:z,image:_,input:G,textArea:Y,layout:D,list:B,mentions:H,modal:L,progress:F,result:W,slider:V,breadcrumb:q,menu:K,pagination:X,empty:U,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:he,wave:ve,dropdown:be,warning:ye,tour:xe,floatButtonGroup:Ce,variant:we,inputNumber:Se,treeSelect:$e},Ie=Object.assign({},b);Object.keys(Me).forEach((e=>{void 0!==Me[e]&&(Ie[e]=Me[e])})),Hc.forEach((t=>{const n=e[t];n&&(Ie[t]=n)})),void 0!==o&&(Ie.button=Object.assign({autoInsertSpace:o},Ie.button));const Ne=j((()=>Ie),Ie,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Pe=r.useMemo((()=>({prefixCls:Ee,csp:Oe})),[Ee,Oe]);let Te=r.createElement(r.Fragment,null,r.createElement(Bc,{dropdownMatchSelectWidth:m}),t);const ze=r.useMemo((()=>{var e,t,n,r;return tr((null===(e=Cc.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ne.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ne.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Ne,null==l?void 0:l.validateMessages]);Object.keys(ze).length>0&&(Te=r.createElement(mc.Provider,{value:ze},Te)),c&&(Te=r.createElement(Oc,{locale:c,_ANT_MARK__:"internalMark"},Te)),(Ee||Oe)&&(Te=r.createElement(ri.Provider,{value:Pe},Te)),s&&(Te=r.createElement(Rc,{size:s},Te)),Te=r.createElement(Dc,null,Te);const _e=r.useMemo((()=>{const e=je||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0)?ft(t):No,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=ft(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},xo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[je]);return x&&(Te=r.createElement(Ro.Provider,{value:_e},Te)),Ne.warning&&(Te=r.createElement(gl.Provider,{value:Ne.warning},Te)),void 0!==C&&(Te=r.createElement(Ic,{disabled:C},Te)),r.createElement(Ae.Provider,{value:Ne},Te)},Yc=e=>{const t=r.useContext(Ae),n=r.useContext(Ec);return r.createElement(Gc,Object.assign({parentContext:t,legacyLocale:n},e))};Yc.ConfigContext=Ae,Yc.SizeContext=Tc,Yc.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Lc=t),void 0!==n&&(Fc=n),"holderRender"in e&&(Vc=o),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Co(e),i=Wr(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Co(t.primaryColor),i=Wr(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Co(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);Le()&&Ze(n,`${jc}-dynamic-theme`)}(qc(),r):Wc=r)},Yc.useConfig=function(){return{componentDisabled:(0,r.useContext)(Nc),componentSize:(0,r.useContext)(Tc)}},Object.defineProperty(Yc,"SizeContext",{get:()=>Tc});const Uc=Yc,Qc=()=>({height:0,opacity:0}),Zc=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Jc=e=>({height:e?e.offsetHeight:0}),es=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,ts=(e,t,n)=>void 0!==n?n:`${e}-${t}`,ns=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pe}-motion-collapse`,onAppearStart:Qc,onEnterStart:Qc,onAppearActive:Zc,onEnterActive:Zc,onLeaveStart:Jc,onLeaveActive:Qc,onAppearEnd:es,onEnterEnd:es,onLeaveEnd:es,motionDeadline:500}},rs=(e,t)=>{const n=r.useContext(Ec);return[r.useMemo((()=>{var r;const o=t||Cc[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),r.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Cc.locale:e}),[n])]},os=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},is=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},as=qo("Wave",(e=>[is(e)])),ls=`${Pe}-wave-target`;function cs(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function ss(e){return Number.isNaN(e)?0:e}const us=e=>{const{className:t,target:n,component:o}=e,i=r.useRef(null),[l,c]=r.useState(null),[s,u]=r.useState([]),[d,f]=r.useState(0),[p,m]=r.useState(0),[g,h]=r.useState(0),[v,b]=r.useState(0),[y,x]=r.useState(!1),C={left:d,top:p,width:g,height:v,borderRadius:s.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);c(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return cs(t)?t:cs(n)?n:cs(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;f(t?n.offsetLeft:ss(-parseFloat(r))),m(t?n.offsetTop:ss(-parseFloat(o))),h(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:s}=e;u([i,a,s,l].map((e=>ss(parseFloat(e)))))}if(l&&(C["--wave-color"]=l),r.useEffect((()=>{if(n){const e=Ie((()=>{w(),x(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{Ie.cancel(e),null==t||t.disconnect()}}}),[]),!y)return null;const S=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(ls));return r.createElement(ka,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;fc(e).then((()=>{null==e||e.remove()}))}return!1}},((e,n)=>{let{className:o}=e;return r.createElement("div",{ref:I(i,n),className:a()(t,o,{"wave-quick":S}),style:C})}))},ds=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),cc(r.createElement(us,Object.assign({},t,{target:e})),i)},fs=(e,t,n)=>{const{wave:o}=r.useContext(Ae),[,i,a]=Fo(),l=qn((r=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${ls}`)||l,{showEffect:s}=o||{};(s||ds)(c,{className:t,token:i,component:n,event:r,hashId:a})})),c=r.useRef();return e=>{Ie.cancel(c.current),c.current=Ie((()=>{l(e)}))}},ps=e=>{const{children:t,disabled:n,component:i}=e,{getPrefixCls:l}=(0,r.useContext)(Ae),c=(0,r.useRef)(null),s=l("wave"),[,u]=as(s),d=fs(c,a()(s,u),i);return o().useEffect((()=>{const e=c.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!os(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),o().isValidElement(t)?Na(t,{ref:P(t)?I(t.ref,c):c}):null!=t?t:null},ms=e=>{const t=o().useContext(Tc);return o().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},gs=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},hs=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},vs=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},bs=Vo("Space",(e=>{const t=ir(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[hs(t),vs(t),gs(t)]}),(()=>({})),{resetStyle:!1});var ys=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=r.useContext(xs),o=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,l="vertical"===r?"-vertical-":"-";return a()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},ws=e=>{let{children:t}=e;return r.createElement(xs.Provider,{value:null},t)},Ss=e=>{var{children:t}=e,n=ys(e,["children"]);return r.createElement(xs.Provider,{value:n},t)};const $s=r.createContext(void 0),ks=/^[\u4E00-\u9FA5]{2}$/,Es=ks.test.bind(ks);function Os(e){return"danger"===e?{danger:!0}:{type:e}}function js(e){return"string"==typeof e}function Ms(e){return"text"===e||"link"===e}const Is=(0,r.forwardRef)(((e,t)=>{const{className:n,style:r,children:i,prefixCls:l}=e,c=a()(`${l}-icon`,n);return o().createElement("span",{ref:t,className:c,style:r},i)})),Ns=Is,Ps=(0,r.forwardRef)(((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:l}=e,c=a()(`${n}-loading-icon`,r);return o().createElement(Ns,{prefixCls:n,className:c,style:i,ref:t},o().createElement(Rl,{className:l}))})),Rs=()=>({width:0,opacity:0,transform:"scale(0)"}),Ts=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),As=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a}=e,l=!!n;return r?o().createElement(Ps,{prefixCls:t,className:i,style:a}):o().createElement(ka,{visible:l,motionName:`${t}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:Rs,onAppearActive:Ts,onEnterStart:Rs,onEnterActive:Ts,onLeaveStart:Ts,onLeaveActive:Rs},((e,n)=>{let{className:r,style:l}=e;return o().createElement(Ps,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:r})}))},zs=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),_s=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},zs(`${t}-primary`,o),zs(`${t}-danger`,i)]}},Ds=Math.round;function Bs(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Hs=(e,t,n)=>0===n?e:e/100;function Ls(e,t){const n=t||255;return e>n?n:e<0?0:e}class Fs{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(x(this,"isValid",!0),x(this,"r",0),x(this,"g",0),x(this,"b",0),x(this,"a",1),x(this,"_h",void 0),x(this,"_s",void 0),x(this,"_l",void 0),x(this,"_v",void 0),x(this,"_max",void 0),x(this,"_min",void 0),x(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof Fs)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Ls(e.r),this.g=Ls(e.g),this.b=Ls(e.b),this.a="number"==typeof e.a?Ls(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:Ds(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:Ds(o("r")),g:Ds(o("g")),b:Ds(o("b")),a:Ds(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Ds((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=Ds(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=Ds(100*this.getSaturation()),n=Ds(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Ls(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=Ds(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,i=s):l>=1&&l<2?(o=s,i=c):l>=2&&l<3?(i=c,a=s):l>=3&&l<4?(i=s,a=c):l>=4&&l<5?(o=s,a=c):l>=5&&l<6&&(o=c,a=s);const u=n-c/2;this.r=Ds(255*(o+u)),this.g=Ds(255*(i+u)),this.b=Ds(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=Ds(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,c=Ds(n*(1-t)*255),s=Ds(n*(1-t*l)*255),u=Ds(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=Bs(e,Hs);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Bs(e,Hs);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Bs(e,((e,t)=>t.includes("%")?Ds(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Ws=["b"],Vs=["v"],qs=function(e){return Math.round(Number(e||0))},Ks=function(e){le(n,e);var t=fe(n);function n(e){return re(this,n),t.call(this,function(e){if(e instanceof Fs)return e;if(e&&"object"===b(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return w(w({},ni(t,Ws)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return ie(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=qs(100*e.s),n=qs(100*e.b),r=qs(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return w(w({},ni(e,Vs)),{},{b:t,a:this.a})}}]),n}(Fs),Xs=function(e){return e instanceof Ks?e:new Ks(e)},Gs=Xs("#1677ff"),Ys=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),l=a.width,c=a.height,s=n.current.getBoundingClientRect(),u=s.width/2,d=s.height/2,f=(t.x+u)/l,p=1-(t.y+d)/c,m=o.toHsb(),g=f,h=(t.x+u)/l*360;if(i)switch(i){case"hue":return Xs(w(w({},m),{},{h:h<=0?0:h}));case"alpha":return Xs(w(w({},m),{},{a:g<=0?0:g}))}return Xs({h:m.h,s:f<=0?0:f,b:p>=1?1:p,a:m.a})},Us=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}};const Qs=function(e){var t=e.color,n=e.prefixCls,r=e.className,i=e.style,l=e.onClick,c="".concat(n,"-color-block");return o().createElement("div",{className:a()(c,r),style:i,onClick:l},o().createElement("div",{className:"".concat(c,"-inner"),style:{background:t}}))},Zs=function(e){var t=e.targetRef,n=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,l=e.calculate,c=e.color,s=e.disabledDrag,u=Be((0,r.useState)({x:0,y:0}),2),d=u[0],f=u[1],p=(0,r.useRef)(null),m=(0,r.useRef)(null);(0,r.useEffect)((function(){f(l())}),[c]),(0,r.useEffect)((function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null}}),[]);var g=function(e){var r=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=r.pageX,l=r.pageY,c=n.current.getBoundingClientRect(),s=c.x,u=c.y,f=c.width,p=c.height,m=t.current.getBoundingClientRect(),g=m.width,h=m.height,v=g/2,b=h/2,y=Math.max(0,Math.min(a-s,f))-v,x=Math.max(0,Math.min(l-u,p))-b,C={x:y,y:"x"===o?d.y:x};if(0===g&&0===h||g!==h)return!1;null==i||i(C)},h=function(e){e.preventDefault(),g(e)},v=function(e){e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,null==a||a()};return[d,function(e){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),s||(g(e),document.addEventListener("mousemove",h),document.addEventListener("mouseup",v),document.addEventListener("touchmove",h),document.addEventListener("touchend",v),p.current=h,m.current=v)}]},Js=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,i=e.prefixCls;return o().createElement("div",{className:a()("".concat(i,"-handler"),x({},"".concat(i,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})},eu=function(e){var t=e.children,n=e.style,r=e.prefixCls;return o().createElement("div",{className:"".concat(r,"-palette"),style:w({position:"relative"},n)},t)},tu=(0,r.forwardRef)((function(e,t){var n=e.children,r=e.x,i=e.y;return o().createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)})),nu=function(e){var t=e.color,n=e.onChange,i=e.prefixCls,a=e.onChangeComplete,l=e.disabled,c=(0,r.useRef)(),s=(0,r.useRef)(),u=(0,r.useRef)(t),d=qn((function(e){var r=Ys({offset:e,targetRef:s,containerRef:c,color:t});u.current=r,n(r)})),f=Be(Zs({color:t,containerRef:c,targetRef:s,calculate:function(){return Us(t)},onDragChange:d,onDragChangeComplete:function(){return null==a?void 0:a(u.current)},disabledDrag:l}),2),p=f[0],m=f[1];return o().createElement("div",{ref:c,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},o().createElement(eu,{prefixCls:i},o().createElement(tu,{x:p.x,y:p.y,ref:s},o().createElement(Js,{color:t.toRgbString(),prefixCls:i})),o().createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},ru=function(e){var t=e.colors,n=e.children,i=e.direction,a=void 0===i?"to right":i,l=e.type,c=e.prefixCls,s=(0,r.useMemo)((function(){return t.map((function(e,n){var r=Xs(e);return"alpha"===l&&n===t.length-1&&(r=new Ks(r.setA(1))),r.toRgbString()})).join(",")}),[t,l]);return o().createElement("div",{className:"".concat(c,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(s,")")}},n)},ou=function(e){var t=e.prefixCls,n=e.colors,i=e.disabled,l=e.onChange,c=e.onChangeComplete,s=e.color,u=e.type,d=(0,r.useRef)(),f=(0,r.useRef)(),p=(0,r.useRef)(s),m=function(e){return"hue"===u?e.getHue():100*e.a},g=qn((function(e){var t=Ys({offset:e,targetRef:f,containerRef:d,color:s,type:u});p.current=t,l(m(t))})),h=Be(Zs({color:s,targetRef:f,containerRef:d,calculate:function(){return Us(s,u)},onDragChange:g,onDragChangeComplete:function(){c(m(p.current))},direction:"x",disabledDrag:i}),2),v=h[0],b=h[1],y=o().useMemo((function(){if("hue"===u){var e=s.toHsb();return e.s=1,e.b=1,e.a=1,new Ks(e)}return s}),[s,u]),x=o().useMemo((function(){return n.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[n]);return o().createElement("div",{ref:d,className:a()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(u)),onMouseDown:b,onTouchStart:b},o().createElement(eu,{prefixCls:t},o().createElement(tu,{x:v.x,y:v.y,ref:f},o().createElement(Js,{size:"small",color:y.toHexString(),prefixCls:t})),o().createElement(ru,{colors:x,type:u,prefixCls:t})))};var iu=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],au=(0,r.forwardRef)((function(e,t){var n=e.value,i=e.defaultValue,c=e.prefixCls,s=void 0===c?"rc-color-picker":c,u=e.onChange,d=e.onChangeComplete,f=e.className,p=e.style,m=e.panelRender,g=e.disabledAlpha,h=void 0!==g&&g,v=e.disabled,b=void 0!==v&&v,y=function(e){return r.useMemo((function(){return[(e||{}).slider||ou]}),[e])}(e.components),C=Be(y,1)[0],w=Be(function(e,t){var n=Be(Gn(e,{value:t}),2),o=n[0],i=n[1];return[(0,r.useMemo)((function(){return Xs(o)}),[o]),i]}(i||Gs,n),2),S=w[0],$=w[1],k=(0,r.useMemo)((function(){return S.setA(1).toRgbString()}),[S]),E=function(e,t){n||$(e),null==u||u(e,t)},O=function(e){return new Ks(S.setHue(e))},j=function(e){return new Ks(S.setA(e/100))},M=a()("".concat(s,"-panel"),f,x({},"".concat(s,"-panel-disabled"),b)),I={prefixCls:s,disabled:b,color:S},N=o().createElement(o().Fragment,null,o().createElement(nu,(0,l.A)({onChange:E},I,{onChangeComplete:d})),o().createElement("div",{className:"".concat(s,"-slider-container")},o().createElement("div",{className:a()("".concat(s,"-slider-group"),x({},"".concat(s,"-slider-group-disabled-alpha"),h))},o().createElement(C,(0,l.A)({},I,{type:"hue",colors:iu,min:0,max:359,value:S.getHue(),onChange:function(e){E(O(e),{type:"hue",value:e})},onChangeComplete:function(e){d&&d(O(e))}})),!h&&o().createElement(C,(0,l.A)({},I,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:k}],min:0,max:100,value:100*S.a,onChange:function(e){E(j(e),{type:"alpha",value:e})},onChangeComplete:function(e){d&&d(j(e))}}))),o().createElement(Qs,{color:S.toRgbString(),prefixCls:s})));return o().createElement("div",{className:M,style:p,ref:t},"function"==typeof m?m(N):N)}));const lu=au,cu=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"";let su=function(){return ie((function e(t){var n;if(re(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new Ks(this.colors[0].color.metaColor)):this.metaColor=new Ks(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?cu(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;return e?`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();const uu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var du=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:uu}))};const fu=r.forwardRef(du);var pu=o().forwardRef((function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,l=e.style,c=e.children,s=e.isActive,u=e.role,d=e.classNames,f=e.styles,p=Be(o().useState(s||r),2),m=p[0],g=p[1];return o().useEffect((function(){(r||s)&&g(!0)}),[r,s]),m?o().createElement("div",{ref:t,className:a()("".concat(n,"-content"),x(x({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:l,role:u},o().createElement("div",{className:a()("".concat(n,"-content-box"),null==d?void 0:d.body),style:null==f?void 0:f.body},c)):null}));pu.displayName="PanelContent";const mu=pu;var gu=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],hu=o().forwardRef((function(e,t){var n=e.showArrow,r=void 0===n||n,i=e.headerClass,c=e.isActive,s=e.onItemClick,u=e.forceRender,d=e.className,f=e.classNames,p=void 0===f?{}:f,m=e.styles,g=void 0===m?{}:m,h=e.prefixCls,v=e.collapsible,b=e.accordion,y=e.panelKey,C=e.extra,w=e.header,S=e.expandIcon,$=e.openMotion,k=e.destroyInactivePanel,E=e.children,O=ni(e,gu),j="disabled"===v,M="header"===v,I="icon"===v,N=null!=C&&"boolean"!=typeof C,P=function(){null==s||s(y)},R="function"==typeof S?S(e):o().createElement("i",{className:"arrow"});R&&(R=o().createElement("div",{className:"".concat(h,"-expand-icon"),onClick:["header","icon"].includes(v)?P:void 0},R));var T=a()(x(x(x({},"".concat(h,"-item"),!0),"".concat(h,"-item-active"),c),"".concat(h,"-item-disabled"),j),d),A={className:a()(i,x(x(x({},"".concat(h,"-header"),!0),"".concat(h,"-header-collapsible-only"),M),"".concat(h,"-icon-collapsible-only"),I),p.header),"aria-expanded":c,"aria-disabled":j,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==bl.ENTER&&e.which!==bl.ENTER||P()},style:g.header};return M||I||(A.onClick=P,A.role=b?"tab":"button",A.tabIndex=j?-1:0),o().createElement("div",(0,l.A)({},O,{ref:t,className:T}),o().createElement("div",A,r&&R,o().createElement("span",{className:"".concat(h,"-header-text"),onClick:"header"===v?P:void 0},w),N&&o().createElement("div",{className:"".concat(h,"-extra")},C)),o().createElement(ka,(0,l.A)({visible:c,leavedClassName:"".concat(h,"-content-hidden")},$,{forceRender:u,removeOnLeave:k}),(function(e,t){var n=e.className,r=e.style;return o().createElement(mu,{ref:t,prefixCls:h,className:n,classNames:p,style:r,styles:g,isActive:c,forceRender:u,role:b?"tabpanel":void 0},E)})))}));const vu=hu;var bu=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function yu(e){var t=e;if(!Array.isArray(t)){var n=b(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var xu=o().forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,i=e.destroyInactivePanel,c=void 0!==i&&i,u=e.style,d=e.accordion,f=e.className,p=e.children,m=e.collapsible,g=e.openMotion,h=e.expandIcon,b=e.activeKey,y=e.defaultActiveKey,x=e.onChange,C=e.items,w=a()(r,f),S=Be(Gn([],{value:b,onChange:function(e){return null==x?void 0:x(e)},defaultValue:y,postState:yu}),2),$=S[0],k=S[1];v(!p,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,i=t.collapsible,a=t.destroyInactivePanel,c=t.onItemClick,s=t.activeKey,u=t.openMotion,d=t.expandIcon;return e.map((function(e,t){var f,p=e.children,m=e.label,g=e.key,h=e.collapsible,v=e.onItemClick,b=e.destroyInactivePanel,y=ni(e,bu),x=String(null!=g?g:t),C=null!=h?h:i,w=null!=b?b:a;return f=r?s[0]===x:s.indexOf(x)>-1,o().createElement(vu,(0,l.A)({},y,{prefixCls:n,key:x,panelKey:x,isActive:f,accordion:r,openMotion:u,expandIcon:d,header:m,collapsible:C,onItemClick:function(e){"disabled"!==C&&(c(e),null==v||v(e))},destroyInactivePanel:w}),p)}))}(e,n):s(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r,i=n.prefixCls,a=n.accordion,l=n.collapsible,c=n.destroyInactivePanel,s=n.onItemClick,u=n.activeKey,d=n.openMotion,f=n.expandIcon,p=e.key||String(t),m=e.props,g=m.header,h=m.headerClass,v=m.destroyInactivePanel,b=m.collapsible,y=m.onItemClick;r=a?u[0]===p:u.indexOf(p)>-1;var x=null!=b?b:l,C={key:p,panelKey:p,header:g,headerClass:h,isActive:r,prefixCls:i,destroyInactivePanel:null!=v?v:c,openMotion:d,accordion:a,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(s(e),null==y||y(e))},expandIcon:f,collapsible:x};return"string"==typeof e.type?e:(Object.keys(C).forEach((function(e){void 0===C[e]&&delete C[e]})),o().cloneElement(e,C))}(e,t,n)}))}(C,p,{prefixCls:r,accordion:d,openMotion:g,expandIcon:h,collapsible:m,destroyInactivePanel:c,onItemClick:function(e){return k((function(){return d?$[0]===e?[]:[e]:$.indexOf(e)>-1?$.filter((function(t){return t!==e})):[].concat(Se($),[e])}))},activeKey:$});return o().createElement("div",(0,l.A)({ref:t,className:w,style:u,role:d?"tablist":void 0},ja(e,{aria:!0,data:!0})),E)}));const Cu=Object.assign(xu,{Panel:vu}),wu=Cu;Cu.Panel;const Su=r.forwardRef(((e,t)=>{const{getPrefixCls:n}=r.useContext(Ae),{prefixCls:o,className:i,showArrow:l=!0}=e,c=n("collapse",o),s=a()({[`${c}-no-arrow`]:!l},i);return r.createElement(wu.Panel,Object.assign({ref:t},e,{prefixCls:c,className:s}))})),$u=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),ku=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:h,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:C,motionDurationSlow:w,fontSizeIcon:S,contentPadding:$,fontHeight:k,fontHeightLG:E}=e,O=`${yt(s)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},pr(e)),{backgroundColor:o,border:O,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${yt(c)} ${yt(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:h,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:k,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:S,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:$},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:E,marginInlineStart:e.calc(x).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${yt(c)} ${yt(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Eu=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Ou=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},ju=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Mu=Vo("Collapse",(e=>{const t=ir(e,{collapseHeaderPaddingSM:`${yt(e.paddingXS)} ${yt(e.paddingSM)}`,collapseHeaderPaddingLG:`${yt(e.padding)} ${yt(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[ku(t),Ou(t),ju(t),Eu(t),$u(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),Iu=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o,collapse:i}=r.useContext(Ae),{prefixCls:l,className:c,rootClassName:u,style:d,bordered:f=!0,ghost:p,size:m,expandIconPosition:g="start",children:h,expandIcon:v}=e,b=ms((e=>{var t;return null!==(t=null!=m?m:e)&&void 0!==t?t:"middle"})),y=n("collapse",l),x=n(),[C,w,S]=Mu(y),$=r.useMemo((()=>"left"===g?"start":"right"===g?"end":g),[g]),k=null!=v?v:null==i?void 0:i.expandIcon,E=r.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"==typeof k?k(e):r.createElement(fu,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return Na(t,(()=>{var e;return{className:a()(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${y}-arrow`)}}))}),[k,y]),O=a()(`${y}-icon-position-${$}`,{[`${y}-borderless`]:!f,[`${y}-rtl`]:"rtl"===o,[`${y}-ghost`]:!!p,[`${y}-${b}`]:"middle"!==b},null==i?void 0:i.className,c,u,w,S),j=Object.assign(Object.assign({},ns(x)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),M=r.useMemo((()=>h?s(h).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return Na(e,Object.assign(Object.assign({},ye(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[h]);return C(r.createElement(wu,Object.assign({ref:t,openMotion:j},ye(e,["rootClassName"]),{expandIcon:E,prefixCls:y,className:O,style:Object.assign(Object.assign({},null==i?void 0:i.style),d)}),M))})),Nu=Object.assign(Iu,{Panel:Su}),Pu=e=>e instanceof su?e:new su(e),Ru=e=>Math.round(Number(e||0)),Tu=e=>Ru(100*e.toHsb().a),Au=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const n=e.toHsb();return n.a=t||1,Pu(n)}return n.a=t||1,Pu(n)},zu=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Se(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;ee.map((e=>(e.colors=e.colors.map(Pu),e))),Du=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Ks(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},Bu=e=>{let{label:t}=e;return`panel-${t}`},Hu=e=>{let{prefixCls:t,presets:n,value:i,onChange:l}=e;const[c]=rs("ColorPicker"),[,s]=Fo(),[u]=Gn(_u(n),{value:_u(n),postState:_u}),d=`${t}-presets`,f=(0,r.useMemo)((()=>u.reduce(((e,t)=>{const{defaultOpen:n=!0}=t;return n&&e.push(Bu(t)),e}),[])),[u]),p=u.map((e=>{var n;return{key:Bu(e),label:o().createElement("div",{className:`${d}-label`},null==e?void 0:e.label),children:o().createElement("div",{className:`${d}-items`},Array.isArray(null==e?void 0:e.colors)&&(null===(n=e.colors)||void 0===n?void 0:n.length)>0?e.colors.map(((e,n)=>o().createElement(Qs,{key:`preset-${n}-${e.toHexString()}`,color:Pu(e).toRgbString(),prefixCls:t,className:a()(`${d}-color`,{[`${d}-color-checked`]:e.toHexString()===(null==i?void 0:i.toHexString()),[`${d}-color-bright`]:Du(e,s.colorBgElevated)}),onClick:()=>{null==l||l(e)}}))):o().createElement("span",{className:`${d}-empty`},c.presetEmpty))}}));return o().createElement("div",{className:d},o().createElement(Nu,{defaultActiveKey:f,ghost:!0,items:p}))},Lu=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return ir(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Fu=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:$o(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:$o(c),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:$o(s),p=Du(new su(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},Wu=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${yt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},hr(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Vu=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),qu=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ku=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Xu=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Gu=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Vu(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Yu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Xu(e))}),Uu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Qu=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Uu:Yu;return Object.assign(Object.assign({},o(e)),Vu(e.componentCls,t,n))},Zu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Qu(e,r,o))}),Ju=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Qu(e,r,o))}),ed=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),td=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Qu(e,n,r))}),nd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Qu(e,r,o,n))}),rd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Zu(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),ed(e)),td(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),nd(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Gu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),od=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Ju(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ed(e)),td(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),nd(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Gu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),id=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Zu(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ju(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ed(e)),td(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),nd(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),nd(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Gu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ad=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:rd(e),[`${t}-color-primary`]:od(e),[`${t}-color-dangerous`]:id(e)}},ld=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ju(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),nd(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Zu(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),nd(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),cd=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${yt(s)} ${yt(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:qu(e)},{[`${n}${n}-round${t}`]:Ku(e)}]},sd=e=>{const t=ir(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return cd(t,e.componentCls)},ud=e=>{const t=ir(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return cd(t,`${e.componentCls}-sm`)},dd=e=>{const t=ir(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return cd(t,`${e.componentCls}-lg`)},fd=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},pd=Vo("Button",(e=>{const t=Lu(e);return[Wu(t),sd(t),ud(t),dd(t),fd(t),ad(t),ld(t),_s(t)]}),Fu,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function md(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function gd(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function hd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},md(e,r,t)),gd(n,r,t))}}function vd(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function bd(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},vd(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const yd=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${yt(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${yt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},xd=Ko(["Button","compact"],(e=>{const t=Lu(e);return[hd(t),bd(t),yd(t)]}),Fu);const Cd={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},wd=o().forwardRef(((e,t)=>{var n,i,l;const{loading:c=!1,prefixCls:s,color:u,variant:d,type:f,danger:p=!1,shape:m="default",size:g,styles:h,disabled:v,className:b,rootClassName:y,children:x,icon:C,iconPosition:w="start",ghost:S=!1,block:$=!1,htmlType:k="button",classNames:E,style:O={},autoInsertSpace:j}=e,M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(u&&d)return[u,d];const e=Cd[N]||[];return p?["danger",e[1]]:e}),[f,u,d,p]),T="danger"===P?"dangerous":P,{getPrefixCls:A,direction:z,button:_}=(0,r.useContext)(Ae),D=null===(n=null!=j?j:null==_?void 0:_.autoInsertSpace)||void 0===n||n,B=A("btn",s),[H,L,F]=pd(B),W=(0,r.useContext)(Nc),V=null!=v?v:W,q=(0,r.useContext)($s),K=(0,r.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(c)),[c]),[X,G]=(0,r.useState)(K.loading),[Y,U]=(0,r.useState)(!1),Q=I(t,(0,r.createRef)()),Z=1===r.Children.count(x)&&!C&&!Ms(R);(0,r.useEffect)((()=>{let e=null;return K.delay>0?e=setTimeout((()=>{e=null,G(!0)}),K.delay):G(K.loading),function(){e&&(clearTimeout(e),e=null)}}),[K]),(0,r.useEffect)((()=>{if(!Q||!Q.current||!D)return;const e=Q.current.textContent;Z&&Es(e)?Y||U(!0):Y&&U(!1)}),[Q]);const J=t=>{const{onClick:n}=e;X||V?t.preventDefault():null==n||n(t)},{compactSize:ee,compactItemClassnames:te}=Cs(B,z),ne=ms((e=>{var t,n;return null!==(n=null!==(t=null!=g?g:ee)&&void 0!==t?t:q)&&void 0!==n?n:e})),re=ne&&{large:"lg",small:"sm",middle:void 0}[ne]||"",oe=X?"loading":C,ie=ye(M,["navigate"]),ae=a()(B,L,F,{[`${B}-${m}`]:"default"!==m&&m,[`${B}-${N}`]:N,[`${B}-dangerous`]:p,[`${B}-color-${T}`]:T,[`${B}-variant-${R}`]:R,[`${B}-${re}`]:re,[`${B}-icon-only`]:!x&&0!==x&&!!oe,[`${B}-background-ghost`]:S&&!Ms(R),[`${B}-loading`]:X,[`${B}-two-chinese-chars`]:Y&&D&&!X,[`${B}-block`]:$,[`${B}-rtl`]:"rtl"===z,[`${B}-icon-end`]:"end"===w},te,b,y,null==_?void 0:_.className),le=Object.assign(Object.assign({},null==_?void 0:_.style),O),ce=a()(null==E?void 0:E.icon,null===(i=null==_?void 0:_.classNames)||void 0===i?void 0:i.icon),se=Object.assign(Object.assign({},(null==h?void 0:h.icon)||{}),(null===(l=null==_?void 0:_.styles)||void 0===l?void 0:l.icon)||{}),ue=C&&!X?o().createElement(Ns,{prefixCls:B,className:ce,style:se},C):o().createElement(As,{existIcon:!!C,prefixCls:B,loading:X}),de=x||0===x?function(e,t){let n=!1;const r=[];return o().Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),o().Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&js(e.type)&&Es(e.props.children)?Na(e,{children:e.props.children.split("").join(n)}):js(e)?Es(e)?o().createElement("span",null,e.split("").join(n)):o().createElement("span",null,e):Ma(e)?o().createElement("span",null,e):e}(e,t)))}(x,Z&&D):null;if(void 0!==ie.href)return H(o().createElement("a",Object.assign({},ie,{className:a()(ae,{[`${B}-disabled`]:V}),href:V?void 0:ie.href,style:le,onClick:J,ref:Q,tabIndex:V?-1:0}),ue,de));let fe=o().createElement("button",Object.assign({},M,{type:k,className:ae,style:le,onClick:J,disabled:V,ref:Q}),ue,de,!!te&&o().createElement(xd,{key:"compact",prefixCls:B}));return Ms(R)||(fe=o().createElement(ps,{component:"Button",disabled:X},fe)),H(fe)})),Sd=wd;Sd.Group=e=>{const{getPrefixCls:t,direction:n}=r.useContext(Ae),{prefixCls:o,size:i,className:l}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{type:t,children:n,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,f=r.useRef(!1),p=r.useRef(null),[m,g]=Kn(!1),h=function(){null==a||a.apply(void 0,arguments)};return r.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),r.createElement($d,Object.assign({},Os(t),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void h();let t;if(c){if(t=d(e),u&&!kd(t))return f.current=!1,void h(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!kd(t))return void h();(e=>{kd(e)&&(g(!0),e.then((function(){g(!1,!0),h.apply(void 0,arguments),f.current=!1}),(e=>{if(g(!1,!0),f.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:m,prefixCls:o},i,{ref:p}),n)},Od=o().createContext({}),{Provider:jd}=Od,Md=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:i,mergedOkCancel:a,rootPrefixCls:l,close:c,onCancel:s,onConfirm:u}=(0,r.useContext)(Od);return a?o().createElement(Ed,{isSilent:i,actionFn:s,close:function(){null==c||c.apply(void 0,arguments),null==u||u(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${l}-btn`},n):null},Id=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:i,rootPrefixCls:a,okTextLocale:l,okType:c,onConfirm:s,onOk:u}=(0,r.useContext)(Od);return o().createElement(Ed,{isSilent:n,type:c||"primary",actionFn:u,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:i,prefixCls:`${a}-btn`},l)},Nd=r.createContext(null);var Pd,Rd=[];function Td(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";Ze("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Qe(t),{width:f,height:p}}function Ad(e){return"undefined"==typeof document?0:((e||void 0===Pd)&&(Pd=Td()),Pd.width)}function zd(e){return"undefined"!=typeof document&&e&&e instanceof Element?Td(e):{width:0,height:0}}var _d="rc-util-locker-".concat(Date.now()),Dd=0;var Bd=!1,Hd=function(e){return!1!==e&&(Le()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Ld=r.forwardRef((function(e,t){var n=e.open,o=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),l=void 0===a||a,c=e.children,s=Be(r.useState(n),2),u=s[0],d=s[1],f=u||n;r.useEffect((function(){(l||n)&&d(n)}),[n,l]);var p=Be(r.useState((function(){return Hd(i)})),2),m=p[0],g=p[1];r.useEffect((function(){var e=Hd(i);g(null!=e?e:null)}));var h,v,b,y=function(e){var t=Be(r.useState((function(){return Le()?document.createElement("div"):null})),1)[0],n=r.useRef(!1),o=r.useContext(Nd),i=Be(r.useState(Rd),2),a=i[0],l=i[1],c=o||(n.current?void 0:function(e){l((function(t){return[e].concat(Se(t))}))});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function u(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return Ot((function(){return e?o?o(s):s():u(),u}),[e]),Ot((function(){a.length&&(a.forEach((function(e){return e()})),l(Rd))}),[a]),[t,c]}(f&&!m),x=Be(y,2),C=x[0],w=x[1],$=null!=m?m:C;h=o&&n&&Le()&&($===C||$===document.body),v=!!h,b=Be(r.useState((function(){return Dd+=1,"".concat(_d,"_").concat(Dd)})),1)[0],Ot((function(){if(v){var e=zd(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Ze("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)}else Qe(b);return function(){Qe(b)}}),[v,b]);var k=null;c&&P(c)&&t&&(k=c.ref);var E=N(k,t);if(!f||!Le()||void 0===m)return null;var O=!1===$||Bd,j=c;return t&&(j=r.cloneElement(c,{ref:E})),r.createElement(Nd.Provider,{value:w},O?j:(0,S.createPortal)(j,$))}));const Fd=Ld;var Wd=r.createContext({}),Vd=0,qd=w({},r).useId;const Kd=qd?function(e){var t=qd();return e||t}:function(e){var t=Be(r.useState("ssr-id"),2),n=t[0],o=t[1];return r.useEffect((function(){var e=Vd;Vd+=1,o("rc_unique_".concat(e))}),[]),e||n};function Xd(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Gd(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const Yd=r.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var Ud={width:0,height:0,overflow:"hidden",outline:"none"},Qd={outline:"none"},Zd=o().forwardRef((function(e,t){var n=e.prefixCls,i=e.className,c=e.style,s=e.title,u=e.ariaId,d=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,g=e.children,h=e.bodyStyle,v=e.bodyProps,y=e.modalRender,x=e.onMouseDown,C=e.onMouseUp,S=e.holderRef,$=e.visible,k=e.forceRender,E=e.width,O=e.height,j=e.classNames,M=e.styles,I=o().useContext(Wd).panel,P=N(S,I),R=(0,r.useRef)(),T=(0,r.useRef)();o().useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=R.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===T.current?R.current.focus({preventScroll:!0}):e||t!==R.current||T.current.focus({preventScroll:!0})}}}));var A={};void 0!==E&&(A.width=E),void 0!==O&&(A.height=O);var z=d?o().createElement("div",{className:a()("".concat(n,"-footer"),null==j?void 0:j.footer),style:w({},null==M?void 0:M.footer)},d):null,_=s?o().createElement("div",{className:a()("".concat(n,"-header"),null==j?void 0:j.header),style:w({},null==M?void 0:M.header)},o().createElement("div",{className:"".concat(n,"-title"),id:u},s)):null,D=(0,r.useMemo)((function(){return"object"===b(f)&&null!==f?f:f?{closeIcon:null!=p?p:o().createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[f,p,n]),B=ja(D,!0),H="object"===b(f)&&f.disabled,L=f?o().createElement("button",(0,l.A)({type:"button",onClick:m,"aria-label":"Close"},B,{className:"".concat(n,"-close"),disabled:H}),D.closeIcon):null,F=o().createElement("div",{className:a()("".concat(n,"-content"),null==j?void 0:j.content),style:null==M?void 0:M.content},L,_,o().createElement("div",(0,l.A)({className:a()("".concat(n,"-body"),null==j?void 0:j.body),style:w(w({},h),null==M?void 0:M.body)},v),g),z);return o().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?u:null,"aria-modal":"true",ref:P,style:w(w({},c),A),className:a()(n,i),onMouseDown:x,onMouseUp:C},o().createElement("div",{ref:R,tabIndex:0,style:Qd},o().createElement(Yd,{shouldUpdate:$||k},y?y(F):F)),o().createElement("div",{tabIndex:0,ref:T,style:Ud}))}));const Jd=Zd;var ef=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.title,i=e.style,c=e.className,s=e.visible,u=e.forceRender,d=e.destroyOnClose,f=e.motionName,p=e.ariaId,m=e.onVisibleChanged,g=e.mousePosition,h=(0,r.useRef)(),v=Be(r.useState(),2),b=v[0],y=v[1],x={};function C(){var e,t,n,r,o,i=(n={left:(t=(e=h.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=Gd(o),n.top+=Gd(o,!0),n);y(g&&(g.x||g.y)?"".concat(g.x-i.left,"px ").concat(g.y-i.top,"px"):"")}return b&&(x.transformOrigin=b),r.createElement(ka,{visible:s,onVisibleChanged:m,onAppearPrepare:C,onEnterPrepare:C,forceRender:u,motionName:f,removeOnLeave:d,ref:h},(function(s,u){var d=s.className,f=s.style;return r.createElement(Jd,(0,l.A)({},e,{ref:t,title:o,ariaId:p,prefixCls:n,holderRef:u,style:w(w(w({},f),i),x),className:a()(c,d)}))}))}));ef.displayName="Content";const tf=ef,nf=function(e){var t=e.prefixCls,n=e.style,o=e.visible,i=e.maskProps,c=e.motionName,s=e.className;return r.createElement(ka,{key:"mask",visible:o,motionName:c,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var c=e.className,u=e.style;return r.createElement("div",(0,l.A)({ref:o,style:w(w({},u),n),className:a()("".concat(t,"-mask"),c,s)},i))}))},rf=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,o=e.zIndex,i=e.visible,c=void 0!==i&&i,s=e.keyboard,u=void 0===s||s,d=e.focusTriggerAfterClose,f=void 0===d||d,p=e.wrapStyle,m=e.wrapClassName,g=e.wrapProps,h=e.onClose,v=e.afterOpenChange,b=e.afterClose,y=e.transitionName,x=e.animation,C=e.closable,S=void 0===C||C,$=e.mask,k=void 0===$||$,E=e.maskTransitionName,O=e.maskAnimation,j=e.maskClosable,M=void 0===j||j,I=e.maskStyle,N=e.maskProps,P=e.rootClassName,R=e.classNames,T=e.styles,A=(0,r.useRef)(),z=(0,r.useRef)(),_=(0,r.useRef)(),D=Be(r.useState(c),2),B=D[0],H=D[1],L=Kd();function F(e){null==h||h(e)}var W=(0,r.useRef)(!1),V=(0,r.useRef)(),q=null;M&&(q=function(e){W.current?W.current=!1:z.current===e.target&&F(e)}),(0,r.useEffect)((function(){c&&(H(!0),Fe(z.current,document.activeElement)||(A.current=document.activeElement))}),[c]),(0,r.useEffect)((function(){return function(){clearTimeout(V.current)}}),[]);var K=w(w(w({zIndex:o},p),null==T?void 0:T.wrapper),{},{display:B?null:"none"});return r.createElement("div",(0,l.A)({className:a()("".concat(n,"-root"),P)},ja(e,{data:!0})),r.createElement(nf,{prefixCls:n,visible:k&&c,motionName:Xd(n,E,O),style:w(w({zIndex:o},I),null==T?void 0:T.mask),maskProps:N,className:null==R?void 0:R.mask}),r.createElement("div",(0,l.A)({tabIndex:-1,onKeyDown:function(e){if(u&&e.keyCode===bl.ESC)return e.stopPropagation(),void F(e);c&&e.keyCode===bl.TAB&&_.current.changeActive(!e.shiftKey)},className:a()("".concat(n,"-wrap"),m,null==R?void 0:R.wrapper),ref:z,onClick:q,style:K},g),r.createElement(tf,(0,l.A)({},e,{onMouseDown:function(){clearTimeout(V.current),W.current=!0},onMouseUp:function(){V.current=setTimeout((function(){W.current=!1}))},ref:_,closable:S,ariaId:L,prefixCls:n,visible:c&&B,onClose:F,onVisibleChanged:function(e){if(e)Fe(z.current,document.activeElement)||null===(t=_.current)||void 0===t||t.focus();else{if(H(!1),k&&A.current&&f){try{A.current.focus({preventScroll:!0})}catch(e){}A.current=null}B&&(null==b||b())}var t;null==v||v(e)},motionName:Xd(n,y,x)}))))};var of=function(e){var t=e.visible,n=e.getContainer,o=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,c=e.afterClose,s=e.panelRef,u=Be(r.useState(t),2),d=u[0],f=u[1],p=r.useMemo((function(){return{panel:s}}),[s]);return r.useEffect((function(){t&&f(!0)}),[t]),o||!a||d?r.createElement(Wd.Provider,{value:p},r.createElement(Fd,{open:t||o||d,autoDestroy:!1,getContainer:n,autoLock:t||d},r.createElement(rf,(0,l.A)({},e,{destroyOnClose:a,afterClose:function(){null==c||c(),f(!1)}})))):null};of.displayName="Dialog";const af=of;var lf="RC_FORM_INTERNAL_HOOKS",cf=function(){v(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const sf=r.createContext({getFieldValue:cf,getFieldsValue:cf,getFieldError:cf,getFieldWarning:cf,getFieldsError:cf,isFieldsTouched:cf,isFieldTouched:cf,isFieldValidating:cf,isFieldsValidating:cf,resetFields:cf,setFields:cf,setFieldValue:cf,setFieldsValue:cf,validateFields:cf,submit:cf,getInternalHooks:function(){return cf(),{dispatch:cf,initEntityValue:cf,registerField:cf,useSubscribe:cf,setInitialValues:cf,destroyForm:cf,setCallbacks:cf,registerWatch:cf,getFields:cf,setValidateMessages:cf,setPreserve:cf,getInitialValue:cf}}}),uf=r.createContext(null);function df(e){return null==e?[]:Array.isArray(e)?e:[e]}function ff(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var pf=ff();function mf(e){var t="function"==typeof Map?new Map:void 0;return mf=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(se())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ae(o,n.prototype),o}(e,arguments,ce(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ae(n,e)},mf(e)}var gf=/%[sdj%]/g;function hf(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function vf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function bf(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function yf(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Of=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,jf={integer:function(e){return jf.number(e)&&parseInt(e,10)===e},float:function(e){return jf.number(e)&&!jf.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===b(e)&&!jf.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Ef)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(kf)return kf;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return kf=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Of)}};const Mf=$f,If=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(vf(o.messages.whitespace,e.fullField))},Nf=function(e,t,n,r,o){if(e.required&&void 0===t)$f(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?jf[i](t)||r.push(vf(o.messages.types[i],e.fullField,e.type)):i&&b(t)!==e.type&&r.push(vf(o.messages.types[i],e.fullField,e.type))}},Pf=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?s="number":d?s="string":f&&(s="array"),!s)return!1;f&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(vf(o.messages[s].len,e.fullField,e.len)):a&&!l&&ce.max?r.push(vf(o.messages[s].max,e.fullField,e.max)):a&&l&&(ce.max)&&r.push(vf(o.messages[s].range,e.fullField,e.min,e.max))},Rf=function(e,t,n,r,o){e[Sf]=Array.isArray(e[Sf])?e[Sf]:[],-1===e[Sf].indexOf(t)&&r.push(vf(o.messages[Sf],e.fullField,e[Sf].join(", ")))},Tf=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(vf(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(vf(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Af=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t,i)&&!e.required)return n();Mf(e,t,r,a,o,i),bf(t,i)||Nf(e,t,r,a,o)}n(a)},zf={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t,"string")&&!e.required)return n();Mf(e,t,r,i,o,"string"),bf(t,"string")||(Nf(e,t,r,i,o),Pf(e,t,r,i,o),Tf(e,t,r,i,o),!0===e.whitespace&&If(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t)&&!e.required)return n();Mf(e,t,r,i,o),void 0!==t&&Nf(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),bf(t)&&!e.required)return n();Mf(e,t,r,i,o),void 0!==t&&(Nf(e,t,r,i,o),Pf(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t)&&!e.required)return n();Mf(e,t,r,i,o),void 0!==t&&Nf(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t)&&!e.required)return n();Mf(e,t,r,i,o),bf(t)||Nf(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t)&&!e.required)return n();Mf(e,t,r,i,o),void 0!==t&&(Nf(e,t,r,i,o),Pf(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t)&&!e.required)return n();Mf(e,t,r,i,o),void 0!==t&&(Nf(e,t,r,i,o),Pf(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Mf(e,t,r,i,o,"array"),null!=t&&(Nf(e,t,r,i,o),Pf(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t)&&!e.required)return n();Mf(e,t,r,i,o),void 0!==t&&Nf(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t)&&!e.required)return n();Mf(e,t,r,i,o),void 0!==t&&Rf(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t,"string")&&!e.required)return n();Mf(e,t,r,i,o),bf(t,"string")||Tf(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t,"date")&&!e.required)return n();var a;Mf(e,t,r,i,o),bf(t,"date")||(a=t instanceof Date?t:new Date(t),Nf(e,a,r,i,o),a&&Pf(e,a.getTime(),r,i,o))}n(i)},url:Af,hex:Af,email:Af,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":b(t);Mf(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bf(t)&&!e.required)return n();Mf(e,t,r,i,o)}n(i)}};var _f=function(){function e(t){re(this,e),x(this,"rules",null),x(this,"_messages",pf),this.define(t)}return ie(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==b(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=wf(ff(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===pf&&(a=ff()),wf(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=w({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":b(i)))),(a="function"==typeof a?{validator:a}:w({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return function(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Se(e[n]||[]))})),t}(e);yf(a,n,(function(e){return r(e),e.length?i(new xf(e,hf(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new xf(u,hf(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?yf(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Se(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==b(a.fields)&&"object"!==b(a.defaultField));function s(e,t){return w(w({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Se(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(Cf(a,r));if(o.first&&d.length)return c[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Cf(a,r)):o.error&&(d=[o.error(a,vf(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=w(w({},f),t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Se(d)),e&&e.length&&t.push.apply(t,Se(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,Se(e)):t.push(e)}for(var a=0;a2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Qf(t,e,n)}))}function Qf(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function Zf(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===b(t.target)&&e in t.target?t.target[e]:t}function Jf(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Se(e.slice(0,n)),[o],Se(e.slice(n,t)),Se(e.slice(t+1,r))):i<0?[].concat(Se(e.slice(0,t)),Se(e.slice(t+1,n+1)),[o],Se(e.slice(n+1,r))):e}var ep=["name"],tp=[];function np(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var rp=function(e){le(n,e);var t=fe(n);function n(e){var o;return re(this,n),x(ue(o=t.call(this,e)),"state",{resetCount:0}),x(ue(o),"cancelRegisterFunc",null),x(ue(o),"mounted",!1),x(ue(o),"touched",!1),x(ue(o),"dirty",!1),x(ue(o),"validatePromise",void 0),x(ue(o),"prevValidating",void 0),x(ue(o),"errors",tp),x(ue(o),"warnings",tp),x(ue(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Gf(r)),o.cancelRegisterFunc=null})),x(ue(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Se(void 0===n?[]:n),Se(t)):[]})),x(ue(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),x(ue(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),x(ue(o),"metaCache",null),x(ue(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=w(w({},o.getMeta()),{},{destroy:e});Je(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),x(ue(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(s),p=t&&Uf(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Je(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=tp,o.warnings=tp,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=tp,o.warnings=tp,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&np(i,e,s,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||tp),"warnings"in m&&(o.warnings=m.warnings||tp),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&Uf(t,u,!0))return void o.reRender();if(i&&!u.length&&np(i,e,s,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Gf).some((function(e){return Uf(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&np(i,e,s,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),x(ue(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(ec(Zl().mark((function r(){var a,l,s,u,d,f,p;return Zl().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||df(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=qf(t,n,f,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tp;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?tp:o;t?r.push.apply(r,Se(i)):n.push.apply(n,Se(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=tp,o.warnings=tp,o.triggerMetaEvent(),o.reRender()),c})),x(ue(o),"isFieldValidating",(function(){return!!o.validatePromise})),x(ue(o),"isFieldTouched",(function(){return o.touched})),x(ue(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(lf).getInitialValue)(o.getNamePath())})),x(ue(o),"getErrors",(function(){return o.errors})),x(ue(o),"getWarnings",(function(){return o.warnings})),x(ue(o),"isListField",(function(){return o.props.isListField})),x(ue(o),"isList",(function(){return o.props.isList})),x(ue(o),"isPreserve",(function(){return o.props.preserve})),x(ue(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),x(ue(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return w(w({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=s(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),x(ue(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Un(e||t(!0),n)})),x(ue(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,g=p(lf).dispatch,h=o.getValue(),v=s||function(e){return x({},c,e)},b=e[r],y=void 0!==n?v(h):{},C=w(w({},e),y);return C[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(u.keys=[].concat(Se(u.keys.slice(0,t)),[u.id],Se(u.keys.slice(t))),i([].concat(Se(n.slice(0,t)),[e],Se(n.slice(t))))):(u.keys=[].concat(Se(u.keys),[u.id]),i([].concat(Se(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Jf(u.keys,e,t),i(Jf(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))};var ap="__@field_split__";function lp(e){return e.map((function(e){return"".concat(b(e),":").concat(e)})).join(ap)}var cp=function(){function e(){re(this,e),x(this,"kvs",new Map)}return ie(e,[{key:"set",value:function(e,t){this.kvs.set(lp(e),t)}},{key:"get",value:function(e){return this.kvs.get(lp(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(lp(e))}},{key:"map",value:function(e){return Se(this.kvs.entries()).map((function(t){var n=Be(t,2),r=n[0],o=n[1],i=r.split(ap);return e({key:i.map((function(e){var t=Be(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();const sp=cp;var up=["name"],dp=ie((function e(t){var n=this;re(this,e),x(this,"formHooked",!1),x(this,"forceRootUpdate",void 0),x(this,"subscribable",!0),x(this,"store",{}),x(this,"fieldEntities",[]),x(this,"initialValues",{}),x(this,"callbacks",{}),x(this,"validateMessages",null),x(this,"preserve",null),x(this,"lastValidatePromise",null),x(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),x(this,"getInternalHooks",(function(e){return e===lf?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(v(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),x(this,"useSubscribe",(function(e){n.subscribable=e})),x(this,"prevWithoutPreserves",null),x(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=tr(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Zn(o,n,Un(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),x(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new sp;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),x(this,"getInitialValue",(function(e){var t=Un(n.initialValues,e);return e.length?tr(t):t})),x(this,"setCallbacks",(function(e){n.callbacks=e})),x(this,"setValidateMessages",(function(e){n.validateMessages=e})),x(this,"setPreserve",(function(e){n.preserve=e})),x(this,"watchList",[]),x(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),x(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),x(this,"timeoutId",null),x(this,"warningUnhooked",(function(){})),x(this,"updateStore",(function(e){n.store=e})),x(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),x(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new sp;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),x(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Gf(e);return t.get(n)||{INVALIDATE_NAME_PATH:Gf(e)}}))})),x(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===b(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),Yf(n.store,l.map(Gf))})),x(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Gf(e);return Un(n.store,t)})),x(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Gf(e[n]),errors:[],warnings:[]}}))})),x(this,"getFieldError",(function(e){n.warningUnhooked();var t=Gf(e);return n.getFieldsError([t])[0].errors})),x(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Gf(e);return n.getFieldsError([t])[0].warnings})),x(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=new sp,o=n.getFieldEntities(!0);o.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,Se(Se(o).map((function(e){return e.entity}))))}))):e=o,e.forEach((function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))v(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)v(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(Zn(n.store,o,Se(i)[0].value))}}}}))})),x(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(tr(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Gf);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Zn(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),x(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=ni(e,up),a=Gf(o);r.push(a),"value"in i&&n.updateStore(Zn(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),x(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=w(w({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),x(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Un(n.store,r)&&n.updateStore(Zn(n.store,r,t))}})),x(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),x(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Qf(e.getNamePath(),t)}))){var l=n.store;n.updateStore(Zn(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),x(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),x(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=w(w({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),x(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Se(r))}),r})),x(this,"updateValue",(function(e,t){var r=Gf(e),o=n.store;n.updateStore(Zn(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Yf(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(Se(i)))})),x(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=tr(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),x(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),x(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new sp;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Gf(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),x(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new sp;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Uf(e,n)}));a.length&&r(a,o)}})),x(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Gf):[],l=[],c=String(Date.now()),s=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||Uf(a,t,d)){var r=e.validateRules(w({validateMessages:w(w({},Bf),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Se(n)):r.push.apply(r,Se(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));m.catch((function(e){return e}));var g=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(g),m})),x(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const fp=function(e){var t=r.useRef(),n=Be(r.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new dp((function(){n({})}));t.current=o.getForm()}return[t.current]};var pp=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mp=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,a=r.useContext(pp),l=r.useRef({});return r.createElement(pp.Provider,{value:w(w({},a),{},{validateMessages:w(w({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=w(w({},l.current),{},x({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=w({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)};const gp=pp;var hp=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const vp=function(e,t){var n=e.name,o=e.initialValues,i=e.fields,a=e.form,c=e.preserve,s=e.children,u=e.component,d=void 0===u?"form":u,f=e.validateMessages,p=e.validateTrigger,m=void 0===p?"onChange":p,g=e.onValuesChange,h=e.onFieldsChange,v=e.onFinish,y=e.onFinishFailed,x=e.clearOnDestroy,C=ni(e,hp),S=r.useRef(null),$=r.useContext(gp),k=Be(fp(a),1)[0],E=k.getInternalHooks(lf),O=E.useSubscribe,j=E.setInitialValues,M=E.setCallbacks,I=E.setValidateMessages,N=E.setPreserve,P=E.destroyForm;r.useImperativeHandle(t,(function(){return w(w({},k),{},{nativeElement:S.current})})),r.useEffect((function(){return $.registerForm(n,k),function(){$.unregisterForm(n)}}),[$,k,n]),I(w(w({},$.validateMessages),f)),M({onValuesChange:g,onFieldsChange:function(e){if($.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o{}}),Sp=r.createContext(null),$p=e=>{const t=ye(e,["prefixCls"]);return r.createElement(mp,Object.assign({},t))},kp=r.createContext({prefixCls:""}),Ep=r.createContext({}),Op=e=>{let{children:t,status:n,override:o}=e;const i=(0,r.useContext)(Ep),a=(0,r.useMemo)((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,i]);return r.createElement(Ep.Provider,{value:a},t)},jp=(0,r.createContext)(void 0),Mp=e=>{const{space:t,form:n,children:r}=e;if(null==r)return null;let i=r;return n&&(i=o().createElement(Op,{override:!0,status:!0},i)),t&&(i=o().createElement(ws,null,i)),i};function Ip(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Np(e){const{closable:t,closeIcon:n}=e||{};return o().useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function Pp(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const Rp={};function Tp(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rp;const r=Np(e),i=Np(t),a="boolean"!=typeof r&&!!(null==r?void 0:r.disabled),l=o().useMemo((()=>Object.assign({closeIcon:o().createElement(Ei,null)},n)),[n]),c=o().useMemo((()=>!1!==r&&(r?Pp(l,i,r):!1!==i&&(i?Pp(l,i):!!l.closable&&l))),[r,i,l]);return o().useMemo((()=>{if(!1===c)return[!1,null,a];const{closeIconRender:e}=l,{closeIcon:t}=c;let n=t;if(null!=n){e&&(n=e(t));const r=ja(c,!0);Object.keys(r).length&&(n=o().isValidElement(n)?o().cloneElement(n,r):o().createElement("span",Object.assign({},r),n))}return[!0,n,a]}),[c,l])}const Ap=e=>{const{prefixCls:t,className:n,style:o,size:i,shape:l}=e,c=a()({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),s=a()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),u=r.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return r.createElement("span",{className:a()(t,c,s,n),style:Object.assign(Object.assign({},u),o)})},zp=new zn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),_p=e=>({height:e,lineHeight:yt(e)}),Dp=e=>Object.assign({width:e},_p(e)),Bp=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:zp,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Hp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},_p(e)),Lp=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Dp(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Dp(o)),[`${t}${t}-sm`]:Object.assign({},Dp(i))}},Fp=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Hp(t,l)),[`${r}-lg`]:Object.assign({},Hp(o,l)),[`${r}-sm`]:Object.assign({},Hp(i,l))}},Wp=e=>Object.assign({width:e},_p(e)),Vp=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Wp(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Wp(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},qp=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Kp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},_p(e)),Xp=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Kp(r,l))},qp(e,r,n)),{[`${n}-lg`]:Object.assign({},Kp(o,l))}),qp(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Kp(i,l))}),qp(e,i,`${n}-sm`))},Gp=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:m,titleHeight:g,blockRadius:h,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Dp(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Dp(s)),[`${n}-sm`]:Object.assign({},Dp(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Xp(e)),Lp(e)),Fp(e)),Vp(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},Bp(e))}}},Yp=Vo("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=ir(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Gp(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Up=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},Qp=e=>{const{prefixCls:t,className:n,style:o,rows:i}=e,l=Se(new Array(i)).map(((t,n)=>r.createElement("li",{key:n,style:{width:Up(n,e)}})));return r.createElement("ul",{className:a()(t,n),style:o},l)},Zp=e=>{let{prefixCls:t,className:n,width:o,style:i}=e;return r.createElement("h3",{className:a()(t,n),style:Object.assign({width:o},i)})};function Jp(e){return e&&"object"==typeof e?e:{}}const em=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:i,style:l,children:c,avatar:s=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:m,direction:g,skeleton:h}=r.useContext(Ae),v=m("skeleton",t),[b,y,x]=Yp(v);if(n||!("loading"in e)){const e=!!s,t=!!u,n=!!d;let c,m;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),Jp(s));c=r.createElement("div",{className:`${v}-header`},r.createElement(Ap,Object.assign({},e)))}if(t||n){let o,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),Jp(u));o=r.createElement(Zp,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),Jp(d));i=r.createElement(Qp,Object.assign({},n))}m=r.createElement("div",{className:`${v}-content`},o,i)}const C=a()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:f,[`${v}-rtl`]:"rtl"===g,[`${v}-round`]:p},null==h?void 0:h.className,o,i,y,x);return b(r.createElement("div",{className:C,style:Object.assign(Object.assign({},null==h?void 0:h.style),l)},c,m))}return null!=c?c:null};em.Button=e=>{const{prefixCls:t,className:n,rootClassName:o,active:i,block:l=!1,size:c="default"}=e,{getPrefixCls:s}=r.useContext(Ae),u=s("skeleton",t),[d,f,p]=Yp(u),m=ye(e,["prefixCls"]),g=a()(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:l},n,o,f,p);return d(r.createElement("div",{className:g},r.createElement(Ap,Object.assign({prefixCls:`${u}-button`,size:c},m))))},em.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:o,active:i,shape:l="circle",size:c="default"}=e,{getPrefixCls:s}=r.useContext(Ae),u=s("skeleton",t),[d,f,p]=Yp(u),m=ye(e,["prefixCls","className"]),g=a()(u,`${u}-element`,{[`${u}-active`]:i},n,o,f,p);return d(r.createElement("div",{className:g},r.createElement(Ap,Object.assign({prefixCls:`${u}-avatar`,shape:l,size:c},m))))},em.Input=e=>{const{prefixCls:t,className:n,rootClassName:o,active:i,block:l,size:c="default"}=e,{getPrefixCls:s}=r.useContext(Ae),u=s("skeleton",t),[d,f,p]=Yp(u),m=ye(e,["prefixCls"]),g=a()(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:l},n,o,f,p);return d(r.createElement("div",{className:g},r.createElement(Ap,Object.assign({prefixCls:`${u}-input`,size:c},m))))},em.Image=e=>{const{prefixCls:t,className:n,rootClassName:o,style:i,active:l}=e,{getPrefixCls:c}=r.useContext(Ae),s=c("skeleton",t),[u,d,f]=Yp(s),p=a()(s,`${s}-element`,{[`${s}-active`]:l},n,o,d,f);return u(r.createElement("div",{className:p},r.createElement("div",{className:a()(`${s}-image`,n),style:i},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${s}-image-path`})))))},em.Node=e=>{const{prefixCls:t,className:n,rootClassName:o,style:i,active:l,children:c}=e,{getPrefixCls:s}=r.useContext(Ae),u=s("skeleton",t),[d,f,p]=Yp(u),m=a()(u,`${u}-element`,{[`${u}-active`]:l},f,n,o,p);return d(r.createElement("div",{className:m},r.createElement("div",{className:a()(`${u}-image`,n),style:i},c)))};const tm=em;function nm(){}const rm=r.createContext({add:nm,remove:nm});function om(e){const t=r.useContext(rm),n=r.useRef();return qn((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const im=rm,am=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,r.useContext)(Od);return o().createElement($d,Object.assign({onClick:n},e),t)},lm=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:i,onOk:a}=(0,r.useContext)(Od);return o().createElement($d,Object.assign({},Os(n),{loading:e,onClick:a},t),i)};function cm(e,t){return o().createElement("span",{className:`${e}-close-x`},t||o().createElement(Ei,{className:`${e}-close-icon`}))}const sm=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=e,[d]=rs("Modal",kc()),f={confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:t||(null==d?void 0:d.okText),cancelTextLocale:r||(null==d?void 0:d.cancelText),okType:n,onOk:a,onCancel:l},p=o().useMemo((()=>f),Se(Object.values(f)));let m;return"function"==typeof u||void 0===u?(m=o().createElement(o().Fragment,null,o().createElement(am,null),o().createElement(lm,null)),"function"==typeof u&&(m=u(m,{OkBtn:lm,CancelBtn:am})),m=o().createElement(jd,{value:p},m)):m=u,o().createElement(Ic,{disabled:!1},m)},um=e=>({animationDuration:e,animationFillMode:"both"}),dm=e=>({animationDuration:e,animationFillMode:"both"}),fm=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},um(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},dm(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pm=new zn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),mm=new zn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),gm=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[fm(r,pm,mm,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},hm=new zn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vm=new zn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bm=new zn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ym=new zn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),xm=new zn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Cm=new zn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),wm=new zn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Sm=new zn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),$m=new zn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),km=new zn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Em=new zn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Om=new zn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),jm={zoom:{inKeyframes:hm,outKeyframes:vm},"zoom-big":{inKeyframes:bm,outKeyframes:ym},"zoom-big-fast":{inKeyframes:bm,outKeyframes:ym},"zoom-left":{inKeyframes:wm,outKeyframes:Sm},"zoom-right":{inKeyframes:$m,outKeyframes:km},"zoom-up":{inKeyframes:xm,outKeyframes:Cm},"zoom-down":{inKeyframes:Em,outKeyframes:Om}},Mm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=jm[t];return[fm(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Im(e){return{position:e,inset:0}}const Nm=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Im("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Im("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:gm(e)}]},Pm=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${yt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},pr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${yt(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:yt(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},hr(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${yt(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Rm=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Tm=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return ir(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Am=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${yt(e.paddingMD)} ${yt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${yt(e.padding)} ${yt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${yt(e.paddingXS)} ${yt(e.padding)}`:0,footerBorderTop:e.wireframe?`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${yt(2*e.padding)} ${yt(2*e.padding)} ${yt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),zm=Vo("Modal",(e=>{const t=Tm(e);return[Pm(t),Rm(t),Nm(t),Mm(t,"zoom")]}),Am,{unitless:{titleLineHeight:!0}});let _m;Le()&&window.document.documentElement&&document.documentElement.addEventListener("click",(e=>{_m={x:e.pageX,y:e.pageY},setTimeout((()=>{_m=null}),100)}),!0);const Dm=e=>{var t;const{getPopupContainer:n,getPrefixCls:o,direction:i,modal:l}=r.useContext(Ae),c=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:u,rootClassName:d,open:f,wrapClassName:p,centered:m,getContainer:g,focusTriggerAfterClose:h=!0,style:v,visible:b,width:y=520,footer:x,classNames:C,styles:w,children:S,loading:$}=e,k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{onOk:n}=e;null==n||n(t)},onCancel:c})),[T,A,z]=Tp(Ip(e),Ip(l),{closable:!0,closeIcon:r.createElement(Ei,{className:`${E}-close-icon`}),closeIconRender:e=>cm(E,e)}),_=om(`.${E}-content`),[D,B]=Bl("Modal",k.zIndex);return M(r.createElement(Mp,{form:!0,space:!0},r.createElement(Tl.Provider,{value:B},r.createElement(af,Object.assign({width:y},k,{zIndex:D,getContainer:void 0===g?n:g,prefixCls:E,rootClassName:a()(I,d,N,j),footer:R,visible:null!=f?f:b,mousePosition:null!==(t=k.mousePosition)&&void 0!==t?t:_m,onClose:c,closable:T?{disabled:z,closeIcon:A}:T,closeIcon:A,focusTriggerAfterClose:h,transitionName:ts(O,"zoom",e.transitionName),maskTransitionName:ts(O,"fade",e.maskTransitionName),className:a()(I,u,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),v),classNames:Object.assign(Object.assign(Object.assign({},null==l?void 0:l.classNames),C),{wrapper:a()(P,null==C?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},null==l?void 0:l.styles),w),panelRef:_}),$?r.createElement(tm,{active:!0,title:!1,paragraph:{rows:4},className:`${E}-body-skeleton`}):S))))},Bm=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:s},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${yt(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Hm=Ko(["Modal","confirm"],(e=>{const t=Tm(e);return[Bm(t)]}),Am,{order:-1e3});function Lm(e){const{prefixCls:t,icon:n,okText:o,cancelText:i,confirmPrefixCls:l,type:c,okCancel:s,footer:u,locale:d}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ox),Se(Object.values(x))),w=r.createElement(r.Fragment,null,r.createElement(Md,null),r.createElement(Id,null)),S=void 0!==e.title&&null!==e.title,$=`${l}-body`;return r.createElement("div",{className:`${l}-body-wrapper`},r.createElement("div",{className:a()($,{[`${$}-has-title`]:S})},p,r.createElement("div",{className:`${l}-paragraph`},S&&r.createElement("span",{className:`${l}-title`},e.title),r.createElement("div",{className:`${l}-content`},e.content))),void 0===u||"function"==typeof u?r.createElement(jd,{value:C},r.createElement("div",{className:`${l}-btns`},"function"==typeof u?u(w,{OkBtn:Id,CancelBtn:Md}):w)):u,r.createElement(Hm,{prefixCls:t}))}const Fm=e=>{const{close:t,zIndex:n,afterClose:o,open:i,keyboard:l,centered:c,getContainer:s,maskStyle:u,direction:d,prefixCls:f,wrapClassName:p,rootPrefixCls:m,bodyStyle:g,closable:h=!1,closeIcon:v,modalRender:b,focusTriggerAfterClose:y,onConfirm:x,styles:C}=e,w=`${f}-confirm`,S=e.width||416,$=e.style||{},k=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,O=a()(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===d},e.className),[,j]=Fo(),M=r.useMemo((()=>void 0!==n?n:j.zIndexPopupBase+zl),[n,j]);return r.createElement(Dm,{prefixCls:f,className:O,wrapClassName:a()({[`${w}-centered`]:!!e.centered},p),onCancel:()=>{null==t||t({triggerCancel:!0}),null==x||x(!1)},open:i,title:"",footer:null,transitionName:ts(m||"","zoom",e.transitionName),maskTransitionName:ts(m||"","fade",e.maskTransitionName),mask:k,maskClosable:E,style:$,styles:Object.assign({body:g,mask:u},C),width:S,zIndex:M,afterClose:o,keyboard:l,centered:c,getContainer:s,closable:h,closeIcon:v,modalRender:b,focusTriggerAfterClose:y},r.createElement(Lm,Object.assign({},e,{confirmPrefixCls:w})))},Wm=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:i}=e;return r.createElement(Uc,{prefixCls:t,iconPrefixCls:n,direction:o,theme:i},r.createElement(Fm,Object.assign({},e)))},Vm=[];let qm="";function Km(){return qm}const Xm=e=>{var t,n;const{prefixCls:i,getContainer:a,direction:l}=e,c=kc(),s=(0,r.useContext)(Ae),u=Km()||s.getPrefixCls(),d=i||`${u}-modal`;let f=a;return!1===f&&(f=void 0),o().createElement(Wm,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:null!=l?l:s.direction,locale:null!==(n=null===(t=s.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:c,getContainer:f}))};function Gm(e){const t=Xc(),n=document.createDocumentFragment();let r,i=Object.assign(Object.assign({},e),{close:c,open:!0});function a(){for(var t,r=arguments.length,o=new Array(r),i=0;inull==e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(Se(o.slice(1)))));for(let e=0;e{const r=t.getPrefixCls(void 0,Km()),i=t.getIconPrefixCls(),a=t.getTheme(),l=o().createElement(Xm,Object.assign({},e));cc(o().createElement(Uc,{prefixCls:r,iconPrefixCls:i,theme:a},t.holderRender?t.holderRender(l):l),n)}))}function c(){for(var t=arguments.length,n=new Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,l(i)}return l(i),Vm.push(c),{destroy:c,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),l(i)}}}function Ym(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Um(e){return Object.assign(Object.assign({},e),{type:"info"})}function Qm(e){return Object.assign(Object.assign({},e),{type:"success"})}function Zm(e){return Object.assign(Object.assign({},e),{type:"error"})}function Jm(e){return Object.assign(Object.assign({},e),{type:"confirm"})}const eg=(e,t)=>{var n,{afterClose:o,config:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);onull==e?void 0:e.triggerCancel))&&(null===(e=s.onCancel)||void 0===e||(t=e).call.apply(t,[s,()=>{}].concat(Se(r.slice(1)))))};r.useImperativeHandle(t,(()=>({destroy:g,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const h=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[v]=rs("Modal",Cc.Modal);return r.createElement(Wm,Object.assign({prefixCls:p,rootPrefixCls:m},s,{close:g,open:l,afterClose:()=>{var e;o(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(h?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null==v?void 0:v.cancelText)},a))},tg=r.forwardRef(eg);let ng=0;const rg=r.memo(r.forwardRef(((e,t)=>{const[n,o]=function(){const[e,t]=r.useState([]);return[e,r.useCallback((e=>(t((t=>[].concat(Se(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return r.useImperativeHandle(t,(()=>({patchElement:o})),[]),r.createElement(r.Fragment,null,n)}))),og=function(){const e=r.useRef(null),[t,n]=r.useState([]);r.useEffect((()=>{t.length&&(Se(t).forEach((e=>{e()})),n([]))}),[t]);const o=r.useCallback((t=>function(o){var i;ng+=1;const a=r.createRef();let l;const c=new Promise((e=>{l=e}));let s,u=!1;const d=r.createElement(tg,{key:`modal-${ng}`,config:t(o),ref:a,afterClose:()=>{null==s||s()},isSilent:()=>u,onConfirm:e=>{l(e)}});s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),s&&Vm.push(s);const f={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(Se(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(Se(e),[t])))},then:e=>(u=!0,c.then(e))};return f}),[]);return[r.useMemo((()=>({info:o(Um),success:o(Qm),error:o(Zm),warning:o(Ym),confirm:o(Jm)})),[]),r.createElement(rg,{key:"modal-holder",ref:e})]},ig=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new zn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new zn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new zn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new zn("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},ag=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],lg={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},cg=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},sg=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},cg(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},sg(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},ag.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[lg[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},dg=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:s,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:h,fontSize:v,lineHeight:b,width:y,notificationIconSize:x,colorText:C}=e,w=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[w]:{padding:p,width:y,maxWidth:`calc(100vw - ${yt(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:v,color:C},[`${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:v},[`${w}-icon`]:{position:"absolute",fontSize:x,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:u}},[`${w}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},hr(e)),[`${w}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${yt(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},fg=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new zn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},pr(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},dg(e))}}]},pg=e=>({zIndexPopup:e.zIndexPopupBase+zl+50,width:384}),mg=e=>{const t=e.paddingMD,n=e.paddingLG;return ir(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${yt(e.paddingMD)} ${yt(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},gg=Vo("Notification",(e=>{const t=mg(e);return[fg(t),ig(t),ug(t)]}),pg),hg=Ko(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=mg(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},dg(n)),{width:n.width,maxWidth:`calc(100vw - ${yt(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),pg);function vg(e,t){return null===t||!1===t?null:t||r.createElement(Ei,{className:`${e}-close-icon`})}const bg={success:xi,info:Pi,error:Si,warning:Mi},yg=e=>{const{prefixCls:t,icon:n,type:o,message:i,description:l,btn:c,role:s="alert"}=e;let u=null;return n?u=r.createElement("span",{className:`${t}-icon`},n):o&&(u=r.createElement(bg[o]||null,{className:a()(`${t}-icon`,`${t}-icon-${o}`)})),r.createElement("div",{className:a()({[`${t}-with-icon`]:u}),role:s},u,r.createElement("div",{className:`${t}-message`},i),r.createElement("div",{className:`${t}-description`},l),c&&r.createElement("div",{className:`${t}-btn`},c))};const xg=e=>{let{children:t,prefixCls:n}=e;const r=rl(n),[i,l,c]=gg(n,r);return i(o().createElement(wl,{classNames:{list:a()(l,c,r)}},t))},Cg=(e,t)=>{let{prefixCls:n,key:r}=t;return o().createElement(xg,{prefixCls:n,key:r},e)},wg=o().forwardRef(((e,t)=>{const{top:n,bottom:i,prefixCls:l,getContainer:c,maxCount:s,rtl:u,onAllRemoved:d,stack:f,duration:p,pauseOnHover:m=!0,showProgress:g}=e,{getPrefixCls:h,getPopupContainer:v,notification:b,direction:y}=(0,r.useContext)(Ae),[,x]=Fo(),C=l||h("notification"),[w,S]=Il({prefixCls:C,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=i?i:24),className:()=>a()({[`${C}-rtl`]:null!=u?u:"rtl"===y}),motion:()=>function(e){return{motionName:`${e}-fade`}}(C),closable:!0,closeIcon:vg(C),duration:null!=p?p:4.5,getContainer:()=>(null==c?void 0:c())||(null==v?void 0:v())||document.body,maxCount:s,pauseOnHover:m,showProgress:g,onAllRemoved:d,renderNotifications:Cg,stack:!1!==f&&{threshold:"object"==typeof f?null==f?void 0:f.threshold:void 0,offset:8,gap:x.margin}});return o().useImperativeHandle(t,(()=>Object.assign(Object.assign({},w),{prefixCls:C,notification:b}))),S}));function Sg(e){const t=o().useRef(null),n=(hl(),o().useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:i,prefixCls:l,notification:c}=t.current,s=`${l}-notice`,{message:u,description:d,icon:f,type:p,btn:m,className:g,style:h,role:v="alert",closeIcon:b,closable:y}=n,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]));return[n,o().createElement(wg,Object.assign({key:"notification-holder"},e,{ref:t}))]}function $g(e){return Sg(e)}const kg=o().createContext({}),Eg=o().createContext({message:{},notification:{},modal:{}}),Og=Vo("App",(e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}}),(()=>({}))),jg=e=>{const{prefixCls:t,children:n,className:i,rootClassName:l,message:c,notification:s,style:u,component:d="div"}=e,{direction:f,getPrefixCls:p}=(0,r.useContext)(Ae),m=p("app",t),[g,h,v]=Og(m),b=a()(h,m,i,l,v,{[`${m}-rtl`]:"rtl"===f}),y=(0,r.useContext)(kg),x=o().useMemo((()=>({message:Object.assign(Object.assign({},y.message),c),notification:Object.assign(Object.assign({},y.notification),s)})),[c,s,y.message,y.notification]),[C,w]=Ql(x.message),[S,$]=$g(x.notification),[k,E]=og(),O=o().useMemo((()=>({message:C,notification:S,modal:k})),[C,S,k]);hl()(!(v&&!1===d),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const j=!1===d?o().Fragment:d,M={className:b,style:u};return g(o().createElement(Eg.Provider,{value:O},o().createElement(kg.Provider,{value:x},o().createElement(j,Object.assign({},!1===d?void 0:M),E,w,$,n))))};jg.useApp=()=>o().useContext(Eg);const Mg=jg;function Ig(e){return t=>r.createElement(Uc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}const Ng=(e,t,n,o)=>Ig((i=>{const{prefixCls:a,style:l}=i,c=r.useRef(null),[s,u]=r.useState(0),[d,f]=r.useState(0),[p,m]=Gn(!1,{value:i.open}),{getPrefixCls:g}=r.useContext(Ae),h=g(t||"select",a);r.useEffect((()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(h)}`:`.${h}-dropdown`,i=null===(r=c.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});o&&(v=o(v));const b={paddingBottom:s,position:"relative",minWidth:d};return r.createElement("div",{ref:c,style:b},r.createElement(e,Object.assign({},v)))})),Pg=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},Rg=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,i=e.children,l=e.onMouseDown,c=e.onClick,s="function"==typeof n?n(o):n;return r.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},void 0!==s?s:r.createElement("span",{className:a()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))};var Tg=r.createContext(null);function Ag(){return r.useContext(Tg)}function zg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);return r.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var _g=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Dg=void 0;function Bg(e,t){var n=e.prefixCls,o=e.invalidate,i=e.item,c=e.renderItem,s=e.responsive,u=e.responsiveDisabled,d=e.registerSize,f=e.itemKey,p=e.className,m=e.style,g=e.children,h=e.display,v=e.order,b=e.component,y=void 0===b?"div":b,x=ni(e,_g),C=s&&!h;function S(e){d(f,e)}r.useEffect((function(){return function(){S(null)}}),[]);var $,k=c&&i!==Dg?c(i):g;o||($={opacity:C?0:1,height:C?0:Dg,overflowY:C?"hidden":Dg,order:s?v:Dg,pointerEvents:C?"none":Dg,position:C?"absolute":Dg});var E={};C&&(E["aria-hidden"]=!0);var O=r.createElement(y,(0,l.A)({className:a()(!o&&n,p),style:w(w({},$),m)},E,x,{ref:t}),k);return s&&(O=r.createElement(be,{onResize:function(e){S(e.offsetWidth)},disabled:u},O)),O}var Hg=r.forwardRef(Bg);Hg.displayName="Item";const Lg=Hg;function Fg(e,t){var n=Be(r.useState(t),2),o=n[0],i=n[1];return[o,qn((function(t){e((function(){i(t)}))}))]}var Wg=o().createContext(null),Vg=["component"],qg=["className"],Kg=["className"],Xg=function(e,t){var n=r.useContext(Wg);if(!n){var o=e.component,i=void 0===o?"div":o,c=ni(e,Vg);return r.createElement(i,(0,l.A)({},c,{ref:t}))}var s=n.className,u=ni(n,qg),d=e.className,f=ni(e,Kg);return r.createElement(Wg.Provider,{value:null},r.createElement(Lg,(0,l.A)({ref:t,className:a()(s,d)},u,f)))},Gg=r.forwardRef(Xg);Gg.displayName="RawItem";const Yg=Gg;var Ug=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Qg="responsive",Zg="invalidate";function Jg(e){return"+ ".concat(e.length," ...")}function eh(e,t){var n,o=e.prefixCls,i=void 0===o?"rc-overflow":o,c=e.data,s=void 0===c?[]:c,u=e.renderItem,d=e.renderRawItem,f=e.itemKey,p=e.itemWidth,m=void 0===p?10:p,g=e.ssr,h=e.style,v=e.className,b=e.maxCount,y=e.renderRest,x=e.renderRawRest,C=e.suffix,$=e.component,k=void 0===$?"div":$,E=e.itemComponent,O=e.onVisibleChange,j=ni(e,Ug),M="full"===g,I=(n=r.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)Ie(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,S.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),N=Be(Fg(I,null),2),P=N[0],R=N[1],T=P||0,A=Be(Fg(I,new Map),2),z=A[0],_=A[1],D=Be(Fg(I,0),2),B=D[0],H=D[1],L=Be(Fg(I,0),2),F=L[0],W=L[1],V=Be(Fg(I,0),2),q=V[0],K=V[1],X=Be((0,r.useState)(null),2),G=X[0],Y=X[1],U=Be((0,r.useState)(null),2),Q=U[0],Z=U[1],J=r.useMemo((function(){return null===Q&&M?Number.MAX_SAFE_INTEGER:Q||0}),[Q,P]),ee=Be((0,r.useState)(!1),2),te=ee[0],ne=ee[1],re="".concat(i,"-item"),oe=Math.max(B,F),ie=b===Qg,ae=s.length&&ie,le=b===Zg,ce=ae||"number"==typeof b&&s.length>b,se=(0,r.useMemo)((function(){var e=s;return ae?e=null===P&&M?s:s.slice(0,Math.min(s.length,T/m)):"number"==typeof b&&(e=s.slice(0,b)),e}),[s,m,P,b,ae]),ue=(0,r.useMemo)((function(){return ae?s.slice(J+1):s.slice(se.length)}),[s,se,ae,J]),de=(0,r.useCallback)((function(e,t){var n;return"function"==typeof f?f(e):null!==(n=f&&(null==e?void 0:e[f]))&&void 0!==n?n:t}),[f]),fe=(0,r.useCallback)(u||function(e){return e},[u]);function pe(e,t,n){(Q!==e||void 0!==t&&t!==G)&&(Z(e),n||(ne(eT){pe(r-1,e-o-q+F);break}}C&&ge(0)+q>T&&Y(null)}}),[T,z,F,q,de,se]);var he=te&&!!ue.length,ve={};null!==G&&ae&&(ve={position:"absolute",left:G,top:0});var ye,xe={prefixCls:re,responsive:ae,component:E,invalidate:le},Ce=d?function(e,t){var n=de(e,t);return r.createElement(Wg.Provider,{key:n,value:w(w({},xe),{},{order:t,item:e,itemKey:n,registerSize:me,display:t<=J})},d(e,t))}:function(e,t){var n=de(e,t);return r.createElement(Lg,(0,l.A)({},xe,{order:t,key:n,item:e,renderItem:fe,itemKey:n,registerSize:me,display:t<=J}))},we={order:he?J:Number.MAX_SAFE_INTEGER,className:"".concat(re,"-rest"),registerSize:function(e,t){W(t),H(F)},display:he};if(x)x&&(ye=r.createElement(Wg.Provider,{value:w(w({},xe),we)},x(ue)));else{var Se=y||Jg;ye=r.createElement(Lg,(0,l.A)({},xe,we),"function"==typeof Se?Se(ue):Se)}var $e=r.createElement(k,(0,l.A)({className:a()(!le&&i,v),style:h,ref:t},j),se.map(Ce),ce?ye:null,C&&r.createElement(Lg,(0,l.A)({},xe,{responsive:ie,responsiveDisabled:!ae,order:J,className:"".concat(re,"-suffix"),registerSize:function(e,t){K(t)},display:!0,style:ve}),C));return ie&&($e=r.createElement(be,{onResize:function(e,t){R(t.clientWidth)},disabled:!ae},$e)),$e}var th=r.forwardRef(eh);th.displayName="Overflow",th.Item=Yg,th.RESPONSIVE=Qg,th.INVALIDATE=Zg;const nh=th;var rh=function(e,t){var n,o=e.prefixCls,i=e.id,l=e.inputElement,c=e.disabled,s=e.tabIndex,u=e.autoFocus,d=e.autoComplete,f=e.editable,p=e.activeDescendantId,m=e.value,g=e.maxLength,h=e.onKeyDown,v=e.onMouseDown,b=e.onChange,y=e.onPaste,x=e.onCompositionStart,C=e.onCompositionEnd,S=e.open,$=e.attrs,k=l||r.createElement("input",null),E=k,O=E.ref,j=E.props,M=j.onKeyDown,N=j.onChange,P=j.onMouseDown,R=j.onCompositionStart,T=j.onCompositionEnd,A=j.style;return k.props,r.cloneElement(k,w(w(w({type:"search"},j),{},{id:i,ref:I(t,O),disabled:c,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:a()("".concat(o,"-selection-search-input"),null===(n=k)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":S?p:void 0},$),{},{value:f?m:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:w(w({},A),{},{opacity:f?null:0}),onKeyDown:function(e){h(e),M&&M(e)},onMouseDown:function(e){v(e),P&&P(e)},onChange:function(e){b(e),N&&N(e)},onCompositionStart:function(e){x(e),R&&R(e)},onCompositionEnd:function(e){C(e),T&&T(e)},onPaste:y}))};const oh=r.forwardRef(rh);function ih(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var ah="undefined"!=typeof window&&window.document&&window.document.documentElement;function lh(e){return["string","number"].includes(b(e))}function ch(e){var t=void 0;return e&&(lh(e.title)?t=e.title.toString():lh(e.label)&&(t=e.label.toString())),t}function sh(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var uh=function(e){e.preventDefault(),e.stopPropagation()};const dh=function(e){var t,n,o=e.id,i=e.prefixCls,l=e.values,c=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,p=e.disabled,m=e.mode,g=e.showSearch,h=e.autoFocus,v=e.autoComplete,b=e.activeDescendantId,y=e.tabIndex,C=e.removeIcon,w=e.maxTagCount,S=e.maxTagTextLength,$=e.maxTagPlaceholder,k=void 0===$?function(e){return"+ ".concat(e.length," ...")}:$,E=e.tagRender,O=e.onToggleOpen,j=e.onRemove,M=e.onInputChange,I=e.onInputPaste,N=e.onInputKeyDown,P=e.onInputMouseDown,R=e.onInputCompositionStart,T=e.onInputCompositionEnd,A=r.useRef(null),z=Be((0,r.useState)(0),2),_=z[0],D=z[1],B=Be((0,r.useState)(!1),2),H=B[0],L=B[1],F="".concat(i,"-selection"),W=c||"multiple"===m&&!1===u||"tags"===m?s:"",V="tags"===m||"multiple"===m&&!1===u||g&&(c||H);t=function(){D(A.current.scrollWidth)},n=[W],ah?r.useLayoutEffect(t,n):r.useEffect(t,n);var q=function(e,t,n,o,i){return r.createElement("span",{title:ch(e),className:a()("".concat(F,"-item"),x({},"".concat(F,"-item-disabled"),n))},r.createElement("span",{className:"".concat(F,"-item-content")},t),o&&r.createElement(Rg,{className:"".concat(F,"-item-remove"),onMouseDown:uh,onClick:i,customizeIcon:C},"×"))},K=function(e,t,n,o,i,a){return r.createElement("span",{onMouseDown:function(e){uh(e),O(!c)}},E({label:t,value:e,disabled:n,closable:o,onClose:i,isMaxTag:!!a}))},X=r.createElement("div",{className:"".concat(F,"-search"),style:{width:_},onFocus:function(){L(!0)},onBlur:function(){L(!1)}},r.createElement(oh,{ref:d,open:c,prefixCls:i,id:o,inputElement:null,disabled:p,autoFocus:h,autoComplete:v,editable:V,activeDescendantId:b,value:W,onKeyDown:N,onMouseDown:P,onChange:M,onPaste:I,onCompositionStart:R,onCompositionEnd:T,tabIndex:y,attrs:ja(e,!0)}),r.createElement("span",{ref:A,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},W," ")),G=r.createElement(nh,{prefixCls:"".concat(F,"-overflow"),data:l,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!p&&!t,i=n;if("number"==typeof S&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>S&&(i="".concat(a.slice(0,S),"..."))}var l=function(t){t&&t.stopPropagation(),j(e)};return"function"==typeof E?K(r,i,t,o,l):q(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof k?k(e):k;return"function"==typeof E?K(void 0,t,!1,!1,void 0,!0):q({title:t},t,!1)},suffix:X,itemKey:sh,maxCount:w});return r.createElement(r.Fragment,null,G,!l.length&&!W&&r.createElement("span",{className:"".concat(F,"-placeholder")},f))},fh=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,g=e.showSearch,h=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,C=e.onInputChange,w=e.onInputPaste,S=e.onInputCompositionStart,$=e.onInputCompositionEnd,k=e.title,E=Be(r.useState(!1),2),O=E[0],j=E[1],M="combobox"===u,I=M||g,N=f[0],P=h||"";M&&v&&!O&&(P=v),r.useEffect((function(){M&&j(!1)}),[M,v]);var R=!("combobox"!==u&&!d&&!g||!P),T=void 0===k?ch(N):k,A=r.useMemo((function(){return N?null:r.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:R?{visibility:"hidden"}:void 0},p)}),[N,R,p,n]);return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(n,"-selection-search")},r.createElement(oh,{ref:i,prefixCls:n,id:o,open:d,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:I,activeDescendantId:s,value:P,onKeyDown:y,onMouseDown:x,onChange:function(e){j(!0),C(e)},onPaste:w,onCompositionStart:S,onCompositionEnd:$,tabIndex:m,attrs:ja(e,!0),maxLength:M?b:void 0})),!M&&N?r.createElement("span",{className:"".concat(n,"-selection-item"),title:T,style:R?{visibility:"hidden"}:void 0},N.label):null,A)};var ph=function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(!1),i=e.prefixCls,a=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.disabled,f=e.autoClearSearchValue,p=e.onSearch,m=e.onSearchSubmit,g=e.onToggleOpen,h=e.onInputKeyDown,v=e.domRef;r.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var b=Be(zg(0),2),y=b[0],x=b[1],C=(0,r.useRef)(null),w=function(e){!1!==p(e,!0,o.current)&&g(!0)},S={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==bl.UP&&n!==bl.DOWN||e.preventDefault(),h&&h(e),n!==bl.ENTER||"tags"!==c||o.current||a||null==m||m(e.target.value),t=n,[bl.ESC,bl.SHIFT,bl.BACKSPACE,bl.TAB,bl.WIN_KEY,bl.ALT,bl.META,bl.WIN_KEY_RIGHT,bl.CTRL,bl.SEMICOLON,bl.EQUALS,bl.CAPS_LOCK,bl.CONTEXT_MENU,bl.F1,bl.F2,bl.F3,bl.F4,bl.F5,bl.F6,bl.F7,bl.F8,bl.F9,bl.F10,bl.F11,bl.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(u&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");C.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==c&&w(e.target.value)}},$="multiple"===c||"tags"===c?r.createElement(dh,(0,l.A)({},e,S)):r.createElement(fh,(0,l.A)({},e,S));return r.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=y();e.target===n.current||t||"combobox"===c&&d||e.preventDefault(),("combobox"===c||s&&t)&&a||(a&&!1!==f&&p("",!0,!1),g())}},$)};const mh=r.forwardRef(ph);function gh(e){var t=e.prefixCls,n=e.align,o=e.arrow,i=e.arrowPos,l=o||{},c=l.className,s=l.content,u=i.x,d=void 0===u?0:u,f=i.y,p=void 0===f?0:f,m=r.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],v=n.points[1],b=h[0],y=h[1],x=v[0],C=v[1];b!==x&&["t","b"].includes(b)?"t"===b?g.top=0:g.bottom=0:g.top=p,y!==C&&["l","r"].includes(y)?"l"===y?g.left=0:g.right=0:g.left=d}return r.createElement("div",{ref:m,className:a()("".concat(t,"-arrow"),c),style:g},s)}function hh(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,c=e.motion;return i?r.createElement(ka,(0,l.A)({},c,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:a()("".concat(t,"-mask"),n)})})):null}var vh=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));const bh=vh;var yh=r.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,c=e.style,s=e.target,u=e.onVisibleChanged,d=e.open,f=e.keepDom,p=e.fresh,m=e.onClick,g=e.mask,h=e.arrow,v=e.arrowPos,b=e.align,y=e.motion,x=e.maskMotion,C=e.forceRender,S=e.getPopupContainer,$=e.autoDestroy,k=e.portal,E=e.zIndex,O=e.onMouseEnter,j=e.onMouseLeave,M=e.onPointerEnter,N=e.ready,P=e.offsetX,R=e.offsetY,T=e.offsetR,A=e.offsetB,z=e.onAlign,_=e.onPrepare,D=e.stretch,B=e.targetWidth,H=e.targetHeight,L="function"==typeof n?n():n,F=d||f,W=(null==S?void 0:S.length)>0,V=Be(r.useState(!S||!W),2),q=V[0],K=V[1];if(Ot((function(){!q&&W&&s&&K(!0)}),[q,W,s]),!q)return null;var X="auto",G={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(N||!d){var Y,U=b.points,Q=b.dynamicInset||(null===(Y=b._experimental)||void 0===Y?void 0:Y.dynamicInset),Z=Q&&"r"===U[0][1],J=Q&&"b"===U[0][0];Z?(G.right=T,G.left=X):(G.left=P,G.right=X),J?(G.bottom=A,G.top=X):(G.top=R,G.bottom=X)}var ee={};return D&&(D.includes("height")&&H?ee.height=H:D.includes("minHeight")&&H&&(ee.minHeight=H),D.includes("width")&&B?ee.width=B:D.includes("minWidth")&&B&&(ee.minWidth=B)),d||(ee.pointerEvents="none"),r.createElement(k,{open:C||F,getContainer:S&&function(){return S(s)},autoDestroy:$},r.createElement(hh,{prefixCls:i,open:d,zIndex:E,mask:g,motion:x}),r.createElement(be,{onResize:z,disabled:!d},(function(e){return r.createElement(ka,(0,l.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:_,onEnterPrepare:_,visible:d,onVisibleChanged:function(e){var t;null==y||null===(t=y.onVisibleChanged)||void 0===t||t.call(y,e),u(e)}}),(function(n,l){var s=n.className,u=n.style,f=a()(i,s,o);return r.createElement("div",{ref:I(e,t,l),className:f,style:w(w(w(w({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},G),ee),u),{},{boxSizing:"border-box",zIndex:E},c),onMouseEnter:O,onMouseLeave:j,onPointerEnter:M,onClick:m},h&&r.createElement(gh,{prefixCls:i,arrow:h,arrowPos:v,align:b}),r.createElement(bh,{cache:!d&&!p},L))}))})))}));const xh=yh;var Ch=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=P(n),a=r.useCallback((function(e){M(t,o?o(e):e)}),[o]),l=N(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));const wh=Ch,Sh=r.createContext(null);function $h(e){return e?Array.isArray(e)?e:[e]:[]}function kh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Eh(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Oh(e){return e.ownerDocument.defaultView}function jh(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Oh(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Mh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Ih(e){return Mh(parseFloat(e),0)}function Nh(e,t){var n=w({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Oh(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=Ih(i),g=Ih(a),h=Ih(l),v=Ih(c),b=Mh(Math.round(s.width/f*1e3)/1e3),y=Mh(Math.round(s.height/u*1e3)/1e3),x=(f-p-h-v)*b,C=(u-d-m-g)*y,w=m*y,S=g*y,$=h*b,k=v*b,E=0,O=0;if("clip"===r){var j=Ih(o);E=j*b,O=j*y}var M=s.x+$-E,I=s.y+w-O,N=M+s.width+2*E-$-k-x,P=I+s.height+2*O-w-S-C;n.left=Math.max(n.left,M),n.top=Math.max(n.top,I),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,P)}})),n}function Ph(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Rh(e,t){var n=Be(t||[],2),r=n[0],o=n[1];return[Ph(e.width,r),Ph(e.height,o)]}function Th(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Ah(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function zh(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var _h=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Dh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fd,t=r.forwardRef((function(t,n){var o=t.prefixCls,i=void 0===o?"rc-trigger-popup":o,l=t.children,c=t.action,s=void 0===c?"hover":c,u=t.showAction,d=t.hideAction,f=t.popupVisible,p=t.defaultPopupVisible,m=t.onPopupVisibleChange,g=t.afterPopupVisibleChange,h=t.mouseEnterDelay,v=t.mouseLeaveDelay,b=void 0===v?.1:v,y=t.focusDelay,x=t.blurDelay,C=t.mask,S=t.maskClosable,$=void 0===S||S,E=t.getPopupContainer,O=t.forceRender,j=t.autoDestroy,M=t.destroyPopupOnHide,I=t.popup,N=t.popupClassName,P=t.popupStyle,R=t.popupPlacement,T=t.builtinPlacements,A=void 0===T?{}:T,z=t.popupAlign,_=t.zIndex,D=t.stretch,B=t.getPopupClassNameFromAlign,H=t.fresh,L=t.alignPoint,F=t.onPopupClick,W=t.onPopupAlign,V=t.arrow,q=t.popupMotion,K=t.maskMotion,X=t.popupTransitionName,G=t.popupAnimation,Y=t.maskTransitionName,U=t.maskAnimation,Q=t.className,Z=t.getTriggerDOMNode,J=ni(t,_h),ee=j||M||!1,te=Be(r.useState(!1),2),ne=te[0],re=te[1];Ot((function(){re(Pg())}),[]);var oe=r.useRef({}),ie=r.useContext(Sh),ae=r.useMemo((function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null==ie||ie.registerSubPopup(e,t)}}}),[ie]),le=Kd(),ce=Be(r.useState(null),2),se=ce[0],ue=ce[1],de=r.useRef(null),fe=qn((function(e){de.current=e,k(e)&&se!==e&&ue(e),null==ie||ie.registerSubPopup(le,e)})),pe=Be(r.useState(null),2),me=pe[0],ge=pe[1],he=r.useRef(null),ve=qn((function(e){k(e)&&me!==e&&(ge(e),he.current=e)})),ye=r.Children.only(l),xe=(null==ye?void 0:ye.props)||{},Ce={},we=qn((function(e){var t,n,r=me;return(null==r?void 0:r.contains(e))||(null===(t=ii(r))||void 0===t?void 0:t.host)===e||e===r||(null==se?void 0:se.contains(e))||(null===(n=ii(se))||void 0===n?void 0:n.host)===e||e===se||Object.values(oe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),$e=Eh(i,q,G,X),ke=Eh(i,K,U,Y),Ee=Be(r.useState(p||!1),2),Oe=Ee[0],je=Ee[1],Me=null!=f?f:Oe,Ie=qn((function(e){void 0===f&&je(e)}));Ot((function(){je(f||!1)}),[f]);var Ne=r.useRef(Me);Ne.current=Me;var Pe=r.useRef([]);Pe.current=[];var Re=qn((function(e){var t;Ie(e),(null!==(t=Pe.current[Pe.current.length-1])&&void 0!==t?t:Me)!==e&&(Pe.current.push(e),null==m||m(e))})),Te=r.useRef(),Ae=function(){clearTimeout(Te.current)},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ae(),0===t?Re(e):Te.current=setTimeout((function(){Re(e)}),1e3*t)};r.useEffect((function(){return Ae}),[]);var _e=Be(r.useState(!1),2),De=_e[0],He=_e[1];Ot((function(e){e&&!Me||He(!0)}),[Me]);var Le=Be(r.useState(null),2),Fe=Le[0],We=Le[1],Ve=Be(r.useState(null),2),qe=Ve[0],Ke=Ve[1],Xe=function(e){Ke([e.clientX,e.clientY])},Ge=function(e,t,n,o,i,a,l){var c=Be(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],d=r.useRef(0),f=r.useMemo((function(){return t?jh(t):[]}),[t]),p=r.useRef({});e||(p.current={});var m=qn((function(){if(t&&n&&e){var r,c,s,d,m,g=t,h=g.ownerDocument,v=Oh(g).getComputedStyle(g),b=v.width,y=v.height,x=v.position,C=g.style.left,S=g.style.top,$=g.style.right,E=g.style.bottom,O=g.style.overflow,j=w(w({},i[o]),a),M=h.createElement("div");if(null===(r=g.parentElement)||void 0===r||r.appendChild(M),M.style.left="".concat(g.offsetLeft,"px"),M.style.top="".concat(g.offsetTop,"px"),M.style.position=x,M.style.height="".concat(g.offsetHeight,"px"),M.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))m={x:n[0],y:n[1],width:0,height:0};else{var I,N,P=n.getBoundingClientRect();P.x=null!==(I=P.x)&&void 0!==I?I:P.left,P.y=null!==(N=P.y)&&void 0!==N?N:P.top,m={x:P.x,y:P.y,width:P.width,height:P.height}}var R=g.getBoundingClientRect();R.x=null!==(c=R.x)&&void 0!==c?c:R.left,R.y=null!==(s=R.y)&&void 0!==s?s:R.top;var T=h.documentElement,A=T.clientWidth,z=T.clientHeight,_=T.scrollWidth,D=T.scrollHeight,B=T.scrollTop,H=T.scrollLeft,L=R.height,F=R.width,W=m.height,V=m.width,q={left:0,top:0,right:A,bottom:z},K={left:-H,top:-B,right:_-H,bottom:D-B},X=j.htmlRegion,G="visible",Y="visibleFirst";"scroll"!==X&&X!==Y&&(X=G);var U=X===Y,Q=Nh(K,f),Z=Nh(q,f),J=X===G?Z:Q,ee=U?Z:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=C,g.style.top=S,g.style.right=$,g.style.bottom=E,g.style.overflow=O,null===(d=g.parentElement)||void 0===d||d.removeChild(M);var ne=Mh(Math.round(F/parseFloat(b)*1e3)/1e3),re=Mh(Math.round(L/parseFloat(y)*1e3)/1e3);if(0===ne||0===re||k(n)&&!os(n))return;var oe=j.offset,ie=j.targetOffset,ae=Be(Rh(R,oe),2),le=ae[0],ce=ae[1],se=Be(Rh(m,ie),2),ue=se[0],de=se[1];m.x-=ue,m.y-=de;var fe=Be(j.points||[],2),pe=fe[0],me=Th(fe[1]),ge=Th(pe),he=Ah(m,me),ve=Ah(R,ge),be=w({},j),ye=he.x-ve.x+le,xe=he.y-ve.y+ce;function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=R.x+e,o=R.y+t,i=r+F,a=o+L,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var Ce,we,Se,$e,ke=mt(ye,xe),Ee=mt(ye,xe,Z),Oe=Ah(m,["t","l"]),je=Ah(R,["t","l"]),Me=Ah(m,["b","r"]),Ie=Ah(R,["b","r"]),Ne=j.overflow||{},Pe=Ne.adjustX,Re=Ne.adjustY,Te=Ne.shiftX,Ae=Ne.shiftY,ze=function(e){return"boolean"==typeof e?e:e>=0};function gt(){Ce=R.y+xe,we=Ce+L,Se=R.x+ye,$e=Se+F}gt();var _e=ze(Re),De=ge[0]===me[0];if(_e&&"t"===ge[0]&&(we>ee.bottom||p.current.bt)){var He=xe;De?He-=L-W:He=Oe.y-Ie.y-ce;var Le=mt(ye,He),Fe=mt(ye,He,Z);Le>ke||Le===ke&&(!U||Fe>=Ee)?(p.current.bt=!0,xe=He,ce=-ce,be.points=[zh(ge,0),zh(me,0)]):p.current.bt=!1}if(_e&&"b"===ge[0]&&(Ceke||Ve===ke&&(!U||qe>=Ee)?(p.current.tb=!0,xe=We,ce=-ce,be.points=[zh(ge,0),zh(me,0)]):p.current.tb=!1}var Ke=ze(Pe),Xe=ge[1]===me[1];if(Ke&&"l"===ge[1]&&($e>ee.right||p.current.rl)){var Ge=ye;Xe?Ge-=F-V:Ge=Oe.x-Ie.x-le;var Ye=mt(Ge,xe),Ue=mt(Ge,xe,Z);Ye>ke||Ye===ke&&(!U||Ue>=Ee)?(p.current.rl=!0,ye=Ge,le=-le,be.points=[zh(ge,1),zh(me,1)]):p.current.rl=!1}if(Ke&&"r"===ge[1]&&(Seke||Ze===ke&&(!U||Je>=Ee)?(p.current.lr=!0,ye=Qe,le=-le,be.points=[zh(ge,1),zh(me,1)]):p.current.lr=!1}gt();var et=!0===Te?0:Te;"number"==typeof et&&(SeZ.right&&(ye-=$e-Z.right-le,m.x>Z.right-et&&(ye+=m.x-Z.right+et)));var tt=!0===Ae?0:Ae;"number"==typeof tt&&(CeZ.bottom&&(xe-=we-Z.bottom-ce,m.y>Z.bottom-tt&&(xe+=m.y-Z.bottom+tt)));var nt=R.x+ye,rt=nt+F,ot=R.y+xe,it=ot+L,at=m.x,lt=at+V,ct=m.y,st=ct+W,ut=(Math.max(nt,at)+Math.min(rt,lt))/2-nt,dt=(Math.max(ot,ct)+Math.min(it,st))/2-ot;null==l||l(t,be);var ft=te.right-R.x-(ye+R.width),pt=te.bottom-R.y-(xe+R.height);1===ne&&(ye=Math.round(ye),ft=Math.round(ft)),1===re&&(xe=Math.round(xe),pt=Math.round(pt)),u({ready:!0,offsetX:ye/ne,offsetY:xe/re,offsetR:ft/ne,offsetB:pt/re,arrowX:ut/ne,arrowY:dt/re,scaleX:ne,scaleY:re,align:be})}})),g=function(){u((function(e){return w(w({},e),{},{ready:!1})}))};return Ot(g,[o]),Ot((function(){e||g()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){d.current+=1;var e=d.current;Promise.resolve().then((function(){d.current===e&&m()}))}]}(Me,se,L&&null!==qe?qe:me,R,A,z,W),Ye=Be(Ge,11),Ue=Ye[0],Qe=Ye[1],Ze=Ye[2],Je=Ye[3],et=Ye[4],tt=Ye[5],nt=Ye[6],rt=Ye[7],ot=Ye[8],it=Ye[9],at=Ye[10],lt=function(e,t,n,o){return r.useMemo((function(){var r=$h(null!=n?n:t),i=$h(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(ne,s,u,d),ct=Be(lt,2),st=ct[0],ut=ct[1],dt=st.has("click"),ft=ut.has("click")||ut.has("contextMenu"),pt=qn((function(){De||at()}));!function(e,t,n,r){Ot((function(){if(e&&t&&n){var o=n,i=jh(t),a=jh(o),l=Oh(o),c=new Set([l].concat(Se(i),Se(a)));function s(){r(),Ne.current&&L&&ft&&ze(!1)}return c.forEach((function(e){e.addEventListener("scroll",s,{passive:!0})})),l.addEventListener("resize",s,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",s),l.removeEventListener("resize",s)}))}}}),[e,t,n])}(Me,me,se,pt),Ot((function(){pt()}),[qe,R]),Ot((function(){!Me||null!=A&&A[R]||pt()}),[JSON.stringify(z)]);var mt=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;o50?", ...":null):null}var Gh=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Yh=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Uh=function(e){return"tags"===e||"multiple"===e},Qh=r.forwardRef((function(e,t){var n,i=e.id,c=e.prefixCls,s=e.className,u=e.showSearch,d=e.tagRender,f=e.direction,p=e.omitDomProps,m=e.displayValues,g=e.onDisplayValuesChange,h=e.emptyOptions,v=e.notFoundContent,y=void 0===v?"Not Found":v,C=e.onClear,S=e.mode,$=e.disabled,k=e.loading,E=e.getInputElement,O=e.getRawInputElement,j=e.open,M=e.defaultOpen,I=e.onDropdownVisibleChange,P=e.activeValue,R=e.onActiveValueChange,T=e.activeDescendantId,A=e.searchValue,z=e.autoClearSearchValue,_=e.onSearch,D=e.onSearchSplit,B=e.tokenSeparators,H=e.allowClear,L=e.suffixIcon,F=e.clearIcon,W=e.OptionList,V=e.animation,q=e.transitionName,K=e.dropdownStyle,X=e.dropdownClassName,G=e.dropdownMatchSelectWidth,Y=e.dropdownRender,U=e.dropdownAlign,Q=e.placement,Z=e.builtinPlacements,J=e.getPopupContainer,ee=e.showAction,te=void 0===ee?[]:ee,ne=e.onFocus,re=e.onBlur,oe=e.onKeyUp,ie=e.onKeyDown,ae=e.onMouseDown,le=ni(e,Gh),ce=Uh(S),se=(void 0!==u?u:ce)||"combobox"===S,ue=w({},le);Yh.forEach((function(e){delete ue[e]})),null==p||p.forEach((function(e){delete ue[e]}));var de=Be(r.useState(!1),2),fe=de[0],pe=de[1];r.useEffect((function(){pe(Pg())}),[]);var me=r.useRef(null),ge=r.useRef(null),he=r.useRef(null),ve=r.useRef(null),be=r.useRef(null),ye=r.useRef(!1),xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Be(r.useState(!1),2),n=t[0],o=t[1],i=r.useRef(null),a=function(){window.clearTimeout(i.current)};return r.useEffect((function(){return a}),[]),[n,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),Ce=Be(xe,3),we=Ce[0],$e=Ce[1],ke=Ce[2];r.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=ve.current)||void 0===e?void 0:e.focus,blur:null===(t=ve.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=be.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:me.current||ge.current}}));var Ee=r.useMemo((function(){var e;if("combobox"!==S)return A;var t=null===(e=m[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[A,S,m]),Oe="combobox"===S&&"function"==typeof E&&E()||null,je="function"==typeof O&&O(),Me=N(ge,null==je||null===(n=je.props)||void 0===n?void 0:n.ref),Ie=Be(r.useState(!1),2),Ne=Ie[0],Pe=Ie[1];Ot((function(){Pe(!0)}),[]);var Re=Be(Gn(!1,{defaultValue:M,value:j}),2),Te=Re[0],Ae=Re[1],ze=!!Ne&&Te,_e=!y&&h;($||_e&&ze&&"combobox"===S)&&(ze=!1);var De=!_e&&ze,He=r.useCallback((function(e){var t=void 0!==e?e:!ze;$||(Ae(t),ze!==t&&(null==I||I(t)))}),[$,ze,Ae,I]),Le=r.useMemo((function(){return(B||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[B]),Fe=r.useContext(Kh)||{},We=Fe.maxCount,Ve=Fe.rawValues,qe=function(e,t,n){if(!(ce&&Wh(We)&&(null==Ve?void 0:Ve.size)>=We)){var r=!0,o=e;null==R||R(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=Yn(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(Se(t),Se(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,B,Wh(We)?We-Ve.size:void 0),a=n?null:i;return"combobox"!==S&&a&&(o="",null==D||D(a),He(!1),r=!1),_&&Ee!==o&&_(o,{source:t?"typing":"effect"}),r}};r.useEffect((function(){ze||ce||"combobox"===S||qe("",!1,!1)}),[ze]),r.useEffect((function(){Te&&$&&Ae(!1),$&&!ye.current&&$e(!1)}),[$]);var Ke=Be(zg(),2),Xe=Ke[0],Ge=Ke[1],Ye=r.useRef(!1),Ue=r.useRef(!1),Qe=[];r.useEffect((function(){return function(){Qe.forEach((function(e){return clearTimeout(e)})),Qe.splice(0,Qe.length)}}),[]);var Ze,Je=Be(r.useState({}),2)[1];je&&(Ze=function(e){He(e)}),function(e,t,n,o){var i=r.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:o},r.useEffect((function(){function e(e){var t,n;if(null===(t=i.current)||void 0===t||!t.customizedTrigger){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),i.current.open&&[me.current,null===(n=he.current)||void 0===n?void 0:n.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,De,He,!!je);var et,tt=r.useMemo((function(){return w(w({},e),{},{notFoundContent:y,open:ze,triggerOpen:De,id:i,showSearch:se,multiple:ce,toggleOpen:He})}),[e,y,De,ze,i,se,ce,He]),nt=!!L||k;nt&&(et=r.createElement(Rg,{className:a()("".concat(c,"-arrow"),x({},"".concat(c,"-arrow-loading"),k)),customizeIcon:L,customizeIconProps:{loading:k,searchValue:Ee,open:ze,focused:we,showSearch:se}}));var rt,ot=function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=o().useMemo((function(){return"object"===b(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:o().useMemo((function(){return!(a||!r||!n.length&&!l||"combobox"===c&&""===l)}),[r,a,n.length,l,c]),clearIcon:o().createElement(Rg,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(c,(function(){var e;null==C||C(),null===(e=ve.current)||void 0===e||e.focus(),g([],{type:"clear",values:m}),qe("",!1,!1)}),m,H,F,$,Ee,S),it=ot.allowClear,at=ot.clearIcon,lt=r.createElement(W,{ref:be}),ct=a()(c,s,x(x(x(x(x(x(x(x(x(x({},"".concat(c,"-focused"),we),"".concat(c,"-multiple"),ce),"".concat(c,"-single"),!ce),"".concat(c,"-allow-clear"),H),"".concat(c,"-show-arrow"),nt),"".concat(c,"-disabled"),$),"".concat(c,"-loading"),k),"".concat(c,"-open"),ze),"".concat(c,"-customize-input"),Oe),"".concat(c,"-show-search"),se)),st=r.createElement(Lh,{ref:he,disabled:$,prefixCls:c,visible:De,popupElement:lt,animation:V,transitionName:q,dropdownStyle:K,dropdownClassName:X,direction:f,dropdownMatchSelectWidth:G,dropdownRender:Y,dropdownAlign:U,placement:Q,builtinPlacements:Z,getPopupContainer:J,empty:h,getTriggerDOMNode:function(e){return ge.current||e},onPopupVisibleChange:Ze,onPopupMouseEnter:function(){Je({})}},je?r.cloneElement(je,{ref:Me}):r.createElement(mh,(0,l.A)({},e,{domRef:ge,prefixCls:c,inputElement:Oe,ref:ve,id:i,showSearch:se,autoClearSearchValue:z,mode:S,activeDescendantId:T,tagRender:d,values:m,open:ze,onToggleOpen:He,activeValue:P,searchValue:Ee,onSearch:qe,onSearchSubmit:function(e){e&&e.trim()&&_(e,{source:"submit"})},onRemove:function(e){var t=m.filter((function(t){return t!==e}));g(t,{type:"remove",values:[e]})},tokenWithEnter:Le})));return rt=je?st:r.createElement("div",(0,l.A)({className:ct},ue,{ref:me,onMouseDown:function(e){var t,n=e.target,r=null===(t=he.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Qe.indexOf(o);-1!==t&&Qe.splice(t,1),ke(),fe||r.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()}));Qe.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&g(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d1?t-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&r}};const cv=function(){function e(){re(this,e),x(this,"maps",void 0),x(this,"id",0),this.maps=Object.create(null)}return ie(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var sv=14/15;function uv(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var dv=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,i=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,s=e.onStopMove,u=e.onScroll,d=e.horizontal,f=e.spinSize,p=e.containerSize,m=e.style,g=e.thumbStyle,h=Be(r.useState(!1),2),v=h[0],b=h[1],y=Be(r.useState(null),2),C=y[0],S=y[1],$=Be(r.useState(null),2),k=$[0],E=$[1],O=!o,j=r.useRef(),M=r.useRef(),I=Be(r.useState(!1),2),N=I[0],P=I[1],R=r.useRef(),T=function(){clearTimeout(R.current),P(!0),R.current=setTimeout((function(){P(!1)}),3e3)},A=l-p||0,z=p-f||0,_=r.useMemo((function(){return 0===i||0===A?0:i/A*z}),[i,A,z]),D=r.useRef({top:_,dragging:v,pageY:C,startTop:k});D.current={top:_,dragging:v,pageY:C,startTop:k};var B=function(e){b(!0),S(uv(e,d)),E(D.current.top),c(),e.stopPropagation(),e.preventDefault()};r.useEffect((function(){var e=function(e){e.preventDefault()},t=j.current,n=M.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",B,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",B)}}),[]);var H=r.useRef();H.current=A;var L=r.useRef();L.current=z,r.useEffect((function(){if(v){var e,t=function(t){var n=D.current,r=n.dragging,o=n.pageY,i=n.startTop;Ie.cancel(e);var a=j.current.getBoundingClientRect(),l=p/(d?a.width:a.height);if(r){var c=(uv(t,d)-o)*l,s=i;!O&&d?s-=c:s+=c;var f=H.current,m=L.current,g=m?s/m:0,h=Math.ceil(g*f);h=Math.max(h,0),h=Math.min(h,f),e=Ie((function(){u(h,d)}))}},n=function(){b(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Ie.cancel(e)}}}),[v]),r.useEffect((function(){return T(),function(){clearTimeout(R.current)}}),[i]),r.useImperativeHandle(t,(function(){return{delayHidden:T}}));var F="".concat(n,"-scrollbar"),W={position:"absolute",visibility:N?null:"hidden"},V={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(W.height=8,W.left=0,W.right=0,W.bottom=0,V.height="100%",V.width=f,O?V.left=_:V.right=_):(W.width=8,W.top=0,W.bottom=0,O?W.right=0:W.left=0,V.width="100%",V.height=f,V.top=_),r.createElement("div",{ref:j,className:a()(F,x(x(x({},"".concat(F,"-horizontal"),d),"".concat(F,"-vertical"),!d),"".concat(F,"-visible"),N)),style:w(w({},W),m),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:T},r.createElement("div",{ref:M,className:a()("".concat(F,"-thumb"),x({},"".concat(F,"-thumb-moving"),v)),style:w(w({},V),g),onMouseDown:B}))}));const fv=dv;function pv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var mv=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],gv=[],hv={overflowY:"auto",overflowAnchor:"none"};function vv(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,i=e.className,c=e.height,s=e.itemHeight,u=e.fullHeight,d=void 0===u||u,f=e.style,p=e.data,m=e.children,g=e.itemKey,h=e.virtual,v=e.direction,y=e.scrollWidth,C=e.component,$=void 0===C?"div":C,k=e.onScroll,E=e.onVirtualScroll,j=e.onVisibleChange,M=e.innerProps,I=e.extraRender,N=e.styles,P=ni(e,mv),R=r.useCallback((function(e){return"function"==typeof g?g(e):null==e?void 0:e[g]}),[g]),T=function(e){var t=Be(r.useState(0),2),n=t[0],o=t[1],i=(0,r.useRef)(new Map),a=(0,r.useRef)(new cv),l=(0,r.useRef)();function c(){Ie.cancel(l.current)}function s(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){i.current.forEach((function(e,t){if(e&&e.offsetParent){var n=O(e),r=n.offsetHeight;a.current.get(t)!==r&&a.current.set(t,n.offsetHeight)}})),o((function(e){return e+1}))};e?t():l.current=Ie(t)}return(0,r.useEffect)((function(){return c}),[]),[function(t,n){var r=e(t);i.current.get(r);n?(i.current.set(r,n),s()):i.current.delete(r)},s,a.current,n]}(R),A=Be(T,4),z=A[0],_=A[1],D=A[2],B=A[3],H=!(!1===h||!c||!s),L=r.useMemo((function(){return Object.values(D.maps).reduce((function(e,t){return e+t}),0)}),[D.id,D.maps]),F=H&&p&&(Math.max(s*p.length,L)>c||!!y),W="rtl"===v,V=a()(o,x({},"".concat(o,"-rtl"),W),i),q=p||gv,K=(0,r.useRef)(),X=(0,r.useRef)(),G=(0,r.useRef)(),Y=Be((0,r.useState)(0),2),U=Y[0],Q=Y[1],Z=Be((0,r.useState)(0),2),J=Z[0],ee=Z[1],te=Be((0,r.useState)(!1),2),ne=te[0],re=te[1],oe=function(){re(!0)},ie=function(){re(!1)},ae={getKey:R};function le(e){Q((function(t){var n=function(e){var t=e;return Number.isNaN(ke.current)||(t=Math.min(t,ke.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return K.current.scrollTop=n,n}))}var ce=(0,r.useRef)({start:0,end:q.length}),se=(0,r.useRef)(),ue=Be(function(e,t,n){var o=Be(r.useState(e),2),i=o[0],a=o[1],l=Be(r.useState(null),2),c=l[0],s=l[1];return r.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i=U&&void 0===t&&(t=a,n=o),f>U+c&&void 0===r&&(r=a),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(c/s)),void 0===r&&(r=q.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,q.length-1),offset:n}}),[F,H,U,q,B,c]),fe=de.scrollHeight,pe=de.start,me=de.end,ge=de.offset;ce.current.start=pe,ce.current.end=me;var he=Be(r.useState({width:0,height:c}),2),ve=he[0],ye=he[1],xe=(0,r.useRef)(),Ce=(0,r.useRef)(),we=r.useMemo((function(){return pv(ve.width,y)}),[ve.width,y]),Se=r.useMemo((function(){return pv(ve.height,fe)}),[ve.height,fe]),$e=fe-c,ke=(0,r.useRef)($e);ke.current=$e;var Ee=U<=0,Oe=U>=$e,je=J<=0,Me=J>=y,Ne=lv(Ee,Oe,je,Me),Pe=function(){return{x:W?-J:J,y:U}},Re=(0,r.useRef)(Pe()),Te=qn((function(e){if(E){var t=w(w({},Pe()),e);Re.current.x===t.x&&Re.current.y===t.y||(E(t),Re.current=t)}}));function Ae(e,t){var n=e;t?((0,S.flushSync)((function(){ee(n)})),Te()):le(n)}var ze=function(e){var t=e,n=y?y-ve.width:0;return t=Math.max(t,0),Math.min(t,n)},_e=qn((function(e,t){t?((0,S.flushSync)((function(){ee((function(t){return ze(t+(W?-e:e))}))})),Te()):le((function(t){return t+e}))})),De=Be(function(e,t,n,o,i,a,l){var c=(0,r.useRef)(0),s=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)(!1),f=lv(t,n,o,i),p=(0,r.useRef)(null),m=(0,r.useRef)(null);return[function(t){if(e){Ie.cancel(m.current),m.current=Ie((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,g=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,g=0,p.current="sx");var h=Math.abs(i),v=Math.abs(g);null===p.current&&(p.current=a&&h>v?"x":"y"),"y"===p.current?function(e,t){if(Ie.cancel(s.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,c.current+=t,u.current=t,av||n.preventDefault(),s.current=Ie((function(){var e=d.current?10:1;l(c.current*e,!1),c.current=0})))}}(t,g):function(e,t){l(t,!0),av||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}(H,Ee,Oe,je,Me,!!y,_e),2),He=De[0],Le=De[1];!function(e,t,n){var o,i=(0,r.useRef)(!1),a=(0,r.useRef)(0),l=(0,r.useRef)(0),c=(0,r.useRef)(null),s=(0,r.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=a.current-t,c=l.current-r,u=Math.abs(o)>Math.abs(c);u?a.current=t:l.current=r;var d=n(u,u?o:c,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval((function(){u?o*=sv:c*=sv;var e=Math.floor(u?o:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)}),16))}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u,{passive:!1}),c.current.addEventListener("touchend",d,{passive:!0}))};o=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",d))},Ot((function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(s.current)}}),[e])}(H,K,(function(e,t,n,r){var o=r;return!(Ne(e,t,n)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),He({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))})),Ot((function(){function e(e){var t=Ee&&e.detail<0,n=Oe&&e.detail>0;!H||t||n||e.preventDefault()}var t=K.current;return t.addEventListener("wheel",He,{passive:!1}),t.addEventListener("DOMMouseScroll",Le,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",He),t.removeEventListener("DOMMouseScroll",Le),t.removeEventListener("MozMousePixelScroll",e)}}),[H,Ee,Oe]),Ot((function(){if(y){var e=ze(J);ee(e),Te({x:e})}}),[ve.width,y]);var Fe=function(){var e,t;null===(e=xe.current)||void 0===e||e.delayHidden(),null===(t=Ce.current)||void 0===t||t.delayHidden()},We=function(e,t,n,o,i,a,l,c){var s=r.useRef(),u=Be(r.useState(null),2),d=u[0],f=u[1];return Ot((function(){if(d&&d.times<10){if(!e.current)return void f((function(e){return w({},e)}));a();var r=d.targetAlign,c=d.originAlign,s=d.index,u=d.offset,p=e.current.clientHeight,m=!1,g=r,h=null;if(p){for(var v=r||c,b=0,y=0,x=0,C=Math.min(t.length-1,s),S=0;S<=C;S+=1){var $=i(t[S]);y=b;var k=n.get($);b=x=y+(void 0===k?o:k)}for(var E="top"===v?u:p-u,O=C;O>=0;O-=1){var j=i(t[O]),M=n.get(j);if(void 0===M){m=!0;break}if((E-=M)<=0)break}switch(v){case"top":h=y-u;break;case"bottom":h=x-p+u;break;default:var I=e.current.scrollTop;yI+p&&(g="bottom")}null!==h&&l(h),h!==d.lastTop&&(m=!0)}m&&f(w(w({},d),{},{times:d.times+1,targetAlign:g,lastTop:h}))}}),[d,e.current]),function(e){if(null!=e){if(Ie.cancel(s.current),"number"==typeof e)l(e);else if(e&&"object"===b(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var o=e.offset;f({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else c()}}(K,q,D,s,R,(function(){return _(!0)}),le,Fe);r.useImperativeHandle(t,(function(){return{nativeElement:G.current,getScrollInfo:Pe,scrollTo:function(e){var t;(t=e)&&"object"===b(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ee(ze(e.left)),We(e.top)):We(e)}}})),Ot((function(){if(j){var e=q.slice(pe,me+1);j(e,q)}}),[pe,me,q]);var Ve=function(e,t,n,o){var i=Be(r.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),2),a=i[0],l=i[1];return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,c=a.get(r),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,d=l.length;dc&&r.createElement(fv,{ref:xe,prefixCls:o,scrollOffset:U,scrollRange:fe,rtl:W,onScroll:Ae,onStartMove:oe,onStopMove:ie,spinSize:Se,containerSize:ve.height,style:null==N?void 0:N.verticalScrollBar,thumbStyle:null==N?void 0:N.verticalScrollBarThumb}),F&&y>ve.width&&r.createElement(fv,{ref:Ce,prefixCls:o,scrollOffset:J,scrollRange:y,rtl:W,onScroll:Ae,onStartMove:oe,onStopMove:ie,spinSize:we,containerSize:ve.width,horizontal:!0,style:null==N?void 0:N.horizontalScrollBar,thumbStyle:null==N?void 0:N.horizontalScrollBarThumb}))}var bv=r.forwardRef(vv);bv.displayName="List";const yv=bv;var xv=["disabled","title","children","style","className"];function Cv(e){return"string"==typeof e||"number"==typeof e}var wv=function(e,t){var n=Ag(),o=n.prefixCls,i=n.id,c=n.open,s=n.multiple,u=n.mode,d=n.searchValue,f=n.toggleOpen,p=n.notFoundContent,m=n.onPopupScroll,g=r.useContext(Kh),h=g.maxCount,v=g.flattenOptions,b=g.onActiveValue,y=g.defaultActiveFirstOption,C=g.onSelect,w=g.menuItemSelectedIcon,S=g.rawValues,$=g.fieldNames,k=g.virtual,E=g.direction,O=g.listHeight,M=g.listItemHeight,I=g.optionRender,N="".concat(o,"-item"),P=j((function(){return v}),[c,v],(function(e,t){return t[0]&&e[1]!==t[1]})),R=r.useRef(null),T=r.useMemo((function(){return s&&Wh(h)&&(null==S?void 0:S.size)>=h}),[s,h,null==S?void 0:S.size]),A=function(e){e.preventDefault()},z=function(e){var t;null===(t=R.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},_=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=P.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];H(e);var n={source:t?"keyboard":"mouse"},r=P[e];r?b(r.value,e,n):b(null,-1,n)};(0,r.useEffect)((function(){L(!1!==y?_(0):-1)}),[P.length,d]);var F=r.useCallback((function(e){return S.has(e)&&"combobox"!==u}),[u,Se(S).toString(),S.size]);(0,r.useEffect)((function(){var e,t=setTimeout((function(){if(!s&&c&&1===S.size){var e=Array.from(S)[0],t=P.findIndex((function(t){return t.data.value===e}));-1!==t&&(L(t),z(t))}}));return c&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[c,d]);var W=function(e){void 0!==e&&C(e,{selected:!S.has(e)}),s||f(!1)};if(r.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case bl.N:case bl.P:case bl.UP:case bl.DOWN:var r=0;if(t===bl.UP?r=-1:t===bl.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===bl.N?r=1:t===bl.P&&(r=-1)),0!==r){var o=_(B+r,r);z(o),L(o,!0)}break;case bl.ENTER:var i,a=P[B];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||T?W(void 0):W(a.value),c&&e.preventDefault();break;case bl.ESC:f(!1),c&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}})),0===P.length)return r.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(N,"-empty"),onMouseDown:A},p);var V=Object.keys($).map((function(e){return $[e]})),q=function(e){return e.label};function K(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var X=function(e){var t=P[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,a=ja(n,!0),c=q(t);return t?r.createElement("div",(0,l.A)({"aria-label":"string"!=typeof c||i?null:c},a,{key:e},K(t,e),{"aria-selected":F(o)}),o):null},G={role:"listbox",id:"".concat(i,"_list")};return r.createElement(r.Fragment,null,k&&r.createElement("div",(0,l.A)({},G,{style:{height:0,width:0,overflow:"hidden"}}),X(B-1),X(B),X(B+1)),r.createElement(yv,{itemKey:"key",ref:R,data:P,height:O,itemHeight:M,fullHeight:!1,onMouseDown:A,onScroll:m,virtual:k,direction:E,innerProps:k?null:G},(function(e,t){var n=e.group,o=e.groupOption,i=e.data,c=e.label,s=e.value,u=i.key;if(n){var d,f=null!==(d=i.title)&&void 0!==d?d:Cv(c)?c.toString():void 0;return r.createElement("div",{className:a()(N,"".concat(N,"-group"),i.className),title:f},void 0!==c?c:u)}var p=i.disabled,m=i.title,g=(i.children,i.style),h=i.className,v=ye(ni(i,xv),V),b=F(s),y=p||!b&&T,C="".concat(N,"-option"),S=a()(N,C,h,x(x(x(x({},"".concat(C,"-grouped"),o),"".concat(C,"-active"),B===t&&!y),"".concat(C,"-disabled"),y),"".concat(C,"-selected"),b)),$=q(e),E=!w||"function"==typeof w||b,O="number"==typeof $?$:$||s,j=Cv(O)?O.toString():void 0;return void 0!==m&&(j=m),r.createElement("div",(0,l.A)({},ja(v),k?{}:K(e,t),{"aria-selected":b,className:S,title:j,onMouseMove:function(){B===t||y||L(t)},onClick:function(){y||W(s)},style:g}),r.createElement("div",{className:"".concat(C,"-content")},"function"==typeof I?I(e,{index:t}):O),r.isValidElement(w)||b,E&&r.createElement(Rg,{className:"".concat(N,"-option-state"),customizeIcon:w,customizeIconProps:{value:s,disabled:y,isSelected:b}},b?"✓":null))})))};const Sv=r.forwardRef(wv);function $v(e,t){return ih(e).join("").toUpperCase().includes(t)}var kv=0,Ev=Le();function Ov(e){var t=Be(r.useState(),2),n=t[0],o=t[1];return r.useEffect((function(){var e;o("rc_select_".concat((Ev?(e=kv,kv+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var jv=["children","value"],Mv=["children"];function Iv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s(e).map((function(e,n){if(!r.isValidElement(e)||!e.type)return null;var o=e,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,s=ni(l,Mv);return t||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return w({key:n,value:void 0!==i?i:n,children:o},ni(r,jv))}(e):w(w({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},s),{},{options:Iv(c)})})).filter((function(e){return e}))}const Nv=function(e,t,n,o,i){return r.useMemo((function(){var r=e;!e&&(r=Iv(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s0?e(t.options):t.options}):t}))},ve=r.useMemo((function(){return S?he(ge):ge}),[ge,S,U]),be=r.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Vh(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var i=t[l];o.push({key:Fh(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:Fh(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(ve,{fieldNames:G,childrenAsData:K})}),[ve,G,K]),ye=function(e){var t=ne(e);if(ie(t),L&&(t.length!==se.length||t.some((function(e,t){var n;return(null===(n=se[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=H?t:t.map((function(e){return e.value})),r=t.map((function(e){return qh(ue(e.value))}));L(q?n:n[0],q?r:r[0])}},xe=Be(r.useState(null),2),Ce=xe[0],we=xe[1],$e=Be(r.useState(0),2),ke=$e[0],Ee=$e[1],Oe=void 0!==M?M:"combobox"!==o,je=r.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Ee(t),c&&"combobox"===o&&null!==e&&"keyboard"===r&&we(String(e))}),[c,o]),Me=function(e,t,n){var r=function(){var t,n=ue(e);return[H?{label:null==n?void 0:n[G.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,qh(n)]};if(t&&g){var o=Be(r(),2),i=o[0],a=o[1];g(i,a)}else if(!t&&h&&"clear"!==n){var l=Be(r(),2),c=l[0],s=l[1];h(c,s)}},Ie=Pv((function(e,t){var n,r=!q||t.selected;n=r?q?[].concat(Se(se),[e]):[e]:se.filter((function(t){return t.value!==e})),ye(n),Me(e,r),"combobox"===o?we(""):Uh&&!m||(Q(""),we(""))})),Ne=r.useMemo((function(){var e=!1!==N&&!1!==y;return w(w({},Z),{},{flattenOptions:be,onActiveValue:je,defaultActiveFirstOption:Oe,onSelect:Ie,menuItemSelectedIcon:I,rawValues:fe,fieldNames:G,virtual:e,direction:P,listHeight:T,listItemHeight:z,childrenAsData:K,maxCount:F,optionRender:O})}),[F,Z,be,je,Oe,Ie,I,fe,G,N,y,P,T,z,K,O]);return r.createElement(Kh.Provider,{value:Ne},r.createElement(Zh,(0,l.A)({},W,{id:V,prefixCls:a,ref:t,omitDomProps:Tv,mode:o,displayValues:de,onDisplayValuesChange:function(e,t){ye(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Me(e.value,!1,n)}))},direction:P,searchValue:U,onSearch:function(e,t){if(Q(e),we(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&ye(e),null==f||f(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(Se(fe),[n])));ye(r),Me(n,!0),Q("")}}},autoClearSearchValue:m,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=ee.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Se(fe),Se(t))));ye(n),n.forEach((function(e){Me(e,!0)}))},dropdownMatchSelectWidth:y,OptionList:Sv,emptyOptions:!be.length,activeValue:Ce,activeDescendantId:"".concat(V,"_list_").concat(ke)})))})),zv=Av;zv.Option=nv,zv.OptGroup=ev;const _v=zv;function Dv(e,t,n){return a()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Bv=(e,t)=>t||e,Hv=()=>{const[,e]=Fo(),t=new Co(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,"empty image"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Lv=()=>{const[,e]=Fo(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=(0,r.useMemo)((()=>({borderColor:new Co(t).onBackground(i).toHexShortString(),shadowColor:new Co(n).onBackground(i).toHexShortString(),contentColor:new Co(o).onBackground(i).toHexShortString()})),[t,n,o,i]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,"Simple Empty"),r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:a},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},Fv=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Wv=Vo("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=ir(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Fv(o)]}));const Vv=r.createElement(Hv,null),qv=r.createElement(Lv,null),Kv=e=>{var{className:t,rootClassName:n,prefixCls:o,image:i=Vv,description:l,children:c,imageStyle:s,style:u}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(Ae),i=n("empty");switch(t){case"Table":case"List":return o().createElement(Xv,{image:Xv.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o().createElement(Xv,{image:Xv.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return o().createElement(Xv,null)}},Yv=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:l}=(0,r.useContext)(Ae),c=(0,r.useContext)(jp),s=null==l?void 0:l.variant;let u;return u=void 0!==t?t:!1===n?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined",[u,Te.includes(u)]},Uv=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},Qv=new zn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Zv=new zn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Jv=new zn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),eb=new zn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),tb=new zn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),nb=new zn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),rb=new zn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ob=new zn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ib={"slide-up":{inKeyframes:Qv,outKeyframes:Zv},"slide-down":{inKeyframes:Jv,outKeyframes:eb},"slide-left":{inKeyframes:tb,outKeyframes:nb},"slide-right":{inKeyframes:rb,outKeyframes:ob}},ab=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ib[t];return[fm(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},lb=new zn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cb=new zn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),sb=new zn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ub=new zn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),db=new zn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fb=new zn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pb={"move-up":{inKeyframes:new zn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new zn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:lb,outKeyframes:cb},"move-left":{inKeyframes:sb,outKeyframes:ub},"move-right":{inKeyframes:db,outKeyframes:fb}},mb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=pb[t];return[fm(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},gb=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},hb=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},pr(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Qv},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Jv},[`${a}${l}bottomLeft`]:{animationName:Zv},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:eb},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},gb(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},fr),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},gb(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},ab(e,"slide-up"),ab(e,"slide-down"),mb(e,"move-up"),mb(e,"move-down")]},vb=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:yt(t),itemLineHeight:yt(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},bb=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},yb=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=vb(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},bb(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${yt(r)} 0`,lineHeight:yt(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:yt(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:yt(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function xb(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[yb(e,t),o]}const Cb=e=>{const{componentCls:t}=e,n=ir(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ir(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[xb(e),xb(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},xb(r,"lg")]};function wb(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o,fontSizeIcon:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=e.calc(r).add(i).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},pr(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:yt(l),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:yt(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${yt(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:yt(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${yt(r)}`,"&:after":{display:"none"}}}}}}}function Sb(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[wb(e),wb(ir(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${yt(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},wb(ir(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const $b=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${yt(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${yt(o)} ${t.activeOutlineColor}`,outline:0}}}},kb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},$b(e,t))}),Eb=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},$b(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),kb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),kb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${yt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Ob=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${yt(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},jb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ob(e,t))}),Mb=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ob(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),jb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),jb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Ib=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${yt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Nb=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Eb(e)),Mb(e)),Ib(e))}),Pb=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Rb=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Tb=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},pr(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Pb(e)),Rb(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},fr),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},fr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Ab=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Tb(e),Sb(e),Cb(e),hb(e),{[`${t}-rtl`]:{direction:"rtl"}},hd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},zb=Vo("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=ir(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Ab(r),Nb(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,C=2*l,w=2*r,S=Math.min(o-C,o-w),$=Math.min(i-C,i-w),k=Math.min(a-C,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:$,multipleItemHeightLG:k,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),_b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var Db=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:_b}))};const Bb=r.forwardRef(Db),Hb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var Lb=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Hb}))};const Fb=r.forwardRef(Lb),Wb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var Vb=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Wb}))};const qb=r.forwardRef(Vb);function Kb(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const m=null!=n?n:r.createElement(Si,null),g=e=>null!==t||c||f?r.createElement(r.Fragment,null,!1!==u&&e,c&&d):null;let h=null;if(void 0!==t)h=g(t);else if(a)h=g(r.createElement(Rl,{spin:!0}));else{const e=`${s}-suffix`;h=t=>{let{open:n,showSearch:o}=t;return g(n&&o?r.createElement(qb,{className:e}):r.createElement(Fb,{className:e}))}}let v=null;v=void 0!==o?o:l?r.createElement(Bb,null):null;let b=null;return b=void 0!==i?i:r.createElement(Ei,null),{clearIcon:m,suffixIcon:h,itemIcon:v,removeIcon:b}}function Xb(e,t){return void 0!==t?t:null!==e}const Gb="SECRET_COMBOBOX_MODE_DO_NOT_USE",Yb=(e,t)=>{var n;const{prefixCls:o,bordered:i,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:h,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:C,direction:w,style:S,allowClear:$,variant:k,dropdownStyle:E,transitionName:O,tagRender:j,maxCount:M}=e,I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{mode:t}=e;if("combobox"!==t)return t===Gb?"combobox":t}),[e.mode]),J="multiple"===Z||"tags"===Z,ee=Xb(e.suffixIcon,e.showArrow),te=null!==(n=null!=C?C:x)&&void 0!==n?n:z,{status:ne,hasFeedback:re,isFormItemInput:oe,feedbackIcon:ie}=r.useContext(Ep),ae=Bv(ne,b);let le;le=void 0!==v?v:"combobox"===Z?null:(null==R?void 0:R("Select"))||r.createElement(Gv,{componentName:"Select"});const{suffixIcon:ce,itemIcon:se,removeIcon:ue,clearIcon:de}=Kb(Object.assign(Object.assign({},I),{multiple:J,hasFeedback:re,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:L,componentName:"Select"})),fe=!0===$?{clearIcon:de}:$,pe=ye(I,["suffixIcon","itemIcon"]),me=a()(u||d,{[`${L}-dropdown-${W}`]:"rtl"===W},c,Q,G,U),ge=ms((e=>{var t;return null!==(t=null!=g?g:V)&&void 0!==t?t:e})),he=r.useContext(Nc),ve=null!=h?h:he,be=a()({[`${L}-lg`]:"large"===ge,[`${L}-sm`]:"small"===ge,[`${L}-rtl`]:"rtl"===W,[`${L}-${K}`]:X,[`${L}-in-form-item`]:oe},Dv(L,ae,re),q,null==D?void 0:D.className,l,c,Q,G,U),xe=r.useMemo((()=>void 0!==p?p:"rtl"===W?"bottomRight":"bottomLeft"),[p,W]),[Ce]=Bl("SelectLike",null==E?void 0:E.zIndex);return Y(r.createElement(_v,Object.assign({ref:t,virtual:A,showSearch:null==D?void 0:D.showSearch},pe,{style:Object.assign(Object.assign({},null==D?void 0:D.style),S),dropdownMatchSelectWidth:te,transitionName:ts(F,"slide-up",O),builtinPlacements:Uv(y,_),listHeight:f,listItemHeight:H,mode:Z,prefixCls:L,placement:xe,direction:W,suffixIcon:ce,menuItemSelectedIcon:se,removeIcon:ue,allowClear:fe,notFoundContent:le,className:be,getPopupContainer:s||N,dropdownClassName:me,disabled:ve,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:Ce}),maxCount:J?M:void 0,tagRender:J?j:void 0})))},Ub=r.forwardRef(Yb),Qb=Ng(Ub);Ub.SECRET_COMBOBOX_MODE_DO_NOT_USE=Gb,Ub.Option=nv,Ub.OptGroup=ev,Ub._InternalPanelDoNotUseOrYouWillBeFired=Qb;const Zb=Ub,{Option:Jb}=Zb;function ey(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const ty=(e,t)=>{var n;const{prefixCls:o,className:i,popupClassName:l,dropdownClassName:c,children:u,dataSource:d}=e,f=s(u);let p;1===f.length&&r.isValidElement(f[0])&&!ey(f[0])&&([p]=f);const m=p?()=>p:void 0;let g;g=f.length&&ey(f[0])?u:d?d.map((e=>{if(r.isValidElement(e))return e;switch(typeof e){case"string":return r.createElement(Jb,{key:e,value:e},e);case"object":{const{value:t}=e;return r.createElement(Jb,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:h}=r.useContext(Ae),v=h("select",o),[b]=Bl("SelectLike",null===(n=e.dropdownStyle)||void 0===n?void 0:n.zIndex);return r.createElement(Zb,Object.assign({ref:t,suffixIcon:null},ye(e,["dataSource","dropdownClassName"]),{prefixCls:v,popupClassName:l||c,dropdownStyle:Object.assign(Object.assign({},e.dropdownStyle),{zIndex:b}),className:a()(`${v}-auto-complete`,i),mode:Zb.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:m}),g)},ny=r.forwardRef(ty),ry=Ng(ny);ny.Option=Jb,ny._InternalPanelDoNotUseOrYouWillBeFired=ry;const oy=ny,iy=["xxl","xl","lg","md","sm","xs"];function ay(){const[,e]=Fo(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(iy).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}const ly=(e,t)=>{if(t&&"object"==typeof t)for(let n=0;ne+1),0);return e}const sy=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useRef)({}),n=cy(),o=ay();return Ot((()=>{const r=o.subscribe((r=>{t.current=r,e&&n()}));return()=>o.unsubscribe(r)}),[]),t.current},uy=r.createContext({}),dy=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:s,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:m,lineWidth:g,lineType:h}=e,v=(e,t,o)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${yt(g)} ${h} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,s,f)),{"&-lg":Object.assign({},v(l,u,p)),"&-sm":Object.assign({},v(c,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},fy=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},py=Vo("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=ir(e,{avatarBg:n,avatarColor:t});return[dy(r),fy(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:s,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:s,groupOverlapping:-c,groupBorderColor:u}}));const my=(e,t)=>{const[n,o]=r.useState(1),[i,l]=r.useState(!1),[c,s]=r.useState(!0),u=r.useRef(null),d=r.useRef(null),f=I(t,u),{getPrefixCls:p,avatar:m}=r.useContext(Ae),g=r.useContext(uy),h=()=>{if(!d.current||!u.current)return;const t=d.current.offsetWidth,n=u.current.offsetWidth;if(0!==t&&0!==n){const{gap:r=4}=e;2*r{l(!0)}),[]),r.useEffect((()=>{s(!0),o(1)}),[e.src]),r.useEffect(h,[e.gap]);const{prefixCls:v,shape:b,size:y,src:x,srcSet:C,icon:w,className:S,rootClassName:$,alt:k,draggable:E,children:O,crossOrigin:j}=e,M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n;return null!==(n=null!==(t=null!=y?y:null==g?void 0:g.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),P=Object.keys("object"==typeof N&&N||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),R=sy(P),T=r.useMemo((()=>{if("object"!=typeof N)return{};const e=iy.find((e=>R[e])),t=N[e];return t?{width:t,height:t,fontSize:t&&(w||O)?t/2:18}:{}}),[R,N]),A=p("avatar",v),z=rl(A),[_,D,B]=py(A,z),H=a()({[`${A}-lg`]:"large"===N,[`${A}-sm`]:"small"===N}),L=r.isValidElement(x),F=b||(null==g?void 0:g.shape)||"circle",W=a()(A,H,null==m?void 0:m.className,`${A}-${F}`,{[`${A}-image`]:L||x&&c,[`${A}-icon`]:!!w},B,z,S,$,D),V="number"==typeof N?{width:N,height:N,fontSize:w?N/2:18}:{};let q;if("string"==typeof x&&c)q=r.createElement("img",{src:x,draggable:E,srcSet:C,onError:()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&s(!1)},alt:k,crossOrigin:j});else if(L)q=x;else if(w)q=w;else if(i||1!==n){const e=`scale(${n})`,t={msTransform:e,WebkitTransform:e,transform:e};q=r.createElement(be,{onResize:h},r.createElement("span",{className:`${A}-string`,ref:d,style:Object.assign({},t)},O))}else q=r.createElement("span",{className:`${A}-string`,style:{opacity:0},ref:d},O);return delete M.onError,delete M.gap,_(r.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},V),T),null==m?void 0:m.style),M.style),className:W,ref:f}),q))},gy=r.forwardRef(my),hy=e=>e?"function"==typeof e?e():e:null;function vy(e){var t=e.children,n=e.prefixCls,o=e.id,i=e.overlayInnerStyle,l=e.className,c=e.style;return r.createElement("div",{className:a()("".concat(n,"-content"),l),style:c},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof t?t():t))}var by={shiftX:64,adjustY:1},yy={adjustX:1,shiftY:!0},xy=[0,0],Cy={left:{points:["cr","cl"],overflow:yy,offset:[-4,0],targetOffset:xy},right:{points:["cl","cr"],overflow:yy,offset:[4,0],targetOffset:xy},top:{points:["bc","tc"],overflow:by,offset:[0,-4],targetOffset:xy},bottom:{points:["tc","bc"],overflow:by,offset:[0,4],targetOffset:xy},topLeft:{points:["bl","tl"],overflow:by,offset:[0,-4],targetOffset:xy},leftTop:{points:["tr","tl"],overflow:yy,offset:[-4,0],targetOffset:xy},topRight:{points:["br","tr"],overflow:by,offset:[0,-4],targetOffset:xy},rightTop:{points:["tl","tr"],overflow:yy,offset:[4,0],targetOffset:xy},bottomRight:{points:["tr","br"],overflow:by,offset:[0,4],targetOffset:xy},rightBottom:{points:["bl","br"],overflow:yy,offset:[4,0],targetOffset:xy},bottomLeft:{points:["tl","bl"],overflow:by,offset:[0,4],targetOffset:xy},leftBottom:{points:["br","bl"],overflow:yy,offset:[-4,0],targetOffset:xy}},wy=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Sy=function(e,t){var n=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,c=void 0===a?0:a,s=e.mouseLeaveDelay,u=void 0===s?.1:s,d=e.overlayStyle,f=e.prefixCls,p=void 0===f?"rc-tooltip":f,m=e.children,g=e.onVisibleChange,h=e.afterVisibleChange,v=e.transitionName,b=e.animation,y=e.motion,x=e.placement,C=void 0===x?"right":x,S=e.align,$=void 0===S?{}:S,k=e.destroyTooltipOnHide,E=void 0!==k&&k,O=e.defaultVisible,j=e.getTooltipContainer,M=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),N=e.id,P=e.showArrow,R=void 0===P||P,T=ni(e,wy),A=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return A.current}));var z=w({},T);return"visible"in e&&(z.popupVisible=e.visible),r.createElement(Dh,(0,l.A)({popupClassName:n,prefixCls:p,popup:function(){return r.createElement(vy,{key:"content",prefixCls:p,id:N,overlayInnerStyle:M},I)},action:i,builtinPlacements:Cy,popupPlacement:C,ref:A,popupAlign:$,getPopupContainer:j,onPopupVisibleChange:g,afterPopupVisibleChange:h,popupTransitionName:v,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:E,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c,arrow:R},z),m)};const $y=(0,r.forwardRef)(Sy);function ky(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,d=s,f=2*o-a,p=l,m=2*o-0,g=i,h=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:h,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const Ey=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${yt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Oy(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function jy(e,t){return e?t:{}}function My(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Ey(e,t,o)),{"&:before":{background:t}})]},jy(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${yt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),jy(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${yt(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),jy(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),jy(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Iy={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Ny={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Py=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ry(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Iy).forEach((e=>{const s=r&&Ny[e]||Iy[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Py.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=Oy({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const Ty=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ay(e,t){return Ty.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const zy=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${yt(e.calc(s).div(2).equal())} ${yt(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,8)}},[`${t}-content`]:{position:"relative"}}),Ay(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},My(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},_y=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Oy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),ky(ir(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Dy=function(e){const t=Vo("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ir(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[zy(o),Mm(e,"zoom-big-fast")]}),_y,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},By=Ty.map((e=>`${e}-inverse`)),Hy=["success","processing","error","default","warning"];function Ly(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Ty.includes(e):[].concat(Se(By),Se(Ty)).includes(e)}function Fy(e,t){const n=Ly(t),r=a()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const Wy=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,openClassName:l,getTooltipContainer:c,overlayClassName:s,color:u,overlayInnerStyle:d,children:f,afterOpenChange:p,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:h=!0,title:v,overlay:b,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:C=!0}=e,w=!!h,[,S]=Fo(),{getPopupContainer:$,getPrefixCls:k,direction:E}=r.useContext(Ae),O=hl(),j=r.useRef(null),M=()=>{var e;null===(e=j.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>{var e;return{forceAlign:M,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),M()},nativeElement:null===(e=j.current)||void 0===e?void 0:e.nativeElement}}));const[I,N]=Gn(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),P=!v&&!b&&0!==v,R=r.useMemo((()=>{var e,t;let n=x;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:x),y||Ry({arrowPointAtCenter:n,autoAdjustOverflow:C,arrowWidth:w?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})}),[x,h,y,S]),T=r.useMemo((()=>0===v?v:b||v||""),[b,v]),A=r.createElement(Mp,{space:!0},"function"==typeof T?T():T),{getPopupContainer:z,placement:_="top",mouseEnterDelay:D=.1,mouseLeaveDelay:B=.1,overlayStyle:H,rootClassName:L}=e,F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;N(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=p?p:m,overlayInnerStyle:te,arrowContent:r.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:ts(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),K?Na(X,{className:Y}):X);return U(r.createElement(Tl.Provider,{value:oe},ie))})),Vy=Wy;Vy._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:o="top",title:i,color:l,overlayInnerStyle:c}=e,{getPrefixCls:s}=r.useContext(Ae),u=s("tooltip",t),[d,f,p]=Dy(u),m=Fy(u,l),g=m.arrowStyle,h=Object.assign(Object.assign({},c),m.overlayStyle),v=a()(f,p,u,`${u}-pure`,`${u}-placement-${o}`,n,m.className);return d(r.createElement("div",{className:v,style:g},r.createElement("div",{className:`${u}-arrow`}),r.createElement(vy,Object.assign({},e,{className:f,prefixCls:u,overlayInnerStyle:h}),i)))};const qy=Vy,Ky=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},pr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},My(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Xy=e=>{const{componentCls:t}=e;return{[t]:Ty.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},Gy=Vo("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=ir(e,{popoverBg:t,popoverColor:n});return[Ky(r),Xy(r),Mm(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},ky(e)),Oy({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const Yy=e=>{let{title:t,content:n,prefixCls:o}=e;return t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},t),n&&r.createElement("div",{className:`${o}-inner-content`},n)):null},Uy=e=>{const{hashId:t,prefixCls:n,className:o,style:i,placement:l="top",title:c,content:s,children:u}=e,d=hy(c),f=hy(s),p=a()(t,n,`${n}-pure`,`${n}-placement-${l}`,o);return r.createElement("div",{className:p,style:i},r.createElement("div",{className:`${n}-arrow`}),r.createElement(vy,Object.assign({},e,{className:t,prefixCls:n}),u||r.createElement(Yy,{prefixCls:n,title:d,content:f})))},Qy=e=>{const{prefixCls:t,className:n}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{prefixCls:i,title:l,content:c,overlayClassName:s,placement:u="top",trigger:d="hover",children:f,mouseEnterDelay:p=.1,mouseLeaveDelay:m=.1,onOpenChange:g,overlayStyle:h={}}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{E(e,!0),null==g||g(e,t)},j=hy(l),M=hy(c);return x(r.createElement(qy,Object.assign({placement:u,trigger:d,mouseEnterDelay:p,mouseLeaveDelay:m,overlayStyle:h},v,{prefixCls:y,overlayClassName:$,ref:t,open:k,onOpenChange:e=>{O(e)},overlay:j||M?r.createElement(Yy,{prefixCls:y,title:j,content:M}):null,transitionName:ts(S,"zoom-big",v.transitionName),"data-popover-inject":!0}),Na(f,{onKeyDown:e=>{var t,n;r.isValidElement(f)&&(null===(n=null==f?void 0:(t=f.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===bl.ESC&&O(!1,e)})(e)}})))})),Jy=Zy;Jy._InternalPanelDoNotUseOrYouWillBeFired=Qy;const ex=Jy,tx=e=>{const{size:t,shape:n}=r.useContext(uy),o=r.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return r.createElement(uy.Provider,{value:o},e.children)},nx=gy;nx.Group=e=>{var t,n,o;const{getPrefixCls:i,direction:l}=r.useContext(Ae),{prefixCls:c,className:u,rootClassName:d,style:f,maxCount:p,maxStyle:m,size:g,shape:h,maxPopoverPlacement:v,maxPopoverTrigger:b,children:y,max:x}=e,C=i("avatar",c),w=`${C}-group`,S=rl(C),[$,k,E]=py(C,S),O=a()(w,{[`${w}-rtl`]:"rtl"===l},E,S,u,d,k),j=s(y).map(((e,t)=>Na(e,{key:`avatar-key-${t}`}))),M=(null==x?void 0:x.count)||p,I=j.length;if(M&&M{const{componentCls:t,backTopFontSize:n,backTopSize:r,zIndexPopup:o}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:o,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:r,height:r,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:r,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:yt(r)}})}},cx=e=>{const{componentCls:t,screenMD:n,screenXS:r,backTopInlineEndMD:o,backTopInlineEndXS:i}=e;return{[`@media (max-width: ${yt(n)})`]:{[t]:{insetInlineEnd:o}},[`@media (max-width: ${yt(r)})`]:{[t]:{insetInlineEnd:i}}}},sx=Vo("BackTop",(e=>{const{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:r,colorText:o,controlHeightLG:i,calc:a}=e,l=ir(e,{backTopBackground:n,backTopColor:r,backTopHoverBackground:o,backTopFontSize:t,backTopSize:i,backTopBlockEnd:a(i).mul(1.25).equal(),backTopInlineEnd:a(i).mul(2.5).equal(),backTopInlineEndMD:a(i).mul(1.5).equal(),backTopInlineEndXS:a(i).mul(.5).equal()});return[lx(l),cx(l)]}),(e=>({zIndexPopup:e.zIndexBase+10}))),ux=e=>{const{prefixCls:t,className:n,rootClassName:o,visibilityHeight:i=400,target:l,onClick:c,duration:s=450}=e,[u,d]=r.useState(0===i),f=r.useRef(null),p=()=>{var e;return(null===(e=f.current)||void 0===e?void 0:e.ownerDocument)||window},m=Ne((e=>{const t=tl(e.target);d(t>=i)}));r.useEffect((()=>{const e=(l||p)();return m({target:e}),null==e||e.addEventListener("scroll",m),()=>{m.cancel(),null==e||e.removeEventListener("scroll",m)}}),[l]);const{getPrefixCls:g,direction:h}=r.useContext(Ae),v=g("back-top",t),b=g(),[y,x,C]=sx(v),w=a()(x,C,v,{[`${v}-rtl`]:"rtl"===h},n,o),S=ye(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),$=r.createElement("div",{className:`${v}-content`},r.createElement("div",{className:`${v}-icon`},r.createElement(ax,null)));return y(r.createElement("div",Object.assign({},S,{className:w,onClick:e=>{nl(0,{getContainer:l||p,duration:s}),null==c||c(e)},ref:f}),r.createElement(ka,{visible:u,motionName:`${b}-fade`},(t=>{let{className:n}=t;return Na(e.children||$,(e=>{let{className:t}=e;return{className:a()(n,t)}}))}))))},dx=new zn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),fx=new zn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),px=new zn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),mx=new zn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),gx=new zn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),hx=new zn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),vx=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e;return ir(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorBgContainer,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},bx=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},yx=Vo("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:c,textFontWeight:s,indicatorHeight:u,indicatorHeightSM:d,marginXS:f,calc:p}=e,m=`${r}-scroll-number`,g=Ay(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t} ${t}-color-${e}`]:{background:r,[`&:not(${t}-count)`]:{color:r},"a:hover &":{background:r}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:s,fontSize:i,lineHeight:yt(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${yt(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:yt(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${yt(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${yt(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:hx,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:dx,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:f,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:fx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:px,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:mx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:gx,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(vx(e))),bx),xx=Vo(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=Ay(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{position:"absolute",top:r,padding:`0 ${yt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:yt(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${yt(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(vx(e))),bx),Cx=e=>{const{prefixCls:t,value:n,current:o,offset:i=0}=e;let l;return i&&(l={position:"absolute",top:`${i}00%`,left:0}),r.createElement("span",{style:l,className:a()(`${t}-only-unit`,{current:o})},n)};function wx(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Sx=e=>{const{prefixCls:t,count:n,value:o}=e,i=Number(o),a=Math.abs(n),[l,c]=r.useState(i),[s,u]=r.useState(a),d=()=>{c(i),u(a)};let f,p;if(r.useEffect((()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)}),[i]),l===i||Number.isNaN(i)||Number.isNaN(l))f=[r.createElement(Cx,Object.assign({},e,{key:i,current:!0}))],p={transition:"none"};else{f=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const o=n.findIndex((e=>e%10===l));f=n.map(((t,n)=>{const i=t%10;return r.createElement(Cx,Object.assign({},e,{key:t,value:i,offset:n-o,current:n===o}))})),p={transform:`translateY(${-wx(l,i,s{const{prefixCls:n,count:o,className:i,motionClassName:l,style:c,title:s,show:u,component:d="sup",children:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);or.createElement(Sx,{prefixCls:g,count:Number(o),value:t,key:e.length-n}))))}return(null==c?void 0:c.borderColor)&&(h.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),f?Na(f,(e=>({className:a()(`${g}-custom-component`,null==e?void 0:e.className,l)}))):r.createElement(d,Object.assign({},h,{ref:t}),v)})),kx=$x;const Ex=r.forwardRef(((e,t)=>{var n,o,i,l,c;const{prefixCls:s,scrollNumberPrefixCls:u,children:d,status:f,text:p,color:m,count:g=null,overflowCount:h=99,dot:v=!1,size:b="default",title:y,offset:x,style:C,className:w,rootClassName:S,classNames:$,styles:k,showZero:E=!1}=e,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oh?`${h}+`:g,z="0"===A||0===A,_=(null!=f||null!=m)&&(null===g||z&&!E),D=v&&!z,B=D?"":A,H=(0,r.useMemo)((()=>(null==B||""===B||z&&!E)&&!D),[B,z,E,D]),L=(0,r.useRef)(g);H||(L.current=g);const F=L.current,W=(0,r.useRef)(B);H||(W.current=B);const V=W.current,q=(0,r.useRef)(D);H||(q.current=D);const K=(0,r.useMemo)((()=>{if(!x)return Object.assign(Object.assign({},null==I?void 0:I.style),C);const e={marginTop:x[1]};return"rtl"===M?e.left=parseInt(x[0],10):e.right=-parseInt(x[0],10),Object.assign(Object.assign(Object.assign({},e),null==I?void 0:I.style),C)}),[M,x,C,null==I?void 0:I.style]),X=null!=y?y:"string"==typeof F||"number"==typeof F?F:void 0,G=H||!p?null:r.createElement("span",{className:`${N}-status-text`},p),Y=F&&"object"==typeof F?Na(F,(e=>({style:Object.assign(Object.assign({},K),e.style)}))):void 0,U=Ly(m,!1),Q=a()(null==$?void 0:$.indicator,null===(n=null==I?void 0:I.classNames)||void 0===n?void 0:n.indicator,{[`${N}-status-dot`]:_,[`${N}-status-${f}`]:!!f,[`${N}-color-${m}`]:U}),Z={};m&&!U&&(Z.color=m,Z.background=m);const J=a()(N,{[`${N}-status`]:_,[`${N}-not-a-wrapper`]:!d,[`${N}-rtl`]:"rtl"===M},w,S,null==I?void 0:I.className,null===(o=null==I?void 0:I.classNames)||void 0===o?void 0:o.root,null==$?void 0:$.root,R,T);if(!d&&_){const e=K.color;return P(r.createElement("span",Object.assign({},O,{className:J,style:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.root),null===(i=null==I?void 0:I.styles)||void 0===i?void 0:i.root),K)}),r.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.indicator),null===(l=null==I?void 0:I.styles)||void 0===l?void 0:l.indicator),Z)}),p&&r.createElement("span",{style:{color:e},className:`${N}-status-text`},p)))}return P(r.createElement("span",Object.assign({ref:t},O,{className:J,style:Object.assign(Object.assign({},null===(c=null==I?void 0:I.styles)||void 0===c?void 0:c.root),null==k?void 0:k.root)}),d,r.createElement(ka,{visible:!H,motionName:`${N}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t}=e;var n,o;const i=j("scroll-number",u),l=q.current,c=a()(null==$?void 0:$.indicator,null===(n=null==I?void 0:I.classNames)||void 0===n?void 0:n.indicator,{[`${N}-dot`]:l,[`${N}-count`]:!l,[`${N}-count-sm`]:"small"===b,[`${N}-multiple-words`]:!l&&V&&V.toString().length>1,[`${N}-status-${f}`]:!!f,[`${N}-color-${m}`]:U});let s=Object.assign(Object.assign(Object.assign({},null==k?void 0:k.indicator),null===(o=null==I?void 0:I.styles)||void 0===o?void 0:o.indicator),K);return m&&!U&&(s=s||{},s.background=m),r.createElement(kx,{prefixCls:i,show:!H,motionClassName:t,className:c,count:V,title:X,style:s,key:"scrollNumber"},Y)})),G))})),Ox=Ex;Ox.Ribbon=e=>{const{className:t,prefixCls:n,style:o,color:i,children:l,text:c,placement:s="end",rootClassName:u}=e,{getPrefixCls:d,direction:f}=r.useContext(Ae),p=d("ribbon",n),m=`${p}-wrapper`,[g,h,v]=xx(p,m),b=Ly(i,!1),y=a()(p,`${p}-placement-${s}`,{[`${p}-rtl`]:"rtl"===f,[`${p}-color-${i}`]:b},t),x={},C={};return i&&!b&&(x.background=i,C.color=i),g(r.createElement("div",{className:a()(m,u,h,v)},l,r.createElement("div",{className:a()(y,h),style:Object.assign(Object.assign({},x),o)},r.createElement("span",{className:`${p}-text`},c),r.createElement("div",{className:`${p}-corner`,style:C}))))};const jx=Ox;var Mx=bl.ESC,Ix=bl.TAB;const Nx=(0,r.forwardRef)((function(e,t){var n=e.overlay,i=e.arrow,a=e.prefixCls,l=(0,r.useMemo)((function(){return"function"==typeof n?n():n}),[n]),c=I(t,null==l?void 0:l.ref);return o().createElement(o().Fragment,null,i&&o().createElement("div",{className:"".concat(a,"-arrow")}),o().cloneElement(l,{ref:P(l)?c:void 0}))}));var Px={adjustX:1,adjustY:1},Rx=[0,0];const Tx={topLeft:{points:["bl","tl"],overflow:Px,offset:[0,-4],targetOffset:Rx},top:{points:["bc","tc"],overflow:Px,offset:[0,-4],targetOffset:Rx},topRight:{points:["br","tr"],overflow:Px,offset:[0,-4],targetOffset:Rx},bottomLeft:{points:["tl","bl"],overflow:Px,offset:[0,4],targetOffset:Rx},bottom:{points:["tc","bc"],overflow:Px,offset:[0,4],targetOffset:Rx},bottomRight:{points:["tr","br"],overflow:Px,offset:[0,4],targetOffset:Rx}};var Ax=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function zx(e,t){var n,i=e.arrow,c=void 0!==i&&i,s=e.prefixCls,u=void 0===s?"rc-dropdown":s,d=e.transitionName,f=e.animation,p=e.align,m=e.placement,g=void 0===m?"bottomLeft":m,h=e.placements,v=void 0===h?Tx:h,b=e.getPopupContainer,y=e.showAction,C=e.hideAction,w=e.overlayClassName,S=e.overlayStyle,$=e.visible,k=e.trigger,E=void 0===k?["hover"]:k,O=e.autoFocus,j=e.overlay,M=e.children,N=e.onVisibleChange,R=ni(e,Ax),T=Be(o().useState(),2),A=T[0],z=T[1],_="visible"in e?$:A,D=o().useRef(null),B=o().useRef(null),H=o().useRef(null);o().useImperativeHandle(t,(function(){return D.current}));var L=function(e){z(e),null==N||N(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=r.useRef(!1),c=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case Mx:c();break;case Ix:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&Ie(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:_,triggerRef:H,onVisibleChange:L,autoFocus:O,overlayRef:B});var F,W,V,q=function(){return o().createElement(Nx,{ref:B,overlay:j,prefixCls:u,arrow:c})},K=o().cloneElement(M,{className:a()(null===(n=M.props)||void 0===n?void 0:n.className,_&&(F=e.openClassName,void 0!==F?F:"".concat(u,"-open"))),ref:P(M)?I(H,M.ref):void 0}),X=C;return X||-1===E.indexOf("contextMenu")||(X=["click"]),o().createElement(Dh,(0,l.A)({builtinPlacements:v},R,{prefixCls:u,ref:D,popupClassName:a()(w,x({},"".concat(u,"-show-arrow"),c)),popupStyle:S,action:E,showAction:y,hideAction:X,popupPlacement:g,popupAlign:p,popupTransitionName:d,popupAnimation:f,popupVisible:_,stretch:(W=e.minOverlayWidthMatchTrigger,V=e.alignPoint,("minOverlayWidthMatchTrigger"in e?W:!V)?"minWidth":""),popup:"function"==typeof j?q:q(),onPopupVisibleChange:L,onPopupClick:function(t){var n=e.onOverlayClick;z(!1),n&&n(t)},getPopupContainer:b}),K)}const _x=o().forwardRef(zx);var Dx=r.createContext(null);function Bx(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Hx(e){return Bx(r.useContext(Dx),e)}var Lx=["children","locked"],Fx=r.createContext(null);function Wx(e){var t=e.children,n=e.locked,o=ni(e,Lx),i=r.useContext(Fx),a=j((function(){return e=o,t=w({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&Je(e[1],t[1],!0))}));return r.createElement(Fx.Provider,{value:a},t)}var Vx=[],qx=r.createContext(null);function Kx(){return r.useContext(qx)}var Xx=r.createContext(Vx);function Gx(e){var t=r.useContext(Xx);return r.useMemo((function(){return void 0!==e?[].concat(Se(t),[e]):t}),[t,e])}var Yx=r.createContext(null);const Ux=r.createContext({});function Qx(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(os(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Zx=bl.LEFT,Jx=bl.RIGHT,eC=bl.UP,tC=bl.DOWN,nC=bl.ENTER,rC=bl.ESC,oC=bl.HOME,iC=bl.END,aC=[eC,tC,Zx,Jx];function lC(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Se(e.querySelectorAll("*")).filter((function(e){return Qx(e,t)}));return Qx(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function cC(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=lC(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var sC=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Bx(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};var uC="__RC_UTIL_PATH_SPLIT__",dC=function(e){return e.join(uC)},fC="rc-menu-more";function pC(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(y.motionAppear=!1);var x=y.onVisibleChanged;return y.onVisibleChanged=function(e){return m.current||e||v(!0),null==x?void 0:x(e)},h?null:r.createElement(Wx,{mode:a,locked:!m.current},r.createElement(ka,(0,l.A)({visible:b},y,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(NC,{id:t,className:n,style:o},i)})))}var HC=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],LC=["active"],FC=r.forwardRef((function(e,t){var n=e.style,o=e.className,i=e.title,c=e.eventKey,s=(e.warnKey,e.disabled),u=e.internalPopupClose,d=e.children,f=e.itemIcon,p=e.expandIcon,m=e.popupClassName,g=e.popupOffset,h=e.popupStyle,v=e.onClick,b=e.onMouseEnter,y=e.onMouseLeave,C=e.onTitleClick,S=e.onTitleMouseEnter,$=e.onTitleMouseLeave,k=ni(e,HC),E=Hx(c),O=r.useContext(Fx),j=O.prefixCls,M=O.mode,I=O.openKeys,N=O.disabled,P=O.overflowDisabled,R=O.activeKey,T=O.selectedKeys,A=O.itemIcon,z=O.expandIcon,_=O.onItemClick,D=O.onOpenChange,B=O.onActive,H=r.useContext(Ux)._internalRenderSubMenuItem,L=r.useContext(Yx).isSubPathKey,F=Gx(),W="".concat(j,"-submenu"),V=N||s,q=r.useRef(),K=r.useRef(),X=null!=f?f:A,G=null!=p?p:z,Y=I.includes(c),U=!P&&Y,Q=L(T,c),Z=hC(c,V,S,$),J=Z.active,ee=ni(Z,LC),te=Be(r.useState(!1),2),ne=te[0],re=te[1],oe=function(e){V||re(e)},ie=r.useMemo((function(){return J||"inline"!==M&&(ne||L([R],c))}),[M,J,R,ne,c,L]),ae=vC(F.length),le=pC((function(e){null==v||v(xC(e)),_(e)})),ce=E&&"".concat(E,"-popup"),se=r.createElement("div",(0,l.A)({role:"menuitem",style:ae,className:"".concat(W,"-title"),tabIndex:V?null:-1,ref:q,title:"string"==typeof i?i:null,"data-menu-id":P&&E?null:E,"aria-expanded":U,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":V,onClick:function(e){V||(null==C||C({key:c,domEvent:e}),"inline"===M&&D(c,!Y))},onFocus:function(){B(c)}},ee),i,r.createElement(bC,{icon:"horizontal"!==M?G:void 0,props:w(w({},e),{},{isOpen:U,isSubMenu:!0})},r.createElement("i",{className:"".concat(W,"-arrow")}))),ue=r.useRef(M);if("inline"!==M&&F.length>1?ue.current="vertical":ue.current=M,!P){var de=ue.current;se=r.createElement(DC,{mode:de,prefixCls:W,visible:!u&&U&&"inline"!==M,popupClassName:m,popupOffset:g,popupStyle:h,popup:r.createElement(Wx,{mode:"horizontal"===de?"vertical":de},r.createElement(NC,{id:ce,ref:K},d)),disabled:V,onVisibleChange:function(e){"inline"!==M&&D(c,e)}},se)}var fe=r.createElement(nh.Item,(0,l.A)({ref:t,role:"none"},k,{component:"li",style:n,className:a()(W,"".concat(W,"-").concat(M),o,x(x(x(x({},"".concat(W,"-open"),U),"".concat(W,"-active"),ie),"".concat(W,"-selected"),Q),"".concat(W,"-disabled"),V)),onMouseEnter:function(e){oe(!0),null==b||b({key:c,domEvent:e})},onMouseLeave:function(e){oe(!1),null==y||y({key:c,domEvent:e})}}),se,!P&&r.createElement(BC,{id:ce,open:U,keyPath:F},d));return H&&(fe=H(fe,e,{selected:Q,active:ie,open:U,disabled:V})),r.createElement(Wx,{onItemClick:le,mode:"horizontal"===M?"vertical":M,itemIcon:X,expandIcon:G},fe)}));const WC=r.forwardRef((function(e,t){var n,o=e.eventKey,i=e.children,a=Gx(o),c=PC(i,a),s=Kx();return r.useEffect((function(){if(s)return s.registerPath(o,a),function(){s.unregisterPath(o,a)}}),[a]),n=s?c:r.createElement(FC,(0,l.A)({ref:t},e),c),r.createElement(Xx.Provider,{value:a},n)}));function VC(e){var t=e.className,n=e.style,o=r.useContext(Fx).prefixCls;return Kx()?null:r.createElement("li",{role:"separator",className:a()("".concat(o,"-item-divider"),t),style:n})}var qC=["className","title","eventKey","children"],KC=r.forwardRef((function(e,t){var n=e.className,o=e.title,i=(e.eventKey,e.children),c=ni(e,qC),s=r.useContext(Fx).prefixCls,u="".concat(s,"-item-group");return r.createElement("li",(0,l.A)({ref:t,role:"presentation"},c,{onClick:function(e){return e.stopPropagation()},className:a()(u,n)}),r.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"==typeof o?o:void 0},o),r.createElement("ul",{role:"group",className:"".concat(u,"-list")},i))}));const XC=r.forwardRef((function(e,t){var n=e.eventKey,o=PC(e.children,Gx(n));return Kx()?o:r.createElement(KC,(0,l.A)({ref:t},ye(e,["warnKey"])),o)}));var GC=["label","children","key","type","extra"];function YC(e,t,n){var o=t.item,i=t.group,a=t.submenu,c=t.divider;return(e||[]).map((function(e,s){if(e&&"object"===b(e)){var u=e,d=u.label,f=u.children,p=u.key,m=u.type,g=u.extra,h=ni(u,GC),v=null!=p?p:"tmp-".concat(s);return f||"group"===m?"group"===m?r.createElement(i,(0,l.A)({key:v},h,{title:d}),YC(f,t,n)):r.createElement(a,(0,l.A)({key:v},h,{title:d}),YC(f,t,n)):"divider"===m?r.createElement(c,(0,l.A)({key:v},h)):r.createElement(o,(0,l.A)({key:v},h),d,(!!g||0===g)&&r.createElement("span",{className:"".concat(n,"-item-extra")},g))}return null})).filter((function(e){return e}))}function UC(e,t,n,r,o){var i=e,a=w({divider:VC,item:OC,group:XC,submenu:WC},r);return t&&(i=YC(t,a,o)),PC(i,n)}var QC=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ZC=[],JC=r.forwardRef((function(e,t){var n,o=e,i=o.prefixCls,c=void 0===i?"rc-menu":i,s=o.rootClassName,u=o.style,d=o.className,f=o.tabIndex,p=void 0===f?0:f,m=o.items,g=o.children,h=o.direction,v=o.id,b=o.mode,y=void 0===b?"vertical":b,C=o.inlineCollapsed,$=o.disabled,k=o.disabledOverflow,E=o.subMenuOpenDelay,O=void 0===E?.1:E,j=o.subMenuCloseDelay,M=void 0===j?.1:j,I=o.forceSubMenuRender,N=o.defaultOpenKeys,P=o.openKeys,R=o.activeKey,T=o.defaultActiveFirst,A=o.selectable,z=void 0===A||A,_=o.multiple,D=void 0!==_&&_,B=o.defaultSelectedKeys,H=o.selectedKeys,L=o.onSelect,F=o.onDeselect,W=o.inlineIndent,V=void 0===W?24:W,q=o.motion,K=o.defaultMotions,X=o.triggerSubMenuAction,G=void 0===X?"hover":X,Y=o.builtinPlacements,U=o.itemIcon,Q=o.expandIcon,Z=o.overflowedIndicator,J=void 0===Z?"...":Z,ee=o.overflowedIndicatorPopupClassName,te=o.getPopupContainer,ne=o.onClick,re=o.onOpenChange,oe=o.onKeyDown,ie=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),ae=o._internalRenderSubMenuItem,le=o._internalComponents,ce=ni(o,QC),se=Be(r.useMemo((function(){return[UC(g,m,ZC,le,c),UC(g,m,ZC,{},c)]}),[g,m,le]),2),ue=se[0],de=se[1],fe=Be(r.useState(!1),2),pe=fe[0],me=fe[1],ge=r.useRef(),he=function(e){var t=Be(Gn(e,{value:e}),2),n=t[0],o=t[1];return r.useEffect((function(){gC+=1;var e="".concat(mC,"-").concat(gC);o("rc-menu-uuid-".concat(e))}),[]),n}(v),ve="rtl"===h,be=Gn(N,{value:P,postState:function(e){return e||ZC}}),ye=Be(be,2),xe=ye[0],Ce=ye[1],we=function(e){function t(){Ce(e),null==re||re(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,S.flushSync)(t):t()},$e=Be(r.useState(xe),2),ke=$e[0],Ee=$e[1],Oe=r.useRef(!1),je=Be(r.useMemo((function(){return"inline"!==y&&"vertical"!==y||!C?[y,!1]:["vertical",C]}),[y,C]),2),Me=je[0],Ne=je[1],Pe="inline"===Me,Re=Be(r.useState(Me),2),Te=Re[0],Ae=Re[1],ze=Be(r.useState(Ne),2),_e=ze[0],De=ze[1];r.useEffect((function(){Ae(Me),De(Ne),Oe.current&&(Pe?Ce(ke):we(ZC))}),[Me,Ne]);var He=Be(r.useState(0),2),Le=He[0],Fe=He[1],We=Le>=ue.length-1||"horizontal"!==Te||k;r.useEffect((function(){Pe&&Ee(xe)}),[xe]),r.useEffect((function(){return Oe.current=!0,function(){Oe.current=!1}}),[]);var Ve=function(){var e=Be(r.useState({}),2)[1],t=(0,r.useRef)(new Map),n=(0,r.useRef)(new Map),o=Be(r.useState([]),2),i=o[0],a=o[1],l=(0,r.useRef)(0),c=(0,r.useRef)(!1),s=(0,r.useCallback)((function(r,o){var i=dC(o);n.current.set(i,r),t.current.set(r,i),l.current+=1;var a,s=l.current;a=function(){s===l.current&&(c.current||e({}))},Promise.resolve().then(a)}),[]),u=(0,r.useCallback)((function(e,r){var o=dC(r);n.current.delete(o),t.current.delete(e)}),[]),d=(0,r.useCallback)((function(e){a(e)}),[]),f=(0,r.useCallback)((function(e,n){var r=(t.current.get(e)||"").split(uC);return n&&i.includes(r[0])&&r.unshift(fC),r}),[i]),p=(0,r.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return f(e,!0).includes(t)}))}),[f]),m=(0,r.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(uC),o=new Set;return Se(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return r.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:s,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=Se(t.current.keys());return i.length&&e.push(fC),e},getSubPathKeys:m}}(),qe=Ve.registerPath,Ke=Ve.unregisterPath,Xe=Ve.refreshOverflowKeys,Ge=Ve.isSubPathKey,Ye=Ve.getKeyPath,Ue=Ve.getKeys,Qe=Ve.getSubPathKeys,Ze=r.useMemo((function(){return{registerPath:qe,unregisterPath:Ke}}),[qe,Ke]),et=r.useMemo((function(){return{isSubPathKey:Ge}}),[Ge]);r.useEffect((function(){Xe(We?ZC:ue.slice(Le+1).map((function(e){return e.key})))}),[Le,We]);var tt=Be(Gn(R||T&&(null===(n=ue[0])||void 0===n?void 0:n.key),{value:R}),2),nt=tt[0],rt=tt[1],ot=pC((function(e){rt(e)})),it=pC((function(){rt(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:ge.current,focus:function(e){var t,n,r=Ue(),o=sC(r,he),i=o.elements,a=o.key2element,l=o.element2key,c=lC(ge.current,i),s=null!=nt?nt:c[0]?l.get(c[0]):null===(t=ue.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var at=Gn(B||[],{value:H,postState:function(e){return Array.isArray(e)?e:null==e?ZC:[e]}}),lt=Be(at,2),ct=lt[0],st=lt[1],ut=pC((function(e){null==ne||ne(xC(e)),function(e){if(z){var t,n=e.key,r=ct.includes(n);t=D?r?ct.filter((function(e){return e!==n})):[].concat(Se(ct),[n]):[n],st(t);var o=w(w({},e),{},{selectedKeys:t});r?null==F||F(o):null==L||L(o)}!D&&xe.length&&"inline"!==Te&&we(ZC)}(e)})),dt=pC((function(e,t){var n=xe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Te){var r=Qe(e);n=n.filter((function(e){return!r.has(e)}))}Je(xe,n,!0)||we(n,!0)})),ft=function(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){Ie.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var m=r.which;if([].concat(aC,[nC,rC,oC,iC]).includes(m)){var g=a(),h=sC(g,o),v=h,b=v.elements,y=v.key2element,C=v.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),S=C.get(w),$=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===nC)return{inlineTrigger:!0};var s=x(x({},eC,i),tC,a),u=x(x(x(x({},Zx,n?a:i),Jx,n?i:a),tC,l),nC,l),d=x(x(x(x(x(x({},eC,i),tC,a),nC,l),rC,c),Zx,n?l:c),Jx,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,m);if(!$&&m!==oC&&m!==iC)return;(aC.includes(m)||[oC,iC].includes(m))&&r.preventDefault();var k=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=C.get(e);c(r),p(),d.current=Ie((function(){f.current===r&&t.focus()}))}};if([oC,iC].includes(m)||$.sibling||!w){var E,O,j=lC(E=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);O=m===oC?j[0]:m===iC?j[j.length-1]:cC(E,b,w,$.offset),k(O)}else if($.inlineTrigger)s(S);else if($.offset>0)s(S,!0),p(),d.current=Ie((function(){h=sC(g,o);var e=w.getAttribute("aria-controls"),t=cC(document.getElementById(e),h.elements);k(t)}),5);else if($.offset<0){var M=l(S,!0),I=M[M.length-2],N=y.get(I);s(I,!1),k(N)}}null==u||u(r)}}(Te,nt,ve,he,ge,Ue,Ye,rt,(function(e,t){var n=null!=t?t:!xe.includes(e);dt(e,n)}),oe);r.useEffect((function(){me(!0)}),[]);var pt=r.useMemo((function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ae}}),[ie,ae]),mt="horizontal"!==Te||k?ue:ue.map((function(e,t){return r.createElement(Wx,{key:e.key,overflowDisabled:t>Le},e)})),gt=r.createElement(nh,(0,l.A)({id:v,ref:ge,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:OC,className:a()(c,"".concat(c,"-root"),"".concat(c,"-").concat(Te),d,x(x({},"".concat(c,"-inline-collapsed"),_e),"".concat(c,"-rtl"),ve),s),dir:h,style:u,role:"menu",tabIndex:p,data:mt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ue.slice(-t):null;return r.createElement(WC,{eventKey:fC,title:J,disabled:We,internalPopupClose:0===t,popupClassName:ee},n)},maxCount:"horizontal"!==Te||k?nh.INVALIDATE:nh.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Fe(e)},onKeyDown:ft},ce));return r.createElement(Ux.Provider,{value:pt},r.createElement(Dx.Provider,{value:he},r.createElement(Wx,{prefixCls:c,rootClassName:s,mode:Te,openKeys:xe,rtl:ve,disabled:$,motion:pe?q:null,defaultMotions:pe?K:null,activeKey:nt,onActive:ot,onInactive:it,selectedKeys:ct,inlineIndent:V,subMenuOpenDelay:O,subMenuCloseDelay:M,forceSubMenuRender:I,builtinPlacements:Y,triggerSubMenuAction:G,getPopupContainer:te,itemIcon:U,expandIcon:Q,onItemClick:ut,onOpenChange:dt},r.createElement(Yx.Provider,{value:et},gt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(qx.Provider,{value:Ze},de)))))})),ew=JC;ew.Item=OC,ew.SubMenu=WC,ew.ItemGroup=XC,ew.Divider=VC;const tw=ew,nw={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var rw=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:nw}))};const ow=r.forwardRef(rw),iw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var aw=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:iw}))};const lw=r.forwardRef(aw),cw=r.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),sw=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:c,fontSize:s,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:l,lineHeight:yt(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:s,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},uw=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:o,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},dw=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],fw=Vo("Layout",(e=>[sw(e)]),uw,{deprecatedTokens:dw}),pw=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadius:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:yt(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},[`${t}-trigger`]:{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:f,borderEndEndRadius:f,borderEndStartRadius:0,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:f,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:f}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${h}`,borderInlineStart:0}}}}},mw=Vo(["Layout","Sider"],(e=>[pw(e)]),uw,{deprecatedTokens:dw});const gw={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},hw=r.createContext({}),vw=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),bw=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,trigger:i,children:l,defaultCollapsed:c=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:p=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:v,onBreakpoint:b}=e,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"collapsed"in e&&w(e.collapsed)}),[e.collapsed]);const k=(t,n)=>{"collapsed"in e||w(t),null==v||v(t,n)},{getPrefixCls:E}=(0,r.useContext)(Ae),O=E("layout-sider",n),[j,M,I]=mw(O),N=(0,r.useRef)();N.current=e=>{$(e.matches),null==b||b(e.matches),C!==e.matches&&k(e.matches,"responsive")},(0,r.useEffect)((()=>{function e(e){return N.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&h&&h in gw){t=n(`screen and (max-width: ${gw[h]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[h]),(0,r.useEffect)((()=>{const e=vw("ant-sider-");return x.addSider(e),()=>x.removeSider(e)}),[]);const P=()=>{k(!C,"clickTrigger")},R=r.useMemo((()=>({siderCollapsed:C})),[C]);return j(r.createElement(hw.Provider,{value:R},(()=>{const e=ye(y,["collapsed"]),n=C?m:p,c=($=n,!isNaN(parseFloat($))&&isFinite($)?`${n}px`:String(n)),h=0===parseFloat(String(m||0))?r.createElement("span",{onClick:P,className:a()(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${f?"right":"left"}`),style:g},i||r.createElement(ow,null)):null,v={expanded:f?r.createElement(fu,null):r.createElement(lw,null),collapsed:f?r.createElement(lw,null):r.createElement(fu,null)}[C?"collapsed":"expanded"],b=null!==i?h||r.createElement("div",{className:`${O}-trigger`,onClick:P,style:{width:c}},i||v):null,x=Object.assign(Object.assign({},u),{flex:`0 0 ${c}`,maxWidth:c,minWidth:c,width:c}),w=a()(O,`${O}-${s}`,{[`${O}-collapsed`]:!!C,[`${O}-has-trigger`]:d&&null!==i&&!h,[`${O}-below`]:!!S,[`${O}-zero-width`]:0===parseFloat(c)},o,M,I);var $;return r.createElement("aside",Object.assign({className:w},e,{style:x,ref:t}),r.createElement("div",{className:`${O}-children`},l),d||S&&h?b:null)})()))})),yw=bw,xw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Cw=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:xw}))};const ww=r.forwardRef(Cw),Sw=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});const $w=e=>{const{prefixCls:t,className:n,dashed:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{className:n,children:o,icon:i,title:l,danger:c}=e,{prefixCls:u,firstLevel:d,direction:f,disableMenuItemTitleTooltip:p,inlineCollapsed:m}=r.useContext(Sw),{siderCollapsed:g}=r.useContext(hw);let h=l;void 0===l?h=d?o:"":!1===l&&(h="");const v={title:h};g||m||(v.title=null,v.open=!1);const b=s(o).length;let y=r.createElement(OC,Object.assign({},ye(e,["title","icon","danger"]),{className:a()({[`${u}-item-danger`]:c,[`${u}-item-only-child`]:1===(i?b+1:b)},n),title:"string"==typeof l?l:void 0}),Na(i,{className:a()(r.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${u}-item-icon`)}),(e=>{const t=null==o?void 0:o[0],n=r.createElement("span",{className:`${u}-title-content`},o);return(!i||r.isValidElement(o)&&"span"===o.type)&&o&&e&&d&&"string"==typeof t?r.createElement("div",{className:`${u}-inline-collapsed-noicon`},t.charAt(0)):n})(m));return p||(y=r.createElement(qy,Object.assign({},v,{placement:"rtl"===f?"left":"right",overlayClassName:`${u}-inline-collapsed-tooltip`}),y)),y};const Ew=r.createContext(null),Ow=r.forwardRef(((e,t)=>{const{children:n}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oObject.assign(Object.assign({},i),o)),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=function(e){return function(e){return(0,r.isValidElement)(e)&&!(0,c.isFragment)(e)}(e)&&P(e)}(n),s=N(t,l?n.ref:null);return r.createElement(Ew.Provider,{value:a},r.createElement(Mp,{space:!0},l?r.cloneElement(n,{ref:s}):n))})),jw=Ew,Mw=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${yt(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Iw=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${yt(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${yt(n)})`}}}}},Nw=e=>Object.assign({},gr(e)),Pw=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:s,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:h,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:C,dangerItemHoverColor:w,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:k,popupBg:E,itemHoverBg:O,itemActiveBg:j,menuSubMenuBg:M,horizontalItemSelectedColor:I,horizontalItemSelectedBg:N,horizontalItemBorderRadius:P,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Nw(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Nw(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:j}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:j}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:E},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:E},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${yt(s)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:s,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:s,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${yt(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${yt(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${p}`,`opacity ${h} ${p}`].join(",")}}}}}},Rw=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:yt(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:yt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Tw=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:s,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:r,lineHeight:yt(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Rw(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Rw(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${yt(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${yt(e.calc(u).div(2).equal())} - ${yt(s)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:yt(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},fr),{paddingInline:p})}}]},Aw=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zw=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${yt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${yt(a)})`}}}}},_w=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${yt(l)} ${yt(c)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{display:"inline-flex",alignItems:"center",transition:`color ${o}`,"> a:first-child":{flexGrow:1},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Aw(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${yt(e.calc(r).mul(2).equal())} ${yt(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},Aw(e)),zw(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),zw(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${yt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${yt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${yt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${yt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${yt(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Dw=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:C,fontSize:w,controlHeightSM:S,fontSizeLG:$,colorTextLightSolid:k,colorErrorHover:E}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,j=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,M=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new Co(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:j,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:C,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:S-w,collapsedIconSize:$,groupTitleFontSize:w,darkItemDisabledColor:new Co(k).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:k,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${j}px)`:`calc(100% - ${2*M}px)`}},Bw=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Vo("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:h,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),C=ir(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),w=ir(C,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:h,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[_w(C),Mw(C),Tw(C),Pw(C,"light"),Pw(w,"dark"),Iw(C),$u(C),ab(C,"slide-up"),ab(C,"slide-down"),Mm(C,"zoom-big")]}),Dw,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)},Hw=e=>{var t;const{popupClassName:n,icon:o,title:i,theme:l}=e,c=r.useContext(Sw),{prefixCls:s,inlineCollapsed:u,theme:d}=c,f=Gx();let p;if(o){const e=r.isValidElement(i)&&"span"===i.type;p=r.createElement(r.Fragment,null,Na(o,{className:a()(r.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?i:r.createElement("span",{className:`${s}-title-content`},i))}else p=u&&!f.length&&i&&"string"==typeof i?r.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):r.createElement("span",{className:`${s}-title-content`},i);const m=r.useMemo((()=>Object.assign(Object.assign({},c),{firstLevel:!1})),[c]),[g]=Bl("Menu");return r.createElement(Sw.Provider,{value:m},r.createElement(WC,Object.assign({},ye(e,["icon"]),{title:p,popupClassName:a()(s,n,`${s}-${l||d}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};function Lw(e){return null===e||!1===e}const Fw={item:kw,submenu:Hw,divider:$w},Ww=(0,r.forwardRef)(((e,t)=>{var n;const o=r.useContext(jw),i=o||{},{getPrefixCls:l,getPopupContainer:c,direction:s,menu:u}=r.useContext(Ae),d=l(),{prefixCls:f,className:p,style:m,theme:g="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:b,siderCollapsed:y,rootClassName:x,mode:C,selectable:w,onClick:S,overflowedIndicatorPopupClassName:$}=e,k=ye(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ovoid 0!==y?y:b),[b,y]),I={horizontal:{motionName:`${d}-slide-up`},inline:ns(d),other:{motionName:`${d}-zoom-big`}},N=l("menu",f||i.prefixCls),P=rl(N),[R,T,A]=Bw(N,P,!o),z=a()(`${N}-${g}`,null==u?void 0:u.className,p),_=r.useMemo((()=>{var e,t;if("function"==typeof h||Lw(h))return h||null;if("function"==typeof i.expandIcon||Lw(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==u?void 0:u.expandIcon)||Lw(null==u?void 0:u.expandIcon))return(null==u?void 0:u.expandIcon)||null;const n=null!==(e=null!=h?h:null==i?void 0:i.expandIcon)&&void 0!==e?e:null==u?void 0:u.expandIcon;return Na(n,{className:a()(`${N}-submenu-expand-icon`,r.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[h,null==i?void 0:i.expandIcon,null==u?void 0:u.expandIcon,N]),D=r.useMemo((()=>({prefixCls:N,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:g,mode:O,disableMenuItemTitleTooltip:v})),[N,M,s,v,g]);return R(r.createElement(jw.Provider,{value:null},r.createElement(Sw.Provider,{value:D},r.createElement(tw,Object.assign({getPopupContainer:c,overflowedIndicator:r.createElement(ww,null),overflowedIndicatorPopupClassName:a()(N,`${N}-${g}`,$),mode:O,selectable:j,onClick:E},k,{inlineCollapsed:M,style:Object.assign(Object.assign({},null==u?void 0:u.style),m),className:z,prefixCls:N,direction:s,defaultMotions:I,expandIcon:_,ref:t,rootClassName:a()(x,T,i.rootClassName,A,P),_internalComponents:Fw})))))})),Vw=Ww,qw=(0,r.forwardRef)(((e,t)=>{const n=(0,r.useRef)(null),o=r.useContext(hw);return(0,r.useImperativeHandle)(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),r.createElement(Vw,Object.assign({ref:n},e,o))}));qw.Item=kw,qw.SubMenu=Hw,qw.Divider=$w,qw.ItemGroup=XC;const Kw=qw,Xw=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Gw=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Qv},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Jv},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Zv},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:eb}}},My(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},pr(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},hr(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${yt(s)} ${yt(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{display:"flex",alignItems:"center",flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${yt(s)} ${yt(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},hr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${yt(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${yt(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ab(e,"slide-up"),ab(e,"slide-down"),mb(e,"move-up"),mb(e,"move-down"),Mm(e,"zoom-big")]]},Yw=Vo("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=ir(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Gw(i),Xw(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Oy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),ky(e))),{resetStyle:!1}),Uw=e=>{var t;const{menu:n,arrow:o,prefixCls:i,children:l,trigger:c,disabled:s,dropdownRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:p,overlayStyle:m,open:g,onOpenChange:h,visible:v,onVisibleChange:b,mouseEnterDelay:y=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:C=!0,placement:w="",overlay:S,transitionName:$}=e,{getPopupContainer:k,getPrefixCls:E,direction:O,dropdown:j}=r.useContext(Ae);hl();const M=r.useMemo((()=>{const e=E();return void 0!==$?$:w.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[E,w,$]),I=r.useMemo((()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:"rtl"===O?"bottomRight":"bottomLeft"),[w,O]),N=E("dropdown",i),P=rl(N),[R,T,A]=Yw(N,P),[,z]=Fo(),_=r.Children.only(l),D=Na(_,{className:a()(`${N}-trigger`,{[`${N}-rtl`]:"rtl"===O},_.props.className),disabled:null!==(t=_.props.disabled)&&void 0!==t?t:s}),B=s?[]:c,H=!!(null==B?void 0:B.includes("contextMenu")),[L,F]=Gn(!1,{value:null!=g?g:v}),W=qn((e=>{null==h||h(e,{source:"trigger"}),null==b||b(e),F(e)})),V=a()(f,p,T,A,P,null==j?void 0:j.className,{[`${N}-rtl`]:"rtl"===O}),q=Ry({arrowPointAtCenter:"object"==typeof o&&o.pointAtCenter,autoAdjustOverflow:C,offset:z.marginXXS,arrowWidth:o?z.sizePopupArrow:0,borderRadius:z.borderRadius}),K=r.useCallback((()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==h||h(!1,{source:"menu"}),F(!1))}),[null==n?void 0:n.selectable,null==n?void 0:n.multiple]),[X,G]=Bl("Dropdown",null==m?void 0:m.zIndex);let Y=r.createElement(_x,Object.assign({alignPoint:H},ye(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:x,visible:L,builtinPlacements:q,arrow:!!o,overlayClassName:V,prefixCls:N,getPopupContainer:d||k,transitionName:M,trigger:B,overlay:()=>{let e;return e=(null==n?void 0:n.items)?r.createElement(Kw,Object.assign({},n)):"function"==typeof S?S():S,u&&(e=u(e)),e=r.Children.only("string"==typeof e?r.createElement("span",null,e):e),r.createElement(Ow,{prefixCls:`${N}-menu`,rootClassName:a()(A,P),expandIcon:r.createElement("span",{className:`${N}-menu-submenu-arrow`},r.createElement(fu,{className:`${N}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:K,validator:e=>{let{mode:t}=e}},e)},placement:I,onVisibleChange:W,overlayStyle:Object.assign(Object.assign(Object.assign({},null==j?void 0:j.style),m),{zIndex:X})}),D);return X&&(Y=r.createElement(Tl.Provider,{value:G},Y)),R(Y)},Qw=Ng(Uw,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));Uw._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(Qw,Object.assign({},e),r.createElement("span",null));const Zw=Uw,Jw=e=>{let{children:t}=e;const{getPrefixCls:n}=r.useContext(Ae),o=n("breadcrumb");return r.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};Jw.__ANT_BREADCRUMB_SEPARATOR=!0;const eS=Jw;function tS(e,t,n,o){if(null==n)return null;const{className:i,onClick:l}=t,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",children:o,menu:i,overlay:a,dropdownProps:l,href:c}=e,s=(e=>{if(i||a){const n=Object.assign({},l);if(i){const e=i||{},{items:t}=e,o=nS(e,["items"]);n.menu=Object.assign(Object.assign({},o),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:o,label:i,path:a}=e,l=nS(e,["key","title","label","path"]);let s=null!=i?i:o;return a&&(s=r.createElement("a",{href:`${c}${a}`},s)),Object.assign(Object.assign({},l),{key:null!=n?n:t,label:s})}))})}else a&&(n.overlay=a);return r.createElement(Zw,Object.assign({placement:"bottom"},n),r.createElement("span",{className:`${t}-overlay-link`},e,r.createElement(Fb,null)))}return e})(o);return null!=s?r.createElement(r.Fragment,null,r.createElement("li",null,s),n&&r.createElement(eS,null,n)):null},oS=e=>{const{prefixCls:t,children:n,href:o}=e,i=nS(e,["prefixCls","children","href"]),{getPrefixCls:a}=r.useContext(Ae),l=a("breadcrumb",t);return r.createElement(rS,Object.assign({},i,{prefixCls:l}),tS(l,i,n,o))};oS.__ANT_BREADCRUMB_ITEM=!0;const iS=oS,aS=Vo("Breadcrumb",(e=>(e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${yt(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},hr(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${yt(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}})(ir(e,{}))),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS})));var lS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:t}=e,n=lS(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}const sS=e=>{const{prefixCls:t,separator:n="/",style:o,className:i,rootClassName:l,routes:c,items:u,children:d,itemRender:f,params:p={}}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe||(t?t.map(cS):null)),[e,t])}(u,c),$=function(e,t){return(n,r,o,i,a)=>{if(t)return t(n,r,o,i);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,r);return tS(e,n,l,a)}}(y,f);if(S&&S.length>0){const e=[],t=u||c;b=S.map(((o,i)=>{const{path:a,key:l,type:c,menu:s,overlay:u,onClick:d,className:f,separator:m,dropdownProps:g}=o,h=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(p,a);void 0!==h&&e.push(h);const v=null!=l?l:i;if("separator"===c)return r.createElement(eS,{key:v},m);const b={},x=i===S.length-1;s?b.menu=s:u&&(b.overlay=u);let{href:C}=o;return e.length&&void 0!==h&&(C=`#/${e.join("/")}`),r.createElement(rS,Object.assign({key:v},b,ja(o,{data:!0,aria:!0}),{className:f,dropdownProps:g,href:C,separator:x?"":n,onClick:d,prefixCls:y}),$(o,p,t,e,C))}))}else if(d){const e=s(d).length;b=s(d).map(((t,r)=>t?Na(t,{separator:r===e-1?"":n,key:r}):t))}const k=a()(y,null==v?void 0:v.className,{[`${y}-rtl`]:"rtl"===h},i,l,C,w),E=Object.assign(Object.assign({},null==v?void 0:v.style),o);return x(r.createElement("nav",Object.assign({className:k,style:E},m),r.createElement("ol",null,b)))};sS.Item=iS,sS.Separator=eS;const uS=sS;var dS=n(4353),fS=n.n(dS),pS=n(6986),mS=n.n(pS),gS=n(1840),hS=n.n(gS),vS=n(8134),bS=n.n(vS),yS=n(8623),xS=n.n(yS),CS=n(7375),wS=n.n(CS),SS=n(445),$S=n.n(SS);fS().extend($S()),fS().extend(wS()),fS().extend(mS()),fS().extend(hS()),fS().extend(bS()),fS().extend(xS()),fS().extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var kS={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ES=function(e){return kS[e]||e.split("_")[0]},OS=function(){h(!1,"Not match any format. Please help to fire a issue about this.")},jS={getNow:function(){var e=fS()();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return fS()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return fS()().locale(ES(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(ES(e)).weekday(0)},getWeek:function(e,t){return t.locale(ES(e)).week()},getShortWeekDays:function(e){return fS()().locale(ES(e)).localeData().weekdaysMin()},getShortMonths:function(e){return fS()().locale(ES(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(ES(e)).format(n)},parse:function(e,t,n){for(var r=ES(e),o=0;o2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length2&&void 0!==arguments[2]?arguments[2]:[],o=Be(r.useState([!1,!1]),2),i=o[0],a=o[1];return[r.useMemo((function(){return i.map((function(r,o){if(r)return!0;var i=e[o];return!(!i||(n[o]||i)&&(!i||!t(i,{activeIndex:o})))}))}),[e,i,t,n]),function(e,t){a((function(n){return _S(n,t,e)}))}]}function VS(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function qS(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,l=t.use12Hours;return o().useMemo((function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,h=e.dayFormat,v=e.cellDateFormat,b=VS(t,n,r,o,i);return w(w({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:v||h||"D"})}(e,n,r,i,a,l)}),[e,n,r,i,a,l])}function KS(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var XS=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function GS(e){return e&&"string"==typeof e}function YS(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function US(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var c,s,u,d=[i,a,l].some((function(e){return!1===e})),f=[i,a,l].some((function(e){return!0===e})),p=!!d||!f;i=null!==(c=i)&&void 0!==c?c:p,a=null!==(s=a)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function QS(e){var t=e.showTime,n=function(e){var t=DS(e,XS),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===b(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=Be(n,2),o=r[0],i=r[1],a=t&&"object"===b(t)?t:{},l=w(w({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,d=l.showSecond,f=Be(US(YS(s,u,d,c),s,u,d,c),3);return s=f[0],u=f[1],d=f[2],[l,w(w({},l),{},{showHour:s,showMinute:u,showSecond:d,showMillisecond:c}),l.format,i]}function ZS(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=BS(e,o,null),l=[t,n],c=0;c1&&void 0!==arguments[1]&&arguments[1],n=r.useMemo((function(){var n=e?zS(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t]);return n}function g$(e,t){var n=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,c=void 0===l?"rc-picker":l,s=e.styles,u=void 0===s?{}:s,d=e.classNames,f=void 0===d?{}:d,p=e.order,m=void 0===p||p,g=e.components,h=void 0===g?{}:g,v=e.inputRender,y=e.allowClear,x=e.clearIcon,C=e.needConfirm,S=e.multiple,$=e.format,k=e.inputReadOnly,E=e.disabledDate,O=e.minDate,j=e.maxDate,M=e.showTime,I=e.value,N=e.defaultValue,P=e.pickerValue,R=e.defaultPickerValue,T=m$(I),A=m$(N),z=m$(P),_=m$(R),D="date"===a&&M?"datetime":a,B="time"===D||"datetime"===D,H=B||S,L=null!=C?C:B,F=Be(QS(e),4),W=F[0],V=F[1],q=F[2],K=F[3],X=qS(o,V),G=r.useMemo((function(){return ZS(D,q,K,W,X)}),[D,q,K,W,X]),Y=r.useMemo((function(){return w(w({},e),{},{prefixCls:c,locale:X,picker:a,styles:u,classNames:f,order:m,components:w({input:v},h),clearIcon:JS(c,y,x),showTime:G,value:T,defaultValue:A,pickerValue:z,defaultPickerValue:_},null==t?void 0:t())}),[e]),U=function(e,t,n){return r.useMemo((function(){var r=zS(BS(e,t,n)),o=r[0],i="object"===b(o)&&"mask"===o.type?o.format:null;return[r.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,t,n])}(D,X,$),Q=Be(U,2),Z=Q[0],J=Q[1],ee=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(Z,k,S),te=function(e,t,n,r,o){return qn((function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||s$(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||s$(e,t,o,i,a.type))}))}(n,o,E,O,j),ne=function(e,t,n,r){return qn((function(o,i){var a=w({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,c=i&&1===i.activeIndex?"end":"start",s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,c,{from:a.from}))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,m=r.disabledHours,g=r.disabledMinutes,h=r.disabledSeconds,v=u||m,b=d||g,y=f||h,x=e.getHour(o),C=e.getMinute(o),S=e.getSecond(o),$=e.getMillisecond(o);if(v&&v().includes(x))return!0;if(b&&b(x).includes(C))return!0;if(y&&y(x,C).includes(S))return!0;if(p&&p(x,C,S).includes($))return!0}return!1}))}(n,a,te,G);return[r.useMemo((function(){return w(w({},Y),{},{needConfirm:L,inputReadOnly:ee,disabledDate:te})}),[Y,L,ee,te]),D,H,Z,J,ne]}function h$(e,t){var n,r,i,a,l,c,s,u,d,f,p=arguments.length>3?arguments[3]:void 0,m=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,g=(r=p,i=Be(Gn(t||!1,{value:n=m}),2),a=i[0],l=i[1],c=o().useRef(n),s=o().useRef(),u=function(){Ie.cancel(s.current)},d=qn((function(){l(c.current),r&&a!==c.current&&r(c.current)})),f=qn((function(e,t){u(),c.current=e,e||t?d():s.current=Ie(d)})),o().useEffect((function(){return u}),[]),[a,f]),h=Be(g,2),v=h[0],b=h[1];return[v,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!v||b(e,t.force)}]}function v$(e){var t=r.useRef();return r.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function b$(e,t){return r.useMemo((function(){return e||(t?(v(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=Be(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function y$(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=r.useRef(t);o.current=t,Et((function(){if(!e){var t=Ie((function(){o.current(e)}),n);return function(){Ie.cancel(t)}}o.current(e)}),[e])}function x$(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Be(r.useState(0),2),i=o[0],a=o[1],l=Be(r.useState(!1),2),c=l[0],s=l[1],u=r.useRef([]),d=r.useRef(null);return y$(c||n,(function(){c||(u.current=[])})),r.useEffect((function(){c&&u.current.push(i)}),[c,i]),[c,function(e){s(e)},function(e){return e&&(d.current=e),d.current},i,a,function(n){var r=u.current,o=new Set(r.filter((function(e){return n[e]||t[e]}))),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},u.current]}function C$(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var w$=[];function S$(e,t,n,o,i,a,l,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:w$,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:w$,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m="time"===l,g=a||0,h=function(t){var r=e.getNow();return m&&(r=p$(e,r)),s[t]||n[t]||r},v=Be(arguments.length>9&&void 0!==arguments[9]?arguments[9]:w$,2),b=v[0],y=v[1],x=Be(Gn((function(){return h(0)}),{value:b}),2),C=x[0],w=x[1],S=Be(Gn((function(){return h(1)}),{value:y}),2),$=S[0],k=S[1],E=r.useMemo((function(){var t=[C,$][g];return m?t:p$(e,t,u[g])}),[m,C,$,g,e,u]),O=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[w,k][g])(n);var i=[C,$];i[g]=n,!d||s$(e,t,C,i[0],l)&&s$(e,t,$,i[1],l)||d(i,{source:r,range:1===g?"end":"start",mode:o})},j=r.useRef(null);return Ot((function(){if(i&&!s[g]){var r=m?null:e.getNow();if(null!==j.current&&j.current!==g?r=[C,$][1^g]:n[g]?r=0===g?n[0]:function(n,r){if(c){var o={date:"month",week:"month",month:"year",quarter:"year"}[l];if(o&&!s$(e,t,n,r,o))return C$(e,l,r,-1);if("year"===l&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return C$(e,l,r,-1)}return r}(n[0],n[1]):n[1^g]&&(r=n[1^g]),r){f&&e.isAfter(f,r)&&(r=f);var o=c?C$(e,l,r,1):r;p&&e.isAfter(o,p)&&(r=c?C$(e,l,p,-1):p),O(r,"reset")}}}),[i,g,n[g]]),r.useEffect((function(){j.current=i?g:null}),[i,g]),Ot((function(){i&&s&&s[g]&&O(s[g],"reset")}),[i,g]),[E,O]}function $$(e,t){var n=r.useRef(e),o=Be(r.useState({}),2)[1],i=function(e){return e&&void 0!==t?t:n.current};return[i,function(e){n.current=e,o({})},i(!0)]}var k$=[];function E$(e,t,n){return[function(r){return r.map((function(r){return f$(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||a.push({label:AS(c,i),value:c,disabled:s})}return a}function R$(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=n.use12Hours,i=n.hourStep,a=void 0===i?1:i,l=n.minuteStep,c=void 0===l?1:l,s=n.secondStep,u=void 0===s?1:s,d=n.millisecondStep,f=void 0===d?100:d,p=n.hideDisabledOptions,m=n.disabledTime,g=n.disabledHours,h=n.disabledMinutes,v=n.disabledSeconds,b=r.useMemo((function(){return t||e.getNow()}),[t,e]),y=r.useCallback((function(e){var t=(null==m?void 0:m(e))||{};return[t.disabledHours||g||N$,t.disabledMinutes||h||N$,t.disabledSeconds||v||N$,t.disabledMilliseconds||N$]}),[m,g,h,v]),x=Be(r.useMemo((function(){return y(b)}),[b,y]),4),C=x[0],S=x[1],$=x[2],k=x[3],E=r.useCallback((function(e,t,n,r){var i=P$(0,23,a,p,e());return[o?i.map((function(e){return w(w({},e),{},{label:AS(e.value%12||12,2)})})):i,function(e){return P$(0,59,c,p,t(e))},function(e,t){return P$(0,59,u,p,n(e,t))},function(e,t,n){return P$(0,999,f,p,r(e,t,n),3)}]}),[p,a,o,f,c,u]),O=Be(r.useMemo((function(){return E(C,S,$,k)}),[E,C,S,$,k]),4),j=O[0],M=O[1],I=O[2],N=O[3];return[function(t,n){var r=function(){return j},o=M,i=I,a=N;if(n){var l=Be(y(n),4),c=l[0],s=l[1],u=l[2],d=l[3],f=Be(E(c,s,u,d),4),p=f[0];r=function(){return p},o=f[1],i=f[2],a=f[3]}var m=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=Se(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,a=i[t](a,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),a}(t,r,o,i,a,e);return m},j,M,I,N]}function T$(e){var t=e.mode,n=e.internalMode,o=e.renderExtraFooter,i=e.showNow,l=e.showTime,c=e.onSubmit,s=e.onNow,u=e.invalid,d=e.needConfirm,f=e.generateConfig,p=e.disabledDate,m=r.useContext(PS),g=m.prefixCls,h=m.locale,v=m.button,b=void 0===v?"button":v,y=f.getNow(),x=Be(R$(f,l,y),1)[0],C=null==o?void 0:o(t),w=p(y,{type:t}),S="".concat(g,"-now"),$="".concat(S,"-btn"),k=i&&r.createElement("li",{className:S},r.createElement("a",{className:a()($,w&&"".concat($,"-disabled")),"aria-disabled":w,onClick:function(){if(!w){var e=x(y);s(e)}}},"date"===n?h.today:h.now)),E=d&&r.createElement("li",{className:"".concat(g,"-ok")},r.createElement(b,{disabled:u,onClick:c},h.ok)),O=(k||E)&&r.createElement("ul",{className:"".concat(g,"-ranges")},k,E);return C||O?r.createElement("div",{className:"".concat(g,"-footer")},C&&r.createElement("div",{className:"".concat(g,"-footer-extra")},C),O):null}function A$(e,t,n){return function(r,o){var i=r.findIndex((function(r){return s$(e,t,r,o,n)}));if(-1===i)return[].concat(Se(r),[o]);var a=Se(r);return a.splice(i,1),a}}var z$=r.createContext(null);function _$(){return r.useContext(z$)}function D$(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,h=e.nextIcon,v=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:h,superPrevIcon:v,superNextIcon:b},y]}var B$=r.createContext({});function H$(e){for(var t=e.rowNum,n=e.colNum,o=e.baseDate,i=e.getCellDate,l=e.prefixColumn,c=e.rowClassName,s=e.titleFormat,u=e.getCellText,d=e.getCellClassName,f=e.headerCells,p=e.cellSelection,m=void 0===p||p,g=e.disabledDate,h=_$(),v=h.prefixCls,b=h.panelType,y=h.now,C=h.disabledDate,S=h.cellRender,$=h.onHover,k=h.hoverValue,E=h.hoverRangeValue,O=h.generateConfig,j=h.values,M=h.locale,I=h.onSelect,N=g||C,P="".concat(v,"-cell"),R=r.useContext(B$).onCellDblClick,T=[],A=0;A1&&(a=t.addDate(a,-7)),a}(i.locale,c,E),j=c.getMonth(s),M=(void 0===v?C:v)?function(e){var t=null==m?void 0:m(e,{type:"week"});return r.createElement("td",{key:"week",className:a()(y,"".concat(y,"-week"),x({},"".concat(y,"-disabled"),t)),onClick:function(){t||g(e)},onMouseEnter:function(){t||null==h||h(e)},onMouseLeave:function(){t||null==h||h(null)}},r.createElement("div",{className:"".concat(y,"-inner")},c.locale.getWeek(i.locale,e)))}:null,I=[],N=i.shortWeekDays||(c.locale.getShortWeekDays?c.locale.getShortWeekDays(i.locale):[]);M&&I.push(r.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var P=0;P<7;P+=1)I.push(r.createElement("th",{key:P},N[(P+k)%7]));var R=i.shortMonths||(c.locale.getShortMonths?c.locale.getShortMonths(i.locale):[]),T=r.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){d("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},f$(s,{locale:i,format:i.yearFormat,generateConfig:c})),A=r.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){d("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?f$(s,{locale:i,format:i.monthFormat,generateConfig:c}):R[j]),z=i.monthBeforeYear?[A,T]:[T,A];return r.createElement(z$.Provider,{value:S},r.createElement("div",{className:a()(b,v&&"".concat(b,"-show-week"))},r.createElement(F$,{offset:function(e){return c.addMonth(s,e)},superOffset:function(e){return c.addYear(s,e)},onChange:u,getStart:function(e){return c.setDate(e,1)},getEnd:function(e){var t=c.setDate(e,1);return t=c.addMonth(t,1),c.addDate(t,-1)}},z),r.createElement(H$,(0,l.A)({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:O,headerCells:I,getCellDate:function(e,t){return c.addDate(e,t)},getCellText:function(e){return f$(e,{locale:i,format:i.cellDateFormat,generateConfig:c})},getCellClassName:function(e){return x(x({},"".concat(t,"-cell-in-view"),o$(c,e,s)),"".concat(t,"-cell-today"),i$(c,e,$))},prefixColumn:M,cellSelection:!C}))))}var V$=1/3;function q$(e){var t=e.units,n=e.value,o=e.optionalValue,i=e.type,l=e.onChange,c=e.onHover,s=e.onDblClick,u=e.changeOnScroll,d=_$(),f=d.prefixCls,p=d.cellRender,m=d.now,g=d.locale,h="".concat(f,"-time-panel"),v="".concat(f,"-time-panel-cell"),b=r.useRef(null),y=r.useRef(),C=function(){clearTimeout(y.current)},w=function(e,t){var n=r.useRef(!1),o=r.useRef(null),i=r.useRef(null),a=function(){Ie.cancel(o.current),n.current=!1},l=r.useRef();return[qn((function(){var r=e.current;if(i.current=null,l.current=0,r){var c=r.querySelector('[data-value="'.concat(t,'"]')),s=r.querySelector("li");c&&s&&function e(){a(),n.current=!0,l.current+=1;var t=r.scrollTop,u=s.offsetTop,d=c.offsetTop,f=d-u;if(0===d&&c!==s||!os(r))l.current<=5&&(o.current=Ie(e));else{var p=t+(f-t)*V$,m=Math.abs(f-p);if(null!==i.current&&i.current1&&void 0!==arguments[1]&&arguments[1];ie(e),null==y||y(e),t&&ae(e)},ce=function(e,t){G(e),t&&le(t),ae(t,e)},se=r.useMemo((function(){var e,t;if(Array.isArray(j)){var n=Be(j,2);e=n[0],t=n[1]}else e=j;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null}),[j,i]),ue=FS(M,I,N),de=R[Y]||Y$[Y]||W$,fe=r.useContext(B$),pe=r.useMemo((function(){return w(w({},fe),{},{hideHeader:T})}),[fe,T]),me="".concat(A,"-panel"),ge=DS(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return r.createElement(B$.Provider,{value:pe},r.createElement("div",{ref:z,tabIndex:d,className:a()(me,x({},"".concat(me,"-rtl"),"rtl"===c))},r.createElement(de,(0,l.A)({},ge,{showTime:V,prefixCls:A,locale:F,generateConfig:i,onModeChange:ce,pickerValue:oe,onPickerValueChange:function(e){le(e,!0)},value:ee[0],onSelect:function(e){if(ne(e),le(e),X!==k){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(Se(n),["week"]),date:[].concat(Se(n),["date"])}[k]||n,o=r.indexOf(X),i=r[o+1];i&&ce(i,e)}},values:ee,cellRender:ue,hoverRangeValue:se,hoverValue:O}))))}const Q$=r.memo(r.forwardRef(U$));function Z$(e){var t=e.picker,n=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,c=e.onSubmit,s=e.range,u=e.hoverValue,d=r.useContext(PS),f=d.prefixCls,p=d.generateConfig,m=r.useCallback((function(e,n){return C$(p,t,e,n)}),[p,t]),g=r.useMemo((function(){return m(o,1)}),[o,m]),h={onCellDblClick:function(){a&&c()}},v="time"===t,b=w(w({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?b.hoverRangeValue=u:b.hoverValue=u,n?r.createElement("div",{className:"".concat(f,"-panels")},r.createElement(B$.Provider,{value:w(w({},h),{},{hideNext:!0})},r.createElement(Q$,b)),r.createElement(B$.Provider,{value:w(w({},h),{},{hidePrev:!0})},r.createElement(Q$,(0,l.A)({},b,{pickerValue:g,onPickerValueChange:function(e){i(m(e,-1))}})))):r.createElement(B$.Provider,{value:w({},h)},r.createElement(Q$,b))}function J$(e){return"function"==typeof e?e():e}function ek(e){var t=e.prefixCls,n=e.presets,o=e.onClick,i=e.onHover;return n.length?r.createElement("div",{className:"".concat(t,"-presets")},r.createElement("ul",null,n.map((function(e,t){var n=e.label,a=e.value;return r.createElement("li",{key:t,onClick:function(){o(J$(a))},onMouseEnter:function(){i(J$(a))},onMouseLeave:function(){i(null)}},n)})))):null}function tk(e){var t=e.panelRender,n=e.internalMode,o=e.picker,i=e.showNow,c=e.range,s=e.multiple,u=e.activeOffset,d=void 0===u?0:u,f=e.placement,p=e.presets,m=e.onPresetHover,g=e.onPresetSubmit,h=e.onFocus,v=e.onBlur,b=e.onPanelMouseDown,y=e.direction,C=e.value,w=e.onSelect,S=e.isInvalid,$=e.defaultOpenValue,k=e.onOk,E=e.onSubmit,O=r.useContext(PS).prefixCls,j="".concat(O,"-panel"),M="rtl"===y,I=r.useRef(null),N=r.useRef(null),P=Be(r.useState(0),2),R=P[0],T=P[1],A=Be(r.useState(0),2),z=A[0],_=A[1];function D(e){return e.filter((function(e){return e}))}r.useEffect((function(){if(c){var e,t=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0;_(d<=R-t?0:d+t-R)}}),[R,d,c]);var B=r.useMemo((function(){return D(zS(C))}),[C]),H="time"===o&&!B.length,L=r.useMemo((function(){return H?D([$]):B}),[H,B,$]),F=H?$:B,W=r.useMemo((function(){return!L.length||L.some((function(e){return S(e)}))}),[L,S]),V=r.createElement("div",{className:"".concat(O,"-panel-layout")},r.createElement(ek,{prefixCls:O,presets:p,onClick:g,onHover:m}),r.createElement("div",null,r.createElement(Z$,(0,l.A)({},e,{value:F})),r.createElement(T$,(0,l.A)({},e,{showNow:!s&&i,invalid:W,onSubmit:function(){H&&w($),k(),E()}}))));t&&(V=t(V));var q="".concat(j,"-container"),K="marginLeft",X="marginRight",G=r.createElement("div",{onMouseDown:b,tabIndex:-1,className:a()(q,"".concat(O,"-").concat(n,"-panel-container")),style:x(x({},M?X:K,z),M?K:X,"auto"),onFocus:h,onBlur:v},V);if(c){var Y=NS(IS(f,M),M);G=r.createElement("div",{onMouseDown:b,ref:N,className:a()("".concat(O,"-range-wrapper"),"".concat(O,"-").concat(o,"-range-wrapper"))},r.createElement("div",{ref:I,className:"".concat(O,"-range-arrow"),style:x({},Y,d)}),r.createElement(be,{onResize:function(e){e.offsetWidth&&T(e.offsetWidth)}},G))}return G}function nk(e,t){var n=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,c=e.inputReadOnly,s=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,m=e.onInputChange,g=e.onInvalid,h=e.open,v=e.onOpenChange,b=e.onKeyDown,y=e.onChange,x=e.activeHelp,C=e.name,S=e.autoComplete,$=e.id,k=e.value,E=e.invalid,O=e.placeholder,j=e.disabled,M=e.activeIndex,I=e.allHelp,N=e.picker,P=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},R=n[0],T=r.useCallback((function(e){return f$(e,{locale:a,format:R,generateConfig:i})}),[a,i,R]),A=r.useMemo((function(){return k.map(T)}),[k,T]),z=r.useMemo((function(){var e="time"===N?8:10,t="function"==typeof R?R(i.getNow()).length:R.length;return Math.max(e,t)+2}),[R,N,i]),_=function(e){for(var t=0;t=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=l(1);break;case"ArrowDown":n="",r=l(-1);break;default:isNaN(Number(t))||(r=n=D+t)}if(null!==n&&(B(n),n.length>=o&&(a(1),B(""))),null!==r){var c=K.slice(0,Q)+AS(r,o)+K.slice(Z);ee(c.slice(0,s.length))}q({})},onMouseDown:function(){te.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=Y.getMaskCellIndex(t);F(n),q({}),null==k||k(e),te.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");u(t)&&ee(t)}}:{};return r.createElement("div",{ref:X,className:a()(I,x(x({},"".concat(I,"-active"),n&&i),"".concat(I,"-placeholder"),f))},r.createElement(M,(0,l.A)({ref:G,"aria-invalid":b,autoComplete:"off"},C,{onKeyDown:re,onBlur:ne},ie,{value:K,onChange:function(e){if(!s){var t=e.target.value;J(t),z(t),d(t)}}})),r.createElement(lk,{type:"suffix",icon:c}),y)}));const pk=fk;var mk=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],gk=["index"];function hk(e,t){var n=e.id,o=e.clearIcon,i=e.suffixIcon,c=e.separator,s=void 0===c?"~":c,u=e.activeIndex,d=(e.activeHelp,e.allHelp,e.focused),f=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),p=e.className,m=e.style,g=e.onClick,h=e.onClear,v=e.value,y=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),C=e.invalid,S=(e.inputReadOnly,e.direction),$=(e.onOpenChange,e.onActiveOffset),k=e.placement,E=e.onMouseDown,O=(e.required,e["aria-required"],e.autoFocus),j=ni(e,mk),M="rtl"===S,I=r.useContext(PS).prefixCls,N=r.useMemo((function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),P=r.useRef(),R=r.useRef(),T=r.useRef(),A=function(e){var t;return null===(t=[R,T][e])||void 0===t?void 0:t.current};r.useImperativeHandle(t,(function(){return{nativeElement:P.current,focus:function(e){if("object"===b(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=ni(n,gk);null===(t=A(o))||void 0===t||t.focus(i)}else{var a;null===(a=A(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=A(0))||void 0===e||e.blur(),null===(t=A(1))||void 0===t||t.blur()}}}));var z=ok(j),_=r.useMemo((function(){return Array.isArray(f)?f:[f,f]}),[f]),D=Be(nk(w(w({},e),{},{id:N,placeholder:_})),1)[0],B=IS(k,M),H=NS(B,M),L=null==B?void 0:B.toLowerCase().endsWith("right"),F=Be(r.useState({position:"absolute",width:0}),2),W=F[0],V=F[1],q=qn((function(){var e=A(u);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,i=(null==o?void 0:o.offsetWidth)||0,a=L?i-n-r:r;V((function(e){return w(w({},e),{},x({width:n},H,a))})),$(a)}}));r.useEffect((function(){q()}),[u]);var K=o&&(v[0]&&!y[0]||v[1]&&!y[1]),X=O&&!y[0],G=O&&!X&&!y[1];return r.createElement(be,{onResize:q},r.createElement("div",(0,l.A)({},z,{className:a()(I,"".concat(I,"-range"),x(x(x(x({},"".concat(I,"-focused"),d),"".concat(I,"-disabled"),y.every((function(e){return e}))),"".concat(I,"-invalid"),C.some((function(e){return e}))),"".concat(I,"-rtl"),M),p),style:m,ref:P,onClick:g,onMouseDown:function(e){var t=e.target;t!==R.current.inputElement&&t!==T.current.inputElement&&e.preventDefault(),null==E||E(e)}}),r.createElement(pk,(0,l.A)({ref:R},D(0),{autoFocus:X,"date-range":"start"})),r.createElement("div",{className:"".concat(I,"-range-separator")},s),r.createElement(pk,(0,l.A)({ref:T},D(1),{autoFocus:G,"date-range":"end"})),r.createElement("div",{className:"".concat(I,"-active-bar"),style:W}),r.createElement(lk,{type:"suffix",icon:i}),K&&r.createElement(ck,{icon:o,onClear:h})))}const vk=r.forwardRef(hk);function bk(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function yk(e){return 1===e?"end":"start"}function xk(e,t){var n=g$(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:bk(t,!1),allowEmpty:bk(n,!1)}})),o=Be(n,6),i=o[0],a=o[1],c=o[2],s=o[3],u=o[4],d=o[5],f=i.prefixCls,p=i.styles,m=i.classNames,g=i.placement,h=i.defaultValue,v=i.value,b=i.needConfirm,y=i.onKeyDown,x=i.disabled,C=i.allowEmpty,S=i.disabledDate,$=i.minDate,k=i.maxDate,E=i.defaultOpen,O=i.open,j=i.onOpenChange,M=i.locale,I=i.generateConfig,N=i.picker,P=i.showNow,R=i.showToday,T=i.showTime,A=i.mode,z=i.onPanelChange,_=i.onCalendarChange,D=i.onOk,B=i.defaultPickerValue,H=i.pickerValue,L=i.onPickerValueChange,F=i.inputReadOnly,W=i.suffixIcon,V=i.onFocus,q=i.onBlur,K=i.presets,X=i.ranges,G=i.components,Y=i.cellRender,U=i.dateRender,Q=i.monthCellRender,Z=i.onClick,J=v$(t),ee=Be(h$(O,E,x,j),2),te=ee[0],ne=ee[1],re=function(e,t){!x.some((function(e){return!e}))&&e||ne(e,t)},oe=Be(j$(I,M,s,!0,!1,h,v,_,D),5),ie=oe[0],ae=oe[1],le=oe[2],ce=oe[3],se=oe[4],ue=le(),de=Be(x$(x,C,te),7),fe=de[0],pe=de[1],me=de[2],ge=de[3],he=de[4],ve=de[5],be=de[6],xe=function(e,t){pe(!0),null==V||V(e,{range:yk(null!=t?t:ge)})},Ce=function(e,t){pe(!1),null==q||q(e,{range:yk(null!=t?t:ge)})},we=r.useMemo((function(){if(!T)return null;var e=T.disabledTime,t=e?function(t){var n=yk(ge),r=HS(ue,be,ge);return e(t,n,{from:r})}:void 0;return w(w({},T),{},{disabledTime:t})}),[T,ge,ue,be]),$e=Be(Gn([N,N],{value:A}),2),ke=$e[0],Ee=$e[1],Oe=ke[ge]||N,je="date"===Oe&&we?"datetime":Oe,Me=je===N&&"time"!==je,Ie=I$(N,Oe,P,R,!0),Ne=Be(M$(i,ie,ae,le,ce,x,s,fe,te,d),2),Pe=Ne[0],Re=Ne[1],Te=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,c){var s=Be(e,2),u=s[0],d=s[1],f=w(w({},c),{},{from:HS(e,n)});return!(1!==a||!t[0]||!u||s$(r,o,u,l,f.type)||!r.isAfter(u,l))||!(0!==a||!t[1]||!d||s$(r,o,d,l,f.type)||!r.isAfter(l,d))||(null==i?void 0:i(l,f))}}(ue,x,be,I,M,S),Ae=Be(WS(ue,d,C),2),ze=Ae[0],_e=Ae[1],De=Be(S$(I,M,ue,ke,te,ge,a,Me,B,H,null==we?void 0:we.defaultOpenValue,L,$,k),2),He=De[0],Le=De[1],Fe=qn((function(e,t,n){var r=_S(ke,ge,t);if(r[0]===ke[0]&&r[1]===ke[1]||Ee(r),z&&!1!==n){var o=Se(ue);e&&(o[ge]=e),z(o,r)}})),We=function(e,t){return _S(ue,t,e)},Ve=function(e,t){var n=ue;e&&(n=We(e,ge));var r=ve(n);ce(n),Pe(ge,null===r),null===r?re(!1,{force:!0}):t||J.current.focus({index:r})},qe=Be(r.useState(null),2),Ke=qe[0],Xe=qe[1],Ge=Be(r.useState(null),2),Ye=Ge[0],Ue=Ge[1],Qe=r.useMemo((function(){return Ye||ue}),[ue,Ye]);r.useEffect((function(){te||Ue(null)}),[te]);var Ze=Be(r.useState(0),2),Je=Ze[0],et=Ze[1],tt=b$(K,X),nt=FS(Y,U,Q,yk(ge)),rt=ue[ge]||null,ot=qn((function(e){return d(e,{activeIndex:ge})})),it=r.useMemo((function(){var e=ja(i,!1);return ye(i,[].concat(Se(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[i]),at=r.createElement(tk,(0,l.A)({},it,{showNow:Ie,showTime:we,range:!0,multiplePanel:Me,activeOffset:Je,placement:g,disabledDate:Te,onFocus:function(e){re(!0),xe(e)},onBlur:Ce,onPanelMouseDown:function(){me("panel")},picker:N,mode:Oe,internalMode:je,onPanelChange:Fe,format:u,value:rt,isInvalid:ot,onChange:null,onSelect:function(e){var t=_S(ue,ge,e);ce(t),b||c||a!==je||Ve(e)},pickerValue:He,defaultOpenValue:zS(null==T?void 0:T.defaultOpenValue)[ge],onPickerValueChange:Le,hoverValue:Qe,onHover:function(e){Ue(e?We(e,ge):null),Xe("cell")},needConfirm:b,onSubmit:Ve,onOk:se,presets:tt,onPresetHover:function(e){Ue(e),Xe("preset")},onPresetSubmit:function(e){Re(e)&&re(!1,{force:!0})},onNow:function(e){Ve(e)},cellRender:nt})),lt=r.useMemo((function(){return{prefixCls:f,locale:M,generateConfig:I,button:G.button,input:G.input}}),[f,M,I,G.button,G.input]);return Ot((function(){te&&void 0!==ge&&Fe(null,N,!1)}),[te,ge,N]),Ot((function(){var e=me();te||"input"!==e||(re(!1),Ve(null,!0)),te||!c||b||"panel"!==e||(re(!0),Ve())}),[te]),r.createElement(PS.Provider,{value:lt},r.createElement(TS,(0,l.A)({},LS(i),{popupElement:at,popupStyle:p.popup,popupClassName:m.popup,visible:te,onClose:function(){re(!1)},range:!0}),r.createElement(vk,(0,l.A)({},i,{ref:J,suffixIcon:W,activeIndex:fe||te?ge:null,activeHelp:!!Ye,allHelp:!!Ye&&"preset"===Ke,focused:fe,onFocus:function(e,t){me("input"),re(!0,{inherit:!0}),ge!==t&&te&&!b&&c&&Ve(null,!0),he(t),xe(e,t)},onBlur:function(e,t){if(re(!1),!b&&"input"===me()){var n=ve(ue);Pe(ge,null===n)}Ce(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Ve(null,!0),null==y||y(e,t)},onSubmit:Ve,value:Qe,maskFormat:u,onChange:function(e,t){var n=We(e,t);ce(n)},onInputChange:function(){me("input")},format:s,inputReadOnly:F,disabled:x,open:te,onOpenChange:re,onClick:function(e){var t,n=e.target.getRootNode();if(!J.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=x.findIndex((function(e){return!e}));r>=0&&J.current.focus({index:r})}re(!0),null==Z||Z(e)},onClear:function(){Re(null),re(!1,{force:!0})},invalid:ze,onInvalid:_e,onActiveOffset:et}))))}const Ck=r.forwardRef(xk);function wk(e){var t=e.prefixCls,n=e.value,o=e.onRemove,i=e.removeIcon,l=void 0===i?"×":i,c=e.formatDate,s=e.disabled,u=e.maxTagCount,d=e.placeholder,f="".concat(t,"-selector"),p="".concat(t,"-selection"),m="".concat(p,"-overflow");function g(e,t){return r.createElement("span",{className:a()("".concat(p,"-item")),title:"string"==typeof e?e:null},r.createElement("span",{className:"".concat(p,"-item-content")},e),!s&&t&&r.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(p,"-item-remove")},l))}return r.createElement("div",{className:f},r.createElement(nh,{prefixCls:m,data:n,renderItem:function(e){return g(c(e),(function(t){t&&t.stopPropagation(),o(e)}))},renderRest:function(e){return g("+ ".concat(e.length," ..."))},itemKey:function(e){return c(e)},maxCount:u}),!n.length&&r.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var Sk=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function $k(e,t){e.id;var n=e.open,o=e.clearIcon,i=e.suffixIcon,c=(e.activeHelp,e.allHelp,e.focused),s=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),u=e.generateConfig,d=e.placeholder,f=e.className,p=e.style,m=e.onClick,g=e.onClear,h=e.internalPicker,v=e.value,b=e.onChange,y=e.onSubmit,C=(e.onInputChange,e.multiple),S=e.maxTagCount,$=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),k=e.invalid,E=(e.inputReadOnly,e.direction),O=(e.onOpenChange,e.onMouseDown),j=(e.required,e["aria-required"],e.autoFocus),M=e.removeIcon,I=ni(e,Sk),N="rtl"===E,P=r.useContext(PS).prefixCls,R=r.useRef(),T=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:R.current,focus:function(e){var t;null===(t=T.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()}}}));var A=ok(I),z=Be(nk(w(w({},e),{},{onChange:function(e){b([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:c}})),2),_=z[0],D=z[1],B=!(!o||!v.length||$),H=C?r.createElement(r.Fragment,null,r.createElement(wk,{prefixCls:P,value:v,onRemove:function(e){var t=v.filter((function(t){return t&&!s$(u,s,t,e,h)}));b(t),n||y()},formatDate:D,maxTagCount:S,disabled:$,removeIcon:M,placeholder:d}),r.createElement("input",{className:"".concat(P,"-multiple-input"),value:v.map(D).join(","),ref:T,readOnly:!0,autoFocus:j}),r.createElement(lk,{type:"suffix",icon:i}),B&&r.createElement(ck,{icon:o,onClear:g})):r.createElement(pk,(0,l.A)({ref:T},_(),{autoFocus:j,suffixIcon:i,clearIcon:B&&r.createElement(ck,{icon:o,onClear:g}),showActiveCls:!1}));return r.createElement("div",(0,l.A)({},A,{className:a()(P,x(x(x(x(x({},"".concat(P,"-multiple"),C),"".concat(P,"-focused"),c),"".concat(P,"-disabled"),$),"".concat(P,"-invalid"),k),"".concat(P,"-rtl"),N),f),style:p,ref:R,onClick:m,onMouseDown:function(e){var t;e.target!==(null===(t=T.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==O||O(e)}}),H)}const kk=r.forwardRef($k);function Ek(e,t){var n=Be(g$(e),6),o=n[0],i=n[1],a=n[2],c=n[3],s=n[4],u=n[5],d=o,f=d.prefixCls,p=d.styles,m=d.classNames,g=d.order,h=d.defaultValue,v=d.value,b=d.needConfirm,y=d.onChange,x=d.onKeyDown,C=d.disabled,S=d.disabledDate,$=d.minDate,k=d.maxDate,E=d.defaultOpen,O=d.open,j=d.onOpenChange,M=d.locale,I=d.generateConfig,N=d.picker,P=d.showNow,R=d.showToday,T=d.showTime,A=d.mode,z=d.onPanelChange,_=d.onCalendarChange,D=d.onOk,B=d.multiple,H=d.defaultPickerValue,L=d.pickerValue,F=d.onPickerValueChange,W=d.inputReadOnly,V=d.suffixIcon,q=d.removeIcon,K=d.onFocus,X=d.onBlur,G=d.presets,Y=d.components,U=d.cellRender,Q=d.dateRender,Z=d.monthCellRender,J=d.onClick,ee=v$(t);function te(e){return null===e?null:B?e:e[0]}var ne=A$(I,M,i),re=Be(h$(O,E,[C],j),2),oe=re[0],ie=re[1],ae=Be(j$(I,M,c,!1,g,h,v,(function(e,t,n){if(_){var r=w({},n);delete r.range,_(te(e),te(t),r)}}),(function(e){null==D||D(te(e))})),5),le=ae[0],ce=ae[1],se=ae[2],ue=ae[3],de=ae[4],fe=se(),pe=Be(x$([C]),4),me=pe[0],ge=pe[1],he=pe[2],ve=pe[3],be=function(e){ge(!0),null==K||K(e,{})},xe=function(e){ge(!1),null==X||X(e,{})},Ce=Be(Gn(N,{value:A}),2),we=Ce[0],$e=Ce[1],ke="date"===we&&T?"datetime":we,Ee=I$(N,we,P,R),Oe=y&&function(e,t){y(te(e),te(t))},je=Be(M$(w(w({},o),{},{onChange:Oe}),le,ce,se,ue,[],c,me,oe,u),2)[1],Me=Be(WS(fe,u),2),Ie=Me[0],Ne=Me[1],Pe=r.useMemo((function(){return Ie.some((function(e){return e}))}),[Ie]),Re=Be(S$(I,M,fe,[we],oe,ve,i,!1,H,L,zS(null==T?void 0:T.defaultOpenValue),(function(e,t){if(F){var n=w(w({},t),{},{mode:t.mode[0]});delete n.range,F(e[0],n)}}),$,k),2),Te=Re[0],Ae=Re[1],ze=qn((function(e,t,n){if($e(t),z&&!1!==n){var r=e||fe[fe.length-1];z(r,t)}})),_e=function(){je(se()),ie(!1,{force:!0})},De=Be(r.useState(null),2),He=De[0],Le=De[1],Fe=Be(r.useState(null),2),We=Fe[0],Ve=Fe[1],qe=r.useMemo((function(){var e=[We].concat(Se(fe)).filter((function(e){return e}));return B?e:e.slice(0,1)}),[fe,We,B]),Ke=r.useMemo((function(){return!B&&We?[We]:fe.filter((function(e){return e}))}),[fe,We,B]);r.useEffect((function(){oe||Ve(null)}),[oe]);var Xe=b$(G),Ge=function(e){var t=B?ne(se(),e):[e];je(t)&&!B&&ie(!1,{force:!0})},Ye=FS(U,Q,Z),Ue=r.useMemo((function(){var e=ja(o,!1);return w(w({},ye(o,[].concat(Se(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:o.multiple})}),[o]),Qe=r.createElement(tk,(0,l.A)({},Ue,{showNow:Ee,showTime:T,disabledDate:S,onFocus:function(e){ie(!0),be(e)},onBlur:xe,picker:N,mode:we,internalMode:ke,onPanelChange:ze,format:s,value:fe,isInvalid:u,onChange:null,onSelect:function(e){he("panel");var t=B?ne(se(),e):[e];ue(t),b||a||i!==ke||_e()},pickerValue:Te,defaultOpenValue:null==T?void 0:T.defaultOpenValue,onPickerValueChange:Ae,hoverValue:qe,onHover:function(e){Ve(e),Le("cell")},needConfirm:b,onSubmit:_e,onOk:de,presets:Xe,onPresetHover:function(e){Ve(e),Le("preset")},onPresetSubmit:Ge,onNow:function(e){Ge(e)},cellRender:Ye})),Ze=r.useMemo((function(){return{prefixCls:f,locale:M,generateConfig:I,button:Y.button,input:Y.input}}),[f,M,I,Y.button,Y.input]);return Ot((function(){oe&&void 0!==ve&&ze(null,N,!1)}),[oe,ve,N]),Ot((function(){var e=he();oe||"input"!==e||(ie(!1),_e()),oe||!a||b||"panel"!==e||(ie(!0),_e())}),[oe]),r.createElement(PS.Provider,{value:Ze},r.createElement(TS,(0,l.A)({},LS(o),{popupElement:Qe,popupStyle:p.popup,popupClassName:m.popup,visible:oe,onClose:function(){ie(!1)}}),r.createElement(kk,(0,l.A)({},o,{ref:ee,suffixIcon:V,removeIcon:q,activeHelp:!!We,allHelp:!!We&&"preset"===He,focused:me,onFocus:function(e){he("input"),ie(!0,{inherit:!0}),be(e)},onBlur:function(e){ie(!1),xe(e)},onKeyDown:function(e,t){"Tab"===e.key&&_e(),null==x||x(e,t)},onSubmit:_e,value:Ke,maskFormat:s,onChange:function(e){ue(e)},onInputChange:function(){he("input")},internalPicker:i,format:c,inputReadOnly:W,disabled:C,open:oe,onOpenChange:ie,onClick:function(e){C||ee.current.nativeElement.contains(document.activeElement)||ee.current.focus(),ie(!0),null==J||J(e)},onClear:function(){je(null),ie(!1,{force:!0})},invalid:Pe,onInvalid:function(e){Ne(e,0)}}))))}const Ok=r.forwardRef(Ek),jk=r.createContext(null),Mk=jk.Provider,Ik=jk,Nk=r.createContext(null),Pk=Nk.Provider;var Rk=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Tk=(0,r.forwardRef)((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-checkbox":n,i=e.className,c=e.style,s=e.checked,u=e.disabled,d=e.defaultChecked,f=void 0!==d&&d,p=e.type,m=void 0===p?"checkbox":p,g=e.title,h=e.onChange,v=ni(e,Rk),b=(0,r.useRef)(null),y=(0,r.useRef)(null),C=Be(Gn(f,{value:s}),2),S=C[0],$=C[1];(0,r.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=b.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=b.current)||void 0===e||e.blur()},input:b.current,nativeElement:y.current}}));var k=a()(o,i,x(x({},"".concat(o,"-checked"),S),"".concat(o,"-disabled"),u));return r.createElement("span",{className:k,title:g,style:c,ref:y},r.createElement("input",(0,l.A)({},v,{className:"".concat(o,"-input"),ref:b,onChange:function(t){u||("checked"in e||$(t.target.checked),null==h||h({target:w(w({},e),{},{type:m,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:u,checked:!!S,type:m})),r.createElement("span",{className:"".concat(o,"-inner")}))}));const Ak=Tk,zk=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},pr(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},_k=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(o).sub(b(4).mul(2)),C=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},pr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${yt(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},pr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},gr(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},Dk=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:w,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:$,colorPrimary:k,colorPrimaryHover:E,colorPrimaryActive:O,buttonSolidCheckedBg:j,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:I,calc:N}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:yt(N(n).sub(N(o).mul(2)).equal()),background:d,border:`${yt(o)} ${i} ${a}`,borderBlockStartWidth:N(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:N(o).mul(-1).equal(),insetInlineStart:N(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${yt(o)} ${i} ${a}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:yt(N(p).sub(N(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:N(g).sub(o).equal(),paddingBlock:0,lineHeight:yt(N(m).sub(N(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":Object.assign({},gr(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:y,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:j,borderColor:j,"&:hover":{color:x,background:M,borderColor:M},"&:active":{color:x,background:I,borderColor:I}},"&-disabled":{color:C,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:w,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:S,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Bk=Vo("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${yt(n)} ${t}`,o=ir(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[zk(o),_k(o),Dk(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});const Hk=(e,t)=>{var n,o;const i=r.useContext(Ik),l=r.useContext(Nk),{getPrefixCls:c,direction:s,radio:u}=r.useContext(Ae),d=r.useRef(null),f=I(t,d),{isFormItemInput:p}=r.useContext(Ep),{prefixCls:m,className:g,rootClassName:h,children:v,style:b,title:y}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},j.checked=e.value===i.value,j.disabled=null!==(n=j.disabled)&&void 0!==n?n:i.disabled),j.disabled=null!==(o=j.disabled)&&void 0!==o?o:M;const N=a()(`${S}-wrapper`,{[`${S}-wrapper-checked`]:j.checked,[`${S}-wrapper-disabled`]:j.disabled,[`${S}-wrapper-rtl`]:"rtl"===s,[`${S}-wrapper-in-form-item`]:p,[`${S}-wrapper-block`]:!!(null==i?void 0:i.block)},null==u?void 0:u.className,g,h,E,O,$);return k(r.createElement(ps,{component:"Radio",disabled:j.disabled},r.createElement("label",{className:N,style:Object.assign(Object.assign({},null==u?void 0:u.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},r.createElement(Ak,Object.assign({},j,{className:a()(j.className,{[ls]:!w}),type:"radio",prefixCls:S,ref:f})),void 0!==v?r.createElement("span",null,v):null)))},Lk=r.forwardRef(Hk),Fk=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o}=r.useContext(Ae),{prefixCls:i,className:l,rootClassName:c,options:s,buttonStyle:u="outline",disabled:d,children:f,size:p,style:m,id:g,optionType:h,name:v,defaultValue:b,value:y,block:x=!1,onChange:C,onMouseEnter:w,onMouseLeave:S,onFocus:$,onBlur:k}=e,[E,O]=Gn(b,{value:y}),j=r.useCallback((t=>{const n=E,r=t.target.value;"value"in e||O(r),r!==n&&(null==C||C(t))}),[E,O,C]),M=n("radio",i),I=`${M}-group`,N=rl(M),[P,R,T]=Bk(M,N);let A=f;s&&s.length>0&&(A=s.map((e=>"string"==typeof e||"number"==typeof e?r.createElement(Lk,{key:e.toString(),prefixCls:M,disabled:d,value:e,checked:E===e},e):r.createElement(Lk,{key:`radio-group-value-options-${e.value}`,prefixCls:M,disabled:e.disabled||d,value:e.value,checked:E===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const z=ms(p),_=a()(I,`${I}-${u}`,{[`${I}-${z}`]:z,[`${I}-rtl`]:"rtl"===o,[`${I}-block`]:x},l,c,R,T,N),D=r.useMemo((()=>({onChange:j,value:E,disabled:d,name:v,optionType:h,block:x})),[j,E,d,v,h,x]);return P(r.createElement("div",Object.assign({},ja(e,{aria:!0,data:!0}),{className:_,style:m,onMouseEnter:w,onMouseLeave:S,onFocus:$,onBlur:k,id:g,ref:t}),r.createElement(Mk,{value:D},A)))})),Wk=r.memo(Fk);const Vk=(e,t)=>{const{getPrefixCls:n}=r.useContext(Ae),{prefixCls:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let t=o.setYear(l,e);if(n){const[e,r]=n,i=o.getYear(t),a=o.getMonth(t);i===o.getYear(r)&&a>o.getMonth(r)&&(t=o.setMonth(t,o.getMonth(r))),i===o.getYear(e)&&as.current})}function Xk(e){const{prefixCls:t,fullscreen:n,validRange:o,value:i,generateConfig:a,locale:l,onChange:c,divRef:s}=e,u=a.getMonth(i||a.getNow());let d=0,f=11;if(o){const[e,t]=o,n=a.getYear(i);a.getYear(t)===n&&(f=a.getMonth(t)),a.getYear(e)===n&&(d=a.getMonth(e))}const p=l.shortMonths||a.locale.getShortMonths(l.locale),m=[];for(let e=d;e<=f;e+=1)m.push({label:p[e],value:e});return r.createElement(Zb,{size:n?void 0:"small",className:`${t}-month-select`,value:u,options:m,onChange:e=>{c(a.setMonth(i,e))},getPopupContainer:()=>s.current})}function Gk(e){const{prefixCls:t,locale:n,mode:o,fullscreen:i,onModeChange:a}=e;return r.createElement(Wk,{onChange:e=>{let{target:{value:t}}=e;a(t)},value:o,size:i?void 0:"small",className:`${t}-mode-switch`},r.createElement(qk,{value:"month"},n.month),r.createElement(qk,{value:"year"},n.year))}const Yk=function(e){const{prefixCls:t,fullscreen:n,mode:o,onChange:i,onModeChange:a}=e,l=r.useRef(null),c=(0,r.useContext)(Ep),s=(0,r.useMemo)((()=>Object.assign(Object.assign({},c),{isFormItemInput:!1})),[c]),u=Object.assign(Object.assign({},e),{fullscreen:n,divRef:l});return r.createElement("div",{className:`${t}-header`,ref:l},r.createElement(Ep.Provider,{value:s},r.createElement(Kk,Object.assign({},u,{onChange:e=>{i(e,"year")}})),"month"===o&&r.createElement(Xk,Object.assign({},u,{onChange:e=>{i(e,"month")}}))),r.createElement(Gk,Object.assign({},u,{onModeChange:a})))},Uk=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:yt(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${yt(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Qk=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:h,pickerControlIconBorderWidth:v,colorIcon:b,textHeight:y,motionDurationMid:x,colorIconHover:C,fontWeightStrong:w,cellHeight:S,pickerCellPaddingVertical:$,colorTextDisabled:k,colorText:E,fontSize:O,motionDurationSlow:j,withoutTimeCellHeight:M,pickerQuarterPanelContentHeight:I,borderRadiusSM:N,colorTextLightSolid:P,cellHoverBg:R,timeColumnHeight:T,timeColumnWidth:A,timeCellHeight:z,controlItemBgActive:_,marginXXS:D,pickerDatePanelPaddingHorizontal:B,pickerControlIconMargin:H}=e,L=e.calc(a).mul(7).add(e.calc(B).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:L},"&-header":{display:"flex",padding:`0 ${yt(c)}`,color:g,borderBottom:`${yt(d)} ${f} ${h}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:yt(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:O,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:yt(y),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${yt(v)} 0`,borderInlineWidth:`${yt(v)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:H,insetInlineStart:H,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${yt(v)} 0`,borderInlineWidth:`${yt(v)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:e.calc(S).add(e.calc($).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${yt($)} 0`,color:k,cursor:"pointer","&-in-view":{color:E}},Uk(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(M).mul(4).equal()},[r]:{padding:`0 ${yt(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},"&-decade-panel":{[r]:{padding:`0 ${yt(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${yt(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${yt(c)} ${yt(B)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td":{"&:before":{background:R}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Co(P).setAlpha(.5).toHexString()},[r]:{color:P}}},"&-range-hover td:before":{background:_}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${yt(c)} ${yt(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${yt(d)} ${f} ${h}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${j}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:T},"&-column":{flex:"1 0 auto",width:A,margin:`${yt(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(z).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${yt(d)} ${f} ${h}`},"&-active":{background:new Co(_).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:D,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(D).mul(2)).equal(),height:z,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(z).div(2).equal(),color:E,lineHeight:yt(z),borderRadius:N,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:R}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:_}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:k,background:"transparent",cursor:"not-allowed"}}}}}}}}},Zk=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${yt(r)} ${s} ${u}`,"&-extra":{padding:`0 ${yt(o)}`,lineHeight:yt(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${yt(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:yt(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:yt(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};function Jk(e){return ir(e,{inputAffixPadding:e.paddingXXS})}const eE=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${h}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},tE=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},nE=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Co(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Co(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},rE=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:o,itemActiveBg:i}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Qk(e)),pr(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${yt(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:o,border:0,borderTop:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${yt(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:yt(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:yt(e.weekHeight)}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${yt(e.calc(e.marginXS).div(2).equal())}`,padding:`${yt(e.calc(e.paddingXS).div(2).equal())} ${yt(e.paddingXS)} 0`,border:0,borderTop:`${yt(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:yt(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${yt(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${yt(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},oE=Vo("Calendar",(e=>{const t=`${e.componentCls}-calendar`,n=ir(e,tE(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return[rE(n)]}),(e=>Object.assign({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},nE(e)))),iE=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},aE=(e,t,n)=>{const{getMonth:r}=n;return iE(e,t,n)&&r(e)===r(t)},lE=(e,t,n)=>{const{getDate:r}=n;return aE(e,t,n)&&r(e)===r(t)},cE=e=>t=>{const{prefixCls:n,className:o,rootClassName:i,style:l,dateFullCellRender:c,dateCellRender:s,monthFullCellRender:u,monthCellRender:d,cellRender:f,fullCellRender:p,headerRender:m,value:g,defaultValue:h,disabledDate:v,mode:b,validRange:y,fullscreen:x=!0,onChange:C,onPanelChange:w,onSelect:S}=t,{getPrefixCls:$,direction:k,calendar:E}=r.useContext(Ae),O=$("picker",n),j=`${O}-calendar`,[M,I,N]=oE(O,j),P=e.getNow(),[R,T]=Gn((()=>g||e.getNow()),{defaultValue:h,value:g}),[A,z]=Gn("month",{value:b}),_=r.useMemo((()=>"year"===A?"month":"date"),[A]),D=r.useCallback((t=>!!y&&(e.isAfter(y[0],t)||e.isAfter(t,y[1]))||!!(null==v?void 0:v(t))),[v,y]),B=(e,t)=>{null==w||w(e,t)},H=e=>{z(e),B(R,e)},L=(t,n)=>{(t=>{T(t),lE(t,R,e)||(("date"===_&&!aE(t,R,e)||"month"===_&&!iE(t,R,e))&&B(t,A),null==C||C(t))})(t),null==S||S(t,{source:n})},F=r.useCallback(((t,n)=>p?p(t,n):c?c(t):r.createElement("div",{className:a()(`${O}-cell-inner`,`${j}-date`,{[`${j}-date-today`]:lE(P,t,e)})},r.createElement("div",{className:`${j}-date-value`},String(e.getDate(t)).padStart(2,"0")),r.createElement("div",{className:`${j}-date-content`},f?f(t,n):null==s?void 0:s(t)))),[c,s,f,p]),W=r.useCallback(((t,n)=>{if(p)return p(t,n);if(u)return u(t);const o=n.locale.shortMonths||e.locale.getShortMonths(n.locale.locale);return r.createElement("div",{className:a()(`${O}-cell-inner`,`${j}-date`,{[`${j}-date-today`]:aE(P,t,e)})},r.createElement("div",{className:`${j}-date-value`},o[e.getMonth(t)]),r.createElement("div",{className:`${j}-date-content`},f?f(t,n):null==d?void 0:d(t)))}),[u,d,f,p]),[V]=rs("Calendar",yc),q=Object.assign(Object.assign({},V),t.locale);return M(r.createElement("div",{className:a()(j,{[`${j}-full`]:x,[`${j}-mini`]:!x,[`${j}-rtl`]:"rtl"===k},null==E?void 0:E.className,o,i,I,N),style:Object.assign(Object.assign({},null==E?void 0:E.style),l)},m?m({value:R,type:A,onChange:e=>{L(e,"customize")},onTypeChange:H}):r.createElement(Yk,{prefixCls:j,value:R,generateConfig:e,mode:A,fullscreen:x,locale:null==q?void 0:q.lang,validRange:y,onChange:L,onModeChange:H}),r.createElement(Q$,{value:R,prefixCls:O,locale:null==q?void 0:q.lang,generateConfig:e,cellRender:(e,t)=>"date"===t.type?F(e,t):"month"===t.type?W(e,Object.assign(Object.assign({},t),{locale:null==q?void 0:q.lang})):void 0,onSelect:e=>{L(e,_)},mode:_,picker:_,disabledDate:D,hideHeader:!0})))},sE=cE(MS);sE.generateCalendar=cE;const uE=sE,dE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var fE=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:dE}))};const pE=r.forwardRef(fE),mE=(0,r.createContext)(null);var gE={width:0,height:0,left:0,top:0};function hE(e,t){var n=r.useRef(e),o=Be(r.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var vE=Math.pow(.995,20);function bE(e){var t=Be((0,r.useState)(0),2),n=t[0],o=t[1],i=(0,r.useRef)(0),a=(0,r.useRef)();return a.current=e,Et((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){i.current===n&&(i.current+=1,o(i.current))}}var yE={width:0,height:0,left:0,top:0,right:0};function xE(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function CE(e){return String(e).replace(/"/g,"TABS_DQ")}function wE(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var SE=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const $E=SE;var kE=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==b(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));const EE=kE;var OE=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,i=e.tabs,c=e.locale,s=e.mobile,u=e.more,d=void 0===u?{}:u,f=e.style,p=e.className,m=e.editable,g=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,C=e.popupClassName,w=Be((0,r.useState)(!1),2),S=w[0],$=w[1],k=Be((0,r.useState)(null),2),E=k[0],O=k[1],j=d.icon,M=void 0===j?"More":j,I="".concat(o,"-more-popup"),N="".concat(n,"-dropdown"),P=null!==E?"".concat(I,"-").concat(E):null,R=null==c?void 0:c.dropdownAriaLabel,T=r.createElement(tw,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),$(!1)},prefixCls:"".concat(N,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[E],"aria-label":void 0!==R?R:"expanded dropdown"},i.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=wE(t,i,m,n);return r.createElement(OC,{key:a,id:"".concat(I,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(N,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},i||m.removeIcon||"×"))})));function A(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,r=t.length,o=0;ot?"left":"right"})})),L=Be(H,2),F=L[0],W=L[1],V=hE(0,(function(e,t){!B&&E&&E({direction:e>t?"top":"bottom"})})),q=Be(V,2),K=q[0],X=q[1],G=Be((0,r.useState)([0,0]),2),Y=G[0],U=G[1],Q=Be((0,r.useState)([0,0]),2),Z=Q[0],J=Q[1],ee=Be((0,r.useState)([0,0]),2),te=ee[0],ne=ee[1],re=Be((0,r.useState)([0,0]),2),oe=re[0],ie=re[1],ae=(n=new Map,i=(0,r.useRef)([]),c=Be((0,r.useState)({}),2)[1],s=(0,r.useRef)("function"==typeof n?n():n),u=bE((function(){var e=s.current;i.current.forEach((function(t){e=t(e)})),i.current=[],s.current=e,c({})})),[s.current,function(e){i.current.push(e),u()}]),le=Be(ae,2),ce=le[0],se=le[1],ue=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||gE,i=o.left+o.width,a=0;axe?xe:e}B&&h?(ye=0,xe=Math.max(0,fe-he)):(ye=Math.min(0,he-fe),xe=0);var we=(0,r.useRef)(null),$e=Be((0,r.useState)(),2),ke=$e[0],Ee=$e[1];function Oe(){Ee(Date.now())}function je(){we.current&&clearTimeout(we.current)}!function(e,t){var n=Be((0,r.useState)(),2),o=n[0],i=n[1],a=Be((0,r.useState)(0),2),l=a[0],c=a[1],s=Be((0,r.useState)(0),2),u=s[0],d=s[1],f=Be((0,r.useState)(),2),p=f[0],m=f[1],g=(0,r.useRef)(),h=(0,r.useRef)(),v=(0,r.useRef)(null);v.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(g.current)},onTouchMove:function(e){if(o){var n=e.touches[0],r=n.screenX,a=n.screenY;i({x:r,y:a});var s=r-o.x,u=a-o.y;t(s,u);var f=Date.now();c(f),d(f-l),m({x:s,y:u})}},onTouchEnd:function(){if(o&&(i(null),m(null),p)){var e=p.x/u,n=p.y/u,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var l=e,c=n;g.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(g.current):t(20*(l*=vE),20*(c*=vE))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===h.current?n:r:i>a?(o=n,h.current="x"):(o=r,h.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function t(e){v.current.onTouchMove(e)}function n(e){v.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){v.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){v.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(A,(function(e,t){function n(e,t){e((function(e){return Ce(e+t)}))}return!!ge&&(B?n(W,e):n(X,t),je(),Oe(),!0)})),(0,r.useEffect)((function(){return je(),ke&&(we.current=setTimeout((function(){Ee(0)}),100)),je}),[ke]);var Me=function(e,t,n,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;oMath.floor(u+t)){r=o-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||yE)[s]=r?[0,0]:[a,r]}),[e,t,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ue,he,B?F:K,fe,pe,me,w(w({},e),{},{tabs:I})),Ne=Be(Me,2),Pe=Ne[0],Re=Ne[1],Te=qn((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(B){var n=F;h?t.rightF+he&&(n=t.right+t.width-he):t.left<-F?n=-t.left:t.left+t.width>-F+he&&(n=-(t.left+t.width-he)),X(0),W(Ce(n))}else{var r=K;t.top<-K?r=-t.top:t.top+t.height>-K+he&&(r=-(t.top+t.height-he)),W(0),X(Ce(r))}})),Ae={};"top"===C||"bottom"===C?Ae[h?"marginRight":"marginLeft"]=S:Ae.marginTop=S;var ze=I.map((function(e,t){var n=e.key;return r.createElement(ME,{id:p,prefixCls:M,key:n,tab:e,style:0===t?void 0:Ae,closable:e.closable,editable:b,active:n===g,renderWrapper:$,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){k(n,e)},onFocus:function(){Te(n),Oe(),A.current&&(h||(A.current.scrollLeft=0),A.current.scrollTop=0)}})})),_e=function(){return se((function(){var e,t=new Map,n=null===(e=z.current)||void 0===e?void 0:e.getBoundingClientRect();return I.forEach((function(e){var r,o=e.key,i=null===(r=z.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(CE(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.left,u=a.top;return Math.abs(l-n)<1?[l,c,s-t.left,u-t.top]:[n,r,i,o]}(i,n),l=Be(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};(0,r.useEffect)((function(){_e()}),[I.map((function(e){return e.key})).join("_")]);var De=bE((function(){var e=IE(P),t=IE(R),n=IE(T);U([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=IE(D);ne(r);var o=IE(_);ie(o);var i=IE(z);J([i[0]-r[0],i[1]-r[1]]),_e()})),He=I.slice(0,Pe),Le=I.slice(Re+1),Fe=[].concat(Se(He),Se(Le)),We=ue.get(g),Ve=function(e){var t=e.activeTabOffset,n=e.horizontal,i=e.rtl,a=e.indicator,l=void 0===a?{}:a,c=l.size,s=l.align,u=void 0===s?"center":s,d=Be((0,r.useState)(),2),f=d[0],p=d[1],m=(0,r.useRef)(),g=o().useCallback((function(e){return"function"==typeof c?c(e):"number"==typeof c?c:e}),[c]);function h(){Ie.cancel(m.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=g(t.width);var r=i?"right":"left";"start"===u&&(e[r]=t[r]),"center"===u&&(e[r]=t[r]+t.width/2,e.transform=i?"translateX(50%)":"translateX(-50%)"),"end"===u&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=g(t.height),"start"===u&&(e.top=t.top),"center"===u&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===u&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),m.current=Ie((function(){p(e)})),h}),[t,n,i,u,g]),{style:f}}({activeTabOffset:We,horizontal:B,indicator:O,rtl:h}).style;(0,r.useEffect)((function(){Te()}),[g,ye,xe,xE(We),xE(ue),B]),(0,r.useEffect)((function(){De()}),[h]);var qe,Ke,Xe,Ge,Ye=!!Fe.length,Ue="".concat(M,"-nav-wrap");return B?h?(Ke=F>0,qe=F!==xe):(qe=F<0,Ke=F!==ye):(Xe=K<0,Ge=K!==ye),r.createElement(be,{onResize:De},r.createElement("div",{ref:N(t,P),role:"tablist",className:a()("".concat(M,"-nav"),d),style:f,onKeyDown:function(){Oe()}},r.createElement(EE,{ref:R,position:"left",extra:v,prefixCls:M}),r.createElement(be,{onResize:De},r.createElement("div",{className:a()(Ue,x(x(x(x({},"".concat(Ue,"-ping-left"),qe),"".concat(Ue,"-ping-right"),Ke),"".concat(Ue,"-ping-top"),Xe),"".concat(Ue,"-ping-bottom"),Ge)),ref:A},r.createElement(be,{onResize:De},r.createElement("div",{ref:z,className:"".concat(M,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(K,"px)"),transition:ke?"none":void 0}},ze,r.createElement($E,{ref:D,prefixCls:M,locale:y,editable:b,style:w(w({},0===ze.length?void 0:Ae),{},{visibility:Ye?"hidden":null})}),r.createElement("div",{className:a()("".concat(M,"-ink-bar"),x({},"".concat(M,"-ink-bar-animated"),m.inkBar)),style:Ve}))))),r.createElement(jE,(0,l.A)({},e,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:_,prefixCls:M,tabs:Fe,className:!Ye&&ve,tabMoving:!!ke})),r.createElement(EE,{ref:T,position:"right",extra:v,prefixCls:M})))}));const RE=PE;var TE=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,l=e.id,c=e.active,s=e.tabKey,u=e.children;return r.createElement("div",{id:l&&"".concat(l,"-panel-").concat(s),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(s),"aria-hidden":!c,style:i,className:a()(n,c&&"".concat(n,"-active"),o),ref:t},u)}));const AE=TE;var zE=["renderTabBar"],_E=["label","key"];const DE=function(e){var t=e.renderTabBar,n=ni(e,zE),o=r.useContext(mE).tabs;return t?t(w(w({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=ni(e,_E);return r.createElement(AE,(0,l.A)({tab:t,key:n,tabKey:n},o))}))}),RE):r.createElement(RE,n)};var BE=["key","forceRender","style","className","destroyInactiveTabPane"];const HE=function(e){var t=e.id,n=e.activeKey,o=e.animated,i=e.tabPosition,c=e.destroyInactiveTabPane,s=r.useContext(mE),u=s.prefixCls,d=s.tabs,f=o.tabPane,p="".concat(u,"-tabpane");return r.createElement("div",{className:a()("".concat(u,"-content-holder"))},r.createElement("div",{className:a()("".concat(u,"-content"),"".concat(u,"-content-").concat(i),x({},"".concat(u,"-content-animated"),f))},d.map((function(e){var i=e.key,s=e.forceRender,u=e.style,d=e.className,m=e.destroyInactiveTabPane,g=ni(e,BE),h=i===n;return r.createElement(ka,(0,l.A)({key:i,visible:h,forceRender:s,removeOnLeave:!(!c&&!m),leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,c=e.className;return r.createElement(AE,(0,l.A)({},g,{prefixCls:p,id:t,tabKey:i,animated:f,active:h,style:w(w({},u),o),className:a()(d,c),ref:n}))}))}))))};var LE=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],FE=0,WE=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,c=e.className,s=e.items,u=e.direction,d=e.activeKey,f=e.defaultActiveKey,p=e.editable,m=e.animated,g=e.tabPosition,h=void 0===g?"top":g,v=e.tabBarGutter,y=e.tabBarStyle,C=e.tabBarExtraContent,S=e.locale,$=e.more,k=e.destroyInactiveTabPane,E=e.renderTabBar,O=e.onChange,j=e.onTabClick,M=e.onTabScroll,I=e.getPopupContainer,N=e.popupClassName,P=e.indicator,R=ni(e,LE),T=r.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===b(e)&&"key"in e}))}),[s]),A="rtl"===u,z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:w({inkBar:!0},"object"===b(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(m),_=Be((0,r.useState)(!1),2),D=_[0],B=_[1];(0,r.useEffect)((function(){B(Pg())}),[]);var H=Be(Gn((function(){var e;return null===(e=T[0])||void 0===e?void 0:e.key}),{value:d,defaultValue:f}),2),L=H[0],F=H[1],W=Be((0,r.useState)((function(){return T.findIndex((function(e){return e.key===L}))})),2),V=W[0],q=W[1];(0,r.useEffect)((function(){var e,t=T.findIndex((function(e){return e.key===L}));-1===t&&(t=Math.max(0,Math.min(V,T.length-1)),F(null===(e=T[t])||void 0===e?void 0:e.key)),q(t)}),[T.map((function(e){return e.key})).join("_"),L,V]);var K=Be(Gn(null,{value:n}),2),X=K[0],G=K[1];(0,r.useEffect)((function(){n||(G("rc-tabs-".concat(FE)),FE+=1)}),[]);var Y={id:X,activeKey:L,animated:z,tabPosition:h,rtl:A,mobile:D},U=w(w({},Y),{},{editable:p,locale:S,more:$,tabBarGutter:v,onTabClick:function(e,t){null==j||j(e,t);var n=e!==L;F(e),n&&(null==O||O(e))},onTabScroll:M,extra:C,style:y,panes:null,getPopupContainer:I,popupClassName:N,indicator:P});return r.createElement(mE.Provider,{value:{tabs:T,prefixCls:i}},r.createElement("div",(0,l.A)({ref:t,id:n,className:a()(i,"".concat(i,"-").concat(h),x(x(x({},"".concat(i,"-mobile"),D),"".concat(i,"-editable"),p),"".concat(i,"-rtl"),A),c)},R),r.createElement(DE,(0,l.A)({},U,{renderTabBar:E})),r.createElement(HE,(0,l.A)({destroyInactiveTabPane:k},Y,{animated:z}))))}));const VE=WE,qE={motionAppear:!1,motionEnter:!0,motionLeave:!0};const KE=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ab(e,"slide-up"),ab(e,"slide-down")]]},XE=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${yt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:yt(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:yt(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${yt(e.borderRadiusLG)} 0 0 ${yt(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},GE=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},pr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${yt(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},fr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${yt(e.paddingXXS)} ${yt(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},YE=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:yt(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},UE=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${yt(e.borderRadius)} ${yt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${yt(e.borderRadius)} ${yt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${yt(e.borderRadius)} ${yt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${yt(e.borderRadius)} 0 0 ${yt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},QE=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},hr(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},ZE=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:yt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:yt(e.marginXS)},marginLeft:{_skip_check_:!0,value:yt(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},JE=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${yt(e.paddingXS)}`,background:"transparent",border:`${yt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},hr(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),QE(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},eO=Vo("Tabs",(e=>{const t=ir(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${yt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${yt(e.horizontalItemGutter)}`});return[UE(t),ZE(t),YE(t),GE(t),XE(t),JE(t),KE(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const tO=e=>{var t,n,o,i,l,c,u,d,f,p,m;const{type:g,className:h,rootClassName:v,size:b,onEdit:y,hideAdd:x,centered:C,addIcon:w,removeIcon:S,moreIcon:$,more:k,popupClassName:E,children:O,items:j,animated:M,style:I,indicatorSize:N,indicator:P}=e,R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{key:n,event:r}=t;null==y||y("add"===e?r:n,e)},removeIcon:null!==(t=null!=S?S:null==z?void 0:z.removeIcon)&&void 0!==t?t:r.createElement(Ei,null),addIcon:(null!=w?w:null==z?void 0:z.addIcon)||r.createElement(pE,null),showAdd:!0!==x});const q=_(),K=ms(b),X=function(e,t){if(e)return e;const n=s(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe))}(n)}(j,O),G=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},qE),{motionName:ts(e,"switch")})),t}(B,M),Y=Object.assign(Object.assign({},null==z?void 0:z.style),I),U={align:null!==(n=null==P?void 0:P.align)&&void 0!==n?n:null===(o=null==z?void 0:z.indicator)||void 0===o?void 0:o.align,size:null!==(u=null!==(l=null!==(i=null==P?void 0:P.size)&&void 0!==i?i:N)&&void 0!==l?l:null===(c=null==z?void 0:z.indicator)||void 0===c?void 0:c.size)&&void 0!==u?u:null==z?void 0:z.indicatorSize};return L(r.createElement(VE,Object.assign({direction:A,getPopupContainer:D},R,{items:X,className:a()({[`${B}-${K}`]:K,[`${B}-card`]:["card","editable-card"].includes(g),[`${B}-editable-card`]:"editable-card"===g,[`${B}-centered`]:C},null==z?void 0:z.className,h,v,F,W,H),popupClassName:a()(E,F,W,H),style:Y,editable:V,more:Object.assign({icon:null!==(m=null!==(p=null!==(f=null===(d=null==z?void 0:z.more)||void 0===d?void 0:d.icon)&&void 0!==f?f:null==z?void 0:z.moreIcon)&&void 0!==p?p:$)&&void 0!==m?m:r.createElement(ww,null),transitionName:`${q}-slide-up`},k),prefixCls:B,animated:G,indicator:U})))};tO.TabPane=()=>null;const nO=tO;const rO=e=>{var{prefixCls:t,className:n,hoverable:o=!0}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${yt(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},fr),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},iO=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${yt(o)} 0 0 0 ${n},\n 0 ${yt(o)} 0 0 ${n},\n ${yt(o)} ${yt(o)} 0 0 ${n},\n ${yt(o)} 0 0 0 ${n} inset,\n 0 ${yt(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},aO=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${yt(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:yt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:yt(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${yt(e.lineWidth)} ${e.lineType} ${i}`}}})},lO=e=>Object.assign(Object.assign({margin:`${yt(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},fr),"&-description":{color:e.colorTextDescription}}),cO=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${yt(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${yt(e.padding)} ${yt(n)}`}}},sO=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},uO=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:oO(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:iO(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:aO(e),[`${t}-meta`]:lO(e)}),[`${t}-bordered`]:{border:`${yt(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${yt(e.borderRadiusLG)} ${yt(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:cO(e),[`${t}-loading`]:sO(e),[`${t}-rtl`]:{direction:"rtl"}}},dO=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${yt(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},fO=Vo("Card",(e=>{const t=ir(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[uO(t),dO(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var pO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return r.createElement("ul",{className:t,style:o},n.map(((e,t)=>{const o=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:o},r.createElement("span",null,e))})))},gO=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:l,extra:c,headStyle:s={},bodyStyle:u={},title:d,loading:f,bordered:p=!0,size:m,type:g,cover:h,actions:v,tabList:b,children:y,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:w,hoverable:S,tabProps:$={},classNames:k,styles:E}=e,O=pO(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:j,direction:M,card:I}=r.useContext(Ae),N=e=>{var t;return a()(null===(t=null==I?void 0:I.classNames)||void 0===t?void 0:t[e],null==k?void 0:k[e])},P=e=>{var t;return Object.assign(Object.assign({},null===(t=null==I?void 0:I.styles)||void 0===t?void 0:t[e]),null==E?void 0:E[e])},R=r.useMemo((()=>{let e=!1;return r.Children.forEach(y,(t=>{(null==t?void 0:t.type)===rO&&(e=!0)})),e}),[y]),T=j("card",n),[A,z,_]=fO(T),D=r.createElement(tm,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),B=void 0!==x,H=Object.assign(Object.assign({},$),{[B?"activeKey":"defaultActiveKey"]:B?x:C,tabBarExtraContent:w});let L;const F=ms(m),W=F&&"default"!==F?F:"large",V=b?r.createElement(nO,Object.assign({size:W},H,{className:`${T}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:b.map((e=>{var{tab:t}=e,n=pO(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(d||c||V){const e=a()(`${T}-head`,N("header")),t=a()(`${T}-head-title`,N("title")),n=a()(`${T}-extra`,N("extra")),o=Object.assign(Object.assign({},s),P("header"));L=r.createElement("div",{className:e,style:o},r.createElement("div",{className:`${T}-head-wrapper`},d&&r.createElement("div",{className:t,style:P("title")},d),c&&r.createElement("div",{className:n,style:P("extra")},c)),V)}const q=a()(`${T}-cover`,N("cover")),K=h?r.createElement("div",{className:q,style:P("cover")},h):null,X=a()(`${T}-body`,N("body")),G=Object.assign(Object.assign({},u),P("body")),Y=r.createElement("div",{className:X,style:G},f?D:y),U=a()(`${T}-actions`,N("actions")),Q=(null==v?void 0:v.length)?r.createElement(mO,{actionClasses:U,actionStyle:P("actions"),actions:v}):null,Z=ye(O,["onTabChange"]),J=a()(T,null==I?void 0:I.className,{[`${T}-loading`]:f,[`${T}-bordered`]:p,[`${T}-hoverable`]:S,[`${T}-contain-grid`]:R,[`${T}-contain-tabs`]:null==b?void 0:b.length,[`${T}-${F}`]:F,[`${T}-type-${g}`]:!!g,[`${T}-rtl`]:"rtl"===M},o,i,z,_),ee=Object.assign(Object.assign({},null==I?void 0:I.style),l);return A(r.createElement("div",Object.assign({ref:t},Z,{className:J,style:ee}),L,K,Y,Q))}));const hO=gO;hO.Grid=rO,hO.Meta=e=>{const{prefixCls:t,className:n,avatar:o,title:i,description:l}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe?c?(f=Date.now(),a||(r=setTimeout(u?g:m,e))):m():!0!==a&&(r=setTimeout(u?g:m,void 0===u?e-s:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},m}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const xO={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o().createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o().createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function CO(e,t,n){return Math.max(t,Math.min(e,n))}var wO=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},SO=function(e){for(var t=[],n=$O(e),r=kO(e),o=n;o0?1:0):0},OO=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},jO=function(e){return e&&e.offsetWidth||0},MO=function(e){return e&&e.offsetHeight||0},IO=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},NO=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},PO=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},RO=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];nn[n.length-1])t=n[n.length-1];else for(var o in n){if(t-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+jO(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},AO=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},zO=function(e){var t,n;AO(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=LO(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=w(w({},r),{},{WebkitTransform:o,transform:i,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},_O=function(e){AO(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=zO(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},DO=function(e){if(e.unslick)return 0;AO(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,l=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,m=e.fade,g=e.vertical;if(m||1===e.slideCount)return 0;var h=0;if(i?(h=-BO(e),l%s!=0&&r+s>l&&(h=-(r>l?c-(r-l):l%s)),a&&(h+=parseInt(c/2))):(l%s!=0&&r+s>l&&(h=c-l%s),a&&(h=parseInt(c/2))),t=g?r*p*-1+h*p:r*u*-1+h*u,!0===f){var v,b=o&&o.node;if(v=r+BO(e),t=(n=b&&b.childNodes[v])?-1*n.offsetLeft:0,!0===a){v=i?r+BO(e):r,n=b&&b.children[v],t=0;for(var y=0;y0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},WO=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},VO=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},qO=Object.keys(xO),KO=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},XO=function(e,t){return e.key+"-"+t},GO=function(e){function t(){var e;re(this,t);for(var n=arguments.length,r=new Array(n),o=0;o=0?u:o().createElement("div",null);var m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(w(w({},e),{},{index:d})),g=f.props.className||"",h=KO(w(w({},e),{},{index:d}));if(n.push(o().cloneElement(f,{key:"original"+XO(f,d),"data-index":d,className:a()(h,g),tabIndex:"-1","aria-hidden":!h["slick-active"],style:w(w({outline:"none"},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&l>1&&!1===e.fade&&!e.unslick){var v=l-d;v<=BO(e)&&((t=-v)>=c&&(f=u),h=KO(w(w({},e),{},{index:t})),r.push(o().cloneElement(f,{key:"precloned"+XO(f,t),"data-index":t,tabIndex:"-1",className:a()(h,g),"aria-hidden":!h["slick-active"],style:w(w({},f.props.style||{}),m),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(t=l+d)=y&&d<=v:d===y}),C={message:"dots",index:g,slidesToScroll:c,currentSlide:d},S=this.clickHandler.bind(this,C);m=m.concat(o().createElement("li",{key:g,className:x},o().cloneElement(this.props.customPaging(g),{onClick:S})))}return o().cloneElement(this.props.appendDots(m),w({className:this.props.dotsClass},p))}}])}(o().PureComponent);function UO(e,t,n){return t=ce(t),de(e,se()?Reflect.construct(t,n||[],ce(e).constructor):t.apply(e,n))}var QO=function(e){function t(){return re(this,t),UO(this,t,arguments)}return le(t,e),ie(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:a()(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?o().cloneElement(this.props.prevArrow,w(w({},n),r)):o().createElement("button",(0,l.A)({key:"0",type:"button"},n)," ","Previous")}}])}(o().PureComponent),ZO=function(e){function t(){return re(this,t),UO(this,t,arguments)}return le(t,e),ie(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});NO(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:a()(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?o().cloneElement(this.props.nextArrow,w(w({},n),r)):o().createElement("button",(0,l.A)({key:"1",type:"button"},n)," ","Next")}}])}(o().PureComponent),JO=["animating"],ej=function(e){function t(e){var n;re(this,t),n=function(e,t,n){return t=ce(t),de(e,se()?Reflect.construct(t,n||[],ce(e).constructor):t.apply(e,n))}(this,t,[e]),x(n,"listRefHandler",(function(e){return n.list=e})),x(n,"trackRefHandler",(function(e){return n.track=e})),x(n,"adaptHeight",(function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=MO(e)+"px"}})),x(n,"componentDidMount",(function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=SO(w(w({},n.props),n.state));e.length>0&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=w({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new ee((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),x(n,"componentWillUnmount",(function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()})),x(n,"componentDidUpdate",(function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=SO(w(w({},n.props),n.state));t.length>0&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var r=w(w({listRef:n.list,trackRef:n.track},n.props),n.state),i=n.didPropsChange(e);i&&n.updateState(r,i,(function(){n.state.currentSlide>=o().Children.count(n.props.children)&&n.changeSlide({message:"index",index:o().Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),x(n,"onWindowResized",(function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=yO(50,(function(){return n.resizeWindow(e)})),n.debouncedResize()})),x(n,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=w(w({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}})),x(n,"updateState",(function(e,t,r){var i=function(e){var t,n=o().Children.count(e.children),r=e.listRef,i=Math.ceil(jO(r)),a=e.trackRef&&e.trackRef.node,l=Math.ceil(jO(a));if(e.vertical)t=i;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil((i-c)/e.slidesToShow)}var s=r&&MO(r.querySelector('[data-index="0"]')),u=s*e.slidesToShow,d=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(d=n-1-e.initialSlide);var f=e.lazyLoadedList||[],p=SO(w(w({},e),{},{currentSlide:d,lazyLoadedList:f})),m={slideCount:n,slideWidth:t,listWidth:i,trackWidth:l,currentSlide:d,slideHeight:s,listHeight:u,lazyLoadedList:f=f.concat(p)};return null===e.autoplaying&&e.autoplay&&(m.autoplaying="playing"),m}(e);e=w(w(w({},e),i),{},{slideIndex:i.currentSlide});var a=DO(e);e=w(w({},e),{},{left:a});var l=zO(e);(t||o().Children.count(n.props.children)!==o().Children.count(e.children))&&(i.trackStyle=l),n.setState(i,r)})),x(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,r=[],i=BO(w(w(w({},n.props),n.state),{},{slideCount:n.props.children.length})),a=HO(w(w(w({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){r.push(t.props.style.width),e+=t.props.style.width}));for(var l=0;l=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=o,e.onerror=function(){o(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),x(n,"progressiveLazyLoad",(function(){for(var e=[],t=w(w({},n.props),n.state),r=n.state.currentSlide;r=-BO(t);o--)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),x(n,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.props,o=r.asNavFor,i=r.beforeChange,a=r.onLazyLoad,l=r.speed,c=r.afterChange,s=n.state.currentSlide,u=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,a=e.slideCount,l=e.lazyLoad,c=e.currentSlide,s=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,f=e.useCSS,p=e.lazyLoadedList;if(t&&n)return{};var m,g,h,v=i,b={},y={},x=o?i:CO(i,0,a-1);if(r){if(!o&&(i<0||i>=a))return{};i<0?v=i+a:i>=a&&(v=i-a),l&&p.indexOf(v)<0&&(p=p.concat(v)),b={animating:!0,currentSlide:v,lazyLoadedList:p,targetSlide:v},y={animating:!1,targetSlide:v}}else m=v,v<0?(m=v+a,o?a%u!=0&&(m=a-a%u):m=0):!NO(e)&&v>c?v=m=c:s&&v>=a?(v=o?a:a-1,m=o?0:a-1):v>=a&&(m=v-a,o?a%u!=0&&(m=0):m=a-d),!o&&v+d>=a&&(m=a-d),g=DO(w(w({},e),{},{slideIndex:v})),h=DO(w(w({},e),{},{slideIndex:m})),o||(g===h&&(v=m),g=h),l&&(p=p.concat(SO(w(w({},e),{},{currentSlide:v})))),f?(b={animating:!0,currentSlide:m,trackStyle:_O(w(w({},e),{},{left:g})),lazyLoadedList:p,targetSlide:x},y={animating:!1,currentSlide:m,trackStyle:zO(w(w({},e),{},{left:h})),swipeLeft:null,targetSlide:x}):b={currentSlide:m,trackStyle:zO(w(w({},e),{},{left:h})),lazyLoadedList:p,targetSlide:x};return{state:b,nextState:y}}(w(w(w({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),d=u.state,f=u.nextState;if(d){i&&i(s,d.currentSlide);var p=d.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0}));a&&p.length>0&&a(p),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),c&&c(s),delete n.animationEndCallback),n.setState(d,(function(){o&&n.asNavForIndex!==e&&(n.asNavForIndex=e,o.innerSlider.slideHandler(e)),f&&(n.animationEndCallback=setTimeout((function(){var e=f.animating,t=ni(f,JO);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),c&&c(d.currentSlide),delete n.animationEndCallback}))}),l))}))}})),x(n,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(e,t){var n,r,o,i,a=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,s=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,f=e.infinite;if(n=c%a!=0?0:(c-s)%a,"previous"===t.message)i=s-(o=0===n?a:l-n),d&&!f&&(i=-1==(r=s-o)?c-1:r),f||(i=u-a);else if("next"===t.message)i=s+(o=0===n?a:n),d&&!f&&(i=(s+a)%c+n),f||(i=u+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,f){var p=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+FO(e)?"left":"right":e.targetSlidet.currentSlide&&"left"===p?i-=c:i10)return{scrolling:!0};a&&(v.swipeLength=k);var E=(l?-1:1)*(v.curX>v.startX?1:-1);a&&(E=v.curY>v.startY?1:-1);var O=Math.ceil(m/g),j=IO(t.touchObject,a),M=v.swipeLength;return h||(0===c&&("right"===j||"down"===j)||c+1>=O&&("left"===j||"up"===j)||!NO(t)&&("left"===j||"up"===j))&&(M=v.swipeLength*s,!1===u&&d&&(d(j),S.edgeDragged=!0)),!f&&b&&(b(j),S.swiped=!0),C=o?$+M*(y/x)*E:l?$-M*E:$+M*E,a&&(C=$+M*E),S=w(w({},S),{},{touchObject:v,swipeLeft:C,trackStyle:zO(w(w({},t),{},{left:C}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)||v.swipeLength>10&&(S.swiping=!0,wO(e)),S}}(e,w(w(w({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))})),x(n,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,a=t.touchThreshold,l=t.verticalSwiping,c=t.listHeight,s=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,f=t.targetSlide,p=t.currentSlide,m=t.infinite;if(!n)return r&&wO(e),{};var g=l?c/a:i/a,h=IO(o,l),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return v;if(!o.swipeLength)return v;if(o.swipeLength>g){var b,y;wO(e),d&&d(h);var x=m?p:f;switch(h){case"left":case"up":y=x+TO(t),b=s?RO(t,y):y,v.currentDirection=0;break;case"right":case"down":y=x-TO(t),b=s?RO(t,y):y,v.currentDirection=1;break;default:b=x}v.triggerSlideHandler=b}else{var C=DO(t);v.trackStyle=_O(w(w({},t),{},{left:C}))}return v}(e,w(w(w({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var r=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==r&&(n.slideHandler(r),n.props.verticalSwiping&&n.enableBodyScroll())}})),x(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),x(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),x(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),x(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),x(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!NO(w(w({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),x(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),x(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),x(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),x(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),x(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),x(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),x(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),x(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),x(n,"render",(function(){var e,t,r,i=a()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),c=w(w({},n.props),n.state),s=PO(c,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=n.props.pauseOnHover;if(s=w(w({},s),{},{onMouseEnter:u?n.onTrackOver:null,onMouseLeave:u?n.onTrackLeave:null,onMouseOver:u?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var d=PO(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=n.props.pauseOnDotsHover;d=w(w({},d),{},{clickHandler:n.changeSlide,onMouseEnter:f?n.onDotsLeave:null,onMouseOver:f?n.onDotsOver:null,onMouseLeave:f?n.onDotsLeave:null}),e=o().createElement(YO,d)}var p=PO(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=n.changeSlide,n.props.arrows&&(t=o().createElement(QO,p),r=o().createElement(ZO,p));var m=null;n.props.vertical&&(m={height:n.state.listHeight});var g=null;!1===n.props.vertical?!0===n.props.centerMode&&(g={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(g={padding:n.props.centerPadding+" 0px"});var h=w(w({},m),g),v=n.props.touchMove,b={className:"slick-list",style:h,onClick:n.clickHandler,onMouseDown:v?n.swipeStart:null,onMouseMove:n.state.dragging&&v?n.swipeMove:null,onMouseUp:v?n.swipeEnd:null,onMouseLeave:n.state.dragging&&v?n.swipeEnd:null,onTouchStart:v?n.swipeStart:null,onTouchMove:n.state.dragging&&v?n.swipeMove:null,onTouchEnd:v?n.touchEnd:null,onTouchCancel:n.state.dragging&&v?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},y={className:i,dir:"ltr",style:n.props.style};return n.props.unslick&&(b={className:"slick-list"},y={className:i,style:n.props.style}),o().createElement("div",y,n.props.unslick?"":t,o().createElement("div",(0,l.A)({ref:n.listRefHandler},b),o().createElement(GO,(0,l.A)({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":r,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=w(w({},bO),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:o().Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var r=n.ssrInit();return n.state=w(w({},n.state),r),n}return le(t,e),ie(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),x(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),x(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return le(t,e),ie(t,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?nj()({minWidth:0,maxWidth:n}):nj()({minWidth:t[r-1]+1,maxWidth:n}),VO()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=nj()({minWidth:t.slice(-1)[0]});VO()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":w(w(w({},xO),this.props),t[0].settings):w(w({},xO),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=o().Children.toArray(this.props.children);r=r.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],a=null,c=0;c=r.length));f+=1)d.push(o().cloneElement(r[f],{key:100*c+10*u+f,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));s.push(o().createElement("div",{key:10*c+u},d))}e.variableWidth?i.push(o().createElement("div",{key:c,style:{width:a}},s)):i.push(o().createElement("div",{key:c},s))}if("unslick"===e){var p="regular slider "+(this.props.className||"");return o().createElement("div",{className:p},r)}return i.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),o().createElement(ej,(0,l.A)({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return qO.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),i)}}])}(o().Component);const oj=rj,ij=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},aj=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:r,arrowOffset:o}=e,i=e.calc(r).div(Math.SQRT2).equal();return[{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:r,height:r,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(r).sub(i).div(2).equal(),insetInlineStart:e.calc(r).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:o,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:o,"&::after":{transform:"rotate(135deg)"}}}}]},lj=e=>{const{componentCls:t,dotOffset:n,dotWidth:r,dotHeight:o,dotGap:i,colorBgContainer:a,motionDurationSlow:l}=e;return[{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:r,height:o,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${l}`,button:{position:"relative",display:"block",width:"100%",height:o,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:o,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${l}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},cj=e=>{const{componentCls:t,dotOffset:n,arrowOffset:r,marginXXS:o}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:r,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:r,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},i),{margin:`${yt(o)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":Object.assign(Object.assign({},i),{button:i})})}}}},sj=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},uj=Vo("Carousel",(e=>[ij(e),aj(e),lj(e),cj(e),sj(e)]),(e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var dj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{currentSlide:t,slideCount:n}=e,o=dj(e,["currentSlide","slideCount"]);return r.createElement("button",Object.assign({type:"button"},o))},mj=r.forwardRef(((e,t)=>{const{dots:n=!0,arrows:o=!1,prevArrow:i=r.createElement(pj,{"aria-label":"prev"}),nextArrow:l=r.createElement(pj,{"aria-label":"next"}),draggable:c=!1,waitForAnimate:s=!1,dotPosition:u="bottom",vertical:d="left"===u||"right"===u,rootClassName:f,className:p,style:m,id:g}=e,h=dj(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:v,direction:b,carousel:y}=r.useContext(Ae),x=r.useRef(),C=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x.current.slickGoTo(e,t)};r.useImperativeHandle(t,(()=>({goTo:C,autoPlay:x.current.innerSlider.autoPlay,innerSlider:x.current.innerSlider,prev:x.current.slickPrev,next:x.current.slickNext})),[x.current]);const w=r.useRef(r.Children.count(e.children));r.useEffect((()=>{w.current!==r.Children.count(e.children)&&(C(e.initialSlide||0,!1),w.current=r.Children.count(e.children))}),[e.children]);const S=Object.assign({vertical:d,className:a()(p,null==y?void 0:y.className),style:Object.assign(Object.assign({},null==y?void 0:y.style),m)},h);"fade"===S.effect&&(S.fade=!0);const $=v("carousel",S.prefixCls),k=!!n,E=a()(fj,`${fj}-${u}`,"boolean"!=typeof n&&(null==n?void 0:n.className)),[O,j,M]=uj($),I=a()($,{[`${$}-rtl`]:"rtl"===b,[`${$}-vertical`]:S.vertical},j,M,f);return O(r.createElement("div",{className:I,id:g},r.createElement(oj,Object.assign({ref:x},S,{dots:k,dotsClass:E,arrows:o,prevArrow:i,nextArrow:l,draggable:c,verticalSwiping:d,waitForAnimate:s}))))})),gj=mj,hj=r.createContext({});var vj="__rc_cascader_search_mark__",bj=function(e,t,n){var r=n.label,o=void 0===r?"":r;return t.some((function(t){return String(t[o]).toLowerCase().includes(e.toLowerCase())}))},yj=function(e,t,n,r){return t.map((function(e){return e[r.label]})).join(" / ")};var xj="__RC_CASCADER_SPLIT__",Cj="SHOW_PARENT",wj="SHOW_CHILD";function Sj(e){return e.join(xj)}function $j(e){return e.map(Sj)}function kj(e){var t=e||{},n=t.label,r=t.value||"value";return{label:n||"label",value:r,key:r,children:t.children||"children"}}function Ej(e,t){var n,r;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(r=e[t.children])&&void 0!==r&&r.length)}function Oj(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function jj(e,t){return e.map((function(e){var n;return null===(n=e[vj])||void 0===n?void 0:n.map((function(e){return e[t.value]}))}))}function Mj(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}function Ij(e,t,n){var r=new Set(e),o=t();return e.filter((function(e){var t=o[e],i=t?t.parent:null,a=t?t.children:null;return!((!t||!t.node.disabled)&&(n===wj?a&&a.some((function(e){return e.key&&r.has(e.key)})):i&&!i.node.disabled&&r.has(i.key)))}))}function Nj(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t,i=[],a=function(){var t,a,c,s=e[l],u=null===(t=o)||void 0===t?void 0:t.findIndex((function(e){var t=e[n.value];return r?String(t)===String(s):t===s})),d=-1!==u?null===(a=o)||void 0===a?void 0:a[u]:null;i.push({value:null!==(c=null==d?void 0:d[n.value])&&void 0!==c?c:s,index:u,option:d}),o=null==d?void 0:d[n.children]},l=0;l1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(s,u){for(var d,f=Aj(r?r.pos:"0",u),p=zj(s[i],f),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=i||(arguments.length>2?arguments[2]:void 0),s={},u={},d={posEntities:s,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var o,i=("object"===b(n)?n:{externalGetKey:n})||{},a=i.childrenPropName,l=i.externalGetKey,c=_j(i.fieldNames),f=c.key,p=c.children,m=a||p;l?"string"==typeof l?o=function(e){return e[l]}:"function"==typeof l&&(o=function(e){return l(e)}):o=function(e,t){return zj(e[f],t)},function t(n,i,a,l){var c=n?n[m]:e,f=n?Aj(a.pos,i):"0",p=n?[].concat(Se(l),[n]):[];if(n){var g=o(n,f);!function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},f=zj(i,o);s[o]=c,u[f]=c,c.parent=s[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,d)}({node:n,index:i,pos:f,key:g,parentPos:a.node?a.pos:null,level:a.level+1,nodes:p})}c&&c.forEach((function(e,r){t(e,r,{node:n,pos:f,level:a?a.level+1:-1},p)}))}(null)}(e,0,{externalGetKey:c,childrenPropName:a,fieldNames:l}),o&&o(d),d}function Lj(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=Rj(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function Fj(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,m=w(w({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:f,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return v(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function Wj(e,t){var n=r.useMemo((function(){return t||[]}),[t]),o=function(e,t){var n=r.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),o=r.useCallback((function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Hj(e,{fieldNames:t,initWrapper:function(e){return w(w({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var r=e.nodes.map((function(e){return e[t.value]})).join(xj);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities}),[t,e]);return o}(n,e),i=r.useCallback((function(t){var n=o();return t.map((function(t){return n[t].nodes.map((function(t){return t[e.value]}))}))}),[o,e]);return[n,o,i]}function Vj(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function qj(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Kj(e,t,n,r){var o,i=[];o=r||qj;var a,l=new Set(e.filter((function(e){var t=!!Rj(n,e);return t||i.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),s=Math.max(s,r)})),v(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)})),a&&o.add(t.key),c&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Vj(i,o))}}(l,c,s,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||l.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}));a=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)})),r||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Vj(a,i))}}(l,t.halfCheckedKeys,c,s,o),a}function Xj(e,t,n,r,o,i,a,l){return function(c){if(e){var s=Sj(c),u=$j(n),d=$j(r),f=u.includes(s),p=o.some((function(e){return Sj(e)===s})),m=n,g=o;if(p&&!f)g=o.filter((function(e){return Sj(e)!==s}));else{var h=f?u.filter((function(e){return e!==s})):[].concat(Se(u),[s]),v=i(),b=Ij(f?Kj(h,{checked:!1,halfCheckedKeys:d},v).checkedKeys:Kj(h,!0,v).checkedKeys,i,l);m=a(b)}t([].concat(Se(g),Se(m)))}else t(c)}}function Gj(e,t,n,o,i){return r.useMemo((function(){var r=Be(i(t),2),a=r[0],l=r[1];if(!e||!t.length)return[a,[],l];var c=Kj($j(a),!0,n()),s=c.checkedKeys,u=c.halfCheckedKeys;return[o(s),o(u),l]}),[e,t,n,o,i])}var Yj=r.memo((function(e){return e.children}),(function(e,t){return!t.open}));const Uj=Yj;function Qj(e){var t,n=e.prefixCls,o=e.checked,i=e.halfChecked,l=e.disabled,c=e.onClick,s=e.disableCheckbox,u=r.useContext(hj).checkable,d="boolean"!=typeof u?u:null;return r.createElement("span",{className:a()("".concat(n),(t={},x(t,"".concat(n,"-checked"),o),x(t,"".concat(n,"-indeterminate"),!o&&i),x(t,"".concat(n,"-disabled"),l||s),t)),onClick:c},d)}var Zj="__cascader_fix_label__";function Jj(e){var t=e.prefixCls,n=e.multiple,o=e.options,i=e.activeValue,l=e.prevValuePath,c=e.onToggleOpen,s=e.onSelect,u=e.onActive,d=e.checkedSet,f=e.halfCheckedSet,p=e.loadingKeys,m=e.isSelectable,g="".concat(t,"-menu"),h="".concat(t,"-menu-item"),v=r.useContext(hj),b=v.fieldNames,y=v.changeOnSelect,C=v.expandTrigger,w=v.expandIcon,S=v.loadingIcon,$=v.dropdownMenuColumnStyle,k=v.optionRender,E="hover"===C,O=r.useMemo((function(){return o.map((function(e){var t,n=e.disabled,r=e.disableCheckbox,o=e[vj],i=null!==(t=e[Zj])&&void 0!==t?t:e[b.label],a=e[b.value],c=Ej(e,b),s=o?o.map((function(e){return e[b.value]})):[].concat(Se(l),[a]),u=Sj(s);return{disabled:n,label:i,value:a,isLeaf:c,isLoading:p.includes(u),checked:d.has(u),halfChecked:f.has(u),option:e,disableCheckbox:r,fullPath:s,fullPathKey:u}}))}),[o,d,b,f,p,l]);return r.createElement("ul",{className:g,role:"menu"},O.map((function(e){var o,l,d=e.disabled,f=e.label,p=e.value,g=e.isLeaf,v=e.isLoading,b=e.checked,C=e.halfChecked,O=e.option,j=e.fullPath,M=e.fullPathKey,I=e.disableCheckbox,N=function(){if(!d){var e=Se(j);E&&g&&e.pop(),u(e)}},P=function(){m(O)&&s(j,g)};return"string"==typeof O.title?l=O.title:"string"==typeof f&&(l=f),r.createElement("li",{key:M,className:a()(h,(o={},x(o,"".concat(h,"-expand"),!g),x(o,"".concat(h,"-active"),i===p||i===M),x(o,"".concat(h,"-disabled"),d),x(o,"".concat(h,"-loading"),v),o)),style:$,role:"menuitemcheckbox",title:l,"aria-checked":b,"data-path-key":M,onClick:function(){N(),I||n&&!g||P()},onDoubleClick:function(){y&&c(!1)},onMouseEnter:function(){E&&N()},onMouseDown:function(e){e.preventDefault()}},n&&r.createElement(Qj,{prefixCls:"".concat(t,"-checkbox"),checked:b,halfChecked:C,disabled:d||I,disableCheckbox:I,onClick:function(e){I||(e.stopPropagation(),P())}}),r.createElement("div",{className:"".concat(h,"-content")},k?k(O):f),!v&&w&&!g&&r.createElement("div",{className:"".concat(h,"-expand-icon")},w),v&&S&&r.createElement("div",{className:"".concat(h,"-loading-icon")},S))})))}var eM=r.forwardRef((function(e,t){var n,o,i,c,s=e.prefixCls,u=e.multiple,d=e.searchValue,f=e.toggleOpen,p=e.notFoundContent,m=e.direction,g=e.open,h=r.useRef(null),v="rtl"===m,b=r.useContext(hj),y=b.options,C=b.values,S=b.halfValues,$=b.fieldNames,k=b.changeOnSelect,E=b.onSelect,O=b.searchOptions,j=b.dropdownPrefixCls,M=b.loadData,I=b.expandTrigger,N=j||s,P=Be(r.useState([]),2),R=P[0],T=P[1];r.useEffect((function(){R.length&&R.forEach((function(e){var t=function(e){return e.split(xj)}(e),n=Nj(t,y,$,!0).map((function(e){return e.option})),r=n[n.length-1];(!r||r[$.children]||Ej(r,$))&&T((function(t){return t.filter((function(t){return t!==e}))}))}))}),[y,R,$]);var A=r.useMemo((function(){return new Set($j(C))}),[C]),z=r.useMemo((function(){return new Set($j(S))}),[S]),_=Be(function(e,t){var n=r.useContext(hj).values[0],o=Be(r.useState([]),2),i=o[0],a=o[1];return r.useEffect((function(){e||a(n||[])}),[t,n]),[i,a]}(u,g),2),D=_[0],B=_[1],H=function(e){B(e),function(e){if(M&&!d){var t=Nj(e,y,$).map((function(e){return e.option})),n=t[t.length-1];if(n&&!Ej(n,$)){var r=Sj(e);T((function(e){return[].concat(Se(e),[r])})),M(t)}}}(e)},L=function(e){var t=e.disabled,n=Ej(e,$);return!t&&(n||k||u)},F=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];E(e),!u&&(t||k&&("hover"===I||n))&&f(!1)},W=r.useMemo((function(){return d?O:y}),[d,O,y]),V=r.useMemo((function(){for(var e=[{options:W}],t=W,n=jj(t,$),r=function(){var r=D[o],i=t.find((function(e,t){return(n[t]?Sj(n[t]):e[$.value])===r})),a=null==i?void 0:i[$.children];if(null==a||!a.length)return"break";t=a,e.push({options:a})},o=0;o1){var e=m.slice(0,-1);b(e)}else u(!1)},x=function(){var e,t=((null===(e=h[g])||void 0===e?void 0:e[n.children])||[]).find((function(e){return!e.disabled}));if(t){var r=[].concat(Se(m),[t[n.value]]);b(r)}};r.useImperativeHandle(e,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case bl.UP:case bl.DOWN:var r=0;t===bl.UP?r=-1:t===bl.DOWN&&(r=1),0!==r&&function(e){var t=h.length,r=g;-1===r&&e<0&&(r=t);for(var o=0;o":y,w=n.loadingIcon,S=n.direction,$=n.notFoundContent,k=void 0===$?"Not Found":$,E=!!u,O=Be(Gn(d,{value:f,postState:Mj}),2),j=O[0],M=O[1],I=r.useMemo((function(){return kj(p)}),[JSON.stringify(p)]),N=Be(Wj(I,s),3),P=N[0],R=N[1],T=N[2],A=Pj(P,I),z=Be(Gj(E,j,R,T,A),3),_=z[0],D=z[1],B=z[2],H=qn((function(e){if(M(e),g){var t=Mj(e),n=t.map((function(e){return Nj(e,P,I).map((function(e){return e.option}))})),r=E?t:t[0],o=E?n:n[0];g(r,o)}})),L=Xj(E,H,_,D,B,R,T,h),F=qn((function(e){L(e)})),W=r.useMemo((function(){return{options:P,fieldNames:I,values:_,halfValues:D,changeOnSelect:m,onSelect:F,checkable:u,searchOptions:[],dropdownPrefixCls:void 0,loadData:v,expandTrigger:b,expandIcon:C,loadingIcon:w,dropdownMenuColumnStyle:void 0}}),[P,I,_,D,m,F,u,v,b,C,w]),V="".concat(i,"-panel"),q=!P.length;return r.createElement(hj.Provider,{value:W},r.createElement("div",{className:a()(V,(t={},x(t,"".concat(V,"-rtl"),"rtl"===S),x(t,"".concat(V,"-empty"),q),t),c),style:l},q?k:r.createElement(tM,{prefixCls:i,searchValue:"",multiple:E,toggleOpen:rM,open:!0,direction:S})))}var iM=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],aM=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,i=void 0===o?"rc-cascader":o,a=e.fieldNames,c=e.defaultValue,s=e.value,u=e.changeOnSelect,d=e.onChange,f=e.displayRender,p=e.checkable,m=e.autoClearSearchValue,g=void 0===m||m,h=e.searchValue,v=e.onSearch,y=e.showSearch,C=e.expandTrigger,S=e.options,$=e.dropdownPrefixCls,k=e.loadData,E=e.popupVisible,O=e.open,j=e.popupClassName,M=e.dropdownClassName,I=e.dropdownMenuColumnStyle,N=e.dropdownStyle,P=e.popupPlacement,R=e.placement,T=e.onDropdownVisibleChange,A=e.onPopupVisibleChange,z=e.expandIcon,_=void 0===z?">":z,D=e.loadingIcon,B=e.children,H=e.dropdownMatchSelectWidth,L=void 0!==H&&H,F=e.showCheckedStrategy,W=void 0===F?Cj:F,V=e.optionRender,q=ni(e,iM),K=Ov(n),X=!!p,G=Be(Gn(c,{value:s,postState:Mj}),2),Y=G[0],U=G[1],Q=r.useMemo((function(){return kj(a)}),[JSON.stringify(a)]),Z=Be(Wj(Q,S),3),J=Z[0],ee=Z[1],te=Z[2],ne=Be(Gn("",{value:h,postState:function(e){return e||""}}),2),re=ne[0],oe=ne[1],ie=function(e){return r.useMemo((function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===b(e)&&(t=w(w({},t),e)),t.limit<=0&&delete t.limit,[!0,t]}),[e])}(y),ae=Be(ie,2),le=ae[0],ce=ae[1],se=function(e,t,n,o,i,a){var l=i.filter,c=void 0===l?bj:l,s=i.render,u=void 0===s?yj:s,d=i.limit,f=void 0===d?50:d,p=i.sort;return r.useMemo((function(){var r=[];return e?(function t(i,l){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.forEach((function(i){if(!(!p&&!1!==f&&f>0&&r.length>=f)){var d,m=[].concat(Se(l),[i]),g=i[n.children],h=s||i.disabled;g&&0!==g.length&&!a||c(e,m,{label:n.label})&&r.push(w(w({},i),{},(x(d={disabled:h},n.label,u(e,m,o,n)),x(d,vj,m),x(d,n.children,void 0),d))),g&&t(i[n.children],m,h)}}))}(t,[]),p&&r.sort((function(t,r){return p(t[vj],r[vj],e,n)})),!1!==f&&f>0?r.slice(0,f):r):[]}),[e,t,n,o,u,a,c,p,f])}(re,J,Q,$||i,ce,u||X),ue=Pj(J,Q),de=Be(Gj(X,Y,ee,te,ue),3),fe=de[0],pe=de[1],me=de[2],ge=function(e,t,n,o,i){return r.useMemo((function(){var a=i||function(e){var t=o?e.slice(-1):e;return t.every((function(e){return["string","number"].includes(b(e))}))?t.join(" / "):t.reduce((function(e,t,n){var o=r.isValidElement(t)?r.cloneElement(t,{key:n}):t;return 0===n?[o]:[].concat(Se(e),[" / ",o])}),[])};return e.map((function(e){var r,o,i=Nj(e,t,n),l=a(i.map((function(e){var t,r=e.option,o=e.value;return null!==(t=null==r?void 0:r[n.label])&&void 0!==t?t:o})),i.map((function(e){return e.option}))),c=Sj(e);return{label:l,value:c,key:c,valueCells:e,disabled:null===(r=i[i.length-1])||void 0===r||null===(o=r.option)||void 0===o?void 0:o.disabled}}))}),[e,t,n,i,o])}(r.useMemo((function(){var e=Ij($j(fe),ee,W);return[].concat(Se(me),Se(te(e)))}),[fe,ee,te,me,W]),J,Q,X,f),he=qn((function(e){if(U(e),d){var t=Mj(e),n=t.map((function(e){return Nj(e,J,Q).map((function(e){return e.option}))})),r=X?t:t[0],o=X?n:n[0];d(r,o)}})),ve=Xj(X,he,fe,pe,me,ee,te,W),be=qn((function(e){X&&!g||oe(""),ve(e)})),ye=void 0!==O?O:E,xe=M||j,Ce=R||P,we=r.useMemo((function(){return{options:J,fieldNames:Q,values:fe,halfValues:pe,changeOnSelect:u,onSelect:be,checkable:p,searchOptions:se,dropdownPrefixCls:$,loadData:k,expandTrigger:C,expandIcon:_,loadingIcon:D,dropdownMenuColumnStyle:I,optionRender:V}}),[J,Q,fe,pe,u,be,p,se,$,k,C,_,D,I,V]),$e=!(re?se:J).length,ke=re&&ce.matchInputWidth||$e?{}:{minWidth:"auto"};return r.createElement(hj.Provider,{value:we},r.createElement(Zh,(0,l.A)({},q,{ref:t,id:K,prefixCls:i,autoClearSearchValue:g,dropdownMatchSelectWidth:L,dropdownStyle:w(w({},ke),N),displayValues:ge,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;be(n)}else he([])},mode:X?"multiple":void 0,searchValue:re,onSearch:function(e,t){oe(e),"blur"!==t.source&&v&&v(e)},showSearch:le,OptionList:nM,emptyOptions:$e,open:ye,dropdownClassName:xe,placement:Ce,onDropdownVisibleChange:function(e){null==T||T(e),null==A||A(e)},getRawInputElement:function(){return B}})))}));aM.SHOW_PARENT=Cj,aM.SHOW_CHILD=wj,aM.Panel=oM;const lM=aM,cM=function(e,t){const{getPrefixCls:n,direction:o,renderEmpty:i}=r.useContext(Ae),a=t||o;return[n("select",e),n("cascader",e),a,i]};function sM(e,t){return r.useMemo((()=>!!t&&r.createElement("span",{className:`${e}-checkbox-inner`})),[t])}const uM=(e,t,n)=>{let o=n;n||(o=t?r.createElement(lw,null):r.createElement(fu,null));const i=r.createElement("span",{className:`${e}-menu-item-loading-icon`},r.createElement(Rl,{spin:!0}));return r.useMemo((()=>[o,i]),[o])},dM=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},pr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},pr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},pr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},gr(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${yt(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function fM(e,t){const n=ir(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[dM(n)]}const pM=Vo("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[fM(n,e)]})),mM=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n`;return[fM(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},fr),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},gM=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},mM(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},hd(e)]},hM=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},vM=Vo("Cascader",(e=>[gM(e)]),hM),bM=qo(["Cascader","Panel"],(e=>(e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[mM(e),{display:"inline-flex",border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}})(e)),hM);const{SHOW_CHILD:yM,SHOW_PARENT:xM}=lM,CM=(e,t,n,o)=>{const i=[],a=e.toLowerCase();return t.forEach(((e,t)=>{0!==t&&i.push(" / ");let l=e[o.label];const c=typeof l;"string"!==c&&"number"!==c||(l=function(e,t,n){const o=e.toLowerCase().split(t).reduce(((e,n,r)=>0===r?[n]:[].concat(Se(e),[t,n])),[]),i=[];let a=0;return o.forEach(((t,o)=>{const l=a+t.length;let c=e.slice(a,l);a=l,o%2==1&&(c=r.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${o}`},c)),i.push(c)})),i}(String(l),a,n)),i.push(l)})),i},wM=r.forwardRef(((e,t)=>{var n;const{prefixCls:o,size:i,disabled:l,className:c,rootClassName:s,multiple:u,bordered:d=!0,transitionName:f,choiceTransitionName:p="",popupClassName:m,dropdownClassName:g,expandIcon:h,placement:v,showSearch:b,allowClear:y=!0,notFoundContent:x,direction:C,getPopupContainer:w,status:S,showArrow:$,builtinPlacements:k,style:E,variant:O}=e,j=ye(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(!b)return b;let e={render:CM};return"object"==typeof b&&(e=Object.assign(Object.assign({},e),b)),e}),[b]),re=ms((e=>{var t;return null!==(t=null!=i?i:U)&&void 0!==t?t:e})),oe=r.useContext(Nc),ie=null!=l?l:oe,[ae,le]=uM(D,F,h),ce=sM(B,u),se=Xb(e.suffixIcon,$),{suffixIcon:ue,removeIcon:de,clearIcon:fe}=Kb(Object.assign(Object.assign({},e),{hasFeedback:T,feedbackIcon:z,showSuffixIcon:se,multiple:u,prefixCls:D,componentName:"Cascader"})),pe=r.useMemo((()=>void 0!==v?v:F?"bottomRight":"bottomLeft"),[v,F]),me=!0===y?{clearIcon:fe}:y,[ge]=Bl("SelectLike",null===(n=j.dropdownStyle)||void 0===n?void 0:n.zIndex);return Y(q(r.createElement(lM,Object.assign({prefixCls:D,className:a()(!o&&B,{[`${D}-lg`]:"large"===re,[`${D}-sm`]:"small"===re,[`${D}-rtl`]:F,[`${D}-${Z}`]:J,[`${D}-in-form-item`]:A},Dv(D,_,T),Q,null==P?void 0:P.className,c,s,V,G,K,X),disabled:ie,style:Object.assign(Object.assign({},null==P?void 0:P.style),E)},j,{builtinPlacements:Uv(k,N),direction:H,placement:pe,notFoundContent:ee,allowClear:me,showSearch:ne,expandIcon:ae,suffixIcon:ue,removeIcon:de,loadingIcon:le,checkable:ce,dropdownClassName:te,dropdownPrefixCls:o||B,dropdownStyle:Object.assign(Object.assign({},j.dropdownStyle),{zIndex:ge}),choiceTransitionName:ts(W,"",p),transitionName:ts(W,"slide-up",f),getPopupContainer:w||M,ref:t}))))})),SM=Ng(wM);wM.SHOW_PARENT=xM,wM.SHOW_CHILD=yM,wM.Panel=function(e){const{prefixCls:t,className:n,multiple:o,rootClassName:i,notFoundContent:l,direction:c,expandIcon:s}=e,[u,d,f,p]=cM(t,c),m=rl(d),[g,h,v]=vM(d,m);bM(d);const b="rtl"===f,[y,x]=uM(u,b,s),C=l||(null==p?void 0:p("Cascader"))||r.createElement(Gv,{componentName:"Cascader"}),w=sM(d,o);return g(r.createElement(oM,Object.assign({},e,{checkable:w,prefixCls:d,className:a()(n,h,i,v,m),notFoundContent:C,direction:f,expandIcon:y,loadingIcon:x})))},wM._InternalPanelDoNotUseOrYouWillBeFired=SM;const $M=wM,kM=o().createContext(null);const EM=(e,t)=>{var n;const{prefixCls:o,className:i,rootClassName:l,children:c,indeterminate:s=!1,style:u,onMouseEnter:d,onMouseLeave:f,skipGroup:p=!1,disabled:m}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{null==y||y.registerValue(g.value)}),[]),r.useEffect((()=>{if(!p)return g.value!==S.current&&(null==y||y.cancelValue(S.current),null==y||y.registerValue(g.value),S.current=g.value),()=>null==y?void 0:y.cancelValue(g.value)}),[g.value]);const $=h("checkbox",o),k=rl($),[E,O,j]=pM($,k),M=Object.assign({},g);y&&!p&&(M.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),y.toggleOption&&y.toggleOption({label:c,value:g.value})},M.name=y.name,M.checked=y.value.includes(g.value));const I=a()(`${$}-wrapper`,{[`${$}-rtl`]:"rtl"===v,[`${$}-wrapper-checked`]:M.checked,[`${$}-wrapper-disabled`]:w,[`${$}-wrapper-in-form-item`]:x},null==b?void 0:b.className,i,l,j,k,O),N=a()({[`${$}-indeterminate`]:s},ls,O),P=s?"mixed":void 0;return E(r.createElement(ps,{component:"Checkbox",disabled:w},r.createElement("label",{className:I,style:Object.assign(Object.assign({},null==b?void 0:b.style),u),onMouseEnter:d,onMouseLeave:f},r.createElement(Ak,Object.assign({"aria-checked":P},M,{prefixCls:$,className:N,disabled:w,ref:t})),void 0!==c&&r.createElement("span",null,c))))},OM=r.forwardRef(EM);const jM=r.forwardRef(((e,t)=>{const{defaultValue:n,children:o,options:i=[],prefixCls:l,className:c,rootClassName:s,style:u,onChange:d}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"value"in f&&h(f.value||[])}),[f.value]);const y=r.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),x=p("checkbox",l),C=`${x}-group`,w=rl(x),[S,$,k]=pM(x,w),E=ye(f,["value","disabled"]),O=i.length?y.map((e=>r.createElement(OM,{prefixCls:x,key:e.value.toString(),disabled:"disabled"in e?e.disabled:f.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:`${C}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):o,j={toggleOption:e=>{const t=g.indexOf(e.value),n=Se(g);-1===t?n.push(e.value):n.splice(t,1),"value"in f||h(n),null==d||d(n.filter((e=>v.includes(e))).sort(((e,t)=>y.findIndex((t=>t.value===e))-y.findIndex((e=>e.value===t)))))},value:g,disabled:f.disabled,name:f.name,registerValue:e=>{b((t=>[].concat(Se(t),[e])))},cancelValue:e=>{b((t=>t.filter((t=>t!==e))))}},M=a()(C,{[`${C}-rtl`]:"rtl"===m},c,s,k,w,$);return S(r.createElement("div",Object.assign({className:M,style:u},E,{ref:t}),r.createElement(kM.Provider,{value:j},O)))})),MM=jM,IM=OM;IM.Group=MM,IM.__ANT_CHECKBOX=!0;const NM=IM,PM=(0,r.createContext)({}),RM=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},TM=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),AM=Vo("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),zM=Vo("Grid",(e=>{const t=ir(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[RM(t),TM(t,""),TM(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${yt(t)})`]:Object.assign({},TM(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function _M(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const DM=["xs","sm","md","lg","xl","xxl"],BM=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o}=r.useContext(Ae),{gutter:i,wrap:l}=r.useContext(PM),{prefixCls:c,span:s,order:u,offset:d,push:f,pull:p,className:m,children:g,flex:h,style:v}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete b[t],$=Object.assign(Object.assign({},$),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-rtl`]:"rtl"===o}),n.flex&&($[`${y}-${t}-flex`]=!0,S[`--${y}-${t}-flex`]=_M(n.flex))}));const k=a()(y,{[`${y}-${s}`]:void 0!==s,[`${y}-order-${u}`]:u,[`${y}-offset-${d}`]:d,[`${y}-push-${f}`]:f,[`${y}-pull-${p}`]:p},m,$,C,w),E={};if(i&&i[0]>0){const e=i[0]/2;E.paddingLeft=e,E.paddingRight=e}return h&&(E.flex=_M(h),!1!==l||E.minWidth||(E.minWidth=0)),x(r.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},E),v),S),className:k,ref:t}),g))})),HM=BM,LM=HM,FM=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{borderBlockStart:`${yt(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${yt(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${yt(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${yt(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${yt(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${yt(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${yt(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},WM=Vo("Divider",(e=>{const t=ir(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[FM(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});const VM=e=>{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(Ae),{prefixCls:i,type:l="horizontal",orientation:c="center",orientationMargin:s,className:u,rootClassName:d,children:f,dashed:p,variant:m="solid",plain:g,style:h}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),O=Object.assign(Object.assign({},S&&{marginLeft:E}),$&&{marginRight:E});return y(r.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==o?void 0:o.style),h)},v,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${b}-inner-text`,style:O},f)))};var qM=function(e,t){if(!e)return null;var n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},KM=function(e){return void 0!==e?"".concat(e,"px"):void 0};function XM(e){var t=e.prefixCls,n=e.containerRef,o=e.value,i=e.getValueIndex,l=e.motionName,c=e.onMotionStart,s=e.onMotionEnd,u=e.direction,d=e.vertical,f=void 0!==d&&d,p=r.useRef(null),m=Be(r.useState(o),2),g=m[0],h=m[1],v=function(e){var r,o=i(e),a=null===(r=n.current)||void 0===r?void 0:r.querySelectorAll(".".concat(t,"-item"))[o];return(null==a?void 0:a.offsetParent)&&a},b=Be(r.useState(null),2),y=b[0],x=b[1],C=Be(r.useState(null),2),S=C[0],$=C[1];Ot((function(){if(g!==o){var e=v(g),t=v(o),n=qM(e,f),r=qM(t,f);h(o),x(n),$(r),e&&t?c():s()}}),[o]);var k=r.useMemo((function(){var e;return KM(f?null!==(e=null==y?void 0:y.top)&&void 0!==e?e:0:"rtl"===u?-(null==y?void 0:y.right):null==y?void 0:y.left)}),[f,u,y]),E=r.useMemo((function(){var e;return KM(f?null!==(e=null==S?void 0:S.top)&&void 0!==e?e:0:"rtl"===u?-(null==S?void 0:S.right):null==S?void 0:S.left)}),[f,u,S]);return y&&S?r.createElement(ka,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:function(){return f?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return f?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){x(null),$(null),s()}},(function(e,n){var o=e.className,i=w(w({},e.style),{},{"--thumb-start-left":k,"--thumb-start-width":KM(null==y?void 0:y.width),"--thumb-active-left":E,"--thumb-active-width":KM(null==S?void 0:S.width),"--thumb-start-top":k,"--thumb-start-height":KM(null==y?void 0:y.height),"--thumb-active-top":E,"--thumb-active-height":KM(null==S?void 0:S.height)}),l={ref:I(p,n),style:i,className:a()("".concat(t,"-thumb"),o)};return r.createElement("div",l)})):null}var GM=["prefixCls","direction","vertical","options","disabled","defaultValue","value","onChange","className","motionName"];var YM=function(e){var t=e.prefixCls,n=e.className,o=e.disabled,i=e.checked,l=e.label,c=e.title,s=e.value,u=e.onChange;return r.createElement("label",{className:a()(n,x({},"".concat(t,"-item-disabled"),o))},r.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:o,checked:i,onChange:function(e){o||u(e,s)}}),r.createElement("div",{className:"".concat(t,"-item-label"),title:c,role:"option","aria-selected":i},l))},UM=r.forwardRef((function(e,t){var n,o,i=e.prefixCls,c=void 0===i?"rc-segmented":i,s=e.direction,u=e.vertical,d=e.options,f=void 0===d?[]:d,p=e.disabled,m=e.defaultValue,g=e.value,h=e.onChange,v=e.className,y=void 0===v?"":v,C=e.motionName,S=void 0===C?"thumb-motion":C,$=ni(e,GM),k=r.useRef(null),E=r.useMemo((function(){return I(k,t)}),[k,t]),O=r.useMemo((function(){return function(e){return e.map((function(e){if("object"===b(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==b(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return w(w({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(f)}),[f]),j=Be(Gn(null===(n=O[0])||void 0===n?void 0:n.value,{value:g,defaultValue:m}),2),M=j[0],N=j[1],P=Be(r.useState(!1),2),R=P[0],T=P[1],A=function(e,t){p||(N(t),null==h||h(t))},z=ye($,["children"]);return r.createElement("div",(0,l.A)({role:"listbox","aria-label":"segmented control"},z,{className:a()(c,(o={},x(o,"".concat(c,"-rtl"),"rtl"===s),x(o,"".concat(c,"-disabled"),p),x(o,"".concat(c,"-vertical"),u),o),y),ref:E}),r.createElement("div",{className:"".concat(c,"-group")},r.createElement(XM,{vertical:u,prefixCls:c,value:M,containerRef:k,motionName:"".concat(c,"-").concat(S),direction:s,getValueIndex:function(e){return O.findIndex((function(t){return t.value===e}))},onMotionStart:function(){T(!0)},onMotionEnd:function(){T(!1)}}),O.map((function(e){return r.createElement(YM,(0,l.A)({},e,{key:e.value,prefixCls:c,className:a()(e.className,"".concat(c,"-item"),x({},"".concat(c,"-item-selected"),e.value===M&&!R)),checked:e.value===M,onChange:A,disabled:!!p||!!e.disabled}))}))))}));const QM=UM;function ZM(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function JM(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const eI=Object.assign({overflow:"hidden"},fr),tI=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${yt(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},JM(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:yt(n),padding:`0 ${yt(e.segmentedPaddingHorizontal)}`},eI),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},JM(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${yt(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:yt(r),padding:`0 ${yt(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:yt(o),padding:`0 ${yt(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),ZM(`&-disabled ${t}-item`,e)),ZM(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},nI=Vo("Segmented",(e=>{const{lineWidth:t,calc:n}=e,r=ir(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[tI(r)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}}));var rI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:o,rootClassName:i,block:l,options:c=[],size:s="middle",style:u,vertical:d}=e,f=rI(e,["prefixCls","className","rootClassName","block","options","size","style","vertical"]),{getPrefixCls:p,direction:m,segmented:g}=r.useContext(Ae),h=p("segmented",n),[v,b,y]=nI(h),x=ms(s),C=r.useMemo((()=>c.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,o=rI(e,["icon","label"]);return Object.assign(Object.assign({},o),{label:r.createElement(r.Fragment,null,r.createElement("span",{className:`${h}-item-icon`},t),n&&r.createElement("span",null,n))})}return e}))),[c,h]),w=a()(o,i,null==g?void 0:g.className,{[`${h}-block`]:l,[`${h}-sm`]:"small"===x,[`${h}-lg`]:"large"===x,[`${h}-vertical`]:d},b,y),S=Object.assign(Object.assign({},null==g?void 0:g.style),u);return v(r.createElement(QM,Object.assign({},f,{className:w,style:S,options:C,ref:t,prefixCls:h,direction:m,vertical:d})))})),iI=oI,aI=o().createContext({}),lI=o().createContext({}),cI=e=>{let{prefixCls:t,value:n,onChange:r}=e;return o().createElement("div",{className:`${t}-clear`,onClick:()=>{if(r&&n&&!n.cleared){const e=n.toHsb();e.a=0;const t=Pu(e);t.cleared=!0,r(t)}}})};var sI;!function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"}(sI||(sI={}));const uI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var dI=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:uI}))};const fI=r.forwardRef(dI);function pI(){return"function"==typeof BigInt}function mI(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function gI(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function hI(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function vI(e){var t=String(e);if(hI(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&yI(t)?t.length-t.indexOf(".")-1:0}function bI(e){var t=String(e);if(hI(e)){if(e>Number.MAX_SAFE_INTEGER)return String(pI()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":gI("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),CI=function(){function e(t){re(this,e),x(this,"origin",""),x(this,"number",void 0),x(this,"empty",void 0),mI(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return ie(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":bI(this.number)}}]),e}();function wI(e){return pI()?new xI(e):new CI(e)}function SI(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=gI(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?SI(wI(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}const $I=wI;function kI(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function EI(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=kI(t,e,r)):n(o=kI(t,e,""))}}function OI(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var jI=o().forwardRef((function(e,t){var n,i,c=e.inputElement,s=e.children,u=e.prefixCls,d=e.prefix,f=e.suffix,p=e.addonBefore,m=e.addonAfter,g=e.className,h=e.style,v=e.disabled,y=e.readOnly,C=e.focused,S=e.triggerFocus,$=e.allowClear,k=e.value,E=e.handleReset,O=e.hidden,j=e.classes,M=e.classNames,I=e.dataAttrs,N=e.styles,P=e.components,R=e.onClear,T=null!=s?s:c,A=(null==P?void 0:P.affixWrapper)||"span",z=(null==P?void 0:P.groupWrapper)||"span",_=(null==P?void 0:P.wrapper)||"span",D=(null==P?void 0:P.groupAddon)||"span",B=(0,r.useRef)(null),H=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),L=(0,r.cloneElement)(T,{value:k,className:a()(T.props.className,!H&&(null==M?void 0:M.variant))||null}),F=(0,r.useRef)(null);if(o().useImperativeHandle(t,(function(){return{nativeElement:F.current||B.current}})),H){var W=null;if($){var V=!v&&!y&&k,q="".concat(u,"-clear-icon"),K="object"===b($)&&null!=$&&$.clearIcon?$.clearIcon:"✖";W=o().createElement("span",{onClick:function(e){null==E||E(e),null==R||R()},onMouseDown:function(e){return e.preventDefault()},className:a()(q,x(x({},"".concat(q,"-hidden"),!V),"".concat(q,"-has-suffix"),!!f)),role:"button",tabIndex:-1},K)}var X="".concat(u,"-affix-wrapper"),G=a()(X,x(x(x(x(x({},"".concat(u,"-disabled"),v),"".concat(X,"-disabled"),v),"".concat(X,"-focused"),C),"".concat(X,"-readonly"),y),"".concat(X,"-input-with-clear-btn"),f&&$&&k),null==j?void 0:j.affixWrapper,null==M?void 0:M.affixWrapper,null==M?void 0:M.variant),Y=(f||$)&&o().createElement("span",{className:a()("".concat(u,"-suffix"),null==M?void 0:M.suffix),style:null==N?void 0:N.suffix},W,f);L=o().createElement(A,(0,l.A)({className:G,style:null==N?void 0:N.affixWrapper,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==S||S())}},null==I?void 0:I.affixWrapper,{ref:B}),d&&o().createElement("span",{className:a()("".concat(u,"-prefix"),null==M?void 0:M.prefix),style:null==N?void 0:N.prefix},d),L,Y)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var U="".concat(u,"-group"),Q="".concat(U,"-addon"),Z="".concat(U,"-wrapper"),J=a()("".concat(u,"-wrapper"),U,null==j?void 0:j.wrapper,null==M?void 0:M.wrapper),ee=a()(Z,x({},"".concat(Z,"-disabled"),v),null==j?void 0:j.group,null==M?void 0:M.groupWrapper);L=o().createElement(z,{className:ee,ref:F},o().createElement(_,{className:J},p&&o().createElement(D,{className:Q},p),L,m&&o().createElement(D,{className:Q},m)))}return o().cloneElement(L,{className:a()(null===(n=L.props)||void 0===n?void 0:n.className,g)||null,style:w(w({},null===(i=L.props)||void 0===i?void 0:i.style),h),hidden:O})}));const MI=jI;var II=["show"];function NI(e,t){return r.useMemo((function(){var n={};t&&(n.show="object"===b(t)&&t.formatter?t.formatter:!!t);var r=n=w(w({},n),e),o=r.show,i=ni(r,II);return w(w({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var PI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],RI=(0,r.forwardRef)((function(e,t){var n=e.autoComplete,i=e.onChange,c=e.onFocus,s=e.onBlur,u=e.onPressEnter,d=e.onKeyDown,f=e.onKeyUp,p=e.prefixCls,m=void 0===p?"rc-input":p,g=e.disabled,h=e.htmlSize,v=e.className,b=e.maxLength,y=e.suffix,C=e.showCount,S=e.count,$=e.type,k=void 0===$?"text":$,E=e.classes,O=e.classNames,j=e.styles,M=e.onCompositionStart,I=e.onCompositionEnd,N=ni(e,PI),P=Be((0,r.useState)(!1),2),R=P[0],T=P[1],A=(0,r.useRef)(!1),z=(0,r.useRef)(!1),_=(0,r.useRef)(null),D=(0,r.useRef)(null),B=function(e){_.current&&OI(_.current,e)},H=Be(Gn(e.defaultValue,{value:e.value}),2),L=H[0],F=H[1],W=null==L?"":String(L),V=Be((0,r.useState)(null),2),q=V[0],K=V[1],X=NI(S,C),G=X.max||b,Y=X.strategy(W),U=!!G&&Y>G;(0,r.useImperativeHandle)(t,(function(){var e;return{focus:B,blur:function(){var e;null===(e=_.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=_.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=_.current)||void 0===e||e.select()},input:_.current,nativeElement:(null===(e=D.current)||void 0===e?void 0:e.nativeElement)||_.current}})),(0,r.useEffect)((function(){T((function(e){return(!e||!g)&&e}))}),[g]);var Q=function(e,t,n){var r,o,a=t;if(!A.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max)t!==(a=X.exceedFormatter(t,{max:X.max}))&&K([(null===(r=_.current)||void 0===r?void 0:r.selectionStart)||0,(null===(o=_.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;F(a),_.current&&EI(_.current,e,i,a)};(0,r.useEffect)((function(){var e;q&&(null===(e=_.current)||void 0===e||e.setSelectionRange.apply(e,Se(q)))}),[q]);var Z,J=U&&"".concat(m,"-out-of-range");return o().createElement(MI,(0,l.A)({},N,{prefixCls:m,className:a()(v,J),handleReset:function(e){F(""),B(),_.current&&EI(_.current,e,i)},value:W,focused:R,triggerFocus:B,suffix:function(){var e=Number(G)>0;if(y||X.show){var t=X.showFormatter?X.showFormatter({value:W,count:Y,maxLength:G}):"".concat(Y).concat(e?" / ".concat(G):"");return o().createElement(o().Fragment,null,X.show&&o().createElement("span",{className:a()("".concat(m,"-show-count-suffix"),x({},"".concat(m,"-show-count-has-suffix"),!!y),null==O?void 0:O.count),style:w({},null==j?void 0:j.count)},t),y)}return null}(),disabled:g,classes:E,classNames:O,styles:j}),(Z=ye(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),o().createElement("input",(0,l.A)({autoComplete:n},Z,{onChange:function(e){Q(e,e.target.value,{source:"change"})},onFocus:function(e){T(!0),null==c||c(e)},onBlur:function(e){T(!1),null==s||s(e)},onKeyDown:function(e){u&&"Enter"===e.key&&!z.current&&(z.current=!0,u(e)),null==d||d(e)},onKeyUp:function(e){"Enter"===e.key&&(z.current=!1),null==f||f(e)},className:a()(m,x({},"".concat(m,"-disabled"),g),null==O?void 0:O.input),style:null==j?void 0:j.input,ref:_,size:h,type:k,onCompositionStart:function(e){A.current=!0,null==M||M(e)},onCompositionEnd:function(e){A.current=!1,Q(e,e.currentTarget.value,{source:"compositionEnd"}),null==I||I(e)}}))))}));const TI=RI;function AI(e){var t=e.prefixCls,n=e.upNode,o=e.downNode,i=e.upDisabled,c=e.downDisabled,s=e.onStep,u=r.useRef(),d=r.useRef([]),f=r.useRef();f.current=s;var p,m,g,h=function(){clearTimeout(u.current)},v=function(e,t){e.preventDefault(),h(),f.current(t),u.current=setTimeout((function e(){f.current(t),u.current=setTimeout(e,200)}),600)};if(r.useEffect((function(){return function(){h(),d.current.forEach((function(e){return Ie.cancel(e)}))}}),[]),p=Be((0,r.useState)(!1),2),m=p[0],g=p[1],Ot((function(){g(Pg())}),[]),m)return null;var b="".concat(t,"-handler"),y=a()(b,"".concat(b,"-up"),x({},"".concat(b,"-up-disabled"),i)),C=a()(b,"".concat(b,"-down"),x({},"".concat(b,"-down-disabled"),c)),w=function(){return d.current.push(Ie(h))},S={unselectable:"on",role:"button",onMouseUp:w,onMouseLeave:w};return r.createElement("div",{className:"".concat(b,"-wrap")},r.createElement("span",(0,l.A)({},S,{onMouseDown:function(e){v(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:y}),n||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),r.createElement("span",(0,l.A)({},S,{onMouseDown:function(e){v(e,!1)},"aria-label":"Decrease Value","aria-disabled":c,className:C}),o||r.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function zI(e){var t="number"==typeof e?bI(e):gI(e).fullStr;return t.includes(".")?gI(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var _I=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],DI=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],BI=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},HI=function(e){var t=$I(e);return t.isInvalidate()?null:t},LI=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,c=e.min,s=e.max,u=e.step,d=void 0===u?1:u,f=e.defaultValue,p=e.value,m=e.disabled,g=e.readOnly,h=e.upHandler,y=e.downHandler,C=e.keyboard,w=e.changeOnWheel,S=void 0!==w&&w,$=e.controls,k=void 0===$||$,E=(e.classNames,e.stringMode),O=e.parser,j=e.formatter,M=e.precision,N=e.decimalSeparator,P=e.onChange,R=e.onInput,T=e.onPressEnter,A=e.onStep,z=e.changeOnBlur,_=void 0===z||z,D=e.domRef,B=ni(e,_I),H="".concat(n,"-input"),L=r.useRef(null),F=Be(r.useState(!1),2),W=F[0],V=F[1],q=r.useRef(!1),K=r.useRef(!1),X=r.useRef(!1),G=Be(r.useState((function(){return $I(null!=p?p:f)})),2),Y=G[0],U=G[1],Q=r.useCallback((function(e,t){if(!t)return M>=0?M:Math.max(vI(e),vI(d))}),[M,d]),Z=r.useCallback((function(e){var t=String(e);if(O)return O(t);var n=t;return N&&(n=n.replace(N,".")),n.replace(/[^\w.-]+/g,"")}),[O,N]),J=r.useRef(""),ee=r.useCallback((function(e,t){if(j)return j(e,{userTyping:t,input:String(J.current)});var n="number"==typeof e?bI(e):e;if(!t){var r=Q(n,t);yI(n)&&(N||r>=0)&&(n=SI(n,N||".",r))}return n}),[j,Q,N]),te=Be(r.useState((function(){var e=null!=f?f:p;return Y.isInvalidate()&&["string","number"].includes(b(e))?Number.isNaN(e)?"":e:ee(Y.toString(),!1)})),2),ne=te[0],re=te[1];function oe(e,t){re(ee(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}J.current=ne;var ie,ae,le=r.useMemo((function(){return HI(s)}),[s,M]),ce=r.useMemo((function(){return HI(c)}),[c,M]),se=r.useMemo((function(){return!(!le||!Y||Y.isInvalidate())&&le.lessEquals(Y)}),[le,Y]),ue=r.useMemo((function(){return!(!ce||!Y||Y.isInvalidate())&&Y.lessEquals(ce)}),[ce,Y]),de=function(e,t){var n=(0,r.useRef)(null);return[function(){try{var t=e.selectionStart,r=e.selectionEnd,o=e.value,i=o.substring(0,t),a=o.substring(r);n.current={start:t,end:r,value:o,beforeTxt:i,afterTxt:a}}catch(e){}},function(){if(e&&n.current&&t)try{var r=e.value,o=n.current,i=o.beforeTxt,a=o.afterTxt,l=o.start,c=r.length;if(r.startsWith(i))c=i.length;else if(r.endsWith(a))c=r.length-n.current.afterTxt.length;else{var s=i[l-1],u=r.indexOf(s,l-1);-1!==u&&(c=u+1)}e.setSelectionRange(c,c)}catch(e){v(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(L.current,W),fe=Be(de,2),pe=fe[0],me=fe[1],ge=function(e){return le&&!e.lessEquals(le)?le:ce&&!ce.lessEquals(e)?ce:null},he=function(e){return!ge(e)},ve=function(e,t){var n=e,r=he(n)||n.isEmpty();if(n.isEmpty()||t||(n=ge(n)||n,r=!0),!g&&!m&&r){var o=n.toString(),i=Q(o,t);return i>=0&&(n=$I(SI(o,".",i)),he(n)||(n=$I(SI(o,".",i,!0)))),n.equals(Y)||(void 0===p&&U(n),null==P||P(n.isEmpty()?null:BI(E,n)),void 0===p&&oe(n,t)),n}return Y},be=(ie=(0,r.useRef)(0),ae=function(){Ie.cancel(ie.current)},(0,r.useEffect)((function(){return ae}),[]),function(e){ae(),ie.current=Ie((function(){e()}))}),ye=function e(t){if(pe(),J.current=t,re(t),!K.current){var n=Z(t),r=$I(n);r.isNaN()||ve(r,!0)}null==R||R(t),be((function(){var n=t;O||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},xe=function(e){var t;if(!(e&&se||!e&&ue)){q.current=!1;var n=$I(X.current?zI(d):d);e||(n=n.negate());var r=(Y||$I(0)).add(n.toString()),o=ve(r,!1);null==A||A(BI(E,o),{offset:X.current?zI(d):d,type:e?"up":"down"}),null===(t=L.current)||void 0===t||t.focus()}},Ce=function(e){var t,n=$I(Z(ne));t=n.isNaN()?ve(Y,e):ve(n,e),void 0!==p?oe(Y,!1):t.isNaN()||oe(t,!1)};return r.useEffect((function(){if(S&&W){var e=function(e){xe(e.deltaY<0),e.preventDefault()},t=L.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}})),Et((function(){Y.isInvalidate()||oe(Y,!1)}),[M,j]),Et((function(){var e=$I(p);U(e);var t=$I(Z(ne));e.equals(t)&&q.current&&!j||oe(e,q.current)}),[p]),Et((function(){j&&me()}),[ne]),r.createElement("div",{ref:D,className:a()(n,o,x(x(x(x(x({},"".concat(n,"-focused"),W),"".concat(n,"-disabled"),m),"".concat(n,"-readonly"),g),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!he(Y))),style:i,onFocus:function(){V(!0)},onBlur:function(){_&&Ce(!1),V(!1),q.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;q.current=!0,X.current=n,"Enter"===t&&(K.current||(q.current=!1),Ce(!1),null==T||T(e)),!1!==C&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(xe("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){q.current=!1,X.current=!1},onCompositionStart:function(){K.current=!0},onCompositionEnd:function(){K.current=!1,ye(L.current.value)},onBeforeInput:function(){q.current=!0}},k&&r.createElement(AI,{prefixCls:n,upNode:h,downNode:y,upDisabled:se,downDisabled:ue,onStep:xe}),r.createElement("div",{className:"".concat(H,"-wrap")},r.createElement("input",(0,l.A)({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":s,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:d},B,{ref:I(L,t),className:H,value:ne,onChange:function(e){ye(e.target.value)},disabled:m,readOnly:g}))))})),FI=r.forwardRef((function(e,t){var n=e.disabled,o=e.style,i=e.prefixCls,a=void 0===i?"rc-input-number":i,c=e.value,s=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,m=e.classNames,g=ni(e,DI),h=r.useRef(null),v=r.useRef(null),b=r.useRef(null);return r.useImperativeHandle(t,(function(){return e=b.current,t={nativeElement:h.current.nativeElement||v.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"==typeof r?r.bind(e):r}}):e;var e,t})),r.createElement(MI,{className:p,triggerFocus:function(e){b.current&&OI(b.current,e)},prefixCls:a,value:c,disabled:n,style:o,prefix:s,suffix:u,addonAfter:f,addonBefore:d,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},r.createElement(LI,(0,l.A)({prefixCls:a,disabled:n,ref:b,domRef:v,className:null==m?void 0:m.input},g)))}));const WI=FI,VI=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),qI=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},VI(ir(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),KI=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),XI=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},KI(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),GI=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},KI(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},qI(e))}),XI(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),XI(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),YI=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),UI=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},YI(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),YI(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},qI(e))}})}),QI=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},ZI=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),JI=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ZI(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),eN=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ZI(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},qI(e))}),JI(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),JI(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),nN=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},tN(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tN(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),rN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),oN=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${yt(t)} ${yt(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},iN=e=>({padding:`${yt(e.paddingBlockSM)} ${yt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),aN=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${yt(e.paddingBlock)} ${yt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},rN(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},oN(e)),"&-sm":Object.assign({},iN(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),lN=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},oN(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},iN(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${yt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${yt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${yt(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${yt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${yt(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},cN=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),aN(e)),GI(e)),eN(e)),QI(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},sN=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${yt(e.inputAffixPadding)}`}}}},uN=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,s=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},aN(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),sN(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[s]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},dN=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},pr(e)),lN(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},UI(e)),nN(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},fN=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},pN=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},mN=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},gN=Vo("Input",(e=>{const t=ir(e,Jk(e));return[cN(t),pN(t),uN(t),dN(t),fN(t),mN(t),hd(t)]}),eE,{resetFont:!1}),hN=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},vN=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:c,colorError:s,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:g,handleHoverColor:h,handleOpacity:v,paddingInline:b,paddingBlock:y,handleBg:x,handleActiveBg:C,colorTextDisabled:w,borderRadiusSM:S,borderRadiusLG:$,controlWidth:k,handleBorderColor:E,filledHandleBg:O,lineHeightLG:j,calc:M}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),aN(e)),{display:"inline-block",width:k,margin:0,padding:0,borderRadius:o}),GI(e,{[`${t}-handler-wrap`]:{background:x,[`${t}-handler-down`]:{borderBlockStart:`${yt(n)} ${r} ${E}`}}})),eN(e,{[`${t}-handler-wrap`]:{background:O,[`${t}-handler-down`]:{borderBlockStart:`${yt(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:x}}})),QI(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:j,borderRadius:$,[`input${t}-input`]:{height:M(l).sub(M(n).mul(2)).equal(),padding:`${yt(f)} ${yt(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:S,[`input${t}-input`]:{height:M(c).sub(M(n).mul(2)).equal(),padding:`${yt(d)} ${yt(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},pr(e)),lN(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}},UI(e)),nN(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{width:"100%",padding:`${yt(y)} ${yt(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),rN(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${yt(n)} ${r} ${E}`,transition:`all ${g} linear`,"&:active":{background:C},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},hN(e,"lg")),hN(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:w}})}]},bN=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${yt(n)} 0`}},aN(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${yt(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${yt(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},yN=Vo("InputNumber",(e=>{const t=ir(e,Jk(e));return[vN(t),bN(t),hd(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},eE(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Co(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}});const xN=r.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:o}=r.useContext(Ae),i=r.useRef(null);r.useImperativeHandle(t,(()=>i.current));const{className:l,rootClassName:c,size:s,disabled:u,prefixCls:d,addonBefore:f,addonAfter:p,prefix:m,suffix:g,bordered:h,readOnly:v,status:b,controls:y,variant:x}=e,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=s?s:O)&&void 0!==t?t:e})),D=r.useContext(Nc),B=null!=u?u:D,[H,L]=Yv("inputNumber",x,h),F=P&&r.createElement(r.Fragment,null,A),W=a()({[`${w}-lg`]:"large"===_,[`${w}-sm`]:"small"===_,[`${w}-rtl`]:"rtl"===o,[`${w}-in-form-item`]:T},k),V=`${w}-group`;return $(r.createElement(WI,Object.assign({ref:i,disabled:B,className:a()(E,S,l,c,j),upHandler:M,downHandler:I,prefixCls:w,readOnly:v,controls:N,prefix:m,suffix:F||g,addonBefore:f&&r.createElement(Mp,{form:!0,space:!0},f),addonAfter:p&&r.createElement(Mp,{form:!0,space:!0},p),classNames:{input:W,variant:a()({[`${w}-${H}`]:L},Dv(w,z,P)),affixWrapper:a()({[`${w}-affix-wrapper-sm`]:"small"===_,[`${w}-affix-wrapper-lg`]:"large"===_,[`${w}-affix-wrapper-rtl`]:"rtl"===o,[`${w}-affix-wrapper-without-controls`]:!1===y},k),wrapper:a()({[`${V}-rtl`]:"rtl"===o},k),groupWrapper:a()({[`${w}-group-wrapper-sm`]:"small"===_,[`${w}-group-wrapper-lg`]:"large"===_,[`${w}-group-wrapper-rtl`]:"rtl"===o,[`${w}-group-wrapper-${H}`]:L},Dv(`${w}-group-wrapper`,z,P),k)}},C)))})),CN=xN;CN._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(Uc,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(xN,Object.assign({},e)));const wN=CN,SN=e=>{let{prefixCls:t,min:n=0,max:i=100,value:l,onChange:c,className:s,formatter:u}=e;const d=`${t}-steppers`,[f,p]=(0,r.useState)(l);return(0,r.useEffect)((()=>{Number.isNaN(l)||p(l)}),[l]),o().createElement(wN,{className:a()(d,s),min:n,max:i,value:f,formatter:u,size:"small",onChange:e=>{l||p(e||0),null==c||c(e)}})},$N=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-alpha-input`,[l,c]=(0,r.useState)(Pu(n||"#000"));return(0,r.useEffect)((()=>{n&&c(n)}),[n]),o().createElement(SN,{value:Tu(l),prefixCls:t,formatter:e=>`${e}%`,className:a,onChange:e=>{const t=l.toHsb();t.a=(e||0)/100;const r=Pu(t);n||c(r),null==i||i(r)}})},kN=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:o().createElement(Si,null)}),t};function EN(e,t){const n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,r.useEffect)((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}const ON=(0,r.forwardRef)(((e,t)=>{var n;const{prefixCls:i,bordered:l=!0,status:c,size:s,disabled:u,onBlur:d,onFocus:f,suffix:p,allowClear:m,addonAfter:g,addonBefore:h,className:v,style:b,styles:y,rootClassName:x,onChange:C,classNames:w,variant:S}=e,$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=s?s:A)&&void 0!==t?t:e})),D=o().useContext(Nc),B=null!=u?u:D,{status:H,hasFeedback:L,feedbackIcon:F}=(0,r.useContext)(Ep),W=Bv(H,c),V=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!L;(0,r.useRef)(V);const q=EN(M,!0),K=(L||p)&&o().createElement(o().Fragment,null,p,L&&F),X=kN(null!=m?m:null==O?void 0:O.allowClear),[G,Y]=Yv("input",S,l);return P(o().createElement(TI,Object.assign({ref:I(t,M),prefixCls:j,autoComplete:null==O?void 0:O.autoComplete},$,{disabled:B,onBlur:e=>{q(),null==d||d(e)},onFocus:e=>{q(),null==f||f(e)},style:Object.assign(Object.assign({},null==O?void 0:O.style),b),styles:Object.assign(Object.assign({},null==O?void 0:O.styles),y),suffix:K,allowClear:X,className:a()(v,x,T,N,z,null==O?void 0:O.className),onChange:e=>{q(),null==C||C(e)},addonBefore:h&&o().createElement(Mp,{form:!0,space:!0},h),addonAfter:g&&o().createElement(Mp,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},w),null==O?void 0:O.classNames),{input:a()({[`${j}-sm`]:"small"===_,[`${j}-lg`]:"large"===_,[`${j}-rtl`]:"rtl"===E},null==w?void 0:w.input,null===(n=null==O?void 0:O.classNames)||void 0===n?void 0:n.input,R),variant:a()({[`${j}-${G}`]:Y},Dv(j,W)),affixWrapper:a()({[`${j}-affix-wrapper-sm`]:"small"===_,[`${j}-affix-wrapper-lg`]:"large"===_,[`${j}-affix-wrapper-rtl`]:"rtl"===E},R),wrapper:a()({[`${j}-group-rtl`]:"rtl"===E},R),groupWrapper:a()({[`${j}-group-wrapper-sm`]:"small"===_,[`${j}-group-wrapper-lg`]:"large"===_,[`${j}-group-wrapper-rtl`]:"rtl"===E,[`${j}-group-wrapper-${G}`]:Y},Dv(`${j}-group-wrapper`,W,L),R)})})))})),jN=ON,MN=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},IN=Vo(["Input","OTP"],(e=>{const t=ir(e,Jk(e));return[MN(t)]}),eE);const NN=r.forwardRef(((e,t)=>{const{value:n,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ou.current));const d=()=>{Ie((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return r.createElement(jN,Object.assign({type:!0===l?"password":"text"},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),d()},onKeyUp:e=>{"Backspace"!==e.key||n||i(a-1),d()},onMouseDown:d,onMouseUp:d}))})),PN=NN;function RN(e){return(e||"").split("")}const TN=r.forwardRef(((e,t)=>{const{prefixCls:n,length:o=6,size:i,defaultValue:l,value:c,onChange:s,formatter:u,variant:d,disabled:f,status:p,autoFocus:m,mask:g,type:h}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);onull!=i?i:e)),O=r.useContext(Ep),j=Bv(O.status,p),M=r.useMemo((()=>Object.assign(Object.assign({},O),{status:j,hasFeedback:!1,feedbackIcon:null})),[O,j]),I=r.useRef(null),N=r.useRef({});r.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=N.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tu?u(e):e,[R,T]=r.useState(RN(P(l||"")));r.useEffect((()=>{void 0!==c&&T(RN(c))}),[c]);const A=qn((e=>{T(e),s&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>R[t]!==e))&&s(e.join(""))})),z=qn(((e,t)=>{let n=Se(R);for(let t=0;t=0&&!n[e];e-=1)n.pop();const r=P(n.map((e=>e||" ")).join(""));return n=RN(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),_=(e,t)=>{var n;const r=z(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=N.current[i])||void 0===n||n.focus()),A(r)},D=e=>{var t;null===(t=N.current[e])||void 0===t||t.focus()},B={variant:d,disabled:f,status:j,mask:g,type:h};return S(r.createElement("div",Object.assign({},C,{ref:I,className:a()(x,{[`${x}-sm`]:"small"===E,[`${x}-lg`]:"large"===E,[`${x}-rtl`]:"rtl"===y},k,$)}),r.createElement(Ep.Provider,{value:M},Array.from({length:o}).map(((e,t)=>{const n=`otp-${t}`,o=R[t]||"";return r.createElement(PN,Object.assign({ref:e=>{N.current[t]=e},key:n,index:t,size:E,htmlSize:1,className:`${x}-input`,onChange:_,value:o,onActiveChange:D,autoFocus:0===t&&m},B))})))))})),AN=TN,zN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var _N=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:zN}))};const DN=r.forwardRef(_N),BN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var HN=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:BN}))};const LN=r.forwardRef(HN);const FN=e=>e?r.createElement(LN,null):r.createElement(DN,null),WN={click:"onClick",hover:"onMouseOver"},VN=r.forwardRef(((e,t)=>{const{disabled:n,action:o="click",visibilityToggle:i=!0,iconRender:l=FN}=e,c=r.useContext(Nc),s=null!=n?n:c,u="object"==typeof i&&void 0!==i.visible,[d,f]=(0,r.useState)((()=>!!u&&i.visible)),p=(0,r.useRef)(null);r.useEffect((()=>{u&&f(i.visible)}),[u,i]);const m=EN(p),g=()=>{s||(d&&m(),f((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:h,prefixCls:v,inputPrefixCls:b,size:y}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const t=WN[o]||"",n=l(d),i={[t]:g,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(n)?n:r.createElement("span",null,n),i)})(S),k=a()(S,h,{[`${S}-${y}`]:!!y}),E=Object.assign(Object.assign({},ye(x,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:k,prefixCls:w,suffix:$});return y&&(E.size=y),r.createElement(jN,Object.assign({ref:I(t,p)},E))})),qN=VN;const KN=r.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:i,size:l,suffix:c,enterButton:s=!1,addonAfter:u,loading:d,disabled:f,onSearch:p,onChange:m,onCompositionStart:g,onCompositionEnd:h}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=l?l:S)&&void 0!==t?t:e})),k=r.useRef(null),E=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;p&&p(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},j="boolean"==typeof s?r.createElement(qb,null):null,M=`${C}-button`;let N;const P=s||{},R=P.type&&!0===P.type.__ANT_BUTTON;N=R||"button"===P.type?Na(P,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},R?{className:M,size:$}:{})):r.createElement($d,{className:M,type:s?"primary":void 0,size:$,disabled:f,key:"enterButton",onMouseDown:E,onClick:O,loading:d,icon:j},s),u&&(N=[N,Na(u,{key:"addonAfter"})]);const T=a()(C,{[`${C}-rtl`]:"rtl"===y,[`${C}-${$}`]:!!$,[`${C}-with-button`]:!!s},i);return r.createElement(jN,Object.assign({ref:I(k,t),onPressEnter:e=>{x.current||d||O(e)}},v,{size:$,onCompositionStart:e=>{x.current=!0,null==g||g(e)},onCompositionEnd:e=>{x.current=!1,null==h||h(e)},prefixCls:w,addonAfter:N,suffix:c,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&p&&p(e.target.value,e,{source:"clear"}),null==m||m(e)},className:T,disabled:f}))})),XN=KN;var GN,YN=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],UN={};var QN=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ZN=r.forwardRef((function(e,t){var n=e,o=n.prefixCls,i=n.defaultValue,c=n.value,s=n.autoSize,u=n.onResize,d=n.className,f=n.style,p=n.disabled,m=n.onChange,g=(n.onInternalAutoSize,ni(n,QN)),h=Be(Gn(i,{value:c,postState:function(e){return null!=e?e:""}}),2),v=h[0],y=h[1],C=r.useRef();r.useImperativeHandle(t,(function(){return{textArea:C.current}}));var S=Be(r.useMemo((function(){return s&&"object"===b(s)?[s.minRows,s.maxRows]:[]}),[s]),2),$=S[0],k=S[1],E=!!s,O=Be(r.useState(2),2),j=O[0],M=O[1],I=Be(r.useState(),2),N=I[0],P=I[1],R=function(){M(0)};Ot((function(){E&&R()}),[c,$,k,E]),Ot((function(){if(0===j)M(1);else if(1===j){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;GN||((GN=document.createElement("textarea")).setAttribute("tab-index","-1"),GN.setAttribute("aria-hidden","true"),GN.setAttribute("name","hiddenTextarea"),document.body.appendChild(GN)),e.getAttribute("wrap")?GN.setAttribute("wrap",e.getAttribute("wrap")):GN.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&UN[n])return UN[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:YN.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(UN[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;GN.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),GN.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,f=GN.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){GN.value=" ";var p=GN.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),s=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}(C.current,!1,$,k);M(2),P(e)}else!function(){try{if(document.activeElement===C.current){var e=C.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;C.current.setSelectionRange(t,n),C.current.scrollTop=r}}catch(e){}}()}),[j]);var T=r.useRef(),A=function(){Ie.cancel(T.current)};r.useEffect((function(){return A}),[]);var z=E?N:null,_=w(w({},f),z);return 0!==j&&1!==j||(_.overflowY="hidden",_.overflowX="hidden"),r.createElement(be,{onResize:function(e){2===j&&(null==u||u(e),s&&(A(),T.current=Ie((function(){R()}))))},disabled:!(s||u)},r.createElement("textarea",(0,l.A)({},g,{ref:C,style:_,className:a()(o,d,x({},"".concat(o,"-disabled"),p)),disabled:p,value:v,onChange:function(e){y(e.target.value),null==m||m(e)}})))}));const JN=ZN;var eP=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],tP=o().forwardRef((function(e,t){var n,i=e.defaultValue,c=e.value,s=e.onFocus,u=e.onBlur,d=e.onChange,f=e.allowClear,p=e.maxLength,m=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,v=e.prefixCls,b=void 0===v?"rc-textarea":v,y=e.showCount,C=e.count,S=e.className,$=e.style,k=e.disabled,E=e.hidden,O=e.classNames,j=e.styles,M=e.onResize,I=e.onClear,N=e.onPressEnter,P=e.readOnly,R=e.autoSize,T=e.onKeyDown,A=ni(e,eP),z=Be(Gn(i,{value:c,defaultValue:i}),2),_=z[0],D=z[1],B=null==_?"":String(_),H=Be(o().useState(!1),2),L=H[0],F=H[1],W=o().useRef(!1),V=Be(o().useState(null),2),q=V[0],K=V[1],X=(0,r.useRef)(null),G=(0,r.useRef)(null),Y=function(){var e;return null===(e=G.current)||void 0===e?void 0:e.textArea},U=function(){Y().focus()};(0,r.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:G.current,focus:U,blur:function(){Y().blur()},nativeElement:(null===(e=X.current)||void 0===e?void 0:e.nativeElement)||Y()}})),(0,r.useEffect)((function(){F((function(e){return!k&&e}))}),[k]);var Q=Be(o().useState(null),2),Z=Q[0],J=Q[1];o().useEffect((function(){var e;Z&&(e=Y()).setSelectionRange.apply(e,Se(Z))}),[Z]);var ee,te=NI(C,y),ne=null!==(n=te.max)&&void 0!==n?n:p,re=Number(ne)>0,oe=te.strategy(B),ie=!!ne&&oe>ne,ae=function(e,t){var n=t;!W.current&&te.exceedFormatter&&te.max&&te.strategy(t)>te.max&&t!==(n=te.exceedFormatter(t,{max:te.max}))&&J([Y().selectionStart||0,Y().selectionEnd||0]),D(n),EI(e.currentTarget,e,d,n)},le=h;te.show&&(ee=te.showFormatter?te.showFormatter({value:B,count:oe,maxLength:ne}):"".concat(oe).concat(re?" / ".concat(ne):""),le=o().createElement(o().Fragment,null,le,o().createElement("span",{className:a()("".concat(b,"-data-count"),null==O?void 0:O.count),style:null==j?void 0:j.count},ee)));var ce=!R&&!y&&!f;return o().createElement(MI,{ref:X,value:B,allowClear:f,handleReset:function(e){D(""),U(),EI(Y(),e,d)},suffix:le,prefixCls:b,classNames:w(w({},O),{},{affixWrapper:a()(null==O?void 0:O.affixWrapper,x(x({},"".concat(b,"-show-count"),y),"".concat(b,"-textarea-allow-clear"),f))}),disabled:k,focused:L,className:a()(S,ie&&"".concat(b,"-out-of-range")),style:w(w({},$),q&&!ce?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ee?ee:void 0}},hidden:E,readOnly:P,onClear:I},o().createElement(JN,(0,l.A)({},A,{autoSize:R,maxLength:p,onKeyDown:function(e){"Enter"===e.key&&N&&N(e),null==T||T(e)},onChange:function(e){ae(e,e.target.value)},onFocus:function(e){F(!0),null==s||s(e)},onBlur:function(e){F(!1),null==u||u(e)},onCompositionStart:function(e){W.current=!0,null==m||m(e)},onCompositionEnd:function(e){W.current=!1,ae(e,e.currentTarget.value),null==g||g(e)},className:a()(null==O?void 0:O.textarea),style:w(w({},null==j?void 0:j.textarea),{},{resize:null==$?void 0:$.resize}),disabled:k,prefixCls:b,onResize:function(e){var t;null==M||M(e),null!==(t=Y())&&void 0!==t&&t.style.height&&K(!0)},ref:G,readOnly:P})))}));const nP=tP;const rP=(0,r.forwardRef)(((e,t)=>{var n,o;const{prefixCls:i,bordered:l=!0,size:c,disabled:s,status:u,allowClear:d,classNames:f,rootClassName:p,className:m,style:g,styles:h,variant:v}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var e;return{resizableTextArea:null===(e=M.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=M.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.blur()}}}));const I=y("input",i),N=rl(I),[P,R,T]=gN(I,N),[A,z]=Yv("textArea",v,l),_=kN(null!=d?d:null==C?void 0:C.allowClear);return P(r.createElement(nP,Object.assign({autoComplete:null==C?void 0:C.autoComplete},b,{style:Object.assign(Object.assign({},null==C?void 0:C.style),g),styles:Object.assign(Object.assign({},null==C?void 0:C.styles),h),disabled:$,allowClear:_,className:a()(T,N,m,p,null==C?void 0:C.className),classNames:Object.assign(Object.assign(Object.assign({},f),null==C?void 0:C.classNames),{textarea:a()({[`${I}-sm`]:"small"===w,[`${I}-lg`]:"large"===w},R,null==f?void 0:f.textarea,null===(n=null==C?void 0:C.classNames)||void 0===n?void 0:n.textarea),variant:a()({[`${I}-${A}`]:z},Dv(I,j)),affixWrapper:a()(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:"rtl"===x,[`${I}-affix-wrapper-sm`]:"small"===w,[`${I}-affix-wrapper-lg`]:"large"===w,[`${I}-textarea-show-count`]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},R)}),prefixCls:I,suffix:E&&r.createElement("span",{className:`${I}-textarea-suffix`},O),ref:M})))})),oP=rP,iP=jN;iP.Group=e=>{const{getPrefixCls:t,direction:n}=(0,r.useContext)(Ae),{prefixCls:o,className:i}=e,l=t("input-group",o),c=t("input"),[s,u]=gN(c),d=a()(l,{[`${l}-lg`]:"large"===e.size,[`${l}-sm`]:"small"===e.size,[`${l}-compact`]:e.compact,[`${l}-rtl`]:"rtl"===n},u,i),f=(0,r.useContext)(Ep),p=(0,r.useMemo)((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);return s(r.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},r.createElement(Ep.Provider,{value:p},e.children)))},iP.Search=XN,iP.TextArea=oP,iP.Password=qN,iP.OTP=AN;const aP=iP,lP=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,cP=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-hex-input`,[l,c]=(0,r.useState)((()=>n?cu(n.toHexString()):void 0));return(0,r.useEffect)((()=>{n&&c(cu(n.toHexString()))}),[n]),o().createElement(aP,{className:a,value:l,prefix:"#",onChange:e=>{const t=e.target.value;var n;c(cu(t)),n=cu(t,!0),lP.test(`#${n}`)&&(null==i||i(Pu(t)))},size:"small"})},sP=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-hsb-input`,[l,c]=(0,r.useState)(Pu(n||"#000"));(0,r.useEffect)((()=>{n&&c(n)}),[n]);const s=(e,t)=>{const r=l.toHsb();r[t]="h"===t?e:(e||0)/100;const o=Pu(r);n||c(o),null==i||i(o)};return o().createElement("div",{className:a},o().createElement(SN,{max:360,min:0,value:Number(l.toHsb().h),prefixCls:t,className:a,formatter:e=>Ru(e||0).toString(),onChange:e=>s(Number(e),"h")}),o().createElement(SN,{max:100,min:0,value:100*Number(l.toHsb().s),prefixCls:t,className:a,formatter:e=>`${Ru(e||0)}%`,onChange:e=>s(Number(e),"s")}),o().createElement(SN,{max:100,min:0,value:100*Number(l.toHsb().b),prefixCls:t,className:a,formatter:e=>`${Ru(e||0)}%`,onChange:e=>s(Number(e),"b")}))},uP=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-rgb-input`,[l,c]=(0,r.useState)(Pu(n||"#000"));(0,r.useEffect)((()=>{n&&c(n)}),[n]);const s=(e,t)=>{const r=l.toRgb();r[t]=e||0;const o=Pu(r);n||c(o),null==i||i(o)};return o().createElement("div",{className:a},o().createElement(SN,{max:255,min:0,value:Number(l.toRgb().r),prefixCls:t,className:a,onChange:e=>s(Number(e),"r")}),o().createElement(SN,{max:255,min:0,value:Number(l.toRgb().g),prefixCls:t,className:a,onChange:e=>s(Number(e),"g")}),o().createElement(SN,{max:255,min:0,value:Number(l.toRgb().b),prefixCls:t,className:a,onChange:e=>s(Number(e),"b")}))},dP=[sI.hex,sI.hsb,sI.rgb].map((e=>({value:e,label:e.toLocaleUpperCase()}))),fP=e=>{const{prefixCls:t,format:n,value:i,disabledAlpha:a,onFormatChange:l,onChange:c}=e,[s,u]=Gn(sI.hex,{value:n,onChange:l}),d=`${t}-input`,f=(0,r.useMemo)((()=>{const e={value:i,prefixCls:t,onChange:c};switch(s){case sI.hsb:return o().createElement(sP,Object.assign({},e));case sI.rgb:return o().createElement(uP,Object.assign({},e));default:return o().createElement(cP,Object.assign({},e))}}),[s,t,i,c]);return o().createElement("div",{className:`${d}-container`},o().createElement(Zb,{value:s,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{u(e)},className:`${t}-format-select`,size:"small",options:dP}),o().createElement("div",{className:d},f),!a&&o().createElement($N,{prefixCls:t,value:i,onChange:c}))};function pP(e,t,n){return(e-t)/(n-t)}function mP(e,t,n,r){var o=pP(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function gP(e,t){return Array.isArray(e)?e[t]:e}const hP=r.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});var vP=r.createContext({}),bP=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],yP=r.forwardRef((function(e,t){var n,o=e.prefixCls,i=e.value,c=e.valueIndex,s=e.onStartMove,u=e.onDelete,d=e.style,f=e.render,p=e.dragging,m=e.draggingDelete,g=e.onOffsetChange,h=e.onChangeComplete,v=e.onFocus,b=e.onMouseEnter,y=ni(e,bP),C=r.useContext(hP),S=C.min,$=C.max,k=C.direction,E=C.disabled,O=C.keyboard,j=C.range,M=C.tabIndex,I=C.ariaLabelForHandle,N=C.ariaLabelledByForHandle,P=C.ariaValueTextFormatterForHandle,R=C.styles,T=C.classNames,A="".concat(o,"-handle"),z=function(e){E||s(e,c)},_=mP(k,i,S,$),D={};null!==c&&(D={tabIndex:E?null:gP(M,c),role:"slider","aria-valuemin":S,"aria-valuemax":$,"aria-valuenow":i,"aria-disabled":E,"aria-label":gP(I,c),"aria-labelledby":gP(N,c),"aria-valuetext":null===(n=gP(P,c))||void 0===n?void 0:n(i),"aria-orientation":"ltr"===k||"rtl"===k?"horizontal":"vertical",onMouseDown:z,onTouchStart:z,onFocus:function(e){null==v||v(e,c)},onMouseEnter:function(e){b(e,c)},onKeyDown:function(e){if(!E&&O){var t=null;switch(e.which||e.keyCode){case bl.LEFT:t="ltr"===k||"btt"===k?-1:1;break;case bl.RIGHT:t="ltr"===k||"btt"===k?1:-1;break;case bl.UP:t="ttb"!==k?1:-1;break;case bl.DOWN:t="ttb"!==k?-1:1;break;case bl.HOME:t="min";break;case bl.END:t="max";break;case bl.PAGE_UP:t=2;break;case bl.PAGE_DOWN:t=-2;break;case bl.BACKSPACE:case bl.DELETE:u(c)}null!==t&&(e.preventDefault(),g(t,c))}},onKeyUp:function(e){switch(e.which||e.keyCode){case bl.LEFT:case bl.RIGHT:case bl.UP:case bl.DOWN:case bl.HOME:case bl.END:case bl.PAGE_UP:case bl.PAGE_DOWN:null==h||h()}}});var B=r.createElement("div",(0,l.A)({ref:t,className:a()(A,x(x(x({},"".concat(A,"-").concat(c+1),null!==c&&j),"".concat(A,"-dragging"),p),"".concat(A,"-dragging-delete"),m),T.handle),style:w(w(w({},_),d),R.handle)},D,y));return f&&(B=f(B,{index:c,prefixCls:o,value:i,dragging:p,draggingDelete:m})),B}));const xP=yP;var CP=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],wP=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.style,i=e.onStartMove,a=e.onOffsetChange,c=e.values,s=e.handleRender,u=e.activeHandleRender,d=e.draggingIndex,f=e.draggingDelete,p=e.onFocus,m=ni(e,CP),g=r.useRef({}),h=Be(r.useState(!1),2),v=h[0],b=h[1],y=Be(r.useState(-1),2),x=y[0],C=y[1],$=function(e){C(e),b(!0)};r.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=g.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,S.flushSync)((function(){b(!1)}))}}}));var k=w({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:function(e,t){$(t),null==p||p(e)},onMouseEnter:function(e,t){$(t)}},m);return r.createElement(r.Fragment,null,c.map((function(e,t){var n=d===t;return r.createElement(xP,(0,l.A)({ref:function(e){e?g.current[t]=e:delete g.current[t]},dragging:n,draggingDelete:n&&f,style:gP(o,t),key:t,value:e,valueIndex:t},k))})),u&&v&&r.createElement(xP,(0,l.A)({key:"a11y"},k,{value:c[x],valueIndex:null,dragging:-1!==d,draggingDelete:f,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}));const SP=wP,$P=function(e){var t=e.prefixCls,n=e.style,o=e.children,i=e.value,l=e.onClick,c=r.useContext(hP),s=c.min,u=c.max,d=c.direction,f=c.includedStart,p=c.includedEnd,m=c.included,g="".concat(t,"-text"),h=mP(d,i,s,u);return r.createElement("span",{className:a()(g,x({},"".concat(g,"-active"),m&&f<=i&&i<=p)),style:w(w({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){l(i)}},o)},kP=function(e){var t=e.prefixCls,n=e.marks,o=e.onClick,i="".concat(t,"-mark");return n.length?r.createElement("div",{className:i},n.map((function(e){var t=e.value,n=e.style,a=e.label;return r.createElement($P,{key:t,prefixCls:i,style:n,value:t,onClick:o},a)}))):null},EP=function(e){var t=e.prefixCls,n=e.value,o=e.style,i=e.activeStyle,l=r.useContext(hP),c=l.min,s=l.max,u=l.direction,d=l.included,f=l.includedStart,p=l.includedEnd,m="".concat(t,"-dot"),g=d&&f<=n&&n<=p,h=w(w({},mP(u,n,c,s)),"function"==typeof o?o(n):o);return g&&(h=w(w({},h),"function"==typeof i?i(n):i)),r.createElement("span",{className:a()(m,x({},"".concat(m,"-active"),g)),style:h})},OP=function(e){var t=e.prefixCls,n=e.marks,o=e.dots,i=e.style,a=e.activeStyle,l=r.useContext(hP),c=l.min,s=l.max,u=l.step,d=r.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),o&&null!==u)for(var t=c;t<=s;)e.add(t),t+=u;return Array.from(e)}),[c,s,u,o,n]);return r.createElement("div",{className:"".concat(t,"-step")},d.map((function(e){return r.createElement(EP,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})})))},jP=function(e){var t=e.prefixCls,n=e.style,o=e.start,i=e.end,l=e.index,c=e.onStartMove,s=e.replaceCls,u=r.useContext(hP),d=u.direction,f=u.min,p=u.max,m=u.disabled,g=u.range,h=u.classNames,v="".concat(t,"-track"),b=pP(o,f,p),y=pP(i,f,p),C=function(e){!m&&c&&c(e,-1)},S={};switch(d){case"rtl":S.right="".concat(100*b,"%"),S.width="".concat(100*y-100*b,"%");break;case"btt":S.bottom="".concat(100*b,"%"),S.height="".concat(100*y-100*b,"%");break;case"ttb":S.top="".concat(100*b,"%"),S.height="".concat(100*y-100*b,"%");break;default:S.left="".concat(100*b,"%"),S.width="".concat(100*y-100*b,"%")}var $=s||a()(v,x(x({},"".concat(v,"-").concat(l+1),null!==l&&g),"".concat(t,"-track-draggable"),c),h.track);return r.createElement("div",{className:$,style:w(w({},S),n),onMouseDown:C,onTouchStart:C})},MP=function(e){var t=e.prefixCls,n=e.style,o=e.values,i=e.startPoint,l=e.onStartMove,c=r.useContext(hP),s=c.included,u=c.range,d=c.min,f=c.styles,p=c.classNames,m=r.useMemo((function(){if(!u){if(0===o.length)return[];var e=null!=i?i:d,t=o[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],r=0;r=0&&D}),[D,ve]),ye=r.useMemo((function(){return Object.keys(Y||{}).map((function(e){var t=Y[e],n={value:Number(e)};return t&&"object"===b(t)&&!r.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[Y]),xe=function(e,t,n,o,i,a){var l=r.useCallback((function(n){return Math.max(e,Math.min(t,n))}),[e,t]),c=r.useCallback((function(r){if(null!==n){var o=e+Math.round((l(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(i(n),i(t),i(e)),c=Number(o.toFixed(a));return e<=c&&c<=t?c:null}return null}),[n,e,t,l]),s=r.useCallback((function(r){var i=l(r),a=o.map((function(e){return e.value}));null!==n&&a.push(c(r)),a.push(e,t);var s=a[0],u=t-e;return a.forEach((function(e){var t=Math.abs(i-e);t<=u&&(s=e,u=t)})),s}),[e,t,o,n,l,c]),u=function r(i,a,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var u,d=i[l],f=d+a,p=[];o.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(c(d));var m=a>0?1:-1;"unit"===s?p.push(c(d+m*n)):p.push(c(f)),p=p.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===s&&(p=p.filter((function(e){return e!==d})));var g="unit"===s?d:f;u=p[0];var h=Math.abs(u-g);if(p.forEach((function(e){var t=Math.abs(e-g);t1){var v=Se(i);return v[l]=u,r(v,a-m,l,s)}return u}return"min"===a?e:"max"===a?t:void 0},d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=u(e,t,n,r);return{value:i,changed:i!==o}},f=function(e){return null===a&&0===e||"number"==typeof a&&e3&&void 0!==arguments[3]?arguments[3]:"unit",o=e.map(s),l=o[n],c=u(o,t,n,r);if(o[n]=c,!1===i){var p=a||0;n>0&&o[n-1]!==l&&(o[n]=Math.max(o[n],o[n-1]+p)),n0;v-=1)for(var b=!0;f(o[v]-o[v-1])&&b;){var y=d(o,-1,v-1);o[v-1]=y.value,b=y.changed}for(var x=o.length-1;x>0;x-=1)for(var C=!0;f(o[x]-o[x-1])&&C;){var w=d(o,-1,x-1);o[x-1]=w.value,C=w.changed}for(var S=0;S=0?I+1:2;for(n=n.slice(0,r);n.length130&&d=0&&ie.current.focus(e)}Fe(null)}),[Le]);var We=r.useMemo((function(){return(!fe||null!==ve)&&fe}),[fe,ve]),Ve=qn((function(e,t){_e(e,t),null==P||P(Me(je))})),qe=-1!==Re;r.useEffect((function(){if(!qe){var e=je.lastIndexOf(Te);ie.current.focus(e)}}),[qe]);var Ke=r.useMemo((function(){return Se(ze).sort((function(e,t){return e-t}))}),[ze]),Xe=Be(r.useMemo((function(){return ue?[Ke[0],Ke[Ke.length-1]]:[ge,Ke[0]]}),[Ke,ue,ge]),2),Ge=Xe[0],Ye=Xe[1];r.useImperativeHandle(t,(function(){return{focus:function(){ie.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=ae.current)&&void 0!==e&&e.contains(t)&&(null==t||t.blur())}}})),r.useEffect((function(){m&&ie.current.focus(0)}),[]);var Ue=r.useMemo((function(){return{min:ge,max:he,direction:le,disabled:d,keyboard:p,step:ve,included:F,includedStart:Ge,includedEnd:Ye,range:ue,tabIndex:te,ariaLabelForHandle:ne,ariaLabelledByForHandle:re,ariaValueTextFormatterForHandle:oe,styles:s||{},classNames:c||{}}}),[ge,he,le,d,p,ve,F,Ge,Ye,ue,te,ne,re,oe,s,c]);return r.createElement(hP.Provider,{value:Ue},r.createElement("div",{ref:ae,className:a()(o,i,x(x(x(x({},"".concat(o,"-disabled"),d),"".concat(o,"-vertical"),H),"".concat(o,"-horizontal"),!H),"".concat(o,"-with-marks"),ye.length)),style:l,onMouseDown:function(e){e.preventDefault();var t,n=ae.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,l=n.bottom,c=n.right,s=e.clientX,u=e.clientY;switch(le){case"btt":t=(l-u)/o;break;case"ttb":t=(u-a)/o;break;case"rtl":t=(c-s)/r;break;default:t=(s-i)/r}De(we(ge+t*(he-ge)),e)}},r.createElement("div",{className:a()("".concat(o,"-rail"),null==c?void 0:c.rail),style:w(w({},K),null==s?void 0:s.rail)}),!1!==J&&r.createElement(MP,{prefixCls:o,style:V,values:je,startPoint:W,onStartMove:We?Ve:void 0}),r.createElement(OP,{prefixCls:o,marks:ye,dots:U,style:X,activeStyle:G}),r.createElement(SP,{ref:ie,prefixCls:o,style:q,values:ze,draggingIndex:Re,draggingDelete:Ae,onStartMove:Ve,onOffsetChange:function(e,t){if(!d){var n=$e(je,e,t);null==P||P(Me(je)),Ie(n.values),Fe(n.value)}},onFocus:g,onBlur:h,handleRender:Q,activeHandleRender:Z,onChangeComplete:Ne,onDelete:de?function(e){if(!(d||!de||je.length<=pe)){var t=Se(je);t.splice(e,1),null==P||P(Me(t)),Ie(t);var n=Math.max(0,e-1);ie.current.hideHelp(),ie.current.focus(n)}}:void 0}),r.createElement(kP,{prefixCls:o,marks:ye,onClick:De})))}));const PP=NP,RP=r.forwardRef(((e,t)=>{const{open:n,draggingDelete:o}=e,i=(0,r.useRef)(null),a=n&&!o,l=(0,r.useRef)(null);function c(){Ie.cancel(l.current),l.current=null}return r.useEffect((()=>(a?l.current=Ie((()=>{var e;null===(e=i.current)||void 0===e||e.forceAlign(),l.current=null})):c(),c)),[a,e.title]),r.createElement(qy,Object.assign({ref:I(i,t)},e,{open:a}))})),TP=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:c,calc:s,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:h}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{position:"relative",height:r,margin:`${yt(a)} ${yt(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${yt(i)} ${yt(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${h}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${h}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${yt(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:s(m).mul(-1).equal(),insetBlockStart:s(m).mul(-1).equal(),width:s(u).add(s(m).mul(2)).equal(),height:s(u).add(s(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${yt(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${h},\n inset-block-start ${h},\n width ${h},\n height ${h},\n box-shadow ${h},\n outline ${h}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:s(d).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:s(d).sub(u).div(2).add(g).mul(-1).equal(),width:s(d).add(s(g).mul(2)).equal(),height:s(d).add(s(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${yt(g)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${yt(m)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${yt(m)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},AP=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:l}=e,c=t?"paddingBlock":"paddingInline",s=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=l(r).mul(3).sub(o).div(2).equal(),m=l(o).sub(r).div(2).equal(),g=t?{borderWidth:`${yt(m)} 0`,transform:`translateY(${yt(l(m).mul(-1).equal())})`}:{borderWidth:`0 ${yt(m)}`,transform:`translateX(${yt(e.calc(m).mul(-1).equal())})`};return{[c]:r,[u]:l(r).mul(3).equal(),[`${n}-rail`]:{[s]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:l(r).mul(3).add(t?0:a).equal(),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[s]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:l(r).sub(i).div(2).equal()}}},zP=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},AP(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},_P=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},AP(e,!1)),{height:"100%"})}},DP=Vo("Slider",(e=>{const t=ir(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[TP(t),zP(t),_P(t)]}),(e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1.5,i=e.colorPrimary,a=new Co(i).setAlpha(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new Co(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}})),BP=(0,r.createContext)({});function HP(){const[e,t]=r.useState(!1),n=r.useRef(),o=()=>{Ie.cancel(n.current)};return r.useEffect((()=>o),[]),[e,e=>{o(),e?t(e):n.current=Ie((()=>{t(e)}))}]}const LP=o().forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:l,style:c,disabled:s,tooltipPrefixCls:u,tipFormatter:d,tooltipVisible:f,getTooltipPopupContainer:p,tooltipPlacement:m,tooltip:g={},onChangeComplete:h}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o"number"==typeof e?e.toString():""}(_,d),[L,F]=HP(),W=(e,t)=>e||(t?O?"left":"right":"top"),V=C("slider",n),[q,K,X]=DP(V),G=a()(i,null==x?void 0:x.className,l,{[`${V}-rtl`]:O,[`${V}-lock`]:L},K,X);O&&!v.vertical&&(v.reverse=!v.reverse),o().useEffect((()=>{const e=()=>{Ie((()=>{N(!1)}),1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]);const Y=r&&!D,U=k||((e,t)=>{const{index:n}=t,r=e.props;function i(e,t,n){var o,i,a,l;n&&(null===(i=(o=v)[e])||void 0===i||i.call(o,t)),null===(l=(a=r)[e])||void 0===l||l.call(a,t)}const a=Object.assign(Object.assign({},r),{onMouseEnter:e=>{M(!0),i("onMouseEnter",e)},onMouseLeave:e=>{M(!1),i("onMouseLeave",e)},onMouseDown:e=>{N(!0),F(!0),i("onMouseDown",e)},onFocus:e=>{var t;N(!0),null===(t=v.onFocus)||void 0===t||t.call(v,e),i("onFocus",e,!0)},onBlur:e=>{var t;N(!1),null===(t=v.onBlur)||void 0===t||t.call(v,e),i("onBlur",e,!0)}}),l=o().cloneElement(e,a),c=(!!D||B)&&null!==H;return Y?l:o().createElement(RP,Object.assign({},P,{prefixCls:C("tooltip",null!=z?z:u),title:H?H(t.value):"",open:c,placement:W(null!=T?T:m,b),key:n,overlayClassName:`${V}-tooltip`,getPopupContainer:A||p||w}),l)}),Q=Y?(e,t)=>{const n=o().cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return o().createElement(RP,Object.assign({},P,{prefixCls:C("tooltip",null!=z?z:u),title:H?H(t.value):"",open:null!==H&&B,placement:W(null!=T?T:m,b),key:"tooltip",overlayClassName:`${V}-tooltip`,getPopupContainer:A||p||w,draggingDelete:t.draggingDelete}),n)}:void 0,Z=Object.assign(Object.assign({},null==x?void 0:x.style),c);return q(o().createElement(PP,Object.assign({},v,{step:v.step,range:r,className:G,style:Z,disabled:$,ref:t,prefixCls:V,handleRender:U,activeHandleRender:Q,onChangeComplete:e=>{null==h||h(e),F(!1)}})))})),FP=LP;const WP=e=>{const{prefixCls:t,colors:n,type:o,color:i,range:l=!1,className:c,activeIndex:s,onActive:u,onDragStart:d,onDragChange:f,onKeyDelete:p}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o`linear-gradient(90deg, ${n.map((e=>`${e.color} ${e.percent}%`)).join(", ")})`),[n]),v=r.useMemo((()=>i&&o?"alpha"===o?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`:null),[i,o]),b=qn(d),y=qn(f),x=r.useMemo((()=>({onDragStart:b,onDragChange:y})),[]),C=qn(((e,i)=>{const{onFocus:l,style:c,className:d,onKeyDown:f}=e.props,m=Object.assign({},c);return"gradient"===o&&(m.background=zu(n,i.value)),r.cloneElement(e,{onFocus:e=>{null==u||u(i.index),null==l||l(e)},style:m,className:a()(d,{[`${t}-slider-handle-active`]:s===i.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!p||p(i.index),null==f||f(e)}})})),w=r.useMemo((()=>({direction:"ltr",handleRender:C})),[]);return r.createElement(BP.Provider,{value:w},r.createElement(vP.Provider,{value:x},r.createElement(FP,Object.assign({},g,{className:a()(c,`${t}-slider`),tooltip:{open:!1},range:{editable:l,minCount:2},styles:{rail:{background:h},handle:v?{background:v}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))};function VP(e){return Se(e).sort(((e,t)=>e.percent-t.percent))}const qP=e=>{const{prefixCls:t,mode:n,onChange:o,onChangeComplete:i,onActive:a,activeIndex:l,onGradientDragging:c,colors:s}=e,u="gradient"===n,d=r.useMemo((()=>s.map((e=>({percent:e.percent,color:e.color.toRgbString()})))),[s]),f=r.useMemo((()=>d.map((e=>e.percent))),[d]),p=r.useRef(d);return u?r.createElement(WP,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:e=>{i(new su(d)),l>=e.length&&a(e.length-1),c(!1)},disabled:!1,type:"gradient",activeIndex:l,onActive:a,onDragStart:e=>{let{rawValues:t,draggingIndex:n,draggingValue:r}=e;if(t.length>d.length){const e=zu(d,r),t=Se(d);t.splice(n,0,{percent:r,color:e}),p.current=t}else p.current=d;c(!0),o(new su(VP(p.current)),!0)},onDragChange:e=>{let{deleteIndex:t,draggingIndex:n,draggingValue:r}=e,i=Se(p.current);-1!==t?i.splice(t,1):(i[n]=Object.assign(Object.assign({},i[n]),{percent:r}),i=VP(i)),o(new su(i),!0)},onKeyDelete:e=>{const t=Se(d);t.splice(e,1);const n=new su(t);o(n),i(n)}}):null},KP=r.memo(qP);const XP={slider:e=>{const{value:t,onChange:n,onChangeComplete:o}=e;return r.createElement(WP,Object.assign({},e,{value:[t],onChange:e=>n(e[0]),onChangeComplete:e=>o(e[0])}))}},GP=()=>{const e=(0,r.useContext)(aI),{mode:t,onModeChange:n,modeOptions:i,prefixCls:a,allowClear:l,value:c,disabledAlpha:s,onChange:u,onClear:d,onChangeComplete:f,activeIndex:p,gradientDragging:m}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oc.cleared?[{percent:0,color:new su("")},{percent:100,color:new su("")}]:c.getColors()),[c]),v=!c.isGradient(),[b,y]=o().useState(c);Ot((()=>{var e;v||y(null===(e=h[p])||void 0===e?void 0:e.color)}),[m,p]);const x=o().useMemo((()=>{var e;return v?c:m?b:null===(e=h[p])||void 0===e?void 0:e.color}),[c,p,v,b,m]),[C,w]=o().useState(x),[S,$]=o().useState(0),k=(null==C?void 0:C.equals(x))?x:C;Ot((()=>{w(x)}),[S,null==x?void 0:x.toHexString()]);const E=(e,n)=>{let r=Pu(e);if(c.cleared){const e=r.toRgb();if(e.r||e.g||e.b||!n)r=Au(r);else{const{type:e,value:t=0}=n;r=new su({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}if("single"===t)return r;const o=Se(h);return o[p]=Object.assign(Object.assign({},o[p]),{color:r}),new su(o)};let O=null;const j=i.length>1;return(l||j)&&(O=o().createElement("div",{className:`${a}-operation`},j&&o().createElement(iI,{size:"small",options:i,value:t,onChange:n}),o().createElement(cI,Object.assign({prefixCls:a,value:c,onChange:e=>{u(e),null==d||d()}},g)))),o().createElement(o().Fragment,null,O,o().createElement(KP,Object.assign({},e,{colors:h})),o().createElement(lu,{prefixCls:a,value:null==k?void 0:k.toHsb(),disabledAlpha:s,onChange:(e,t)=>{((e,t,n)=>{const r=E(e,n);w(r),u(r,!0)})(e,0,t)},onChangeComplete:(e,t)=>{((e,t)=>{f(E(e,t)),$((e=>e+1))})(e,t)},components:XP}),o().createElement(fP,Object.assign({value:x,onChange:e=>{u(E(e))},prefixCls:a,disabledAlpha:s},g)))},YP=()=>{const{prefixCls:e,value:t,presets:n,onChange:i}=(0,r.useContext)(lI);return Array.isArray(n)?o().createElement(Hu,{value:t,presets:n,prefixCls:e,onChange:i}):null},UP=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:m,onActive:g,format:h,onFormatChange:v,gradientDragging:b,onGradientDragging:y}=e,x=`${t}-inner`,C=o().useMemo((()=>({prefixCls:t,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:m,onActive:g,format:h,onFormatChange:v,gradientDragging:b,onGradientDragging:y})),[t,i,a,l,c,s,u,d,f,p,m,g,h,v,b,y]),w=o().useMemo((()=>({prefixCls:t,value:i,presets:n,onChange:a})),[t,i,n,a]),S=o().createElement("div",{className:`${x}-content`},o().createElement(GP,null),Array.isArray(n)&&o().createElement(VM,null),o().createElement(YP,null));return o().createElement(aI.Provider,{value:C},o().createElement(lI.Provider,{value:w},o().createElement("div",{className:x},"function"==typeof r?r(S,{components:{Picker:GP,Presets:YP}}):S)))};const QP=(0,r.forwardRef)(((e,t)=>{const{color:n,prefixCls:i,open:l,disabled:c,format:s,className:u,showText:d,activeIndex:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(!d)return"";if("function"==typeof d)return d(n);if(n.cleared)return v.transparent;if(n.isGradient())return n.getColors().map(((e,t)=>{const n=-1!==f&&f!==t;return o().createElement("span",{key:t,className:a()(h,n&&`${h}-inactive`)},e.color.toRgbString()," ",e.percent,"%")}));const e=n.toHexString().toUpperCase(),t=Tu(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}}),[n,s,d,f]),y=(0,r.useMemo)((()=>n.cleared?o().createElement(cI,{prefixCls:i}):o().createElement(Qs,{prefixCls:i,color:n.toCssString()})),[n,i]);return o().createElement("div",Object.assign({ref:t,className:a()(m,u,{[`${m}-active`]:l,[`${m}-disabled`]:c})},ja(p)),y,d&&o().createElement("div",{className:g},b))})),ZP=QP,JP=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),eR=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none"},JP("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${yt(i)} ${a}`,borderRadius:"inherit"}})}},tR=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:c,marginXS:s,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:f,colorPickerInputNumberHandleWidth:p,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${yt(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:s,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:yt(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${yt(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:yt(e.calc(c).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:f}}}}}},nR=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:s}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:s,height:s,border:`${yt(c)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},rR=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:c,lineWidth:s,borderRadius:u,colorFill:d,colorWhite:f,marginXXS:p,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${yt(m)} 0`},"&-label":{fontSize:a,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(s).mul(4)).equal(),height:e.calc(i).add(e.calc(s).mul(4)).equal(),position:"absolute",top:e.calc(s).mul(-2).equal(),insetInlineStart:e.calc(s).mul(-2).equal(),borderRadius:u,border:`${yt(s)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${yt(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:f,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},oR=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:c,marginXS:s}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),f={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[JP(yt(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${yt(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":f}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:s,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":f}}}},iR=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${yt(e.controlOutlineWidth)} ${n}`,outline:0}),aR=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},lR=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${yt(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},cR=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},iR(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},iR(e,r,l))}}},sR=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:s,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:yt(i)}}}},uR=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:s,borderRadius:u,marginXS:d,marginSM:f,controlHeight:p,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:h,colorPickerPreviewSize:v,lineWidth:b,colorBorder:y,paddingXXS:x,fontSize:C,colorPrimaryHover:w,controlOutline:S}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${yt(f)} 0 ${yt(d)}`}},[`${n}-panel`]:Object.assign({},nR(e))},oR(e)),eR(e,v)),tR(e)),rR(e)),lR(e,h,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${yt(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(x).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(x).sub(b)).equal(),fontSize:C,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:w},[`&${n}-trigger-active`]:Object.assign({},iR(e,o,S)),"&-disabled":{color:l,background:s,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:l}}},lR(e,m)),eR(e,m)),cR(e)),sR(e))},aR(e))},hd(e,{focusElCls:`${n}-trigger-active`})]},dR=Vo("ColorPicker",(e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=ir(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()});return[uR(r)]}));const fR=e=>{const{mode:t,value:n,defaultValue:i,format:l,defaultFormat:c,allowClear:s=!1,presets:u,children:d,trigger:f="click",open:p,disabled:m,placement:g="bottomLeft",arrow:h=!0,panelRender:v,showText:b,style:y,className:x,size:C,rootClassName:w,prefixCls:S,styles:$,disabledAlpha:k=!1,onFormatChange:E,onChange:O,onClear:j,onOpenChange:M,onChangeComplete:I,getPopupContainer:N,autoAdjustOverflow:P=!0,destroyTooltipOnHide:R}=e,T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o!B&&e,onChange:M}),[F,W]=Gn(l,{value:l,defaultValue:c,onChange:E}),V=A("color-picker",S),[q,K,X,G,Y]=function(e,t,n){const[o]=rs("ColorPicker"),[i,a]=Gn(e,{value:t}),[l,c]=r.useState("single"),[s,u]=r.useMemo((()=>{const e=(Array.isArray(n)?n:[n]).filter((e=>e));e.length||e.push("single");const t=new Set(e),r=[],i=(e,n)=>{t.has(e)&&r.push({label:n,value:e})};return i("single",o.singleColor),i("gradient",o.gradientColor),[r,t]}),[n]),[d,f]=r.useState(null),p=qn((e=>{f(e),a(e)})),m=r.useMemo((()=>{const e=Pu(i||"");return e.equals(d)?d:e}),[i,d]),g=r.useMemo((()=>{var e;return u.has(l)?l:null===(e=s[0])||void 0===e?void 0:e.value}),[u,l,s]);return r.useEffect((()=>{c(m.isGradient()?"gradient":"single")}),[m]),[m,p,g,c,s]}(i,n,t),U=(0,r.useMemo)((()=>Tu(q)<100),[q]),[Q,Z]=o().useState(null),J=e=>{if(I){let t=Pu(e);k&&U&&(t=Au(e)),I(t)}},ee=(e,t)=>{let n=Pu(e);k&&U&&(n=Au(n)),K(n),Z(null),O&&O(n,n.toCssString()),t||J(n)},[te,ne]=o().useState(0),[re,oe]=o().useState(!1),{status:ie}=o().useContext(Ep),{compactSize:ae,compactItemClassnames:le}=Cs(V,z),ce=ms((e=>{var t;return null!==(t=null!=C?C:ae)&&void 0!==t?t:e})),se=rl(V),[ue,de,fe]=dR(V,se),pe={[`${V}-rtl`]:z},me=a()(w,fe,se,pe),ge=a()(Dv(V,ie),{[`${V}-sm`]:"small"===ce,[`${V}-lg`]:"large"===ce},le,null==_?void 0:_.className,me,x,de),he=a()(V,me),ve={open:H,trigger:f,placement:g,arrow:h,rootClassName:w,getPopupContainer:N,autoAdjustOverflow:P,destroyTooltipOnHide:R},be=Object.assign(Object.assign({},null==_?void 0:_.style),y);return ue(o().createElement(ex,Object.assign({style:null==$?void 0:$.popup,overlayInnerStyle:null==$?void 0:$.popupOverlayInner,onOpenChange:e=>{e&&B||L(e)},content:o().createElement(Mp,{form:!0},o().createElement(UP,{mode:X,onModeChange:e=>{if(G(e),"single"===e&&q.isGradient())ne(0),ee(new su(q.getColors()[0].color)),Z(q);else if("gradient"===e&&!q.isGradient()){const e=U?Au(q):q;ee(new su(Q||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:Y,prefixCls:V,value:q,allowClear:s,disabled:B,disabledAlpha:k,presets:u,panelRender:v,format:F,onFormatChange:W,onChange:ee,onChangeComplete:J,onClear:j,activeIndex:te,onActive:ne,gradientDragging:re,onGradientDragging:oe})),overlayClassName:he},ve),d||o().createElement(ZP,Object.assign({activeIndex:H?te:-1,open:H,className:ge,style:be,prefixCls:V,disabled:B,showText:b,format:F},T,{color:q}))))},pR=Ng(fR,"color-picker",(e=>e),(e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1})));fR._InternalPanelDoNotUseOrYouWillBeFired=pR;const mR=fR,gR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var hR=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:gR}))};const vR=r.forwardRef(hR),bR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var yR=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:bR}))};const xR=r.forwardRef(yR),CR={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var wR=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:CR}))};const SR=r.forwardRef(wR),$R=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=vb(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:yt(i.itemLineHeight)}}}]},kR=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=ir(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=ir(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[$R(o,"small"),$R(e),$R(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},bb(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},ER=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},GI(e)),eN(e)),QI(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${yt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${yt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},OR=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${yt(i)} ${yt(r)} ${yt(a)}`}},jR=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},MR=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:g,paddingXS:h,marginXS:v,colorTextDescription:b,lineWidthBold:y,colorPrimary:x,motionDurationSlow:C,zIndexPopup:w,paddingXXS:S,sizePopupArrow:$,colorBgElevated:k,borderRadiusLG:E,boxShadowSecondary:O,borderRadiusSM:j,colorSplit:M,cellHoverBg:I,presetsWidth:N,presetsMaxWidth:P,boxShadowPopoverArrow:R,fontHeight:T,fontHeightLG:A,lineHeightLG:z}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},pr(e)),OR(e,r,T,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},rN(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},OR(e,f,A,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:z}}),"&-small":Object.assign({},OR(e,m,T,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(h).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:y,background:x,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${yt(h)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},pr(e)),Qk(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Jv},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Qv},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:eb},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Zv},[`${t}-panel > ${t}-time-panel`]:{paddingTop:S},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},Ey(e,k,R)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:k,borderRadius:E,boxShadow:O,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:N,maxWidth:P,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${yt(i)} ${a} ${M}`,li:Object.assign(Object.assign({},fr),{borderRadius:j,paddingInline:h,paddingBlock:e.calc(m).sub(T).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:v},"&:hover":{background:I}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${yt(e.calc($).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},ab(e,"slide-up"),ab(e,"slide-down"),mb(e,"move-up"),mb(e,"move-down")]},IR=Vo("DatePicker",(e=>{const t=ir(Jk(e),tE(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Zk(t),MR(t),ER(t),jR(t),kR(t),hd(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},eE(e)),nE(e)),ky(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function NR(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function PR(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function RR(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function TR(e,t){const{allowClear:n=!0}=e,{clearIcon:o,removeIcon:i}=Kb(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[r.useMemo((()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:o},e)}),[n,o]),i]}const[AR,zR]=["week","WeekPicker"],[_R,DR]=["month","MonthPicker"],[BR,HR]=["year","YearPicker"],[LR,FR]=["quarter","QuarterPicker"],[WR,VR]=["time","TimePicker"],qR=e=>r.createElement($d,Object.assign({size:"small",type:"primary"},e));function KR(e){return(0,r.useMemo)((()=>Object.assign({button:qR},e)),[e])}const XR=e=>{const t=(0,r.forwardRef)(((t,n)=>{var o;const{prefixCls:i,getPopupContainer:l,components:c,className:s,style:u,placement:d,size:f,disabled:p,bordered:m=!0,placeholder:g,popupClassName:h,dropdownClassName:v,status:b,rootClassName:y,variant:x,picker:C}=t,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=f?f:M)&&void 0!==t?t:e})),L=r.useContext(Nc),F=null!=p?p:L,W=(0,r.useContext)(Ep),{hasFeedback:V,status:q,feedbackIcon:K}=W,X=r.createElement(r.Fragment,null,C===WR?r.createElement(xR,null):r.createElement(vR,null),V&&K);(0,r.useImperativeHandle)(n,(()=>S.current));const[G]=rs("Calendar",bc),Y=Object.assign(Object.assign({},G),t.locale),[U]=Bl("DatePicker",null===(o=t.popupStyle)||void 0===o?void 0:o.zIndex);return A(r.createElement(Mp,{space:!0},r.createElement(Ck,Object.assign({separator:r.createElement("span",{"aria-label":"to",className:`${j}-separator`},r.createElement(SR,null)),disabled:F,ref:S,popupAlign:RR(k,d),placement:d,placeholder:PR(Y,C,g),suffixIcon:X,prevIcon:r.createElement("span",{className:`${j}-prev-icon`}),nextIcon:r.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${N}-slide-up`,picker:C},w,{className:a()({[`${j}-${H}`]:H,[`${j}-${P}`]:R},Dv(j,Bv(q,b),V),z,I,s,null==O?void 0:O.className,_,T,y),style:Object.assign(Object.assign({},null==O?void 0:O.style),u),locale:Y.lang,prefixCls:j,getPopupContainer:l||E,generateConfig:e,components:B,direction:k,classNames:{popup:a()(z,h||v,_,T,y)},styles:{popup:Object.assign(Object.assign({},t.popupStyle),{zIndex:U})},allowClear:D}))))}));return t};const GR=e=>{const t=(t,n)=>{const o=n===VR?"timePicker":"datePicker",i=(0,r.forwardRef)(((n,i)=>{var l;const{prefixCls:c,getPopupContainer:s,components:u,style:d,className:f,rootClassName:p,size:m,bordered:g,placement:h,placeholder:v,popupClassName:b,dropdownClassName:y,disabled:x,status:C,variant:w,onCalendarChange:S}=n,$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oP.current));const B=t||n.picker,H=k(),{onSelect:L,multiple:F}=$,W=L&&"time"===t&&!F,[V,q]=TR(n,M),K=KR(u),X=ms((e=>{var t;return null!==(t=null!=m?m:I)&&void 0!==t?t:e})),G=r.useContext(Nc),Y=null!=x?x:G,U=(0,r.useContext)(Ep),{hasFeedback:Q,status:Z,feedbackIcon:J}=U,ee=r.createElement(r.Fragment,null,"time"===B?r.createElement(xR,null):r.createElement(vR,null),Q&&J),[te]=rs("DatePicker",bc),ne=Object.assign(Object.assign({},te),n.locale),[re]=Bl("DatePicker",null===(l=n.popupStyle)||void 0===l?void 0:l.zIndex);return z(r.createElement(Mp,{space:!0},r.createElement(Ok,Object.assign({ref:P,placeholder:NR(ne,B,v),suffixIcon:ee,dropdownAlign:RR(E,h),placement:h,prevIcon:r.createElement("span",{className:`${M}-prev-icon`}),nextIcon:r.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null==S||S(e,t,n),W&&L(e)}},{showToday:!0},$,{locale:ne.lang,className:a()({[`${M}-${X}`]:X,[`${M}-${R}`]:T},Dv(M,Bv(Z,C),Q),_,N,null==j?void 0:j.className,f,D,A,p),style:Object.assign(Object.assign({},null==j?void 0:j.style),d),prefixCls:M,getPopupContainer:s||O,generateConfig:e,components:K,direction:E,disabled:Y,classNames:{popup:a()(_,D,A,p,b||y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:re})},allowClear:V,removeIcon:q}))))}));return i},n=t(),o=t(AR,zR),i=t(_R,DR),l=t(BR,HR),c=t(LR,FR);return{DatePicker:n,WeekPicker:o,MonthPicker:i,YearPicker:l,TimePicker:t(WR,VR),QuarterPicker:c}},YR=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=GR(e),l=XR(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=l,c.TimePicker=i,c.QuarterPicker=a,c},UR=YR(MS);function QR(e){const t=RR(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const ZR=Ng(UR,"picker",null,QR);UR._InternalPanelDoNotUseOrYouWillBeFired=ZR;const JR=Ng(UR.RangePicker,"picker",null,QR);UR._InternalRangePanelDoNotUseOrYouWillBeFired=JR,UR.generatePicker=YR;const eT=UR,tT={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},nT=o().createContext({});function rT(e,t,n){const o=r.useMemo((()=>t||s(n).map((e=>Object.assign(Object.assign({},null==e?void 0:e.props),{key:e.key})))),[t,n]);return r.useMemo((()=>o.map((t=>{var{span:n}=t,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ot)&&(r=Object.assign(Object.assign({},e),{span:t}),o=void 0!==n),[r,o]}function iT(e){return null!=e}const aT=e=>{const{itemPrefixCls:t,component:n,span:o,className:i,style:l,labelStyle:c,contentStyle:s,bordered:u,label:d,content:f,colon:p,type:m}=e,g=n;return u?r.createElement(g,{className:a()({[`${t}-item-label`]:"label"===m,[`${t}-item-content`]:"content"===m},i),style:l,colSpan:o},iT(d)&&r.createElement("span",{style:c},d),iT(f)&&r.createElement("span",{style:s},f)):r.createElement(g,{className:a()(`${t}-item`,i),style:l,colSpan:o},r.createElement("div",{className:`${t}-item-container`},(d||0===d)&&r.createElement("span",{className:a()(`${t}-item-label`,{[`${t}-item-no-colon`]:!p}),style:c},d),(f||0===f)&&r.createElement("span",{className:a()(`${t}-item-content`),style:s},f)))};function lT(e,t,n){let{colon:o,prefixCls:i,bordered:a}=t,{component:l,type:c,showLabel:s,showContent:u,labelStyle:d,contentStyle:f}=n;return e.map(((e,t)=>{let{label:n,children:p,prefixCls:m=i,className:g,style:h,labelStyle:v,contentStyle:b,span:y=1,key:x}=e;return"string"==typeof l?r.createElement(aT,{key:`${c}-${x||t}`,className:g,style:h,labelStyle:Object.assign(Object.assign({},d),v),contentStyle:Object.assign(Object.assign({},f),b),span:y,colon:o,component:l,itemPrefixCls:m,bordered:a,label:s?n:null,content:u?p:null,type:c}):[r.createElement(aT,{key:`label-${x||t}`,className:g,style:Object.assign(Object.assign(Object.assign({},d),h),v),span:1,colon:o,component:l[0],itemPrefixCls:m,bordered:a,label:n,type:"label"}),r.createElement(aT,{key:`content-${x||t}`,className:g,style:Object.assign(Object.assign(Object.assign({},f),h),b),span:2*y-1,component:l[1],itemPrefixCls:m,bordered:a,content:p,type:"content"})]}))}const cT=e=>{const t=r.useContext(nT),{prefixCls:n,vertical:o,row:i,index:a,bordered:l}=e;return o?r.createElement(r.Fragment,null,r.createElement("tr",{key:`label-${a}`,className:`${n}-row`},lT(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),r.createElement("tr",{key:`content-${a}`,className:`${n}-row`},lT(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):r.createElement("tr",{key:a,className:`${n}-row`},lT(i,e,Object.assign({component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},sT=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${yt(e.padding)} ${yt(e.paddingLG)}`,borderInlineEnd:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${yt(e.paddingSM)} ${yt(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${yt(e.paddingXS)} ${yt(e.padding)}`}}}}}},uT=Vo("Descriptions",(e=>(e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},pr(e)),sT(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},fr),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${yt(a)} ${yt(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}})(ir(e,{}))),(e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText})));const dT=e=>{const{prefixCls:t,title:n,extra:o,column:i,colon:l=!0,bordered:c,layout:s,children:u,className:d,rootClassName:f,style:p,size:m,labelStyle:g,contentStyle:h,items:v}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var e;return"number"==typeof i?i:null!==(e=ly(S,Object.assign(Object.assign({},tT),i)))&&void 0!==e?e:3}),[S,i]),k=rT(S,v,u),E=ms(m),O=((e,t)=>{const[n,o]=(0,r.useMemo)((()=>function(e,t){const n=[];let r=[],o=t,i=!1;return e.filter((e=>e)).forEach(((a,l)=>{const c=null==a?void 0:a.span,s=c||1;if(l===e.length-1){const[e,t]=oT(a,o,c);return i=i||t,r.push(e),void n.push(r)}if(s({labelStyle:g,contentStyle:h})),[g,h]);return j(r.createElement(nT.Provider,{value:N},r.createElement("div",Object.assign({className:a()(w,null==C?void 0:C.className,{[`${w}-${E}`]:E&&"default"!==E,[`${w}-bordered`]:!!c,[`${w}-rtl`]:"rtl"===x},d,f,M,I),style:Object.assign(Object.assign({},null==C?void 0:C.style),p)},b),(n||o)&&r.createElement("div",{className:`${w}-header`},n&&r.createElement("div",{className:`${w}-title`},n),o&&r.createElement("div",{className:`${w}-extra`},o)),r.createElement("div",{className:`${w}-view`},r.createElement("table",null,r.createElement("tbody",null,O.map(((e,t)=>r.createElement(cT,{key:t,index:t,colon:l,prefixCls:w,vertical:"vertical"===s,bordered:c,row:e})))))))))};dT.Item=e=>{let{children:t}=e;return t};const fT=dT;var pT=r.createContext(null),mT=r.createContext({});const gT=pT;var hT=["prefixCls","className","containerRef"];const vT=function(e){var t=e.prefixCls,n=e.className,o=e.containerRef,i=ni(e,hT),c=r.useContext(mT).panel,s=N(c,o);return r.createElement("div",(0,l.A)({className:a()("".concat(t,"-content"),n),role:"dialog",ref:s},ja(e,{aria:!0}),{"aria-modal":"true"},i))};function bT(e){return"string"==typeof e&&String(Number(e))===e?(v(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var yT={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function xT(e,t){var n,o,i,c=e.prefixCls,s=e.open,u=e.placement,d=e.inline,f=e.push,p=e.forceRender,m=e.autoFocus,g=e.keyboard,h=e.classNames,v=e.rootClassName,b=e.rootStyle,y=e.zIndex,C=e.className,S=e.id,$=e.style,k=e.motion,E=e.width,O=e.height,j=e.children,M=e.mask,I=e.maskClosable,N=e.maskMotion,P=e.maskClassName,R=e.maskStyle,T=e.afterOpenChange,A=e.onClose,z=e.onMouseEnter,_=e.onMouseOver,D=e.onMouseLeave,B=e.onClick,H=e.onKeyDown,L=e.onKeyUp,F=e.styles,W=e.drawerRender,V=r.useRef(),q=r.useRef(),K=r.useRef();r.useImperativeHandle(t,(function(){return V.current})),r.useEffect((function(){var e;s&&m&&(null===(e=V.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);var X=Be(r.useState(!1),2),G=X[0],Y=X[1],U=r.useContext(gT),Q=null!==(n=null!==(o=null===(i="boolean"==typeof f?f?{}:{distance:0}:f||{})||void 0===i?void 0:i.distance)&&void 0!==o?o:null==U?void 0:U.pushDistance)&&void 0!==n?n:180,Z=r.useMemo((function(){return{pushDistance:Q,push:function(){Y(!0)},pull:function(){Y(!1)}}}),[Q]);r.useEffect((function(){var e,t;s?null==U||null===(e=U.push)||void 0===e||e.call(U):null==U||null===(t=U.pull)||void 0===t||t.call(U)}),[s]),r.useEffect((function(){return function(){var e;null==U||null===(e=U.pull)||void 0===e||e.call(U)}}),[]);var J=M&&r.createElement(ka,(0,l.A)({key:"mask"},N,{visible:s}),(function(e,t){var n=e.className,o=e.style;return r.createElement("div",{className:a()("".concat(c,"-mask"),n,null==h?void 0:h.mask,P),style:w(w(w({},o),R),null==F?void 0:F.mask),onClick:I&&s?A:void 0,ref:t})})),ee="function"==typeof k?k(u):k,te={};if(G&&Q)switch(u){case"top":te.transform="translateY(".concat(Q,"px)");break;case"bottom":te.transform="translateY(".concat(-Q,"px)");break;case"left":te.transform="translateX(".concat(Q,"px)");break;default:te.transform="translateX(".concat(-Q,"px)")}"left"===u||"right"===u?te.width=bT(E):te.height=bT(O);var ne={onMouseEnter:z,onMouseOver:_,onMouseLeave:D,onClick:B,onKeyDown:H,onKeyUp:L},re=r.createElement(ka,(0,l.A)({key:"panel"},ee,{visible:s,forceRender:p,onVisibleChanged:function(e){null==T||T(e)},removeOnLeave:!1,leavedClassName:"".concat(c,"-content-wrapper-hidden")}),(function(t,n){var o=t.className,i=t.style,s=r.createElement(vT,(0,l.A)({id:S,containerRef:n,prefixCls:c,className:a()(C,null==h?void 0:h.content),style:w(w({},$),null==F?void 0:F.content)},ja(e,{aria:!0}),ne),j);return r.createElement("div",(0,l.A)({className:a()("".concat(c,"-content-wrapper"),null==h?void 0:h.wrapper,o),style:w(w(w({},te),i),null==F?void 0:F.wrapper)},ja(e,{data:!0})),W?W(s):s)})),oe=w({},b);return y&&(oe.zIndex=y),r.createElement(gT.Provider,{value:Z},r.createElement("div",{className:a()(c,"".concat(c,"-").concat(u),v,x(x({},"".concat(c,"-open"),s),"".concat(c,"-inline"),d)),style:oe,tabIndex:-1,ref:V,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case bl.TAB:var r;if(t===bl.TAB)if(n||document.activeElement!==K.current){if(n&&document.activeElement===q.current){var o;null===(o=K.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=q.current)||void 0===r||r.focus({preventScroll:!0});break;case bl.ESC:A&&g&&(e.stopPropagation(),A(e))}}},J,r.createElement("div",{tabIndex:0,ref:q,style:yT,"aria-hidden":"true","data-sentinel":"start"}),re,r.createElement("div",{tabIndex:0,ref:K,style:yT,"aria-hidden":"true","data-sentinel":"end"})))}const CT=r.forwardRef(xT),wT=function(e){var t=e.open,n=void 0!==t&&t,o=e.prefixCls,i=void 0===o?"rc-drawer":o,a=e.placement,l=void 0===a?"right":a,c=e.autoFocus,s=void 0===c||c,u=e.keyboard,d=void 0===u||u,f=e.width,p=void 0===f?378:f,m=e.mask,g=void 0===m||m,h=e.maskClosable,v=void 0===h||h,b=e.getContainer,y=e.forceRender,x=e.afterOpenChange,C=e.destroyOnClose,S=e.onMouseEnter,$=e.onMouseOver,k=e.onMouseLeave,E=e.onClick,O=e.onKeyDown,j=e.onKeyUp,M=e.panelRef,I=Be(r.useState(!1),2),N=I[0],P=I[1],R=Be(r.useState(!1),2),T=R[0],A=R[1];Ot((function(){A(!0)}),[]);var z=!!T&&n,_=r.useRef(),D=r.useRef();Ot((function(){z&&(D.current=document.activeElement)}),[z]);var B=r.useMemo((function(){return{panel:M}}),[M]);if(!y&&!N&&!z&&C)return null;var H={onMouseEnter:S,onMouseOver:$,onMouseLeave:k,onClick:E,onKeyDown:O,onKeyUp:j},L=w(w({},e),{},{open:z,prefixCls:i,placement:l,autoFocus:s,keyboard:d,width:p,mask:g,maskClosable:v,inline:!1===b,afterOpenChange:function(e){var t,n;P(e),null==x||x(e),e||!D.current||null!==(t=_.current)&&void 0!==t&&t.contains(D.current)||null===(n=D.current)||void 0===n||n.focus({preventScroll:!0})},ref:_},H);return r.createElement(mT.Provider,{value:B},r.createElement(Fd,{open:z||y||N,autoDestroy:!1,getContainer:b,autoLock:g&&(z||N)},r.createElement(CT,L)))},ST=e=>{var t,n;const{prefixCls:o,title:i,footer:l,extra:c,loading:s,onClose:u,headerStyle:d,bodyStyle:f,footerStyle:p,children:m,classNames:g,styles:h}=e,{drawer:v}=r.useContext(Ae),b=r.useCallback((e=>r.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${o}-close`},e)),[u]),[y,x]=Tp(Ip(e),Ip(v),{closable:!0,closeIconRender:b}),C=r.useMemo((()=>{var e,t;return i||y?r.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==v?void 0:v.styles)||void 0===e?void 0:e.header),d),null==h?void 0:h.header),className:a()(`${o}-header`,{[`${o}-header-close-only`]:y&&!i&&!c},null===(t=null==v?void 0:v.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},r.createElement("div",{className:`${o}-header-title`},x,i&&r.createElement("div",{className:`${o}-title`},i)),c&&r.createElement("div",{className:`${o}-extra`},c)):null}),[y,x,c,d,o,i]),w=r.useMemo((()=>{var e,t;if(!l)return null;const n=`${o}-footer`;return r.createElement("div",{className:a()(n,null===(e=null==v?void 0:v.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==v?void 0:v.styles)||void 0===t?void 0:t.footer),p),null==h?void 0:h.footer)},l)}),[l,p,o]);return r.createElement(r.Fragment,null,C,r.createElement("div",{className:a()(`${o}-body`,null==g?void 0:g.body,null===(t=null==v?void 0:v.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==v?void 0:v.styles)||void 0===n?void 0:n.body),f),null==h?void 0:h.body)},s?r.createElement(tm,{active:!0,title:!1,paragraph:{rows:5},className:`${o}-body-skeleton`}):m),w)},$T=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},kT=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),ET=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},kT({opacity:e},{opacity:1})),OT=(e,t)=>[ET(.7,t),kT({transform:$T(e)},{transform:"none"})],jT=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:ET(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce(((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:OT(t,n)})),{})}}},MT=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:c,padding:s,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:m,colorSplit:g,marginXS:h,colorIcon:v,colorIconHover:b,colorBgTextHover:y,colorBgTextActive:x,colorText:C,fontWeightStrong:w,footerPaddingBlock:S,footerPaddingInline:$,calc:k}=e,E=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:C,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${E}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${E}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${E}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${E}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${yt(s)} ${yt(u)}`,fontSize:d,lineHeight:f,borderBottom:`${yt(p)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:k(d).add(c).equal(),height:k(d).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:h,color:v,fontWeight:w,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:b,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:x}},hr(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${yt(S)} ${yt($)}`,borderTop:`${yt(p)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},IT=Vo("Drawer",(e=>{const t=ir(e,{});return[MT(t),jT(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var NT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:n,height:o,size:i="default",mask:l=!0,push:c=PT,open:s,afterOpenChange:u,onClose:d,prefixCls:f,getContainer:p,style:m,className:g,visible:h,afterVisibleChange:v,maskStyle:b,drawerStyle:y,contentWrapperStyle:x}=e,C=NT(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:w,getPrefixCls:S,direction:$,drawer:k}=r.useContext(Ae),E=S("drawer",f),[O,j,M]=IT(E),I=void 0===p&&w?()=>w(document.body):p,N=a()({"no-mask":!l,[`${E}-rtl`]:"rtl"===$},t,j,M),P=r.useMemo((()=>null!=n?n:"large"===i?736:378),[n,i]),R=r.useMemo((()=>null!=o?o:"large"===i?736:378),[o,i]),T={motionName:ts(E,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},A=om(),[z,_]=Bl("Drawer",C.zIndex),{classNames:D={},styles:B={}}=C,{classNames:H={},styles:L={}}=k||{};return O(r.createElement(Mp,{form:!0,space:!0},r.createElement(Tl.Provider,{value:_},r.createElement(wT,Object.assign({prefixCls:E,onClose:d,maskMotion:T,motion:e=>({motionName:ts(E,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},C,{classNames:{mask:a()(D.mask,H.mask),content:a()(D.content,H.content),wrapper:a()(D.wrapper,H.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),b),L.mask),content:Object.assign(Object.assign(Object.assign({},B.content),y),L.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),x),L.wrapper)},open:null!=s?s:h,mask:l,push:c,width:P,height:R,style:Object.assign(Object.assign({},null==k?void 0:k.style),m),className:a()(null==k?void 0:k.className,g),rootClassName:N,getContainer:I,afterOpenChange:null!=u?u:v,panelRef:A,zIndex:z}),r.createElement(ST,Object.assign({prefixCls:E},C,{onClose:d}))))))};RT._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:o,placement:i="right"}=e,l=NT(e,["prefixCls","style","className","placement"]),{getPrefixCls:c}=r.useContext(Ae),s=c("drawer",t),[u,d,f]=IT(s),p=a()(s,`${s}-pure`,`${s}-${i}`,d,f,o);return u(r.createElement("div",{className:p,style:n},r.createElement(ST,Object.assign({prefixCls:s},l))))};const TT=RT;function AT(e){return["small","middle","large"].includes(e)}function zT(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const _T=o().createContext({latestIndex:0}),DT=_T.Provider,BT=e=>{let{className:t,index:n,children:o,split:i,style:a}=e;const{latestIndex:l}=r.useContext(_T);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:a},o),n{var n,o,i;const{getPrefixCls:l,space:c,direction:u}=r.useContext(Ae),{size:d=(null!==(n=null==c?void 0:c.size)&&void 0!==n?n:"small"),align:f,className:p,rootClassName:m,children:g,direction:h="horizontal",prefixCls:v,split:b,style:y,wrap:x=!1,classNames:C,styles:w}=e,S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;null!=e&&(D=t);const i=(null==e?void 0:e.key)||`${_}-${t}`;return r.createElement(BT,{className:_,key:i,index:t,split:b,style:null!==(n=null==w?void 0:w.item)&&void 0!==n?n:null===(o=null==c?void 0:c.styles)||void 0===o?void 0:o.item},e)})),H=r.useMemo((()=>({latestIndex:D})),[D]);if(0===I.length)return null;const L={};return x&&(L.flexWrap="wrap"),!O&&M&&(L.columnGap=$),!E&&j&&(L.rowGap=k),R(r.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},L),null==c?void 0:c.style),y)},S),r.createElement(DT,{value:H},B)))})),LT=HT;LT.Compact=e=>{const{getPrefixCls:t,direction:n}=r.useContext(Ae),{size:o,direction:i,block:l,prefixCls:c,className:u,rootClassName:d,children:f}=e,p=ys(e,["size","direction","block","prefixCls","className","rootClassName","children"]),m=ms((e=>null!=o?o:e)),g=t("space-compact",c),[h,v]=bs(g),b=a()(g,v,{[`${g}-rtl`]:"rtl"===n,[`${g}-block`]:l,[`${g}-vertical`]:"vertical"===i},u,d),y=r.useContext(xs),x=s(f),C=r.useMemo((()=>x.map(((e,t)=>{const n=(null==e?void 0:e.key)||`${g}-item-${t}`;return r.createElement(Ss,{key:n,compactSize:m,compactDirection:i,isFirstItem:0===t&&(!y||(null==y?void 0:y.isFirstItem)),isLastItem:t===x.length-1&&(!y||(null==y?void 0:y.isLastItem))},e)}))),[o,x,y]);return 0===x.length?null:h(r.createElement("div",Object.assign({className:b},p),C))};const FT=LT;const WT=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:o}=r.useContext(Ae),{prefixCls:i,type:l="default",danger:c,disabled:s,loading:u,onClick:d,htmlType:f,children:p,className:m,menu:g,arrow:h,autoFocus:v,overlay:b,trigger:y,align:x,open:C,onOpenChange:w,placement:S,getPopupContainer:$,href:k,icon:E=r.createElement(ww,null),title:O,buttonsRender:j=e=>e,mouseEnterDelay:M,mouseLeaveDelay:I,overlayClassName:N,overlayStyle:P,destroyPopupOnHide:R,dropdownRender:T}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},QT=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},ZT=e=>{const{componentCls:t}=e,n={};return XT.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},JT=e=>{const{componentCls:t}=e,n={};return YT.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},eA=e=>{const{componentCls:t}=e,n={};return GT.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},tA=Vo("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=ir(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[UT(o),QT(o),ZT(o),JT(o),eA(o)]}),(()=>({})),{resetStyle:!1});const nA=o().forwardRef(((e,t)=>{const{prefixCls:n,rootClassName:r,className:i,style:l,flex:c,gap:s,children:u,vertical:d=!1,component:f="div"}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&XT.includes(n)}})(e,t)),((e,t)=>{const n={};return YT.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return GT.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))}(v,e),{[`${v}-rtl`]:"rtl"===g,[`${v}-gap-${s}`]:AT(s),[`${v}-vertical`]:C}),S=Object.assign(Object.assign({},null==m?void 0:m.style),l);return c&&(S.flex=c),s&&!AT(s)&&(S.gap=s),b(o().createElement(f,Object.assign({ref:t,className:w,style:S},ye(p,["justify","wrap","align"])),u))})),rA=nA,oA=o().createContext(void 0),{Provider:iA}=oA,aA=oA,lA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};var cA=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:lA}))};const sA=r.forwardRef(cA),uA=e=>{const{icon:t,description:n,prefixCls:r,className:i}=e,l=o().createElement("div",{className:`${r}-icon`},o().createElement(sA,null));return o().createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:a()(i,`${r}-content`)},t||n?o().createElement(o().Fragment,null,t&&o().createElement("div",{className:`${r}-icon`},t),n&&o().createElement("div",{className:`${r}-description`},n)):l)},dA=(0,r.memo)(uA),fA=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),pA=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o,calc:i}=e,a=new zn("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${yt(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new zn("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${yt(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),c=new zn("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${i(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new zn("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${i(n).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),u=new zn("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${i(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d=new zn("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${i(n).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0}}),f=new zn("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${yt(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new zn("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${yt(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),m=`${t}-group`;return[{[m]:{[`&${m}-top ${m}-wrap`]:fm(`${m}-wrap`,a,l,r,!0),[`&${m}-bottom ${m}-wrap`]:fm(`${m}-wrap`,u,d,r,!0),[`&${m}-left ${m}-wrap`]:fm(`${m}-wrap`,f,p,r,!0),[`&${m}-right ${m}-wrap`]:fm(`${m}-wrap`,c,s,r,!0)}},{[`${m}-wrap`]:{[`&${m}-wrap-enter, &${m}-wrap-appear`]:{opacity:0,animationTimingFunction:o},[`&${m}-wrap-leave`]:{opacity:1,animationTimingFunction:o}}}]},mA=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:o,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:l,floatButtonBodyPadding:c,zIndexPopupBase:s,calc:u}=e,d=`${n}-group`;return{[d]:Object.assign(Object.assign({},pr(e)),{zIndex:s,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:r,minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:i,[`${d}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${d}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${d}-top > ${d}-wrap`]:{flexDirection:"column",top:"auto",bottom:u(r).add(o).equal()},[`${d}-bottom > ${d}-wrap`]:{flexDirection:"column",top:u(r).add(o).equal(),bottom:"auto"},[`${d}-right > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:u(r).add(o).equal()},right:{_skip_check_:!0,value:"auto"}},[`${d}-left > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:u(r).add(o).equal()}},[`${d}-circle`]:{gap:o,[`${d}-wrap`]:{gap:o}},[`${d}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${d}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:u(u(c).add(l)).mul(-1).equal(),insetInlineEnd:u(u(c).add(l)).mul(-1).equal()}}},[`${d}-wrap`]:{borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}},[`${d}-top > ${d}-wrap, ${d}-bottom > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-left > ${d}-wrap, ${d}-right > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderEndStartRadius:i},"&:last-child":{borderStartEndRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderInlineEnd:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-circle-shadow`]:{boxShadow:"none"},[`${d}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},gA=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:o,floatButtonSize:i,borderRadiusLG:a,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:s,zIndexPopupBase:u,calc:d}=e;return{[n]:Object.assign(Object.assign({},pr(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:u,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:d(l).mul(-1).equal(),insetInlineEnd:d(l).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${yt(d(r).div(2).equal())} ${yt(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:yt(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:yt(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},hA=Vo("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:i,fontSize:a,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:s,calc:u}=e,d=ir(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:a,floatButtonIconSize:u(l).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(r).sub(u(s).mul(2)).equal(),floatButtonBodyPadding:s,badgeOffset:u(s).mul(1.5).equal()});return[mA(d),gA(d),gm(e),pA(d)]}),(e=>({dotOffsetInCircle:fA(e.controlHeightLG/2),dotOffsetInSquare:fA(e.borderRadiusLG)})));const vA="float-btn",bA=o().forwardRef(((e,t)=>{const{prefixCls:n,className:i,rootClassName:l,style:c,type:s="default",shape:u="circle",icon:d,description:f,tooltip:p,htmlType:m="button",badge:g={}}=e,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({prefixCls:x,description:f,icon:d,type:s})),[x,f,d,s]);let N=o().createElement("div",{className:`${x}-body`},o().createElement(dA,Object.assign({},I)));return"badge"in e&&(N=o().createElement(jx,Object.assign({},M),N)),"tooltip"in e&&(N=o().createElement(qy,{title:p,placement:"rtl"===b?"right":"left"},N)),w(e.href?o().createElement("a",Object.assign({ref:t},h,{className:E,style:j}),N):o().createElement("button",Object.assign({ref:t},h,{className:E,style:j,type:m}),N))})),yA=bA;const xA=o().forwardRef(((e,t)=>{const{prefixCls:n,className:i,type:l="default",shape:c="circle",visibilityHeight:s=400,icon:u=o().createElement(ax,null),target:d,onClick:f,duration:p=450}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({nativeElement:v.current})));const b=()=>{var e;return(null===(e=v.current)||void 0===e?void 0:e.ownerDocument)||window},y=Ne((e=>{const t=tl(e.target);h(t>=s)}));(0,r.useEffect)((()=>{const e=(d||b)();return y({target:e}),null==e||e.addEventListener("scroll",y),()=>{y.cancel(),null==e||e.removeEventListener("scroll",y)}}),[d]);const x=e=>{nl(0,{getContainer:d||b,duration:p}),null==f||f(e)},{getPrefixCls:C}=(0,r.useContext)(Ae),w=C(vA,n),S=C(),$=(0,r.useContext)(aA)||c,k=Object.assign({prefixCls:w,icon:u,type:l,shape:$},m);return o().createElement(ka,{visible:g,motionName:`${S}-fade`},((e,t)=>{let{className:n}=e;return o().createElement(yA,Object.assign({ref:I(v,t)},k,{onClick:x,className:a()(i,n)}))}))})),CA=xA;const wA=e=>{var t;const{prefixCls:n,className:r,style:i,shape:l="circle",type:c="default",placement:s="top",icon:u=o().createElement(sA,null),closeIcon:d,description:f,trigger:p,children:m,onOpenChange:g,open:h,onClick:v}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{A!==e&&(z(e),null==g||g(e))}));return o().useEffect((()=>{if(B){const e=e=>{var t;(null===(t=_.current)||void 0===t?void 0:t.contains(e.target))||H(!1)};return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}}),[B]),k(o().createElement(iA,{value:l},o().createElement("div",{ref:_,className:N,style:R,onMouseEnter:()=>{D&&H(!0)},onMouseLeave:()=>{D&&H(!1)}},M?o().createElement(o().Fragment,null,o().createElement(ka,{visible:A,motionName:`${j}-wrap`},(e=>{let{className:t}=e;return o().createElement("div",{className:a()(t,T)},m)})),o().createElement(yA,Object.assign({type:c,icon:A?w:u,description:f,"aria-label":e["aria-label"],className:`${j}-trigger`,onClick:e=>{B&&H(!A),null==v||v(e)}},b))):m)))};var SA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{backTop:t}=e,n=SA(e,["backTop"]);return t?r.createElement(CA,Object.assign({},n,{visibilityHeight:0})):r.createElement(yA,Object.assign({},n))};yA.BackTop=CA,yA.Group=wA,yA._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,o=SA(e,["className","items"]);const{prefixCls:i}=o,{getPrefixCls:l}=r.useContext(Ae),c=`${l(vA,i)}-pure`;return n?r.createElement(wA,Object.assign({className:a()(t,c)},o),n.map(((e,t)=>r.createElement($A,Object.assign({key:t},e))))):r.createElement($A,Object.assign({className:a()(t,c)},o))};const kA=yA;function EA(e){const[t,n]=r.useState(e);return r.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const OA=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},jA=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${yt(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),MA=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},IA=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},pr(e)),jA(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},MA(e,e.controlHeightSM)),"&-large":Object.assign({},MA(e,e.controlHeightLG))})}},NA=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:c,labelHeight:s,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:l,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:hm,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},PA=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},RA=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},TA=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),AA=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:TA(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},zA=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:TA(e)}},[`@media (max-width: ${yt(e.screenXSMax)})`]:[AA(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:TA(e)}}}],[`@media (max-width: ${yt(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:TA(e)}}},[`@media (max-width: ${yt(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:TA(e)}}},[`@media (max-width: ${yt(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:TA(e)}}}}},_A=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:TA(e),[`@media (max-width: ${yt(e.screenXSMax)})`]:[AA(e),{[t]:{[`${n}-col-xs-24${t}-label`]:TA(e)}}],[`@media (max-width: ${yt(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:TA(e)}},[`@media (max-width: ${yt(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:TA(e)}},[`@media (max-width: ${yt(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:TA(e)}}}},DA=(e,t)=>ir(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),BA=Vo("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=DA(e,n);return[IA(r),NA(r),OA(r),PA(r,r.componentCls),PA(r,r.formItemCls),RA(r),zA(r),_A(r),$u(r),hm]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3}),HA=[];function LA(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const FA=e=>{let{help:t,helpStatus:n,errors:o=HA,warnings:i=HA,className:l,fieldId:c,onVisibleChanged:s}=e;const{prefixCls:u}=r.useContext(kp),d=`${u}-item-explain`,f=rl(u),[p,m,g]=BA(u,f),h=(0,r.useMemo)((()=>ns(u)),[u]),v=EA(o),b=EA(i),y=r.useMemo((()=>null!=t?[LA(t,"help",n)]:[].concat(Se(v.map(((e,t)=>LA(e,"error","error",t)))),Se(b.map(((e,t)=>LA(e,"warning","warning",t)))))),[t,n,v,b]),x={};return c&&(x.id=`${c}_help`),p(r.createElement(ka,{motionDeadline:h.motionDeadline,motionName:`${u}-show-help`,visible:!!y.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return r.createElement("div",Object.assign({},x,{className:a()(d,t,g,f,l,m),style:n,role:"alert"}),r.createElement($a,Object.assign({keys:y},ns(u),{motionName:`${u}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:o,className:i,style:l}=e;return r.createElement("div",{key:t,className:a()(i,{[`${d}-${o}`]:o}),style:l},n)})))})))},WA=["parentNode"];function VA(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function qA(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:WA.includes(n)?`form_item_${n}`:n}function KA(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function XA(e){return VA(e).join("_")}function GA(e){const[t]=fp(),n=r.useRef({}),o=r.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=XA(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e,t){const n=E(t.getFieldInstance(e));if(n)return n;const r=qA(VA(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}(e,o);n&&Ja(n,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=XA(e);return n.current[t]}})),[e,t]);return[o]}const YA=(e,t)=>{const n=r.useContext(Nc),{getPrefixCls:o,direction:i,form:l}=r.useContext(Ae),{prefixCls:c,className:s,rootClassName:u,size:d,disabled:f=n,form:p,colon:m,labelAlign:g,labelWrap:h,labelCol:v,wrapperCol:b,hideRequiredMark:y,layout:x="horizontal",scrollToFirstError:C,requiredMark:w,onFinishFailed:S,name:$,style:k,feedbackIcons:E,variant:O}=e,j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ovoid 0!==w?w:!y&&(!l||void 0===l.requiredMark||l.requiredMark)),[y,w,l]),P=null!=m?m:null==l?void 0:l.colon,R=o("form",c),T=rl(R),[A,z,_]=BA(R,T),D=a()(R,`${R}-${x}`,{[`${R}-hide-required-mark`]:!1===N,[`${R}-rtl`]:"rtl"===i,[`${R}-${M}`]:M},_,T,z,null==l?void 0:l.className,s,u),[B]=GA(p),{__INTERNAL__:H}=B;H.name=$;const L=(0,r.useMemo)((()=>({name:$,labelAlign:g,labelCol:v,labelWrap:h,wrapperCol:b,vertical:"vertical"===x,colon:P,requiredMark:N,itemRef:H.itemRef,form:B,feedbackIcons:E})),[$,g,v,b,x,P,N,B,E]),F=r.useRef(null);r.useImperativeHandle(t,(()=>{var e;return Object.assign(Object.assign({},B),{nativeElement:null===(e=F.current)||void 0===e?void 0:e.nativeElement})}));const W=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),B.scrollToField(t,n)}};return A(r.createElement(jp.Provider,{value:O},r.createElement(Ic,{disabled:f},r.createElement(Tc.Provider,{value:M},r.createElement($p,{validateMessages:I},r.createElement(wp.Provider,{value:L},r.createElement(Cp,Object.assign({id:$},j,{name:$,onFinishFailed:e=>{if(null==S||S(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==C)return void W(C,t);l&&void 0!==l.scrollToFirstError&&W(l.scrollToFirstError,t)}},form:B,ref:F,style:Object.assign(Object.assign({},null==l?void 0:l.style),k),className:D}))))))))},UA=r.forwardRef(YA),QA=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,r.useContext)(Ep);return{status:e,errors:t,warnings:n}};QA.Context=Ep;const ZA=QA;function JA(e,t){const[n,o]=r.useState("string"==typeof e?e:"");return r.useEffect((()=>{(()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:o,align:i,className:l,style:c,children:s,gutter:u=0,wrap:d}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const e=w.subscribe((e=>{b(e);const t=C.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>w.unsubscribe(e)}),[]);const S=p("row",n),[$,k,E]=AM(S),O=(()=>{const e=[void 0,void 0];return(Array.isArray(u)?u:[u,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?O[0]/-2:void 0;I&&(M.marginLeft=I,M.marginRight=I);const[N,P]=O;M.rowGap=P;const R=r.useMemo((()=>({gutter:[N,P],wrap:d})),[N,P,d]);return $(r.createElement(PM.Provider,{value:R},r.createElement("div",Object.assign({},f,{className:j,style:Object.assign(Object.assign({},M),c),ref:t}),s)))})),tz=ez,nz=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},rz=Ko(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=DA(e,n);return[nz(r)]})),oz=e=>{const{prefixCls:t,status:n,wrapperCol:o,children:i,errors:l,warnings:c,_internalItemRender:s,extra:u,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:m}=e,g=`${t}-item`,h=r.useContext(wp),v=o||h.wrapperCol||{},b=a()(`${g}-control`,v.className),y=r.useMemo((()=>Object.assign({},h)),[h]);delete y.labelCol,delete y.wrapperCol;const x=r.createElement("div",{className:`${g}-control-input`},r.createElement("div",{className:`${g}-control-input-content`},i)),C=r.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==p||l.length||c.length?r.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},r.createElement(kp.Provider,{value:C},r.createElement(FA,{fieldId:f,errors:l,warnings:c,help:d,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:m})),!!p&&r.createElement("div",{style:{width:0,height:p}})):null,S={};f&&(S.id=`${f}_extra`);const $=u?r.createElement("div",Object.assign({},S,{className:`${g}-extra`}),u):null,k=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:x,errorList:w,extra:$}):r.createElement(r.Fragment,null,x,w,$);return r.createElement(wp.Provider,{value:y},r.createElement(HM,Object.assign({},v,{className:b}),k),r.createElement(rz,{prefixCls:t}))},iz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var az=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:iz}))};const lz=r.forwardRef(az);const cz=e=>{let{prefixCls:t,label:n,htmlFor:o,labelCol:i,labelAlign:l,colon:c,required:s,requiredMark:u,tooltip:d,vertical:f}=e;var p;const[m]=rs("Form"),{labelAlign:g,labelCol:h,labelWrap:v,colon:b}=r.useContext(wp);if(!n)return null;const y=i||h||{},x=l||g,C=`${t}-item-label`,w=a()(C,"left"===x&&`${C}-left`,y.className,{[`${C}-wrap`]:!!v});let S=n;const $=!0===c||!1!==b&&!1!==c;$&&!f&&"string"==typeof n&&n.trim()&&(S=n.replace(/[:|:]\s*$/,""));const k=function(e){return e?"object"!=typeof e||r.isValidElement(e)?{title:e}:e:null}(d);if(k){const{icon:e=r.createElement(lz,null)}=k,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{e.preventDefault()},tabIndex:null}));S=r.createElement(r.Fragment,null,S,o)}const E="optional"===u,O="function"==typeof u;O?S=u(S,{required:!!s}):E&&!s&&(S=r.createElement(r.Fragment,null,S,r.createElement("span",{className:`${t}-item-optional`,title:""},(null==m?void 0:m.optional)||(null===(p=Cc.Form)||void 0===p?void 0:p.optional))));const j=a()({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:E||O,[`${t}-item-no-colon`]:!$});return r.createElement(HM,Object.assign({},y,{className:w}),r.createElement("label",{htmlFor:o,className:j,title:"string"==typeof n?n:""},S))},sz={success:xi,warning:Mi,error:Si,validating:Rl};function uz(e){let{children:t,errors:n,warnings:o,hasFeedback:i,validateStatus:l,prefixCls:c,meta:s,noStyle:u}=e;const d=`${c}-item`,{feedbackIcons:f}=r.useContext(wp),p=KA(n,o,s,null,!!i,l),{isFormItemInput:m,status:g,hasFeedback:h,feedbackIcon:v}=r.useContext(Ep),b=r.useMemo((()=>{var e;let t;if(i){const l=!0!==i&&i.icons||f,c=p&&(null===(e=null==l?void 0:l({status:p,errors:n,warnings:o}))||void 0===e?void 0:e[p]),s=p&&sz[p];t=!1!==c&&s?r.createElement("span",{className:a()(`${d}-feedback-icon`,`${d}-feedback-icon-${p}`)},c||r.createElement(s,null)):null}const l={status:p||"",errors:n,warnings:o,hasFeedback:!!i,feedbackIcon:t,isFormItemInput:!0};return u&&(l.status=(null!=p?p:g)||"",l.isFormItemInput=m,l.hasFeedback=!!(null!=i?i:h),l.feedbackIcon=void 0!==i?l.feedbackIcon:v),l}),[p,i,u,m,g]);return r.createElement(Ep.Provider,{value:b},t)}function dz(e){const{prefixCls:t,className:n,rootClassName:o,style:i,help:l,errors:c,warnings:s,validateStatus:u,meta:d,hasFeedback:f,hidden:p,children:m,fieldId:g,required:h,isRequired:v,onSubItemMetaChange:b,layout:y}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(M&&k.current){const e=getComputedStyle(k.current);P(parseInt(e.marginBottom,10))}}),[M,I]);const R=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return KA(e?E:d.errors,e?O:d.warnings,d,"",!!f,u)}(),T=a()(C,n,o,{[`${C}-with-help`]:j||E.length||O.length,[`${C}-has-feedback`]:R&&f,[`${C}-has-success`]:"success"===R,[`${C}-has-warning`]:"warning"===R,[`${C}-has-error`]:"error"===R,[`${C}-is-validating`]:"validating"===R,[`${C}-hidden`]:p,[`${C}-${y}`]:y});return r.createElement("div",{className:T,style:i,ref:k},r.createElement(tz,Object.assign({className:`${C}-row`},ye(x,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),r.createElement(cz,Object.assign({htmlFor:g},e,{requiredMark:w,required:null!=h?h:v,prefixCls:t,vertical:$})),r.createElement(oz,Object.assign({},e,d,{errors:E,warnings:O,prefixCls:t,status:R,help:l,marginBottom:N,onErrorVisibleChanged:e=>{e||P(null)}}),r.createElement(Sp.Provider,{value:b},r.createElement(uz,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:f,validateStatus:R},m)))),!!N&&r.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-N}}))}const fz=r.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>{const r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),pz=function(e){const{name:t,noStyle:n,className:o,dependencies:i,prefixCls:l,shouldUpdate:c,rules:u,children:d,required:f,label:p,messageVariables:m,trigger:g="onChange",validateTrigger:h,hidden:v,help:b,layout:y}=e,{getPrefixCls:x}=r.useContext(Ae),{name:C}=r.useContext(wp),w=function(e){if("function"==typeof e)return e;const t=s(e);return t.length<=1?t[0]:t}(d),S="function"==typeof w,$=r.useContext(Sp),{validateTrigger:k}=r.useContext(sf),E=void 0!==h?h:k,O=!(null==t),j=x("form",l),M=rl(j),[N,R,T]=BA(j,M);hl();const A=r.useContext(uf),z=r.useRef(),[_,D]=function(){const[e,t]=r.useState({}),n=(0,r.useRef)(null),o=(0,r.useRef)([]),i=(0,r.useRef)(!1);return r.useEffect((()=>(i.current=!1,()=>{i.current=!0,Ie.cancel(n.current),n.current=null})),[]),[e,function(e){i.current||(null===n.current&&(o.current=[],n.current=Ie((()=>{n.current=null,t((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}(),[B,H]=Kn((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),L=(e,t)=>{D((n=>{const r=Object.assign({},n),o=[].concat(Se(e.name.slice(0,-1)),Se(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[F,W]=r.useMemo((()=>{const e=Se(B.errors),t=Se(B.warnings);return Object.values(_).forEach((n=>{e.push.apply(e,Se(n.errors||[])),t.push.apply(t,Se(n.warnings||[]))})),[e,t]}),[_,B.errors,B.warnings]),V=function(){const{itemRef:e}=r.useContext(wp),t=r.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=I(e(n),o)),t.current.ref}}();function q(t,i,l){return n&&!v?r.createElement(uz,{prefixCls:j,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:F,warnings:W,noStyle:!0},t):r.createElement(dz,Object.assign({key:"row"},e,{className:a()(o,T,M,R),prefixCls:j,fieldId:i,isRequired:l,errors:F,warnings:W,meta:B,onSubItemMetaChange:L,layout:y}),t)}if(!O&&!S&&!i)return N(q(w));let K={};return"string"==typeof p?K.label=p:t&&(K.label=String(t)),m&&(K=Object.assign(Object.assign({},K),m)),N(r.createElement(op,Object.assign({},e,{messageVariables:K,trigger:g,validateTrigger:E,onMetaChange:e=>{const t=null==A?void 0:A.getKey(e.name);if(H(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==b&&$){let n=e.name;if(e.destroy)n=z.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(Se(r)),z.current=n}$(e,n)}}}),((n,o,a)=>{const l=VA(t).length&&o?o.name:[],s=qA(l,C),d=void 0!==f?f:!!(null==u?void 0:u.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}))),p=Object.assign({},n);let m=null;if(Array.isArray(w)&&O)m=w;else if(S&&(!c&&!i||O));else if(!i||S||O)if(r.isValidElement(w)){const t=Object.assign(Object.assign({},w.props),p);if(t.id||(t.id=s),b||F.length>0||W.length>0||e.extra){const n=[];(b||F.length>0)&&n.push(`${s}_help`),e.extra&&n.push(`${s}_extra`),t["aria-describedby"]=n.join(" ")}F.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),P(w)&&(t.ref=V(l,w)),new Set([].concat(Se(VA(g)),Se(VA(E)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),c=0;c{var{prefixCls:t,children:n}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({prefixCls:a,status:"error"})),[a]);return r.createElement(ip,Object.assign({},o),((e,t,o)=>r.createElement(kp.Provider,{value:l},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:o.errors,warnings:o.warnings}))))},gz.ErrorList=FA,gz.useForm=GA,gz.useFormInstance=function(){const{form:e}=(0,r.useContext)(wp);return e},gz.useWatch=yp,gz.Provider=$p,gz.create=()=>{};const hz=gz,vz={useBreakpoint:function(){return sy()}};function bz(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function yz(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function xz(e,t,n,r){var o=$().unstable_batchedUpdates?function(e){$().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var Cz=r.createContext(null);const wz=function(e){var t=e.visible,n=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,l=e.rootClassName,c=e.icons,s=e.countRender,u=e.showSwitch,d=e.showProgress,f=e.current,p=e.transform,m=e.count,g=e.scale,h=e.minScale,v=e.maxScale,b=e.closeIcon,y=e.onActive,C=e.onClose,S=e.onZoomIn,$=e.onZoomOut,k=e.onRotateRight,E=e.onRotateLeft,O=e.onFlipX,j=e.onFlipY,M=e.onReset,I=e.toolbarRender,N=e.zIndex,P=e.image,R=(0,r.useContext)(Cz),T=c.rotateLeft,A=c.rotateRight,z=c.zoomIn,_=c.zoomOut,D=c.close,B=c.left,H=c.right,L=c.flipX,F=c.flipY,W="".concat(i,"-operations-operation");r.useEffect((function(){var e=function(e){e.keyCode===bl.ESC&&C()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var V=function(e,t){e.preventDefault(),e.stopPropagation(),y(t)},q=r.useCallback((function(e){var t=e.type,n=e.disabled,o=e.onClick,l=e.icon;return r.createElement("div",{key:t,className:a()(W,"".concat(i,"-operations-operation-").concat(t),x({},"".concat(i,"-operations-operation-disabled"),!!n)),onClick:o},l)}),[W,i]),K=u?q({icon:B,onClick:function(e){return V(e,-1)},type:"prev",disabled:0===f}):void 0,X=u?q({icon:H,onClick:function(e){return V(e,1)},type:"next",disabled:f===m-1}):void 0,G=q({icon:F,onClick:j,type:"flipY"}),Y=q({icon:L,onClick:O,type:"flipX"}),U=q({icon:T,onClick:E,type:"rotateLeft"}),Q=q({icon:A,onClick:k,type:"rotateRight"}),Z=q({icon:_,onClick:$,type:"zoomOut",disabled:g<=h}),J=q({icon:z,onClick:S,type:"zoomIn",disabled:g===v}),ee=r.createElement("div",{className:"".concat(i,"-operations")},G,Y,U,Q,Z,J);return r.createElement(ka,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return r.createElement(Fd,{open:!0,getContainer:null!=o?o:document.body},r.createElement("div",{className:a()("".concat(i,"-operations-wrapper"),t,l),style:w(w({},n),{},{zIndex:N})},null===b?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:C},b||D),u&&r.createElement(r.Fragment,null,r.createElement("div",{className:a()("".concat(i,"-switch-left"),x({},"".concat(i,"-switch-left-disabled"),0===f)),onClick:function(e){return V(e,-1)}},B),r.createElement("div",{className:a()("".concat(i,"-switch-right"),x({},"".concat(i,"-switch-right-disabled"),f===m-1)),onClick:function(e){return V(e,1)}},H)),r.createElement("div",{className:"".concat(i,"-footer")},d&&r.createElement("div",{className:"".concat(i,"-progress")},s?s(f+1,m):"".concat(f+1," / ").concat(m)),I?I(ee,w(w({icons:{prevIcon:K,nextIcon:X,flipYIcon:G,flipXIcon:Y,rotateLeftIcon:U,rotateRightIcon:Q,zoomOutIcon:Z,zoomInIcon:J},actions:{onActive:y,onFlipY:j,onFlipX:O,onRotateLeft:E,onRotateRight:k,onZoomOut:$,onZoomIn:S,onReset:M,onClose:C},transform:p},R?{current:f,total:m}:{}),{},{image:P})):ee)))}))};var Sz={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function $z(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return x({},e,i);if(t<0&&or)return x({},e,t<0?i:-i);return{}}function kz(e,t,n,r){var o=bz(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=w(w({},$z("x",n,e,i)),$z("y",r,t,a))),l}function Ez(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,i=Be((0,r.useState)(n?"loading":"normal"),2),a=i[0],l=i[1],c=(0,r.useRef)(!1),s="error"===a;(0,r.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&l("error")})),function(){e=!1}}),[t]),(0,r.useEffect)((function(){n&&!c.current?l("loading"):s&&l("normal")}),[t]);var u=function(){l("normal")};return[function(e){c.current=!1,"loading"===a&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,u())},s&&o?{src:o}:{onLoad:u,src:t},a]}function Oz(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}var jz=["fallback","src","imgRef"],Mz=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Iz=function(e){var t=e.fallback,n=e.src,r=e.imgRef,i=ni(e,jz),a=Be(Ez({src:n,fallback:t}),2),c=a[0],s=a[1];return o().createElement("img",(0,l.A)({ref:function(e){r.current=e,c(e)}},i,s))};const Nz=function(e){var t=e.prefixCls,n=e.src,i=e.alt,c=e.imageInfo,s=e.fallback,u=e.movable,d=void 0===u||u,f=e.onClose,p=e.visible,m=e.icons,g=void 0===m?{}:m,h=e.rootClassName,v=e.closeIcon,b=e.getContainer,y=e.current,C=void 0===y?0:y,S=e.count,$=void 0===S?1:S,k=e.countRender,E=e.scaleStep,O=void 0===E?.5:E,j=e.minScale,M=void 0===j?1:j,I=e.maxScale,N=void 0===I?50:I,P=e.transitionName,R=void 0===P?"zoom":P,T=e.maskTransitionName,A=void 0===T?"fade":T,z=e.imageRender,_=e.imgCommonProps,D=e.toolbarRender,B=e.onTransform,H=e.onChange,L=ni(e,Mz),F=(0,r.useRef)(),W=(0,r.useContext)(Cz),V=W&&$>1,q=W&&$>=1,K=Be((0,r.useState)(!0),2),X=K[0],G=K[1],Y=function(e,t,n,o){var i=(0,r.useRef)(null),a=(0,r.useRef)([]),l=Be((0,r.useState)(Sz),2),c=l[0],s=l[1],u=function(e,t){null===i.current&&(a.current=[],i.current=Ie((function(){s((function(e){var n=e;return a.current.forEach((function(e){n=w(w({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push(w(w({},c),e))};return{transform:c,resetTransform:function(e){s(Sz),Je(Sz,c)||null==o||o({transform:Sz,action:e})},updateTransform:u,dispatchZoomChange:function(r,o,i,a,l){var s=e.current,d=s.width,f=s.height,p=s.offsetWidth,m=s.offsetHeight,g=s.offsetLeft,h=s.offsetTop,v=r,b=c.scale*r;b>n?(b=n,v=n/c.scale):b0&&(r=1/r),l(r,"wheel",e.clientX,e.clientY)}}}}(F,d,p,O,U,Z,J),te=ee.isMoving,ne=ee.onMouseDown,re=ee.onWheel,oe=function(e,t,n,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,d=i.y,f=Be((0,r.useState)(!1),2),p=f[0],m=f[1],g=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),h=function(e){g.current=w(w({},g.current),e)};return(0,r.useEffect)((function(){var e;return n&&t&&(e=xz(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:p,onTouchStart:function(e){if(t){e.stopPropagation(),m(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?h({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):h({point1:{x:r[0].clientX-u,y:r[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=g.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=Oz(e,n),i=Oz(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),f=Be(d,2),p=f[0],m=f[1],v=Oz(s,u)/Oz(o,i);l(v,"touchZoom",p,m,!0),h({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),h({eventType:"move"}))},onTouchEnd:function(){if(n){if(p&&m(!1),h({eventType:"none"}),o>s)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*s,r=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,d=c%180!=0,f=kz(d?r:t,d?t:r,l,u);f&&a(w({},f),"dragRebound")}}}}(F,d,p,M,U,Z,J),ie=oe.isTouching,ae=oe.onTouchStart,le=oe.onTouchMove,ce=oe.onTouchEnd,se=U.rotate,ue=U.scale,de=a()(x({},"".concat(t,"-moving"),te));(0,r.useEffect)((function(){X||G(!0)}),[X]);var fe=function(e){var t=C+e;!Number.isInteger(t)||t<0||t>$-1||(G(!1),Q(e<0?"prev":"next"),null==H||H(t,C))},pe=function(e){p&&V&&(e.keyCode===bl.LEFT?fe(-1):e.keyCode===bl.RIGHT&&fe(1))};(0,r.useEffect)((function(){var e=xz(window,"keydown",pe,!1);return function(){e.remove()}}),[p,V,C]);var me=o().createElement(Iz,(0,l.A)({},_,{width:e.width,height:e.height,imgRef:F,className:"".concat(t,"-img"),alt:i,style:{transform:"translate3d(".concat(U.x,"px, ").concat(U.y,"px, 0) scale3d(").concat(U.flipX?"-":"").concat(ue,", ").concat(U.flipY?"-":"").concat(ue,", 1) rotate(").concat(se,"deg)"),transitionDuration:(!X||ie)&&"0s"},fallback:s,src:n,onWheel:re,onMouseDown:ne,onDoubleClick:function(e){p&&(1!==ue?Z({x:0,y:0,scale:1},"doubleClick"):J(1+O,"doubleClick",e.clientX,e.clientY))},onTouchStart:ae,onTouchMove:le,onTouchEnd:ce,onTouchCancel:ce})),ge=w({url:n,alt:i},c);return o().createElement(o().Fragment,null,o().createElement(af,(0,l.A)({transitionName:R,maskTransitionName:A,closable:!1,keyboard:!0,prefixCls:t,onClose:f,visible:p,classNames:{wrapper:de},rootClassName:h,getContainer:b},L,{afterClose:function(){Q("close")}}),o().createElement("div",{className:"".concat(t,"-img-wrapper")},z?z(me,w({transform:U,image:ge},W?{current:C}:{})):me)),o().createElement(wz,{visible:p,transform:U,maskTransitionName:A,closeIcon:v,getContainer:b,prefixCls:t,rootClassName:h,icons:g,countRender:k,showSwitch:V,showProgress:q,current:C,count:$,scale:ue,minScale:M,maxScale:N,toolbarRender:D,onActive:fe,onZoomIn:function(){J(1+O,"zoomIn")},onZoomOut:function(){J(1/(1+O),"zoomOut")},onRotateRight:function(){Z({rotate:se+90},"rotateRight")},onRotateLeft:function(){Z({rotate:se-90},"rotateLeft")},onFlipX:function(){Z({flipX:!U.flipX},"flipX")},onFlipY:function(){Z({flipY:!U.flipY},"flipY")},onClose:f,onReset:function(){Q("reset")},zIndex:void 0!==L.zIndex?L.zIndex+1:void 0,image:ge}))};var Pz=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Rz=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Tz=["src"];var Az=0,zz=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],_z=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Dz=function(e){var t=e.src,n=e.alt,o=e.onPreviewClose,i=e.prefixCls,c=void 0===i?"rc-image":i,s=e.previewPrefixCls,u=void 0===s?"".concat(c,"-preview"):s,d=e.placeholder,f=e.fallback,p=e.width,m=e.height,g=e.style,h=e.preview,v=void 0===h||h,y=e.className,C=e.onClick,S=e.onError,$=e.wrapperClassName,k=e.wrapperStyle,E=e.rootClassName,O=ni(e,zz),j=d&&!0!==d,M="object"===b(v)?v:{},I=M.src,N=M.visible,P=void 0===N?void 0:N,R=M.onVisibleChange,T=void 0===R?o:R,A=M.getContainer,z=void 0===A?void 0:A,_=M.mask,D=M.maskClassName,B=M.movable,H=M.icons,L=M.scaleStep,F=M.minScale,W=M.maxScale,V=M.imageRender,q=M.toolbarRender,K=ni(M,_z),X=null!=I?I:t,G=Be(Gn(!!P,{value:P,onChange:T}),2),Y=G[0],U=G[1],Q=Be(Ez({src:t,isCustomPlaceholder:j,fallback:f}),3),Z=Q[0],J=Q[1],ee=Q[2],te=Be((0,r.useState)(null),2),ne=te[0],re=te[1],oe=(0,r.useContext)(Cz),ie=!!v,ae=a()(c,$,E,x({},"".concat(c,"-error"),"error"===ee)),le=(0,r.useMemo)((function(){var t={};return Pz.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),Pz.map((function(t){return e[t]}))),ce=function(e,t){var n=Be(r.useState((function(){return String(Az+=1)})),1)[0],o=r.useContext(Cz),i={data:t,canPreview:e};return r.useEffect((function(){if(o)return o.register(n,i)}),[]),r.useEffect((function(){o&&o.register(n,i)}),[e,t]),n}(ie,(0,r.useMemo)((function(){return w(w({},le),{},{src:X})}),[X,le]));return r.createElement(r.Fragment,null,r.createElement("div",(0,l.A)({},O,{className:ae,onClick:ie?function(e){var t=yz(e.target),n=t.left,r=t.top;oe?oe.onPreview(ce,X,n,r):(re({x:n,y:r}),U(!0)),null==C||C(e)}:C,style:w({width:p,height:m},k)}),r.createElement("img",(0,l.A)({},le,{className:a()("".concat(c,"-img"),x({},"".concat(c,"-img-placeholder"),!0===d),y),style:w({height:m},g),ref:Z},J,{width:p,height:m,onError:S})),"loading"===ee&&r.createElement("div",{"aria-hidden":"true",className:"".concat(c,"-placeholder")},d),_&&ie&&r.createElement("div",{className:a()("".concat(c,"-mask"),D),style:{display:"none"===(null==g?void 0:g.display)?"none":void 0}},_)),!oe&&ie&&r.createElement(Nz,(0,l.A)({"aria-hidden":!Y,visible:Y,prefixCls:u,onClose:function(){U(!1),re(null)},mousePosition:ne,src:X,alt:n,imageInfo:{width:p,height:m},fallback:f,getContainer:z,icons:H,movable:B,scaleStep:L,minScale:F,maxScale:W,rootClassName:E,imageRender:V,imgCommonProps:le,toolbarRender:q},K)))};Dz.PreviewGroup=function(e){var t,n=e.previewPrefixCls,o=void 0===n?"rc-image-preview":n,i=e.children,a=e.icons,c=void 0===a?{}:a,s=e.items,u=e.preview,d=e.fallback,f="object"===b(u)?u:{},p=f.visible,m=f.onVisibleChange,g=f.getContainer,h=f.current,v=f.movable,y=f.minScale,C=f.maxScale,S=f.countRender,$=f.closeIcon,k=f.onChange,E=f.onTransform,O=f.toolbarRender,j=f.imageRender,M=ni(f,Rz),I=function(e){var t=Be(r.useState({}),2),n=t[0],o=t[1],i=r.useCallback((function(e,t){return o((function(n){return w(w({},n),{},x({},e,t))})),function(){o((function(t){var n=w({},t);return delete n[e],n}))}}),[]);return[r.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat(Se(Pz)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(n).reduce((function(e,t){var r=n[t],o=r.canPreview,i=r.data;return o&&e.push({data:i,id:t}),e}),[])}),[e,n]),i,!!e]}(s),N=Be(I,3),P=N[0],R=N[1],T=N[2],A=Be(Gn(0,{value:h}),2),z=A[0],_=A[1],D=Be((0,r.useState)(!1),2),B=D[0],H=D[1],L=(null===(t=P[z])||void 0===t?void 0:t.data)||{},F=L.src,W=ni(L,Tz),V=Be(Gn(!!p,{value:p,onChange:function(e,t){null==m||m(e,t,z)}}),2),q=V[0],K=V[1],X=Be((0,r.useState)(null),2),G=X[0],Y=X[1],U=r.useCallback((function(e,t,n,r){var o=T?P.findIndex((function(e){return e.data.src===t})):P.findIndex((function(t){return t.id===e}));_(o<0?0:o),K(!0),Y({x:n,y:r}),H(!0)}),[P,T]);r.useEffect((function(){q?B||_(0):H(!1)}),[q]);var Q=r.useMemo((function(){return{register:R,onPreview:U}}),[R,U]);return r.createElement(Cz.Provider,{value:Q},i,r.createElement(Nz,(0,l.A)({"aria-hidden":!q,movable:v,visible:q,prefixCls:o,closeIcon:$,onClose:function(){K(!1),Y(null)},mousePosition:G,imgCommonProps:W,src:F,fallback:d,icons:c,minScale:y,maxScale:C,getContainer:g,current:z,count:P.length,countRender:S,onTransform:E,toolbarRender:O,imageRender:j,onChange:function(e,t){_(e),null==k||k(e,t)}},M)))};const Bz=Dz,Hz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};var Lz=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Hz}))};const Fz=r.forwardRef(Lz),Wz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};var Vz=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Wz}))};const qz=r.forwardRef(Vz),Kz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};var Xz=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Kz}))};const Gz=r.forwardRef(Xz),Yz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var Uz=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Yz}))};const Qz=r.forwardRef(Uz),Zz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var Jz=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:Zz}))};const e_=r.forwardRef(Jz),t_=e=>({position:e||"absolute",inset:0}),n_=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Co("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},fr),{padding:`0 ${yt(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},r_=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new Co(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${yt(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},o_=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new Co(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},i_=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},t_()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},t_()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[r_(e),o_(e)]}]},a_=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},n_(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},t_())}}},l_=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Mm(e,"zoom"),"&":gm(e,!0)}},c_=Vo("Image",(e=>{const t=`${e.componentCls}-preview`,n=ir(e,{previewCls:t,modalMaskBg:new Co("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[a_(n),i_(n),Nm(ir(n,{componentCls:t})),l_(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Co(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Co(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Co(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));const s_={rotateLeft:r.createElement(Fz,null),rotateRight:r.createElement(qz,null),zoomIn:r.createElement(Qz,null),zoomOut:r.createElement(e_,null),close:r.createElement(Ei,null),left:r.createElement(lw,null),right:r.createElement(fu,null),flipX:r.createElement(Gz,null),flipY:r.createElement(Gz,{rotate:90})};var u_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:o,className:i,rootClassName:l,style:c}=e,s=u_(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:u,locale:d=Cc,getPopupContainer:f,image:p}=r.useContext(Ae),m=u("image",n),g=u(),h=d.Image||Cc.Image,v=rl(m),[b,y,x]=c_(m,v),C=a()(l,y,x,v),w=a()(i,y,null==p?void 0:p.className),[S]=Bl("ImagePreview","object"==typeof o?o.zIndex:void 0),$=r.useMemo((()=>{var e;if(!1===o)return o;const t="object"==typeof o?o:{},{getContainer:n,closeIcon:i}=t,a=u_(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${m}-mask-info`},r.createElement(LN,null),null==h?void 0:h.preview),icons:s_},a),{getContainer:null!=n?n:f,transitionName:ts(g,"zoom",t.transitionName),maskTransitionName:ts(g,"fade",t.maskTransitionName),zIndex:S,closeIcon:null!=i?i:null===(e=null==p?void 0:p.preview)||void 0===e?void 0:e.closeIcon})}),[o,h,null===(t=null==p?void 0:p.preview)||void 0===t?void 0:t.closeIcon]),k=Object.assign(Object.assign({},null==p?void 0:p.style),c);return b(r.createElement(Bz,Object.assign({prefixCls:m,preview:$,rootClassName:C,className:w,style:k},s)))};d_.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=a()(f,p,u,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:ts(s,"zoom",t.transitionName),maskTransitionName:ts(s,"fade",t.maskTransitionName),rootClassName:r,zIndex:m})}),[n]);return d(r.createElement(Bz.PreviewGroup,Object.assign({preview:g,previewPrefixCls:c,icons:s_},o)))};const f_=d_;var p_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);or.forwardRef(((o,i)=>r.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},o))))}const g_=r.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:o,className:i,tagName:l}=e,c=p_(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=r.useContext(Ae),u=s("layout",n),[d,f,p]=fw(u),m=o?`${u}-${o}`:u;return d(r.createElement(l,Object.assign({className:a()(n||m,i,f,p),ref:t},c)))})),h_=r.forwardRef(((e,t)=>{const{direction:n}=r.useContext(Ae),[o,i]=r.useState([]),{prefixCls:l,className:c,rootClassName:u,children:d,hasSider:f,tagName:p,style:m}=e,g=ye(p_(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:h,layout:v}=r.useContext(Ae),b=h("layout",l),y=function(e,t,n){return"boolean"==typeof n?n:!!e.length||s(t).some((e=>e.type===yw))}(o,d,f),[x,C,w]=fw(b),S=a()(b,{[`${b}-has-sider`]:y,[`${b}-rtl`]:"rtl"===n},null==v?void 0:v.className,c,u,C,w),$=r.useMemo((()=>({siderHook:{addSider:e=>{i((t=>[].concat(Se(t),[e])))},removeSider:e=>{i((t=>t.filter((t=>t!==e))))}}})),[]);return x(r.createElement(cw.Provider,{value:$},r.createElement(p,Object.assign({ref:t,className:S,style:Object.assign(Object.assign({},null==v?void 0:v.style),m)},g),d)))})),v_=m_({tagName:"div",displayName:"Layout"})(h_),b_=m_({suffixCls:"header",tagName:"header",displayName:"Header"})(g_),y_=m_({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(g_),x_=m_({suffixCls:"content",tagName:"main",displayName:"Content"})(g_),C_=v_;C_.Header=b_,C_.Footer=y_,C_.Content=x_,C_.Sider=yw,C_._InternalSiderContext=hw;const w_=C_,S_=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[t];void 0!==r&&(e[t]=r)}))}return e},$_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var k_=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:$_}))};const E_=r.forwardRef(k_),O_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var j_=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:O_}))};const M_=r.forwardRef(j_),I_={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var N_=["10","20","50","100"];const P_=function(e){var t=e.pageSizeOptions,n=void 0===t?N_:t,r=e.locale,i=e.changeSize,c=e.pageSize,s=e.goButton,u=e.quickGo,d=e.rootPrefixCls,f=e.selectComponentClass,p=e.selectPrefixCls,m=e.disabled,g=e.buildOptionText,h=e.showSizeChanger,v=Be(o().useState(""),2),y=v[0],x=v[1],C=function(){return!y||Number.isNaN(y)?void 0:Number(y)},w="function"==typeof g?g:function(e){return"".concat(e," ").concat(r.items_per_page)},S=function(e){""!==y&&(e.keyCode!==bl.ENTER&&"click"!==e.type||(x(""),null==u||u(C())))},$="".concat(d,"-options");if(!h&&!u)return null;var k=null,E=null,O=null;if(h&&f){var j="object"===b(h)?h:{},M=j.options,I=j.className,N=M?void 0:(n.some((function(e){return e.toString()===c.toString()}))?n:n.concat([c.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return o().createElement(f.Option,{key:t,value:e.toString()},w(e))}));k=o().createElement(f,(0,l.A)({disabled:m,prefixCls:p,showSearch:!1,optionLabelProp:M?"label":"children",popupMatchSelectWidth:!1,value:(c||n[0]).toString(),getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},"object"===b(h)?h:null,{className:a()("".concat($,"-size-changer"),I),options:M,onChange:function(e,t){var n;null==i||i(Number(e)),"object"===b(h)&&(null===(n=h.onChange)||void 0===n||n.call(h,e,t))}}),N)}return u&&(s&&(O="boolean"==typeof s?o().createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:m,className:"".concat($,"-quick-jumper-button")},r.jump_to_confirm):o().createElement("span",{onClick:S,onKeyUp:S},s)),E=o().createElement("div",{className:"".concat($,"-quick-jumper")},r.jump_to,o().createElement("input",{disabled:m,type:"text",value:y,onChange:function(e){x(e.target.value)},onKeyUp:S,onBlur:function(e){s||""===y||(x(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(d,"-item"))>=0)||null==u||u(C()))},"aria-label":r.page}),r.page,O)),o().createElement("li",{className:$},k,E)},R_=function(e){var t=e.rootPrefixCls,n=e.page,r=e.active,i=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(t,"-item"),f=a()(d,"".concat(d,"-").concat(n),x(x({},"".concat(d,"-active"),r),"".concat(d,"-disabled"),!n),i),p=u(n,"page",o().createElement("a",{rel:"nofollow"},n));return p?o().createElement("li",{title:l?String(n):null,className:f,onClick:function(){c(n)},onKeyDown:function(e){s(e,c,n)},tabIndex:0},p):null};var T_=function(e,t,n){return n};function A_(){}function z_(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function __(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}const D_=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,i=e.selectPrefixCls,c=void 0===i?"rc-select":i,s=e.className,u=e.selectComponentClass,d=e.current,f=e.defaultCurrent,p=void 0===f?1:f,m=e.total,g=void 0===m?0:m,h=e.pageSize,v=e.defaultPageSize,y=void 0===v?10:v,C=e.onChange,S=void 0===C?A_:C,$=e.hideOnSinglePage,k=e.align,E=e.showPrevNextJumpers,O=void 0===E||E,j=e.showQuickJumper,M=e.showLessItems,I=e.showTitle,N=void 0===I||I,P=e.onShowSizeChange,R=void 0===P?A_:P,T=e.locale,A=void 0===T?I_:T,z=e.style,_=e.totalBoundaryShowSizeChanger,D=void 0===_?50:_,B=e.disabled,H=e.simple,L=e.showTotal,F=e.showSizeChanger,W=void 0===F?g>D:F,V=e.pageSizeOptions,q=e.itemRender,K=void 0===q?T_:q,X=e.jumpPrevIcon,G=e.jumpNextIcon,Y=e.prevIcon,U=e.nextIcon,Q=o().useRef(null),Z=Be(Gn(10,{value:h,defaultValue:y}),2),J=Z[0],ee=Z[1],te=Be(Gn(1,{value:d,defaultValue:p,postState:function(e){return Math.max(1,Math.min(e,__(void 0,J,g)))}}),2),ne=te[0],re=te[1],oe=Be(o().useState(ne),2),ie=oe[0],ae=oe[1];(0,r.useEffect)((function(){ae(ne)}),[ne]);var le=Math.max(1,ne-(M?3:5)),ce=Math.min(__(void 0,J,g),ne+(M?3:5));function se(t,r){var i=t||o().createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(i=o().createElement(t,w({},e))),i}function ue(e){var t=e.target.value,n=__(void 0,J,g);return""===t?t:Number.isNaN(Number(t))?ie:t>=n?n:Number(t)}var de=g>J&&j;function fe(e){var t=ue(e);switch(t!==ie&&ae(t),e.keyCode){case bl.ENTER:pe(t);break;case bl.UP:pe(t-1);break;case bl.DOWN:pe(t+1)}}function pe(e){if(function(e){return z_(e)&&e!==ne&&z_(g)&&g>0}(e)&&!B){var t=__(void 0,J,g),n=e;return e>t?n=t:e<1&&(n=1),n!==ie&&ae(n),re(n),null==S||S(n,J),n}return ne}var me=ne>1,ge=ne<__(void 0,J,g);function he(){me&&pe(ne-1)}function ve(){ge&&pe(ne+1)}function be(){pe(le)}function ye(){pe(ce)}function xe(e,t){if("Enter"===e.key||e.charCode===bl.ENTER||e.keyCode===bl.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;og?g:ne*J])),ke=null,Ee=__(void 0,J,g);if($&&g<=J)return null;var Oe=[],je={rootPrefixCls:n,onClick:pe,onKeyPress:xe,showTitle:N,itemRender:K,page:-1},Me=ne-1>0?ne-1:0,Ie=ne+1=2*Ae&&3!==ne&&(Oe[0]=o().cloneElement(Oe[0],{className:a()("".concat(n,"-item-after-jump-prev"),Oe[0].props.className)}),Oe.unshift(we)),Ee-ne>=2*Ae&&ne!==Ee-2){var qe=Oe[Oe.length-1];Oe[Oe.length-1]=o().cloneElement(qe,{className:a()("".concat(n,"-item-before-jump-next"),qe.props.className)}),Oe.push(ke)}1!==Fe&&Oe.unshift(o().createElement(R_,(0,l.A)({},je,{key:1,page:1}))),We!==Ee&&Oe.push(o().createElement(R_,(0,l.A)({},je,{key:Ee,page:Ee})))}var Ke=function(e){var t=K(e,"prev",se(Y,"prev page"));return o().isValidElement(t)?o().cloneElement(t,{disabled:!me}):t}(Me);if(Ke){var Xe=!me||!Ee;Ke=o().createElement("li",{title:N?A.prev_page:null,onClick:he,tabIndex:Xe?null:0,onKeyDown:function(e){xe(e,he)},className:a()("".concat(n,"-prev"),x({},"".concat(n,"-disabled"),Xe)),"aria-disabled":Xe},Ke)}var Ge,Ye,Ue=function(e){var t=K(e,"next",se(U,"next page"));return o().isValidElement(t)?o().cloneElement(t,{disabled:!ge}):t}(Ie);Ue&&(H?(Ge=!ge,Ye=me?0:null):Ye=(Ge=!ge||!Ee)?null:0,Ue=o().createElement("li",{title:N?A.next_page:null,onClick:ve,tabIndex:Ye,onKeyDown:function(e){xe(e,ve)},className:a()("".concat(n,"-next"),x({},"".concat(n,"-disabled"),Ge)),"aria-disabled":Ge},Ue));var Qe=a()(n,s,x(x(x(x(x({},"".concat(n,"-start"),"start"===k),"".concat(n,"-center"),"center"===k),"".concat(n,"-end"),"end"===k),"".concat(n,"-simple"),H),"".concat(n,"-disabled"),B));return o().createElement("ul",(0,l.A)({className:Qe,style:z,ref:Q},Se),$e,Ke,H?Te:Oe,Ue,o().createElement(P_,{locale:A,rootPrefixCls:n,disabled:B,selectComponentClass:u,selectPrefixCls:c,changeSize:function(e){var t=__(e,J,g),n=ne>t&&0!==t?t:ne;ee(e),ae(n),null==R||R(ne,e),re(n),null==S||S(n,e)},pageSize:J,pageSizeOptions:V,quickGo:de?pe:null,goButton:Re,showSizeChanger:W}))},B_=e=>r.createElement(Zb,Object.assign({},e,{showSearch:!0,size:"small"})),H_=e=>r.createElement(Zb,Object.assign({},e,{showSearch:!0,size:"middle"}));B_.Option=Zb.Option,H_.Option=Zb.Option;const L_=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},F_=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:yt(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:yt(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:yt(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:yt(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:yt(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:yt(e.itemSizeSM),input:Object.assign(Object.assign({},iN(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},W_=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:yt(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:yt(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${yt(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${yt(e.inputOutlineOffset)} 0 ${yt(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},V_=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:yt(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${yt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:yt(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},aN(e)),KI(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},qI(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},q_=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:yt(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${yt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${yt(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},K_=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:yt(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),q_(e)),V_(e)),W_(e)),F_(e)),L_(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},X_=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},hr(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},gr(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},gr(e))}}}},G_=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},eE(e)),Y_=e=>ir(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Jk(e)),U_=Vo("Pagination",(e=>{const t=Y_(e);return[K_(t),X_(t)]}),G_),Q_=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Z_=Ko(["Pagination","bordered"],(e=>{const t=Y_(e);return[Q_(t)]}),G_);const J_=e=>{const{align:t,prefixCls:n,selectPrefixCls:o,className:i,rootClassName:l,style:c,size:s,locale:u,selectComponentClass:d,responsive:f,showSizeChanger:p}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const e=r.createElement("span",{className:`${x}-item-ellipsis`},"•••");return{prevIcon:r.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===b?r.createElement(fu,null):r.createElement(lw,null)),nextIcon:r.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===b?r.createElement(lw,null):r.createElement(fu,null)),jumpPrevIcon:r.createElement("a",{className:`${x}-item-link`},r.createElement("div",{className:`${x}-item-container`},"rtl"===b?r.createElement(M_,{className:`${x}-item-link-icon`}):r.createElement(E_,{className:`${x}-item-link-icon`}),e)),jumpNextIcon:r.createElement("a",{className:`${x}-item-link`},r.createElement("div",{className:`${x}-item-container`},"rtl"===b?r.createElement(E_,{className:`${x}-item-link-icon`}):r.createElement(M_,{className:`${x}-item-link-icon`}),e))}}),[b,x]),[E]=rs("Pagination",gc),O=Object.assign(Object.assign({},E),u),j=ms(s),M="small"===j||!(!g||j||!f),I=v("select",o),N=a()({[`${x}-${t}`]:!!t,[`${x}-mini`]:M,[`${x}-rtl`]:"rtl"===b,[`${x}-bordered`]:h.wireframe},null==y?void 0:y.className,i,l,w,S),P=Object.assign(Object.assign({},null==y?void 0:y.style),c);return C(r.createElement(r.Fragment,null,h.wireframe&&r.createElement(Z_,{prefixCls:x}),r.createElement(D_,Object.assign({},k,m,{style:P,prefixCls:x,selectPrefixCls:I,className:N,selectComponentClass:d||(M?B_:H_),locale:O,showSizeChanger:$}))))},eD=80*Math.PI,tD=e=>{const{dotClassName:t,style:n,hasCircleCls:o}=e;return r.createElement("circle",{className:a()(`${t}-circle`,{[`${t}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},nD=e=>{let{percent:t,prefixCls:n}=e;const o=`${n}-dot`,i=`${o}-holder`,l=`${i}-hidden`,[c,s]=r.useState(!1);Ot((()=>{0!==t&&s(!0)}),[0!==t]);const u=Math.max(Math.min(t,100),0);if(!c)return null;const d={strokeDashoffset:""+eD/4,strokeDasharray:`${eD*u/100} ${eD*(100-u)/100}`};return r.createElement("span",{className:a()(i,`${o}-progress`,u<=0&&l)},r.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},r.createElement(tD,{dotClassName:o,hasCircleCls:!0}),r.createElement(tD,{dotClassName:o,style:d})))};function rD(e){const{prefixCls:t,percent:n=0}=e,o=`${t}-dot`,i=`${o}-holder`,l=`${i}-hidden`;return r.createElement(r.Fragment,null,r.createElement("span",{className:a()(i,n>0&&l)},r.createElement("span",{className:a()(o,`${t}-dot-spin`)},[1,2,3,4].map((e=>r.createElement("i",{className:`${t}-dot-item`,key:e}))))),r.createElement(nD,{prefixCls:t,percent:n}))}function oD(e){const{prefixCls:t,indicator:n,percent:o}=e,i=`${t}-dot`;return n&&r.isValidElement(n)?Na(n,{className:a()(n.props.className,i),percent:o}):r.createElement(rD,{prefixCls:t,percent:o})}const iD=new zn("antSpinMove",{to:{opacity:1}}),aD=new zn("antRotate",{to:{transform:"rotate(405deg)"}}),lD=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:iD,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:aD,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},cD=Vo("Spin",(e=>{const t=ir(e,{spinDotDefault:e.colorTextDescription});return[lD(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),sD=[[30,.05],[70,.03],[96,.01]];let uD;const dD=e=>{var t;const{prefixCls:n,spinning:o=!0,delay:i=0,className:l,rootClassName:c,size:s="default",tip:u,wrapperClassName:d,style:f,children:p,fullscreen:m=!1,indicator:g,percent:h}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oo&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(o,i))),O=function(e,t){const[n,o]=r.useState(0),i=r.useRef(),a="auto"===t;return r.useEffect((()=>(a&&e&&(o(0),i.current=setInterval((()=>{o((e=>{const t=100-e;for(let n=0;n{clearInterval(i.current)})),[a,e]),a?n:t}(k,h);r.useEffect((()=>{if(o){const e=yO(i,(()=>{E(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}E(!1)}),[i,o]);const j=r.useMemo((()=>void 0!==p&&!m),[p,m]),M=a()(C,null==x?void 0:x.className,{[`${C}-sm`]:"small"===s,[`${C}-lg`]:"large"===s,[`${C}-spinning`]:k,[`${C}-show-text`]:!!u,[`${C}-rtl`]:"rtl"===y},l,!m&&c,S,$),I=a()(`${C}-container`,{[`${C}-blur`]:k}),N=null!==(t=null!=g?g:null==x?void 0:x.indicator)&&void 0!==t?t:uD,P=Object.assign(Object.assign({},null==x?void 0:x.style),f),R=r.createElement("div",Object.assign({},v,{style:P,className:M,"aria-live":"polite","aria-busy":k}),r.createElement(oD,{prefixCls:C,indicator:N,percent:O}),u&&(j||m)?r.createElement("div",{className:`${C}-text`},u):null);return w(j?r.createElement("div",Object.assign({},v,{className:a()(`${C}-nested-loading`,d,S,$)}),k&&r.createElement("div",{key:"loading"},R),r.createElement("div",{className:I,key:"container"},p)):m?r.createElement("div",{className:a()(`${C}-fullscreen`,{[`${C}-fullscreen-show`]:k},c,S,$)},R):R)};dD.setDefaultIndicator=e=>{uD=e};const fD=dD,pD=o().createContext({});pD.Consumer;var mD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,children:i,actions:l,extra:c,styles:s,className:u,classNames:d,colStyle:f}=e,p=mD(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:m,itemLayout:g}=(0,r.useContext)(pD),{getPrefixCls:h,list:v}=(0,r.useContext)(Ae),b=e=>{var t,n;return a()(null===(n=null===(t=null==v?void 0:v.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null==d?void 0:d[e])},y=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null==v?void 0:v.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null==s?void 0:s[e])},x=h("list",n),C=l&&l.length>0&&o().createElement("ul",{className:a()(`${x}-item-action`,b("actions")),key:"actions",style:y("actions")},l.map(((e,t)=>o().createElement("li",{key:`${x}-item-action-${t}`},e,t!==l.length-1&&o().createElement("em",{className:`${x}-item-action-split`}))))),w=m?"div":"li",S=o().createElement(w,Object.assign({},p,m?{}:{ref:t},{className:a()(`${x}-item`,{[`${x}-item-no-flex`]:!("vertical"===g?c:!(()=>{let e=!1;return r.Children.forEach(i,(t=>{"string"==typeof t&&(e=!0)})),e&&r.Children.count(i)>1})())},u)}),"vertical"===g&&c?[o().createElement("div",{className:`${x}-item-main`,key:"content"},i,C),o().createElement("div",{className:a()(`${x}-item-extra`,b("extra")),key:"extra",style:y("extra")},c)]:[i,C,Na(c,{key:"extra"})]);return m?o().createElement(HM,{ref:t,flex:1,style:f},S):S})),hD=gD;hD.Meta=e=>{var{prefixCls:t,className:n,avatar:i,title:l,description:c}=e,s=mD(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=(0,r.useContext)(Ae),d=u("list",t),f=a()(`${d}-item-meta`,n),p=o().createElement("div",{className:`${d}-item-meta-content`},l&&o().createElement("h4",{className:`${d}-item-meta-title`},l),c&&o().createElement("div",{className:`${d}-item-meta-description`},c));return o().createElement("div",Object.assign({},s,{className:f}),i&&o().createElement("div",{className:`${d}-item-meta-avatar`},i),(l||c)&&p)};const vD=hD,bD=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:c}=e;return{[t]:{border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${yt(o)} ${yt(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},yD=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${yt(a)}`}}}}}},xD=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:l,itemPadding:c,colorPrimary:s,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:g,motionDurationSlow:h,lineWidth:v,headerBg:b,footerBg:y,emptyTextPadding:x,metaMarginBottom:C,avatarMarginRight:w,titleMarginBottom:S,descriptionFontSize:$}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:w},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${yt(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${h}`,"&:hover":{color:s}}},[`${t}-item-meta-description`]:{color:g,fontSize:$,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${yt(f)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${yt(l)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:C,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:S,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${yt(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${yt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},CD=Vo("List",(e=>{const t=ir(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[xD(t),bD(t),yD(t)]}),(e=>({contentWidth:220,itemPadding:`${yt(e.paddingContentVertical)} 0`,itemPaddingSM:`${yt(e.paddingContentVerticalSM)} ${yt(e.paddingContentHorizontal)}`,itemPaddingLG:`${yt(e.paddingContentVerticalLG)} ${yt(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize})));function wD(e,t){var{pagination:n=!1,prefixCls:o,bordered:i=!1,split:l=!0,className:c,rootClassName:s,style:u,children:d,itemLayout:f,loadMore:p,grid:m,dataSource:g=[],size:h,header:v,footer:b,loading:y=!1,rowKey:x,renderItem:C,locale:w}=e,S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o(t,r)=>{var o;E(t),j(r),n&&(null===(o=null==n?void 0:n[e])||void 0===o||o.call(n,t,r))},T=R("onChange"),A=R("onShowSizeChange"),z=M("list",o),[_,D,B]=CD(z);let H=y;"boolean"==typeof H&&(H={spinning:H});const L=!!(null==H?void 0:H.spinning);let F="";switch(ms(h)){case"large":F="lg";break;case"small":F="sm"}const W=a()(z,{[`${z}-vertical`]:"vertical"===f,[`${z}-${F}`]:F,[`${z}-split`]:l,[`${z}-bordered`]:i,[`${z}-loading`]:L,[`${z}-grid`]:!!m,[`${z}-something-after-last-item`]:!!(p||n||b),[`${z}-rtl`]:"rtl"===N},null==P?void 0:P.className,c,s,D,B),V=S_({current:1,total:0},{total:g.length,current:k,pageSize:O},n||{}),q=Math.ceil(V.total/V.pageSize);V.current>q&&(V.current=q);const K=n&&r.createElement("div",{className:a()(`${z}-pagination`)},r.createElement(J_,Object.assign({align:"end"},V,{onChange:T,onShowSizeChange:A})));let X=Se(g);n&&g.length>(V.current-1)*V.pageSize&&(X=Se(g).splice((V.current-1)*V.pageSize,V.pageSize));const G=Object.keys(m||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),Y=sy(G),U=r.useMemo((()=>{for(let e=0;e{if(!m)return;const e=U&&m[U]?m[U]:m.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0}),[JSON.stringify(m),U]);let Z=L&&r.createElement("div",{style:{minHeight:53}});if(X.length>0){const e=X.map(((e,t)=>((e,t)=>{if(!C)return null;let n;return n="function"==typeof x?x(e):x?e[x]:e.key,n||(n=`list-item-${t}`),r.createElement(r.Fragment,{key:n},C(e,t))})(e,t)));Z=m?r.createElement(tz,{gutter:m.gutter},r.Children.map(e,(e=>r.createElement("div",{key:null==e?void 0:e.key,style:Q},e)))):r.createElement("ul",{className:`${z}-items`},e)}else d||L||(Z=r.createElement("div",{className:`${z}-empty-text`},(null==w?void 0:w.emptyText)||(null==I?void 0:I("List"))||r.createElement(Gv,{componentName:"List"})));const J=V.position||"bottom",ee=r.useMemo((()=>({grid:m,itemLayout:f})),[JSON.stringify(m),f]);return _(r.createElement(pD.Provider,{value:ee},r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==P?void 0:P.style),u),className:W},S),("top"===J||"both"===J)&&K,v&&r.createElement("div",{className:`${z}-header`},v),r.createElement(fD,Object.assign({},H),Z,d),b&&r.createElement("div",{className:`${z}-footer`},b),p||("bottom"===J||"both"===J)&&K)))}const SD=r.forwardRef(wD);SD.Item=vD;const $D=SD,kD=r.createContext(null),ED=function(e){var t=r.useContext(kD),n=t.notFoundContent,o=t.activeIndex,i=t.setActiveIndex,a=t.selectOption,l=t.onFocus,c=t.onBlur,s=e.prefixCls,u=e.options,d=u[o]||{};return r.createElement(tw,{prefixCls:"".concat(s,"-menu"),activeKey:d.key,onSelect:function(e){var t=e.key,n=u.find((function(e){return e.key===t}));a(n)},onFocus:l,onBlur:c},u.map((function(e,t){var n=e.key,o=e.disabled,a=e.className,l=e.style,c=e.label;return r.createElement(OC,{key:n,disabled:o,className:a,style:l,onMouseEnter:function(){i(t)}},c)})),!u.length&&r.createElement(OC,{disabled:!0},n))};var OD={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}};const jD=function(e){var t=e.prefixCls,n=e.options,o=e.children,i=e.visible,a=e.transitionName,l=e.getPopupContainer,c=e.dropdownClassName,s=e.direction,u=e.placement,d="".concat(t,"-dropdown"),f=r.createElement(ED,{prefixCls:d,options:n}),p=(0,r.useMemo)((function(){return"rtl"===s?"top"===u?"topLeft":"bottomLeft":"top"===u?"topRight":"bottomRight"}),[s,u]);return r.createElement(Dh,{prefixCls:d,popupVisible:i,popup:f,popupPlacement:p,popupTransitionName:a,builtinPlacements:OD,getPopupContainer:l,popupClassName:c},o)};function MD(e){return(e||"").toLowerCase()}function ID(e,t){return!t||-1===e.indexOf(t)}function ND(e,t){var n=t.value,r=void 0===n?"":n,o=e.toLowerCase();return-1!==r.toLowerCase().indexOf(o)}var PD=["prefixCls","className","style","prefix","split","notFoundContent","value","defaultValue","children","options","open","allowClear","silent","validateSearch","filterOption","onChange","onKeyDown","onKeyUp","onPressEnter","onSearch","onSelect","onFocus","onBlur","transitionName","placement","direction","getPopupContainer","dropdownClassName","rows","visible"],RD=["suffix","prefixCls","defaultValue","value","allowClear","onChange","classNames","className","disabled","onClear"],TD=(0,r.forwardRef)((function(e,t){var n=e.prefixCls,i=e.className,c=e.style,u=e.prefix,d=void 0===u?"@":u,f=e.split,p=void 0===f?" ":f,m=e.notFoundContent,g=void 0===m?"Not Found":m,h=e.value,v=e.defaultValue,b=e.children,y=e.options,x=e.open,C=(e.allowClear,e.silent),S=e.validateSearch,$=void 0===S?ID:S,k=e.filterOption,E=void 0===k?ND:k,O=e.onChange,j=e.onKeyDown,M=e.onKeyUp,I=e.onPressEnter,N=e.onSearch,P=e.onSelect,R=e.onFocus,T=e.onBlur,A=e.transitionName,z=e.placement,_=e.direction,D=e.getPopupContainer,B=e.dropdownClassName,H=e.rows,L=void 0===H?1:H,F=(e.visible,ni(e,PD)),W=(0,r.useMemo)((function(){return Array.isArray(d)?d:[d]}),[d]),V=(0,r.useRef)(null),q=(0,r.useRef)(null),K=(0,r.useRef)(null),X=function(){var e;return null===(e=q.current)||void 0===e||null===(e=e.resizableTextArea)||void 0===e?void 0:e.textArea};o().useImperativeHandle(t,(function(){var e;return{focus:function(){var e;return null===(e=q.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=q.current)||void 0===e?void 0:e.blur()},textarea:null===(e=q.current)||void 0===e||null===(e=e.resizableTextArea)||void 0===e?void 0:e.textArea,nativeElement:V.current}}));var G=Be((0,r.useState)(!1),2),Y=G[0],U=G[1],Q=Be((0,r.useState)(""),2),Z=Q[0],J=Q[1],ee=Be((0,r.useState)(""),2),te=ee[0],ne=ee[1],re=Be((0,r.useState)(0),2),oe=re[0],ie=re[1],ae=Be((0,r.useState)(0),2),le=ae[0],ce=ae[1],se=Be((0,r.useState)(!1),2),ue=se[0],de=se[1],fe=Be(Gn("",{defaultValue:v,value:h}),2),pe=fe[0],me=fe[1];(0,r.useEffect)((function(){Y&&K.current&&(K.current.scrollTop=X().scrollTop)}),[Y]);var ge=Be(o().useMemo((function(){if(x)for(var e=0;e=0)return[!0,"",t,n]}return[Y,Z,te,oe]}),[x,Y,W,pe,Z,te,oe]),4),he=ge[0],ve=ge[1],be=ge[2],ye=ge[3],xe=o().useCallback((function(e){return(y&&y.length>0?y.map((function(e){var t;return w(w({},e),{},{key:null!==(t=null==e?void 0:e.key)&&void 0!==t?t:e.value})})):s(b).map((function(e){var t=e.props,n=e.key;return w(w({},t),{},{label:t.children,key:n||t.value})}))).filter((function(t){return!1===E||E(e,t)}))}),[b,y,E]),Ce=o().useMemo((function(){return xe(ve)}),[xe,ve]),we=function(){var e=Be((0,r.useState)({id:0,callback:null}),2),t=e[0],n=e[1],o=(0,r.useCallback)((function(e){n((function(t){return{id:t.id+1,callback:e}}))}),[]);return(0,r.useEffect)((function(){var e;null===(e=t.callback)||void 0===e||e.call(t)}),[t]),o}(),Se=function(e){U(!1),ie(0),J(""),we(e)},$e=function(e){me(e),null==O||O(e)},ke=function(e){var t,n=e.value,r=function(e,t){var n=t.measureLocation,r=t.prefix,o=t.targetText,i=t.selectionStart,a=t.split,l=e.slice(0,n);l[l.length-a.length]===a&&(l=l.slice(0,l.length-a.length)),l&&(l="".concat(l).concat(a));var c=function(e,t,n){var r=e[0];if(!r||r===n)return e;for(var o=e,i=t.length,a=0;at.location?{location:r,prefix:n}:t}),{location:-1,prefix:""})}(r,W),i=o.location,a=o.prefix;if(null==M||M(e),-1===[bl.ESC,bl.UP,bl.DOWN,bl.ENTER].indexOf(n))if(-1!==i){var l=r.slice(i+a.length),c=$(l,p),s=!!xe(l).length;c?(t===a||"Shift"===t||he||l!==ve&&s)&&function(e,t,n){U(!0),J(e),ne(t),ie(n),ce(0)}(l,a,i):he&&Se(),N&&c&&N(l,a)}else he&&Se()},onPressEnter:function(e){!he&&I&&I(e)},onFocus:Oe,onBlur:je})),he&&o().createElement("div",{ref:K,className:"".concat(n,"-measure")},pe.slice(0,ye),o().createElement(kD.Provider,{value:{notFoundContent:g,activeIndex:le,setActiveIndex:ce,selectOption:ke,onFocus:function(){Oe()},onBlur:function(){je()}}},o().createElement(jD,{prefixCls:n,transitionName:A,placement:z,direction:_,options:Ce,visible:!0,getPopupContainer:D,dropdownClassName:B},o().createElement("span",null,be))),pe.slice(ye+be.length)))})),AD=(0,r.forwardRef)((function(e,t){var n=e.suffix,i=e.prefixCls,a=void 0===i?"rc-mentions":i,c=e.defaultValue,s=e.value,u=e.allowClear,d=e.onChange,f=e.classNames,p=e.className,m=e.disabled,g=e.onClear,h=ni(e,RD),v=(0,r.useRef)(null),b=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){var e,t;return w(w({},b.current),{},{nativeElement:(null===(e=v.current)||void 0===e?void 0:e.nativeElement)||(null===(t=b.current)||void 0===t?void 0:t.nativeElement)})}));var y=Be(Gn("",{defaultValue:c,value:s}),2),x=y[0],C=y[1],S=function(e){C(e),null==d||d(e)};return o().createElement(MI,{suffix:n,prefixCls:a,value:x,allowClear:u,handleReset:function(){S("")},className:p,classNames:f,disabled:m,ref:v,onClear:g},o().createElement(TD,(0,l.A)({className:null==f?void 0:f.mentions,prefixCls:a,ref:b,onChange:S,disabled:m},h)))}));AD.Option=function(){return null};const zD=AD;function _D(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&null==e?[]:Array.isArray(e)?e:[e]}const DD=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:o,colorText:i,motionDurationSlow:a,lineHeight:l,controlHeight:c,paddingInline:s,paddingBlock:u,fontSize:d,fontSizeIcon:f,colorTextTertiary:p,colorTextQuaternary:m,colorBgElevated:g,paddingXXS:h,paddingLG:v,borderRadius:b,borderRadiusLG:y,boxShadowSecondary:x,itemPaddingVertical:C,calc:w}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),aN(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),GI(e)),eN(e)),QI(e)),{"&-affix-wrapper":Object.assign(Object.assign({},aN(e)),{display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:s,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:v},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:w(d).mul(l).mul(.5).add(u).equal(),transform:"translateY(-50%)",margin:0,color:m,fontSize:f,verticalAlign:-1,cursor:"pointer",transition:`color ${a}`,"&:hover":{color:p},"&:active":{color:i},"&-hidden":{visibility:"hidden"}}}),"&-disabled":{"> textarea":Object.assign({},qI(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:e.calc(c).sub(2),margin:0,padding:`${yt(u)} ${yt(s)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},rN(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},pr(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",padding:h,backgroundColor:g,borderRadius:y,outline:"none",boxShadow:x,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},fr),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${yt(C)} ${yt(o)}`,color:i,borderRadius:b,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${a} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},BD=Vo("Mentions",(e=>{const t=ir(e,Jk(e));return[DD(t)]}),(e=>Object.assign(Object.assign({},eE(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2})));const{Option:HD}=zD;function LD(){return!0}const FD=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,disabled:l,loading:c,filterOption:s,children:u,notFoundContent:d,options:f,status:p,allowClear:m=!1,popupClassName:g,style:h,variant:v}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ovoid 0!==d?d:(null==$?void 0:$("Select"))||r.createElement(Gv,{componentName:"Select"})),[d,$]),R=r.useMemo((()=>c?r.createElement(HD,{value:"ANTD_SEARCHING",disabled:!0},r.createElement(fD,{size:"small"})):u),[c,u]),T=c?[{value:"ANTD_SEARCHING",disabled:!0,label:r.createElement(fD,{size:"small"})}]:f,A=c?LD:s,z=S("mentions",n),_=kN(m),D=rl(z),[B,H,L]=BD(z,D),[F,W]=Yv("mentions",v),V=j&&r.createElement(r.Fragment,null,M),q=a()(null==E?void 0:E.className,o,i,L,D);return B(r.createElement(zD,Object.assign({silent:c,prefixCls:z,notFoundContent:P,className:q,disabled:l,allowClear:_,direction:k,style:Object.assign(Object.assign({},null==E?void 0:E.style),h)},b,{filterOption:A,onFocus:function(){b.onFocus&&b.onFocus.apply(b,arguments),x(!0)},onBlur:function(){b.onBlur&&b.onBlur.apply(b,arguments),x(!1)},dropdownClassName:a()(g,i,H,L,D),ref:w,options:T,suffix:V,classNames:{mentions:a()({[`${z}-disabled`]:l,[`${z}-focused`]:y,[`${z}-rtl`]:"rtl"===k},H),variant:a()({[`${z}-${F}`]:W},Dv(z,N)),affixWrapper:H}}),R))})),WD=FD;WD.Option=HD;const VD=Ng(WD,"mentions");WD._InternalPanelDoNotUseOrYouWillBeFired=VD,WD.getMentions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,o=_D(n);return e.split(r).map((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return o.some((n=>e.slice(0,n.length)===n&&(t=n,!0))),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((e=>!!e&&!!e.value))};const qD=WD;let KD=null,XD=e=>e(),GD=[],YD={};function UD(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=YD,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const QD=o().forwardRef(((e,t)=>{const{messageConfig:n,sync:i}=e,{getPrefixCls:a}=(0,r.useContext)(Ae),l=YD.prefixCls||a("message"),c=(0,r.useContext)(kg),[s,u]=Ul(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.message));return o().useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return i(),s[t].apply(s,arguments)}})),{instance:e,sync:i}})),u})),ZD=o().forwardRef(((e,t)=>{const[n,r]=o().useState(UD),i=()=>{r(UD)};o().useEffect(i,[]);const a=Xc(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=o().createElement(QD,{ref:t,sync:i,messageConfig:n});return o().createElement(Uc,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function JD(){if(!KD){const e=document.createDocumentFragment(),t={fragment:e};return KD=t,void XD((()=>{cc(o().createElement(ZD,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,JD())}))}}),e)}))}KD.instance&&(GD.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":XD((()=>{const t=KD.instance.open(Object.assign(Object.assign({},YD),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":XD((()=>{null==KD||KD.instance.destroy(e.key)}));break;default:XD((()=>{var n;const r=(n=KD.instance)[t].apply(n,Se(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),GD=[])}const eB={open:function(e){const t=Vl((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return GD.push(r),()=>{n?XD((()=>{n()})):r.skipped=!0}}));return JD(),t},destroy:e=>{GD.push({type:"destroy",key:e}),JD()},config:function(e){YD=Object.assign(Object.assign({},YD),e),XD((()=>{var e;null===(e=null==KD?void 0:KD.sync)||void 0===e||e.call(KD)}))},useMessage:Ql,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:o,icon:i,content:l}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{tB[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return GD.push(o),()=>{r?XD((()=>{r()})):o.skipped=!0}}));return JD(),n}(e,n)}}));const nB=tB;const rB=Ig((e=>{const{prefixCls:t,className:n,closeIcon:o,closable:i,type:l,title:c,children:s,footer:u}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe(),sB=[],uB={};function dB(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=uB,l=(null==e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const fB=o().forwardRef(((e,t)=>{const{notificationConfig:n,sync:i}=e,{getPrefixCls:a}=(0,r.useContext)(Ae),l=uB.prefixCls||a("notification"),c=(0,r.useContext)(kg),[s,u]=Sg(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.notification));return o().useEffect(i,[]),o().useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return i(),s[t].apply(s,arguments)}})),{instance:e,sync:i}})),u})),pB=o().forwardRef(((e,t)=>{const[n,r]=o().useState(dB),i=()=>{r(dB)};o().useEffect(i,[]);const a=Xc(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=o().createElement(fB,{ref:t,sync:i,notificationConfig:n});return o().createElement(Uc,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function mB(){if(!lB){const e=document.createDocumentFragment(),t={fragment:e};return lB=t,void cB((()=>{cc(o().createElement(pB,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,mB())}))}}),e)}))}lB.instance&&(sB.forEach((e=>{switch(e.type){case"open":cB((()=>{lB.instance.open(Object.assign(Object.assign({},uB),e.config))}));break;case"destroy":cB((()=>{null==lB||lB.instance.destroy(e.key)}))}})),sB=[])}function gB(e){Xc(),sB.push({type:"open",config:e}),mB()}const hB={open:gB,destroy:e=>{sB.push({type:"destroy",key:e}),mB()},config:function(e){uB=Object.assign(Object.assign({},uB),e),cB((()=>{var e;null===(e=null==lB?void 0:lB.sync)||void 0===e||e.call(lB)}))},useNotification:$g,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:o,type:i,message:l,description:c,btn:s,closable:u=!0,closeIcon:d,className:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{hB[e]=t=>gB(Object.assign(Object.assign({},t),{type:e}))}));const vB=hB,bB=Vo("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:c,fontSize:s,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:s},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:s,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});const yB=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:o,title:i,description:a,cancelText:l,okText:c,okType:s="primary",icon:u=r.createElement(Mi,null),showCancel:d=!0,close:f,onConfirm:p,onCancel:m,onPopupClick:g}=e,{getPrefixCls:h}=r.useContext(Ae),[v]=rs("Popconfirm",Cc.Popconfirm),b=hy(i),y=hy(a);return r.createElement("div",{className:`${t}-inner-content`,onClick:g},r.createElement("div",{className:`${t}-message`},u&&r.createElement("span",{className:`${t}-message-icon`},u),r.createElement("div",{className:`${t}-message-text`},b&&r.createElement("div",{className:`${t}-title`},b),y&&r.createElement("div",{className:`${t}-description`},y))),r.createElement("div",{className:`${t}-buttons`},d&&r.createElement($d,Object.assign({onClick:m,size:"small"},o),l||(null==v?void 0:v.cancelText)),r.createElement(Ed,{buttonProps:Object.assign(Object.assign({size:"small"},Os(s)),n),actionFn:p,close:f,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(null==v?void 0:v.okText))))};const xB=r.forwardRef(((e,t)=>{var n,o;const{prefixCls:i,placement:l="top",trigger:c="click",okType:s="primary",icon:u=r.createElement(Mi,null),children:d,overlayClassName:f,onOpenChange:p,onVisibleChange:m}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{b(e,!0),null==m||m(e),null==p||p(e,t)},x=h("popconfirm",i),C=a()(x,f),[w]=bB(x);return w(r.createElement(ex,Object.assign({},ye(g,["title"]),{trigger:c,placement:l,onOpenChange:(t,n)=>{const{disabled:r=!1}=e;r||y(t,n)},open:v,ref:t,overlayClassName:C,content:r.createElement(yB,Object.assign({okType:s,icon:u},e,{prefixCls:x,close:e=>{y(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;y(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),d))})),CB=xB;CB._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,placement:n,className:o,style:i}=e,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-r)/100*t;return"round"===c&&100!==r&&(p+=s/2)>=t&&(p=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(o+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},NB=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function PB(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}const RB=function(e){var t,n,o,i,c,s=w(w({},SB),e),u=s.id,d=s.prefixCls,f=s.steps,p=s.strokeWidth,m=s.trailWidth,g=s.gapDegree,h=void 0===g?0:g,v=s.gapPosition,y=s.trailColor,x=s.strokeLinecap,C=s.style,S=s.className,$=s.strokeColor,k=s.percent,E=ni(s,NB),O=function(e){var t=Be(r.useState(),2),n=t[0],o=t[1];return r.useEffect((function(){var e;o("rc_progress_".concat((kB?(e=$B,$B+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(u),j="".concat(O,"-gradient"),M=50-p/2,I=2*Math.PI*M,N=h>0?90+h/2:-90,P=I*((360-h)/360),R="object"===b(f)?f:{count:f,gap:2},T=R.count,A=R.gap,z=PB(k),_=PB($),D=_.find((function(e){return e&&"object"===b(e)})),B=D&&"object"===b(D)?"butt":x,H=IB(I,P,0,100,N,h,v,y,B,p),L=(i=(0,r.useRef)([]),c=(0,r.useRef)(null),(0,r.useEffect)((function(){var e=Date.now(),t=!1;i.current.forEach((function(n){if(n){t=!0;var r=n.style;r.transitionDuration=".3s, .3s, .3s, .06s",c.current&&e-c.current<100&&(r.transitionDuration="0s, 0s")}})),t&&(c.current=Date.now())})),i.current);return r.createElement("svg",(0,l.A)({className:a()("".concat(d,"-circle"),S),viewBox:"0 0 ".concat(100," ").concat(100),style:C,id:u,role:"presentation"},E),!T&&r.createElement("circle",{className:"".concat(d,"-circle-trail"),r:M,cx:50,cy:50,stroke:y,strokeLinecap:B,strokeWidth:m||p,style:H}),T?(t=Math.round(T*(z[0]/100)),n=100/T,o=0,new Array(T).fill(null).map((function(e,i){var a=i<=t-1?_[0]:y,l=a&&"object"===b(a)?"url(#".concat(j,")"):void 0,c=IB(I,P,o,n,N,h,v,a,"butt",p,A);return o+=100*(P-c.strokeDashoffset+A)/P,r.createElement("circle",{key:i,className:"".concat(d,"-circle-path"),r:M,cx:50,cy:50,stroke:l,strokeWidth:p,opacity:1,style:c,ref:function(e){L[i]=e}})}))):function(){var e=0;return z.map((function(t,n){var o=_[n]||_[_.length-1],i=IB(I,P,e,t,N,h,v,o,B,p);return e+=t,r.createElement(MB,{key:n,color:o,ptg:t,radius:M,prefixCls:d,gradientId:j,style:i,strokeLinecap:B,strokeWidth:p,gapDegree:h,ref:function(e){L[n]=e},size:100})})).reverse()}())};function TB(e){return!e||e<0?0:e>100?100:e}function AB(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const zB=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=r?r:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:Array.isArray(e)&&(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]},_B=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:i,gapDegree:l,width:c=120,type:s,children:u,success:d,size:f=c,steps:p}=e,[m,g]=zB(f,"circle");let{strokeWidth:h}=e;void 0===h&&(h=Math.max((e=>3/e*100)(m),6));const v={width:m,height:g,fontSize:.15*m+6},b=r.useMemo((()=>l||0===l?l:"dashboard"===s?75:void 0),[l,s]),y=(e=>{let{percent:t,success:n,successPercent:r}=e;const o=TB(AB({success:n,successPercent:r}));return[o,TB(TB(t)-o)]})(e),x=i||"dashboard"===s&&"bottom"||void 0,C="[object Object]"===Object.prototype.toString.call(e.strokeColor),w=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Vr.green,n||null]})({success:d,strokeColor:e.strokeColor}),S=a()(`${t}-inner`,{[`${t}-circle-gradient`]:C}),$=r.createElement(RB,{steps:p,percent:p?y[1]:y,strokeWidth:h,trailWidth:h,strokeColor:p?w[1]:w,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:x}),k=m<=20,E=r.createElement("div",{className:S,style:v},$,!k&&u);return k?r.createElement(qy,{title:u},E):E},DB="--progress-line-stroke-color",BB="--progress-percent",HB=e=>{const t=e?"100%":"-100%";return new zn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},LB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${DB})`]},height:"100%",width:`calc(1 / var(${BB}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${yt(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:HB(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:HB(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},FB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},WB=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},VB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},qB=Vo("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=ir(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[LB(n),FB(n),WB(n),VB(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})));const KB=(e,t)=>{const{from:n=Vr.blue,to:r=Vr.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let t=[];return Object.keys(e).forEach((n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i)})`;return{background:e,[DB]:e}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[DB]:a}},XB=e=>{const{prefixCls:t,direction:n,percent:o,size:i,strokeWidth:l,strokeColor:c,strokeLinecap:s="round",children:u,trailColor:d=null,percentPosition:f,success:p}=e,{align:m,type:g}=f,h=c&&"string"!=typeof c?KB(c,n):{[DB]:c,background:c},v="square"===s||"butt"===s?0:void 0,b=null!=i?i:[-1,l||("small"===i?6:8)],[y,x]=zB(b,"line",{strokeWidth:l}),C={backgroundColor:d||void 0,borderRadius:v},w=Object.assign(Object.assign({width:`${TB(o)}%`,height:x,borderRadius:v},h),{[BB]:TB(o)/100}),S=AB(e),$={width:`${TB(S)}%`,height:x,borderRadius:v,backgroundColor:null==p?void 0:p.strokeColor},k={width:y<0?"100%":y},E=r.createElement("div",{className:`${t}-inner`,style:C},r.createElement("div",{className:a()(`${t}-bg`,`${t}-bg-${g}`),style:w},"inner"===g&&u),void 0!==S&&r.createElement("div",{className:`${t}-success-bg`,style:$})),O="outer"===g&&"start"===m,j="outer"===g&&"end"===m;return"outer"===g&&"center"===m?r.createElement("div",{className:`${t}-layout-bottom`},E,u):r.createElement("div",{className:`${t}-outer`,style:k},O&&u,E,j&&u)},GB=e=>{const{size:t,steps:n,percent:o=0,strokeWidth:i=8,strokeColor:l,trailColor:c=null,prefixCls:s,children:u}=e,d=Math.round(n*(o/100)),f=null!=t?t:["small"===t?2:14,i],[p,m]=zB(f,"step",{steps:n,strokeWidth:i}),g=p/n,h=new Array(n);for(let e=0;e{const{prefixCls:n,className:o,rootClassName:i,steps:l,strokeColor:c,percent:s=0,size:u="default",showInfo:d=!0,type:f="line",status:p,format:m,style:g,percentPosition:h={}}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(x){const e="string"==typeof x?x:Object.values(x)[0];return new Co(e).isLight()}return!1}),[c]),S=r.useMemo((()=>{var t,n;const r=AB(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=s?s:0)||void 0===n?void 0:n.toString(),10)}),[s,e.success,e.successPercent]),$=r.useMemo((()=>!YB.includes(p)&&S>=100?"success":p||"normal"),[p,S]),{getPrefixCls:k,direction:E,progress:O}=r.useContext(Ae),j=k("progress",n),[M,I,N]=qB(j),P="line"===f,R=P&&!l,T=r.useMemo((()=>{if(!d)return null;const t=AB(e);let n;const o=P&&w&&"inner"===y;return"inner"===y||m||"exception"!==$&&"success"!==$?n=(m||(e=>`${e}%`))(TB(s),TB(t)):"exception"===$?n=P?r.createElement(Si,null):r.createElement(Ei,null):"success"===$&&(n=P?r.createElement(xi,null):r.createElement(Bb,null)),r.createElement("span",{className:a()(`${j}-text`,{[`${j}-text-bright`]:o,[`${j}-text-${b}`]:R,[`${j}-text-${y}`]:R}),title:"string"==typeof n?n:void 0},n)}),[d,s,S,$,f,j,m]);let A;"line"===f?A=l?r.createElement(GB,Object.assign({},e,{strokeColor:C,prefixCls:j,steps:"object"==typeof l?l.count:l}),T):r.createElement(XB,Object.assign({},e,{strokeColor:x,prefixCls:j,direction:E,percentPosition:{align:b,type:y}}),T):"circle"!==f&&"dashboard"!==f||(A=r.createElement(_B,Object.assign({},e,{strokeColor:x,prefixCls:j,progressStatus:$}),T));const z=a()(j,`${j}-status-${$}`,{[`${j}-${"dashboard"===f?"circle":f}`]:"line"!==f,[`${j}-inline-circle`]:"circle"===f&&zB(u,"circle")[0]<=20,[`${j}-line`]:R,[`${j}-line-align-${b}`]:R,[`${j}-line-position-${y}`]:R,[`${j}-steps`]:l,[`${j}-show-info`]:d,[`${j}-${u}`]:"string"==typeof u,[`${j}-rtl`]:"rtl"===E},null==O?void 0:O.className,o,i,I,N);return M(r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==O?void 0:O.style),g),className:z,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},ye(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),A))})),QB=UB;function ZB(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=we(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var JB,eH;function tH(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function nH(e,t){return!!(e>>>t&1)}function rH(e){if(!e)throw new Error("Assertion error")}var oH=function(){function e(t,n){re(this,e),x(this,"modeBits",void 0),x(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return ie(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}();x(oH,"NUMERIC",new(JB=oH)(1,[10,12,14])),x(oH,"ALPHANUMERIC",new JB(2,[9,11,13])),x(oH,"BYTE",new JB(4,[8,16,16])),x(oH,"KANJI",new JB(8,[8,10,12])),x(oH,"ECI",new JB(7,[0,0,0]));var iH=ie((function e(t,n){re(this,e),x(this,"ordinal",void 0),x(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n}));x(iH,"LOW",new(eH=iH)(0,1)),x(iH,"MEDIUM",new eH(1,0)),x(iH,"QUARTILE",new eH(2,3)),x(iH,"HIGH",new eH(3,2));var aH=function(){function e(t,n,r){if(re(this,e),x(this,"mode",void 0),x(this,"numChars",void 0),x(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return ie(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var n,r=[],o=ZB(t);try{for(o.s();!(n=o.n()).done;)tH(n.value,8,r)}catch(e){o.e(e)}finally{o.f()}return new e(oH.BYTE,t.length,r)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var n=[],r=0;r=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*t+17;for(var a=[],l=0;l>>9);var o=21522^(t<<10|n);rH(o>>>15==0);for(var i=0;i<=5;i++)this.setFunctionModule(8,i,nH(o,i));this.setFunctionModule(8,7,nH(o,6)),this.setFunctionModule(8,8,nH(o,7)),this.setFunctionModule(7,8,nH(o,8));for(var a=9;a<15;a++)this.setFunctionModule(14-a,8,nH(o,a));for(var l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,nH(o,l));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,nH(o,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;rH(n>>>18==0);for(var r=0;r<18;r++){var o=nH(n,r),i=this.size-11+r%3,a=Math.floor(r/3);this.setFunctionModule(i,a,o),this.setFunctionModule(a,i,o)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i=l)&&g.push(t[e])}))},v=0;v=1;r-=2){6==r&&(r=5);for(var o=0;o>>3],7-(7&n)),n++)}}rH(n==8*t.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t5&&t++:(this.finderPenaltyAddHistory(o,i),r||(t+=this.finderPenaltyCountPatterns(i)*e.PENALTY_N3),r=this.modules[n][a],o=1);t+=this.finderPenaltyTerminateAndCount(r,o,i)*e.PENALTY_N3}for(var l=0;l5&&t++:(this.finderPenaltyAddHistory(s,u),c||(t+=this.finderPenaltyCountPatterns(u)*e.PENALTY_N3),c=this.modules[d][l],s=1);t+=this.finderPenaltyTerminateAndCount(c,s,u)*e.PENALTY_N3}for(var f=0;f0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){var r=t;return e&&(this.finderPenaltyAddHistory(r,n),r=0),r+=this.size,this.finderPenaltyAddHistory(r,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){var n=e;0==t[0]&&(n+=this.size),t.pop(),t.unshift(n)}}],[{key:"encodeText",value:function(t,n){var r=aH.makeSegments(t);return e.encodeSegments(r,n)}},{key:"encodeBinary",value:function(t,n){var r=aH.makeBytes(t);return e.encodeSegments([r],n)}},{key:"encodeSegments",value:function(t,n){var r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,c=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");for(r=i;;r++){var s=8*e.getNumDataCodewords(r,n),u=aH.getTotalBits(t,r);if(u<=s){o=u;break}if(r>=a)throw new RangeError("Data too long")}for(var d=n,f=0,p=[iH.MEDIUM,iH.QUARTILE,iH.HIGH];f>>3]|=e<<7-(7&t)})),new e(r,d,$,l)}},{key:"getNumRawDataModules",value:function(t){if(te.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*t+128)*t+64;if(t>=2){var r=Math.floor(t/7)+2;n-=(25*r-10)*r-55,t>=7&&(n-=36)}return rH(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return rH(n>>>8==0),n}}]),e}();x(lH,"MIN_VERSION",1),x(lH,"MAX_VERSION",40),x(lH,"PENALTY_N1",3),x(lH,"PENALTY_N2",3),x(lH,"PENALTY_N3",40),x(lH,"PENALTY_N4",10),x(lH,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),x(lH,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var cH={L:iH.LOW,M:iH.MEDIUM,Q:iH.QUARTILE,H:iH.HIGH},sH="#FFFFFF",uH="#000000",dH=!1;function fH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push("M".concat(o+t," ").concat(r+t,"h").concat(a-o,"v1H").concat(o+t,"z")),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(o+t,",").concat(r+t," h").concat(a+1-o,"v1H").concat(o+t,"z"))}}))})),n.join("")}function pH(e,t){return e.slice().map((function(e,n){return n=t.y+t.h?e:e.map((function(e,n){return(n=t.x+t.w)&&e}))}))}var mH=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function gH(e){var t=e.value,n=e.level,o=e.minVersion,i=e.includeMargin,a=e.marginSize,l=e.imageSettings,c=e.size,s=(0,r.useMemo)((function(){var e=aH.makeSegments(t);return lH.encodeSegments(e,cH[n],o)}),[t,n,o]),u=(0,r.useMemo)((function(){var e=s.getModules(),t=function(e,t){return null!=t?Math.floor(t):e?4:0}(i,a),n=e.length+2*t,r=function(e,t,n,r){if(null==r)return null;var o=e.length+2*n,i=Math.floor(.1*t),a=o/t,l=(r.width||i)*a,c=(r.height||i)*a,s=null==r.x?e.length/2-l/2:r.x*a,u=null==r.y?e.length/2-c/2:r.y*a,d=null==r.opacity?1:r.opacity,f=null;if(r.excavate){var p=Math.floor(s),m=Math.floor(u);f={x:p,y:m,w:Math.ceil(l+s-p),h:Math.ceil(c+u-m)}}return{x:s,y:u,h:c,w:l,excavation:f,opacity:d,crossOrigin:r.crossOrigin}}(e,c,t,l);return{cells:e,margin:t,numCells:n,calculatedImageSettings:r}}),[s,c,l,i,a]),d=u.cells,f=u.margin,p=u.numCells,m=u.calculatedImageSettings;return{qrcode:s,margin:f,cells:d,numCells:p,calculatedImageSettings:m}}var hH=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],vH=o().forwardRef((function(e,t){var n=e.value,i=e.size,a=void 0===i?128:i,c=e.level,s=void 0===c?"L":c,u=e.bgColor,d=void 0===u?sH:u,f=e.fgColor,p=void 0===f?uH:f,m=e.includeMargin,g=void 0===m?dH:m,h=e.minVersion,v=void 0===h?1:h,b=e.marginSize,y=e.style,x=e.imageSettings,C=ni(e,hH),S=null==x?void 0:x.src,$=(0,r.useRef)(null),k=(0,r.useRef)(null),E=(0,r.useCallback)((function(e){$.current=e,"function"==typeof t?t(e):t&&(t.current=e)}),[t]),O=Be((0,r.useState)(!1),2)[1],j=gH({value:n,level:s,minVersion:v,includeMargin:g,marginSize:b,imageSettings:x,size:a}),M=j.margin,I=j.cells,N=j.numCells,P=j.calculatedImageSettings;(0,r.useEffect)((function(){if(null!=$.current){var e=$.current,t=e.getContext("2d");if(!t)return;var n=I,r=k.current,o=null!=P&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;o&&null!=P.excavation&&(n=pH(I,P.excavation));var i=window.devicePixelRatio||1;e.height=e.width=a*i;var l=a/N*i;t.scale(l,l),t.fillStyle=d,t.fillRect(0,0,N,N),t.fillStyle=p,mH?t.fill(new Path2D(fH(n,M))):I.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+M,n+M,1,1)}))})),P&&(t.globalAlpha=P.opacity),o&&t.drawImage(r,P.x+M,P.y+M,P.w,P.h)}})),(0,r.useEffect)((function(){O(!1)}),[S]);var R=w({height:a,width:a},y),T=null;return null!=S&&(T=o().createElement("img",{src:S,key:S,style:{display:"none"},onLoad:function(){O(!0)},ref:k,crossOrigin:null==P?void 0:P.crossOrigin})),o().createElement(o().Fragment,null,o().createElement("canvas",(0,l.A)({style:R,height:a,width:a,ref:E,role:"img"},C)),T)}));vH.displayName="QRCodeCanvas";var bH=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],yH=o().forwardRef((function(e,t){var n=e.value,r=e.size,i=void 0===r?128:r,a=e.level,c=void 0===a?"L":a,s=e.bgColor,u=void 0===s?sH:s,d=e.fgColor,f=void 0===d?uH:d,p=e.includeMargin,m=void 0===p?dH:p,g=e.minVersion,h=void 0===g?1:g,v=e.title,b=e.marginSize,y=e.imageSettings,x=ni(e,bH),C=gH({value:n,level:c,minVersion:h,includeMargin:m,marginSize:b,imageSettings:y,size:i}),w=C.margin,S=C.cells,$=C.numCells,k=C.calculatedImageSettings,E=S,O=null;null!=y&&null!=k&&(null!=k.excavation&&(E=pH(S,k.excavation)),O=o().createElement("image",{href:y.src,height:k.h,width:k.w,x:k.x+w,y:k.y+w,preserveAspectRatio:"none",opacity:k.opacity,crossOrigin:k.crossOrigin}));var j=fH(E,w);return o().createElement("svg",(0,l.A)({height:i,width:i,viewBox:"0 0 ".concat($," ").concat($),ref:t,role:"img"},x),!!v&&o().createElement("title",null,v),o().createElement("path",{fill:u,d:"M0,0 h".concat($,"v").concat($,"H0z"),shapeRendering:"crispEdges"}),o().createElement("path",{fill:f,d:j,shapeRendering:"crispEdges"}),O)}));yH.displayName="QRCodeSVG";const xH=Vo("QRCode",(e=>(e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${yt(n)} ${r} ${o}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}})(ir(e,{QRCodeTextColor:e.colorText}))),(e=>({QRCodeMaskBackgroundColor:new Co(e.colorBgContainer).setAlpha(.96).toRgbString()}))),CH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var wH=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:CH}))};const SH=r.forwardRef(wH),$H=o().createElement(fD,null);function kH(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:a}=e;const l=o().createElement(o().Fragment,null,o().createElement("p",{className:`${t}-expired`},null==n?void 0:n.expired),r&&o().createElement($d,{type:"link",icon:o().createElement(SH,null),onClick:r},null==n?void 0:n.refresh)),c=o().createElement("p",{className:`${t}-scanned`},null==n?void 0:n.scanned),s={expired:l,loading:$H,scanned:c};return(null!=i?i:e=>s[e.status])({status:a,locale:n})}const EH=e=>{var t,n,i,l;const[,c]=Fo(),{value:s,type:u="canvas",icon:d="",size:f=160,iconSize:p,color:m=c.colorText,errorLevel:g="M",status:h="active",bordered:v=!0,onRefresh:b,style:y,className:x,rootClassName:C,prefixCls:w,bgColor:S="transparent",statusRender:$}=e,k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=g&&uc?"true":"false","aria-posinset":c+1,"aria-setsize":s,tabIndex:n?-1:0},o().createElement("div",{className:"".concat(r,"-first")},v),o().createElement("div",{className:"".concat(r,"-second")},v)));return l&&(b=l(b,e)),b}const RH=o().forwardRef(PH);var TH=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function AH(e,t){var n,i=e.prefixCls,c=void 0===i?"rc-rate":i,s=e.className,u=e.defaultValue,d=e.value,f=e.count,p=void 0===f?5:f,m=e.allowHalf,g=void 0!==m&&m,h=e.allowClear,v=void 0===h||h,b=e.keyboard,y=void 0===b||b,C=e.character,w=void 0===C?"★":C,S=e.characterRender,$=e.disabled,k=e.direction,E=void 0===k?"ltr":k,O=e.tabIndex,j=void 0===O?0:O,M=e.autoFocus,I=e.onHoverChange,N=e.onChange,P=e.onFocus,R=e.onBlur,T=e.onKeyDown,A=e.onMouseLeave,z=ni(e,TH),_=(n=r.useRef({}),[function(e){return n.current[e]},function(e){return function(t){n.current[e]=t}}]),D=Be(_,2),B=D[0],H=D[1],L=o().useRef(null),F=function(){var e;$||null===(e=L.current)||void 0===e||e.focus()};o().useImperativeHandle(t,(function(){return{focus:F,blur:function(){var e;$||null===(e=L.current)||void 0===e||e.blur()}}}));var W=Be(Gn(u||0,{value:d}),2),V=W[0],q=W[1],K=Be(Gn(null),2),X=K[0],G=K[1],Y=function(e,t){var n,r,o,i,a="rtl"===E,l=e+1;if(g){var c=B(e),s=(r=function(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=i.clientLeft||o.clientLeft||0,top:n-=i.clientTop||o.clientTop||0}}(n=c),i=(o=n.ownerDocument).defaultView||o.parentWindow,r.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!=typeof t){var r=e.document;"number"!=typeof(t=r.documentElement[n])&&(t=r.body[n])}return t}(i),r.left),u=c.clientWidth;(a&&t-s>u/2||!a&&t-s0&&!n||t===bl.RIGHT&&V>0&&n?(U(V-r),e.preventDefault()):t===bl.LEFT&&V{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${yt(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},DH=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),BH=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),_H(e)),DH(e))}},HH=Vo("Rate",(e=>{const t=ir(e,{});return[BH(t)]}),(e=>({starColor:e.yellow6,starSize:.5*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent})));const LH=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:l,tooltips:c,character:s=r.createElement(NH,null),disabled:u}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{index:n}=t;return c?r.createElement(qy,{title:c[n]},e):e},disabled:C},d,{className:a()(o,i,v,b,null==m?void 0:m.className),style:y,prefixCls:g,direction:p})))})),FH=LH,WH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};var VH=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:WH}))};const qH=r.forwardRef(VH),KH=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:l,marginXS:c,lineHeight:s}=e;return{[t]:{padding:`${yt(e.calc(l).mul(2).equal())} ${yt(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:s,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${yt(l)} ${yt(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},XH=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},GH=e=>(e=>[KH(e),XH(e)])(e),YH=Vo("Result",(e=>{const t=ir(e,{resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning,imageWidth:250,imageHeight:295});return[GH(t)]}),(e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:3*e.fontSizeHeading3,extraMargin:`${e.paddingLG}px 0 0 0`}))),UH={success:xi,error:Si,info:Mi,warning:qH},QH={404:()=>r.createElement("svg",{width:"252",height:"294"},r.createElement("title",null,"No Found"),r.createElement("defs",null,r.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(0 .012)"},r.createElement("mask",{fill:"#fff"}),r.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),r.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),r.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),r.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),r.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),r.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),r.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),r.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),r.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),r.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),r.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),r.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),r.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),r.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),r.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),r.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),r.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),r.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),r.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),r.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),r.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),r.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),r.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),r.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),r.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),r.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),r.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),r.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),r.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),r.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),r.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),r.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),r.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),r.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),r.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),r.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),r.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),r.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),r.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),500:()=>r.createElement("svg",{width:"254",height:"294"},r.createElement("title",null,"Server Error"),r.createElement("defs",null,r.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),r.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(0 .067)"},r.createElement("mask",{fill:"#fff"}),r.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),r.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),r.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),r.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),r.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),r.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),r.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),r.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),r.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),r.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),r.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),r.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),r.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),r.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),r.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),r.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),r.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),r.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),r.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),r.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),r.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),r.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),r.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),r.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),r.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),r.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),r.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),r.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),r.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),r.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),r.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),r.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),r.createElement("mask",{fill:"#fff"}),r.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),r.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),r.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),r.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),r.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),r.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),r.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),r.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),r.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),r.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),r.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),403:()=>r.createElement("svg",{width:"251",height:"294"},r.createElement("title",null,"Unauthorized"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),r.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),r.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),r.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),r.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),r.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),r.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),r.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),r.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),r.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),r.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),r.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),r.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),r.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),r.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),r.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),r.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),r.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),r.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),r.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),r.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),r.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),r.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),r.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),r.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),r.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),r.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),r.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),r.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),r.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),r.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),r.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),r.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),r.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),r.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),r.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))},ZH=Object.keys(QH),JH=e=>{let{prefixCls:t,icon:n,status:o}=e;const i=a()(`${t}-icon`);if(ZH.includes(`${o}`)){const e=QH[o];return r.createElement("div",{className:`${i} ${t}-image`},r.createElement(e,null))}const l=r.createElement(UH[o]);return null===n||!1===n?null:r.createElement("div",{className:i},n||l)},eL=e=>{let{prefixCls:t,extra:n}=e;return n?r.createElement("div",{className:`${t}-extra`},n):null},tL=e=>{let{prefixCls:t,className:n,rootClassName:o,subTitle:i,title:l,style:c,children:s,status:u="info",icon:d,extra:f}=e;const{getPrefixCls:p,direction:m,result:g}=r.useContext(Ae),h=p("result",t),[v,b,y]=YH(h),x=a()(h,`${h}-${u}`,n,null==g?void 0:g.className,o,{[`${h}-rtl`]:"rtl"===m},b,y),C=Object.assign(Object.assign({},null==g?void 0:g.style),c);return v(r.createElement("div",{className:x,style:C},r.createElement(JH,{prefixCls:h,status:u,icon:d}),r.createElement("div",{className:`${h}-title`},l),i&&r.createElement("div",{className:`${h}-subtitle`},i),r.createElement(eL,{prefixCls:h,extra:f}),s&&r.createElement("div",{className:`${h}-content`},s)))};tL.PRESENTED_IMAGE_403=QH[403],tL.PRESENTED_IMAGE_404=QH[404],tL.PRESENTED_IMAGE_500=QH[500];const nL=tL,rL=tz,oL=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:i,groupSeparator:a="",prefixCls:l}=e;let c;if("function"==typeof n)c=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${i}${s}`),c=[r.createElement("span",{key:"int",className:`${l}-content-value-int`},e,t),s&&r.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},s)]}else c=e}return r.createElement("span",{className:`${l}-content-value`},c)},iL=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:c}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:l,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},aL=Vo("Statistic",(e=>{const t=ir(e,{});return[iL(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));const lL=e=>{const{prefixCls:t,className:n,rootClassName:o,style:i,valueStyle:l,value:c=0,title:s,valueRender:u,prefix:d,suffix:f,loading:p=!1,formatter:m,precision:g,decimalSeparator:h=".",groupSeparator:v=",",onMouseEnter:b,onMouseLeave:y}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{value:t,format:n="HH:mm:ss",onChange:o,onFinish:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o((()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(c.current=setInterval((()=>{l(),null==o||o(e-Date.now()),e{c.current&&(clearInterval(c.current),c.current=null)})),[t]),r.createElement(lL,Object.assign({},a,{value:t,valueRender:e=>Na(e,{title:void 0}),formatter:(e,t)=>function(e,t){const{format:n=""}=t,r=new Date(e).getTime(),o=Date.now();return function(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((e=>e.slice(1,-1))),i=t.replace(r,"[]"),a=cL.reduce(((e,t)=>{let[r,o]=t;if(e.includes(r)){const t=Math.floor(n/o);return n-=t*o,e.replace(new RegExp(`${r}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),i);let l=0;return a.replace(r,(()=>{const e=o[l];return l+=1,e}))}(Math.max(r-o,0),n)}(e,Object.assign(Object.assign({},t),{format:n}))}))};lL.Countdown=r.memo(uL);const dL=lL;var fL=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function pL(e){return"string"==typeof e}const mL=function(e){var t,n=e.className,o=e.prefixCls,i=e.style,c=e.active,s=e.status,u=e.iconPrefix,d=e.icon,f=(e.wrapperStyle,e.stepNumber),p=e.disabled,m=e.description,g=e.title,h=e.subTitle,v=e.progressDot,b=e.stepIcon,y=e.tailContent,C=e.icons,S=e.stepIndex,$=e.onStepClick,k=e.onClick,E=e.render,O=ni(e,fL),j={};$&&!p&&(j.role="button",j.tabIndex=0,j.onClick=function(e){null==k||k(e),$(S)},j.onKeyDown=function(e){var t=e.which;t!==bl.ENTER&&t!==bl.SPACE||$(S)});var M,I,N,P,R=s||"wait",T=a()("".concat(o,"-item"),"".concat(o,"-item-").concat(R),n,(x(t={},"".concat(o,"-item-custom"),d),x(t,"".concat(o,"-item-active"),c),x(t,"".concat(o,"-item-disabled"),!0===p),t)),A=w({},i),z=r.createElement("div",(0,l.A)({},O,{className:T,style:A}),r.createElement("div",(0,l.A)({onClick:k},j,{className:"".concat(o,"-item-container")}),r.createElement("div",{className:"".concat(o,"-item-tail")},y),r.createElement("div",{className:"".concat(o,"-item-icon")},(N=a()("".concat(o,"-icon"),"".concat(u,"icon"),(x(M={},"".concat(u,"icon-").concat(d),d&&pL(d)),x(M,"".concat(u,"icon-check"),!d&&"finish"===s&&(C&&!C.finish||!C)),x(M,"".concat(u,"icon-cross"),!d&&"error"===s&&(C&&!C.error||!C)),M)),P=r.createElement("span",{className:"".concat(o,"-icon-dot")}),I=v?"function"==typeof v?r.createElement("span",{className:"".concat(o,"-icon")},v(P,{index:f-1,status:s,title:g,description:m})):r.createElement("span",{className:"".concat(o,"-icon")},P):d&&!pL(d)?r.createElement("span",{className:"".concat(o,"-icon")},d):C&&C.finish&&"finish"===s?r.createElement("span",{className:"".concat(o,"-icon")},C.finish):C&&C.error&&"error"===s?r.createElement("span",{className:"".concat(o,"-icon")},C.error):d||"finish"===s||"error"===s?r.createElement("span",{className:N}):r.createElement("span",{className:"".concat(o,"-icon")},f),b&&(I=b({index:f-1,status:s,title:g,description:m,node:I})),I)),r.createElement("div",{className:"".concat(o,"-item-content")},r.createElement("div",{className:"".concat(o,"-item-title")},g,h&&r.createElement("div",{title:"string"==typeof h?h:void 0,className:"".concat(o,"-item-subtitle")},h)),m&&r.createElement("div",{className:"".concat(o,"-item-description")},m))));return E&&(z=E(z)||null),z};var gL=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function hL(e){var t,n=e.prefixCls,r=void 0===n?"rc-steps":n,i=e.style,c=void 0===i?{}:i,s=e.className,u=(e.children,e.direction),d=void 0===u?"horizontal":u,f=e.type,p=void 0===f?"default":f,m=e.labelPlacement,g=void 0===m?"horizontal":m,h=e.iconPrefix,v=void 0===h?"rc":h,b=e.status,y=void 0===b?"process":b,C=e.size,S=e.current,$=void 0===S?0:S,k=e.progressDot,E=void 0!==k&&k,O=e.stepIcon,j=e.initial,M=void 0===j?0:j,I=e.icons,N=e.onChange,P=e.itemRender,R=e.items,T=void 0===R?[]:R,A=ni(e,gL),z="navigation"===p,_="inline"===p,D=_||E,B=_?"horizontal":d,H=_?void 0:C,L=D?"vertical":g,F=a()(r,"".concat(r,"-").concat(B),s,(x(t={},"".concat(r,"-").concat(H),H),x(t,"".concat(r,"-label-").concat(L),"horizontal"===B),x(t,"".concat(r,"-dot"),!!D),x(t,"".concat(r,"-navigation"),z),x(t,"".concat(r,"-inline"),_),t)),W=function(e){N&&$!==e&&N(e)};return o().createElement("div",(0,l.A)({className:F,style:c},A),T.filter((function(e){return e})).map((function(e,t){var n=w({},e),i=M+t;return"error"===y&&t===$-1&&(n.className="".concat(r,"-next-error")),n.status||(n.status=i===$?y:i<$?"finish":"wait"),_&&(n.icon=void 0,n.subTitle=void 0),!n.render&&P&&(n.render=function(e){return P(n,e)}),o().createElement(mL,(0,l.A)({},n,{active:i===$,stepNumber:i+1,stepIndex:i,key:i,prefixCls:r,iconPrefix:v,wrapperStyle:c,progressDot:D,stepIcon:O,icons:I,onStepClick:N&&W}))})))}hL.Step=mL;const vL=hL,bL=e=>{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:yt(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},yL=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},xL=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${yt(i)} ${yt(e.paddingXXS)} 0`,margin:`0 ${yt(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${yt(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${yt(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${yt(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${yt(e.calc(n).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},CL=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${yt(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(o).div(2).add(e.controlHeightLG).equal()}}}}}},wL=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},fr),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${yt(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${yt(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${yt(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${yt(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},SL=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:o,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:c,paddingXXS:s}=e,u=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),d=e.calc(o).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:s,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:s,[`> ${n}-item-container > ${n}-item-tail`]:{top:a,insetInlineStart:e.calc(r).div(2).sub(c).add(s).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:s,paddingInlineStart:s}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(o).div(2).sub(c).add(s).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(s).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${yt(u)} !important`,height:`${yt(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(o).div(2).add(s).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${yt(d)} !important`,height:`${yt(d)} !important`}}}}},$L=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:o,dotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${yt(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${yt(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:yt(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(o).div(2).equal(),width:o,height:o,lineHeight:yt(o),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(o).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${yt(e.calc(i).add(e.paddingXS).equal())} 0 ${yt(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},kL=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},EL=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:o,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${yt(e.marginXS)}`,fontSize:r,lineHeight:yt(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:yt(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:o},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:yt(n),transform:"none"}}}}},OL=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:yt(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${yt(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${yt(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${yt(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${yt(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:yt(n)}}}}},jL=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},ML=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,o=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},gr(e))}},[`${o}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:yt(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${yt(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:yt(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},jL("wait",e)),jL("process",e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),jL("finish",e)),jL("error",e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},IL=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},NL=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),ML(e)),IL(e)),bL(e)),EL(e)),OL(e)),yL(e)),CL(e)),$L(e)),wL(e)),kL(e)),SL(e)),xL(e))}},PL=Vo("Steps",(e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:o,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:c,colorBorderSecondary:s,colorSplit:u}=e,d=ir(e,{processIconColor:r,processTitleColor:o,processDescriptionColor:o,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:u,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:u,waitDotColor:t,finishIconColor:i,finishTitleColor:o,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:u,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:s});return[NL(d)]}),(e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive})));const RL=e=>{const{percent:t,size:n,className:o,rootClassName:i,direction:l,items:c,responsive:u=!0,current:d=0,children:f,style:p}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ou&&g?"vertical":l),[g,l]),x=ms(n),C=h("steps",e.prefixCls),[w,S,$]=PL(C),k="inline"===e.type,E=h("",e.iconPrefix),O=function(e,t){if(e)return e;const n=s(t).map((e=>{if(r.isValidElement(e)){const{props:t}=e;return Object.assign({},t)}return null}));return function(e){return e.filter((e=>e))}(n)}(c,f),j=k?void 0:t,M=Object.assign(Object.assign({},null==b?void 0:b.style),p),I=a()(null==b?void 0:b.className,{[`${C}-rtl`]:"rtl"===v,[`${C}-with-progress`]:void 0!==j},o,i,S,$),N={finish:r.createElement(Bb,{className:`${C}-finish-icon`}),error:r.createElement(Ei,{className:`${C}-error-icon`})};return w(r.createElement(vL,Object.assign({icons:N},m,{style:M,current:d,size:x,items:O,itemRender:k?(e,t)=>e.description?r.createElement(qy,{title:e.description},t):t:void 0,stepIcon:e=>{let{node:t,status:n}=e;if("process"===n&&void 0!==j){const e="small"===x?32:40;return r.createElement("div",{className:`${C}-progress-icon`},r.createElement(QB,{type:"circle",percent:j,size:e,strokeWidth:4,format:()=>null}),t)}return t},direction:y,prefixCls:C,iconPrefix:E,className:I})))};RL.Step=vL.Step;const TL=RL;var AL=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],zL=r.forwardRef((function(e,t){var n,o=e.prefixCls,i=void 0===o?"rc-switch":o,c=e.className,s=e.checked,u=e.defaultChecked,d=e.disabled,f=e.loadingIcon,p=e.checkedChildren,m=e.unCheckedChildren,g=e.onClick,h=e.onChange,v=e.onKeyDown,b=ni(e,AL),y=Be(Gn(!1,{value:s,defaultValue:u}),2),C=y[0],w=y[1];function S(e,t){var n=C;return d||(w(n=e),null==h||h(n,t)),n}var $=a()(i,c,(x(n={},"".concat(i,"-checked"),C),x(n,"".concat(i,"-disabled"),d),n));return r.createElement("button",(0,l.A)({},b,{type:"button",role:"switch","aria-checked":C,disabled:d,className:$,ref:t,onKeyDown:function(e){e.which===bl.LEFT?S(!1,e):e.which===bl.RIGHT&&S(!0,e),null==v||v(e)},onClick:function(e){var t=S(!C,e);null==g||g(t,e)}}),f,r.createElement("span",{className:"".concat(i,"-inner")},r.createElement("span",{className:"".concat(i,"-inner-checked")},p),r.createElement("span",{className:"".concat(i,"-inner-unchecked")},m)))}));zL.displayName="Switch";const _L=zL,DL=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=yt(c(l).add(c(r).mul(2)).equal()),d=yt(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:yt(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${yt(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},BL=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},HL=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${yt(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},LL=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=yt(l(a).add(l(r).mul(2)).equal()),u=yt(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},FL=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},pr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:yt(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),hr(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},WL=Vo("Switch",(e=>{const t=ir(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[FL(t),LL(t),HL(t),BL(t),DL(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Co("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}));const VL=r.forwardRef(((e,t)=>{const{prefixCls:n,size:o,disabled:i,loading:l,className:c,rootClassName:s,style:u,checked:d,value:f,defaultChecked:p,defaultValue:m,onChange:g}=e,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=i),n.onHover]}))}(O,ee),ne=Be(te,2),re=ne[0],oe=ne[1],ie=qn((function(e){var t;C&&oe(O,O+ee-1),null==H||null===(t=H.onMouseEnter)||void 0===t||t.call(H,e)})),ae=qn((function(e){var t;C&&oe(-1,-1),null==H||null===(t=H.onMouseLeave)||void 0===t||t.call(H,e)}));if(0===J||0===ee)return null;var le=null!==(u=H.title)&&void 0!==u?u:function(e){var t,n=e.ellipsis,o=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===o)&&("string"==typeof i||"number"==typeof i?t=i.toString():r.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:M,ellipsis:m,children:G}),ce=a()(F,v,(x(x(x(x(x(x(x(x(x(x(d={},"".concat(F,"-fix-left"),Q&&V),"".concat(F,"-fix-left-first"),T&&V),"".concat(F,"-fix-left-last"),A&&V),"".concat(F,"-fix-left-all"),A&&q&&V),"".concat(F,"-fix-right"),Z&&V),"".concat(F,"-fix-right-first"),z&&V),"".concat(F,"-fix-right-last"),_&&V),"".concat(F,"-ellipsis"),m),"".concat(F,"-with-append"),D),"".concat(F,"-fix-sticky"),(Q||Z)&&L&&V),x(d,"".concat(F,"-row-hover"),!Y&&re)),H.className,null==Y?void 0:Y.className),se={};y&&(se.textAlign=y);var ue=w(w(w(w({},U),H.style),se),null==Y?void 0:Y.style),de=G;return"object"!==b(de)||Array.isArray(de)||r.isValidElement(de)||(de=null),m&&(A||z)&&(de=r.createElement("span",{className:"".concat(F,"-content")},de)),r.createElement(f,(0,l.A)({},Y,H,{className:ce,style:ue,title:le,scope:g,onMouseEnter:K?ie:void 0,onMouseLeave:K?ae:void 0,colSpan:1!==J?J:null,rowSpan:1!==ee?ee:null}),D,de)}const cF=r.memo(lF);function sF(e,t,n,r,o){var i,a,l=n[e]||{},c=n[t]||{};"left"===l.fixed?i=r.left["rtl"===o?t:e]:"right"===c.fixed&&(a=r.right["rtl"===o?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every((function(e){return"left"===e.fixed}));return"rtl"===o?void 0!==i?f=!(m&&"left"===m.fixed)&&g:void 0!==a&&(d=!(p&&"right"===p.fixed)&&g):void 0!==i?s=!(p&&"left"===p.fixed)&&g:void 0!==a&&(u=!(m&&"right"===m.fixed)&&g),{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}const uF=r.createContext({});var dF=["children"];function fF(e){return e.children}fF.Row=function(e){var t=e.children,n=ni(e,dF);return r.createElement("tr",n,t)},fF.Cell=function(e){var t=e.className,n=e.index,o=e.children,i=e.colSpan,a=void 0===i?1:i,c=e.rowSpan,s=e.align,u=UL(rF,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,p=r.useContext(uF),m=p.scrollColumnIndex,g=p.stickyOffsets,h=n+a-1+1===m?a+1:a,v=sF(n,n+h-1,p.flattenColumns,g,f);return r.createElement(cF,(0,l.A)({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:s,colSpan:h,rowSpan:c,render:function(){return o}},v))};const pF=fF,mF=tF((function(e){var t=e.children,n=e.stickyOffsets,o=e.flattenColumns,i=UL(rF,"prefixCls"),a=o.length-1,l=o[a],c=r.useMemo((function(){return{stickyOffsets:n,flattenColumns:o,scrollColumnIndex:null!=l&&l.scrollbar?a:null}}),[l,o,a,n]);return r.createElement(uF.Provider,{value:c},r.createElement("tfoot",{className:"".concat(i,"-summary")},t))}));var gF=pF,hF=function(e){if(Le()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function vF(e,t){return Array.isArray(e)||void 0===t?hF(e):function(e,t){if(!hF(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}function bF(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s1?n-1:0),o=1;o=1?E:""),style:w(w({},n),null==x?void 0:x.style)}),v.map((function(e,t){var n=e.render,a=e.dataIndex,s=e.className,u=wF(g,e,t,d,i),f=u.key,v=u.fixedInfo,b=u.appendCellNode,y=u.additionalCellProps;return r.createElement(cF,(0,l.A)({className:s,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?m:p,prefixCls:h,key:f,record:o,index:i,renderIndex:c,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:b,additionalProps:y}))})));if(S&&($.current||C)){var j=y(o,i,d+1,C);k=r.createElement(CF,{expanded:C,className:a()("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(d+1),E),prefixCls:h,component:f,cellComponent:p,colSpan:v.length,isEmpty:!1},j)}return r.createElement(r.Fragment,null,O,k)}));function $F(e){var t=e.columnKey,n=e.onColumnResize,o=r.useRef();return r.useEffect((function(){o.current&&n(t,o.current.offsetWidth)}),[]),r.createElement(be,{data:t},r.createElement("td",{ref:o,style:{padding:0,border:0,height:0}},r.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function kF(e){var t=e.prefixCls,n=e.columnsKey,o=e.onColumnResize;return r.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},r.createElement(be.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;o(t,n.offsetWidth)}))}},n.map((function(e){return r.createElement($F,{key:e,columnKey:e,onColumnResize:o})}))))}const EF=tF((function(e){var t,n=e.data,o=e.measureColumnWidth,i=UL(rF,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,f=i.childrenColumnName,p=i.emptyNode,m=yF(n,f,d,u),g=r.useRef({renderWithProps:!1}),h=l(["body","wrapper"],"tbody"),v=l(["body","row"],"tr"),b=l(["body","cell"],"td"),y=l(["body","cell"],"th");t=n.length?m.map((function(e,t){var n=e.record,o=e.indent,i=e.index,a=u(n,t);return r.createElement(SF,{key:a,rowKey:a,record:n,index:t,renderIndex:i,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:o})})):r.createElement(CF,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:v,cellComponent:b,colSpan:s.length,isEmpty:!0},p);var x=iF(s);return r.createElement(oF.Provider,{value:g.current},r.createElement(h,{className:"".concat(a,"-tbody")},o&&r.createElement(kF,{prefixCls:a,columnsKey:x,onColumnResize:c}),t))}));var OF=["expandable"],jF="RC_TABLE_INTERNAL_COL_DEFINE",MF=["columnType"];const IF=function(e){for(var t=e.colWidths,n=e.columns,o=e.columCount,i=UL(rF,["tableLayout"]).tableLayout,a=[],c=!1,s=(o||n.length)-1;s>=0;s-=1){var u=t[s],d=n&&n[s],f=void 0,p=void 0;if(d&&(f=d[jF],"auto"===i&&(p=d.minWidth)),u||p||f||c){var m=f||{},g=(m.columnType,ni(m,MF));a.unshift(r.createElement("col",(0,l.A)({key:s,style:{width:u,minWidth:p}},g))),c=!0}}return r.createElement("colgroup",null,a)};var NF=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],PF=r.forwardRef((function(e,t){var n=e.className,o=e.noData,i=e.columns,l=e.flattenColumns,c=e.colWidths,s=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,p=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,h=e.onScroll,v=e.maxContentScroll,b=e.children,y=ni(e,NF),C=UL(rF,["prefixCls","scrollbarSize","isSticky","getComponent"]),S=C.prefixCls,$=C.scrollbarSize,k=C.isSticky,E=(0,C.getComponent)(["header","table"],"table"),O=k&&!f?0:$,j=r.useRef(null),I=r.useCallback((function(e){M(t,e),M(j,e)}),[]);r.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(h({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=j.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=j.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var N=r.useMemo((function(){return l.every((function(e){return e.width}))}),[l]),P=l[l.length-1],R={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(S,"-cell-scrollbar")}}},T=(0,r.useMemo)((function(){return O?[].concat(Se(i),[R]):i}),[O,i]),A=(0,r.useMemo)((function(){return O?[].concat(Se(l),[R]):l}),[O,l]),z=(0,r.useMemo)((function(){var e=u.right,t=u.left;return w(w({},u),{},{left:"rtl"===d?[].concat(Se(t.map((function(e){return e+O}))),[0]):t,right:"rtl"===d?e:[].concat(Se(e.map((function(e){return e+O}))),[0]),isSticky:k})}),[O,u,k]),_=function(e,t){return(0,r.useMemo)((function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:c,prefixCls:f,key:m[t]},s,{additionalProps:n,rowType:"header"}))})))},AF=tF((function(e){var t=e.stickyOffsets,n=e.columns,o=e.flattenColumns,i=e.onHeaderRow,a=UL(rF,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=r.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var _F=["children"],DF=["fixed"];function BF(e){return s(e).filter((function(e){return r.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=w({key:t},ni(n,_F));return r&&(o.children=BF(r)),o}))}function HF(e){return e.filter((function(e){return e&&"object"===b(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?w(w({},e),{},{children:HF(t)}):e}))}function LF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===b(e)})).reduce((function(e,n,r){var o=n.fixed,i=!0===o?"left":o,a="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat(Se(e),Se(LF(l,a).map((function(e){return w({fixed:i},e)})))):[].concat(Se(e),[w(w({key:a},n),{},{fixed:i})])}),[])}const FF=function(e,t){var n=e.prefixCls,o=e.columns,i=e.children,a=e.expandable,l=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,m=e.direction,g=e.expandRowByClick,h=e.columnWidth,v=e.fixed,b=e.scrollWidth,y=e.clientWidth,C=r.useMemo((function(){return HF((o||BF(i)||[]).slice())}),[o,i]),S=r.useMemo((function(){if(a){var e=C.slice();if(!e.includes(XL)){var t=p||0;t>=0&&e.splice(t,0,XL)}var o=e.indexOf(XL);e=e.filter((function(e,t){return e!==XL||t===o}));var i,m=C[o];i="left"!==v&&!v||p?"right"!==v&&!v||p!==C.length?m?m.fixed:null:"right":"left";var b=x(x(x(x(x(x({},jF,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",c),"fixed",i),"className","".concat(n,"-row-expand-icon-cell")),"width",h),"render",(function(e,t,o){var i=s(t,o),a=l.has(i),c=!f||f(t),p=d({prefixCls:n,expanded:a,expandable:c,record:t,onExpand:u});return g?r.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p}));return e.map((function(e){return e===XL?b:e}))}return C.filter((function(e){return e!==XL}))}),[a,C,s,l,d,m]),$=r.useMemo((function(){var e=S;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,S,m]),k=r.useMemo((function(){return"rtl"===m?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),w({fixed:n},ni(e,DF))}))}(LF($)):LF($)}),[$,m,b]),E=r.useMemo((function(){for(var e=-1,t=k.length-1;t>=0;t-=1){var n=k[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=k[r].fixed;if("left"!==o&&!0!==o)return!0}var i=k.findIndex((function(e){return"right"===e.fixed}));if(i>=0)for(var a=i;a0){var r=0,o=0;e.forEach((function(e){var n=zF(t,e.width);n?r+=n:o+=1}));var i=Math.max(t,n),a=Math.max(i-r,o),l=o,c=a/o,s=0,u=e.map((function(e){var n=w({},e),r=zF(t,n.width);if(r)n.width=r;else{var o=Math.floor(c);n.width=1===l?a:o,a-=o,l-=1}return s+=n.width,n}));if(s=f&&(r=f-p),l({scrollLeft:r/f*(d+2)}),b.current.x=e.pageX}else C&&S(!1)},O=function(){$.current=Ie((function(){if(i.current){var e=yz(i.current).top,t=e+i.current.offsetHeight,n=s===window?document.documentElement.scrollTop+window.innerHeight:yz(s).top+s.clientHeight;t-Ad()<=n||e>=n-c?v((function(e){return w(w({},e),{},{isHiddenScrollBar:!0})})):v((function(e){return w(w({},e),{},{isHiddenScrollBar:!1})}))}}))},j=function(e){v((function(t){return w(w({},t),{},{scrollLeft:e/d*f||0})}))};return r.useImperativeHandle(t,(function(){return{setScrollLeft:j,checkScrollBarVisible:O}})),r.useEffect((function(){var e=xz(document.body,"mouseup",k,!1),t=xz(document.body,"mousemove",E,!1);return O(),function(){e.remove(),t.remove()}}),[p,C]),r.useEffect((function(){var e=xz(s,"scroll",O,!1),t=xz(window,"resize",O,!1);return function(){e.remove(),t.remove()}}),[s]),r.useEffect((function(){h.isHiddenScrollBar||v((function(e){var t=i.current;return t?w(w({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[h.isHiddenScrollBar]),d<=f||!p||h.isHiddenScrollBar?null:r.createElement("div",{style:{height:Ad(),width:f,bottom:c},className:"".concat(u,"-sticky-scroll")},r.createElement("div",{onMouseDown:function(e){e.persist(),b.current.delta=e.pageX-h.scrollLeft,b.current.x=0,S(!0),e.preventDefault()},ref:m,className:a()("".concat(u,"-sticky-scroll-bar"),x({},"".concat(u,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(h.scrollLeft,"px, 0, 0)")}}))};const GF=r.forwardRef(XF);var YF="rc-table",UF=[],QF={};function ZF(){return"No Data"}function JF(e,t){var n=w({rowKey:"key",prefixCls:YF,emptyText:ZF},e),o=n.prefixCls,i=n.className,c=n.rowClassName,s=n.style,u=n.data,d=n.rowKey,f=n.scroll,p=n.tableLayout,m=n.direction,g=n.title,h=n.footer,v=n.summary,y=n.caption,C=n.id,S=n.showHeader,$=n.components,k=n.emptyText,O=n.onRow,M=n.onHeaderRow,I=n.onScroll,N=n.internalHooks,P=n.transformColumns,R=n.internalRefs,T=n.tailor,A=n.getContainerWidth,z=n.sticky,_=n.rowHoverable,D=void 0===_||_,B=u||UF,H=!!B.length,L=N===GL,F=r.useCallback((function(e,t){return Un($,e)||t}),[$]),W=r.useMemo((function(){return"function"==typeof d?d:function(e){return e&&e[d]}}),[d]),V=F(["body"]),q=function(){var e=Be(r.useState(-1),2),t=e[0],n=e[1],o=Be(r.useState(-1),2),i=o[0],a=o[1];return[t,i,r.useCallback((function(e,t){n(e),a(t)}),[])]}(),K=Be(q,3),X=K[0],G=K[1],Y=K[2],U=Be(function(e,t,n){var o=function(e){var t,n=e.expandable,r=ni(e,OF);return!1===(t="expandable"in e?w(w({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=o.expandIcon,a=o.expandedRowKeys,l=o.defaultExpandedRowKeys,c=o.defaultExpandAllRows,s=o.expandedRowRender,u=o.onExpand,d=o.onExpandedRowsChange,f=i||WF,p=o.childrenColumnName||"children",m=r.useMemo((function(){return s?"row":!!(e.expandable&&e.internalHooks===GL&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===b(e)&&e[p]})))&&"nest"}),[!!s,t]),g=r.useState((function(){return l||(c?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(t,n,p):[])})),h=Be(g,2),v=h[0],y=h[1],x=r.useMemo((function(){return new Set(a||v||[])}),[a,v]),C=r.useCallback((function(e){var r,o=n(e,t.indexOf(e)),i=x.has(o);i?(x.delete(o),r=Se(x)):r=[].concat(Se(x),[o]),y(r),u&&u(!i,e),d&&d(r)}),[n,x,t,u,d]);return[o,m,x,f,p,C]}(n,B,W),6),Q=U[0],Z=U[1],J=U[2],ee=U[3],te=U[4],ne=U[5],re=null==f?void 0:f.x,oe=Be(r.useState(0),2),ie=oe[0],ae=oe[1],le=Be(FF(w(w(w({},n),Q),{},{expandable:!!Q.expandedRowRender,columnTitle:Q.columnTitle,expandedKeys:J,getRowKey:W,onTriggerExpand:ne,expandIcon:ee,expandIconColumnIndex:Q.expandIconColumnIndex,direction:m,scrollWidth:L&&T&&"number"==typeof re?re:null,clientWidth:ie}),L?P:null),4),ce=le[0],se=le[1],ue=le[2],de=le[3],fe=null!=ue?ue:re,pe=r.useMemo((function(){return{columns:ce,flattenColumns:se}}),[ce,se]),me=r.useRef(),ge=r.useRef(),he=r.useRef(),ve=r.useRef();r.useImperativeHandle(t,(function(){return{nativeElement:me.current,scrollTo:function(e){var t,n;if(he.current instanceof HTMLElement){var r=e.index,o=e.top,i=e.key;if("number"!=typeof(n=o)||Number.isNaN(n)){var a,l=null!=i?i:W(B[r]);null===(a=he.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var c;null===(c=he.current)||void 0===c||c.scrollTo({top:o})}}else null!==(t=he.current)&&void 0!==t&&t.scrollTo&&he.current.scrollTo(e)}}}));var ye,xe,Ce,we=r.useRef(),$e=Be(r.useState(!1),2),ke=$e[0],Ee=$e[1],Oe=Be(r.useState(!1),2),je=Oe[0],Me=Oe[1],Ie=Be(VF(new Map),2),Ne=Ie[0],Pe=Ie[1],Re=iF(se).map((function(e){return Ne.get(e)})),Te=r.useMemo((function(){return Re}),[Re.join("_")]),Ae=function(e,t,n){return(0,r.useMemo)((function(){var r=t.length,o=function(n,r,o){for(var i=[],a=0,l=n;l!==r;l+=o)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=o(0,r,1),a=o(r-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}}),[e,t,n])}(Te,se,m),ze=f&&aF(f.y),_e=f&&aF(fe)||Boolean(Q.fixed),De=_e&&se.some((function(e){return e.fixed})),He=r.useRef(),Le=function(e,t){var n="object"===b(e)?e:{},o=n.offsetHeader,i=void 0===o?0:o,a=n.offsetSummary,l=void 0===a?0:a,c=n.offsetScroll,s=void 0===c?0:c,u=n.getContainer,d=(void 0===u?function(){return qF}:u)()||qF,f=!!e;return r.useMemo((function(){return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:d}}),[f,s,i,l,t,d])}(z,o),Fe=Le.isSticky,We=Le.offsetHeader,Ve=Le.offsetSummary,qe=Le.offsetScroll,Ke=Le.stickyClassName,Xe=Le.container,Ge=r.useMemo((function(){return null==v?void 0:v(B)}),[v,B]),Ye=(ze||Fe)&&r.isValidElement(Ge)&&Ge.type===pF&&Ge.props.fixed;ze&&(xe={overflowY:H?"scroll":"auto",maxHeight:f.y}),_e&&(ye={overflowX:"auto"},ze||(xe={overflowY:"hidden"}),Ce={width:!0===fe?"auto":fe,minWidth:"100%"});var Ue=r.useCallback((function(e,t){os(me.current)&&Pe((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),Qe=Be(function(){var e=(0,r.useRef)(null),t=(0,r.useRef)();function n(){window.clearTimeout(t.current)}return(0,r.useEffect)((function(){return n}),[]),[function(r){e.current=r,n(),t.current=window.setTimeout((function(){e.current=null,t.current=void 0}),100)},function(){return e.current}]}(),2),Ze=Qe[0],et=Qe[1];function tt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var nt=qn((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===m,i="number"==typeof r?r:n.scrollLeft,a=n||QF;et()&&et()!==a||(Ze(a),tt(i,ge.current),tt(i,he.current),tt(i,we.current),tt(i,null===(t=He.current)||void 0===t?void 0:t.setScrollLeft));var l=n||ge.current;if(l){var c="number"==typeof fe?fe:l.scrollWidth,s=l.clientWidth;if(c===s)return Ee(!1),void Me(!1);o?(Ee(-i0)):(Ee(i>0),Me(i1?y-P:0,T=w(w(w({},O),f),{},{flex:"0 0 ".concat(P,"px"),width:"".concat(P,"px"),marginRight:R,pointerEvents:"auto"}),A=r.useMemo((function(){return m?N<=1:0===M||0===N||N>1}),[N,M,m]);A?T.visibility="hidden":m&&(T.height=null==g?void 0:g(N));var z=A?function(){return null}:h,_={};return 0!==N&&0!==M||(_.rowSpan=1,_.colSpan=1),r.createElement(cF,(0,l.A)({className:a()(b,p),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:S,record:d,index:c,renderIndex:u,dataIndex:v,render:z,shouldCellUpdate:n.shouldCellUpdate},$,{appendNode:k,additionalProps:w(w({},E),{},{style:T},_)}))};var lW=["data","index","className","rowKey","style","extra","getHeight"],cW=r.forwardRef((function(e,t){var n,o=e.data,i=e.index,c=e.className,s=e.rowKey,u=e.style,d=e.extra,f=e.getHeight,p=ni(e,lW),m=o.record,g=o.indent,h=o.index,v=UL(rF,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=v.scrollX,y=v.flattenColumns,C=v.prefixCls,S=v.fixColumn,$=v.componentWidth,k=UL(oW,["getComponent"]).getComponent,E=xF(m,s,i,g),O=k(["body","row"],"div"),j=k(["body","cell"],"div"),M=E.rowSupportExpand,I=E.expanded,N=E.rowProps,P=E.expandedRowRender,R=E.expandedRowClassName;if(M&&I){var T=P(m,i,g+1,I),A=null==R?void 0:R(m,i,g),z={};S&&(z={style:x({},"--virtual-width","".concat($,"px"))});var _="".concat(C,"-expanded-row-cell");n=r.createElement(O,{className:a()("".concat(C,"-expanded-row"),"".concat(C,"-expanded-row-level-").concat(g+1),A)},r.createElement(cF,{component:j,prefixCls:C,className:a()(_,x({},"".concat(_,"-fixed"),S)),additionalProps:z},T))}var D=w(w({},u),{},{width:b});d&&(D.position="absolute",D.pointerEvents="none");var B=r.createElement(O,(0,l.A)({},N,p,{"data-row-key":s,ref:M?null:t,className:a()(c,"".concat(C,"-row"),null==N?void 0:N.className,x({},"".concat(C,"-row-extra"),d)),style:w(w({},D),null==N?void 0:N.style)}),y.map((function(e,t){return r.createElement(aW,{key:t,component:j,rowInfo:E,column:e,colIndex:t,indent:g,index:i,renderIndex:h,record:m,inverse:d,getHeight:f})})));return M?r.createElement("div",{ref:t},B,n):B}));const sW=tF(cW);var uW=r.forwardRef((function(e,t){var n=e.data,o=e.onScroll,i=UL(rF,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX"]),a=i.flattenColumns,l=i.onColumnResize,c=i.getRowKey,s=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,f=i.scrollX,p=UL(oW),m=p.sticky,g=p.scrollY,h=p.listItemHeight,v=p.getComponent,y=p.onScroll,x=r.useRef(),C=yF(n,d,s,c),w=r.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),S=r.useMemo((function(){return w.map((function(e){return e[2]}))}),[w]);r.useEffect((function(){w.forEach((function(e){var t=Be(e,2),n=t[0],r=t[1];l(n,r)}))}),[w]),r.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=x.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),t}));var $=function(e,t){var n,r=null===(n=C[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var i,a=o(r,t);return null!==(i=null==a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},k=r.useMemo((function(){return{columnsOffset:S}}),[S]),E="".concat(u,"-tbody"),O=v(["body","wrapper"]),j={};return m&&(j.position="sticky",j.bottom=0,"object"===b(m)&&m.offsetScroll&&(j.bottom=m.offsetScroll)),r.createElement(iW.Provider,{value:k},r.createElement(yv,{fullHeight:!1,ref:x,prefixCls:"".concat(E,"-virtual"),styles:{horizontalScrollBar:j},className:E,height:g,itemHeight:h||24,data:C,itemKey:function(e){return c(e.record)},component:O,scrollWidth:f,onVirtualScroll:function(e){var t,n=e.x;o({currentTarget:null===(t=x.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:y,extraRender:function(e){var t=e.start,n=e.end,o=e.getSize,i=e.offsetY;if(n<0)return null;for(var l=a.filter((function(e){return 0===$(e,t)})),s=t,u=function(e){if(l=l.filter((function(t){return 0===$(t,e)})),!l.length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var f=a.filter((function(e){return 1!==$(e,n)})),p=n,m=function(e){if(f=f.filter((function(t){return 1!==$(t,e)})),!f.length)return p=Math.max(e-1,n),1},g=n;g1}))&&h.push(e)},b=s;b<=p;b+=1)v(b);return h.map((function(e){var t=C[e],n=c(t.record,e),a=o(n);return r.createElement(sW,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var r=e+t-1,i=c(C[r].record,r),a=o(n,i);return a.bottom-a.top}})}))}},(function(e,t,n){var o=c(e.record,t);return r.createElement(sW,{data:e,rowKey:o,index:t,style:n.style})})))}));const dW=tF(uW);var fW=function(e,t){var n=t.ref,o=t.onScroll;return r.createElement(dW,{ref:n,data:e,onScroll:o})};function pW(e,t){var n=e.data,o=e.columns,i=e.scroll,c=e.sticky,s=e.prefixCls,u=void 0===s?YF:s,d=e.className,f=e.listItemHeight,p=e.components,m=e.onScroll,g=i||{},h=g.x,v=g.y;"number"!=typeof h&&(h=1),"number"!=typeof v&&(v=500);var b=qn((function(e,t){return Un(p,e)||t})),y=qn(m),x=r.useMemo((function(){return{sticky:c,scrollY:v,listItemHeight:f,getComponent:b,onScroll:y}}),[c,v,f,b,y]);return r.createElement(oW.Provider,{value:x},r.createElement(rW,(0,l.A)({},e,{className:a()(d,"".concat(u,"-virtual")),scroll:w(w({},i),{},{x:h}),components:w(w({},p),{},{body:null!=n&&n.length?fW:void 0}),columns:o,internalHooks:GL,tailor:!0,ref:t})))}var mW=r.forwardRef(pW);function gW(e){return eF(mW,e)}gW();var hW=r.createContext(null),vW=function(e){for(var t=e.prefixCls,n=e.level,o=e.isStart,i=e.isEnd,l="".concat(t,"-indent-unit"),c=[],s=0;s=0&&n.splice(r,1),n}function EW(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function OW(e){return e.split("-")}function jW(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(Rj(t,e).children),n}function MW(e){if(e.parent){var t=OW(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function IW(e,t,n,r,o,i,a,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,h=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,v=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=Rj(l,n.props.eventKey);if(f-1.5?i({dragNode:j,dropNode:M,dropPosition:1})?$=1:I=!1:i({dragNode:j,dropNode:M,dropPosition:0})?$=0:i({dragNode:j,dropNode:M,dropPosition:1})?$=1:I=!1:i({dragNode:j,dropNode:M,dropPosition:1})?$=1:I=!1,{dropPosition:$,dropLevelOffset:k,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:S,dropContainerKey:0===$?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:I}}function NW(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function PW(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==b(e))return v(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function RW(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=Rj(t,e);if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach((function(e){r(e)})),Se(n)}function TW(e){const[t,n]=(0,r.useState)(null);return[(0,r.useCallback)(((r,o,i)=>{const a=null!=t?t:r,l=Math.min(a||0,r),c=Math.max(a||0,r),s=o.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!i.has(e))),d=[];return s.forEach((e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))})),n(u?c:null),d}),[t]),e=>{n(e)}]}const AW={},zW="SELECT_ALL",_W="SELECT_INVERT",DW="SELECT_NONE",BW=[],HW=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(Se(n),Se(HW(e,t[e]))))})),n};const LW=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function FW(e,t){return t?`${t}-${e}`:`${e}`}const WW=(e,t)=>"function"==typeof e?e(t):e,VW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var qW=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:VW}))};const KW=r.forwardRef(qW);function XW(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var GW=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],YW=function(e,t){var n=e.className,o=e.style,i=e.motion,c=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,p=e.treeNodeRequiredProps,m=ni(e,GW),g=Be(r.useState(!0),2),h=g[0],v=g[1],b=r.useContext(hW).prefixCls,y=c&&"hide"!==s;Ot((function(){c&&y!==h&&v(y)}),[c]);var x=r.useRef(!1),C=function(){c&&!x.current&&(x.current=!0,d())};return function(e,t){var n=Be(r.useState(!1),2),o=n[0],i=n[1];Ot((function(){if(o)return c&&u(),function(){t()}}),[o]),Ot((function(){return i(!0),function(){i(!1)}}),[])}(0,C),c?r.createElement(ka,(0,l.A)({ref:t,visible:h},i,{motionAppear:"show"===s,onVisibleChanged:function(e){y===e&&C()}}),(function(e,t){var n=e.className,o=e.style;return r.createElement("div",{ref:t,className:a()("".concat(b,"-treenode-motion"),n),style:o},c.map((function(e){var t=Object.assign({},(XW(e.data),e.data)),n=e.title,o=e.key,i=e.isStart,a=e.isEnd;delete t.children;var c=Lj(o,p);return r.createElement($W,(0,l.A)({},t,c,{title:n,active:f,data:e.data,key:o,isStart:i,isEnd:a}))})))})):r.createElement($W,(0,l.A)({domRef:t,className:n,style:o},m,{active:f}))};YW.displayName="MotionTreeNode";const UW=r.forwardRef(YW);function QW(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var ZW=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],JW={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},eV=function(){},tV="RC_TREE_MOTION_".concat(Math.random()),nV={key:tV},rV={key:tV,level:0,index:0,pos:"0",node:nV,nodes:[nV]},oV={parent:null,children:[],pos:rV.pos,data:nV,title:null,key:tV,isStart:[],isEnd:[]};function iV(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function aV(e){return zj(e.key,e.pos)}var lV=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,c=e.checkedKeys,s=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,m=e.dragging,g=e.dragOverNodeKey,h=e.dropPosition,v=e.motion,b=e.height,y=e.itemHeight,x=e.virtual,C=e.focusable,w=e.activeItem,S=e.focused,$=e.tabIndex,k=e.onKeyDown,E=e.onFocus,O=e.onBlur,j=e.onActiveChange,M=e.onListChangeStart,I=e.onListChangeEnd,N=ni(e,ZW),P=r.useRef(null),R=r.useRef(null);r.useImperativeHandle(t,(function(){return{scrollTo:function(e){P.current.scrollTo(e)},getIndentWidth:function(){return R.current.offsetWidth}}}));var T=Be(r.useState(i),2),A=T[0],z=T[1],_=Be(r.useState(o),2),D=_[0],B=_[1],H=Be(r.useState(o),2),L=H[0],F=H[1],W=Be(r.useState([]),2),V=W[0],q=W[1],K=Be(r.useState(null),2),X=K[0],G=K[1],Y=r.useRef(o);function U(){var e=Y.current;B(e),F(e),q([]),G(null),I()}Y.current=o,Ot((function(){z(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n ").concat(t);return t}(w)),r.createElement("div",null,r.createElement("input",{style:JW,disabled:!1===C||p,tabIndex:!1!==C?$:null,onKeyDown:k,onFocus:E,onBlur:O,value:"",onChange:eV,"aria-label":"for screen reader"})),r.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},r.createElement("div",{className:"".concat(n,"-indent")},r.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),r.createElement(yv,(0,l.A)({},N,{data:Q,itemKey:aV,height:b,fullHeight:!1,virtual:x,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:P,onVisibleChange:function(e){e.every((function(e){return aV(e)!==tV}))&&U()}}),(function(e){var t=e.pos,n=Object.assign({},(XW(e.data),e.data)),o=e.title,i=e.key,a=e.isStart,c=e.isEnd,s=zj(i,t);delete n.key,delete n.children;var u=Lj(s,Z);return r.createElement(UW,(0,l.A)({},n,u,{title:o,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:c,motion:v,motionNodes:i===tV?V:null,motionType:X,onMotionStart:M,onMotionEnd:U,treeNodeRequiredProps:Z,onMouseMove:function(){j(null)}}))})))}));lV.displayName="NodeList";const cV=lV;var sV=function(e){le(n,e);var t=fe(n);function n(){var e;re(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=w(w({},Lj(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:Rj(e.state.keyEntities,c).node}),f=-1!==a.indexOf(c);v(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=OW(s),m={event:t,node:Fj(d),dragNode:e.dragNode?Fj(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};o||null==u||u(m),e.dragNode=null}}})),x(ue(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),x(ue(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter((function(e){return e.key===l}))[0],s=Fj(w(w({},Lj(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?kW(o,l):EW(o,l)),e.onNodeExpand(t,s)}})),x(ue(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),x(ue(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),x(ue(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],f=!u,p=(r=f?s?EW(r,d):[d]:kW(r,d)).map((function(e){var t=Rj(i,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),x(ue(e),"onNodeCheck",(function(t,n,r){var o,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var m=r?EW(l,f):kW(l,f);o={checked:m,halfChecked:kW(c,f)},p.checkedNodes=m.map((function(e){return Rj(a,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=Kj([].concat(Se(l),[f]),!0,a),h=g.checkedKeys,v=g.halfCheckedKeys;if(!r){var b=new Set(h);b.delete(f);var y=Kj(Array.from(b),{checked:!1,halfCheckedKeys:v},a);h=y.checkedKeys,v=y.halfCheckedKeys}o=h,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,h.forEach((function(e){var t=Rj(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==d||d(o,p)})),x(ue(e),"onNodeLoad",(function(t){var n,r=t.key,o=Rj(e.state.keyEntities,r);if(null==o||null===(n=o.children)||void 0===n||!n.length){var i=new Promise((function(n,o){e.setState((function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===l.indexOf(r)&&-1===s.indexOf(r)?(d(t).then((function(){var o=EW(e.state.loadedKeys,r);null==f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:kW(e.loadingKeys,r)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:kW(e.loadingKeys,r)}})),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var i=e.state.loadedKeys;v(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:EW(i,r)}),n()}o(t)})),{loadingKeys:EW(s,r)}):null}))}));return i.catch((function(){})),i}})),x(ue(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),x(ue(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),x(ue(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),x(ue(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,a[n]=t[n])})),!o||n&&!i||e.setState(w(w({},a),r))}})),x(ue(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return ie(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,o=t.flattenNodes,i=t.keyEntities,c=t.draggingNodeKey,s=t.activeKey,u=t.dropLevelOffset,d=t.dropContainerKey,f=t.dropTargetKey,p=t.dropPosition,m=t.dragOverNodeKey,g=t.indent,h=this.props,v=h.prefixCls,y=h.className,C=h.style,w=h.showLine,S=h.focusable,$=h.tabIndex,k=void 0===$?0:$,E=h.selectable,O=h.showIcon,j=h.icon,M=h.switcherIcon,I=h.draggable,N=h.checkable,P=h.checkStrictly,R=h.disabled,T=h.motion,A=h.loadData,z=h.filterTreeNode,_=h.height,D=h.itemHeight,B=h.virtual,H=h.titleRender,L=h.dropIndicatorRender,F=h.onContextMenu,W=h.onScroll,V=h.direction,q=h.rootClassName,K=h.rootStyle,X=ja(this.props,{aria:!0,data:!0});return I&&(e="object"===b(I)?I:"function"==typeof I?{nodeDraggable:I}:{}),r.createElement(hW.Provider,{value:{prefixCls:v,selectable:E,showIcon:O,icon:j,switcherIcon:M,draggable:e,draggingNodeKey:c,checkable:N,checkStrictly:P,disabled:R,keyEntities:i,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:p,dragOverNodeKey:m,indent:g,direction:V,dropIndicatorRender:L,loadData:A,filterTreeNode:z,titleRender:H,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},r.createElement("div",{role:"tree",className:a()(v,y,q,x(x(x({},"".concat(v,"-show-line"),w),"".concat(v,"-focused"),n),"".concat(v,"-active-focused"),null!==s)),style:K},r.createElement(cV,(0,l.A)({ref:this.listRef,prefixCls:v,style:C,data:o,disabled:R,selectable:E,checkable:!!N,motion:T,dragging:null!==c,height:_,itemHeight:D,virtual:B,focusable:S,focused:n,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:W},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&t in e||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=_j(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(v(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Dj(e.children)),n){o.treeData=n;var l=Hj(n,{fieldNames:a});o.keyEntities=w(x({},tV,rV),l.keyEntities)}var c,s=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?RW(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=w({},s);delete u[tV];var d=[];Object.keys(u).forEach((function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)})),o.expandedKeys=d}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?RW(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=Bj(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=f}if(e.selectable&&(i("selectedKeys")?o.selectedKeys=NW(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=NW(e.defaultSelectedKeys,e))),e.checkable&&(i("checkedKeys")?c=PW(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?c=PW(e.defaultCheckedKeys)||{}:n&&(c=PW(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var p=c,m=p.checkedKeys,g=void 0===m?[]:m,h=p.halfCheckedKeys,b=void 0===h?[]:h;if(!e.checkStrictly){var y=Kj(g,!0,s);g=y.checkedKeys,b=y.halfCheckedKeys}o.checkedKeys=g,o.halfCheckedKeys=b}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(r.Component);x(sV,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*o;break;case 1:i.bottom=0,i.left=-n*o;break;case 0:i.bottom=0,i.left=o}return r.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1}),x(sV,"TreeNode",$W);const uV=sV,dV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var fV=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:dV}))};const pV=r.forwardRef(fV),mV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var gV=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:mV}))};const hV=r.forwardRef(gV),vV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var bV=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:vV}))};const yV=r.forwardRef(bV),xV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var CV=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:xV}))};const wV=r.forwardRef(CV),SV=new zn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),$V=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),kV=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${yt(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),EV=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},pr(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},gr(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:SV,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[r]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${yt(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:yt(i),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},$V(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:yt(i),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${yt(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:yt(i),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:yt(i),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:yt(i),userSelect:"none"},kV(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${yt(t.calc(i).div(2).equal())} !important`}}}}})}},OV=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},jV=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=ir(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[EV(e,i),OV(i)]},MV=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},IV=Vo("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:fM(`${n}-checkbox`,e)},jV(n,e),$u(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},MV(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})})),NV=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",c="ltr"===a?"right":"left",s={[l]:-n*i+4,[c]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=i+4}return o().createElement("div",{style:s,className:`${r}-drop-indicator`})},PV={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var RV=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:PV}))};const TV=r.forwardRef(RV),AV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var zV=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:AV}))};const _V=r.forwardRef(zV),DV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var BV=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:DV}))};const HV=r.forwardRef(BV),LV=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:o,showLine:i,switcherLoadingIcon:l}=e,{isLeaf:c,expanded:s,loading:u}=o;if(u)return r.isValidElement(l)?l:r.createElement(Rl,{className:`${t}-switcher-loading-icon`});let d;if(i&&"object"==typeof i&&(d=i.showLeafIcon),c){if(!i)return null;if("boolean"!=typeof d&&d){const e="function"==typeof d?d(o):d,n=`${t}-switcher-line-custom-icon`;return r.isValidElement(e)?Na(e,{className:a()(e.props.className||"",n)}):e}return d?r.createElement(pV,{className:`${t}-switcher-line-icon`}):r.createElement("span",{className:`${t}-switcher-leaf-line`})}const f=`${t}-switcher-icon`,p="function"==typeof n?n(o):n;return r.isValidElement(p)?Na(p,{className:a()(p.props.className||"",f)}):void 0!==p?p:i?s?r.createElement(_V,{className:`${t}-switcher-line-icon`}):r.createElement(HV,{className:`${t}-switcher-line-icon`}):r.createElement(TV,{className:f})},FV=o().forwardRef(((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:l,tree:c}=o().useContext(Ae),{prefixCls:s,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:g=!1,children:h,checkable:v=!1,selectable:b=!0,draggable:y,motion:x,style:C}=e,w=r("tree",s),S=r(),$=null!=x?x:Object.assign(Object.assign({},ns(S)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:v,selectable:b,showIcon:d,motion:$,blockNode:g,showLine:Boolean(f),dropIndicatorRender:NV}),[E,O,j]=IV(w),[,M]=Fo(),I=M.paddingXS/2+((null===(n=M.Tree)||void 0===n?void 0:n.titleHeight)||M.controlHeightSM),N=o().useMemo((()=>{if(!y)return!1;let e={};switch(typeof y){case"function":e.nodeDraggable=y;break;case"object":e=Object.assign({},y)}return!1!==e.icon&&(e.icon=e.icon||o().createElement(wV,null)),e}),[y]);return E(o().createElement(uV,Object.assign({itemHeight:I,ref:t,virtual:l},k,{style:Object.assign(Object.assign({},null==c?void 0:c.style),C),prefixCls:w,className:a()({[`${w}-icon-hide`]:!d,[`${w}-block-node`]:g,[`${w}-unselectable`]:!b,[`${w}-rtl`]:"rtl"===i},null==c?void 0:c.className,u,O,j),direction:i,checkable:v?o().createElement("span",{className:`${w}-checkbox-inner`}):v,selectable:b,switcherIcon:e=>o().createElement(LV,{prefixCls:w,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f}),draggable:N}),h))})),WV=FV;function VV(e,t,n){const{key:r,children:o}=n;e.forEach((function(e){const i=e[r],a=e[o];!1!==t(i,e)&&VV(a||[],t,n)}))}function qV(e,t,n){const r=Se(t),o=[];return VV(e,((e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length}),_j(n)),o}var KV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:o,defaultExpandedKeys:i}=e,l=KV(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=r.useRef(),s=r.useRef(),[u,d]=r.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[f,p]=r.useState((()=>(()=>{const{keyEntities:e}=Hj(GV(l));let t;return t=n?Object.keys(e):o?RW(l.expandedKeys||i||[],e):l.expandedKeys||i||[],t})()));r.useEffect((()=>{"selectedKeys"in l&&d(l.selectedKeys)}),[l.selectedKeys]),r.useEffect((()=>{"expandedKeys"in l&&p(l.expandedKeys)}),[l.expandedKeys]);const{getPrefixCls:m,direction:g}=r.useContext(Ae),{prefixCls:h,className:v,showIcon:b=!0,expandAction:y="click"}=l,x=KV(l,["prefixCls","className","showIcon","expandAction"]),C=m("tree",h),w=a()(`${C}-directory`,{[`${C}-directory-rtl`]:"rtl"===g},v);return r.createElement(WV,Object.assign({icon:XV,ref:t,blockNode:!0},x,{showIcon:b,expandAction:y,prefixCls:C,className:w,expandedKeys:f,selectedKeys:u,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=l,{node:i,nativeEvent:a}=t,{key:u=""}=i,p=GV(l),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==a?void 0:a.ctrlKey)||(null==a?void 0:a.metaKey),h=null==a?void 0:a.shiftKey;let v;r&&g?(v=e,c.current=u,s.current=v,m.selectedNodes=qV(p,v,o)):r&&h?(v=Array.from(new Set([].concat(Se(s.current||[]),Se(function(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=0;return r&&r===o?[r]:r&&o?(VV(t,(e=>{if(2===l)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&a.push(e);return n.includes(e)}),_j(i)),a):[]}({treeData:p,expandedKeys:f,startKey:u,endKey:c.current,fieldNames:o}))))),m.selectedNodes=qV(p,v,o)):(v=[u],c.current=u,s.current=v,m.selectedNodes=qV(p,v,o)),null===(n=l.onSelect)||void 0===n||n.call(l,v,m),"selectedKeys"in l||d(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in l||p(e),null===(n=l.onExpand)||void 0===n?void 0:n.call(l,e,t)}}))},UV=r.forwardRef(YV),QV=WV;QV.DirectoryTree=UV,QV.TreeNode=$W;const ZV=QV,JV=e=>{const{value:t,filterSearch:n,tablePrefixCls:o,locale:i,onChange:a}=e;return n?r.createElement("div",{className:`${o}-filter-dropdown-search`},r.createElement(aP,{prefix:r.createElement(qb,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null},eq=e=>{const{keyCode:t}=e;t===bl.ENTER&&e.stopPropagation()},tq=r.forwardRef(((e,t)=>r.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:eq,ref:t},e.children))),nq=tq;function rq(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(Se(t),Se(rq(r))))})),t}function oq(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function iq(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map(((e,t)=>{const c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:iq({filters:e.children,prefixCls:n,filteredKeys:o,filterMultiple:i,searchValue:a,filterSearch:l})};const s=i?NM:jH,u={key:void 0!==e.value?c:t,label:r.createElement(r.Fragment,null,r.createElement(s,{checked:o.includes(c)}),r.createElement("span",null,e.text))};return a.trim()?"function"==typeof l?l(a,e)?u:null:oq(a,e.text)?u:null:u}))}function aq(e){return e||[]}const lq=e=>{var t,n;const{tablePrefixCls:o,prefixCls:i,column:l,dropdownPrefixCls:c,columnKey:s,filterOnClose:u,filterMultiple:d,filterMode:f="menu",filterSearch:p=!1,filterState:m,triggerFilter:g,locale:h,children:v,getPopupContainer:b,rootClassName:y}=e,{filterDropdownOpen:x,onFilterDropdownOpenChange:C,filterResetToDefaultFilteredValue:w,defaultFilteredValue:S,filterDropdownVisible:$,onFilterDropdownVisibleChange:k}=l,[E,O]=r.useState(!1),j=!(!m||!(null===(t=m.filteredKeys)||void 0===t?void 0:t.length)&&!m.forceFiltered),M=e=>{O(e),null==C||C(e),null==k||k(e)},I=null!==(n=null!=x?x:$)&&void 0!==n?n:E,N=null==m?void 0:m.filteredKeys,[P,R]=function(e){const t=r.useRef(e),n=cy();return[()=>t.current,e=>{t.current=e,n()}]}(aq(N)),T=e=>{let{selectedKeys:t}=e;R(t)},A=(e,t)=>{let{node:n,checked:r}=t;T(d?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};r.useEffect((()=>{E&&T({selectedKeys:aq(N)})}),[N]);const[z,_]=r.useState([]),D=e=>{_(e)},[B,H]=r.useState(""),L=e=>{const{value:t}=e.target;H(t)};r.useEffect((()=>{E||H("")}),[E]);const F=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||m&&m.filteredKeys?Je(t,null==m?void 0:m.filteredKeys,!0)?null:void g({column:l,key:s,filteredKeys:t}):null},W=()=>{M(!1),F(P())},V=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&F([]),t&&M(!1),H(""),R(w?(S||[]).map((e=>String(e))):[])},q=a()({[`${c}-menu-without-submenu`]:(K=l.filters||[],!K.some((e=>{let{children:t}=e;return t})))});var K;const X=e=>{if(e.target.checked){const e=rq(null==l?void 0:l.filters).map((e=>String(e)));R(e)}else R([])},G=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=G({filters:e.children})),r}))},Y=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Y(e))))||[]})};let U;const{direction:Q,renderEmpty:Z}=r.useContext(Ae);if("function"==typeof l.filterDropdown)U=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>T({selectedKeys:e}),selectedKeys:P(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&M(!1),F(P())},clearFilters:V,filters:l.filters,visible:I,close:()=>{M(!1)}});else if(l.filterDropdown)U=l.filterDropdown;else{const e=P()||[],t=()=>{var t;const n=null!==(t=null==Z?void 0:Z("Table.filter"))&&void 0!==t?t:r.createElement(Xv,{image:Xv.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return n;if("tree"===f)return r.createElement(r.Fragment,null,r.createElement(JV,{filterSearch:p,value:B,onChange:L,tablePrefixCls:o,locale:h}),r.createElement("div",{className:`${o}-filter-dropdown-tree`},d?r.createElement(NM,{checked:e.length===rq(l.filters).length,indeterminate:e.length>0&&e.length"function"==typeof p?p(B,Y(e)):oq(B,e.title):void 0})));const a=iq({filters:l.filters||[],filterSearch:p,prefixCls:i,filteredKeys:P(),filterMultiple:d,searchValue:B}),s=a.every((e=>null===e));return r.createElement(r.Fragment,null,r.createElement(JV,{filterSearch:p,value:B,onChange:L,tablePrefixCls:o,locale:h}),s?n:r.createElement(Kw,{selectable:!0,multiple:d,prefixCls:`${c}-menu`,className:q,onSelect:T,onDeselect:T,selectedKeys:e,getPopupContainer:b,openKeys:z,onOpenChange:D,items:a}))},n=()=>w?Je((S||[]).map((e=>String(e))),e,!0):0===e.length;U=r.createElement(r.Fragment,null,t(),r.createElement("div",{className:`${i}-dropdown-btns`},r.createElement($d,{type:"link",size:"small",disabled:n(),onClick:()=>V()},h.filterReset),r.createElement($d,{type:"primary",size:"small",onClick:W},h.filterConfirm)))}let J;return l.filterDropdown&&(U=r.createElement(Ow,{selectable:void 0},U)),J="function"==typeof l.filterIcon?l.filterIcon(j):l.filterIcon?l.filterIcon:r.createElement(KW,null),r.createElement("div",{className:`${i}-column`},r.createElement("span",{className:`${o}-column-title`},v),r.createElement(KT,{dropdownRender:()=>r.createElement(nq,{className:`${i}-dropdown`},U),trigger:["click"],open:I,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==N&&R(aq(N)),M(e),e||l.filterDropdown||!u||W())},getPopupContainer:b,placement:"rtl"===Q?"bottomLeft":"bottomRight",rootClassName:y},r.createElement("span",{role:"button",tabIndex:-1,className:a()(`${i}-trigger`,{active:j}),onClick:e=>{e.stopPropagation()}},J)))},cq=(e,t,n)=>{let r=[];return(e||[]).forEach(((e,o)=>{var i;const a=FW(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:LW(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:LW(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(Se(r),Se(cq(e.children,t,a))))})),r};function sq(e,t,n,o,i,a,l,c,s){return n.map(((n,u)=>{const d=FW(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=n;let h=n;if(h.filters||h.filterDropdown){const c=LW(h,d),u=o.find((e=>{let{key:t}=e;return c===t}));h=Object.assign(Object.assign({},h),{title:o=>r.createElement(lq,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},WW(n.title,o))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:sq(e,t,h.children,o,i,a,l,d,s)})),h}))}const uq=e=>{const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const i=n,{filters:a,filterDropdown:l}=o;if(l)t[i]=r||null;else if(Array.isArray(r)){const e=rq(a);t[i]=e.filter((e=>r.includes(String(e))))}else t[i]=null})),t},dq=(e,t,n)=>{const r=t.reduce(((e,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?e.map((e=>Object.assign({},e))).filter((e=>a.some((r=>{const a=rq(i),l=a.findIndex((e=>String(e)===String(r))),c=-1!==l?a[l]:r;return e[n]&&(e[n]=dq(e[n],t,n)),o(c,e)})))):e}),e);return r},fq=e=>e.flatMap((e=>"children"in e?[e].concat(Se(fq(e.children||[]))):[e])),pq=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e,s=(hl(),r.useMemo((()=>fq(o||[])),[o])),[u,d]=r.useState((()=>cq(s,!0))),f=r.useMemo((()=>{const e=cq(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:r}=e;void 0!==r?t=!1:n=!1})),t){const e=(s||[]).map(((e,t)=>LW(e,FW(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=r.useMemo((()=>uq(f)),[f]),m=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),i(uq(t),t)};return[e=>sq(t,n,e,f,l,m,a,void 0,c),f,p]};const mq=10,gq=function(e,t,n){const o=n&&"object"==typeof n?n:{},{total:i=0}=o,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:mq}))),s=S_(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,r)=>{var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),d(e,r),t(e,r||(null==s?void 0:s.pageSize))}}),d]},hq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var vq=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:hq}))};const bq=r.forwardRef(vq),yq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var xq=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:yq}))};const Cq=r.forwardRef(xq),wq="ascend",Sq="descend",$q=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,kq=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,Eq=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:LW(e,t),multiplePriority:$q(e),sortOrder:e.sortOrder})};return(e||[]).forEach(((e,i)=>{const a=FW(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(Se(r),Se(Eq(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:LW(e,a),multiplePriority:$q(e),sortOrder:e.defaultSortOrder}))})),r},Oq=(e,t,n,o,i,l,c,s)=>{const u=(t||[]).map(((t,u)=>{const d=FW(u,s);let f=t;if(f.sorter){const s=f.sortDirections||i,u=void 0===f.showSorterTooltip?c:f.showSorterTooltip,p=LW(f,d),m=n.find((e=>{let{key:t}=e;return t===p})),g=m?m.sortOrder:null,h=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,g);let v;if(t.sortIcon)v=t.sortIcon({sortOrder:g});else{const t=s.includes(wq)&&r.createElement(Cq,{className:a()(`${e}-column-sorter-up`,{active:g===wq})}),n=s.includes(Sq)&&r.createElement(bq,{className:a()(`${e}-column-sorter-down`,{active:g===Sq})});v=r.createElement("span",{className:a()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},r.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:b,triggerAsc:y,triggerDesc:x}=l||{};let C=b;h===Sq?C=x:h===wq&&(C=y);const w="object"==typeof u?Object.assign({title:C},u):{title:C};f=Object.assign(Object.assign({},f),{className:a()(f.className,{[`${e}-column-sort`]:g}),title:n=>{const o=`${e}-column-sorters`,i=r.createElement("span",{className:`${e}-column-title`},WW(t.title,n)),a=r.createElement("div",{className:o},i,v);return u?"boolean"!=typeof u&&"sorter-icon"===(null==u?void 0:u.target)?r.createElement("div",{className:`${o} ${e}-column-sorters-tooltip-target-sorter`},i,r.createElement(qy,Object.assign({},w),v)):r.createElement(qy,Object.assign({},w),a):a},onHeaderCell:n=>{var r;const i=(null===(r=t.onHeaderCell)||void 0===r?void 0:r.call(t,n))||{},l=i.onClick,c=i.onKeyDown;i.onClick=e=>{o({column:t,key:p,sortOrder:h,multiplePriority:$q(t)}),null==l||l(e)},i.onKeyDown=e=>{e.keyCode===bl.ENTER&&(o({column:t,key:p,sortOrder:h,multiplePriority:$q(t)}),null==c||c(e))};const s=(e=>{const t=WW(e,{});return"[object Object]"===Object.prototype.toString.call(t)?"":t})(t.title),u=null==s?void 0:s.toString();return g?i["aria-sort"]="ascend"===g?"ascending":"descending":i["aria-label"]=u||"",i.className=a()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!=s?s:"").toString()),i}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:Oq(e,f.children,n,o,i,l,c,d)})),f}));return u},jq=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Mq=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(jq);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},jq(e[t])),{column:void 0})}return t.length<=1?t[0]||{}:t},Iq=(e,t,n)=>{const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),i=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return kq(t)&&n}));return i.length?o.sort(((e,t)=>{for(let n=0;n{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:Iq(r,t,n)}):e})):o},Nq=(e,t)=>{const n=e.map((e=>{const n=Object.assign({},e);return n.title=WW(e.title,t),"children"in n&&(n.children=Nq(n.children,t)),n}));return n},Pq=tW(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Rq=Pq,Tq=gW(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Aq=Tq,zq=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s=`${yt(n)} ${r} ${o}`,u=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${yt(c(r).mul(-1).equal())}\n ${yt(c(c(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${yt(c(a).mul(-1).equal())} ${yt(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${yt(n)} 0 ${yt(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},_q=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},fr),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Dq=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Bq=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${yt(o)} ${a} ${l}`,C=y(m).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},vr(e)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:yt(h),background:c,border:x,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${yt(y(d).mul(-1).equal())} ${yt(y(f).mul(-1).equal())}`,padding:`${yt(d)} ${yt(f)}`}}}},Hq=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:w,controlItemBgHover:S,controlItemBgActive:$,boxShadowSecondary:k,filterDropdownMenuBg:E,calc:O}=e,j=`${n}-dropdown`,M=`${t}-filter-dropdown`,I=`${n}-tree`,N=`${yt(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:O(a).mul(-1).equal(),marginInline:`${yt(a)} ${yt(O(m).div(2).mul(-1).equal())}`,padding:`0 ${yt(a)}`,color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},pr(e)),{minWidth:o,backgroundColor:C,borderRadius:g,boxShadow:k,overflow:"hidden",[`${j}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${yt(l)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${yt(l)} 0`,paddingInline:l,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:S},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$}}},[`${M}-search`]:{padding:l,borderBottom:N,"&-input":{input:{minWidth:i},[r]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${yt(O(l).sub(s).equal())} ${yt(l)}`,overflow:"hidden",borderTop:N}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Lq=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=r;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},Fq=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${yt(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Wq=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${yt(n)} ${yt(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${yt(n)} ${yt(n)}`}}}}},Vq=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},qq=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(i).div(4)).add(m(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:yt(m(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},Kq=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${yt(o)} ${yt(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:yt(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${yt(r(o).mul(-1).equal())} ${yt(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:yt(r(o).mul(-1).equal()),marginInline:`${yt(r(n).sub(i).equal())} ${yt(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:yt(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Xq=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},Gq=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${yt(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${yt(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Yq=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${yt(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${yt(o(n).mul(-1).equal())} 0 ${r}`}}}},Uq=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${yt(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${yt(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},Qq=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,y=`${yt(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},pr(e)),{fontSize:s,background:u,borderRadius:`${yt(d)} ${yt(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${yt(d)} ${yt(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${yt(r)} ${yt(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${yt(r)} ${yt(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:yt(b(r).mul(-1).equal()),marginInline:`${yt(b(i).sub(o).equal())}\n ${yt(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${yt(r)} ${yt(o)}`,color:h,background:v}})}},Zq=Vo("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:C,footerColor:w,headerBorderRadius:S,cellFontSize:$,cellFontSizeMD:k,cellFontSizeSM:E,headerSplitColor:O,fixedHeaderSortActiveBg:j,headerFilterHoverBg:M,filterDropdownBg:I,expandIconBg:N,selectionColumnWidth:P,stickyScrollBarBg:R,calc:T}=e,A=ir(e,{tableFontSize:$,tableBg:r,tableRadius:S,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:w,tableFooterBg:C,tableHeaderCellSplitColor:O,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:j,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:I,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:T(2).add(1).equal({unit:!1}),tableFontSizeMiddle:k,tableFontSizeSmall:E,tableSelectionColumnWidth:P,tableExpandIconBg:N,tableExpandColumnWidth:T(o).add(T(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:R,tableScrollThumbBgHover:t,tableScrollBg:n});return[Qq(A),Fq(A),Yq(A),Xq(A),Hq(A),zq(A),Wq(A),Bq(A),Yq(A),Dq(A),qq(A),Lq(A),Gq(A),_q(A),Kq(A),Vq(A),Uq(A)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:C,controlInteractiveSize:w}=e,S=new Co(o).onBackground(n).toHexShortString(),$=new Co(i).onBackground(n).toHexShortString(),k=new Co(t).onBackground(n).toHexShortString(),E=new Co(y),O=new Co(x),j=w/2-b,M=2*j+3*b;return{headerBg:k,headerColor:r,headerSortActiveBg:S,headerSortHoverBg:$,bodySortBg:k,rowHoverBg:k,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:k,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:S,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:E.clone().setAlpha(E.getAlpha()*C).toRgbString(),headerIconHoverColor:O.clone().setAlpha(O.getAlpha()*C).toRgbString(),expandIconHalfInner:j,expandIconSize:M,expandIconScale:w/M}}),{unitless:{expandIconScale:!0}}),Jq=[],eK=(e,t)=>{var n,o;const{prefixCls:i,className:l,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:v,columns:b,children:y,childrenColumnName:x,onChange:C,getPopupContainer:w,loading:S,expandIcon:$,expandable:k,expandedRowRender:E,expandIconColumnIndex:O,indentSize:j,scroll:M,sortDirections:I,locale:N,showSorterTooltip:P={target:"full-header"},virtual:R}=e;hl();const T=r.useMemo((()=>b||BF(y)),[b,y]),A=r.useMemo((()=>T.some((e=>e.responsive))),[T]),z=sy(A),_=r.useMemo((()=>{const e=new Set(Object.keys(z).filter((e=>z[e])));return T.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[T,z]),D=ye(e,["className","style","columns"]),{locale:B=Cc,direction:H,table:L,renderEmpty:F,getPrefixCls:W,getPopupContainer:V}=r.useContext(Ae),q=ms(u),K=Object.assign(Object.assign({},B.Table),N),X=p||Jq,G=W("table",i),Y=W("dropdown",f),[,U]=Fo(),Q=rl(G),[Z,J,ee]=Zq(G,Q),te=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:O},k),{expandIcon:null!==(n=null==k?void 0:k.expandIcon)&&void 0!==n?n:null===(o=null==L?void 0:L.expandable)||void 0===o?void 0:o.expandIcon}),{childrenColumnName:ne="children"}=te,re=r.useMemo((()=>X.some((e=>null==e?void 0:e[ne]))?"nest":E||(null==k?void 0:k.expandedRowRender)?"row":null),[X]),oe={body:r.useRef()},ie=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(G),ae=r.useRef(null),le=r.useRef(null);!function(e,t){(0,r.useImperativeHandle)(e,(()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=n)._antProxy=r._antProxy||{},Object.keys(o).forEach((e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}})),r);var r,o}))}(t,(()=>Object.assign(Object.assign({},le.current),{nativeElement:ae.current})));const ce=r.useMemo((()=>"function"==typeof h?h:e=>null==e?void 0:e[h]),[h]),[se]=((e,t,n)=>{const o=r.useRef({});return[function(r){var i;if(!o.current||o.current.data!==e||o.current.childrenColumnName!==t||o.current.getRowKey!==n){const a=new Map;function l(e){e.forEach(((e,r)=>{const o=n(e,r);a.set(o,e),e&&"object"==typeof e&&t in e&&l(e[t]||[])}))}l(e),o.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=o.current.kvMap)||void 0===i?void 0:i.get(r)}]})(X,ne,ce),ue={},de=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i,a;const l=Object.assign(Object.assign({},ue),e);n&&(null===(r=ue.resetPagination)||void 0===r||r.call(ue),(null===(o=l.pagination)||void 0===o?void 0:o.current)&&(l.pagination.current=1),m&&(null===(i=m.onChange)||void 0===i||i.call(m,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),M&&!1!==M.scrollToFirstRowOnChange&&oe.body.current&&nl(0,{getContainer:()=>oe.body.current}),null==C||C(l.pagination,l.filters,l.sorter,{currentDataSource:dq(Iq(X,l.sorterStates,ne),l.filterStates,ne),action:t})},[fe,pe,me,ge]=(e=>{const{prefixCls:t,mergedColumns:n,sortDirections:o,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[c,s]=r.useState(Eq(n,!0)),u=(e,t)=>{const n=[];return e.forEach(((e,r)=>{const o=FW(r,t);if(n.push(LW(e,o)),Array.isArray(e.children)){const t=u(e.children,o);n.push.apply(n,Se(t))}})),n},d=r.useMemo((()=>{let e=!0;const t=Eq(n,!1);if(!t.length){const e=u(n);return c.filter((t=>{let{key:n}=t;return e.includes(n)}))}const r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))})),r}),[n,c]),f=r.useMemo((()=>{var e,t;const n=d.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(Se(d.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),l(Mq(t),t)};return[e=>Oq(t,e,d,p,o,i,a),d,f,()=>Mq(d)]})({prefixCls:G,mergedColumns:_,onSorterChange:(e,t)=>{de({sorter:e,sorterStates:t},"sort",!1)},sortDirections:I||["ascend","descend"],tableLocale:K,showSorterTooltip:P}),he=r.useMemo((()=>Iq(X,pe,ne)),[X,pe]);ue.sorter=ge(),ue.sorterStates=pe;const[ve,be,xe]=pq({prefixCls:G,locale:K,dropdownPrefixCls:Y,mergedColumns:_,onFilterChange:(e,t)=>{de({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||V,rootClassName:a()(c,Q)}),Ce=dq(he,be,ne);ue.filters=xe,ue.filterStates=be;const we=r.useMemo((()=>{const e={};return Object.keys(xe).forEach((t=>{null!==xe[t]&&(e[t]=xe[t])})),Object.assign(Object.assign({},me),{filters:e})}),[me,xe]),[$e]=(e=>{const t=r.useCallback((t=>Nq(t,e)),[e]);return[t]})(we),[ke,Ee]=gq(Ce.length,((e,t)=>{de({pagination:Object.assign(Object.assign({},ue.pagination),{current:e,pageSize:t})},"paginate")}),m);ue.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)})),n}(ke,m),ue.resetPagination=Ee;const Oe=r.useMemo((()=>{if(!1===m||!ke.pageSize)return Ce;const{current:e=1,total:t,pageSize:n=mq}=ke;return Ce.lengthn?Ce.slice((e-1)*n,e*n):Ce:Ce.slice((e-1)*n,e*n)}),[!!m,Ce,null==ke?void 0:ke.current,null==ke?void 0:ke.pageSize,null==ke?void 0:ke.total]),[je,Me]=((e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:o,defaultSelectedRowKeys:i,getCheckboxProps:l,onChange:c,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:p,columnWidth:m,type:g,selections:h,fixed:v,renderCell:b,hideSelectAll:y,checkStrictly:x=!0}=t||{},{prefixCls:C,data:w,pageData:S,getRecordByKey:$,getRowKey:k,expandType:E,childrenColumnName:O,locale:j,getPopupContainer:M}=e,I=hl(),[N,P]=TW((e=>e)),[R,T]=Gn(o||i||BW,{value:o}),A=r.useRef(new Map),z=(0,r.useCallback)((e=>{if(n){const t=new Map;e.forEach((e=>{let n=$(e);!n&&A.current.has(e)&&(n=A.current.get(e)),t.set(e,n)})),A.current=t}}),[$,n]);r.useEffect((()=>{z(R)}),[R]);const _=(0,r.useMemo)((()=>HW(O,S)),[O,S]),{keyEntities:D}=(0,r.useMemo)((()=>{if(x)return{keyEntities:null};let e=w;if(n){const t=new Set(_.map(((e,t)=>k(e,t)))),n=Array.from(A.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat(Se(e),Se(n))}return Hj(e,{externalGetKey:k,childrenPropName:O})}),[w,k,x,O,n,_]),B=(0,r.useMemo)((()=>{const e=new Map;return _.forEach(((t,n)=>{const r=k(t,n),o=(l?l(t):null)||{};e.set(r,o)})),e}),[_,k,l]),H=(0,r.useCallback)((e=>{var t;return!!(null===(t=B.get(k(e)))||void 0===t?void 0:t.disabled)}),[B,k]),[L,F]=(0,r.useMemo)((()=>{if(x)return[R||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Kj(R,!0,D,H);return[e||[],t]}),[R,x,D,H]),W=(0,r.useMemo)((()=>{const e="radio"===g?L.slice(0,1):L;return new Set(e)}),[L,g]),V=(0,r.useMemo)((()=>"radio"===g?new Set:new Set(F)),[F,g]);r.useEffect((()=>{t||T(BW)}),[!!t]);const q=(0,r.useCallback)(((e,t)=>{let r,o;z(e),n?(r=e,o=e.map((e=>A.current.get(e)))):(r=[],o=[],e.forEach((e=>{const t=$(e);void 0!==t&&(r.push(e),o.push(t))}))),T(r),null==c||c(r,o,{type:t})}),[T,$,c,n]),K=(0,r.useCallback)(((e,t,n,r)=>{if(s){const o=n.map((e=>$(e)));s($(e),t,o,r)}q(n,"single")}),[s,$,q]),X=(0,r.useMemo)((()=>!h||y?null:(!0===h?[zW,_W,DW]:h).map((e=>e===zW?{key:"all",text:j.selectionAll,onSelect(){q(w.map(((e,t)=>k(e,t))).filter((e=>{const t=B.get(e);return!(null==t?void 0:t.disabled)||W.has(e)})),"all")}}:e===_W?{key:"invert",text:j.selectInvert,onSelect(){const e=new Set(W);S.forEach(((t,n)=>{const r=k(t,n),o=B.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);d&&(I.deprecated(!1,"onSelectInvert","onChange"),d(t)),q(t,"invert")}}:e===DW?{key:"none",text:j.selectNone,onSelect(){null==f||f(),q(Array.from(W).filter((e=>{const t=B.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i{var n;if(!t)return e.filter((e=>e!==AW));let o=Se(e);const i=new Set(W),l=_.map(k).filter((e=>!B.get(e).disabled)),c=l.every((e=>i.has(e))),s=l.some((e=>i.has(e))),d=()=>{const e=[];c?l.forEach((t=>{i.delete(t),e.push(t)})):l.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==u||u(!c,t.map((e=>$(e))),e.map((e=>$(e)))),q(t,"all"),P(null)};let f,w,S;if("radio"!==g){let e;if(X){const t={getPopupContainer:M,items:X.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(l)},label:r}}))};e=r.createElement("div",{className:`${C}-selection-extra`},r.createElement(KT,{menu:t,getPopupContainer:M},r.createElement("span",null,r.createElement(Fb,null))))}const t=_.map(((e,t)=>{const n=k(e,t),r=B.get(n)||{};return Object.assign({checked:i.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===_.length,o=n&&t.every((e=>{let{checked:t}=e;return t})),a=n&&t.some((e=>{let{checked:t}=e;return t}));w=r.createElement(NM,{checked:n?o:!!_.length&&c,indeterminate:n?!o&&a:!c&&s,onChange:d,disabled:0===_.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),f=!y&&r.createElement("div",{className:`${C}-selection`},w,e)}if(S="radio"===g?(e,t,n)=>{const o=k(t,n),a=i.has(o);return{node:r.createElement(jH,Object.assign({},B.get(o),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(o)||K(o,!0,[o],e.nativeEvent)}})),checked:a}}:(e,t,n)=>{var o;const a=k(t,n),c=i.has(a),s=V.has(a),u=B.get(a);let d;return d="nest"===E?s:null!==(o=null==u?void 0:u.indeterminate)&&void 0!==o?o:s,{node:r.createElement(NM,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,r=l.findIndex((e=>e===a)),o=L.some((e=>l.includes(e)));if(n&&x&&o){const e=N(r,l,i),t=Array.from(i);null==p||p(!c,t.map((e=>$(e))),e.map((e=>$(e)))),q(t,"multiple")}else{const e=L;if(x){const n=c?kW(e,a):EW(e,a);K(a,!c,n,t)}else{const n=Kj([].concat(Se(e),[a]),!0,D,H),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(c){const e=new Set(r);e.delete(a),i=Kj(Array.from(e),{checked:!1,halfCheckedKeys:o},D,H).checkedKeys}K(a,!c,i,t)}}P(c?null:r)}})),checked:c}},!o.includes(AW))if(0===o.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[jF])||void 0===t?void 0:t.columnType)}))){const[e,...t]=o;o=[e,AW].concat(Se(t))}else o=[AW].concat(Se(o));const O=o.indexOf(AW);o=o.filter(((e,t)=>e!==AW||t===O));const j=o[O-1],I=o[O+1];let R=v;void 0===R&&(void 0!==(null==I?void 0:I.fixed)?R=I.fixed:void 0!==(null==j?void 0:j.fixed)&&(R=j.fixed)),R&&j&&"EXPAND_COLUMN"===(null===(n=j[jF])||void 0===n?void 0:n.columnType)&&void 0===j.fixed&&(j.fixed=R);const T=a()(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:h&&"checkbox"===g}),A={fixed:R,width:m,className:`${C}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(w):t.columnTitle:f,render:(e,t,n)=>{const{node:r,checked:o}=S(e,t,n);return b?b(o,t,n,r):r},onCell:t.onCell,[jF]:{className:T}};return o.map((e=>e===AW?A:e))}),[k,_,t,L,W,V,m,X,E,B,p,K,H]);return[G,W]})({prefixCls:G,data:Ce,pageData:Oe,getRowKey:ce,getRecordByKey:se,expandType:re,childrenColumnName:ne,locale:K,getPopupContainer:w||V},g);te.__PARENT_RENDER_ICON__=te.expandIcon,te.expandIcon=te.expandIcon||$||function(e){return t=>{const{prefixCls:n,onExpand:o,record:i,expanded:l,expandable:c}=t,s=`${n}-row-expand-icon`;return r.createElement("button",{type:"button",onClick:e=>{o(i,e),e.stopPropagation()},className:a()(s,{[`${s}-spaced`]:!c,[`${s}-expanded`]:c&&l,[`${s}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}}(K),"nest"===re&&void 0===te.expandIconColumnIndex?te.expandIconColumnIndex=g?1:0:te.expandIconColumnIndex>0&&g&&(te.expandIconColumnIndex-=1),"number"!=typeof te.indentSize&&(te.indentSize="number"==typeof j?j:15);const Ie=r.useCallback((e=>$e(je(ve(fe(e))))),[fe,ve,je]);let Ne,Pe,Re;if(!1!==m&&(null==ke?void 0:ke.total)){let e;e=ke.size?ke.size:"small"===q||"middle"===q?"small":void 0;const t=t=>r.createElement(J_,Object.assign({},ke,{className:a()(`${G}-pagination ${G}-pagination-${t}`,ke.className),size:e})),n="rtl"===H?"left":"right",{position:o}=ke;if(null!==o&&Array.isArray(o)){const e=o.find((e=>e.includes("top"))),r=o.find((e=>e.includes("bottom"))),i=o.every((e=>"none"==`${e}`));e||r||i||(Pe=t(n)),e&&(Ne=t(e.toLowerCase().replace("top",""))),r&&(Pe=t(r.toLowerCase().replace("bottom","")))}else Pe=t(n)}"boolean"==typeof S?Re={spinning:S}:"object"==typeof S&&(Re=Object.assign({spinning:!0},S));const Te=a()(ee,Q,`${G}-wrapper`,null==L?void 0:L.className,{[`${G}-wrapper-rtl`]:"rtl"===H},l,c,J),ze=Object.assign(Object.assign({},null==L?void 0:L.style),s),_e=void 0!==(null==N?void 0:N.emptyText)?N.emptyText:(null==F?void 0:F("Table"))||r.createElement(Gv,{componentName:"Table"}),De=R?Aq:Rq,Be={},He=r.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=U,i=Math.floor(e*t);switch(q){case"large":return 2*n+i;case"small":return 2*r+i;default:return 2*o+i}}),[U,q]);return R&&(Be.listItemHeight=He),Z(r.createElement("div",{ref:ae,className:Te,style:ze},r.createElement(fD,Object.assign({spinning:!1},Re),Ne,r.createElement(De,Object.assign({},Be,D,{ref:le,columns:_,direction:H,expandable:te,prefixCls:G,className:a()({[`${G}-middle`]:"middle"===q,[`${G}-small`]:"small"===q,[`${G}-bordered`]:d,[`${G}-empty`]:0===X.length},ee,Q,J),data:Oe,rowKey:ce,rowClassName:(e,t,n)=>{let r;return r="function"==typeof v?a()(v(e,t,n)):a()(v),a()({[`${G}-row-selected`]:Me.has(ce(e,t))},r)},emptyText:_e,internalHooks:GL,internalRefs:oe,transformColumns:Ie,getContainerWidth:ie})),Pe)))},tK=r.forwardRef(eK),nK=(e,t)=>{const n=r.useRef(0);return n.current+=1,r.createElement(tK,Object.assign({},e,{ref:t,_renderTimes:n.current}))},rK=r.forwardRef(nK);rK.SELECTION_COLUMN=AW,rK.EXPAND_COLUMN=XL,rK.SELECTION_ALL=zW,rK.SELECTION_INVERT=_W,rK.SELECTION_NONE=DW,rK.Column=e=>null,rK.ColumnGroup=e=>null,rK.Summary=gF;const oK=rK,iK=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return ir(e,{tagFontSize:o,tagLineHeight:yt(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},aK=e=>({defaultBg:new Co(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),lK=Vo("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},pr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(iK(e))),aK);const cK=r.forwardRef(((e,t)=>{const{prefixCls:n,style:o,className:i,checked:l,onChange:c,onClick:s}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{null==c||c(!l),null==s||s(e)}})))})),sK=cK,uK=Ko(["Tag","preset"],(e=>(e=>Ay(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(iK(e))),aK),dK=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},fK=Ko(["Tag","status"],(e=>{const t=iK(e);return[dK(t,"success","Success"),dK(t,"processing","Info"),dK(t,"error","Error"),dK(t,"warning","Warning")]}),aK);const pK=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:i,style:l,children:c,icon:s,color:u,onClose:d,bordered:f=!0,visible:p}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{void 0!==p&&y(p)}),[p]);const C=Ly(u),w=function(e){return Hy.includes(e)}(u),S=C||w,$=Object.assign(Object.assign({backgroundColor:u&&!S?u:void 0},null==v?void 0:v.style),l),k=g("tag",n),[E,O,j]=lK(k),M=a()(k,null==v?void 0:v.className,{[`${k}-${u}`]:S,[`${k}-has-color`]:u&&!S,[`${k}-hidden`]:!b,[`${k}-rtl`]:"rtl"===h,[`${k}-borderless`]:!f},o,i,O,j),I=e=>{e.stopPropagation(),null==d||d(e),e.defaultPrevented||y(!1)},[,N]=Tp(Ip(e),Ip(v),{closable:!1,closeIconRender:e=>Ia(e,r.createElement("span",{className:`${k}-close-icon`,onClick:I},e),(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),I(t)},className:a()(null==e?void 0:e.className,`${k}-close-icon`)})))}),P="function"==typeof m.onClick||c&&"a"===c.type,R=s||null,T=R?r.createElement(r.Fragment,null,R,c&&r.createElement("span",null,c)):c,A=r.createElement("span",Object.assign({},x,{ref:t,className:M,style:$}),T,N,C&&r.createElement(uK,{key:"preset",prefixCls:k}),w&&r.createElement(fK,{key:"status",prefixCls:k}));return E(P?r.createElement(ps,{component:"Tag"},A):A)})),mK=pK;mK.CheckableTag=sK;const gK=mK,hK=(e,t)=>new Co(e).setAlpha(t).toRgbString(),vK=(e,t)=>new Co(e).lighten(t).toHexString(),bK=e=>{const t=Wr(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},yK=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:hK(r,.85),colorTextSecondary:hK(r,.65),colorTextTertiary:hK(r,.45),colorTextQuaternary:hK(r,.25),colorFill:hK(r,.18),colorFillSecondary:hK(r,.12),colorFillTertiary:hK(r,.08),colorFillQuaternary:hK(r,.04),colorBgSolid:hK(r,.95),colorBgSolidHover:hK(r,1),colorBgSolidActive:hK(r,.9),colorBgElevated:vK(n,12),colorBgContainer:vK(n,8),colorBgLayout:vK(n,0),colorBgSpotlight:vK(n,26),colorBgBlur:hK(r,.04),colorBorder:vK(n,26),colorBorderSecondary:vK(n,19)}},xK={defaultSeed:Po.token,useToken:function(){const[e,t,n]=Fo();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Io,darkAlgorithm:(e,t)=>{const n=Object.keys(yo).map((t=>{const n=Wr(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:Io(e);return Object.assign(Object.assign(Object.assign({},r),n),wo(e,{generateColorPalettes:bK,generateNeutralColorPalettes:yK}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:Io(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),ko(r)),{controlHeight:o}),So(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?ft(e.algorithm):ft(Io),n=Object.assign(Object.assign({},xo),null==e?void 0:e.token);return Tt(n,{override:null==e?void 0:e.token},t,zo)},defaultConfig:Po,_internalContext:Ro};const{TimePicker:CK,RangePicker:wK}=eT,SK=r.forwardRef(((e,t)=>r.createElement(wK,Object.assign({},e,{picker:"time",mode:void 0,ref:t})))),$K=r.forwardRef(((e,t)=>{var{addon:n,renderExtraFooter:o,variant:i,bordered:a}=e,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oo||n||void 0),[n,o]);return r.createElement(CK,Object.assign({},l,{mode:void 0,ref:t,renderExtraFooter:s,variant:c}))})),kK=Ng($K,"picker");$K._InternalPanelDoNotUseOrYouWillBeFired=kK,$K.RangePicker=SK,$K._InternalPanelDoNotUseOrYouWillBeFired=kK;const EK=$K,OK=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},pr(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${yt(e.itemHeadSize)})`,borderInlineStart:`${yt(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${yt(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,\n &${t}-right,\n &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${yt(e.marginXXS)})`,width:`calc(50% - ${yt(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${yt(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n ${t}-item-head,\n ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${yt(n(n(e.itemHeadSize).add(e.tailWidth)).div(2).equal())})`},[`${t}-item-content`]:{width:`calc(100% - ${yt(n(e.itemHeadSize).add(e.marginXS).equal())})`}}},[`&${t}-pending\n ${t}-item-last\n ${t}-item-tail`]:{display:"block",height:`calc(100% - ${yt(e.margin)})`,borderInlineStart:`${yt(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse\n ${t}-item-last\n ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${yt(e.margin)})`,borderInlineStart:`${yt(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${yt(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${yt(e.marginSM)})`,width:`calc(50% - ${yt(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},jK=Vo("Timeline",(e=>{const t=ir(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[OK(t)]}),(e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth,dotBg:e.colorBgContainer,itemPaddingBottom:1.25*e.padding})));const MK=e=>{var{prefixCls:t,className:n,color:o="blue",dot:i,pending:l=!1,position:c,label:s,children:u}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,pending:o=!1,children:i,items:l,rootClassName:c,reverse:s=!1,direction:u,hashId:d,pendingDot:f,mode:p=""}=e,m=IK(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=(e,n)=>"alternate"===p?"right"===e?`${t}-item-right`:"left"===e||n%2==0?`${t}-item-left`:`${t}-item-right`:"left"===p?`${t}-item-left`:"right"===p||"right"===e?`${t}-item-right`:"",h=Se(l||[]),v="boolean"==typeof o?null:o;o&&h.push({pending:!!o,dot:f||r.createElement(Rl,null),children:v}),s&&h.reverse();const b=h.length,y=`${t}-item-last`,x=h.filter((e=>!!e)).map(((e,t)=>{var n;const i=t===b-2?y:"",l=t===b-1?y:"",{className:c}=e,u=IK(e,["className"]);return r.createElement(MK,Object.assign({},u,{className:a()([c,!s&&o?i:l,g(null!==(n=null==e?void 0:e.position)&&void 0!==n?n:"",t)]),key:(null==e?void 0:e.key)||t}))})),C=h.some((e=>!!(null==e?void 0:e.label))),w=a()(t,{[`${t}-pending`]:!!o,[`${t}-reverse`]:!!s,[`${t}-${p}`]:!!p&&!C,[`${t}-label`]:C,[`${t}-rtl`]:"rtl"===u},n,c,d);return r.createElement("ul",Object.assign({},m,{className:w}),x)};const PK=e=>{const{getPrefixCls:t,direction:n,timeline:o}=r.useContext(Ae),{prefixCls:i,children:l,items:c,className:u,style:d}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n;return Object.assign({children:null!==(n=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)&&void 0!==n?n:""},e.props)}))}(c,l);return g(r.createElement(NK,Object.assign({},f,{className:a()(null==o?void 0:o.className,u,v,m),style:Object.assign(Object.assign({},null==o?void 0:o.style),d),prefixCls:p,direction:n,items:b,hashId:h})))};PK.Item=MK;const RK=PK;function TK(e){return null!==e&&"object"===b(e)}function AK(e,t,n){if(!1===e||!1===t&&(!TK(e)||!e.closeIcon))return null;var r,o="boolean"!=typeof t?t:void 0;return TK(e)?w(w({},e),{},{closeIcon:null!==(r=e.closeIcon)&&void 0!==r?r:o}):n||e||t?{closeIcon:o}:"empty"}var zK={fill:"transparent",pointerEvents:"auto"};const _K=function(e){var t=e.prefixCls,n=e.rootClassName,r=e.pos,i=e.showMask,c=e.style,s=void 0===c?{}:c,u=e.fill,d=void 0===u?"rgba(0,0,0,0.5)":u,f=e.open,p=e.animated,m=e.zIndex,g=e.disabledInteraction,h=Kd(),v="".concat(t,"-mask-").concat(h),y="object"===b(p)?null==p?void 0:p.placeholder:p,x="undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return o().createElement(Fd,{open:f,autoLock:!0},o().createElement("div",{className:a()("".concat(t,"-mask"),n),style:w({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:m,pointerEvents:r&&!g?"none":"auto"},s)},i?o().createElement("svg",{style:{width:"100%",height:"100%"}},o().createElement("defs",null,o().createElement("mask",{id:v},o().createElement("rect",(0,l.A)({x:"0",y:"0"},x,{fill:"white"})),r&&o().createElement("rect",{x:r.left,y:r.top,rx:r.radius,width:r.width,height:r.height,fill:"black",className:y?"".concat(t,"-placeholder-animated"):""}))),o().createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:d,mask:"url(#".concat(v,")")}),r&&o().createElement(o().Fragment,null,o().createElement("rect",(0,l.A)({},zK,{x:"0",y:"0",width:"100%",height:r.top})),o().createElement("rect",(0,l.A)({},zK,{x:"0",y:"0",width:r.left,height:"100%"})),o().createElement("rect",(0,l.A)({},zK,{x:"0",y:r.top+r.height,width:"100%",height:"calc(100vh - ".concat(r.top+r.height,"px)")})),o().createElement("rect",(0,l.A)({},zK,{x:r.left+r.width,y:"0",width:"calc(100vw - ".concat(r.left+r.width,"px)"),height:"100%"})))):null))};var DK=[0,0],BK={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function HK(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};return Object.keys(BK).forEach((function(n){t[n]=w(w({},BK[n]),{},{autoArrow:e,targetOffset:DK})})),t}function LK(e){var t,n=e.prefixCls,o=e.current,i=e.total,c=e.title,s=e.description,u=e.onClose,d=e.onPrev,f=e.onNext,p=e.onFinish,m=e.className,g=e.closable,h=ja(g||{},!0),v=null!==(t=null==g?void 0:g.closeIcon)&&void 0!==t?t:r.createElement("span",{className:"".concat(n,"-close-x")},"×"),b=!!g;return r.createElement("div",{className:a()("".concat(n,"-content"),m)},r.createElement("div",{className:"".concat(n,"-inner")},b&&r.createElement("button",(0,l.A)({type:"button",onClick:u,"aria-label":"Close"},h,{className:"".concat(n,"-close")}),v),r.createElement("div",{className:"".concat(n,"-header")},r.createElement("div",{className:"".concat(n,"-title")},c)),r.createElement("div",{className:"".concat(n,"-description")},s),r.createElement("div",{className:"".concat(n,"-footer")},r.createElement("div",{className:"".concat(n,"-sliders")},i>1?Se(Array.from({length:i}).keys()).map((function(e,t){return r.createElement("span",{key:e,className:t===o?"active":""})})):null),r.createElement("div",{className:"".concat(n,"-buttons")},0!==o?r.createElement("button",{className:"".concat(n,"-prev-btn"),onClick:d},"Prev"):null,o===i-1?r.createElement("button",{className:"".concat(n,"-finish-btn"),onClick:p},"Finish"):r.createElement("button",{className:"".concat(n,"-next-btn"),onClick:f},"Next")))))}HK();const FK=function(e){var t=e.current,n=e.renderPanel;return r.createElement(r.Fragment,null,"function"==typeof n?n(e,t):r.createElement(LK,e))};var WK=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],VK={left:"50%",top:"50%",width:1,height:1},qK={block:"center",inline:"center"};const KK=function(e){var t=e.prefixCls,n=void 0===t?"rc-tour":t,o=e.steps,i=void 0===o?[]:o,c=e.defaultCurrent,s=e.current,u=e.onChange,d=e.onClose,f=e.onFinish,p=e.open,m=e.mask,g=void 0===m||m,h=e.arrow,v=void 0===h||h,y=e.rootClassName,x=e.placement,C=e.renderPanel,S=e.gap,$=e.animated,k=e.scrollIntoViewOptions,E=void 0===k?qK:k,O=e.zIndex,j=void 0===O?1001:O,M=e.closeIcon,I=e.closable,N=e.builtinPlacements,P=e.disabledInteraction,R=ni(e,WK),T=r.useRef(),A=Be(Gn(0,{value:s,defaultValue:c}),2),z=A[0],_=A[1],D=Be(Gn(void 0,{value:p,postState:function(e){return!(z<0||z>=i.length)&&(null==e||e)}}),2),B=D[0],H=D[1],L=Be(r.useState(B),2),F=L[0],W=L[1],V=r.useRef(B);Ot((function(){B&&(V.current||_(0),W(!0)),V.current=B}),[B]);var q=i[z]||{},K=q.target,X=q.placement,G=q.style,Y=q.arrow,U=q.className,Q=q.mask,Z=q.scrollIntoViewOptions,J=void 0===Z?qK:Z,ee=q.closeIcon,te=function(e,t,n,o){return r.useMemo((function(){var r=AK(e,t,!1),i=AK(n,o,!0);return"empty"!==r?r:i}),[n,o,e,t])}(q.closable,ee,I,M),ne=B&&(null!=Q?Q:g),re=Be(function(e,t,n,o){var i=Be((0,r.useState)(void 0),2),a=i[0],l=i[1];Ot((function(){var t="function"==typeof e?e():e;l(t||null)}));var c=Be((0,r.useState)(null),2),s=c[0],u=c[1],d=qn((function(){if(a){r=a,i=window.innerWidth||document.documentElement.clientWidth,l=window.innerHeight||document.documentElement.clientHeight,s=(c=r.getBoundingClientRect()).top,d=c.right,f=c.bottom,p=c.left,!(s>=0&&p>=0&&d<=i&&f<=l)&&t&&a.scrollIntoView(o);var e=a.getBoundingClientRect(),n={left:e.left,top:e.top,width:e.width,height:e.height,radius:0};u((function(e){return JSON.stringify(e)!==JSON.stringify(n)?n:e}))}else u(null);var r,i,l,c,s,d,f,p})),f=function(e){var t;return null!==(t=Array.isArray(null==n?void 0:n.offset)?null==n?void 0:n.offset[e]:null==n?void 0:n.offset)&&void 0!==t?t:6};return Ot((function(){return d(),window.addEventListener("resize",d),function(){window.removeEventListener("resize",d)}}),[a,t,d]),[(0,r.useMemo)((function(){if(!s)return s;var e,t=f(0),r=f(1),o="number"!=typeof(e=null==n?void 0:n.radius)||Number.isNaN(e)?2:null==n?void 0:n.radius;return{left:s.left-t,top:s.top-r,width:s.width+2*t,height:s.height+2*r,radius:o}}),[s,n]),a]}(K,p,S,null!=J?J:E),2),oe=re[0],ie=re[1],ae=function(e,t,n){var r;return null!==(r=null!=n?n:t)&&void 0!==r?r:null===e?"center":"bottom"}(ie,x,X),le=!!ie&&(void 0===Y?v:Y),ce="object"===b(le)&&le.pointAtCenter;Ot((function(){var e;null===(e=T.current)||void 0===e||e.forceAlign()}),[ce,z]);var se=function(e){_(e),null==u||u(e)},ue=(0,r.useMemo)((function(){return N?"function"==typeof N?N({arrowPointAtCenter:ce}):N:HK(ce)}),[N,ce]);if(void 0===ie||!F)return null;var de=function(){H(!1),null==d||d(z)},fe="boolean"==typeof ne?ne:!!ne,pe="boolean"==typeof ne?void 0:ne;return r.createElement(r.Fragment,null,r.createElement(_K,{zIndex:j,prefixCls:n,pos:oe,showMask:fe,style:null==pe?void 0:pe.style,fill:null==pe?void 0:pe.color,open:B,animated:$,rootClassName:y,disabledInteraction:P}),r.createElement(Dh,(0,l.A)({},R,{builtinPlacements:ue,ref:T,popupStyle:G,popupPlacement:ae,popupVisible:B,popupClassName:a()(y,U),prefixCls:n,popup:function(){return r.createElement(FK,(0,l.A)({arrow:le,key:"content",prefixCls:n,total:i.length,renderPanel:C,onPrev:function(){se(z-1)},onNext:function(){se(z+1)},onClose:de,current:z,onFinish:function(){de(),null==f||f()}},i[z],{closable:te}))},forceRender:!1,destroyPopupOnHide:!0,zIndex:j,getTriggerDOMNode:function(e){return e||ie||document.body},arrow:!!le}),r.createElement(Fd,{open:B,autoLock:!0},r.createElement("div",{className:a()(y,"".concat(n,"-target-placeholder")),style:w(w({},oe||VK),{},{position:"fixed",pointerEvents:"none"})}))))};function XK(e){return null!=e}const GK=e=>{var t,n;const{stepProps:r,current:i,type:l,indicatorsRender:c}=e,{prefixCls:s,total:u=1,title:d,onClose:f,onPrev:p,onNext:m,onFinish:g,cover:h,description:v,nextButtonProps:b,prevButtonProps:y,type:x,closable:C}=r,w=null!=x?x:l,S=o().createElement("button",{type:"button",onClick:f,className:`${s}-close`},(null==C?void 0:C.closeIcon)||o().createElement(Ei,{className:`${s}-close-icon`})),$=i===u-1,k=XK(d)?o().createElement("div",{className:`${s}-header`},o().createElement("div",{className:`${s}-title`},d)):null,E=XK(v)?o().createElement("div",{className:`${s}-description`},v):null,O=XK(h)?o().createElement("div",{className:`${s}-cover`},h):null;let j;j=c?c(i,u):Se(Array.from({length:u}).keys()).map(((e,t)=>o().createElement("span",{key:e,className:a()(t===i&&`${s}-indicator-active`,`${s}-indicator`)})));const M="primary"===w?"default":"primary",I={type:"default",ghost:"primary"===w},[N]=rs("Tour",Cc.Tour);return o().createElement("div",{className:`${s}-content`},o().createElement("div",{className:`${s}-inner`},C&&S,O,k,E,o().createElement("div",{className:`${s}-footer`},u>1&&o().createElement("div",{className:`${s}-indicators`},j),o().createElement("div",{className:`${s}-buttons`},0!==i?o().createElement($d,Object.assign({},I,y,{onClick:()=>{var e;null==p||p(),null===(e=null==y?void 0:y.onClick)||void 0===e||e.call(y)},size:"small",className:a()(`${s}-prev-btn`,null==y?void 0:y.className)}),null!==(t=null==y?void 0:y.children)&&void 0!==t?t:null==N?void 0:N.Previous):null,o().createElement($d,Object.assign({type:M},b,{onClick:()=>{var e;$?null==g||g():null==m||m(),null===(e=null==b?void 0:b.onClick)||void 0===e||e.call(b)},size:"small",className:a()(`${s}-next-btn`,null==b?void 0:b.className)}),null!==(n=null==b?void 0:b.children)&&void 0!==n?n:$?null==N?void 0:N.Finish:null==N?void 0:N.Next)))))},YK=e=>{const{componentCls:t,padding:n,paddingXS:r,borderRadius:o,borderRadiusXS:i,colorPrimary:a,colorFill:l,indicatorHeight:c,indicatorWidth:s,boxShadowTertiary:u,zIndexPopup:d,colorBgElevated:f,fontWeightStrong:p,marginXS:m,colorTextLightSolid:g,tourBorderRadius:h,colorWhite:v,primaryNextBtnHoverBg:b,closeBtnSize:y,motionDurationSlow:x,antCls:C,primaryPrevBtnBg:w}=e;return[{[t]:Object.assign(Object.assign({},pr(e)),{position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":f,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:h,boxShadow:u,position:"relative",backgroundColor:f,border:"none",backgroundClip:"padding-box",[`${t}-close`]:Object.assign({position:"absolute",top:n,insetInlineEnd:n,color:e.colorIcon,background:"none",border:"none",width:y,height:y,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},hr(e)),[`${t}-cover`]:{textAlign:"center",padding:`${yt(e.calc(n).add(y).add(r).equal())} ${yt(n)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${yt(n)} ${yt(n)} ${yt(r)}`,width:`calc(100% - ${yt(y)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:p}},[`${t}-description`]:{padding:`0 ${yt(n)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${yt(r)} ${yt(n)} ${yt(n)}`,textAlign:"end",borderRadius:`0 0 ${yt(i)} ${yt(i)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:s,height:c,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${C}-btn`]:{marginInlineStart:m}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:o,boxShadow:u,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:w,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:w,backgroundColor:a,"&:hover":{backgroundColor:w,borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:v,"&:hover":{background:b}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${x}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(h,8)}}},My(e,"var(--antd-arrow-background-color)")]},UK=Vo("Tour",(e=>{const{borderRadiusLG:t}=e,n=ir(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return[YK(n)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new Co(e.colorTextLightSolid).setAlpha(.15).toRgbString(),primaryNextBtnHoverBg:new Co(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString()},Oy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),ky(e))));const QK=Ig((e=>{const{prefixCls:t,current:n=0,total:o=6,className:i,style:l,type:c,closable:s,closeIcon:u}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);or.isValidElement(e)?Na(e,{className:a()(e.props.className,`${p}-close-icon`)}):e});return m(r.createElement(Uy,{prefixCls:p,hashId:g,className:a()(i,`${p}-pure`,c&&`${p}-${c}`,h),style:l},r.createElement(GK,{stepProps:Object.assign(Object.assign({},d),{prefixCls:p,total:o,closable:v?{closeIcon:b}:void 0}),current:n,type:c})))}));const ZK=e=>{const{prefixCls:t,type:n,rootClassName:i,indicatorsRender:l,steps:c,closeIcon:s}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);onull==c?void 0:c.map((e=>{var t;return Object.assign(Object.assign({},e),{className:a()(e.className,{[`${m}-primary`]:"primary"===(null!==(t=e.type)&&void 0!==t?t:n)})})}))),[c,n]),x=a()({[`${m}-rtl`]:"rtl"===f},h,v,i),[C,w]=Bl("Tour",u.zIndex);return g(o().createElement(Tl.Provider,{value:w},o().createElement(KK,Object.assign({},u,{closeIcon:null!=s?s:null==p?void 0:p.closeIcon,zIndex:C,rootClassName:x,prefixCls:m,animated:!0,renderPanel:(e,t)=>o().createElement(GK,{type:n,stepProps:e,current:t,indicatorsRender:l}),builtinPlacements:e=>{var t;return Ry({arrowPointAtCenter:null===(t=null==e?void 0:e.arrowPointAtCenter)||void 0===t||t,autoAdjustOverflow:!0,offset:b.marginXXS,arrowWidth:b.sizePopupArrow,borderRadius:b.borderRadius})},steps:y}))))};ZK._InternalPanelDoNotUseOrYouWillBeFired=QK;const JK=ZK,eX=e=>{const t=new Map;return e.forEach(((e,n)=>{t.set(e,n)})),t},tX=[];function nX(e,t){const n=e.filter((e=>t.has(e)));return e.length===n.length?e:n}function rX(e){return Array.from(e).join(";")}const oX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var iX=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:oX}))};const aX=r.forwardRef(iX),lX=e=>{const{renderedText:t,renderedEl:n,item:o,checked:i,disabled:l,prefixCls:c,onClick:s,onRemove:u,showRemove:d}=e,f=a()(`${c}-content-item`,{[`${c}-content-item-disabled`]:l||o.disabled,[`${c}-content-item-checked`]:i});let p;"string"!=typeof t&&"number"!=typeof t||(p=String(t));const[m]=rs("Transfer",Cc.Transfer),g={className:f,title:p},h=r.createElement("span",{className:`${c}-content-item-text`},n);return d?r.createElement("li",Object.assign({},g),h,r.createElement("button",{type:"button",disabled:l||o.disabled,className:`${c}-content-item-remove`,"aria-label":null==m?void 0:m.remove,onClick:()=>null==u?void 0:u(o)},r.createElement(aX,null))):(g.onClick=l||o.disabled?void 0:e=>s(o,e),r.createElement("li",Object.assign({},g),r.createElement(NM,{className:`${c}-checkbox`,checked:i,disabled:l||o.disabled}),h))},cX=r.memo(lX),sX=["handleFilter","handleClear","checkedKeys"],uX=(e,t)=>{const{prefixCls:n,filteredRenderItems:o,selectedKeys:i,disabled:l,showRemove:c,pagination:s,onScroll:u,onItemSelect:d,onItemRemove:f}=e,[p,m]=r.useState(1),g=r.useMemo((()=>s?(e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e))("object"==typeof s?s:{}):null),[s]),[h,v]=Gn(10,{value:null==g?void 0:g.pageSize});r.useEffect((()=>{if(g){const e=Math.ceil(o.length/h);m(Math.min(p,e))}}),[o,g,h]);const b=(e,t)=>{d(e.key,!i.includes(e.key),t)},y=e=>{null==f||f([e.key])},x=r.useMemo((()=>g?o.slice((p-1)*h,p*h):o),[p,o,g,h]);r.useImperativeHandle(t,(()=>({items:x})));const C=g?r.createElement(J_,{size:"small",disabled:l,simple:g.simple,pageSize:h,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:o.length,current:p,onChange:e=>{m(e)},onShowSizeChange:(e,t)=>{m(e),v(t)}}):null,w=a()(`${n}-content`,{[`${n}-content-show-remove`]:c});return r.createElement(r.Fragment,null,r.createElement("ul",{className:w,onScroll:u},(x||[]).map((e=>{let{renderedEl:t,renderedText:o,item:a}=e;return r.createElement(cX,{key:a.key,item:a,renderedText:o,renderedEl:t,prefixCls:n,showRemove:c,onClick:b,onRemove:y,checked:i.includes(a.key),disabled:l||a.disabled})}))),C)},dX=r.forwardRef(uX),fX=e=>{const{placeholder:t="",value:n,prefixCls:o,disabled:i,onChange:a,handleClear:l}=e,c=r.useCallback((e=>{null==a||a(e),""===e.target.value&&(null==l||l())}),[a]);return r.createElement(aP,{placeholder:t,className:o,value:n,onChange:c,disabled:i,allowClear:!0,prefix:r.createElement(qb,null)})},pX=()=>null;function mX(e){return e.filter((e=>!e.disabled)).map((e=>e.key))}const gX=e=>{const{prefixCls:t,dataSource:n=[],titleText:i="",checkedKeys:l,disabled:c,showSearch:s=!1,style:u,searchPlaceholder:d,notFoundContent:f,selectAll:p,deselectAll:m,selectCurrent:g,selectInvert:h,removeAll:v,removeCurrent:b,showSelectAll:y=!0,showRemove:x,pagination:C,direction:w,itemsUnit:S,itemUnit:$,selectAllLabel:k,selectionsIcon:E,footer:O,renderList:j,onItemSelectAll:M,onItemRemove:I,handleFilter:N,handleClear:P,filterOption:R,render:T=pX}=e,[A,z]=(0,r.useState)(""),_=(0,r.useRef)({}),D=e=>{z(e.target.value),N(e)},B=()=>{z(""),P()},H=(0,r.useMemo)((()=>Array.isArray(f)?f["left"===w?0:1]:f),[f,w]),[L,F]=(0,r.useMemo)((()=>{const e=[],t=[];return n.forEach((n=>{const r=(e=>{const t=T(e),n=function(e){return!(!e||o().isValidElement(e)||"[object Object]"!==Object.prototype.toString.call(e))}(t);return{item:e,renderedEl:n?t.label:t,renderedText:n?t.value:t}})(n);A&&!((e,t)=>R?R(A,t,w):e.includes(A))(r.renderedText,n)||(e.push(n),t.push(r))})),[e,t]}),[n,A]),W=(0,r.useMemo)((()=>{if(0===l.length)return"none";const e=eX(l);return L.every((t=>e.has(t.key)||!!t.disabled))?"all":"part"}),[l,L]),V=(0,r.useMemo)((()=>{const n=s?o().createElement("div",{className:`${t}-body-search-wrapper`},o().createElement(fX,{prefixCls:`${t}-search`,onChange:D,handleClear:B,placeholder:d,value:A,disabled:c})):null,{customize:r,bodyContent:i}=(e=>{let t=j?j(Object.assign(Object.assign({},e),{onItemSelect:(t,n)=>e.onItemSelect(t,n)})):null;const n=!!t;return n||(t=o().createElement(dX,Object.assign({ref:_},e))),{customize:n,bodyContent:t}})(Object.assign(Object.assign({},ye(e,sX)),{filteredItems:L,filteredRenderItems:F,selectedKeys:l}));let u;return u=r?o().createElement("div",{className:`${t}-body-customize-wrapper`},i):L.length?i:o().createElement("div",{className:`${t}-body-not-found`},H),o().createElement("div",{className:a()(s?`${t}-body ${t}-body-with-search`:`${t}-body`)},n,u)}),[s,t,d,A,c,l,L,F,H]),q=o().createElement(NM,{disabled:0===n.length||c,checked:"all"===W,indeterminate:"part"===W,className:`${t}-checkbox`,onChange:()=>{null==M||M(L.filter((e=>!e.disabled)).map((e=>{let{key:t}=e;return t})),"all"!==W)}}),K=O&&(O.length<2?O(e):O(e,{direction:w})),X=a()(t,{[`${t}-with-pagination`]:!!C,[`${t}-with-footer`]:!!K}),G=K?o().createElement("div",{className:`${t}-footer`},K):null,Y=!x&&!C&&q;let U;U=x?[C?{key:"removeCurrent",label:b,onClick(){var e;const t=mX(((null===(e=_.current)||void 0===e?void 0:e.items)||[]).map((e=>e.item)));null==I||I(t)}}:null,{key:"removeAll",label:v,onClick(){null==I||I(mX(L))}}].filter(Boolean):[{key:"selectAll",label:"all"===W?m:p,onClick(){const e=mX(L);null==M||M(e,e.length!==l.length)}},C?{key:"selectCurrent",label:g,onClick(){var e;const t=(null===(e=_.current)||void 0===e?void 0:e.items)||[];null==M||M(mX(t.map((e=>e.item))),!0)}}:null,{key:"selectInvert",label:h,onClick(){var e;const t=mX(((null===(e=_.current)||void 0===e?void 0:e.items)||[]).map((e=>e.item))),n=new Set(l),r=new Set(n);t.forEach((e=>{n.has(e)?r.delete(e):r.add(e)})),null==M||M(Array.from(r),"replace")}}];const Q=o().createElement(KT,{className:`${t}-header-dropdown`,menu:{items:U},disabled:c},void 0!==E?E:o().createElement(Fb,null));return o().createElement("div",{className:X,style:u},o().createElement("div",{className:`${t}-header`},y?o().createElement(o().Fragment,null,Y,Q):null,o().createElement("span",{className:`${t}-header-selected`},((e,t)=>{if(k)return"function"==typeof k?k({selectedCount:e,totalCount:t}):k;const n=t>1?S:$;return o().createElement(o().Fragment,null,(e>0?`${e}/`:"")+t," ",n)})(l.length,L.length)),o().createElement("span",{className:`${t}-header-title`},i)),V,G)},hX=e=>{const{disabled:t,moveToLeft:n,moveToRight:o,leftArrowText:i="",rightArrowText:a="",leftActive:l,rightActive:c,className:s,style:u,direction:d,oneWay:f}=e;return r.createElement("div",{className:s,style:u},r.createElement($d,{type:"primary",size:"small",disabled:t||!c,onClick:o,icon:"rtl"!==d?r.createElement(fu,null):r.createElement(lw,null)},a),!f&&r.createElement($d,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:"rtl"!==d?r.createElement(lw,null):r.createElement(fu,null)},i))},vX=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o}=e,i=`${t}-table`,a=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:o,minWidth:o}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},bX=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},yX=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},bX(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},bX(e,e.colorWarning))}},xX=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:c,controlItemBgActive:s,colorTextDisabled:u,colorTextSecondary:d,listHeight:f,listWidth:p,listWidthLG:m,fontSizeIcon:g,marginXS:h,paddingSM:v,lineType:b,antCls:y,iconCls:x,motionDurationSlow:C,controlItemBgHover:w,borderRadiusLG:S,colorBgContainer:$,colorText:k,controlItemBgActiveHover:E}=e;return{display:"flex",flexDirection:"column",width:p,height:f,border:`${yt(o)} ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${x}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${yt(e.calc(l).sub(o).equal())} ${yt(v)} ${yt(l)}`,color:k,background:$,borderBottom:`${yt(o)} ${b} ${r}`,borderRadius:`${yt(S)} ${yt(S)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},fr),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:v}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${yt(c)} ${yt(v)}`,transition:`all ${C}`,"> *:not(:last-child)":{marginInlineEnd:h},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},fr),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},vr(e)),{color:n,"&:hover, &:focus":{color:d}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:w,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:E}},"&-checked":{backgroundColor:s},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${yt(o)} ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${yt(o)} ${b} ${r}`},"&-checkbox":{lineHeight:1}}},CX=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:o,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:l}=e;return{[r]:Object.assign(Object.assign({},pr(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:l}},[`${r}-list`]:xX(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${yt(o)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${n}`]:{fontSize:a}}})}},wX=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},SX=Vo("Transfer",(e=>{const t=ir(e);return[CX(t),vX(t),yX(t),wX(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o,lineWidth:i}=e,a=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-a)/2,transferHeaderVerticalPadding:Math.ceil((o-i-a)/2)}})),$X=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:i,selectAllLabels:l=[],operations:c=[],style:s={},listStyle:u={},locale:d={},titles:f,disabled:p,showSearch:m=!1,operationStyle:g,showSelectAll:h,oneWay:v,pagination:b,status:y,prefixCls:x,className:C,rootClassName:w,selectionsIcon:S,filterOption:$,render:k,footer:E,children:O,rowKey:j,onScroll:M,onChange:I,onSearch:N,onSelectChange:P}=e,{getPrefixCls:R,renderEmpty:T,direction:A,transfer:z}=(0,r.useContext)(Ae),_=R("transfer",x),[D,B,H]=SX(_),[L,F,W]=((e,t,n)=>{const o=r.useMemo((()=>(e||[]).map((e=>t?Object.assign(Object.assign({},e),{key:t(e)}):e))),[e,t]),[i,a]=r.useMemo((()=>{const e=[],t=new Array((n||[]).length),r=eX(n||[]);return o.forEach((n=>{r.has(n.key)?t[r.get(n.key)]=n:e.push(n)})),[e,t]}),[o,n,t]);return[o,i,a]})(t,j,n),[V,q,K,X]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tX;const[o,i]=r.useMemo((()=>[new Set(e.map((e=>e.key))),new Set(t.map((e=>e.key)))]),[e,t]),[a,l]=r.useState((()=>nX(n,o))),[c,s]=r.useState((()=>nX(n,i)));return r.useEffect((()=>{l(nX(n,o)),s(nX(n,i))}),[n]),r.useEffect((()=>{l(nX(a,o)),s(nX(c,i))}),[rX(o),rX(i)]),[a,c,l,s]}(F,W,i),[G,Y]=TW((e=>e.key)),[U,Q]=TW((e=>e.key)),Z=(0,r.useCallback)(((e,t)=>{if("left"===e){const e="function"==typeof t?t(V||[]):t;K(e)}else{const e="function"==typeof t?t(q||[]):t;X(e)}}),[V,q]),J=(e,t)=>{("left"===e?Y:Q)(t)},ee=(0,r.useCallback)(((e,t)=>{"left"===e?null==P||P(t,q):null==P||P(V,t)}),[V,q]),te=e=>{const t="right"===e?V:q,r=(e=>{const t=new Map;return e.forEach(((e,n)=>{let{disabled:r,key:o}=e;r&&t.set(o,n)})),t})(L),o=t.filter((e=>!r.has(e))),i=eX(o),a="right"===e?o.concat(n):n.filter((e=>!i.has(e))),l="right"===e?"left":"right";Z(l,[]),ee(l,[]),null==I||I(a,e,o)},ne=(e,t,n)=>{Z(e,(r=>{let o=[];if("replace"===n)o=t;else if(n)o=Array.from(new Set([].concat(Se(r),Se(t))));else{const e=eX(t);o=r.filter((t=>!e.has(t)))}return ee(e,o),o})),J(e,null)},re=(t,n,r,o)=>{const i="left"===t,a=Se(i?V:q),l=new Set(a),c=Se(i?F:W).filter((e=>!(null==e?void 0:e.disabled))),s=c.findIndex((e=>e.key===n));o&&a.length>0?((e,t,n,r)=>{("left"===e?G:U)(r,t,n)})(t,c,l,s):((e,t,n,r,o)=>{t.has(n)&&(t.delete(n),J(e,null)),r&&(t.add(n),J(e,o))})(t,l,n,r,s);const u=Array.from(l);ee(t,u),e.selectedKeys||Z(t,u)},oe=e=>"function"==typeof u?u({direction:e}):u||{},ie=(0,r.useContext)(Ep),{hasFeedback:ae,status:le}=ie,ce=Bv(le,y),se=!O&&b,ue=q.length>0,de=V.length>0,fe=a()(_,{[`${_}-disabled`]:p,[`${_}-customize-list`]:!!O,[`${_}-rtl`]:"rtl"===A},Dv(_,ce,ae),null==z?void 0:z.className,C,w,B,H),[pe]=rs("Transfer",Cc.Transfer),me=(ge=pe,Object.assign(Object.assign(Object.assign({},ge),{notFoundContent:(null==T?void 0:T("Transfer"))||o().createElement(Gv,{componentName:"Transfer"})}),d));var ge;const[he,ve]=(e=>{var t;return null!==(t=null!=f?f:e.titles)&&void 0!==t?t:[]})(me),be=null!=S?S:null==z?void 0:z.selectionsIcon;return D(o().createElement("div",{className:fe,style:Object.assign(Object.assign({},null==z?void 0:z.style),s)},o().createElement(gX,Object.assign({prefixCls:`${_}-list`,titleText:he,dataSource:F,filterOption:$,style:oe("left"),checkedKeys:V,handleFilter:e=>null==N?void 0:N("left",e.target.value),handleClear:()=>null==N?void 0:N("left",""),onItemSelect:(e,t,n)=>{re("left",e,t,null==n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ne("left",e,t)},render:k,showSearch:m,renderList:O,footer:E,onScroll:e=>{null==M||M("left",e)},disabled:p,direction:"rtl"===A?"right":"left",showSelectAll:h,selectAllLabel:l[0],pagination:se,selectionsIcon:be},me)),o().createElement(hX,{className:`${_}-operation`,rightActive:de,rightArrowText:c[0],moveToRight:()=>{te("right"),J("right",null)},leftActive:ue,leftArrowText:c[1],moveToLeft:()=>{te("left"),J("left",null)},style:g,disabled:p,direction:A,oneWay:v}),o().createElement(gX,Object.assign({prefixCls:`${_}-list`,titleText:ve,dataSource:W,filterOption:$,style:oe("right"),checkedKeys:q,handleFilter:e=>null==N?void 0:N("right",e.target.value),handleClear:()=>null==N?void 0:N("right",""),onItemSelect:(e,t,n)=>{re("right",e,t,null==n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ne("right",e,t)},onItemRemove:e=>{Z("right",[]),null==I||I(n.filter((t=>!e.includes(t))),"left",Se(e))},render:k,showSearch:m,renderList:O,footer:E,onScroll:e=>{null==M||M("right",e)},disabled:p,direction:"rtl"===A?"left":"right",showSelectAll:h,selectAllLabel:l[1],showRemove:v,pagination:se,selectionsIcon:be},me))))};$X.List=gX,$X.Search=fX,$X.Operation=hX;const kX=$X,EX=function(){return null};var OX=["children","value"];function jX(e){return s(e).map((function(e){if(!r.isValidElement(e)||!e.type)return null;var t=e,n=t.key,o=t.props,i=o.children,a=w({key:n,value:o.value},ni(o,OX)),l=jX(i);return l.length&&(a.children=l),a})).filter((function(e){return e}))}function MX(e){if(!e)return e;var t=w({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return v(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function IX(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}function NX(e,t,n){return r.useMemo((function(){return e?n?function(e,t){var n=t.id,r=t.pId,o=t.rootPId,i={},a=[],l=e.map((function(e){var t=w({},e),r=t[n];return i[r]=t,t.key=t.key||r,t}));return l.forEach((function(e){var t=e[r],n=i[t];n&&(n.children=n.children||[],n.children.push(e)),(t===o||!n&&null===o)&&a.push(e)})),a}(e,w({id:"id",pId:"pId",rootPId:null},!0!==n?n:{})):e:jX(t)}),[t,n,e])}const PX=r.createContext(null),RX=r.createContext(null);function TX(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable}function AX(e){return null==e}var zX={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_X=function(e,t){var n=Ag(),o=n.prefixCls,i=n.multiple,a=n.searchValue,c=n.toggleOpen,s=n.open,u=n.notFoundContent,d=r.useContext(RX),f=d.virtual,p=d.listHeight,m=d.listItemHeight,g=d.listItemScrollOffset,h=d.treeData,v=d.fieldNames,b=d.onSelect,y=d.dropdownMatchSelectWidth,x=d.treeExpandAction,C=d.treeTitleRender,w=d.onPopupScroll,S=r.useContext(PX),$=S.checkable,k=S.checkedKeys,E=S.halfCheckedKeys,O=S.treeExpandedKeys,M=S.treeDefaultExpandAll,I=S.treeDefaultExpandedKeys,N=S.onTreeExpand,P=S.treeIcon,R=S.showTreeIcon,T=S.switcherIcon,A=S.treeLine,z=S.treeNodeFilterProp,_=S.loadData,D=S.treeLoadedKeys,B=S.treeMotion,H=S.onTreeLoad,L=S.keyEntities,F=r.useRef(),W=j((function(){return h}),[s,h],(function(e,t){return t[0]&&e[1]!==t[1]})),V=Be(r.useState(null),2),q=V[0],K=V[1],X=L[q],G=r.useMemo((function(){return $?{checked:k,halfChecked:E}:null}),[$,k,E]);r.useEffect((function(){var e;s&&!i&&k.length&&(null===(e=F.current)||void 0===e||e.scrollTo({key:k[0]}),K(k[0]))}),[s]);var Y=String(a).toLowerCase(),U=Be(r.useState(I),2),Q=U[0],Z=U[1],J=Be(r.useState(null),2),ee=J[0],te=J[1],ne=r.useMemo((function(){return O?Se(O):a?ee:Q}),[Q,ee,O,a]);r.useEffect((function(){a&&te(function(e,t){var n=[];return function e(r){r.forEach((function(r){var o=r[t.children];o&&(n.push(r[t.value]),e(o))}))}(e),n}(h,v))}),[a]);var re=function(e){e.preventDefault()},oe=function(e,t){var n=t.node;$&&TX(n)||(b(n.key,{selected:!k.includes(n.key)}),i||c(!1))};if(r.useImperativeHandle(t,(function(){var e;return{scrollTo:null===(e=F.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case bl.UP:case bl.DOWN:case bl.LEFT:case bl.RIGHT:null===(t=F.current)||void 0===t||t.onKeyDown(e);break;case bl.ENTER:if(X){var n=(null==X?void 0:X.node)||{},r=n.selectable,o=n.value;!1!==r&&oe(0,{node:{key:q},selected:!k.includes(o)})}break;case bl.ESC:c(!1)}},onKeyUp:function(){}}})),0===W.length)return r.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:re},u);var ie={fieldNames:v};return D&&(ie.loadedKeys=D),ne&&(ie.expandedKeys=ne),r.createElement("div",{onMouseDown:re},X&&s&&r.createElement("span",{style:zX,"aria-live":"assertive"},X.node.value),r.createElement(uV,(0,l.A)({ref:F,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:W,height:p,itemHeight:m,itemScrollOffset:g,virtual:!1!==f&&!1!==y,multiple:i,icon:P,showIcon:R,switcherIcon:T,showLine:A,loadData:a?null:_,motion:B,activeKey:q,checkable:$,checkStrictly:!0,checkedKeys:G,selectedKeys:$?[]:k,defaultExpandAll:M,titleRender:C},ie,{onActiveChange:K,onSelect:oe,onCheck:oe,onExpand:function(e){Z(e),te(e),N&&N(e)},onLoad:H,filterTreeNode:function(e){return!!Y&&String(e[z]).toLowerCase().includes(Y)},expandAction:x,onScroll:w})))};const DX=r.forwardRef(_X);var BX="SHOW_ALL",HX="SHOW_PARENT",LX="SHOW_CHILD";function FX(e,t,n,r){var o=new Set(e);return t===LX?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.some((function(e){var t=e.node;return o.has(t[r.value])}))&&t.children.every((function(e){var t=e.node;return TX(t)||o.has(t[r.value])})))})):t===HX?e.filter((function(e){var t=n[e],r=t?t.parent:null;return!(r&&!TX(r.node)&&o.has(r.key))})):e}var WX=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"],VX=r.forwardRef((function(e,t){var n,o,i=e.id,a=e.prefixCls,c=void 0===a?"rc-tree-select":a,s=e.value,u=e.defaultValue,d=e.onChange,f=e.onSelect,p=e.onDeselect,m=e.searchValue,g=e.inputValue,h=e.onSearch,y=e.autoClearSearchValue,C=void 0===y||y,S=e.filterTreeNode,$=e.treeNodeFilterProp,k=void 0===$?"value":$,E=e.showCheckedStrategy,O=e.treeNodeLabelProp,j=e.multiple,M=e.treeCheckable,I=e.treeCheckStrictly,N=e.labelInValue,P=e.fieldNames,R=e.treeDataSimpleMode,T=e.treeData,A=e.children,z=e.loadData,_=e.treeLoadedKeys,D=e.onTreeLoad,B=e.treeDefaultExpandAll,H=e.treeExpandedKeys,L=e.treeDefaultExpandedKeys,F=e.onTreeExpand,W=e.treeExpandAction,V=e.virtual,q=e.listHeight,K=void 0===q?200:q,X=e.listItemHeight,G=void 0===X?20:X,Y=e.listItemScrollOffset,U=void 0===Y?0:Y,Q=e.onDropdownVisibleChange,Z=e.dropdownMatchSelectWidth,J=void 0===Z||Z,ee=e.treeLine,te=e.treeIcon,ne=e.showTreeIcon,re=e.switcherIcon,oe=e.treeMotion,ie=e.treeTitleRender,ae=e.onPopupScroll,le=ni(e,WX),ce=Ov(i),se=M&&!I,ue=M||I,de=I||N,fe=ue||j,pe=Be(Gn(u,{value:s}),2),me=pe[0],ge=pe[1],he=r.useMemo((function(){return M?E||LX:BX}),[E,M]),ve=r.useMemo((function(){return function(e){var t=e||{},n=t.label,r=t.value||"value";return{_title:n?[n]:["title","label"],value:r,key:r,children:t.children||"children"}}(P)}),[JSON.stringify(P)]),be=Be(Gn("",{value:void 0!==m?m:g,postState:function(e){return e||""}}),2),ye=be[0],xe=be[1],Ce=NX(T,A,R),we=function(e,t){return r.useMemo((function(){return Hj(e,{fieldNames:t,initWrapper:function(e){return w(w({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var r=e.node[t.value];n.valueEntities.set(r,e)}})}),[e,t])}(Ce,ve),$e=we.keyEntities,ke=we.valueEntities,Ee=r.useCallback((function(e){var t=[],n=[];return e.forEach((function(e){ke.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}}),[ke]),Oe=function(e,t,n){var o=n.treeNodeFilterProp,i=n.filterTreeNode,a=n.fieldNames.children;return r.useMemo((function(){if(!t||!1===i)return e;var n;if("function"==typeof i)n=i;else{var r=t.toUpperCase();n=function(e,t){var n=t[o];return String(n).toUpperCase().includes(r)}}return function e(r){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce((function(r,i){var l=i[a],c=o||n(t,MX(i)),s=e(l||[],c);return(c||s.length)&&r.push(w(w({},i),{},x({isLeaf:void 0},a,s))),r}),[])}(e)}),[e,t,a,o,i])}(Ce,ye,{fieldNames:ve,treeNodeFilterProp:k,filterTreeNode:S}),je=r.useCallback((function(e){if(e){if(O)return e[O];for(var t=ve._title,n=0;n1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.map((function(o,u){var d="".concat(i,"-").concat(u),f=o[a.value],p=n.includes(f),m=e(o[a.children]||[],d,p),g=r.createElement(EX,o,m.map((function(e){return e.node})));if(t===f&&(l=g),p){var h={pos:d,node:g,children:m};return s||c.push(h),h}return null})).filter((function(e){return e}))}(o),c.sort((function(e,t){var r=e.node.props.value,o=t.node.props.value;return n.indexOf(r)-n.indexOf(o)})))}Object.defineProperty(e,"triggerNode",{get:function(){return v(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),l}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return v(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),i?c:c.map((function(e){return e.node}))}})}(m,c,e,Ce,g,ve),ue?m.checked=s:m.selected=s;var h=de?p:p.map((function(e){return e.value}));d(fe?h:h[0],de?null:p.map((function(e){return e.label})),m)}})),qe=r.useCallback((function(e,t){var n,r=t.selected,o=t.source,i=$e[e],a=null==i?void 0:i.node,l=null!==(n=null==a?void 0:a[ve.value])&&void 0!==n?n:e;if(fe){var c=r?[].concat(Se(Ae),[l]):De.filter((function(e){return e!==l}));if(se){var s,u=Ee(c),d=u.missingRawValues,m=u.existRawValues.map((function(e){return ke.get(e).key}));s=r?Kj(m,!0,$e).checkedKeys:Kj(m,{checked:!1,halfCheckedKeys:He},$e).checkedKeys,c=[].concat(Se(d),Se(s.map((function(e){return $e[e].node[ve.value]}))))}Ve(c,{selected:r,triggerValue:l},o||"option")}else Ve([l],{selected:!0,triggerValue:l},"option");r||!fe?null==f||f(l,MX(a)):null==p||p(l,MX(a))}),[Ee,ke,$e,ve,fe,Ae,Ve,se,f,p,De,He]),Ke=r.useCallback((function(e){if(Q){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return v(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Q(e,t)}}),[Q]),Xe=IX((function(e,t){var n=e.map((function(e){return e.value}));"clear"!==t.type?t.values.length&&qe(t.values[0].value,{selected:!1,source:"selection"}):Ve(n,{},"selection")})),Ge=r.useMemo((function(){return{virtual:V,dropdownMatchSelectWidth:J,listHeight:K,listItemHeight:G,listItemScrollOffset:U,treeData:Oe,fieldNames:ve,onSelect:qe,treeExpandAction:W,treeTitleRender:ie,onPopupScroll:ae}}),[V,J,K,G,U,Oe,ve,qe,W,ie,ae]),Ye=r.useMemo((function(){return{checkable:ue,loadData:z,treeLoadedKeys:_,onTreeLoad:D,checkedKeys:De,halfCheckedKeys:He,treeDefaultExpandAll:B,treeExpandedKeys:H,treeDefaultExpandedKeys:L,onTreeExpand:F,treeIcon:te,treeMotion:oe,showTreeIcon:ne,switcherIcon:re,treeLine:ee,treeNodeFilterProp:k,keyEntities:$e}}),[ue,z,_,D,De,He,B,H,L,F,te,oe,ne,re,ee,k,$e]);return r.createElement(RX.Provider,{value:Ge},r.createElement(PX.Provider,{value:Ye},r.createElement(Zh,(0,l.A)({ref:t},le,{id:ce,prefixCls:c,mode:fe?"multiple":void 0,displayValues:We,onDisplayValuesChange:Xe,searchValue:ye,onSearch:function(e){xe(e),null==h||h(e)},OptionList:DX,emptyOptions:!Ce.length,onDropdownVisibleChange:Ke,dropdownMatchSelectWidth:J}))))})),qX=VX;qX.TreeNode=EX,qX.SHOW_ALL=BX,qX.SHOW_PARENT=HX,qX.SHOW_CHILD=LX;const KX=qX,XX=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${yt(e.paddingXS)} ${yt(e.calc(e.paddingXS).div(2).equal())}`},jV(n,ir(e,{colorBgContainer:r})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},fM(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};const GX=(e,t)=>{var n;const{prefixCls:o,size:i,disabled:l,bordered:c=!0,className:s,rootClassName:u,treeCheckable:d,multiple:f,listHeight:p=256,listItemHeight:m=26,placement:g,notFoundContent:h,switcherIcon:v,treeLine:b,getPopupContainer:y,popupClassName:x,dropdownClassName:C,treeIcon:w=!1,transitionName:S,choiceTransitionName:$="",status:k,treeExpandAction:E,builtinPlacements:O,dropdownMatchSelectWidth:j,popupMatchSelectWidth:M,allowClear:I,variant:N,dropdownStyle:P,tagRender:R}=e,T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=ir(e,{treePrefixCls:t});return[XX(n)]}),MV)(e,n)}(q,V,Y),[ee,te]=Yv("treeSelect",N,c),ne=a()(x||C,`${q}-dropdown`,{[`${q}-dropdown-rtl`]:"rtl"===D},u,Z,G,Y,Q),re=!(!d&&!f),oe=Xb(e.suffixIcon,e.showArrow),ie=null!==(n=null!=M?M:j)&&void 0!==n?n:H,{status:ae,hasFeedback:le,isFormItemInput:ce,feedbackIcon:se}=r.useContext(Ep),ue=Bv(ae,k),{suffixIcon:de,removeIcon:fe,clearIcon:pe}=Kb(Object.assign(Object.assign({},T),{multiple:re,showSuffixIcon:oe,hasFeedback:le,feedbackIcon:se,prefixCls:W,componentName:"TreeSelect"})),me=!0===I?{clearIcon:pe}:I;let ge;ge=void 0!==h?h:(null==_?void 0:_("Select"))||r.createElement(Gv,{componentName:"Select"});const he=ye(T,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),ve=r.useMemo((()=>void 0!==g?g:"rtl"===D?"bottomRight":"bottomLeft"),[g,D]),be=ms((e=>{var t;return null!==(t=null!=i?i:K)&&void 0!==t?t:e})),xe=r.useContext(Nc),Ce=null!=l?l:xe,we=a()(!o&&q,{[`${W}-lg`]:"large"===be,[`${W}-sm`]:"small"===be,[`${W}-rtl`]:"rtl"===D,[`${W}-${ee}`]:te,[`${W}-in-form-item`]:ce},Dv(W,ue,le),X,s,u,Z,G,Y,Q),[Se]=Bl("SelectLike",null==P?void 0:P.zIndex);return U(J(r.createElement(KX,Object.assign({virtual:B,disabled:Ce},he,{dropdownMatchSelectWidth:ie,builtinPlacements:Uv(O,L),ref:t,prefixCls:W,className:we,listHeight:p,listItemHeight:m,treeCheckable:d?r.createElement("span",{className:`${W}-tree-checkbox-inner`}):d,treeLine:!!b,suffixIcon:de,multiple:re,placement:ve,removeIcon:fe,allowClear:me,switcherIcon:e=>r.createElement(LV,{prefixCls:V,switcherIcon:v,treeNodeProps:e,showLine:b}),showTreeIcon:w,notFoundContent:ge,getPopupContainer:y||A,treeMotion:null,dropdownClassName:ne,dropdownStyle:Object.assign(Object.assign({},P),{zIndex:Se}),choiceTransitionName:ts(F,"",$),transitionName:ts(F,"slide-up",S),treeExpandAction:E,tagRender:re?R:void 0}))))},YX=r.forwardRef(GX),UX=Ng(YX);YX.TreeNode=EX,YX.SHOW_ALL=BX,YX.SHOW_PARENT=HX,YX.SHOW_CHILD=LX,YX._InternalPanelDoNotUseOrYouWillBeFired=UX;const QX=YX,ZX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var JX=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:ZX}))};const eG=r.forwardRef(JX),tG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var nG=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:tG}))};const rG=r.forwardRef(nG),oG=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},iG=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},vr(e)),{[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},aG=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Gr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),lG=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${yt(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},cG=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),sG=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},oG(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),aG(e)),iG(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},vr(e)),{marginInlineStart:e.marginXXS})}),lG(e)),cG(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},uG=Vo("Typography",(e=>[sG(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),dG=e=>{const{prefixCls:t,"aria-label":n,className:o,style:i,direction:l,maxLength:c,autoSize:s=!0,value:u,onSave:d,onCancel:f,onEnd:p,component:m,enterIcon:g=r.createElement(rG,null)}=e,h=r.useRef(null),v=r.useRef(!1),b=r.useRef(),[y,x]=r.useState(u);r.useEffect((()=>{x(u)}),[u]),r.useEffect((()=>{var e;if(null===(e=h.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=h.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const C=()=>{d(y.trim())},[w,S,$]=uG(t),k=a()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===l,[`${t}-${m}`]:!!m},o,S,$);return w(r.createElement("div",{className:k,style:i},r.createElement(oP,{ref:h,maxLength:c,value:y,onChange:e=>{let{target:t}=e;x(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;v.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;b.current!==t||v.current||n||r||o||i||(t===bl.ENTER?(C(),null==p||p()):t===bl.ESC&&f())},onCompositionStart:()=>{v.current=!0},onCompositionEnd:()=>{v.current=!1},onBlur:()=>{C()},"aria-label":n,rows:1,autoSize:s}),null!==g?Na(g,{className:`${t}-edit-content-confirm`}):null))};var fG=n(7965),pG=n.n(fG);const mG=e=>{let{copyConfig:t,children:n}=e;const[o,i]=r.useState(!1),[a,l]=r.useState(!1),c=r.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};t.format&&(u.format=t.format),r.useEffect((()=>s),[]);const d=qn((e=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){var r;null==e||e.preventDefault(),null==e||e.stopPropagation(),l(!0);try{const o="function"==typeof t.text?yield t.text():t.text;pG()(o||_D(n,!0).join("")||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(r=t.onCopy)||void 0===r||r.call(t,e)}catch(e){throw l(!1),e}}))));return{copied:o,copyLoading:a,onClick:d}};function gG(e,t){return r.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}const hG=r.forwardRef(((e,t)=>{const{prefixCls:n,component:o="article",className:i,rootClassName:l,setContentRef:c,children:s,direction:u,style:d}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o["string","number"].includes(typeof e),$G=e=>{let{prefixCls:t,copied:n,locale:o,iconOnly:i,tooltips:l,icon:c,tabIndex:s,onCopy:u,loading:d}=e;const f=CG(l),p=CG(c),{copied:m,copy:g}=null!=o?o:{},h=n?m:g,v=wG(f[n?1:0],h),b="string"==typeof v?v:h;return r.createElement(qy,{title:v},r.createElement("button",{type:"button",className:a()(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:u,"aria-label":b,tabIndex:s},n?wG(p[1],r.createElement(Bb,null),!0):wG(p[0],d?r.createElement(Rl,null):r.createElement(xG,null),!0)))},kG=r.forwardRef(((e,t)=>{let{style:n,children:o}=e;const i=r.useRef(null);return r.useImperativeHandle(t,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),r.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},o)}));function EG(e,t){let n=0;const r=[];for(let o=0;ot){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const OG=0,jG=4,MG={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function IG(e){const{enableMeasure:t,width:n,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:u}=e,d=r.useMemo((()=>s(o)),[o]),f=r.useMemo((()=>(e=>e.reduce(((e,t)=>e+(SG(t)?String(t).length:1)),0))(d)),[o]),p=r.useMemo((()=>i(d,!1)),[o]),[m,g]=r.useState(null),h=r.useRef(null),v=r.useRef(null),b=r.useRef(null),y=r.useRef(null),x=r.useRef(null),[C,w]=r.useState(!1),[S,$]=r.useState(OG),[k,E]=r.useState(0),[O,j]=r.useState(null);Ot((()=>{$(t&&n&&f?1:OG)}),[n,o,a,t,d]),Ot((()=>{var e,t,n,r;if(1===S){$(2);const e=v.current&&getComputedStyle(v.current).whiteSpace;j(e)}else if(2===S){const o=!!(null===(e=b.current)||void 0===e?void 0:e.isExceed());$(o?3:jG),g(o?[0,f]:null),w(o);const i=(null===(t=b.current)||void 0===t?void 0:t.getHeight())||0,l=1===a?0:(null===(n=y.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(r=x.current)||void 0===r?void 0:r.getHeight())||0,s=Math.max(i,l+c);E(s+1),u(o)}}),[S]);const M=m?Math.ceil((m[0]+m[1])/2):0;Ot((()=>{var e;const[t,n]=m||[0,0];if(t!==n){const r=((null===(e=h.current)||void 0===e?void 0:e.getHeight())||0)>k;let o=M;n-t==1&&(o=r?t:n),g(r?[t,o]:[o,n])}}),[m,M]);const I=r.useMemo((()=>{if(!t)return i(d,!1);if(3!==S||!m||m[0]!==m[1]){const e=i(d,!1);return[jG,OG].includes(S)?e:r.createElement("span",{style:Object.assign(Object.assign({},MG),{WebkitLineClamp:a})},e)}return i(l?d:EG(d,m[0]),C)}),[l,S,m,d].concat(Se(c))),N={width:n,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return r.createElement(r.Fragment,null,I,2===S&&r.createElement(r.Fragment,null,r.createElement(kG,{style:Object.assign(Object.assign(Object.assign({},N),MG),{WebkitLineClamp:a}),ref:b},p),r.createElement(kG,{style:Object.assign(Object.assign(Object.assign({},N),MG),{WebkitLineClamp:a-1}),ref:y},p),r.createElement(kG,{style:Object.assign(Object.assign(Object.assign({},N),MG),{WebkitLineClamp:1}),ref:x},i([],!0))),3===S&&m&&m[0]!==m[1]&&r.createElement(kG,{style:Object.assign(Object.assign({},N),{top:400}),ref:h},i(EG(d,M),!0)),1===S&&r.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const NG=e=>{let{enableEllipsis:t,isEllipsis:n,children:o,tooltipProps:i}=e;return(null==i?void 0:i.title)&&t?r.createElement(qy,Object.assign({open:!!n&&void 0},i),o):o};const PG=r.forwardRef(((e,t)=>{var n;const{prefixCls:o,className:i,style:l,type:c,disabled:u,children:d,ellipsis:f,editable:p,copyable:m,component:g,title:h}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;e&&(null===(t=E.onStart)||void 0===t||t.call(E)),j(e)},P=(e=>{const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current})(O);Ot((()=>{var e;!O&&P&&(null===(e=w.current)||void 0===e||e.focus())}),[O]);const R=e=>{null==e||e.preventDefault(),N(!0)},[T,A]=gG(m),{copied:z,copyLoading:_,onClick:D}=mG({copyConfig:A,children:d}),[B,H]=r.useState(!1),[L,F]=r.useState(!1),[W,V]=r.useState(!1),[q,K]=r.useState(!1),[X,G]=r.useState(!0),[Y,U]=gG(f,{expandable:!1,symbol:e=>e?null==x?void 0:x.collapse:null==x?void 0:x.expand}),[Q,Z]=Gn(U.defaultExpanded||!1,{value:U.expanded}),J=Y&&(!Q||"collapsible"===U.expandable),{rows:ee=1}=U,te=r.useMemo((()=>J&&(void 0!==U.suffix||U.onEllipsis||U.expandable||k||T)),[J,U,k,T]);Ot((()=>{Y&&!te&&(H(vF("webkitLineClamp")),F(vF("textOverflow")))}),[te,Y]);const[ne,re]=r.useState(J),oe=r.useMemo((()=>!te&&(1===ee?L:B)),[te,L,B]);Ot((()=>{re(oe&&J)}),[oe,J]);const ie=J&&(ne?q:W),ae=J&&1===ee&&ne,le=J&&ee>1&&ne,[ce,se]=r.useState(0),ue=e=>{var t;V(e),W!==e&&(null===(t=U.onEllipsis)||void 0===t||t.call(U,e))};r.useEffect((()=>{const e=C.current;if(Y&&ne&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);q!==t&&K(t)}}),[Y,ne,d,le,X,ce]),r.useEffect((()=>{const e=C.current;if("undefined"==typeof IntersectionObserver||!e||!ne||!J)return;const t=new IntersectionObserver((()=>{G(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[ne,J]);const de=((e,t,n)=>(0,r.useMemo)((()=>!0===e?{title:null!=t?t:n}:(0,r.isValidElement)(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e}),[e,t,n]))(U.tooltip,E.text,d),fe=r.useMemo((()=>{if(Y&&!ne)return[E.text,d,h,de.title].find(SG)}),[Y,ne,h,de.title,ie]);if(O)return r.createElement(dG,{value:null!==(n=E.text)&&void 0!==n?n:"string"==typeof d?d:"",onSave:e=>{var t;null===(t=E.onChange)||void 0===t||t.call(E,e),N(!1)},onCancel:()=>{var e;null===(e=E.onCancel)||void 0===e||e.call(E),N(!1)},onEnd:E.onEnd,prefixCls:S,className:i,style:l,direction:y,component:g,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const pe=()=>{const{expandable:e,symbol:t}=U;return e?r.createElement("button",{type:"button",key:"expand",className:`${S}-${Q?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;Z(t.expanded),null===(n=U.onExpand)||void 0===n||n.call(U,e,t)})(e,{expanded:!Q}),"aria-label":Q?x.collapse:null==x?void 0:x.expand},"function"==typeof t?t(Q):t):null},me=()=>{if(!k)return;const{icon:e,tooltip:t,tabIndex:n}=E,o=s(t)[0]||(null==x?void 0:x.edit),i="string"==typeof o?o:"";return M.includes("icon")?r.createElement(qy,{key:"edit",title:!1===t?"":o},r.createElement("button",{type:"button",ref:w,className:`${S}-edit`,onClick:R,"aria-label":i,tabIndex:n},e||r.createElement(eG,{role:"button"}))):null},ge=e=>[e&&pe(),me(),T?r.createElement($G,Object.assign({key:"copy"},A,{prefixCls:S,copied:z,locale:x,onCopy:D,loading:_,iconOnly:null==d})):null];return r.createElement(be,{onResize:e=>{let{offsetWidth:t}=e;se(t)},disabled:!J},(n=>r.createElement(NG,{tooltipProps:de,enableEllipsis:J,isEllipsis:ie},r.createElement(vG,Object.assign({className:a()({[`${S}-${c}`]:c,[`${S}-disabled`]:u,[`${S}-ellipsis`]:Y,[`${S}-ellipsis-single-line`]:ae,[`${S}-ellipsis-multiple-line`]:le},i),prefixCls:o,style:Object.assign(Object.assign({},l),{WebkitLineClamp:le?ee:void 0}),component:g,ref:I(n,C,t),direction:y,onClick:M.includes("text")?R:void 0,"aria-label":null==fe?void 0:fe.toString(),title:h},$),r.createElement(IG,{enableMeasure:J&&!ne,text:d,rows:ee,width:ce,onEllipsis:ue,expanded:Q,miscDeps:[z,Q,_,k,T]},((t,n)=>function(e,t){let{mark:n,code:o,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=t;function d(e,t){t&&(u=r.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",o),d("mark",n),d("kbd",c),d("i",s),u}(e,r.createElement(r.Fragment,null,t.length>0&&n&&!Q&&fe?r.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!Q&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),U.suffix,ge(e)])(n)))))))))})),RG=PG;const TG=r.forwardRef(((e,t)=>{var{ellipsis:n,rel:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);or.createElement(RG,Object.assign({ref:t},e,{component:"div"}))));const _G=(e,t)=>{var{ellipsis:n}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);on&&"object"==typeof n?ye(n,["expandable","rows"]):n),[n]);return r.createElement(RG,Object.assign({ref:t},o,{ellipsis:i,component:"span"}))},DG=r.forwardRef(_G);const BG=[1,2,3,4,5],HG=r.forwardRef(((e,t)=>{const{level:n=1}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),VG(t)):e.onSuccess(VG(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var KG=function(){var e=ec(Zl().mark((function e(t,n){var r,o,i,a,l,c,s,u;return Zl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=function(){return(c=ec(Zl().mark((function e(t){return Zl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){t.file((function(r){n(r)?(t.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e(r)):e(null)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)},l=function(e){return c.apply(this,arguments)},a=function(){return a=ec(Zl().mark((function e(t){var n,r,o,i,a;return Zl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),r=[];case 2:return e.next=5,new Promise((function(e){n.readEntries(e,(function(){return e([])}))}));case 5:if(o=e.sent,i=o.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${yt(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${yt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${yt(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},oY=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i,calc:a}=e,l=`${t}-list-item`,c=`${l}-actions`,s=`${l}-action`,u=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[l]:{position:"relative",height:a(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},fr),{padding:`0 ${yt(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[s]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${s}:focus-visible,\n &.picture ${s}\n `]:{opacity:1},[`${s}${n}-btn`]:{height:u,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},iY=e=>{const{componentCls:t}=e,n=new zn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new zn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:gm(e)},n,r]},aY=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${yt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},fr),{width:r,height:r,lineHeight:yt(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${yt(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${Jr[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Jr.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},lY=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${yt(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${yt(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${yt(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:r,margin:`0 ${yt(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${yt(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${yt(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},cY=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},sY=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},pr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},uY=Vo("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=ir(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[sY(a),rY(a),aY(a),lY(a),oY(a),iY(a),cY(a),$u(a)]}),(e=>({actionsColor:e.colorTextDescription}))),dY={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var fY=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:dY}))};const pY=r.forwardRef(fY),mY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var gY=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:mY}))};const hY=r.forwardRef(gY),vY={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var bY=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:vY}))};const yY=r.forwardRef(bY);function xY(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function CY(e,t){const n=Se(t),r=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function wY(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const SY=e=>0===e.indexOf("image/"),$Y=e=>{if(e.type&&!e.thumbUrl)return SY(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},kY=200;function EY(e){return new Promise((t=>{if(!e.type||!SY(e.type))return void t("");const n=document.createElement("canvas");n.width=kY,n.height=kY,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=kY,l=kY,c=0,s=0;e>i?(l=i*(kY/e),s=-(l-a)/2):(a=e*(kY/i),c=-(a-l)/2),r.drawImage(o,c,s,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}const OY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var jY=function(e,t){return r.createElement(bi,(0,l.A)({},e,{ref:t,icon:OY}))};const MY=r.forwardRef(jY),IY=r.forwardRef(((e,t)=>{let{prefixCls:n,className:o,style:i,locale:l,listType:c,file:s,items:u,progress:d,iconRender:f,actionIconRender:p,itemRender:m,isImgUrl:g,showPreviewIcon:h,showRemoveIcon:v,showDownloadIcon:b,previewIcon:y,removeIcon:x,downloadIcon:C,extra:w,onPreview:S,onDownload:$,onClose:k}=e;var E,O;const{status:j}=s,[M,I]=r.useState(j);r.useEffect((()=>{"removed"!==j&&I(j)}),[j]);const[N,P]=r.useState(!1);r.useEffect((()=>{const e=setTimeout((()=>{P(!0)}),300);return()=>{clearTimeout(e)}}),[]);const R=f(s);let T=r.createElement("div",{className:`${n}-icon`},R);if("picture"===c||"picture-card"===c||"picture-circle"===c)if("uploading"===M||!s.thumbUrl&&!s.url){const e=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==M});T=r.createElement("div",{className:e},R)}else{const e=(null==g?void 0:g(s))?r.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):R,t=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});T=r.createElement("a",{className:t,onClick:e=>S(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const A=a()(`${n}-list-item`,`${n}-list-item-${M}`),z="string"==typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,_=("function"==typeof v?v(s):v)?p(("function"==typeof x?x(s):x)||r.createElement(aX,null),(()=>k(s)),n,l.removeFile,!0):null,D=("function"==typeof b?b(s):b)&&"done"===M?p(("function"==typeof C?C(s):C)||r.createElement(MY,null),(()=>$(s)),n,l.downloadFile):null,B="picture-card"!==c&&"picture-circle"!==c&&r.createElement("span",{key:"download-delete",className:a()(`${n}-list-item-actions`,{picture:"picture"===c})},D,_),H="function"==typeof w?w(s):w,L=H&&r.createElement("span",{className:`${n}-list-item-extra`},H),F=a()(`${n}-list-item-name`),W=s.url?r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:s.name},z,{href:s.url,onClick:e=>S(s,e)}),s.name,L):r.createElement("span",{key:"view",className:F,onClick:e=>S(s,e),title:s.name},s.name,L),V=("function"==typeof h?h(s):h)&&(s.url||s.thumbUrl)?r.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>S(s,e),title:l.previewFile},"function"==typeof y?y(s):y||r.createElement(LN,null)):null,q=("picture-card"===c||"picture-circle"===c)&&"uploading"!==M&&r.createElement("span",{className:`${n}-list-item-actions`},V,"done"===M&&D,_),{getPrefixCls:K}=r.useContext(Ae),X=K(),G=r.createElement("div",{className:A},T,W,B,q,N&&r.createElement(ka,{motionName:`${X}-fade`,visible:"uploading"===M,motionDeadline:2e3},(e=>{let{className:t}=e;const o="percent"in s?r.createElement(QB,Object.assign({},d,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return r.createElement("div",{className:a()(`${n}-list-item-progress`,t)},o)}))),Y=s.response&&"string"==typeof s.response?s.response:(null===(E=s.error)||void 0===E?void 0:E.statusText)||(null===(O=s.error)||void 0===O?void 0:O.message)||l.uploadError,U="error"===M?r.createElement(qy,{title:Y,getPopupContainer:e=>e.parentNode},G):G;return r.createElement("div",{className:a()(`${n}-list-item-container`,o),style:i,ref:t},m?m(U,s,u,{download:$.bind(null,s),preview:S.bind(null,s),remove:k.bind(null,s)}):U)})),NY=IY,PY=(e,t)=>{const{listType:n="text",previewFile:o=EY,onPreview:i,onDownload:l,onRemove:c,locale:s,iconRender:u,isImageUrl:d=$Y,prefixCls:f,items:p=[],showPreviewIcon:m=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:b,downloadIcon:y,extra:x,progress:C={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:S=!0,itemRender:$,disabled:k}=e,E=cy(),[O,j]=r.useState(!1),M=["picture-card","picture-circle"].includes(n);r.useEffect((()=>{n.startsWith("picture")&&(p||[]).forEach((e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==o||o(e.originFileObj).then((t=>{e.thumbUrl=t||"",E()})))}))}),[n,p,o]),r.useEffect((()=>{j(!0)}),[]);const I=(e,t)=>{if(i)return t.preventDefault(),i(e)},N=e=>{"function"==typeof l?l(e):e.url&&window.open(e.url)},P=e=>{null==c||c(e)},R=e=>{if(u)return u(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const o="picture"===n?r.createElement(Rl,null):s.uploading,i=(null==d?void 0:d(e))?r.createElement(yY,null):r.createElement(pY,null);return t?o:i}return t?r.createElement(Rl,null):r.createElement(hY,null)},T=(e,t,n,o,i)=>{const a={type:"text",size:"small",title:o,onClick:n=>{var o,i;t(),r.isValidElement(e)&&(null===(i=(o=e.props).onClick)||void 0===i||i.call(o,n))},className:`${n}-list-item-action`};return i&&(a.disabled=k),r.isValidElement(e)?r.createElement($d,Object.assign({},a,{icon:Na(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):r.createElement($d,Object.assign({},a),r.createElement("span",null,e))};r.useImperativeHandle(t,(()=>({handlePreview:I,handleDownload:N})));const{getPrefixCls:A}=r.useContext(Ae),z=A("upload",f),_=A(),D=a()(`${z}-list`,`${z}-list-${n}`),B=r.useMemo((()=>ye(ns(_),["onAppearEnd","onEnterEnd","onLeaveEnd"])),[_]),H=Object.assign(Object.assign({},M?{}:B),{motionDeadline:2e3,motionName:`${z}-${M?"animate-inline":"animate"}`,keys:Se(p.map((e=>({key:e.uid,file:e})))),motionAppear:O});return r.createElement("div",{className:D},r.createElement($a,Object.assign({},H,{component:!1}),(e=>{let{key:t,file:o,className:i,style:a}=e;return r.createElement(NY,{key:t,locale:s,prefixCls:z,className:i,style:a,file:o,items:p,progress:C,listType:n,isImgUrl:d,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:h,removeIcon:v,previewIcon:b,downloadIcon:y,extra:x,iconRender:R,actionIconRender:T,itemRender:$,onPreview:I,onDownload:N,onClose:P})})),w&&r.createElement(ka,Object.assign({},H,{visible:S,forceRender:!0}),(e=>{let{className:t,style:n}=e;return Na(w,(e=>({className:a()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))},RY=r.forwardRef(PY);const TY=`__LIST_IGNORE_${Date.now()}__`,AY=(e,t)=>{const{fileList:n,defaultFileList:o,onRemove:i,showUploadList:l=!0,listType:c="text",onPreview:s,onDownload:u,onChange:d,onDrop:f,previewFile:p,disabled:m,locale:g,iconRender:h,isImageUrl:v,progress:b,prefixCls:y,className:x,type:C="select",children:w,style:$,itemRender:k,maxCount:E,data:O={},multiple:j=!1,hasControlInside:M=!0,action:I="",accept:N="",supportServerRender:P=!0,rootClassName:R}=e,T=r.useContext(Nc),A=null!=m?m:T,[z,_]=Gn(o||[],{value:n,postState:e=>null!=e?e:[]}),[D,B]=r.useState("drop"),H=r.useRef(null),L=r.useRef(null);r.useMemo((()=>{const e=Date.now();(n||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[n]);const F=(e,t,n)=>{let r=Se(t),o=!1;1===E?r=r.slice(-1):E&&(o=r.length>E,r=r.slice(0,E)),(0,S.flushSync)((()=>{_(r)}));const i={file:e,fileList:r};n&&(i.event=n),o&&"removed"!==e.status&&!r.some((t=>t.uid===e.uid))||(0,S.flushSync)((()=>{null==d||d(i)}))},W=e=>{const t=e.filter((e=>!e.file[TY]));if(!t.length)return;const n=t.map((e=>xY(e.file)));let r=Se(z);n.forEach((e=>{r=CY(e,r)})),n.forEach(((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}F(o,r)}))},V=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!wY(t,z))return;const r=xY(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=CY(r,z);F(r,o)},q=(e,t)=>{if(!wY(t,z))return;const n=xY(t);n.status="uploading",n.percent=e.percent;const r=CY(n,z);F(n,r,e)},K=(e,t,n)=>{if(!wY(n,z))return;const r=xY(n);r.error=e,r.response=t,r.status="error";const o=CY(r,z);F(r,o)},X=e=>{let t;Promise.resolve("function"==typeof i?i(e):i).then((n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter((t=>t[n]!==e[n]));return r.length===t.length?null:r}(e,z);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==z||z.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=H.current)||void 0===r||r.abort(t),F(t,o))}))},G=e=>{B(e.type),"drop"===e.type&&(null==f||f(e))};r.useImperativeHandle(t,(()=>({onBatchStart:W,onSuccess:V,onProgress:q,onError:K,fileList:z,upload:H.current,nativeElement:L.current})));const{getPrefixCls:Y,direction:U,upload:Q}=r.useContext(Ae),Z=Y("upload",y),J=Object.assign(Object.assign({onBatchStart:W,onError:K,onProgress:q,onSuccess:V},e),{data:O,multiple:j,action:I,accept:N,supportServerRender:P,prefixCls:Z,disabled:A,beforeUpload:(t,n)=>function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[TY],e===TY)return Object.defineProperty(t,TY,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i})),onChange:void 0,hasControlInside:M});delete J.className,delete J.style,w&&!A||delete J.id;const ee=`${Z}-wrapper`,[te,ne,re]=uY(Z,ee),[oe]=rs("Upload",Cc.Upload),{showRemoveIcon:ie,showPreviewIcon:ae,showDownloadIcon:le,removeIcon:ce,previewIcon:se,downloadIcon:ue,extra:de}="boolean"==typeof l?{}:l,fe=void 0===ie?!A:ie,pe=(e,t)=>l?r.createElement(RY,{prefixCls:Z,listType:c,items:z,previewFile:p,onPreview:s,onDownload:u,onRemove:X,showRemoveIcon:fe,showPreviewIcon:ae,showDownloadIcon:le,removeIcon:ce,previewIcon:se,downloadIcon:ue,iconRender:h,extra:de,locale:Object.assign(Object.assign({},oe),g),isImageUrl:v,progress:b,appendAction:e,appendActionVisible:t,itemRender:k,disabled:A}):e,me=a()(ee,x,R,ne,re,null==Q?void 0:Q.className,{[`${Z}-rtl`]:"rtl"===U,[`${Z}-picture-card-wrapper`]:"picture-card"===c,[`${Z}-picture-circle-wrapper`]:"picture-circle"===c}),ge=Object.assign(Object.assign({},null==Q?void 0:Q.style),$);if("drag"===C){const e=a()(ne,Z,`${Z}-drag`,{[`${Z}-drag-uploading`]:z.some((e=>"uploading"===e.status)),[`${Z}-drag-hover`]:"dragover"===D,[`${Z}-disabled`]:A,[`${Z}-rtl`]:"rtl"===U});return te(r.createElement("span",{className:me,ref:L},r.createElement("div",{className:e,style:ge,onDrop:G,onDragOver:G,onDragLeave:G},r.createElement(nY,Object.assign({},J,{ref:H,className:`${Z}-btn`}),r.createElement("div",{className:`${Z}-drag-container`},w))),pe()))}const he=a()(Z,`${Z}-select`,{[`${Z}-disabled`]:A}),ve=r.createElement("div",{className:he,style:w?void 0:{display:"none"}},r.createElement(nY,Object.assign({},J,{ref:H})));return te("picture-card"===c||"picture-circle"===c?r.createElement("span",{className:me,ref:L},pe(ve,!!w)):r.createElement("span",{className:me,ref:L},ve,pe()))},zY=r.forwardRef(AY);const _Y=r.forwardRef(((e,t)=>{var{style:n,height:o,hasControlInside:i=!1}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o2&&void 0!==arguments[2]?arguments[2]:1;const r=document.createElement("canvas"),o=r.getContext("2d"),i=e*n,a=t*n;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${a}px`),o.save(),[o,r,i,a]}const WY={visibility:"visible !important"};function VY(e,t){return e.size===t.size?e:t}const qY=100,KY=100,XY={position:"relative",overflow:"hidden"},GY=e=>{var t,n;const{zIndex:i=9,rotate:l=-22,width:c,height:s,image:u,content:d,font:f={},style:p,className:m,rootClassName:g,gap:h=[qY,KY],offset:v,children:b,inherit:y=!0}=e,x=Object.assign(Object.assign({},XY),p),[,C]=Fo(),{color:w=C.colorFill,fontSize:S=C.fontSizeLG,fontWeight:$="normal",fontStyle:k="normal",fontFamily:E="sans-serif",textAlign:O="center"}=f,[j=qY,M=KY]=h,I=j/2,N=M/2,P=null!==(t=null==v?void 0:v[0])&&void 0!==t?t:I,R=null!==(n=null==v?void 0:v[1])&&void 0!==n?n:N,T=o().useMemo((()=>{const e={zIndex:i,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let t=P-I,n=R-N;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e}),[i,P,I,R,N]),[A,z]=o().useState(),[_,D]=o().useState(new Set),B=o().useMemo((()=>[].concat(A?[A]:[],Se(Array.from(_)))),[A,_]),H=function(e,t,n,r,o,i,a,l){const[c,s,u,d]=FY(r,o,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{const{color:t,fontSize:r,fontStyle:a,fontWeight:l,fontFamily:s,textAlign:d}=i,f=Number(r)*n;c.font=`${a} normal ${l} ${f}px/${o}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";const p=_D(e);null==p||p.forEach(((e,t)=>{c.fillText(null!=e?e:"",u/2,t*(f+3*n))}))}const f=Math.PI/180*Number(t),p=Math.max(r,o),[m,g,h]=FY(p,p,n);m.translate(h/2,h/2),m.rotate(f),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let v=0,b=0,y=0,x=0;const C=u/2,w=d/2;[[0-C,0-w],[0+C,0-w],[0+C,0+w],[0-C,0+w]].forEach((e=>{let[t,n]=e;const[r,o]=function(e,t){return[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)]}(t,n);v=Math.min(v,r),b=Math.max(b,r),y=Math.min(y,o),x=Math.max(x,o)}));const S=v+h/2,$=y+h/2,k=b-v,E=x-y,O=a*n,j=l*n,M=2*(k+O),I=E+j,[N,P]=FY(M,I);function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;N.drawImage(g,S,$,k,E,e,t,k,E)}return R(),R(k+O,-E/2-j/2),R(k+O,+E/2+j/2),[P.toDataURL(),M/n,I/n]},[L,F]=o().useState(null),W=function(){const e=o().useRef(!1),t=o().useRef(),n=qn((()=>{const e=document.createElement("canvas").getContext("2d");if(e){const t=window.devicePixelRatio||1,[n,r]=(e=>{let t=120,n=64;if(!u&&e.measureText){e.font=`${Number(S)}px ${E}`;const r=_D(d),o=r.map((t=>{const n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]}));t=Math.ceil(Math.max.apply(Math,Se(o.map((e=>e[0]))))),n=Math.ceil(Math.max.apply(Math,Se(o.map((e=>e[1])))))*r.length+3*(r.length-1)}return[null!=c?c:t,null!=s?s:n]})(e),o=e=>{const[o,i]=H(e||"",l,t,n,r,{color:w,fontSize:S,fontStyle:k,fontWeight:$,fontFamily:E,textAlign:O},j,M);F([o,i])};if(u){const e=new Image;e.onload=()=>{o(e)},e.onerror=()=>{o(d)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=u}else o(d)}}));return()=>{e.current||(e.current=!0,n(),t.current=Ie((()=>{e.current=!1})))}}(),[V,q,K]=function(e){const[t]=r.useState((()=>new Map));return[(n,r,o)=>{if(o){if(!t.get(o)){const e=document.createElement("div");t.set(o,e)}const i=t.get(o);i.setAttribute("style",function(e){return Object.keys(e).map((t=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(t)}: ${e[t]};`)).join(" ")}(Object.assign(Object.assign(Object.assign({},e),{backgroundImage:`url('${n}')`,backgroundSize:`${Math.floor(r)}px`}),WY))),i.removeAttribute("class"),i.parentElement!==o&&o.append(i)}return t.get(o)},e=>{const n=t.get(e);n&&e&&e.removeChild(n),t.delete(e)},e=>Array.from(t.values()).includes(e)]}(T);(0,r.useEffect)((()=>{L&&B.forEach((e=>{V(L[0],L[1],e)}))}),[L,B]);const X=qn((e=>{e.forEach((e=>{if(((e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some((e=>t(e)))),"attributes"===e.type&&t(e.target)&&(n=!0),n})(e,K))W();else if(e.target===A&&"style"===e.attributeName){const e=Object.keys(XY);for(let t=0;t2&&void 0!==arguments[2]?arguments[2]:LY;r.useEffect((function(){if(Le()&&e){var r,o=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),o.forEach((function(e){r.observe(e,n)}))),function(){var e,t;null===(e=r)||void 0===e||e.takeRecords(),null===(t=r)||void 0===t||t.disconnect()}}}),[n,e])}(B,X),(0,r.useEffect)(W,[l,i,c,s,u,d,w,S,$,k,E,O,j,M,P,R]);const G=o().useMemo((()=>({add:e=>{D((t=>{const n=new Set(t);return n.add(e),VY(t,n)}))},remove:e=>{q(e),D((t=>{const n=new Set(t);return n.delete(e),VY(t,n)}))}})),[]),Y=y?o().createElement(im.Provider,{value:G},b):b;return o().createElement("div",{ref:z,className:a()(m,g),style:x},Y)},YY=(0,r.forwardRef)(((e,t)=>{const{prefixCls:n,className:r,children:i,size:l,style:c={}}=e,s=a()(`${n}-panel`,{[`${n}-panel-hidden`]:!l},r);return o().createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},c),{flexBasis:l})},i)}));function UY(e){if(e&&"object"==typeof e)return e;const t=!!e;return{start:t,end:t}}function QY(e){return Number(e.slice(0,-1))/100}function ZY(e){return"string"==typeof e&&e.endsWith("%")}const JY=e=>{const{prefixCls:t,vertical:n,index:i,active:l,ariaNow:c,ariaMin:s,ariaMax:u,resizable:d,startCollapsible:f,endCollapsible:p,onOffsetStart:m,onOffsetUpdate:g,onOffsetEnd:h,onCollapse:v}=e,b=`${t}-bar`,[y,x]=(0,r.useState)(null);o().useEffect((()=>{if(y){const e=e=>{const{pageX:t,pageY:n}=e,r=t-y[0],o=n-y[1];g(i,r,o)},t=()=>{x(null),h()},n=e=>{if(1===e.touches.length){const t=e.touches[0],n=t.pageX-y[0],r=t.pageY-y[1];g(i,n,r)}},r=()=>{x(null),h()};return window.addEventListener("touchmove",n),window.addEventListener("touchend",r),window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchmove",n),window.removeEventListener("touchend",r)}}}),[y]);const C=n?fI:lw,w=n?Fb:fu;return o().createElement("div",{className:b,role:"separator","aria-valuenow":Math.round(c),"aria-valuemin":Math.round(s),"aria-valuemax":Math.round(u)},o().createElement("div",{className:a()(`${b}-dragger`,{[`${b}-dragger-disabled`]:!d,[`${b}-dragger-active`]:l}),onMouseDown:e=>{d&&e.currentTarget&&(x([e.pageX,e.pageY]),m(i))},onTouchStart:e=>{if(d&&1===e.touches.length){const t=e.touches[0];x([t.pageX,t.pageY]),m(i)}}}),f&&o().createElement("div",{className:a()(`${b}-collapse-bar`,`${b}-collapse-bar-start`)},o().createElement(C,{className:a()(`${b}-collapse-icon`,`${b}-collapse-start`),onClick:()=>v(i,"start")})),p&&o().createElement("div",{className:a()(`${b}-collapse-bar`,`${b}-collapse-bar-end`)},o().createElement(w,{className:a()(`${b}-collapse-icon`,`${b}-collapse-end`),onClick:()=>v(i,"end")})))},eU=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},tU={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},nU=e=>{const{componentCls:t,colorFill:n,resizeSpinnerSize:r,splitBarSize:o,splitTriggerSize:i,controlItemBgHover:a,controlItemBgActive:l,controlItemBgActiveHover:c}=e,s=`${t}-bar`,u=`${t}-mask`,d=`${t}-panel`,f=e.calc(i).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign({},pr(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${s}`]:{flex:"none",position:"relative",userSelect:"none",[`${s}-dragger`]:Object.assign(Object.assign({},tU),{zIndex:1,"&:before":Object.assign({content:'""',background:a},tU),"&:after":Object.assign({content:'""',background:n},tU),[`&:hover:not(${s}-dragger-active)`]:{"&:before":{background:l}},"&-active":{zIndex:2,"&:before":{background:c}},[`&-disabled${s}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&:before":{background:a}},"&:after":{display:"none"}}}),[`${s}-collapse-bar`]:Object.assign(Object.assign({},tU),{zIndex:1,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:l},"&:active":{background:c}}),"&:hover, &:active":{[`${s}-collapse-bar`]:{opacity:1}}},[u]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${s}`]:{width:0,[`${s}-dragger`]:{cursor:"col-resize",height:"100%",width:i,"&:before":{height:"100%",width:o},"&:after":{height:r,width:o}},[`${s}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:f},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:f},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${s}`]:{height:0,[`${s}-dragger`]:{cursor:"row-resize",width:"100%",height:i,"&:before":{width:"100%",height:o},"&:after":{width:r,height:o}},[`${s}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:f,transform:"translateX(-50%)"},"&-end":{top:f,bottom:"auto",transform:"translateX(-50%)"}}}},[d]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box"},[`${d}-hidden`]:{padding:0}}),eU(e))}},rU=Vo("Splitter",(e=>[nU(e)]),(e=>({splitBarSize:e.splitBarSize||2,splitTriggerSize:e.splitTriggerSize||6,resizeSpinnerSize:e.resizeSpinnerSize||20}))),oU=e=>{const{prefixCls:t,className:n,style:i,layout:l="horizontal",children:c,rootClassName:u,onResizeStart:d,onResize:f,onResizeEnd:p}=e,{getPrefixCls:m,direction:g,splitter:h}=o().useContext(Ae),v=m("splitter",t),b=rl(v),[y,x,C]=rU(v,b),w="vertical"===l,S="rtl"===g,$=!w&&S,k=function(e){const t=r.useMemo((()=>s(e).filter(r.isValidElement).map((e=>{const{props:t}=e,{collapsible:n}=t,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe.size)),r=e.length,i=e=>e*t,[a,l]=o().useState((()=>e.map((e=>e.defaultSize)))),c=o().useMemo((()=>{var e;const t=[];for(let o=0;o{let e=[],n=0;for(let o=0;oe+(t||0)),0);if(o>1||!n){const t=1/o;e=e.map((e=>void 0===e?0:e*t))}else{const t=(1-o)/n;e=e.map((e=>void 0===e?t:e))}return e}),[c,t]),u=o().useMemo((()=>s.map(i)),[s,t]),d=o().useMemo((()=>e.map((e=>ZY(e.min)?QY(e.min):(e.min||0)/t))),[e,t]),f=o().useMemo((()=>e.map((e=>ZY(e.max)?QY(e.max):(e.max||t)/t))),[e,t]);return[u,s,d,f,l]}(k,E),R=function(e,t){return r.useMemo((()=>{const n=[];for(let r=0;r0||p.start&&0===l&&a>0,h=p.start&&l>0||u.end&&0===a&&l>0;n[r]={resizable:m,startCollapsible:!!g,endCollapsible:!!h}}return n}),[t,e])}(k,j),[T,A,z,_,D]=function(e,t,n,o,i){const a=e.map((e=>[e.min,e.max])),l=e=>e*o;function c(e,t){return"string"==typeof e?l(QY(e)):null!=e?e:t}const[s,u]=r.useState([]),[d,f]=r.useState(null),p=()=>n.map(l);return[e=>{u(p()),f({index:e,confirmed:!1})},(e,n)=>{var r;let l=null;if(!(d&&d.confirmed||0===n))if(n>0)l=e,f({index:e,confirmed:!0});else for(let n=e;n>=0;n-=1)if(s[n]>0&&t[n].resizable){l=n,f({index:n,confirmed:!0});break}const u=null!==(r=null!=l?l:null==d?void 0:d.index)&&void 0!==r?r:e,p=Se(s),m=u+1,g=c(a[u][0],0),h=c(a[m][0],0),v=c(a[u][1],o),b=c(a[m][1],o);let y=n;return p[u]+yv&&(y=v-p[u]),p[m]-y>b&&(y=p[m]-b),p[u]+=y,p[m]-=y,i(p),p},()=>{f(null)},(e,t)=>{const n=p(),r="start"===t?e:e+1,l="start"===t?e+1:e,s=n[r],u=n[l];if(0!==s&&0!==u)n[r]=0,n[l]+=s;else{const e=s+u,t=c(a[r][0],0),i=c(a[r][1],o),d=c(a[l][0],0),f=c(a[l][1],o),p=Math.max(t,e-f),m=(Math.min(i,e-d)-p)/2;n[r]-=m,n[l]+=m}return i(n),n},null==d?void 0:d.index]}(k,R,M,E,P),B=qn((e=>{T(e),null==d||d(j)})),H=qn(((e,t)=>{const n=A(e,t);null==f||f(n)})),L=qn((()=>{z(),null==p||p(j)})),F=qn(((e,t)=>{const n=_(e,t);null==f||f(n),null==p||p(n)})),W=a()(v,n,`${v}-${l}`,{[`${v}-rtl`]:S},u,null==h?void 0:h.className,C,b,x),V=`${v}-mask`,q=o().useMemo((()=>{const e=[];let t=0;for(let n=0;n{O(w?e.offsetHeight:e.offsetWidth)}},o().createElement("div",{style:K,className:W},k.map(((e,t)=>{const n=o().createElement(YY,Object.assign({},e,{prefixCls:v,size:j[t]}));let r=null;const i=R[t];if(i){const e=(q[t-1]||0)+I[t],n=(q[t+1]||100)-N[t+1],a=(q[t-1]||0)+N[t],l=(q[t+1]||100)-I[t+1];r=o().createElement(JY,{index:t,active:D===t,prefixCls:v,vertical:w,resizable:i.resizable,ariaNow:100*q[t],ariaMin:100*Math.max(e,n),ariaMax:100*Math.min(a,l),startCollapsible:i.startCollapsible,endCollapsible:i.endCollapsible,onOffsetStart:B,onOffsetUpdate:(e,t,n)=>{let r=w?n:t;$&&(r=-r),H(e,r)},onOffsetEnd:L,onCollapse:F})}return o().createElement(o().Fragment,{key:`split-panel-${t}`},n,r)})))),"number"==typeof D&&o().createElement("div",{"aria-hidden":!0,className:a()(V,`${V}-${l}`)})))};oU.Panel=()=>null;const iU=oU},7965:(e,t,n)=>{"use strict";var r=n(6426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,c,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},4353:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",l="week",c="month",s="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+h(r,2,"0")+":"+h(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var l=t.name;y[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(C(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},$=v;$.l=w,$.i=C,$.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var h=g.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if($.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return $},h.isValid=function(){return!(this.$d.toString()===f)},h.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return S(e)68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};function p(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=i.length,c=0;c-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),i=o.year,a=o.month,l=o.day,c=o.hours,s=o.minutes,u=o.seconds,d=o.milliseconds,f=o.zone,m=o.week,g=new Date,h=l||(i||a?1:g.getDate()),v=i||g.getFullYear(),b=0;i&&!a||(b=a>0?a-1:g.getMonth());var y,x=c||0,C=s||0,w=u||0,S=d||0;return f?new Date(Date.UTC(v,b,h,x,C,w,S+60*f.offset*1e3)):n?new Date(Date.UTC(v,b,h,x,C,w,S)):(y=new Date(v,b,h,x,C,w,S),m&&(y=r(y).week(m).toDate()),y)}catch(e){return new Date("")}}(t,l,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var f=l.length,m=1;m<=f;m+=1){i[1]=l[m-1];var g=n.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===f&&(this.$d=new Date(""))}else o.call(this,e)}}}()},1840:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),c=o(a[n]),s=l||c.map((function(e){return e.slice(0,r)}));if(!i)return s;var u=a.weekStart;return s.map((function(e,t){return s[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},8134:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},8623:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},6986:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=c(t),g=c(n),h=0;h{var r=n(8028),o=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}Symbol.for("react.module.reference"),t.ForwardRef=u,t.isFragment=function(e){return g(e)===o},t.isMemo=function(e){return g(e)===p}},6351:(e,t,n)=>{"use strict";e.exports=n(7787)},330:(e,t,n)=>{"use strict";var r=n(9155),o=e=>"checkbox"===e.type,i=e=>e instanceof Date,a=e=>null==e;const l=e=>"object"==typeof e;var c=e=>!a(e)&&!Array.isArray(e)&&l(e)&&!i(e),s=e=>c(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,u=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function f(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(d&&(e instanceof Blob||e instanceof FileList)||!n&&!c(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return c(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=f(e[n]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,g=(e,t,n)=>{if(!t||!c(e))return n;const r=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>a(e)?e:e[t]),e);return m(r)||r===e?m(e[t])?n:e[t]:r},h=e=>"boolean"==typeof e,v=e=>/^\w*$/.test(e),b=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/)),y=(e,t,n)=>{let r=-1;const o=v(t)?[t]:b(t),i=o.length,a=i-1;for(;++rr.useContext(E);var j=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==S&&(t._proxyFormState[o]=!r||S),n&&(n[o]=!0),e[o]}});return o},M=e=>c(e)&&!Object.keys(e).length,I=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return M(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!r||S)))},N=e=>Array.isArray(e)?e:[e],P=(e,t,n)=>!e||!t||e===t||N(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function R(e){const t=r.useRef(e);t.current=e,r.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}function T(e){const t=O(),{control:n=t.control,disabled:o,name:i,exact:a}=e||{},[l,c]=r.useState(n._formState),s=r.useRef(!0),u=r.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=r.useRef(i);return d.current=i,R({disabled:o,next:e=>s.current&&P(d.current,e.name,a)&&I(e,u.current,n._updateFormState)&&c({...n._formState,...e}),subject:n._subjects.state}),r.useEffect((()=>(s.current=!0,u.current.isValid&&n._updateValid(!0),()=>{s.current=!1})),[n]),j(l,n,u.current,!1)}var A=e=>"string"==typeof e,z=(e,t,n,r,o)=>A(e)?(r&&t.watch.add(e),g(n,e,o)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),g(n,e)))):(r&&(t.watchAll=!0),n);function _(e){const t=O(),{control:n=t.control,name:o,defaultValue:i,disabled:a,exact:l}=e||{},c=r.useRef(o);c.current=o,R({disabled:a,subject:n._subjects.values,next:e=>{P(c.current,e.name,l)&&u(f(z(c.current,n._names,e.values||n._formValues,!1,i)))}});const[s,u]=r.useState(n._getWatch(o,i));return r.useEffect((()=>n._removeUnmounted())),s}function D(e){const t=O(),{name:n,disabled:o,control:i=t.control,shouldUnregister:a}=e,l=u(i._names.array,n),c=_({control:i,name:n,defaultValue:g(i._formValues,n,g(i._defaultValues,n,e.defaultValue)),exact:!0}),d=T({control:i,name:n,exact:!0}),p=r.useRef(i.register(n,{...e.rules,value:c,...h(e.disabled)?{disabled:e.disabled}:{}}));return r.useEffect((()=>{const e=i._options.shouldUnregister||a,t=(e,t)=>{const n=g(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=f(g(i._options.defaultValues,n));y(i._defaultValues,n,e),m(g(i._formValues,n))&&y(i._formValues,n,e)}return()=>{(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}}),[n,i,l,a]),r.useEffect((()=>{g(i._fields,n)&&i._updateDisabledField({disabled:o,fields:i._fields,name:n,value:g(i._fields,n)._f.value})}),[o,n,i]),{field:{name:n,value:c,...h(o)||d.disabled?{disabled:d.disabled||o}:{},onChange:r.useCallback((e=>p.current.onChange({target:{value:s(e),name:n},type:"change"})),[n]),onBlur:r.useCallback((()=>p.current.onBlur({target:{value:g(i._formValues,n),name:n},type:x})),[n,i]),ref:r.useCallback((e=>{const t=g(i._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[i._fields,n])},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!g(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!g(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!g(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!g(d.validatingFields,n)},error:{enumerable:!0,get:()=>g(d.errors,n)}})}}const B="post";var H=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},L=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const n=(16*Math.random()+e)%16|0;return("x"==t?n:3&n|8).toString(16)}))},F=(e,t,n={})=>n.shouldFocus||m(n.shouldFocus)?n.focusName||`${e}.${m(n.focusIndex)?t:n.focusIndex}.`:"",W=e=>({isOnSubmit:!e||e===w,isOnBlur:"onBlur"===e,isOnChange:e===C,isOnAll:e===S,isOnTouch:"onTouched"===e}),V=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const q=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const n=g(e,o);if(n){const{_f:e,...i}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(q(i,t))break}else if(c(i)&&q(i,t))break}}};var K=(e,t,n)=>{const r=N(g(e,n));return y(r,"root",t[n]),y(e,n,r),e},X=e=>"file"===e.type,G=e=>"function"==typeof e,Y=e=>{if(!d)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},U=e=>A(e),Q=e=>"radio"===e.type,Z=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const ne={isValid:!1,value:null};var re=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ne):ne;function oe(e,t,n="validate"){if(U(e)||Array.isArray(e)&&e.every(U)||h(e)&&!e)return{type:n,message:U(e)?e:"",ref:t}}var ie=e=>c(e)&&!Z(e)?e:{value:e,message:""},ae=async(e,t,n,r,i)=>{const{ref:l,refs:s,required:u,maxLength:d,minLength:f,min:p,max:v,pattern:b,validate:y,name:x,valueAsNumber:C,mount:w,disabled:S}=e._f,E=g(t,x);if(!w||S)return{};const O=s?s[0]:l,j=e=>{r&&O.reportValidity&&(O.setCustomValidity(h(e)?"":e||""),O.reportValidity())},I={},N=Q(l),P=o(l),R=N||P,T=(C||X(l))&&m(l.value)&&m(E)||Y(l)&&""===l.value||""===E||Array.isArray(E)&&!E.length,z=H.bind(null,x,n,I),_=(e,t,n,r="maxLength",o="minLength")=>{const i=e?t:n;I[x]={type:e?r:o,message:i,ref:l,...z(e?r:o,i)}};if(i?!Array.isArray(E)||!E.length:u&&(!R&&(T||a(E))||h(E)&&!E||P&&!te(s).isValid||N&&!re(s).isValid)){const{value:e,message:t}=U(u)?{value:!!u,message:u}:ie(u);if(e&&(I[x]={type:k,message:t,ref:O,...z(k,t)},!n))return j(t),I}if(!(T||a(p)&&a(v))){let e,t;const r=ie(v),o=ie(p);if(a(E)||isNaN(E)){const n=l.valueAsDate||new Date(E),i=e=>new Date((new Date).toDateString()+" "+e),a="time"==l.type,c="week"==l.type;A(r.value)&&E&&(e=a?i(E)>i(r.value):c?E>r.value:n>new Date(r.value)),A(o.value)&&E&&(t=a?i(E)r.value),a(o.value)||(t=n+e.value,o=!a(t.value)&&E.length<+t.value;if((r||o)&&(_(r,e.message,t.message),!n))return j(I[x].message),I}if(b&&!T&&A(E)){const{value:e,message:t}=ie(b);if(Z(e)&&!E.match(e)&&(I[x]={type:$,message:t,ref:l,...z($,t)},!n))return j(t),I}if(y)if(G(y)){const e=oe(await y(E,t),O);if(e&&(I[x]={...e,...z("validate",e.message)},!n))return j(e.message),I}else if(c(y)){let e={};for(const r in y){if(!M(e)&&!n)break;const o=oe(await y[r](E,t),O,r);o&&(e={...o,...z(r,o.message)},j(o.message),n&&(I[x]=e))}if(!M(e)&&(I[x]={ref:O,...e},!n))return I}return j(!0),I},le=(e,t)=>[...e,...N(t)],ce=e=>Array.isArray(e)?e.map((()=>{})):void 0;function se(e,t,n){return[...e.slice(0,t),...N(n),...e.slice(t)]}var ue=(e,t,n)=>Array.isArray(e)?(m(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],de=(e,t)=>[...N(t),...N(e)],fe=(e,t)=>m(t)?[]:function(e,t){let n=0;const r=[...e];for(const e of t)r.splice(e-n,1),n++;return p(r).length?r:[]}(e,N(t).sort(((e,t)=>e-t))),pe=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function me(e,t){const n=Array.isArray(t)?t:v(t)?[t]:b(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r(e[t]=n,e),he=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},ve=e=>a(e)||!l(e);function be(e,t){if(ve(e)||ve(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(i(n)&&i(e)||c(n)&&c(e)||Array.isArray(n)&&Array.isArray(e)?!be(n,e):n!==e)return!1}}return!0}var ye=e=>"select-multiple"===e.type,xe=e=>Q(e)||o(e),Ce=e=>Y(e)&&e.isConnected,we=e=>{for(const t in e)if(G(e[t]))return!0;return!1};function Se(e,t={}){const n=Array.isArray(e);if(c(e)||n)for(const n in e)Array.isArray(e[n])||c(e[n])&&!we(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Se(e[n],t[n])):a(e[n])||(t[n]=!0);return t}function $e(e,t,n){const r=Array.isArray(e);if(c(e)||r)for(const r in e)Array.isArray(e[r])||c(e[r])&&!we(e[r])?m(t)||ve(n[r])?n[r]=Array.isArray(e[r])?Se(e[r],[]):{...Se(e[r])}:$e(e[r],a(t)?{}:t[r],n[r]):n[r]=!be(e[r],t[r]);return n}var ke=(e,t)=>$e(e,t,Se(t)),Ee=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>m(e)?e:t?""===e?NaN:e?+e:e:n&&A(e)?new Date(e):r?r(e):e;function Oe(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return X(t)?t.files:Q(t)?re(e.refs).value:ye(t)?[...t.selectedOptions].map((({value:e})=>e)):o(t)?te(e.refs).value:Ee(m(t.value)?e.ref.value:t.value,e)}var je=e=>m(e)?e:Z(e)?e.source:c(e)?Z(e.value)?e.value.source:e.value:e;const Me="AsyncFunction";var Ie=e=>!(e&&e.validate||!(G(e.validate)&&e.validate.constructor.name===Me||c(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===Me))));function Ne(e,t,n){const r=g(e,n);if(r||v(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=g(t,r),a=g(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};o.pop()}return{name:n}}const Pe={mode:w,reValidateMode:C,shouldFocusError:!0};function Re(e={}){let t,n={...Pe,...e},r={submitCount:0,isDirty:!1,isLoading:G(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},l={},v=(c(n.defaultValues)||c(n.values))&&f(n.defaultValues||n.values)||{},b=n.shouldUnregister?{}:f(v),C={action:!1,mount:!1,watch:!1},w={mount:new Set,unMount:new Set,array:new Set,watch:new Set},$=0;const k={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={values:he(),array:he(),state:he()},O=W(n.mode),j=W(n.reValidateMode),I=n.criteriaMode===S,P=async e=>{if(k.isValid||e){const e=n.resolver?M((await B()).errors):await H(l,!0);e!==r.isValid&&E.state.next({isValid:e})}},R=(e,t)=>{(k.isValidating||k.validatingFields)&&((e||Array.from(w.mount)).forEach((e=>{e&&(t?y(r.validatingFields,e,t):me(r.validatingFields,e))})),E.state.next({validatingFields:r.validatingFields,isValidating:!M(r.validatingFields)}))},T=(e,t,n,r)=>{const o=g(l,e);if(o){const i=g(b,e,m(n)?g(v,e):n);m(i)||r&&r.defaultChecked||t?y(b,e,t?i:Oe(o._f)):U(e,i),C.mount&&P()}},_=(e,t,n,o,i)=>{let a=!1,c=!1;const s={name:e},u=!!(g(l,e)&&g(l,e)._f&&g(l,e)._f.disabled);if(!n||o){k.isDirty&&(c=r.isDirty,r.isDirty=s.isDirty=L(),a=c!==s.isDirty);const n=u||be(g(v,e),t);c=!(u||!g(r.dirtyFields,e)),n||u?me(r.dirtyFields,e):y(r.dirtyFields,e,!0),s.dirtyFields=r.dirtyFields,a=a||k.dirtyFields&&c!==!n}if(n){const t=g(r.touchedFields,e);t||(y(r.touchedFields,e,n),s.touchedFields=r.touchedFields,a=a||k.touchedFields&&t!==n)}return a&&i&&E.state.next(s),a?s:{}},D=(n,o,i,a)=>{const l=g(r.errors,n),c=k.isValid&&h(o)&&r.isValid!==o;var s;if(e.delayError&&i?(s=()=>((e,t)=>{y(r.errors,e,t),E.state.next({errors:r.errors})})(n,i),t=e=>{clearTimeout($),$=setTimeout(s,e)},t(e.delayError)):(clearTimeout($),t=null,i?y(r.errors,n,i):me(r.errors,n)),(i?!be(l,i):l)||!M(a)||c){const e={...a,...c&&h(o)?{isValid:o}:{},errors:r.errors,name:n};r={...r,...e},E.state.next(e)}},B=async e=>{R(e,!0);const t=await n.resolver(b,n.context,((e,t,n,r)=>{const o={};for(const n of e){const e=g(t,n);e&&y(o,n,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}})(e||w.mount,l,n.criteriaMode,n.shouldUseNativeValidation));return R(e),t},H=async(e,t,o={valid:!0})=>{for(const i in e){const a=e[i];if(a){const{_f:e,...l}=a;if(e){const l=w.array.has(e.name),c=a._f&&Ie(a._f);c&&k.validatingFields&&R([i],!0);const s=await ae(a,b,I,n.shouldUseNativeValidation&&!t,l);if(c&&k.validatingFields&&R([i]),s[e.name]&&(o.valid=!1,t))break;!t&&(g(s,e.name)?l?K(r.errors,s,e.name):y(r.errors,e.name,s[e.name]):me(r.errors,e.name))}!M(l)&&await H(l,t,o)}}return o.valid},L=(e,t)=>(e&&t&&y(b,e,t),!be(ne(),v)),F=(e,t,n)=>z(e,w,{...C.mount?b:m(t)?v:A(e)?{[e]:t}:t},n,t),U=(e,t,n={})=>{const r=g(l,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&y(b,e,Ee(t,n)),i=Y(n.ref)&&a(t)?"":t,ye(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?o(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):X(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||E.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&_(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&te(e)},Q=(e,t,n)=>{for(const r in t){const o=t[r],a=`${e}.${r}`,c=g(l,a);!w.array.has(e)&&ve(o)&&(!c||c._f)||i(o)?U(a,o,n):Q(a,o,n)}},Z=(e,t,n={})=>{const o=g(l,e),i=w.array.has(e),c=f(t);y(b,e,c),i?(E.array.next({name:e,values:{...b}}),(k.isDirty||k.dirtyFields)&&n.shouldDirty&&E.state.next({name:e,dirtyFields:ke(v,b),isDirty:L(e,c)})):!o||o._f||a(c)?U(e,c,n):Q(e,c,n),V(e,w)&&E.state.next({...r}),E.values.next({name:C.mount?e:void 0,values:{...b}})},J=async o=>{C.mount=!0;const i=o.target;let a=i.name,c=!0;const u=g(l,a),d=e=>{c=Number.isNaN(e)||be(e,g(b,a,e))};if(u){let f,p;const m=i.type?Oe(u._f):s(o),h=o.type===x||"focusout"===o.type,v=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(u._f)&&!n.resolver&&!g(r.errors,a)&&!u._f.deps||((e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e))(h,g(r.touchedFields,a),r.isSubmitted,j,O),C=V(a,w,h);y(b,a,m),h?(u._f.onBlur&&u._f.onBlur(o),t&&t(0)):u._f.onChange&&u._f.onChange(o);const S=_(a,m,h,!1),$=!M(S)||C;if(!h&&E.values.next({name:a,type:o.type,values:{...b}}),v)return k.isValid&&("onBlur"===e.mode?h&&P():P()),$&&E.state.next({name:a,...C?{}:S});if(!h&&C&&E.state.next({...r}),n.resolver){const{errors:e}=await B([a]);if(d(m),c){const t=Ne(r.errors,l,a),n=Ne(e,l,t.name||a);f=n.error,a=n.name,p=M(e)}}else R([a],!0),f=(await ae(u,b,I,n.shouldUseNativeValidation))[a],R([a]),d(m),c&&(f?p=!1:k.isValid&&(p=await H(l,!0)));c&&(u._f.deps&&te(u._f.deps),D(a,p,f,S))}},ee=(e,t)=>{if(g(r.errors,t)&&e.focus)return e.focus(),1},te=async(e,t={})=>{let o,i;const a=N(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await B(e);if(e)for(const n of e){const e=g(t,n);e?y(r.errors,n,e):me(r.errors,n)}else r.errors=t;return t})(m(e)?e:a);o=M(t),i=e?!a.some((e=>g(t,e))):o}else e?(i=(await Promise.all(a.map((async e=>{const t=g(l,e);return await H(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&P()):i=o=await H(l);return E.state.next({...!A(e)||k.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!i&&q(l,ee,e?a:w.mount),i},ne=e=>{const t={...C.mount?b:v};return m(e)?t:A(e)?g(t,e):e.map((e=>g(t,e)))},re=(e,t)=>({invalid:!!g((t||r).errors,e),isDirty:!!g((t||r).dirtyFields,e),error:g((t||r).errors,e),isValidating:!!g(r.validatingFields,e),isTouched:!!g((t||r).touchedFields,e)}),oe=(e,t,n)=>{const o=(g(l,e,{_f:{}})._f||{}).ref,i=g(r.errors,e)||{},{ref:a,message:c,type:s,...u}=i;y(r.errors,e,{...u,...t,ref:o}),E.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},ie=(e,t={})=>{for(const o of e?N(e):w.mount)w.mount.delete(o),w.array.delete(o),t.keepValue||(me(l,o),me(b,o)),!t.keepError&&me(r.errors,o),!t.keepDirty&&me(r.dirtyFields,o),!t.keepTouched&&me(r.touchedFields,o),!t.keepIsValidating&&me(r.validatingFields,o),!n.shouldUnregister&&!t.keepDefaultValue&&me(v,o);E.values.next({values:{...b}}),E.state.next({...r,...t.keepDirty?{isDirty:L()}:{}}),!t.keepIsValid&&P()},le=({disabled:e,name:t,field:n,fields:r,value:o})=>{if(h(e)&&C.mount||e){const i=e?void 0:m(o)?Oe(n?n._f:g(r,t)._f):o;y(b,t,i),_(t,i,!1,!1,!0)}},ce=(t,r={})=>{let o=g(l,t);const i=h(r.disabled)||h(e.disabled);return y(l,t,{...o||{},_f:{...o&&o._f?o._f:{ref:{name:t}},name:t,mount:!0,...r}}),w.mount.add(t),o?le({field:o,disabled:h(r.disabled)?r.disabled:e.disabled,name:t,value:r.value}):T(t,!0,r.value),{...i?{disabled:r.disabled||e.disabled}:{},...n.progressive?{required:!!r.required,min:je(r.min),max:je(r.max),minLength:je(r.minLength),maxLength:je(r.maxLength),pattern:je(r.pattern)}:{},name:t,onChange:J,onBlur:J,ref:e=>{if(e){ce(t,r),o=g(l,t);const n=m(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,i=xe(n),a=o._f.refs||[];if(i?a.find((e=>e===n)):n===o._f.ref)return;y(l,t,{_f:{...o._f,...i?{refs:[...a.filter(Ce),n,...Array.isArray(g(v,t))?[{}]:[]],ref:{type:n.type,name:t}}:{ref:n}}}),T(t,!1,void 0,n)}else o=g(l,t,{}),o._f&&(o._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!u(w.array,t)||!C.action)&&w.unMount.add(t)}}},se=()=>n.shouldFocusError&&q(l,ee,w.mount),ue=(e,t)=>async o=>{let i;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let a=f(b);if(E.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await B();r.errors=e,a=t}else await H(l);if(me(r.errors,"root"),M(r.errors)){E.state.next({errors:{}});try{await e(a,o)}catch(e){i=e}}else t&&await t({...r.errors},o),se(),setTimeout(se);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:M(r.errors)&&!i,submitCount:r.submitCount+1,errors:r.errors}),i)throw i},de=(t,n={})=>{const o=t?f(t):v,i=f(o),a=M(t),c=a?v:i;if(n.keepDefaultValues||(v=o),!n.keepValues){if(n.keepDirtyValues)for(const e of w.mount)g(r.dirtyFields,e)?y(c,e,g(b,e)):Z(e,g(c,e));else{if(d&&m(t))for(const e of w.mount){const t=g(l,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Y(e)){const t=e.closest("form");if(t){t.reset();break}}}}l={}}b=e.shouldUnregister?n.keepDefaultValues?f(v):{}:f(c),E.array.next({values:{...c}}),E.values.next({values:{...c}})}w={mount:n.keepDirtyValues?w.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},C.mount=!k.isValid||!!n.keepIsValid||!!n.keepDirtyValues,C.watch=!!e.shouldUnregister,E.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!a&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||be(t,v))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:a?{}:n.keepDirtyValues?n.keepDefaultValues&&b?ke(v,b):r.dirtyFields:n.keepDefaultValues&&t?ke(v,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},fe=(e,t)=>de(G(e)?e(b):e,t);return{control:{register:ce,unregister:ie,getFieldState:re,handleSubmit:ue,setError:oe,_executeSchema:B,_getWatch:F,_getDirty:L,_updateValid:P,_removeUnmounted:()=>{for(const e of w.unMount){const t=g(l,e);t&&(t._f.refs?t._f.refs.every((e=>!Ce(e))):!Ce(t._f.ref))&&ie(e)}w.unMount=new Set},_updateFieldArray:(e,t=[],n,o,i=!0,a=!0)=>{if(o&&n){if(C.action=!0,a&&Array.isArray(g(l,e))){const t=n(g(l,e),o.argA,o.argB);i&&y(l,e,t)}if(a&&Array.isArray(g(r.errors,e))){const t=n(g(r.errors,e),o.argA,o.argB);i&&y(r.errors,e,t),((e,t)=>{!p(g(e,t)).length&&me(e,t)})(r.errors,e)}if(k.touchedFields&&a&&Array.isArray(g(r.touchedFields,e))){const t=n(g(r.touchedFields,e),o.argA,o.argB);i&&y(r.touchedFields,e,t)}k.dirtyFields&&(r.dirtyFields=ke(v,b)),E.state.next({name:e,isDirty:L(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else y(b,e,t)},_updateDisabledField:le,_getFieldArray:t=>p(g(C.mount?b:v,t,e.shouldUnregister?g(v,t,[]):[])),_reset:de,_resetDefaultValues:()=>G(n.defaultValues)&&n.defaultValues().then((e=>{fe(e,n.resetOptions),E.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{h(e)&&(E.state.next({disabled:e}),q(l,((t,n)=>{const r=g(l,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:E,_proxyFormState:k,_setErrors:e=>{r.errors=e,E.state.next({errors:r.errors,isValid:!1})},get _fields(){return l},get _formValues(){return b},get _state(){return C},set _state(e){C=e},get _defaultValues(){return v},get _names(){return w},set _names(e){w=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:te,register:ce,handleSubmit:ue,watch:(e,t)=>G(e)?E.values.subscribe({next:n=>e(F(void 0,t),n)}):F(e,t,!0),setValue:Z,getValues:ne,reset:fe,resetField:(e,t={})=>{g(l,e)&&(m(t.defaultValue)?Z(e,f(g(v,e))):(Z(e,t.defaultValue),y(v,e,f(t.defaultValue))),t.keepTouched||me(r.touchedFields,e),t.keepDirty||(me(r.dirtyFields,e),r.isDirty=t.defaultValue?L(e,f(g(v,e))):L()),t.keepError||(me(r.errors,e),k.isValid&&P()),E.state.next({...r}))},clearErrors:e=>{e&&N(e).forEach((e=>me(r.errors,e))),E.state.next({errors:e?r.errors:{}})},unregister:ie,setError:oe,setFocus:(e,t={})=>{const n=g(l,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:re}}t.Controller=e=>e.render(D(e)),t.Form=function(e){const t=O(),[n,o]=r.useState(!1),{control:i=t.control,onSubmit:a,children:l,action:c,method:s=B,headers:u,encType:d,onError:f,render:p,onSuccess:m,validateStatus:h,...v}=e,b=async t=>{let n=!1,r="";await i.handleSubmit((async e=>{const o=new FormData;let l="";try{l=JSON.stringify(e)}catch(e){}for(const t of i._names.mount)o.append(t,g(e,t));if(a&&await a({data:e,event:t,method:s,formData:o,formDataJson:l}),c)try{const e=[u&&u["Content-Type"],d].some((e=>e&&e.includes("json"))),t=await fetch(c,{method:s,headers:{...u,...d?{"Content-Type":d}:{}},body:e?l:o});t&&(h?!h(t.status):t.status<200||t.status>=300)?(n=!0,f&&f({response:t}),r=String(t.status)):m&&m({response:t})}catch(e){n=!0,f&&f({error:e})}}))(t),n&&e.control&&(e.control._subjects.state.next({isSubmitSuccessful:!1}),e.control.setError("root.server",{type:r}))};return r.useEffect((()=>{o(!0)}),[]),p?r.createElement(r.Fragment,null,p({submit:b})):r.createElement("form",{noValidate:n,action:c,method:s,encType:d,onSubmit:b,...v},l)},t.FormProvider=e=>{const{children:t,...n}=e;return r.createElement(E.Provider,{value:n},t)},t.appendErrors=H,t.get=g,t.set=y,t.useController=D,t.useFieldArray=function(e){const t=O(),{control:n=t.control,name:o,keyName:i="id",shouldUnregister:a}=e,[l,c]=r.useState(n._getFieldArray(o)),s=r.useRef(n._getFieldArray(o).map(L)),u=r.useRef(l),d=r.useRef(o),p=r.useRef(!1);d.current=o,u.current=l,n._names.array.add(o),e.rules&&n.register(o,e.rules),R({next:({values:e,name:t})=>{if(t===d.current||!t){const t=g(e,d.current);Array.isArray(t)&&(c(t),s.current=t.map(L))}},subject:n._subjects.array});const m=r.useCallback((e=>{p.current=!0,n._updateFieldArray(o,e)}),[n,o]);return r.useEffect((()=>{if(n._state.action=!1,V(o,n._names)&&n._subjects.state.next({...n._formState}),p.current&&(!W(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([o]).then((e=>{const t=g(e.errors,o),r=g(n._formState.errors,o);(r?!t&&r.type||t&&(r.type!==t.type||r.message!==t.message):t&&t.type)&&(t?y(n._formState.errors,o,t):me(n._formState.errors,o),n._subjects.state.next({errors:n._formState.errors}))}));else{const e=g(n._fields,o);!e||!e._f||W(n._options.reValidateMode).isOnSubmit&&W(n._options.mode).isOnSubmit||ae(e,n._formValues,n._options.criteriaMode===S,n._options.shouldUseNativeValidation,!0).then((e=>!M(e)&&n._subjects.state.next({errors:K(n._formState.errors,e,o)})))}n._subjects.values.next({name:o,values:{...n._formValues}}),n._names.focus&&q(n._fields,((e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1})),n._names.focus="",n._updateValid(),p.current=!1}),[l,o,n]),r.useEffect((()=>(!g(n._formValues,o)&&n._updateFieldArray(o),()=>{(n._options.shouldUnregister||a)&&n.unregister(o)})),[o,n,i,a]),{swap:r.useCallback(((e,t)=>{const r=n._getFieldArray(o);pe(r,e,t),pe(s.current,e,t),m(r),c(r),n._updateFieldArray(o,r,pe,{argA:e,argB:t},!1)}),[m,o,n]),move:r.useCallback(((e,t)=>{const r=n._getFieldArray(o);ue(r,e,t),ue(s.current,e,t),m(r),c(r),n._updateFieldArray(o,r,ue,{argA:e,argB:t},!1)}),[m,o,n]),prepend:r.useCallback(((e,t)=>{const r=N(f(e)),i=de(n._getFieldArray(o),r);n._names.focus=F(o,0,t),s.current=de(s.current,r.map(L)),m(i),c(i),n._updateFieldArray(o,i,de,{argA:ce(e)})}),[m,o,n]),append:r.useCallback(((e,t)=>{const r=N(f(e)),i=le(n._getFieldArray(o),r);n._names.focus=F(o,i.length-1,t),s.current=le(s.current,r.map(L)),m(i),c(i),n._updateFieldArray(o,i,le,{argA:ce(e)})}),[m,o,n]),remove:r.useCallback((e=>{const t=fe(n._getFieldArray(o),e);s.current=fe(s.current,e),m(t),c(t),n._updateFieldArray(o,t,fe,{argA:e})}),[m,o,n]),insert:r.useCallback(((e,t,r)=>{const i=N(f(t)),a=se(n._getFieldArray(o),e,i);n._names.focus=F(o,e,r),s.current=se(s.current,e,i.map(L)),m(a),c(a),n._updateFieldArray(o,a,se,{argA:e,argB:ce(t)})}),[m,o,n]),update:r.useCallback(((e,t)=>{const r=f(t),i=ge(n._getFieldArray(o),e,r);s.current=[...i].map(((t,n)=>t&&n!==e?s.current[n]:L())),m(i),c([...i]),n._updateFieldArray(o,i,ge,{argA:e,argB:r},!0,!1)}),[m,o,n]),replace:r.useCallback((e=>{const t=N(f(e));s.current=t.map(L),m([...t]),c([...t]),n._updateFieldArray(o,[...t],(e=>e),{},!0,!1)}),[m,o,n]),fields:r.useMemo((()=>l.map(((e,t)=>({...e,[i]:s.current[t]||L()})))),[l,i])}},t.useForm=function(e={}){const t=r.useRef(),n=r.useRef(),[o,i]=r.useState({isDirty:!1,isValidating:!1,isLoading:G(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:G(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Re(e),formState:o});const a=t.current.control;return a._options=e,R({subject:a._subjects.state,next:e=>{I(e,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),r.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),r.useEffect((()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==o.isDirty&&a._subjects.state.next({isDirty:e})}}),[a,o.isDirty]),r.useEffect((()=>{e.values&&!be(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i((e=>({...e})))):a._resetDefaultValues()}),[e.values,a]),r.useEffect((()=>{e.errors&&a._setErrors(e.errors)}),[e.errors,a]),r.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),r.useEffect((()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})}),[e.shouldUnregister,a]),t.current.formState=j(o,a),t.current},t.useFormContext=O,t.useFormState=T,t.useWatch=_},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case h:case g:case c:return e;default:return t}}case o:return t}}}function w(e){return C(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||C(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return C(e)===s},t.isContextProvider=function(e){return C(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return C(e)===f},t.isFragment=function(e){return C(e)===i},t.isLazy=function(e){return C(e)===h},t.isMemo=function(e){return C(e)===g},t.isPortal=function(e){return C(e)===o},t.isProfiler=function(e){return C(e)===l},t.isStrictMode=function(e){return C(e)===a},t.isSuspense=function(e){return C(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===c||e.$$typeof===s||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=C},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},1020:(e,t,n)=>{"use strict";var r=n(9155),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},8028:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},6426:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextError=void 0;var r=n(4848),o=n(877);t.TextError=function(e){var t=e.children;return(0,r.jsx)(o.TextErrorWrapper,{children:t})}},8417:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7806),t)},877:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextErrorWrapper=void 0;var i,a=o(n(1479)),l=n(3900);t.TextErrorWrapper=a.default.div(i||(i=r(["\n color: ",";\n"],["\n color: ",";\n"])),l.config.designToken.colorErrorText)},3236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.H1=void 0;var r=n(4848),o=n(3761),i=n(9599);t.H1=function(e){var t=e.children;return(0,r.jsx)(o.ConfigProviderDesign,{children:(0,r.jsx)(i.H1Wrapper,{children:t})})}},2055:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.H2=void 0;var r=n(4848),o=n(3761),i=n(9599);t.H2=function(e){var t=e.children;return(0,r.jsx)(o.ConfigProviderDesign,{children:(0,r.jsx)(i.H2Wrapper,{children:t})})}},8258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.H3=void 0;var r=n(4848),o=n(3761),i=n(9599);t.H3=function(e){var t=e.children;return(0,r.jsx)(o.ConfigProviderDesign,{children:(0,r.jsx)(i.H3Wrapper,{children:t})})}},2429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.H4=void 0;var r=n(4848),o=n(3761),i=n(9599);t.H4=function(e){var t=e.children;return(0,r.jsx)(o.ConfigProviderDesign,{children:(0,r.jsx)(i.H4Wrapper,{children:t})})}},7056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.H5=void 0;var r=n(4848),o=n(3761),i=n(9599);t.H5=function(e){var t=e.children;return(0,r.jsx)(o.ConfigProviderDesign,{children:(0,r.jsx)(i.H5Wrapper,{children:t})})}},1075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.H6=void 0;var r=n(4848),o=n(3761),i=n(9599);t.H6=function(e){var t=e.children;return(0,r.jsx)(o.ConfigProviderDesign,{children:(0,r.jsx)(i.H6Wrapper,{children:t})})}},8927:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3236),t),o(n(2055),t),o(n(8258),t),o(n(2429),t),o(n(7056),t),o(n(1075),t)},9599:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.H6Wrapper=t.H5Wrapper=t.H4Wrapper=t.H3Wrapper=t.H2Wrapper=t.H1Wrapper=void 0;var i,a,l,c,s,u,d=o(n(1479));t.H1Wrapper=d.default.h1(i||(i=r([""],[""]))),t.H2Wrapper=d.default.h2(a||(a=r([""],[""]))),t.H3Wrapper=d.default.h3(l||(l=r([""],[""]))),t.H4Wrapper=d.default.h4(c||(c=r([""],[""]))),t.H5Wrapper=d.default.h5(s||(s=r([""],[""]))),t.H6Wrapper=d.default.h6(u||(u=r([""],[""])))},6489:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1691),t),o(n(8417),t),o(n(8927),t)},3900:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.config=void 0;var i=n(674);t.config={designToken:i.theme.getDesignToken(i.theme.defaultConfig),componentToken:{}},o(n(6489),t),o(n(6131),t),o(n(8374),t),o(n(9574),t),t.version="0.0.6"},6131:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5580),t),o(n(5549),t)},4524:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5580:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4524),t)},1695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5549:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1695),t)},5399:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7823:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4431:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6151:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6812:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1004:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8647:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LabelField=void 0;var r=n(4848),o=n(674),i=n(3761),a=n(8437);t.LabelField=function(e){var t=e.text,n=e.axis,l=void 0===n?"vertical":n,c=e.description,s=e.htmlFor,u=e.isColon,d=void 0===u||u,f=e.required,p=e.widthControl,m=e.children;return(0,r.jsx)(i.ConfigProviderDesign,{children:(0,r.jsxs)(a.LabelFieldWrapper,{wrap:!1,gap:6,vertical:"vertical"===l,style:{width:"100%"},align:"vertical"===l?"start":"center",justify:"vertical"===l?"start":"space-between",className:"rd-label-field__wrapper",children:[(0,r.jsxs)(o.Flex,{className:"rd-label-field__content",vertical:!0,children:[(0,r.jsxs)(a.Label,{htmlFor:s,children:[t||" ",f&&(0,r.jsx)("sup",{children:"*"}),t&&d&&": "]}),(0,r.jsx)(a.LabelDescription,{htmlFor:s,children:c})]}),(0,r.jsx)(o.Flex,{className:"rd-label-field-control",style:{width:p},vertical:!0,children:m})]})})}},8437:function(e,t,n){"use strict";var r=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LabelDescription=t.Label=t.LabelFieldWrapper=void 0;var i,a,l,c,s,u=n(7437),d=o(n(1479)),f=n(3900),p=n(674);t.LabelFieldWrapper=(0,d.default)(p.Flex)(i||(i=r([""],[""]))),t.Label=d.default.label(c||(c=r(["\n color: ",";\n sup {\n color: ",";\n }\n\n ","\n"],["\n color: ",";\n sup {\n color: ",";\n }\n\n ","\n"])),f.config.designToken.colorText,f.config.designToken.colorError,(function(e){return e.isNotCapitalize?(0,u.css)(a||(a=r(["\n text-transform: none;\n "],["\n text-transform: none;\n "]))):(0,u.css)(l||(l=r(["\n text-transform: capitalize;\n "],["\n text-transform: capitalize;\n "])))})),t.LabelDescription=d.default.label(s||(s=r(["\n font-style: italic;\n"],["\n font-style: italic;\n"])))},6080:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6343:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9383:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6287:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},159:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},127:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8537:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4101:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1971:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8687:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8374:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6398),t),o(n(5386),t),o(n(4449),t),o(n(131),t),o(n(3702),t),o(n(9697),t),o(n(8388),t),o(n(5978),t),o(n(9786),t),o(n(1549),t),o(n(4624),t),o(n(5432),t),o(n(3667),t),o(n(3451),t),o(n(5192),t),o(n(592),t),o(n(7802),t),o(n(6742),t),o(n(4791),t),o(n(6199),t),o(n(2137),t),o(n(9229),t),o(n(7442),t),o(n(737),t)},1471:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";t.exports=e},9514:e=>{"use strict";e.exports=t},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}return o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(3900)})())); \ No newline at end of file diff --git a/dist/index.js.LICENSE.txt b/dist/index.js.LICENSE.txt new file mode 100644 index 0000000..527ad57 --- /dev/null +++ b/dist/index.js.LICENSE.txt @@ -0,0 +1,136 @@ +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ + +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ + +/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/**![bars](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkxMiAxOTJIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCAyODRIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCAyODRIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHpNMTA0IDIyOGE1NiA1NiAwIDEwMTEyIDAgNTYgNTYgMCAxMC0xMTIgMHptMCAyODRhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMTAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDEwLTExMiAweiIgLz48L3N2Zz4=) */ + +/**![calendar](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAxODRINzEydi02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMzg0di02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY2NjRjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjIxNmMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDY1NkgxODRWNDYwaDY1NnYzODB6TTE4NCAzOTJWMjU2aDEyOHY0OGMwIDQuNCAzLjYgOCA4IDhoNTZjNC40IDAgOC0zLjYgOC04di00OGgyNTZ2NDhjMCA0LjQgMy42IDggOCA4aDU2YzQuNCAwIDgtMy42IDgtOHYtNDhoMTI4djEzNkgxODR6IiAvPjwvc3ZnPg==) */ + +/**![caret-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MC40IDMwMEgxODMuNmMtMTkuNyAwLTMwLjcgMjAuOC0xOC41IDM1bDMyOC40IDM4MC44YzkuNCAxMC45IDI3LjUgMTAuOSAzNyAwTDg1OC45IDMzNWMxMi4yLTE0LjIgMS4yLTM1LTE4LjUtMzV6IiAvPjwvc3ZnPg==) */ + +/**![caret-up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1OC45IDY4OUw1MzAuNSAzMDguMmMtOS40LTEwLjktMjcuNS0xMC45LTM3IDBMMTY1LjEgNjg5Yy0xMi4yIDE0LjItMS4yIDM1IDE4LjUgMzVoNjU2LjhjMTkuNyAwIDMwLjctMjAuOCAxOC41LTM1eiIgLz48L3N2Zz4=) */ + +/**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xOTMuNSAzMDEuN2wtMjEwLjYgMjkyYTMxLjggMzEuOCAwIDAxLTUxLjcgMEwzMTguNSA0ODQuOWMtMy44LTUuMyAwLTEyLjcgNi41LTEyLjdoNDYuOWMxMC4yIDAgMTkuOSA0LjkgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjMgMTUuNi0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi41IDEyLjd6IiAvPjwvc3ZnPg==) */ + +/**![check](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkxMiAxOTBoLTY5LjljLTkuOCAwLTE5LjEgNC41LTI1LjEgMTIuMkw0MDQuNyA3MjQuNSAyMDcgNDc0YTMyIDMyIDAgMDAtMjUuMS0xMi4ySDExMmMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlsMjczLjkgMzQ3YzEyLjggMTYuMiAzNy40IDE2LjIgNTAuMyAwbDQ4OC40LTYxOC45YzQuMS01LjEuNC0xMi44LTYuMy0xMi44eiIgLz48L3N2Zz4=) */ + +/**![clock-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTY4Ni43IDYzOC42TDU0NC4xIDUzNS41VjI4OGMwLTQuNC0zLjYtOC04LThINDg4Yy00LjQgMC04IDMuNi04IDh2Mjc1LjRjMCAyLjYgMS4yIDUgMy4zIDYuNWwxNjUuNCAxMjAuNmMzLjYgMi42IDguNiAxLjggMTEuMi0xLjdsMjguNi0zOWMyLjYtMy43IDEuOC04LjctMS44LTExLjJ6IiAvPjwvc3ZnPg==) */ + +/**![close-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNTEyIDY0YzI0Ny40IDAgNDQ4IDIwMC42IDQ0OCA0NDhTNzU5LjQgOTYwIDUxMiA5NjAgNjQgNzU5LjQgNjQgNTEyIDI2NC42IDY0IDUxMiA2NHptMTI3Ljk4IDI3NC44MmgtLjA0bC0uMDguMDZMNTEyIDQ2Ni43NSAzODQuMTQgMzM4Ljg4Yy0uMDQtLjA1LS4wNi0uMDYtLjA4LS4wNmEuMTIuMTIgMCAwMC0uMDcgMGMtLjAzIDAtLjA1LjAxLS4wOS4wNWwtNDUuMDIgNDUuMDJhLjIuMiAwIDAwLS4wNS4wOS4xMi4xMiAwIDAwMCAuMDd2LjAyYS4yNy4yNyAwIDAwLjA2LjA2TDQ2Ni43NSA1MTIgMzM4Ljg4IDYzOS44NmMtLjA1LjA0LS4wNi4wNi0uMDYuMDhhLjEyLjEyIDAgMDAwIC4wN2MwIC4wMy4wMS4wNS4wNS4wOWw0NS4wMiA0NS4wMmEuMi4yIDAgMDAuMDkuMDUuMTIuMTIgMCAwMC4wNyAwYy4wMiAwIC4wNC0uMDEuMDgtLjA1TDUxMiA1NTcuMjVsMTI3Ljg2IDEyNy44N2MuMDQuMDQuMDYuMDUuMDguMDVhLjEyLjEyIDAgMDAuMDcgMGMuMDMgMCAuMDUtLjAxLjA5LS4wNWw0NS4wMi00NS4wMmEuMi4yIDAgMDAuMDUtLjA5LjEyLjEyIDAgMDAwLS4wN3YtLjAyYS4yNy4yNyAwIDAwLS4wNS0uMDZMNTU3LjI1IDUxMmwxMjcuODctMTI3Ljg2Yy4wNC0uMDQuMDUtLjA2LjA1LS4wOGEuMTIuMTIgMCAwMDAtLjA3YzAtLjAzLS4wMS0uMDUtLjA1LS4wOWwtNDUuMDItNDUuMDJhLjIuMiAwIDAwLS4wOS0uMDUuMTIuMTIgMCAwMC0uMDcgMHoiIC8+PC9zdmc+) */ + +/**![close](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzk5Ljg2IDE2Ni4zMWMuMDIgMCAuMDQuMDIuMDguMDZsNTcuNjkgNTcuN2MuMDQuMDMuMDUuMDUuMDYuMDhhLjEyLjEyIDAgMDEwIC4wNmMwIC4wMy0uMDIuMDUtLjA2LjA5TDU2OS45MyA1MTJsMjg3LjcgMjg3LjdjLjA0LjA0LjA1LjA2LjA2LjA5YS4xMi4xMiAwIDAxMCAuMDdjMCAuMDItLjAyLjA0LS4wNi4wOGwtNTcuNyA1Ny42OWMtLjAzLjA0LS4wNS4wNS0uMDcuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMyAwLS4wNS0uMDItLjA5LS4wNkw1MTIgNTY5LjkzbC0yODcuNyAyODcuN2MtLjA0LjA0LS4wNi4wNS0uMDkuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMiAwLS4wNC0uMDItLjA4LS4wNmwtNTcuNjktNTcuN2MtLjA0LS4wMy0uMDUtLjA1LS4wNi0uMDdhLjEyLjEyIDAgMDEwLS4wN2MwLS4wMy4wMi0uMDUuMDYtLjA5TDQ1NC4wNyA1MTJsLTI4Ny43LTI4Ny43Yy0uMDQtLjA0LS4wNS0uMDYtLjA2LS4wOWEuMTIuMTIgMCAwMTAtLjA3YzAtLjAyLjAyLS4wNC4wNi0uMDhsNTcuNy01Ny42OWMuMDMtLjA0LjA1LS4wNS4wNy0uMDZhLjEyLjEyIDAgMDEuMDcgMGMuMDMgMCAuMDUuMDIuMDkuMDZMNTEyIDQ1NC4wN2wyODcuNy0yODcuN2MuMDQtLjA0LjA2LS4wNS4wOS0uMDZhLjEyLjEyIDAgMDEuMDcgMHoiIC8+PC9zdmc+) */ + +/**![copy](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTgzMiA2NEgyOTZjLTQuNCAwLTggMy42LTggOHY1NmMwIDQuNCAzLjYgOCA4IDhoNDk2djY4OGMwIDQuNCAzLjYgOCA4IDhoNTZjNC40IDAgOC0zLjYgOC04Vjk2YzAtMTcuNy0xNC4zLTMyLTMyLTMyek03MDQgMTkySDE5MmMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2NTMwLjdjMCA4LjUgMy40IDE2LjYgOS40IDIyLjZsMTczLjMgMTczLjNjMi4yIDIuMiA0LjcgNCA3LjQgNS41djEuOWg0LjJjMy41IDEuMyA3LjIgMiAxMSAySDcwNGMxNy43IDAgMzItMTQuMyAzMi0zMlYyMjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTM1MCA4NTYuMkwyNjMuOSA3NzBIMzUwdjg2LjJ6TTY2NCA4ODhINDE0Vjc0NmMwLTIyLjEtMTcuOS00MC00MC00MEgyMzJWMjY0aDQzMnY2MjR6IiAvPjwvc3ZnPg==) */ + +/**![delete](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM2MCAxODRoLThjNC40IDAgOC0zLjYgOC04djhoMzA0di04YzAgNC40IDMuNiA4IDggOGgtOHY3Mmg3MnYtODBjMC0zNS4zLTI4LjctNjQtNjQtNjRIMzUyYy0zNS4zIDAtNjQgMjguNy02NCA2NHY4MGg3MnYtNzJ6bTUwNCA3MkgxNjBjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjMyYzAgNC40IDMuNiA4IDggOGg2MC40bDI0LjcgNTIzYzEuNiAzNC4xIDI5LjggNjEgNjMuOSA2MWg0NTRjMzQuMiAwIDYyLjMtMjYuOCA2My45LTYxbDI0LjctNTIzSDg4OGM0LjQgMCA4LTMuNiA4LTh2LTMyYzAtMTcuNy0xNC4zLTMyLTMyLTMyek03MzEuMyA4NDBIMjkyLjdsLTI0LjItNTEyaDQ4N2wtMjQuMiA1MTJ6IiAvPjwvc3ZnPg==) */ + +/**![double-left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI3Mi45IDUxMmwyNjUuNC0zMzkuMWM0LjEtNS4yLjQtMTIuOS02LjMtMTIuOWgtNzcuM2MtNC45IDAtOS42IDIuMy0xMi42IDYuMUwxODYuOCA0OTIuM2EzMS45OSAzMS45OSAwIDAwMCAzOS41bDI1NS4zIDMyNi4xYzMgMy45IDcuNyA2LjEgMTIuNiA2LjFINTMyYzYuNyAwIDEwLjQtNy43IDYuMy0xMi45TDI3Mi45IDUxMnptMzA0IDBsMjY1LjQtMzM5LjFjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc3LjNjLTQuOSAwLTkuNiAyLjMtMTIuNiA2LjFMNDkwLjggNDkyLjNhMzEuOTkgMzEuOTkgMCAwMDAgMzkuNWwyNTUuMyAzMjYuMWMzIDMuOSA3LjcgNi4xIDEyLjYgNi4xSDgzNmM2LjcgMCAxMC40LTcuNyA2LjMtMTIuOUw1NzYuOSA1MTJ6IiAvPjwvc3ZnPg==) */ + +/**![double-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUzMy4yIDQ5Mi4zTDI3Ny45IDE2Ni4xYy0zLTMuOS03LjctNi4xLTEyLjYtNi4xSDE4OGMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlMNDQ3LjEgNTEyIDE4MS43IDg1MS4xQTcuOTggNy45OCAwIDAwMTg4IDg2NGg3Ny4zYzQuOSAwIDkuNi0yLjMgMTIuNi02LjFsMjU1LjMtMzI2LjFjOS4xLTExLjcgOS4xLTI3LjkgMC0zOS41em0zMDQgMEw1ODEuOSAxNjYuMWMtMy0zLjktNy43LTYuMS0xMi42LTYuMUg0OTJjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45TDc1MS4xIDUxMiA0ODUuNyA4NTEuMUE3Ljk4IDcuOTggMCAwMDQ5MiA4NjRoNzcuM2M0LjkgMCA5LjYtMi4zIDEyLjYtNi4xbDI1NS4zLTMyNi4xYzkuMS0xMS43IDkuMS0yNy45IDAtMzkuNXoiIC8+PC9zdmc+) */ + +/**![down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4NCAyNTZoLTc1Yy01LjEgMC05LjkgMi41LTEyLjkgNi42TDUxMiA2NTQuMiAyMjcuOSAyNjIuNmMtMy00LjEtNy44LTYuNi0xMi45LTYuNmgtNzVjLTYuNSAwLTEwLjMgNy40LTYuNSAxMi43bDM1Mi42IDQ4Ni4xYzEyLjggMTcuNiAzOSAxNy42IDUxLjcgMGwzNTIuNi00ODYuMWMzLjktNS4zLjEtMTIuNy02LjQtMTIuN3oiIC8+PC9zdmc+) */ + +/**![download](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUwNS43IDY2MWE4IDggMCAwMDEyLjYgMGwxMTItMTQxLjdjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc0LjFWMTY4YzAtNC40LTMuNi04LTgtOGgtNjBjLTQuNCAwLTggMy42LTggOHYzMzguM0g0MDBjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45bDExMiAxNDEuOHpNODc4IDYyNmgtNjBjLTQuNCAwLTggMy42LTggOHYxNTRIMjE0VjYzNGMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2MTk4YzAgMTcuNyAxNC4zIDMyIDMyIDMyaDY4NGMxNy43IDAgMzItMTQuMyAzMi0zMlY2MzRjMC00LjQtMy42LTgtOC04eiIgLz48L3N2Zz4=) */ + +/**![edit](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI1Ny43IDc1MmMyIDAgNC0uMiA2LS41TDQzMS45IDcyMmMyLS40IDMuOS0xLjMgNS4zLTIuOGw0MjMuOS00MjMuOWE5Ljk2IDkuOTYgMCAwMDAtMTQuMUw2OTQuOSAxMTQuOWMtMS45LTEuOS00LjQtMi45LTcuMS0yLjlzLTUuMiAxLTcuMSAyLjlMMjU2LjggNTM4LjhjLTEuNSAxLjUtMi40IDMuMy0yLjggNS4zbC0yOS41IDE2OC4yYTMzLjUgMzMuNSAwIDAwOS40IDI5LjhjNi42IDYuNCAxNC45IDkuOSAyMy44IDkuOXptNjcuNC0xNzQuNEw2ODcuOCAyMTVsNzMuMyA3My4zLTM2Mi43IDM2Mi42LTg4LjkgMTUuNyAxNS42LTg5ek04ODAgODM2SDE0NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2MzZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTM2YzAtMTcuNy0xNC4zLTMyLTMyLTMyeiIgLz48L3N2Zz4=) */ + +/**![ellipsis](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE3NiA1MTFhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMTAtMTEyIDB6bTI4MCAwYTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDEwLTExMiAwem0yODAgMGE1NiA1NiAwIDEwMTEyIDAgNTYgNTYgMCAxMC0xMTIgMHoiIC8+PC9zdmc+) */ + +/**![enter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2NCAxNzBoLTYwYy00LjQgMC04IDMuNi04IDh2NTE4SDMxMHYtNzNjMC02LjctNy44LTEwLjUtMTMtNi4zbC0xNDEuOSAxMTJhOCA4IDAgMDAwIDEyLjZsMTQxLjkgMTEyYzUuMyA0LjIgMTMgLjQgMTMtNi4zdi03NWg0OThjMzUuMyAwIDY0LTI4LjcgNjQtNjRWMTc4YzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */ + +/**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0tMzIgMjMyYzAtNC40IDMuNi04IDgtOGg0OGM0LjQgMCA4IDMuNiA4IDh2MjcyYzAgNC40LTMuNiA4LTggOGgtNDhjLTQuNCAwLTgtMy42LTgtOFYyOTZ6bTMyIDQ0MGE0OC4wMSA0OC4wMSAwIDAxMC05NiA0OC4wMSA0OC4wMSAwIDAxMCA5NnoiIC8+PC9zdmc+) */ + +/**![eye-invisible](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yUTg4OS40NyAzNzUuMTEgODE2LjcgMzA1bC01MC44OCA1MC44OEM4MDcuMzEgMzk1LjUzIDg0My40NSA0NDcuNCA4NzQuNyA1MTIgNzkxLjUgNjg0LjIgNjczLjQgNzY2IDUxMiA3NjZxLTcyLjY3IDAtMTMzLjg3LTIyLjM4TDMyMyA3OTguNzVRNDA4IDgzOCA1MTIgODM4cTI4OC4zIDAgNDMwLjItMzAwLjNhNjAuMjkgNjAuMjkgMCAwMDAtNTEuNXptLTYzLjU3LTMyMC42NEw4MzYgMTIyLjg4YTggOCAwIDAwLTExLjMyIDBMNzE1LjMxIDIzMi4yUTYyNC44NiAxODYgNTEyIDE4NnEtMjg4LjMgMC00MzAuMiAzMDAuM2E2MC4zIDYwLjMgMCAwMDAgNTEuNXE1Ni42OSAxMTkuNCAxMzYuNSAxOTEuNDFMMTEyLjQ4IDgzNWE4IDggMCAwMDAgMTEuMzFMMTU1LjE3IDg4OWE4IDggMCAwMDExLjMxIDBsNzEyLjE1LTcxMi4xMmE4IDggMCAwMDAtMTEuMzJ6TTE0OS4zIDUxMkMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGM1NC41NCAwIDEwNC4xMyA5LjM2IDE0OS4xMiAyOC4zOWwtNzAuMyA3MC4zYTE3NiAxNzYgMCAwMC0yMzguMTMgMjM4LjEzbC04My40MiA4My40MkMyMjMuMSA2MzcuNDkgMTgzLjMgNTgyLjI4IDE0OS4zIDUxMnptMjQ2LjcgMGExMTIuMTEgMTEyLjExIDAgMDExNDYuMi0xMDYuNjlMNDAxLjMxIDU0Ni4yQTExMiAxMTIgMCAwMTM5NiA1MTJ6IiAvPjxwYXRoIGQ9Ik01MDggNjI0Yy0zLjQ2IDAtNi44Ny0uMTYtMTAuMjUtLjQ3bC01Mi44MiA1Mi44MmExNzYuMDkgMTc2LjA5IDAgMDAyMjcuNDItMjI3LjQybC01Mi44MiA1Mi44MmMuMzEgMy4zOC40NyA2Ljc5LjQ3IDEwLjI1YTExMS45NCAxMTEuOTQgMCAwMS0xMTIgMTEyeiIgLz48L3N2Zz4=) */ + +/**![eye](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yQzg0Ny40IDI4Ni41IDcwNC4xIDE4NiA1MTIgMTg2Yy0xOTIuMiAwLTMzNS40IDEwMC41LTQzMC4yIDMwMC4zYTYwLjMgNjAuMyAwIDAwMCA1MS41QzE3Ni42IDczNy41IDMxOS45IDgzOCA1MTIgODM4YzE5Mi4yIDAgMzM1LjQtMTAwLjUgNDMwLjItMzAwLjMgNy43LTE2LjIgNy43LTM1IDAtNTEuNXpNNTEyIDc2NmMtMTYxLjMgMC0yNzkuNC04MS44LTM2Mi43LTI1NEMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGMxNjEuMyAwIDI3OS40IDgxLjggMzYyLjcgMjU0Qzc5MS41IDY4NC4yIDY3My40IDc2NiA1MTIgNzY2em0tNC00MzBjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em0wIDI4OGMtNjEuOSAwLTExMi01MC4xLTExMi0xMTJzNTAuMS0xMTIgMTEyLTExMiAxMTIgNTAuMSAxMTIgMTEyLTUwLjEgMTEyLTExMiAxMTJ6IiAvPjwvc3ZnPg==) */ + +/**![file-text](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHpNNTA0IDYxOEgzMjBjLTQuNCAwLTggMy42LTggOHY0OGMwIDQuNCAzLjYgOCA4IDhoMTg0YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04ek0zMTIgNDkwdjQ4YzAgNC40IDMuNiA4IDggOGgzODRjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThIMzIwYy00LjQgMC04IDMuNi04IDh6IiAvPjwvc3ZnPg==) */ + +/**![file](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUzNCAzNTJWMTM2SDIzMnY3NTJoNTYwVjM5NEg1NzZhNDIgNDIgMCAwMS00Mi00MnoiIGZpbGw9IiNlNmY0ZmYiIC8+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTYwMiAxMzcuOEw3OTAuMiAzMjZINjAyVjEzNy44ek03OTIgODg4SDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHoiIGZpbGw9IiMxNjc3ZmYiIC8+PC9zdmc+) */ + +/**![file](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHoiIC8+PC9zdmc+) */ + +/**![filter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM0OSA4MzhjMCAxNy43IDE0LjIgMzIgMzEuOCAzMmgyNjIuNGMxNy42IDAgMzEuOC0xNC4zIDMxLjgtMzJWNjQySDM0OXYxOTZ6bTUzMS4xLTY4NEgxNDMuOWMtMjQuNSAwLTM5LjggMjYuNy0yNy41IDQ4bDIyMS4zIDM3NmgzNDguOGwyMjEuMy0zNzZjMTIuMS0yMS4zLTMuMi00OC0yNy43LTQ4eiIgLz48L3N2Zz4=) */ + +/**![folder-open](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCA0NDRIODIwVjMzMC40YzAtMTcuNy0xNC4zLTMyLTMyLTMySDQ3M0wzNTUuNyAxODYuMmE4LjE1IDguMTUgMCAwMC01LjUtMi4ySDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1OTJjMCAxNy43IDE0LjMgMzIgMzIgMzJoNjk4YzEzIDAgMjQuOC03LjkgMjkuNy0yMGwxMzQtMzMyYzEuNS0zLjggMi4zLTcuOSAyLjMtMTIgMC0xNy43LTE0LjMtMzItMzItMzJ6TTEzNiAyNTZoMTg4LjVsMTE5LjYgMTE0LjRINzQ4VjQ0NEgyMzhjLTEzIDAtMjQuOCA3LjktMjkuNyAyMEwxMzYgNjQzLjJWMjU2em02MzUuMyA1MTJIMTU5bDEwMy4zLTI1Nmg2MTIuNEw3NzEuMyA3Njh6IiAvPjwvc3ZnPg==) */ + +/**![folder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAyOTguNEg1MjFMNDAzLjcgMTg2LjJhOC4xNSA4LjE1IDAgMDAtNS41LTIuMkgxNDRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjU5MmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg3MzZjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzMwLjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTg0MCA3NjhIMTg0VjI1NmgxODguNWwxMTkuNiAxMTQuNEg4NDBWNzY4eiIgLz48L3N2Zz4=) */ + +/**![holder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMwMCAyNzYuNWE1NiA1NiAwIDEwNTYtOTcgNTYgNTYgMCAwMC01NiA5N3ptMCAyODRhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCAyMjhhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDAwLTExMiAwek0zMDAgODQ0LjVhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCA3OTZhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6IiAvPjwvc3ZnPg==) */ + +/**![info-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0zMiA2NjRjMCA0LjQtMy42IDgtOCA4aC00OGMtNC40IDAtOC0zLjYtOC04VjQ1NmMwLTQuNCAzLjYtOCA4LThoNDhjNC40IDAgOCAzLjYgOCA4djI3MnptLTMyLTM0NGE0OC4wMSA0OC4wMSAwIDAxMC05NiA0OC4wMSA0OC4wMSAwIDAxMCA5NnoiIC8+PC9zdmc+) */ + +/**![left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcyNCAyMTguM1YxNDFjMC02LjctNy43LTEwLjQtMTIuOS02LjNMMjYwLjMgNDg2LjhhMzEuODYgMzEuODYgMCAwMDAgNTAuM2w0NTAuOCAzNTIuMWM1LjMgNC4xIDEyLjkuNCAxMi45LTYuM3YtNzcuM2MwLTQuOS0yLjMtOS42LTYuMS0xMi42bC0zNjAtMjgxIDM2MC0yODEuMWMzLjgtMyA2LjEtNy43IDYuMS0xMi42eiIgLz48L3N2Zz4=) */ + +/**![loading](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk4OCA1NDhjLTE5LjkgMC0zNi0xNi4xLTM2LTM2IDAtNTkuNC0xMS42LTExNy0zNC42LTE3MS4zYTQ0MC40NSA0NDAuNDUgMCAwMC05NC4zLTEzOS45IDQzNy43MSA0MzcuNzEgMCAwMC0xMzkuOS05NC4zQzYyOSA4My42IDU3MS40IDcyIDUxMiA3MmMtMTkuOSAwLTM2LTE2LjEtMzYtMzZzMTYuMS0zNiAzNi0zNmM2OS4xIDAgMTM2LjIgMTMuNSAxOTkuMyA0MC4zQzc3Mi4zIDY2IDgyNyAxMDMgODc0IDE1MGM0NyA0NyA4My45IDEwMS44IDEwOS43IDE2Mi43IDI2LjcgNjMuMSA0MC4yIDEzMC4yIDQwLjIgMTk5LjMuMSAxOS45LTE2IDM2LTM1LjkgMzZ6IiAvPjwvc3ZnPg==) */ + +/**![minus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMzY4YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04SDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */ + +/**![paper-clip](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc3OS4zIDE5Ni42Yy05NC4yLTk0LjItMjQ3LjYtOTQuMi0zNDEuNyAwbC0yNjEgMjYwLjhjLTEuNyAxLjctMi42IDQtMi42IDYuNHMuOSA0LjcgMi42IDYuNGwzNi45IDM2LjlhOSA5IDAgMDAxMi43IDBsMjYxLTI2MC44YzMyLjQtMzIuNCA3NS41LTUwLjIgMTIxLjMtNTAuMnM4OC45IDE3LjggMTIxLjIgNTAuMmMzMi40IDMyLjQgNTAuMiA3NS41IDUwLjIgMTIxLjIgMCA0NS44LTE3LjggODguOC01MC4yIDEyMS4ybC0yNjYgMjY1LjktNDMuMSA0My4xYy00MC4zIDQwLjMtMTA1LjggNDAuMy0xNDYuMSAwLTE5LjUtMTkuNS0zMC4yLTQ1LjQtMzAuMi03M3MxMC43LTUzLjUgMzAuMi03M2wyNjMuOS0yNjMuOGM2LjctNi42IDE1LjUtMTAuMyAyNC45LTEwLjNoLjFjOS40IDAgMTguMSAzLjcgMjQuNyAxMC4zIDYuNyA2LjcgMTAuMyAxNS41IDEwLjMgMjQuOSAwIDkuMy0zLjcgMTguMS0xMC4zIDI0LjdMMzcyLjQgNjUzYy0xLjcgMS43LTIuNiA0LTIuNiA2LjRzLjkgNC43IDIuNiA2LjRsMzYuOSAzNi45YTkgOSAwIDAwMTIuNyAwbDIxNS42LTIxNS42YzE5LjktMTkuOSAzMC44LTQ2LjMgMzAuOC03NC40cy0xMS01NC42LTMwLjgtNzQuNGMtNDEuMS00MS4xLTEwNy45LTQxLTE0OSAwTDQ2MyAzNjQgMjI0LjggNjAyLjFBMTcyLjIyIDE3Mi4yMiAwIDAwMTc0IDcyNC44YzAgNDYuMyAxOC4xIDg5LjggNTAuOCAxMjIuNSAzMy45IDMzLjggNzguMyA1MC43IDEyMi43IDUwLjcgNDQuNCAwIDg4LjgtMTYuOSAxMjIuNi01MC43bDMwOS4yLTMwOUM4MjQuOCA0OTIuNyA4NTAgNDMyIDg1MCAzNjcuNWMuMS02NC42LTI1LjEtMTI1LjMtNzAuNy0xNzAuOXoiIC8+PC9zdmc+) */ + +/**![picture](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCAxNjBIOTZjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjY0MGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg4MzJjMTcuNyAwIDMyLTE0LjMgMzItMzJWMTkyYzAtMTcuNy0xNC4zLTMyLTMyLTMyem0tNDAgNjMySDEzNnYtMzkuOWwxMzguNS0xNjQuMyAxNTAuMSAxNzhMNjU4LjEgNDg5IDg4OCA3NjEuNlY3OTJ6bTAtMTI5LjhMNjY0LjIgMzk2LjhjLTMuMi0zLjgtOS0zLjgtMTIuMiAwTDQyNC42IDY2Ni40bC0xNDQtMTcwLjdjLTMuMi0zLjgtOS0zLjgtMTIuMiAwTDEzNiA2NTIuN1YyMzJoNzUydjQzMC4yeiIgZmlsbD0iIzE2NzdmZiIgLz48cGF0aCBkPSJNNDI0LjYgNzY1LjhsLTE1MC4xLTE3OEwxMzYgNzUyLjFWNzkyaDc1MnYtMzAuNEw2NTguMSA0ODl6IiBmaWxsPSIjZTZmNGZmIiAvPjxwYXRoIGQ9Ik0xMzYgNjUyLjdsMTMyLjQtMTU3YzMuMi0zLjggOS0zLjggMTIuMiAwbDE0NCAxNzAuN0w2NTIgMzk2LjhjMy4yLTMuOCA5LTMuOCAxMi4yIDBMODg4IDY2Mi4yVjIzMkgxMzZ2NDIwLjd6TTMwNCAyODBhODggODggMCAxMTAgMTc2IDg4IDg4IDAgMDEwLTE3NnoiIGZpbGw9IiNlNmY0ZmYiIC8+PHBhdGggZD0iTTI3NiAzNjhhMjggMjggMCAxMDU2IDAgMjggMjggMCAxMC01NiAweiIgZmlsbD0iI2U2ZjRmZiIgLz48cGF0aCBkPSJNMzA0IDQ1NmE4OCA4OCAwIDEwMC0xNzYgODggODggMCAwMDAgMTc2em0wLTExNmMxNS41IDAgMjggMTIuNSAyOCAyOHMtMTIuNSAyOC0yOCAyOC0yOC0xMi41LTI4LTI4IDEyLjUtMjggMjgtMjh6IiBmaWxsPSIjMTY3N2ZmIiAvPjwvc3ZnPg==) */ + +/**![plus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMTUydjE1MmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjU0NGgxNTJjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */ + +/**![plus](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ4MiAxNTJoNjBxOCAwIDggOHY3MDRxMCA4LTggOGgtNjBxLTggMC04LThWMTYwcTAtOCA4LTh6IiAvPjxwYXRoIGQ9Ik0xOTIgNDc0aDY3MnE4IDAgOCA4djYwcTAgOC04IDhIMTYwcS04IDAtOC04di02MHEwLTggOC04eiIgLz48L3N2Zz4=) */ + +/**![question-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTYyMy42IDMxNi43QzU5My42IDI5MC40IDU1NCAyNzYgNTEyIDI3NnMtODEuNiAxNC41LTExMS42IDQwLjdDMzY5LjIgMzQ0IDM1MiAzODAuNyAzNTIgNDIwdjcuNmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjQyMGMwLTQ0LjEgNDMuMS04MCA5Ni04MHM5NiAzNS45IDk2IDgwYzAgMzEuMS0yMiA1OS42LTU2LjEgNzIuNy0yMS4yIDguMS0zOS4yIDIyLjMtNTIuMSA0MC45LTEzLjEgMTktMTkuOSA0MS44LTE5LjkgNjQuOVY2MjBjMCA0LjQgMy42IDggOCA4aDQ4YzQuNCAwIDgtMy42IDgtOHYtMjIuN2E0OC4zIDQ4LjMgMCAwMTMwLjktNDQuOGM1OS0yMi43IDk3LjEtNzQuNyA5Ny4xLTEzMi41LjEtMzkuMy0xNy4xLTc2LTQ4LjMtMTAzLjN6TTQ3MiA3MzJhNDAgNDAgMCAxMDgwIDAgNDAgNDAgMCAxMC04MCAweiIgLz48L3N2Zz4=) */ + +/**![reload](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS4xIDIwOS4zbC01Ni40IDQ0LjFDNzc1LjggMTU1LjEgNjU2LjIgOTIgNTIxLjkgOTIgMjkwIDkyIDEwMi4zIDI3OS41IDEwMiA1MTEuNSAxMDEuNyA3NDMuNyAyODkuOCA5MzIgNTIxLjkgOTMyYzE4MS4zIDAgMzM1LjgtMTE1IDM5NC42LTI3Ni4xIDEuNS00LjItLjctOC45LTQuOS0xMC4zbC01Ni43LTE5LjVhOCA4IDAgMDAtMTAuMSA0LjhjLTEuOCA1LTMuOCAxMC01LjkgMTQuOS0xNy4zIDQxLTQyLjEgNzcuOC03My43IDEwOS40QTM0NC43NyAzNDQuNzcgMCAwMTY1NS45IDgyOWMtNDIuMyAxNy45LTg3LjQgMjctMTMzLjggMjctNDYuNSAwLTkxLjUtOS4xLTEzMy44LTI3QTM0MS41IDM0MS41IDAgMDEyNzkgNzU1LjJhMzQyLjE2IDM0Mi4xNiAwIDAxLTczLjctMTA5LjRjLTE3LjktNDIuNC0yNy04Ny40LTI3LTEzMy45czkuMS05MS41IDI3LTEzMy45YzE3LjMtNDEgNDIuMS03Ny44IDczLjctMTA5LjQgMzEuNi0zMS42IDY4LjQtNTYuNCAxMDkuMy03My44IDQyLjMtMTcuOSA4Ny40LTI3IDEzMy44LTI3IDQ2LjUgMCA5MS41IDkuMSAxMzMuOCAyN2EzNDEuNSAzNDEuNSAwIDAxMTA5LjMgNzMuOGM5LjkgOS45IDE5LjIgMjAuNCAyNy44IDMxLjRsLTYwLjIgNDdhOCA4IDAgMDAzIDE0LjFsMTc1LjYgNDNjNSAxLjIgOS45LTIuNiA5LjktNy43bC44LTE4MC45Yy0uMS02LjYtNy44LTEwLjMtMTMtNi4yeiIgLz48L3N2Zz4=) */ + +/**![right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc2NS43IDQ4Ni44TDMxNC45IDEzNC43QTcuOTcgNy45NyAwIDAwMzAyIDE0MXY3Ny4zYzAgNC45IDIuMyA5LjYgNi4xIDEyLjZsMzYwIDI4MS4xLTM2MCAyODEuMWMtMy45IDMtNi4xIDcuNy02LjEgMTIuNlY4ODNjMCA2LjcgNy43IDEwLjQgMTIuOSA2LjNsNDUwLjgtMzUyLjFhMzEuOTYgMzEuOTYgMCAwMDAtNTAuNHoiIC8+PC9zdmc+) */ + +/**![rotate-left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHN0eWxlIC8+PC9kZWZzPjxwYXRoIGQ9Ik02NzIgNDE4SDE0NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2NDE0YzAgMTcuNyAxNC4zIDMyIDMyIDMyaDUyOGMxNy43IDAgMzItMTQuMyAzMi0zMlY0NTBjMC0xNy43LTE0LjMtMzItMzItMzJ6bS00NCA0MDJIMTg4VjQ5NGg0NDB2MzI2eiIgLz48cGF0aCBkPSJNODE5LjMgMzI4LjVjLTc4LjgtMTAwLjctMTk2LTE1My42LTMxNC42LTE1NC4ybC0uMi02NGMwLTYuNS03LjYtMTAuMS0xMi42LTYuMWwtMTI4IDEwMWMtNCAzLjEtMy45IDkuMSAwIDEyLjNMNDkyIDMxOC42YzUuMSA0IDEyLjcuNCAxMi42LTYuMXYtNjMuOWMxMi45LjEgMjUuOS45IDM4LjggMi41IDQyLjEgNS4yIDgyLjEgMTguMiAxMTkgMzguNyAzOC4xIDIxLjIgNzEuMiA0OS43IDk4LjQgODQuMyAyNy4xIDM0LjcgNDYuNyA3My43IDU4LjEgMTE1LjhhMzI1Ljk1IDMyNS45NSAwIDAxNi41IDE0MC45aDc0LjljMTQuOC0xMDMuNi0xMS4zLTIxMy04MS0zMDIuM3oiIC8+PC9zdmc+) */ + +/**![rotate-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHN0eWxlIC8+PC9kZWZzPjxwYXRoIGQ9Ik00ODAuNSAyNTEuMmMxMy0xLjYgMjUuOS0yLjQgMzguOC0yLjV2NjMuOWMwIDYuNSA3LjUgMTAuMSAxMi42IDYuMUw2NjAgMjE3LjZjNC0zLjIgNC05LjIgMC0xMi4zbC0xMjgtMTAxYy01LjEtNC0xMi42LS40LTEyLjYgNi4xbC0uMiA2NGMtMTE4LjYuNS0yMzUuOCA1My40LTMxNC42IDE1NC4yQTM5OS43NSAzOTkuNzUgMCAwMDEyMy41IDYzMWg3NC45Yy0uOS01LjMtMS43LTEwLjctMi40LTE2LjEtNS4xLTQyLjEtMi4xLTg0LjEgOC45LTEyNC44IDExLjQtNDIuMiAzMS04MS4xIDU4LjEtMTE1LjggMjcuMi0zNC43IDYwLjMtNjMuMiA5OC40LTg0LjMgMzctMjAuNiA3Ni45LTMzLjYgMTE5LjEtMzguOHoiIC8+PHBhdGggZD0iTTg4MCA0MThIMzUyYy0xNy43IDAtMzIgMTQuMy0zMiAzMnY0MTRjMCAxNy43IDE0LjMgMzIgMzIgMzJoNTI4YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjQ1MGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQ0IDQwMkgzOTZWNDk0aDQ0MHYzMjZ6IiAvPjwvc3ZnPg==) */ + +/**![search](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS42IDg1NC41TDY0OS45IDU5NC44QzY5MC4yIDU0Mi43IDcxMiA0NzkgNzEyIDQxMmMwLTgwLjItMzEuMy0xNTUuNC04Ny45LTIxMi4xLTU2LjYtNTYuNy0xMzItODcuOS0yMTIuMS04Ny45cy0xNTUuNSAzMS4zLTIxMi4xIDg3LjlDMTQzLjIgMjU2LjUgMTEyIDMzMS44IDExMiA0MTJjMCA4MC4xIDMxLjMgMTU1LjUgODcuOSAyMTIuMUMyNTYuNSA2ODAuOCAzMzEuOCA3MTIgNDEyIDcxMmM2NyAwIDEzMC42LTIxLjggMTgyLjctNjJsMjU5LjcgMjU5LjZhOC4yIDguMiAwIDAwMTEuNiAwbDQzLjYtNDMuNWE4LjIgOC4yIDAgMDAwLTExLjZ6TTU3MC40IDU3MC40QzUyOCA2MTIuNyA0NzEuOCA2MzYgNDEyIDYzNnMtMTE2LTIzLjMtMTU4LjQtNjUuNkMyMTEuMyA1MjggMTg4IDQ3MS44IDE4OCA0MTJzMjMuMy0xMTYuMSA2NS42LTE1OC40QzI5NiAyMTEuMyAzNTIuMiAxODggNDEyIDE4OHMxMTYuMSAyMy4yIDE1OC40IDY1LjZTNjM2IDM1Mi4yIDYzNiA0MTJzLTIzLjMgMTE2LjEtNjUuNiAxNTguNHoiIC8+PC9zdmc+) */ + +/**![star](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOC4xIDM1My4xbC0yNTMuOS0zNi45TDU0MC43IDg2LjFjLTMuMS02LjMtOC4yLTExLjQtMTQuNS0xNC41LTE1LjgtNy44LTM1LTEuMy00Mi45IDE0LjVMMzY5LjggMzE2LjJsLTI1My45IDM2LjljLTcgMS0xMy40IDQuMy0xOC4zIDkuM2EzMi4wNSAzMi4wNSAwIDAwLjYgNDUuM2wxODMuNyAxNzkuMS00My40IDI1Mi45YTMxLjk1IDMxLjk1IDAgMDA0Ni40IDMzLjdMNTEyIDc1NGwyMjcuMSAxMTkuNGM2LjIgMy4zIDEzLjQgNC40IDIwLjMgMy4yIDE3LjQtMyAyOS4xLTE5LjUgMjYuMS0zNi45bC00My40LTI1Mi45IDE4My43LTE3OS4xYzUtNC45IDguMy0xMS4zIDkuMy0xOC4zIDIuNy0xNy41LTkuNS0zMy43LTI3LTM2LjN6IiAvPjwvc3ZnPg==) */ + +/**![swap-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg3My4xIDU5Ni4ybC0xNjQtMjA4QTMyIDMyIDAgMDA2ODQgMzc2aC02NC44Yy02LjcgMC0xMC40IDcuNy02LjMgMTNsMTQ0LjMgMTgzSDE1MmMtNC40IDAtOCAzLjYtOCA4djYwYzAgNC40IDMuNiA4IDggOGg2OTUuOWMyNi44IDAgNDEuNy0zMC44IDI1LjItNTEuOHoiIC8+PC9zdmc+) */ + +/**![swap](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0Ny45IDU5MkgxNTJjLTQuNCAwLTggMy42LTggOHY2MGMwIDQuNCAzLjYgOCA4IDhoNjA1LjJMNjEyLjkgODUxYy00LjEgNS4yLS40IDEzIDYuMyAxM2g3Mi41YzQuOSAwIDkuNS0yLjIgMTIuNi02LjFsMTY4LjgtMjE0LjFjMTYuNS0yMSAxLjYtNTEuOC0yNS4yLTUxLjh6TTg3MiAzNTZIMjY2LjhsMTQ0LjMtMTgzYzQuMS01LjIuNC0xMy02LjMtMTNoLTcyLjVjLTQuOSAwLTkuNSAyLjItMTIuNiA2LjFMMTUwLjkgMzgwLjJjLTE2LjUgMjEtMS42IDUxLjggMjUuMSA1MS44aDY5NmM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */ + +/**![up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg5MC41IDc1NS4zTDUzNy45IDI2OS4yYy0xMi44LTE3LjYtMzktMTcuNi01MS43IDBMMTMzLjUgNzU1LjNBOCA4IDAgMDAxNDAgNzY4aDc1YzUuMSAwIDkuOS0yLjUgMTIuOS02LjZMNTEyIDM2OS44bDI4NC4xIDM5MS42YzMgNC4xIDcuOCA2LjYgMTIuOSA2LjZoNzVjNi41IDAgMTAuMy03LjQgNi41LTEyLjd6IiAvPjwvc3ZnPg==) */ + +/**![vertical-align-top](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1OS45IDE2OEgxNjQuMWMtNC41IDAtOC4xIDMuNi04LjEgOHY2MGMwIDQuNCAzLjYgOCA4LjEgOGg2OTUuOGM0LjUgMCA4LjEtMy42IDguMS04di02MGMwLTQuNC0zLjYtOC04LjEtOHpNNTE4LjMgMzU1YTggOCAwIDAwLTEyLjYgMGwtMTEyIDE0MS43YTcuOTggNy45OCAwIDAwNi4zIDEyLjloNzMuOVY4NDhjMCA0LjQgMy42IDggOCA4aDYwYzQuNCAwIDgtMy42IDgtOFY1MDkuN0g2MjRjNi43IDAgMTAuNC03LjcgNi4zLTEyLjlMNTE4LjMgMzU1eiIgLz48L3N2Zz4=) */ + +/**![warning](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk1NS43IDg1NmwtNDE2LTcyMGMtNi4yLTEwLjctMTYuOS0xNi0yNy43LTE2cy0yMS42IDUuMy0yNy43IDE2bC00MTYgNzIwQzU2IDg3Ny40IDcxLjQgOTA0IDk2IDkwNGg4MzJjMjQuNiAwIDQwLTI2LjYgMjcuNy00OHpNNDgwIDQxNmMwLTQuNCAzLjYtOCA4LThoNDhjNC40IDAgOCAzLjYgOCA4djE4NGMwIDQuNC0zLjYgOC04IDhoLTQ4Yy00LjQgMC04LTMuNi04LThWNDE2em0zMiAzNTJhNDguMDEgNDguMDEgMCAwMTAtOTYgNDguMDEgNDguMDEgMCAwMTAgOTZ6IiAvPjwvc3ZnPg==) */ + +/**![zoom-in](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYzNyA0NDNINTE5VjMwOWMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2MTM0SDMyNWMtNC40IDAtOCAzLjYtOCA4djYwYzAgNC40IDMuNiA4IDggOGgxMTh2MTM0YzAgNC40IDMuNiA4IDggOGg2MGM0LjQgMCA4LTMuNiA4LThWNTE5aDExOGM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHptMjg0IDQyNEw3NzUgNzIxYzEyMi4xLTE0OC45IDExMy42LTM2OS41LTI2LTUwOS0xNDgtMTQ4LjEtMzg4LjQtMTQ4LjEtNTM3IDAtMTQ4LjEgMTQ4LjYtMTQ4LjEgMzg5IDAgNTM3IDEzOS41IDEzOS42IDM2MC4xIDE0OC4xIDUwOSAyNmwxNDYgMTQ2YzMuMiAyLjggOC4zIDIuOCAxMSAwbDQzLTQzYzIuOC0yLjcgMi44LTcuOCAwLTExek02OTYgNjk2Yy0xMTguOCAxMTguNy0zMTEuMiAxMTguNy00MzAgMC0xMTguNy0xMTguOC0xMTguNy0zMTEuMiAwLTQzMCAxMTguOC0xMTguNyAzMTEuMi0xMTguNyA0MzAgMCAxMTguNyAxMTguOCAxMTguNyAzMTEuMiAwIDQzMHoiIC8+PC9zdmc+) */ + +/**![zoom-out](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYzNyA0NDNIMzI1Yy00LjQgMC04IDMuNi04IDh2NjBjMCA0LjQgMy42IDggOCA4aDMxMmM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHptMjg0IDQyNEw3NzUgNzIxYzEyMi4xLTE0OC45IDExMy42LTM2OS41LTI2LTUwOS0xNDgtMTQ4LjEtMzg4LjQtMTQ4LjEtNTM3IDAtMTQ4LjEgMTQ4LjYtMTQ4LjEgMzg5IDAgNTM3IDEzOS41IDEzOS42IDM2MC4xIDE0OC4xIDUwOSAyNmwxNDYgMTQ2YzMuMiAyLjggOC4zIDIuOCAxMSAwbDQzLTQzYzIuOC0yLjcgMi44LTcuOCAwLTExek02OTYgNjk2Yy0xMTguOCAxMTguNy0zMTEuMiAxMTguNy00MzAgMC0xMTguNy0xMTguOC0xMTguNy0zMTEuMiAwLTQzMCAxMTguOC0xMTguNyAzMTEuMi0xMTguNyA0MzAgMCAxMTguNyAxMTguOCAxMTguNyAzMTEuMiAwIDQzMHoiIC8+PC9zdmc+) */ diff --git a/dist/models/index.d.ts b/dist/models/index.d.ts new file mode 100644 index 0000000..90f1147 --- /dev/null +++ b/dist/models/index.d.ts @@ -0,0 +1,2 @@ +export * from './interfaces'; +export * from './types'; diff --git a/dist/models/interfaces/form.d.ts b/dist/models/interfaces/form.d.ts new file mode 100644 index 0000000..31ca5c8 --- /dev/null +++ b/dist/models/interfaces/form.d.ts @@ -0,0 +1,10 @@ +import { Control } from 'react-hook-form'; +export interface IControlField { + control: Control; +} +export interface IRegistryControlField extends IControlField { + name: string; +} +export interface IRegistryRangePickerControlField extends IControlField { + names: [string, string]; +} diff --git a/dist/models/interfaces/index.d.ts b/dist/models/interfaces/index.d.ts new file mode 100644 index 0000000..698d687 --- /dev/null +++ b/dist/models/interfaces/index.d.ts @@ -0,0 +1 @@ +export * from './form'; diff --git a/dist/models/types/design.d.ts b/dist/models/types/design.d.ts new file mode 100644 index 0000000..cef67bd --- /dev/null +++ b/dist/models/types/design.d.ts @@ -0,0 +1 @@ +export type TAxis = 'horizontal' | 'vertical'; diff --git a/dist/models/types/index.d.ts b/dist/models/types/index.d.ts new file mode 100644 index 0000000..5eb445c --- /dev/null +++ b/dist/models/types/index.d.ts @@ -0,0 +1 @@ +export * from './design'; diff --git a/dist/molecules/Blur/Blur.d.ts b/dist/molecules/Blur/Blur.d.ts new file mode 100644 index 0000000..7232edf --- /dev/null +++ b/dist/molecules/Blur/Blur.d.ts @@ -0,0 +1,9 @@ +import { HTMLAttributes } from 'react'; +interface IBlurProps extends HTMLAttributes { + isBlur?: boolean; + isFull?: boolean; + title?: string; + isLoading?: boolean; +} +export declare const Blur: (props: IBlurProps) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable | null | undefined; +export {}; diff --git a/dist/molecules/Blur/index.d.ts b/dist/molecules/Blur/index.d.ts new file mode 100644 index 0000000..96f7c25 --- /dev/null +++ b/dist/molecules/Blur/index.d.ts @@ -0,0 +1 @@ +export * from "./Blur"; diff --git a/dist/molecules/Blur/styles.d.ts b/dist/molecules/Blur/styles.d.ts new file mode 100644 index 0000000..0ea61b2 --- /dev/null +++ b/dist/molecules/Blur/styles.d.ts @@ -0,0 +1,16 @@ +export declare const BlurWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; +export declare const BlurBody: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; +export declare const BlurHeader: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; +export declare const BlurTitle: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; diff --git a/dist/molecules/Button/Button.d.ts b/dist/molecules/Button/Button.d.ts new file mode 100644 index 0000000..581cbf2 --- /dev/null +++ b/dist/molecules/Button/Button.d.ts @@ -0,0 +1,2 @@ +import { IButtonProps } from './types'; +export declare const Button: ({ width, ...antdProps }: IButtonProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Button/index.d.ts b/dist/molecules/Button/index.d.ts new file mode 100644 index 0000000..e22c29a --- /dev/null +++ b/dist/molecules/Button/index.d.ts @@ -0,0 +1 @@ +export * from "./Button"; diff --git a/dist/molecules/Button/styles.d.ts b/dist/molecules/Button/styles.d.ts new file mode 100644 index 0000000..b080e31 --- /dev/null +++ b/dist/molecules/Button/styles.d.ts @@ -0,0 +1,5 @@ +export declare const ButtonStyles: import("@emotion/styled").StyledComponent & { + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; +} & { + width?: string | number; +}, {}, {}>; diff --git a/dist/molecules/Checkbox/Checkbox.d.ts b/dist/molecules/Checkbox/Checkbox.d.ts new file mode 100644 index 0000000..83c96ef --- /dev/null +++ b/dist/molecules/Checkbox/Checkbox.d.ts @@ -0,0 +1,2 @@ +import { ICheckboxProps } from './types'; +export declare const Checkbox: ({ label: labelFieldProps, ...antdProps }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Checkbox/CheckboxControl.d.ts b/dist/molecules/Checkbox/CheckboxControl.d.ts new file mode 100644 index 0000000..b6fa3c2 --- /dev/null +++ b/dist/molecules/Checkbox/CheckboxControl.d.ts @@ -0,0 +1,2 @@ +import { ICheckboxControlProps } from './types'; +export declare const CheckboxControl: ({ name, control, label: labelFieldProps, ...antdProps }: ICheckboxControlProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Checkbox/index.d.ts b/dist/molecules/Checkbox/index.d.ts new file mode 100644 index 0000000..c68abbf --- /dev/null +++ b/dist/molecules/Checkbox/index.d.ts @@ -0,0 +1,2 @@ +export * from "./Checkbox"; +export * from "./CheckboxControl"; diff --git a/dist/molecules/Checkbox/styles.d.ts b/dist/molecules/Checkbox/styles.d.ts new file mode 100644 index 0000000..9e8e2ad --- /dev/null +++ b/dist/molecules/Checkbox/styles.d.ts @@ -0,0 +1,7 @@ +export declare const CheckboxWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; +export declare const CheckboxStyle: import("@emotion/styled").StyledComponent & { + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; +}, {}, {}>; diff --git a/dist/molecules/Checkbox/types.d.ts b/dist/molecules/Checkbox/types.d.ts new file mode 100644 index 0000000..c74903a --- /dev/null +++ b/dist/molecules/Checkbox/types.d.ts @@ -0,0 +1,7 @@ +import { CheckboxProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; +export interface ICheckboxProps extends CheckboxProps, ILabelFieldWrapperProps { +} +export interface ICheckboxControlProps extends Omit, IRegistryControlField { +} diff --git a/dist/molecules/Input/Input.d.ts b/dist/molecules/Input/Input.d.ts new file mode 100644 index 0000000..1c17652 --- /dev/null +++ b/dist/molecules/Input/Input.d.ts @@ -0,0 +1,2 @@ +import { IInputProps } from './types'; +export declare const Input: ({ label: labelFieldProps, ...antdProps }: IInputProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Input/InputControl.d.ts b/dist/molecules/Input/InputControl.d.ts new file mode 100644 index 0000000..3257798 --- /dev/null +++ b/dist/molecules/Input/InputControl.d.ts @@ -0,0 +1,2 @@ +import { IInputControlProps } from './types'; +export declare const InputControl: ({ name, control, defaultValue, label: labelFieldProps, ...antdProps }: IInputControlProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Input/index.d.ts b/dist/molecules/Input/index.d.ts new file mode 100644 index 0000000..5a41a1f --- /dev/null +++ b/dist/molecules/Input/index.d.ts @@ -0,0 +1,2 @@ +export * from './Input'; +export * from './InputControl'; diff --git a/dist/molecules/Input/styles.d.ts b/dist/molecules/Input/styles.d.ts new file mode 100644 index 0000000..bcd4729 --- /dev/null +++ b/dist/molecules/Input/styles.d.ts @@ -0,0 +1,7 @@ +export declare const InputWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; +export declare const InputStyled: import("@emotion/styled").StyledComponent & { + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; +}, {}, {}>; diff --git a/dist/molecules/Input/types.d.ts b/dist/molecules/Input/types.d.ts new file mode 100644 index 0000000..f0fc32d --- /dev/null +++ b/dist/molecules/Input/types.d.ts @@ -0,0 +1,7 @@ +import { InputProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; +export interface IInputProps extends InputProps, ILabelFieldWrapperProps { +} +export interface IInputControlProps extends Omit, IRegistryControlField { +} diff --git a/dist/molecules/InputNumber/InputNumber.d.ts b/dist/molecules/InputNumber/InputNumber.d.ts new file mode 100644 index 0000000..3ed5b89 --- /dev/null +++ b/dist/molecules/InputNumber/InputNumber.d.ts @@ -0,0 +1,2 @@ +import { IInputNumberProps } from './types'; +export declare const InputNumber: ({ label: labelFieldProps, ...antdProps }: IInputNumberProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/InputNumber/InputNumberControl.d.ts b/dist/molecules/InputNumber/InputNumberControl.d.ts new file mode 100644 index 0000000..93f1d84 --- /dev/null +++ b/dist/molecules/InputNumber/InputNumberControl.d.ts @@ -0,0 +1,2 @@ +import { IInputNumberControlProps } from './types'; +export declare const InputNumberControl: ({ name, control, defaultValue, label: labelFieldProps, ...antdProps }: IInputNumberControlProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/InputNumber/index.d.ts b/dist/molecules/InputNumber/index.d.ts new file mode 100644 index 0000000..7f32d13 --- /dev/null +++ b/dist/molecules/InputNumber/index.d.ts @@ -0,0 +1,2 @@ +export * from "./InputNumber"; +export * from "./InputNumberControl"; diff --git a/dist/molecules/InputNumber/styles.d.ts b/dist/molecules/InputNumber/styles.d.ts new file mode 100644 index 0000000..46a7431 --- /dev/null +++ b/dist/molecules/InputNumber/styles.d.ts @@ -0,0 +1,9 @@ +export declare const InputWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; +export declare const InputNumberStyled: import("@emotion/styled").StyledComponent & { + children?: import("react").ReactNode | undefined; +} & import("react").RefAttributes & { + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; +}, {}, {}>; diff --git a/dist/molecules/InputNumber/types.d.ts b/dist/molecules/InputNumber/types.d.ts new file mode 100644 index 0000000..45d5935 --- /dev/null +++ b/dist/molecules/InputNumber/types.d.ts @@ -0,0 +1,7 @@ +import { InputNumberProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; +export interface IInputNumberProps extends InputNumberProps, ILabelFieldWrapperProps { +} +export interface IInputNumberControlProps extends Omit, IRegistryControlField { +} diff --git a/dist/molecules/InputPassword/InputPassword.d.ts b/dist/molecules/InputPassword/InputPassword.d.ts new file mode 100644 index 0000000..49c346c --- /dev/null +++ b/dist/molecules/InputPassword/InputPassword.d.ts @@ -0,0 +1,2 @@ +import { IInputPasswordProps } from './types'; +export declare const InputPassword: ({ label: labelFieldProps, ...antdProps }: IInputPasswordProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/InputPassword/InputPasswordControl.d.ts b/dist/molecules/InputPassword/InputPasswordControl.d.ts new file mode 100644 index 0000000..333d069 --- /dev/null +++ b/dist/molecules/InputPassword/InputPasswordControl.d.ts @@ -0,0 +1,2 @@ +import { IInputPasswordControlProps } from './types'; +export declare const InputPasswordControl: ({ name, control, defaultValue, label: labelFieldProps, ...antdProps }: IInputPasswordControlProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/InputPassword/index.d.ts b/dist/molecules/InputPassword/index.d.ts new file mode 100644 index 0000000..e453aee --- /dev/null +++ b/dist/molecules/InputPassword/index.d.ts @@ -0,0 +1,2 @@ +export * from './InputPassword'; +export * from './InputPasswordControl'; diff --git a/dist/molecules/InputPassword/styles.d.ts b/dist/molecules/InputPassword/styles.d.ts new file mode 100644 index 0000000..eed8ab1 --- /dev/null +++ b/dist/molecules/InputPassword/styles.d.ts @@ -0,0 +1,7 @@ +export declare const InputWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; +export declare const InputStyled: import("@emotion/styled").StyledComponent & { + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; +}, {}, {}>; diff --git a/dist/molecules/InputPassword/types.d.ts b/dist/molecules/InputPassword/types.d.ts new file mode 100644 index 0000000..d4f926c --- /dev/null +++ b/dist/molecules/InputPassword/types.d.ts @@ -0,0 +1,7 @@ +import { InputProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; +export interface IInputPasswordProps extends InputProps, ILabelFieldWrapperProps { +} +export interface IInputPasswordControlProps extends Omit, IRegistryControlField { +} diff --git a/dist/molecules/LabelField/index.d.ts b/dist/molecules/LabelField/index.d.ts new file mode 100644 index 0000000..f5736f5 --- /dev/null +++ b/dist/molecules/LabelField/index.d.ts @@ -0,0 +1,3 @@ +import { PropsWithChildren } from 'react'; +import { ILabelFieldProps } from './types'; +export declare const LabelField: (props: ILabelFieldProps & PropsWithChildren) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/LabelField/styles.d.ts b/dist/molecules/LabelField/styles.d.ts new file mode 100644 index 0000000..4afb83e --- /dev/null +++ b/dist/molecules/LabelField/styles.d.ts @@ -0,0 +1,13 @@ +export declare const LabelFieldWrapper: import("@emotion/styled").StyledComponent & import("react").RefAttributes & { + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; +}, {}, {}>; +export declare const Label: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +} & { + isNotCapitalize?: boolean; +}, import("react").DetailedHTMLProps, HTMLLabelElement>, {}>; +export declare const LabelDescription: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLLabelElement>, {}>; diff --git a/dist/molecules/LabelField/types.d.ts b/dist/molecules/LabelField/types.d.ts new file mode 100644 index 0000000..2cee1ca --- /dev/null +++ b/dist/molecules/LabelField/types.d.ts @@ -0,0 +1,21 @@ +import { TAxis } from '../../models'; +export interface ILabelFieldProps { + /** Text label. */ + text?: string; + /** Label axis used to determine whether the label is displayed vertically or horizontally. */ + axis?: TAxis; + /** Description for the label. */ + description?: string; + /** Indicates if a colon should be appended to the label. */ + isColon?: boolean; + /** Indicates if the field is required. */ + required?: boolean; + /** Specifies the width of the field. */ + widthControl?: string | number; + /** Specifies the id of the element the label is bound to. */ + htmlFor?: string; +} +export interface ILabelFieldWrapperProps { + /** The properties for the label field. If set to false, the label will not be rendered. */ + label?: ILabelFieldProps | false; +} diff --git a/dist/molecules/Pagination/Pagination.d.ts b/dist/molecules/Pagination/Pagination.d.ts new file mode 100644 index 0000000..24e7d74 --- /dev/null +++ b/dist/molecules/Pagination/Pagination.d.ts @@ -0,0 +1,2 @@ +import { IPaginationProps } from './types'; +export declare const Pagination: ({ ...antdProps }: IPaginationProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Pagination/index.d.ts b/dist/molecules/Pagination/index.d.ts new file mode 100644 index 0000000..e016c96 --- /dev/null +++ b/dist/molecules/Pagination/index.d.ts @@ -0,0 +1 @@ +export * from './Pagination'; diff --git a/dist/molecules/Pagination/styles.d.ts b/dist/molecules/Pagination/styles.d.ts new file mode 100644 index 0000000..c03018f --- /dev/null +++ b/dist/molecules/Pagination/styles.d.ts @@ -0,0 +1,4 @@ +export declare const PaginationWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; diff --git a/dist/molecules/Pagination/types.d.ts b/dist/molecules/Pagination/types.d.ts new file mode 100644 index 0000000..9b90f6c --- /dev/null +++ b/dist/molecules/Pagination/types.d.ts @@ -0,0 +1,3 @@ +import { PaginationProps } from 'antd'; +export interface IPaginationProps extends PaginationProps { +} diff --git a/dist/molecules/Radio/Radio.d.ts b/dist/molecules/Radio/Radio.d.ts new file mode 100644 index 0000000..2d5e5a3 --- /dev/null +++ b/dist/molecules/Radio/Radio.d.ts @@ -0,0 +1,2 @@ +import { IRadioProps } from './types'; +export declare const Radio: ({ label: labelFieldProps, ...antdProps }: IRadioProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Radio/RadioControl.d.ts b/dist/molecules/Radio/RadioControl.d.ts new file mode 100644 index 0000000..51598d3 --- /dev/null +++ b/dist/molecules/Radio/RadioControl.d.ts @@ -0,0 +1,2 @@ +import { IRadioControlProps } from './types'; +export declare const RadioControl: ({ name, control, label: labelFieldProps, ...antdProps }: IRadioControlProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Radio/index.d.ts b/dist/molecules/Radio/index.d.ts new file mode 100644 index 0000000..ac66a3f --- /dev/null +++ b/dist/molecules/Radio/index.d.ts @@ -0,0 +1,3 @@ +export * from "./Radio"; +export * from "./RadioControl"; +export * from "./types"; diff --git a/dist/molecules/Radio/styles.d.ts b/dist/molecules/Radio/styles.d.ts new file mode 100644 index 0000000..03f9474 --- /dev/null +++ b/dist/molecules/Radio/styles.d.ts @@ -0,0 +1,8 @@ +export declare const RadioWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; +export declare const RadioLabel: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLLabelElement>, {}>; diff --git a/dist/molecules/Radio/types.d.ts b/dist/molecules/Radio/types.d.ts new file mode 100644 index 0000000..a8afa25 --- /dev/null +++ b/dist/molecules/Radio/types.d.ts @@ -0,0 +1,7 @@ +import { RadioProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; +export interface IRadioProps extends RadioProps, ILabelFieldWrapperProps { +} +export interface IRadioControlProps extends Omit, IRegistryControlField { +} diff --git a/dist/molecules/RangePicker/RangePicker.d.ts b/dist/molecules/RangePicker/RangePicker.d.ts new file mode 100644 index 0000000..2bc5ab6 --- /dev/null +++ b/dist/molecules/RangePicker/RangePicker.d.ts @@ -0,0 +1,2 @@ +import { IRangePickerProps } from './types'; +export declare const RangePicker: ({ label: labelFieldProps, ...antdProps }: IRangePickerProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/RangePicker/RangePickerControl.d.ts b/dist/molecules/RangePicker/RangePickerControl.d.ts new file mode 100644 index 0000000..e283918 --- /dev/null +++ b/dist/molecules/RangePicker/RangePickerControl.d.ts @@ -0,0 +1,2 @@ +import { IRangePickerControlProps } from './types'; +export declare const RangePickerControl: ({ names, control, label: labelFieldProps, ...antdProps }: IRangePickerControlProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/RangePicker/index.d.ts b/dist/molecules/RangePicker/index.d.ts new file mode 100644 index 0000000..ce6b9de --- /dev/null +++ b/dist/molecules/RangePicker/index.d.ts @@ -0,0 +1,3 @@ +export * from './RangePicker'; +export * from './RangePickerControl'; +export * from "./types"; diff --git a/dist/molecules/RangePicker/styles.d.ts b/dist/molecules/RangePicker/styles.d.ts new file mode 100644 index 0000000..cbf3de6 --- /dev/null +++ b/dist/molecules/RangePicker/styles.d.ts @@ -0,0 +1,4 @@ +export declare const RangePickerWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; diff --git a/dist/molecules/RangePicker/types.d.ts b/dist/molecules/RangePicker/types.d.ts new file mode 100644 index 0000000..abd495f --- /dev/null +++ b/dist/molecules/RangePicker/types.d.ts @@ -0,0 +1,7 @@ +import { RangePickerProps } from 'antd/es/date-picker'; +import { IRegistryRangePickerControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; +export interface IRangePickerProps extends RangePickerProps, ILabelFieldWrapperProps { +} +export interface IRangePickerControlProps extends Omit, IRegistryRangePickerControlField { +} diff --git a/dist/molecules/Select/Select.d.ts b/dist/molecules/Select/Select.d.ts new file mode 100644 index 0000000..485ea98 --- /dev/null +++ b/dist/molecules/Select/Select.d.ts @@ -0,0 +1,2 @@ +import { ISelectProps } from './types'; +export declare const Select: ({ label: labelFieldProps, width, minWidth, isHideValueOnLoading, ...antdProps }: ISelectProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Select/SelectControl.d.ts b/dist/molecules/Select/SelectControl.d.ts new file mode 100644 index 0000000..649f90a --- /dev/null +++ b/dist/molecules/Select/SelectControl.d.ts @@ -0,0 +1,2 @@ +import { ISelectControlProps } from './types'; +export declare const SelectControl: ({ name, control, defaultValue, label: labelFieldProps, ...antdProps }: ISelectControlProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Select/index.d.ts b/dist/molecules/Select/index.d.ts new file mode 100644 index 0000000..a912f27 --- /dev/null +++ b/dist/molecules/Select/index.d.ts @@ -0,0 +1,3 @@ +export * from './Select'; +export * from './SelectControl'; +export * from "./types"; diff --git a/dist/molecules/Select/styles.d.ts b/dist/molecules/Select/styles.d.ts new file mode 100644 index 0000000..aef41ea --- /dev/null +++ b/dist/molecules/Select/styles.d.ts @@ -0,0 +1,7 @@ +export declare const SelectWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +} & { + width?: string | number; + minWidth?: string | number; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; diff --git a/dist/molecules/Select/types.d.ts b/dist/molecules/Select/types.d.ts new file mode 100644 index 0000000..a7d078e --- /dev/null +++ b/dist/molecules/Select/types.d.ts @@ -0,0 +1,19 @@ +import { SelectProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; +export interface ISelectProps extends SelectProps, ILabelFieldWrapperProps { + /** + * Width of the select component. + */ + width?: string | number; + /** + * Min width of the select component. + */ + minWidth?: string | number; + /** + * When loading is true, the value will be hidden, default is true. + */ + isHideValueOnLoading?: boolean; +} +export interface ISelectControlProps extends Omit, IRegistryControlField { +} diff --git a/dist/molecules/Switch/Switch.d.ts b/dist/molecules/Switch/Switch.d.ts new file mode 100644 index 0000000..5b18602 --- /dev/null +++ b/dist/molecules/Switch/Switch.d.ts @@ -0,0 +1,2 @@ +import { ISwitchProps } from './types'; +export declare const Switch: ({ label: labelFieldProps, responseType, ...antdProps }: ISwitchProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Switch/SwitchControl.d.ts b/dist/molecules/Switch/SwitchControl.d.ts new file mode 100644 index 0000000..ecdb938 --- /dev/null +++ b/dist/molecules/Switch/SwitchControl.d.ts @@ -0,0 +1,2 @@ +import { ISwitchControlProps } from './types'; +export declare const SwitchControl: ({ name, control, responseType, label: labelFieldProps, ...antdProps }: ISwitchControlProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Switch/index.d.ts b/dist/molecules/Switch/index.d.ts new file mode 100644 index 0000000..8f33e64 --- /dev/null +++ b/dist/molecules/Switch/index.d.ts @@ -0,0 +1,3 @@ +export * from './Switch'; +export * from './SwitchControl'; +export * from "./types"; diff --git a/dist/molecules/Switch/styles.d.ts b/dist/molecules/Switch/styles.d.ts new file mode 100644 index 0000000..f549266 --- /dev/null +++ b/dist/molecules/Switch/styles.d.ts @@ -0,0 +1,4 @@ +export declare const SwitchWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; diff --git a/dist/molecules/Switch/types.d.ts b/dist/molecules/Switch/types.d.ts new file mode 100644 index 0000000..c1519db --- /dev/null +++ b/dist/molecules/Switch/types.d.ts @@ -0,0 +1,11 @@ +import { SwitchProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; +export interface ISwitchProps extends SwitchProps, ILabelFieldWrapperProps { + /** + * The value type you want to get from the switch. Default is 'boolean'. + */ + responseType?: 'number' | 'boolean'; +} +export interface ISwitchControlProps extends Omit, IRegistryControlField { +} diff --git a/dist/molecules/Table/Table.d.ts b/dist/molecules/Table/Table.d.ts new file mode 100644 index 0000000..f4d19b9 --- /dev/null +++ b/dist/molecules/Table/Table.d.ts @@ -0,0 +1,4 @@ +import { TableProps } from 'antd'; +import { AnyObject } from 'antd/es/_util/type'; +export type TTableProps = TableProps & {}; +export declare const Table: ({ ...antdProps }: TTableProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/Table/index.d.ts b/dist/molecules/Table/index.d.ts new file mode 100644 index 0000000..75193ad --- /dev/null +++ b/dist/molecules/Table/index.d.ts @@ -0,0 +1 @@ +export * from './Table'; diff --git a/dist/molecules/Table/styles.d.ts b/dist/molecules/Table/styles.d.ts new file mode 100644 index 0000000..525735a --- /dev/null +++ b/dist/molecules/Table/styles.d.ts @@ -0,0 +1,4 @@ +export declare const TableWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; diff --git a/dist/molecules/TextArea/TextArea.d.ts b/dist/molecules/TextArea/TextArea.d.ts new file mode 100644 index 0000000..e889c65 --- /dev/null +++ b/dist/molecules/TextArea/TextArea.d.ts @@ -0,0 +1,2 @@ +import { ITextareaProps } from './types'; +export declare const TextArea: ({ label: labelFieldProps, ...antdProps }: ITextareaProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/TextArea/TextAreaControl.d.ts b/dist/molecules/TextArea/TextAreaControl.d.ts new file mode 100644 index 0000000..28d6276 --- /dev/null +++ b/dist/molecules/TextArea/TextAreaControl.d.ts @@ -0,0 +1,2 @@ +import { ITextareaControlProps } from './types'; +export declare const TextareaControl: ({ name, control, label: labelFieldProps, ...antdProps }: ITextareaControlProps) => import("react/jsx-runtime").JSX.Element; diff --git a/dist/molecules/TextArea/index.d.ts b/dist/molecules/TextArea/index.d.ts new file mode 100644 index 0000000..6bfd411 --- /dev/null +++ b/dist/molecules/TextArea/index.d.ts @@ -0,0 +1,3 @@ +export * from './TextArea'; +export * from './TextAreaControl'; +export * from "./types"; diff --git a/dist/molecules/TextArea/styles.d.ts b/dist/molecules/TextArea/styles.d.ts new file mode 100644 index 0000000..40aa01f --- /dev/null +++ b/dist/molecules/TextArea/styles.d.ts @@ -0,0 +1,7 @@ +export declare const TextareaWrapper: import("@emotion/styled").StyledComponent<{ + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; + as?: React.ElementType; +}, import("react").DetailedHTMLProps, HTMLDivElement>, {}>; +export declare const TextareaStyled: import("@emotion/styled").StyledComponent & { + theme?: import("@emotion/react/dist/emotion-react.cjs").Theme; +}, {}, {}>; diff --git a/dist/molecules/TextArea/types.d.ts b/dist/molecules/TextArea/types.d.ts new file mode 100644 index 0000000..d5d0ab9 --- /dev/null +++ b/dist/molecules/TextArea/types.d.ts @@ -0,0 +1,7 @@ +import { TextAreaProps } from 'antd/es/input'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; +export interface ITextareaProps extends TextAreaProps, ILabelFieldWrapperProps { +} +export interface ITextareaControlProps extends Omit, IRegistryControlField { +} diff --git a/dist/molecules/index.d.ts b/dist/molecules/index.d.ts new file mode 100644 index 0000000..9d5b6d6 --- /dev/null +++ b/dist/molecules/index.d.ts @@ -0,0 +1,24 @@ +export * from './Avatar/index'; +export * from './Blur/index'; +export * from './Button/index'; +export * from './Card/index'; +export * from './Checkbox/index'; +export * from './Col/index'; +export * from './Divider/index'; +export * from './Drawer/index'; +export * from './Dropdown/index'; +export * from './Input/index'; +export * from './InputNumber/index'; +export * from './InputPassword/index'; +export * from './LabelField/index'; +export * from './Layout/index'; +export * from './Menu/index'; +export * from './Popover/index'; +export * from './Radio/index'; +export * from './RangePicker/index'; +export * from './Row/index'; +export * from './Select/index'; +export * from './Switch/index'; +export * from './TextArea/index'; +export * from './Tooltip/index'; +export * from './Table/index'; diff --git a/dist/organisms/App/App.d.ts b/dist/organisms/App/App.d.ts new file mode 100644 index 0000000..fe1c5a9 --- /dev/null +++ b/dist/organisms/App/App.d.ts @@ -0,0 +1,12 @@ +import { AppProps } from 'antd'; +import { useAppProps } from 'antd/es/app/context'; +interface IAppProps extends AppProps { +} +declare const App: { + (props: IAppProps): import("react/jsx-runtime").JSX.Element; + useApp: () => useAppProps; +}; +export declare const useNotification: () => import("antd/es/notification/interface").NotificationInstance; +export declare const useMessage: () => import("antd/es/message/interface").MessageInstance; +export declare const useModal: () => import("antd/es/modal/useModal").HookAPI; +export default App; diff --git a/dist/organisms/App/index.d.ts b/dist/organisms/App/index.d.ts new file mode 100644 index 0000000..ac7ba3b --- /dev/null +++ b/dist/organisms/App/index.d.ts @@ -0,0 +1 @@ +export * from './App'; diff --git a/dist/organisms/index.d.ts b/dist/organisms/index.d.ts new file mode 100644 index 0000000..00b8912 --- /dev/null +++ b/dist/organisms/index.d.ts @@ -0,0 +1 @@ +export { default as App } from './App/App'; diff --git a/package.json b/package.json index 1a7927c..afba8b2 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,17 @@ { "name": "1byte-react-design", - "version": "1.0.16", + "version": "0.9.27", "main": "dist/index.js", + "module": "dist/index.js", + "types": "dist/index.d.ts", "license": "MIT", "scripts": { - "build": "webpack --config webpack.config.js" + "build": "webpack --config webpack.config.js", + "test": "webpack --config webpack.config.js && yalc publish --push --no-scripts" }, + "files": [ + "dist" + ], "dependencies": { "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", diff --git a/src/ConfigProviderDesign.tsx b/src/ConfigProviderDesign.tsx new file mode 100644 index 0000000..7980d8d --- /dev/null +++ b/src/ConfigProviderDesign.tsx @@ -0,0 +1,44 @@ +import { ConfigProvider, ThemeConfig } from 'antd'; +import { PropsWithChildren } from 'react'; +import { config } from '.'; + +interface IConfigProviderDesignProps extends PropsWithChildren { + /** + * The theme components configuration. + * This will override the default `config.componentToken` if provided. + */ + componentToken?: ThemeConfig['components']; + + /** + * The theme design token configuration. + * This will override the default `config.designToken` if provided. + */ + designToken?: ThemeConfig['token']; +} + +export const ConfigProviderDesign = ({ + children, + componentToken, + designToken, +}: IConfigProviderDesignProps) => { + const componentTokenCombined = { + ...config.componentToken, + ...componentToken, + }; + + const designTokenCombined = { + ...config.designToken, + ...designToken, + }; + + return ( + + {children} + + ); +}; diff --git a/src/ContextProvider.tsx b/src/ContextProvider.tsx deleted file mode 100644 index 137a9ce..0000000 --- a/src/ContextProvider.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { ConfigProvider } from 'antd'; -import { config } from '.'; -import { PropsWithChildren } from 'react'; - -export const ConfigProviderDesign = ({ children }: PropsWithChildren) => { - return ( - - {children} - - ); -}; diff --git a/src/atomics/ConditionalWrapper/index.tsx b/src/atomics/ConditionalWrapper/index.tsx new file mode 100644 index 0000000..47e00e5 --- /dev/null +++ b/src/atomics/ConditionalWrapper/index.tsx @@ -0,0 +1,14 @@ +import { ConditionalWrapperProps } from './types'; + +/** + * ConditionalWrapper is a component that conditionally wraps its children + * inside another component based on a given condition. If the condition is `true`, + * it renders the children inside the specified wrapper component with the provided + * wrapper props. If the condition is `false`, it renders the children without any wrapper. + * */ +const ConditionalWrapper = (props: ConditionalWrapperProps) => { + const { condition, wrapper: Wrapper, wrapperProps, children } = props; + return condition ? {children} : <>{children}; +}; + +export default ConditionalWrapper; diff --git a/src/atomics/ConditionalWrapper/types.ts b/src/atomics/ConditionalWrapper/types.ts new file mode 100644 index 0000000..d33b4c1 --- /dev/null +++ b/src/atomics/ConditionalWrapper/types.ts @@ -0,0 +1,8 @@ +import { ReactNode } from 'react'; + +export interface ConditionalWrapperProps { + condition: boolean; + wrapper: React.ComponentType; + wrapperProps: React.ComponentProps; + children: ReactNode; +} diff --git a/src/atomics/Flex/Flex.tsx b/src/atomics/Flex/Flex.tsx new file mode 100644 index 0000000..9240fcd --- /dev/null +++ b/src/atomics/Flex/Flex.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { FlexStyles } from './styles'; +import { IFlexProps } from './types'; + +export const Flex = ({ ...antdProps }: IFlexProps) => { + return ( + + + + ); +}; diff --git a/src/atomics/Flex/index.tsx b/src/atomics/Flex/index.tsx new file mode 100644 index 0000000..afad8bf --- /dev/null +++ b/src/atomics/Flex/index.tsx @@ -0,0 +1,2 @@ +export * from './Flex'; +export * from './types'; \ No newline at end of file diff --git a/src/atomics/Flex/styles.tsx b/src/atomics/Flex/styles.tsx new file mode 100644 index 0000000..0d60fe9 --- /dev/null +++ b/src/atomics/Flex/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Flex } from 'antd'; + +export const FlexStyles = styled(Flex)``; diff --git a/src/atomics/Flex/types.ts b/src/atomics/Flex/types.ts new file mode 100644 index 0000000..84a576c --- /dev/null +++ b/src/atomics/Flex/types.ts @@ -0,0 +1,3 @@ +import { FlexProps } from 'antd'; + +export interface IFlexProps extends FlexProps {} diff --git a/src/atomics/TextError/TextError.tsx b/src/atomics/TextError/TextError.tsx new file mode 100644 index 0000000..9a3f8c8 --- /dev/null +++ b/src/atomics/TextError/TextError.tsx @@ -0,0 +1,7 @@ +import { TextErrorWrapper } from './styles'; +import { ITextErrorProps } from './types'; + +export const TextError = (props: ITextErrorProps) => { + const { children } = props; + return {children}; +}; diff --git a/src/atomics/TextError/index.ts b/src/atomics/TextError/index.ts new file mode 100644 index 0000000..5b9fa95 --- /dev/null +++ b/src/atomics/TextError/index.ts @@ -0,0 +1 @@ +export * from './TextError'; \ No newline at end of file diff --git a/src/atomics/TextError.tsx b/src/atomics/TextError/styles.tsx similarity index 54% rename from src/atomics/TextError.tsx rename to src/atomics/TextError/styles.tsx index 919dcf3..a4a1fca 100644 --- a/src/atomics/TextError.tsx +++ b/src/atomics/TextError/styles.tsx @@ -1,6 +1,6 @@ import styled from '@emotion/styled'; -import { config } from '..'; +import { config } from '../..'; -export const TextError = styled.div` +export const TextErrorWrapper = styled.div` color: ${config.designToken.colorErrorText}; `; diff --git a/src/atomics/TextError/types.ts b/src/atomics/TextError/types.ts new file mode 100644 index 0000000..ef5c244 --- /dev/null +++ b/src/atomics/TextError/types.ts @@ -0,0 +1,10 @@ +import { PropsWithChildren } from 'react'; +import { IBaseHProps } from '../Typography/types'; + +export interface ITextErrorProps extends PropsWithChildren {} +export interface IH1Props extends IBaseHProps {} +export interface IH2Props extends IBaseHProps {} +export interface IH3Props extends IBaseHProps {} +export interface IH4Props extends IBaseHProps {} +export interface IH5Props extends IBaseHProps {} +export interface IH6Props extends IBaseHProps {} diff --git a/src/atomics/Typography/H1.tsx b/src/atomics/Typography/H1.tsx new file mode 100644 index 0000000..320ea53 --- /dev/null +++ b/src/atomics/Typography/H1.tsx @@ -0,0 +1,12 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { IH1Props } from '../TextError/types'; +import { H1Wrapper } from './styles'; + +export const H1 = (props: IH1Props) => { + const { children } = props; + return ( + + {children} + + ); +}; diff --git a/src/atomics/Typography/H2.tsx b/src/atomics/Typography/H2.tsx new file mode 100644 index 0000000..92d31ac --- /dev/null +++ b/src/atomics/Typography/H2.tsx @@ -0,0 +1,12 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { IH2Props } from '../TextError/types'; +import { H2Wrapper } from './styles'; + +export const H2 = (props: IH2Props) => { + const { children } = props; + return ( + + {children} + + ); +}; diff --git a/src/atomics/Typography/H3.tsx b/src/atomics/Typography/H3.tsx new file mode 100644 index 0000000..e700b70 --- /dev/null +++ b/src/atomics/Typography/H3.tsx @@ -0,0 +1,12 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { IH3Props } from '../TextError/types'; +import { H3Wrapper } from './styles'; + +export const H3 = (props: IH3Props) => { + const { children } = props; + return ( + + {children} + + ); +}; diff --git a/src/atomics/Typography/H4.tsx b/src/atomics/Typography/H4.tsx new file mode 100644 index 0000000..b9214ae --- /dev/null +++ b/src/atomics/Typography/H4.tsx @@ -0,0 +1,12 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { IH4Props } from '../TextError/types'; +import { H4Wrapper } from './styles'; + +export const H4 = (props: IH4Props) => { + const { children } = props; + return ( + + {children} + + ); +}; diff --git a/src/atomics/Typography/H5.tsx b/src/atomics/Typography/H5.tsx new file mode 100644 index 0000000..7ae7cf5 --- /dev/null +++ b/src/atomics/Typography/H5.tsx @@ -0,0 +1,12 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { IH5Props } from '../TextError/types'; +import { H5Wrapper } from './styles'; + +export const H5 = (props: IH5Props) => { + const { children } = props; + return ( + + {children} + + ); +}; diff --git a/src/atomics/Typography/H6.tsx b/src/atomics/Typography/H6.tsx new file mode 100644 index 0000000..ba748fd --- /dev/null +++ b/src/atomics/Typography/H6.tsx @@ -0,0 +1,12 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { IH6Props } from '../TextError/types'; +import { H6Wrapper } from './styles'; + +export const H6 = (props: IH6Props) => { + const { children } = props; + return ( + + {children} + + ); +}; diff --git a/src/atomics/Typography/index.ts b/src/atomics/Typography/index.ts new file mode 100644 index 0000000..397f5c1 --- /dev/null +++ b/src/atomics/Typography/index.ts @@ -0,0 +1,6 @@ +export * from './H1'; +export * from './H2'; +export * from './H3'; +export * from './H4'; +export * from './H5'; +export * from './H6'; diff --git a/src/atomics/Typography/styles.tsx b/src/atomics/Typography/styles.tsx new file mode 100644 index 0000000..f013f60 --- /dev/null +++ b/src/atomics/Typography/styles.tsx @@ -0,0 +1,8 @@ +import styled from '@emotion/styled'; + +export const H1Wrapper = styled.h1``; +export const H2Wrapper = styled.h2``; +export const H3Wrapper = styled.h3``; +export const H4Wrapper = styled.h4``; +export const H5Wrapper = styled.h5``; +export const H6Wrapper = styled.h6``; diff --git a/src/atomics/Typography/types.ts b/src/atomics/Typography/types.ts new file mode 100644 index 0000000..60e2113 --- /dev/null +++ b/src/atomics/Typography/types.ts @@ -0,0 +1,3 @@ +import { PropsWithChildren } from "react"; + +export interface IBaseHProps extends PropsWithChildren {} \ No newline at end of file diff --git a/src/atomics/index.ts b/src/atomics/index.ts index 8c560d6..5c68272 100644 --- a/src/atomics/index.ts +++ b/src/atomics/index.ts @@ -1 +1,3 @@ -export * from './TextError'; +export * from './Flex/index'; +export * from './TextError/index'; +export * from './Typography/index'; diff --git a/src/designs/Label.tsx b/src/designs/Label.tsx deleted file mode 100644 index 42ff451..0000000 --- a/src/designs/Label.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { css } from '@emotion/react'; -import styled from '@emotion/styled'; -import { theme } from 'antd'; - -const { useToken } = theme; - -export const Label = styled.label<{ isNotCapitalize?: boolean }>` - white-space: nowrap; - display: block; - margin-bottom: 3px; - text-align: left; - - ${() => { - const { token } = useToken(); - return css` - sup { - color: ${token.colorError}; - } - `; - }} - - ${({ isNotCapitalize }) => - isNotCapitalize - ? css` - text-transform: none; - ` - : css` - text-transform: capitalize; - `} -`; diff --git a/src/designs/Spin/index.tsx b/src/designs/Spin/index.tsx deleted file mode 100644 index a48c74c..0000000 --- a/src/designs/Spin/index.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { Spin as SpinAntd, SpinProps } from 'antd'; -import { PropsWithChildren } from 'react'; -import { SpinWrapper } from './styles'; - -interface ISpinnerProps extends PropsWithChildren, SpinProps { - isFull?: boolean; -} - -export const Spin = ({ children, isFull = false, ...antdProps }: ISpinnerProps) => { - return ( - - {children} - - ); -}; diff --git a/src/designs/Spin/styles.tsx b/src/designs/Spin/styles.tsx deleted file mode 100644 index 7e39a64..0000000 --- a/src/designs/Spin/styles.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { css } from '@emotion/react'; -import styled from '@emotion/styled'; - -export const SpinWrapper = styled.div<{ isFull: boolean }>` - ${({ isFull }) => - isFull && - css` - width: 100%; - height: 100%; - - .ant-spin-container, - .ant-spin-nested-loading { - width: 100%; - height: 100%; - } - `} -`; diff --git a/src/designs/index.ts b/src/designs/index.ts deleted file mode 100644 index 717cc34..0000000 --- a/src/designs/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from '../atomics/TextError'; -export * from '../molecules/Button/Button'; -export * from '../molecules/LabelField/index'; -export * from '../molecules/Switch/index'; -export * from './Blur/index'; -export * from './Label'; -export * from './Spin/index'; diff --git a/src/hooks/use b/src/hooks/index.ts similarity index 100% rename from src/hooks/use rename to src/hooks/index.ts diff --git a/src/index.tsx b/src/index.tsx index 02c7e46..145156a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,16 +1,18 @@ -import { theme } from 'antd'; -import { AliasToken } from 'antd/es/theme/internal'; +import { theme, ThemeConfig } from 'antd'; export interface IConfig { - designToken: AliasToken; + designToken: NonNullable; + componentToken: ThemeConfig['components']; } export const config: IConfig = { designToken: theme.getDesignToken(theme.defaultConfig), + componentToken: {}, }; -export * from './designs'; export * from './atomics'; -export * from './molecules'; -// export * from './organisms'; export * from './models'; +export * from './molecules'; +export * from './organisms'; + +export const version = '0.0.6'; diff --git a/src/models/interfaces/form.ts b/src/models/interfaces/form.ts index 892d986..c9015d6 100644 --- a/src/models/interfaces/form.ts +++ b/src/models/interfaces/form.ts @@ -1,8 +1,16 @@ -import { Control } from "react-hook-form"; +import { Control } from 'react-hook-form'; export interface IControlField { - /* Name to register field in react-hook-form */ - name: string; /* Control of react-hook-form */ control: Control; // eslint-disable-line } + +export interface IRegistryControlField extends IControlField { + /* Name to register field in react-hook-form */ + name: string; +} + +export interface IRegistryRangePickerControlField extends IControlField { + /* Names to register dateFrom, dateTo in react-hook-form */ + names: [string, string]; +} diff --git a/src/molecules/Avatar/Avatar.tsx b/src/molecules/Avatar/Avatar.tsx new file mode 100644 index 0000000..ca275dd --- /dev/null +++ b/src/molecules/Avatar/Avatar.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { AvatarStyles } from './styles'; +import { IAvatarProps } from './types'; + +export const Avatar = ({ ...antdProps }: IAvatarProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Avatar/index.tsx b/src/molecules/Avatar/index.tsx new file mode 100644 index 0000000..ac9f613 --- /dev/null +++ b/src/molecules/Avatar/index.tsx @@ -0,0 +1,2 @@ +export * from './Avatar'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Avatar/styles.tsx b/src/molecules/Avatar/styles.tsx new file mode 100644 index 0000000..782053f --- /dev/null +++ b/src/molecules/Avatar/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Avatar } from 'antd'; + +export const AvatarStyles = styled(Avatar)``; diff --git a/src/molecules/Avatar/types.ts b/src/molecules/Avatar/types.ts new file mode 100644 index 0000000..20a564b --- /dev/null +++ b/src/molecules/Avatar/types.ts @@ -0,0 +1,3 @@ +import { AvatarProps } from 'antd'; + +export interface IAvatarProps extends AvatarProps {} diff --git a/src/designs/Blur/index.tsx b/src/molecules/Blur/Blur.tsx similarity index 51% rename from src/designs/Blur/index.tsx rename to src/molecules/Blur/Blur.tsx index 763d43f..c822a2a 100644 --- a/src/designs/Blur/index.tsx +++ b/src/molecules/Blur/Blur.tsx @@ -1,5 +1,6 @@ import { HTMLAttributes } from 'react'; import { BlurBody, BlurHeader, BlurTitle, BlurWrapper } from './styles'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; interface IBlurProps extends HTMLAttributes { isBlur?: boolean; @@ -14,14 +15,16 @@ export const Blur = (props: IBlurProps) => { if (!isBlur) return children; return ( - - {!isLoading && ( - - {title} - - )} + + + {!isLoading && ( + + {title} + + )} - {children} - + {children} + + ); }; diff --git a/src/molecules/Blur/index.tsx b/src/molecules/Blur/index.tsx new file mode 100644 index 0000000..fbf745e --- /dev/null +++ b/src/molecules/Blur/index.tsx @@ -0,0 +1 @@ +export * from "./Blur"; \ No newline at end of file diff --git a/src/designs/Blur/styles.tsx b/src/molecules/Blur/styles.tsx similarity index 100% rename from src/designs/Blur/styles.tsx rename to src/molecules/Blur/styles.tsx diff --git a/src/molecules/Button/Button.tsx b/src/molecules/Button/Button.tsx index f570f79..1d8b136 100644 --- a/src/molecules/Button/Button.tsx +++ b/src/molecules/Button/Button.tsx @@ -1,19 +1,25 @@ -import { ButtonProps } from 'antd'; -import { PropsWithChildren } from 'react'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; import { ButtonStyles } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; +import { IButtonProps } from './types'; -export interface IBaseButtonProps { - isCapitalize?: boolean; - isFull?: boolean; -} +// const isColorButtonExtend = (color: colorButton): color is colorButtonExtend => { +// return ['second', 'tertiary', 'quaternary'].includes(color); +// }; -export interface IButtonProps extends ButtonProps, PropsWithChildren {} +export const Button = ({ width, ...antdProps }: IButtonProps) => { + // const { color } = antdProps; + + // if (isColorButtonExtend(color)) { + // useExtendColor(color); + // } + + // const components: ThemeConfig['components'] = { + // Button: {}, + // }; -export const Button = ({ children, ...antdProps }: IButtonProps) => { return ( - {children} + ); }; diff --git a/src/molecules/Button/styles.tsx b/src/molecules/Button/styles.tsx index 0f48a77..5b2fe01 100644 --- a/src/molecules/Button/styles.tsx +++ b/src/molecules/Button/styles.tsx @@ -1,19 +1,8 @@ -import { css } from '@emotion/react'; import styled from '@emotion/styled'; import { Button } from 'antd'; export const ButtonStyles = styled(Button)<{ - isCapitalize?: boolean; - isFull?: boolean; + width?: string | number; }>` - ${({ isCapitalize }) => - isCapitalize && - css` - text-transform: capitalize; - `} - ${({ isFull }) => - isFull && - css` - width: 100%; - `} + ${({ width }) => width && `width: ${width};`} `; diff --git a/src/molecules/Button/types.ts b/src/molecules/Button/types.ts new file mode 100644 index 0000000..c8d4ce6 --- /dev/null +++ b/src/molecules/Button/types.ts @@ -0,0 +1,19 @@ +import { ButtonProps } from 'antd'; + +// export type colorButtonExtend = 'second' | 'tertiary' | 'quaternary'; + +// export type colorButton = ButtonProps['color'] | colorButtonExtend; + +export interface IButtonProps extends ButtonProps { + /** + * The width of the button. + */ + width?: string | number; + + // /** + // * The color of the button. + // * + // * @see ButtonProps#color + // */ + // color?: ButtonProps['color'] & colorButtonExtend; +} diff --git a/src/molecules/Button/useExtendColor.ts b/src/molecules/Button/useExtendColor.ts new file mode 100644 index 0000000..60917f8 --- /dev/null +++ b/src/molecules/Button/useExtendColor.ts @@ -0,0 +1,15 @@ +// import { ThemeConfig } from 'antd'; +// import { config } from '../..'; +// import { colorButtonExtend } from './types'; + +// export const useExtendColor = (color: colorButtonExtend) => { +// const newComponentsButton: ThemeConfig['components'] = { +// Button: {}, +// }; +// switch (color) { +// case 'second': +// if (newComponentsButton.Button) { +// newComponentsButton.Button.colorPrimary = config.designToken.colorFillSecondary; +// } +// } +// }; diff --git a/src/molecules/Card/Card.tsx b/src/molecules/Card/Card.tsx new file mode 100644 index 0000000..6e30cfa --- /dev/null +++ b/src/molecules/Card/Card.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { CardStyles } from './styles'; +import { ICardProps } from './types'; + +export const Card = ({ ...antdProps }: ICardProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Card/index.tsx b/src/molecules/Card/index.tsx new file mode 100644 index 0000000..fafafe7 --- /dev/null +++ b/src/molecules/Card/index.tsx @@ -0,0 +1,2 @@ +export * from './Card'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Card/styles.tsx b/src/molecules/Card/styles.tsx new file mode 100644 index 0000000..e659407 --- /dev/null +++ b/src/molecules/Card/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Card } from 'antd'; + +export const CardStyles = styled(Card)``; diff --git a/src/molecules/Card/types.ts b/src/molecules/Card/types.ts new file mode 100644 index 0000000..d6300a8 --- /dev/null +++ b/src/molecules/Card/types.ts @@ -0,0 +1,3 @@ +import { CardProps } from 'antd'; + +export interface ICardProps extends CardProps {} diff --git a/src/molecules/Checkbox/Checkbox.tsx b/src/molecules/Checkbox/Checkbox.tsx index d6776e7..3bc7ebc 100644 --- a/src/molecules/Checkbox/Checkbox.tsx +++ b/src/molecules/Checkbox/Checkbox.tsx @@ -1,34 +1,24 @@ -import { CheckboxProps } from 'antd'; -import { ILabelField, LabelField } from '../LabelField'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; import { CheckboxStyle, CheckboxWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface ICheckboxProps extends CheckboxProps, ILabelField {} +import { ICheckboxProps } from './types'; export const Checkbox = ({ - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: ICheckboxProps) => { return ( - - {label} - + + ); diff --git a/src/molecules/Checkbox/CheckboxControl.tsx b/src/molecules/Checkbox/CheckboxControl.tsx index 54a997a..b43cd26 100644 --- a/src/molecules/Checkbox/CheckboxControl.tsx +++ b/src/molecules/Checkbox/CheckboxControl.tsx @@ -1,24 +1,16 @@ -import { Control, useController } from 'react-hook-form'; +import { useController } from 'react-hook-form'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TextError } from '../../atomics'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { LabelField } from '../LabelField'; import { CheckboxStyle, CheckboxWrapper } from './styles'; -import { ILabelField, LabelField } from '../LabelField'; -import { TextError } from '@/designs'; -import { ICheckboxProps } from './Checkbox'; -import { IControlField } from '@/models'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -interface ICheckboxControlProps extends Omit, IControlField {} +import { ICheckboxControlProps } from './types'; export const CheckboxControl = ({ name, control, - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: ICheckboxControlProps) => { @@ -33,18 +25,13 @@ export const CheckboxControl = ({ return ( - - - {label} - - + + {invalid && {error?.message}} diff --git a/src/molecules/Checkbox/types.ts b/src/molecules/Checkbox/types.ts new file mode 100644 index 0000000..81ff737 --- /dev/null +++ b/src/molecules/Checkbox/types.ts @@ -0,0 +1,8 @@ +import { CheckboxProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; + +export interface ICheckboxProps extends CheckboxProps, ILabelFieldWrapperProps {} +export interface ICheckboxControlProps + extends Omit, + IRegistryControlField {} diff --git a/src/molecules/Col/Col.tsx b/src/molecules/Col/Col.tsx new file mode 100644 index 0000000..3761169 --- /dev/null +++ b/src/molecules/Col/Col.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { ColStyles } from './styles'; +import { IColProps } from './types'; + +export const Col = ({ ...antdProps }: IColProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Col/index.tsx b/src/molecules/Col/index.tsx new file mode 100644 index 0000000..02a6989 --- /dev/null +++ b/src/molecules/Col/index.tsx @@ -0,0 +1,2 @@ +export * from './Col'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Col/styles.tsx b/src/molecules/Col/styles.tsx new file mode 100644 index 0000000..57f5847 --- /dev/null +++ b/src/molecules/Col/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Col } from 'antd'; + +export const ColStyles = styled(Col)``; diff --git a/src/molecules/Col/types.ts b/src/molecules/Col/types.ts new file mode 100644 index 0000000..06cd85b --- /dev/null +++ b/src/molecules/Col/types.ts @@ -0,0 +1,3 @@ +import { ColProps } from 'antd'; + +export interface IColProps extends ColProps {} diff --git a/src/molecules/Divider/Divider.tsx b/src/molecules/Divider/Divider.tsx new file mode 100644 index 0000000..8c82f72 --- /dev/null +++ b/src/molecules/Divider/Divider.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { DividerStyles } from './styles'; +import { IDividerProps } from './types'; + +export const Divider = ({ ...antdProps }: IDividerProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Divider/index.tsx b/src/molecules/Divider/index.tsx new file mode 100644 index 0000000..7a409cc --- /dev/null +++ b/src/molecules/Divider/index.tsx @@ -0,0 +1,2 @@ +export * from './Divider'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Divider/styles.tsx b/src/molecules/Divider/styles.tsx new file mode 100644 index 0000000..5a309f8 --- /dev/null +++ b/src/molecules/Divider/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Divider } from 'antd'; + +export const DividerStyles = styled(Divider)``; diff --git a/src/molecules/Divider/types.ts b/src/molecules/Divider/types.ts new file mode 100644 index 0000000..86067ec --- /dev/null +++ b/src/molecules/Divider/types.ts @@ -0,0 +1,3 @@ +import { DividerProps } from 'antd'; + +export interface IDividerProps extends DividerProps {} diff --git a/src/molecules/Drawer/Drawer.tsx b/src/molecules/Drawer/Drawer.tsx new file mode 100644 index 0000000..1e0ea87 --- /dev/null +++ b/src/molecules/Drawer/Drawer.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { DrawerStyles } from './styles'; +import { IDrawerProps } from './types'; + +export const Drawer = ({ ...antdProps }: IDrawerProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Drawer/index.tsx b/src/molecules/Drawer/index.tsx new file mode 100644 index 0000000..3cae526 --- /dev/null +++ b/src/molecules/Drawer/index.tsx @@ -0,0 +1,2 @@ +export * from './Drawer'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Drawer/styles.tsx b/src/molecules/Drawer/styles.tsx new file mode 100644 index 0000000..fd630cc --- /dev/null +++ b/src/molecules/Drawer/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Drawer } from 'antd'; + +export const DrawerStyles = styled(Drawer)``; diff --git a/src/molecules/Drawer/types.ts b/src/molecules/Drawer/types.ts new file mode 100644 index 0000000..eeabe67 --- /dev/null +++ b/src/molecules/Drawer/types.ts @@ -0,0 +1,3 @@ +import { DrawerProps } from 'antd'; + +export interface IDrawerProps extends DrawerProps {} diff --git a/src/molecules/Dropdown/Dropdown.tsx b/src/molecules/Dropdown/Dropdown.tsx new file mode 100644 index 0000000..fd300d8 --- /dev/null +++ b/src/molecules/Dropdown/Dropdown.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { DropdownStyles } from './styles'; +import { IDropdownProps } from './types'; + +export const Dropdown = ({ ...antdProps }: IDropdownProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Dropdown/index.tsx b/src/molecules/Dropdown/index.tsx new file mode 100644 index 0000000..9426f92 --- /dev/null +++ b/src/molecules/Dropdown/index.tsx @@ -0,0 +1,2 @@ +export * from './Dropdown'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Dropdown/styles.tsx b/src/molecules/Dropdown/styles.tsx new file mode 100644 index 0000000..c82fda0 --- /dev/null +++ b/src/molecules/Dropdown/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Dropdown } from 'antd'; + +export const DropdownStyles = styled(Dropdown)``; diff --git a/src/molecules/Dropdown/types.ts b/src/molecules/Dropdown/types.ts new file mode 100644 index 0000000..c4e84fb --- /dev/null +++ b/src/molecules/Dropdown/types.ts @@ -0,0 +1,3 @@ +import { DropdownProps } from 'antd'; + +export interface IDropdownProps extends DropdownProps {} diff --git a/src/molecules/Input/Input.tsx b/src/molecules/Input/Input.tsx index d9761d7..59ac884 100644 --- a/src/molecules/Input/Input.tsx +++ b/src/molecules/Input/Input.tsx @@ -1,35 +1,24 @@ -import { ConfigProviderDesign } from '@/ContextProvider'; import { InputProps } from 'antd'; -import { ILabelField, LabelField } from '../LabelField'; -import { InputStyled, InputWrapper } from './styles'; - -export interface IInputProps extends InputProps, ILabelField {} +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; +import { InputStyled } from './styles'; +import { IInputProps } from './types'; export const Input = ({ - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: IInputProps) => { return ( - - - - - + + + ); }; diff --git a/src/molecules/Input/InputControl.tsx b/src/molecules/Input/InputControl.tsx index 2607de4..f7679fe 100644 --- a/src/molecules/Input/InputControl.tsx +++ b/src/molecules/Input/InputControl.tsx @@ -1,24 +1,19 @@ -import { LabelField, TextError } from '@/designs'; -import { IControlField } from '@/models/interfaces/form'; import { InputProps } from 'antd'; import { useController } from 'react-hook-form'; -import { IInputProps } from './Input'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TextError } from '../../atomics'; +import { LabelField } from '../LabelField'; import { InputStyled, InputWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface IInputControlProps extends Omit, IControlField {} +import { IInputControlProps } from './types'; +import React from 'react'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; export const InputControl = ({ name, control, + defaultValue, - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: IInputControlProps) => { @@ -28,18 +23,16 @@ export const InputControl = ({ } = useController({ name, control, + defaultValue, }); return ( - - + {invalid && {error?.message}} diff --git a/src/molecules/Input/types.ts b/src/molecules/Input/types.ts new file mode 100644 index 0000000..3f80721 --- /dev/null +++ b/src/molecules/Input/types.ts @@ -0,0 +1,7 @@ +import { InputProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; + +export interface IInputProps extends InputProps, ILabelFieldWrapperProps {} + +export interface IInputControlProps extends Omit, IRegistryControlField {} diff --git a/src/molecules/InputNumber/InputNumber.tsx b/src/molecules/InputNumber/InputNumber.tsx index 9bc00ff..4e0ef58 100644 --- a/src/molecules/InputNumber/InputNumber.tsx +++ b/src/molecules/InputNumber/InputNumber.tsx @@ -1,34 +1,25 @@ import { InputNumberProps } from 'antd'; -import { ILabelField, LabelField } from '../LabelField'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; import { InputNumberStyled, InputWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface IInputNumberProps extends InputNumberProps, ILabelField {} +import { IInputNumberProps } from './types'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; export const InputNumber = ({ - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: IInputNumberProps) => { return ( - - + ); diff --git a/src/molecules/InputNumber/InputNumberControl.tsx b/src/molecules/InputNumber/InputNumberControl.tsx index 56707a0..c581013 100644 --- a/src/molecules/InputNumber/InputNumberControl.tsx +++ b/src/molecules/InputNumber/InputNumberControl.tsx @@ -1,25 +1,18 @@ -import { TextError } from '@/designs'; -import { IControlField } from '@/models/interfaces/form'; import { InputNumberProps } from 'antd'; import { useController } from 'react-hook-form'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TextError } from '../../atomics'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; import { LabelField } from '../LabelField'; -import { IInputNumberProps } from './InputNumber'; import { InputNumberStyled, InputWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface IInputNumberControlProps extends Omit, IControlField {} +import { IInputNumberControlProps } from './types'; export const InputNumberControl = ({ name, control, + defaultValue, - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: IInputNumberControlProps) => { @@ -29,18 +22,16 @@ export const InputNumberControl = ({ } = useController({ name, control, + defaultValue, }); return ( - - + {invalid && {error?.message}} diff --git a/src/molecules/InputNumber/types.ts b/src/molecules/InputNumber/types.ts new file mode 100644 index 0000000..33b2cf7 --- /dev/null +++ b/src/molecules/InputNumber/types.ts @@ -0,0 +1,9 @@ +import { InputNumberProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; + +export interface IInputNumberProps extends InputNumberProps, ILabelFieldWrapperProps {} + +export interface IInputNumberControlProps + extends Omit, + IRegistryControlField {} diff --git a/src/molecules/InputPassword/InputPassword.tsx b/src/molecules/InputPassword/InputPassword.tsx index 5ba31a9..0ad759a 100644 --- a/src/molecules/InputPassword/InputPassword.tsx +++ b/src/molecules/InputPassword/InputPassword.tsx @@ -1,34 +1,25 @@ import { InputProps } from 'antd'; -import { ILabelField, LabelField } from '../LabelField'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; import { InputStyled, InputWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface IInputPasswordProps extends InputProps, ILabelField {} +import { IInputPasswordProps } from './types'; export const InputPassword = ({ - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: IInputPasswordProps) => { return ( - - + ); diff --git a/src/molecules/InputPassword/InputPasswordControl.tsx b/src/molecules/InputPassword/InputPasswordControl.tsx index 08e2769..c7d9bc8 100644 --- a/src/molecules/InputPassword/InputPasswordControl.tsx +++ b/src/molecules/InputPassword/InputPasswordControl.tsx @@ -1,26 +1,18 @@ -import { LabelField, TextError } from '@/designs'; -import { IControlField } from '@/models/interfaces/form'; import { InputProps } from 'antd'; import { useController } from 'react-hook-form'; -import { IInputPasswordProps } from './InputPassword'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TextError } from '../../atomics'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { LabelField } from '../LabelField'; import { InputStyled, InputWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface IInputPasswordControlProps - extends Omit, - IControlField {} +import { IInputPasswordControlProps } from './types'; export const InputPasswordControl = ({ name, control, + defaultValue, - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: IInputPasswordControlProps) => { @@ -30,18 +22,16 @@ export const InputPasswordControl = ({ } = useController({ name, control, + defaultValue, }); return ( - - + {invalid && {error?.message}} diff --git a/src/molecules/InputPassword/types.ts b/src/molecules/InputPassword/types.ts new file mode 100644 index 0000000..f97213b --- /dev/null +++ b/src/molecules/InputPassword/types.ts @@ -0,0 +1,10 @@ +import { InputProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; + +export interface IInputPasswordProps extends InputProps, ILabelFieldWrapperProps { +} + +export interface IInputPasswordControlProps + extends Omit, + IRegistryControlField {} diff --git a/src/molecules/LabelField/LabelFieldWrapper.ts b/src/molecules/LabelField/LabelFieldWrapper.ts new file mode 100644 index 0000000..76685aa --- /dev/null +++ b/src/molecules/LabelField/LabelFieldWrapper.ts @@ -0,0 +1,9 @@ +import React from 'react'; +import { LabelField } from '.'; +import { ILabelFieldProps } from './types'; + +const LabelFieldWrapper = (labelFieldProps: ILabelFieldProps | false) => { + return labelFieldProps ? LabelField : React.Fragment; +}; + +export default LabelFieldWrapper; diff --git a/src/molecules/LabelField/index.tsx b/src/molecules/LabelField/index.tsx index 62f9a67..cc52bd1 100644 --- a/src/molecules/LabelField/index.tsx +++ b/src/molecules/LabelField/index.tsx @@ -1,72 +1,50 @@ import { Flex } from 'antd'; import { PropsWithChildren } from 'react'; -import { Label, LabelDescription, LabelFieldWrapper } from './style'; -import { TAxis } from '@/models'; -import { ConfigProviderDesign } from '@/ContextProvider'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { Label, LabelDescription, LabelFieldWrapper } from './styles'; +import { ILabelFieldProps } from './types'; -export interface ILabelField { - /** Only use when you want a space for the label and the label is empty. */ - isLabel?: boolean; - /** Text label. */ - label?: string; - /** Label axis used to determine whether the label is displayed vertically or horizontally. */ - labelAxis?: TAxis; - /** Description for the label. */ - labelDescription?: string; - /** Indicates if a colon should be appended to the label. */ - isColon?: boolean; - /** Indicates if the field is required. */ - required?: boolean; - /** Specifies the width of the field. */ - widthField?: string | number; - /** Specifies the id of the element the label is bound to. */ - htmlFor?: string; -} - -export const LabelField = (props: ILabelField & PropsWithChildren) => { +export const LabelField = (props: ILabelFieldProps & PropsWithChildren) => { const { - isLabel = false, - label, - labelAxis = 'vertical', - labelDescription, + text, + axis = 'vertical', + description, htmlFor, isColon = true, required, - widthField, + widthControl, children, } = props; - if (!label && !labelDescription && !isLabel) return children; - return ( - + + + + {description} + - - - {labelDescription} - - - {children} - + {children} diff --git a/src/molecules/LabelField/style.tsx b/src/molecules/LabelField/styles.tsx similarity index 83% rename from src/molecules/LabelField/style.tsx rename to src/molecules/LabelField/styles.tsx index 07e426c..132bd2d 100644 --- a/src/molecules/LabelField/style.tsx +++ b/src/molecules/LabelField/styles.tsx @@ -1,8 +1,9 @@ -import { config } from '@/index'; import { css } from '@emotion/react'; import styled from '@emotion/styled'; +import { config } from '../..'; +import { Flex } from 'antd'; -export const LabelFieldWrapper = styled.div``; +export const LabelFieldWrapper = styled(Flex)``; export const Label = styled.label<{ isNotCapitalize?: boolean }>` color: ${config.designToken.colorText}; diff --git a/src/molecules/LabelField/types.ts b/src/molecules/LabelField/types.ts new file mode 100644 index 0000000..3bcfd59 --- /dev/null +++ b/src/molecules/LabelField/types.ts @@ -0,0 +1,23 @@ +import { TAxis } from '../../models'; + +export interface ILabelFieldProps { + /** Text label. */ + text?: string; + /** Label axis used to determine whether the label is displayed vertically or horizontally. */ + axis?: TAxis; + /** Description for the label. */ + description?: string; + /** Indicates if a colon should be appended to the label. */ + isColon?: boolean; + /** Indicates if the field is required. */ + required?: boolean; + /** Specifies the width of the field. */ + widthControl?: string | number; + /** Specifies the id of the element the label is bound to. */ + htmlFor?: string; +} + +export interface ILabelFieldWrapperProps { + /** The properties for the label field. If set to false, the label will not be rendered. */ + label?: ILabelFieldProps | false; +} diff --git a/src/molecules/Layout/Content.tsx b/src/molecules/Layout/Content.tsx new file mode 100644 index 0000000..4f04922 --- /dev/null +++ b/src/molecules/Layout/Content.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { ContentStyles } from './styles'; +import { ILayoutProps } from './types'; + +export const Content = ({ ...antdProps }: ILayoutProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Layout/Footer.tsx b/src/molecules/Layout/Footer.tsx new file mode 100644 index 0000000..b69ea34 --- /dev/null +++ b/src/molecules/Layout/Footer.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { FooterStyles } from './styles'; +import { ILayoutProps } from './types'; + +export const Footer = ({ ...antdProps }: ILayoutProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Layout/Header.tsx b/src/molecules/Layout/Header.tsx new file mode 100644 index 0000000..30a696c --- /dev/null +++ b/src/molecules/Layout/Header.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { HeaderStyles, LayoutStyles } from './styles'; +import { ILayoutProps } from './types'; + +export const Header = ({ ...antdProps }: ILayoutProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Layout/Layout.tsx b/src/molecules/Layout/Layout.tsx new file mode 100644 index 0000000..826e6ef --- /dev/null +++ b/src/molecules/Layout/Layout.tsx @@ -0,0 +1,20 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { Content } from './Content'; +import { Footer } from './Footer'; +import { Header } from './Header'; +import { Sider } from './Sider'; +import { LayoutStyles } from './styles'; +import { ILayoutProps } from './types'; + +export const Layout = ({ ...antdProps }: ILayoutProps) => { + return ( + + + + ); +}; + +Layout.Header = Header; +Layout.Content = Content; +Layout.Sider = Sider; +Layout.Footer = Footer; diff --git a/src/molecules/Layout/Sider.tsx b/src/molecules/Layout/Sider.tsx new file mode 100644 index 0000000..2db3283 --- /dev/null +++ b/src/molecules/Layout/Sider.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { SiderStyles } from './styles'; +import { ISiderProps } from './types'; + +export const Sider = ({ ...antdProps }: ISiderProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Layout/index.tsx b/src/molecules/Layout/index.tsx new file mode 100644 index 0000000..ee3cd08 --- /dev/null +++ b/src/molecules/Layout/index.tsx @@ -0,0 +1,2 @@ +export * from './Layout'; +export * from './types'; diff --git a/src/molecules/Layout/styles.tsx b/src/molecules/Layout/styles.tsx new file mode 100644 index 0000000..c8f819b --- /dev/null +++ b/src/molecules/Layout/styles.tsx @@ -0,0 +1,14 @@ +import styled from '@emotion/styled'; +import { Layout } from 'antd'; + +const { Header, Content, Sider, Footer } = Layout; + +export const LayoutStyles = styled(Layout)``; + +export const HeaderStyles = styled(Header)``; + +export const ContentStyles = styled(Content)``; + +export const SiderStyles = styled(Sider)``; + +export const FooterStyles = styled(Footer)``; diff --git a/src/molecules/Layout/types.ts b/src/molecules/Layout/types.ts new file mode 100644 index 0000000..4248cc4 --- /dev/null +++ b/src/molecules/Layout/types.ts @@ -0,0 +1,4 @@ +import { LayoutProps, SiderProps } from 'antd'; + +export interface ILayoutProps extends LayoutProps {} +export interface ISiderProps extends SiderProps {} diff --git a/src/molecules/List/Item.tsx b/src/molecules/List/Item.tsx new file mode 100644 index 0000000..06651b6 --- /dev/null +++ b/src/molecules/List/Item.tsx @@ -0,0 +1,14 @@ +// import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +// import { Meta } from './Meta'; +// import { ItemStyles } from './styles'; +// import { IListItemProps, IListProps } from './types'; + +// export const Item = ({ ...antdProps }: IListItemProps) => { +// return ( +// +// +// +// ); +// }; + +// Item.Meta = Meta; diff --git a/src/molecules/List/List.tsx b/src/molecules/List/List.tsx new file mode 100644 index 0000000..6299ff8 --- /dev/null +++ b/src/molecules/List/List.tsx @@ -0,0 +1,16 @@ +// import { ListProps } from 'antd'; +// import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +// import { Item } from './Item'; +// import { ListStyles } from './styles'; +// import { IListProps } from './types'; + +// export const List = ({ ...antdProps }: any) => { +// return ( +// +// +// +// ); +// }; + + +// List.Item = Item; \ No newline at end of file diff --git a/src/molecules/List/Meta.tsx b/src/molecules/List/Meta.tsx new file mode 100644 index 0000000..35f107b --- /dev/null +++ b/src/molecules/List/Meta.tsx @@ -0,0 +1,11 @@ +// import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +// import { MetaStyles } from './styles'; +// import { IListProps } from './types'; + +// export const Meta = ({ ...antdProps }: IListProps) => { +// return ( +// +// +// +// ); +// }; diff --git a/src/molecules/List/index.tsx b/src/molecules/List/index.tsx new file mode 100644 index 0000000..6701a0d --- /dev/null +++ b/src/molecules/List/index.tsx @@ -0,0 +1,2 @@ +// export * from './List'; +// export * from './types'; \ No newline at end of file diff --git a/src/molecules/List/styles.tsx b/src/molecules/List/styles.tsx new file mode 100644 index 0000000..ac84865 --- /dev/null +++ b/src/molecules/List/styles.tsx @@ -0,0 +1,8 @@ +// import styled from '@emotion/styled'; +// import { List } from 'antd'; + +// export const ListStyles = styled(List)``; + +// export const ItemStyles = styled(List.Item)``; + +// export const MetaStyles = styled(List.Item.Meta)``; diff --git a/src/molecules/List/types.ts b/src/molecules/List/types.ts new file mode 100644 index 0000000..19bb32a --- /dev/null +++ b/src/molecules/List/types.ts @@ -0,0 +1,10 @@ +// import { List } from 'antd'; +// import { ListItemMetaProps, ListItemTypeProps } from 'antd/es/list/Item'; + +// type ListProps = typeof List; + +// export interface IListProps extends ListProps {} + +// export interface IListItemProps extends ListItemTypeProps {} + +// export interface IListItemMetaProps extends ListItemMetaProps {} diff --git a/src/molecules/Menu/Menu.tsx b/src/molecules/Menu/Menu.tsx new file mode 100644 index 0000000..88624f7 --- /dev/null +++ b/src/molecules/Menu/Menu.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { MenuStyles } from './styles'; +import { IMenuProps } from './types'; + +export const Menu = ({ ...antdProps }: IMenuProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Menu/index.tsx b/src/molecules/Menu/index.tsx new file mode 100644 index 0000000..c4125e9 --- /dev/null +++ b/src/molecules/Menu/index.tsx @@ -0,0 +1,2 @@ +export * from './Menu'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Menu/styles.tsx b/src/molecules/Menu/styles.tsx new file mode 100644 index 0000000..4c679ce --- /dev/null +++ b/src/molecules/Menu/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Menu } from 'antd'; + +export const MenuStyles = styled(Menu)``; diff --git a/src/molecules/Menu/types.ts b/src/molecules/Menu/types.ts new file mode 100644 index 0000000..c19a878 --- /dev/null +++ b/src/molecules/Menu/types.ts @@ -0,0 +1,5 @@ +import { MenuProps } from 'antd'; + +export interface IMenuProps extends MenuProps { + +} diff --git a/src/molecules/Pagination/Pagination.tsx b/src/molecules/Pagination/Pagination.tsx new file mode 100644 index 0000000..5f65c06 --- /dev/null +++ b/src/molecules/Pagination/Pagination.tsx @@ -0,0 +1,14 @@ +import { Pagination as AntdPagination, PaginationProps } from 'antd'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { PaginationWrapper } from './styles'; +import { IPaginationProps } from './types'; + +export const Pagination = ({ ...antdProps }: IPaginationProps) => { + return ( + + + + + + ); +}; diff --git a/src/molecules/Pagination/index.ts b/src/molecules/Pagination/index.ts new file mode 100644 index 0000000..e016c96 --- /dev/null +++ b/src/molecules/Pagination/index.ts @@ -0,0 +1 @@ +export * from './Pagination'; diff --git a/src/molecules/Pagination/styles.tsx b/src/molecules/Pagination/styles.tsx new file mode 100644 index 0000000..9d3ea12 --- /dev/null +++ b/src/molecules/Pagination/styles.tsx @@ -0,0 +1,3 @@ +import styled from '@emotion/styled'; + +export const PaginationWrapper = styled.div``; diff --git a/src/molecules/Pagination/types.ts b/src/molecules/Pagination/types.ts new file mode 100644 index 0000000..4ae0e84 --- /dev/null +++ b/src/molecules/Pagination/types.ts @@ -0,0 +1,3 @@ +import { PaginationProps } from 'antd'; + +export interface IPaginationProps extends PaginationProps {} diff --git a/src/molecules/Popover/Popover.tsx b/src/molecules/Popover/Popover.tsx new file mode 100644 index 0000000..e90794a --- /dev/null +++ b/src/molecules/Popover/Popover.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { PopoverStyles } from './styles'; +import { IPopoverProps } from './types'; + +export const Popover = ({ ...antdProps }: IPopoverProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Popover/index.tsx b/src/molecules/Popover/index.tsx new file mode 100644 index 0000000..cdbf248 --- /dev/null +++ b/src/molecules/Popover/index.tsx @@ -0,0 +1,2 @@ +export * from './Popover'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Popover/styles.tsx b/src/molecules/Popover/styles.tsx new file mode 100644 index 0000000..5aead8e --- /dev/null +++ b/src/molecules/Popover/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Popover } from 'antd'; + +export const PopoverStyles = styled(Popover)``; diff --git a/src/molecules/Popover/types.ts b/src/molecules/Popover/types.ts new file mode 100644 index 0000000..fa1eecb --- /dev/null +++ b/src/molecules/Popover/types.ts @@ -0,0 +1,3 @@ +import { PopoverProps } from 'antd'; + +export interface IPopoverProps extends PopoverProps {} diff --git a/src/molecules/Radio/Radio.tsx b/src/molecules/Radio/Radio.tsx index a3a706a..0f7b121 100644 --- a/src/molecules/Radio/Radio.tsx +++ b/src/molecules/Radio/Radio.tsx @@ -1,34 +1,25 @@ import { Radio as RadioAntd, RadioProps } from 'antd'; -import { ILabelField, LabelField } from '../LabelField'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; import { RadioWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface IRadioProps extends Omit, ILabelField {} +import { IRadioProps } from './types'; export const Radio = ({ - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: IRadioProps) => { return ( - - + ); diff --git a/src/molecules/Radio/RadioControl.tsx b/src/molecules/Radio/RadioControl.tsx index 1ef15f5..797d652 100644 --- a/src/molecules/Radio/RadioControl.tsx +++ b/src/molecules/Radio/RadioControl.tsx @@ -1,24 +1,17 @@ -import { RadioProps, Radio as AntdRadio, CheckboxOptionType } from 'antd'; +import { Radio as AntdRadio, RadioProps } from 'antd'; import { useController } from 'react-hook-form'; -import { LabelField, TextError } from '@/designs'; -import { IControlField } from '@/models/interfaces/form'; -import { IRadioProps } from './Radio'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TextError } from '../../atomics'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { LabelField } from '../LabelField'; import { RadioWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface IRadioControlProps extends Omit, IControlField {} +import { IRadioControlProps } from './types'; export const RadioControl = ({ name, control, - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: IRadioControlProps) => { @@ -33,13 +26,10 @@ export const RadioControl = ({ return ( - - + {invalid && {error?.message}} diff --git a/src/molecules/Radio/index.ts b/src/molecules/Radio/index.ts index a2b638d..6c88b96 100644 --- a/src/molecules/Radio/index.ts +++ b/src/molecules/Radio/index.ts @@ -1,2 +1,3 @@ export * from "./Radio"; -export * from "./RadioControl"; \ No newline at end of file +export * from "./RadioControl"; +export * from "./types"; \ No newline at end of file diff --git a/src/molecules/Radio/types.ts b/src/molecules/Radio/types.ts new file mode 100644 index 0000000..6df09d9 --- /dev/null +++ b/src/molecules/Radio/types.ts @@ -0,0 +1,8 @@ +import { RadioProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; + +export interface IRadioProps extends RadioProps, ILabelFieldWrapperProps { +} + +export interface IRadioControlProps extends Omit, IRegistryControlField {} diff --git a/src/molecules/RangePicker/RangePicker.tsx b/src/molecules/RangePicker/RangePicker.tsx index b9c1629..00e8e4b 100644 --- a/src/molecules/RangePicker/RangePicker.tsx +++ b/src/molecules/RangePicker/RangePicker.tsx @@ -1,35 +1,29 @@ -// import { DatePicker } from 'antd'; -// import { ILabelField, LabelField } from '../LabelField'; -// import { RangePickerWrapper } from './styles'; -// import { RangePickerProps } from 'antd/es/date-picker'; +import { DatePicker } from 'antd'; +import { RangePickerProps } from 'antd/es/date-picker'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; +import { RangePickerWrapper } from './styles'; +import { IRangePickerProps } from './types'; -// const { RangePicker: AntdRangePicker } = DatePicker; +const { RangePicker: AntdRangePicker } = DatePicker; -// export interface IRangePickerProps extends RangePickerProps, ILabelField {} +export const RangePicker = ({ + label: labelFieldProps, -// export const RangePicker = ({ -// // ILabelField props -// required, -// label, -// labelAxis = 'vertical', -// isColon = true, -// labelDescription, -// widthField, - -// ...antdProps -// }: IRangePickerProps) => { -// return ( -// -// -// -// -// -// ); -// }; + ...antdProps +}: IRangePickerProps) => { + return ( + + + + + + + + ); +}; diff --git a/src/molecules/RangePicker/RangePickerControl.tsx b/src/molecules/RangePicker/RangePickerControl.tsx index 5789799..b3cbdb1 100644 --- a/src/molecules/RangePicker/RangePickerControl.tsx +++ b/src/molecules/RangePicker/RangePickerControl.tsx @@ -1,98 +1,87 @@ -// import { LabelField, TextError } from '@/designs'; -// import { IControlField } from '@/models/interfaces/form'; -// import { DatePicker } from 'antd'; -// import { RangePickerProps } from 'antd/es/date-picker'; -// import { useController } from 'react-hook-form'; -// import { IRangePickerProps } from './RangePicker'; -// import { RangePickerWrapper } from './styles'; -// import { NoUndefinedRangeValueType } from 'node_modules/rc-pi'; -// import { Dayjs } from 'dayjs'; +import { DatePicker } from 'antd'; +import { RangePickerProps } from 'antd/es/date-picker'; +import { useController } from 'react-hook-form'; +import { TextError } from '../../atomics'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; +import { RangePickerWrapper } from './styles'; +import { IRangePickerControlProps } from './types'; -// const { RangePicker: AntdRangePicker } = DatePicker; +const { RangePicker: AntdRangePicker } = DatePicker; -// export interface IRangePickerControlProps extends Omit, IControlField { -// names: [string, string]; -// } +export const RangePickerControl = ({ + names, + control, -// export const RangePickerControl = ({ -// names, -// control, + label: labelFieldProps, -// // ILabelField props -// required, -// label, -// labelAxis = 'vertical', -// isColon = true, -// labelDescription, -// widthField, + ...antdProps +}: IRangePickerControlProps) => { + const [startName, endName] = names; -// ...antdProps -// }: IRangePickerControlProps) => { -// const [startName, endName] = names; + const { + field: { + value: startDateValue, + onChange: onStartDateChange, + onBlur: onStartDateBlur, + ref: startRef, + }, + fieldState: { invalid: startInvalid, error: startError }, + } = useController({ + name: startName, + control, + }); -// const { -// field: { -// value: startDateValue, -// onChange: onStartDateChange, -// onBlur: onStartDateBlur, -// ref: startRef, -// }, -// fieldState: { invalid: startInvalid, error: startError }, -// } = useController({ -// name: startName, -// control, -// }); + const { + field: { + value: endDateValue, + onChange: onEndDateChange, + onBlur: onEndDateBlur, + ref: endRef, + }, + fieldState: { invalid: endInvalid, error: endError }, + } = useController({ + name: endName, + control, + }); -// const { -// field: { -// value: endDateValue, -// onChange: onEndDateChange, -// onBlur: onEndDateBlur, -// ref: endRef, -// }, -// fieldState: { invalid: endInvalid, error: endError }, -// } = useController({ -// name: endName, -// control, -// }); + const handleChange: RangePickerProps['onChange'] = dates => { + if (dates) { + onStartDateChange(dates[0]); + onEndDateChange(dates[1]); + } else { + onStartDateChange(null); + onEndDateChange(null); + } + }; -// const handleChange = (dates: NoUndefinedRangeValueType | null) => { -// if (dates) { -// onStartDateChange(dates[0]); -// onEndDateChange(dates[1]); -// } else { -// onStartDateChange(null); -// onEndDateChange(null); -// } -// }; - -// return ( -// -// -// { -// onStartDateBlur(); -// onEndDateBlur(); -// }} -// ref={node => { -// startRef(node); -// endRef(node); -// }} -// /> -// -// {(startInvalid || endInvalid) && ( -// {startError?.message || endError?.message} -// )} -// -// ); -// }; + return ( + + + + { + onStartDateBlur(); + onEndDateBlur(); + }} + ref={node => { + startRef(node); + endRef(node); + }} + /> + + {(startInvalid || endInvalid) && ( + {startError?.message || endError?.message} + )} + + + ); +}; diff --git a/src/molecules/RangePicker/index.ts b/src/molecules/RangePicker/index.ts index eb081b1..77c71a7 100644 --- a/src/molecules/RangePicker/index.ts +++ b/src/molecules/RangePicker/index.ts @@ -1,2 +1,3 @@ -// export * from './RangePicker'; -// export * from './RangePickerControl'; +export * from './RangePicker'; +export * from './RangePickerControl'; +export * from "./types"; \ No newline at end of file diff --git a/src/molecules/RangePicker/types.ts b/src/molecules/RangePicker/types.ts new file mode 100644 index 0000000..4922f77 --- /dev/null +++ b/src/molecules/RangePicker/types.ts @@ -0,0 +1,9 @@ +import { RangePickerProps } from 'antd/es/date-picker'; +import { IRegistryRangePickerControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; + +export interface IRangePickerProps extends RangePickerProps, ILabelFieldWrapperProps {} + +export interface IRangePickerControlProps + extends Omit, + IRegistryRangePickerControlField {} diff --git a/src/molecules/Row/Row.tsx b/src/molecules/Row/Row.tsx new file mode 100644 index 0000000..42b6f25 --- /dev/null +++ b/src/molecules/Row/Row.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { RowStyles } from './styles'; +import { IRowProps } from './types'; + +export const Row = ({ ...antdProps }: IRowProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Row/index.tsx b/src/molecules/Row/index.tsx new file mode 100644 index 0000000..c677148 --- /dev/null +++ b/src/molecules/Row/index.tsx @@ -0,0 +1,2 @@ +export * from './Row'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Row/styles.tsx b/src/molecules/Row/styles.tsx new file mode 100644 index 0000000..d5b1d57 --- /dev/null +++ b/src/molecules/Row/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Row } from 'antd'; + +export const RowStyles = styled(Row)``; diff --git a/src/molecules/Row/types.ts b/src/molecules/Row/types.ts new file mode 100644 index 0000000..b6ae120 --- /dev/null +++ b/src/molecules/Row/types.ts @@ -0,0 +1,3 @@ +import { RowProps } from 'antd'; + +export interface IRowProps extends RowProps {} diff --git a/src/molecules/Select/Select.tsx b/src/molecules/Select/Select.tsx index 98ea1cb..b359c6c 100644 --- a/src/molecules/Select/Select.tsx +++ b/src/molecules/Select/Select.tsx @@ -1,34 +1,38 @@ -import { SelectProps, Select as SelectAntd } from 'antd'; -import { ILabelField, LabelField } from '../LabelField'; +import { Select as SelectAntd, SelectProps } from 'antd'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; import { SelectWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface ISelectProps extends SelectProps, ILabelField {} +import { ISelectProps } from './types'; export const Select = ({ - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, + + // Custom props + width, + minWidth, + isHideValueOnLoading = true, ...antdProps }: ISelectProps) => { + // Handle hide value when loading + if (isHideValueOnLoading) { + antdProps = { + ...antdProps, + value: !antdProps.loading && antdProps.value, + }; + } + return ( - - + - + ); diff --git a/src/molecules/Select/SelectControl.tsx b/src/molecules/Select/SelectControl.tsx index 266e405..7965c34 100644 --- a/src/molecules/Select/SelectControl.tsx +++ b/src/molecules/Select/SelectControl.tsx @@ -1,24 +1,18 @@ -import { LabelField, TextError } from '@/designs'; -import { IControlField } from '@/models/interfaces/form'; -import { SelectProps, Select as AntdSelect } from 'antd'; +import { Select as AntdSelect, SelectProps } from 'antd'; import { useController } from 'react-hook-form'; -import { ISelectProps } from './Select'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TextError } from '../../atomics'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { LabelField } from '../LabelField'; import { SelectWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface ISelectControlProps extends Omit, IControlField {} +import { ISelectControlProps } from './types'; export const SelectControl = ({ name, control, + defaultValue, - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: ISelectControlProps) => { @@ -28,18 +22,16 @@ export const SelectControl = ({ } = useController({ name, control, + defaultValue, }); return ( - - + {invalid && {error?.message}} diff --git a/src/molecules/Select/index.ts b/src/molecules/Select/index.ts index a120550..640964d 100644 --- a/src/molecules/Select/index.ts +++ b/src/molecules/Select/index.ts @@ -1,2 +1,3 @@ export * from './Select'; -export * from './SelectControl'; \ No newline at end of file +export * from './SelectControl'; +export * from "./types"; \ No newline at end of file diff --git a/src/molecules/Select/styles.tsx b/src/molecules/Select/styles.tsx index 86e153e..082f15d 100644 --- a/src/molecules/Select/styles.tsx +++ b/src/molecules/Select/styles.tsx @@ -1,7 +1,24 @@ +import { css } from '@emotion/react'; import styled from '@emotion/styled'; -export const SelectWrapper = styled.div` - width: 100%; +export const SelectWrapper = styled.div<{ width?: string | number; minWidth?: string | number }>` + ${props => { + return ( + props.width && + css` + width: ${props.width}; + ` + ); + }} + + ${props => { + return ( + props.minWidth && + css` + min-width: ${props.minWidth}; + ` + ); + }} .ant-select { width: 100%; diff --git a/src/molecules/Select/types.ts b/src/molecules/Select/types.ts new file mode 100644 index 0000000..e550a1f --- /dev/null +++ b/src/molecules/Select/types.ts @@ -0,0 +1,22 @@ +import { SelectProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; + +export interface ISelectProps extends SelectProps, ILabelFieldWrapperProps { + /** + * Width of the select component. + */ + width?: string | number; + + /** + * Min width of the select component. + */ + minWidth?: string | number; + + /** + * When loading is true, the value will be hidden, default is true. + */ + isHideValueOnLoading?: boolean; +} + +export interface ISelectControlProps extends Omit, IRegistryControlField {} diff --git a/src/molecules/Switch/Switch.tsx b/src/molecules/Switch/Switch.tsx index ae1dec8..4fe09d1 100644 --- a/src/molecules/Switch/Switch.tsx +++ b/src/molecules/Switch/Switch.tsx @@ -1,20 +1,12 @@ import { Switch as AntdSwitch, SwitchProps } from 'antd'; -import { ILabelField, LabelField } from '../LabelField'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; import { SwitchWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface ISwitchProps extends SwitchProps, ILabelField { - responseType?: 'number' | 'boolean'; -} +import { ISwitchProps } from './types'; export const Switch = ({ - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, responseType = 'boolean', @@ -23,16 +15,13 @@ export const Switch = ({ return ( - - + ); diff --git a/src/molecules/Switch/SwitchControl.tsx b/src/molecules/Switch/SwitchControl.tsx index b387bad..08c37e1 100644 --- a/src/molecules/Switch/SwitchControl.tsx +++ b/src/molecules/Switch/SwitchControl.tsx @@ -1,26 +1,18 @@ -import { LabelField, TextError } from '@/designs'; -import { IControlField } from '@/models/interfaces/form'; -import { SwitchProps, Switch as AntdSwitch } from 'antd'; +import { Switch as AntdSwitch, SwitchProps } from 'antd'; import { useController } from 'react-hook-form'; -import { ISwitchProps } from './Switch'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TextError } from '../../atomics'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { LabelField } from '../LabelField'; import { SwitchWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface ISwitchControlProps extends Omit, IControlField {} +import { ISwitchControlProps } from './types'; export const SwitchControl = ({ name, control, - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, - responseType = 'boolean', + label: labelFieldProps, ...antdProps }: ISwitchControlProps) => { @@ -47,13 +39,10 @@ export const SwitchControl = ({ return ( - - + {invalid && {error?.message}} diff --git a/src/molecules/Switch/index.tsx b/src/molecules/Switch/index.tsx index a03b9d2..9260943 100644 --- a/src/molecules/Switch/index.tsx +++ b/src/molecules/Switch/index.tsx @@ -1,2 +1,3 @@ export * from './Switch'; -export * from './SwitchControl'; \ No newline at end of file +export * from './SwitchControl'; +export * from "./types"; \ No newline at end of file diff --git a/src/molecules/Switch/types.ts b/src/molecules/Switch/types.ts new file mode 100644 index 0000000..1e025ec --- /dev/null +++ b/src/molecules/Switch/types.ts @@ -0,0 +1,12 @@ +import { SwitchProps } from 'antd'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; + +export interface ISwitchProps extends SwitchProps, ILabelFieldWrapperProps { + /** + * The value type you want to get from the switch. Default is 'boolean'. + */ + responseType?: 'number' | 'boolean'; +} + +export interface ISwitchControlProps extends Omit, IRegistryControlField {} diff --git a/src/molecules/Table/Table.tsx b/src/molecules/Table/Table.tsx new file mode 100644 index 0000000..de2465f --- /dev/null +++ b/src/molecules/Table/Table.tsx @@ -0,0 +1,18 @@ +import { Table as AntdTable, TableProps } from 'antd'; +import { AnyObject } from 'antd/es/_util/type'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TableWrapper } from './styles'; + +export type TTableProps = TableProps & {}; + +export const Table = ({ + ...antdProps +}: TTableProps) => { + return ( + + + {...(antdProps as TableProps)} /> + + + ); +}; diff --git a/src/molecules/Table/index.ts b/src/molecules/Table/index.ts new file mode 100644 index 0000000..5874937 --- /dev/null +++ b/src/molecules/Table/index.ts @@ -0,0 +1 @@ +export * from './Table'; \ No newline at end of file diff --git a/src/molecules/Table/styles.ts b/src/molecules/Table/styles.ts new file mode 100644 index 0000000..0690f35 --- /dev/null +++ b/src/molecules/Table/styles.ts @@ -0,0 +1,3 @@ +import styled from '@emotion/styled'; + +export const TableWrapper = styled.div``; diff --git a/src/molecules/TextArea/TextArea.tsx b/src/molecules/TextArea/TextArea.tsx index c8a9d87..8f38681 100644 --- a/src/molecules/TextArea/TextArea.tsx +++ b/src/molecules/TextArea/TextArea.tsx @@ -1,34 +1,25 @@ import { TextAreaProps } from 'antd/es/input'; -import { ILabelField, LabelField } from '../LabelField'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { LabelField } from '../LabelField'; import { TextareaStyled, TextareaWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface ITextareaProps extends TextAreaProps, ILabelField {} +import { ITextareaProps } from './types'; export const TextArea = ({ - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: ITextareaProps) => { return ( - - + ); diff --git a/src/molecules/TextArea/TextAreaControl.tsx b/src/molecules/TextArea/TextAreaControl.tsx index 918c8f9..c85fe34 100644 --- a/src/molecules/TextArea/TextAreaControl.tsx +++ b/src/molecules/TextArea/TextAreaControl.tsx @@ -1,24 +1,17 @@ -import { LabelField, TextError } from '@/designs'; -import { IControlField } from '@/models/interfaces/form'; import { TextAreaProps } from 'antd/es/input'; import { useController } from 'react-hook-form'; -import { ITextareaProps } from './TextArea'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TextError } from '../../atomics'; +import ConditionalWrapper from '../../atomics/ConditionalWrapper'; +import { LabelField } from '../LabelField'; import { TextareaStyled, TextareaWrapper } from './styles'; -import { ConfigProviderDesign } from '@/ContextProvider'; - -export interface ITextareaControlProps extends Omit, IControlField {} +import { ITextareaControlProps } from './types'; export const TextareaControl = ({ name, control, - // ILabelField props - required, - label, - labelAxis = 'vertical', - isColon = true, - labelDescription, - widthField, + label: labelFieldProps, ...antdProps }: ITextareaControlProps) => { @@ -33,13 +26,10 @@ export const TextareaControl = ({ return ( - - + {invalid && {error?.message}} diff --git a/src/molecules/TextArea/index.ts b/src/molecules/TextArea/index.ts index d860ac6..705d3d2 100644 --- a/src/molecules/TextArea/index.ts +++ b/src/molecules/TextArea/index.ts @@ -1,2 +1,3 @@ export * from './TextArea'; export * from './TextAreaControl'; +export * from "./types"; \ No newline at end of file diff --git a/src/molecules/TextArea/types.ts b/src/molecules/TextArea/types.ts new file mode 100644 index 0000000..93216f4 --- /dev/null +++ b/src/molecules/TextArea/types.ts @@ -0,0 +1,8 @@ +import { TextAreaProps } from 'antd/es/input'; +import { IRegistryControlField } from '../../models'; +import { ILabelFieldWrapperProps } from '../LabelField/types'; + +export interface ITextareaProps extends TextAreaProps, ILabelFieldWrapperProps {} +export interface ITextareaControlProps + extends Omit, + IRegistryControlField {} diff --git a/src/molecules/Tooltip/Tooltip.tsx b/src/molecules/Tooltip/Tooltip.tsx new file mode 100644 index 0000000..988a1ce --- /dev/null +++ b/src/molecules/Tooltip/Tooltip.tsx @@ -0,0 +1,11 @@ +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { TooltipStyles } from './styles'; +import { ITooltipProps } from './types'; + +export const Tooltip = ({ ...antdProps }: ITooltipProps) => { + return ( + + + + ); +}; diff --git a/src/molecules/Tooltip/index.tsx b/src/molecules/Tooltip/index.tsx new file mode 100644 index 0000000..2e376b8 --- /dev/null +++ b/src/molecules/Tooltip/index.tsx @@ -0,0 +1,2 @@ +export * from './Tooltip'; +export * from './types'; \ No newline at end of file diff --git a/src/molecules/Tooltip/styles.tsx b/src/molecules/Tooltip/styles.tsx new file mode 100644 index 0000000..56edbf8 --- /dev/null +++ b/src/molecules/Tooltip/styles.tsx @@ -0,0 +1,4 @@ +import styled from '@emotion/styled'; +import { Tooltip } from 'antd'; + +export const TooltipStyles = styled(Tooltip)``; diff --git a/src/molecules/Tooltip/types.ts b/src/molecules/Tooltip/types.ts new file mode 100644 index 0000000..a8b3b3c --- /dev/null +++ b/src/molecules/Tooltip/types.ts @@ -0,0 +1,3 @@ +import { TooltipProps } from 'antd'; + +export type ITooltipProps = {} & TooltipProps; diff --git a/src/molecules/index.ts b/src/molecules/index.ts index d138fa2..df8bee5 100644 --- a/src/molecules/index.ts +++ b/src/molecules/index.ts @@ -1,11 +1,25 @@ +export * from './Avatar/index'; +export * from './Blur/index'; export * from './Button/index'; +export * from './Card/index'; export * from './Checkbox/index'; +export * from './Col/index'; +export * from './Divider/index'; +export * from './Drawer/index'; +export * from './Dropdown/index'; export * from './Input/index'; export * from './InputNumber/index'; export * from './InputPassword/index'; export * from './LabelField/index'; +export * from './Layout/index'; +// export * from './List/index'; +export * from './Menu/index'; +export * from './Popover/index'; export * from './Radio/index'; -// export * from './RangePicker/index'; +export * from './RangePicker/index'; +export * from './Row/index'; export * from './Select/index'; export * from './Switch/index'; export * from './TextArea/index'; +export * from './Tooltip/index'; +export * from './Table/index'; \ No newline at end of file diff --git a/src/organisms/App/App.tsx b/src/organisms/App/App.tsx new file mode 100644 index 0000000..4f3e378 --- /dev/null +++ b/src/organisms/App/App.tsx @@ -0,0 +1,48 @@ +import { App as AppAntd, AppProps } from 'antd'; +import { ConfigProviderDesign } from '../../ConfigProviderDesign'; +import { useAppProps } from 'antd/es/app/context'; +import { Global } from '@emotion/react'; +import NotificationStyles from './NotificationStyles'; + +interface IAppProps extends AppProps {} + +const App = (props: IAppProps) => { + const { children, ...rest } = props; + return ( + + + + {children} + + + ); +}; + +export const useNotification = () => { + const { notification } = AppAntd.useApp(); + return notification; +}; + +export const useMessage = () => { + const { message } = AppAntd.useApp(); + return message; +}; + +export const useModal = () => { + const { modal } = AppAntd.useApp(); + return modal; +}; + +App.useApp = AppAntd.useApp; + +export default App; diff --git a/src/organisms/App/NotificationStyles.tsx b/src/organisms/App/NotificationStyles.tsx new file mode 100644 index 0000000..51f9665 --- /dev/null +++ b/src/organisms/App/NotificationStyles.tsx @@ -0,0 +1,37 @@ +import styled from '@emotion/styled'; +import { config } from '../..'; +import { css } from '@emotion/react'; + +const NotificationStyles = css` + .rd-notification-notice-wrapper { + &:has(.rd-notification-notice-error) { + background-color: ${config.designToken.colorErrorBg}; + border-left: 4px solid ${config.designToken.colorError}; + } + } + + .rd-notification-notice-wrapper { + &:has(.rd-notification-notice-success) { + background-color: ${config.designToken.colorSuccessBg}; + border-left: 4px solid ${config.designToken.colorSuccess}; + } + } + + .rd-notification-notice-wrapper { + &:has(.rd-notification-notice-warning) { + background-color: ${config.designToken.colorWarningBg}; + border-left: 4px solid ${config.designToken.colorWarning}; + } + } + + .rd-notification-notice-wrapper { + .rd-notification-notice-message { + font-weight: ${config.designToken.fontWeightStrong}; + } + .rd-notification-notice-close { + color: ${config.designToken.colorTextLightSolid}; + } + } +`; + +export default NotificationStyles; diff --git a/src/organisms/App/index.ts b/src/organisms/App/index.ts new file mode 100644 index 0000000..9342f37 --- /dev/null +++ b/src/organisms/App/index.ts @@ -0,0 +1 @@ +export * from './App'; \ No newline at end of file diff --git a/src/organisms/index.ts b/src/organisms/index.ts new file mode 100644 index 0000000..e40c312 --- /dev/null +++ b/src/organisms/index.ts @@ -0,0 +1 @@ +export { default as App } from './App/App'; \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index ab8d031..b0d9eee 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,14 @@ { - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "jsx": "react-jsx", - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "declaration": true, - "outDir": "./dist", - - "baseUrl": ".", - "paths": { - "@/*": ["src/*"] - } - }, - "include": ["src"] + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "jsx": "react-jsx", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "declaration": true, + "outDir": "./dist", + }, + "include": ["src"] } diff --git a/webpack.config.js b/webpack.config.js index e0d1059..985bb92 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { }, resolve: { extensions: ['.ts', '.tsx', '.js'], - plugins: [new TsconfigPathsPlugin({ configFile: "./tsconfig.json" })] + plugins: [new TsconfigPathsPlugin({ configFile: './tsconfig.json' })], }, module: { rules: [ @@ -32,4 +32,4 @@ module.exports = { react: 'react', 'react-dom': 'react-dom', }, -}; \ No newline at end of file +}; diff --git a/yarn.lock b/yarn.lock index 67b16c1..ebdcdf4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1116,7 +1116,7 @@ "@emotion/react@^11.13.3": version "11.13.3" - resolved "https://registry.npmjs.org/@emotion/react/-/react-11.13.3.tgz" + resolved "https://registry.yarnpkg.com/@emotion/react/-/react-11.13.3.tgz#a69d0de2a23f5b48e0acf210416638010e4bd2e4" integrity sha512-lIsdU6JNrmYfJ5EbUCf4xW1ovy5wKQ2CkPRM4xogziOxH1nXxBSjpC9YqbFAP7circxMfYp+6x676BqWcEiixg== dependencies: "@babel/runtime" "^7.18.3" @@ -2169,16 +2169,11 @@ csstype@^3.0.2, csstype@^3.1.3: resolved "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz" integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== -dayjs@^1.11.11: +dayjs@^1.11.11, dayjs@^1.11.13: version "1.11.13" resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz" integrity sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg== -dayjs@^1.11.13: - version "1.11.13" - resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.13.tgz#92430b0139055c3ebb60150aa13e860a4b5a366c" - integrity sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg== - debug@2.6.9: version "2.6.9" resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz"