From ef5c03e3ac827ae44c176dac8b9f6b7a16dbc67d Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Mon, 27 Nov 2023 15:00:28 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=91=B7=20ci:=20Fix=20eslint=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 19 +- .github/workflows/issue-auto-comments.yml | 2 +- .github/workflows/issue-close-require.yml | 2 +- .github/workflows/issues-translate.yml | 8 +- .github/workflows/release.yml | 4 +- javascript/main.js | 2 +- package.json | 2 +- src/app/index.tsx | 96 +-- src/app/layout.tsx | 118 +-- src/app/manifest.ts | 46 +- src/app/page.tsx | 10 +- src/app/style.ts | 32 +- src/components/Giscus/index.tsx | 114 +-- src/components/Loading/index.tsx | 34 +- src/components/Loading/style.ts | 36 +- src/components/Logo/CustomLogo.tsx | 40 +- src/components/Logo/KitchenLogo.tsx | 20 +- src/components/Logo/index.tsx | 46 +- src/components/PromptEditor/Prompt.tsx | 118 +-- src/components/PromptEditor/TagList/index.tsx | 162 ++--- src/components/PromptEditor/TagList/style.ts | 4 +- src/components/PromptEditor/index.tsx | 26 +- src/components/PromptEditor/style.ts | 10 +- src/components/PromptEditor/utils.ts | 52 +- src/components/VersionTag/index.tsx | 42 +- src/components/index.ts | 12 +- src/features/Content/SplitView.tsx | 78 +- src/features/Content/index.tsx | 122 ++-- src/features/Content/style.ts | 30 +- src/features/ExtraNetworkSidebar/Inner.tsx | 244 +++---- src/features/ExtraNetworkSidebar/index.tsx | 102 +-- src/features/ExtraNetworkSidebar/style.ts | 10 +- src/features/Footer/data.tsx | 162 ++--- src/features/Footer/index.tsx | 116 +-- src/features/Footer/style.ts | 6 +- src/features/Header/Actions.tsx | 120 +-- src/features/Header/Nav.tsx | 108 +-- src/features/Header/index.tsx | 76 +- src/features/QuickSettingSidebar/Inner.tsx | 38 +- src/features/QuickSettingSidebar/index.tsx | 114 +-- src/features/QuickSettingSidebar/style.ts | 8 +- src/features/Setting/SettingForm.tsx | 682 +++++++++--------- src/features/Setting/data.ts | 30 +- src/features/Setting/index.tsx | 58 +- src/features/Setting/style.ts | 4 +- src/hooks/useExternalTextareaObserver.ts | 56 +- src/hooks/useIsDarkMode.tsx | 36 +- src/layouts/index.tsx | 120 +-- src/locales/config.ts | 26 +- src/main.tsx | 36 +- src/modules/PromptHighlight/App.tsx | 130 ++-- .../PromptHighlight/SyntaxHighlighter.tsx | 68 +- src/modules/PromptHighlight/index.tsx | 40 +- src/modules/PromptHighlight/promptTheme.ts | 144 ++-- src/modules/PromptHighlight/style.ts | 28 +- src/modules/PromptHighlight/useHighlight.ts | 56 +- src/scripts/civitaiHelperFix.ts | 454 ++++++------ src/scripts/draggablePanel.ts | 114 +-- src/scripts/formatPrompt.ts | 392 +++++----- src/scripts/replaceIcon.ts | 168 ++--- src/store/action.ts | 152 ++-- src/store/api.ts | 56 +- src/store/index.tsx | 12 +- src/store/initialState.ts | 70 +- src/store/selectors.ts | 12 +- src/store/store.ts | 10 +- src/styles/antdOverride.ts | 4 +- src/styles/components/button.ts | 2 +- src/styles/components/collapse.ts | 4 +- src/styles/components/container.ts | 6 +- src/styles/components/extensions.ts | 4 +- src/styles/components/gallery.ts | 6 +- src/styles/components/input.ts | 4 +- src/styles/components/label.ts | 4 +- src/styles/components/lightboxModal.ts | 2 +- src/styles/components/options.ts | 2 +- src/styles/components/progress.ts | 2 +- src/styles/components/slider.ts | 2 +- src/styles/components/table.ts | 2 +- src/styles/components/tabs.ts | 2 +- src/styles/index.ts | 34 +- src/styles/kitchenColors.ts | 116 +-- src/styles/tokens.ts | 6 +- src/types/global.d.ts | 2 +- src/types/i18next.d.ts | 2 +- src/types/index.ts | 4 +- 86 files changed, 2785 insertions(+), 2770 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 0bf0a16..04237fb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,5 @@ const config = require('@lobehub/lint').eslint; -config.rules['no-undef'] = 0; config.rules['unicorn/prefer-add-event-listener'] = 0; config.rules['unicorn/no-negated-condition'] = 0; config.rules['unicorn/prefer-type-error'] = 0; @@ -15,4 +14,20 @@ config.rules['react/no-unknown-property'] = 0; config.rules['unicorn/prefer-ternary'] = 0; config.rules['unicorn/prefer-spread'] = 0; -module.exports = config; +config.rules['indent'] = ['off', 2]; + +module.exports = { + ...config, + overrides: [ + { + files: ['*.ts', '*.tsx'], + rules: { + 'linebreak-style': 0, + 'no-undef': 0, + 'object-curly-spacing': 0, + 'unicorn/prefer-add-event-listener': 0, + 'unused-imports/no-unused-imports': 0, + }, + }, + ], +}; diff --git a/.github/workflows/issue-auto-comments.yml b/.github/workflows/issue-auto-comments.yml index 1264fdf..1762115 100644 --- a/.github/workflows/issue-auto-comments.yml +++ b/.github/workflows/issue-auto-comments.yml @@ -70,4 +70,4 @@ jobs: actions: 'remove-labels' token: ${{ secrets.GH_TOKEN }} issue-number: ${{ github.event.issue.number }} - labels: 'Inactive' \ No newline at end of file + labels: 'Inactive' diff --git a/.github/workflows/issue-close-require.yml b/.github/workflows/issue-close-require.yml index c27753f..2f5ee3c 100644 --- a/.github/workflows/issue-close-require.yml +++ b/.github/workflows/issue-close-require.yml @@ -70,7 +70,7 @@ jobs: with: actions: 'close-issues' token: ${{ secrets.GH_TOKEN }} - labels: "Inactive" + labels: 'Inactive' inactive-day: 90 body: | Since the issue was labeled with `Inactive`, and no response in 30 days. This issue will be closed. If you have any questions, you can comment and reply. diff --git a/.github/workflows/issues-translate.yml b/.github/workflows/issues-translate.yml index 0c201dd..fe6f7bc 100644 --- a/.github/workflows/issues-translate.yml +++ b/.github/workflows/issues-translate.yml @@ -1,8 +1,8 @@ name: Issue Translate -on: - issue_comment: +on: + issue_comment: types: [created] - issues: + issues: types: [opened] jobs: @@ -11,4 +11,4 @@ jobs: steps: - uses: usthe/issues-translate-action@v2.7 with: - BOT_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file + BOT_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b24a8bb..b8de686 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,8 +23,8 @@ jobs: - name: Test run: bun run test -# - name: Build -# run: bun run build + # - name: Build + # run: bun run build - name: Release run: bun run release diff --git a/javascript/main.js b/javascript/main.js index 1cb06fc..e50de5f 100644 --- a/javascript/main.js +++ b/javascript/main.js @@ -45,7 +45,7 @@ var U=z,V=Symbol.for("react.element"),G=Symbol.for("react.fragment"),q=Object.pr Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -Fm=Rm,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=[];return H.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(ob(e)):rb.isFragment(e)&&e.props?n=n.concat(ob(e.props.children,t)):n.push(e))})),n}function ab(e){return e instanceof HTMLElement||e instanceof SVGElement}function ib(e){return ab(e)?e:e instanceof H.Component?yd.findDOMNode(e):null}function sb(e,t){"function"==typeof e?e(t):"object"===kd(e)&&e&&"current"in e&&(e.current=t)}function lb(){for(var e=arguments.length,t=new Array(e),n=0;n0},e.prototype.connect_=function(){pb&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),bb?(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(){pb&&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;mb.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}(),yb=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Pb="undefined"!=typeof WeakMap?new WeakMap:new fb,_b=function(){return 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=vb.getInstance(),r=new Nb(t,n,this);Pb.set(this,r)}}();["observe","unobserve","disconnect"].forEach((function(e){_b.prototype[e]=function(){var t;return(t=Pb.get(this))[e].apply(t,arguments)}}));var Ib=void 0!==hb.ResizeObserver?hb.ResizeObserver:_b,Tb=new Map;var Fb=new Ib((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Tb.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function Rb(e,t){return(Rb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ab(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rb(e,t)}function Mb(e){return(Mb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A4){return!1}}function Bb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zb(e){var t=Lb();return function(){var n,r=Mb(e);if(t){var o=Mb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bb(e)}(this,n)}}var Hb=function(e){Ab(n,z.Component);var t=zb(n);function n(){return nf(this,n),t.apply(this,arguments)}return of(n,[{key:"render",value:function(){return this.props.children}}]),n}();function Wb(e,t){var n=e.children,r=e.disabled,o=z.useRef(null),a=z.useRef(null),i=z.useContext(db),s="function"==typeof n,l=s?n(o):n,c=z.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&z.isValidElement(l)&&ub(l),d=cb(u?l.ref:null,o),f=function(){var e;return ib(o.current)||(o.current&&"object"===kd(o.current)?ib(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||ib(a.current)};z.useImperativeHandle(t,(function(){return f()}));var p=z.useRef(e);p.current=e;var h=z.useCallback((function(e){var t=p.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,s=o.height,l=e.offsetWidth,u=e.offsetHeight,d=Math.floor(a),f=Math.floor(s);if(c.current.width!==d||c.current.height!==f||c.current.offsetWidth!==l||c.current.offsetHeight!==u){var h={width:d,height:f,offsetWidth:l,offsetHeight:u};c.current=h;var g=l===Math.round(a)?a:l,m=u===Math.round(s)?s:u,b=Eh(Eh({},h),{},{offsetWidth:g,offsetHeight:m});null==i||i(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return z.useEffect((function(){var e,t,n=f();return n&&!r&&(e=n,t=h,Tb.has(e)||(Tb.set(e,new Set),Fb.observe(e)),Tb.get(e).add(t)),function(){return function(e,t){Tb.has(e)&&(Tb.get(e).delete(t),Tb.get(e).size||(Fb.unobserve(e),Tb.delete(e)))}(n,h)}}),[o.current,r]),z.createElement(Hb,{ref:a},u?z.cloneElement(l,{ref:d}):l)}var Ub=z.forwardRef(Wb);function Vb(e,t){var n=e.children;return("function"==typeof n?[n]:ob(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return z.createElement(Ub,Bp({},e,{key:o,ref:0===r?t:void 0}),n)}))}var Gb=z.forwardRef(Vb);function qb(e,t){var n=Eh({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}Gb.Collection=function(e){var t=e.children,n=e.onBatchResize,r=z.useRef(0),o=z.useRef([]),a=z.useContext(db),i=z.useCallback((function(e,t,i){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==a||a(e,t,i)}),[n,a]);return z.createElement(db.Provider,{value:i},t)};var Xb=function(e){return+setTimeout(e,16)},Kb=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Xb=function(e){return window.requestAnimationFrame(e)},Kb=function(e){return window.cancelAnimationFrame(e)});var Yb=0,Qb=new Map;function Jb(e){Qb.delete(e)}var Zb=function(e){var t=Yb+=1;return function n(r){if(0===r)Jb(t),e();else{var o=Xb((function(){n(r-1)}));Qb.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Zb.cancel=function(e){var t=Qb.get(e);return Jb(e),Kb(t)};const ev=z.createContext({});function tv(e){return ng(e)||xh(e)||Sh(e)||rg()}function nv(e,t){for(var n=e,r=0;r3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!nv(e,t.slice(0,-1))?e:rv(e,t,n,r)}function av(e){return Array.isArray(e)?[]:{}}var iv="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function sv(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=lv,e},dv=z.createContext(void 0);const fv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},pv={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"]},{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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"}),timePickerLocale:Object.assign({},fv)},hv="${label} is not a valid ${type}",gv={locale:"en",Pagination:{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"},DatePicker:pv,TimePicker:fv,Calendar:pv,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",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"},PageHeader:{back:"Back"},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:hv,method:hv,array:hv,object:hv,number:hv,date:hv,boolean:hv,integer:hv,float:hv,regexp:hv,email:hv,url:hv,hex:hv},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"},ColorPicker:{presetEmpty:"Empty"}};let mv=Object.assign({},gv.Modal),bv=[];const vv=()=>bv.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),gv.Modal);function yv(){return mv}const wv=z.createContext(void 0),xv=(e,t)=>{const n=z.useContext(wv);return[z.useMemo((()=>{var r;const o=t||gv[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})}),[e,t,n]),z.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?gv.locale:e}),[n])]},Sv=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;z.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return bv.push(t),mv=vv(),()=>{bv=bv.filter((e=>e!==t)),mv=vv()}}mv=Object.assign({},gv.Modal)}(t&&t.Modal);return e}),[t]);const o=z.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return z.createElement(wv.Provider,{value:o},n)};function kv(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 Cv(e){return Math.min(1,Math.max(0,e))}function Ev(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ov(e){return e<=1?"".concat(100*Number(e),"%"):e}function Dv(e){return 1===e.length?"0"+e:String(e)}function $v(e,t,n){e=kv(e,255),t=kv(t,255),n=kv(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else{var l=r-o;switch(i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(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 Nv(e,t,n){e=kv(e,255),t=kv(t,255),n=kv(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,l=0===r?0:s/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Fv(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=Ev(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=Nv(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=Nv(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=$v(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=$v(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),Pv(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 a,i=[Dv(Math.round(e).toString(16)),Dv(Math.round(t).toString(16)),Dv(Math.round(n).toString(16)),Dv((a=r,Math.round(255*parseFloat(a)).toString(16)))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.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*kv(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*kv(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="#"+Pv(this.r,this.g,this.b,!1),t=0,n=Object.entries(Tv);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=Cv(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=Cv(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=Cv(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=Cv(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(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+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,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},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,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},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],a=360/t,i=1;i=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Hv*t:Math.round(e.h)+Hv*t:n?Math.round(e.h)+Hv*t:Math.round(e.h)-Hv*t)<0?r+=360:r>=360&&(r-=360),r}function Zv(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Wv*t:t===Xv?e.s+Wv:e.s+Uv*t)>1&&(r=1),n&&t===qv&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function ey(e,t,n){var r;return(r=n?e.v+Vv*t:e.v-Gv*t)>1&&(r=1),Number(r.toFixed(2))}function ty(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Fv(e),o=qv;o>0;o-=1){var a=Yv(r),i=Qv(Fv({h:Jv(a,o,!0),s:Zv(a,o,!0),v:ey(a,o,!0)}));n.push(i)}n.push(Qv(r));for(var s=1;s<=Xv;s+=1){var l=Yv(r),c=Qv(Fv({h:Jv(l,s),s:Zv(l,s),v:ey(l,s)}));n.push(c)}return"dark"===t.theme?Kv.map((function(e){var r,o,a,i=e.index,s=e.opacity;return Qv((r=Fv(t.backgroundColor||"#141414"),o=Fv(n[i]),a=100*s/100,{r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b}))})):n}var ny={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"},ry={},oy={};Object.keys(ny).forEach((function(e){ry[e]=ty(ny[e]),ry[e].primary=ry[e][5],oy[e]=ty(ny[e],{theme:"dark",backgroundColor:"#141414"}),oy[e].primary=oy[e][5]}));var ay=ry.blue;const iy=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const sy={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"},ly=Object.assign(Object.assign({},sy),{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});function cy(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(o),p=n(a),h=n(i),g=n(s),m=r(c,u),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new zv("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const uy=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}};const dy=(e,t)=>new zv(e).setAlpha(t).toRgbString(),fy=(e,t)=>new zv(e).darken(t).toHexString(),py=e=>{const t=ty(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]}},hy=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:dy(r,.88),colorTextSecondary:dy(r,.65),colorTextTertiary:dy(r,.45),colorTextQuaternary:dy(r,.25),colorFill:dy(r,.15),colorFillSecondary:dy(r,.06),colorFillTertiary:dy(r,.04),colorFillQuaternary:dy(r,.02),colorBgLayout:fy(n,4),colorBgContainer:fy(n,0),colorBgElevated:fy(n,0),colorBgSpotlight:dy(r,.85),colorBgBlur:"transparent",colorBorder:fy(n,15),colorBorderSecondary:fy(n,6)}};const gy=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),a=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(a/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function my(e){const t=Object.keys(sy).map((t=>{const n=ty(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)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),cy(e,{generateColorPalettes:py,generateNeutralColorPalettes:hy})),gy(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)),iy(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},uy(r))}(e))}const by=cg(my),vy={token:ly,override:{override:ly},hashed:!0},yy=H.createContext(vy),wy="anticon",xy=z.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:wy}),Sy=`-ant-${Date.now()}-${Math.random()}`;function ky(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 zv(e),a=ty(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new zv(t.primaryColor),a=ty(e.toRgbString());a.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 i=new zv(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(i,(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);Wh()&&tg(n,`${Sy}-dynamic-theme`)}const Cy=z.createContext(!1),Ey=e=>{let{children:t,disabled:n}=e;const r=z.useContext(Cy);return z.createElement(Cy.Provider,{value:null!=n?n:r},t)},Oy=Cy,Dy=z.createContext(void 0),$y=e=>{let{children:t,size:n}=e;const r=z.useContext(Dy);return z.createElement(Dy.Provider,{value:n||r},t)},jy=Dy;const Ny=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Py="5.11.3";function _y(e){return e>=0&&e<=255}function Iy(e,t){const{r:n,g:r,b:o,a:a}=new zv(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new zv(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-i*(1-c))/c),t=Math.round((r-s*(1-c))/c),a=Math.round((o-l*(1-c))/c);if(_y(e)&&_y(t)&&_y(a))return new zv({r:e,g:t,b:a,a:Math.round(100*c)/100}).toRgbString()}return new zv({r:n,g:r,b:o,a:1}).toRgbString()}var Ty=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),a=1200,i=1600;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:Iy(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:Iy(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Iy(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*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:Iy(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:a,screenXLMin:a,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new zv("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new zv("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new zv("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 Ry=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,a=Ry(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Fy(i),a&&Object.entries(a).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Ry(n,["theme"]);let a=o;r&&(a=Ay(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a})),i};function My(){const{token:e,hashed:t,theme:n,override:r}=H.useContext(yy),o=`${Py}-${t||""}`,a=n||by,[i,s]=Pg(a,[ly,e],{salt:o,override:r,getComputedToken:Ay,formatToken:Fy});return[a,i,t?s:""]}function Ly(e){var t=z.useRef();t.current=e;var n=z.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o{const a=e/2,i=a,s=1*n/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),c=a-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*a-c,f=u,p=2*a-s,h=l,g=2*a-0,m=i,b=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),v=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${v}px 100%, 50% ${v}px, ${2*a-v}px 100%, ${v}px 100%)`,`path('M 0 ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${f} L ${p} ${h} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Uy={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vy=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}},Gy=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),qy=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Xy=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ky=e=>({"&:focus-visible":Object.assign({},Xy(e))}),Yy="undefined"!=typeof CSSINJS_STATISTIC;let Qy=!0;function Jy(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),Qy=!0,r}const Zy={};function ew(){}const tw=(e,t)=>{const[n,r]=My();return jm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${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"}})}]))};function nw(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return e=>{const[o,s,l]=My(),{getPrefixCls:c,iconPrefixCls:u,csp:d}=z.useContext(xy),f=c(),p={theme:o,token:s,hashId:l,nonce:()=>null==d?void 0:d.nonce,clientOnly:r.clientOnly,order:r.order||-999};return jm(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",f]}),(()=>[{"&":Gy(s)}])),tw(u,d),[jm(Object.assign(Object.assign({},p),{path:[i,e,u]}),(()=>{const{token:o,flush:i}=function(e){let t,n=e,r=ew;return Yy&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(Qy&&t.add(n),e[n])}),r=(e,n)=>{var r;Zy[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=Zy[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(s),c=Object.assign({},s[a]);if(r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==c?void 0:c[t])||(null==c?void 0:c[n]))&&(null!==(r=c[n])&&void 0!==r||(c[n]=null==c?void 0:c[t]))}))}const d="function"==typeof n?n(Jy(o,null!=c?c:{})):n,p=Object.assign(Object.assign({},d),c),h=Jy(o,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${u}`,antCls:`.${f}`},p),g=t(h,{hashId:l,prefixCls:e,rootPrefixCls:f,iconPrefixCls:u,overrideComponentToken:c});return i(a,p),[!1===r.resetStyle?null:qy(h,e),g]})),l]}}const rw=(e,t,n,r)=>{const o=nw(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}};function ow(e,t){return Ny.reduce(((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))}),{})}var aw=["children"],iw=z.createContext({});function sw(e){var t=e.children,n=Od(e,aw);return z.createElement(iw.Provider,{value:n},t)}var lw=function(e){Ab(n,z.Component);var t=zb(n);function n(){return nf(this,n),t.apply(this,arguments)}return of(n,[{key:"render",value:function(){return this.props.children}}]),n}(),cw="none",uw="appear",dw="enter",fw="leave",pw="none",hw="prepare",gw="start",mw="active",bw="end",vw="prepared";function yw(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 ww,xw,Sw,kw=(ww=Wh(),xw="undefined"!=typeof window?window:{},Sw={animationend:yw("Animation","AnimationEnd"),transitionend:yw("Transition","TransitionEnd")},ww&&("AnimationEvent"in xw||delete Sw.animationend.animation,"TransitionEvent"in xw||delete Sw.transitionend.transition),Sw),Cw={};if(Wh()){var Ew=document.createElement("div");Cw=Ew.style}var Ow={};function Dw(e){if(Ow[e])return Ow[e];var t=kw[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Zb((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)}));e.current=a},t]}(),s=og(i,2),l=s[0],c=s[1];var u=t?Aw:Rw;return Fw((function(){if(o!==pw&&o!==bw){var e=u.indexOf(o),t=u[e+1],r=n(o);r===Mw?a(t,!0):t&&l((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),z.useEffect((function(){return function(){c()}}),[]),[function(){a(hw,!0)},o]};const Hw=function(e){var t=e;"object"===kd(e)&&(t=e.transitionSupport);var n=z.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,a=e.removeOnLeave,i=void 0===a||a,s=e.forceRender,l=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,z.useContext(iw).motion),p=z.useRef(),h=z.useRef();var g=function(e,t,n,r){var o=r.motionEnter,a=void 0===o||o,i=r.motionAppear,s=void 0===i||i,l=r.motionLeave,c=void 0===l||l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,v=r.onAppearActive,y=r.onEnterActive,w=r.onLeaveActive,x=r.onAppearEnd,S=r.onEnterEnd,k=r.onLeaveEnd,C=r.onVisibleChanged,E=og(By(),2),O=E[0],D=E[1],$=og(By(cw),2),j=$[0],N=$[1],P=og(By(null),2),_=P[0],I=P[1],T=z.useRef(!1),F=z.useRef(null);function R(){return n()}var A=z.useRef(!1);function M(){N(cw,!0),I(null,!0)}function L(e){var t=R();if(!e||e.deadline||e.target===t){var n,r=A.current;j===uw&&r?n=null==x?void 0:x(t,e):j===dw&&r?n=null==S?void 0:S(t,e):j===fw&&r&&(n=null==k?void 0:k(t,e)),j!==cw&&r&&!1!==n&&M()}}var B=og(Tw(L),1)[0],H=function(e){var t,n,r;switch(e){case uw:return Ed(t={},hw,f),Ed(t,gw,g),Ed(t,mw,v),t;case dw:return Ed(n={},hw,p),Ed(n,gw,m),Ed(n,mw,y),n;case fw:return Ed(r={},hw,h),Ed(r,gw,b),Ed(r,mw,w),r;default:return{}}},W=z.useMemo((function(){return H(j)}),[j]),U=og(zw(j,!e,(function(e){if(e===hw){var t=W[hw];return t?t(R()):Mw}var n;return G in W&&I((null===(n=W[G])||void 0===n?void 0:n.call(W,R(),null))||null),G===mw&&(B(R()),u>0&&(clearTimeout(F.current),F.current=setTimeout((function(){L({deadline:!0})}),u))),G===vw&&M(),Lw})),2),V=U[0],G=U[1],q=Bw(G);A.current=q,Fw((function(){D(t);var n,r=T.current;T.current=!0,!r&&t&&s&&(n=uw),r&&t&&a&&(n=dw),(r&&!t&&c||!r&&d&&!t&&c)&&(n=fw);var o=H(n);n&&(e||o[hw])?(N(n),V()):N(cw)}),[t]),z.useEffect((function(){(j===uw&&!s||j===dw&&!a||j===fw&&!c)&&N(cw)}),[s,a,c]),z.useEffect((function(){return function(){T.current=!1,clearTimeout(F.current)}}),[]);var X=z.useRef(!1);z.useEffect((function(){O&&(X.current=!0),void 0!==O&&j===cw&&((X.current||O)&&(null==C||C(O)),X.current=!0)}),[O,j]);var K=_;return W[hw]&&G===gw&&(K=Eh({transition:"none"},K)),[j,G,K,null!=O?O:t]}(f,o,(function(){try{return p.current instanceof HTMLElement?p.current:ib(h.current)}catch(A4){return null}}),e),m=og(g,4),b=m[0],v=m[1],y=m[2],w=m[3],x=z.useRef(w);w&&(x.current=!0);var S,k=z.useCallback((function(e){p.current=e,sb(n,e)}),[n]),C=Eh(Eh({},d),{},{visible:o});if(l)if(b===cw)S=w?l(Eh({},C),k):!i&&x.current&&u?l(Eh(Eh({},C),{},{className:u}),k):s||!i&&!u?l(Eh(Eh({},C),{},{style:{display:"none"}}),k):null;else{var E,O;v===hw?O="prepare":Bw(v)?O="active":v===gw&&(O="start");var D=Iw(c,"".concat(b,"-").concat(O));S=l(Eh(Eh({},C),{},{className:Mm(Iw(c,b),(E={},Ed(E,D,D&&O),Ed(E,c,"string"==typeof c),E)),style:y}),k)}else S=null;z.isValidElement(S)&&ub(S)&&(S.ref||(S=z.cloneElement(S,{ref:k})));return z.createElement(lw,{ref:h},S)}));return n.displayName="CSSMotion",n}(Nw);var Ww="add",Uw="keep",Vw="remove",Gw="removed";function qw(e){var t;return Eh(Eh({},t=e&&"object"===kd(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Xw(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(qw)}var Kw=["component","children","onVisibleChanged","onAllRemoved"],Yw=["status"],Qw=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Jw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hw,n=function(e){Ab(r,z.Component);var n=zb(r);function r(){var e;nf(this,r);for(var t=arguments.length,o=new Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=Xw(e),i=Xw(t);a.forEach((function(e){for(var t=!1,a=r;a1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Vw}))).forEach((function(t){t.key===e&&(t.status=Uw)}))})),n}(r,o);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Gw||e.status!==Vw}))}}}]),r}();return Ed(n,"defaultProps",{component:"div"}),n}(Nw);function Zw(e){const{children:t}=e,[,n]=My(),{motion:r}=n,o=z.useRef(!1);return o.current=o.current||!1===r,o.current?z.createElement(sw,{motion:r},t):t}const ex=()=>null;const tx=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];let nx,rx,ox;function ax(){return nx||"ant"}function ix(){return rx||wy}const sx=()=>({getPrefixCls:(e,t)=>t||(e?`${ax()}-${e}`:ax()),getIconPrefixCls:ix,getRootPrefixCls:()=>nx||ax(),getTheme:()=>ox}),lx=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:g,parentContext:m,iconPrefixCls:b,theme:v,componentDisabled:y,segmented:w,statistic:x,spin:S,calendar:k,carousel:C,cascader:E,collapse:O,typography:D,checkbox:$,descriptions:j,divider:N,drawer:P,skeleton:_,steps:I,image:T,layout:F,list:R,mentions:A,modal:M,progress:L,result:B,slider:H,breadcrumb:W,menu:U,pagination:V,input:G,empty:q,badge:X,radio:K,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ae,timePicker:ie,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:ge,warning:me}=e,be=z.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||m.getPrefixCls("");return t?`${o}-${t}`:o}),[m.getPrefixCls,e.prefixCls]),ve=b||m.iconPrefixCls||wy,ye=n||m.csp;tw(ve,ye);const we=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:vy;return Dh((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Ih(e,t[n],!0)))))}(v,m.theme),xe={csp:ye,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=p?p:f,popupOverflow:h,getPrefixCls:be,iconPrefixCls:ve,theme:we,segmented:w,statistic:x,spin:S,calendar:k,carousel:C,cascader:E,collapse:O,typography:D,checkbox:$,descriptions:j,divider:N,drawer:P,skeleton:_,steps:I,image:T,input:G,layout:F,list:R,mentions:A,modal:M,progress:L,result:B,slider:H,breadcrumb:W,menu:U,pagination:V,empty:q,badge:X,radio:K,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ae,timePicker:ie,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:ge,warning:me},Se=Object.assign({},m);Object.keys(xe).forEach((e=>{void 0!==xe[e]&&(Se[e]=xe[e])})),tx.forEach((t=>{const n=e[t];n&&(Se[t]=n)}));const ke=Dh((()=>Se),Se,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ce=z.useMemo((()=>({prefixCls:ve,csp:ye})),[ve,ye]);let Ee=z.createElement(z.Fragment,null,z.createElement(ex,{dropdownMatchSelectWidth:f}),t);const Oe=z.useMemo((()=>{var e,t,n,r;return sv((null===(e=gv.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=ke.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=ke.form)||void 0===r?void 0:r.validateMessages)||{},(null==i?void 0:i.validateMessages)||{})}),[ke,null==i?void 0:i.validateMessages]);Object.keys(Oe).length>0&&(Ee=z.createElement(dv.Provider,{value:Oe},Ee)),s&&(Ee=z.createElement(Sv,{locale:s,_ANT_MARK__:"internalMark"},Ee)),(ve||ye)&&(Ee=z.createElement(ev.Provider,{value:Ce},Ee)),l&&(Ee=z.createElement($y,{size:l},Ee)),Ee=z.createElement(Zw,null,Ee);const De=z.useMemo((()=>{const e=we||{},{algorithm:t,token:n,components:r}=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)?cg(t):by,i={};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=cg(r.algorithm)),delete r.algorithm),i[t]=r}));const s=Object.assign(Object.assign({},ly),n);return Object.assign(Object.assign({},o),{theme:a,token:s,components:i,override:Object.assign({override:s},i)})}),[we]);return v&&(Ee=z.createElement(yy.Provider,{value:De},Ee)),ke.warning&&(Ee=z.createElement(cv.Provider,{value:ke.warning},Ee)),void 0!==y&&(Ee=z.createElement(Ey,{disabled:y},Ee)),z.createElement(xy.Provider,{value:ke},Ee)},cx=e=>{const t=z.useContext(xy),n=z.useContext(wv);return z.createElement(lx,Object.assign({parentContext:t,legacyLocale:n},e))};cx.ConfigContext=xy,cx.SizeContext=jy,cx.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(nx=t),void 0!==n&&(rx=n),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?ox=r:ky(ax(),r))},cx.useConfig=function(){return{componentDisabled:z.useContext(Oy),componentSize:z.useContext(jy)}},Object.defineProperty(cx,"SizeContext",{get:()=>jy});const ux=cx;const dx={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 fx(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function px(e){return function(e){return fx(e)instanceof ShadowRoot}(e)?fx(e):null}function hx(e){return"object"===kd(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===kd(e.icon)||"function"==typeof e.icon)}function gx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function mx(e,t,n){return n?H.createElement(e.tag,Eh(Eh({key:t},gx(e.attrs)),n),(e.children||[]).map((function(n,r){return mx(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):H.createElement(e.tag,Eh({key:t},gx(e.attrs)),(e.children||[]).map((function(n,r){return mx(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function bx(e){return ty(e)[0]}function vx(e){return e?Array.isArray(e)?e:[e]:[]}var yx=["icon","className","onClick","style","primaryColor","secondaryColor"],wx={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var xx=function(e){var t,n,r,o,a,i,s,l=e.icon,c=e.className,u=e.onClick,d=e.style,f=e.primaryColor,p=e.secondaryColor,h=Od(e,yx),g=z.useRef(),m=wx;if(f&&(m={primaryColor:f,secondaryColor:p||bx(f)}),t=g,n=z.useContext(ev),r=n.csp,o=n.prefixCls,a="\n.anticon {\n display: inline-block;\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",o&&(a=a.replace(/anticon/g,o)),z.useEffect((function(){var e=px(t.current);tg(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),i=hx(l),s="icon should be icon definiton, but got ".concat(l),_h(i,"[@ant-design/icons] ".concat(s)),!hx(l))return null;var b=l;return b&&"function"==typeof b.icon&&(b=Eh(Eh({},b),{},{icon:b.icon(m.primaryColor,m.secondaryColor)})),mx(b.icon,"svg-".concat(b.name),Eh(Eh({className:c,onClick:u,style:d,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:g}))};xx.displayName="IconReact",xx.getTwoToneColors=function(){return Eh({},wx)},xx.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;wx.primaryColor=t,wx.secondaryColor=n||bx(t),wx.calculated=!!n};const Sx=xx;function kx(e){var t=og(vx(e),2),n=t[0],r=t[1];return Sx.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Cx=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];kx(ay.primary);var Ex=z.forwardRef((function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Od(e,Cx),d=z.useContext(ev),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,g=Mm(h,p,(Ed(n={},"".concat(p,"-").concat(o.name),!!o.name),Ed(n,"".concat(p,"-spin"),!!a||"loading"===o.name),n),r),m=s;void 0===m&&l&&(m=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=og(vx(c),2),y=v[0],w=v[1];return z.createElement("span",Bp({role:"img","aria-label":o.name},u,{ref:t,tabIndex:m,onClick:l,className:g}),z.createElement(Sx,{icon:o,primaryColor:y,secondaryColor:w,style:b}))}));Ex.displayName="AntdIcon",Ex.getTwoToneColor=function(){var e=Sx.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ex.setTwoToneColor=kx;const Ox=Ex;var Dx=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:dx}))};const $x=z.forwardRef(Dx);const jx={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 Nx=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:jx}))};const Px=z.forwardRef(Nx);const _x={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 Ix=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:_x}))};const Tx=z.forwardRef(Ix);const Fx={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 Rx=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:Fx}))};const Ax=z.forwardRef(Rx);const Mx={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 Lx=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:Mx}))};const Bx=z.forwardRef(Lx);var zx="".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]+/),Hx="aria-",Wx="data-";function Ux(e,t){return 0===e.indexOf(t)}function Vx(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}:Eh({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Ux(n,Hx))||t.data&&Ux(n,Wx)||t.attr&&zx.includes(n))&&(r[n]=e[n])})),r}const{isValidElement:Gx}=W;function qx(e){return e&&Gx(e)&&e.type===z.Fragment}function Xx(e,t){return function(e,t,n){return Gx(e)?z.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}const Kx=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Yx=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Qx=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeightat||a>e&&i=t&&s>=n?a-e-r:i>t&&sn?i-t+o:0,Zx=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},eS=(e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Kx(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Kx(h)&&d(h);){if(h=Zx(h),h===f){p.push(h);break}null!=h&&h===document.body&&Qx(h)&&!Qx(document.documentElement)||null!=h&&Qx(h,u)&&p.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:w,top:x,right:S,bottom:k,left:C}=e.getBoundingClientRect(),{top:E,right:O,bottom:D,left:$}=(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 j="start"===s||"nearest"===s?x-E:"end"===s?k+D:x+y/2-E+D,N="center"===l?C+w/2-$+O:"end"===l?S+O:C-$;const P=[];for(let _=0;_=0&&C>=0&&k<=m&&S<=g&&x>=r&&k<=a&&C>=c&&S<=o)return P;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),O=parseInt(u.borderBottomWidth,10);let D=0,$=0;const I="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-O:0,F="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,R="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(f===e)D="start"===s?j:"end"===s?j-m:"nearest"===s?Jx(v,v+m,m,h,O,v+j,v+j+y,y):j-m/2,$="start"===l?N:"center"===l?N-g/2:"end"===l?N-g:Jx(b,b+g,g,d,E,b+N,b+N+w,w),D=Math.max(0,D+v),$=Math.max(0,$+b);else{D="start"===s?j-r-h:"end"===s?j-a+O+T:"nearest"===s?Jx(r,a,t,h,O+T,j,j+y,y):j-(r+t/2)+T/2,$="start"===l?N-c-d:"center"===l?N-(c+n/2)+I/2:"end"===l?N-o+E+I:Jx(c,o,n,d,E+I,N,N+w,w);const{scrollLeft:i,scrollTop:u}=e;D=0===R?0:Math.max(0,Math.min(u+D/R,e.scrollHeight-t/R+T)),$=0===F?0:Math.max(0,Math.min(i+$/F,e.scrollWidth-n/F+I)),j+=u-D,N+=i-$}P.push({el:e,top:D,left:$})}return P},tS=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};var nS={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>=nS.F1&&t<=nS.F12)return!1;switch(t){case nS.ALT:case nS.CAPS_LOCK:case nS.CONTEXT_MENU:case nS.CTRL:case nS.DOWN:case nS.END:case nS.ESC:case nS.HOME:case nS.INSERT:case nS.LEFT:case nS.MAC_FF_META:case nS.META:case nS.NUMLOCK:case nS.NUM_CENTER:case nS.PAGE_DOWN:case nS.PAGE_UP:case nS.PAUSE:case nS.PRINT_SCREEN:case nS.RIGHT:case nS.SHIFT:case nS.UP:case nS.WIN_KEY:case nS.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=nS.ZERO&&e<=nS.NINE)return!0;if(e>=nS.NUM_ZERO&&e<=nS.NUM_MULTIPLY)return!0;if(e>=nS.A&&e<=nS.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case nS.SPACE:case nS.QUESTION_MARK:case nS.NUM_PLUS:case nS.NUM_MINUS:case nS.NUM_PERIOD:case nS.NUM_DIVISION:case nS.SEMICOLON:case nS.DASH:case nS.EQUALS:case nS.COMMA:case nS.PERIOD:case nS.SLASH:case nS.APOSTROPHE:case nS.SINGLE_QUOTE:case nS.OPEN_SQUARE_BRACKET:case nS.BACKSLASH:case nS.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},rS=z.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=void 0===a?4.5:a,s=e.eventKey,l=e.content,c=e.closable,u=e.closeIcon,d=void 0===u?"x":u,f=e.props,p=e.onClick,h=e.onNoticeClose,g=e.times,m=e.hovering,b=og(z.useState(!1),2),v=b[0],y=b[1],w=m||v,x=function(){h(s)};z.useEffect((function(){if(!w&&i>0){var e=setTimeout((function(){x()}),1e3*i);return function(){clearTimeout(e)}}}),[i,w,g]);var S="".concat(n,"-notice");return z.createElement("div",Bp({},f,{ref:t,className:Mm(S,o,Ed({},"".concat(S,"-closable"),c)),style:r,onMouseEnter:function(e){var t;y(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;y(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:p}),z.createElement("div",{className:"".concat(S,"-content")},l),c&&z.createElement("a",{tabIndex:0,className:"".concat(S,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==nS.ENTER||x()},onClick:function(e){e.preventDefault(),e.stopPropagation(),x()}},d))})),oS=H.createContext({}),aS=function(e){var t=e.children,n=e.classNames;return H.createElement(oS.Provider,{value:{classNames:n}},t)},iS=["className","style","classNames","styles"],sS=function(e){var t,n,r,o,a,i,s=e.configList,l=e.placement,c=e.prefixCls,u=e.className,d=e.style,f=e.motion,p=e.onAllNoticeRemoved,h=e.onNoticeClose,g=e.stack,m=z.useContext(oS).classNames,b=z.useRef({}),v=og(z.useState(null),2),y=v[0],w=v[1],x=og(z.useState([]),2),S=x[0],k=x[1],C=s.map((function(e){return{config:e,key:String(e.key)}})),E=og((i={offset:8,threshold:3,gap:16},(n=g)&&"object"===kd(n)&&(i.offset=null!==(r=n.offset)&&void 0!==r?r:8,i.threshold=null!==(o=n.threshold)&&void 0!==o?o:3,i.gap=null!==(a=n.gap)&&void 0!==a?a:16),[!!n,i]),2),O=E[0],D=E[1],$=D.offset,j=D.threshold,N=D.gap,P=O&&(S.length>0||C.length<=j),_="function"==typeof f?f(l):f;return z.useEffect((function(){O&&S.length>1&&k((function(e){return e.filter((function(e){return C.some((function(t){var n=t.key;return e===n}))}))}))}),[S,C,O]),z.useEffect((function(){var e,t;O&&b.current[null===(e=C[C.length-1])||void 0===e?void 0:e.key]&&w(b.current[null===(t=C[C.length-1])||void 0===t?void 0:t.key])}),[C,O]),H.createElement(Jw,Bp({key:l,className:Mm(c,"".concat(c,"-").concat(l),null==m?void 0:m.list,u,(t={},Ed(t,"".concat(c,"-stack"),!!O),Ed(t,"".concat(c,"-stack-expanded"),P),t)),style:d,keys:C,motionAppear:!0},_,{onAllRemoved:function(){p(l)}}),(function(e,t){var n=e.config,r=e.className,o=e.style,a=e.index,i=n,s=i.key,u=i.times,d=String(s),f=n,p=f.className,g=f.style,v=f.classNames,w=f.styles,x=Od(f,iS),E=C.findIndex((function(e){return e.key===d})),D={};if(O){var j=C.length-1-(E>-1?E:a-1),_="top"===l||"bottom"===l?"-50%":"0";if(j>0){var I,T,F;D.height=P?null===(I=b.current[d])||void 0===I?void 0:I.offsetHeight:null==y?void 0:y.offsetHeight;for(var R=0,A=0;A-1?b.current[d]=e:delete b.current[d]},prefixCls:c,classNames:v,styles:w,className:Mm(p,null==m?void 0:m.notice),style:g,times:u,key:s,eventKey:s,onNoticeClose:h,hovering:O&&S.length>0})))}))},lS=z.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=og(z.useState([]),2),p=f[0],h=f[1],g=function(e){var t,n=p.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),h((function(t){return t.filter((function(t){return t.key!==e}))}))};z.useImperativeHandle(t,(function(){return{open:function(e){h((function(t){var n,r=kh(t),o=r.findIndex((function(t){return t.key===e.key})),a=Eh({},e);o>=0?(a.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=a):(a.times=0,r.push(a));return i>0&&r.length>i&&(r=r.slice(-i)),r}))},close:function(e){g(e)},destroy:function(){h([])}}}));var m=og(z.useState({}),2),b=m[0],v=m[1];z.useEffect((function(){var e={};p.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]||[]})),v(e)}),[p]);var y=function(e){v((function(t){var n=Eh({},t);return(n[e]||[]).length||delete n[e],n}))},w=z.useRef(!1);if(z.useEffect((function(){Object.keys(b).length>0?w.current=!0:w.current&&(null==c||c(),w.current=!1)}),[b]),!o)return null;var x=Object.keys(b);return vd.createPortal(z.createElement(z.Fragment,null,x.map((function(e){var t=b[e],n=z.createElement(sS,{key:e,configList:t,placement:e,prefixCls:r,className:null==s?void 0:s(e),style:null==l?void 0:l(e),motion:a,onNoticeClose:g,onAllNoticeRemoved:y,stack:u});return d?d(n,{prefixCls:r,key:e}):n}))),o)})),cS=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],uS=function(){return document.body},dS=0;function fS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?uS:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=Od(e,cS),f=og(z.useState(),2),p=f[0],h=f[1],g=z.useRef(),m=z.createElement(lS,{container:p,ref:g,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=og(z.useState([]),2),v=b[0],y=b[1],w=z.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,v=`${t}-notice`,y=new Nm("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new Nm("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${v}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Vy(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:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},kS=nw("Message",(e=>{const t=Jy(e,{height:150});return[SS(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+vS+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));const CS={info:z.createElement(Bx,null),success:z.createElement($x,null),error:z.createElement(Px,null),warning:z.createElement(Ax,null),loading:z.createElement(gS,null)},ES=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return z.createElement("div",{className:Mm(`${t}-custom-content`,`${t}-${n}`)},r||CS[n],z.createElement("span",null,o))},OS=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=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{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var $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{let{children:t,prefixCls:n}=e;const[,r]=kS(n);return z.createElement(aS,{classNames:{list:r,notice:r}},t)},PS=(e,t)=>{let{prefixCls:n,key:r}=t;return z.createElement(NS,{prefixCls:n,key:r},e)},_S=z.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=jS,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f}=z.useContext(xy),p=r||u("message"),h=z.createElement("span",{className:`${p}-close-x`},z.createElement(Tx,{className:`${p}-close-icon`})),[g,m]=fS({prefixCls:p,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>Mm({[`${p}-rtl`]:s}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(p,l),closable:!1,closeIcon:h,duration:i,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:PS});return z.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:p,message:f}))),m}));let IS=0;function TS(e){const t=z.useRef(null);uv();return[z.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:r,prefixCls:o,message:a}=t.current,i=`${o}-notice`,{content:s,icon:l,type:c,key:u,className:d,style:f,onClose:p}=n,h=$S(n,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(IS+=1,g=`antd-message-${IS}`),DS((t=>(r(Object.assign(Object.assign({},h),{key:g,content:z.createElement(ES,{prefixCls:o,type:c,icon:l},s),placement:"top",className:Mm(c&&`${i}-${c}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),f),onClose:()=>{null==p||p(),t()}})),()=>{e(g)})))},r={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=>{r[e]=(t,r,o)=>{let a,i,s;a=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(i=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:i},a),{type:e});return n(l)}})),r}),[]),z.createElement(_S,Object.assign({key:"message-holder"},e,{ref:t}))]}function FS(e){return TS(e)}function RS(){RS=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(_){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),s=new N(r||[]);return o(i,"_invoke",{value:O(e,n,s)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function b(){}function v(){}function y(){}var w={};c(w,i,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(P([])));S&&S!==n&&r.call(S,i)&&(w=S);var k=y.prototype=b.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,i,s){var l=d(e[o],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==kd(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=f;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=D(s,r);if(l){if(l===m)continue;return l}}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=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?g:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function D(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,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(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 j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){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),j(n),m}},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;j(n)}return o}}throw new 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),m}},t}function AS(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function MS(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){AS(a,r,o,i,s,"next",e)}function s(e){AS(a,r,o,i,s,"throw",e)}i(void 0)}))}}var LS,BS=Eh({},wd),zS=BS.version,HS=BS.render,WS=BS.unmountComponentAtNode;try{Number((zS||"").split(".")[0])>=18&&(LS=BS.createRoot)}catch(A4){}function US(e){var t=BS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===kd(t)&&(t.usingClientEntryPoint=e)}var VS="__rc_react_root__";function GS(e,t){LS?function(e,t){US(!0);var n=t[VS]||LS(t);US(!1),n.render(e),t[VS]=n}(e,t):function(e,t){HS(e,t)}(e,t)}function qS(e){return XS.apply(this,arguments)}function XS(){return(XS=MS(RS().mark((function e(t){return RS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[VS])||void 0===e||e.unmount(),delete t[VS]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function KS(e){WS(e)}function YS(e){return QS.apply(this,arguments)}function QS(){return(QS=MS(RS().mark((function e(t){return RS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===LS){e.next=2;break}return e.abrupt("return",qS(t));case 2:KS(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const JS=()=>({height:0,opacity:0}),ZS=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ek=e=>({height:e?e.offsetHeight:0}),tk=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,nk=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:JS,onEnterStart:JS,onAppearActive:ZS,onEnterActive:ZS,onLeaveStart:ek,onLeaveActive:JS,onAppearEnd:tk,onEnterEnd:tk,onLeaveEnd:tk,motionDeadline:500}},rk=(e,t,n)=>void 0!==n?n:`${e}-${t}`,ok=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(),a=o.width,i=o.height;if(a||i)return!0}}return!1},ak=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 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},ik=nw("Wave",(e=>[ak(e)]));function sk(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const lk="ant-wave-target";function ck(e){return Number.isNaN(e)?0:e}const uk=e=>{const{className:t,target:n,component:r}=e,o=z.useRef(null),[a,i]=z.useState(null),[s,l]=z.useState([]),[c,u]=z.useState(0),[d,f]=z.useState(0),[p,h]=z.useState(0),[g,m]=z.useState(0),[b,v]=z.useState(!1),y={left:c,top:d,width:p,height:g,borderRadius:s.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);i(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return sk(t)?t:sk(n)?n:sk(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:ck(-parseFloat(r))),f(t?n.offsetTop:ck(-parseFloat(o))),h(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;l([a,s,d,c].map((e=>ck(parseFloat(e)))))}if(a&&(y["--wave-color"]=a),z.useEffect((()=>{if(n){const e=Zb((()=>{w(),v(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{Zb.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(lk));return z.createElement(Hw,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;YS(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return z.createElement("div",{ref:o,className:Mm(t,{"wave-quick":x},n),style:y})}))},dk=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),GS(z.createElement(uk,Object.assign({},t,{target:e})),o)};const fk=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=z.useContext(xy),a=z.useRef(null),i=o("wave"),[,s]=ik(i),l=function(e,t,n){const{wave:r}=z.useContext(xy),[,o,a]=My(),i=Ly((i=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${lk}`)||s,{showEffect:c}=r||{};(c||dk)(l,{className:t,token:o,component:n,event:i,hashId:a})})),s=z.useRef();return e=>{Zb.cancel(s.current),s.current=Zb((()=>{i(e)}))}}(a,Mm(i,s),r);if(H.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!ok(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!H.isValidElement(t))return null!=t?t:null;return Xx(t,{ref:ub(t)?lb(t.ref,a):a})},pk=e=>{const t=H.useContext(jy);return H.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},hk=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},gk=e=>{const{componentCls:t}=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"}}}},mk=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}}}},bk=nw("Space",(e=>{const t=Jy(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[gk(t),mk(t),hk(t)]}),(()=>({})),{resetStyle:!1});var vk=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=z.useContext(yk),r=z.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:a}=n,i="vertical"===r?"-vertical-":"-";return Mm(`${e}-compact${i}item`,{[`${e}-compact${i}first-item`]:o,[`${e}-compact${i}last-item`]:a,[`${e}-compact${i}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},xk=e=>{let{children:t}=e;return z.createElement(yk.Provider,{value:null},t)},Sk=e=>{var{children:t}=e,n=vk(e,["children"]);return z.createElement(yk.Provider,{value:n},t)},kk=e=>{const{getPrefixCls:t,direction:n}=z.useContext(xy),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=vk(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=pk((e=>null!=r?r:e)),f=t("space-compact",i),[p,h]=bk(f),g=Mm(f,h,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:a,[`${f}-vertical`]:"vertical"===o},s,l),m=z.useContext(yk),b=ob(c),v=z.useMemo((()=>b.map(((e,t)=>{const n=e&&e.key||`${f}-item-${t}`;return z.createElement(Sk,{key:n,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!m||(null==m?void 0:m.isFirstItem)),isLastItem:t===b.length-1&&(!m||(null==m?void 0:m.isLastItem))},e)}))),[r,b,m]);return 0===b.length?null:p(z.createElement("div",Object.assign({className:g},u),v))};const Ck=z.createContext(void 0),Ek=e=>{const{getPrefixCls:t,direction:n}=z.useContext(xy),{prefixCls:r,size:o,className:a}=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 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})),H.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&jk(e.type)&&Dk(e.props.children)?Xx(e,{children:e.props.children.split("").join(n)}):jk(e)?Dk(e)?H.createElement("span",null,e.split("").join(n)):H.createElement("span",null,e):qx(e)?H.createElement("span",null,e):e}(e,t)))}const _k=z.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=Mm(`${a}-icon`,n);return H.createElement("span",{ref:t,className:i,style:r},o)})),Ik=z.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=Mm(`${n}-loading-icon`,r);return H.createElement(_k,{prefixCls:n,className:i,style:o,ref:t},H.createElement(gS,{className:a}))})),Tk=()=>({width:0,opacity:0,transform:"scale(0)"}),Fk=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Rk=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?H.createElement(Ik,{prefixCls:t,className:o,style:a}):H.createElement(Hw,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Tk,onAppearActive:Fk,onEnterStart:Tk,onEnterActive:Fk,onLeaveStart:Fk,onLeaveActive:Tk},((e,n)=>{let{className:r,style:i}=e;return H.createElement(Ik,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),i),ref:n,iconClassName:r})}))},Ak=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Mk=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ak(`${t}-primary`,o),Ak(`${t}-danger`,a)]}},Lk=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Ky(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,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:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Bk=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),zk=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Hk=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Wk=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Uk=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},Bk(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),Vk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Wk(e))}),Gk=e=>Object.assign({},Vk(e)),qk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Xk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gk(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Bk(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Uk(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Bk(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Uk(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Vk(e))}),Kk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gk(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),Bk(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Uk(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Bk(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Uk(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Vk(e))}),Yk=e=>Object.assign(Object.assign({},Xk(e)),{borderStyle:"dashed"}),Qk=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Bk(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),qk(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Bk(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),qk(e))}),Jk=e=>Object.assign(Object.assign(Object.assign({},Bk(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),qk(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},qk(e)),Bk(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Zk=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Xk(e),[`${t}-primary`]:Kk(e),[`${t}-dashed`]:Yk(e),[`${t}-link`]:Qk(e),[`${t}-text`]:Jk(e),[`${t}-ghost`]:Uk(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},eC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,lineWidth:i,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${Math.max(0,(r-o*a)/2-i)}px ${l}px`,borderRadius:s,[`&${`${n}-icon-only`}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${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}`]:zk(e)},{[`${n}${n}-round${t}`]:Hk(e)}]},tC=e=>eC(Jy(e,{fontSize:e.contentFontSize})),nC=e=>{const t=Jy(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return eC(t,`${e.componentCls}-sm`)},rC=e=>{const t=Jy(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return eC(t,`${e.componentCls}-lg`)},oC=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},aC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Jy(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},iC=e=>({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",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),sC=nw("Button",(e=>{const t=aC(e);return[Lk(t),nC(t),tC(t),rC(t),oC(t),Zk(t),Mk(t)]}),iC);function lC(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function cC(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 uC(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({},lC(e,r,t)),cC(n,r,t))}}function dC(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function fC(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},dC(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 pC=rw(["Button","compact"],(e=>{const t=aC(e);return[uC(t),fC(t)]}),iC);const hC=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:p,children:h,icon:g,ghost:m=!1,block:b=!1,htmlType:v="button",classNames:y,style:w={}}=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);ofunction(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}}(o)),[o]),[I,T]=z.useState(_.loading),[F,R]=z.useState(!1),A=lb(t,z.createRef()),M=1===z.Children.count(h)&&!g&&!Nk(i);z.useEffect((()=>{let e=null;return _.delay>0?e=setTimeout((()=>{e=null,T(!0)}),_.delay):T(_.loading),function(){e&&(clearTimeout(e),e=null)}}),[_]),z.useEffect((()=>{if(!A||!A.current||!1===k)return;const e=A.current.textContent;M&&Dk(e)?F||R(!0):F&&R(!1)}),[A]);const L=t=>{const{onClick:n}=e;I||N?t.preventDefault():null==n||n(t)},B=!1!==k,{compactSize:W,compactItemClassnames:U}=wk(O,C),V=pk((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:W)&&void 0!==t?t:P)&&void 0!==n?n:e})),G=V&&{large:"lg",small:"sm",middle:void 0}[V]||"",q=I?"loading":g,X=qb(x,["navigate"]),K=Mm(O,$,{[`${O}-${l}`]:"default"!==l&&l,[`${O}-${i}`]:i,[`${O}-${G}`]:G,[`${O}-icon-only`]:!h&&0!==h&&!!q,[`${O}-background-ghost`]:m&&!Nk(i),[`${O}-loading`]:I,[`${O}-two-chinese-chars`]:F&&B&&!I,[`${O}-block`]:b,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:"rtl"===C},U,f,p,null==E?void 0:E.className),Y=Object.assign(Object.assign({},null==E?void 0:E.style),w),Q=Mm(null==y?void 0:y.icon,null===(n=null==E?void 0:E.classNames)||void 0===n?void 0:n.icon),J=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==E?void 0:E.styles)||void 0===r?void 0:r.icon)||{}),Z=g&&!I?H.createElement(_k,{prefixCls:O,className:Q,style:J},g):H.createElement(Rk,{existIcon:!!g,prefixCls:O,loading:!!I}),ee=h||0===h?Pk(h,M&&B):null;if(void 0!==X.href)return D(H.createElement("a",Object.assign({},X,{className:Mm(K,{[`${O}-disabled`]:N}),style:Y,onClick:L,ref:A,tabIndex:N?-1:0}),Z,ee));let te=H.createElement("button",Object.assign({},x,{type:v,className:K,style:Y,onClick:L,disabled:N,ref:A}),Z,ee,U&&H.createElement(pC,{key:"compact",prefixCls:O}));return Nk(i)||(te=H.createElement(fk,{component:"Button",disabled:!!I},te)),D(te)},gC=z.forwardRef(hC);gC.Group=Ek,gC.__ANT_BUTTON=!0;const mC=gC;function bC(e){return!(!e||!e.then)}const vC=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=z.useRef(!1),f=z.useRef(null),[p,h]=By(!1),g=function(){null==a||a.apply(void 0,arguments)};z.useEffect((()=>{let e=null;return i&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return z.createElement(mC,Object.assign({},$k(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!bC(t))return d.current=!1,void g(e)}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!t)return void g();(e=>{bC(e)&&(h(!0),e.then((function(){h(!1,!0),g.apply(void 0,arguments),d.current=!1}),(e=>{if(h(!1,!0),d.current=!1,!(null==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:p,prefixCls:r},o,{ref:f}),n)},yC=H.createContext({}),{Provider:wC}=yC,xC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:s,onConfirm:l}=z.useContext(yC);return o?H.createElement(vC,{isSilent:r,actionFn:s,close:function(){null==i||i.apply(void 0,arguments),null==l||l(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},SC=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:s,onOk:l}=z.useContext(yC);return H.createElement(vC,{isSilent:n,type:i||"primary",actionFn:l,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},a)};var kC,CC=z.createContext(null),EC=[];function OC(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===kC){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),kC=o-a}return kC}():n}var DC="rc-util-locker-".concat(Date.now()),$C=0;function jC(e){var t=!!e,n=og(z.useState((function(){return $C+=1,"".concat(DC,"_").concat($C)})),1)[0];yg((function(){if(t){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:OC(n),height:OC(r)}}(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;tg("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else eg(n);return function(){eg(n)}}),[t,n])}var NC=!1;var PC=function(e){return!1!==e&&(Wh()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},_C=z.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=void 0===a||a,s=e.children,l=og(z.useState(n),2),c=l[0],u=l[1],d=c||n;z.useEffect((function(){(i||n)&&u(n)}),[n,i]);var f=og(z.useState((function(){return PC(o)})),2),p=f[0],h=f[1];z.useEffect((function(){var e=PC(o);h(null!=e?e:null)}));var g=function(e,t){var n=og(z.useState((function(){return Wh()?document.createElement("div"):null})),1)[0],r=z.useRef(!1),o=z.useContext(CC),a=og(z.useState(EC),2),i=a[0],s=a[1],l=o||(r.current?void 0:function(e){s((function(t){return[e].concat(kh(t))}))});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return yg((function(){return e?o?o(c):c():u(),u}),[e]),yg((function(){i.length&&(i.forEach((function(e){return e()})),s(EC))}),[i]),[n,l]}(d&&!p),m=og(g,2),b=m[0],v=m[1],y=null!=p?p:b;jC(r&&n&&Wh()&&(y===b||y===document.body));var w=null;s&&ub(s)&&t&&(w=s.ref);var x=cb(w,t);if(!d||!Wh()||void 0===p)return null;var S,k=!1===y||("boolean"==typeof S&&(NC=S),NC),C=s;return t&&(C=z.cloneElement(s,{ref:x})),z.createElement(CC.Provider,{value:v},k?C:vd.createPortal(C,y))})),IC=z.createContext({});var TC=0,FC=Eh({},W).useId;const RC=FC?function(e){var t=FC();return e||t}:function(e){var t=og(z.useState("ssr-id"),2),n=t[0],r=t[1];return z.useEffect((function(){var e=TC;TC+=1,r("rc_unique_".concat(e))}),[]),e||n};function AC(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function MC(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 LC=z.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var BC={width:0,height:0,overflow:"hidden",outline:"none"},zC=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,h=e.modalRender,g=e.onMouseDown,m=e.onMouseUp,b=e.holderRef,v=e.visible,y=e.forceRender,w=e.width,x=e.height,S=e.classNames,k=e.styles,C=cb(b,H.useContext(IC).panel),E=z.useRef(),O=z.useRef();H.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?E.current.focus():e||t!==E.current||O.current.focus()}}}));var D,$,j,N={};void 0!==w&&(N.width=w),void 0!==x&&(N.height=x),s&&(D=H.createElement("div",{className:Mm("".concat(n,"-footer"),null==S?void 0:S.footer),style:Eh({},null==k?void 0:k.footer)},s)),a&&($=H.createElement("div",{className:Mm("".concat(n,"-header"),null==S?void 0:S.header),style:Eh({},null==k?void 0:k.header)},H.createElement("div",{className:"".concat(n,"-title"),id:i},a))),l&&(j=H.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},c||H.createElement("span",{className:"".concat(n,"-close-x")})));var P=H.createElement("div",{className:Mm("".concat(n,"-content"),null==S?void 0:S.content),style:null==k?void 0:k.content},j,$,H.createElement("div",Bp({className:Mm("".concat(n,"-body"),null==S?void 0:S.body),style:Eh(Eh({},f),null==k?void 0:k.body)},p),d),D);return H.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:C,style:Eh(Eh({},o),N),className:Mm(n,r),onMouseDown:g,onMouseUp:m},H.createElement("div",{tabIndex:0,ref:E,style:BC,"aria-hidden":"true"}),H.createElement(LC,{shouldUpdate:v||y},h?h(P):P),H.createElement("div",{tabIndex:0,ref:O,style:BC,"aria-hidden":"true"}))})),HC=z.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=z.useRef(),h=og(z.useState(),2),g=h[0],m=h[1],b={};function v(){var e,t,n,r,o,a=(e=p.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=MC(o),n.top+=MC(o,!0),n);m(f?"".concat(f.x-a.left,"px ").concat(f.y-a.top,"px"):"")}return g&&(b.transformOrigin=g),z.createElement(Hw,{visible:i,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:s,motionName:c,removeOnLeave:l,ref:p},(function(i,s){var l=i.className,c=i.style;return z.createElement(zC,Bp({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:s,style:Eh(Eh(Eh({},c),o),b),className:Mm(a,l)}))}))}));function WC(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return z.createElement(Hw,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var a=e.className,s=e.style;return z.createElement("div",Bp({ref:r,style:Eh(Eh({},s),n),className:Mm("".concat(t,"-mask"),a,i)},o))}))}function UC(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,a=void 0!==o&&o,i=e.keyboard,s=void 0===i||i,l=e.focusTriggerAfterClose,c=void 0===l||l,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,h=e.afterOpenChange,g=e.afterClose,m=e.transitionName,b=e.animation,v=e.closable,y=void 0===v||v,w=e.mask,x=void 0===w||w,S=e.maskTransitionName,k=e.maskAnimation,C=e.maskClosable,E=void 0===C||C,O=e.maskStyle,D=e.maskProps,$=e.rootClassName,j=e.classNames,N=e.styles,P=z.useRef(),_=z.useRef(),I=z.useRef(),T=og(z.useState(a),2),F=T[0],R=T[1],A=RC();function M(e){null==p||p(e)}var L=z.useRef(!1),B=z.useRef(),H=null;return E&&(H=function(e){L.current?L.current=!1:_.current===e.target&&M(e)}),z.useEffect((function(){a&&(R(!0),Uh(_.current,document.activeElement)||(P.current=document.activeElement))}),[a]),z.useEffect((function(){return function(){clearTimeout(B.current)}}),[]),z.createElement("div",Bp({className:Mm("".concat(n,"-root"),$)},Vx(e,{data:!0})),z.createElement(WC,{prefixCls:n,visible:x&&a,motionName:AC(n,S,k),style:Eh(Eh({zIndex:r},O),null==N?void 0:N.mask),maskProps:D,className:null==j?void 0:j.mask}),z.createElement("div",Bp({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===nS.ESC)return e.stopPropagation(),void M(e);a&&e.keyCode===nS.TAB&&I.current.changeActive(!e.shiftKey)},className:Mm("".concat(n,"-wrap"),d,null==j?void 0:j.wrapper),ref:_,onClick:H,style:Eh(Eh(Eh({zIndex:r},u),null==N?void 0:N.wrapper),{},{display:F?null:"none"})},f),z.createElement(HC,Bp({},e,{onMouseDown:function(){clearTimeout(B.current),L.current=!0},onMouseUp:function(){B.current=setTimeout((function(){L.current=!1}))},ref:I,closable:y,ariaId:A,prefixCls:n,visible:a&&F,onClose:M,onVisibleChanged:function(e){if(e)Uh(_.current,document.activeElement)||null===(t=I.current)||void 0===t||t.focus();else{if(R(!1),x&&P.current&&c){try{P.current.focus({preventScroll:!0})}catch(A4){}P.current=null}F&&(null==g||g())}var t;null==h||h(e)},motionName:AC(n,m,b)}))))}HC.displayName="Content";var VC=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,i=e.afterClose,s=e.panelRef,l=og(z.useState(t),2),c=l[0],u=l[1],d=z.useMemo((function(){return{panel:s}}),[s]);return z.useEffect((function(){t&&u(!0)}),[t]),r||!a||c?z.createElement(IC.Provider,{value:d},z.createElement(_C,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},z.createElement(UC,Bp({},e,{destroyOnClose:a,afterClose:function(){null==i||i(),u(!1)}})))):null};function GC(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.createElement(Tx,null);const o=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4]);if(!o)return[!1,null];const a="boolean"==typeof t||null==t?r:t;return[!0,n?n(a):a]}VC.displayName="Dialog";var qC="RC_FORM_INTERNAL_HOOKS",XC=function(){_h(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},KC=z.createContext({getFieldValue:XC,getFieldsValue:XC,getFieldError:XC,getFieldWarning:XC,getFieldsError:XC,isFieldsTouched:XC,isFieldTouched:XC,isFieldValidating:XC,isFieldsValidating:XC,resetFields:XC,setFields:XC,setFieldValue:XC,setFieldsValue:XC,validateFields:XC,submit:XC,getInternalHooks:function(){return XC(),{dispatch:XC,initEntityValue:XC,registerField:XC,useSubscribe:XC,setInitialValues:XC,destroyForm:XC,setCallbacks:XC,registerWatch:XC,getFields:XC,setValidateMessages:XC,setPreserve:XC,getInitialValue:XC}}}),YC=z.createContext(null);function QC(e){return null==e?[]:Array.isArray(e)?e:[e]}function JC(){return JC=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=a)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(t){return"[Circular]"}break;default:return e}})):e}function sE(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 lE(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)n(i);else{var s=r;r+=1,s()\[\]\\.,;:\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,}))$/,mE=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,bE={integer:function(e){return bE.number(e)&&parseInt(e,10)===e},float:function(e){return bE.number(e)&&!bE.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(A4){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"==typeof e&&!bE.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(gE)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(pE)return pE;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+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=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(e){return e&&e.exact?a:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};l.v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")};var c=l.v4().source,u=l.v6().source;return pE=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(mE)}},vE="enum",yE={required:hE,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(iE(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)hE(e,t,n,r,o);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?bE[a](t)||r.push(iE(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(iE(o.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,r,o){var a="number"==typeof e.len,i="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==e.len&&r.push(iE(o.messages[c].len,e.fullField,e.len)):i&&!s&&le.max?r.push(iE(o.messages[c].max,e.fullField,e.max)):i&&s&&(le.max)&&r.push(iE(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[vE]=Array.isArray(e[vE])?e[vE]:[],-1===e[vE].indexOf(t)&&r.push(iE(o.messages[vE],e.fullField,e[vE].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(iE(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(iE(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},wE=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t,a)&&!e.required)return n();yE.required(e,t,r,i,o,a),sE(t,a)||yE.type(e,t,r,i,o)}n(i)},xE={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t,"string")&&!e.required)return n();yE.required(e,t,r,a,o,"string"),sE(t,"string")||(yE.type(e,t,r,a,o),yE.range(e,t,r,a,o),yE.pattern(e,t,r,a,o),!0===e.whitespace&&yE.whitespace(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t)&&!e.required)return n();yE.required(e,t,r,a,o),void 0!==t&&yE.type(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),sE(t)&&!e.required)return n();yE.required(e,t,r,a,o),void 0!==t&&(yE.type(e,t,r,a,o),yE.range(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t)&&!e.required)return n();yE.required(e,t,r,a,o),void 0!==t&&yE.type(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t)&&!e.required)return n();yE.required(e,t,r,a,o),sE(t)||yE.type(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t)&&!e.required)return n();yE.required(e,t,r,a,o),void 0!==t&&(yE.type(e,t,r,a,o),yE.range(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t)&&!e.required)return n();yE.required(e,t,r,a,o),void 0!==t&&(yE.type(e,t,r,a,o),yE.range(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();yE.required(e,t,r,a,o,"array"),null!=t&&(yE.type(e,t,r,a,o),yE.range(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t)&&!e.required)return n();yE.required(e,t,r,a,o),void 0!==t&&yE.type(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t)&&!e.required)return n();yE.required(e,t,r,a,o),void 0!==t&&yE.enum(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t,"string")&&!e.required)return n();yE.required(e,t,r,a,o),sE(t,"string")||yE.pattern(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t,"date")&&!e.required)return n();var i;if(yE.required(e,t,r,a,o),!sE(t,"date"))i=t instanceof Date?t:new Date(t),yE.type(e,i,r,a,o),i&&yE.range(e,i.getTime(),r,a,o)}n(a)},url:wE,hex:wE,email:wE,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;yE.required(e,t,r,a,o,i),n(a)},any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(sE(t)&&!e.required)return n();yE.required(e,t,r,a,o)}n(a)}};function SE(){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 kE=SE(),CE=function(){function e(e){this.rules=null,this._messages=kE,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof 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]}))},t.messages=function(e){return e&&(this._messages=fE(SE(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var a=t,i=n,s=r;if("function"==typeof i&&(s=i,i={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,a),Promise.resolve(a);if(i.messages){var l=this.messages();l===kE&&(l=SE()),fE(l,i.messages),i.messages=l}else i.messages=this.messages();var c={};(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=a[e];n.forEach((function(n){var i=n;"function"==typeof i.transform&&(a===t&&(a=JC({},a)),r=a[e]=i.transform(r)),(i="function"==typeof i?{validator:i}:JC({},i)).validator=o.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=o.getType(i),c[e]=c[e]||[],c[e].push({rule:i,value:r,source:a,field:e}))}))}));var u={};return uE(c,i,(function(t,n){var r,o=t.rule,s=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function l(e,t){return JC({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!i.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var d=c.map(dE(o,a));if(i.first&&d.length)return u[o.field]=1,n(d);if(s){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(dE(o,a)):i.error&&(d=[i.error(o,iE(i.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=JC({},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(l.bind(null,e))}));var h=new e(p);h.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),h.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(s=s&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,i);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,i)}catch(d){null==console.error||console.error(d),i.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,r=[],o={},i=0;i2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return ME(t,e,n)}))}function ME(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 LE(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===kd(t.target)&&e in t.target?t.target[e]:t}function BE(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(kh(e.slice(0,n)),[o],kh(e.slice(n,t)),kh(e.slice(t+1,r))):a<0?[].concat(kh(e.slice(0,t)),kh(e.slice(t+1,n+1)),[o],kh(e.slice(n+1,r))):e}var zE=["name"],HE=[];function WE(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var UE=function(e){Ab(n,z.Component);var t=zb(n);function n(e){var r;(nf(this,n),Ed(Bb(r=t.call(this,e)),"state",{resetCount:0}),Ed(Bb(r),"cancelRegisterFunc",null),Ed(Bb(r),"mounted",!1),Ed(Bb(r),"touched",!1),Ed(Bb(r),"dirty",!1),Ed(Bb(r),"validatePromise",void 0),Ed(Bb(r),"prevValidating",void 0),Ed(Bb(r),"errors",HE),Ed(Bb(r),"warnings",HE),Ed(Bb(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,FE(o)),r.cancelRegisterFunc=null})),Ed(Bb(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(kh(void 0===n?[]:n),kh(t)):[]})),Ed(Bb(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),Ed(Bb(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Ed(Bb(r),"metaCache",null),Ed(Bb(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Eh(Eh({},r.getMeta()),{},{destroy:e});Ih(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Ed(Bb(r),"onStoreChange",(function(e,t,n){var o=r.props,a=o.shouldUpdate,i=o.dependencies,s=void 0===i?[]:i,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(c),p=t&&AE(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=HE,r.warnings=HE,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=HE,r.warnings=HE,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(a)return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||HE),"warnings"in h&&(r.warnings=h.warnings||HE),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&AE(t,u,!0))return void r.reRender();if(a&&!u.length&&WE(a,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(FE).some((function(e){return AE(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!s.length||u.length||a)&&WE(a,e,c,d,f,n))return void r.reRender()}!0===a&&r.reRender()})),Ed(Bb(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},a=o.triggerName,i=o.validateOnly,s=void 0!==i&&i,l=Promise.resolve().then(MS(RS().mark((function o(){var i,s,c,u,d,f,p;return RS().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(i=r.props,s=i.validateFirst,c=void 0!==s&&s,u=i.messageVariables,d=i.validateDebounce,f=r.getRules(),a&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||QC(t).includes(a)}))),!d||!a){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=_E(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HE;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,a=void 0===r?HE:r;t?o.push.apply(o,kh(a)):n.push.apply(n,kh(a))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=HE,r.warnings=HE,r.triggerMetaEvent(),r.reRender()),l})),Ed(Bb(r),"isFieldValidating",(function(){return!!r.validatePromise})),Ed(Bb(r),"isFieldTouched",(function(){return r.touched})),Ed(Bb(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(qC).getInitialValue)(r.getNamePath())})),Ed(Bb(r),"getErrors",(function(){return r.errors})),Ed(Bb(r),"getWarnings",(function(){return r.warnings})),Ed(Bb(r),"isListField",(function(){return r.props.isListField})),Ed(Bb(r),"isList",(function(){return r.props.isList})),Ed(Bb(r),"isPreserve",(function(){return r.props.preserve})),Ed(Bb(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Ed(Bb(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Eh(Eh({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=ob(e);return 1===n.length&&z.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Ed(Bb(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return nv(e||t(!0),n)})),Ed(Bb(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,a=t.getValueFromEvent,i=t.normalize,s=t.valuePropName,l=t.getValueProps,c=t.fieldContext,u=void 0!==o?o:c.validateTrigger,d=r.getNamePath(),f=c.getInternalHooks,p=c.getFieldsValue,h=f(qC).dispatch,g=r.getValue(),m=l||function(e){return Ed({},s,e)},b=e[n],v=Eh(Eh({},e),m(g));return v[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o=0&&t<=n.length?(c.keys=[].concat(kh(c.keys.slice(0,t)),[c.id],kh(c.keys.slice(t))),a([].concat(kh(n.slice(0,t)),[e],kh(n.slice(t))))):(c.keys=[].concat(kh(c.keys),[c.id]),a([].concat(kh(n),[e]))),c.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),a(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||(c.keys=BE(c.keys,e,t),a(BE(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),d,t)}))))}Ed(UE,"contextType",KC),Ed(UE,"defaultProps",{trigger:"onChange",valuePropName:"value"});var qE="__@field_split__";function XE(e){return e.map((function(e){return"".concat(kd(e),":").concat(e)})).join(qE)}var KE=function(){function e(){nf(this,e),Ed(this,"kvs",new Map)}return of(e,[{key:"set",value:function(e,t){this.kvs.set(XE(e),t)}},{key:"get",value:function(e){return this.kvs.get(XE(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(XE(e))}},{key:"map",value:function(e){return kh(this.kvs.entries()).map((function(t){var n=og(t,2),r=n[0],o=n[1],a=r.split(qE);return e({key:a.map((function(e){var t=og(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}(),YE=["name"],QE=of((function e(t){var n=this;nf(this,e),Ed(this,"formHooked",!1),Ed(this,"forceRootUpdate",void 0),Ed(this,"subscribable",!0),Ed(this,"store",{}),Ed(this,"fieldEntities",[]),Ed(this,"initialValues",{}),Ed(this,"callbacks",{}),Ed(this,"validateMessages",null),Ed(this,"preserve",null),Ed(this,"lastValidatePromise",null),Ed(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}})),Ed(this,"getInternalHooks",(function(e){return e===qC?(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}):(_h(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Ed(this,"useSubscribe",(function(e){n.subscribable=e})),Ed(this,"prevWithoutPreserves",null),Ed(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=sv(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=ov(o,n,nv(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Ed(this,"destroyForm",(function(){var e=new KE;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Ed(this,"getInitialValue",(function(e){var t=nv(n.initialValues,e);return e.length?sv(t):t})),Ed(this,"setCallbacks",(function(e){n.callbacks=e})),Ed(this,"setValidateMessages",(function(e){n.validateMessages=e})),Ed(this,"setPreserve",(function(e){n.preserve=e})),Ed(this,"watchList",[]),Ed(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Ed(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)}))}})),Ed(this,"timeoutId",null),Ed(this,"warningUnhooked",(function(){})),Ed(this,"updateStore",(function(e){n.store=e})),Ed(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Ed(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new KE;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Ed(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=FE(e);return t.get(n)||{INVALIDATE_NAME_PATH:FE(e)}}))})),Ed(this,"getFieldsValue",(function(e,t){var r,o,a;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===kd(e)&&(a=e.strict,o=e.filter),!0===r&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return i.forEach((function(e){var t,n,i,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){if(null!==(i=(l=e).isList)&&void 0!==i&&i.call(l))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)&&s.push(c)}else s.push(c)})),RE(n.store,s.map(FE))})),Ed(this,"getFieldValue",(function(e){n.warningUnhooked();var t=FE(e);return nv(n.store,t)})),Ed(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:FE(e[n]),errors:[],warnings:[]}}))})),Ed(this,"getFieldError",(function(e){n.warningUnhooked();var t=FE(e);return n.getFieldsError([t])[0].errors})),Ed(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=FE(e);return n.getFieldsError([t])[0].warnings})),Ed(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new KE,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,kh(kh(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))_h(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var a=t.get(o);if(a&&a.size>1)_h(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var i=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==i||n.updateStore(ov(n.store,o,kh(a)[0].value))}}}}))})),Ed(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(sv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(FE);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(ov(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Ed(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=Od(e,YE),i=FE(o);r.push(i),"value"in a&&n.updateStore(ov(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})})),n.notifyWatch(r)})),Ed(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Eh(Eh({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Ed(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===nv(n.store,r)&&n.updateStore(ov(n.store,r,t))}})),Ed(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Ed(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 a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||a.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!ME(e.getNamePath(),t)}))){var s=n.store;n.updateStore(ov(s,t,i,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Ed(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,a=e.triggerName;n.validateFields([o],{triggerName:a})}})),Ed(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Eh(Eh({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Ed(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(kh(r))}),r})),Ed(this,"updateValue",(function(e,t){var r=FE(e),o=n.store;n.updateStore(ov(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(o,r),i=n.callbacks.onValuesChange;i&&i(RE(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(kh(a)))})),Ed(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=sv(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Ed(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Ed(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new KE;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=FE(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return 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})),Ed(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new KE;t.forEach((function(e){var t=e.name,n=e.errors;a.set(t,n)})),o.forEach((function(e){e.errors=a.get(e.name)||e.errors}))}var i=o.filter((function(t){var n=t.name;return AE(e,n)}));i.length&&r(i,o)}})),Ed(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 a=!!r,i=a?r.map(FE):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(a||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!a||AE(i,t,d)){var r=e.validateRules(Eh({validateMessages:Eh(Eh({},OE),n.validateMessages)},o));s.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,kh(n)):r.push.apply(r,kh(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,a){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&a(r),o(r))}))}))})):Promise.resolve([])}(s);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 h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var g=i.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(g),h})),Ed(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function JE(e){var t=z.useRef(),n=og(z.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new QE((function(){n({})}));t.current=r.getForm()}return[t.current]}var ZE=z.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eO=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=z.useContext(ZE),i=z.useRef({});return z.createElement(ZE.Provider,{value:Eh(Eh({},a),{},{validateMessages:Eh(Eh({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:i.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(i.current=Eh(Eh({},i.current),{},Ed({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Eh({},i.current);delete t[e],i.current=t,a.unregisterForm(e)}})},o)},tO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],nO=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,a=e.form,i=e.preserve,s=e.children,l=e.component,c=void 0===l?"form":l,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,p=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,b=Od(e,tO),v=z.useContext(ZE),y=og(JE(a),1)[0],w=y.getInternalHooks(qC),x=w.useSubscribe,S=w.setInitialValues,k=w.setCallbacks,C=w.setValidateMessages,E=w.setPreserve,O=w.destroyForm;z.useImperativeHandle(t,(function(){return y})),z.useEffect((function(){return v.registerForm(n,y),function(){v.unregisterForm(n)}}),[v,y,n]),C(Eh(Eh({},v.validateMessages),u)),k({onValuesChange:p,onFieldsChange:function(e){if(v.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o{}}),sO=z.createContext(null),lO=e=>{const t=qb(e,["prefixCls"]);return z.createElement(eO,Object.assign({},t))},cO=z.createContext({prefixCls:""}),uO=z.createContext({}),dO=e=>{let{children:t,status:n,override:r}=e;const o=z.useContext(uO),a=z.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return z.createElement(uO.Provider,{value:a},t)};function fO(){}const pO=z.createContext({add:fO,remove:fO});function hO(e){const t=z.useContext(pO),n=z.useRef();return Ly((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const gO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=z.useContext(yC);return H.createElement(mC,Object.assign({onClick:n},e),t)},mO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=z.useContext(yC);return H.createElement(mC,Object.assign({},$k(n),{loading:e,onClick:o},t),r)};function bO(e,t){return H.createElement("span",{className:`${e}-close-x`},t||H.createElement(Tx,{className:`${e}-close-icon`}))}const vO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=xv("Modal",yv()),d={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:r||(null==u?void 0:u.cancelText),okType:n,onOk:a,onCancel:i},f=H.useMemo((()=>d),kh(Object.values(d)));let p;return"function"==typeof c||void 0===c?(p=H.createElement(H.Fragment,null,H.createElement(gO,null),H.createElement(mO,null)),"function"==typeof c&&(p=c(p,{OkBtn:mO,CancelBtn:gO})),p=H.createElement(wC,{value:f},p)):p=c,H.createElement(Ey,{disabled:!1},p)},yO=e=>({animationDuration:e,animationFillMode:"both"}),wO=e=>({animationDuration:e,animationFillMode:"both"}),xO=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({},yO(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},wO(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"}}},SO=new Nm("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),kO=new Nm("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),CO=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[xO(r,SO,kO,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},EO=new Nm("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),OO=new Nm("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),DO=new Nm("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),$O=new Nm("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jO=new Nm("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NO=new Nm("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),PO={"move-up":{inKeyframes:new Nm("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 Nm("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:EO,outKeyframes:OO},"move-left":{inKeyframes:DO,outKeyframes:$O},"move-right":{inKeyframes:jO,outKeyframes:NO}},_O=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=PO[t];return[xO(r,o,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},IO=new Nm("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),TO=new Nm("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),FO=new Nm("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),RO=new Nm("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),AO=new Nm("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),MO=new Nm("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),LO=new Nm("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),BO=new Nm("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),zO={"slide-up":{inKeyframes:IO,outKeyframes:TO},"slide-down":{inKeyframes:FO,outKeyframes:RO},"slide-left":{inKeyframes:AO,outKeyframes:MO},"slide-right":{inKeyframes:LO,outKeyframes:BO}},HO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=zO[t];return[xO(r,o,a,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}}]},WO=new Nm("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),UO=new Nm("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),VO=new Nm("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),GO=new Nm("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),qO=new Nm("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),XO=new Nm("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),KO=new Nm("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),YO=new Nm("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),QO=new Nm("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),JO=new Nm("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ZO=new Nm("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),eD=new Nm("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),tD={zoom:{inKeyframes:WO,outKeyframes:UO},"zoom-big":{inKeyframes:VO,outKeyframes:GO},"zoom-big-fast":{inKeyframes:VO,outKeyframes:GO},"zoom-left":{inKeyframes:KO,outKeyframes:YO},"zoom-right":{inKeyframes:QO,outKeyframes:JO},"zoom-up":{inKeyframes:qO,outKeyframes:XO},"zoom-down":{inKeyframes:ZO,outKeyframes:eD}},nD=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=tD[t];return[xO(r,o,a,"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}}]},rD=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`}}});function oD(e){return{position:e,inset:0}}const aD=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({},oD("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},oD("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:CO(e)}]},iD=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})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Vy(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,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.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,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:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Ky(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,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"}}}]},sD=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body > ${e.iconCls}`]:{marginInlineEnd:e.margin},[`${r}-btns`]:{marginTop:e.marginLG}}}},lD=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},cD=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Jy(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:r*n+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight})},uD=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}),dD=nw("Modal",(e=>{const t=cD(e);return[iD(t),lD(t),aD(t),e.wireframe&&sD(t),nD(t,"zoom")]}),uD);let fD;const pD=e=>{fD={x:e.pageX,y:e.pageY},setTimeout((()=>{fD=null}),100)};Wh()&&window.document.documentElement&&document.documentElement.addEventListener("click",pD,!0);const hD=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=z.useContext(xy),i=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:p,closeIcon:h,closable:g,focusTriggerAfterClose:m=!0,style:b,visible:v,width:y=520,footer:w,classNames:x,styles:S}=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:i})),[N,P]=GC(g,h,(e=>bO(C,e)),z.createElement(Tx,{className:`${C}-close-icon`}),!0),_=hO(`.${C}-content`),[I,T]=xS("Modal",k.zIndex);return O(z.createElement(xk,null,z.createElement(dO,{status:!0,override:!0},z.createElement(mS.Provider,{value:T},z.createElement(VC,Object.assign({width:y},k,{zIndex:I,getContainer:void 0===p?n:p,prefixCls:C,rootClassName:Mm(D,c),footer:j,visible:null!=u?u:v,mousePosition:null!==(t=k.mousePosition)&&void 0!==t?t:fD,onClose:i,closable:N,closeIcon:P,focusTriggerAfterClose:m,transitionName:rk(E,"zoom",e.transitionName),maskTransitionName:rk(E,"fade",e.maskTransitionName),className:Mm(D,l,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),b),classNames:Object.assign(Object.assign({wrapper:$},null==a?void 0:a.classNames),x),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),S),panelRef:_}))))))},gD=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i}=e,s=`${t}-confirm`,l=Math.round(n*r),c=Math.round(a*i);return{[s]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${s}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${s}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.marginSM,marginTop:(c-o)/2},[`&-has-title > ${e.iconCls}`]:{marginTop:(l-o)/2}},[`${s}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`},[`${s}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${s}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${s}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${s}-error ${s}-body > ${e.iconCls}`]:{color:e.colorError},[`${s}-warning ${s}-body > ${e.iconCls},\n ${s}-confirm ${s}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${s}-info ${s}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${s}-success ${s}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},mD=rw(["Modal","confirm"],(e=>{const t=cD(e);return[gD(t)]}),uD,{order:-1e3});function bD(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:s,footer:l,locale:c}=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);ov),kh(Object.values(v))),w=z.createElement(z.Fragment,null,z.createElement(xC,null),z.createElement(SC,null)),x=void 0!==e.title&&null!==e.title,S=`${a}-body`;return z.createElement("div",{className:`${a}-body-wrapper`},z.createElement("div",{className:Mm(S,{[`${S}-has-title`]:x})},d,z.createElement("div",{className:`${a}-paragraph`},x&&z.createElement("span",{className:`${a}-title`},e.title),z.createElement("div",{className:`${a}-content`},e.content))),void 0===l||"function"==typeof l?z.createElement(wC,{value:y},z.createElement("div",{className:`${a}-btns`},"function"==typeof l?l(w,{OkBtn:SC,CancelBtn:xC}):w)):l,z.createElement(mD,{prefixCls:t}))}const vD=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:f,bodyStyle:p,closable:h=!1,closeIcon:g,modalRender:m,focusTriggerAfterClose:b,onConfirm:v,styles:y}=e,w=`${u}-confirm`,x=e.width||416,S=e.style||{},k=void 0===e.mask||e.mask,C=void 0!==e.maskClosable&&e.maskClosable,E=Mm(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===c},e.className),[,O]=My(),D=z.useMemo((()=>void 0!==n?n:O.zIndexPopupBase+vS),[n,O]);return z.createElement(hD,{prefixCls:u,className:E,wrapClassName:Mm({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==v||v(!1)},open:o,title:"",footer:null,transitionName:rk(f||"","zoom",e.transitionName),maskTransitionName:rk(f||"","fade",e.maskTransitionName),mask:k,maskClosable:C,style:S,styles:Object.assign({body:p,mask:l},y),width:x,zIndex:D,afterClose:r,keyboard:a,centered:i,getContainer:s,closable:h,closeIcon:g,modalRender:m,focusTriggerAfterClose:b},z.createElement(bD,Object.assign({},e,{confirmPrefixCls:w})))},yD=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return z.createElement(ux,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},z.createElement(vD,Object.assign({},e)))},wD=[];var xD=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&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat(kh(r.slice(1))));for(let e=0;e{const e=yv(),{getPrefixCls:n,getIconPrefixCls:l,getTheme:c}=sx(),u=n(void 0,SD),d=a||`${u}-modal`,f=l(),p=c();let h=i;!1===h&&(h=void 0),GS(z.createElement(yD,Object.assign({},s,{getContainer:h,prefixCls:d,rootPrefixCls:u,iconPrefixCls:f,okText:r,locale:e,theme:p,cancelText:o||e.cancelText})),t)}))}function i(){for(var t=arguments.length,n=new Array(t),i=0;i{"function"==typeof e.afterClose&&e.afterClose(),o.apply(this,n)}}),r.visible&&delete r.visible,a(r)}return a(r),wD.push(i),{destroy:i,update:function(e){r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e),a(r)}}}function CD(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ED(e){return Object.assign(Object.assign({},e),{type:"info"})}function OD(e){return Object.assign(Object.assign({},e),{type:"success"})}function DD(e){return Object.assign(Object.assign({},e),{type:"error"})}function $D(e){return Object.assign(Object.assign({},e),{type:"confirm"})}const jD=(e,t)=>{var n,{afterClose:r,config:o}=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);oe&&e.triggerCancel));l.onCancel&&r&&l.onCancel.apply(l,[()=>{}].concat(kh(t.slice(1))))};z.useImperativeHandle(t,(()=>({destroy:h,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(n=l.okCancel)&&void 0!==n?n:"confirm"===l.type,[m]=xv("Modal",gv.Modal);return z.createElement(yD,Object.assign({prefixCls:f,rootPrefixCls:p},l,{close:h,open:i,afterClose:()=>{var e;r(),null===(e=l.afterClose)||void 0===e||e.call(l)},okText:l.okText||(g?null==m?void 0:m.okText:null==m?void 0:m.justOkText),direction:l.direction||u,cancelText:l.cancelText||(null==m?void 0:m.cancelText)},a))},ND=z.forwardRef(jD);let PD=0;const _D=z.memo(z.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=z.useState([]);return[e,z.useCallback((e=>(t((t=>[].concat(kh(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return z.useImperativeHandle(t,(()=>({patchElement:r})),[]),z.createElement(z.Fragment,null,n)})));function ID(){const e=z.useRef(null),[t,n]=z.useState([]);z.useEffect((()=>{if(t.length){kh(t).forEach((e=>{e()})),n([])}}),[t]);const r=z.useCallback((t=>function(r){var o;PD+=1;const a=z.createRef();let i;const s=new Promise((e=>{i=e}));let l,c=!1;const u=z.createElement(ND,{key:`modal-${PD}`,config:t(r),ref:a,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{i(e)}});l=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),l&&wD.push(l);return{destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(kh(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(kh(e),[t])))},then:e=>(c=!0,s.then(e))}}),[]);return[z.useMemo((()=>({info:r(ED),success:r(OD),error:r(DD),warning:r(CD),confirm:r($D)})),[]),z.createElement(_D,{key:"modal-holder",ref:e})]}const TD=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new Nm("antNotificationFadeIn",{"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:new Nm("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Nm("antNotificationBottomFadeIn",{"0%":{bottom:-r,opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${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:new Nm("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},FD=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],RD={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},AD=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)},MD=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"},AD(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},MD(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.margin,background:"transparent",pointerEvents:"auto"}}}},FD.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[RD[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},BD=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:g,lineHeight:m,width:b,notificationIconSize:v,colorText:y}=e,w=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:f,borderRadius:i,boxShadow:r,[w]:{padding:p,width:b,maxWidth:`calc(100vw - ${2*h}px)`,overflow:"hidden",lineHeight:m,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:g,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:g,color:y},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+v,fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.marginSM+v,fontSize:g},[`${w}-icon`]:{position:"absolute",fontSize:v,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:{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.wireframe?"transparent":e.colorFillContent}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},zD=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,s=new Nm("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Vy(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:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,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:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},BD(e))}}]},HD=e=>({zIndexPopup:e.zIndexPopupBase+vS+50,width:384}),WD=e=>{const t=e.paddingMD,n=e.paddingLG;return Jy(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},UD=nw("Notification",(e=>{const t=WD(e);return[zD(t),TD(t),LD(t)]}),HD),VD=rw(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=WD(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},BD(n)),{width:n.width,maxWidth:`calc(100vw - ${2*n.notificationMarginEdge}px)`,margin:0})}}),HD);function GD(e,t){return null===t||!1===t?null:t||z.createElement("span",{className:`${e}-close-x`},z.createElement(Tx,{className:`${e}-close-icon`}))}const qD={success:$x,info:Bx,error:Px,warning:Ax},XD=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:s="alert"}=e;let l=null;return n?l=z.createElement("span",{className:`${t}-icon`},n):r&&(l=z.createElement(qD[r]||null,{className:Mm(`${t}-icon`,`${t}-icon-${r}`)})),z.createElement("div",{className:Mm({[`${t}-with-icon`]:l}),role:s},l,z.createElement("div",{className:`${t}-message`},o),z.createElement("div",{className:`${t}-description`},a),i&&z.createElement("div",{className:`${t}-btn`},i))};var KD=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{children:t,prefixCls:n}=e;const[,r]=UD(n);return z.createElement(aS,{classNames:{list:r,notice:r}},t)},JD=(e,t)=>{let{prefixCls:n,key:r}=t;return z.createElement(QD,{prefixCls:n,key:r},e)},ZD=z.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:s,onAllRemoved:l,stack:c}=e,{getPrefixCls:u,getPopupContainer:d,notification:f}=z.useContext(xy),[,p]=My(),h=o||u("notification"),[g,m]=fS({prefixCls:h,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!=r?r:24),className:()=>Mm({[`${h}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(h),closable:!0,closeIcon:GD(h),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:l,renderNotifications:JD,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:p.margin}});return z.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:h,notification:f}))),m}));function e$(e){const t=z.useRef(null);uv();return[z.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:a,notification:i}=t.current,s=`${a}-notice`,{message:l,description:c,icon:u,type:d,btn:f,className:p,style:h,role:g="alert",closeIcon:m}=n,b=KD(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),v=GD(s,m);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:YD},b),{content:z.createElement(XD,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:f,role:g}),className:Mm(d&&`${s}-${d}`,p,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),h),closeIcon:v,closable:!!v}))},r={open:n,destroy:e=>{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}),[]),z.createElement(ZD,Object.assign({key:"notification-holder"},e,{ref:t}))]}function t$(e){return e$(e)}const n$=H.createContext({}),r$=H.createContext({message:{},notification:{},modal:{}}),o$=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},a$=nw("App",(e=>[o$(e)])),i$=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:s,component:l="div"}=e,{getPrefixCls:c}=z.useContext(xy),u=c("app",t),[d,f]=a$(u),p=Mm(f,u,r,o),h=z.useContext(n$),g=H.useMemo((()=>({message:Object.assign(Object.assign({},h.message),a),notification:Object.assign(Object.assign({},h.notification),i)})),[a,i,h.message,h.notification]),[m,b]=FS(g.message),[v,y]=t$(g.notification),[w,x]=ID(),S=H.useMemo((()=>({message:m,notification:v,modal:w})),[m,v,w]),k=!1===l?H.Fragment:l,C={className:p,style:s};return d(H.createElement(r$.Provider,{value:S},H.createElement(n$.Provider,{value:g},H.createElement(k,Object.assign({},!1===l?void 0:C),x,b,y,n))))};i$.useApp=()=>H.useContext(r$);const s$=i$;function l$(e){return function(t){return z.createElement(ux,{theme:{token:{motion:!1,zIndexPopupBase:0}}},z.createElement(e,Object.assign({},t)))}}const c$=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))};var u$=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,a=e.onMouseDown,i=e.onClick,s=e.children;return t="function"==typeof r?r(o):r,z.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:z.createElement("span",{className:Mm(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))};var d$=z.createContext(null);function f$(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=z.useRef(null),n=z.useRef(null);return z.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 p$=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],h$=void 0;function g$(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,h=e.order,g=e.component,m=void 0===g?"div":g,b=Od(e,p$),v=i&&!p;function y(e){l(c,e)}z.useEffect((function(){return function(){y(null)}}),[]);var w,x=a&&o!==h$?a(o):f;r||(w={opacity:v?0:1,height:v?0:h$,overflowY:v?"hidden":h$,order:i?h:h$,pointerEvents:v?"none":h$,position:v?"absolute":h$});var S={};v&&(S["aria-hidden"]=!0);var k=z.createElement(m,Bp({className:Mm(!r&&n,u),style:Eh(Eh({},w),d)},S,b,{ref:t}),x);return i&&(k=z.createElement(Gb,{onResize:function(e){y(e.offsetWidth)},disabled:s},k)),k}var m$=z.forwardRef(g$);function b$(){var e=z.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Zb(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){vd.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function v$(e,t){var n=og(z.useState(t),2),r=n[0],o=n[1];return[r,Ly((function(t){e((function(){o(t)}))}))]}m$.displayName="Item";var y$=H.createContext(null),w$=["component"],x$=["className"],S$=["className"],k$=function(e,t){var n=z.useContext(y$);if(!n){var r=e.component,o=void 0===r?"div":r,a=Od(e,w$);return z.createElement(o,Bp({},a,{ref:t}))}var i=n.className,s=Od(n,x$),l=e.className,c=Od(e,S$);return z.createElement(y$.Provider,{value:null},z.createElement(m$,Bp({ref:t,className:Mm(i,l)},s,c)))},C$=z.forwardRef(k$);C$.displayName="RawItem";var E$=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],O$="responsive",D$="invalidate";function $$(e){return"+ ".concat(e.length," ...")}function j$(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,o=e.data,a=void 0===o?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=void 0===c?10:c,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.suffix,v=e.component,y=void 0===v?"div":v,w=e.itemComponent,x=e.onVisibleChange,S=Od(e,E$),k="full"===d,C=b$(),E=og(v$(C,null),2),O=E[0],D=E[1],$=O||0,j=og(v$(C,new Map),2),N=j[0],P=j[1],_=og(v$(C,0),2),I=_[0],T=_[1],F=og(v$(C,0),2),R=F[0],A=F[1],M=og(v$(C,0),2),L=M[0],B=M[1],H=og(z.useState(null),2),W=H[0],U=H[1],V=og(z.useState(null),2),G=V[0],q=V[1],X=z.useMemo((function(){return null===G&&k?Number.MAX_SAFE_INTEGER:G||0}),[G,O]),K=og(z.useState(!1),2),Y=K[0],Q=K[1],J="".concat(r,"-item"),Z=Math.max(I,R),ee=h===O$,te=a.length&&ee,ne=h===D$,re=te||"number"==typeof h&&a.length>h,oe=z.useMemo((function(){var e=a;return te?e=null===O&&k?a:a.slice(0,Math.min(a.length,$/u)):"number"==typeof h&&(e=a.slice(0,h)),e}),[a,u,O,h,te]),ae=z.useMemo((function(){return te?a.slice(X+1):a.slice(oe.length)}),[a,oe,te,X]),ie=z.useCallback((function(e,t){var n;return"function"==typeof l?l(e):null!==(n=l&&(null==e?void 0:e[l]))&&void 0!==n?n:t}),[l]),se=z.useCallback(i||function(e){return e},[i]);function le(e,t,n){(G!==e||void 0!==t&&t!==W)&&(q(e),n||(Q(e$){le(r-1,e-o-L+R);break}}b&&ue(0)+L>$&&U(null)}}),[$,N,R,L,ie,oe]);var de=Y&&!!ae.length,fe={};null!==W&&te&&(fe={position:"absolute",left:W,top:0});var pe,he={prefixCls:J,responsive:te,component:w,invalidate:ne},ge=s?function(e,t){var n=ie(e,t);return z.createElement(y$.Provider,{key:n,value:Eh(Eh({},he),{},{order:t,item:e,itemKey:n,registerSize:ce,display:t<=X})},s(e,t))}:function(e,t){var n=ie(e,t);return z.createElement(m$,Bp({},he,{order:t,key:n,item:e,renderItem:se,itemKey:n,registerSize:ce,display:t<=X}))},me={order:de?X:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){A(t),T(R)},display:de};if(m)m&&(pe=z.createElement(y$.Provider,{value:Eh(Eh({},he),me)},m(ae)));else{var be=g||$$;pe=z.createElement(m$,Bp({},he,me),"function"==typeof be?be(ae):be)}var ve=z.createElement(y,Bp({className:Mm(!ne&&r,p),style:f,ref:t},S),oe.map(ge),re?pe:null,b&&z.createElement(m$,Bp({},he,{responsive:ee,responsiveDisabled:!te,order:X,className:"".concat(J,"-suffix"),registerSize:function(e,t){B(t)},display:!0,style:fe}),b));return ee&&(ve=z.createElement(Gb,{onResize:function(e,t){D(t.clientWidth)},disabled:!te},ve)),ve}var N$=z.forwardRef(j$);N$.displayName="Overflow",N$.Item=C$,N$.RESPONSIVE=O$,N$.INVALIDATE=D$;var P$=function(e,t){var n,r=e.prefixCls,o=e.id,a=e.inputElement,i=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,f=e.value,p=e.maxLength,h=e.onKeyDown,g=e.onMouseDown,m=e.onChange,b=e.onPaste,v=e.onCompositionStart,y=e.onCompositionEnd,w=e.open,x=e.attrs,S=a||z.createElement("input",null),k=S,C=k.ref,E=k.props,O=E.onKeyDown,D=E.onChange,$=E.onMouseDown,j=E.onCompositionStart,N=E.onCompositionEnd,P=E.style;return S.props,S=z.cloneElement(S,Eh(Eh(Eh({type:"search"},E),{},{id:o,ref:lb(t,C),disabled:i,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:Mm("".concat(r,"-selection-search-input"),null===(n=S)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?d:void 0},x),{},{value:u?f:"",maxLength:p,readOnly:!u,unselectable:u?null:"on",style:Eh(Eh({},P),{},{opacity:u?null:0}),onKeyDown:function(e){h(e),O&&O(e)},onMouseDown:function(e){g(e),$&&$(e)},onChange:function(e){m(e),D&&D(e)},onCompositionStart:function(e){v(e),j&&j(e)},onCompositionEnd:function(e){y(e),N&&N(e)},onPaste:b}))},_$=z.forwardRef(P$);function I$(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}_$.displayName="Input";var T$="undefined"!=typeof window&&window.document&&window.document.documentElement;function F$(e){return["string","number"].includes(kd(e))}function R$(e){var t=void 0;return e&&(F$(e.title)?t=e.title.toString():F$(e.label)&&(t=e.label.toString())),t}function A$(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var M$=function(e){e.preventDefault(),e.stopPropagation()},L$=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,i=e.open,s=e.searchValue,l=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,p=e.showSearch,h=e.autoFocus,g=e.autoComplete,m=e.activeDescendantId,b=e.tabIndex,v=e.removeIcon,y=e.maxTagCount,w=e.maxTagTextLength,x=e.maxTagPlaceholder,S=void 0===x?function(e){return"+ ".concat(e.length," ...")}:x,k=e.tagRender,C=e.onToggleOpen,E=e.onRemove,O=e.onInputChange,D=e.onInputPaste,$=e.onInputKeyDown,j=e.onInputMouseDown,N=e.onInputCompositionStart,P=e.onInputCompositionEnd,_=z.useRef(null),I=og(z.useState(0),2),T=I[0],F=I[1],R=og(z.useState(!1),2),A=R[0],M=R[1],L="".concat(o,"-selection"),B=i||"multiple"===f&&!1===l||"tags"===f?s:"",H="tags"===f||"multiple"===f&&!1===l||p&&(i||A);function W(e,t,n,r,o){return z.createElement("span",{className:Mm("".concat(L,"-item"),Ed({},"".concat(L,"-item-disabled"),n)),title:R$(e)},z.createElement("span",{className:"".concat(L,"-item-content")},t),r&&z.createElement(u$,{className:"".concat(L,"-item-remove"),onMouseDown:M$,onClick:o,customizeIcon:v},"×"))}t=function(){F(_.current.scrollWidth)},n=[B],T$?z.useLayoutEffect(t,n):z.useEffect(t,n);var U=z.createElement("div",{className:"".concat(L,"-search"),style:{width:T},onFocus:function(){M(!0)},onBlur:function(){M(!1)}},z.createElement(_$,{ref:c,open:i,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:H,activeDescendantId:m,value:B,onKeyDown:$,onMouseDown:j,onChange:O,onPaste:D,onCompositionStart:N,onCompositionEnd:P,tabIndex:b,attrs:Vx(e,!0)}),z.createElement("span",{ref:_,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},B," ")),V=z.createElement(N$,{prefixCls:"".concat(L,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,a=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var s=String(a);s.length>w&&(a="".concat(s.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),E(e)};return"function"==typeof k?function(e,t,n,r,o){return z.createElement("span",{onMouseDown:function(e){M$(e),C(!i)}},k({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,a,t,o,l):W(e,a,t,o,l)},renderRest:function(e){var t="function"==typeof S?S(e):S;return W({title:t},t,!1)},suffix:U,itemKey:A$,maxCount:y});return z.createElement(z.Fragment,null,V,!a.length&&!B&&z.createElement("span",{className:"".concat(L,"-placeholder")},u))},B$=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,h=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,v=e.onInputKeyDown,y=e.onInputMouseDown,w=e.onInputChange,x=e.onInputPaste,S=e.onInputCompositionStart,k=e.onInputCompositionEnd,C=e.title,E=og(z.useState(!1),2),O=E[0],D=E[1],$="combobox"===c,j=$||h,N=d[0],P=g||"";$&&m&&!O&&(P=m),z.useEffect((function(){$&&D(!1)}),[$,m]);var _=!("combobox"!==c&&!u&&!h)&&!!P,I=void 0===C?R$(N):C;return z.createElement(z.Fragment,null,z.createElement("span",{className:"".concat(n,"-selection-search")},z.createElement(_$,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:a,autoFocus:i,autoComplete:s,editable:j,activeDescendantId:l,value:P,onKeyDown:v,onMouseDown:y,onChange:function(e){D(!0),w(e)},onPaste:x,onCompositionStart:S,onCompositionEnd:k,tabIndex:p,attrs:Vx(e,!0),maxLength:$?b:void 0})),!$&&N?z.createElement("span",{className:"".concat(n,"-selection-item"),title:I,style:_?{visibility:"hidden"}:void 0},N.label):null,function(){if(N)return null;var e=_?{visibility:"hidden"}:void 0;return z.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},f)}())};var z$=function(e,t){var n=z.useRef(null),r=z.useRef(!1),o=e.prefixCls,a=e.open,i=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.autoClearSearchValue,u=e.onSearch,d=e.onSearchSubmit,f=e.onToggleOpen,p=e.onInputKeyDown,h=e.domRef;z.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=og(f$(0),2),m=g[0],b=g[1],v=z.useRef(null),y=function(e){!1!==u(e,!0,r.current)&&f(!0)},w={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==nS.UP&&n!==nS.DOWN||e.preventDefault(),p&&p(e),n!==nS.ENTER||"tags"!==i||r.current||a||null==d||d(e.target.value),t=n,[nS.ESC,nS.SHIFT,nS.BACKSPACE,nS.TAB,nS.WIN_KEY,nS.ALT,nS.META,nS.WIN_KEY_RIGHT,nS.CTRL,nS.SEMICOLON,nS.EQUALS,nS.CAPS_LOCK,nS.CONTEXT_MENU,nS.F1,nS.F2,nS.F3,nS.F4,nS.F5,nS.F6,nS.F7,nS.F8,nS.F9,nS.F10,nS.F11,nS.F12].includes(t)||f(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(l&&v.current&&/[\r\n]/.test(v.current)){var n=v.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,v.current)}v.current=null,y(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");v.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==i&&y(e.target.value)}},x="multiple"===i||"tags"===i?z.createElement(L$,Bp({},e,w)):z.createElement(B$,Bp({},e,w));return z.createElement("div",{ref:h,className:"".concat(o,"-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=m();e.target===n.current||t||"combobox"===i||e.preventDefault(),("combobox"===i||s&&t)&&a||(a&&!1!==c&&u("",!0,!1),f())}},x)},H$=z.forwardRef(z$);function W$(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,l=o.x,c=void 0===l?0:l,u=o.y,d=void 0===u?0:u,f=z.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],m=h[0],b=h[1],v=g[0],y=g[1];m!==v&&["t","b"].includes(m)?"t"===m?p.top=0:p.bottom=0:p.top=d,b!==y&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=c}return z.createElement("div",{ref:f,className:Mm("".concat(t,"-arrow"),i),style:p},s)}function U$(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?z.createElement(Hw,Bp({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return z.createElement("div",{style:{zIndex:r},className:Mm("".concat(t,"-mask"),n)})})):null}H$.displayName="Selector";var V$=z.memo((function(e){return e.children}),(function(e,t){return t.cache})),G$=z.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,v=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,x=e.portal,S=e.zIndex,k=e.onMouseEnter,C=e.onMouseLeave,E=e.onPointerEnter,O=e.ready,D=e.offsetX,$=e.offsetY,j=e.offsetR,N=e.offsetB,P=e.onAlign,_=e.onPrepare,I=e.stretch,T=e.targetWidth,F=e.targetHeight,R="function"==typeof n?n():n,A=l||c,M=(null==y?void 0:y.length)>0,L=og(z.useState(!y||!M),2),B=L[0],H=L[1];if(yg((function(){!B&&M&&i&&H(!0)}),[B,M,i]),!B)return null;var W="auto",U={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(O||!l){var V,G=g.points,q=g.dynamicInset||(null===(V=g._experimental)||void 0===V?void 0:V.dynamicInset),X=q&&"r"===G[0][1],K=q&&"b"===G[0][0];X?(U.right=j,U.left=W):(U.left=D,U.right=W),K?(U.bottom=N,U.top=W):(U.top=$,U.bottom=W)}var Y={};return I&&(I.includes("height")&&F?Y.height=F:I.includes("minHeight")&&F&&(Y.minHeight=F),I.includes("width")&&T?Y.width=T:I.includes("minWidth")&&T&&(Y.minWidth=T)),l||(Y.pointerEvents="none"),z.createElement(x,{open:v||A,getContainer:y&&function(){return y(i)},autoDestroy:w},z.createElement(U$,{prefixCls:o,open:l,zIndex:S,mask:f,motion:b}),z.createElement(Gb,{onResize:P,disabled:!l},(function(e){return z.createElement(Hw,Bp({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:_,onEnterPrepare:_,visible:l,onVisibleChanged:function(e){var t;null==m||null===(t=m.onVisibleChanged)||void 0===t||t.call(m,e),s(e)}}),(function(n,i){var s=n.className,c=n.style,f=Mm(o,s,r);return z.createElement("div",{ref:lb(e,t,i),className:f,style:Eh(Eh(Eh(Eh({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},U),Y),c),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:k,onMouseLeave:C,onPointerEnter:E,onClick:d},p&&z.createElement(W$,{prefixCls:o,arrow:p,arrowPos:h,align:g}),z.createElement(V$,{cache:!l&&!u},R))}))})))})),q$=z.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ub(n),a=cb(z.useCallback((function(e){sb(t,r?r(e):e)}),[r]),n.ref);return o?z.cloneElement(n,{ref:a}):n})),X$=z.createContext(null);function K$(e){return e?Array.isArray(e)?e:[e]:[]}function Y$(){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 Q$(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function J$(e){return e.ownerDocument.defaultView}function Z$(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=J$(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 ej(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function tj(e){return ej(parseFloat(e),0)}function nj(e,t){var n=Eh({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=J$(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=tj(a),g=tj(i),m=tj(s),b=tj(l),v=ej(Math.round(c.width/f*1e3)/1e3),y=ej(Math.round(c.height/u*1e3)/1e3),w=(f-p-m-b)*v,x=(u-d-h-g)*y,S=h*y,k=g*y,C=m*v,E=b*v,O=0,D=0;if("clip"===r){var $=tj(o);O=$*v,D=$*y}var j=c.x+C-O,N=c.y+S-D,P=j+c.width+2*O-C-E-w,_=N+c.height+2*D-S-k-x;n.left=Math.max(n.left,j),n.top=Math.max(n.top,N),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,_)}})),n}function rj(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 oj(e,t){var n=og(t||[],2),r=n[0],o=n[1];return[rj(e.width,r),rj(e.height,o)]}function aj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function ij(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 sj(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 lj=["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 cj=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_C,t=z.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,a=t.children,i=t.action,s=void 0===i?"hover":i,l=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,m=void 0===g?.1:g,b=t.focusDelay,v=t.blurDelay,y=t.mask,w=t.maskClosable,x=void 0===w||w,S=t.getPopupContainer,k=t.forceRender,C=t.autoDestroy,E=t.destroyPopupOnHide,O=t.popup,D=t.popupClassName,$=t.popupStyle,j=t.popupPlacement,N=t.builtinPlacements,P=void 0===N?{}:N,_=t.popupAlign,I=t.zIndex,T=t.stretch,F=t.getPopupClassNameFromAlign,R=t.fresh,A=t.alignPoint,M=t.onPopupClick,L=t.onPopupAlign,B=t.arrow,H=t.popupMotion,W=t.maskMotion,U=t.popupTransitionName,V=t.popupAnimation,G=t.maskTransitionName,q=t.maskAnimation,X=t.className,K=t.getTriggerDOMNode,Y=Od(t,lj),Q=C||E||!1,J=og(z.useState(!1),2),Z=J[0],ee=J[1];yg((function(){ee(c$())}),[]);var te=z.useRef({}),ne=z.useContext(X$),re=z.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=RC(),ae=og(z.useState(null),2),ie=ae[0],se=ae[1],le=Ly((function(e){ab(e)&&ie!==e&&se(e),null==ne||ne.registerSubPopup(oe,e)})),ce=og(z.useState(null),2),ue=ce[0],de=ce[1],fe=z.useRef(null),pe=Ly((function(e){ab(e)&&ue!==e&&(de(e),fe.current=e)})),he=z.Children.only(a),ge=(null==he?void 0:he.props)||{},me={},be=Ly((function(e){var t,n,r=ue;return(null==r?void 0:r.contains(e))||(null===(t=px(r))||void 0===t?void 0:t.host)===e||e===r||(null==ie?void 0:ie.contains(e))||(null===(n=px(ie))||void 0===n?void 0:n.host)===e||e===ie||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ve=Q$(o,H,V,U),ye=Q$(o,W,q,G),we=og(z.useState(d||!1),2),xe=we[0],Se=we[1],ke=null!=u?u:xe,Ce=Ly((function(e){void 0===u&&Se(e)}));yg((function(){Se(u||!1)}),[u]);var Ee=z.useRef(ke);Ee.current=ke;var Oe=z.useRef([]);Oe.current=[];var De=Ly((function(e){var t;Ce(e),(null!==(t=Oe.current[Oe.current.length-1])&&void 0!==t?t:ke)!==e&&(Oe.current.push(e),null==f||f(e))})),$e=z.useRef(),je=function(){clearTimeout($e.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;je(),0===t?De(e):$e.current=setTimeout((function(){De(e)}),1e3*t)};z.useEffect((function(){return je}),[]);var Pe=og(z.useState(!1),2),_e=Pe[0],Ie=Pe[1];yg((function(e){e&&!ke||Ie(!0)}),[ke]);var Te=og(z.useState(null),2),Fe=Te[0],Re=Te[1],Ae=og(z.useState([0,0]),2),Me=Ae[0],Le=Ae[1],Be=function(e){Le([e.clientX,e.clientY])},ze=function(e,t,n,r,o,a,i){var s=og(z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),l=s[0],c=s[1],u=z.useRef(0),d=z.useMemo((function(){return t?Z$(t):[]}),[t]),f=z.useRef({});e||(f.current={});var p=Ly((function(){if(t&&n&&e){let e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=D.x+e,o=D.y+t,a=r+R,i=o+F,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(a,n.right),u=Math.min(i,n.bottom);return Math.max(0,(c-s)*(u-l))},st=function(){ie=D.y+ve,se=ie+F,le=D.x+be,ce=le+R};var s,l,u,p=t,h=p.ownerDocument,g=J$(p).getComputedStyle(p),m=g.width,b=g.height,v=g.position,y=p.style.left,w=p.style.top,x=p.style.right,S=p.style.bottom,k=p.style.overflow,C=Eh(Eh({},o[r]),a),E=h.createElement("div");if(null===(s=p.parentElement)||void 0===s||s.appendChild(E),E.style.left="".concat(p.offsetLeft,"px"),E.style.top="".concat(p.offsetTop,"px"),E.style.position=v,E.style.height="".concat(p.offsetHeight,"px"),E.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))u={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();u={x:O.x,y:O.y,width:O.width,height:O.height}}var D=p.getBoundingClientRect(),$=h.documentElement,j=$.clientWidth,N=$.clientHeight,P=$.scrollWidth,_=$.scrollHeight,I=$.scrollTop,T=$.scrollLeft,F=D.height,R=D.width,A=u.height,M=u.width,L={left:0,top:0,right:j,bottom:N},B={left:-T,top:-I,right:P-T,bottom:_-I},z=C.htmlRegion,H="visible",W="visibleFirst";"scroll"!==z&&z!==W&&(z=H);var U=z===W,V=nj(B,d),G=nj(L,d),q=z===H?G:V,X=U?G:q;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var K=p.getBoundingClientRect();p.style.left=y,p.style.top=w,p.style.right=x,p.style.bottom=S,p.style.overflow=k,null===(l=p.parentElement)||void 0===l||l.removeChild(E);var Y=ej(Math.round(R/parseFloat(m)*1e3)/1e3),Q=ej(Math.round(F/parseFloat(b)*1e3)/1e3);if(0===Y||0===Q||ab(n)&&!ok(n))return;var J=C.offset,Z=C.targetOffset,ee=og(oj(D,J),2),te=ee[0],ne=ee[1],re=og(oj(u,Z),2),oe=re[0],ae=re[1];u.x-=oe,u.y-=ae;var ie,se,le,ce,ue=og(C.points||[],2),de=ue[0],fe=aj(ue[1]),pe=aj(de),he=ij(u,fe),ge=ij(D,pe),me=Eh({},C),be=he.x-ge.x+te,ve=he.y-ge.y+ne,ye=e(be,ve),we=e(be,ve,G),xe=ij(u,["t","l"]),Se=ij(D,["t","l"]),ke=ij(u,["b","r"]),Ce=ij(D,["b","r"]),Ee=C.overflow||{},Oe=Ee.adjustX,De=Ee.adjustY,$e=Ee.shiftX,je=Ee.shiftY,Ne=function(e){return"boolean"==typeof e?e:e>=0};st();var Pe=Ne(De),_e=pe[0]===fe[0];if(Pe&&"t"===pe[0]&&(se>X.bottom||f.current.bt)){var Ie=ve;_e?Ie-=F-A:Ie=xe.y-Ce.y-ne;var Te=e(be,Ie),Fe=e(be,Ie,G);Te>ye||Te===ye&&(!U||Fe>=we)?(f.current.bt=!0,ve=Ie,ne=-ne,me.points=[sj(pe,0),sj(fe,0)]):f.current.bt=!1}if(Pe&&"b"===pe[0]&&(ieye||Ae===ye&&(!U||Me>=we)?(f.current.tb=!0,ve=Re,ne=-ne,me.points=[sj(pe,0),sj(fe,0)]):f.current.tb=!1}var Le=Ne(Oe),Be=pe[1]===fe[1];if(Le&&"l"===pe[1]&&(ce>X.right||f.current.rl)){var ze=be;Be?ze-=R-M:ze=xe.x-Ce.x-te;var He=e(ze,ve),We=e(ze,ve,G);He>ye||He===ye&&(!U||We>=we)?(f.current.rl=!0,be=ze,te=-te,me.points=[sj(pe,1),sj(fe,1)]):f.current.rl=!1}if(Le&&"r"===pe[1]&&(leye||Ve===ye&&(!U||Ge>=we)?(f.current.lr=!0,be=Ue,te=-te,me.points=[sj(pe,1),sj(fe,1)]):f.current.lr=!1}st();var qe=!0===$e?0:$e;"number"==typeof qe&&(leG.right&&(be-=ce-G.right-te,u.x>G.right-qe&&(be+=u.x-G.right+qe)));var Xe=!0===je?0:je;"number"==typeof Xe&&(ieG.bottom&&(ve-=se-G.bottom-ne,u.y>G.bottom-Xe&&(ve+=u.y-G.bottom+Xe)));var Ke=D.x+be,Ye=Ke+R,Qe=D.y+ve,Je=Qe+F,Ze=u.x,et=Ze+M,tt=u.y,nt=tt+A,rt=(Math.max(Ke,Ze)+Math.min(Ye,et))/2-Ke,ot=(Math.max(Qe,tt)+Math.min(Je,nt))/2-Qe;null==i||i(t,me);var at=K.right-D.x-(be+D.width),it=K.bottom-D.y-(ve+D.height);c({ready:!0,offsetX:be/Y,offsetY:ve/Q,offsetR:at/Y,offsetB:it/Q,arrowX:rt/Y,arrowY:ot/Q,scaleX:Y,scaleY:Q,align:me})}})),h=function(){c((function(e){return Eh(Eh({},e),{},{ready:!1})}))};return yg(h,[r]),yg((function(){e||h()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&p()}))}]}(ke,ie,A?Me:ue,j,P,_,L),He=og(ze,11),We=He[0],Ue=He[1],Ve=He[2],Ge=He[3],qe=He[4],Xe=He[5],Ke=He[6],Ye=He[7],Qe=He[8],Je=He[9],Ze=He[10],et=function(e,t,n,r){return z.useMemo((function(){var o=K$(null!=n?n:t),a=K$(null!=r?r:t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]}),[e,t,n,r])}(Z,s,l,c),tt=og(et,2),nt=tt[0],rt=tt[1],ot=nt.has("click"),at=rt.has("click")||rt.has("contextMenu"),it=Ly((function(){_e||Ze()}));!function(e,t,n,r,o){yg((function(){if(e&&t&&n){let e=function(){r(),o()};var a=n,i=Z$(t),s=Z$(a),l=J$(a),c=new Set([l].concat(kh(i),kh(s)));return c.forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),l.addEventListener("resize",e,{passive:!0}),r(),function(){c.forEach((function(t){t.removeEventListener("scroll",e),l.removeEventListener("resize",e)}))}}}),[e,t,n])}(ke,ue,ie,it,(function(){Ee.current&&A&&at&&Ne(!1)})),yg((function(){it()}),[Me,j]),yg((function(){!ke||null!=P&&P[j]||it()}),[JSON.stringify(_)]);var st=z.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i1?i-1:0),l=1;l1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:10,t=og(z.useState(!1),2),n=t[0],r=t[1],o=z.useRef(null),a=function(){window.clearTimeout(o.current)};return z.useEffect((function(){return a}),[]),[n,function(t,n){a(),o.current=window.setTimeout((function(){r(t),n&&n()}),e)},a]}(),me=og(ge,3),be=me[0],ve=me[1],ye=me[2];z.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=fe.current)||void 0===e?void 0:e.focus,blur:null===(t=fe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=pe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var we=z.useMemo((function(){var e;if("combobox"!==b)return $;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[$,b,d]),xe="combobox"===b&&"function"==typeof w&&w()||null,Se="function"==typeof x&&x(),ke=cb(ue,null==Se||null===(n=Se.props)||void 0===n?void 0:n.ref),Ce=og(z.useState(!1),2),Ee=Ce[0],Oe=Ce[1];yg((function(){Oe(!0)}),[]);var De=og(Hy(!1,{defaultValue:k,value:S}),2),$e=De[0],je=De[1],Ne=!!Ee&&$e,Pe=!g&&p;(v||Pe&&Ne&&"combobox"===b)&&(Ne=!1);var _e=!Pe&&Ne,Ie=z.useCallback((function(e){var t=void 0!==e?e:!Ne;v||(je(t),Ne!==t&&(null==C||C(t)))}),[v,Ne,je,C]),Te=z.useMemo((function(){return(_||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[_]),Fe=function(e,t,n){var r=!0,o=e;null==O||O(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=tv(r),a=o[0],i=o.slice(1);if(!a)return[t];var s=t.split(a);return n=n||s.length>1,s.reduce((function(t,n){return[].concat(kh(t),kh(e(n,i)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,_);return"combobox"!==b&&a&&(o="",null==P||P(a),Ie(!1),r=!1),N&&we!==o&&N(o,{source:t?"typing":"effect"}),r};z.useEffect((function(){Ne||re||"combobox"===b||Fe("",!1,!1)}),[Ne]),z.useEffect((function(){$e&&v&&je(!1),v&&!he.current&&ve(!1)}),[v]);var Re=og(f$(),2),Ae=Re[0],Me=Re[1],Le=z.useRef(!1),Be=[];z.useEffect((function(){return function(){Be.forEach((function(e){return clearTimeout(e)})),Be.splice(0,Be.length)}}),[]);var ze,He=og(z.useState({}),2)[1];Se&&(ze=function(e){Ie(e)}),function(e,t,n,r){var o=z.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},z.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ce.current,null===(e=de.current)||void 0===e?void 0:e.getPopupElement()]}),_e,Ie,!!Se);var We,Ue=z.useMemo((function(){return Eh(Eh({},e),{},{notFoundContent:g,open:Ne,triggerOpen:_e,id:o,showSearch:oe,multiple:re,toggleOpen:Ie})}),[e,g,_e,Ne,o,oe,re,Ie]),Ve=!!T||y;Ve&&(We=z.createElement(u$,{className:Mm("".concat(a,"-arrow"),Ed({},"".concat(a,"-arrow-loading"),y)),customizeIcon:T,customizeIconProps:{loading:y,searchValue:we,open:Ne,focused:be,showSearch:oe}}));var Ge,qe=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=H.useMemo((function(){return"object"===kd(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:H.useMemo((function(){return!(a||!r||!n.length&&!i||"combobox"===s&&""===i)}),[r,a,n.length,i,s]),clearIcon:H.createElement(u$,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(a,(function(){var e;null==m||m(),null===(e=fe.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),Fe("",!1,!1)}),d,I,F,v,we,b),Xe=qe.allowClear,Ke=qe.clearIcon,Ye=z.createElement(R,{ref:pe}),Qe=Mm(a,i,(Ed(r={},"".concat(a,"-focused"),be),Ed(r,"".concat(a,"-multiple"),re),Ed(r,"".concat(a,"-single"),!re),Ed(r,"".concat(a,"-allow-clear"),I),Ed(r,"".concat(a,"-show-arrow"),Ve),Ed(r,"".concat(a,"-disabled"),v),Ed(r,"".concat(a,"-loading"),y),Ed(r,"".concat(a,"-open"),Ne),Ed(r,"".concat(a,"-customize-input"),xe),Ed(r,"".concat(a,"-show-search"),oe),r)),Je=z.createElement(fj,{ref:de,disabled:v,prefixCls:a,visible:_e,popupElement:Ye,animation:A,transitionName:M,dropdownStyle:L,dropdownClassName:B,direction:c,dropdownMatchSelectWidth:W,dropdownRender:U,dropdownAlign:V,placement:G,builtinPlacements:q,getPopupContainer:X,empty:p,getTriggerDOMNode:function(){return ue.current},onPopupVisibleChange:ze,onPopupMouseEnter:function(){He({})}},Se?z.cloneElement(Se,{ref:ke}):z.createElement(H$,Bp({},e,{domRef:ue,prefixCls:a,inputElement:xe,ref:fe,id:o,showSearch:oe,autoClearSearchValue:j,mode:b,activeDescendantId:D,tagRender:l,values:d,open:Ne,onToggleOpen:Ie,activeValue:E,searchValue:we,onSearch:Fe,onSearchSubmit:function(e){e&&e.trim()&&N(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:Te})));return Ge=Se?Je:z.createElement("div",Bp({className:Qe},ae,{ref:ce,onMouseDown:function(e){var t,n=e.target,r=null===(t=de.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Be.indexOf(o);-1!==t&&Be.splice(t,1),ye(),se||r.contains(document.activeElement)||null===(e=fe.current)||void 0===e||e.focus()}));Be.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s=0;i-=1){var s=o[i];if(!s.disabled){o.splice(i,1),a=s;break}}a&&f(o,{type:"remove",values:[a]})}for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u1?t-1:0),r=1;r0,F=z.useMemo((function(){return 0===a||0===_?0:a/_*I}),[a,_,I]),R=z.useRef({top:F,dragging:m,pageY:y,startTop:S});R.current={top:F,dragging:m,pageY:y,startTop:S};var A=function(e){b(!0),w(kj(e,u)),k(R.current.top),s(),e.stopPropagation(),e.preventDefault()};z.useEffect((function(){var e=function(e){e.preventDefault()},t=E.current,n=O.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",A),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",A)}}),[]);var M=z.useRef();M.current=_;var L=z.useRef();L.current=I,z.useEffect((function(){if(m){var e,t=function(t){var n=R.current,r=n.dragging,o=n.pageY,a=n.startTop;if(Zb.cancel(e),r){var i=kj(t,u)-o,s=a;!C&&u?s-=i:s+=i;var l=M.current,d=L.current,f=d?s/d:0,p=Math.ceil(f*l);p=Math.max(p,0),p=Math.min(p,l),e=Zb((function(){c(p,u)}))}},n=function(){b(!1),l()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Zb.cancel(e)}}}),[m]),z.useEffect((function(){P()}),[a]),z.useImperativeHandle(t,(function(){return{delayHidden:P}}));var B="".concat(r,"-scrollbar"),H={position:"absolute",visibility:$&&T?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(H.height=8,H.left=0,H.right=0,H.bottom=0,W.height="100%",W.width=d,C?W.left=F:W.right=F):(H.width=8,H.top=0,H.bottom=0,C?H.right=0:H.left=0,W.width="100%",W.height=d,W.top=F),z.createElement("div",{ref:E,className:Mm(B,(n={},Ed(n,"".concat(B,"-horizontal"),u),Ed(n,"".concat(B,"-vertical"),!u),Ed(n,"".concat(B,"-visible"),$),n)),style:Eh(Eh({},H),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:P},z.createElement("div",{ref:O,className:Mm("".concat(B,"-thumb"),Ed({},"".concat(B,"-thumb-moving"),m)),style:Eh(Eh({},W),h),onMouseDown:A}))}));function Ej(e){var t=e.children,n=e.setRef,r=z.useCallback((function(e){n(e)}),[]);return z.cloneElement(t,{ref:r})}var Oj=function(){function e(){nf(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return of(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 Dj=10;function $j(e,t,n){var r=og(z.useState(e),2),o=r[0],a=r[1],i=og(z.useState(null),2),s=i[0],l=i[1];return z.useEffect((function(){var r=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a1&&void 0!==arguments[1]&&arguments[1],a=e<0&&o.current.top||e>0&&o.current.bottom;return t&&a?(clearTimeout(r.current),n.current=!1):a&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&a}};function Pj(e,t,n,r,o){var a=z.useRef(0),i=z.useRef(null),s=z.useRef(null),l=z.useRef(!1),c=Nj(t,n);var u=z.useRef(null),d=z.useRef(null);return[function(t){if(e){Zb.cancel(d.current),d.current=Zb((function(){u.current=null}),2);var n=t.deltaX,f=t.deltaY,p=t.shiftKey,h=n,g=f;("sx"===u.current||!u.current&&p&&f&&!n)&&(h=f,g=0,u.current="sx");var m=Math.abs(h),b=Math.abs(g);null===u.current&&(u.current=r&&m>b?"x":"y"),"y"===u.current?function(e,t){Zb.cancel(i.current),a.current+=t,s.current=t,c(t)||(jj||e.preventDefault(),i.current=Zb((function(){var e=l.current?10:1;o(a.current*e),a.current=0})))}(t,g):function(e,t){o(t,!0),jj||e.preventDefault()}(t,h)}},function(t){e&&(l.current=t.detail===s.current)}]}var _j=14/15;var Ij=20;function Tj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,Ij),t=Math.min(t,e/2),Math.floor(t)}var Fj=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Rj=[],Aj={overflowY:"auto",overflowAnchor:"none"};function Mj(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,l=void 0===s||s,c=e.style,u=e.data,d=e.children,f=e.itemKey,p=e.virtual,h=e.direction,g=e.scrollWidth,m=e.component,b=void 0===m?"div":m,v=e.onScroll,y=e.onVirtualScroll,w=e.onVisibleChange,x=e.innerProps,S=e.extraRender,k=e.styles,C=Od(e,Fj),E=!(!1===p||!a||!i),O=E&&u&&(i*u.length>a||!!g),D="rtl"===h,$=Mm(r,Ed({},"".concat(r,"-rtl"),D),o),j=u||Rj,N=z.useRef(),P=z.useRef(),_=og(z.useState(0),2),I=_[0],T=_[1],F=og(z.useState(0),2),R=F[0],A=F[1],M=og(z.useState(!1),2),L=M[0],B=M[1],H=function(){B(!0)},W=function(){B(!1)},U=z.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),V={getKey:U};function G(e){T((function(t){var n=function(e){var t=e;Number.isNaN(ge.current)||(t=Math.min(t,ge.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return N.current.scrollTop=n,n}))}var q=z.useRef({start:0,end:j.length}),X=z.useRef(),K=og($j(j,U),1)[0];X.current=K;var Y=function(e,t,n){var r=og(z.useState(0),2),o=r[0],a=r[1],i=z.useRef(new Map),s=z.useRef(new Oj),l=z.useRef();function c(){Zb.cancel(l.current)}function u(){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=ib(e),r=n.offsetHeight;s.current.get(t)!==r&&s.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():l.current=Zb(t)}return z.useEffect((function(){return c}),[]),[function(r,o){var a=e(r),s=i.current.get(a);o?(i.current.set(a,o),u()):i.current.delete(a),!s!=!o&&(o?null==t||t(r):null==n||n(r))},u,s.current,o]}(U,null,null),Q=og(Y,4),J=Q[0],Z=Q[1],ee=Q[2],te=Q[3],ne=z.useMemo((function(){if(!E)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};var e;if(!O)return{scrollHeight:(null===(e=P.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:j.length-1,offset:void 0};for(var t,n,r,o=0,s=j.length,l=0;l=I&&void 0===t&&(t=l,n=o),f>I+a&&void 0===r&&(r=l),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/i)),void 0===r&&(r=j.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,j.length-1),offset:n}}),[O,E,I,j,te,a]),re=ne.scrollHeight,oe=ne.start,ae=ne.end,ie=ne.offset;q.current.start=oe,q.current.end=ae;var se=og(z.useState({width:0,height:a}),2),le=se[0],ce=se[1],ue=z.useRef(),de=z.useRef(),fe=z.useMemo((function(){return Tj(le.width,g)}),[le.width,g]),pe=z.useMemo((function(){return Tj(le.height,re)}),[le.height,re]),he=re-a,ge=z.useRef(he);ge.current=he;var me=I<=0,be=I>=he,ve=Nj(me,be),ye=function(){return{x:D?-R:R,y:I}},we=z.useRef(ye()),xe=Ly((function(){if(y){var e=ye();we.current.x===e.x&&we.current.y===e.y||(y(e),we.current=e)}}));function Se(e,t){var n=e;t?(vd.flushSync((function(){A(n)})),xe()):G(n)}var ke=function(e){var t=e,n=g-le.width;return t=Math.max(t,0),t=Math.min(t,n)},Ce=Ly((function(e,t){t?(vd.flushSync((function(){A((function(t){return ke(t+(D?-e:e))}))})),xe()):G((function(t){return t+e}))})),Ee=og(Pj(E,me,be,!!g,Ce),2),Oe=Ee[0],De=Ee[1];!function(e,t,n){var r,o=z.useRef(!1),a=z.useRef(0),i=z.useRef(null),s=z.useRef(null),l=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=a.current-t;a.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=_j,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},c=function(){o.current=!1,r()},u=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,a.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c))};r=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c))},yg((function(){return e&&t.current.addEventListener("touchstart",u),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",u),r(),clearInterval(s.current)}}),[e])}(E,N,(function(e,t){return!ve(e,t)&&(Oe({preventDefault:function(){},deltaY:e}),!0)})),yg((function(){function e(e){E&&e.preventDefault()}var t=N.current;return t.addEventListener("wheel",Oe),t.addEventListener("DOMMouseScroll",De),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Oe),t.removeEventListener("DOMMouseScroll",De),t.removeEventListener("MozMousePixelScroll",e)}}),[E]),yg((function(){g&&A((function(e){return ke(e)}))}),[le.width,g]);var $e=function(){var e,t;null===(e=ue.current)||void 0===e||e.delayHidden(),null===(t=de.current)||void 0===t||t.delayHidden()},je=function(e,t,n,r,o,a,i,s){var l=z.useRef(),c=og(z.useState(null),2),u=c[0],d=c[1];return yg((function(){if(u&&u.times=0;O-=1){var D=o(t[O]),$=n.get(D);if(void 0===$){h=!0;break}if((E-=$)<=0)break}switch(b){case"top":m=y-f;break;case"bottom":m=w-p+f;break;default:var j=e.current.scrollTop;yj+p&&(g="bottom")}null!==m&&i(m),m!==u.lastTop&&(h=!0)}h&&d(Eh(Eh({},u),{},{times:u.times+1,targetAlign:g,lastTop:m}))}}),[u,e.current]),function(e){if(null!=e){if(Zb.cancel(l.current),"number"==typeof e)i(e);else if(e&&"object"===kd(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key}));var a=e.offset;d({times:0,index:n,offset:void 0===a?0:a,originAlign:r})}}else s()}}(N,j,ee,i,U,(function(){return Z(!0)}),G,$e);z.useImperativeHandle(t,(function(){return{getScrollInfo:ye,scrollTo:function(e){var t;(t=e)&&"object"===kd(t)&&("left"in t||"top"in t)?(void 0!==e.left&&A(ke(e.left)),je(e.top)):je(e)}}})),yg((function(){if(w){var e=j.slice(oe,ae+1);w(e,j)}}),[oe,ae,j]);var Ne=function(e,t,n,r){var o=og(z.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),a=o[0],i=o[1];return function(o){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,l=a.get(o),c=a.get(s);if(void 0===l||void 0===c)for(var u=e.length,d=i.length;da&&z.createElement(Cj,{ref:ue,prefixCls:r,scrollOffset:I,scrollRange:re,rtl:D,onScroll:Se,onStartMove:H,onStopMove:W,spinSize:pe,containerSize:le.height,style:null==k?void 0:k.verticalScrollBar,thumbStyle:null==k?void 0:k.verticalScrollBarThumb}),O&&g&&z.createElement(Cj,{ref:de,prefixCls:r,scrollOffset:R,scrollRange:g,rtl:D,onScroll:Se,onStartMove:H,onStopMove:W,spinSize:fe,containerSize:le.width,horizontal:!0,style:null==k?void 0:k.horizontalScrollBar,thumbStyle:null==k?void 0:k.horizontalScrollBarThumb}))}var Lj=z.forwardRef(Mj);Lj.displayName="List";var Bj=z.createContext(null);var zj=["disabled","title","children","style","className"];function Hj(e){return"string"==typeof e||"number"==typeof e}var Wj=function(e,t){var n=z.useContext(d$),r=n.prefixCls,o=n.id,a=n.open,i=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=z.useContext(Bj),p=f.flattenOptions,h=f.onActiveValue,g=f.defaultActiveFirstOption,m=f.onSelect,b=f.menuItemSelectedIcon,v=f.rawValues,y=f.fieldNames,w=f.virtual,x=f.direction,S=f.listHeight,k=f.listItemHeight,C=f.optionRender,E="".concat(r,"-item"),O=Dh((function(){return p}),[a,p],(function(e,t){return t[0]&&e[1]!==t[1]})),D=z.useRef(null),$=function(e){e.preventDefault()},j=function(e){D.current&&D.current.scrollTo("number"==typeof e?{index:e}:e)},N=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];I(e);var n={source:t?"keyboard":"mouse"},r=O[e];r?h(r.value,e,n):h(null,-1,n)};z.useEffect((function(){T(!1!==g?N(0):-1)}),[O.length,l]);var F=z.useCallback((function(e){return v.has(e)&&"combobox"!==s}),[s,kh(v).toString(),v.size]);z.useEffect((function(){var e,t=setTimeout((function(){if(!i&&a&&1===v.size){var e=Array.from(v)[0],t=O.findIndex((function(t){return t.data.value===e}));-1!==t&&(T(t),j(t))}}));a&&(null===(e=D.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,l]);var R=function(e){void 0!==e&&m(e,{selected:!v.has(e)}),i||c(!1)};if(z.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case nS.N:case nS.P:case nS.UP:case nS.DOWN:var r=0;if(t===nS.UP?r=-1:t===nS.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===nS.N?r=1:t===nS.P&&(r=-1)),0!==r){var o=N(_+r,r);j(o),T(o,!0)}break;case nS.ENTER:var i=O[_];i&&!i.data.disabled?R(i.value):R(void 0),a&&e.preventDefault();break;case nS.ESC:c(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===O.length)return z.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(E,"-empty"),onMouseDown:$},u);var A=Object.keys(y).map((function(e){return y[e]})),M=function(e){return e.label};function L(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var B=function(e){var t=O[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,a=Vx(n,!0),i=M(t);return t?z.createElement("div",Bp({"aria-label":"string"!=typeof i||o?null:i},a,{key:e},L(t,e),{"aria-selected":F(r)}),r):null},H={role:"listbox",id:"".concat(o,"_list")};return z.createElement(z.Fragment,null,w&&z.createElement("div",Bp({},H,{style:{height:0,width:0,overflow:"hidden"}}),B(_-1),B(_),B(_+1)),z.createElement(Lj,{itemKey:"key",ref:D,data:O,height:S,itemHeight:k,fullHeight:!1,onMouseDown:$,onScroll:d,virtual:w,direction:x,innerProps:w?null:H},(function(e,t){var n,r=e.group,o=e.groupOption,a=e.data,i=e.label,s=e.value,l=a.key;if(r){var c,u=null!==(c=a.title)&&void 0!==c?c:Hj(i)?i.toString():void 0;return z.createElement("div",{className:Mm(E,"".concat(E,"-group")),title:u},void 0!==i?i:l)}var d=a.disabled,f=a.title;a.children;var p=a.style,h=a.className,g=qb(Od(a,zj),A),m=F(s),v="".concat(E,"-option"),y=Mm(E,v,h,(Ed(n={},"".concat(v,"-grouped"),o),Ed(n,"".concat(v,"-active"),_===t&&!d),Ed(n,"".concat(v,"-disabled"),d),Ed(n,"".concat(v,"-selected"),m),n)),x=M(e),S=!b||"function"==typeof b||m,k="number"==typeof x?x:x||s,O=Hj(k)?k.toString():void 0;return void 0!==f&&(O=f),z.createElement("div",Bp({},Vx(g),w?{}:L(e,t),{"aria-selected":m,className:y,title:O,onMouseMove:function(){_===t||d||T(t)},onClick:function(){d||R(s)},style:p}),z.createElement("div",{className:"".concat(v,"-content")},"function"==typeof C?C(e,{index:t}):k),z.isValidElement(b)||m,S&&z.createElement(u$,{className:"".concat(E,"-option-state"),customizeIcon:b,customizeIconProps:{value:s,disabled:d,isSelected:m}},m?"✓":null))})))},Uj=z.forwardRef(Wj);Uj.displayName="OptionList";function Vj(e,t){return I$(e).join("").toUpperCase().includes(t)}var Gj=0,qj=Wh();function Xj(e){var t=og(z.useState(),2),n=t[0],r=t[1];return z.useEffect((function(){var e;r("rc_select_".concat((qj?(e=Gj,Gj+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var Kj=["children","value"],Yj=["children"];function Qj(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ob(e).map((function(e,n){if(!z.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,a=r.key,i=r.props,s=i.children,l=Od(i,Yj);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value;return Eh({key:n,value:void 0!==a?a:n,children:o},Od(r,Kj))}(e):Eh(Eh({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},l),{},{options:Qj(s)})})).filter((function(e){return e}))}function Jj(e){var t=z.useRef();t.current=e;var n=z.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Zj=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],eN=["inputValue"];var tN=z.forwardRef((function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=void 0===o?"rc-select":o,i=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,p=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,m=void 0===g||g,b=e.filterOption,v=e.filterSort,y=e.optionFilterProp,w=e.optionLabelProp,x=e.options,S=e.optionRender,k=e.children,C=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,O=e.virtual,D=e.direction,$=e.listHeight,j=void 0===$?200:$,N=e.listItemHeight,P=void 0===N?20:N,_=e.value,I=e.defaultValue,T=e.labelInValue,F=e.onChange,R=Od(e,Zj),A=Xj(n),M=vj(r),L=!(x||!k),B=z.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),H=z.useMemo((function(){return hj(s,L)}),[JSON.stringify(s),L]),W=og(Hy("",{value:void 0!==c?c:l,postState:function(e){return e||""}}),2),U=W[0],V=W[1],G=function(e,t,n,r,o){return z.useMemo((function(){var a=e;!e&&(a=Qj(t));var i=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=hj(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;return function e(t,n){t.forEach((function(t){if(n||!(l in t)){var a=t[s];o.push({key:pj(t,o.length),groupOption:n,data:t,label:t[i],value:a})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:pj(t,o.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),o}(de,{fieldNames:H,childrenAsData:L})}),[de,H,L]),pe=function(e){var t=Y(e);if(Z(t),F&&(t.length!==re.length||t.some((function(e,t){var n;return(null===(n=re[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=T?t:t.map((function(e){return e.value})),r=t.map((function(e){return gj(oe(e.value))}));F(M?n:n[0],M?r:r[0])}},he=og(z.useState(null),2),ge=he[0],me=he[1],be=og(z.useState(0),2),ve=be[0],ye=be[1],we=void 0!==C?C:"combobox"!==r,xe=z.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;ye(t),i&&"combobox"===r&&null!==e&&"keyboard"===o&&me(String(e))}),[i,r]),Se=function(e,t,n){var r=function(){var t,n=oe(e);return[T?{label:null==n?void 0:n[H.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,gj(n)]};if(t&&p){var o=og(r(),2),a=o[0],i=o[1];p(a,i)}else if(!t&&h&&"clear"!==n){var s=og(r(),2),l=s[0],c=s[1];h(l,c)}},ke=Jj((function(e,t){var n,o=!M||t.selected;n=o?M?[].concat(kh(re),[e]):[e]:re.filter((function(t){return t.value!==e})),pe(n),Se(e,o),"combobox"===r?me(""):vj&&!f||(V(""),me(""))})),Ce=z.useMemo((function(){var e=!1!==O&&!1!==m;return Eh(Eh({},G),{},{flattenOptions:fe,onActiveValue:xe,defaultActiveFirstOption:we,onSelect:ke,menuItemSelectedIcon:E,rawValues:ie,fieldNames:H,virtual:e,direction:D,listHeight:j,listItemHeight:P,childrenAsData:L,optionRender:S})}),[G,fe,xe,we,ke,E,ie,H,O,m,j,P,L,S]);return z.createElement(Bj.Provider,{value:Ce},z.createElement(yj,Bp({},R,{id:A,prefixCls:a,ref:t,omitDomProps:eN,mode:r,displayValues:ae,onDisplayValuesChange:function(e,t){pe(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Se(e.value,!1,n)}))},direction:D,searchValue:U,onSearch:function(e,t){if(V(e),me(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&pe(e),null==u||u(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(kh(ie),[n])));pe(o),Se(n,!0),V("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=X.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(kh(ie),kh(t))));pe(n),n.forEach((function(e){Se(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:Uj,emptyOptions:!fe.length,activeValue:ge,activeDescendantId:"".concat(A,"_list_").concat(ve)})))})),nN=tN;function rN(e,t,n){return Mm({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}nN.Option=xj,nN.OptGroup=wj;const oN=(e,t)=>t||e,aN=()=>{const[,e]=My(),t=new zv(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.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"}),z.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)"}),z.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"}),z.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"})),z.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"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},iN=()=>{const[,e]=My(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=z.useMemo((()=>({borderColor:new zv(t).onBackground(o).toHexShortString(),shadowColor:new zv(n).onBackground(o).toHexShortString(),contentColor:new zv(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:a},z.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"}),z.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:s}))))},sN=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,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.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},lN=nw("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=Jy(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[sN(r)]}));const cN=z.createElement(aN,null),uN=z.createElement(iN,null),dN=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=cN,description:a,children:i,imageStyle:s,style: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{componentName:t}=e,{getPrefixCls:n}=z.useContext(xy),r=n("empty");switch(t){case"Table":case"List":return H.createElement(fN,{image:fN.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return H.createElement(fN,{image:fN.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return H.createElement(fN,null)}},hN=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"}},gN=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Vy(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}${s}bottomLeft,\n ${a}${s}bottomLeft\n `]:{animationName:IO},[`\n ${o}${s}topLeft,\n ${a}${s}topLeft,\n ${o}${s}topRight,\n ${a}${s}topRight\n `]:{animationName:FO},[`${i}${s}bottomLeft`]:{animationName:TO},[`\n ${i}${s}topLeft,\n ${i}${s}topRight\n `]:{animationName:RO},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},hN(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"},Uy),"&-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}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},HO(e,"slide-up"),HO(e,"slide-down"),_O(e,"move-up"),_O(e,"move-down")]},mN=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function bN(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=mN(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:i-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:a-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,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:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${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.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,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}`}}}}const vN=e=>{const{componentCls:t}=e,n=Jy(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Jy(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=mN(e);return[bN(e),bN(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},bN(r,"lg")]};function yN(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-2*e.lineWidth,i=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Vy(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${a}px`,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:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${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 ${r}px`,"&:after":{display:"none"}}}}}}}function wN(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[yN(e),yN(Jy(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 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},yN(Jy(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const xN=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},SN=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,antCls:a,borderActiveColor:i,outlineColor:s,controlOutlineWidth:l}=t,c=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${l}px ${s}`,outline:0}})}}},kN=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"}}}},CN=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Vy(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},xN(e)),kN(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Uy),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Uy),{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.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[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.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,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}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},EN=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},CN(e),wN(e),vN(e),gN(e),{[`${t}-rtl`]:{direction:"rtl"}},SN(t,Jy(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),SN(`${t}-status-error`,Jy(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),SN(`${t}-status-warning`,Jy(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),uC(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ON=nw("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=Jy(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[EN(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:g}=e;return{zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}}));function DN(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)}const $N={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 jN=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:$N}))};const NN=z.forwardRef(jN);const PN={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 _N=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:PN}))};const IN=z.forwardRef(_N);const TN={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 FN=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:TN}))};const RN=z.forwardRef(FN);const AN="SECRET_COMBOBOX_MODE_DO_NOT_USE",MN=(e,t)=>{var n,r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p=24,size:h,disabled:g,notFoundContent:m,status:b,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:S,allowClear:k}=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{mode:e}=C;if("combobox"!==e)return e===AN?"combobox":e}),[C.mode]),H="multiple"===B||"tags"===B,W=function(e,t){return void 0!==t?t:null!==e}(C.suffixIcon,C.showArrow),U=null!==(n=null!=w?w:y)&&void 0!==n?n:N,{status:V,hasFeedback:G,isFormItemInput:q,feedbackIcon:X}=z.useContext(uO),K=oN(V,b);let Y;Y=void 0!==m?m:"combobox"===B?null:(null==D?void 0:D("Select"))||z.createElement(pN,{componentName:"Select"});const{suffixIcon:Q,itemIcon:J,removeIcon:Z,clearIcon:ee}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const p=null!=n?n:z.createElement(Px,null),h=e=>null!==t||s||d?z.createElement(z.Fragment,null,!1!==c&&e,s&&u):null;let g=null;if(void 0!==t)g=h(t);else if(a)g=h(z.createElement(gS,{spin:!0}));else{const e=`${l}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return h(n&&r?z.createElement(RN,{className:e}):z.createElement(IN,{className:e}))}}let m=null;m=void 0!==r?r:i?z.createElement(NN,null):null;let b=null;return b=void 0!==o?o:z.createElement(Tx,null),{clearIcon:p,suffixIcon:g,itemIcon:m,removeIcon:b}}(Object.assign(Object.assign({},C),{multiple:H,hasFeedback:G,feedbackIcon:X,showSuffixIcon:W,prefixCls:I,showArrow:C.showArrow,componentName:"Select"})),te=!0===k?{clearIcon:ee}:k,ne=qb(C,["suffixIcon","itemIcon"]),re=Mm(c||u,{[`${I}-dropdown-${F}`]:"rtl"===F},s,L),oe=pk((e=>{var t;return null!==(t=null!=h?h:R)&&void 0!==t?t:e})),ae=z.useContext(Oy),ie=null!=g?g:ae,se=Mm({[`${I}-lg`]:"large"===oe,[`${I}-sm`]:"small"===oe,[`${I}-rtl`]:"rtl"===F,[`${I}-borderless`]:!a,[`${I}-in-form-item`]:q},rN(I,K,G),A,null==_?void 0:_.className,i,s,L),le=z.useMemo((()=>void 0!==f?f:"rtl"===F?"bottomRight":"bottomLeft"),[f,F]),ce=DN(v,P),[ue]=xS("SelectLike",null===(r=C.dropdownStyle)||void 0===r?void 0:r.zIndex);return M(z.createElement(nN,Object.assign({ref:t,virtual:j,showSearch:null==_?void 0:_.showSearch},ne,{style:Object.assign(Object.assign({},null==_?void 0:_.style),S),dropdownMatchSelectWidth:U,builtinPlacements:ce,transitionName:rk(T,"slide-up",C.transitionName),listHeight:d,listItemHeight:p,mode:B,prefixCls:I,placement:le,direction:F,suffixIcon:Q,menuItemSelectedIcon:J,removeIcon:Z,allowClear:te,notFoundContent:Y,className:se,getPopupContainer:l||E,dropdownClassName:re,disabled:ie,dropdownStyle:Object.assign(Object.assign({},null==C?void 0:C.dropdownStyle),{zIndex:ue})})))},LN=z.forwardRef(MN),BN=(zN=LN,l$((function(e){const{prefixCls:t,style:n}=e,r=z.useRef(null),[o,a]=z.useState(0),[i,s]=z.useState(0),[l,c]=Hy(!1,{value:e.open}),{getPrefixCls:u}=z.useContext(xy),d=u(HN||"select",t);z.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;a(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=WN?`.${WN(d)}`:`.${d}-dropdown`,a=null===(n=r.current)||void 0===n?void 0:n.querySelector(o);a&&(clearInterval(t),e.observe(a))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let f=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return UN&&(f=UN(f)),z.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:i}},z.createElement(zN,Object.assign({},f)))})));var zN,HN,WN,UN;LN.SECRET_COMBOBOX_MODE_DO_NOT_USE=AN,LN.Option=xj,LN.OptGroup=wj,LN._InternalPanelDoNotUseOrYouWillBeFired=BN;const VN=LN,GN=["xxl","xl","lg","md","sm","xs"],qN=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)`}),XN=e=>{const t=e,n=[].concat(GN).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),a=`screen${o}Min`,i=`screen${o}`;if(!(t[a]<=t[i]))throw new Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);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}))},a=window.matchMedia(n);a.addListener(o),this.matchHandlers[n]={mql:a,listener:o},o(a)}))},responsiveMap:t}}),[e])}function YN(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=z.useRef({}),n=function(){const[,e]=z.useReducer((e=>e+1),0);return e}(),r=KN();return yg((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current}function QN(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return z.createElement("div",{className:Mm("".concat(n,"-content"),a),style:i},z.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var JN={shiftX:64,adjustY:1},ZN={adjustX:1,shiftY:!0},eP=[0,0],tP={left:{points:["cr","cl"],overflow:ZN,offset:[-4,0],targetOffset:eP},right:{points:["cl","cr"],overflow:ZN,offset:[4,0],targetOffset:eP},top:{points:["bc","tc"],overflow:JN,offset:[0,-4],targetOffset:eP},bottom:{points:["tc","bc"],overflow:JN,offset:[0,4],targetOffset:eP},topLeft:{points:["bl","tl"],overflow:JN,offset:[0,-4],targetOffset:eP},leftTop:{points:["tr","tl"],overflow:ZN,offset:[-4,0],targetOffset:eP},topRight:{points:["br","tr"],overflow:JN,offset:[0,-4],targetOffset:eP},rightTop:{points:["tl","tr"],overflow:ZN,offset:[4,0],targetOffset:eP},bottomRight:{points:["tr","br"],overflow:JN,offset:[0,4],targetOffset:eP},rightBottom:{points:["bl","br"],overflow:ZN,offset:[4,0],targetOffset:eP},bottomLeft:{points:["tl","bl"],overflow:JN,offset:[0,4],targetOffset:eP},leftBottom:{points:["br","bl"],overflow:ZN,offset:[-4,0],targetOffset:eP}},nP=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],rP=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,a=e.mouseEnterDelay,i=void 0===a?0:a,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,v=e.placement,y=void 0===v?"right":v,w=e.align,x=void 0===w?{}:w,S=e.destroyTooltipOnHide,k=void 0!==S&&S,C=e.defaultVisible,E=e.getTooltipContainer,O=e.overlayInnerStyle;e.arrowContent;var D=e.overlay,$=e.id,j=e.showArrow,N=void 0===j||j,P=Od(e,nP),_=z.useRef(null);z.useImperativeHandle(t,(function(){return _.current}));var I=Eh({},P);"visible"in e&&(I.popupVisible=e.visible);return z.createElement(cj,Bp({popupClassName:n,prefixCls:d,popup:function(){return z.createElement(QN,{key:"content",prefixCls:d,id:$,overlayInnerStyle:O},D)},action:o,builtinPlacements:tP,popupPlacement:y,ref:_,popupAlign:x,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:C,autoDestroy:k,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:i,arrow:N},I),f)};const oP=z.forwardRef(rP),aP=8;function iP(e){const t=aP,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function sP(e,t){return e?t:{}}function lP(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:p}=iP({contentRadius:l,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Wy(r,o,a,s,i)),{"&:before":{background:s}})]},sP(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),sP(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),sP(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),sP(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}const cP={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"]}},uP={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"]}},dP=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function fP(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(cP).forEach((e=>{const c=r&&uP[e]||cP[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,dP.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o}const d=iP({contentRadius:a,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.dropdownArrowOffset+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=2*t.dropdownArrowOffsetVertical+n,a.shiftX=!0,a.adjustX=!0}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,d,t,n),i&&(u.htmlRegion="visibleFirst")})),l}const pP=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vy(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,aP)}},[`${t}-content`]:{position:"relative"}}),ow(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},lP(Jy(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},hP=(e,t)=>nw("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:a}=e,i=Jy(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:a>4?4:a});return[pP(i),nD(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),gP=Ny.map((e=>`${e}-inverse`)),mP=["success","processing","error","default","warning"];function bP(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(kh(gP),kh(Ny)).includes(e):Ny.includes(e)}function vP(e,t){const n=bP(t),r=Mm({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const yP=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=z.useContext(xy),l=s("tooltip",t),[c,u]=hP(l,!0),d=vP(l,a),f=d.arrowStyle,p=Object.assign(Object.assign({},i),d.overlayStyle),h=Mm(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(z.createElement("div",{className:h,style:f},z.createElement("div",{className:`${l}-arrow`}),z.createElement(QN,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),o)))};const wP=z.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:v=!1,autoAdjustOverflow:y=!0}=e,w=!!h,[,x]=My(),{getPopupContainer:S,getPrefixCls:k,direction:C}=z.useContext(xy),E=uv(),O=z.useRef(null),D=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};z.useImperativeHandle(t,(()=>({forceAlign:D,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),D()}})));const[$,j]=Hy(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),N=!g&&!m&&0!==g,P=z.useMemo((()=>{var e,t;let n=v;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:v),b||fP({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[v,h,b,x]),_=z.useMemo((()=>0===g?g:m||g||""),[m,g]),I=z.createElement(xk,null,"function"==typeof _?_():_),{getPopupContainer:T,placement:F="top",mouseEnterDelay:R=.1,mouseLeaveDelay:A=.1,overlayStyle:M,rootClassName:L}=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 n,r;j(!N&&t),N||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:Z,arrowContent:z.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:rk(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),V?Xx(G,{className:X}):G);return K(z.createElement(mS.Provider,{value:ne},re))}));wP._InternalPanelDoNotUseOrYouWillBeFired=yP;const xP=wP;const SP={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 kP=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:SP}))};const CP=z.forwardRef(kP);var EP=nS.ESC,OP=nS.TAB;var DP=z.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=z.useMemo((function(){return"function"==typeof n?n():n}),[n]),i=lb(t,null==a?void 0:a.ref);return H.createElement(H.Fragment,null,r&&H.createElement("div",{className:"".concat(o,"-arrow")}),H.cloneElement(a,{ref:ub(a)?i:void 0}))})),$P={adjustX:1,adjustY:1},jP=[0,0],NP={topLeft:{points:["bl","tl"],overflow:$P,offset:[0,-4],targetOffset:jP},top:{points:["bc","tc"],overflow:$P,offset:[0,-4],targetOffset:jP},topRight:{points:["br","tr"],overflow:$P,offset:[0,-4],targetOffset:jP},bottomLeft:{points:["tl","bl"],overflow:$P,offset:[0,4],targetOffset:jP},bottom:{points:["tc","bc"],overflow:$P,offset:[0,4],targetOffset:jP},bottomRight:{points:["tr","br"],overflow:$P,offset:[0,4],targetOffset:jP}},PP=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function _P(e,t){var n,r=e.arrow,o=void 0!==r&&r,a=e.prefixCls,i=void 0===a?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,p=void 0===f?NP:f,h=e.getPopupContainer,g=e.showAction,m=e.hideAction,b=e.overlayClassName,v=e.overlayStyle,y=e.visible,w=e.trigger,x=void 0===w?["hover"]:w,S=e.autoFocus,k=e.overlay,C=e.children,E=e.onVisibleChange,O=Od(e,PP),D=og(H.useState(),2),$=D[0],j=D[1],N="visible"in e?y:$,P=H.useRef(null),_=H.useRef(null),I=H.useRef(null);H.useImperativeHandle(t,(function(){return P.current}));var T=function(e){j(e),null==E||E(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=z.useRef(!1),s=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),i.current=!0,0))},c=function(e){switch(e.keyCode){case EP:s();break;case OP:var t=!1;i.current||(t=l()),t?e.preventDefault():s()}};z.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&Zb(l,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}}),[t])}({visible:N,triggerRef:I,onVisibleChange:T,autoFocus:S,overlayRef:_});var F,R,A,M=function(){return H.createElement(DP,{ref:_,overlay:k,prefixCls:i,arrow:o})},L=H.cloneElement(C,{className:Mm(null===(n=C.props)||void 0===n?void 0:n.className,N&&(F=e.openClassName,void 0!==F?F:"".concat(i,"-open"))),ref:ub(C)?lb(I,C.ref):void 0}),B=m;return B||-1===x.indexOf("contextMenu")||(B=["click"]),H.createElement(cj,Bp({builtinPlacements:p},O,{prefixCls:i,ref:P,popupClassName:Mm(b,Ed({},"".concat(i,"-show-arrow"),o)),popupStyle:v,action:x,showAction:g,hideAction:B,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:N,stretch:(R=e.minOverlayWidthMatchTrigger,A=e.alignPoint,("minOverlayWidthMatchTrigger"in e?R:!A)?"minWidth":""),popup:"function"==typeof k?M:M(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;j(!1),n&&n(t)},getPopupContainer:h}),L)}const IP=H.forwardRef(_P);var TP=z.createContext(null);function FP(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function RP(e){return FP(z.useContext(TP),e)}var AP=["children","locked"],MP=z.createContext(null);function LP(e){var t=e.children,n=e.locked,r=Od(e,AP),o=z.useContext(MP),a=Dh((function(){return e=r,t=Eh({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&Ih(e[1],t[1],!0))}));return z.createElement(MP.Provider,{value:a},t)}var BP=[],zP=z.createContext(null);function HP(){return z.useContext(zP)}var WP=z.createContext(BP);function UP(e){var t=z.useContext(WP);return z.useMemo((function(){return void 0!==e?[].concat(kh(t),[e]):t}),[t,e])}var VP=z.createContext(null),GP=z.createContext({});function qP(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ok(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var XP=nS.LEFT,KP=nS.RIGHT,YP=nS.UP,QP=nS.DOWN,JP=nS.ENTER,ZP=nS.ESC,e_=nS.HOME,t_=nS.END,n_=[YP,QP,XP,KP];function r_(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=kh(e.querySelectorAll("*")).filter((function(e){return qP(e,t)}));return qP(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function o_(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=r_(e,t),a=o.length,i=o.findIndex((function(e){return n===e}));return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}function a_(e,t,n,r,o,a,i,s,l,c){var u=z.useRef(),d=z.useRef();d.current=t;var f=function(){Zb.cancel(u.current)};return z.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat(n_,[JP,ZP,e_,t_]).includes(h)){var g,m,b,v=function(){return g=new Set,m=new Map,b=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(FP(r,e),"']"));t&&(g.add(t),b.set(t,e),m.set(e,t))})),g};v();var y=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(m.get(t),g),w=b.get(y),x=function(e,t,n,r){var o,a,i,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&r===JP)return{inlineTrigger:!0};var f=(Ed(o={},YP,l),Ed(o,QP,c),o),p=(Ed(a={},XP,n?c:l),Ed(a,KP,n?l:c),Ed(a,QP,u),Ed(a,JP,u),a),h=(Ed(i={},YP,l),Ed(i,QP,c),Ed(i,JP,u),Ed(i,ZP,d),Ed(i,XP,n?u:d),Ed(i,KP,n?d:u),i);switch(null===(s={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===i(w,!0).length,n,h);if(!x&&h!==e_&&h!==t_)return;(n_.includes(h)||[e_,t_].includes(h))&&p.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=b.get(e);s(r),f(),u.current=Zb((function(){d.current===r&&t.focus()}))}};if([e_,t_].includes(h)||x.sibling||!y){var k,C,E=r_(k=y&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):o.current,g);C=h===e_?E[0]:h===t_?E[E.length-1]:o_(k,g,y,x.offset),S(C)}else if(x.inlineTrigger)l(w);else if(x.offset>0)l(w,!0),f(),u.current=Zb((function(){v();var e=y.getAttribute("aria-controls"),t=o_(document.getElementById(e),g);S(t)}),5);else if(x.offset<0){var O=i(w,!0),D=O[O.length-2],$=m.get(D);l(D,!1),S($)}}null==c||c(p)}}var i_="__RC_UTIL_PATH_SPLIT__",s_=function(e){return e.join(i_)},l_="rc-menu-more";function c_(){var e=og(z.useState({}),2)[1],t=z.useRef(new Map),n=z.useRef(new Map),r=og(z.useState([]),2),o=r[0],a=r[1],i=z.useRef(0),s=z.useRef(!1),l=z.useCallback((function(r,o){var a=s_(o);n.current.set(a,r),t.current.set(r,a),i.current+=1;var l,c=i.current;l=function(){c===i.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=z.useCallback((function(e,r){var o=s_(r);n.current.delete(o),t.current.delete(e)}),[]),u=z.useCallback((function(e){a(e)}),[]),d=z.useCallback((function(e,n){var r=t.current.get(e)||"",a=r.split(i_);return n&&o.includes(a[0])&&a.unshift(l_),a}),[o]),f=z.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),p=z.useCallback((function(e){var r="".concat(t.current.get(e)).concat(i_),o=new Set;return kh(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return z.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=kh(t.current.keys());return o.length&&e.push(l_),e},getSubPathKeys:p}}function u_(e){var t=z.useRef(e);t.current=e;var n=z.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(b.motionAppear=!1);var v=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||g(!0),null==v?void 0:v(e)},h?null:z.createElement(LP,{mode:a,locked:!f.current},z.createElement(Hw,Bp({visible:m},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,r=e.style;return z.createElement(D_,{id:t,className:n,style:r},o)})))}var R_=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],A_=["active"],M_=function(e){var t,n=e.style,r=e.className,o=e.title,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,p=e.popupStyle,h=e.onClick,g=e.onMouseEnter,m=e.onMouseLeave,b=e.onTitleClick,v=e.onTitleMouseEnter,y=e.onTitleMouseLeave,w=Od(e,R_),x=RP(a),S=z.useContext(MP),k=S.prefixCls,C=S.mode,E=S.openKeys,O=S.disabled,D=S.overflowDisabled,$=S.activeKey,j=S.selectedKeys,N=S.itemIcon,P=S.expandIcon,_=S.onItemClick,I=S.onOpenChange,T=S.onActive,F=z.useContext(GP)._internalRenderSubMenuItem,R=z.useContext(VP).isSubPathKey,A=UP(),M="".concat(k,"-submenu"),L=O||i,B=z.useRef(),H=z.useRef(),W=null!=c?c:N,U=null!=u?u:P,V=E.includes(a),G=!D&&V,q=R(j,a),X=p_(a,L,v,y),K=X.active,Y=Od(X,A_),Q=og(z.useState(!1),2),J=Q[0],Z=Q[1],ee=function(e){L||Z(e)},te=z.useMemo((function(){return K||"inline"!==C&&(J||R([$],a))}),[C,K,$,J,a,R]),ne=h_(A.length),re=u_((function(e){null==h||h(b_(e)),_(e)})),oe=x&&"".concat(x,"-popup"),ae=z.createElement("div",Bp({role:"menuitem",style:ne,className:"".concat(M,"-title"),tabIndex:L?null:-1,ref:B,title:"string"==typeof o?o:null,"data-menu-id":D&&x?null:x,"aria-expanded":G,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":L,onClick:function(e){L||(null==b||b({key:a,domEvent:e}),"inline"===C&&I(a,!V))},onFocus:function(){T(a)}},Y),o,z.createElement(g_,{icon:"horizontal"!==C?U:void 0,props:Eh(Eh({},e),{},{isOpen:G,isSubMenu:!0})},z.createElement("i",{className:"".concat(M,"-arrow")}))),ie=z.useRef(C);if("inline"!==C&&A.length>1?ie.current="vertical":ie.current=C,!D){var se=ie.current;ae=z.createElement(T_,{mode:se,prefixCls:M,visible:!s&&G&&"inline"!==C,popupClassName:d,popupOffset:f,popupStyle:p,popup:z.createElement(LP,{mode:"horizontal"===se?"vertical":se},z.createElement(D_,{id:oe,ref:H},l)),disabled:L,onVisibleChange:function(e){"inline"!==C&&I(a,e)}},ae)}var le=z.createElement(N$.Item,Bp({role:"none"},w,{component:"li",style:n,className:Mm(M,"".concat(M,"-").concat(C),r,(t={},Ed(t,"".concat(M,"-open"),G),Ed(t,"".concat(M,"-active"),te),Ed(t,"".concat(M,"-selected"),q),Ed(t,"".concat(M,"-disabled"),L),t)),onMouseEnter:function(e){ee(!0),null==g||g({key:a,domEvent:e})},onMouseLeave:function(e){ee(!1),null==m||m({key:a,domEvent:e})}}),ae,!D&&z.createElement(F_,{id:oe,open:G,keyPath:A},l));return F&&(le=F(le,e,{selected:q,active:te,open:G,disabled:L})),z.createElement(LP,{onItemClick:re,mode:"horizontal"===C?"vertical":C,itemIcon:W,expandIcon:U},le)};function L_(e){var t,n=e.eventKey,r=e.children,o=UP(n),a=$_(r,o),i=HP();return z.useEffect((function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}}),[o]),t=i?a:z.createElement(M_,e,a),z.createElement(WP.Provider,{value:o},t)}var B_=["className","title","eventKey","children"],z_=["children"],H_=function(e){var t=e.className,n=e.title;e.eventKey;var r=e.children,o=Od(e,B_),a=z.useContext(MP).prefixCls,i="".concat(a,"-item-group");return z.createElement("li",Bp({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:Mm(i,t)}),z.createElement("div",{role:"presentation",className:"".concat(i,"-title"),title:"string"==typeof n?n:void 0},n),z.createElement("ul",{role:"group",className:"".concat(i,"-list")},r))};function W_(e){var t=e.children,n=Od(e,z_),r=$_(t,UP(n.eventKey));return HP()?r:z.createElement(H_,qb(n,["warnKey"]),r)}function U_(e){var t=e.className,n=e.style,r=z.useContext(MP).prefixCls;return HP()?null:z.createElement("li",{role:"separator",className:Mm("".concat(r,"-item-divider"),t),style:n})}var V_=["label","children","key","type"];function G_(e){return(e||[]).map((function(e,t){if(e&&"object"===kd(e)){var n=e,r=n.label,o=n.children,a=n.key,i=n.type,s=Od(n,V_),l=null!=a?a:"tmp-".concat(t);return o||"group"===i?"group"===i?z.createElement(W_,Bp({key:l},s,{title:r}),G_(o)):z.createElement(L_,Bp({key:l},s,{title:r}),G_(o)):"divider"===i?z.createElement(U_,Bp({key:l},s)):z.createElement(C_,Bp({key:l},s),r)}return null})).filter((function(e){return e}))}function q_(e,t,n){var r=e;return t&&(r=G_(t)),$_(r,n)}var X_=["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"],K_=[],Y_=z.forwardRef((function(e,t){var n,r,o=e,a=o.prefixCls,i=void 0===a?"rc-menu":a,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,h=o.direction,g=o.id,m=o.mode,b=void 0===m?"vertical":m,v=o.inlineCollapsed,y=o.disabled,w=o.disabledOverflow,x=o.subMenuOpenDelay,S=void 0===x?.1:x,k=o.subMenuCloseDelay,C=void 0===k?.1:k,E=o.forceSubMenuRender,O=o.defaultOpenKeys,D=o.openKeys,$=o.activeKey,j=o.defaultActiveFirst,N=o.selectable,P=void 0===N||N,_=o.multiple,I=void 0!==_&&_,T=o.defaultSelectedKeys,F=o.selectedKeys,R=o.onSelect,A=o.onDeselect,M=o.inlineIndent,L=void 0===M?24:M,B=o.motion,H=o.defaultMotions,W=o.triggerSubMenuAction,U=void 0===W?"hover":W,V=o.builtinPlacements,G=o.itemIcon,q=o.expandIcon,X=o.overflowedIndicator,K=void 0===X?"...":X,Y=o.overflowedIndicatorPopupClassName,Q=o.getPopupContainer,J=o.onClick,Z=o.onOpenChange,ee=o.onKeyDown;o.openAnimation,o.openTransitionName;var te=o._internalRenderMenuItem,ne=o._internalRenderSubMenuItem,re=Od(o,X_),oe=z.useMemo((function(){return q_(p,f,K_)}),[p,f]),ae=og(z.useState(!1),2),ie=ae[0],se=ae[1],le=z.useRef(),ce=function(e){var t=og(Hy(e,{value:e}),2),n=t[0],r=t[1];return z.useEffect((function(){f_+=1;var e="".concat(d_,"-").concat(f_);r("rc-menu-uuid-".concat(e))}),[]),n}(g),ue="rtl"===h,de=og(Hy(O,{value:D,postState:function(e){return e||K_}}),2),fe=de[0],pe=de[1],he=function(e){function t(){pe(e),null==Z||Z(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?vd.flushSync(t):t()},ge=og(z.useState(fe),2),me=ge[0],be=ge[1],ve=z.useRef(!1),ye=og(z.useMemo((function(){return"inline"!==b&&"vertical"!==b||!v?[b,!1]:["vertical",v]}),[b,v]),2),we=ye[0],xe=ye[1],Se="inline"===we,ke=og(z.useState(we),2),Ce=ke[0],Ee=ke[1],Oe=og(z.useState(xe),2),De=Oe[0],$e=Oe[1];z.useEffect((function(){Ee(we),$e(xe),ve.current&&(Se?pe(me):he(K_))}),[we,xe]);var je=og(z.useState(0),2),Ne=je[0],Pe=je[1],_e=Ne>=oe.length-1||"horizontal"!==Ce||w;z.useEffect((function(){Se&&be(fe)}),[fe]),z.useEffect((function(){return ve.current=!0,function(){ve.current=!1}}),[]);var Ie=c_(),Te=Ie.registerPath,Fe=Ie.unregisterPath,Re=Ie.refreshOverflowKeys,Ae=Ie.isSubPathKey,Me=Ie.getKeyPath,Le=Ie.getKeys,Be=Ie.getSubPathKeys,ze=z.useMemo((function(){return{registerPath:Te,unregisterPath:Fe}}),[Te,Fe]),He=z.useMemo((function(){return{isSubPathKey:Ae}}),[Ae]);z.useEffect((function(){Re(_e?K_:oe.slice(Ne+1).map((function(e){return e.key})))}),[Ne,_e]);var We=og(Hy($||j&&(null===(n=oe[0])||void 0===n?void 0:n.key),{value:$}),2),Ue=We[0],Ve=We[1],Ge=u_((function(e){Ve(e)})),qe=u_((function(){Ve(void 0)}));z.useImperativeHandle(t,(function(){return{list:le.current,focus:function(e){var t,n,r,o,a=null!=Ue?Ue:null===(t=oe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;a&&(null===(n=le.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(FP(ce,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var Xe=og(Hy(T||[],{value:F,postState:function(e){return Array.isArray(e)?e:null==e?K_:[e]}}),2),Ke=Xe[0],Ye=Xe[1],Qe=u_((function(e){null==J||J(b_(e)),function(e){if(P){var t,n=e.key,r=Ke.includes(n);t=I?r?Ke.filter((function(e){return e!==n})):[].concat(kh(Ke),[n]):[n],Ye(t);var o=Eh(Eh({},e),{},{selectedKeys:t});r?null==A||A(o):null==R||R(o)}!I&&fe.length&&"inline"!==Ce&&he(K_)}(e)})),Je=u_((function(e,t){var n=fe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ce){var r=Be(e);n=n.filter((function(e){return!r.has(e)}))}Ih(fe,n,!0)||he(n,!0)})),Ze=a_(Ce,Ue,ue,ce,le,Le,Me,Ve,(function(e,t){var n=null!=t?t:!fe.includes(e);Je(e,n)}),ee);z.useEffect((function(){se(!0)}),[]);var et=z.useMemo((function(){return{_internalRenderMenuItem:te,_internalRenderSubMenuItem:ne}}),[te,ne]),tt="horizontal"!==Ce||w?oe:oe.map((function(e,t){return z.createElement(LP,{key:e.key,overflowDisabled:t>Ne},e)})),nt=z.createElement(N$,Bp({id:g,ref:le,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:C_,className:Mm(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ce),c,(r={},Ed(r,"".concat(i,"-inline-collapsed"),De),Ed(r,"".concat(i,"-rtl"),ue),r),s),dir:h,style:l,role:"menu",tabIndex:d,data:tt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?oe.slice(-t):null;return z.createElement(L_,{eventKey:l_,title:K,disabled:_e,internalPopupClose:0===t,popupClassName:Y},n)},maxCount:"horizontal"!==Ce||w?N$.INVALIDATE:N$.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Pe(e)},onKeyDown:Ze},re));return z.createElement(GP.Provider,{value:et},z.createElement(TP.Provider,{value:ce},z.createElement(LP,{prefixCls:i,rootClassName:s,mode:Ce,openKeys:fe,rtl:ue,disabled:y,motion:ie?B:null,defaultMotions:ie?H:null,activeKey:Ue,onActive:Ge,onInactive:qe,selectedKeys:Ke,inlineIndent:L,subMenuOpenDelay:S,subMenuCloseDelay:C,forceSubMenuRender:E,builtinPlacements:V,triggerSubMenuAction:U,getPopupContainer:Q,itemIcon:G,expandIcon:q,onItemClick:Qe,onOpenChange:Je},z.createElement(VP.Provider,{value:He},nt),z.createElement("div",{style:{display:"none"},"aria-hidden":!0},z.createElement(zP.Provider,{value:ze},oe)))))}));Y_.Item=C_,Y_.SubMenu=L_,Y_.ItemGroup=W_,Y_.Divider=U_;const Q_=z.createContext({});const J_=e=>{const{prefixCls:t,className:n,dashed:r}=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 t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=z.useContext(Z_),{siderCollapsed:f}=z.useContext(Q_);let p=a;void 0===a?p=l?r:"":!1===a&&(p="");const h={title:p};f||d||(h.title=null,h.open=!1);const g=ob(r).length;let m=z.createElement(C_,Object.assign({},qb(e,["title","icon","danger"]),{className:Mm({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof a?a:void 0}),Xx(o,{className:Mm(Gx(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=z.createElement("span",{className:`${s}-title-content`},r);return(!o||Gx(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?z.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(m=z.createElement(xP,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),m)),m},tI=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=z.useContext(Z_),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=UP();let d;if(r){const e=Gx(o)&&"span"===o.type;d=z.createElement(z.Fragment,null,Xx(r,{className:Mm(Gx(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:z.createElement("span",{className:`${s}-title-content`},o))}else d=l&&!u.length&&o&&"string"==typeof o?z.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):z.createElement("span",{className:`${s}-title-content`},o);const f=z.useMemo((()=>Object.assign(Object.assign({},i),{firstLevel:!1})),[i]),[p]=xS("Menu");return z.createElement(Z_.Provider,{value:f},z.createElement(L_,Object.assign({},qb(e,["icon"]),{title:d,popupClassName:Mm(s,n,`${s}-${a||c}`),popupStyle:{zIndex:p}})))};const nI={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 rI=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:nI}))};const oI=z.forwardRef(rI);var aI=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(e&&"object"==typeof e){const n=e,{label:r,children:o,key:a,type:i}=n,s=aI(n,["label","children","key","type"]),l=null!=a?a:`tmp-${t}`;return o||"group"===i?"group"===i?z.createElement(W_,Object.assign({key:l},s,{title:r}),iI(o)):z.createElement(tI,Object.assign({key:l},s,{title:r}),iI(o)):"divider"===i?z.createElement(J_,Object.assign({key:l},s)):z.createElement(eI,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function sI(e){return z.useMemo((()=>e?iI(e):e),[e])}const lI=z.createContext(null),cI=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${a}px ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${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"}}}},uI=e=>{let{componentCls:t,menuArrowOffset:n}=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(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},dI=e=>Object.assign({},Xy(e)),fI=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:S,dangerItemSelectedColor:k,dangerItemActiveBg:C,dangerItemSelectedBg:E,itemHoverBg:O,itemActiveBg:D,menuSubMenuBg:$,horizontalItemSelectedColor:j,horizontalItemSelectedBg:N,horizontalItemBorderRadius:P,horizontalItemHoverBg:_,popupBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},dI(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},dI(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:$},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:_,"&::after":{borderBottomWidth:c,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:c,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(",")}}}}}},pI=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+a+i}}},hI=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},pI(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},pI(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${2.5*i}px)`,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 ${s} ${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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,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% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:`${r}px`,"+ 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({},Uy),{paddingInline:p})}}]},gI=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,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`]:{[`> ${i}, > ${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"}}}},mI=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*a,height:.15*a,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},bI=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:g,lineType:m,menuPanelMaskInset:b,groupTitleLineHeight:v,groupTitleFontSize:y}=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({},Vy(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:`${s}px ${l}px`,fontSize:y,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),gI(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\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},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},gI(e)),mI(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),mI(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*h}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};const vI=z.forwardRef(((e,t)=>{var n,r;const o=z.useContext(lI),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=z.useContext(xy),u=i(),{prefixCls:d,className:f,style:p,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:b,siderCollapsed:v,items:y,children:w,rootClassName:x,mode:S,selectable:k,onClick:C,overflowedIndicatorPopupClassName:E}=e,O=qb(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!==v?v:b),[b,v]),_={horizontal:{motionName:`${u}-slide-up`},inline:nk(u),other:{motionName:`${u}-zoom-big`}},I=i("menu",d||a.prefixCls),[T,F]=((e,t)=>nw("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:a,fontSize:i,darkItemColor:s,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:f,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:m,darkItemDisabledColor:b,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:w}=e,x=i/7*5,S=Jy(e,{menuArrowSize:x,menuHorizontalHeight:1.15*a,menuArrowOffset:.25*x+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),k=Jy(S,{itemColor:s,itemHoverColor:m,groupTitleColor:g,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:f,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:v,dangerItemSelectedColor:y,dangerItemActiveBg:w,dangerItemSelectedBg:p,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[bI(S),cI(S),hI(S),fI(S,"light"),fI(k,"dark"),uI(S),rD(S),HO(S,"slide-up"),HO(S,"slide-down"),nD(S,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:a,colorTextDescription:i,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:h,lineHeight:g,colorBgElevated:m,marginXXS:b,padding:v,fontSize:y,controlHeightSM:w,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:k}=e,C=new zv(S).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:i,groupTitleColor:i,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:c,itemActiveBg:f,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:g,collapsedWidth:2*h,popupBg:m,itemMarginBlock:b,itemPaddingInline:v,horizontalLineHeight:1.15*h+"px",iconSize:y,iconMarginInlineEnd:w-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new zv(S).setAlpha(.25).toRgbString(),darkItemColor:C,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:C,darkItemHoverColor:S,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n}}),{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"]]})(e))(I,!o),R=Mm(`${I}-${h}`,null==c?void 0:c.className,f);let A;if("function"==typeof g)A=g;else if(null===g||!1===g)A=null;else if(null===a.expandIcon||!1===a.expandIcon)A=null;else{const e=null!=g?g:a.expandIcon;A=Xx(e,{className:Mm(`${I}-submenu-expand-icon`,Gx(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const M=z.useMemo((()=>({prefixCls:I,inlineCollapsed:P||!1,direction:l,firstLevel:!0,theme:h,mode:j,disableMenuItemTitleTooltip:m})),[I,P,l,m,h]);return T(z.createElement(lI.Provider,{value:null},z.createElement(Z_.Provider,{value:M},z.createElement(Y_,Object.assign({getPopupContainer:s,overflowedIndicator:z.createElement(oI,null),overflowedIndicatorPopupClassName:Mm(I,`${I}-${h}`,E),mode:j,selectable:N,onClick:$},O,{inlineCollapsed:P,style:Object.assign(Object.assign({},null==c?void 0:c.style),p),className:R,prefixCls:I,direction:l,defaultMotions:_,expandIcon:A,ref:t,rootClassName:Mm(x,F)}),D))))})),yI=vI,wI=z.forwardRef(((e,t)=>{const n=z.useRef(null),r=z.useContext(Q_);return z.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),z.createElement(yI,Object.assign({ref:n},e,r))}));wI.Item=eI,wI.SubMenu=tI,wI.Divider=J_,wI.ItemGroup=W_;const xI=wI,SI=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),kI=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),CI=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),EI=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},kI(Jy(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),OI=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},DI=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),$I=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},CI(Jy(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},CI(Jy(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},jI=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},SI(e.colorTextPlaceholder)),{"&:hover":Object.assign({},kI(e)),"&:focus, &:focus-within":Object.assign({},CI(e)),"&-disabled, &[disabled]":Object.assign({},EI(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},OI(e)),"&-sm":Object.assign({},DI(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),NI=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({},OI(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},DI(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 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${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":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",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.lineWidth,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":{zIndex:1},"&: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.lineWidth,[`${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}}}})}},PI=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vy(e)),jI(e)),$I(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},_I=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 ${e.inputAffixPadding}px`}}}},II=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jI(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-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}}}),_I(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),$I(e,`${t}-affix-wrapper`))}},TI=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Vy(e)),NI(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},EI(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}}}})}},FI=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`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,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 ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,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}}}}},RI=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.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,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"}}}}}},AI=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function MI(e){return Jy(e,{inputAffixPadding:e.paddingXXS})}const LI=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:b,colorWarningOutline:v}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${v}`,hoverBg:"",activeBg:""}},BI=nw("Input",(e=>{const t=Jy(e,MI(e));return[PI(t),RI(t),II(t),TI(t),FI(t),AI(t),uC(t)]}),LI),zI=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=Mm({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=Mm({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),l=z.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return z.createElement("span",{className:Mm(t,i,s,n),style:Object.assign(Object.assign({},l),r)})},HI=new Nm("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),WI=e=>({height:e,lineHeight:`${e}px`}),UI=e=>Object.assign({width:e},WI(e)),VI=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:HI,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),GI=e=>Object.assign({width:5*e,minWidth:5*e},WI(e)),qI=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},UI(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},UI(o)),[`${t}${t}-sm`]:Object.assign({},UI(a))}},XI=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},GI(t)),[`${r}-lg`]:Object.assign({},GI(o)),[`${r}-sm`]:Object.assign({},GI(a))}},KI=e=>Object.assign({width:e},WI(e)),YI=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},KI(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},KI(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},QI=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},JI=e=>Object.assign({width:2*e,minWidth:2*e},WI(e)),ZI=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:2*r,minWidth:2*r},JI(r))},QI(e,r,n)),{[`${n}-lg`]:Object.assign({},JI(o))}),QI(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},JI(a))}),QI(e,a,`${n}-sm`))},eT=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:b,controlHeightXS:v,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},UI(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},UI(c)),[`${n}-sm`]:Object.assign({},UI(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${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"},ZI(e)),qI(e)),XI(e)),YI(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${a},\n ${i},\n ${s}\n `]:Object.assign({},VI(e))}}},tT=nw("Skeleton",(e=>{const{componentCls:t}=e,n=Jy(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[eT(n)]}),(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"]]}),nT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=z.useContext(xy),l=s("skeleton",t),[c,u]=tT(l),d=qb(e,["prefixCls","className"]),f=Mm(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(z.createElement("div",{className:f},z.createElement(zI,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:i},d))))},rT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=z.useContext(xy),l=s("skeleton",t),[c,u]=tT(l),d=qb(e,["prefixCls"]),f=Mm(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(z.createElement("div",{className:f},z.createElement(zI,Object.assign({prefixCls:`${l}-button`,size:i},d))))},oT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=z.useContext(xy),s=i("skeleton",t),[l,c]=tT(s),u=Mm(s,`${s}-element`,{[`${s}-active`]:a},n,r,c);return l(z.createElement("div",{className:u},z.createElement("div",{className:Mm(`${s}-image`,n),style:o},z.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},z.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`})))))},aT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=z.useContext(xy),l=s("skeleton",t),[c,u]=tT(l),d=qb(e,["prefixCls"]),f=Mm(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(z.createElement("div",{className:f},z.createElement(zI,Object.assign({prefixCls:`${l}-input`,size:i},d))))};const iT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var sT=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:iT}))};const lT=z.forwardRef(sT),cT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=z.useContext(xy),l=s("skeleton",t),[c,u]=tT(l),d=Mm(l,`${l}-element`,{[`${l}-active`]:a},u,n,r),f=null!=i?i:z.createElement(lT,null);return c(z.createElement("div",{className:d},z.createElement("div",{className:Mm(`${l}-image`,n),style:o},f)))},uT=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:a}=e,i=kh(Array(a)).map(((e,n)=>z.createElement("li",{key:n,style:{width:t(n)}})));return z.createElement("ul",{className:Mm(n,r),style:o},i)},dT=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return z.createElement("h3",{className:Mm(t,n),style:Object.assign({width:r},o)})};function fT(e){return e&&"object"==typeof e?e:{}}const pT=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:p,skeleton:h}=z.useContext(xy),g=f("skeleton",t),[m,b]=tT(g);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let i,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),fT(s));i=z.createElement("div",{className:`${g}-header`},z.createElement(zI,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),fT(l));r=z.createElement(dT,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),fT(c));o=z.createElement(uT,Object.assign({},n))}f=z.createElement("div",{className:`${g}-content`},r,o)}const v=Mm(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===p,[`${g}-round`]:d},null==h?void 0:h.className,r,o,b);return m(z.createElement("div",{className:v,style:Object.assign(Object.assign({},null==h?void 0:h.style),a)},i,f))}return void 0!==i?i:null};pT.Button=rT,pT.Avatar=nT,pT.Input=aT,pT.Image=oT,pT.Node=cT;const hT=pT;const gT={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 mT=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:gT}))};const bT=z.forwardRef(mT),vT=z.createContext(null);var yT=z.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,l=e.children;return z.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:Mm(n,i&&"".concat(n,"-active"),r),ref:t},l)})),wT=["key","forceRender","style","className","destroyInactiveTabPane"];function xT(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=z.useContext(vT),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return z.createElement("div",{className:Mm("".concat(s,"-content-holder"))},z.createElement("div",{className:Mm("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Ed({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,i=e.forceRender,s=e.style,l=e.className,d=e.destroyInactiveTabPane,f=Od(e,wT),p=o===n;return z.createElement(Hw,Bp({key:o,visible:p,forceRender:i,removeOnLeave:!(!a&&!d),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return z.createElement(yT,Bp({},f,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:Eh(Eh({},s),r),className:Mm(l,a),ref:n}))}))}))))}var ST={width:0,height:0,left:0,top:0};function kT(e,t){var n=z.useRef(e),r=og(z.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var CT=.1,ET=.01,OT=20,DT=Math.pow(.995,OT);function $T(e){var t=og(z.useState(0),2),n=t[0],r=t[1],o=z.useRef(0),a=z.useRef();return a.current=e,wg((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var jT={width:0,height:0,left:0,top:0,right:0};function NT(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}var PT="TABS_DQ";function _T(e){return String(e).replace(/"/g,PT)}function IT(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function TT(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return r&&!1!==r.showAdd?z.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}const FT=z.forwardRef(TT);var RT=z.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var i={};return"object"!==kd(a)||z.isValidElement(a)?i.right=a:i=a,"right"===r&&(n=i.right),"left"===r&&(n=i.left),n?z.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}));function AT(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,s=e.moreIcon,l=void 0===s?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,m=e.onTabClick,b=e.getPopupContainer,v=e.popupClassName,y=og(z.useState(!1),2),w=y[0],x=y[1],S=og(z.useState(null),2),k=S[0],C=S[1],E="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),D=null!==k?"".concat(E,"-").concat(k):null,$=null==a?void 0:a.dropdownAriaLabel;var j=z.createElement(Y_,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),x(!1)},prefixCls:"".concat(O,"-menu"),id:E,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[k],"aria-label":void 0!==$?$:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,i=e.label,s=IT(t,o,f,n);return z.createElement(C_,{key:a,id:"".concat(E,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},z.createElement("span",null,i),s&&z.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,a)}},o||f.removeIcon||"×"))})));function N(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,a=0;at?"left":"right"})})),2),F=T[0],R=T[1],A=og(kT(0,(function(e,t){!I&&C&&C({direction:e>t?"top":"bottom"})})),2),M=A[0],L=A[1],B=og(z.useState([0,0]),2),H=B[0],W=B[1],U=og(z.useState([0,0]),2),V=U[0],G=U[1],q=og(z.useState([0,0]),2),X=q[0],K=q[1],Y=og(z.useState([0,0]),2),Q=Y[0],J=Y[1],Z=(r=new Map,o=z.useRef([]),a=og(z.useState({}),2)[1],i=z.useRef("function"==typeof r?r():r),s=$T((function(){var e=i.current;o.current.forEach((function(t){e=t(e)})),o.current=[],i.current=e,a({})})),[i.current,function(e){o.current.push(e),s()}]),ee=og(Z,2),te=ee[0],ne=ee[1],re=function(e,t,n){return z.useMemo((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||ST,a=o.left+o.width,i=0;ife?fe:e}I&&m?(de=0,fe=Math.max(0,ae-ce)):(de=Math.min(0,ce-ae),fe=0);var he=z.useRef(),ge=og(z.useState(),2),me=ge[0],be=ge[1];function ve(){be(Date.now())}function ye(){window.clearTimeout(he.current)}!function(e,t){var n=og(z.useState(),2),r=n[0],o=n[1],a=og(z.useState(0),2),i=a[0],s=a[1],l=og(z.useState(0),2),c=l[0],u=l[1],d=og(z.useState(),2),f=d[0],p=d[1],h=z.useRef(),g=z.useRef(),m=z.useRef(null);m.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],a=n.screenX,l=n.screenY;o({x:a,y:l});var c=a-r.x,d=l-r.y;t(c,d);var f=Date.now();s(f),u(f-i),p({x:c,y:d})}},onTouchEnd:function(){if(r&&(o(null),p(null),f)){var e=f.x/c,n=f.y/c,a=Math.abs(e),i=Math.abs(n);if(Math.max(a,i)i?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},z.useEffect((function(){function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){m.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){m.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(j,(function(e,t){function n(e,t){e((function(e){return pe(e+t)}))}return!!le&&(I?n(R,e):n(L,t),ye(),ve(),!0)})),z.useEffect((function(){return ye(),me&&(he.current=window.setTimeout((function(){be(0)}),100)),ye}),[me]);var we=function(e,t,n,r,o,a,i){var s,l,c,u=i.tabs,d=i.tabPosition,f=i.rtl;return["top","bottom"].includes(d)?(s="width",l=f?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),z.useMemo((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;oc+t){r=o-1;break}}for(var i=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||jT)[l]=r?[0,0]:[i,r]}),[e,t,r,o,a,c,d,u.map((function(e){return e.key})).join("_"),f])}(re,ce,I?F:M,ae,ie,se,Eh(Eh({},e),{},{tabs:u})),xe=og(we,2),Se=xe[0],ke=xe[1],Ce=Ly((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(I){var n=F;m?t.rightF+ce&&(n=t.right+t.width-ce):t.left<-F?n=-t.left:t.left+t.width>-F+ce&&(n=-(t.left+t.width-ce)),L(0),R(pe(n))}else{var r=M;t.top<-M?r=-t.top:t.top+t.height>-M+ce&&(r=-(t.top+t.height-ce)),R(0),L(pe(r))}})),Ee={};"top"===w||"bottom"===w?Ee[m?"marginRight":"marginLeft"]=x:Ee.marginTop=x;var Oe=u.map((function(e,t){var n=e.key;return z.createElement(LT,{id:p,prefixCls:c,key:n,tab:e,style:0===t?void 0:Ee,closable:e.closable,editable:v,active:n===g,renderWrapper:S,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){k(n,e)},onFocus:function(){Ce(n),ve(),j.current&&(m||(j.current.scrollLeft=0),j.current.scrollTop=0)}})})),De=function(){return ne((function(){var e,t=new Map,n=null===(e=N.current)||void 0===e?void 0:e.getBoundingClientRect();return u.forEach((function(e){var r,o=e.key,a=null===(r=N.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(_T(o),'"]'));if(a){var i=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,a=e.offsetLeft,i=e.getBoundingClientRect(),s=i.width,l=i.height,c=i.x,u=i.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,r,a,o]}(a,n),s=og(i,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(o,{width:l,height:c,left:u,top:d})}})),t}))};z.useEffect((function(){De()}),[u.map((function(e){return e.key})).join("_")]);var $e=$T((function(){var e=BT(O),t=BT(D),n=BT($);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=BT(_);K(r);var o=BT(P);J(o);var a=BT(N);G([a[0]-r[0],a[1]-r[1]]),De()})),je=u.slice(0,Se),Ne=u.slice(ke+1),Pe=[].concat(kh(je),kh(Ne)),_e=re.get(g),Ie=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicatorSize,a=og(z.useState(),2),i=a[0],s=a[1],l=z.useRef(),c=function(e){return"function"==typeof o?o(e):"number"==typeof o?o:e};function u(){Zb.cancel(l.current)}return z.useEffect((function(){var e={};return t&&(n?(r?(e.right=t.right+t.width/2,e.transform="translateX(50%)"):(e.left=t.left+t.width/2,e.transform="translateX(-50%)"),e.width=c(t.width)):(e.top=t.top+t.height/2,e.transform="translateY(-50%)",e.height=c(t.height))),u(),l.current=Zb((function(){s(e)})),u}),[t,n,r,o]),{style:i}}({activeTabOffset:_e,horizontal:I,rtl:m,indicatorSize:E}),Te=Ie.style;z.useEffect((function(){Ce()}),[g,de,fe,NT(_e),NT(re),I]),z.useEffect((function(){$e()}),[m]);var Fe,Re,Ae,Me,Le=!!Pe.length,Be="".concat(c,"-nav-wrap");return I?m?(Re=F>0,Fe=F!==fe):(Fe=F<0,Re=F!==de):(Ae=M<0,Me=M!==de),z.createElement(Gb,{onResize:$e},z.createElement("div",{ref:cb(t,O),role:"tablist",className:Mm("".concat(c,"-nav"),d),style:f,onKeyDown:function(){ve()}},z.createElement(RT,{ref:D,position:"left",extra:b,prefixCls:c}),z.createElement(Gb,{onResize:$e},z.createElement("div",{className:Mm(Be,(n={},Ed(n,"".concat(Be,"-ping-left"),Fe),Ed(n,"".concat(Be,"-ping-right"),Re),Ed(n,"".concat(Be,"-ping-top"),Ae),Ed(n,"".concat(Be,"-ping-bottom"),Me),n)),ref:j},z.createElement(Gb,{onResize:$e},z.createElement("div",{ref:N,className:"".concat(c,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(M,"px)"),transition:me?"none":void 0}},Oe,z.createElement(FT,{ref:_,prefixCls:c,locale:y,editable:v,style:Eh(Eh({},0===Oe.length?void 0:Ee),{},{visibility:Le?"hidden":null})}),z.createElement("div",{className:Mm("".concat(c,"-ink-bar"),Ed({},"".concat(c,"-ink-bar-animated"),h.inkBar)),style:Te}))))),z.createElement(MT,Bp({},e,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:P,prefixCls:c,tabs:Pe,className:!Le&&ue,tabMoving:!!me})),z.createElement(RT,{ref:$,position:"right",extra:b,prefixCls:c})))}const WT=z.forwardRef(HT);var UT=["renderTabBar"],VT=["label","key"];function GT(e){var t=e.renderTabBar,n=Od(e,UT),r=z.useContext(vT).tabs;return t?t(Eh(Eh({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Od(e,VT);return z.createElement(yT,Bp({tab:t,key:n,tabKey:n},r))}))}),WT):z.createElement(WT,n)}var qT=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],XT=0;function KT(e,t){var n,r=e.id,o=e.prefixCls,a=void 0===o?"rc-tabs":o,i=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=void 0===p?"top":p,g=e.tabBarGutter,m=e.tabBarStyle,b=e.tabBarExtraContent,v=e.locale,y=e.moreIcon,w=e.moreTransitionName,x=e.destroyInactiveTabPane,S=e.renderTabBar,k=e.onChange,C=e.onTabClick,E=e.onTabScroll,O=e.getPopupContainer,D=e.popupClassName,$=e.indicatorSize,j=Od(e,qT),N=z.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===kd(e)&&"key"in e}))}),[s]),P="rtl"===l,_=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}:Eh({inkBar:!0},"object"===kd(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),I=og(z.useState(!1),2),T=I[0],F=I[1];z.useEffect((function(){F(c$())}),[]);var R=og(Hy((function(){var e;return null===(e=N[0])||void 0===e?void 0:e.key}),{value:c,defaultValue:u}),2),A=R[0],M=R[1],L=og(z.useState((function(){return N.findIndex((function(e){return e.key===A}))})),2),B=L[0],H=L[1];z.useEffect((function(){var e,t=N.findIndex((function(e){return e.key===A}));-1===t&&(t=Math.max(0,Math.min(B,N.length-1)),M(null===(e=N[t])||void 0===e?void 0:e.key));H(t)}),[N.map((function(e){return e.key})).join("_"),A,B]);var W=og(Hy(null,{value:r}),2),U=W[0],V=W[1];z.useEffect((function(){r||(V("rc-tabs-".concat(XT)),XT+=1)}),[]);var G={id:U,activeKey:A,animated:_,tabPosition:h,rtl:P,mobile:T},q=Eh(Eh({},G),{},{editable:d,locale:v,moreIcon:y,moreTransitionName:w,tabBarGutter:g,onTabClick:function(e,t){null==C||C(e,t);var n=e!==A;M(e),n&&(null==k||k(e))},onTabScroll:E,extra:b,style:m,panes:null,getPopupContainer:O,popupClassName:D,indicatorSize:$});return z.createElement(vT.Provider,{value:{tabs:N,prefixCls:a}},z.createElement("div",Bp({ref:t,id:r,className:Mm(a,"".concat(a,"-").concat(h),(n={},Ed(n,"".concat(a,"-mobile"),T),Ed(n,"".concat(a,"-editable"),d),Ed(n,"".concat(a,"-rtl"),P),n),i)},j),z.createElement(GT,Bp({},q,{renderTabBar:S})),z.createElement(xT,Bp({destroyInactiveTabPane:x},G,{animated:_}))))}var YT=z.forwardRef(KT);const QT={motionAppear:!1,motionEnter:!0,motionLeave:!0};function JT(e,t){if(e)return e;return function(e){return e.filter((e=>e))}(ob(t).map((e=>{if(z.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,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,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}`}}}}},[HO(e,"slide-up"),HO(e,"slide-down")]]},eF=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},tF=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Vy(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:`${r}px 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({},Uy),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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"}}})}})}},nF=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=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:`${e.lineWidth}px ${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}px`,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:1.25*e.controlHeight,[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},rF=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},oF=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Ky(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},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},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},aF=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{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:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[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"}}}}},iF=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vy(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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},Ky(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),oF(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"}}}}}},sF=nw("Tabs",(e=>{const t=Jy(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[rF(t),aF(t),nF(t),tF(t),eF(t),iF(t),ZT(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",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 lF=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:f,style:p,indicatorSize:h}=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{let{key:n,event:r}=t;null==a||a("add"===e?r:n,e)},removeIcon:z.createElement(Tx,null),addIcon:l||z.createElement(bT,null),showAdd:!0!==i});const O=w(),D=JT(d,u),$=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({},QT),{motionName:rk(e,"switch")})),t}(S,f),j=pk(o),N=Object.assign(Object.assign({},null==y?void 0:y.style),p);return k(z.createElement(YT,Object.assign({direction:v,getPopupContainer:x,moreTransitionName:`${O}-slide-up`},g,{items:D,className:Mm({[`${S}-${j}`]:j,[`${S}-card`]:["card","editable-card"].includes(t),[`${S}-editable-card`]:"editable-card"===t,[`${S}-centered`]:s},null==y?void 0:y.className,n,r,C),popupClassName:Mm(c,C),style:N,editable:E,moreIcon:b,prefixCls:S,animated:$,indicatorSize:null!=h?h:null==y?void 0:y.indicatorSize})))};lF.TabPane=()=>null;const cF=lF,uF=z.createContext({}),dF=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"}}}},fF=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},pF=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let a=r;a>=0;a--)0===a?(o[`${n}${t}-${a}`]={display:"none"},o[`${n}-push-${a}`]={insetInlineStart:"auto"},o[`${n}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${a}`]={marginInlineStart:0},o[`${n}${t}-order-${a}`]={order:0}):(o[`${n}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/r*100}%`,maxWidth:a/r*100+"%"}],o[`${n}${t}-push-${a}`]={insetInlineStart:a/r*100+"%"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:a/r*100+"%"},o[`${n}${t}-offset-${a}`]={marginInlineStart:a/r*100+"%"},o[`${n}${t}-order-${a}`]={order:a});return o})(e,t),hF=nw("Grid",(e=>[dF(e)])),gF=nw("Grid",(e=>{const t=Jy(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[fF(t),pF(t,""),pF(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},pF(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));const mF=["xs","sm","md","lg","xl","xxl"],bF=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=z.useContext(xy),{gutter:o,wrap:a}=z.useContext(uF),{prefixCls:i,span:s,order:l,offset:c,push:u,pull:d,className:f,children:p,flex:h,style:g}=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{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete m[t],w=Object.assign(Object.assign({},w),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${b}-rtl`]:"rtl"===r})}));const x=Mm(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},f,w,y),S={};if(o&&o[0]>0){const e=o[0]/2;S.paddingLeft=e,S.paddingRight=e}return h&&(S.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(h),!1!==a||S.minWidth||(S.minWidth=0)),v(z.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign({},S),g),className:x,ref:t}),p))})),vF=bF;function yF(e,t){const[n,r]=z.useState("string"==typeof e?e:"");return z.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=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{const e=w.subscribe((e=>{m(e);const t=y.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 x=d("row",n),[S,k]=hF(x),C=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?C[0]/-2:void 0;D&&(O.marginLeft=D,O.marginRight=D),[,O.rowGap]=C;const[$,j]=C,N=z.useMemo((()=>({gutter:[$,j],wrap:c})),[$,j,c]);return S(z.createElement(uF.Provider,{value:N},z.createElement("div",Object.assign({},u,{className:E,style:Object.assign(Object.assign({},O),i),ref:t}),s)))})),xF=wF;const SF={useBreakpoint:function(){return YN()}};var kF=H.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,l=e.isActive,c=e.role,u=og(H.useState(l||o),2),d=u[0],f=u[1];return H.useEffect((function(){(o||l)&&f(!0)}),[o,l]),d?H.createElement("div",{ref:t,className:Mm("".concat(r,"-content"),(n={},Ed(n,"".concat(r,"-content-active"),l),Ed(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},H.createElement("div",{className:"".concat(r,"-content-box")},s)):null}));kF.displayName="PanelContent";var CF=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],EF=H.forwardRef((function(e,t){var n,r,o=e.showArrow,a=void 0===o||o,i=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,f=e.collapsible,p=e.accordion,h=e.panelKey,g=e.extra,m=e.header,b=e.expandIcon,v=e.openMotion,y=e.destroyInactivePanel,w=e.children,x=Od(e,CF),S="disabled"===f,k="header"===f,C="icon"===f,E=null!=g&&"boolean"!=typeof g,O=function(){null==l||l(h)},D="function"==typeof b?b(e):H.createElement("i",{className:"arrow"});D&&(D=H.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?O:void 0},D));var $=Mm((Ed(n={},"".concat(d,"-item"),!0),Ed(n,"".concat(d,"-item-active"),s),Ed(n,"".concat(d,"-item-disabled"),S),n),u),j={className:Mm(i,(Ed(r={},"".concat(d,"-header"),!0),Ed(r,"".concat(d,"-header-collapsible-only"),k),Ed(r,"".concat(d,"-icon-collapsible-only"),C),r)),"aria-expanded":s,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==nS.ENTER&&e.which!==nS.ENTER||O()}};return k||C||(j.onClick=O,j.role=p?"tab":"button",j.tabIndex=S?-1:0),H.createElement("div",Bp({},x,{ref:t,className:$}),H.createElement("div",j,a&&D,H.createElement("span",{className:"".concat(d,"-header-text"),onClick:"header"===f?O:void 0},m),E&&H.createElement("div",{className:"".concat(d,"-extra")},g)),H.createElement(Hw,Bp({visible:s,leavedClassName:"".concat(d,"-content-hidden")},v,{forceRender:c,removeOnLeave:y}),(function(e,t){var n=e.className,r=e.style;return H.createElement(kF,{ref:t,prefixCls:d,className:n,style:r,isActive:s,forceRender:c,role:p?"tabpanel":void 0},w)})))})),OF=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function DF(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,a=t.destroyInactivePanel,i=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u=e.children,d=e.label,f=e.key,p=e.collapsible,h=e.onItemClick,g=e.destroyInactivePanel,m=Od(e,OF),b=String(null!=f?f:t),v=null!=p?p:o,y=null!=g?g:a,w=!1;return w=r?s[0]===b:s.indexOf(b)>-1,H.createElement(EF,Bp({},m,{prefixCls:n,key:b,panelKey:b,isActive:w,accordion:r,openMotion:l,expandIcon:c,header:d,collapsible:v,onItemClick:function(e){"disabled"!==v&&(i(e),null==h||h(e))},destroyInactivePanel:y}),u)}))}(e,n):ob(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,d=e.key||String(t),f=e.props,p=f.header,h=f.headerClass,g=f.destroyInactivePanel,m=f.collapsible,b=f.onItemClick,v=!1;v=o?l[0]===d:l.indexOf(d)>-1;var y=null!=m?m:a,w={key:d,panelKey:d,header:p,headerClass:h,isActive:v,prefixCls:r,destroyInactivePanel:null!=g?g:i,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==y&&(s(e),null==b||b(e))},expandIcon:u,collapsible:y};return"string"==typeof e.type?e:(Object.keys(w).forEach((function(e){void 0===w[e]&&delete w[e]})),H.cloneElement(e,w))}(e,t,n)}))}function $F(e){var t=e;if(!Array.isArray(t)){var n=kd(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var jF=H.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,a=void 0!==o&&o,i=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,p=e.activeKey,h=e.defaultActiveKey,g=e.onChange,m=e.items,b=Mm(r,l),v=og(Hy([],{value:p,onChange:function(e){return null==g?void 0:g(e)},defaultValue:h,postState:$F}),2),y=v[0],w=v[1];_h(!c,"`children` will be removed in next major version. Please use `items` instead.");var x=DF(m,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:a,onItemClick:function(e){return w((function(){return s?y[0]===e?[]:[e]:y.indexOf(e)>-1?y.filter((function(t){return t!==e})):[].concat(kh(y),[e])}))},activeKey:y});return H.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},x)}));const NF=Object.assign(jF,{Panel:EF});NF.Panel;const PF=z.forwardRef(((e,t)=>{const{getPrefixCls:n}=z.useContext(xy),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=Mm({[`${i}-no-arrow`]:!a},o);return z.createElement(NF.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))})),_F=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSize:g,fontSizeLG:m,lineHeight:b,marginSM:v,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:S,fontSizeIcon:k,contentPadding:C}=e,E=`${c}px ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Vy(e)),{backgroundColor:o,border:E,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:b,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${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:k,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:C},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:y-x}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:m,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:m*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},IF=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},TF=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}}}},FF=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}}}}}},RF=nw("Collapse",(e=>{const t=Jy(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[_F(t),TF(t),FF(t),IF(t),rD(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),AF=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=z.useContext(xy),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:p,expandIcon:h}=e,g=pk((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),m=n("collapse",a),b=n(),[v,y]=RF(m),w=z.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),x=Mm(`${m}-icon-position-${w}`,{[`${m}-borderless`]:!c,[`${m}-rtl`]:"rtl"===r,[`${m}-ghost`]:!!u,[`${m}-${g}`]:"middle"!==g},null==o?void 0:o.className,i,s,y),S=Object.assign(Object.assign({},nk(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),k=z.useMemo((()=>p?ob(p).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:a}=e.props;return Xx(e,Object.assign(Object.assign({},qb(e.props,["disabled"])),{key:n,collapsible:null!=a?a:o?"disabled":void 0}))}return e})):null),[p]);return v(z.createElement(NF,Object.assign({ref:t,openMotion:S},qb(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=h?h(e):z.createElement(CP,{rotate:e.isActive?90:void 0});return Xx(t,(()=>({className:Mm(t.props.className,`${m}-arrow`)})))},prefixCls:m,className:x,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),k))})),MF=Object.assign(AF,{Panel:PF}),LF=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Vy(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*i+"%"},"&::after":{width:100-100*i+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*i+"%"},"&::after":{width:100*i+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 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},[`&-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}}})}},BF=nw("Divider",(e=>{const t=Jy(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[LF(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})));const zF=e=>{const{getPrefixCls:t,direction:n,divider:r}=z.useContext(xy),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:p}=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);o0?`-${i}`:i,y=!!u,w="left"===i&&null!=s,x="right"===i&&null!=s,S=Mm(g,null==r?void 0:r.className,b,`${g}-${a}`,{[`${g}-with-text`]:y,[`${g}-with-text${v}`]:y,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!f,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:w,[`${g}-no-default-orientation-margin-right`]:x},l,c),k=z.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),C=Object.assign(Object.assign({},w&&{marginLeft:k}),x&&{marginRight:k});return m(z.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==r?void 0:r.style),p)},h,{role:"separator"}),u&&"vertical"!==a&&z.createElement("span",{className:`${g}-inner-text`,style:C},u)))};const HF={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 WF=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:HF}))};const UF=z.forwardRef(WF);function VF(){return"function"==typeof BigInt}function GF(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function qF(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("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function XF(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function KF(e){var t=String(e);if(XF(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(".")&&QF(t)?t.length-t.indexOf(".")-1:0}function YF(e){var t=String(e);if(XF(e)){if(e>Number.MAX_SAFE_INTEGER)return String(VF()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":qF("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),ZF=function(){function e(t){nf(this,e),Ed(this,"origin",""),Ed(this,"number",void 0),Ed(this,"empty",void 0),GF(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return of(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.isInvalidate()?"":YF(this.number):this.origin}}]),e}();function eR(e){return VF()?new JF(e):new ZF(e)}function tR(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=qF(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);return u>=5&&!r?tR(eR(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}function nR(e){return!(!e.addonBefore&&!e.addonAfter)}function rR(e){return!!(e.prefix||e.suffix||e.allowClear)}function oR(e,t,n,r){if(n){var o=t;if("click"===t.type){var a=e.cloneNode(!0);return o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),"file"!==e.type&&(e.value=r),void n(o);n(o)}}function aR(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 iR=function(e){var t,n,r=e.inputElement,o=e.prefixCls,a=e.prefix,i=e.suffix,s=e.addonBefore,l=e.addonAfter,c=e.className,u=e.style,d=e.disabled,f=e.readOnly,p=e.focused,h=e.triggerFocus,g=e.allowClear,m=e.value,b=e.handleReset,v=e.hidden,y=e.classes,w=e.classNames,x=e.dataAttrs,S=e.styles,k=e.components,C=(null==k?void 0:k.affixWrapper)||"span",E=(null==k?void 0:k.groupWrapper)||"span",O=(null==k?void 0:k.wrapper)||"span",D=(null==k?void 0:k.groupAddon)||"span",$=z.useRef(null),j=z.cloneElement(r,{value:m,hidden:v,className:Mm(null===(t=r.props)||void 0===t?void 0:t.className,!rR(e)&&!nR(e)&&c)||null,style:Eh(Eh({},null===(n=r.props)||void 0===n?void 0:n.style),rR(e)||nR(e)?{}:u)});if(rR(e)){var N,P="".concat(o,"-affix-wrapper"),_=Mm(P,(Ed(N={},"".concat(P,"-disabled"),d),Ed(N,"".concat(P,"-focused"),p),Ed(N,"".concat(P,"-readonly"),f),Ed(N,"".concat(P,"-input-with-clear-btn"),i&&g&&m),N),!nR(e)&&c,null==y?void 0:y.affixWrapper,null==w?void 0:w.affixWrapper),I=(i||g)&&H.createElement("span",{className:Mm("".concat(o,"-suffix"),null==w?void 0:w.suffix),style:null==S?void 0:S.suffix},function(){var e;if(!g)return null;var t=!d&&!f&&m,n="".concat(o,"-clear-icon"),r="object"===kd(g)&&null!=g&&g.clearIcon?g.clearIcon:"✖";return H.createElement("span",{onClick:b,onMouseDown:function(e){return e.preventDefault()},className:Mm(n,(e={},Ed(e,"".concat(n,"-hidden"),!t),Ed(e,"".concat(n,"-has-suffix"),!!i),e)),role:"button",tabIndex:-1},r)}(),i);j=H.createElement(C,Bp({className:_,style:Eh(Eh({},nR(e)?void 0:u),null==S?void 0:S.affixWrapper),hidden:!nR(e)&&v,onClick:function(e){var t;null!==(t=$.current)&&void 0!==t&&t.contains(e.target)&&(null==h||h())}},null==x?void 0:x.affixWrapper,{ref:$}),a&&H.createElement("span",{className:Mm("".concat(o,"-prefix"),null==w?void 0:w.prefix),style:null==S?void 0:S.prefix},a),z.cloneElement(r,{value:m,hidden:null}),I)}if(nR(e)){var T="".concat(o,"-group"),F="".concat(T,"-addon"),R=Mm("".concat(o,"-wrapper"),T,null==y?void 0:y.wrapper),A=Mm("".concat(o,"-group-wrapper"),c,null==y?void 0:y.group);return H.createElement(E,{className:A,style:u,hidden:v},H.createElement(O,{className:R},s&&H.createElement(D,{className:F},s),z.cloneElement(j,{hidden:null}),l&&H.createElement(D,{className:F},l)))}return j},sR=["show"];function lR(e,t){return z.useMemo((function(){var n={};t&&(n.show="object"===kd(t)&&t.formatter?t.formatter:!!t);var r=n=Eh(Eh({},n),e),o=r.show,a=Od(r,sR);return Eh(Eh({},a),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:a.strategy||function(e){return e.length}})}),[e,t])}var cR=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],uR=z.forwardRef((function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=void 0===l?"rc-input":l,u=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,g=e.showCount,m=e.count,b=e.type,v=void 0===b?"text":b,y=e.classes,w=e.classNames,x=e.styles,S=e.onCompositionStart,k=e.onCompositionEnd,C=Od(e,cR),E=og(z.useState(!1),2),O=E[0],D=E[1],$=H.useRef(!1),j=z.useRef(null),N=function(e){j.current&&aR(j.current,e)},P=og(Hy(e.defaultValue,{value:e.value}),2),_=P[0],I=P[1],T=null==_?"":String(_),F=og(H.useState(null),2),R=F[0],A=F[1],M=lR(m,g),L=M.max||p,B=M.strategy(T),W=!!L&&B>L;z.useImperativeHandle(t,(function(){return{focus:N,blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=j.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=j.current)||void 0===e||e.select()},input:j.current}})),z.useEffect((function(){D((function(e){return(!e||!u)&&e}))}),[u]);var U=function(e,t){var n,o,a=t;!$.current&&M.exceedFormatter&&M.max&&M.strategy(t)>M.max&&(t!==(a=M.exceedFormatter(t,{max:M.max}))&&A([(null===(n=j.current)||void 0===n?void 0:n.selectionStart)||0,(null===(o=j.current)||void 0===o?void 0:o.selectionEnd)||0]));I(a),j.current&&oR(j.current,e,r,a)};H.useEffect((function(){var e;R&&(null===(e=j.current)||void 0===e||e.setSelectionRange.apply(e,kh(R)))}),[R]);var V,G=function(e){U(e,e.target.value)},q=function(e){$.current=!1,U(e,e.currentTarget.value),null==k||k(e)},X=function(e){i&&"Enter"===e.key&&i(e),null==s||s(e)},K=function(e){D(!0),null==o||o(e)},Y=function(e){D(!1),null==a||a(e)},Q=W&&"".concat(c,"-out-of-range");return H.createElement(iR,Bp({},C,{prefixCls:c,className:Mm(f,Q),inputElement:(V=qb(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),H.createElement("input",Bp({autoComplete:n},V,{onChange:G,onFocus:K,onBlur:Y,onKeyDown:X,className:Mm(c,Ed({},"".concat(c,"-disabled"),u),null==w?void 0:w.input),style:null==x?void 0:x.input,ref:j,size:d,type:v,onCompositionStart:function(e){$.current=!0,null==S||S(e)},onCompositionEnd:q}))),handleReset:function(e){I(""),N(),j.current&&oR(j.current,e,r)},value:T,focused:O,triggerFocus:N,suffix:function(){var e=Number(L)>0;if(h||M.show){var t=M.showFormatter?M.showFormatter({value:T,count:B,maxLength:L}):"".concat(B).concat(e?" / ".concat(L):"");return H.createElement(H.Fragment,null,M.show&&H.createElement("span",{className:Mm("".concat(c,"-show-count-suffix"),Ed({},"".concat(c,"-show-count-has-suffix"),!!h),null==w?void 0:w.count),style:Eh({},null==x?void 0:x.count)},t),h)}return null}(),disabled:u,classes:y,classNames:w,styles:x}))}));function dR(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=z.useRef(),l=z.useRef([]),c=z.useRef();c.current=i;var u,d,f,p=function(){clearTimeout(s.current)},h=function(e,t){e.preventDefault(),p(),c.current(t),s.current=setTimeout((function e(){c.current(t),s.current=setTimeout(e,200)}),600)};if(z.useEffect((function(){return function(){p(),l.current.forEach((function(e){return Zb.cancel(e)}))}}),[]),u=og(z.useState(!1),2),d=u[0],f=u[1],yg((function(){f(c$())}),[]),d)return null;var g="".concat(t,"-handler"),m=Mm(g,"".concat(g,"-up"),Ed({},"".concat(g,"-up-disabled"),o)),b=Mm(g,"".concat(g,"-down"),Ed({},"".concat(g,"-down-disabled"),a)),v=function(){return l.current.push(Zb(p))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return z.createElement("div",{className:"".concat(g,"-wrap")},z.createElement("span",Bp({},y,{onMouseDown:function(e){h(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||z.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),z.createElement("span",Bp({},y,{onMouseDown:function(e){h(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:b}),r||z.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function fR(e){var t="number"==typeof e?YF(e):qF(e).fullStr;return t.includes(".")?qF(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var pR=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],hR=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],gR=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},mR=function(e){var t=eR(e);return t.isInvalidate()?null:t},bR=z.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-input-number":r,a=e.className,i=e.style,s=e.min,l=e.max,c=e.step,u=void 0===c?1:c,d=e.defaultValue,f=e.value,p=e.disabled,h=e.readOnly,g=e.upHandler,m=e.downHandler,b=e.keyboard,v=e.controls,y=void 0===v||v,w=e.classNames,x=e.stringMode,S=e.parser,k=e.formatter,C=e.precision,E=e.decimalSeparator,O=e.onChange,D=e.onInput,$=e.onPressEnter,j=e.onStep,N=e.changeOnBlur,P=void 0===N||N,_=Od(e,pR),I="".concat(o,"-input"),T=z.useRef(null),F=og(z.useState(!1),2),R=F[0],A=F[1],M=z.useRef(!1),L=z.useRef(!1),B=z.useRef(!1),H=og(z.useState((function(){return eR(null!=f?f:d)})),2),W=H[0],U=H[1];var V=z.useCallback((function(e,t){if(!t)return C>=0?C:Math.max(KF(e),KF(u))}),[C,u]),G=z.useCallback((function(e){var t=String(e);if(S)return S(t);var n=t;return E&&(n=n.replace(E,".")),n.replace(/[^\w.-]+/g,"")}),[S,E]),q=z.useRef(""),X=z.useCallback((function(e,t){if(k)return k(e,{userTyping:t,input:String(q.current)});var n="number"==typeof e?YF(e):e;if(!t){var r=V(n,t);if(QF(n)&&(E||r>=0))n=tR(n,E||".",r)}return n}),[k,V,E]),K=og(z.useState((function(){var e=null!=d?d:f;return W.isInvalidate()&&["string","number"].includes(kd(e))?Number.isNaN(e)?"":e:X(W.toString(),!1)})),2),Y=K[0],Q=K[1];function J(e,t){Q(X(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}q.current=Y;var Z,ee,te,ne,re,oe=z.useMemo((function(){return mR(l)}),[l,C]),ae=z.useMemo((function(){return mR(s)}),[s,C]),ie=z.useMemo((function(){return!(!oe||!W||W.isInvalidate())&&oe.lessEquals(W)}),[oe,W]),se=z.useMemo((function(){return!(!ae||!W||W.isInvalidate())&&W.lessEquals(ae)}),[ae,W]),le=(Z=T.current,ee=R,te=z.useRef(null),[function(){try{var e=Z.selectionStart,t=Z.selectionEnd,n=Z.value,r=n.substring(0,e),o=n.substring(t);te.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(A4){}},function(){if(Z&&te.current&&ee)try{var e=Z.value,t=te.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,a=e.length;if(e.endsWith(r))a=e.length-te.current.afterTxt.length;else if(e.startsWith(n))a=n.length;else{var i=n[o-1],s=e.indexOf(i,o-1);-1!==s&&(a=s+1)}Z.setSelectionRange(a,a)}catch(A4){_h(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(A4.message))}}]),ce=og(le,2),ue=ce[0],de=ce[1],fe=function(e){return oe&&!e.lessEquals(oe)?oe:ae&&!ae.lessEquals(e)?ae:null},pe=function(e){return!fe(e)},he=function(e,t){var n,r=e,o=pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=fe(r)||r,o=!0),!h&&!p&&o){var a=r.toString(),i=V(a,t);return i>=0&&(r=eR(tR(a,".",i)),pe(r)||(r=eR(tR(a,".",i,!0)))),r.equals(W)||(n=r,void 0===f&&U(n),null==O||O(r.isEmpty()?null:gR(x,r)),void 0===f&&J(r,t)),r}return W},ge=(ne=z.useRef(0),re=function(){Zb.cancel(ne.current)},z.useEffect((function(){return re}),[]),function(e){re(),ne.current=Zb((function(){e()}))}),me=function e(t){if(ue(),q.current=t,Q(t),!L.current){var n=eR(G(t));n.isNaN()||he(n,!0)}null==D||D(t),ge((function(){var n=t;S||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},be=function(e){var t;if(!(e&&ie||!e&&se)){M.current=!1;var n=eR(B.current?fR(u):u);e||(n=n.negate());var r=(W||eR(0)).add(n.toString()),o=he(r,!1);null==j||j(gR(x,o),{offset:B.current?fR(u):u,type:e?"up":"down"}),null===(t=T.current)||void 0===t||t.focus()}},ve=function(e){var t=eR(G(Y)),n=t;n=t.isNaN()?he(W,e):he(t,e),void 0!==f?J(W,!1):n.isNaN()||J(n,!1)};return wg((function(){W.isInvalidate()||J(W,!1)}),[C,k]),wg((function(){var e=eR(f);U(e);var t=eR(G(Y));e.equals(t)&&M.current&&!k||J(e,M.current)}),[f]),wg((function(){k&&de()}),[Y]),z.createElement("div",{className:Mm(o,null==w?void 0:w.input,a,(n={},Ed(n,"".concat(o,"-focused"),R),Ed(n,"".concat(o,"-disabled"),p),Ed(n,"".concat(o,"-readonly"),h),Ed(n,"".concat(o,"-not-a-number"),W.isNaN()),Ed(n,"".concat(o,"-out-of-range"),!W.isInvalidate()&&!pe(W)),n)),style:i,onFocus:function(){A(!0)},onBlur:function(){P&&ve(!1),A(!1),M.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;M.current=!0,B.current=n,"Enter"===t&&(L.current||(M.current=!1),ve(!1),null==$||$(e)),!1!==b&&!L.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(be("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){M.current=!1,B.current=!1},onCompositionStart:function(){L.current=!0},onCompositionEnd:function(){L.current=!1,me(T.current.value)},onBeforeInput:function(){M.current=!0}},y&&z.createElement(dR,{prefixCls:o,upNode:g,downNode:m,upDisabled:ie,downDisabled:se,onStep:be}),z.createElement("div",{className:"".concat(I,"-wrap")},z.createElement("input",Bp({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},_,{ref:lb(T,t),className:I,value:Y,onChange:function(e){me(e.target.value)},disabled:p,readOnly:h}))))})),vR=z.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,f=e.classNames,p=Od(e,hR),h=z.useRef(null);return z.createElement(iR,{inputElement:z.createElement(bR,Bp({prefixCls:o,disabled:n,classNames:f,ref:lb(h,t)},p)),className:d,triggerFocus:function(e){h.current&&aR(h.current,e)},prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}));vR.displayName="InputNumber";const yR=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},wR=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:f,handleHoverColor:p,paddingInline:h,paddingBlock:g,handleBg:m,handleActiveBg:b,colorTextDisabled:v,borderRadiusSM:y,borderRadiusLG:w,controlWidth:x,handleVisible:S,handleBorderColor:k}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vy(e)),jI(e)),$I(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Vy(e)),NI(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},EI(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Vy(e)),{width:"100%",padding:`${g}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),SI(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:!0===S?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${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:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${k}`,transition:`all ${f} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:p}},"&-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:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${k}`,borderEndEndRadius:a}},yR(e,"lg")),yR(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:v}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},xR=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},jI(e)),$I(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-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"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},SR=nw("InputNumber",(e=>{const t=Jy(e,MI(e));return[wR(t),xR(t),uC(t)]}),(e=>Object.assign(Object.assign({},LI(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder})));const kR=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=z.useContext(xy),o=z.useRef(null);z.useImperativeHandle(t,(()=>o.current));const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:p=!0,readOnly:h,status:g,controls:m}=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 t;return null!==(t=null!=s?s:x)&&void 0!==t?t:e})),_=z.useContext(Oy),I=null!=l?l:_,T=Mm({[`${v}-lg`]:"large"===P,[`${v}-sm`]:"small"===P,[`${v}-rtl`]:"rtl"===r,[`${v}-borderless`]:!p,[`${v}-in-form-item`]:$},rN(v,N),w),F=`${v}-group`,R=O&&z.createElement(z.Fragment,null,j);return y(z.createElement(vR,Object.assign({ref:o,disabled:I,className:Mm(a,i,S),upHandler:k,downHandler:C,prefixCls:v,readOnly:h,controls:E,prefix:f,suffix:R,addonAfter:d&&z.createElement(xk,null,z.createElement(dO,{override:!0,status:!0},d)),addonBefore:u&&z.createElement(xk,null,z.createElement(dO,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:Mm(rN(`${v}-affix-wrapper`,N,O),{[`${v}-affix-wrapper-sm`]:"small"===P,[`${v}-affix-wrapper-lg`]:"large"===P,[`${v}-affix-wrapper-rtl`]:"rtl"===r,[`${v}-affix-wrapper-borderless`]:!p},w),wrapper:Mm({[`${F}-rtl`]:"rtl"===r,[`${v}-wrapper-disabled`]:I},w),group:Mm({[`${v}-group-wrapper-sm`]:"small"===P,[`${v}-group-wrapper-lg`]:"large"===P,[`${v}-group-wrapper-rtl`]:"rtl"===r},rN(`${v}-group-wrapper`,N,O),w)}},b)))})),CR=kR;CR._InternalPanelDoNotUseOrYouWillBeFired=e=>z.createElement(ux,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(kR,Object.assign({},e)));const ER=CR,OR=e=>{const{getPrefixCls:t,direction:n}=z.useContext(xy),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=BI(i),c=Mm(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},l,o),u=z.useContext(uO),d=z.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(z.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},z.createElement(uO.Provider,{value:d},e.children)))};function DR(e,t){const n=z.useRef([]),r=()=>{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 z.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}const $R=z.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:g,styles:m,rootClassName:b,onChange:v,classNames:y}=e,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!=i?i:$)&&void 0!==t?t:e})),P=H.useContext(Oy),_=null!=s?s:P,{status:I,hasFeedback:T,feedbackIcon:F}=z.useContext(uO),R=oN(I,a),A=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!T;z.useRef(A);const M=DR(E,!0),L=(T||u)&&H.createElement(H.Fragment,null,u,T&&F);let B;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?B=d:d&&(B={clearIcon:H.createElement(Px,null)}),O(H.createElement(uR,Object.assign({ref:lb(t,E),prefixCls:C,autoComplete:null==k?void 0:k.autoComplete},w,{disabled:_,onBlur:e=>{M(),null==l||l(e)},onFocus:e=>{M(),null==c||c(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),g),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),m),suffix:L,allowClear:B,className:Mm(h,b,j,null==k?void 0:k.className),onChange:e=>{M(),null==v||v(e)},addonAfter:f&&H.createElement(xk,null,H.createElement(dO,{override:!0,status:!0},f)),addonBefore:p&&H.createElement(xk,null,H.createElement(dO,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),null==k?void 0:k.classNames),{input:Mm({[`${C}-sm`]:"small"===N,[`${C}-lg`]:"large"===N,[`${C}-rtl`]:"rtl"===S,[`${C}-borderless`]:!o},!A&&rN(C,R),null==y?void 0:y.input,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.input,D)}),classes:{affixWrapper:Mm({[`${C}-affix-wrapper-sm`]:"small"===N,[`${C}-affix-wrapper-lg`]:"large"===N,[`${C}-affix-wrapper-rtl`]:"rtl"===S,[`${C}-affix-wrapper-borderless`]:!o},rN(`${C}-affix-wrapper`,R,T),D),wrapper:Mm({[`${C}-group-rtl`]:"rtl"===S},D),group:Mm({[`${C}-group-wrapper-sm`]:"small"===N,[`${C}-group-wrapper-lg`]:"large"===N,[`${C}-group-wrapper-rtl`]:"rtl"===S,[`${C}-group-wrapper-disabled`]:_},rN(`${C}-group-wrapper`,R,T),D)}})))})),jR=$R;const NR={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 PR=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:NR}))};const _R=z.forwardRef(PR);const IR={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 TR=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:IR}))};const FR=z.forwardRef(TR);const RR=e=>e?z.createElement(FR,null):z.createElement(_R,null),AR={click:"onClick",hover:"onMouseOver"},MR=z.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,a]=z.useState((()=>!!r&&n.visible)),i=z.useRef(null);z.useEffect((()=>{r&&a(n.visible)}),[r,n]);const s=DR(i),l=()=>{const{disabled:t}=e;t||(o&&s(),a((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size: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{const{action:n="click",iconRender:r=RR}=e,a=AR[n]||"",i=r(o),s={[a]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return z.cloneElement(z.isValidElement(i)?i:z.createElement("span",null,i),s)})(m),v=Mm(m,c,{[`${m}-${f}`]:!!f}),y=Object.assign(Object.assign({},qb(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:v,prefixCls:g,suffix:b});return f&&(y.size=f),z.createElement(jR,Object.assign({ref:lb(t,i)},y))})),LR=MR;const BR=z.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=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{var t;return null!==(t=null!=a?a:x)&&void 0!==t?t:e})),k=z.useRef(null),C=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=e=>{var t,n;d&&d(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof s?z.createElement(RN,null):null,D=`${y}-button`;let $;const j=s||{},N=j.type&&!0===j.type.__ANT_BUTTON;$=N||"button"===j.type?Xx(j,Object.assign({onMouseDown:C,onClick:e=>{var t,n;null===(n=null===(t=null==j?void 0:j.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),E(e)},key:"enterButton"},N?{className:D,size:S}:{})):z.createElement(mC,{className:D,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:C,onClick:E,loading:c,icon:O},s),l&&($=[$,Xx(l,{key:"addonAfter"})]);const P=Mm(y,{[`${y}-rtl`]:"rtl"===b,[`${y}-${S}`]:!!S,[`${y}-with-button`]:!!s},o);return z.createElement(jR,Object.assign({ref:lb(k,t),onPressEnter:e=>{v.current||c||E(e)}},g,{size:S,onCompositionStart:e=>{v.current=!0,null==p||p(e)},onCompositionEnd:e=>{v.current=!1,null==h||h(e)},prefixCls:w,addonAfter:$,suffix:i,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),f&&f(e)},className:P,disabled:u}))})),zR=BR;var HR,WR=["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"],UR={};function VR(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;HR||((HR=document.createElement("textarea")).setAttribute("tab-index","-1"),HR.setAttribute("aria-hidden","true"),document.body.appendChild(HR)),e.getAttribute("wrap")?HR.setAttribute("wrap",e.getAttribute("wrap")):HR.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&&UR[n])return UR[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:WR.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(UR[n]=s),s}(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;HR.setAttribute("style","".concat(l,";").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")),HR.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=HR.scrollHeight;if("border-box"===s?f+=i:"content-box"===s&&(f-=a),null!==n||null!==r){HR.value=" ";var p=HR.scrollHeight-a;null!==n&&(u=p*n,"border-box"===s&&(u=u+a+i),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===s&&(d=d+a+i),c=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var GR=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],qR=z.forwardRef((function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=Od(n,GR),p=og(Hy(o,{value:a,postState:function(e){return null!=e?e:""}}),2),h=p[0],g=p[1],m=z.useRef();z.useImperativeHandle(t,(function(){return{textArea:m.current}}));var b=og(z.useMemo((function(){return i&&"object"===kd(i)?[i.minRows,i.maxRows]:[]}),[i]),2),v=b[0],y=b[1],w=!!i,x=og(z.useState(2),2),S=x[0],k=x[1],C=og(z.useState(),2),E=C[0],O=C[1],D=function(){k(0)};yg((function(){w&&D()}),[a,v,y,w]),yg((function(){if(0===S)k(1);else if(1===S){var e=VR(m.current,!1,v,y);k(2),O(e)}else!function(){try{if(document.activeElement===m.current){var e=m.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;m.current.setSelectionRange(t,n),m.current.scrollTop=r}}catch(A4){}}()}),[S]);var $=z.useRef(),j=function(){Zb.cancel($.current)};z.useEffect((function(){return j}),[]);var N=w?E:null,P=Eh(Eh({},c),N);return 0!==S&&1!==S||(P.overflowY="hidden",P.overflowX="hidden"),z.createElement(Gb,{onResize:function(e){2===S&&(null==s||s(e),i&&(j(),$.current=Zb((function(){D()}))))},disabled:!(i||s)},z.createElement("textarea",Bp({},f,{ref:m,style:P,className:Mm(r,l,Ed({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:function(e){g(e.target.value),null==d||d(e)}})))})),XR=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],KR=H.forwardRef((function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,g=void 0===h?"rc-textarea":h,m=e.classes,b=e.showCount,v=e.count,y=e.className,w=e.style,x=e.disabled,S=e.hidden,k=e.classNames,C=e.styles,E=e.onResize,O=Od(e,XR),D=og(Hy(o,{value:a,defaultValue:o}),2),$=D[0],j=D[1],N=null==$?"":String($),P=og(H.useState(!1),2),_=P[0],I=P[1],T=H.useRef(!1),F=og(H.useState(null),2),R=F[0],A=F[1],M=z.useRef(null),L=function(){var e;return null===(e=M.current)||void 0===e?void 0:e.textArea},B=function(){L().focus()};z.useImperativeHandle(t,(function(){return{resizableTextArea:M.current,focus:B,blur:function(){L().blur()}}})),z.useEffect((function(){I((function(e){return!x&&e}))}),[x]);var W=og(H.useState(null),2),U=W[0],V=W[1];H.useEffect((function(){var e;U&&(e=L()).setSelectionRange.apply(e,kh(U))}),[U]);var G,q=lR(v,b),X=null!==(n=q.max)&&void 0!==n?n:u,K=Number(X)>0,Y=q.strategy(N),Q=!!X&&Y>X,J=function(e,t){var n=t;!T.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max&&t!==(n=q.exceedFormatter(t,{max:q.max}))&&V([L().selectionStart||0,L().selectionEnd||0]),j(n),oR(e.currentTarget,e,l,n)},Z=p;q.show&&(G=q.showFormatter?q.showFormatter({value:N,count:Y,maxLength:X}):"".concat(Y).concat(K?" / ".concat(X):""),Z=H.createElement(H.Fragment,null,Z,H.createElement("span",{className:Mm("".concat(g,"-data-count"),null==k?void 0:k.count),style:null==C?void 0:C.count},G)));var ee=!O.autoSize&&!b&&!c;return H.createElement(iR,{value:N,allowClear:c,handleReset:function(e){j(""),B(),oR(L(),e,l)},suffix:Z,prefixCls:g,classes:{affixWrapper:Mm(null==m?void 0:m.affixWrapper,(r={},Ed(r,"".concat(g,"-show-count"),b),Ed(r,"".concat(g,"-textarea-allow-clear"),c),r))},disabled:x,focused:_,className:Mm(y,Q&&"".concat(g,"-out-of-range")),style:Eh(Eh({},w),R&&!ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof G?G:void 0}},hidden:S,inputElement:H.createElement(qR,Bp({},O,{maxLength:u,onKeyDown:function(e){var t=O.onPressEnter,n=O.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){J(e,e.target.value)},onFocus:function(e){I(!0),null==i||i(e)},onBlur:function(e){I(!1),null==s||s(e)},onCompositionStart:function(e){T.current=!0,null==d||d(e)},onCompositionEnd:function(e){T.current=!1,J(e,e.currentTarget.value),null==f||f(e)},className:Mm(null==k?void 0:k.textarea),style:Eh(Eh({},null==C?void 0:C.textarea),{},{resize:null==w?void 0:w.resize}),disabled:x,prefixCls:g,onResize:function(e){var t;null==E||E(e),null!==(t=L())&&void 0!==t&&t.style.height&&A(!0)},ref:M}))})}));const YR=z.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className: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 e;return{resizableTextArea:null===(e=S.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=S.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=S.current)||void 0===e?void 0:e.blur()}}}));const k=p("input",r);let C;"object"==typeof l&&(null==l?void 0:l.clearIcon)?C=l:l&&(C={clearIcon:z.createElement(Px,null)});const[E,O]=BI(k);return E(z.createElement(KR,Object.assign({},f,{disabled:b,allowClear:C,className:Mm(d,u),classes:{affixWrapper:Mm(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===h,[`${k}-affix-wrapper-borderless`]:!o,[`${k}-affix-wrapper-sm`]:"small"===g,[`${k}-affix-wrapper-lg`]:"large"===g,[`${k}-textarea-show-count`]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},rN(`${k}-affix-wrapper`,x),O)},classNames:Object.assign(Object.assign({},c),{textarea:Mm({[`${k}-borderless`]:!o,[`${k}-sm`]:"small"===g,[`${k}-lg`]:"large"===g},rN(k,x),O,null==c?void 0:c.textarea)}),prefixCls:k,suffix:y&&z.createElement("span",{className:`${k}-textarea-suffix`},w),ref:S})))})),QR=YR,JR=jR;JR.Group=OR,JR.Search=zR,JR.TextArea=QR,JR.Password=LR;const ZR=JR;var eA=z.createContext(null),tA=z.createContext({}),nA=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.children,a=e.containerRef,i=e.id,s={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},l=cb(z.useContext(tA).panel,a);return z.createElement(z.Fragment,null,z.createElement("div",Bp({id:i,className:Mm("".concat(t,"-content"),n),style:Eh({},r),"aria-modal":"true",role:"dialog",ref:l},s),o))};function rA(e){return"string"==typeof e&&String(Number(e))===e?(_h(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var oA={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function aA(e,t){var n,r,o,a,i=e.prefixCls,s=e.open,l=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,g=e.rootClassName,m=e.rootStyle,b=e.zIndex,v=e.className,y=e.id,w=e.style,x=e.motion,S=e.width,k=e.height,C=e.children,E=e.contentWrapperStyle,O=e.mask,D=e.maskClosable,$=e.maskMotion,j=e.maskClassName,N=e.maskStyle,P=e.afterOpenChange,_=e.onClose,I=e.onMouseEnter,T=e.onMouseOver,F=e.onMouseLeave,R=e.onClick,A=e.onKeyDown,M=e.onKeyUp,L=e.styles,B=z.useRef(),H=z.useRef(),W=z.useRef();z.useImperativeHandle(t,(function(){return B.current}));z.useEffect((function(){var e;s&&f&&(null===(e=B.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);var U=og(z.useState(!1),2),V=U[0],G=U[1],q=z.useContext(eA),X=null!==(n=null!==(r=null===(o=!1===u?{distance:0}:!0===u?{}:u||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==q?void 0:q.pushDistance)&&void 0!==n?n:180,K=z.useMemo((function(){return{pushDistance:X,push:function(){G(!0)},pull:function(){G(!1)}}}),[X]);z.useEffect((function(){var e,t;s?null==q||null===(e=q.push)||void 0===e||e.call(q):null==q||null===(t=q.pull)||void 0===t||t.call(q)}),[s]),z.useEffect((function(){return function(){var e;null==q||null===(e=q.pull)||void 0===e||e.call(q)}}),[]);var Y=O&&z.createElement(Hw,Bp({key:"mask"},$,{visible:s}),(function(e,t){var n=e.className,r=e.style;return z.createElement("div",{className:Mm("".concat(i,"-mask"),n,null==h?void 0:h.mask,j),style:Eh(Eh(Eh({},r),N),null==L?void 0:L.mask),onClick:D&&s?_:void 0,ref:t})})),Q="function"==typeof x?x(l):x,J={};if(V&&X)switch(l){case"top":J.transform="translateY(".concat(X,"px)");break;case"bottom":J.transform="translateY(".concat(-X,"px)");break;case"left":J.transform="translateX(".concat(X,"px)");break;default:J.transform="translateX(".concat(-X,"px)")}"left"===l||"right"===l?J.width=rA(S):J.height=rA(k);var Z={onMouseEnter:I,onMouseOver:T,onMouseLeave:F,onClick:R,onKeyDown:A,onKeyUp:M},ee=z.createElement(Hw,Bp({key:"panel"},Q,{visible:s,forceRender:d,onVisibleChanged:function(e){null==P||P(e)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return z.createElement("div",Bp({className:Mm("".concat(i,"-content-wrapper"),null==h?void 0:h.wrapper,r),style:Eh(Eh(Eh(Eh({},J),o),E),null==L?void 0:L.wrapper)},Vx(e,{data:!0})),z.createElement(nA,Bp({id:y,containerRef:n,prefixCls:i,className:Mm(v,null==h?void 0:h.content),style:Eh(Eh({},w),null==L?void 0:L.content)},Z),C))})),te=Eh({},m);return b&&(te.zIndex=b),z.createElement(eA.Provider,{value:K},z.createElement("div",{className:Mm(i,"".concat(i,"-").concat(l),g,(a={},Ed(a,"".concat(i,"-open"),s),Ed(a,"".concat(i,"-inline"),c),a)),style:te,tabIndex:-1,ref:B,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case nS.TAB:var r;if(t===nS.TAB)if(n||document.activeElement!==W.current){if(n&&document.activeElement===H.current){var o;null===(o=W.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=H.current)||void 0===r||r.focus({preventScroll:!0});break;case nS.ESC:_&&p&&(e.stopPropagation(),_(e))}}},Y,z.createElement("div",{tabIndex:0,ref:H,style:oA,"aria-hidden":"true","data-sentinel":"start"}),ee,z.createElement("div",{tabIndex:0,ref:W,style:oA,"aria-hidden":"true","data-sentinel":"end"})))}var iA=z.forwardRef(aA),sA=function(e){var t=e.open,n=void 0!==t&&t,r=e.prefixCls,o=void 0===r?"rc-drawer":r,a=e.placement,i=void 0===a?"right":a,s=e.autoFocus,l=void 0===s||s,c=e.keyboard,u=void 0===c||c,d=e.width,f=void 0===d?378:d,p=e.mask,h=void 0===p||p,g=e.maskClosable,m=void 0===g||g,b=e.getContainer,v=e.forceRender,y=e.afterOpenChange,w=e.destroyOnClose,x=e.onMouseEnter,S=e.onMouseOver,k=e.onMouseLeave,C=e.onClick,E=e.onKeyDown,O=e.onKeyUp,D=e.panelRef,$=og(z.useState(!1),2),j=$[0],N=$[1],P=og(z.useState(!1),2),_=P[0],I=P[1];yg((function(){I(!0)}),[]);var T=!!_&&n,F=z.useRef(),R=z.useRef();yg((function(){T&&(R.current=document.activeElement)}),[T]);var A=z.useMemo((function(){return{panel:D}}),[D]);if(!v&&!j&&!T&&w)return null;var M={onMouseEnter:x,onMouseOver:S,onMouseLeave:k,onClick:C,onKeyDown:E,onKeyUp:O},L=Eh(Eh({},e),{},{open:T,prefixCls:o,placement:i,autoFocus:l,keyboard:u,width:f,mask:h,maskClosable:m,inline:!1===b,afterOpenChange:function(e){var t,n;(N(e),null==y||y(e),e||!R.current||null!==(t=F.current)&&void 0!==t&&t.contains(R.current))||(null===(n=R.current)||void 0===n||n.focus({preventScroll:!0}))},ref:F},M);return z.createElement(tA.Provider,{value:A},z.createElement(_C,{open:T||v||j,autoDestroy:!1,getContainer:b,autoLock:h&&(T||j)},z.createElement(iA,L)))};const lA=e=>{var t,n;const{prefixCls:r,title:o,footer:a,extra:i,closeIcon:s,closable:l,onClose:c,headerStyle:u,drawerStyle:d,bodyStyle:f,footerStyle:p,children:h,classNames:g,styles:m}=e,{drawer:b}=z.useContext(xy),v=z.useCallback((e=>z.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},e)),[c]),[y,w]=GC(l,s,v,void 0,!0),x=z.useMemo((()=>{var e,t;return o||y?z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==b?void 0:b.styles)||void 0===e?void 0:e.header),u),null==m?void 0:m.header),className:Mm(`${r}-header`,{[`${r}-header-close-only`]:y&&!o&&!i},null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},z.createElement("div",{className:`${r}-header-title`},w,o&&z.createElement("div",{className:`${r}-title`},o)),i&&z.createElement("div",{className:`${r}-extra`},i)):null}),[y,w,i,u,r,o]),S=z.useMemo((()=>{var e,t;if(!a)return null;const n=`${r}-footer`;return z.createElement("div",{className:Mm(n,null===(e=null==b?void 0:b.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==b?void 0:b.styles)||void 0===t?void 0:t.footer),p),null==m?void 0:m.footer)},a)}),[a,p,r]);return z.createElement("div",{className:`${r}-wrapper-body`,style:d},x,z.createElement("div",{className:Mm(`${r}-body`,null==g?void 0:g.body,null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==b?void 0:b.styles)||void 0===n?void 0:n.body),f),null==m?void 0:m.body)},h),S)},cA=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},uA=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:i,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:p,marginSM:h,colorIcon:g,colorIconHover:m,colorText:b,fontWeightStrong:v,footerPaddingBlock:y,footerPaddingInline:w}=e,x=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[x]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${x}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${x}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${x}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${x}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${f} ${p}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:g,fontWeight:v,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${w}px`,borderTop:`${d}px ${f} ${p}`},"&-rtl":{direction:"rtl"}}}},dA=nw("Drawer",(e=>{const t=Jy(e,{});return[uA(t),cA(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var fA=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,r,o,a,i,s,l;const{rootClassName:c,width:u,height:d,size:f="default",mask:p=!0,push:h=pA,open:g,afterOpenChange:m,onClose:b,prefixCls:v,getContainer:y,style:w,className:x,visible:S,afterVisibleChange:k}=e,C=fA(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:E,getPrefixCls:O,direction:D,drawer:$}=z.useContext(xy),j=O("drawer",v),[N,P]=dA(j),_=void 0===y&&E?()=>E(document.body):y,I=Mm({"no-mask":!p,[`${j}-rtl`]:"rtl"===D},c,P),T=z.useMemo((()=>null!=u?u:"large"===f?736:378),[u,f]),F=z.useMemo((()=>null!=d?d:"large"===f?736:378),[d,f]),R={motionName:rk(j,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},A=hO(),[M,L]=xS("Drawer",C.zIndex);return N(z.createElement(xk,null,z.createElement(dO,{status:!0,override:!0},z.createElement(mS.Provider,{value:L},z.createElement(sA,Object.assign({prefixCls:j,onClose:b,maskMotion:R,motion:e=>({motionName:rk(j,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},C,{classNames:{mask:Mm(null===(t=C.classNames)||void 0===t?void 0:t.mask,null===(n=null==$?void 0:$.classNames)||void 0===n?void 0:n.mask),content:Mm(null===(r=C.classNames)||void 0===r?void 0:r.content,null===(o=null==$?void 0:$.classNames)||void 0===o?void 0:o.content)},styles:{mask:Object.assign(Object.assign({},null===(a=C.styles)||void 0===a?void 0:a.mask),null===(i=null==$?void 0:$.styles)||void 0===i?void 0:i.mask),content:Object.assign(Object.assign({},null===(s=C.styles)||void 0===s?void 0:s.content),null===(l=null==$?void 0:$.styles)||void 0===l?void 0:l.content)},open:null!=g?g:S,mask:p,push:h,width:T,height:F,style:Object.assign(Object.assign({},null==$?void 0:$.style),w),className:Mm(null==$?void 0:$.className,x),rootClassName:I,getContainer:_,afterOpenChange:null!=m?m:k,panelRef:A,zIndex:M}),z.createElement(lA,Object.assign({prefixCls:j},C,{onClose:b})))))))};hA._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,a=fA(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=z.useContext(xy),s=i("drawer",t),[l,c]=dA(s),u=Mm(s,`${s}-pure`,`${s}-${o}`,c,r);return l(z.createElement("div",{className:u,style:n},z.createElement(lA,Object.assign({prefixCls:s},a))))};const gA=hA;function mA(e){return["small","middle","large"].includes(e)}function bA(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const vA=H.createContext({latestIndex:0}),yA=vA.Provider,wA=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=z.useContext(vA);return null==r?null:z.createElement(z.Fragment,null,z.createElement("div",{className:t,style:a},r),n{var n,r;const{getPrefixCls:o,space:a,direction:i}=z.useContext(xy),{size:s=(null==a?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:p,split:h,style:g,wrap:m=!1,classNames:b,styles:v}=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{var n,r;null!=e&&(I=t);const o=e&&e.key||`${_}-${t}`;return z.createElement(wA,{className:_,key:o,index:t,split:h,style:null!==(n=null==v?void 0:v.item)&&void 0!==n?n:null===(r=null==a?void 0:a.styles)||void 0===r?void 0:r.item},e)})),F=z.useMemo((()=>({latestIndex:I})),[I]);if(0===O.length)return null;const R={};return m&&(R.flexWrap="wrap"),!k&&E&&(R.columnGap=w),!S&&C&&(R.rowGap=x),j(z.createElement("div",Object.assign({ref:t,className:P,style:Object.assign(Object.assign(Object.assign({},R),null==a?void 0:a.style),g)},y),z.createElement(yA,{value:F},T)))})),SA=xA;SA.Compact=kk;const kA=SA;function CA(e){const[t,n]=z.useState(e);return z.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const EA=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},OA=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'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 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),DA=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},$A=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Vy(e)),OA(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},DA(e,e.controlHeightSM)),"&-large":Object.assign({},DA(e,e.controlHeightLG))})}},jA=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Vy(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-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} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:i,fontSize:s,[`> ${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:c,marginInlineEnd:u},[`&${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:WO,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},NA=e=>{const{componentCls:t,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"}}}}},PA=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-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"}}}}},_A=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),IA=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:_A(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},TA=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:_A(e),[`@media (max-width: ${e.screenXSMax}px)`]:[IA(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:_A(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:_A(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:_A(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:_A(e)}}}},FA=(e,t)=>Jy(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),RA=nw("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=FA(e,n);return[$A(r),jA(r),EA(r),NA(r),PA(r),TA(r),rD(r),WO]}),(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})),{order:-1e3}),AA=[];function MA(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 LA=e=>{let{help:t,helpStatus:n,errors:r=AA,warnings:o=AA,className:a,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:l}=z.useContext(cO),c=`${l}-item-explain`,[,u]=RA(l),d=z.useMemo((()=>nk(l)),[l]),f=CA(r),p=CA(o),h=z.useMemo((()=>null!=t?[MA(t,"help",n)]:[].concat(kh(f.map(((e,t)=>MA(e,"error","error",t)))),kh(p.map(((e,t)=>MA(e,"warning","warning",t)))))),[t,n,f,p]),g={};return i&&(g.id=`${i}_help`),z.createElement(Hw,{motionDeadline:d.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return z.createElement("div",Object.assign({},g,{className:Mm(c,t,a,u),style:n,role:"alert"}),z.createElement(Jw,Object.assign({keys:h},nk(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:a}=e;return z.createElement("div",{key:t,className:Mm(o,{[`${c}-${r}`]:r}),style:a},n)})))}))},BA=["parentNode"],zA="form_item";function HA(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function WA(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return BA.includes(n)?`${zA}_${n}`:n}function UA(e,t,n,r,o,a){let i=r;return void 0!==a?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function VA(e){return HA(e).join("_")}function GA(e){const[t]=JE(),n=z.useRef({}),r=z.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=VA(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=WA(HA(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(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("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(eS(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:a,top:i,left:s}of eS(e,tS(t))){const e=i-n.top+n.bottom,t=s-n.left+n.right;a.scroll({top:e,left:t,behavior:o})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=VA(e);return n.current[t]}})),[e,t]);return[r]}const qA=(e,t)=>{const n=z.useContext(Oy),{getPrefixCls:r,direction:o,form:a}=z.useContext(xy),{prefixCls:i,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:h,labelCol:g,wrapperCol:m,hideRequiredMark:b,layout:v="horizontal",scrollToFirstError:y,requiredMark:w,onFinishFailed:x,name:S,style:k,feedbackIcons:C}=e,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);ovoid 0!==w?w:a&&void 0!==a.requiredMark?a.requiredMark:!b),[b,w,a]),j=null!=f?f:null==a?void 0:a.colon,N=r("form",i),[P,_]=RA(N),I=Mm(N,`${N}-${v}`,{[`${N}-hide-required-mark`]:!1===$,[`${N}-rtl`]:"rtl"===o,[`${N}-${O}`]:O},_,null==a?void 0:a.className,s,l),[T]=GA(d),{__INTERNAL__:F}=T;F.name=S;const R=z.useMemo((()=>({name:S,labelAlign:p,labelCol:g,labelWrap:h,wrapperCol:m,vertical:"vertical"===v,colon:j,requiredMark:$,itemRef:F.itemRef,form:T,feedbackIcons:C})),[S,p,g,m,v,j,$,T,C]);z.useImperativeHandle(t,(()=>T));const A=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),T.scrollToField(t,n)}};return P(z.createElement(Ey,{disabled:u},z.createElement(jy.Provider,{value:O},z.createElement(lO,{validateMessages:D},z.createElement(iO.Provider,{value:R},z.createElement(aO,Object.assign({id:S},E,{name:S,onFinishFailed:e=>{if(null==x||x(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void A(y,t);a&&void 0!==a.scrollToFirstError&&A(a.scrollToFirstError,t)}},form:T,style:Object.assign(Object.assign({},null==a?void 0:a.style),k),className:I})))))))},XA=z.forwardRef(qA);const KA=()=>{const{status:e,errors:t=[],warnings:n=[]}=z.useContext(uO);return{status:e,errors:t,warnings:n}};KA.Context=uO;const YA=KA;const QA=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},JA=rw(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=FA(e,n);return[QA(r)]})),ZA=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,h=z.useContext(iO),g=r||h.wrapperCol||{},m=Mm(`${p}-control`,g.className),b=z.useMemo((()=>Object.assign({},h)),[h]);delete b.labelCol,delete b.wrapperCol;const v=z.createElement("div",{className:`${p}-control-input`},z.createElement("div",{className:`${p}-control-input-content`},o)),y=z.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||a.length||i.length?z.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},z.createElement(cO.Provider,{value:y},z.createElement(LA,{fieldId:u,errors:a,warnings:i,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&z.createElement("div",{style:{width:0,height:d}})):null,x={};u&&(x.id=`${u}_extra`);const S=l?z.createElement("div",Object.assign({},x,{className:`${p}-extra`}),l):null,k=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:v,errorList:w,extra:S}):z.createElement(z.Fragment,null,v,w,S);return z.createElement(iO.Provider,{value:b},z.createElement(vF,Object.assign({},g,{className:m}),k),z.createElement(JA,{prefixCls:t}))};const eM={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 tM=function(e,t){return z.createElement(Ox,Bp({},e,{ref:t,icon:eM}))};const nM=z.forwardRef(tM);const rM=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:s,requiredMark:l,tooltip:c}=e;var u;const[d]=xv("Form"),{vertical:f,labelAlign:p,labelCol:h,labelWrap:g,colon:m}=z.useContext(iO);if(!n)return null;const b=o||h||{},v=`${t}-item-label`,y=Mm(v,"left"===(a||p)&&`${v}-left`,b.className,{[`${v}-wrap`]:!!g});let w=n;const x=!0===i||!1!==m&&!1!==i;x&&!f&&"string"==typeof n&&""!==n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const S=function(e){return e?"object"!=typeof e||z.isValidElement(e)?{title:e}:e:null}(c);if(S){const{icon:e=z.createElement(nM,null)}=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);o{var e;let t;if(o){const a=!0!==o&&o.icons||u,i=d&&(null===(e=null==a?void 0:a({status:d,errors:n,warnings:r}))||void 0===e?void 0:e[d]),s=d&&oM[d];t=!1!==i&&s?z.createElement("span",{className:Mm(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},i||z.createElement(s,null)):null}const a={status:d||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return l&&(a.status=(null!=d?d:p)||"",a.isFormItemInput=f,a.hasFeedback=!!(null!=o?o:h),a.feedbackIcon=void 0!==o?a.feedbackIcon:g),a}),[d,o,l,f,p]);return z.createElement(uO.Provider,{value:m},t)}var iM=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(C&&w.current){const e=getComputedStyle(w.current);D(parseInt(e.marginBottom,10))}}),[C,E]);const $=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return UA(e?x:c.errors,e?S:c.warnings,c,"",!!u,l)}(),j=Mm(v,n,r,{[`${v}-with-help`]:k||x.length||S.length,[`${v}-has-feedback`]:$&&u,[`${v}-has-success`]:"success"===$,[`${v}-has-warning`]:"warning"===$,[`${v}-has-error`]:"error"===$,[`${v}-is-validating`]:"validating"===$,[`${v}-hidden`]:d});return z.createElement("div",{className:j,style:o,ref:w},z.createElement(xF,Object.assign({className:`${v}-row`},qb(b,["_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"])),z.createElement(rM,Object.assign({htmlFor:p},e,{requiredMark:y,required:null!=h?h:g,prefixCls:t})),z.createElement(ZA,Object.assign({},e,c,{errors:x,warnings:S,prefixCls:t,status:$,help:a,marginBottom:O,onErrorVisibleChanged:e=>{e||D(null)}}),z.createElement(sO.Provider,{value:m},z.createElement(aM,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:$},f)))),!!O&&z.createElement("div",{className:`${v}-margin-offset`,style:{marginBottom:-O}}))}const lM=z.memo((e=>{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const cM=function(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:h,help:g}=e,{getPrefixCls:m}=z.useContext(xy),{name:b}=z.useContext(iO),v=function(e){if("function"==typeof e)return e;const t=ob(e);return t.length<=1?t[0]:t}(l),y="function"==typeof v,w=z.useContext(sO),{validateTrigger:x}=z.useContext(KC),S=void 0!==p?p:x,k=!(null==t),C=m("form",a),[E,O]=RA(C);uv();const D=z.useContext(YC),$=z.useRef(),[j,N]=function(e){const[t,n]=z.useState(e),r=z.useRef(null),o=z.useRef([]),a=z.useRef(!1);return z.useEffect((()=>(a.current=!1,()=>{a.current=!0,Zb.cancel(r.current),r.current=null})),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=Zb((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[P,_]=By((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),I=(e,t)=>{N((n=>{const r=Object.assign({},n),o=[].concat(kh(e.name.slice(0,-1)),kh(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[T,F]=z.useMemo((()=>{const e=kh(P.errors),t=kh(P.warnings);return Object.values(j).forEach((n=>{e.push.apply(e,kh(n.errors||[])),t.push.apply(t,kh(n.warnings||[]))})),[e,t]}),[j,P.errors,P.warnings]),R=function(){const{itemRef:e}=z.useContext(iO),t=z.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,a=n.join("_");return t.current.name===a&&t.current.originRef===o||(t.current.name=a,t.current.originRef=o,t.current.ref=lb(e(n),o)),t.current.ref}}();function A(t,o,a){return n&&!h?z.createElement(aM,{prefixCls:C,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:T,warnings:F,noStyle:!0},t):z.createElement(sM,Object.assign({key:"row"},e,{className:Mm(r,O),prefixCls:C,fieldId:o,isRequired:a,errors:T,warnings:F,meta:P,onSubItemMetaChange:I}),t)}if(!k&&!y&&!o)return E(A(v));let M={};return"string"==typeof u?M.label=u:t&&(M.label=String(t)),d&&(M=Object.assign(Object.assign({},M),d)),E(z.createElement(VE,Object.assign({},e,{messageVariables:M,trigger:f,validateTrigger:S,onMetaChange:e=>{const t=null==D?void 0:D.getKey(e.name);if(_(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==g&&w){let n=e.name;if(e.destroy)n=$.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(kh(r)),$.current=n}w(e,n)}}}),((n,r,a)=>{const l=HA(t).length&&r?r.name:[],u=WA(l,b),d=void 0!==c?c:!(!s||!s.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return t&&t.required&&!t.warningOnly}return!1}))),p=Object.assign({},n);let h=null;if(Array.isArray(v)&&k)h=v;else if(y&&(!i&&!o||k));else if(!o||y||k)if(Gx(v)){const t=Object.assign(Object.assign({},v.props),p);if(t.id||(t.id=u),g||T.length>0||F.length>0||e.extra){const n=[];(g||T.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}T.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),ub(v)&&(t.ref=R(l,v));new Set([].concat(kh(HA(f)),kh(HA(S)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,a,i=arguments.length,s=new Array(i),l=0;l{var{prefixCls:t,children:n}=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({prefixCls:a,status:"error"})),[a]);return z.createElement(GE,Object.assign({},r),((e,t,r)=>z.createElement(cO.Provider,{value:i},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const fM=XA;fM.Item=uM,fM.List=dM,fM.ErrorList=LA,fM.useForm=GA,fM.useFormInstance=function(){const{form:e}=z.useContext(iO);return e},fM.useWatch=oO,fM.Provider=lO,fM.create=()=>{};const pM=fM;let hM=null,gM=e=>e(),mM=[],bM={};function vM(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:a}=bM,i=null!=e?e:sx().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:i,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:a}}const yM=z.forwardRef(((e,t)=>{const[n,r]=z.useState(vM),[o,a]=TS(n),i=sx(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=()=>{r(vM)};return z.useEffect(u,[]),z.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),z.createElement(ux,{prefixCls:s,iconPrefixCls:l,theme:c},a)}));function wM(){if(!hM){const e=document.createDocumentFragment(),t={fragment:e};return hM=t,void gM((()=>{GS(z.createElement(yM,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,wM())}))}}),e)}))}hM.instance&&(mM.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":gM((()=>{const t=hM.instance.open(Object.assign(Object.assign({},bM),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":gM((()=>{null==hM||hM.instance.destroy(e.key)}));break;default:gM((()=>{var n;const r=(n=hM.instance)[t].apply(n,kh(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),mM=[])}const xM={open:function(e){const t=DS((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return mM.push(r),()=>{n?gM((()=>{n()})):r.skipped=!0}}));return wM(),t},destroy:function(e){mM.push({type:"destroy",key:e}),wM()},config:function(e){bM=Object.assign(Object.assign({},bM),e),gM((()=>{var e;null===(e=null==hM?void 0:hM.sync)||void 0===e||e.call(hM)}))},useMessage:FS,_InternalPanelDoNotUseOrYouWillBeFired:OS};["success","info","warning","error","loading"].forEach((e=>{xM[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 mM.push(o),()=>{r?gM((()=>{r()})):o.skipped=!0}}));return wM(),n}(e,n)}}));const SM=xM;const kM=l$((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer: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(),jM=[],NM={};function PM(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:a}=NM,i=null!=e?e:sx().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:i,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:a}}const _M=z.forwardRef(((e,t)=>{const[n,r]=z.useState(PM),[o,a]=e$(n),i=sx(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=()=>{r(PM)};return z.useEffect(u,[]),z.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),z.createElement(ux,{prefixCls:s,iconPrefixCls:l,theme:c},a)}));function IM(){if(!DM){const e=document.createDocumentFragment(),t={fragment:e};return DM=t,void $M((()=>{GS(z.createElement(_M,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,IM())}))}}),e)}))}DM.instance&&(jM.forEach((e=>{switch(e.type){case"open":$M((()=>{DM.instance.open(Object.assign(Object.assign({},NM),e.config))}));break;case"destroy":$M((()=>{null==DM||DM.instance.destroy(e.key)}))}})),jM=[])}function TM(e){jM.push({type:"open",config:e}),IM()}const FM={open:TM,destroy:function(e){jM.push({type:"destroy",key:e}),IM()},config:function(e){NM=Object.assign(Object.assign({},NM),e),$M((()=>{var e;null===(e=null==DM?void 0:DM.sync)||void 0===e||e.call(DM)}))},useNotification:t$,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:a,description:i,btn:s,closable:l=!0,closeIcon:c}=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{RM[e]=t=>TM(Object.assign(Object.assign({},t),{type:e}))}));const AM=RM;var MM=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},LM=function(e){return void 0!==e?"".concat(e,"px"):void 0};function BM(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,a=e.motionName,i=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=z.useRef(null),u=og(z.useState(r),2),d=u[0],f=u[1],p=function(e){var r,a=o(e),i=null===(r=n.current)||void 0===r?void 0:r.querySelectorAll(".".concat(t,"-item"))[a];return(null==i?void 0:i.offsetParent)&&i},h=og(z.useState(null),2),g=h[0],m=h[1],b=og(z.useState(null),2),v=b[0],y=b[1];yg((function(){if(d!==r){var e=p(d),t=p(r),n=MM(e),o=MM(t);f(r),m(n),y(o),e&&t?i():s()}}),[r]);var w=z.useMemo((function(){return LM("rtl"===l?-(null==g?void 0:g.right):null==g?void 0:g.left)}),[l,g]),x=z.useMemo((function(){return LM("rtl"===l?-(null==v?void 0:v.right):null==v?void 0:v.left)}),[l,v]);return g&&v?z.createElement(Hw,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){m(null),y(null),s()}},(function(e,n){var r=e.className,o=Eh(Eh({},e.style),{},{"--thumb-start-left":w,"--thumb-start-width":LM(null==g?void 0:g.width),"--thumb-active-left":x,"--thumb-active-width":LM(null==v?void 0:v.width)}),a={ref:lb(c,n),style:o,className:Mm("".concat(t,"-thumb"),r)};return z.createElement("div",a)})):null}var zM=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function HM(e){return e.map((function(e){if("object"===kd(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==kd(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Eh(Eh({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var WM=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,o=e.checked,a=e.label,i=e.title,s=e.value,l=e.onChange;return z.createElement("label",{className:Mm(n,Ed({},"".concat(t,"-item-disabled"),r))},z.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:o,onChange:function(e){r||l(e,s)}}),z.createElement("div",{className:"".concat(t,"-item-label"),title:i},a))},UM=z.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=void 0===o?"rc-segmented":o,i=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,f=e.className,p=void 0===f?"":f,h=e.motionName,g=void 0===h?"thumb-motion":h,m=Od(e,zM),b=z.useRef(null),v=z.useMemo((function(){return lb(b,t)}),[b,t]),y=z.useMemo((function(){return HM(s)}),[s]),w=og(Hy(null===(n=y[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),x=w[0],S=w[1],k=og(z.useState(!1),2),C=k[0],E=k[1],O=function(e,t){l||(S(t),null==d||d(t))},D=qb(m,["children"]);return z.createElement("div",Bp({},D,{className:Mm(a,(r={},Ed(r,"".concat(a,"-rtl"),"rtl"===i),Ed(r,"".concat(a,"-disabled"),l),r),p),ref:v}),z.createElement("div",{className:"".concat(a,"-group")},z.createElement(BM,{prefixCls:a,value:x,containerRef:b,motionName:"".concat(a,"-").concat(g),direction:i,getValueIndex:function(e){return y.findIndex((function(t){return t.value===e}))},onMotionStart:function(){E(!0)},onMotionEnd:function(){E(!1)}}),y.map((function(e){return z.createElement(WM,Bp({},e,{key:e.value,prefixCls:a,className:Mm(e.className,"".concat(a,"-item"),Ed({},"".concat(a,"-item-selected"),e.value===x&&!C)),checked:e.value===x,onChange:O,disabled:!!l||!!e.disabled}))}))))}));function VM(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function GM(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}UM.displayName="Segmented",UM.defaultProps={options:[]};const qM=Object.assign({overflow:"hidden"},Uy),XM=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vy(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${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({},GM(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",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:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},qM),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},GM(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),VM(`&-disabled ${t}-item`,e)),VM(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},KM=nw("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=Jy(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[XM(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:a}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:n}}));var YM=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:r,rootClassName:o,block:a,options:i=[],size:s="middle",style:l}=e,c=YM(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:f}=z.useContext(xy),p=u("segmented",n),[h,g]=KM(p),m=pk(s),b=z.useMemo((()=>i.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=YM(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:z.createElement(z.Fragment,null,z.createElement("span",{className:`${p}-item-icon`},t),n&&z.createElement("span",null,n))})}return e}))),[i,p]),v=Mm(r,o,null==f?void 0:f.className,{[`${p}-block`]:a,[`${p}-sm`]:"small"===m,[`${p}-lg`]:"large"===m},g),y=Object.assign(Object.assign({},null==f?void 0:f.style),l);return h(z.createElement(UM,Object.assign({},c,{className:v,style:y,options:b,ref:t,prefixCls:p,direction:d})))}));var JM=z.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function ZM(e,t,n){return(e-t)/(n-t)}function eL(e,t,n,r){var o=ZM(t,n,r),a={};switch(e){case"rtl":a.right="".concat(100*o,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(100*o,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(100*o,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(100*o,"%"),a.transform="translateX(-50%)"}return a}function tL(e,t){return Array.isArray(e)?e[t]:e}var nL=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],rL=z.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,f=Od(e,nL),p=z.useContext(JM),h=p.min,g=p.max,m=p.direction,b=p.disabled,v=p.keyboard,y=p.range,w=p.tabIndex,x=p.ariaLabelForHandle,S=p.ariaLabelledByForHandle,k=p.ariaValueTextFormatterForHandle,C=p.styles,E=p.classNames,O="".concat(o,"-handle"),D=function(e){b||s(e,i)},$=eL(m,a,h,g),j=z.createElement("div",Bp({ref:t,className:Mm(O,(n={},Ed(n,"".concat(O,"-").concat(i+1),y),Ed(n,"".concat(O,"-dragging"),u),n),E.handle),style:Eh(Eh(Eh({},$),l),C.handle),onMouseDown:D,onTouchStart:D,onKeyDown:function(e){if(!b&&v){var t=null;switch(e.which||e.keyCode){case nS.LEFT:t="ltr"===m||"btt"===m?-1:1;break;case nS.RIGHT:t="ltr"===m||"btt"===m?1:-1;break;case nS.UP:t="ttb"!==m?1:-1;break;case nS.DOWN:t="ttb"!==m?-1:1;break;case nS.HOME:t="min";break;case nS.END:t="max";break;case nS.PAGE_UP:t=2;break;case nS.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,i))}},tabIndex:b?null:tL(w,i),role:"slider","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":a,"aria-disabled":b,"aria-label":tL(x,i),"aria-labelledby":tL(S,i),"aria-valuetext":null===(r=tL(k,i))||void 0===r?void 0:r(a),"aria-orientation":"ltr"===m||"rtl"===m?"horizontal":"vertical"},f));return c&&(j=c(j,{index:i,prefixCls:o,value:a,dragging:u})),j})),oL=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],aL=z.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.draggingIndex,c=Od(e,oL),u=z.useRef({});return z.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),z.createElement(z.Fragment,null,i.map((function(e,t){return z.createElement(rL,Bp({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:tL(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:a,render:s},c))})))}));function iL(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function sL(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=z.useContext(JM),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,f=i.included,p="".concat(t,"-text"),h=eL(c,o,s,l);return z.createElement("span",{className:Mm(p,Ed({},"".concat(p,"-active"),f&&u<=o&&o<=d)),style:Eh(Eh({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(o)}},r)}function lL(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?z.createElement("div",{className:o},n.map((function(e){var t=e.value,n=e.style,a=e.label;return z.createElement(sL,{key:t,prefixCls:o,style:n,value:t,onClick:r},a)}))):null}function cL(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=z.useContext(JM),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,f="".concat(t,"-dot"),p=c&&u<=n&&n<=d,h=Eh(Eh({},eL(l,n,i,s)),"function"==typeof r?r(n):r);return p&&(h=Eh(Eh({},h),"function"==typeof o?o(n):o)),z.createElement("span",{className:Mm(f,Ed({},"".concat(f,"-active"),p)),style:h})}function uL(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=z.useContext(JM),s=i.min,l=i.max,c=i.step,u=z.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),r&&null!==c)for(var t=s;t<=l;)e.add(t),t+=c;return Array.from(e)}),[s,l,c,r,n]);return z.createElement("div",{className:"".concat(t,"-step")},u.map((function(e){return z.createElement(cL,{prefixCls:t,key:e,value:e,style:o,activeStyle:a})})))}function dL(e){var t,n=e.prefixCls,r=e.style,o=e.start,a=e.end,i=e.index,s=e.onStartMove,l=e.replaceCls,c=z.useContext(JM),u=c.direction,d=c.min,f=c.max,p=c.disabled,h=c.range,g=c.classNames,m="".concat(n,"-track"),b=ZM(o,d,f),v=ZM(a,d,f),y=function(e){!p&&s&&s(e,-1)},w={};switch(u){case"rtl":w.right="".concat(100*b,"%"),w.width="".concat(100*v-100*b,"%");break;case"btt":w.bottom="".concat(100*b,"%"),w.height="".concat(100*v-100*b,"%");break;case"ttb":w.top="".concat(100*b,"%"),w.height="".concat(100*v-100*b,"%");break;default:w.left="".concat(100*b,"%"),w.width="".concat(100*v-100*b,"%")}var x=l||Mm(m,(Ed(t={},"".concat(m,"-").concat(i+1),null!==i&&h),Ed(t,"".concat(n,"-track-draggable"),s),t),g.track);return z.createElement("div",{className:x,style:Eh(Eh({},w),r),onMouseDown:y,onTouchStart:y})}function fL(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=z.useContext(JM),s=i.included,l=i.range,c=i.min,u=i.styles,d=i.classNames,f=z.useMemo((function(){if(!l){if(0===r.length)return[];var e=null!=o?o:c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],a=0;a=0&&_}),[_,oe]),ie=z.useMemo((function(){return Object.keys(V||{}).map((function(e){var t=V[e],n={value:Number(e)};return t&&"object"===kd(t)&&!z.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}))}),[V]),se=function(e,t,n,r,o,a){var i=z.useCallback((function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=z.useCallback((function(r){if(null!==n){var o=e+Math.round((i(r)-e)/n)*n,a=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(a(n),a(t),a(e)),l=Number(o.toFixed(s));return e<=l&&l<=t?l:null}return null}),[n,e,t,i]),l=z.useCallback((function(o){var a=i(o),l=r.map((function(e){return e.value}));null!==n&&l.push(s(o)),l.push(e,t);var c=l[0],u=t-e;return l.forEach((function(e){var t=Math.abs(a-e);t<=u&&(c=e,u=t)})),c}),[e,t,r,n,i,s]),c=function o(a,i,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof i){var u,d=a[l],f=d+i,p=[];r.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(s(d));var h=i>0?1:-1;"unit"===c?p.push(s(d+h*n)):p.push(s(f)),p=p.filter((function(e){return null!==e})).filter((function(e){return i<0?e<=d:e>=d})),"unit"===c&&(p=p.filter((function(e){return e!==d})));var g="unit"===c?d:f;u=p[0];var m=Math.abs(u-g);if(p.forEach((function(e){var t=Math.abs(e-g);t1){var b=kh(a);return b[l]=u,o(b,i-h,l,c)}return u}return"min"===i?e:"max"===i?t:void 0},u=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],a=c(e,t,n,r);return{value:a,changed:a!==o}},d=function(e){return null===a&&0===e||"number"==typeof a&&e3&&void 0!==arguments[3]?arguments[3]:"unit",i=e.map(l),s=i[n],f=c(i,t,n,r);if(i[n]=f,!1===o){var p=a||0;n>0&&i[n-1]!==s&&(i[n]=Math.max(i[n],i[n-1]+p)),n0;b-=1)for(var v=!0;d(i[b]-i[b-1])&&v;){var y=u(i,-1,b-1);i[b-1]=y.value,v=y.changed}for(var w=i.length-1;w>0;w-=1)for(var x=!0;d(i[w]-i[w-1])&&x;){var S=u(i,-1,w-1);i[w-1]=S.value,x=S.changed}for(var k=0;k=0?E+1:2;for(n=n.slice(0,r);n.length=0&&Z.current.focus(e)}De(null)}),[Oe]);var $e=z.useMemo((function(){return(!I||null!==oe)&&I}),[I,oe]),je=function(e,t){ke(e,t),null==D||D(me(ge.current))},Ne=-1!==we;z.useEffect((function(){if(!Ne){var e=he.lastIndexOf(xe);Z.current.focus(e)}}),[Ne]);var Pe=z.useMemo((function(){return kh(Se).sort((function(e,t){return e-t}))}),[Se]),_e=og(z.useMemo((function(){return C?[Pe[0],Pe[Pe.length-1]]:[ne,Pe[0]]}),[Pe,C,ne]),2),Ie=_e[0],Te=_e[1];z.useImperativeHandle(t,(function(){return{focus:function(){Z.current.focus(0)},blur:function(){var e=document.activeElement;ee.current.contains(e)&&(null==e||e.blur())}}})),z.useEffect((function(){p&&Z.current.focus(0)}),[]);var Fe=z.useMemo((function(){return{min:ne,max:re,direction:te,disabled:u,keyboard:f,step:oe,included:A,includedStart:Ie,includedEnd:Te,range:C,tabIndex:K,ariaLabelForHandle:Y,ariaLabelledByForHandle:Q,ariaValueTextFormatterForHandle:J,styles:l||{},classNames:s||{}}}),[ne,re,te,u,f,oe,A,Ie,Te,C,K,Y,Q,J,l,s]);return z.createElement(JM.Provider,{value:Fe},z.createElement("div",{ref:ee,className:Mm(o,a,(n={},Ed(n,"".concat(o,"-disabled"),u),Ed(n,"".concat(o,"-vertical"),F),Ed(n,"".concat(o,"-horizontal"),!F),Ed(n,"".concat(o,"-with-marks"),ie.length),n)),style:i,onMouseDown:function(e){e.preventDefault();var t,n=ee.current.getBoundingClientRect(),r=n.width,o=n.height,a=n.left,i=n.top,s=n.bottom,l=n.right,c=e.clientX,u=e.clientY;switch(te){case"btt":t=(s-u)/o;break;case"ttb":t=(u-i)/o;break;case"rtl":t=(l-c)/r;break;default:t=(c-a)/r}Ce(ce(ne+t*(re-ne)),e)}},z.createElement("div",{className:Mm("".concat(o,"-rail"),null==s?void 0:s.rail),style:Eh(Eh({},H),null==l?void 0:l.rail)}),z.createElement(fL,{prefixCls:o,style:L,values:Pe,startPoint:M,onStartMove:$e?je:null}),z.createElement(uL,{prefixCls:o,marks:ie,dots:G,style:W,activeStyle:U}),z.createElement(aL,{ref:Z,prefixCls:o,style:B,values:Se,draggingIndex:we,onStartMove:je,onOffsetChange:function(e,t){if(!u){var n=ue(he,e,t);null==D||D(me(he)),be(n.values),null==$||$(me(n.values)),De(n.value)}},onFocus:h,onBlur:g,handleRender:q}),z.createElement(lL,{prefixCls:o,marks:ie,onClick:Ce})))}));const hL=z.forwardRef(((e,t)=>{const{open:n}=e,r=z.useRef(null),o=z.useRef(null);function a(){Zb.cancel(o.current),o.current=null}return z.useEffect((()=>(n?o.current=Zb((()=>{var e;null===(e=r.current)||void 0===e||e.forceAlign(),o.current=null})):a(),a)),[n,e.title]),z.createElement(xP,Object.assign({ref:lb(r,t)},e))})),gL=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},Vy(e)),{position:"relative",height:r,margin:`${i}px ${a}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${a}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${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:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${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:`${e.handleLineWidth}px 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:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new zv(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},mL=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart",u=(3*r-o)/2,d=(o-r)/2,f=t?{borderWidth:`${d}px 0`,transform:`translateY(-${d}px)`}:{borderWidth:`0 ${d}px`,transform:`translateX(-${d}px)`};return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[i]:"100%",[s]:r},[`${n}-track,${n}-tracks`]:{[s]:r},[`${n}-track-draggable`]:Object.assign({},f),[`${n}-handle`]:{[l]:u},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:3*r+(t?0:e.marginFull),[i]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[i]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-a)/2}}},bL=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},mL(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},vL=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},mL(e,!1)),{height:"100%"})}},yL=nw("Slider",(e=>{const t=Jy(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[gL(t),bL(t),vL(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));const wL=H.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement: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{x((n=>Object.assign(Object.assign({},n),{[e]:t})))},k=(e,t)=>e||(t?"rtl"===h?"left":"right":"top"),C=m("slider",n),[E,O]=yL(C),D=Mm(o,null==g?void 0:g.className,a,{[`${C}-rtl`]:"rtl"===h},O);"rtl"!==h||p.vertical||(p.reverse=!p.reverse);const[$,j]=H.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),N=Object.assign(Object.assign({},null==g?void 0:g.style),i);return E(H.createElement(pL,Object.assign({},p,{step:p.step,range:$,draggableTrack:j,className:D,style:N,disabled:y,ref:t,prefixCls:C,handleRender:(t,n)=>{var r;const{index:o,dragging:a}=n,{tooltip:i={},vertical:s}=e,h=Object.assign({},i),{open:g,placement:v,getPopupContainer:y,prefixCls:x,formatter:E}=h,O=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(E,c),D=!!O&&(w[o]||a),$=null!==(r=null!=g?g:u)&&void 0!==r?r:void 0===g&&D,j=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>S(o,!0),onMouseLeave:()=>S(o,!1),onFocus:e=>{var t;S(o,!0),null===(t=p.onFocus)||void 0===t||t.call(p,e)},onBlur:e=>{var t;S(o,!1),null===(t=p.onBlur)||void 0===t||t.call(p,e)}});return H.createElement(hL,Object.assign({},h,{prefixCls:m("tooltip",null!=x?x:l),title:O?O(n.value):"",open:$,placement:k(null!=v?v:f,s),key:o,overlayClassName:`${C}-tooltip`,getPopupContainer:y||d||b}),H.cloneElement(t,j))}})))})),xL=wL;var SL=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],kL=z.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,h=e.onKeyDown,g=Od(e,SL),m=og(Hy(!1,{value:i,defaultValue:s}),2),b=m[0],v=m[1];function y(e,t){var n=b;return l||(v(n=e),null==p||p(n,t)),n}var w=Mm(o,a,(Ed(n={},"".concat(o,"-checked"),b),Ed(n,"".concat(o,"-disabled"),l),n));return z.createElement("button",Bp({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:w,ref:t,onKeyDown:function(e){e.which===nS.LEFT?y(!1,e):e.which===nS.RIGHT&&y(!0,e),null==h||h(e)},onClick:function(e){var t=y(!b,e);null==f||f(t,e)}}),c,z.createElement("span",{className:"".concat(o,"-inner")},z.createElement("span",{className:"".concat(o,"-inner-checked")},u),z.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))}));kL.displayName="Switch";const CL=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s}=e,l=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${s+2*r}px + ${2*i}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${s+2*r}px - ${2*i}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},EL=e=>{const{componentCls:t,handleSize:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},OL=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:a,handleSize:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:i/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${i+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},DL=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i}=e,s=`${t}-inner`;return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-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"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${i+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${i+2*r}px + ${2*a}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${i+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${i+2*r}px - ${2*a}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},$L=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vy(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Ky(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"}})}},jL=nw("Switch",(e=>{const t=Jy(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[$L(t),DL(t),OL(t),EL(t),CL(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=a-4,l=i-4;return{trackHeight:a,trackHeightSM:i,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new zv("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));const NL=z.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style: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{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM;return Jy(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},TL=e=>({defaultBg:new zv(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),FL=nw("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return{[o]:Object.assign(Object.assign({},Vy(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${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:i,color:e.colorTextDescription,fontSize:e.tagIconSize,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}}})(IL(e))),TL);const RL=z.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=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);o{null==i||i(!a),null==s||s(e)}})))})),AL=RL,ML=rw(["Tag","preset"],(e=>(e=>ow(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(IL(e))),TL);const LL=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},BL=rw(["Tag","status"],(e=>{const t=IL(e);return[LL(t,"success","Success"),LL(t,"processing","Info"),LL(t,"error","Error"),LL(t,"warning","Warning")]}),TL);const zL=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=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{"visible"in p&&v(p.visible)}),[p.visible]);const y=bP(l),w=function(e){return mP.includes(e)}(l),x=y||w,S=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},null==m?void 0:m.style),a),k=h("tag",n),[C,E]=FL(k),O=Mm(k,null==m?void 0:m.className,{[`${k}-${l}`]:x,[`${k}-has-color`]:l&&!x,[`${k}-hidden`]:!b,[`${k}-rtl`]:"rtl"===g,[`${k}-borderless`]:!f},r,o,E),D=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||v(!1)},[,$]=GC(d,u,(e=>null===e?z.createElement(Tx,{className:`${k}-close-icon`,onClick:D}):z.createElement("span",{className:`${k}-close-icon`,onClick:D},e)),null,!1),j="function"==typeof p.onClick||i&&"a"===i.type,N=s||null,P=N?z.createElement(z.Fragment,null,N,i&&z.createElement("span",null,i)):i,_=z.createElement("span",Object.assign({},p,{ref:t,className:O,style:S}),P,$,y&&z.createElement(ML,{key:"preset",prefixCls:k}),w&&z.createElement(BL,{key:"status",prefixCls:k}));return C(j?z.createElement(fk,{component:"Tag"},_):_)},HL=z.forwardRef(zL);HL.CheckableTag=AL;const WL=HL;const UL=(e,t)=>{const n=null!=t?t:my(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)),gy(r)),{controlHeight:o}),iy(Object.assign(Object.assign({},n),{controlHeight:o})))},VL=(e,t)=>new zv(e).setAlpha(t).toRgbString(),GL=(e,t)=>new zv(e).lighten(t).toHexString(),qL=e=>{const t=ty(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]}},XL=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:VL(r,.85),colorTextSecondary:VL(r,.65),colorTextTertiary:VL(r,.45),colorTextQuaternary:VL(r,.25),colorFill:VL(r,.18),colorFillSecondary:VL(r,.12),colorFillTertiary:VL(r,.08),colorFillQuaternary:VL(r,.04),colorBgElevated:GL(n,12),colorBgContainer:GL(n,8),colorBgLayout:GL(n,0),colorBgSpotlight:GL(n,26),colorBgBlur:VL(r,.04),colorBorder:GL(n,26),colorBorderSecondary:GL(n,19)}},KL=(e,t)=>{const n=Object.keys(sy).map((t=>{const n=ty(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)=>e=Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:my(e);return Object.assign(Object.assign(Object.assign({},r),n),cy(e,{generateColorPalettes:qL,generateNeutralColorPalettes:XL}))};const YL={defaultConfig:vy,defaultSeed:vy.token,useToken:function(){const[e,t,n]=My();return{theme:e,token:t,hashId:n}},defaultAlgorithm:my,darkAlgorithm:KL,compactAlgorithm:UL,getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?cg(e.algorithm):cg(my),n=Object.assign(Object.assign({},ly),null==e?void 0:e.token);return Ng(n,{override:null==e?void 0:e.token},t,Fy)}};var QL,JL=function(){return YL.useToken().token},ZL=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},eB=z.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(QL=ZL("dark"))&&void 0!==QL&&QL.matches?"dark":"light"}),tB=function(){return z.useContext(eB)},nB=function(){var e=JL(),t=tB(),n=t.appearance,r=t.isDarkMode;return z.useMemo((function(){return t=function(e){var t=e.css,n=e.token;return{buttonDefaultHover:t({backgroundColor:n.colorBgContainer,border:"1px solid ".concat(n.colorBorder),cursor:"pointer",":hover":{color:n.colorPrimaryHover,borderColor:n.colorPrimaryHover},":active":{color:n.colorPrimaryActive,borderColor:n.colorPrimaryActive}})}}({token:e,css:Lp,appearance:n,isDarkMode:r}),Object.fromEntries(Object.entries(t).map((function(e){var t=og(e,2);return[t[0],t[1].styles]})));var t}),[e,n,r])};function rB(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 oB(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r0&&(o=o.replace(/^[\/]+/,"")),o=r0?"?":"")+i.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}var ZH=function(e){var t=e.pkg,n=e.version,r=void 0===n?"latest":n,o=e.path;return"unpkg"===e.proxy?JH("https://unpkg.com","".concat(t,"@").concat(r),o):JH("https://registry.npmmirror.com",t,r,"files",o)},eW=z.createContext(null),tW=function(e){var t=e.pkg,n=e.version,r=e.path;return ZH({path:r,pkg:t,proxy:"aliyun",version:n})},nW=function(){var e=z.useContext(eW);return e?"custom"!==(null==e?void 0:e.proxy)?function(t){var n=t.pkg,r=t.version,o=t.path;return ZH({path:o,pkg:n,proxy:e.proxy,version:r})}:(null==e?void 0:e.customCdnFn)||tW:tW};function rW(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 oW(e){for(var t=1;t=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,c=i):o>=3&&o<4?(l=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i);var u=n-a/2;return r(s+u,l+u,c+u)}var wW={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var xW=/^#[a-fA-F0-9]{6}$/,SW=/^#[a-fA-F0-9]{8}$/,kW=/^#[a-fA-F0-9]{3}$/,CW=/^#[a-fA-F0-9]{4}$/,EW=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,OW=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,DW=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,$W=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function jW(e){if("string"!=typeof e)throw new mW(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return wW[t]?"#"+wW[t]:e}(e);if(t.match(xW))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(SW)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(kW))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(CW)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=EW.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=OW.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=DW.exec(t);if(i){var s="rgb("+yW(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=EW.exec(s);if(!l)throw new mW(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=$W.exec(t.substring(0,50));if(c){var u="rgb("+yW(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=EW.exec(u);if(!d)throw new mW(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new mW(5)}function NW(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),i=Math.min(n,r,o),s=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l=a-i,c=s>.5?l/(2-a-i):l/(a+i);switch(a){case n:t=(r-o)/l+(r=1?RW(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?RW(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new mW(7)}var MW=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},LW=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},BW=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},zW=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function HW(e){if("object"!=typeof e)throw new mW(8);if(LW(e))return AW(e);if(MW(e))return RW(e);if(zW(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?FW(e,t,n):"rgba("+yW(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?FW(e.hue,e.saturation,e.lightness):"rgba("+yW(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new mW(2)}(e);if(BW(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return FW(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return FW(e.hue,e.saturation,e.lightness);throw new mW(1)}(e);throw new mW(8)}function WW(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):WW(e,t,r)}}function UW(e){return WW(e,e.length,[])}function VW(e,t){if("transparent"===t)return t;var n=NW(t);return HW(Bp({},n,{hue:n.hue+parseFloat(e)}))}var GW=UW(VW);function qW(e){if("transparent"===e)return 0;var t=jW(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],a=n[2];return parseFloat((.2126*r+.7152*o+.0722*a).toFixed(3))}function XW(e,t){if("transparent"===t)return t;var n,r,o,a=NW(t);return HW(Bp({},a,{lightness:(n=0,r=1,o=a.lightness+parseFloat(e),Math.max(n,Math.min(r,o)))}))}var KW=UW(XW),YW="#000",QW="#fff";function JW(e,t,n,r){void 0===t&&(t=YW),void 0===n&&(n=QW),void 0===r&&(r=!0);var o,a,i,s=qW(e)>.179,l=s?t:n;return!r||(o=l,a=qW(e),i=qW(o),parseFloat((a>i?(a+.05)/(i+.05):(i+.05)/(a+.05)).toFixed(2))>=4.5)?l:s?YW:QW}function ZW(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}"function"==typeof SuppressedError&&SuppressedError;var eU=function(e){return"function"==typeof e};function tU(e,t){if(e===t)return!0;for(var n=0;n-1},WU=function(e,t){var n=this.__data__,r=MU(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function UU(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new mG:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},tq=wU,nq=eq,rq=xU,oq={};oq["[object Float32Array]"]=oq["[object Float64Array]"]=oq["[object Int8Array]"]=oq["[object Int16Array]"]=oq["[object Int32Array]"]=oq["[object Uint8Array]"]=oq["[object Uint8ClampedArray]"]=oq["[object Uint16Array]"]=oq["[object Uint32Array]"]=!0,oq["[object Arguments]"]=oq["[object Array]"]=oq["[object ArrayBuffer]"]=oq["[object Boolean]"]=oq["[object DataView]"]=oq["[object Date]"]=oq["[object Error]"]=oq["[object Function]"]=oq["[object Map]"]=oq["[object Number]"]=oq["[object Object]"]=oq["[object RegExp]"]=oq["[object Set]"]=oq["[object String]"]=oq["[object WeakMap]"]=!1;var aq=function(e){return rq(e)&&nq(e.length)&&!!oq[tq(e)]};var iq=function(e){return function(t){return e(t)}},sq={exports:{}};!function(e,t){var n=aU,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(A4){}}();e.exports=i}(sq,sq.exports);var lq=sq.exports,cq=aq,uq=iq,dq=lq&&lq.isTypedArray,fq=dq?uq(dq):cq,pq=BG,hq=XG,gq=NG,mq=QG,bq=ZG,vq=fq,yq=Object.prototype.hasOwnProperty;var wq=function(e,t){var n=gq(e),r=!n&&hq(e),o=!n&&!r&&mq(e),a=!n&&!r&&!o&&vq(e),i=n||r||o||a,s=i?pq(e.length,String):[],l=s.length;for(var c in e)!t&&!yq.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bq(c,l))||s.push(c);return s},xq=Object.prototype;var Sq=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xq)};var kq=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Cq=Sq,Eq=kq,Oq=Object.prototype.hasOwnProperty;var Dq=function(e){if(!Cq(e))return Eq(e);var t=[];for(var n in Object(e))Oq.call(e,n)&&"constructor"!=n&&t.push(n);return t},$q=eV,jq=eq;var Nq=wq,Pq=Dq,_q=function(e){return null!=e&&jq(e.length)&&!$q(e)};var Iq=function(e){return _q(e)?Nq(e):Pq(e)},Tq=IG,Fq=LG,Rq=Iq;var Aq=function(e){return Tq(e,Rq,Fq)},Mq=Aq,Lq=Object.prototype.hasOwnProperty;var Bq=function(e,t,n,r,o,a){var i=1&n,s=Mq(e),l=s.length;if(l!=Mq(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:Lq.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=i;++c .","-menu-item-only-child, .","-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .","-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .","-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .","-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .","-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .","-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .","-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),a,a,n.colorText,n.colorFill,a,a,n.colorText,a,n.colorFillSecondary,a,n.borderRadius,n.colorText,n.colorFillSecondary,a,n.colorFillSecondary,n.borderRadius,a,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),AX=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];function MX(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 LX(e){for(var t=1;t