// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.12.2 // @author magicdawn // @description 为B站首页添加像App一样的推荐 // @license MIT // @homepageURL https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @match *://www.bilibili.com/ // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png // @match *://www.bilibili.com/index.html // @match *://www.bilibili.com/?* // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?* // @match *://www.bilibili.com/index.html?* // @require https://unpkg.com/axios@0.27.2/dist/axios.min.js // @require https://unpkg.com/axios-userscript-adapter@0.2.0/dist/axiosGmxhrAdapter.min.js // @require https://unpkg.com/react@18.2.0/umd/react.production.min.js // @require https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js // @connect app.bilibili.com // @connect passport.bilibili.com // @connect link.acg.tv // @connect www.mcbbs.net // @grant GM.xmlHttpRequest // @grant GM_deleteValue // @grant GM_getValue // @grant GM_setValue // @grant unsafeWindow // @downloadURL none // ==/UserScript== (i=>{const t=document.createElement("style");t.dataset.source="vite-plugin-monkey",t.textContent=i,document.head.append(t)})(" .primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px}.ant-btn:disabled{cursor:wait}.ant-radio-button-wrapper-disabled{cursor:wait}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}._modal-mask_1isor_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10001;display:flex;align-items:center;justify-content:center}._modal_1isor_1{width:500px;max-height:calc(90vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1isor_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1isor_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1isor_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1isor_42{margin-left:10px}._btn-close_1isor_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1isor_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._toast-container_185m9_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:90000;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background-color:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_185m9_1._single-line_185m9_17{text-align:center}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._bili-video-card_mlccj_1{position:relative}._image-wrapper_mlccj_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_mlccj_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:4;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._preview-card-wrapper_mlccj_8 ._preview-card-inner_mlccj_21{width:100%;height:100%}._watch-later_mlccj_25{z-index:5}._badge_mlccj_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mlccj_37{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_mlccj_52{color:default}._btn-dislike_mlccj_55{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_mlccj_55 ._btn-dislike-icon_mlccj_70{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mlccj_55 ._btn-dislike-tip_mlccj_77{pointer-events:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_mlccj_92{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_mlccj_92{border:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-icon_mlccj_123{margin-bottom:5px}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-reason_mlccj_126{font-size:20px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-desc_mlccj_130{font-size:16px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{border-top:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mlccj_151 .bili-video-card__skeleton--cover,._skeleton-active_mlccj_151 .bili-video-card__skeleton--text,._skeleton-active_mlccj_151 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_mlccj_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mlccj_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_tu03i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_tu03i_9{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_tu03i_9{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid_tu03i_9{grid-template-columns:repeat(6,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 13){display:none!important}}@media (min-width: 2200px){._video-grid_tu03i_9{grid-template-columns:repeat(7,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 15){display:none!important}}._video-grid_tu03i_9._internal-testing_tu03i_51{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 5){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 6){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_tu03i_79{grid-template-columns:repeat(2,1fr)!important}._config-icon_18r5p_1{line-height:1;margin-right:5px;font-size:0}._settings-group_18r5p_6{margin-bottom:10px}._settings-group_18r5p_6 ._settings-group-title_18r5p_9{font-size:2em;display:flex;align-items:center}._settings-group_18r5p_6 ._settings-group-sub-title_18r5p_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_18r5p_6 ._settings-group-content_18r5p_20{color:default}._settings-group_18r5p_6 ._settings-group-content_18r5p_20 button:first-child{margin-left:0}._row_18r5p_26{display:flex;align-items:center;flex-wrap:wrap}._row_18r5p_26 .primary-btn:first-child{margin-left:0}._check_18r5p_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_18r5p_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_18r5p_42{min-height:40vh;max-height:calc(90vh - 121px);overflow-y:scroll}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} "); (function (f, ia, ph, Ew) { 'use strict'; function _interopNamespaceDefault(e) { const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } }); if (e) { for (const k in e) { if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: () => e[k] }); } } } n.default = e; return Object.freeze(n); } const f__namespace = /*#__PURE__*/_interopNamespaceDefault(f); const ia__namespace = /*#__PURE__*/_interopNamespaceDefault(ia); var hw=Object.defineProperty;var vw=(e,t,n)=>t in e?hw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var gt=(e,t,n)=>(vw(e,typeof t!="symbol"?t+"":t,n),n),Du=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var k=(e,t,n)=>(Du(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n);},Ke=(e,t,n,r)=>(Du(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),al=(e,t,n,r)=>({set _(o){Ke(e,t,o,n);},get _(){return k(e,t,r)}}),Fe=(e,t,n)=>(Du(e,t,"access private method"),n);var KB=pw((uo,fo)=>{var mb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ow(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype;}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}});}),n}var gb={exports:{}},Mc={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Pw=f,_w=Symbol.for("react.element"),Rw=Symbol.for("react.fragment"),Mw=Object.prototype.hasOwnProperty,Tw=Pw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Iw={key:!0,ref:!0,__self:!0,__source:!0};function bb(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Mw.call(t,r)&&!Iw.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return {$$typeof:_w,type:e,key:i,ref:a,props:o,_owner:Tw.current}}Mc.Fragment=Rw;Mc.jsx=bb;Mc.jsxs=bb;gb.exports=Mc;var us=gb.exports;function Nw(e){if(e.sheet)return e.sheet;for(var t=0;t0?bn(ga,--kn):0,aa--,an===10&&(aa=1,Ic--),an}function Zn(){return an=kn2||fs(an)>3?"":" "}function Gw(e,t){for(;--t&&Zn()&&!(an<48||an>102||an>57&&an<65||an>70&&an<97););return Is(e,Ml()+(t<6&&Hr()==32&&Zn()==32))}function Vd(e){for(;Zn();)switch(an){case e:return kn;case 34:case 39:e!==34&&e!==39&&Vd(an);break;case 40:e===41&&Vd(e);break;case 92:Zn();break}return kn}function Kw(e,t){for(;Zn()&&e+an!==47+10;)if(e+an===42+42&&Hr()===47)break;return "/*"+Is(t,kn-1)+"*"+Tc(e===47?e:Zn())}function Xw(e){for(;!fs(Hr());)Zn();return Is(e,kn)}function Eb(e){return $b(Il("",null,null,null,[""],e=xb(e),0,[0],e))}function Il(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,v=0,p=0,m=1,g=1,b=1,y=0,w="",$=o,S=i,C=r,x=w;g;)switch(p=y,y=Zn()){case 40:if(p!=108&&bn(x,d-1)==58){Wd(x+=Rt(Tl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:x+=Tl(y);break;case 9:case 10:case 13:case 32:x+=Uw(p);break;case 92:x+=Gw(Ml()-1,7);continue;case 47:switch(Hr()){case 42:case 47:sl(qw(Kw(Zn(),Ml()),t,n),l);break;default:x+="/";}break;case 123*m:s[c++]=Lr(x)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:b==-1&&(x=Rt(x,/\f/g,"")),v>0&&Lr(x)-d&&sl(v>32?cp(x+";",r,n,d-1):cp(Rt(x," ","")+";",r,n,d-2),l);break;case 59:x+=";";default:if(sl(C=lp(x,t,n,c,u,o,s,w,$=[],S=[],d),i),y===123)if(u===0)Il(x,t,C,C,$,i,d,s,S);else switch(h===99&&bn(x,3)===110?100:h){case 100:case 108:case 109:case 115:Il(e,C,C,r&&sl(lp(e,C,C,0,0,o,s,w,o,$=[],d),S),o,S,d,s,r?$:S);break;default:Il(x,C,C,C,[""],S,0,s,S);}}c=u=v=0,m=b=1,w=x="",d=a;break;case 58:d=1+Lr(x),v=p;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&Vw()==125)continue}switch(x+=Tc(y),y*m){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Lr(x)-1)*b,b=1;break;case 64:Hr()===45&&(x+=Tl(Zn())),h=Hr(),u=d=Lr(w=x+=Xw(Ml())),y++;break;case 45:p===45&&Lr(x)==2&&(m=0);}}return i}function lp(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,h=o===0?i:[""],v=bh(h),p=0,m=0,g=0;p0?h[b]+" "+y:Rt(y,/&\f/g,h[b])))&&(l[g++]=w);return Nc(e,t,n,o===0?mh:s,l,c,u)}function qw(e,t,n){return Nc(e,t,n,yb,Tc(Ww()),ds(e,2,-2),0)}function cp(e,t,n,r){return Nc(e,t,n,gh,ds(e,0,r),ds(e,r+1,-1),r)}function li(e,t){for(var n="",r=bh(e),o=0;o6)switch(bn(e,t+1)){case 109:if(bn(e,t+4)!==45)break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+_t+"$2-$3$1"+Yl+(bn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Wd(e,"stretch")?Pb(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(bn(e,t+1)!==115)break;case 6444:switch(bn(e,Lr(e)-3-(~Wd(e,"!important")&&10))){case 107:return Rt(e,":",":"+_t)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_t+(bn(e,14)===45?"inline-":"")+"box$3$1"+_t+"$2$3$1"+$n+"$2box$3")+e}break;case 5936:switch(bn(e,t+11)){case 114:return _t+e+$n+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _t+e+$n+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _t+e+$n+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _t+e+$n+e+e}return e}var ox=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case gh:t.return=Pb(t.value,t.length);break;case Cb:return li([Oa(t,{value:Rt(t.value,"@","@"+_t)})],o);case mh:if(t.length)return Bw(t.props,function(i){switch(Hw(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return li([Oa(t,{props:[Rt(i,/:(read-\w+)/,":"+Yl+"$1")]})],o);case"::placeholder":return li([Oa(t,{props:[Rt(i,/:(plac\w+)/,":"+_t+"input-$1")]}),Oa(t,{props:[Rt(i,/:(plac\w+)/,":"+Yl+"$1")]}),Oa(t,{props:[Rt(i,/:(plac\w+)/,$n+"input-$1")]})],o)}return ""})}},ix=[ox],_b=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""));});}var o=t.stylisPlugins||ix,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var px={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},mx=/[A-Z]|^ms/g,gx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Db=function(t){return t.charCodeAt(1)===45},dp=function(t){return t!=null&&typeof t!="boolean"},Lu=Qw(function(e){return Db(e)?e:e.replace(mx,"-$&").toLowerCase()}),fp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(gx,function(r,o,i){return Fr={name:o,styles:i,next:Fr},o})}return px[t]!==1&&!Db(t)&&typeof n=="number"&&n!==0?n+"px":n};function hs(e,t,n){if(n==null)return "";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return "";case"object":{if(n.anim===1)return Fr={name:n.name,styles:n.styles,next:Fr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Fr={name:r.name,styles:r.styles,next:Fr},r=r.next;var o=n.styles+";";return o}return bx(e,t,n)}case"function":{if(e!==void 0){var i=Fr,a=n(e);return Fr=i,hs(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function bx(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o0)return a(u);if(h==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var h=parseFloat(d[1]),v=(d[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*o;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,h,v){var p=d>=h*1.5;return Math.round(u/h)+" "+v+(p?"s":"")}return Fu}function Px(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=Ox(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u];}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let h=0;h{if(C==="%%")return "%";$++;const P=n.formatters[x];if(typeof P=="function"){const R=g[$];C=P.call(b,R),g.splice($,1),$--;}return C}),n.formatArgs.call(b,g),(b.log||n.log).apply(b,g);}return m.namespace=u,m.useColors=n.useColors(),m.color=n.selectColor(u),m.extend=r,m.destroy=n.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==n.namespaces&&(v=n.namespaces,p=n.enabled(u)),p),set:g=>{h=g;}}),typeof n.init=="function"&&n.init(m),m}function r(u,d){const h=n(this.namespace+(typeof d>"u"?":":d)+u);return h.log=this.log,h}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const h=(typeof u=="string"?u:"").split(/[\s,]+/),v=h.length;for(d=0;d"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,h;for(d=0,h=n.skips.length;d{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function i(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=_x(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Gd,Gd.exports);var Rx=Gd.exports;const Mx=Xr(Rx),Fo="bilibili-app-recommend",Tx="bilibili_app_recommend",$h=Mx(Fo);var Ix=typeof global=="object"&&global&&global.Object===Object&&global;const zb=Ix;var Nx=typeof self=="object"&&self&&self.Object===Object&&self,Ax=zb||Nx||Function("return this")();const qr=Ax;var Dx=qr.Symbol;const Ur=Dx;var jb=Object.prototype,kx=jb.hasOwnProperty,Lx=jb.toString,Pa=Ur?Ur.toStringTag:void 0;function Fx(e){var t=kx.call(e,Pa),n=e[Pa];try{e[Pa]=void 0;var r=!0;}catch{}var o=Lx.call(e);return r&&(t?e[Pa]=n:delete e[Pa]),o}var zx=Object.prototype,jx=zx.toString;function Hx(e){return jx.call(e)}var Bx="[object Null]",Wx="[object Undefined]",pp=Ur?Ur.toStringTag:void 0;function ba(e){return e==null?e===void 0?Wx:Bx:pp&&pp in Object(e)?Fx(e):Hx(e)}function sa(e){return e!=null&&typeof e=="object"}var Vx="[object Symbol]";function Uc(e){return typeof e=="symbol"||sa(e)&&ba(e)==Vx}function Ux(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=E$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function R$(e){return function(){return e}}var M$=function(){try{var e=mi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Zl=M$;var T$=Zl?function(e,t){return Zl(e,"toString",{configurable:!0,enumerable:!1,value:R$(t),writable:!0})}:Bb;const I$=T$;var N$=_$(I$);const A$=N$;function D$(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1}var j$=9007199254740991,H$=/^(?:0|[1-9]\d*)$/;function Eh(e,t){var n=typeof e;return t=t??j$,!!t&&(n=="number"||n!="symbol"&&H$.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=K$}function X$(e){return e!=null&&Ph(e.length)&&!Wb(e)}var q$=Object.prototype;function Y$(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||q$;return e===n}function Z$(e,t){for(var n=-1,r=Array(e);++n-1}function uO(e,t){var n=this.__data__,r=Gc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Co(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?Yb(s,t-1,n,r,o):qb(o,s):r||(o[o.length]=s);}return o}function RO(e){var t=e==null?0:e.length;return t?Yb(e,1):[]}function MO(e){return A$(G$(e,void 0,RO),e+"")}var TO="Expected a function";function IO(e,t){var n;if(typeof t!="function")throw new TypeError(TO);return e=o$(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function NO(){this.__data__=new Co,this.size=0;}function AO(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function DO(e){return this.__data__.get(e)}function kO(e){return this.__data__.has(e)}var LO=200;function FO(e,t){var n=this.__data__;if(n instanceof Co){var r=n.__data__;if(!ps||r.lengths))return !1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,v=n&sP?new ms:void 0;for(i.set(e,t),i.set(t,e);++d=t||x<0||d&&P>=i}function b(){var C=Bu();if(g(C))return y(C);s=setTimeout(b,m(C));}function y(C){return s=void 0,h&&r?v(C):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function $(){return s===void 0?a:y(Bu())}function S(){var C=Bu(),x=g(C);if(r=arguments,o=this,l=C,x){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),v(l)}return s===void 0&&(s=setTimeout(b,t)),a}return S.cancel=w,S.flush=$,S}function XP(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=a_){var c=t?null:i_(e);if(c)return Ih(c);a=!1,o=Zb,l=new ms;}else l=t?[]:s;e:for(;++rnew Proxy(e,t);const Qd=Object.getPrototypeOf,Jd=new WeakMap,o0=e=>e&&(Jd.has(e)?Jd.get(e):Qd(e)===Object.prototype||Qd(e)===Array.prototype),Ql=e=>typeof e=="object"&&e!==null,u_=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0;}),Object.create(Qd(e),t)},Ah=e=>e[Nh]||e,i0=(e,t,n,r)=>{if(!o0(e))return e;let o=r&&r.get(e);if(!o){const l=Ah(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,u_(l)]:[l],r==null||r.set(e,o);}const[i,a]=o;let s=n&&n.get(i);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const h=(p,m)=>{if(!d){let g=u[_a].get(l);if(g||(g={},u[_a].set(l,g)),p===qa)g[qa]=!0;else {let b=g[p];b||(b=new Set,g[p]=b),b.add(m);}}},v={get:(p,m)=>m===Nh?l:(h("k",m),i0(Reflect.get(p,m),u[_a],u.c,u.t)),has:(p,m)=>m===l_?(d=!0,u[_a].delete(l),!0):(h("h",m),Reflect.has(p,m)),getOwnPropertyDescriptor:(p,m)=>(h("o",m),Reflect.getOwnPropertyDescriptor(p,m)),ownKeys:p=>(h(qa),Reflect.ownKeys(p))};return c&&(v.set=v.deleteProperty=()=>!1),[v,u]})(i,!!a),s[1].p=c_(a||i,s[0]),n&&n.set(i,s)),s[1][_a]=t,s[1].c=n,s[1].t=r,s[1].p},a0=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Ql(e)||!Ql(t))return !0;const o=n.get(Ah(e));if(!o)return !0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1});}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[qa]===!0){if(i=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=a0(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},d_=e=>o0(e)&&e[Nh]||null,Hp=(e,t=!0)=>{Jd.set(e,t);},f_=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,s)=>{if(o.has(a))return;Ql(a)&&o.add(a);const l=Ql(a)&&t.get(Ah(a));if(l){var c,u;if((c=l.h)==null||c.forEach(h=>{const v=`:has(${String(h)})`;r.push(s?[...s,v]:[v]);}),l[qa]===!0){const h=":ownKeys";r.push(s?[...s,h]:[h]);}else {var d;(d=l.o)==null||d.forEach(h=>{const v=`:hasOwn(${String(h)})`;r.push(s?[...s,v]:[v]);});}(u=l.k)==null||u.forEach(h=>{n&&!("value"in(Object.getOwnPropertyDescriptor(a,h)||{}))||i(a[h],s?[...s,h]:[h]);});}else s&&r.push(s);};return i(e),r},Wu=e=>typeof e=="object"&&e!==null,Ro=new WeakMap,cl=new WeakSet,h_=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Wu(c)&&!cl.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,i=(c,u,d=r)=>{const h=o.get(c);if((h==null?void 0:h[0])===u)return h[1];const v=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return Hp(v,!0),o.set(c,[u,v]),Reflect.ownKeys(c).forEach(p=>{if(Object.getOwnPropertyDescriptor(v,p))return;const m=Reflect.get(c,p),g={value:m,enumerable:!0,configurable:!0};if(cl.has(m))Hp(m,!1);else if(m instanceof Promise)delete g.value,g.get=()=>d(m);else if(Ro.has(m)){const[b,y]=Ro.get(m);g.value=i(b,y(),d);}Object.defineProperty(v,p,g);}),v},a=new WeakMap,s=[1,1],l=c=>{if(!Wu(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const h=new Set,v=(R,E=++s[0])=>{d!==E&&(d=E,h.forEach(I=>I(R,E)));};let p=s[1];const m=(R=++s[1])=>(p!==R&&!h.size&&(p=R,b.forEach(([E])=>{const I=E[1](R);I>d&&(d=I);})),d),g=R=>(E,I)=>{const O=[...E];O[1]=[R,...O[1]],v(O,I);},b=new Map,y=(R,E)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(R))throw new Error("prop listener already exists");if(h.size){const I=E[3](g(R));b.set(R,[E,I]);}else b.set(R,[E]);},w=R=>{var E;const I=b.get(R);I&&(b.delete(R),(E=I[1])==null||E.call(I));},$=R=>(h.add(R),h.size===1&&b.forEach(([I,O],M)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&O)throw new Error("remove already exists");const _=I[3](g(M));b.set(M,[I,_]);}),()=>{h.delete(R),h.size===0&&b.forEach(([I,O],M)=>{O&&(O(),b.set(M,[I]));});}),S=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),x=t(S,{deleteProperty(R,E){const I=Reflect.get(R,E);w(E);const O=Reflect.deleteProperty(R,E);return O&&v(["delete",[E],I]),O},set(R,E,I,O){const M=Reflect.has(R,E),_=Reflect.get(R,E,O);if(M&&(e(_,I)||a.has(I)&&e(_,a.get(I))))return !0;w(E),Wu(I)&&(I=d_(I)||I);let T=I;if(I instanceof Promise)I.then(A=>{I.status="fulfilled",I.value=A,v(["resolve",[E],A]);}).catch(A=>{I.status="rejected",I.reason=A,v(["reject",[E],A]);});else {!Ro.has(I)&&n(I)&&(T=l(I));const A=!cl.has(T)&&Ro.get(T);A&&y(E,A);}return Reflect.set(R,E,T,O),v(["set",[E],I,_]),!0}});a.set(c,x);const P=[S,m,i,$];return Ro.set(x,P),Reflect.ownKeys(c).forEach(R=>{const E=Object.getOwnPropertyDescriptor(c,R);"value"in E&&(x[R]=c[R],delete E.value,delete E.writable),Object.defineProperty(S,R,E);}),x})=>[l,Ro,cl,e,t,n,r,o,i,a,s],[v_]=h_();function ya(e={}){return v_(e)}function s0(e,t,n){const r=Ro.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],a=r[3];let s=!1;const c=a(u=>{if(i.push(u),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(i.splice(0));}));});return s=!0,()=>{s=!1,c();}}function Bp(e,t){const n=Ro.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}var l0={exports:{}},c0={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var la=f;function p_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var m_=typeof Object.is=="function"?Object.is:p_,g_=la.useState,b_=la.useEffect,y_=la.useLayoutEffect,C_=la.useDebugValue;function S_(e,t){var n=t(),r=g_({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return y_(function(){o.value=n,o.getSnapshot=t,Vu(o)&&i({inst:o});},[e,n,t]),b_(function(){return Vu(o)&&i({inst:o}),e(function(){Vu(o)&&i({inst:o});})},[e]),C_(n),n}function Vu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !m_(e,n)}catch{return !0}}function w_(e,t){return t()}var x_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?w_:S_;c0.useSyncExternalStore=la.useSyncExternalStore!==void 0?la.useSyncExternalStore:x_;l0.exports=c0;var $_=l0.exports;const E_=Xr($_),{use:Wp}=f,{useSyncExternalStore:O_}=E_,P_=(e,t)=>{const n=f.useRef();f.useEffect(()=>{n.current=f_(e,t,!0);}),f.useDebugValue(n.current);},__=new WeakMap;function gi(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let i=!0;const a=O_(f.useCallback(c=>{const u=s0(e,c,n);return c(),u},[e,n]),()=>{const c=Bp(e,Wp);try{if(!i&&r.current&&o.current&&!a0(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Bp(e,Wp));i=!1;const s=new WeakMap;f.useEffect(()=>{r.current=a,o.current=s;}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&P_(a,s);const l=f.useMemo(()=>new WeakMap,[]);return i0(a,s,l,__)}const Dh={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1,useParallelRequest:!0,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowed:!1,onlyFollowMode:!1,useDynamicApi:!1},bt=ya({...Dh}),u0=Object.keys(Dh),lr=function(){return gi(bt)},R_=Fo,d0=`${R_}.settings`;function M_(){const e=GM_getValue(d0);e&&typeof e=="object"&&Object.assign(bt,r0(e,u0)),s0(bt,()=>{T_();});}function T_(){const e=r0(bt,u0);GM_setValue(d0,e);}function vo(e){Object.assign(bt,e);}function I_(){return vo(Dh)}M_();var f0={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(mb,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",h="quarter",v="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var _=["th","st","nd","rd"],T=M%100;return "["+M+(_[(T-20)%10]||_[T]||_[0])+"]"}},w=function(M,_,T){var A=String(M);return !A||A.length>=_?M:""+Array(_+1-A.length).join(T)+M},$={s:w,z:function(M){var _=-M.utcOffset(),T=Math.abs(_),A=Math.floor(T/60),N=T%60;return (_<=0?"+":"-")+w(A,2,"0")+":"+w(N,2,"0")},m:function M(_,T){if(_.date()1)return M(L[0])}else {var z=_.name;C[z]=_,N=z;}return !A&&N&&(S=N),N||!A&&S},R=function(M,_){if(x(M))return M.clone();var T=typeof _=="object"?_:{};return T.date=M,T.args=arguments,new I(T)},E=$;E.l=P,E.i=x,E.w=function(M,_){return R(M,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var I=function(){function M(T){this.$L=P(T.locale,null,!0),this.parse(T);}var _=M.prototype;return _.parse=function(T){this.$d=function(A){var N=A.date,D=A.utc;if(N===null)return new Date(NaN);if(E.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var L=N.match(g);if(L){var z=L[2]-1||0,j=(L[7]||"0").substring(0,3);return D?new Date(Date.UTC(L[1],z,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],z,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(N)}(T),this.$x=T.x||{},this.init();},_.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},_.$utils=function(){return E},_.isValid=function(){return this.$d.toString()!==m},_.isSame=function(T,A){var N=R(T);return this.startOf(A)<=N&&N<=this.endOf(A)},_.isAfter=function(T,A){return R(T)!!document.querySelectorAll(".bili-feed4").length),v0=()=>document.body.classList.contains("dark"),p0=ya({value:v0()});function Zc(){return gi(p0).value}const m0=new MutationObserver(function(){p0.value=v0();});m0.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{m0.disconnect();});function vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(e)}function k_(e,t){if(tt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function g0(e){var t=k_(e,"string");return tt(t)==="symbol"?t:String(t)}function Vp(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function ut(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F_(e,t){if(t&&(tt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ut(e)}function jo(e){var t=L_();return function(){var r=Jl(e),o;if(t){var i=Jl(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return F_(this,o)}}var b0={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return f.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(wr(r)):wh.isFragment(r)&&r.props?n=n.concat(wr(r.props.children,t)):n.push(r));}),n}var tf={},j_=function(t){};function H_(e,t){}function B_(e,t){}function W_(){tf={};}function y0(e,t,n){!t&&!tf[n]&&(e(!1,n),tf[n]=!0);}function Cn(e,t){y0(H_,e,t);}function V_(e,t){y0(B_,e,t);}Cn.preMessage=j_;Cn.resetWarned=W_;Cn.noteOnce=V_;function V(e,t,n){return t=g0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function B(e){for(var t=1;t0},e.prototype.connect_=function(){!nf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Y_?(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(){!nf||!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(t){var n=t.propertyName,r=n===void 0?"":n,o=q_.some(function(i){return !!~r.indexOf(i)});o&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),S0=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof ua(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new iR(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ua(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n);});},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new aR(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x0=typeof WeakMap<"u"?new WeakMap:new C0,$0=function(){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=Z_.getInstance(),r=new sR(t,n,this);x0.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){$0.prototype[e]=function(){var t;return (t=x0.get(this))[e].apply(t,arguments)};});var E0=function(){return typeof tc.ResizeObserver<"u"?tc.ResizeObserver:$0}(),To=new Map;function lR(e){e.forEach(function(t){var n,r=t.target;(n=To.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var O0=new E0(lR);function cR(e,t){To.has(e)||(To.set(e,new Set),O0.observe(e)),To.get(e).add(t);}function uR(e,t){To.has(e)&&(To.get(e).delete(t),To.get(e).size||(O0.unobserve(e),To.delete(e)));}var dR=function(e){zo(n,e);var t=jo(n);function n(){return vn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),rf=f__namespace.createContext(null);function fR(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),i=f__namespace.useContext(rf),a=f__namespace.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),i==null||i(s,l,c);},[n,i]);return f__namespace.createElement(rf.Provider,{value:a},t)}function hR(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),i=f__namespace.useRef(null),a=f__namespace.useContext(rf),s=typeof n=="function",l=s?n(o):n,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(l)&&Ho(l),d=u?l.ref:null,h=f__namespace.useMemo(function(){return Pn(d,o)},[d,o]),v=function(){return gs(o.current)||gs(i.current)};f__namespace.useImperativeHandle(t,function(){return v()});var p=f__namespace.useRef(e);p.current=e;var m=f__namespace.useCallback(function(g){var b=p.current,y=b.onResize,w=b.data,$=g.getBoundingClientRect(),S=$.width,C=$.height,x=g.offsetWidth,P=g.offsetHeight,R=Math.floor(S),E=Math.floor(C);if(c.current.width!==R||c.current.height!==E||c.current.offsetWidth!==x||c.current.offsetHeight!==P){var I={width:R,height:E,offsetWidth:x,offsetHeight:P};c.current=I;var O=x===Math.round(S)?S:x,M=P===Math.round(C)?C:P,_=B(B({},I),{},{offsetWidth:O,offsetHeight:M});a==null||a(_,g,w),y&&Promise.resolve().then(function(){y(_,g);});}},[]);return f__namespace.useEffect(function(){var g=v();return g&&!r&&cR(g,m),function(){return uR(g,m)}},[o.current,r]),f__namespace.createElement(dR,{ref:i},u?f__namespace.cloneElement(l,{ref:h}):l)}var vR=f__namespace.forwardRef(hR),pR="rc-observer-key";function mR(e,t){var n=e.children,r=typeof n=="function"?[n]:wr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(pR,"-").concat(i);return f__namespace.createElement(vR,he({},e,{key:a,ref:i===0?t:void 0}),o)})}var go=f__namespace.forwardRef(mR);go.Collection=fR;function xr(e,t){var n=B({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}function of(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Kp+=1;var r=Kp;function o(i){if(i===0)M0(r),t();else {var a=_0(function(){o(i-1);});Fh.set(r,a);}}return o(n),r};wt.cancel=function(e){var t=Fh.get(e);return M0(t),R0(t)};function zh(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16);}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function yR(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function Xe(e,t){if(e==null)return {};var n=yR(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function Ls(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Cn(!l,"Warning: There may be circular references"),l)return !1;if(i===a)return !0;if(n&&s>1)return !1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return !1;for(var u=0;u0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):xR}function Jc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function $R(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function I0(e){return Array.from((sf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function N0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mn())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Xp,$R(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Jc(t),a=i.firstChild;if(r){if(r==="queue"){var s=I0(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Xp))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function A0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Jc(t);return I0(n).find(function(r){return r.getAttribute(T0(t))===e})}function rc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=A0(e,t);if(n){var r=Jc(t);r.removeChild(n);}}function ER(e,t){var n=sf.get(e);if(!n||!Ya(document,n)){var r=N0("",t),o=r.parentNode;sf.set(e,o),e.removeChild(r);}}function da(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Jc(n);ER(r,n);var o=A0(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=N0(e,n);return l.setAttribute(T0(n),t),l}function oc(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&tt(r)==="object"?t+=oc(r):t+=r;}),t}function OR(e,t){return zh("".concat(t,"_").concat(oc(e)))}var Za="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),D0="903px";function PR(e,t){if(Mn()){var n;da(e,Za);var r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);var o=getComputedStyle(r).width===D0;return (n=r.parentNode)===null||n===void 0||n.removeChild(r),rc(Za),o}return !1}var Uu=void 0;function _R(){return Uu===void 0&&(Uu=PR("@layer ".concat(Za," { .").concat(Za," { width: ").concat(D0,"!important; } }"),function(e){e.className=Za;})),Uu}function k0(e){if(Array.isArray(e))return e}function RR(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1;}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u;}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function L0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(e,t){return k0(e)||RR(e,t)||Lh(e,t)||L0()}function F0(e,t,n,r){var o=f__namespace.useContext(jh),i=o.cache,a=[e].concat(ge(t));return f__namespace.useMemo(function(){i.update(a,function(s){var l=s||[],c=K(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=h,p=v||n();return [d+1,p]});},[a.join("_")]),f__namespace.useEffect(function(){return function(){i.update(a,function(s){var l=s||[],c=K(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=d-1;return v===0?(r==null||r(h,!1),null):[d-1,h]});}},a),i.get(a)[1]}var MR={},TR="css",Qo=new Map;function IR(e){Qo.set(e,(Qo.get(e)||0)+1);}function NR(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(af,'="').concat(e,'"]'));n.forEach(function(r){if(r[ji]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}function AR(e,t){Qo.set(e,(Qo.get(e)||0)-1);var n=Array.from(Qo.keys()),r=n.filter(function(o){var i=Qo.get(o)||0;return i<=0});r.length2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(jh),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?MR:s,c=n.formatToken,u=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},[t]),d=f__namespace.useMemo(function(){return oc(u)},[u]),h=f__namespace.useMemo(function(){return oc(l)},[l]),v=F0("token",[a,e.id,d,h],function(){var p=e.getDerivativeToken(u),m=B(B({},p),l);c&&(m=c(m));var g=OR(m,a);m._tokenKey=g,IR(g);var b="".concat(TR,"-").concat(zh(g));return m._hashId=b,[m,b]},function(p){AR(p[0]._tokenKey,o);});return v}var kR={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qp=Mn(),LR="_skip_check_",z0="_multi_value_";function Yp(e){var t=li(Eb(e),Ob);return t.replace(/\{%%%\:[^;];}/g,";")}function FR(e){return tt(e)==="object"&&e&&(LR in e||z0 in e)}function zR(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(ge(l.slice(1))).join(" ")});return i.join(",")}var jR=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var h="",v={};function p(w){var $=w.getName(s);if(!v[$]){var S=e(w.style,n,{root:!1,parentSelectors:a}),C=K(S,1),x=C[0];v[$]="@keyframes ".concat(w.getName(s)).concat(x);}}function m(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(S){Array.isArray(S)?m(S,$):S&&$.push(S);}),$}var g=m(Array.isArray(t)?t:[t]);if(g.forEach(function(w){var $=typeof w=="string"&&!o?{}:w;if(typeof $=="string")h+="".concat($,` `);else if($._keyframe)p($);else {var S=d.reduce(function(C,x){var P;return (x==null||(P=x.visit)===null||P===void 0?void 0:P.call(x,C))||C},$);Object.keys(S).forEach(function(C){var x=S[C];if(tt(x)==="object"&&x&&(C!=="animationName"||!x._keyframe)&&!FR(x)){var P=!1,R=C.trim(),E=!1;(o||i)&&s?R.startsWith("@")?P=!0:R=zR(C,s,c):o&&!s&&(R==="&"||R==="")&&(R="",E=!0);var I=e(x,n,{root:E,injectHash:P,parentSelectors:[].concat(ge(a),[R])}),O=K(I,2),M=O[0],_=O[1];v=B(B({},v),_),h+="".concat(R).concat(M);}else {let N=function(D,L){var z=D.replace(/[A-Z]/g,function(F){return "-".concat(F.toLowerCase())}),j=L;!kR[D]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),D==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(p(L),j=L.getName(s)),h+="".concat(z,":").concat(j,";");};var T,A=(T=x==null?void 0:x.value)!==null&&T!==void 0?T:x;tt(x)==="object"&&x!==null&&x!==void 0&&x[z0]&&Array.isArray(A)?A.forEach(function(D){N(C,D);}):N(C,A);}});}}),!o)h="{".concat(h,"}");else if(l&&_R()){var b=l.split(","),y=b[b.length-1].trim();h="@layer ".concat(y," {").concat(h,"}"),b.length>1&&(h="@layer ".concat(l,"{%%%:%}").concat(h));}return [h,v]};function HR(e,t){return zh("".concat(e.join("%")).concat(t))}function BR(){return null}function lf(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=f__namespace.useContext(jh),l=s.autoClear;s.mock;var c=s.defaultCache,u=s.hashPriority,d=s.container,h=s.ssrInline,v=s.transformers,p=s.linters,m=s.cache,g=n._tokenKey,b=[g].concat(ge(r)),y=qp,w=F0("style",b,function(){var P=t(),R=jR(P,{hashId:o,hashPriority:u,layer:i,path:r.join("-"),transformers:v,linters:p}),E=K(R,2),I=E[0],O=E[1],M=Yp(I),_=HR(b,M);if(y){var T={mark:Ki,prepend:"queue",attachTo:d},A=typeof a=="function"?a():a;A&&(T.csp={nonce:A});var N=da(M,_,T);N[ji]=m.instanceId,N.setAttribute(af,g),Object.keys(O).forEach(function(D){da(Yp(O[D]),"_effect-".concat(D),T);});}return [M,g,_]},function(P,R){var E=K(P,3),I=E[2];(R||l)&&qp&&rc(I,{mark:Ki});}),$=K(w,3),S=$[0],C=$[1],x=$[2];return function(P){var R;if(!h||y||!c)R=f__namespace.createElement(BR,null);else {var E;R=f__namespace.createElement("style",he({},(E={},V(E,af,C),V(E,Ki,x),E),{dangerouslySetInnerHTML:{__html:S}}));}return f__namespace.createElement(f__namespace.Fragment,null,R,P)}}var It=function(){function e(t,n){vn(this,e),V(this,"name",void 0),V(this,"style",void 0),V(this,"_keyframe",!0),this.name=t,this.style=n;}return pn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function WR(e,t){if(e.length!==t.length)return !1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=K(c,2),h=d[1];return o.internalGet(u)[1]0,void 0),Zp+=1;}return pn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Gu=new Hh;function j0(e){var t=Array.isArray(e)?e:[e];return Gu.has(t)||Gu.set(t,new VR(t)),Gu.get(t)}function $i(e){return e.notSplit=!0,e}$i(["borderTop","borderBottom"]),$i(["borderTop"]),$i(["borderBottom"]),$i(["borderLeft","borderRight"]),$i(["borderLeft"]),$i(["borderRight"]);var UR=f.createContext({});const Bh=UR;function H0(e){return k0(e)||P0(e)||Lh(e)||L0()}function Sr(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Sr(e,t.slice(0,-1))?e:B0(e,t,n,r)}function GR(e){return tt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Qp(e){return Array.isArray(e)?[]:{}}function Hi(){for(var e=arguments.length,t=new Array(e),n=0;n=0;--A){var N=this.tryEntries[A],D=N.completion;if(N.tryLoc==="root")return T("end");if(N.tryLoc<=this.prev){var L=n.call(N,"catchLoc"),z=n.call(N,"finallyLoc");if(L&&z){if(this.prev=0;--T){var A=this.tryEntries[T];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev=0;--_){var T=this.tryEntries[_];if(T.finallyLoc===M)return this.complete(T.completion,T.afterLoc),P(T),d}},catch:function(M){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.tryLoc===M){var A=T.completion;if(A.type==="throw"){var N=A.arg;P(T);}return N}}throw new Error("illegal catch attempt")},delegateYield:function(M,_,T){return this.delegate={iterator:E(M),resultName:_,nextLoc:T},this.method==="next"&&(this.arg=void 0),d}},e}function Jp(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function bi(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){Jp(i,r,o,a,s,"next",l);}function s(l){Jp(i,r,o,a,s,"throw",l);}a(void 0);})}}function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function Nl(e,t,n){return qR()?Nl=Reflect.construct.bind():Nl=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),c=new l;return a&&bs(c,a.prototype),c},Nl.apply(null,arguments)}function YR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ff(e){var t=typeof Map=="function"?new Map:void 0;return ff=function(r){if(r===null||!YR(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return Nl(r,arguments,df(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),bs(o,r)},ff(e)}var ZR=/%[sdj%]/g,QR=function(){};typeof process<"u"&&process.env;function hf(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n);}),t}function qn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return s}});return a}return e}function JR(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function dn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||JR(t)&&typeof e=="string"&&!e)}function e2(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r);}e.forEach(function(s){t(s,a);});}function em(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ha={integer:function(t){return Ha.number(t)&&parseInt(t,10)===t},float:function(t){return Ha.number(t)&&!Ha.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return !0;try{return !!new RegExp(t)}catch{return !1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Ha.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(om.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(a2())},hex:function(t){return typeof t=="string"&&!!t.match(om.hex)}},s2=function(t,n,r,o,i){if(t.required&&n===void 0){W0(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Ha[s](n)||o.push(qn(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(qn(i.messages.types[s],t.fullField,t.type));},l2=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?d="number":v?d="string":p&&(d="array"),!d)return !1;p&&(u=n.length),v&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(qn(i.messages[d].len,t.fullField,t.len)):s&&!l&&ut.max?o.push(qn(i.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(qn(i.messages[d].range,t.fullField,t.min,t.max));},Ei="enum",c2=function(t,n,r,o,i){t[Ei]=Array.isArray(t[Ei])?t[Ei]:[],t[Ei].indexOf(n)===-1&&o.push(qn(i.messages[Ei],t.fullField,t[Ei].join(", ")));},u2=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(qn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(qn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Ct={required:W0,whitespace:i2,type:s2,range:l2,enum:c2,pattern:u2},d2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n,"string")&&!t.required)return r();Ct.required(t,n,o,a,i,"string"),dn(n,"string")||(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i),Ct.pattern(t,n,o,a,i),t.whitespace===!0&&Ct.whitespace(t,n,o,a,i));}r(a);},f2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct.type(t,n,o,a,i);}r(a);},h2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},v2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct.type(t,n,o,a,i);}r(a);},p2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),dn(n)||Ct.type(t,n,o,a,i);}r(a);},m2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},g2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},b2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Ct.required(t,n,o,a,i,"array"),n!=null&&(Ct.type(t,n,o,a,i),Ct.range(t,n,o,a,i));}r(a);},y2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct.type(t,n,o,a,i);}r(a);},C2="enum",S2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i),n!==void 0&&Ct[C2](t,n,o,a,i);}r(a);},w2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n,"string")&&!t.required)return r();Ct.required(t,n,o,a,i),dn(n,"string")||Ct.pattern(t,n,o,a,i);}r(a);},x2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n,"date")&&!t.required)return r();if(Ct.required(t,n,o,a,i),!dn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ct.type(t,l,o,a,i),l&&Ct.range(t,l.getTime(),o,a,i);}}r(a);},$2=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Ct.required(t,n,o,a,i,s),r(a);},Ku=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(dn(n,a)&&!t.required)return r();Ct.required(t,n,o,s,i,a),dn(n,a)||Ct.type(t,n,o,s,i);}r(s);},E2=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();Ct.required(t,n,o,a,i);}r(a);},Qa={string:d2,method:f2,number:h2,boolean:v2,regexp:p2,integer:m2,float:g2,array:b2,object:y2,enum:S2,pattern:w2,date:x2,url:Ku,hex:Ku,email:Ku,required:$2,any:E2};function vf(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var pf=vf(),Fs=function(){function e(n){this.rules=null,this._messages=pf,this.define(n);}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a];});},t.messages=function(r){return r&&(this._messages=rm(vf(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(m){var g=[],b={};function y($){if(Array.isArray($)){var S;g=(S=g).concat.apply(S,$);}else g.push($);}for(var w=0;w=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ge(e.slice(0,n)),[o],ge(e.slice(n,t)),ge(e.slice(t+1,r))):i<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[o],ge(e.slice(n+1,r))):e}var I2=["name"],rr=[];function cm(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Wh=function(e){zo(n,e);var t=jo(n);function n(r){var o;if(vn(this,n),o=t.call(this,r),o.state={resetCount:0},o.cancelRegisterFunc=null,o.mounted=!1,o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.prevValidating=void 0,o.errors=rr,o.warnings=rr,o.cancelRegister=function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,tn(d)),o.cancelRegisterFunc=null;},o.getNamePath=function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,h=d===void 0?[]:d;return c!==void 0?[].concat(ge(h),ge(c)):[]},o.getRules=function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(d):h})},o.refresh=function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});},o.triggerMetaEvent=function(l){var c=o.props.onMetaChange;c==null||c(B(B({},o.getMeta()),{},{destroy:l}));},o.onStoreChange=function(l,c,u){var d=o.props,h=d.shouldUpdate,v=d.dependencies,p=v===void 0?[]:v,m=d.onReset,g=u.store,b=o.getNamePath(),y=o.getValue(l),w=o.getValue(g),$=c&&Ja(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==w&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=rr,o.warnings=rr,o.triggerMetaEvent()),u.type){case"reset":if(!c||$){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=rr,o.warnings=rr,o.triggerMetaEvent(),m==null||m(),o.refresh();return}break;case"remove":{if(h){o.reRender();return}break}case"setField":{if($){var S=u.data;"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||rr),"warnings"in S&&(o.warnings=S.warnings||rr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}if(h&&!b.length&&cm(h,l,g,y,w,u)){o.reRender();return}break}case"dependenciesUpdate":{var C=p.map(tn);if(C.some(function(x){return Ja(u.relatedFields,x)})){o.reRender();return}break}default:if($||(!p.length||b.length||h)&&cm(h,l,g,y,w,u)){o.reRender();return}break}h===!0&&o.reRender();},o.validateRules=function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},h=d.triggerName,v=d.validateOnly,p=v===void 0?!1:v,m=Promise.resolve().then(function(){if(!o.mounted)return [];var g=o.props,b=g.validateFirst,y=b===void 0?!1:b,w=g.messageVariables,$=o.getRules();h&&($=$.filter(function(C){return C}).filter(function(C){var x=C.validateTrigger;if(!x)return !0;var P=uf(x);return P.includes(h)}));var S=P2(c,u,$,l,y,w);return S.catch(function(C){return C}).then(function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rr;if(o.validatePromise===m){var x;o.validatePromise=null;var P=[],R=[];(x=C.forEach)===null||x===void 0||x.call(C,function(E){var I=E.rule.warningOnly,O=E.errors,M=O===void 0?rr:O;I?R.push.apply(R,ge(M)):P.push.apply(P,ge(M));}),o.errors=P,o.warnings=R,o.triggerMetaEvent(),o.reRender();}}),S});return p||(o.validatePromise=m,o.dirty=!0,o.errors=rr,o.warnings=rr,o.triggerMetaEvent(),o.reRender()),m},o.isFieldValidating=function(){return !!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(ei),u=c.getInitialValue;return u(o.getNamePath())!==void 0},o.getErrors=function(){return o.errors},o.getWarnings=function(){return o.warnings},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.isPreserve=function(){return o.props.preserve},o.getMeta=function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l},o.getOnlyChild=function(l){if(typeof l=="function"){var c=o.getMeta();return B(B({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=wr(l);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},o.getValue=function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Sr(l||c(!0),u)},o.getControlled=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,h=c.getValueFromEvent,v=c.normalize,p=c.valuePropName,m=c.getValueProps,g=c.fieldContext,b=d!==void 0?d:g.validateTrigger,y=o.getNamePath(),w=g.getInternalHooks,$=g.getFieldsValue,S=w(ei),C=S.dispatch,x=o.getValue(),P=m||function(O){return V({},p,O)},R=l[u],E=B(B({},l),P(x));E[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var O,M=arguments.length,_=new Array(M),T=0;T=0&&I<=O.length?(d.keys=[].concat(ge(d.keys.slice(0,I)),[d.id],ge(d.keys.slice(I))),$([].concat(ge(O.slice(0,I)),[E],ge(O.slice(I))))):(d.keys=[].concat(ge(d.keys),[d.id]),$([].concat(ge(O),[E]))),d.id+=1;},remove:function(E){var I=C(),O=new Set(Array.isArray(E)?E:[E]);O.size<=0||(d.keys=d.keys.filter(function(M,_){return !O.has(_)}),$(I.filter(function(M,_){return !O.has(_)})));},move:function(E,I){if(E!==I){var O=C();E<0||E>=O.length||I<0||I>=O.length||(d.keys=lm(d.keys,E,I),$(lm(O,E,I)));}}},P=w||[];return Array.isArray(P)||(P=[]),o(P.map(function(R,E){var I=d.keys[E];return I===void 0&&(d.keys[E]=d.id,I=d.keys[E],d.id+=1),{name:E,key:I,isListField:!0}}),x,b)})))};function A2(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r));});});}):Promise.resolve([])}var K0="__@field_split__";function Xu(e){return e.map(function(t){return "".concat(tt(t),":").concat(t)}).join(K0)}var Oi=function(){function e(){vn(this,e),this.kvs=new Map;}return pn(e,[{key:"set",value:function(n,r){this.kvs.set(Xu(n),r);}},{key:"get",value:function(n){return this.kvs.get(Xu(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete(Xu(n));}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var o=K(r,2),i=o[0],a=o[1],s=i.split(K0);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=K(c,3),d=u[1],h=u[2];return d==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),D2=["name"],k2=pn(function e(t){var n=this;vn(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,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}},this.getInternalHooks=function(r){return r===ei?(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}):(Cn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){n.subscribable=r;},this.prevWithoutPreserves=null,this.setInitialValues=function(r,o){if(n.initialValues=r||{},o){var i,a=Hi(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=gr(a,l,Sr(r,l));}),n.prevWithoutPreserves=null,n.updateStore(a);}},this.destroyForm=function(){var r=new Oi;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;},this.getInitialValue=function(r){var o=Sr(n.initialValues,r);return r.length?Hi(o):o},this.setCallbacks=function(r){n.callbacks=r;},this.setValidateMessages=function(r){n.validateMessages=r;},this.setPreserve=function(r){n.preserve=r;},this.watchList=[],this.registerWatch=function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}},this.notifyWatch=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r);});}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(r){n.store=r;},this.getFieldEntities=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Oi;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i);}),o},this.getFieldEntitiesForNamePathList=function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=tn(i);return o.get(a)||{INVALIDATE_NAME_PATH:tn(i)}})},this.getFieldsValue=function(r,o){if(n.warningUnhooked(),r===!0&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),a=[];return i.forEach(function(s){var l,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!r&&(!((l=s.isListField)===null||l===void 0)&&l.call(s))))if(!o)a.push(c);else {var u="getMeta"in s?s.getMeta():null;o(u)&&a.push(c);}}),sm(n.store,a.map(tn))},this.getFieldValue=function(r){n.warningUnhooked();var o=tn(r);return Sr(n.store,o)},this.getFieldsError=function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:tn(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var o=tn(r),i=n.getFieldsError([o])[0];return i.errors},this.getFieldWarning=function(r){n.warningUnhooked();var o=tn(r),i=n.getFieldsError([o])[0];return i.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new Oi,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d);}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var h=u.getNamePath(),v=n.getInitialValue(h);if(v!==void 0)Cn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else {var p=o.get(h);if(p&&p.size>1)Cn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var m=n.getFieldValue(h);(!r.skipExist||m===void 0)&&n.updateStore(gr(n.store,h,ge(p)[0].value));}}}});},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,ge(ge(c).map(function(d){return d.entity})));}})):s=i,a(s);},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Hi(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(tn);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(gr(n.store,a,s));}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i);},this.setFields=function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=Xe(a,D2),c=tn(s);i.push(c),"value"in l&&n.updateStore(gr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a});}),n.notifyWatch(i);},this.getFields=function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=B(B({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o},this.initEntityValue=function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Sr(n.store,i);a===void 0&&n.updateStore(gr(n.store,i,o));}},this.isMergedPreserve=function(r){var o=r!==void 0?r:n.preserve;return o??!0},this.registerField=function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !U0(d.getNamePath(),o)})){var u=n.store;n.updateStore(gr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}},this.dispatch=function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(r,o,i){if(n.subscribable){var a=B(B({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a);});}else n.forceRootUpdate();},this.triggerDependenciesUpdate=function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ge(i))}),i},this.updateValue=function(r,o){var i=tn(r),a=n.store;n.updateStore(gr(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=sm(n.store,[i]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([i].concat(ge(s)));},this.setFieldsValue=function(r){n.warningUnhooked();var o=n.store;if(r){var i=Hi(n.store,r);n.updateStore(i);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();},this.setFieldValue=function(r,o){n.setFields([{name:r,value:o}]);},this.getDependencyChildrenFields=function(r){var o=new Set,i=[],a=new Oi;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=tn(u);a.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h});});});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(i.push(h),l(h));}});};return s(r),i},this.triggerOnFieldsChange=function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new Oi;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=a.filter(function(c){var u=c.name;return Ja(r,u)});i(l,a);}},this.validateFields=function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(tn):[],c=[];n.getFieldEntities(!0).forEach(function(h){var v;if(s||l.push(h.getNamePath()),!((v=a)===null||v===void 0)&&v.recursive&&s){var p=h.getNamePath();p.every(function(b,y){return i[y]===b||i[y]===void 0})&&l.push(p);}if(!(!h.props.rules||!h.props.rules.length)){var m=h.getNamePath();if(!s||Ja(l,m)){var g=h.validateRules(B({validateMessages:B(B({},V0),n.validateMessages)},a));c.push(g.then(function(){return {name:m,errors:[],warnings:[]}}).catch(function(b){var y,w=[],$=[];return (y=b.forEach)===null||y===void 0||y.call(b,function(S){var C=S.rule.warningOnly,x=S.errors;C?$.push.apply($,ge(x)):w.push.apply(w,ge(x));}),w.length?Promise.reject({name:m,errors:w,warnings:$}):{name:m,errors:w,warnings:$}}));}}});var u=A2(c);n.lastValidatePromise=u,u.catch(function(h){return h}).then(function(h){var v=h.map(function(p){var m=p.name;return m});n.notifyObservers(n.store,v,{type:"validateFinish"}),n.triggerOnFieldsChange(v,h);});var d=u.then(function(){return n.lastValidatePromise===u?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(h){var v=h.filter(function(p){return p&&p.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:v,outOfDate:n.lastValidatePromise!==u})});return d.catch(function(h){return h}),n.triggerOnFieldsChange(l),d},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(i){console.error(i);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});},this.forceRootUpdate=t;});function X0(e){var t=f__namespace.useRef(),n=f__namespace.useState({}),r=K(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var i=function(){o({});},a=new k2(i);t.current=a.getForm();}return [t.current]}var Cf=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),L2=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=f__namespace.useContext(Cf),s=f__namespace.useRef({});return f__namespace.createElement(Cf.Provider,{value:B(B({},a),{},{validateMessages:B(B({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=B(B({},s.current),{},V({},c,u))),a.registerForm(c,u);},unregisterForm:function(c){var u=B({},s.current);delete u[c],s.current=u,a.unregisterForm(c);}})},i)},F2=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],z2=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,h=t.validateTrigger,v=h===void 0?"onChange":h,p=t.onValuesChange,m=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,y=Xe(t,F2),w=f__namespace.useContext(Cf),$=X0(a),S=K($,1),C=S[0],x=C.getInternalHooks(ei),P=x.useSubscribe,R=x.setInitialValues,E=x.setCallbacks,I=x.setValidateMessages,O=x.setPreserve,M=x.destroyForm;f__namespace.useImperativeHandle(n,function(){return C}),f__namespace.useEffect(function(){return w.registerForm(r,C),function(){w.unregisterForm(r);}},[w,C,r]),I(B(B({},w.validateMessages),d)),E({onValuesChange:p,onFieldsChange:function(F){if(w.triggerFormChange(r,F),m){for(var G=arguments.length,U=new Array(G>1?G-1:0),q=1;q{let{children:t,status:n,override:r}=e;const o=f.useContext(Kr),i=f.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return f__namespace.createElement(Kr.Provider,{value:i},t)},B2=f__namespace.createContext(void 0),W2={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"};var V2={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"};const U2={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},q0=U2,G2={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"]},V2),timePickerLocale:Object.assign({},q0)},dm=G2,Hn="${label} is not a valid ${type}",K2={locale:"en",Pagination:W2,DatePicker:dm,TimePicker:q0,Calendar:dm,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:Hn,method:Hn,array:Hn,object:Hn,number:Hn,date:Hn,boolean:Hn,integer:Hn,float:Hn,regexp:Hn,email:Hn,url:Hn,hex:Hn},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"}},ha=K2;let qu=Object.assign({},ha.Modal);function fm(e){e?qu=Object.assign(Object.assign({},qu),e):qu=Object.assign({},ha.Modal);}const X2=f.createContext(void 0),Vh=X2,q2=(e,t)=>{const n=f__namespace.useContext(Vh),r=f__namespace.useMemo(()=>{var i;const a=t||ha[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=f__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?ha.locale:i},[n]);return [r,o]},Uh=q2,Y2="internalMark",Z2=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>(fm(t&&t.Modal),()=>{fm();}),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Vh.Provider,{value:o},n)},Q2=Z2,J2="5.5.2",ys=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Sn(e,t){eM(e)&&(e="100%");var n=tM(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function dl(e){return Math.min(1,Math.max(0,e))}function eM(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function tM(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Y0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ni(e){return e.length===1?"0"+e:String(e)}function nM(e,t,n){return {r:Sn(e,255)*255,g:Sn(t,255)*255,b:Sn(n,255)*255}}function hm(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else {var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function rM(e,t,n){var r,o,i;if(e=Sn(e,360),t=Sn(t,100),n=Sn(n,100),t===0)o=n,i=n,r=n;else {var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Yu(s,a,e+1/3),o=Yu(s,a,e),i=Yu(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function Sf(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else {switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var xf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Fi(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=uM(e)),typeof e=="object"&&(ro(e.r)&&ro(e.g)&&ro(e.b)?(t=nM(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ro(e.h)&&ro(e.s)&&ro(e.v)?(r=fl(e.s),o=fl(e.v),t=oM(e.h,r,o),a=!0,s="hsv"):ro(e.h)&&ro(e.s)&&ro(e.l)&&(r=fl(e.s),i=fl(e.l),t=rM(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Y0(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var lM="[-\\+]?\\d+%?",cM="[-\\+]?\\d*\\.\\d+%?",Io="(?:".concat(cM,")|(?:").concat(lM,")"),Zu="[\\s|\\(]+(".concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")\\s*\\)?"),Qu="[\\s|\\(]+(".concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")\\s*\\)?"),ur={CSS_UNIT:new RegExp(Io),rgb:new RegExp("rgb"+Zu),rgba:new RegExp("rgba"+Qu),hsl:new RegExp("hsl"+Zu),hsla:new RegExp("hsla"+Qu),hsv:new RegExp("hsv"+Zu),hsva:new RegExp("hsva"+Qu),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function uM(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(xf[e])e=xf[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=ur.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ur.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ur.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ur.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ur.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ur.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ur.hex8.exec(e),n?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),a:vm(n[4]),format:t?"name":"hex8"}:(n=ur.hex6.exec(e),n?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),format:t?"name":"hex"}:(n=ur.hex4.exec(e),n?{r:Vn(n[1]+n[1]),g:Vn(n[2]+n[2]),b:Vn(n[3]+n[3]),a:vm(n[4]+n[4]),format:t?"name":"hex8"}:(n=ur.hex3.exec(e),n?{r:Vn(n[1]+n[1]),g:Vn(n[2]+n[2]),b:Vn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ro(e){return !!ur.CSS_UNIT.exec(String(e))}var nn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=sM(t)),this.originalInput=t;var o=Fi(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=(r=n.format)!==null&&r!==void 0?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 t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Y0(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Sf(this.r,this.g,this.b);return {h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Sf(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=hm(this.r,this.g,this.b);return {h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=hm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),wf(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),iM(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return "".concat(Math.round(Sn(n,255)*100),"%")};return {r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Sn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return "transparent";if(this.a<1)return !1;for(var t="#"+wf(this.r,this.g,this.b,!1),n=0,r=Object.entries(xf);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},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){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=dl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=dl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=dl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=dl(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){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-hl*t:Math.round(e.h)+hl*t:r=n?Math.round(e.h)+hl*t:Math.round(e.h)-hl*t,r<0?r+=360:r>=360&&(r-=360),r}function bm(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-pm*t:t===Q0?r=e.s+pm:r=e.s+dM*t,r>1&&(r=1),n&&t===Z0&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ym(e,t,n){var r;return n?r=e.v+fM*t:r=e.v-hM*t,r>1&&(r=1),Number(r.toFixed(2))}function bo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Fi(e),o=Z0;o>0;o-=1){var i=mm(r),a=vl(Fi({h:gm(i,o,!0),s:bm(i,o,!0),v:ym(i,o,!0)}));n.push(a);}n.push(vl(r));for(var s=1;s<=Q0;s+=1){var l=mm(r),c=vl(Fi({h:gm(l,s),s:bm(l,s),v:ym(l,s)}));n.push(c);}return t.theme==="dark"?vM.map(function(u){var d=u.index,h=u.opacity,v=vl(pM(Fi(t.backgroundColor||"#141414"),Fi(n[d]),h*100));return v}):n}var Ju={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"},Al={},ed={};Object.keys(Ju).forEach(function(e){Al[e]=bo(Ju[e]),Al[e].primary=Al[e][5],ed[e]=bo(Ju[e],{theme:"dark",backgroundColor:"#141414"}),ed[e].primary=ed[e][5];});var mM=Al.blue;const gM=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},J0=gM;function bM(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)}}const Gh={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"},eu=Object.assign(Object.assign({},Gh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', '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 ey(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),h=n(o),v=n(i),p=n(a),m=n(s),g=r(c,u);return Object.assign(Object.assign({},g),{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:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new nn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const yM=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>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},CM=yM;function SM(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},CM(r))}const oo=(e,t)=>new nn(e).setAlpha(t).toRgbString(),Ra=(e,t)=>new nn(e).darken(t).toHexString(),wM=e=>{const t=bo(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]}},xM=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:oo(r,.88),colorTextSecondary:oo(r,.65),colorTextTertiary:oo(r,.45),colorTextQuaternary:oo(r,.25),colorFill:oo(r,.15),colorFillSecondary:oo(r,.06),colorFillTertiary:oo(r,.04),colorFillQuaternary:oo(r,.02),colorBgLayout:Ra(n,4),colorBgContainer:Ra(n,0),colorBgElevated:Ra(n,0),colorBgSpotlight:oo(r,.85),colorBorder:Ra(n,15),colorBorderSecondary:Ra(n,6)}};function $M(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const EM=e=>{const t=$M(e),n=t.map(o=>o.size),r=t.map(o=>o.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]}},ty=EM;function tu(e){const t=Object.keys(Gh).map(n=>{const r=bo(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),ey(e,{generateColorPalettes:wM,generateNeutralColorPalettes:xM})),ty(e.fontSize)),bM(e)),J0(e)),SM(e))}function td(e){return e>=0&&e<=255}function pl(e,t){const{r:n,g:r,b:o,a:i}=new nn(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new nn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(td(u)&&td(d)&&td(h))return new nn({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new nn({r:n,g:r,b:o,a:1}).toRgbString()}var OM=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{delete r[h];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h;}return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:pl(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:pl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:pl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:pl(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:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new nn("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new nn("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new nn("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,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)}const ny="anticon",_M=(e,t)=>t||(e?`ant-${e}`:"ant"),mt=f__namespace.createContext({getPrefixCls:_M,iconPrefixCls:ny}),RM=(e,t,n,r,o)=>{const i=e/2,a=0,s=i,l=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),u=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*i-u,v=d,p=2*i-l,m=c,g=2*i-a,b=s,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),w=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(${w}px 100%, 50% ${w}px, ${2*i-w}px 100%, ${w}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${h} ${v} L ${p} ${m} A ${n} ${n} 0 0 0 ${g} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,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"}}},Xi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Jt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),js=()=>({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"}}),MM=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),TM=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),IM=(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"}}}}},nu=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Kh=e=>({"&:focus-visible":Object.assign({},nu(e))});function mn(e,t,n,r){return o=>{const[i,a,s]=yi(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=f.useContext(mt),d=l(),h={theme:i,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return lf(Object.assign(Object.assign({},h),{path:["Shared",d]}),()=>[{"&":TM(a)}]),[lf(Object.assign(Object.assign({},h),{path:[e,o,c]}),()=>{const{token:v,flush:p}=AM(a),m=a[e],g=typeof n=="function"?n(At(v,m??{})):n,b=Object.assign(Object.assign({},g),m),y=`.${o}`,w=At(v,{componentCls:y,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},b),$=t(w,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:a[e]});return p(e,b),[(r==null?void 0:r.resetStyle)===!1?null:IM(a,o),$]}),s]}}const ry=typeof CSSINJS_STATISTIC<"u";let $f=!0;function At(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),$f=!0,r}function NM(){}function AM(e){let t,n=e,r=NM;return ry&&(t=new Set,n=new Proxy(e,{get(o,i){return $f&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function oy(e,t){return ys.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const DM=j0(tu),ac={token:eu,hashed:!0},iy=f.createContext(ac);function yi(){const{token:e,hashed:t,theme:n,components:r}=f.useContext(iy),o=`${J2}-${t||""}`,i=n||DM,[a,s]=DR(i,[eu,e],{salt:o,override:Object.assign({override:e},r),formatToken:PM});return [i,a,t?s:""]}const kM=`-ant-${Date.now()}-${Math.random()}`;function LM(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new nn(a),c=bo(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const a=new nn(t.primaryColor),s=bo(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new nn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.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"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } `.trim()}function FM(e,t){const n=LM(e,t);Mn()&&da(n,`${kM}-dynamic-theme`);}const Ef=f__namespace.createContext(!1),zM=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(Ef);return f__namespace.createElement(Ef.Provider,{value:n??r},t)},Bo=Ef,jM=e=>{const t=f.useContext(ru);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Or=jM,ay=f__namespace.createContext(void 0),HM=e=>{let{children:t,size:n}=e;const r=Or(n);return f__namespace.createElement(ay.Provider,{value:r},t)},ru=ay;function BM(){const e=f.useContext(Bo),t=f.useContext(ru);return {componentDisabled:e,componentSize:t}}function WM(e,t){const n=e||{},r=n.inherit===!1||!t?ac:t;return Ds(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{i[a]=Object.assign(Object.assign({},i[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(i,a)=>i.some((s,l)=>{const c=a[l];return !Ls(s,c,!0)}))}var VM=["children"],sy=f__namespace.createContext({});function UM(e){var t=e.children,n=Xe(e,VM);return f__namespace.createElement(sy.Provider,{value:n},t)}var GM=function(e){zo(n,e);var t=jo(n);function n(){return vn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component);function Ao(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=K(n,2),o=r[0],i=r[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||i(s);}return [o,a]}var Zo="none",ml="appear",gl="enter",bl="leave",Cm="none",br="prepare",Bi="start",Wi="active",Xh="end",ly="prepared";function Sm(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}function KM(e,t){var n={animationend:Sm("Animation","AnimationEnd"),transitionend:Sm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var XM=KM(Mn(),typeof window<"u"?window:{}),cy={};if(Mn()){var qM=document.createElement("div");cy=qM.style;}var yl={};function uy(e){if(yl[e])return yl[e];var t=XM[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=wt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1);});e.current=i;}return f__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var QM=[br,Bi,Wi,Xh],JM=[br,ly],py=!1,eT=!0;function my(e){return e===Wi||e===Xh}const tT=function(e,t,n){var r=Ao(Cm),o=K(r,2),i=o[0],a=o[1],s=ZM(),l=K(s,2),c=l[0],u=l[1];function d(){a(br,!0);}var h=t?JM:QM;return vy(function(){if(i!==Cm&&i!==Xh){var v=h.indexOf(i),p=h[v+1],m=n(i);m===py?a(p,!0):p&&c(function(g){function b(){g.isCanceled()||a(p,!0);}m===!0?b():Promise.resolve(m).then(b);});}},[e,i]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,i]};function nT(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,v=r.onEnterPrepare,p=r.onLeavePrepare,m=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,w=r.onEnterActive,$=r.onLeaveActive,S=r.onAppearEnd,C=r.onEnterEnd,x=r.onLeaveEnd,P=r.onVisibleChanged,R=Ao(),E=K(R,2),I=E[0],O=E[1],M=Ao(Zo),_=K(M,2),T=_[0],A=_[1],N=Ao(null),D=K(N,2),L=D[0],z=D[1],j=f.useRef(!1),F=f.useRef(null);function G(){return n()}var U=f.useRef(!1);function q(){A(Zo,!0),z(null,!0);}function ne(pe){var ue=G();if(!(pe&&!pe.deadline&&pe.target!==ue)){var ye=U.current,Ie;T===ml&&ye?Ie=S==null?void 0:S(ue,pe):T===gl&&ye?Ie=C==null?void 0:C(ue,pe):T===bl&&ye&&(Ie=x==null?void 0:x(ue,pe)),T!==Zo&&ye&&Ie!==!1&&q();}}var Z=YM(ne),Y=K(Z,1),te=Y[0],re=function(ue){var ye,Ie,De;switch(ue){case ml:return ye={},V(ye,br,h),V(ye,Bi,m),V(ye,Wi,y),ye;case gl:return Ie={},V(Ie,br,v),V(Ie,Bi,g),V(Ie,Wi,w),Ie;case bl:return De={},V(De,br,p),V(De,Bi,b),V(De,Wi,$),De;default:return {}}},se=f__namespace.useMemo(function(){return re(T)},[T]),de=tT(T,!e,function(pe){if(pe===br){var ue=se[br];return ue?ue(G()):py}if(ce in se){var ye;z(((ye=se[ce])===null||ye===void 0?void 0:ye.call(se,G(),null))||null);}return ce===Wi&&(te(G()),u>0&&(clearTimeout(F.current),F.current=setTimeout(function(){ne({deadline:!0});},u))),ce===ly&&q(),eT}),ee=K(de,2),ie=ee[0],ce=ee[1],le=my(ce);U.current=le,vy(function(){O(t);var pe=j.current;j.current=!0;var ue;!pe&&t&&s&&(ue=ml),pe&&t&&i&&(ue=gl),(pe&&!t&&c||!pe&&d&&!t&&c)&&(ue=bl);var ye=re(ue);ue&&(e||ye[br])?(A(ue),ie()):A(Zo);},[t]),f.useEffect(function(){(T===ml&&!s||T===gl&&!i||T===bl&&!c)&&A(Zo);},[s,i,c]),f.useEffect(function(){return function(){j.current=!1,clearTimeout(F.current);}},[]);var ve=f__namespace.useRef(!1);f.useEffect(function(){I&&(ve.current=!0),I!==void 0&&T===Zo&&((ve.current||I)&&(P==null||P(I)),ve.current=!0);},[I,T]);var oe=L;return se[br]&&ce===Bi&&(oe=B({transition:"none"},oe)),[T,ce,oe,I??t]}function rT(e){var t=e;tt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=f__namespace.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,h=o.motionName,v=o.leavedClassName,p=o.eventProps,m=f__namespace.useContext(sy),g=m.motion,b=n(o,g),y=f.useRef(),w=f.useRef();function $(){try{return y.current instanceof HTMLElement?y.current:gs(w.current)}catch{return null}}var S=nT(b,s,$,o),C=K(S,4),x=C[0],P=C[1],R=C[2],E=C[3],I=f__namespace.useRef(E);E&&(I.current=!0);var O=f__namespace.useCallback(function(z){y.current=z,kh(i,z);},[i]),M,_=B(B({},p),{},{visible:s});if(!d)M=null;else if(x===Zo)E?M=d(B({},_),O):!c&&I.current&&v?M=d(B(B({},_),{},{className:v}),O):u||!c&&!v?M=d(B(B({},_),{},{style:{display:"none"}}),O):M=null;else {var T,A;P===br?A="prepare":my(P)?A="active":P===Bi&&(A="start");var N=$m(h,"".concat(x,"-").concat(A));M=d(B(B({},_),{},{className:X($m(h,x),(T={},V(T,N,N&&A),V(T,h,typeof h=="string"),T)),style:R}),O);}if(f__namespace.isValidElement(M)&&Ho(M)){var D=M,L=D.ref;L||(M=f__namespace.cloneElement(M,{ref:O}));}return f__namespace.createElement(GM,{ref:w},M)});return r.displayName="CSSMotion",r}const Pr=rT(hy);var Of="add",Pf="keep",_f="remove",nd="removed";function oT(e){var t;return e&&tt(e)==="object"&&"key"in e?t=e:t={key:e},B(B({},t),{},{key:String(t.key)})}function Rf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(oT)}function iT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Rf(e),a=Rf(t);i.forEach(function(c){for(var u=!1,d=r;d1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,h=u.status;return d!==c||h!==_f}),n.forEach(function(u){u.key===c&&(u.status=Pf);});}),n}var aT=["component","children","onVisibleChanged","onAllRemoved"],sT=["status"],lT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function cT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr,n=function(r){zo(i,r);var o=jo(i);function i(){var a;vn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c{const[n,r]=yi();return lf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},js()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},fT=dT;var hT=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(gy=t),r&&FM(mT(),r);},bT=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:i,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,popupMatchSelectWidth:d,popupOverflow:h,legacyLocale:v,parentContext:p,iconPrefixCls:m,theme:g,componentDisabled:b}=e,y=f__namespace.useCallback((T,A)=>{const{prefixCls:N}=e;if(A)return A;const D=N||p.getPrefixCls("");return T?`${D}-${T}`:D},[p.getPrefixCls,e.prefixCls]),w=m||p.iconPrefixCls||ny,$=w!==p.iconPrefixCls,S=n||p.csp,C=fT(w,S),x=WM(g,p.theme),P={csp:S,autoInsertSpaceInButton:r,locale:i||v,direction:s,space:l,virtual:c,popupMatchSelectWidth:d??u,popupOverflow:h,getPrefixCls:y,iconPrefixCls:w,theme:x},R=Object.assign({},p);Object.keys(P).forEach(T=>{P[T]!==void 0&&(R[T]=P[T]);}),vT.forEach(T=>{const A=e[T];A&&(R[T]=A);});const E=Ds(()=>R,R,(T,A)=>{const N=Object.keys(T),D=Object.keys(A);return N.length!==D.length||N.some(L=>T[L]!==A[L])}),I=f__namespace.useMemo(()=>({prefixCls:w,csp:S}),[w,S]);let O=$?C(t):t;const M=f__namespace.useMemo(()=>{var T,A,N;return Hi(((T=ha.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},((N=(A=E.locale)===null||A===void 0?void 0:A.Form)===null||N===void 0?void 0:N.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[E,o==null?void 0:o.validateMessages]);Object.keys(M).length>0&&(O=f__namespace.createElement(B2.Provider,{value:M},t)),i&&(O=f__namespace.createElement(Q2,{locale:i,_ANT_MARK__:Y2},O)),(w||S)&&(O=f__namespace.createElement(Bh.Provider,{value:I},O)),a&&(O=f__namespace.createElement(HM,{size:a},O)),O=f__namespace.createElement(uT,null,O);const _=f__namespace.useMemo(()=>{const T=x||{},{algorithm:A,token:N}=T,D=hT(T,["algorithm","token"]),L=A&&(!Array.isArray(A)||A.length>0)?j0(A):void 0;return Object.assign(Object.assign({},D),{theme:L,token:Object.assign(Object.assign({},eu),N)})},[x]);return g&&(O=f__namespace.createElement(iy.Provider,{value:_},O)),b!==void 0&&(O=f__namespace.createElement(zM,{disabled:b},O)),f__namespace.createElement(mt.Provider,{value:E},O)},Ca=e=>{const t=f__namespace.useContext(mt),n=f__namespace.useContext(Vh);return f__namespace.createElement(bT,Object.assign({parentContext:t,legacyLocale:n},e))};Ca.ConfigContext=mt;Ca.SizeContext=ru;Ca.config=gT;Ca.useConfig=BM;Object.defineProperty(Ca,"SizeContext",{get:()=>ru});const qh=Ca;function by(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function yT(e){return by(e)!==(e==null?void 0:e.ownerDocument)}function CT(e){return yT(e)?by(e):null}function ST(e,t){Cn(e,"[@ant-design/icons] ".concat(t));}function Em(e){return tt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(tt(e.icon)==="object"||typeof e.icon=="function")}function Om(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r;}return t},{})}function Mf(e,t,n){return n?f.createElement(e.tag,B(B({key:t},Om(e.attrs)),n),(e.children||[]).map(function(r,o){return Mf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,B({key:t},Om(e.attrs)),(e.children||[]).map(function(r,o){return Mf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function yy(e){return bo(e)[0]}function Cy(e){return e?Array.isArray(e)?e:[e]:[]}var wT=` .anticon { display: inline-block; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `,xT=function(t){var n=f.useContext(Bh),r=n.csp,o=n.prefixCls,i=wT;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){var a=t.current,s=CT(a);da(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},$T=["icon","className","onClick","style","primaryColor","secondaryColor"],es={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ET(e){var t=e.primaryColor,n=e.secondaryColor;es.primaryColor=t,es.secondaryColor=n||yy(t),es.calculated=!!n;}function OT(){return B({},es)}var ou=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Xe(t,$T),c=f__namespace.useRef(),u=es;if(a&&(u={primaryColor:a,secondaryColor:s||yy(a)}),xT(c),ST(Em(n),"icon should be icon definiton, but got ".concat(n)),!Em(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=B(B({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Mf(d.icon,"svg-".concat(d.name),B(B({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};ou.displayName="IconReact";ou.getTwoToneColors=OT;ou.setTwoToneColors=ET;const Yh=ou;function Sy(e){var t=Cy(e),n=K(t,2),r=n[0],o=n[1];return Yh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function PT(){var e=Yh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var _T=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Sy(mM.primary);var iu=f__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Xe(e,_T),d=f__namespace.useContext(Bh),h=d.prefixCls,v=h===void 0?"anticon":h,p=d.rootClassName,m=X(p,v,(n={},V(n,"".concat(v,"-").concat(o.name),!!o.name),V(n,"".concat(v,"-spin"),!!i||o.name==="loading"),n),r),g=s;g===void 0&&l&&(g=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=Cy(c),w=K(y,2),$=w[0],S=w[1];return f__namespace.createElement("span",he({role:"img","aria-label":o.name},u,{ref:t,tabIndex:g,onClick:l,className:m}),f__namespace.createElement(Yh,{icon:o,primaryColor:$,secondaryColor:S,style:b}))});iu.displayName="AntdIcon";iu.getTwoToneColor=PT;iu.setTwoToneColor=Sy;const er=iu;var RT={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const MT=RT;var TT=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:MT}))};const Zh=f__namespace.forwardRef(TT);var IT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const NT=IT;var AT=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:NT}))};const Qh=f__namespace.forwardRef(AT);var DT={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"};const kT=DT;var LT=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:kT}))};const wy=f__namespace.forwardRef(LT);function FT(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-")||n==="role")&&!n.startsWith("data-__")&&(t[n]=e[n]),t),{})}const{isValidElement:Jh}=f__namespace;function xy(e){return e&&Jh(e)&&e.type===f__namespace.Fragment}function zT(e,t,n){return Jh(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function $r(e,t){return zT(e,e,t)}function yr(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a=J.F1&&n<=J.F12)return !1;switch(n){case J.ALT:case J.CAPS_LOCK:case J.CONTEXT_MENU:case J.CTRL:case J.DOWN:case J.END:case J.ESC:case J.HOME:case J.INSERT:case J.LEFT:case J.MAC_FF_META:case J.META:case J.NUMLOCK:case J.NUM_CENTER:case J.PAGE_DOWN:case J.PAGE_UP:case J.PAUSE:case J.PRINT_SCREEN:case J.RIGHT:case J.SHIFT:case J.UP:case J.WIN_KEY:case J.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=J.ZERO&&t<=J.NINE||t>=J.NUM_ZERO&&t<=J.NUM_MULTIPLY||t>=J.A&&t<=J.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case J.SPACE:case J.QUESTION_MARK:case J.NUM_PLUS:case J.NUM_MINUS:case J.NUM_PERIOD:case J.NUM_DIVISION:case J.SEMICOLON:case J.DASH:case J.EQUALS:case J.COMMA:case J.PERIOD:case J.SLASH:case J.APOSTROPHE:case J.SINGLE_QUOTE:case J.OPEN_SQUARE_BRACKET:case J.BACKSLASH:case J.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},jT={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const HT=jT;var BT=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:HT}))};const $y=f__namespace.forwardRef(BT);var Hs=B({},ia__namespace),WT=Hs.version,VT=Hs.render,UT=Hs.unmountComponentAtNode,au;try{var GT=Number((WT||"").split(".")[0]);GT>=18&&(au=Hs.createRoot);}catch{}function Pm(e){var t=Hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&tt(t)==="object"&&(t.usingClientEntryPoint=e);}var sc="__rc_react_root__";function KT(e,t){Pm(!0);var n=t[sc]||au(t);Pm(!1),n.render(e),t[sc]=n;}function XT(e,t){VT(e,t);}function qT(e,t){if(au){KT(e,t);return}XT(e,t);}function YT(e){return Tf.apply(this,arguments)}function Tf(){return Tf=bi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[sc])===null||o===void 0||o.unmount(),delete t[sc];}));case 1:case"end":return r.stop()}},e)})),Tf.apply(this,arguments)}function ZT(e){UT(e);}function QT(e){return If.apply(this,arguments)}function If(){return If=bi(Tn().mark(function e(t){return Tn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(au===void 0){r.next=2;break}return r.abrupt("return",YT(t));case 2:ZT(t);case 3:case"end":return r.stop()}},e)})),If.apply(this,arguments)}const su=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return !0}}return !1},JT=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}}}}},eI=mn("Wave",e=>[JT(e)]);function tI(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]):!0}function rd(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&tI(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function nI(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return rd(t)?t:rd(n)?n:rd(r)?r:null}function od(e){return Number.isNaN(e)?0:e}const rI=e=>{const{className:t,target:n}=e,r=f__namespace.useRef(null),[o,i]=f__namespace.useState(null),[a,s]=f__namespace.useState([]),[l,c]=f__namespace.useState(0),[u,d]=f__namespace.useState(0),[h,v]=f__namespace.useState(0),[p,m]=f__namespace.useState(0),[g,b]=f__namespace.useState(!1),y={left:l,top:u,width:h,height:p,borderRadius:a.map($=>`${$}px`).join(" ")};o&&(y["--wave-color"]=o);function w(){const $=getComputedStyle(n);i(nI(n));const S=$.position==="static",{borderLeftWidth:C,borderTopWidth:x}=$;c(S?n.offsetLeft:od(-parseFloat(C))),d(S?n.offsetTop:od(-parseFloat(x))),v(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:R,borderBottomLeftRadius:E,borderBottomRightRadius:I}=$;s([P,R,I,E].map(O=>od(parseFloat(O))));}return f__namespace.useEffect(()=>{if(n){const $=wt(()=>{w(),b(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(w),S.observe(n)),()=>{wt.cancel($),S==null||S.disconnect();}}},[]),g?f__namespace.createElement(Pr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,S)=>{var C;if(S.deadline||S.propertyName==="opacity"){const x=(C=r.current)===null||C===void 0?void 0:C.parentElement;QT(x).then(()=>{x==null||x.remove();});}return !1}},$=>{let{className:S}=$;return f__namespace.createElement("div",{ref:r,className:X(t,S),style:y})}):null};function oI(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),qT(f__namespace.createElement(rI,{target:e,className:t}),n);}function iI(e,t){function n(){const r=e.current;oI(r,t);}return n}const aI=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=f.useContext(mt),o=f.useRef(null),i=r("wave"),[,a]=eI(i),s=iI(o,X(i,a));if(f.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||n)return;const u=d=>{d.target.tagName==="INPUT"||!su(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s();};return c.addEventListener("click",u,!0),()=>{c.removeEventListener("click",u,!0);}},[n]),!f.isValidElement(t))return t??null;const l=Ho(t)?Pn(t.ref,o):o;return $r(t,{ref:l})},Ey=aI,sI=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},lI=sI,cI=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"}}}},Oy=mn("Space",e=>[cI(e),lI(e)],()=>({}),{resetStyle:!1});var Py=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=f__namespace.useContext(lu),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return X({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Cs=e=>{let{children:t}=e;return f__namespace.createElement(lu.Provider,{value:null},t)},uI=e=>{var{children:t}=e,n=Py(e,["children"]);return f__namespace.createElement(lu.Provider,{value:n},t)},dI=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(mt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Py(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Or(w=>{var $;return ($=r??w)!==null&&$!==void 0?$:"middle"}),h=t("space-compact",a),[v,p]=Oy(h),m=X(h,p,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:i,[`${h}-vertical`]:o==="vertical"},s,l),g=f__namespace.useContext(lu),b=wr(c),y=f__namespace.useMemo(()=>b.map((w,$)=>{const S=w&&w.key||`${h}-item-${$}`;return f__namespace.createElement(uI,{key:S,compactSize:d,compactDirection:o,isFirstItem:$===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:$===b.length-1&&(!g||(g==null?void 0:g.isLastItem))},w)}),[r,b,g]);return b.length===0?null:v(f__namespace.createElement("div",Object.assign({className:m},u),y))},fI=dI,hI=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=X(`${i}-icon`,n);return f.createElement("span",{ref:t,className:a,style:r},o)}),_y=hI,_m=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=X(`${n}-loading-icon`,r);return f.createElement(_y,{prefixCls:n,className:a,style:o,ref:t},f.createElement($y,{className:i}))}),id=()=>({width:0,opacity:0,transform:"scale(0)"}),ad=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),vI=e=>{let{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e;const a=!!n;return r?f.createElement(_m,{prefixCls:t,className:o,style:i}):f.createElement(Pr,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:id,onAppearActive:ad,onEnterStart:id,onEnterActive:ad,onLeaveStart:ad,onLeaveActive:id},(s,l)=>{let{className:c,style:u}=s;return f.createElement(_m,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},pI=vI;var mI=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=f__namespace.useContext(mt),{prefixCls:r,size:o,className:i}=e,a=mI(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=yi();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=X(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return f__namespace.createElement(Ry.Provider,{value:o},f__namespace.createElement("div",Object.assign({},a,{className:u})))},bI=gI,Rm=/^[\u4e00-\u9fa5]{2}$/,Nf=Rm.test.bind(Rm);function yI(e){return typeof e=="string"}function sd(e){return e==="text"||e==="link"}function CI(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&yI(e.type)&&Nf(e.props.children)?$r(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?Nf(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):xy(e)?f.createElement("span",null,e):e}function SI(e,t){let n=!1;const r=[];return f.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=a;}),f.Children.map(r,o=>CI(o,t))}function wI(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function xI(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 cu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return {[r]:Object.assign(Object.assign({},wI(e,r,t)),xI(n,r,t))}}function $I(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function EI(e,t){return {[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function OI(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},$I(e,t)),EI(e.componentCls,t))}}const Mm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),PI=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, &:focus, &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Mm(`${t}-primary`,o),Mm(`${t}-danger`,i)]}},_I=PI,RI=e=>{const{componentCls:t,iconCls:n,buttonFontWeight: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,"> 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({},Kh(e)),[`&-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% + ${e.lineWidth*2}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% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},yo=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),MI=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),TI=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Af=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),lc=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},yo(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),ev=e=>({"&:disabled":Object.assign({},Af(e))}),My=e=>Object.assign({},ev(e)),cc=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Ty=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},My(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),yo({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),lc(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},yo({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),lc(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),ev(e))}),II=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},My(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),yo({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),lc(e.componentCls,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:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},yo({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),lc(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ev(e))}),NI=e=>Object.assign(Object.assign({},Ty(e)),{borderStyle:"dashed"}),AI=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},yo({color:e.colorLinkHover},{color:e.colorLinkActive})),cc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yo({color:e.colorErrorHover},{color:e.colorErrorActive})),cc(e))}),DI=e=>Object.assign(Object.assign(Object.assign({},yo({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),cc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},cc(e)),yo({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),kI=e=>Object.assign(Object.assign({},Af(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Af(e))}),LI=e=>{const{componentCls:t}=e;return {[`${t}-default`]:Ty(e),[`${t}-primary`]:II(e),[`${t}-dashed`]:NI(e),[`${t}-link`]:AI(e),[`${t}-text`]:DI(e),[`${t}-disabled`]:kI(e)}},tv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*i)/2-a),d=l-a,h=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${h}`]:{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}`]:MI(e)},{[`${n}${n}-round${t}`]:TI(e)}]},FI=e=>tv(e),zI=e=>{const t=At(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return tv(t,`${e.componentCls}-sm`)},jI=e=>{const t=At(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return tv(t,`${e.componentCls}-lg`)},HI=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},BI=mn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=At(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [RI(r),zI(r),FI(r),jI(r),HI(r),LI(r),_I(r),cu(e),OI(e)]});var WI=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{loading:n=!1,prefixCls:r,type:o="default",danger:i,shape:a="default",size:s,styles:l,disabled:c,className:u,rootClassName:d,children:h,icon:v,ghost:p=!1,block:m=!1,htmlType:g="button",classNames:b}=e,y=WI(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames"]),{getPrefixCls:w,autoInsertSpaceInButton:$,direction:S}=f.useContext(mt),C=w("btn",r),[x,P]=BI(C),R=f.useContext(Bo),E=c??R,I=f.useContext(Ry),O=f.useMemo(()=>VI(n),[n]),[M,_]=f.useState(O.loading),[T,A]=f.useState(!1),D=Pn(t,f.createRef()),L=f.Children.count(h)===1&&!v&&!sd(o);f.useEffect(()=>{let ie=null;O.delay>0?ie=setTimeout(()=>{ie=null,_(!0);},O.delay):_(O.loading);function ce(){ie&&(clearTimeout(ie),ie=null);}return ce},[O]),f.useEffect(()=>{if(!D||!D.current||$===!1)return;const ie=D.current.textContent;L&&Nf(ie)?T||A(!0):T&&A(!1);},[D]);const z=ie=>{const{onClick:ce}=e;if(M||E){ie.preventDefault();return}ce==null||ce(ie);},j=$!==!1,{compactSize:F,compactItemClassnames:G}=Bs(C,S),U={large:"lg",small:"sm",middle:void 0},q=Or(ie=>{var ce,le;return (le=(ce=F??I)!==null&&ce!==void 0?ce:s)!==null&&le!==void 0?le:ie}),ne=q&&U[q]||"",Z=M?"loading":v,Y=xr(y,["navigate"]),te=Y.href!==void 0&&E,re=X(C,P,{[`${C}-${a}`]:a!=="default"&&a,[`${C}-${o}`]:o,[`${C}-${ne}`]:ne,[`${C}-icon-only`]:!h&&h!==0&&!!Z,[`${C}-background-ghost`]:p&&!sd(o),[`${C}-loading`]:M,[`${C}-two-chinese-chars`]:T&&j&&!M,[`${C}-block`]:m,[`${C}-dangerous`]:!!i,[`${C}-rtl`]:S==="rtl",[`${C}-disabled`]:te},G,u,d),se=v&&!M?f.createElement(_y,{prefixCls:C,className:b==null?void 0:b.icon,style:l==null?void 0:l.icon},v):f.createElement(pI,{existIcon:!!v,prefixCls:C,loading:!!M}),de=h||h===0?SI(h,L&&j):null;if(Y.href!==void 0)return x(f.createElement("a",Object.assign({},Y,{className:re,onClick:z,ref:D}),se,de));let ee=f.createElement("button",Object.assign({},y,{type:g,className:re,onClick:z,disabled:E,ref:D}),se,de);return sd(o)||(ee=f.createElement(Ey,{disabled:!!M},ee)),x(ee)},nv=f.forwardRef(UI);nv.Group=bI;nv.__ANT_BUTTON=!0;const Dn=nv;function Tm(e){return !!(e&&e.then)}const GI=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=f__namespace.useRef(!1),d=f__namespace.useRef(null),[h,v]=Ao(!1),p=function(){i==null||i.apply(void 0,arguments);};f__namespace.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var y;(y=d.current)===null||y===void 0||y.focus();})),()=>{b&&clearTimeout(b);}},[]);const m=b=>{Tm(b)&&(v(!0),b.then(function(){v(!1,!0),p.apply(void 0,arguments),u.current=!1;},y=>(v(!1,!0),u.current=!1,Promise.reject(y))));},g=b=>{if(u.current)return;if(u.current=!0,!c){p();return}let y;if(s){if(y=c(b),l&&!Tm(y)){u.current=!1,p(b);return}}else if(c.length)y=c(i),u.current=!1;else if(y=c(),!y){p();return}m(y);};return f__namespace.createElement(Dn,Object.assign({},Iy(t),{onClick:g,loading:h,prefixCls:r},o,{ref:d}),n)},KI=GI,ld=()=>({height:0,opacity:0}),Im=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},XI=e=>({height:e?e.offsetHeight:0}),cd=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",qI=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ld,onEnterStart:ld,onAppearActive:Im,onEnterActive:Im,onLeaveStart:XI,onLeaveActive:ld,onAppearEnd:cd,onEnterEnd:cd,onLeaveEnd:cd,motionDeadline:500}},YI=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",uu=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var Ny=f__namespace.createContext(null),Ht=Mn()?f__namespace.useLayoutEffect:f__namespace.useEffect,qi=function(t,n){var r=f__namespace.useRef(!0);Ht(function(){if(!r.current)return t()},n),Ht(function(){return r.current=!1,function(){r.current=!0;}},[]);},Nm=[];function ZI(e,t){var n=f__namespace.useState(function(){if(!Mn())return null;var p=document.createElement("div");return p}),r=K(n,1),o=r[0],i=f__namespace.useRef(!1),a=f__namespace.useContext(Ny),s=f__namespace.useState(Nm),l=K(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(p){u(function(m){var g=[p].concat(ge(m));return g});});function h(){o.parentElement||document.body.appendChild(o),i.current=!0;}function v(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),i.current=!1;}return Ht(function(){return e?a?a(h):h():v(),v},[e]),Ht(function(){c.length&&(c.forEach(function(p){return p()}),u(Nm));},[c]),[o,d]}var ud;function QI(e){if(typeof document>"u")return 0;if(e||ud===void 0){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 i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),ud=o-i;}return ud}function JI(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var eN="rc-util-locker-".concat(Date.now()),Am=0;function tN(e){var t=!!e,n=f__namespace.useState(function(){return Am+=1,"".concat(eN,"_").concat(Am)}),r=K(n,1),o=r[0];Ht(function(){if(t){var i=QI(),a=JI();da(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o);}else rc(o);return function(){rc(o);}},[t,o]);}var Dm=!1;function nN(e){return typeof e=="boolean"&&(Dm=e),Dm}var km=function(t){return t===!1?!1:!Mn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Ay=f__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=f__namespace.useState(n),c=K(l,2),u=c[0],d=c[1],h=u||n;f__namespace.useEffect(function(){(a||n)&&d(n);},[n,a]);var v=f__namespace.useState(function(){return km(o)}),p=K(v,2),m=p[0],g=p[1];f__namespace.useEffect(function(){var I=km(o);g(I??null);});var b=ZI(h&&!m),y=K(b,2),w=y[0],$=y[1],S=m??w;tN(r&&n&&Mn()&&(S===w||S===document.body));var C=null;if(s&&Ho(s)&&t){var x=s;C=x.ref;}var P=ks(C,t);if(!h||!Mn()||m===void 0)return null;var R=S===!1||nN(),E=s;return t&&(E=f__namespace.cloneElement(s,{ref:P})),f__namespace.createElement(Ny.Provider,{value:$},R?E:ia.createPortal(E,S))});function rN(){var e=B({},f__namespace);return e.useId}var Lm=0;function oN(e){var t=f__namespace.useState("ssr-id"),n=K(t,2),r=n[0],o=n[1],i=rN(),a=i==null?void 0:i();return f__namespace.useEffect(function(){if(!i){var s=Lm;Lm+=1,o("rc_unique_".concat(s));}},[]),e||a||r}var iN=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,aN=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,sN="".concat(iN," ").concat(aN).split(/[\s\n]+/),lN="aria-",cN="data-";function Fm(e,t){return e.indexOf(t)===0}function uc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=B({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Fm(o,lN))||n.data&&Fm(o,cN)||n.attr&&sN.includes(o))&&(r[o]=e[o]);}),r}const uN=()=>Mn()&&window.document.documentElement;let Cl;const dN=()=>{if(!uN())return !1;if(Cl!==void 0)return Cl;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Cl=e.scrollHeight===1,document.body.removeChild(e),Cl},fN=e=>({animationDuration:e,animationFillMode:"both"}),hN=e=>({animationDuration:e,animationFillMode:"both"}),rv=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},fN(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},hN(r)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},vN=new It("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pN=new It("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),mN=new It("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gN=new It("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),bN=new It("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yN=new It("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),CN=new It("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),SN=new It("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),wN={"move-up":{inKeyframes:CN,outKeyframes:SN},"move-down":{inKeyframes:vN,outKeyframes:pN},"move-left":{inKeyframes:mN,outKeyframes:gN},"move-right":{inKeyframes:bN,outKeyframes:yN}},zm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=wN[t];return [rv(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Dy=new It("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ky=new It("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ly=new It("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Fy=new It("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),xN=new It("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),$N=new It("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),EN=new It("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ON=new It("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),PN={"slide-up":{inKeyframes:Dy,outKeyframes:ky},"slide-down":{inKeyframes:Ly,outKeyframes:Fy},"slide-left":{inKeyframes:xN,outKeyframes:$N},"slide-right":{inKeyframes:EN,outKeyframes:ON}},dc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=PN[t];return [rv(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},_N=new It("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),RN=new It("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),jm=new It("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Hm=new It("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),MN=new It("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),TN=new It("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),IN=new It("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),NN=new It("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),AN=new It("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),DN=new It("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),kN=new It("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),LN=new It("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),FN={zoom:{inKeyframes:_N,outKeyframes:RN},"zoom-big":{inKeyframes:jm,outKeyframes:Hm},"zoom-big-fast":{inKeyframes:jm,outKeyframes:Hm},"zoom-left":{inKeyframes:IN,outKeyframes:NN},"zoom-right":{inKeyframes:AN,outKeyframes:DN},"zoom-up":{inKeyframes:MN,outKeyframes:TN},"zoom-down":{inKeyframes:kN,outKeyframes:LN}},zy=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=FN[t];return [rv(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},zN=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),jN=zN;function dd(e){return e!==void 0}function en(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Ao(function(){return dd(o)?o:dd(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=K(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,h=a?a(d):d,v=yr(i),p=Ao([d]),m=K(p,2),g=m[0],b=m[1];qi(function(){var w=g[0];c!==w&&v(c,w);},[g]),qi(function(){dd(o)||u(o);},[o]);var y=yr(function(w,$){u(w,$),b([d],$);});return [h,y]}function jy(e,t,n,r){return function(i){const{prefixCls:a,style:s}=i,l=f__namespace.useRef(null),[c,u]=f__namespace.useState(0),[d,h]=f__namespace.useState(0),[v,p]=en(!1,{value:i.open}),{getPrefixCls:m}=f__namespace.useContext(mt),g=m(t||"select",a);f__namespace.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver($=>{const S=$[0].target;u(S.offsetHeight+8),h(S.offsetWidth);}),w=setInterval(()=>{var $;const S=n?`.${n(g)}`:`.${g}-dropdown`,C=($=l.current)===null||$===void 0?void 0:$.querySelector(S);C&&(clearInterval(w),y.observe(C));},10);return ()=>{clearInterval(w),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:v,visible:v,getPopupContainer:()=>l.current});return r&&(b=r(b)),f__namespace.createElement(qh,{theme:{token:{motion:!1}}},f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b))))}}const Ws=function(){if(typeof navigator>"u"||typeof window>"u")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(e==null?void 0:e.substr(0,4))};var Hy=f__namespace.createContext(null);function HN(){return f__namespace.useContext(Hy)}function BN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=K(t,2),r=n[0],o=n[1],i=f__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};f__namespace.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,a]}function By(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f__namespace.useRef(null),n=f__namespace.useRef(null);f__namespace.useEffect(function(){return function(){window.clearTimeout(n.current);}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null;},e);}return [function(){return t.current},r]}function WN(e,t,n,r){var o=f__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f__namespace.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(l)&&c!==l})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[]);}var VN=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Pi=void 0;function UN(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,v=e.display,p=e.order,m=e.component,g=m===void 0?"div":m,b=Xe(e,VN),y=a&&!v;function w(P){l(c,P);}f__namespace.useEffect(function(){return function(){w(null);}},[]);var $=i&&o!==Pi?i(o):h,S;r||(S={opacity:y?0:1,height:y?0:Pi,overflowY:y?"hidden":Pi,order:a?p:Pi,pointerEvents:y?"none":Pi,position:y?"absolute":Pi});var C={};y&&(C["aria-hidden"]=!0);var x=f__namespace.createElement(g,he({className:X(!r&&n,u),style:B(B({},S),d)},C,b,{ref:t}),$);return a&&(x=f__namespace.createElement(go,{onResize:function(R){var E=R.offsetWidth;w(E);},disabled:s},x)),x}var ts=f__namespace.forwardRef(UN);ts.displayName="Item";function GN(e){if(typeof MessageChannel>"u")wt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function KN(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],GN(function(){ia.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Ma(e,t){var n=f__namespace.useState(t),r=K(n,2),o=r[0],i=r[1],a=yr(function(s){e(function(){i(s);});});return [o,a]}var XN=["component"],qN=["className"],YN=["className"],ZN=function(t,n){var r=f__namespace.useContext(fc);if(!r){var o=t.component,i=o===void 0?"div":o,a=Xe(t,XN);return f__namespace.createElement(i,he({},a,{ref:n}))}var s=r.className,l=Xe(r,qN),c=t.className,u=Xe(t,YN);return f__namespace.createElement(fc.Provider,{value:null},f__namespace.createElement(ts,he({ref:n,className:X(s,c)},l,u)))},Wy=f__namespace.forwardRef(ZN);Wy.displayName="RawItem";var QN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],fc=f__namespace.createContext(null),Vy="responsive",Uy="invalidate";function JN(e){return "+ ".concat(e.length," ...")}function eA(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,h=e.style,v=e.className,p=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,w=y===void 0?"div":y,$=e.itemComponent,S=e.onVisibleChange,C=Xe(e,QN),x=d==="full",P=KN(),R=Ma(P,null),E=K(R,2),I=E[0],O=E[1],M=I||0,_=Ma(P,new Map),T=K(_,2),A=T[0],N=T[1],D=Ma(P,0),L=K(D,2),z=L[0],j=L[1],F=Ma(P,0),G=K(F,2),U=G[0],q=G[1],ne=Ma(P,0),Z=K(ne,2),Y=Z[0],te=Z[1],re=f.useState(null),se=K(re,2),de=se[0],ee=se[1],ie=f.useState(null),ce=K(ie,2),le=ce[0],ve=ce[1],oe=f__namespace.useMemo(function(){return le===null&&x?Number.MAX_SAFE_INTEGER:le||0},[le,I]),pe=f.useState(!1),ue=K(pe,2),ye=ue[0],Ie=ue[1],De="".concat(r,"-item"),Le=Math.max(z,U),_e=p===Vy,qe=i.length&&_e,vt=p===Uy,et=qe||typeof p=="number"&&i.length>p,Qe=f.useMemo(function(){var Ne=i;return qe?I===null&&x?Ne=i:Ne=i.slice(0,Math.min(i.length,M/u)):typeof p=="number"&&(Ne=i.slice(0,p)),Ne},[i,u,I,p,qe]),ke=f.useMemo(function(){return qe?i.slice(oe+1):i.slice(Qe.length)},[i,Qe,qe,oe]),ze=f.useCallback(function(Ne,fe){var ae;return typeof l=="function"?l(Ne):(ae=l&&(Ne==null?void 0:Ne[l]))!==null&&ae!==void 0?ae:fe},[l]),dt=f.useCallback(a||function(Ne){return Ne},[a]);function at(Ne,fe,ae){le===Ne&&(fe===void 0||fe===de)||(ve(Ne),ae||(Ie(NeM){at(Se-1,Ne-xe-Y+U);break}}b&&ft(0)+Y>M&&ee(null);}},[M,A,U,Y,ze,Qe]);var $e=ye&&!!ke.length,Ee={};de!==null&&qe&&(Ee={position:"absolute",left:de,top:0});var je={prefixCls:De,responsive:qe,component:$,invalidate:vt},Re=s?function(Ne,fe){var ae=ze(Ne,fe);return f__namespace.createElement(fc.Provider,{key:ae,value:B(B({},je),{},{order:fe,item:Ne,itemKey:ae,registerSize:we,display:fe<=oe})},s(Ne,fe))}:function(Ne,fe){var ae=ze(Ne,fe);return f__namespace.createElement(ts,he({},je,{order:fe,key:ae,item:Ne,renderItem:dt,itemKey:ae,registerSize:we,display:fe<=oe}))},Je,Et={order:$e?oe:Number.MAX_SAFE_INTEGER,className:"".concat(De,"-rest"),registerSize:Ye,display:$e};if(g)g&&(Je=f__namespace.createElement(fc.Provider,{value:B(B({},je),Et)},g(ke)));else {var Ft=m||JN;Je=f__namespace.createElement(ts,he({},je,Et),typeof Ft=="function"?Ft(ke):Ft);}var kt=f__namespace.createElement(w,he({className:X(!vt&&r,v),style:h,ref:t},C),Qe.map(Re),et?Je:null,b&&f__namespace.createElement(ts,he({},je,{responsive:_e,responsiveDisabled:!qe,order:oe,className:"".concat(De,"-suffix"),registerSize:Ue,display:!0,style:Ee}),b));return _e&&(kt=f__namespace.createElement(go,{onResize:be,disabled:!qe},kt)),kt}var Br=f__namespace.forwardRef(eA);Br.displayName="Overflow";Br.Item=Wy;Br.RESPONSIVE=Vy;Br.INVALIDATE=Uy;var hc=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.onMouseDown,a=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,f__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),i&&i(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:f__namespace.createElement("span",{className:X(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))},tA=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,h=t.editable,v=t.activeDescendantId,p=t.value,m=t.maxLength,g=t.onKeyDown,b=t.onMouseDown,y=t.onChange,w=t.onPaste,$=t.onCompositionStart,S=t.onCompositionEnd,C=t.open,x=t.attrs,P=s||f__namespace.createElement("input",null),R=P,E=R.ref,I=R.props,O=I.onKeyDown,M=I.onChange,_=I.onMouseDown,T=I.onCompositionStart,A=I.onCompositionEnd,N=I.style;return "maxLength"in P.props,P=f__namespace.cloneElement(P,B(B(B({type:"search"},I),{},{id:a,ref:Pn(n,E),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:X("".concat(i,"-selection-search-input"),(r=P)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":v},x),{},{value:h?p:"",maxLength:m,readOnly:!h,unselectable:h?null:"on",style:B(B({},N),{},{opacity:h?null:0}),onKeyDown:function(L){g(L),O&&O(L);},onMouseDown:function(L){b(L),_&&_(L);},onChange:function(L){y(L),M&&M(L);},onCompositionStart:function(L){$(L),T&&T(L);},onCompositionEnd:function(L){S(L),A&&A(L);},onPaste:w})),P},ov=f__namespace.forwardRef(tA);ov.displayName="Input";function Gy(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var nA=typeof window<"u"&&window.document&&window.document.documentElement,rA=nA;function oA(e){return e!=null}function Bm(e){return ["string","number"].includes(tt(e))}function Ky(e){var t=void 0;return e&&(Bm(e.title)?t=e.title.toString():Bm(e.label)&&(t=e.label.toString())),t}function iA(e,t){rA?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function aA(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var Wm=function(t){t.preventDefault(),t.stopPropagation();},sA=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,h=t.showSearch,v=t.autoFocus,p=t.autoComplete,m=t.activeDescendantId,g=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,w=t.maxTagTextLength,$=t.maxTagPlaceholder,S=$===void 0?function(ee){return "+ ".concat(ee.length," ...")}:$,C=t.tagRender,x=t.onToggleOpen,P=t.onRemove,R=t.onInputChange,E=t.onInputPaste,I=t.onInputKeyDown,O=t.onInputMouseDown,M=t.onInputCompositionStart,_=t.onInputCompositionEnd,T=f__namespace.useRef(null),A=f.useState(0),N=K(A,2),D=N[0],L=N[1],z=f.useState(!1),j=K(z,2),F=j[0],G=j[1],U="".concat(r,"-selection"),q=i||d==="multiple"&&s===!1||d==="tags"?a:"",ne=d==="tags"||d==="multiple"&&s===!1||h&&(i||F);iA(function(){L(T.current.scrollWidth);},[q]);function Z(ee,ie,ce,le,ve){return f__namespace.createElement("span",{className:X("".concat(U,"-item"),V({},"".concat(U,"-item-disabled"),ce)),title:Ky(ee)},f__namespace.createElement("span",{className:"".concat(U,"-item-content")},ie),le&&f__namespace.createElement(hc,{className:"".concat(U,"-item-remove"),onMouseDown:Wm,onClick:ve,customizeIcon:b},"×"))}function Y(ee,ie,ce,le,ve){var oe=function(ue){Wm(ue),x(!i);};return f__namespace.createElement("span",{onMouseDown:oe},C({label:ie,value:ee,disabled:ce,closable:le,onClose:ve}))}function te(ee){var ie=ee.disabled,ce=ee.label,le=ee.value,ve=!u&&!ie,oe=ce;if(typeof w=="number"&&(typeof ce=="string"||typeof ce=="number")){var pe=String(oe);pe.length>w&&(oe="".concat(pe.slice(0,w),"..."));}var ue=function(Ie){Ie&&Ie.stopPropagation(),P(ee);};return typeof C=="function"?Y(le,oe,ie,ve,ue):Z(ee,oe,ie,ve,ue)}function re(ee){var ie=typeof S=="function"?S(ee):S;return Z({title:ie},ie,!1)}var se=f__namespace.createElement("div",{className:"".concat(U,"-search"),style:{width:D},onFocus:function(){G(!0);},onBlur:function(){G(!1);}},f__namespace.createElement(ov,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:v,autoComplete:p,editable:ne,activeDescendantId:m,value:q,onKeyDown:I,onMouseDown:O,onChange:R,onPaste:E,onCompositionStart:M,onCompositionEnd:_,tabIndex:g,attrs:uc(t,!0)}),f__namespace.createElement("span",{ref:T,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},q," ")),de=f__namespace.createElement(Br,{prefixCls:"".concat(U,"-overflow"),data:o,renderItem:te,renderRest:re,suffix:se,itemKey:aA,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,de,!o.length&&!q&&f__namespace.createElement("span",{className:"".concat(U,"-placeholder")},c))},lA=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,h=t.values,v=t.placeholder,p=t.tabIndex,m=t.showSearch,g=t.searchValue,b=t.activeValue,y=t.maxLength,w=t.onInputKeyDown,$=t.onInputMouseDown,S=t.onInputChange,C=t.onInputPaste,x=t.onInputCompositionStart,P=t.onInputCompositionEnd,R=t.title,E=f__namespace.useState(!1),I=K(E,2),O=I[0],M=I[1],_=u==="combobox",T=_||m,A=h[0],N=g||"";_&&b&&!O&&(N=b),f__namespace.useEffect(function(){_&&M(!1);},[_,b]);var D=u!=="combobox"&&!d&&!m?!1:!!N,L=R===void 0?Ky(A):R,z=function(){if(A)return null;var F=D?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:F},v)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(ov,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:T,activeDescendantId:c,value:N,onKeyDown:w,onMouseDown:$,onChange:function(F){M(!0),S(F);},onPaste:C,onCompositionStart:x,onCompositionEnd:P,tabIndex:p,attrs:uc(t,!0),maxLength:_?y:void 0})),!_&&A?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:D?{visibility:"hidden"}:void 0},A.label):null,z())};function cA(e){return ![J.ESC,J.SHIFT,J.BACKSPACE,J.TAB,J.WIN_KEY,J.ALT,J.META,J.WIN_KEY_RIGHT,J.CTRL,J.SEMICOLON,J.EQUALS,J.CAPS_LOCK,J.CONTEXT_MENU,J.F1,J.F2,J.F3,J.F4,J.F5,J.F6,J.F7,J.F8,J.F9,J.F10,J.F11,J.F12].includes(e)}var uA=function(t,n){var r=f.useRef(null),o=f.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,p=t.onInputKeyDown,m=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var g=By(0),b=K(g,2),y=b[0],w=b[1],$=function(N){var D=N.which;(D===J.UP||D===J.DOWN)&&N.preventDefault(),p&&p(N),D===J.ENTER&&s==="tags"&&!o.current&&!a&&(h==null||h(N.target.value)),cA(D)&&v(!0);},S=function(){w(!0);},C=f.useRef(null),x=function(N){d(N,!0,o.current)!==!1&&v(!0);},P=function(){o.current=!0;},R=function(N){o.current=!1,s!=="combobox"&&x(N.target.value);},E=function(N){var D=N.target.value;if(c&&C.current&&/[\r\n]/.test(C.current)){var L=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(L,C.current);}C.current=null,x(D);},I=function(N){var D=N.clipboardData,L=D.getData("text");C.current=L;},O=function(N){var D=N.target;if(D!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus();}):r.current.focus();}},M=function(N){var D=y();N.target!==r.current&&!D&&s!=="combobox"&&N.preventDefault(),(s!=="combobox"&&(!l||!D)||!a)&&(a&&u!==!1&&d("",!0,!1),v());},_={inputRef:r,onInputKeyDown:$,onInputMouseDown:S,onInputChange:E,onInputPaste:I,onInputCompositionStart:P,onInputCompositionEnd:R},T=s==="multiple"||s==="tags"?f__namespace.createElement(sA,he({},t,_)):f__namespace.createElement(lA,he({},t,_));return f__namespace.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:O,onMouseDown:M},T)},Xy=f__namespace.forwardRef(uA);Xy.displayName="Selector";var Vm=f__namespace.createContext(null);function Um(e){return e?Array.isArray(e)?e:[e]:[]}function dA(e,t,n,r){return f__namespace.useMemo(function(){var o=Um(n??t),i=Um(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function fA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function hA(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ta(e){return Ss(parseFloat(e),0)}function Km(e,t){var n=B({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var o=Vs(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,v=r.clientHeight,p=r.offsetWidth,m=r.clientWidth,g=Ta(s),b=Ta(l),y=Ta(c),w=Ta(u),$=Ss(Math.round(d.width/p*1e3)/1e3),S=Ss(Math.round(d.height/h*1e3)/1e3),C=(p-m-y-w)*$,x=(h-v-g-b)*S,P=g*S,R=b*S,E=y*$,I=w*$,O=0,M=0;if(i==="clip"){var _=Ta(a);O=_*$,M=_*S;}var T=d.x+E-O,A=d.y+P-M,N=T+d.width+2*O-E-I-C,D=A+d.height+2*M-P-R-x;n.left=Math.max(n.left,T),n.top=Math.max(n.top,A),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,D);}}),n}function Xm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function qm(e,t){var n=t||[],r=K(n,2),o=r[0],i=r[1];return [Xm(e.width,o),Xm(e.height,i)]}function Ym(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function _i(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function xo(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function vA(e,t,n,r,o,i,a){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=K(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),h=f__namespace.useMemo(function(){return t?Df(t):[]},[t]),v=f__namespace.useRef({}),p=function(){v.current={};};e||p();var m=yr(function(){if(t&&n&&e){let He=function(st,Ot){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ee,zn=E.x+st,xn=E.y+Ot,Rr=zn+F,nr=xn+j,Ko=Math.max(zn,zt.left),rl=Math.max(xn,zt.top),$a=Math.min(Rr,zt.right),ol=Math.min(nr,zt.bottom);return Math.max(0,($a-Ko)*(ol-rl))},St=function(){Se=E.y+Ue,xe=Se+j,Ze=E.x+Ye,pt=Ze+F;};var y=t,w=y.style.left,$=y.style.top,S=y.ownerDocument,C=Vs(y),x=B(B({},o[r]),i);y.style.left="0",y.style.top="0";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else {var R=n.getBoundingClientRect();P={x:R.x,y:R.y,width:R.width,height:R.height};}var E=y.getBoundingClientRect(),I=C.getComputedStyle(y),O=I.width,M=I.height,_=S.documentElement,T=_.clientWidth,A=_.clientHeight,N=_.scrollWidth,D=_.scrollHeight,L=_.scrollTop,z=_.scrollLeft,j=E.height,F=E.width,G=P.height,U=P.width,q={left:0,top:0,right:T,bottom:A},ne={left:-z,top:-L,right:N-z,bottom:D-L},Z=x.htmlRegion,Y="visible",te="visibleFirst";Z!=="scroll"&&Z!==te&&(Z=Y);var re=Z===te,se=Km(ne,h),de=Km(q,h),ee=Z===Y?de:se,ie=re?de:ee;y.style.left=w,y.style.top=$;var ce=Ss(Math.round(F/parseFloat(O)*1e3)/1e3),le=Ss(Math.round(j/parseFloat(M)*1e3)/1e3);if(ce===0||le===0||ec(n)&&!su(n))return;var ve=x.offset,oe=x.targetOffset,pe=qm(E,ve),ue=K(pe,2),ye=ue[0],Ie=ue[1],De=qm(P,oe),Le=K(De,2),_e=Le[0],qe=Le[1];P.x-=_e,P.y-=qe;var vt=x.points||[],et=K(vt,2),Qe=et[0],ke=et[1],ze=Ym(ke),dt=Ym(Qe),at=_i(P,ze),be=_i(E,dt),we=B({},x),Ye=at.x-be.x+ye,Ue=at.y-be.y+Ie,ft=He(Ye,Ue),$e=He(Ye,Ue,de),Ee=_i(P,["t","l"]),je=_i(E,["t","l"]),Re=_i(P,["b","r"]),Je=_i(E,["b","r"]),Et=x.overflow||{},Ft=Et.adjustX,kt=Et.adjustY,Ne=Et.shiftX,fe=Et.shiftY,ae=function(Ot){return typeof Ot=="boolean"?Ot:Ot>=0},Se,xe,Ze,pt;St();var xt=ae(kt),Xt=dt[0]===ze[0];if(xt&&dt[0]==="t"&&(xe>ie.bottom||v.current.bt)){var Vt=Ue;Xt?Vt-=j-G:Vt=Ee.y-Je.y-Ie;var Ae=He(Ye,Vt),Ge=He(Ye,Vt,de);Ae>ft||Ae===ft&&(!re||Ge>=$e)?(v.current.bt=!0,Ue=Vt,we.points=[xo(dt,0),xo(ze,0)]):v.current.bt=!1;}if(xt&&dt[0]==="b"&&(Seft||$t===ft&&(!re||yt>=$e)?(v.current.tb=!0,Ue=Me,we.points=[xo(dt,0),xo(ze,0)]):v.current.tb=!1;}var Zt=ae(Ft),Te=dt[1]===ze[1];if(Zt&&dt[1]==="l"&&(pt>ie.right||v.current.rl)){var We=Ye;Te?We-=F-U:We=Ee.x-Je.x-ye;var lt=He(We,Ue),Pt=He(We,Ue,de);lt>ft||lt===ft&&(!re||Pt>=$e)?(v.current.rl=!0,Ye=We,we.points=[xo(dt,1),xo(ze,1)]):v.current.rl=!1;}if(Zt&&dt[1]==="r"&&(Zeft||Bt===ft&&(!re||wn>=$e)?(v.current.lr=!0,Ye=qt,we.points=[xo(dt,1),xo(ze,1)]):v.current.lr=!1;}St();var Nn=Ne===!0?0:Ne;typeof Nn=="number"&&(Zeee.right&&(Ye-=pt-ee.right,P.x>ee.right-Nn&&(Ye+=P.x-ee.right+Nn)));var cr=fe===!0?0:fe;typeof cr=="number"&&(Seee.bottom&&(Ue-=xe-ee.bottom,P.y>ee.bottom-cr&&(Ue+=P.y-ee.bottom+cr)));var Yr=E.x+Ye,_r=Yr+F,tr=E.y+Ue,_n=tr+j,Zr=P.x,Wo=Zr+U,Qr=P.y,Jr=Qr+G,eo=Math.max(Yr,Zr),Vo=Math.min(_r,Wo),Uo=(eo+Vo)/2,Go=Uo-Yr,to=Math.max(tr,Qr),no=Math.min(_n,Jr),Oe=(to+no)/2,Ce=Oe-tr;a==null||a(t,we),u({ready:!0,offsetX:Ye/ce,offsetY:Ue/le,arrowX:Go/ce,arrowY:Ce/le,scaleX:ce,scaleY:le,align:we});}}),g=function(){d.current+=1;var w=d.current;Promise.resolve().then(function(){d.current===w&&m();});},b=function(){u(function(w){return B(B({},w),{},{ready:!1})});};return Ht(b,[r]),Ht(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function pA(e,t,n,r){Ht(function(){if(e&&t&&n){let u=function(){r();};var o=t,i=n,a=Df(o),s=Df(i),l=Vs(i),c=new Set([l].concat(ge(a),ge(s)));return c.forEach(function(d){d.addEventListener("scroll",u,{passive:!0});}),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach(function(d){d.removeEventListener("scroll",u),l.removeEventListener("resize",u);});}}},[e,t,n]);}function mA(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,h=f__namespace.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],m=n.points[1],g=p[0],b=p[1],y=m[0],w=m[1];g===y||!["t","b"].includes(g)?v.top=d:g==="t"?v.top=0:v.bottom=0,b===w||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0;}return f__namespace.createElement("div",{ref:h,className:X("".concat(t,"-arrow"),a),style:v},s)}function gA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f__namespace.createElement(Pr,he({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return f__namespace.createElement("div",{style:{zIndex:r},className:X("".concat(t,"-mask"),s)})}):null}var bA=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),yA=f__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.onClick,d=e.mask,h=e.arrow,v=e.arrowPos,p=e.align,m=e.motion,g=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,$=e.portal,S=e.zIndex,C=e.onMouseEnter,x=e.onMouseLeave,P=e.ready,R=e.offsetX,E=e.offsetY,I=e.onAlign,O=e.onPrepare,M=e.stretch,_=e.targetWidth,T=e.targetHeight,A=typeof n=="function"?n():n,N=l||c,D=(y==null?void 0:y.length)>0,L=f__namespace.useState(!y||!D),z=K(L,2),j=z[0],F=z[1];if(Ht(function(){!j&&D&&a&&F(!0);},[j,D,a]),!j)return null;var G=P||!l?{left:R,top:E}:{left:"-1000vw",top:"-1000vh"},U={};return M&&(M.includes("height")&&T?U.height=T:M.includes("minHeight")&&T&&(U.minHeight=T),M.includes("width")&&_?U.width=_:M.includes("minWidth")&&_&&(U.minWidth=_)),l||(U.pointerEvents="none"),f__namespace.createElement($,{open:b||N,getContainer:y&&function(){return y(a)},autoDestroy:w},f__namespace.createElement(gA,{prefixCls:o,open:l,zIndex:S,mask:d,motion:g}),f__namespace.createElement(go,{onResize:I,disabled:!l},function(q){return f__namespace.createElement(Pr,he({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:O,onEnterPrepare:O,visible:l,onVisibleChanged:function(Z){var Y;m==null||(Y=m.onVisibleChanged)===null||Y===void 0||Y.call(m,Z),s(Z);}}),function(ne,Z){var Y=ne.className,te=ne.style,re=X(o,Y,r);return f__namespace.createElement("div",{ref:Pn(q,t,Z),className:re,style:B(B(B(B({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},G),U),te),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:C,onMouseLeave:x,onClick:u},h&&f__namespace.createElement(mA,{prefixCls:o,arrow:h,arrowPos:v,align:p}),f__namespace.createElement(bA,{cache:!l},A))})}))}),CA=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ho(n),i=f__namespace.useCallback(function(s){kh(t,r?r(s):s);},[r]),a=ks(i,n.ref);return o?f__namespace.cloneElement(n,{ref:a}):n}),SA=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function wA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ay,t=f__namespace.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,v=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,m=n.mouseEnterDelay,g=n.mouseLeaveDelay,b=g===void 0?.1:g,y=n.focusDelay,w=n.blurDelay,$=n.mask,S=n.maskClosable,C=S===void 0?!0:S,x=n.getPopupContainer,P=n.forceRender,R=n.autoDestroy,E=n.destroyPopupOnHide,I=n.popup,O=n.popupClassName,M=n.popupStyle,_=n.popupPlacement,T=n.builtinPlacements,A=T===void 0?{}:T,N=n.popupAlign,D=n.zIndex,L=n.stretch,z=n.getPopupClassNameFromAlign,j=n.alignPoint,F=n.onPopupClick,G=n.onPopupAlign,U=n.arrow,q=n.popupMotion,ne=n.maskMotion,Z=n.popupTransitionName,Y=n.popupAnimation,te=n.maskTransitionName,re=n.maskAnimation,se=n.className,de=n.getTriggerDOMNode,ee=Xe(n,SA),ie=R||E||!1,ce=f__namespace.useState(!1),le=K(ce,2),ve=le[0],oe=le[1];Ht(function(){oe(Ws());},[]);var pe=f__namespace.useRef({}),ue=f__namespace.useContext(Vm),ye=f__namespace.useMemo(function(){return {registerSubPopup:function(nt,Nt){pe.current[nt]=Nt,ue==null||ue.registerSubPopup(nt,Nt);}}},[ue]),Ie=oN(),De=f__namespace.useState(null),Le=K(De,2),_e=Le[0],qe=Le[1],vt=yr(function(Be){ec(Be)&&_e!==Be&&qe(Be),ue==null||ue.registerSubPopup(Ie,Be);}),et=f__namespace.useState(null),Qe=K(et,2),ke=Qe[0],ze=Qe[1],dt=yr(function(Be){ec(Be)&&ke!==Be&&ze(Be);}),at=f__namespace.Children.only(a),be=(at==null?void 0:at.props)||{},we={},Ye=yr(function(Be){var nt,Nt,jt=ke;return (jt==null?void 0:jt.contains(Be))||(jt==null||(nt=jt.getRootNode())===null||nt===void 0?void 0:nt.host)===Be||Be===jt||(_e==null?void 0:_e.contains(Be))||(_e==null||(Nt=_e.getRootNode())===null||Nt===void 0?void 0:Nt.host)===Be||Be===_e||Object.values(pe.current).some(function(Tt){return (Tt==null?void 0:Tt.contains(Be))||Be===Tt})}),Ue=Gm(i,q,Y,Z),ft=Gm(i,ne,re,te),$e=f__namespace.useState(h||!1),Ee=K($e,2),je=Ee[0],Re=Ee[1],Je=d??je,Et=yr(function(Be){d===void 0&&Re(Be);});Ht(function(){Re(d||!1);},[d]);var Ft=f__namespace.useRef(Je);Ft.current=Je;var kt=yr(function(Be){Je!==Be&&(Et(Be),v==null||v(Be));}),Ne=f__namespace.useRef(),fe=function(){clearTimeout(Ne.current);},ae=function(nt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;fe(),Nt===0?kt(nt):Ne.current=setTimeout(function(){kt(nt);},Nt*1e3);};f__namespace.useEffect(function(){return fe},[]);var Se=f__namespace.useState(!1),xe=K(Se,2),Ze=xe[0],pt=xe[1],xt=f__namespace.useRef(!0);Ht(function(){(!xt.current||Je)&&pt(!0),xt.current=!0;},[Je]);var Xt=f__namespace.useState(null),Vt=K(Xt,2),Ae=Vt[0],Ge=Vt[1],Me=f__namespace.useState([0,0]),$t=K(Me,2),yt=$t[0],Zt=$t[1],Te=function(nt){Zt([nt.clientX,nt.clientY]);},We=vA(Je,_e,j?yt:ke,_,A,N,G),lt=K(We,9),Pt=lt[0],qt=lt[1],Bt=lt[2],wn=lt[3],Nn=lt[4],cr=lt[5],Yr=lt[6],_r=lt[7],tr=lt[8],_n=yr(function(){Ze||tr();});pA(Je,ke,_e,_n),Ht(function(){_n();},[yt,_]),Ht(function(){Je&&!(A!=null&&A[_])&&_n();},[JSON.stringify(N)]);var Zr=f__namespace.useMemo(function(){var Be=hA(A,i,_r,j);return X(Be,z==null?void 0:z(_r))},[_r,z,A,i,j]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:_n}});var Wo=function(nt){pt(!1),tr(),p==null||p(nt);},Qr=function(){return new Promise(function(nt){Ge(function(){return nt});})};Ht(function(){Ae&&(tr(),Ae(),Ge(null));},[Ae]);var Jr=f__namespace.useState(0),eo=K(Jr,2),Vo=eo[0],Uo=eo[1],Go=f__namespace.useState(0),to=K(Go,2),no=to[0],Oe=to[1],Ce=function(nt,Nt){if(_n(),L){var jt=Nt.getBoundingClientRect();Uo(jt.width),Oe(jt.height);}},He=dA(ve,l,c,u),St=K(He,2),st=St[0],Ot=St[1],zt=function(nt,Nt,jt,Tt){we[nt]=function(Ea){var wi;Tt==null||Tt(Ea),ae(Nt,jt);for(var Xo=arguments.length,xi=new Array(Xo>1?Xo-1:0),il=1;il1?Nt-1:0),Tt=1;Tt1?Nt-1:0),Tt=1;Tt1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Yy(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,h){d.forEach(function(v){if(h||!(l in v)){var p=v[s];o.push({key:Zm(v,o.length),groupOption:h,data:v,label:v[a],value:p});}else {var m=v[c];m===void 0&&r&&(m=v.label),o.push({key:Zm(v,o.length),group:!0,data:v,label:m}),u(v[l],!0);}});}return u(e,!1),o}function kf(e){var t=B({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return Cn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function PA(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=H0(a),l=s[0],c=s.slice(1);if(!l)return [i];var u=i.split(l);return n=n||u.length>1,u.reduce(function(d,h){return [].concat(ge(d),ge(r(h,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var _A=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],RA=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Lf(e){return e==="tags"||e==="multiple"}var MA=f__namespace.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,h=e.onDisplayValuesChange,v=e.emptyOptions,p=e.notFoundContent,m=p===void 0?"Not Found":p,g=e.onClear,b=e.mode,y=e.disabled,w=e.loading,$=e.getInputElement,S=e.getRawInputElement,C=e.open,x=e.defaultOpen,P=e.onDropdownVisibleChange,R=e.activeValue,E=e.onActiveValueChange,I=e.activeDescendantId,O=e.searchValue,M=e.autoClearSearchValue,_=e.onSearch,T=e.onSearchSplit,A=e.tokenSeparators,N=e.allowClear,D=e.showArrow,L=e.inputIcon,z=e.clearIcon,j=e.OptionList,F=e.animation,G=e.transitionName,U=e.dropdownStyle,q=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,Z=e.dropdownRender,Y=e.dropdownAlign,te=e.placement,re=e.builtinPlacements,se=e.getPopupContainer,de=e.showAction,ee=de===void 0?[]:de,ie=e.onFocus,ce=e.onBlur,le=e.onKeyUp,ve=e.onKeyDown,oe=e.onMouseDown,pe=Xe(e,_A),ue=Lf(b),ye=(s!==void 0?s:ue)||b==="combobox",Ie=B({},pe);RA.forEach(function(Oe){delete Ie[Oe];}),u==null||u.forEach(function(Oe){delete Ie[Oe];});var De=f__namespace.useState(!1),Le=K(De,2),_e=Le[0],qe=Le[1];f__namespace.useEffect(function(){qe(Ws());},[]);var vt=f__namespace.useRef(null),et=f__namespace.useRef(null),Qe=f__namespace.useRef(null),ke=f__namespace.useRef(null),ze=f__namespace.useRef(null),dt=BN(),at=K(dt,3),be=at[0],we=at[1],Ye=at[2];f__namespace.useImperativeHandle(t,function(){var Oe,Ce;return {focus:(Oe=ke.current)===null||Oe===void 0?void 0:Oe.focus,blur:(Ce=ke.current)===null||Ce===void 0?void 0:Ce.blur,scrollTo:function(St){var st;return (st=ze.current)===null||st===void 0?void 0:st.scrollTo(St)}}});var Ue=f__namespace.useMemo(function(){var Oe;if(b!=="combobox")return O;var Ce=(Oe=d[0])===null||Oe===void 0?void 0:Oe.value;return typeof Ce=="string"||typeof Ce=="number"?String(Ce):""},[O,b,d]),ft=b==="combobox"&&typeof $=="function"&&$()||null,$e=typeof S=="function"&&S(),Ee=ks(et,$e==null||(n=$e.props)===null||n===void 0?void 0:n.ref),je=f__namespace.useState(!1),Re=K(je,2),Je=Re[0],Et=Re[1];Ht(function(){Et(!0);},[]);var Ft=en(!1,{defaultValue:x,value:C}),kt=K(Ft,2),Ne=kt[0],fe=kt[1],ae=Je?Ne:!1,Se=!m&&v;(y||Se&&ae&&b==="combobox")&&(ae=!1);var xe=Se?!1:ae,Ze=f__namespace.useCallback(function(Oe){var Ce=Oe!==void 0?Oe:!ae;y||(fe(Ce),ae!==Ce&&(P==null||P(Ce)));},[y,ae,fe,P]),pt=f__namespace.useMemo(function(){return (A||[]).some(function(Oe){return [` `,`\r `].includes(Oe)})},[A]),xt=function(Ce,He,St){var st=!0,Ot=Ce;E==null||E(null);var zt=St?null:PA(Ce,A);return b!=="combobox"&&zt&&(Ot="",T==null||T(zt),Ze(!1),st=!1),_&&Ue!==Ot&&_(Ot,{source:He?"typing":"effect"}),st},Xt=function(Ce){!Ce||!Ce.trim()||_(Ce,{source:"submit"});};f__namespace.useEffect(function(){!ae&&!ue&&b!=="combobox"&&xt("",!1,!1);},[ae]),f__namespace.useEffect(function(){Ne&&y&&fe(!1),y&&we(!1);},[y]);var Vt=By(),Ae=K(Vt,2),Ge=Ae[0],Me=Ae[1],$t=function(Ce){var He=Ge(),St=Ce.which;if(St===J.ENTER&&(b!=="combobox"&&Ce.preventDefault(),ae||Ze(!0)),Me(!!Ue),St===J.BACKSPACE&&!He&&ue&&!Ue&&d.length){for(var st=ge(d),Ot=null,zt=st.length-1;zt>=0;zt-=1){var zn=st[zt];if(!zn.disabled){st.splice(zt,1),Ot=zn;break}}Ot&&h(st,{type:"remove",values:[Ot]});}for(var xn=arguments.length,Rr=new Array(xn>1?xn-1:0),nr=1;nr1?He-1:0),st=1;st1?zt-1:0),xn=1;xn1&&arguments[1]!==void 0?arguments[1]:!1;return wr(e).map(function(n,r){if(!f__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Xe(s,LA);return t||!i?FA(n):B(B({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:Zy(l)})}).filter(function(n){return n})}function zA(e,t,n,r,o){return f__namespace.useMemo(function(){var i=e,a=!e;a&&(i=Zy(t));var s=new Map,l=new Map,c=function(h,v,p){p&&typeof p=="string"&&h.set(v[p],v);};function u(d){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;vl},r}return pn(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown);}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden();}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout);}},{key:"render",value:function(){var o=this.state,i=o.dragging,a=o.visible,s=this.props,l=s.prefixCls,c=s.direction,u=this.getSpinHeight(),d=this.getTop(),h=this.showScroll(),v=h&&a,p=c==="rtl"?{left:0}:{right:0};return f__namespace.createElement("div",{ref:this.scrollbarRef,className:X("".concat(l,"-scrollbar"),V({},"".concat(l,"-scrollbar-show"),h)),style:B(B({width:8,top:0,bottom:0},p),{},{position:"absolute",display:v?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f__namespace.createElement("div",{ref:this.thumbRef,className:X("".concat(l,"-scrollbar-thumb"),V({},"".concat(l,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:u,top:d,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(f__namespace.Component);function BA(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function WA(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,u=o(s,c,{}),d=a(s);return f__namespace.createElement(BA,{key:d,setRef:function(v){return r(s,v)}},u)})}var VA=function(){function e(){vn(this,e),this.maps=void 0,this.maps=Object.create(null);}return pn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function UA(e,t,n){var r=f__namespace.useState(0),o=K(r,2),i=o[0],a=o[1],s=f.useRef(new Map),l=f.useRef(new VA),c=f.useRef();function u(){wt.cancel(c.current);}function d(){u(),c.current=wt(function(){s.current.forEach(function(v,p){if(v&&v.offsetParent){var m=gs(v),g=m.offsetHeight;l.current.get(p)!==g&&l.current.set(p,m.offsetHeight);}}),a(function(v){return v+1});});}function h(v,p){var m=e(v),g=s.current.get(m);p?(s.current.set(m,p),d()):s.current.delete(m),!g!=!p&&(p?t==null||t(v):n==null||n(v));}return f.useEffect(function(){return u},[]),[h,d,l.current,i]}function GA(e,t,n,r,o,i,a,s){var l=f__namespace.useRef();return function(c){if(c==null){s();return}if(wt.cancel(l.current),typeof c=="number")a(c);else if(c&&tt(c)==="object"){var u,d=c.align;"index"in c?u=c.index:u=t.findIndex(function(m){return o(m)===c.key});var h=c.offset,v=h===void 0?0:h,p=function m(g,b){if(!(g<0||!e.current)){var y=e.current.clientHeight,w=!1,$=b;if(y){for(var S=b||d,C=0,x=0,P=0,R=Math.min(t.length,u),E=0;E<=R;E+=1){var I=o(t[E]);x=C;var O=n.get(I);P=x+(O===void 0?r:O),C=P,E===u&&O===void 0&&(w=!0);}var M=null;switch(S){case"top":M=x-v;break;case"bottom":M=P-y+v;break;default:{var _=e.current.scrollTop,T=_+y;x<_?$="top":P>T&&($="bottom");}}M!==null&&M!==e.current.scrollTop&&a(M);}l.current=wt(function(){w&&i(),m(g-1,$);},2);}};p(3);}}}function KA(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r"u"?"undefined":tt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Jy=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=f.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a<0&&i.current.top||a>0&&i.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function YA(e,t,n,r){var o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s=f.useRef(!1),l=Jy(t,n);function c(d){if(e){wt.cancel(i.current);var h=d.deltaY;o.current+=h,a.current=h,!l(h)&&(qA||d.preventDefault(),i.current=wt(function(){var v=s.current?10:1;r(o.current*v),o.current=0;}));}}function u(d){e&&(s.current=d.detail===a.current);}return [c,u]}var ZA=14/15;function QA(e,t,n){var r=f.useRef(!1),o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s,l=function(h){if(r.current){var v=Math.ceil(h.touches[0].pageY),p=o.current-v;o.current=v,n(p)&&h.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){p*=ZA,(!n(p,!0)||Math.abs(p)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},u=function(h){s(),h.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(h.touches[0].pageY),i.current=h.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c));};s=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c));},Ht(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(a.current);}},[e]);}var JA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],eD=[],tD={overflowY:"auto",overflowAnchor:"none"};function nD(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,h=e.itemKey,v=e.virtual,p=e.direction,m=e.component,g=m===void 0?"div":m,b=e.onScroll,y=e.onVisibleChange,w=e.innerProps,$=Xe(e,JA),S=!!(v!==!1&&i&&a),C=S&&u&&a*u.length>i,x=f.useState(0),P=K(x,2),R=P[0],E=P[1],I=f.useState(!1),O=K(I,2),M=O[0],_=O[1],T=X(r,V({},"".concat(r,"-rtl"),p==="rtl"),o),A=u||eD,N=f.useRef(),D=f.useRef(),L=f.useRef(),z=f__namespace.useCallback(function(be){return typeof h=="function"?h(be):be==null?void 0:be[h]},[h]),j={getKey:z};function F(be){E(function(we){var Ye;typeof be=="function"?Ye=be(we):Ye=be;var Ue=ye(Ye);return N.current.scrollTop=Ue,Ue});}var G=f.useRef({start:0,end:A.length}),U=f.useRef(),q=XA(A,z),ne=K(q,1),Z=ne[0];U.current=Z;var Y=UA(z,null,null),te=K(Y,4),re=te[0],se=te[1],de=te[2],ee=te[3],ie=f__namespace.useMemo(function(){if(!S)return {scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!C){var be;return {scrollHeight:((be=D.current)===null||be===void 0?void 0:be.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var we=0,Ye,Ue,ft,$e=A.length,Ee=0;Ee<$e;Ee+=1){var je=A[Ee],Re=z(je),Je=de.get(Re),Et=we+(Je===void 0?a:Je);Et>=R&&Ye===void 0&&(Ye=Ee,Ue=we),Et>R+i&&ft===void 0&&(ft=Ee),we=Et;}return Ye===void 0&&(Ye=0,Ue=0,ft=Math.ceil(i/a)),ft===void 0&&(ft=A.length-1),ft=Math.min(ft+1,A.length),{scrollHeight:we,start:Ye,end:ft,offset:Ue}},[C,S,R,A,ee,i]),ce=ie.scrollHeight,le=ie.start,ve=ie.end,oe=ie.offset;G.current.start=le,G.current.end=ve;var pe=ce-i,ue=f.useRef(pe);ue.current=pe;function ye(be){var we=be;return Number.isNaN(ue.current)||(we=Math.min(we,ue.current)),we=Math.max(we,0),we}var Ie=R<=0,De=R>=pe,Le=Jy(Ie,De);function _e(be){var we=be;F(we);}function qe(be){var we=be.currentTarget.scrollTop;we!==R&&F(we),b==null||b(be);}var vt=YA(S,Ie,De,function(be){F(function(we){var Ye=we+be;return Ye});}),et=K(vt,2),Qe=et[0],ke=et[1];QA(S,N,function(be,we){return Le(be,we)?!1:(Qe({preventDefault:function(){},deltaY:be}),!0)}),Ht(function(){function be(we){S&&we.preventDefault();}return N.current.addEventListener("wheel",Qe),N.current.addEventListener("DOMMouseScroll",ke),N.current.addEventListener("MozMousePixelScroll",be),function(){N.current&&(N.current.removeEventListener("wheel",Qe),N.current.removeEventListener("DOMMouseScroll",ke),N.current.removeEventListener("MozMousePixelScroll",be));}},[S]);var ze=GA(N,A,de,a,z,se,F,function(){var be;(be=L.current)===null||be===void 0||be.delayHidden();});f__namespace.useImperativeHandle(t,function(){return {scrollTo:ze}}),Ht(function(){if(y){var be=A.slice(le,ve+1);y(be,A);}},[le,ve,A]);var dt=WA(A,le,ve,re,d,j),at=null;return i&&(at=B(V({},l?"height":"maxHeight",i),tD),S&&(at.overflowY="hidden",M&&(at.pointerEvents="none"))),f__namespace.createElement("div",he({style:B(B({},c),{},{position:"relative"}),className:T},$),f__namespace.createElement(g,{className:"".concat(r,"-holder"),style:at,ref:N,onScroll:qe},f__namespace.createElement(Qy,{prefixCls:r,height:ce,offset:oe,onInnerResize:se,ref:D,innerProps:w},dt)),S&&f__namespace.createElement(HA,{ref:L,prefixCls:r,scrollTop:R,height:i,scrollHeight:ce,count:A.length,direction:p,onScroll:_e,onStartMove:function(){_(!0);},onStopMove:function(){_(!1);}}))}var eC=f__namespace.forwardRef(nD);eC.displayName="List";var tC=f__namespace.createContext(null);function rD(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var oD=["disabled","title","children","style","className"];function tg(e){return typeof e=="string"||typeof e=="number"}var iD=function(t,n){var r=HN(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,h=r.onPopupScroll,v=f__namespace.useContext(tC),p=v.flattenOptions,m=v.onActiveValue,g=v.defaultActiveFirstOption,b=v.onSelect,y=v.menuItemSelectedIcon,w=v.rawValues,$=v.fieldNames,S=v.virtual,C=v.direction,x=v.listHeight,P=v.listItemHeight,R="".concat(o,"-item"),E=Ds(function(){return p},[a,p],function(Z,Y){return Y[0]&&Z[1]!==Y[1]}),I=f__namespace.useRef(null),O=function(Y){Y.preventDefault();},M=function(Y){I.current&&I.current.scrollTo(typeof Y=="number"?{index:Y}:Y);},_=function(Y){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=E.length,se=0;se1&&arguments[1]!==void 0?arguments[1]:!1;D(Y);var re={source:te?"keyboard":"mouse"},se=E[Y];if(!se){m(null,-1,re);return}m(se.value,Y,re);};f.useEffect(function(){L(g!==!1?_(0):-1);},[E.length,c]);var z=f__namespace.useCallback(function(Z){return w.has(Z)&&l!=="combobox"},[l,ge(w).toString(),w.size]);f.useEffect(function(){var Z=setTimeout(function(){if(!s&&a&&w.size===1){var te=Array.from(w)[0],re=E.findIndex(function(se){var de=se.data;return de.value===te});re!==-1&&(L(re),M(re));}});if(a){var Y;(Y=I.current)===null||Y===void 0||Y.scrollTo(void 0);}return function(){return clearTimeout(Z)}},[a,c,p.length]);var j=function(Y){Y!==void 0&&b(Y,{selected:!w.has(Y)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Y){var te=Y.which,re=Y.ctrlKey;switch(te){case J.N:case J.P:case J.UP:case J.DOWN:{var se=0;if(te===J.UP?se=-1:te===J.DOWN?se=1:rD()&&re&&(te===J.N?se=1:te===J.P&&(se=-1)),se!==0){var de=_(N+se,se);M(de),L(de,!0);}break}case J.ENTER:{var ee=E[N];ee&&!ee.data.disabled?j(ee.value):j(void 0),a&&Y.preventDefault();break}case J.ESC:u(!1),a&&Y.stopPropagation();}},onKeyUp:function(){},scrollTo:function(Y){M(Y);}}}),E.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(R,"-empty"),onMouseDown:O},d);var F=Object.keys($).map(function(Z){return $[Z]}),G=function(Y){return Y.label};function U(Z,Y){var te=Z.group;return {role:te?"presentation":"option",id:"".concat(i,"_list_").concat(Y)}}var q=function(Y){var te=E[Y];if(!te)return null;var re=te.data||{},se=re.value,de=te.group,ee=uc(re,!0),ie=G(te);return te?f__namespace.createElement("div",he({"aria-label":typeof ie=="string"&&!de?ie:null},ee,{key:Y},U(te,Y),{"aria-selected":z(se)}),se):null},ne={role:"listbox",id:"".concat(i,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,S&&f__namespace.createElement("div",he({},ne,{style:{height:0,width:0,overflow:"hidden"}}),q(N-1),q(N),q(N+1)),f__namespace.createElement(eC,{itemKey:"key",ref:I,data:E,height:x,itemHeight:P,fullHeight:!1,onMouseDown:O,onScroll:h,virtual:S,direction:C,innerProps:S?null:ne},function(Z,Y){var te,re=Z.group,se=Z.groupOption,de=Z.data,ee=Z.label,ie=Z.value,ce=de.key;if(re){var le,ve=(le=de.title)!==null&&le!==void 0?le:tg(ee)?ee.toString():void 0;return f__namespace.createElement("div",{className:X(R,"".concat(R,"-group")),title:ve},ee!==void 0?ee:ce)}var oe=de.disabled,pe=de.title;de.children;var ue=de.style,ye=de.className,Ie=Xe(de,oD),De=xr(Ie,F),Le=z(ie),_e="".concat(R,"-option"),qe=X(R,_e,ye,(te={},V(te,"".concat(_e,"-grouped"),se),V(te,"".concat(_e,"-active"),N===Y&&!oe),V(te,"".concat(_e,"-disabled"),oe),V(te,"".concat(_e,"-selected"),Le),te)),vt=G(Z),et=!y||typeof y=="function"||Le,Qe=typeof vt=="number"?vt:vt||ie,ke=tg(Qe)?Qe.toString():void 0;return pe!==void 0&&(ke=pe),f__namespace.createElement("div",he({},uc(De),S?{}:U(Z,Y),{"aria-selected":Le,className:qe,title:ke,onMouseMove:function(){N===Y||oe||L(Y);},onClick:function(){oe||j(ie);},style:ue}),f__namespace.createElement("div",{className:"".concat(_e,"-content")},Qe),f__namespace.isValidElement(y)||Le,et&&f__namespace.createElement(hc,{className:"".concat(R,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:Le}},Le?"✓":null))}))},nC=f__namespace.forwardRef(iD);nC.displayName="OptionList";var aD=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],sD=["inputValue"];function lD(e){return !e||tt(e)!=="object"}var cD=f__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,h=d===void 0?!0:d,v=e.onSelect,p=e.onDeselect,m=e.dropdownMatchSelectWidth,g=m===void 0?!0:m,b=e.filterOption,y=e.filterSort,w=e.optionFilterProp,$=e.optionLabelProp,S=e.options,C=e.children,x=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,R=e.virtual,E=e.direction,I=e.listHeight,O=I===void 0?200:I,M=e.listItemHeight,_=M===void 0?20:M,T=e.value,A=e.defaultValue,N=e.labelInValue,D=e.onChange,L=Xe(e,aD),z=DA(n),j=Lf(r),F=!!(!S&&C),G=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),U=f__namespace.useMemo(function(){return Yy(s,F)},[JSON.stringify(s),F]),q=en("",{value:c!==void 0?c:l,postState:function(ae){return ae||""}}),ne=K(q,2),Z=ne[0],Y=ne[1],te=zA(S,C,U,w,$),re=te.valueOptions,se=te.labelOptions,de=te.options,ee=f__namespace.useCallback(function(fe){var ae=Gy(fe);return ae.map(function(Se){var xe,Ze,pt,xt,Xt;if(lD(Se))xe=Se;else {var Vt;pt=Se.key,Ze=Se.label,xe=(Vt=Se.value)!==null&&Vt!==void 0?Vt:pt;}var Ae=re.get(xe);if(Ae){var Ge;Ze===void 0&&(Ze=Ae==null?void 0:Ae[$||U.label]),pt===void 0&&(pt=(Ge=Ae==null?void 0:Ae.key)!==null&&Ge!==void 0?Ge:xe),xt=Ae==null?void 0:Ae.disabled,Xt=Ae==null?void 0:Ae.title;}return {label:Ze,value:xe,key:pt,disabled:xt,title:Xt}})},[U,$,re]),ie=en(A,{value:T}),ce=K(ie,2),le=ce[0],ve=ce[1],oe=f__namespace.useMemo(function(){var fe,ae=ee(le);return r==="combobox"&&!((fe=ae[0])!==null&&fe!==void 0&&fe.value)?[]:ae},[le,ee,r]),pe=TA(oe,re),ue=K(pe,2),ye=ue[0],Ie=ue[1],De=f__namespace.useMemo(function(){if(!r&&ye.length===1){var fe=ye[0];if(fe.value===null&&(fe.label===null||fe.label===void 0))return []}return ye.map(function(ae){var Se;return B(B({},ae),{},{label:(Se=ae.label)!==null&&Se!==void 0?Se:ae.value})})},[r,ye]),Le=f__namespace.useMemo(function(){return new Set(ye.map(function(fe){return fe.value}))},[ye]);f__namespace.useEffect(function(){if(r==="combobox"){var fe,ae=(fe=ye[0])===null||fe===void 0?void 0:fe.value;Y(oA(ae)?String(ae):"");}},[ye]);var _e=Jm(function(fe,ae){var Se,xe=ae??fe;return Se={},V(Se,U.value,fe),V(Se,U.label,xe),Se}),qe=f__namespace.useMemo(function(){if(r!=="tags")return de;var fe=ge(de),ae=function(xe){return re.has(xe)};return ge(ye).sort(function(Se,xe){return Se.value2&&arguments[2]!==void 0?arguments[2]:{},xe=Se.source,Ze=xe===void 0?"keyboard":xe;$e(ae),a&&r==="combobox"&&fe!==null&&Ze==="keyboard"&&we(String(fe));},[a,r]),Re=function(ae,Se,xe){var Ze=function(){var Zt,Te=Ie(ae);return [N?{label:Te==null?void 0:Te[U.label],value:ae,key:(Zt=Te==null?void 0:Te.key)!==null&&Zt!==void 0?Zt:ae}:ae,kf(Te)]};if(Se&&v){var pt=Ze(),xt=K(pt,2),Xt=xt[0],Vt=xt[1];v(Xt,Vt);}else if(!Se&&p&&xe!=="clear"){var Ae=Ze(),Ge=K(Ae,2),Me=Ge[0],$t=Ge[1];p(Me,$t);}},Je=Jm(function(fe,ae){var Se,xe=j?ae.selected:!0;xe?Se=j?[].concat(ge(ye),[fe]):[fe]:Se=ye.filter(function(Ze){return Ze.value!==fe}),ze(Se),Re(fe,xe),r==="combobox"?we(""):(!Lf||h)&&(Y(""),we(""));}),Et=function(ae,Se){ze(ae);var xe=Se.type,Ze=Se.values;(xe==="remove"||xe==="clear")&&Ze.forEach(function(pt){Re(pt.value,!1,xe);});},Ft=function(ae,Se){if(Y(ae),we(null),Se.source==="submit"){var xe=(ae||"").trim();if(xe){var Ze=Array.from(new Set([].concat(ge(Le),[xe])));ze(Ze),Re(xe,!0),Y("");}return}Se.source!=="blur"&&(r==="combobox"&&ze(ae),u==null||u(ae));},kt=function(ae){var Se=ae;r!=="tags"&&(Se=ae.map(function(Ze){var pt=se.get(Ze);return pt==null?void 0:pt.value}).filter(function(Ze){return Ze!==void 0}));var xe=Array.from(new Set([].concat(ge(Le),ge(Se))));ze(xe),xe.forEach(function(Ze){Re(Ze,!0);});},Ne=f__namespace.useMemo(function(){var fe=R!==!1&&g!==!1;return B(B({},te),{},{flattenOptions:ke,onActiveValue:je,defaultActiveFirstOption:Ee,onSelect:Je,menuItemSelectedIcon:P,rawValues:Le,fieldNames:U,virtual:fe,direction:E,listHeight:O,listItemHeight:_,childrenAsData:F})},[te,ke,je,Ee,Je,P,Le,U,R,g,O,_,F]);return f__namespace.createElement(tC.Provider,{value:Ne},f__namespace.createElement(MA,he({},L,{id:z,prefixCls:i,ref:t,omitDomProps:sD,mode:r,displayValues:De,onDisplayValuesChange:Et,direction:E,searchValue:Z,onSearch:Ft,autoClearSearchValue:h,onSearchSplit:kt,dropdownMatchSelectWidth:g,OptionList:nC,emptyOptions:!ke.length,activeValue:be,activeDescendantId:"".concat(z,"_list_").concat(ft)})))}),lv=cD;lv.Option=sv;lv.OptGroup=av;function po(e,t,n){return X({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const du=(e,t)=>t||e,uD=()=>{const[,e]=yi(),n=new nn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},f__namespace.createElement("g",{transform:"translate(24 31.67)"},f__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f__namespace.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"}),f__namespace.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)"}),f__namespace.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"}),f__namespace.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"})),f__namespace.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"}),f__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},dD=uD,fD=()=>{const[,e]=yi(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=f.useMemo(()=>({borderColor:new nn(t).onBackground(o).toHexShortString(),shadowColor:new nn(n).onBackground(o).toHexShortString(),contentColor:new nn(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return f__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),f__namespace.createElement("g",{fillRule:"nonzero",stroke:i},f__namespace.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"}),f__namespace.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}))))},hD=fD,vD=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.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}}}}},pD=mn("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=At(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [vD(r)]});var mD=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=rC,description:i,children:a,imageStyle:s}=e,l=mD(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:u}=f__namespace.useContext(mt),d=c("empty",r),[h,v]=pD(d),[p]=Uh("Empty"),m=typeof i<"u"?i:p==null?void 0:p.description,g=typeof m=="string"?m:"empty";let b=null;return typeof o=="string"?b=f__namespace.createElement("img",{alt:g,src:o}):b=o,h(f__namespace.createElement("div",Object.assign({className:X(v,d,{[`${d}-normal`]:o===oC,[`${d}-rtl`]:u==="rtl"},t,n)},l),f__namespace.createElement("div",{className:`${d}-image`,style:s},b),m&&f__namespace.createElement("div",{className:`${d}-description`},m),a&&f__namespace.createElement("div",{className:`${d}-footer`},a)))};cv.PRESENTED_IMAGE_DEFAULT=rC;cv.PRESENTED_IMAGE_SIMPLE=oC;const Ia=cv,gD=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(mt),r=n("empty");switch(t){case"Table":case"List":return f.createElement(Ia,{image:Ia.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(Ia,{image:Ia.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(Ia,null)}},bD=gD,yD=e=>{const{controlPaddingHorizontal:t}=e;return {position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},CD=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Jt(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,[` &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft `]:{animationName:Dy},[` &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft `]:{animationName:Ly},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:ky},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Fy},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},yD(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(Object.assign({flex:"auto"},Xi),{"> *":Object.assign({},Xi)}),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},dc(e,"slide-up"),dc(e,"slide-down"),zm(e,"move-up"),zm(e,"move-down")]},SD=CD,Ri=2,iC=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function hd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=iC(e),s=t?`${n}-${t}`:"";return {[`${n}-multiple${s}`]:{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",padding:`${a-Ri}px ${Ri*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ri}px 0`,lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Ri,marginBottom:Ri,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ri*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},js()),{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}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[` &-input, &-mirror `]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}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 wD=e=>{const{componentCls:t}=e,n=At(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=At(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=iC(e);return [hd(e),hd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},hd(r,"lg")]},xD=wD;function vd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},Jt(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}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 $D(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [vd(e),vd(At(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+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.fontSize*1.5}}}},vd(At(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const ED=e=>{const{componentCls:t}=e;return {position:"relative",backgroundColor:e.colorBgContainer,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"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},pd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,s=n?{[`${r}-selector`]:{borderColor:o}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},OD=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},PD=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return {[t]:Object.assign(Object.assign({},Jt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},ED(e)),OD(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},Xi),{"> *":Object.assign({lineHeight:"inherit"},Xi)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Xi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},js()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,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.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},_D=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%"}}},PD(e),$D(e),xD(e),SD(e),{[`${t}-rtl`]:{direction:"rtl"}},pd(t,At(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),pd(`${t}-status-error`,At(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),pd(`${t}-status-warning`,At(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),cu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},RD=mn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=At(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [_D(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),MD=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible"};return {bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function TD(e,t){return e||MD(t)}function ID(e){return e??!0}var ND={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"};const AD=ND;var DD=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:AD}))};const kD=f__namespace.forwardRef(DD);var LD={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"};const FD=LD;var zD=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:FD}))};const aC=f__namespace.forwardRef(zD);var jD={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"};const HD=jD;var BD=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:HD}))};const sC=f__namespace.forwardRef(BD);function WD(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const d=n??f__namespace.createElement(Zh,null),h=g=>f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&g,s&&u);let v=null;if(t!==void 0)v=h(t);else if(i)v=h(f__namespace.createElement($y,{spin:!0}));else {const g=`${l}-suffix`;v=b=>{let{open:y,showSearch:w}=b;return h(y&&w?f__namespace.createElement(sC,{className:g}):f__namespace.createElement(aC,{className:g}))};}let p=null;r!==void 0?p=r:a?p=f__namespace.createElement(kD,null):p=null;let m=null;return o!==void 0?m=o:m=f__namespace.createElement(Qh,null),{clearIcon:d,suffixIcon:v,itemIcon:p,removeIcon:m}}var VD=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:h=24,size:v,disabled:p,notFoundContent:m,status:g,showArrow:b,builtinPlacements:y,dropdownMatchSelectWidth:w,popupMatchSelectWidth:$,direction:S}=e,C=VD(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);const{getPopupContainer:x,getPrefixCls:P,renderEmpty:R,direction:E,virtual:I,popupMatchSelectWidth:O,popupOverflow:M,select:_}=f__namespace.useContext(mt),T=P("select",r),A=P(),N=S??E,{compactSize:D,compactItemClassnames:L}=Bs(T,N),[z,j]=RD(T),F=f__namespace.useMemo(()=>{const{mode:Le}=C;if(Le!=="combobox")return Le===lC?"combobox":Le},[C.mode]),G=F==="multiple"||F==="tags",U=ID(b),q=(n=$??w)!==null&&n!==void 0?n:O,{status:ne,hasFeedback:Z,isFormItemInput:Y,feedbackIcon:te}=f__namespace.useContext(Kr),re=du(ne,g);let se;m!==void 0?se=m:F==="combobox"?se=null:se=(R==null?void 0:R("Select"))||f__namespace.createElement(bD,{componentName:"Select"});const{suffixIcon:de,itemIcon:ee,removeIcon:ie,clearIcon:ce}=WD(Object.assign(Object.assign({},C),{multiple:G,hasFeedback:Z,feedbackIcon:te,showArrow:U,prefixCls:T})),le=xr(C,["suffixIcon","itemIcon"]),ve=X(l||c,{[`${T}-dropdown-${N}`]:N==="rtl"},a,j),oe=Or(Le=>{var _e;return (_e=D??v)!==null&&_e!==void 0?_e:Le}),pe=f__namespace.useContext(Bo),ue=p??pe,ye=X({[`${T}-lg`]:oe==="large",[`${T}-sm`]:oe==="small",[`${T}-rtl`]:N==="rtl",[`${T}-borderless`]:!o,[`${T}-in-form-item`]:Y},po(T,re,Z),L,i,a,j),Ie=f__namespace.useMemo(()=>d!==void 0?d:N==="rtl"?"bottomRight":"bottomLeft",[d,N]),De=TD(y,M);return z(f__namespace.createElement(lv,Object.assign({ref:t,virtual:I,showSearch:_==null?void 0:_.showSearch},le,{dropdownMatchSelectWidth:q,builtinPlacements:De,transitionName:uu(A,YI(d),C.transitionName),listHeight:u,listItemHeight:h,mode:F,prefixCls:T,placement:Ie,direction:N,inputIcon:de,menuItemSelectedIcon:ee,removeIcon:ie,clearIcon:ce,notFoundContent:se,className:ye,getPopupContainer:s||x,dropdownClassName:ve,showArrow:Z||U,disabled:ue})))},Sa=f__namespace.forwardRef(UD),GD=jy(Sa);Sa.SECRET_COMBOBOX_MODE_DO_NOT_USE=lC;Sa.Option=sv;Sa.OptGroup=av;Sa._InternalPanelDoNotUseOrYouWillBeFired=GD;const KD=Sa,va=e=>e?typeof e=="function"?e():e:null;var Mi={shiftX:64,adjustY:1},Ti={adjustX:1,shiftY:!0},or=[0,0],XD={left:{points:["cr","cl"],overflow:Ti,offset:[-4,0],targetOffset:or},right:{points:["cl","cr"],overflow:Ti,offset:[4,0],targetOffset:or},top:{points:["bc","tc"],overflow:Mi,offset:[0,-4],targetOffset:or},bottom:{points:["tc","bc"],overflow:Mi,offset:[0,4],targetOffset:or},topLeft:{points:["bl","tl"],overflow:Mi,offset:[0,-4],targetOffset:or},leftTop:{points:["tr","tl"],overflow:Ti,offset:[-4,0],targetOffset:or},topRight:{points:["br","tr"],overflow:Mi,offset:[0,-4],targetOffset:or},rightTop:{points:["tl","tr"],overflow:Ti,offset:[4,0],targetOffset:or},bottomRight:{points:["tr","br"],overflow:Mi,offset:[0,4],targetOffset:or},rightBottom:{points:["bl","br"],overflow:Ti,offset:[4,0],targetOffset:or},bottomLeft:{points:["tl","bl"],overflow:Mi,offset:[0,4],targetOffset:or},leftBottom:{points:["br","bl"],overflow:Ti,offset:[-4,0],targetOffset:or}};function uv(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return f__namespace.createElement("div",{className:X("".concat(n,"-content"),i),style:a},f__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var qD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],YD=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,v=t.children,p=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,b=t.animation,y=t.motion,w=t.placement,$=w===void 0?"right":w,S=t.align,C=S===void 0?{}:S,x=t.destroyTooltipOnHide,P=x===void 0?!1:x,R=t.defaultVisible,E=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var O=t.overlay,M=t.id,_=t.showArrow,T=_===void 0?!0:_,A=Xe(t,qD),N=f.useRef(null);f.useImperativeHandle(n,function(){return N.current});var D=B({},A);"visible"in t&&(D.popupVisible=t.visible);var L=function(){return f__namespace.createElement(uv,{key:"content",prefixCls:h,id:M,overlayInnerStyle:I},O)};return f__namespace.createElement(iv,he({popupClassName:r,prefixCls:h,popup:L,action:i,builtinPlacements:XD,popupPlacement:$,ref:N,popupAlign:C,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:b,popupMotion:y,defaultPopupVisible:R,autoDestroy:P,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:T},D),v)};const ZD=f.forwardRef(YD),cC=8;function uC(e){const t=cC,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Sl(e,t){return e?t:{}}function dC(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:h,dropdownArrowOffset:v}=uC({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"},RM(r,o,i,s,a)),{"&:before":{background:s}})]},Sl(!!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:v}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),Sl(!!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:v}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}}})),Sl(!!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:h},[`&-placement-leftBottom ${n}-arrow`]:{bottom:h}})),Sl(!!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:h},[`&-placement-rightBottom ${n}-arrow`]:{bottom:h}}))}}function QD(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.dropdownArrowOffset*2+n;break;case"left":case"right":i.shiftY=t.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const ng={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"]}},JD={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"]}},ek=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function tk(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(ng).forEach(c=>{const u=r&&JD[c]||ng[c],d=Object.assign(Object.assign({},u),{offset:[0,0]});switch(l[c]=d,ek.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+o;break}const h=uC({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-h.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=h.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-h.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=h.dropdownArrowOffset+s;break}d.overflow=QD(c,h,t,n),a&&(d.htmlRegion="visibleFirst");}),l}const $o=(e,t)=>new nn(e).setAlpha(t).toRgbString(),Ii=(e,t)=>new nn(e).lighten(t).toHexString(),nk=e=>{const t=bo(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]}},rk=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:$o(r,.85),colorTextSecondary:$o(r,.65),colorTextTertiary:$o(r,.45),colorTextQuaternary:$o(r,.25),colorFill:$o(r,.18),colorFillSecondary:$o(r,.12),colorFillTertiary:$o(r,.08),colorFillQuaternary:$o(r,.04),colorBgElevated:Ii(n,12),colorBgContainer:Ii(n,8),colorBgLayout:Ii(n,0),colorBgSpotlight:Ii(n,26),colorBorder:Ii(n,26),colorBorderSecondary:Ii(n,19)}},ok=(e,t)=>{const n=Object.keys(Gh).map(o=>{const i=bo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??tu(e);return Object.assign(Object.assign(Object.assign({},r),n),ey(e,{generateColorPalettes:nk,generateNeutralColorPalettes:rk}))},ik=ok;function ak(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)}}const sk=(e,t)=>{const n=t??tu(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),ak(t??e)),ty(r)),{controlHeight:o}),J0(Object.assign(Object.assign({},n),{controlHeight:o})))},lk=sk;function ck(){const[e,t,n]=yi();return {theme:e,token:t,hashId:n}}const vc={defaultConfig:ac,defaultSeed:ac.token,useToken:ck,defaultAlgorithm:tu,darkAlgorithm:ik,compactAlgorithm:lk},uk=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Jt(e)),{position:"absolute",zIndex:a,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:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,cC)}},[`${t}-content`]:{position:"relative"}}),oy(e,(h,v)=>{let{darkColor:p}=v;return {[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},dC(At(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},fC=(e,t)=>mn("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=At(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [uk(l),zy(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),dk=ys.map(e=>`${e}-inverse`),fk=["success","processing","error","default","warning"];function hC(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(dk),ge(ys)).includes(e):ys.includes(e)}function hk(e){return fk.includes(e)}function vC(e,t){const n=hC(t),r=X({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function vk(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(mt),l=s("tooltip",t),[c,u]=fC(l,!0),d=vC(l,i),h=Object.assign(Object.assign({},a),d.overlayStyle),v=d.arrowStyle;return c(f__namespace.createElement("div",{className:X(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className),style:v},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(uv,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))}var pk=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o]);}),{picked:n,omitted:r}};function bk(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:o}=gk(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),s=$r(e,{style:a,className:null});return f__namespace.createElement("span",{style:i,className:X(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const pC=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:v,arrow:p=!0,title:m,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=e,$=!!p,{token:S}=mk(),{getPopupContainer:C,getPrefixCls:x,direction:P}=f__namespace.useContext(mt),R=f__namespace.useRef(null),E=()=>{var oe;(oe=R.current)===null||oe===void 0||oe.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:E,forcePopupAlign:()=>{E();}}));const[I,O]=en(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=!m&&!g&&m!==0,_=oe=>{var pe,ue;O(M?!1:oe),M||((pe=e.onOpenChange)===null||pe===void 0||pe.call(e,oe),(ue=e.onVisibleChange)===null||ue===void 0||ue.call(e,oe));},T=f__namespace.useMemo(()=>{var oe,pe;let ue=y;return typeof p=="object"&&(ue=(pe=(oe=p.pointAtCenter)!==null&&oe!==void 0?oe:p.arrowPointAtCenter)!==null&&pe!==void 0?pe:y),b||tk({arrowPointAtCenter:ue,autoAdjustOverflow:w,arrowWidth:$?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[y,p,b,S]),A=f__namespace.useMemo(()=>m===0?m:g||m||"",[g,m]),N=f__namespace.createElement(Cs,null,typeof A=="function"?A():A),{getPopupContainer:D,placement:L="top",mouseEnterDelay:z=.1,mouseLeaveDelay:j=.1,overlayStyle:F,rootClassName:G}=e,U=pk(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=x("tooltip",o),ne=x(),Z=e["data-popover-inject"];let Y=I;!("open"in e)&&!("visible"in e)&&M&&(Y=!1);const te=bk(Jh(u)&&!xy(u)?u:f__namespace.createElement("span",null,u),q),re=te.props,se=!re.className||typeof re.className=="string"?X(re.className,{[i||`${q}-open`]:!0}):re.className,[de,ee]=fC(q,!Z),ie=vC(q,l),ce=Object.assign(Object.assign({},c),ie.overlayStyle),le=ie.arrowStyle,ve=X(s,{[`${q}-rtl`]:P==="rtl"},ie.className,G,ee);return de(f__namespace.createElement(ZD,Object.assign({},U,{showArrow:$,placement:L,mouseEnterDelay:z,mouseLeaveDelay:j,prefixCls:q,overlayClassName:ve,overlayStyle:Object.assign(Object.assign({},le),F),getTooltipContainer:D||a||C,ref:R,builtinPlacements:T,overlay:N,visible:Y,onVisibleChange:_,afterVisibleChange:d??h,overlayInnerStyle:ce,arrowContent:f__namespace.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:uu(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),Y?$r(te,{className:se}):te))});pC._InternalPanelDoNotUseOrYouWillBeFired=vk;const fu=pC,yk=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:i,popoverPadding:a,boxShadowSecondary:s,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:h}=e;return [{[t]:Object.assign(Object.assign({},Jt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":h,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:s,padding:a},[`${t}-title`]:{minWidth:o,marginBottom:d,color:l,fontWeight:i},[`${t}-inner-content`]:{color:r}})},dC(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Ck=e=>{const{componentCls:t}=e;return {[t]:ys.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Sk=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l),d=u/2,h=u/2-n,v=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${v}px ${h}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${v}px`}}}},mC=mn("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=At(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return [yk(o),Ck(o),r&&Sk(o),zy(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+30,width:177}});var wk=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},va(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},va(n)))};function $k(e){const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e;return f__namespace.createElement("div",{className:X(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(uv,Object.assign({},e,{className:t,prefixCls:n}),l||xk(n,a,s)))}function gC(e){const{prefixCls:t}=e,n=wk(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(mt),o=r("popover",t),[i,a]=mC(o);return i(f__namespace.createElement($k,Object.assign({},n,{prefixCls:o,hashId:a})))}var Ek=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${r}-title`},va(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},va(n)))},bC=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=Ek(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:h}=f__namespace.useContext(mt),v=h("popover",n),[p,m]=mC(v),g=h(),b=X(i,m);return p(f__namespace.createElement(fu,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:v,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(Ok,{prefixCls:v,title:r,content:o}):null,transitionName:uu(g,"zoom-big",d.transitionName),"data-popover-inject":!0})))});bC._InternalPanelDoNotUseOrYouWillBeFired=gC;const yC=bC;var Pk={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"};const _k=Pk;var Rk=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:_k}))};const Mk=f__namespace.forwardRef(Rk);var Tk=J.ESC,Ik=J.TAB;function Nk(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=f__namespace.useRef(!1),s=function(){if(t){var d,h;(d=n.current)===null||d===void 0||(h=d.focus)===null||h===void 0||h.call(d),r==null||r(!1);}},l=function(){var d;return (d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case Tk:s();break;case Ik:{var h=!1;a.current||(h=l()),h?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&wt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var Ak=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Pn(t,i==null?void 0:i.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(i,{ref:Ho(i)?a:void 0}))}),Ni={adjustX:1,adjustY:1},Ai=[0,0],Dk={topLeft:{points:["bl","tl"],overflow:Ni,offset:[0,-4],targetOffset:Ai},top:{points:["bc","tc"],overflow:Ni,offset:[0,-4],targetOffset:Ai},topRight:{points:["br","tr"],overflow:Ni,offset:[0,-4],targetOffset:Ai},bottomLeft:{points:["tl","bl"],overflow:Ni,offset:[0,4],targetOffset:Ai},bottom:{points:["tc","bc"],overflow:Ni,offset:[0,4],targetOffset:Ai},bottomRight:{points:["tr","br"],overflow:Ni,offset:[0,4],targetOffset:Ai}},kk=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Lk(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,h=e.placements,v=h===void 0?Dk:h,p=e.getPopupContainer,m=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,w=e.visible,$=e.trigger,S=$===void 0?["hover"]:$,C=e.autoFocus,x=e.overlay,P=e.children,R=e.onVisibleChange,E=Xe(e,kk),I=f.useState(),O=K(I,2),M=O[0],_=O[1],T="visible"in e?w:M,A=f.useRef(null),N=f.useRef(null),D=f.useRef(null);f.useImperativeHandle(t,function(){return A.current});var L=function(Y){_(Y),R==null||R(Y);};Nk({visible:T,triggerRef:D,onVisibleChange:L,autoFocus:C,overlayRef:N});var z=function(Y){var te=e.onOverlayClick;_(!1),te&&te(Y);},j=function(){return f.createElement(Ak,{ref:N,overlay:x,prefixCls:a,arrow:o})},F=function(){return typeof x=="function"?j:j()},G=function(){var Y=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?Y:!te},U=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},q=f.cloneElement(P,{className:X((n=P.props)===null||n===void 0?void 0:n.className,T&&U()),ref:Ho(P)?Pn(D,P.ref):void 0}),ne=g;return !ne&&S.indexOf("contextMenu")!==-1&&(ne=["click"]),f.createElement(iv,he({builtinPlacements:v},E,{prefixCls:a,ref:A,popupClassName:X(b,V({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:S,showAction:m,hideAction:ne,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:T,stretch:G()?"minWidth":"",popup:F(),onPopupVisibleChange:L,onPopupClick:z,getPopupContainer:p}),q)}const Fk=f.forwardRef(Lk);var CC=f__namespace.createContext(null);function dv(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function SC(e){var t=f__namespace.useContext(CC);return dv(t,e)}var zk=["children","locked"],Er=f__namespace.createContext(null);function jk(e,t){var n=B({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function ws(e){var t=e.children,n=e.locked,r=Xe(e,zk),o=f__namespace.useContext(Er),i=Ds(function(){return jk(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!Ls(a[1],s[1],!0))});return f__namespace.createElement(Er.Provider,{value:i},t)}var Hk=[],wC=f__namespace.createContext(null);function hu(){return f__namespace.useContext(wC)}var xC=f__namespace.createContext(Hk);function Us(e){var t=f__namespace.useContext(xC);return f__namespace.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var $C=f__namespace.createContext(null),fv=f__namespace.createContext({});function rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(su(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return !1}function Bk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return rg(r,t)});return rg(e,t)&&n.unshift(e),n}var Ff=J.LEFT,zf=J.RIGHT,jf=J.UP,Dl=J.DOWN,kl=J.ENTER,EC=J.ESC,Na=J.HOME,Aa=J.END,og=[jf,Dl,Ff,zf];function Wk(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===kl)return {inlineTrigger:!0};var h=(o={},V(o,jf,l),V(o,Dl,c),o),v=(i={},V(i,Ff,n?c:l),V(i,zf,n?l:c),V(i,Dl,u),V(i,kl,u),i),p=(a={},V(a,jf,l),V(a,Dl,c),V(a,kl,u),V(a,EC,d),V(a,Ff,n?u:d),V(a,zf,n?d:u),a),m={inline:h,horizontal:v,vertical:p,inlineSub:h,horizontalSub:p,verticalSub:p},g=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(g){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}}function Vk(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function Uk(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function OC(e,t){var n=Bk(e,!0);return n.filter(function(r){return t.has(r)})}function ig(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=OC(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function Gk(e,t,n,r,o,i,a,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var h=function(){wt.cancel(u.current);};return f__namespace.useEffect(function(){return function(){h();}},[]),function(v){var p=v.which;if([].concat(og,[kl,EC,Na,Aa]).includes(p)){var m,g,b,y=function(){m=new Set,g=new Map,b=new Map;var T=i();return T.forEach(function(A){var N=document.querySelector("[data-menu-id='".concat(dv(r,A),"']"));N&&(m.add(N),b.set(N,A),g.set(A,N));}),m};y();var w=g.get(t),$=Uk(w,m),S=b.get($),C=Wk(e,a(S,!0).length===1,n,p);if(!C&&p!==Na&&p!==Aa)return;(og.includes(p)||[Na,Aa].includes(p))&&v.preventDefault();var x=function(T){if(T){var A=T,N=T.querySelector("a");N!=null&&N.getAttribute("href")&&(A=N);var D=b.get(T);s(D),h(),u.current=wt(function(){d.current===D&&A.focus();});}};if([Na,Aa].includes(p)||C.sibling||!$){var P;!$||e==="inline"?P=o.current:P=Vk($);var R,E=OC(P,m);p===Na?R=E[0]:p===Aa?R=E[E.length-1]:R=ig(P,m,$,C.offset),x(R);}else if(C.inlineTrigger)l(S);else if(C.offset>0)l(S,!0),h(),u.current=wt(function(){y();var _=$.getAttribute("aria-controls"),T=document.getElementById(_),A=ig(T,m);x(A);},5);else if(C.offset<0){var I=a(S,!0),O=I[I.length-2],M=g.get(O);l(O,!1),x(M);}}c==null||c(v);}}function Kk(e){Promise.resolve().then(e);}var hv="__RC_UTIL_PATH_SPLIT__",ag=function(t){return t.join(hv)},Xk=function(t){return t.split(hv)},Hf="rc-menu-more";function qk(){var e=f__namespace.useState({}),t=K(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),i=f__namespace.useState([]),a=K(i,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},h=f.useCallback(function(w,$){var S=ag($);o.current.set(S,w),r.current.set(w,S),c.current+=1;var C=c.current;Kk(function(){C===c.current&&d();});},[]),v=f.useCallback(function(w,$){var S=ag($);o.current.delete(S),r.current.delete(w);},[]),p=f.useCallback(function(w){l(w);},[]),m=f.useCallback(function(w,$){var S=r.current.get(w)||"",C=Xk(S);return $&&s.includes(C[0])&&C.unshift(Hf),C},[s]),g=f.useCallback(function(w,$){return w.some(function(S){var C=m(S,!0);return C.includes($)})},[m]),b=function(){var $=ge(r.current.keys());return s.length&&$.push(Hf),$},y=f.useCallback(function(w){var $="".concat(r.current.get(w)).concat(hv),S=new Set;return ge(o.current.keys()).forEach(function(C){C.startsWith($)&&S.add(o.current.get(C));}),S},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:h,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:m,getKeys:b,getSubPathKeys:y}}function zi(e){var t=f__namespace.useRef(e);t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function kL(e,t,n,r){var o=ot.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),ot.mix(o,i)}function yv(e){var t,n,r;if(!ot.isWindow(e)&&e.nodeType!==9)t=ot.offset(e),n=ot.outerWidth(e),r=ot.outerHeight(e);else {var o=ot.getWindow(e);t={left:ot.getWindowScrollLeft(o),top:ot.getWindowScrollTop(o)},n=ot.viewportWidth(o),r=ot.viewportHeight(o);}return t.width=n,t.height=r,t}function gg(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return n==="c"?s+=i/2:n==="b"&&(s+=i),r==="c"?a+=o/2:r==="r"&&(a+=o),{left:a,top:s}}function xl(e,t,n,r,o){var i=gg(t,n[1]),a=gg(e,n[0]),s=[a.left-i.left,a.top-i.top];return {left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function bg(e,t,n){return e.leftn.right}function yg(e,t,n){return e.topn.bottom}function LL(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Cv(e,t,n){var r=n.target||t,o=yv(r),i=!zL(r,n.overflow&&n.overflow.alwaysByViewport);return FC(e,o,n,i)}Cv.__getOffsetParent=Gf;Cv.__getVisibleRectForElement=bv;function jL(e,t,n){var r,o,i=ot.getDocument(e),a=i.defaultView||i.parentWindow,s=ot.getWindowScrollLeft(a),l=ot.getWindowScrollTop(a),c=ot.viewportWidth(a),u=ot.viewportHeight(a);"pageX"in t?r=t.pageX:r=s+t.clientX,"pageY"in t?o=t.pageY:o=l+t.clientY;var d={left:r,top:o,width:0,height:0},h=r>=0&&r<=s+c&&o>=0&&o<=l+u,v=[n.points[0],"cc"];return FC(e,d,cg(cg({},n),{},{points:v}),h)}const HL=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){window.clearTimeout(r.current);}function i(a){if(o(),!n.current||a===!0){if(e(a)===!1)return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1;},t);}else r.current=window.setTimeout(function(){n.current=!1,i();},t);}return [i,function(){n.current=!1,o();}]};function BL(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function WL(e,t){e!==document.activeElement&&Ya(t,e)&&typeof e.focus=="function"&&e.focus();}function wg(e,t){var n=null,r=null;function o(a){var s=K(a,1),l=s[0].target;if(document.documentElement.contains(l)){var c=l.getBoundingClientRect(),u=c.width,d=c.height,h=Math.floor(u),v=Math.floor(d);(n!==h||r!==v)&&Promise.resolve().then(function(){t({width:h,height:v});}),n=h,r=v;}}var i=new E0(o);return e&&i.observe(e),function(){i.disconnect();}}function xg(e){return typeof e!="function"?null:e()}function $g(e){return tt(e)!=="object"||!e?null:e}var VL=function(t,n){var r=t.children,o=t.disabled,i=t.target,a=t.align,s=t.onAlign,l=t.monitorWindowResize,c=t.monitorBufferTime,u=c===void 0?0:c,d=f.useRef({}),h=f.useRef(),v=f.Children.only(r),p=f.useRef({});p.current.disabled=o,p.current.target=i,p.current.align=a,p.current.onAlign=s;var m=HL(function(){var I=p.current,O=I.disabled,M=I.target,_=I.align,T=I.onAlign,A=h.current;if(!O&&M&&A){var N,D=xg(M),L=$g(M);d.current.element=D,d.current.point=L,d.current.align=_;var z=document,j=z.activeElement;return D&&su(D)?N=Cv(A,D,_):L&&(N=jL(A,L,_)),WL(j,A),T&&N&&T(A,N),!0}return !1},u),g=K(m,2),b=g[0],y=g[1],w=f.useState(),$=K(w,2),S=$[0],C=$[1],x=f.useState(),P=K(x,2),R=P[0],E=P[1];return Ht(function(){C(xg(i)),E($g(i));}),f.useEffect(function(){(d.current.element!==S||!BL(d.current.point,R)||!Ls(d.current.align,a))&&b();}),f.useEffect(function(){var I=wg(h.current,b);return I},[h.current]),f.useEffect(function(){var I=wg(S,b);return I},[S]),f.useEffect(function(){o?y():b();},[o]),f.useEffect(function(){if(l){var I=Ba(window,"resize",b);return I.remove}},[l]),f.useEffect(function(){return function(){y();}},[]),f.useImperativeHandle(n,function(){return {forceAlign:function(){return b(!0)}}}),f.isValidElement(v)&&(v=f.cloneElement(v,{ref:Pn(v.ref,h)})),v},zC=f.forwardRef(VL);zC.displayName="Align";var Eg=["measure","alignPre","align",null,"motion"];const UL=function(e,t){var n=Ao(null),r=K(n,2),o=r[0],i=r[1],a=f.useRef();function s(u){i(u,!0);}function l(){wt.cancel(a.current);}function c(u){l(),a.current=wt(function(){s(function(d){switch(o){case"align":return "motion";case"motion":return "stable"}return d}),u==null||u();});}return f.useEffect(function(){s("measure");},[e]),f.useEffect(function(){switch(o){case"measure":t();break}o&&(a.current=wt(bi(Tn().mark(function u(){var d,h;return Tn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:d=Eg.indexOf(o),h=Eg[d+1],h&&d!==-1&&s(h);case 3:case"end":return p.stop()}},u)}))));},[o]),f.useEffect(function(){return function(){l();}},[]),[o,c]},GL=function(e){var t=f__namespace.useState({width:0,height:0}),n=K(t,2),r=n[0],o=n[1];function i(s){var l=s.offsetWidth,c=s.offsetHeight,u=s.getBoundingClientRect(),d=u.width,h=u.height;Math.abs(l-d)<1&&Math.abs(c-h)<1&&(l=d,c=h),o({width:l,height:c});}var a=f__namespace.useMemo(function(){var s={};if(e){var l=r.width,c=r.height;e.indexOf("height")!==-1&&c?s.height=c:e.indexOf("minHeight")!==-1&&c&&(s.minHeight=c),e.indexOf("width")!==-1&&l?s.width=l:e.indexOf("minWidth")!==-1&&l&&(s.minWidth=l);}return s},[e,r]);return [a,i]};var jC=f__namespace.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,h=e.point,v=e.getRootDomNode,p=e.getClassNameFromAlign,m=e.onAlign,g=e.onMouseEnter,b=e.onMouseLeave,y=e.onMouseDown,w=e.onTouchStart,$=e.onClick,S=f.useRef(),C=f.useRef(),x=f.useState(),P=K(x,2),R=P[0],E=P[1],I=GL(l),O=K(I,2),M=O[0],_=O[1];function T(){l&&_(v());}var A=UL(n,T),N=K(A,2),D=N[0],L=N[1],z=f.useState(0),j=K(z,2),F=j[0],G=j[1],U=f.useRef();Ht(function(){D==="alignPre"&&G(0);},[D]);function q(){return h||v}function ne(){var ee;(ee=S.current)===null||ee===void 0||ee.forceAlign();}function Z(ee,ie){var ce=p(ie);R!==ce&&E(ce),G(function(le){return le+1}),D==="align"&&(m==null||m(ee,ie));}Ht(function(){D==="align"&&(F<3?ne():L(function(){var ee;(ee=U.current)===null||ee===void 0||ee.call(U);}));},[F]);var Y=B({},MC(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ee){var ie=Y[ee];Y[ee]=function(ce,le){return L(),ie==null?void 0:ie(ce,le)};});function te(){return new Promise(function(ee){U.current=ee;})}f__namespace.useEffect(function(){!Y.motionName&&D==="motion"&&L();},[Y.motionName,D]),f__namespace.useImperativeHandle(t,function(){return {forceAlign:ne,getElement:function(){return C.current}}});var re=B(B({},M),{},{zIndex:s,opacity:D==="motion"||D==="stable"||!n?void 0:0,pointerEvents:!n&&D!=="stable"?"none":void 0},i),se=!0;d!=null&&d.points&&(D==="align"||D==="stable")&&(se=!1);var de=a;return f__namespace.Children.count(a)>1&&(de=f__namespace.createElement("div",{className:"".concat(r,"-content")},a)),f__namespace.createElement(Pr,he({visible:n,ref:C,leavedClassName:"".concat(r,"-hidden")},Y,{onAppearPrepare:te,onEnterPrepare:te,removeOnLeave:c,forceRender:u}),function(ee,ie){var ce=ee.className,le=ee.style,ve=X(r,o,R,ce);return f__namespace.createElement(zC,{target:q(),key:"popup",ref:S,monitorWindowResize:!0,disabled:se,align:d,onAlign:Z},f__namespace.createElement("div",{ref:ie,className:ve,onMouseEnter:g,onMouseLeave:b,onMouseDownCapture:y,onTouchStartCapture:w,onClick:$,style:B(B({},le),re)},de))})});jC.displayName="PopupInner";var HC=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile;a=a===void 0?{}:a;var s=a.popupClassName,l=a.popupStyle,c=a.popupMotion,u=c===void 0?{}:c,d=a.popupRender,h=e.onClick,v=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {forceAlign:function(){},getElement:function(){return v.current}}});var p=B({zIndex:o},l),m=i;return f__namespace.Children.count(i)>1&&(m=f__namespace.createElement("div",{className:"".concat(n,"-content")},i)),d&&(m=d(m)),f__namespace.createElement(Pr,he({visible:r,ref:v,removeOnLeave:!0},u),function(g,b){var y=g.className,w=g.style,$=X(n,s,y);return f__namespace.createElement("div",{ref:b,className:$,onClick:h,style:B(B({},w),p)},m)})});HC.displayName="MobilePopupInner";var KL=["visible","mobile"],BC=f__namespace.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=Xe(e,KL),i=f.useState(n),a=K(i,2),s=a[0],l=a[1],c=f.useState(!1),u=K(c,2),d=u[0],h=u[1],v=B(B({},o),{},{visible:s});f.useEffect(function(){l(n),n&&r&&h(Ws());},[n,r]);var p=d?f__namespace.createElement(HC,he({},v,{mobile:r,ref:t})):f__namespace.createElement(jC,he({},v,{ref:t}));return f__namespace.createElement("div",null,f__namespace.createElement(hL,v),p)});BC.displayName="Popup";var Og=f__namespace.createContext(null);function Cd(){}function XL(){return ""}function qL(e){return e?e.ownerDocument:window.document}var YL=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ZL(e){var t=function(n){zo(o,n);var r=jo(o);function o(i){var a;vn(this,o),a=r.call(this,i),V(ut(a),"popupRef",f__namespace.createRef()),V(ut(a),"triggerRef",f__namespace.createRef()),V(ut(a),"portalContainer",void 0),V(ut(a),"attachId",void 0),V(ut(a),"clickOutsideHandler",void 0),V(ut(a),"touchOutsideHandler",void 0),V(ut(a),"contextMenuOutsideHandler1",void 0),V(ut(a),"contextMenuOutsideHandler2",void 0),V(ut(a),"mouseDownTimeout",void 0),V(ut(a),"focusTime",void 0),V(ut(a),"preClickTime",void 0),V(ut(a),"preTouchTime",void 0),V(ut(a),"delayTimer",void 0),V(ut(a),"hasPopupMouseDown",void 0),V(ut(a),"onMouseEnter",function(l){var c=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",l),a.delaySetPopupVisible(!0,c,c?null:l);}),V(ut(a),"onMouseMove",function(l){a.fireEvents("onMouseMove",l),a.setPoint(l);}),V(ut(a),"onMouseLeave",function(l){a.fireEvents("onMouseLeave",l),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),V(ut(a),"onPopupMouseEnter",function(){a.clearDelayTimer();}),V(ut(a),"onPopupMouseLeave",function(l){var c;l.relatedTarget&&!l.relatedTarget.setTimeout&&Ya((c=a.popupRef.current)===null||c===void 0?void 0:c.getElement(),l.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),V(ut(a),"onFocus",function(l){a.fireEvents("onFocus",l),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay));}),V(ut(a),"onMouseDown",function(l){a.fireEvents("onMouseDown",l),a.preClickTime=Date.now();}),V(ut(a),"onTouchStart",function(l){a.fireEvents("onTouchStart",l),a.preTouchTime=Date.now();}),V(ut(a),"onBlur",function(l){a.fireEvents("onBlur",l),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay);}),V(ut(a),"onContextMenu",function(l){l.preventDefault(),a.fireEvents("onContextMenu",l),a.setPopupVisible(!0,l);}),V(ut(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close();}),V(ut(a),"onClick",function(l){if(a.fireEvents("onClick",l),a.focusTime){var c;if(a.preClickTime&&a.preTouchTime?c=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?c=a.preClickTime:a.preTouchTime&&(c=a.preTouchTime),Math.abs(c-a.focusTime)<20)return;a.focusTime=0;}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var u=!a.state.popupVisible;(a.isClickToHide()&&!u||u&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,l);}),V(ut(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1;},0),a.context){var l;(l=a.context).onPopupMouseDown.apply(l,arguments);}}),V(ut(a),"onDocumentClick",function(l){if(!(a.props.mask&&!a.props.maskClosable)){var c=l.target,u=a.getRootDomNode(),d=a.getPopupDomNode();(!Ya(u,c)||a.isContextMenuOnly())&&!Ya(d,c)&&!a.hasPopupMouseDown&&a.close();}}),V(ut(a),"getRootDomNode",function(){var l=a.props.getTriggerDOMNode;if(l)return l(a.triggerRef.current);try{var c=gs(a.triggerRef.current);if(c)return c}catch{}return ia.findDOMNode(ut(a))}),V(ut(a),"getPopupClassNameFromAlign",function(l){var c=[],u=a.props,d=u.popupPlacement,h=u.builtinPlacements,v=u.prefixCls,p=u.alignPoint,m=u.getPopupClassNameFromAlign;return d&&h&&c.push(fL(h,v,l,p)),m&&c.push(m(l)),c.join(" ")}),V(ut(a),"getComponent",function(){var l=a.props,c=l.prefixCls,u=l.destroyPopupOnHide,d=l.popupClassName,h=l.onPopupAlign,v=l.popupMotion,p=l.popupAnimation,m=l.popupTransitionName,g=l.popupStyle,b=l.mask,y=l.maskAnimation,w=l.maskTransitionName,$=l.maskMotion,S=l.zIndex,C=l.popup,x=l.stretch,P=l.alignPoint,R=l.mobile,E=l.forceRender,I=l.onPopupClick,O=a.state,M=O.popupVisible,_=O.point,T=a.getPopupAlign(),A={};return a.isMouseEnterToShow()&&(A.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(A.onMouseLeave=a.onPopupMouseLeave),A.onMouseDown=a.onPopupMouseDown,A.onTouchStart=a.onPopupMouseDown,f__namespace.createElement(BC,he({prefixCls:c,destroyPopupOnHide:u,visible:M,point:P&&_,className:d,align:T,onAlign:h,animation:p,getClassNameFromAlign:a.getPopupClassNameFromAlign},A,{stretch:x,getRootDomNode:a.getRootDomNode,style:g,mask:b,zIndex:S,transitionName:m,maskAnimation:y,maskTransitionName:w,maskMotion:$,ref:a.popupRef,motion:v,mobile:R,forceRender:E,onClick:I}),typeof C=="function"?C():C)}),V(ut(a),"attachParent",function(l){wt.cancel(a.attachId);var c=a.props,u=c.getPopupContainer,d=c.getDocument,h=a.getRootDomNode(),v;u?(h||u.length===0)&&(v=u(h)):v=d(a.getRootDomNode()).body,v?v.appendChild(l):a.attachId=wt(function(){a.attachParent(l);});}),V(ut(a),"getContainer",function(){if(!a.portalContainer){var l=a.props.getDocument,c=l(a.getRootDomNode()).createElement("div");c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.width="100%",a.portalContainer=c;}return a.attachParent(a.portalContainer),a.portalContainer}),V(ut(a),"setPoint",function(l){var c=a.props.alignPoint;!c||!l||a.setState({point:{pageX:l.pageX,pageY:l.pageY}});}),V(ut(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible);}),V(ut(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var s;return "popupVisible"in i?s=!!i.popupVisible:s=!!i.defaultPopupVisible,a.state={prevPopupVisible:s,popupVisible:s},YL.forEach(function(l){a["fire".concat(l)]=function(c){a.fireEvents(l,c);};}),a}return pn(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate();}},{key:"componentDidUpdate",value:function(){var a=this.props,s=this.state;if(s.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ba(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ba(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Ba(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Ba(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler();}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wt.cancel(this.attachId);}},{key:"getPopupDomNode",value:function(){var a;return ((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,s=a.popupPlacement,l=a.popupAlign,c=a.builtinPlacements;return s&&c?dL(c,s,l):l}},{key:"setPopupVisible",value:function(a,s){var l=this.props.alignPoint,c=this.state.popupVisible;this.clearDelayTimer(),c!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:c}),this.props.onPopupVisibleChange(a)),l&&s&&a&&this.setPoint(s);}},{key:"delaySetPopupVisible",value:function(a,s,l){var c=this,u=s*1e3;if(this.clearDelayTimer(),u){var d=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){c.setPopupVisible(a,d),c.clearDelayTimer();},u);}else this.setPopupVisible(a,l);}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null);}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null);}},{key:"createTwoChains",value:function(a){var s=this.props.children.props,l=this.props;return s[a]&&l[a]?this["fire".concat(a)]:s[a]||l[a]}},{key:"isClickToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign();}}},{key:"fireEvents",value:function(a,s){var l=this.props.children.props[a];l&&l(s);var c=this.props[a];c&&c(s);}},{key:"close",value:function(){this.setPopupVisible(!1);}},{key:"render",value:function(){var a=this.state.popupVisible,s=this.props,l=s.children,c=s.forceRender,u=s.alignPoint,d=s.className,h=s.autoDestroy,v=f__namespace.Children.only(l),p={key:"trigger"};this.isContextMenuToShow()?p.onContextMenu=this.onContextMenu:p.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(p.onClick=this.onClick,p.onMouseDown=this.onMouseDown,p.onTouchStart=this.onTouchStart):(p.onClick=this.createTwoChains("onClick"),p.onMouseDown=this.createTwoChains("onMouseDown"),p.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(p.onMouseEnter=this.onMouseEnter,u&&(p.onMouseMove=this.onMouseMove)):p.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?p.onMouseLeave=this.onMouseLeave:p.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(p.onFocus=this.onFocus,p.onBlur=this.onBlur):(p.onFocus=this.createTwoChains("onFocus"),p.onBlur=this.createTwoChains("onBlur"));var m=X(v&&v.props&&v.props.className,d);m&&(p.className=m);var g=B({},p);Ho(v)&&(g.ref=Pn(this.triggerRef,v.ref));var b=f__namespace.cloneElement(v,g),y;return (a||this.popupRef.current||c)&&(y=f__namespace.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!a&&h&&(y=null),f__namespace.createElement(Og.Provider,{value:this.triggerContextValue},b,y)}}],[{key:"getDerivedStateFromProps",value:function(a,s){var l=a.popupVisible,c={};return l!==void 0&&s.popupVisible!==l&&(c.popupVisible=l,c.prevPopupVisible=s.popupVisible),c}}]),o}(f__namespace.Component);return V(t,"contextType",Og),V(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:XL,getDocument:qL,onPopupVisibleChange:Cd,afterPopupVisibleChange:Cd,onPopupAlign:Cd,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const QL=ZL(cL);var No={adjustX:1,adjustY:1},JL={topLeft:{points:["bl","tl"],overflow:No,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:No,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:No,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:No,offset:[4,0]}},eF={topLeft:{points:["bl","tl"],overflow:No,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:No,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:No,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:No,offset:[4,0]}};function WC(e,t,n){if(t)return t;if(n)return n[e]||n.other}var tF={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function nF(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,u=f__namespace.useContext(Er),d=u.getPopupContainer,h=u.rtl,v=u.subMenuOpenDelay,p=u.subMenuCloseDelay,m=u.builtinPlacements,g=u.triggerSubMenuAction,b=u.forceSubMenuRender,y=u.rootClassName,w=u.motion,$=u.defaultMotions,S=f__namespace.useState(!1),C=K(S,2),x=C[0],P=C[1],R=B(h?B({},eF):B({},JL),m),E=tF[l],I=WC(l,w,$),O=f__namespace.useRef(I);l!=="inline"&&(O.current=I);var M=B(B({},O.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=f__namespace.useRef();return f__namespace.useEffect(function(){return _.current=wt(function(){P(n);}),function(){wt.cancel(_.current);}},[n]),f__namespace.createElement(QL,{prefixCls:t,popupClassName:X("".concat(t,"-popup"),V({},"".concat(t,"-rtl"),h),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:R,popupPlacement:E,popupVisible:x,popup:o,popupAlign:a&&{offset:a},action:s?[]:[g],mouseEnterDelay:v,mouseLeaveDelay:p,onPopupVisibleChange:c,forceRender:b,popupMotion:M},r)}function rF(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=f__namespace.useContext(Er),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,h=f__namespace.useRef(!1);h.current=d===i;var v=f__namespace.useState(!h.current),p=K(v,2),m=p[0],g=p[1],b=h.current?n:!1;f__namespace.useEffect(function(){h.current&&g(!1);},[d]);var y=B({},WC(i,c,u));r.length>1&&(y.motionAppear=!1);var w=y.onVisibleChanged;return y.onVisibleChanged=function($){return !h.current&&!$&&g(!0),w==null?void 0:w($)},m?null:f__namespace.createElement(ws,{mode:i,locked:!h.current},f__namespace.createElement(Pr,he({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function($){var S=$.className,C=$.style;return f__namespace.createElement(vv,{id:t,className:S,style:C},o)}))}var oF=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],iF=["active"],aF=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,h=t.popupClassName,v=t.popupOffset,p=t.onClick,m=t.onMouseEnter,g=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,w=t.onTitleMouseLeave,$=Xe(t,oF),S=SC(a),C=f__namespace.useContext(Er),x=C.prefixCls,P=C.mode,R=C.openKeys,E=C.disabled,I=C.overflowDisabled,O=C.activeKey,M=C.selectedKeys,_=C.itemIcon,T=C.expandIcon,A=C.onItemClick,N=C.onOpenChange,D=C.onActive,L=f__namespace.useContext(fv),z=L._internalRenderSubMenuItem,j=f__namespace.useContext($C),F=j.isSubPathKey,G=Us(),U="".concat(x,"-submenu"),q=E||s,ne=f__namespace.useRef(),Z=f__namespace.useRef(),Y=u||_,te=d||T,re=R.includes(a),se=!I&&re,de=F(M,a),ee=PC(a,q,y,w),ie=ee.active,ce=Xe(ee,iF),le=f__namespace.useState(!1),ve=K(le,2),oe=ve[0],pe=ve[1],ue=function(we){q||pe(we);},ye=function(we){ue(!0),m==null||m({key:a,domEvent:we});},Ie=function(we){ue(!1),g==null||g({key:a,domEvent:we});},De=f__namespace.useMemo(function(){return ie||(P!=="inline"?oe||F([O],a):!1)},[P,ie,O,oe,a,F]),Le=_C(G.length),_e=function(we){q||(b==null||b({key:a,domEvent:we}),P==="inline"&&N(a,!re));},qe=zi(function(be){p==null||p(pc(be)),A(be);}),vt=function(we){P!=="inline"&&N(a,we);},et=function(){D(a);},Qe=S&&"".concat(S,"-popup"),ke=f__namespace.createElement("div",he({role:"menuitem",style:Le,className:"".concat(U,"-title"),tabIndex:q?null:-1,ref:ne,title:typeof i=="string"?i:null,"data-menu-id":I&&S?null:S,"aria-expanded":se,"aria-haspopup":!0,"aria-controls":Qe,"aria-disabled":q,onClick:_e,onFocus:et},ce),i,f__namespace.createElement(RC,{icon:P!=="horizontal"?te:null,props:B(B({},t),{},{isOpen:se,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(U,"-arrow")}))),ze=f__namespace.useRef(P);if(P!=="inline"&&G.length>1?ze.current="vertical":ze.current=P,!I){var dt=ze.current;ke=f__namespace.createElement(nF,{mode:dt,prefixCls:U,visible:!l&&se&&P!=="inline",popupClassName:h,popupOffset:v,popup:f__namespace.createElement(ws,{mode:dt==="horizontal"?"vertical":dt},f__namespace.createElement(vv,{id:Qe,ref:Z},c)),disabled:q,onVisibleChange:vt},ke);}var at=f__namespace.createElement(Br.Item,he({role:"none"},$,{component:"li",style:r,className:X(U,"".concat(U,"-").concat(P),o,(n={},V(n,"".concat(U,"-open"),se),V(n,"".concat(U,"-active"),De),V(n,"".concat(U,"-selected"),de),V(n,"".concat(U,"-disabled"),q),n)),onMouseEnter:ye,onMouseLeave:Ie}),ke,!I&&f__namespace.createElement(rF,{id:Qe,open:se,keyPath:G},c));return z&&(at=z(at,t,{selected:de,active:De,open:se,disabled:q})),f__namespace.createElement(ws,{onItemClick:qe,mode:P==="horizontal"?"vertical":P,itemIcon:Y,expandIcon:te},at)};function Sv(e){var t=e.eventKey,n=e.children,r=Us(t),o=pv(n,r),i=hu();f__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=f__namespace.createElement(aF,e,o),f__namespace.createElement(xC.Provider,{value:r},a)}var sF=["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"],Di=[],lF=f__namespace.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,h=o.items,v=o.children,p=o.direction,m=o.id,g=o.mode,b=g===void 0?"vertical":g,y=o.inlineCollapsed,w=o.disabled,$=o.disabledOverflow,S=o.subMenuOpenDelay,C=S===void 0?.1:S,x=o.subMenuCloseDelay,P=x===void 0?.1:x,R=o.forceSubMenuRender,E=o.defaultOpenKeys,I=o.openKeys,O=o.activeKey,M=o.defaultActiveFirst,_=o.selectable,T=_===void 0?!0:_,A=o.multiple,N=A===void 0?!1:A,D=o.defaultSelectedKeys,L=o.selectedKeys,z=o.onSelect,j=o.onDeselect,F=o.inlineIndent,G=F===void 0?24:F,U=o.motion,q=o.defaultMotions,ne=o.triggerSubMenuAction,Z=ne===void 0?"hover":ne,Y=o.builtinPlacements,te=o.itemIcon,re=o.expandIcon,se=o.overflowedIndicator,de=se===void 0?"...":se,ee=o.overflowedIndicatorPopupClassName,ie=o.getPopupContainer,ce=o.onClick,le=o.onOpenChange,ve=o.onKeyDown;o.openAnimation,o.openTransitionName;var oe=o._internalRenderMenuItem,pe=o._internalRenderSubMenuItem,ue=Xe(o,sF),ye=f__namespace.useMemo(function(){return lL(v,h,Di)},[v,h]),Ie=f__namespace.useState(!1),De=K(Ie,2),Le=De[0],_e=De[1],qe=f__namespace.useRef(),vt=Zk(m),et=p==="rtl",Qe=en(E,{value:I,postState:function(Ce){return Ce||Di}}),ke=K(Qe,2),ze=ke[0],dt=ke[1],at=function(Ce){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function St(){dt(Ce),le==null||le(Ce);}He?ia.flushSync(St):St();},be=f__namespace.useState(ze),we=K(be,2),Ye=we[0],Ue=we[1],ft=f__namespace.useRef(!1),$e=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Ee=K($e,2),je=Ee[0],Re=Ee[1],Je=je==="inline",Et=f__namespace.useState(je),Ft=K(Et,2),kt=Ft[0],Ne=Ft[1],fe=f__namespace.useState(Re),ae=K(fe,2),Se=ae[0],xe=ae[1];f__namespace.useEffect(function(){Ne(je),xe(Re),ft.current&&(Je?dt(Ye):at(Di));},[je,Re]);var Ze=f__namespace.useState(0),pt=K(Ze,2),xt=pt[0],Xt=pt[1],Vt=xt>=ye.length-1||kt!=="horizontal"||$;f__namespace.useEffect(function(){Je&&Ue(ze);},[ze]),f__namespace.useEffect(function(){return ft.current=!0,function(){ft.current=!1;}},[]);var Ae=qk(),Ge=Ae.registerPath,Me=Ae.unregisterPath,$t=Ae.refreshOverflowKeys,yt=Ae.isSubPathKey,Zt=Ae.getKeyPath,Te=Ae.getKeys,We=Ae.getSubPathKeys,lt=f__namespace.useMemo(function(){return {registerPath:Ge,unregisterPath:Me}},[Ge,Me]),Pt=f__namespace.useMemo(function(){return {isSubPathKey:yt}},[yt]);f__namespace.useEffect(function(){$t(Vt?Di:ye.slice(xt+1).map(function(Oe){return Oe.key}));},[xt,Vt]);var qt=en(O||M&&((n=ye[0])===null||n===void 0?void 0:n.key),{value:O}),Bt=K(qt,2),wn=Bt[0],Nn=Bt[1],cr=zi(function(Oe){Nn(Oe);}),Yr=zi(function(){Nn(void 0);});f.useImperativeHandle(t,function(){return {list:qe.current,focus:function(Ce){var He,St=wn??((He=ye.find(function(zn){return !zn.props.disabled}))===null||He===void 0?void 0:He.key);if(St){var st,Ot,zt;(st=qe.current)===null||st===void 0||(Ot=st.querySelector("li[data-menu-id='".concat(dv(vt,St),"']")))===null||Ot===void 0||(zt=Ot.focus)===null||zt===void 0||zt.call(Ot,Ce);}}}});var _r=en(D||[],{value:L,postState:function(Ce){return Array.isArray(Ce)?Ce:Ce==null?Di:[Ce]}}),tr=K(_r,2),_n=tr[0],Zr=tr[1],Wo=function(Ce){if(T){var He=Ce.key,St=_n.includes(He),st;N?St?st=_n.filter(function(zt){return zt!==He}):st=[].concat(ge(_n),[He]):st=[He],Zr(st);var Ot=B(B({},Ce),{},{selectedKeys:st});St?j==null||j(Ot):z==null||z(Ot);}!N&&ze.length&&kt!=="inline"&&at(Di);},Qr=zi(function(Oe){ce==null||ce(pc(Oe)),Wo(Oe);}),Jr=zi(function(Oe,Ce){var He=ze.filter(function(st){return st!==Oe});if(Ce)He.push(Oe);else if(kt!=="inline"){var St=We(Oe);He=He.filter(function(st){return !St.has(st)});}Ls(ze,He,!0)||at(He,!0);}),eo=zi(ie),Vo=function(Ce,He){var St=He??!ze.includes(Ce);Jr(Ce,St);},Uo=Gk(kt,wn,et,vt,qe,Te,Zt,Nn,Vo,ve);f__namespace.useEffect(function(){_e(!0);},[]);var Go=f__namespace.useMemo(function(){return {_internalRenderMenuItem:oe,_internalRenderSubMenuItem:pe}},[oe,pe]),to=kt!=="horizontal"||$?ye:ye.map(function(Oe,Ce){return f__namespace.createElement(ws,{key:Oe.key,overflowDisabled:Ce>xt},Oe)}),no=f__namespace.createElement(Br,he({id:m,ref:qe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:vu,className:X(a,"".concat(a,"-root"),"".concat(a,"-").concat(kt),c,(r={},V(r,"".concat(a,"-inline-collapsed"),Se),V(r,"".concat(a,"-rtl"),et),r),s),dir:p,style:l,role:"menu",tabIndex:d,data:to,renderRawItem:function(Ce){return Ce},renderRawRest:function(Ce){var He=Ce.length,St=He?ye.slice(-He):null;return f__namespace.createElement(Sv,{eventKey:Hf,title:de,disabled:Vt,internalPopupClose:He===0,popupClassName:ee},St)},maxCount:kt!=="horizontal"||$?Br.INVALIDATE:Br.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ce){Xt(Ce);},onKeyDown:Uo},ue));return f__namespace.createElement(fv.Provider,{value:Go},f__namespace.createElement(CC.Provider,{value:vt},f__namespace.createElement(ws,{prefixCls:a,rootClassName:s,mode:kt,openKeys:ze,rtl:et,disabled:w,motion:Le?U:null,defaultMotions:Le?q:null,activeKey:wn,onActive:cr,onInactive:Yr,selectedKeys:_n,inlineIndent:G,subMenuOpenDelay:C,subMenuCloseDelay:P,forceSubMenuRender:R,builtinPlacements:Y,triggerSubMenuAction:Z,getPopupContainer:eo,itemIcon:te,expandIcon:re,onItemClick:Qr,onOpenChange:Jr},f__namespace.createElement($C.Provider,{value:Pt},no),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(wC.Provider,{value:lt},ye)))))}),cF=["className","title","eventKey","children"],uF=["children"],dF=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Xe(t,cF),a=f__namespace.useContext(Er),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",he({role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:X(l,n)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function VC(e){var t=e.children,n=Xe(e,uF),r=Us(n.eventKey),o=pv(t,r),i=hu();return i?o:f__namespace.createElement(dF,xr(n,["warnKey"]),o)}function UC(e){var t=e.className,n=e.style,r=f__namespace.useContext(Er),o=r.prefixCls,i=hu();return i?null:f__namespace.createElement("li",{className:X("".concat(o,"-item-divider"),t),style:n})}var Ks=lF;Ks.Item=vu;Ks.SubMenu=Sv;Ks.ItemGroup=VC;Ks.Divider=UC;var fF={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"};const hF=fF;var vF=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:hF}))};const pF=f__namespace.forwardRef(vF),mF=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(dN());},[]),e};function gF(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s}=e;const{horizontalSize:l,verticalSize:c,latestIndex:u,supportFlexGap:d}=f__namespace.useContext(GC);let h={};return d||(n==="vertical"?r{const{getPrefixCls:n,space:r,direction:o}=f__namespace.useContext(mt),{size:i=(r==null?void 0:r.size)||"small",align:a,className:s,rootClassName:l,children:c,direction:u="horizontal",prefixCls:d,split:h,style:v,wrap:p=!1}=e,m=bF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),g=mF(),[b,y]=f__namespace.useMemo(()=>(Array.isArray(i)?i:[i,i]).map(T=>CF(T)),[i]),w=wr(c,{keepEmpty:!0}),$=a===void 0&&u==="horizontal"?"center":a,S=n("space",d),[C,x]=Oy(S),P=X(S,x,`${S}-${u}`,{[`${S}-rtl`]:o==="rtl",[`${S}-align-${$}`]:$},s,l),R=`${S}-item`,E=o==="rtl"?"marginLeft":"marginRight";let I=0;const O=w.map((T,A)=>{T!=null&&(I=A);const N=T&&T.key||`${R}-${A}`;return f__namespace.createElement(gF,{className:R,key:N,direction:u,index:A,marginDirection:E,split:h,wrap:p},T)}),M=f__namespace.useMemo(()=>({horizontalSize:b,verticalSize:y,latestIndex:I,supportFlexGap:g}),[b,y,I,g]);if(w.length===0)return null;const _={};return p&&(_.flexWrap="wrap",g||(_.marginBottom=-y)),g&&(_.columnGap=b,_.rowGap=y),C(f__namespace.createElement("div",Object.assign({ref:t,className:P,style:Object.assign(Object.assign({},_),v)},m),f__namespace.createElement(GC.Provider,{value:M},O)))}),KC=SF;KC.Compact=fI;const wv=KC,XC=f__namespace.createContext(null),wF=XC.Provider,qC=f__namespace.createContext(null),xF=qC.Provider;var $F=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],YC=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,h=d===void 0?"checkbox":d,v=e.onChange,p=Xe(e,$F),m=f.useRef(null),g=en(u,{value:s}),b=K(g,2),y=b[0],w=b[1];f.useImperativeHandle(t,function(){return {focus:function(){var x;(x=m.current)===null||x===void 0||x.focus();},blur:function(){var x;(x=m.current)===null||x===void 0||x.blur();},input:m.current}});var $=X(o,i,(n={},V(n,"".concat(o,"-checked"),y),V(n,"".concat(o,"-disabled"),l),n)),S=function(x){l||("checked"in e||w(x.target.checked),v==null||v({target:B(B({},e),{},{checked:x.target.checked}),stopPropagation:function(){x.stopPropagation();},preventDefault:function(){x.preventDefault();},nativeEvent:x.nativeEvent}));};return f__namespace.createElement("span",{className:$,style:a},f__namespace.createElement("input",he({},p,{className:"".concat(o,"-input"),ref:m,onChange:S,disabled:l,checked:!!y,type:h})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const EF=new It("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),OF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Jt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},PF=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:h,colorBgContainerDisabled:v,colorTextDisabled:p,paddingXS:m,radioDotDisabledColor:g,lineType:b,radioDotDisabledSize:y,wireframe:w,colorWhite:$}=e,S=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Jt(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${b} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:EF,animationDuration:i,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},Jt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, &:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:Object.assign({},nu(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:w?r:$,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:r,backgroundColor:w?c:r,"&::after":{transform:`scale(${h/o})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:v,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${y/o})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},_F=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:h,controlHeightLG:v,controlHeightSM:p,paddingXS:m,borderRadius:g,borderRadiusSM:b,borderRadiusLG:y,radioCheckedColor:w,radioButtonCheckedBg:$,radioButtonHoverColor:S,radioButtonActiveColor:C,radioSolidCheckedColor:x,colorTextDisabled:P,colorBgContainerDisabled:R,radioDisabledButtonCheckedColor:E,radioDisabledButtonCheckedBg:I}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:v,fontSize:h,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:m-o,paddingBlock:0,lineHeight:`${p-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:w},"&:has(:focus-visible)":Object.assign({},nu(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:$,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:S,borderColor:S,"&::before":{backgroundColor:S}},"&:active":{color:C,borderColor:C,"&::before":{backgroundColor:C}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:w,borderColor:w,"&:hover":{color:x,background:S,borderColor:S},"&:active":{color:x,background:C,borderColor:C}},"&-disabled":{color:P,backgroundColor:R,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:P,backgroundColor:R,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:I,borderColor:a,boxShadow:"none"}}}},ZC=mn("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:o,colorBgContainer:i,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:h,controlOutlineWidth:v,colorTextLightSolid:p,wireframe:m}=e,g=`0 0 0 ${v}px ${s}`,b=g,y=a,w=4,$=y-w*2,S=m?$:y-(w+n)*2,C=d,x=u,P=l,R=c,E=t-n,M=At(e,{radioFocusShadow:g,radioButtonFocusShadow:b,radioSize:y,radioDotSize:S,radioDotDisabledSize:$,radioCheckedColor:C,radioDotDisabledColor:o,radioSolidCheckedColor:p,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:x,radioButtonHoverColor:P,radioButtonActiveColor:R,radioButtonPaddingHorizontal:E,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:o,radioWrapperMarginRight:h});return [OF(M),PF(M),_F(M)]});var RF=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=f__namespace.useContext(XC),i=f__namespace.useContext(qC),{getPrefixCls:a,direction:s}=f__namespace.useContext(mt),l=f__namespace.useRef(null),c=Pn(t,l),{isFormItemInput:u}=f__namespace.useContext(Kr),d=R=>{var E,I;(E=e.onChange)===null||E===void 0||E.call(e,R),(I=o==null?void 0:o.onChange)===null||I===void 0||I.call(o,R);},{prefixCls:h,className:v,rootClassName:p,children:m,style:g}=e,b=RF(e,["prefixCls","className","rootClassName","children","style"]),y=a("radio",h),w=((o==null?void 0:o.optionType)||i)==="button"?`${y}-button`:y,[$,S]=ZC(y),C=Object.assign({},b),x=f__namespace.useContext(Bo);o&&(C.name=o.name,C.onChange=d,C.checked=e.value===o.value,C.disabled=(n=C.disabled)!==null&&n!==void 0?n:o.disabled),C.disabled=(r=C.disabled)!==null&&r!==void 0?r:x;const P=X(`${w}-wrapper`,{[`${w}-wrapper-checked`]:C.checked,[`${w}-wrapper-disabled`]:C.disabled,[`${w}-wrapper-rtl`]:s==="rtl",[`${w}-wrapper-in-form-item`]:u},v,p,S);return $(f__namespace.createElement("label",{className:P,style:g,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(YC,Object.assign({},C,{type:"radio",prefixCls:w,ref:c})),m!==void 0?f__namespace.createElement("span",null,m):null))},TF=f__namespace.forwardRef(MF),gc=TF,IF=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(mt),[o,i]=en(e.defaultValue,{value:e.value}),a=O=>{const M=o,_=O.target.value;"value"in e||i(_);const{onChange:T}=e;T&&_!==M&&T(O);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:h,children:v,size:p,style:m,id:g,onMouseEnter:b,onMouseLeave:y,onFocus:w,onBlur:$}=e,S=n("radio",s),C=`${S}-group`,[x,P]=ZC(S);let R=v;u&&u.length>0&&(R=u.map(O=>typeof O=="string"||typeof O=="number"?f__namespace.createElement(gc,{key:O.toString(),prefixCls:S,disabled:h,value:O,checked:o===O},O):f__namespace.createElement(gc,{key:`radio-group-value-options-${O.value}`,prefixCls:S,disabled:O.disabled||h,value:O.value,checked:o===O.value,style:O.style},O.label)));const E=Or(p),I=X(C,`${C}-${d}`,{[`${C}-${E}`]:E,[`${C}-rtl`]:r==="rtl"},l,c,P);return x(f__namespace.createElement("div",Object.assign({},FT(e),{className:I,style:m,onMouseEnter:b,onMouseLeave:y,onFocus:w,onBlur:$,id:g,ref:t}),f__namespace.createElement(wF,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},R)))}),NF=f__namespace.memo(IF);var AF=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=f__namespace.useContext(mt),{prefixCls:r}=e,o=AF(e,["prefixCls"]),i=n("radio",r);return f__namespace.createElement(xF,{value:"button"},f__namespace.createElement(gc,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},kF=f__namespace.forwardRef(DF),mu=gc;mu.Button=kF;mu.Group=NF;mu.__ANT_RADIO=!0;const ri=mu,QC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Xs=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),bc=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),xv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Xs(At(e,{inputBorderHoverColor:e.colorBorder})))}),JC=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return {padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},eS=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),gu=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},bc(At(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},bc(At(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},bu=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}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}`},QC(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Xs(e)),"&:focus, &-focused":Object.assign({},bc(e)),"&-disabled, &[disabled]":Object.assign({},xv(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({},JC(e)),"&-sm":Object.assign({},eS(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),tS=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({},JC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},eS(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.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${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.inputPaddingHorizontal}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"},MM()),{[`${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},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, & > ${n}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${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}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${t}, & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, & > ${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}}}})}},LF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,i=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Jt(e)),bu(e)),gu(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},FF=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`}}}},zF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bu(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Xs(e)),{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":{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}}}),FF(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),gu(e,`${t}-affix-wrapper`))}},jF=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Jt(e)),tS(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},xv(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}}}})}},HF=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},[`${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, > ${t}, ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function nS(e){return At(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const BF=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.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},$v=mn("Input",e=>{const t=nS(e);return [LF(t),BF(t),zF(t),jF(t),HF(t),cu(t)]});var WF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const VF=WF;var UF=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:VF}))};const GF=f__namespace.forwardRef(UF),yu=f.createContext(null);var rS=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return f__namespace.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:X(n,a&&"".concat(n,"-active"),r),ref:t},l)}),KF=["key","forceRender","style","className"];function XF(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=f__namespace.useContext(yu),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:X("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:X("".concat(s,"-content"),"".concat(s,"-content-").concat(o),V({},"".concat(s,"-content-animated"),c))},l.map(function(d){var h=d.key,v=d.forceRender,p=d.style,m=d.className,g=Xe(d,KF),b=h===n;return f__namespace.createElement(Pr,he({key:h,visible:b,forceRender:v,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,w){var $=y.style,S=y.className;return f__namespace.createElement(rS,he({},g,{prefixCls:u,id:t,tabKey:h,animated:c,active:b,style:B(B({},p),$),className:X(m,S),ref:w}))})})))}var Pg={width:0,height:0,left:0,top:0};function qF(e,t,n){return f.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Pg,a=i.left+i.width,s=0;s_?(O=E,C.current="x"):(O=I,C.current="y"),t(-O,-O)&&R.preventDefault();}var P=f.useRef(null);P.current={onTouchStart:w,onTouchMove:$,onTouchEnd:S,onWheel:x},f__namespace.useEffect(function(){function R(M){P.current.onTouchStart(M);}function E(M){P.current.onTouchMove(M);}function I(M){P.current.onTouchEnd(M);}function O(M){P.current.onWheel(M);}return document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",I,{passive:!1}),e.current.addEventListener("touchstart",R,{passive:!1}),e.current.addEventListener("wheel",O),function(){document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I);}},[]);}function oS(e){var t=f.useState(0),n=K(t,2),r=n[0],o=n[1],i=f.useRef(0),a=f.useRef();return a.current=e,qi(function(){var s;(s=a.current)===null||s===void 0||s.call(a);},[r]),function(){i.current===r&&(i.current+=1,o(i.current));}}function QF(e){var t=f.useRef([]),n=f.useState({}),r=K(n,2),o=r[1],i=f.useRef(typeof e=="function"?e():e),a=oS(function(){var l=i.current;t.current.forEach(function(c){l=c(l);}),t.current=[],i.current=l,o({});});function s(l){t.current.push(l),a();}return [i.current,s]}var Tg={width:0,height:0,left:0,top:0,right:0};function JF(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,h;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",h=Math.abs(n)):(u="height",d="top",h=-n),f.useMemo(function(){if(!s.length)return [0,0];for(var v=s.length,p=v,m=0;mh+t){p=m-1;break}}for(var b=0,y=v-1;y>=0;y-=1){var w=e.get(s[y].key)||Tg;if(w[d]We?"left":"right"});}),M=K(O,2),_=M[0],T=M[1],A=_g(0,function(Te,We){!I&&w&&w({direction:Te>We?"top":"bottom"});}),N=K(A,2),D=N[0],L=N[1],z=f.useState([0,0]),j=K(z,2),F=j[0],G=j[1],U=f.useState([0,0]),q=K(U,2),ne=q[0],Z=q[1],Y=f.useState([0,0]),te=K(Y,2),re=te[0],se=te[1],de=f.useState([0,0]),ee=K(de,2),ie=ee[0],ce=ee[1],le=QF(new Map),ve=K(le,2),oe=ve[0],pe=ve[1],ue=qF(i,oe,ne[0]),ye=Ol(F,I),Ie=Ol(ne,I),De=Ol(re,I),Le=Ol(ie,I),_e=yeQe?Qe:Te}var ze=f.useRef(),dt=f.useState(),at=K(dt,2),be=at[0],we=at[1];function Ye(){we(Date.now());}function Ue(){window.clearTimeout(ze.current);}ZF(x,function(Te,We){function lt(Pt,qt){Pt(function(Bt){var wn=ke(Bt+qt);return wn});}return _e?(I?lt(T,Te):lt(L,We),Ue(),Ye(),!0):!1}),f.useEffect(function(){return Ue(),be&&(ze.current=window.setTimeout(function(){we(0);},100)),Ue},[be]);var ft=JF(ue,qe,I?_:D,Ie,De,Le,B(B({},e),{},{tabs:i})),$e=K(ft,2),Ee=$e[0],je=$e[1],Re=yr(function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,We=ue.get(Te)||{width:0,height:0,left:0,right:0,top:0};if(I){var lt=_;d?We.right<_?lt=We.right:We.right+We.width>_+qe&&(lt=We.right+We.width-qe):We.left<-_?lt=-We.left:We.left+We.width>-_+qe&&(lt=-(We.left+We.width-qe)),L(0),T(ke(lt));}else {var Pt=D;We.top<-D?Pt=-We.top:We.top+We.height>-D+qe&&(Pt=-(We.top+We.height-qe)),T(0),L(ke(Pt));}}),Je={};m==="top"||m==="bottom"?Je[d?"marginRight":"marginLeft"]=g:Je.marginTop=g;var Et=i.map(function(Te,We){var lt=Te.key;return f__namespace.createElement(o3,{id:l,prefixCls:o,key:lt,tab:Te,style:We===0?void 0:Je,closable:Te.closable,editable:v,active:lt===u,renderWrapper:b,removeAriaLabel:p==null?void 0:p.removeAriaLabel,onClick:function(qt){y(lt,qt);},onFocus:function(){Re(lt),Ye(),x.current&&(d||(x.current.scrollLeft=0),x.current.scrollTop=0);}})}),Ft=function(){return pe(function(){var We=new Map;return i.forEach(function(lt){var Pt,qt=lt.key,Bt=(Pt=P.current)===null||Pt===void 0?void 0:Pt.querySelector('[data-node-key="'.concat(iS(qt),'"]'));Bt&&We.set(qt,{width:Bt.offsetWidth,height:Bt.offsetHeight,left:Bt.offsetLeft,top:Bt.offsetTop});}),We})};f.useEffect(function(){Ft();},[i.map(function(Te){return Te.key}).join("_")]);var kt=oS(function(){var Te=ki($),We=ki(S),lt=ki(C);G([Te[0]-We[0]-lt[0],Te[1]-We[1]-lt[1]]);var Pt=ki(E);se(Pt);var qt=ki(R);ce(qt);var Bt=ki(P);Z([Bt[0]-Pt[0],Bt[1]-Pt[1]]),Ft();}),Ne=i.slice(0,Ee),fe=i.slice(je+1),ae=[].concat(ge(Ne),ge(fe)),Se=f.useState(),xe=K(Se,2),Ze=xe[0],pt=xe[1],xt=ue.get(u),Xt=f.useRef();function Vt(){wt.cancel(Xt.current);}f.useEffect(function(){var Te={};return xt&&(I?(d?Te.right=xt.right:Te.left=xt.left,Te.width=xt.width):(Te.top=xt.top,Te.height=xt.height)),Vt(),Xt.current=wt(function(){pt(Te);}),Vt},[xt,I,d]),f.useEffect(function(){Re();},[u,et,Qe,Ig(xt),Ig(ue),I]),f.useEffect(function(){kt();},[d]);var Ae=!!ae.length,Ge="".concat(o,"-nav-wrap"),Me,$t,yt,Zt;return I?d?($t=_>0,Me=_!==Qe):(Me=_<0,$t=_!==et):(yt=D<0,Zt=D!==et),f__namespace.createElement(go,{onResize:kt},f__namespace.createElement("div",{ref:ks(t,$),role:"tablist",className:X("".concat(o,"-nav"),a),style:s,onKeyDown:function(){Ye();}},f__namespace.createElement(Ng,{ref:S,position:"left",extra:h,prefixCls:o}),f__namespace.createElement("div",{className:X(Ge,(n={},V(n,"".concat(Ge,"-ping-left"),Me),V(n,"".concat(Ge,"-ping-right"),$t),V(n,"".concat(Ge,"-ping-top"),yt),V(n,"".concat(Ge,"-ping-bottom"),Zt),n)),ref:x},f__namespace.createElement(go,{onResize:kt},f__namespace.createElement("div",{ref:P,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(D,"px)"),transition:be?"none":void 0}},Et,f__namespace.createElement(aS,{ref:E,prefixCls:o,locale:p,editable:v,style:B(B({},Et.length===0?void 0:Je),{},{visibility:Ae?"hidden":null})}),f__namespace.createElement("div",{className:X("".concat(o,"-ink-bar"),V({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Ze})))),f__namespace.createElement(r3,he({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:R,prefixCls:o,tabs:ae,className:!Ae&&vt,tabMoving:!!be})),f__namespace.createElement(Ng,{ref:C,position:"right",extra:h,prefixCls:o})))}const Ag=f__namespace.forwardRef(i3);var a3=["renderTabBar"],s3=["label","key"];function l3(e){var t=e.renderTabBar,n=Xe(e,a3),r=f__namespace.useContext(yu),o=r.tabs;if(t){var i=B(B({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=Xe(a,s3);return f__namespace.createElement(rS,he({tab:s,key:l,tabKey:l},c))})});return t(i,Ag)}return f__namespace.createElement(Ag,n)}function c3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=B({inkBar:!0},tt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var u3=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Dg=0;function d3(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,h=e.animated,v=e.tabPosition,p=v===void 0?"top":v,m=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,w=e.moreIcon,$=e.moreTransitionName,S=e.destroyInactiveTabPane,C=e.renderTabBar,x=e.onChange,P=e.onTabClick,R=e.onTabScroll,E=e.getPopupContainer,I=e.popupClassName,O=Xe(e,u3),M=f__namespace.useMemo(function(){return (s||[]).filter(function(le){return le&&tt(le)==="object"&&"key"in le})},[s]),_=l==="rtl",T=c3(h),A=f.useState(!1),N=K(A,2),D=N[0],L=N[1];f.useEffect(function(){L(Ws());},[]);var z=en(function(){var le;return (le=M[0])===null||le===void 0?void 0:le.key},{value:c,defaultValue:u}),j=K(z,2),F=j[0],G=j[1],U=f.useState(function(){return M.findIndex(function(le){return le.key===F})}),q=K(U,2),ne=q[0],Z=q[1];f.useEffect(function(){var le=M.findIndex(function(oe){return oe.key===F});if(le===-1){var ve;le=Math.max(0,Math.min(ne,M.length-1)),G((ve=M[le])===null||ve===void 0?void 0:ve.key);}Z(le);},[M.map(function(le){return le.key}).join("_"),F,ne]);var Y=en(null,{value:r}),te=K(Y,2),re=te[0],se=te[1];f.useEffect(function(){r||(se("rc-tabs-".concat(Dg)),Dg+=1);},[]);function de(le,ve){P==null||P(le,ve);var oe=le!==F;G(le),oe&&(x==null||x(le));}var ee={id:re,activeKey:F,animated:T,tabPosition:p,rtl:_,mobile:D},ie,ce=B(B({},ee),{},{editable:d,locale:y,moreIcon:w,moreTransitionName:$,tabBarGutter:m,onTabClick:de,onTabScroll:R,extra:b,style:g,panes:null,getPopupContainer:E,popupClassName:I});return f__namespace.createElement(yu.Provider,{value:{tabs:M,prefixCls:i}},f__namespace.createElement("div",he({ref:t,id:r,className:X(i,"".concat(i,"-").concat(p),(n={},V(n,"".concat(i,"-mobile"),D),V(n,"".concat(i,"-editable"),d),V(n,"".concat(i,"-rtl"),_),n),a)},O),ie,f__namespace.createElement(l3,he({},ce,{renderTabBar:C})),f__namespace.createElement(XF,he({destroyInactiveTabPane:S},ee,{animated:T}))))}var f3=f__namespace.forwardRef(d3);const h3=()=>null,v3=h3,p3={motionAppear:!1,motionEnter:!0,motionLeave:!0};function m3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},p3),{motionName:uu(e,"switch")})),n}var g3=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function y3(e,t){if(e)return e;const n=wr(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=g3(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return b3(n)}const C3=e=>{const{componentCls:t,motionDurationSlow:n}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[dc(e,"slide-up"),dc(e,"slide-down")]]},S3=C3,w3=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:o,colorBorderSecondary:i}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,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}}}}}}},x3=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Jt(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({},Xi),{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"}}})}})}},$3=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::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}, 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, > 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:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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}}}}}},E3=e=>{const{componentCls:t,padding:n}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${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:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},O3=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:o,tabsHorizontalGutter:i}=e,a=`${t}-tab`;return {[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Kh(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},[`&${a}-active ${a}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${a}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},P3=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:o}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${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}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},_3=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:o,tabsHoverColor:i,tabsActiveColor:a,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Jt(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}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},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:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Kh(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),O3(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"}}}}}},R3=mn("Tabs",e=>{const t=e.controlHeightLG,n=At(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return [E3(n),P3(n),$3(n),x3(n),w3(n),_3(n),S3(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var M3=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{key:M,event:_}=O;i==null||i(I==="add"?_:M,I);},removeIcon:f__namespace.createElement(Qh,null),addIcon:l||f__namespace.createElement(GF,null),showAdd:a!==!0});const x=b(),P=y3(d,u),R=m3(w,h),E=Or(o);return $(f__namespace.createElement(f3,Object.assign({direction:g,getPopupContainer:y,moreTransitionName:`${x}-slide-up`},v,{items:P,className:X({[`${w}-${E}`]:E,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:t==="editable-card",[`${w}-centered`]:s},n,r,S),popupClassName:X(c,S),editable:C,moreIcon:m,prefixCls:w,animated:R})))}sS.TabPane=v3;const T3=new It("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),I3=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Jt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Jt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Jt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},nu(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:T3,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function N3(e,t){const n=At(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [I3(n)]}const lS=mn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [N3(n,e)]});var A3=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=A3(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(mt),[v,p]=f__namespace.useState(u.value||n||[]),[m,g]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&p(u.value||[]);},[u.value]);const b=()=>o.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),y=O=>{g(M=>M.filter(_=>_!==O));},w=O=>{g(M=>[].concat(ge(M),[O]));},$=O=>{const M=v.indexOf(O.value),_=ge(v);M===-1?_.push(O.value):_.splice(M,1),"value"in u||p(_);const T=b();c==null||c(_.filter(A=>m.includes(A)).sort((A,N)=>{const D=T.findIndex(z=>z.value===A),L=T.findIndex(z=>z.value===N);return D-L}));},S=d("checkbox",i),C=`${S}-group`,[x,P]=lS(S),R=xr(u,["value","disabled"]);o&&o.length>0&&(r=b().map(O=>f__namespace.createElement(uS,{prefixCls:S,key:O.value.toString(),disabled:"disabled"in O?O.disabled:u.disabled,value:O.value,checked:v.includes(O.value),onChange:O.onChange,className:`${C}-item`,style:O.style},O.label)));const E={toggleOption:$,value:v,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:y},I=X(C,{[`${C}-rtl`]:h==="rtl"},a,s,P);return x(f__namespace.createElement("div",Object.assign({className:I,style:l},R,{ref:t}),f__namespace.createElement(cS.Provider,{value:E},r)))},k3=f__namespace.forwardRef(D3),L3=f__namespace.memo(k3);var F3=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:h}=e,v=F3(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:p,direction:m}=f__namespace.useContext(mt),g=f__namespace.useContext(cS),{isFormItemInput:b}=f__namespace.useContext(Kr),y=f__namespace.useContext(Bo),w=(n=(g==null?void 0:g.disabled)||h)!==null&&n!==void 0?n:y,$=f__namespace.useRef(v.value);f__namespace.useEffect(()=>{g==null||g.registerValue(v.value);},[]),f__namespace.useEffect(()=>{if(!d)return v.value!==$.current&&(g==null||g.cancelValue($.current),g==null||g.registerValue(v.value),$.current=v.value),()=>g==null?void 0:g.cancelValue(v.value)},[v.value]);const S=p("checkbox",r),[C,x]=lS(S),P=Object.assign({},v);g&&!d&&(P.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),g.toggleOption&&g.toggleOption({label:a,value:v.value});},P.name=g.name,P.checked=g.value.includes(v.value));const R=X({[`${S}-wrapper`]:!0,[`${S}-rtl`]:m==="rtl",[`${S}-wrapper-checked`]:P.checked,[`${S}-wrapper-disabled`]:w,[`${S}-wrapper-in-form-item`]:b},o,i,x),E=X({[`${S}-indeterminate`]:s},x),I=s?"mixed":void 0;return C(f__namespace.createElement("label",{className:R,style:l,onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(YC,Object.assign({"aria-checked":I},P,{prefixCls:S,className:E,disabled:w,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a)))},j3=f__namespace.forwardRef(z3),uS=j3,Ev=uS;Ev.Group=L3;Ev.__ANT_CHECKBOX=!0;const H3=Ev;var dS=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=f.useState(l||o),d=K(u,2),h=d[0],v=d[1];return f.useEffect(function(){(o||l)&&v(!0);},[o,l]),h?f.createElement("div",{ref:t,className:X("".concat(r,"-content"),(n={},V(n,"".concat(r,"-content-active"),l),V(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});dS.displayName="PanelContent";var B3=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],W3=f.forwardRef(function(e,t){var n,r,o=e.showArrow,i=o===void 0?!0:o,a=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,h=e.collapsible,v=e.accordion,p=e.panelKey,m=e.extra,g=e.header,b=e.expandIcon,y=e.openMotion,w=e.destroyInactivePanel,$=e.children,S=Xe(e,B3),C=h==="disabled",x=h==="header",P=h==="icon",R=m!=null&&typeof m!="boolean",E=function(){l==null||l(p);},I=function(N){(N.key==="Enter"||N.keyCode===J.ENTER||N.which===J.ENTER)&&E();},O=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});O&&(O=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(h)?E:void 0},O));var M=X((n={},V(n,"".concat(d,"-item"),!0),V(n,"".concat(d,"-item-active"),s),V(n,"".concat(d,"-item-disabled"),C),n),u),_=X((r={},V(r,"".concat(d,"-header"),!0),V(r,"headerClass",a),V(r,"".concat(d,"-header-collapsible-only"),x),V(r,"".concat(d,"-icon-collapsible-only"),P),r)),T={className:_,"aria-expanded":s,"aria-disabled":C,onKeyPress:I};return !x&&!P&&(T.onClick=E,T.role=v?"tab":"button",T.tabIndex=C?-1:0),f.createElement("div",he({},S,{ref:t,className:M}),f.createElement("div",T,i&&O,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:h==="header"?E:void 0},g),R&&f.createElement("div",{className:"".concat(d,"-extra")},m)),f.createElement(Pr,he({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:w}),function(A,N){var D=A.className,L=A.style;return f.createElement(dS,{ref:N,prefixCls:d,className:D,style:L,isActive:s,forceRender:c,role:v?"tabpanel":void 0},$)}))});function V3(e){var t=e;if(!Array.isArray(t)){var n=tt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var U3=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,h=e.expandIcon,v=e.activeKey,p=e.defaultActiveKey,m=e.onChange,g=X(r,l),b=en([],{value:v,onChange:function(R){return m==null?void 0:m(R)},defaultValue:p,postState:V3}),y=K(b,2),w=y[0],$=y[1],S=function(R){return $(function(){if(s)return w[0]===R?[]:[R];var E=w.indexOf(R),I=E>-1;return I?w.filter(function(O){return O!==R}):[].concat(ge(w),[R])})},C=function(R,E){if(!R)return null;var I=R.key||String(E),O=R.props,M=O.header,_=O.headerClass,T=O.destroyInactivePanel,A=O.collapsible,N=O.onItemClick,D=!1;s?D=w[0]===I:D=w.indexOf(I)>-1;var L=A??u,z=function(G){L!=="disabled"&&(S(G),N==null||N(G));},j={key:I,panelKey:I,header:M,headerClass:_,isActive:D,prefixCls:r,destroyInactivePanel:T??i,openMotion:d,accordion:s,children:R.props.children,onItemClick:z,expandIcon:h,collapsible:L};return typeof R.type=="string"?R:(Object.keys(j).forEach(function(F){typeof j[F]>"u"&&delete j[F];}),f.cloneElement(R,j))},x=wr(c).map(C);return f.createElement("div",{ref:t,className:g,style:a,role:s?"tablist":void 0},x)});const Ov=Object.assign(U3,{Panel:W3});Ov.Panel;const G3=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(mt),{prefixCls:r,className:o="",showArrow:i=!0}=e,a=n("collapse",r),s=X({[`${a}-no-arrow`]:!i},o);return f__namespace.createElement(Ov.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),K3=G3,X3=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:h,colorText:v,colorTextHeading:p,colorTextDisabled:m,fontSize:g,fontSizeLG:b,lineHeight:y,marginSM:w,paddingSM:$,paddingLG:S,motionDurationSlow:C,fontSizeIcon:x}=e,P=`${u}px ${d} ${h}`;return {[t]:Object.assign(Object.assign({},Jt(e)),{backgroundColor:i,border:P,borderBottom:0,borderRadius:`${c}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,["&:last-child"]:{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:y,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*y,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},js()),{fontSize:x,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:$}}},[`${t}-content`]:{color:v,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},["&-large"]:{[`> ${t}-item`]:{fontSize:b,[`> ${t}-header`]:{padding:l,[`> ${t}-expand-icon`]:{height:b*y}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[` &, & > .arrow `]:{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},q3=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Y3=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{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}}}},Z3=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}}}}}},Q3=mn("Collapse",e=>{const t=At(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return [X3(t),Y3(t),Z3(t),q3(t),jN(t)]}),J3=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(mt),{prefixCls:o,className:i,rootClassName:a,bordered:s=!0,ghost:l,size:c,expandIconPosition:u="start",children:d,expandIcon:h}=e,v=Or(x=>{var P;return (P=c??x)!==null&&P!==void 0?P:"middle"}),p=n("collapse",o),m=n(),[g,b]=Q3(p),y=f__namespace.useMemo(()=>u==="left"?"start":u==="right"?"end":u,[u]),w=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=h?h(x):f__namespace.createElement(Mk,{rotate:x.isActive?90:void 0});return $r(P,()=>({className:X(P.props.className,`${p}-arrow`)}))},$=X(`${p}-icon-position-${y}`,{[`${p}-borderless`]:!s,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!l,[`${p}-${v}`]:v!=="middle"},i,a,b),S=Object.assign(Object.assign({},qI(m)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),C=f__namespace.useMemo(()=>wr(d).map((x,P)=>{var R,E;if(!((R=x.props)===null||R===void 0)&&R.disabled){const I=(E=x.key)!==null&&E!==void 0?E:String(P),{disabled:O,collapsible:M}=x.props,_=Object.assign(Object.assign({},xr(x.props,["disabled"])),{key:I,collapsible:M??(O?"disabled":void 0)});return $r(x,_)}return x}),[d]);return g(f__namespace.createElement(Ov,Object.assign({ref:t,openMotion:S},xr(e,["rootClassName"]),{expandIcon:w,prefixCls:p,className:$}),C))}),fS=Object.assign(J3,{Panel:K3});var e5=["v"],Kf=function(e){zo(n,e);var t=jo(n);function n(r){return vn(this,n),t.call(this,r5(r))}return pn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=ci(o.s*100),a=ci(o.b*100),s=ci(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();tt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=Xe(i,e5);return B(B({},a),{},{b:o.v})}}]),n}(nn),t5=["b"],n5="rc-color-picker",ci=function(t){return Math.round(Number(t||0))},r5=function(t){if(t&&tt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Xe(n,t5);return B(B({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Do=function(t){return t instanceof Kf?t:new Kf(t)},o5=Do("#1677ff"),hS=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,h=u.height,v=d/2,p=h/2,m=(n.x+v)/l,g=1-(n.y+p)/c,b=i.toHsb(),y=m,w=(n.x+v)/l*360;if(a)switch(a){case"hue":return Do(B(B({},b),{},{h:w<=0?0:w}));case"alpha":return Do(B(B({},b),{},{a:y<=0?0:y}))}return Do({h:b.h,s:m<=0?0:m,b:g>=1?1:g,a:b.a})},vS=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,s=i.height,l=n.current.getBoundingClientRect(),c=l.width,u=l.height,d=c/2,h=u/2,v=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:v.h/360*a-d,y:-h/3};case"alpha":return {x:v.a/1*a-d,y:-h/3}}return {x:v.s*a-d,y:(1-v.b)*s-h}}},Pv=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return f.createElement("div",{className:X(s,o),style:i,onClick:a},f.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function i5(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return {pageX:t.pageX-n,pageY:t.pageY-r}}function pS(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=f.useState(t||{x:0,y:0}),d=K(u,2),h=d[0],v=d[1],p=f.useRef(null),m=f.useRef(null),g=f.useRef({flag:!1});f.useEffect(function(){if(g.current.flag===!1){var S=s==null?void 0:s(r);S&&v(S);}},[l,r]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null;}},[]);var b=function(C){var x=i5(C),P=x.pageX,R=x.pageY,E=r.current.getBoundingClientRect(),I=E.x,O=E.y,M=E.width,_=E.height,T=n.current.getBoundingClientRect(),A=T.width,N=T.height,D=A/2,L=N/2,z=Math.max(0,Math.min(P-I,M))-D,j=Math.max(0,Math.min(R-O,_))-L,F={x:z,y:o==="x"?h.y:j};if(A===0&&N===0||A!==N)return !1;v(F),i==null||i(F);},y=function(C){C.preventDefault(),b(C);},w=function(C){C.preventDefault(),g.current.flag=!1,document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,a==null||a();},$=function(C){c||(b(C),g.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.addEventListener("touchmove",y),document.addEventListener("touchend",w),p.current=y,m.current=w);};return [h,$]}var mS=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return f.createElement("div",{className:X("".concat(i,"-handler"),V({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},gS=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:B({position:"relative"},r)},n)},bS=f.forwardRef(function(e,t){var n=e.children,r=e.offset;return f.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),a5=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=f.useRef(),l=f.useRef(),c=pS({color:n,containerRef:s,targetRef:l,calculate:function(p){return vS(p,l,n)},onDragChange:function(p){return r(hS({offset:p,targetRef:l,containerRef:s,color:n}))},onDragChangeComplete:i,disabledDrag:a}),u=K(c,2),d=u[0],h=u[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},f.createElement(gS,{prefixCls:o},f.createElement(bS,{offset:d,ref:l},f.createElement(mS,{color:n.toRgbString(),prefixCls:o})),f.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},s5=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=f.useMemo(function(){return n.map(function(c,u){var d=Do(c);return a==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,a]);return f.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},kg=function(t){var n=t.gradientColors,r=t.direction,o=t.type,i=o===void 0?"hue":o,a=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,h=f.useRef(),v=f.useRef(),p=pS({color:a,targetRef:v,containerRef:h,calculate:function(w){return vS(w,v,a,i)},onDragChange:function(w){l(hS({offset:w,targetRef:v,containerRef:h,color:a,type:i}));},onDragChangeComplete:function(){c==null||c(i);},direction:"x",disabledDrag:u}),m=K(p,2),g=m[0],b=m[1];return f.createElement("div",{ref:h,className:X("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:b,onTouchStart:b},f.createElement(gS,{prefixCls:d},f.createElement(bS,{offset:g,ref:v},f.createElement(mS,{size:"small",color:s,prefixCls:d})),f.createElement(s5,{colors:n,direction:r,type:i,prefixCls:d})))};function Lg(e){return e!==void 0}var l5=function(t,n){var r=n.defaultValue,o=n.value,i=f.useState(function(){var c;return Lg(o)?c=o:Lg(r)?c=r:c=t,Do(c)}),a=K(i,2),s=a[0],l=a[1];return f.useEffect(function(){o&&l(Do(o));},[o]),[s,l]},c5=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const u5=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?n5:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,h=d===void 0?!1:d,v=e.disabled,p=v===void 0?!1:v,m=l5(o5,{value:n,defaultValue:r}),g=K(m,2),b=g[0],y=g[1],w=f.useMemo(function(){var P=Do(b.toRgbString());return P.setAlpha(1),P.toRgbString()},[b]),$=X("".concat(i,"-panel"),l,V({},"".concat(i,"-panel-disabled"),p)),S={prefixCls:i,onChangeComplete:s,disabled:p},C=function(R,E){n||y(R),a==null||a(R,E);},x=f.createElement(f.Fragment,null,f.createElement(a5,he({color:b,onChange:C},S)),f.createElement("div",{className:"".concat(i,"-slider-container")},f.createElement("div",{className:X("".concat(i,"-slider-group"),V({},"".concat(i,"-slider-group-disabled-alpha"),h))},f.createElement(kg,he({gradientColors:c5,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(R){return C(R,"hue")}},S)),!h&&f.createElement(kg,he({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",w],color:b,value:b.toRgbString(),onChange:function(R){return C(R,"alpha")}},S))),f.createElement(Pv,{color:b.toRgbString(),prefixCls:i})));return f.createElement("div",{className:$,style:c,ref:t},typeof u=="function"?u(x):x)}),d5=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return {[t]:Object.assign(Object.assign({},Jt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,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:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-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}}})}},f5=mn("Divider",e=>{const t=At(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [d5(t)]},{sizePaddingEdgeHorizontal:0});var h5=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=f__namespace.useContext(mt),{prefixCls:r,type:o="horizontal",orientation:i="center",orientationMargin:a,className:s,rootClassName:l,children:c,dashed:u,plain:d}=e,h=h5(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain"]),v=t("divider",r),[p,m]=f5(v),g=i.length>0?`-${i}`:i,b=!!c,y=i==="left"&&a!=null,w=i==="right"&&a!=null,$=X(v,m,`${v}-${o}`,{[`${v}-with-text`]:b,[`${v}-with-text${g}`]:b,[`${v}-dashed`]:!!u,[`${v}-plain`]:!!d,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:y,[`${v}-no-default-orientation-margin-right`]:w},s,l),S=Object.assign(Object.assign({},y&&{marginLeft:a}),w&&{marginRight:a});return p(f__namespace.createElement("div",Object.assign({className:$},h,{role:"separator"}),c&&o!=="vertical"&&f__namespace.createElement("span",{className:`${v}-inner-text`,style:S},c)))},p5=v5;let Fg=function(){function e(t){vn(this,e),this.metaColor=new Kf(t);}return pn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return b5(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),e}();const m5="ant-color-picker",Ln=e=>e instanceof Fg?e:new Fg(e),g5=e=>ci(e.toHsb().a*100),Fl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",b5=(e,t)=>e?Fl(e,t):"",y5=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=()=>{if(n){const i=n.toHsb();i.a=0;const a=Ln(i);r==null||r(a);}};return f.createElement("div",{className:`${t}-clear`,onClick:o})},yS=y5;var lo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(lo||(lo={}));var C5={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"};const S5=C5;var w5=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:S5}))};const x5=f__namespace.forwardRef(w5);function Xf(){return typeof BigInt=="function"}function ui(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function _v(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function $s(e){var t=String(e);if(_v(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Rv(t)?t.length-t.indexOf(".")-1:0}function Cu(e){var t=String(e);if(_v(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Xf()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Cu(this.number):this.origin}}]),e}(),E5=function(){function e(t){if(vn(this,e),V(this,"origin",""),V(this,"negative",void 0),V(this,"integer",void 0),V(this,"decimal",void 0),V(this,"decimalLen",void 0),V(this,"empty",void 0),V(this,"nan",void 0),CS(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(_v(n)&&(n=Number(n)),n=typeof n=="string"?n:Cu(n),Rv(n)){var r=ui(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length;}else this.nan=!0;}return pn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(o),a=r.alignDecimal(o),s=(i+a).toString(),l=ui(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ui("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function dr(e){return Xf()?new E5(e):new $5(e)}function zl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ui(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=dr(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return zl(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}var O5=function(){var t=f.useState(!1),n=K(t,2),r=n[0],o=n[1];return Ht(function(){o(Ws());},[]),r},P5=200,_5=600;function R5(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef();l.current=a;var c=function(b,y){b.preventDefault(),l.current(y);function w(){l.current(y),s.current=setTimeout(w,P5);}s.current=setTimeout(w,_5);},u=function(){clearTimeout(s.current);};f__namespace.useEffect(function(){return u},[]);var d=O5();if(d)return null;var h="".concat(t,"-handler"),v=X(h,"".concat(h,"-up"),V({},"".concat(h,"-up-disabled"),o)),p=X(h,"".concat(h,"-down"),V({},"".concat(h,"-down-disabled"),i)),m={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return f__namespace.createElement("div",{className:"".concat(h,"-wrap")},f__namespace.createElement("span",he({},m,{onMouseDown:function(b){c(b,!0);},"aria-label":"Increase Value","aria-disabled":o,className:v}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",he({},m,{onMouseDown:function(b){c(b,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:p}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function zg(e){var t=typeof e=="number"?Cu(e):ui(e).fullStr,n=t.includes(".");return n?ui(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function M5(e,t){var n=f.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else if(i.startsWith(s))u=s.length;else {var d=s[c-1],h=i.indexOf(d,c-1);h!==-1&&(u=h+1);}e.setSelectionRange(u,u);}catch(v){Cn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message));}}return [r,o]}const T5=function(){var e=f.useRef(0),t=function(){wt.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=wt(function(){n();});}};var I5=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],jg=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Hg=function(t){var n=dr(t);return n.isInvalidate()?null:n},SS=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,i=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,h=e.value,v=e.disabled,p=e.readOnly,m=e.upHandler,g=e.downHandler,b=e.keyboard,y=e.controls,w=y===void 0?!0:y,$=e.stringMode,S=e.parser,C=e.formatter,x=e.precision,P=e.decimalSeparator,R=e.onChange,E=e.onInput,I=e.onPressEnter,O=e.onStep,M=Xe(e,I5),_="".concat(o,"-input"),T=f__namespace.useRef(null),A=f__namespace.useState(!1),N=K(A,2),D=N[0],L=N[1],z=f__namespace.useRef(!1),j=f__namespace.useRef(!1),F=f__namespace.useRef(!1),G=f__namespace.useState(function(){return dr(h??d)}),U=K(G,2),q=U[0],ne=U[1];function Z($e){h===void 0&&ne($e);}var Y=f__namespace.useCallback(function($e,Ee){if(!Ee)return x>=0?x:Math.max($s($e),$s(u))},[x,u]),te=f__namespace.useCallback(function($e){var Ee=String($e);if(S)return S(Ee);var je=Ee;return P&&(je=je.replace(P,".")),je.replace(/[^\w.-]+/g,"")},[S,P]),re=f__namespace.useRef(""),se=f__namespace.useCallback(function($e,Ee){if(C)return C($e,{userTyping:Ee,input:String(re.current)});var je=typeof $e=="number"?Cu($e):$e;if(!Ee){var Re=Y(je,Ee);if(Rv(je)&&(P||Re>=0)){var Je=P||".";je=zl(je,Je,Re);}}return je},[C,Y,P]),de=f__namespace.useState(function(){var $e=d??h;return q.isInvalidate()&&["string","number"].includes(tt($e))?Number.isNaN($e)?"":$e:se(q.toString(),!1)}),ee=K(de,2),ie=ee[0],ce=ee[1];re.current=ie;function le($e,Ee){ce(se($e.isInvalidate()?$e.toString(!1):$e.toString(!Ee),Ee));}var ve=f__namespace.useMemo(function(){return Hg(l)},[l,x]),oe=f__namespace.useMemo(function(){return Hg(s)},[s,x]),pe=f__namespace.useMemo(function(){return !ve||!q||q.isInvalidate()?!1:ve.lessEquals(q)},[ve,q]),ue=f__namespace.useMemo(function(){return !oe||!q||q.isInvalidate()?!1:q.lessEquals(oe)},[oe,q]),ye=M5(T.current,D),Ie=K(ye,2),De=Ie[0],Le=Ie[1],_e=function(Ee){return ve&&!Ee.lessEquals(ve)?ve:oe&&!oe.lessEquals(Ee)?oe:null},qe=function(Ee){return !_e(Ee)},vt=function(Ee,je){var Re=Ee,Je=qe(Re)||Re.isEmpty();if(!Re.isEmpty()&&!je&&(Re=_e(Re)||Re,Je=!0),!p&&!v&&Je){var Et=Re.toString(),Ft=Y(Et,je);return Ft>=0&&(Re=dr(zl(Et,".",Ft)),qe(Re)||(Re=dr(zl(Et,".",Ft,!0)))),Re.equals(q)||(Z(Re),R==null||R(Re.isEmpty()?null:jg($,Re)),h===void 0&&le(Re,je)),Re}return q},et=T5(),Qe=function $e(Ee){if(De(),ce(Ee),!j.current){var je=te(Ee),Re=dr(je);Re.isNaN()||vt(Re,!0);}E==null||E(Ee),et(function(){var Je=Ee;S||(Je=Ee.replace(/。/g,".")),Je!==Ee&&$e(Je);});},ke=function(){j.current=!0;},ze=function(){j.current=!1,Qe(T.current.value);},dt=function(Ee){Qe(Ee.target.value);},at=function(Ee){var je;if(!(Ee&&pe||!Ee&&ue)){z.current=!1;var Re=dr(F.current?zg(u):u);Ee||(Re=Re.negate());var Je=(q||dr(0)).add(Re.toString()),Et=vt(Je,!1);O==null||O(jg($,Et),{offset:F.current?zg(u):u,type:Ee?"up":"down"}),(je=T.current)===null||je===void 0||je.focus();}},be=function(Ee){var je=dr(te(ie)),Re=je;je.isNaN()?Re=q:Re=vt(je,Ee),h!==void 0?le(q,!1):Re.isNaN()||le(Re,!1);},we=function(){z.current=!0;},Ye=function(Ee){var je=Ee.which,Re=Ee.shiftKey;z.current=!0,Re?F.current=!0:F.current=!1,je===J.ENTER&&(j.current||(z.current=!1),be(!1),I==null||I(Ee)),b!==!1&&!j.current&&[J.UP,J.DOWN].includes(je)&&(at(J.UP===je),Ee.preventDefault());},Ue=function(){z.current=!1,F.current=!1;},ft=function(){be(!1),L(!1),z.current=!1;};return qi(function(){q.isInvalidate()||le(q,!1);},[x]),qi(function(){var $e=dr(h);ne($e);var Ee=dr(te(ie));(!$e.equals(Ee)||!z.current||C)&&le($e,z.current);},[h]),qi(function(){C&&Le();},[ie]),f__namespace.createElement("div",{className:X(o,i,(n={},V(n,"".concat(o,"-focused"),D),V(n,"".concat(o,"-disabled"),v),V(n,"".concat(o,"-readonly"),p),V(n,"".concat(o,"-not-a-number"),q.isNaN()),V(n,"".concat(o,"-out-of-range"),!q.isInvalidate()&&!qe(q)),n)),style:a,onFocus:function(){L(!0);},onBlur:ft,onKeyDown:Ye,onKeyUp:Ue,onCompositionStart:ke,onCompositionEnd:ze,onBeforeInput:we},w&&f__namespace.createElement(R5,{prefixCls:o,upNode:m,downNode:g,upDisabled:pe,downDisabled:ue,onStep:at}),f__namespace.createElement("div",{className:"".concat(_,"-wrap")},f__namespace.createElement("input",he({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:u},M,{ref:Pn(T,t),className:_,value:ie,onChange:dt,disabled:v,readOnly:p}))))});SS.displayName="InputNumber";const N5=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:h,colorPrimary:v,controlHeight:p,inputPaddingHorizontal:m,colorBgContainer:g,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:w,controlWidth:$,handleVisible:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Jt(e)),bu(e)),gu(e,t)),{display:"inline-block",width:$,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,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`}},"&:hover":Object.assign({},Xs(e)),"&-focused":Object.assign({},bc(e)),"&-disabled":Object.assign(Object.assign({},xv(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Jt(e)),tS(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}}}}),[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Jt(e)),{width:"100%",height:p-2*n,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),QC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&: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:g,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:S===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{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} ${o}`,transition:`all ${h} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},js()),{color:d,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},A5=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:i,borderRadiusSM:a}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},bu(e)),gu(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Xs(e)),{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:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},D5=mn("InputNumber",e=>{const t=nS(e);return [N5(t),A5(t),cu(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var k5=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=f__namespace.useContext(mt),[o,i]=f__namespace.useState(!1),a=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>a.current);const{className:s,rootClassName:l,size:c,disabled:u,prefixCls:d,addonBefore:h,addonAfter:v,prefix:p,bordered:m=!0,readOnly:g,status:b,controls:y}=e,w=k5(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),$=n("input-number",d),[S,C]=D5($),{compactSize:x,compactItemClassnames:P}=Bs($,r);let R=f__namespace.createElement(x5,{className:`${$}-handler-up-inner`}),E=f__namespace.createElement(aC,{className:`${$}-handler-down-inner`});const I=typeof y=="boolean"?y:void 0;typeof y=="object"&&(R=typeof y.upIcon>"u"?R:f__namespace.createElement("span",{className:`${$}-handler-up-inner`},y.upIcon),E=typeof y.downIcon>"u"?E:f__namespace.createElement("span",{className:`${$}-handler-down-inner`},y.downIcon));const{hasFeedback:O,status:M,isFormItemInput:_,feedbackIcon:T}=f__namespace.useContext(Kr),A=du(M,b),N=Or(U=>{var q;return (q=x??c)!==null&&q!==void 0?q:U}),D=p!=null||O,L=!!(h||v),z=f__namespace.useContext(Bo),j=u??z,F=X({[`${$}-lg`]:N==="large",[`${$}-sm`]:N==="small",[`${$}-rtl`]:r==="rtl",[`${$}-borderless`]:!m,[`${$}-in-form-item`]:_},po($,A),P,C,s,!D&&!L&&l);let G=f__namespace.createElement(SS,Object.assign({ref:a,disabled:j,className:F,upHandler:R,downHandler:E,prefixCls:$,readOnly:g,controls:I},w));if(D){const U=X(`${$}-affix-wrapper`,po(`${$}-affix-wrapper`,A,O),{[`${$}-affix-wrapper-focused`]:o,[`${$}-affix-wrapper-disabled`]:e.disabled,[`${$}-affix-wrapper-sm`]:N==="small",[`${$}-affix-wrapper-lg`]:N==="large",[`${$}-affix-wrapper-rtl`]:r==="rtl",[`${$}-affix-wrapper-readonly`]:g,[`${$}-affix-wrapper-borderless`]:!m},!L&&s,!L&&l,C);G=f__namespace.createElement("div",{className:U,style:e.style,onMouseUp:()=>a.current.focus()},p&&f__namespace.createElement("span",{className:`${$}-prefix`},p),$r(G,{style:null,value:e.value,onFocus:q=>{var ne;i(!0),(ne=e.onFocus)===null||ne===void 0||ne.call(e,q);},onBlur:q=>{var ne;i(!1),(ne=e.onBlur)===null||ne===void 0||ne.call(e,q);}}),O&&f__namespace.createElement("span",{className:`${$}-suffix`},T));}if(L){const U=`${$}-group`,q=`${U}-addon`,ne=h?f__namespace.createElement("div",{className:q},h):null,Z=v?f__namespace.createElement("div",{className:q},v):null,Y=X(`${$}-wrapper`,U,C,{[`${U}-rtl`]:r==="rtl"}),te=X(`${$}-group-wrapper`,{[`${$}-group-wrapper-sm`]:N==="small",[`${$}-group-wrapper-lg`]:N==="large",[`${$}-group-wrapper-rtl`]:r==="rtl"},po(`${$}-group-wrapper`,A,O),C,s,l);G=f__namespace.createElement("div",{className:te,style:e.style},f__namespace.createElement("div",{className:Y},ne&&f__namespace.createElement(Cs,null,f__namespace.createElement(ic,{status:!0,override:!0},ne)),$r(G,{style:null,disabled:j}),Z&&f__namespace.createElement(Cs,null,f__namespace.createElement(ic,{status:!0,override:!0},Z))));}return S(G)}),xS=wS,L5=e=>f__namespace.createElement(qh,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(wS,Object.assign({},e)));xS._InternalPanelDoNotUseOrYouWillBeFired=L5;const qf=xS,F5=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(qf,{className:X(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),i==null||i(d);}})},di=F5,z5=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=f.useState(Ln(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=Ln(c);n||a(u),r==null||r(u);};return f.createElement(di,{value:g5(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},j5=z5,H5=e=>{const{getPrefixCls:t,direction:n}=f.useContext(mt),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[s,l]=$v(a),c=X(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=f.useContext(Kr),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f__namespace.createElement(Kr.Provider,{value:d},e.children)))},B5=H5;function Li(e){return !!(e.addonBefore||e.addonAfter)}function Sd(e){return !!(e.prefix||e.suffix||e.allowClear)}function ns(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o);}}function W5(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}function Yf(e){return typeof e>"u"||e===null?"":String(e)}var $S=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,h=t.disabled,v=t.readOnly,p=t.focused,m=t.triggerFocus,g=t.allowClear,b=t.value,y=t.handleReset,w=t.hidden,$=t.classes,S=t.classNames,C=t.dataAttrs,x=t.styles,P=f.useRef(null),R=function(j){var F;(F=P.current)!==null&&F!==void 0&&F.contains(j.target)&&(m==null||m());},E=function(){var j;if(!g)return null;var F=!h&&!v&&b,G="".concat(i,"-clear-icon"),U=tt(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(ne){return ne.preventDefault()},className:X(G,(j={},V(j,"".concat(G,"-hidden"),!F),V(j,"".concat(G,"-has-suffix"),!!s),j)),role:"button",tabIndex:-1},U)},I=f.cloneElement(o,{value:b,hidden:w,className:X((n=o.props)===null||n===void 0?void 0:n.className,!Sd(t)&&!Li(t)&&u)||null,style:B(B({},(r=o.props)===null||r===void 0?void 0:r.style),!Sd(t)&&!Li(t)?d:{})});if(Sd(t)){var O,M="".concat(i,"-affix-wrapper"),_=X(M,(O={},V(O,"".concat(M,"-disabled"),h),V(O,"".concat(M,"-focused"),p),V(O,"".concat(M,"-readonly"),v),V(O,"".concat(M,"-input-with-clear-btn"),s&&g&&b),O),!Li(t)&&u,$==null?void 0:$.affixWrapper),T=(s||g)&&f.createElement("span",{className:X("".concat(i,"-suffix"),S==null?void 0:S.suffix),style:x==null?void 0:x.suffix},E(),s);I=f.createElement("span",he({className:_,style:Li(t)?void 0:d,hidden:!Li(t)&&w,onClick:R},C==null?void 0:C.affixWrapper,{ref:P}),a&&f.createElement("span",{className:X("".concat(i,"-prefix"),S==null?void 0:S.prefix),style:x==null?void 0:x.prefix},a),f.cloneElement(o,{value:b,hidden:null}),T);}if(Li(t)){var A="".concat(i,"-group"),N="".concat(A,"-addon"),D=X("".concat(i,"-wrapper"),A,$==null?void 0:$.wrapper),L=X("".concat(i,"-group-wrapper"),u,$==null?void 0:$.group);return f.createElement("span",{className:L,style:d,hidden:w},f.createElement("span",{className:D},l&&f.createElement("span",{className:N},l),f.cloneElement(I,{hidden:null}),c&&f.createElement("span",{className:N},c)))}return I},V5=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],U5=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,h=e.className,v=e.maxLength,p=e.suffix,m=e.showCount,g=e.type,b=g===void 0?"text":g,y=e.classes,w=e.classNames,$=e.styles,S=Xe(e,V5),C=en(e.defaultValue,{value:e.value}),x=K(C,2),P=x[0],R=x[1],E=f.useState(!1),I=K(E,2),O=I[0],M=I[1],_=f.useRef(null),T=function(U){_.current&&W5(_.current,U);};f.useImperativeHandle(t,function(){return {focus:T,blur:function(){var U;(U=_.current)===null||U===void 0||U.blur();},setSelectionRange:function(U,q,ne){var Z;(Z=_.current)===null||Z===void 0||Z.setSelectionRange(U,q,ne);},select:function(){var U;(U=_.current)===null||U===void 0||U.select();},input:_.current}}),f.useEffect(function(){M(function(G){return G&&u?!1:G});},[u]);var A=function(U){e.value===void 0&&R(U.target.value),_.current&&ns(_.current,U,r);},N=function(U){a&&U.key==="Enter"&&a(U),s==null||s(U);},D=function(U){M(!0),o==null||o(U);},L=function(U){M(!1),i==null||i(U);},z=function(U){R(""),T(),_.current&&ns(_.current,U,r);},j=function(){var U=xr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",he({autoComplete:n},U,{onChange:A,onFocus:D,onBlur:L,onKeyDown:N,className:X(c,V({},"".concat(c,"-disabled"),u),w==null?void 0:w.input),style:$==null?void 0:$.input,ref:_,size:d,type:b}))},F=function(){var U=Number(v)>0;if(p||m){var q=Yf(P),ne=ge(q).length,Z=tt(m)==="object"?m.formatter({value:q,count:ne,maxLength:v}):"".concat(ne).concat(U?" / ".concat(v):"");return f.createElement(f.Fragment,null,!!m&&f.createElement("span",{className:X("".concat(c,"-show-count-suffix"),V({},"".concat(c,"-show-count-has-suffix"),!!p),w==null?void 0:w.count),style:B({},$==null?void 0:$.count)},Z),p)}return null};return f.createElement($S,he({},S,{prefixCls:c,className:h,inputElement:j(),handleReset:z,value:Yf(P),focused:O,triggerFocus:T,suffix:F(),disabled:u,classes:y,classNames:w,styles:$}))});function ES(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"));}));};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function G5(e){return !!(e.prefix||e.suffix||e.allowClear)}var K5=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:h,className:v,rootClassName:p,onChange:m,classNames:g}=e,b=K5(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:y,direction:w,input:$}=f.useContext(mt),S=y("input",n),C=f.useRef(null),[x,P]=$v(S),{compactSize:R,compactItemClassnames:E}=Bs(S,w),I=Or(ne=>{var Z;return (Z=R??i)!==null&&Z!==void 0?Z:ne}),O=f.useContext(Bo),M=a??O,{status:_,hasFeedback:T,feedbackIcon:A}=f.useContext(Kr),N=du(_,o),D=G5(e)||!!T,L=f.useRef(D);f.useEffect(()=>{D&&L.current,L.current=D;},[D]);const z=ES(C,!0),j=ne=>{z(),s==null||s(ne);},F=ne=>{z(),l==null||l(ne);},G=ne=>{z(),m==null||m(ne);},U=(T||c)&&f.createElement(f.Fragment,null,c,T&&A);let q;return typeof u=="object"&&(u!=null&&u.clearIcon)?q=u:u&&(q={clearIcon:f.createElement(Zh,null)}),x(f.createElement(U5,Object.assign({ref:Pn(t,C),prefixCls:S,autoComplete:$==null?void 0:$.autoComplete},b,{disabled:M,onBlur:j,onFocus:F,suffix:U,allowClear:q,className:X(v,p,E),onChange:G,addonAfter:d&&f.createElement(Cs,null,f.createElement(ic,{override:!0,status:!0},d)),addonBefore:h&&f.createElement(Cs,null,f.createElement(ic,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign({},g),{input:X({[`${S}-sm`]:I==="small",[`${S}-lg`]:I==="large",[`${S}-rtl`]:w==="rtl",[`${S}-borderless`]:!r},!D&&po(S,N),g==null?void 0:g.input,P)}),classes:{affixWrapper:X({[`${S}-affix-wrapper-sm`]:I==="small",[`${S}-affix-wrapper-lg`]:I==="large",[`${S}-affix-wrapper-rtl`]:w==="rtl",[`${S}-affix-wrapper-borderless`]:!r},po(`${S}-affix-wrapper`,N,T),P),wrapper:X({[`${S}-group-rtl`]:w==="rtl"},P),group:X({[`${S}-group-wrapper-sm`]:I==="small",[`${S}-group-wrapper-lg`]:I==="large",[`${S}-group-wrapper-rtl`]:w==="rtl",[`${S}-group-wrapper-disabled`]:M},po(`${S}-group-wrapper`,N,T),P)}})))}),Mv=q5;var Y5={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"};const Z5=Y5;var Q5=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:Z5}))};const J5=f__namespace.forwardRef(Q5);var e4={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"};const t4=e4;var n4=function(t,n){return f__namespace.createElement(er,he({},t,{ref:n,icon:t4}))};const r4=f__namespace.forwardRef(n4);var o4=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?f__namespace.createElement(r4,null):f__namespace.createElement(J5,null),a4={click:"onClick",hover:"onMouseOver"},s4=f__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=f.useState(()=>r?n.visible:!1),a=f.useRef(null);f__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const s=ES(a),l=()=>{const{disabled:S}=e;S||(o&&s(),i(C=>{var x;const P=!C;return typeof n=="object"&&((x=n.onVisibleChange)===null||x===void 0||x.call(n,P)),P}));},c=S=>{const{action:C="click",iconRender:x=i4}=e,P=a4[C]||"",R=x(o),E={[P]:l,className:`${S}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault();},onMouseUp:I=>{I.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(R)?R:f__namespace.createElement("span",null,R),E)},{className:u,prefixCls:d,inputPrefixCls:h,size:v}=e,p=o4(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=f__namespace.useContext(mt),g=m("input",h),b=m("input-password",d),y=n&&c(b),w=X(b,u,{[`${b}-${v}`]:!!v}),$=Object.assign(Object.assign({},xr(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:w,prefixCls:g,suffix:y});return v&&($.size=v),f__namespace.createElement(Mv,Object.assign({ref:Pn(t,a)},$))}),l4=s4;var c4=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:h,onCompositionStart:v,onCompositionEnd:p}=e,m=c4(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:b}=f__namespace.useContext(mt),y=f__namespace.useRef(!1),w=g("input-search",n),$=g("input",r),{compactSize:S}=Bs(w,b),C=Or(z=>{var j;return (j=S??i)!==null&&j!==void 0?j:z}),x=f__namespace.useRef(null),P=z=>{z&&z.target&&z.type==="click"&&d&&d(z.target.value,z),h&&h(z);},R=z=>{var j;document.activeElement===((j=x.current)===null||j===void 0?void 0:j.input)&&z.preventDefault();},E=z=>{var j,F;d&&d((F=(j=x.current)===null||j===void 0?void 0:j.input)===null||F===void 0?void 0:F.value,z);},I=z=>{y.current||c||E(z);},O=typeof s=="boolean"?f__namespace.createElement(sC,null):null,M=`${w}-button`;let _;const T=s||{},A=T.type&&T.type.__ANT_BUTTON===!0;A||T.type==="button"?_=$r(T,Object.assign({onMouseDown:R,onClick:z=>{var j,F;(F=(j=T==null?void 0:T.props)===null||j===void 0?void 0:j.onClick)===null||F===void 0||F.call(j,z),E(z);},key:"enterButton"},A?{className:M,size:C}:{})):_=f__namespace.createElement(Dn,{className:M,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:R,onClick:E,loading:c,icon:O},s),l&&(_=[_,$r(l,{key:"addonAfter"})]);const N=X(w,{[`${w}-rtl`]:b==="rtl",[`${w}-${C}`]:!!C,[`${w}-with-button`]:!!s},o),D=z=>{y.current=!0,v==null||v(z);},L=z=>{y.current=!1,p==null||p(z);};return f__namespace.createElement(Mv,Object.assign({ref:Pn(x,t),onPressEnter:I},m,{size:C,onCompositionStart:D,onCompositionEnd:L,prefixCls:$,addonAfter:_,suffix:a,onChange:P,className:N,disabled:u}))}),d4=u4;var f4=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,h4=["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"],wd={},ir;function v4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&wd[n])return wd[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=h4.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(wd[n]=l),l}function p4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ir||(ir=document.createElement("textarea"),ir.setAttribute("tab-index","-1"),ir.setAttribute("aria-hidden","true"),document.body.appendChild(ir)),e.getAttribute("wrap")?ir.setAttribute("wrap",e.getAttribute("wrap")):ir.removeAttribute("wrap");var o=v4(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;ir.setAttribute("style","".concat(l,";").concat(f4)),ir.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,h=ir.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=i),n!==null||r!==null){ir.value=" ";var v=ir.scrollHeight-i;n!==null&&(c=v*n,s==="border-box"&&(c=c+i+a),h=Math.max(c,h)),r!==null&&(u=v*r,s==="border-box"&&(u=u+i+a),d=h>u?"":"hidden",h=Math.min(u,h));}var p={height:h,overflowY:d,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var m4=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],xd=0,$d=1,Ed=2,g4=f__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var h=Xe(n,m4),v=en(o,{value:i,postState:function(U){return U??""}}),p=K(v,2),m=p[0],g=p[1],b=function(U){g(U.target.value),d==null||d(U);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var w=f__namespace.useMemo(function(){return a&&tt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),$=K(w,2),S=$[0],C=$[1],x=!!a,P=function(){try{if(document.activeElement===y.current){var U=y.current,q=U.selectionStart,ne=U.selectionEnd,Z=U.scrollTop;y.current.setSelectionRange(q,ne),y.current.scrollTop=Z;}}catch{}},R=f__namespace.useState(Ed),E=K(R,2),I=E[0],O=E[1],M=f__namespace.useState(),_=K(M,2),T=_[0],A=_[1],N=function(){O(xd);};Ht(function(){x&&N();},[i,S,C,x]),Ht(function(){if(I===xd)O($d);else if(I===$d){var G=p4(y.current,!1,S,C);O(Ed),A(G);}else P();},[I]);var D=f__namespace.useRef(),L=function(){wt.cancel(D.current);},z=function(U){I===Ed&&(s==null||s(U),a&&(L(),D.current=wt(function(){N();})));};f__namespace.useEffect(function(){return L},[]);var j=x?T:null,F=B(B({},c),j);return (I===xd||I===$d)&&(F.overflowY="hidden",F.overflowX="hidden"),f__namespace.createElement(go,{onResize:z,disabled:!(a||s)},f__namespace.createElement("textarea",he({},h,{ref:y,style:F,className:X(r,l,V({},"".concat(r,"-disabled"),u)),disabled:u,value:m,onChange:b})))}),b4=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles"];function OS(e,t){return ge(e||"").slice(0,t).join("")}function Bg(e,t,n,r){var o=n;return e?o=OS(n,r):ge(t||"").lengthr&&(o=t),o}var y4=f.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,h=e.suffix,v=e.prefixCls,p=v===void 0?"rc-textarea":v,m=e.classes,g=e.showCount,b=e.className,y=e.style,w=e.disabled,$=e.hidden,S=e.classNames,C=e.styles,x=Xe(e,b4),P=en(r,{value:o,defaultValue:r}),R=K(P,2),E=R[0],I=R[1],O=f.useRef(null),M=f.useState(!1),_=K(M,2),T=_[0],A=_[1],N=f.useState(!1),D=K(N,2),L=D[0],z=D[1],j=f.useRef(),F=f.useRef(0),G=function(){O.current.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:O.current,focus:G,blur:function(){O.current.textArea.blur();}}}),f.useEffect(function(){A(function(ve){return !w&&ve});},[w]);var U=Number(c)>0,q=function(oe){z(!0),j.current=E,F.current=oe.currentTarget.selectionStart,u==null||u(oe);},ne=function(oe){z(!1);var pe=oe.currentTarget.value;if(U){var ue,ye=F.current>=c+1||F.current===((ue=j.current)===null||ue===void 0?void 0:ue.length);pe=Bg(ye,j.current,pe,c);}pe!==E&&(I(pe),ns(oe.currentTarget,oe,s,pe)),d==null||d(oe);},Z=function(oe){var pe=oe.target.value;if(!L&&U){var ue=oe.target.selectionStart>=c+1||oe.target.selectionStart===pe.length||!oe.target.selectionStart;pe=Bg(ue,E,pe,c);}I(pe),ns(oe.currentTarget,oe,s,pe);},Y=function(oe){var pe=x.onPressEnter,ue=x.onKeyDown;oe.key==="Enter"&&pe&&pe(oe),ue==null||ue(oe);},te=function(oe){A(!0),i==null||i(oe);},re=function(oe){A(!1),a==null||a(oe);},se=function(oe){I(""),G(),ns(O.current.textArea,oe,s);},de=Yf(E);!L&&U&&o==null&&(de=OS(de,c));var ee=h,ie;if(g){var ce=ge(de).length;tt(g)==="object"?ie=g.formatter({value:de,count:ce,maxLength:c}):ie="".concat(ce).concat(U?" / ".concat(c):""),ee=f.createElement(f.Fragment,null,ee,f.createElement("span",{className:X("".concat(p,"-data-count"),S==null?void 0:S.count),style:C==null?void 0:C.count},ie));}var le=f.createElement($S,{value:de,allowClear:l,handleReset:se,suffix:ee,prefixCls:p,classes:{affixWrapper:X(m==null?void 0:m.affixWrapper,(n={},V(n,"".concat(p,"-show-count"),g),V(n,"".concat(p,"-textarea-allow-clear"),l),n))},disabled:w,focused:T,className:b,style:y,dataAttrs:{affixWrapper:{"data-count":typeof ie=="string"?ie:void 0}},hidden:$,inputElement:f.createElement(g4,he({},x,{onKeyDown:Y,onChange:Z,onFocus:te,onBlur:re,onCompositionStart:q,onCompositionEnd:ne,className:S==null?void 0:S.textarea,style:B(B({},C==null?void 0:C.textarea),{},{resize:y==null?void 0:y.resize}),disabled:w,prefixCls:p,ref:O}))});return le}),C4=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=C4(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(mt),v=Or(o),p=f__namespace.useContext(Bo),m=i??p,{status:g,hasFeedback:b,feedbackIcon:y}=f__namespace.useContext(Kr),w=du(g,a),$=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var R;return {resizableTextArea:(R=$.current)===null||R===void 0?void 0:R.resizableTextArea,focus:E=>{var I,O;X5((O=(I=$.current)===null||I===void 0?void 0:I.resizableTextArea)===null||O===void 0?void 0:O.textArea,E);},blur:()=>{var E;return (E=$.current)===null||E===void 0?void 0:E.blur()}}});const S=d("input",n);let C;typeof s=="object"&&(s!=null&&s.clearIcon)?C=s:s&&(C={clearIcon:f__namespace.createElement(Zh,null)});const[x,P]=$v(S);return x(f__namespace.createElement(y4,Object.assign({},u,{disabled:m,allowClear:C,classes:{affixWrapper:X(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:h==="rtl",[`${S}-affix-wrapper-borderless`]:!r,[`${S}-affix-wrapper-sm`]:v==="small",[`${S}-affix-wrapper-lg`]:v==="large",[`${S}-textarea-show-count`]:l},po(`${S}-affix-wrapper`,w),P)},classNames:Object.assign(Object.assign({},c),{textarea:X({[`${S}-borderless`]:!r,[`${S}-sm`]:v==="small",[`${S}-lg`]:v==="large"},po(S,w),P,c==null?void 0:c.textarea)}),prefixCls:S,suffix:b&&f__namespace.createElement("span",{className:`${S}-textarea-suffix`},y),showCount:l,ref:$})))}),w4=S4,qs=Mv;qs.Group=B5;qs.Search=d4;qs.TextArea=w4;qs.Password=l4;const x4=qs,$4=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Wg=e=>$4.test(`#${e}`),E4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=f.useState(n==null?void 0:n.toHex());f.useEffect(()=>{const l=n==null?void 0:n.toHex();Wg(l)&&n&&a(Fl(l));},[n]);const s=l=>{const c=l.target.value;a(Fl(c)),Wg(Fl(c,!0))&&(r==null||r(Ln(c)));};return f.createElement(x4,{className:o,value:i==null?void 0:i.toUpperCase(),prefix:"#",onChange:s,size:"small"})},O4=E4,P4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=f.useState(Ln(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=Ln(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(di,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>ci(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(di,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${ci(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(di,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${ci(l||0)}%`,onChange:l=>s(Number(l),"b")}))},_4=P4,R4=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=f.useState(Ln(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const d=Ln(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(di,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(di,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(di,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},M4=R4,T4=[lo.hex,lo.hsb,lo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),I4=e=>{const{prefixCls:t,format:n,value:r,onFormatChange:o,onChange:i}=e,[a,s]=en(lo.hex,{value:n,onChange:o}),l=`${t}-input`,c=d=>{s(d);},u=f.useMemo(()=>{const d={value:r,prefixCls:t,onChange:i};switch(a){case lo.hsb:return f.createElement(_4,Object.assign({},d));case lo.rgb:return f.createElement(M4,Object.assign({},d));case lo.hex:default:return f.createElement(O4,Object.assign({},d))}},[a,t,r,i]);return f.createElement("div",{className:`${l}-container`},f.createElement(KD,{value:a,bordered:!1,getPopupContainer:d=>d,popupMatchSelectWidth:68,placement:"bottomRight",onChange:c,className:`${t}-format-select`,size:"small",options:T4}),f.createElement("div",{className:l},u),f.createElement(j5,{prefixCls:t,value:r,onChange:i}))},N4=I4,{Panel:A4}=fS,Od=e=>e.map(t=>(t.colors=t.colors.map(Ln),t)),D4=e=>{const{r:t,g:n,b:r,a:o}=e.toRgb();return o<=.5?!0:t*.299+n*.587+r*.114>192},k4=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Uh("ColorPicker"),[a]=en(Od(n),{value:Od(n),postState:Od}),s=`${t}-presets`,l=f.useMemo(()=>a.map(u=>`panel-${u.label}`),[a]),c=u=>{o==null||o(u);};return f.createElement("div",{className:s},f.createElement(fS,{defaultActiveKey:l,ghost:!0},a.map(u=>{var d;return f.createElement(A4,{header:f.createElement("div",{className:`${s}-label`},u==null?void 0:u.label),key:`panel-${u==null?void 0:u.label}`},f.createElement("div",{className:`${s}-items`},Array.isArray(u==null?void 0:u.colors)&&((d=u.colors)===null||d===void 0?void 0:d.length)>0?u.colors.map(h=>f.createElement(Pv,{key:`preset-${h.toHexString()}`,color:Ln(h).toRgbString(),prefixCls:t,className:X(`${s}-color`,{[`${s}-color-checked`]:h.toHexString()===(r==null?void 0:r.toHexString()),[`${s}-color-bright`]:D4(h)}),onClick:()=>c(h)})):f.createElement("span",{className:`${s}-empty`},i.presetEmpty)))})))},L4=k4;var F4=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,allowClear:n,presets:r,onChange:o,onClear:i,onChangeComplete:a,color:s}=e,l=F4(e,["prefixCls","allowClear","presets","onChange","onClear","onChangeComplete","color"]),c=`${t}-inner-panel`,u=d=>f.createElement("div",{className:c},n&&f.createElement(yS,Object.assign({prefixCls:t,value:s,onChange:h=>{o==null||o(h),i==null||i(!0);}},l)),d,f.createElement(N4,Object.assign({value:s,onChange:o,prefixCls:t},l)),Array.isArray(r)&&f.createElement(f.Fragment,null,f.createElement(p5,{className:`${c}-divider`}),f.createElement(L4,{value:s,presets:r,prefixCls:t,onChange:o})));return f.createElement(u5,{prefixCls:t,value:s==null?void 0:s.toHsb(),onChange:(d,h)=>o==null?void 0:o(d,h,!0),panelRender:u,onChangeComplete:a})},j4=z4;var H4=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,className:s}=e,l=H4(e,["color","prefixCls","open","colorCleared","disabled","className"]),c=`${r}-trigger`,u=f.useMemo(()=>i?f.createElement(yS,{prefixCls:r}):f.createElement(Pv,{prefixCls:r,color:n.toRgbString()}),[n,i,r]);return f.createElement("div",Object.assign({ref:t,className:X(c,s,{[`${c}-active`]:o,[`${c}-disabled`]:a})},l),u)}),W4=B4;function Vg(e){return e!==void 0}const V4=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=f.useState(()=>{let a;return Vg(r)?a=r:Vg(n)?a=n:a=e,Ln(a||"")});return f.useEffect(()=>{r&&i(Ln(r));},[r]),[o,i]},U4=V4,Ug="#EEE",PS=e=>({backgroundImage:`conic-gradient(${Ug} 0 25%, transparent 0 50%, ${Ug} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),G4=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},PS("50%")),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},_S=G4,K4=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:v,lineWidth:p}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:v}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${i}px`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:u+a,fontSize:r,lineHeight:`${l}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,lineHeight:`${l-2*p}px`},[`${n}-input-prefix`]:{color:h}}}}}},X4=K4,q4=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d,colorPickerPreviewSize:h}=e;return Object.assign({[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":PS(`${d}px`),marginBottom:i},[`${t}-slider-container`]:{display:"flex",gap:i,[`${t}-slider-group`]:{flex:1}}},_S(e,h))},Y4=q4,Z4=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:h,colorTextTertiary:v,marginXXS:p,paddingXS:m}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:a*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${m}px 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:p*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:i+4*c,height:i+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:i/13*5,height:i/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:v}}}}},"&-empty":{fontSize:a,color:r}}}},Q4=Z4,J4=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),ez=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Gg=(e,t)=>{const{componentCls:n,borderRadiusSM:r,lineWidth:o,colorSplit:i,red6:a}=e;return {[`${n}-clear`]:{width:t,height:t,borderRadius:r,border:`${o}px solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden","&::after":{content:'""',position:"absolute",insetInlineEnd:o,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:a}}}},tz=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorBgContainerDisabled:s,borderRadius:l,marginXS:c,marginSM:u,controlHeight:d,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:p,lineWidth:m,colorBorder:g}=e;return [{[t]:Object.assign({[`${t}-panel`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,[`${t}-inner-panel`]:{[`${t}-clear`]:{marginInlineStart:"auto",marginBottom:c},"&-divider":{margin:`${u}px 0 ${c}px`}}},Y4(e)),X4(e)),Q4(e)),Gg(e,p)),"&-trigger":Object.assign(Object.assign({width:d,height:d,borderRadius:l,border:`${m}px solid ${g}`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:i,"&-active":Object.assign(Object.assign({},J4(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:v}}},Gg(e,h)),_S(e,h))},ez(e))}]},nz=mn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=At(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:r*2+n});return [tz(o)]}),Tv=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:s="click",open:l,disabled:c,placement:u="bottomLeft",arrow:d=!0,style:h,className:v,rootClassName:p,styles:m,onFormatChange:g,onChange:b,onOpenChange:y,getPopupContainer:w,autoAdjustOverflow:$=!0}=e,{getPrefixCls:S,direction:C}=f.useContext(mt),{token:x}=vc.useToken(),[P,R]=U4(x.colorPrimary,{value:t,defaultValue:n}),[E,I]=en(!1,{value:l,postState:Z=>!c&&Z,onChange:y}),[O,M]=f.useState(!1),_=S("color-picker",m5),[T,A]=nz(_),N={[`${_}-rtl`]:C},D=X(p,N),L=X(D,v,A),z=X(_,N),j=f.useRef(!0),F=(Z,Y,te)=>{let re=Ln(Z);if(O){M(!1);const se=re.toHsb();P.toHsb().a===0&&Y!=="alpha"&&(se.a=1,re=Ln(se));}t||R(re),te&&(j.current=!1),b==null||b(re,re.toHexString());},G=Z=>{M(Z);},U=()=>{j.current=!0;},q={open:E,trigger:s,placement:u,arrow:d,rootClassName:p,getPopupContainer:w,autoAdjustOverflow:$},ne={prefixCls:_,color:P,allowClear:o,colorCleared:O,disabled:c,presets:i,format:r,onFormatChange:g};return f.useEffect(()=>{O&&I(!1);},[O]),T(f.createElement(yC,Object.assign({style:m==null?void 0:m.popup,onOpenChange:Z=>{j.current&&I(Z);},content:f.createElement(j4,Object.assign({},ne,{onChange:F,onChangeComplete:U,onClear:G})),overlayClassName:z},q),a||f.createElement(W4,{open:E,className:L,style:h,color:P,prefixCls:_,disabled:c,colorCleared:O})))},rz=jy(Tv,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Tv._InternalPanelDoNotUseOrYouWillBeFired=rz;const oz=Tv,iz=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:i,marginXXS:a,marginXS:s,fontSize:l,fontWeightStrong:c}=e;return {[t]:{zIndex:r,color:o,[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:l,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:c,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:a}},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:s}}}}},RS=mn("Popconfirm",e=>iz(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var az=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=f__namespace.createElement(wy,null),showCancel:u=!0,close:d,onConfirm:h,onCancel:v,onPopupClick:p}=e,{getPrefixCls:m}=f__namespace.useContext(mt),[g]=Uh("Popconfirm",ha.Popconfirm),b=va(o),y=va(i);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:p},f__namespace.createElement("div",{className:`${t}-message`},c&&f__namespace.createElement("span",{className:`${t}-message-icon`},c),f__namespace.createElement("div",{className:`${t}-message-text`},b&&f__namespace.createElement("div",{className:X(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(Dn,Object.assign({onClick:v,size:"small"},r),a??(g==null?void 0:g.cancelText)),f__namespace.createElement(KI,{buttonProps:Object.assign(Object.assign({size:"small"},Iy(l)),n),actionFn:h,close:d,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(g==null?void 0:g.okText))))};function sz(e){const{prefixCls:t,placement:n,className:r,style:o}=e,i=az(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f__namespace.useContext(mt),s=a("popconfirm",t),[l]=RS(s);return l(f__namespace.createElement(gC,{placement:n,className:X(s,r),style:o,content:f__namespace.createElement(MS,Object.assign({prefixCls:s},i))}))}var lz=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=f__namespace.createElement(wy,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=lz(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=f__namespace.useContext(mt),[v,p]=en(!1,{value:e.open,defaultValue:e.defaultOpen}),m=(P,R)=>{p(P,!0),u==null||u(P),c==null||c(P,R);},g=P=>{m(!1,P);},b=P=>{var R;return (R=e.onConfirm)===null||R===void 0?void 0:R.call(globalThis,P)},y=P=>{var R;m(!1,P),(R=e.onCancel)===null||R===void 0||R.call(globalThis,P);},w=P=>{P.keyCode===J.ESC&&v&&m(!1,P);},$=P=>{const{disabled:R=!1}=e;R||m(P);},S=h("popconfirm",n),C=X(S,l),[x]=RS(S);return x(f__namespace.createElement(yC,Object.assign({},xr(d,["title"]),{trigger:o,placement:r,onOpenChange:$,open:v,ref:t,overlayClassName:C,content:f__namespace.createElement(MS,Object.assign({okType:i,icon:a},e,{prefixCls:S,close:g,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),$r(s,{onKeyDown:P=>{var R,E;f__namespace.isValidElement(s)&&((E=s==null?void 0:(R=s.props).onKeyDown)===null||E===void 0||E.call(R,P)),w(P);}})))});TS._InternalPanelDoNotUseOrYouWillBeFired=sz;const cz=TS;var Ci=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Zf(e,t,n){return (e-t)/(n-t)}function Iv(e,t,n,r){var o=Zf(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function Vi(e,t){return Array.isArray(e)?e[t]:e}var uz=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],dz=f__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,h=Xe(e,uz),v=f__namespace.useContext(Ci),p=v.min,m=v.max,g=v.direction,b=v.disabled,y=v.keyboard,w=v.range,$=v.tabIndex,S=v.ariaLabelForHandle,C=v.ariaLabelledByForHandle,x=v.ariaValueTextFormatterForHandle,P="".concat(o,"-handle"),R=function(_){b||s(_,a);},E=function(_){if(!b&&y){var T=null;switch(_.which||_.keyCode){case J.LEFT:T=g==="ltr"||g==="btt"?-1:1;break;case J.RIGHT:T=g==="ltr"||g==="btt"?1:-1;break;case J.UP:T=g!=="ttb"?1:-1;break;case J.DOWN:T=g!=="ttb"?-1:1;break;case J.HOME:T="min";break;case J.END:T="max";break;case J.PAGE_UP:T=2;break;case J.PAGE_DOWN:T=-2;break}T!==null&&(_.preventDefault(),d(T,a));}},I=Iv(g,i,p,m),O=f__namespace.createElement("div",he({ref:t,className:X(P,(n={},V(n,"".concat(P,"-").concat(a+1),w),V(n,"".concat(P,"-dragging"),u),n)),style:B(B({},I),l),onMouseDown:R,onTouchStart:R,onKeyDown:E,tabIndex:b?null:Vi($,a),role:"slider","aria-valuemin":p,"aria-valuemax":m,"aria-valuenow":i,"aria-disabled":b,"aria-label":Vi(S,a),"aria-labelledby":Vi(C,a),"aria-valuetext":(r=Vi(x,a))===null||r===void 0?void 0:r(i)},h));return c&&(O=c(O,{index:a,prefixCls:o,value:i,dragging:u})),O}),fz=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],hz=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Xe(e,fz),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(h){var v;(v=u.current[h])===null||v===void 0||v.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,a.map(function(d,h){return f__namespace.createElement(dz,he({ref:function(p){p?u.current[h]=p:delete u.current[h];},dragging:l===h,prefixCls:n,style:Vi(r,h),key:h,value:d,valueIndex:h,onStartMove:o,onOffsetChange:i,render:s},c))}))});function Kg(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function vz(e,t,n,r,o,i,a,s,l){var c=f__namespace.useState(null),u=K(c,2),d=u[0],h=u[1],v=f__namespace.useState(-1),p=K(v,2),m=p[0],g=p[1],b=f__namespace.useState(n),y=K(b,2),w=y[0],$=y[1],S=f__namespace.useState(n),C=K(S,2),x=C[0],P=C[1],R=f__namespace.useRef(null),E=f__namespace.useRef(null);f__namespace.useEffect(function(){m===-1&&$(n);},[n,m]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",R.current),document.removeEventListener("mouseup",E.current),document.removeEventListener("touchmove",R.current),document.removeEventListener("touchend",E.current);}},[]);var I=function(N,D){w.some(function(L,z){return L!==N[z]})&&(D!==void 0&&h(D),$(N),a(N));},O=function(N,D){if(N===-1){var L=x[0],z=x[x.length-1],j=r-L,F=o-z,G=D*(o-r);G=Math.max(G,j),G=Math.min(G,F);var U=i(L+G);G=U-L;var q=x.map(function(te){return te+G});I(q);}else {var ne=(o-r)*D,Z=ge(w);Z[N]=x[N];var Y=l(Z,ne,N,"dist");I(Y.values,Y.value);}},M=f__namespace.useRef(O);M.current=O;var _=function(N,D){N.stopPropagation();var L=n[D];g(D),h(L),P(n);var z=Kg(N),j=z.pageX,F=z.pageY,G=function(ne){ne.preventDefault();var Z=Kg(ne),Y=Z.pageX,te=Z.pageY,re=Y-j,se=te-F,de=e.current.getBoundingClientRect(),ee=de.width,ie=de.height,ce;switch(t){case"btt":ce=-se/ie;break;case"ttb":ce=se/ie;break;case"rtl":ce=-re/ee;break;default:ce=re/ee;}M.current(D,ce);},U=function q(ne){ne.preventDefault(),document.removeEventListener("mouseup",q),document.removeEventListener("mousemove",G),document.removeEventListener("touchend",q),document.removeEventListener("touchmove",G),R.current=null,E.current=null,g(-1),s();};document.addEventListener("mouseup",U),document.addEventListener("mousemove",G),document.addEventListener("touchend",U),document.addEventListener("touchmove",G),R.current=G,E.current=U;},T=f__namespace.useMemo(function(){var A=ge(n).sort(function(D,L){return D-L}),N=ge(w).sort(function(D,L){return D-L});return A.every(function(D,L){return D===N[L]})?w:n},[n,w]);return [m,d,T,_]}function pz(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=f__namespace.useContext(Ci),l=s.direction,c=s.min,u=s.max,d=s.disabled,h=s.range,v="".concat(t,"-track"),p=Zf(r,c,u),m=Zf(o,c,u),g=function(w){!d&&a&&a(w,-1);},b={};switch(l){case"rtl":b.right="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");break;case"btt":b.bottom="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;case"ttb":b.top="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;default:b.left="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");}return f__namespace.createElement("div",{className:X(v,h&&"".concat(v,"-").concat(i+1)),style:B(B({},b),n),onMouseDown:g,onTouchStart:g})}function mz(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=f__namespace.useContext(Ci),s=a.included,l=a.range,c=a.min,u=f__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var d=o??c,h=r[0];return [{start:Math.min(d,h),end:Math.max(d,h)}]}for(var v=[],p=0;p3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var y,w=p[g],$=w+m,S=[];r.forEach(function(E){S.push(E.value);}),S.push(e,t),S.push(s(w));var C=m>0?1:-1;b==="unit"?S.push(s(w+C*n)):S.push(s($)),S=S.filter(function(E){return E!==null}).filter(function(E){return m<0?E<=w:E>=w}),b==="unit"&&(S=S.filter(function(E){return E!==w}));var x=b==="unit"?w:$;y=S[0];var P=Math.abs(y-x);if(S.forEach(function(E){var I=Math.abs(E-x);I1){var R=ge(p);return R[g]=y,v(R,m-C,g,b)}return y}else {if(m==="min")return e;if(m==="max")return t}},u=function(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p[g],w=c(p,m,g,b);return {value:w,changed:w!==y}},d=function(p){return i===null&&p===0||typeof i=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(l),w=y[g],$=c(y,m,g,b);if(y[g]=$,o===!1){var S=i||0;g>0&&y[g-1]!==w&&(y[g]=Math.max(y[g],y[g-1]+S)),g0;R-=1)for(var E=!0;d(y[R]-y[R-1])&&E;){var I=u(y,-1,R-1);y[R-1]=I.value,E=I.changed;}for(var O=y.length-1;O>0;O-=1)for(var M=!0;d(y[O]-y[O-1])&&M;){var _=u(y,-1,O-1);y[O-1]=_.value,M=_.changed;}for(var T=0;T=0?_:!1},[_,pe]),ye=f__namespace.useMemo(function(){var Ae=Object.keys(ne||{});return Ae.map(function(Ge){var Me=ne[Ge],$t={value:Number(Ge)};return Me&&tt(Me)==="object"&&!f__namespace.isValidElement(Me)&&("label"in Me||"style"in Me)?($t.style=Me.style,$t.label=Me.label):$t.label=Me,$t}).filter(function(Ge){var Me=Ge.label;return Me||typeof Me=="number"}).sort(function(Ge,Me){return Ge.value-Me.value})},[ne]),Ie=Sz(ve,oe,pe,ye,O,ue),De=K(Ie,2),Le=De[0],_e=De[1],qe=en(S,{value:$}),vt=K(qe,2),et=vt[0],Qe=vt[1],ke=f__namespace.useMemo(function(){var Ae=et==null?[]:Array.isArray(et)?et:[et],Ge=K(Ae,1),Me=Ge[0],$t=Me===void 0?ve:Me,yt=et===null?[]:[$t];if(C){if(yt=ge(Ae),x||et===void 0){var Zt=x>=0?x+1:2;for(yt=yt.slice(0,Zt);yt.length=0&&ie.current.focus(Ae);}$e(null);},[ft]);var je=f__namespace.useMemo(function(){return T&&pe===null?!1:T},[T,pe]),Re=function(){E==null||E(dt(ze.current));},Je=vz(ce,le,ke,ve,oe,Le,at,Re,_e),Et=K(Je,4),Ft=Et[0],kt=Et[1],Ne=Et[2],fe=Et[3],ae=function(Ge,Me){fe(Ge,Me),R==null||R(dt(ze.current));},Se=Ft!==-1;f__namespace.useEffect(function(){if(!Se){var Ae=ke.lastIndexOf(kt);ie.current.focus(Ae);}},[Se]);var xe=f__namespace.useMemo(function(){return ge(Ne).sort(function(Ae,Ge){return Ae-Ge})},[Ne]),Ze=f__namespace.useMemo(function(){return C?[xe[0],xe[xe.length-1]]:[ve,xe[0]]},[xe,C,ve]),pt=K(Ze,2),xt=pt[0],Xt=pt[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){ie.current.focus(0);},blur:function(){var Ge=document,Me=Ge.activeElement;ce.current.contains(Me)&&(Me==null||Me.blur());}}}),f__namespace.useEffect(function(){d&&ie.current.focus(0);},[]);var Vt=f__namespace.useMemo(function(){return {min:ve,max:oe,direction:le,disabled:l,keyboard:u,step:pe,included:L,includedStart:xt,includedEnd:Xt,range:C,tabIndex:re,ariaLabelForHandle:se,ariaLabelledByForHandle:de,ariaValueTextFormatterForHandle:ee}},[ve,oe,le,l,u,pe,L,xt,Xt,C,re,se,de,ee]);return f__namespace.createElement(Ci.Provider,{value:Vt},f__namespace.createElement("div",{ref:ce,className:X(o,i,(n={},V(n,"".concat(o,"-disabled"),l),V(n,"".concat(o,"-vertical"),N),V(n,"".concat(o,"-horizontal"),!N),V(n,"".concat(o,"-with-marks"),ye.length),n)),style:a,onMouseDown:we},f__namespace.createElement("div",{className:"".concat(o,"-rail"),style:G}),f__namespace.createElement(mz,{prefixCls:o,style:j,values:xe,startPoint:z,onStartMove:je?ae:null}),f__namespace.createElement(Cz,{prefixCls:o,marks:ye,dots:Z,style:U,activeStyle:q}),f__namespace.createElement(hz,{ref:ie,prefixCls:o,style:F,values:Ne,draggingIndex:Ft,onStartMove:ae,onOffsetChange:Ee,onFocus:h,onBlur:v,handleRender:Y}),f__namespace.createElement(bz,{prefixCls:o,marks:ye,onClick:be})))});const xz=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function i(){wt.cancel(o.current),o.current=null;}function a(){o.current=wt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return f__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),f__namespace.createElement(fu,Object.assign({ref:Pn(r,t)},e))}),$z=xz,Ez=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:i,colorFillContentHover:a}=e;return {[t]:Object.assign(Object.assign({},Jt(e)),{position:"relative",height:n,margin:`${i}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${o}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,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.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, height ${e.motionDurationMid}, box-shadow ${e.motionDurationMid} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,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:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,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 nn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}}})}},IS=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return {[a]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[c]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:o,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},Oz=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},IS(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Pz=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},IS(e,!1)),{height:"100%"})}},_z=mn("Slider",e=>{const t=At(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [Ez(t),Oz(t),Pz(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i}});var Rz=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);otypeof e=="number"?e.toString():"",Tz=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:u}=e,d=Rz(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:h,direction:v,getPopupContainer:p}=f.useContext(mt),[m,g]=f.useState({}),b=(E,I)=>{g(O=>Object.assign(Object.assign({},O),{[E]:I}));},y=(E,I)=>E||(I?v==="rtl"?"left":"right":"top"),w=h("slider",n),[$,S]=_z(w),C=X(o,i,{[`${w}-rtl`]:v==="rtl"},S);v==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[x,P]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),R=(E,I)=>{var O;const{index:M,dragging:_}=I,{tooltip:T={},vertical:A}=e,N=Object.assign({},T),{open:D,placement:L,getPopupContainer:z,prefixCls:j,formatter:F}=N;let G;F||F===null?G=F:s||s===null?G=s:G=Mz;const U=G?m[M]||_:!1,q=(O=D??l)!==null&&O!==void 0?O:D===void 0&&U,ne=Object.assign(Object.assign({},E.props),{onMouseEnter:()=>b(M,!0),onMouseLeave:()=>b(M,!1)}),Z=h("tooltip",j??a);return f.createElement($z,{prefixCls:Z,title:G?G(I.value):"",open:q,placement:y(L??u,A),key:M,overlayClassName:`${w}-tooltip`,getPopupContainer:z||c||p},f.cloneElement(E,ne))};return $(f.createElement(wz,Object.assign({},d,{step:d.step,range:x,draggableTrack:P,className:C,ref:t,prefixCls:w,handleRender:R})))}),Iz=Tz;function Nz(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Pl=(e,t,n)=>{const r=Nz(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Az=e=>oy(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Dz=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return {[o]:Object.assign(Object.assign({},Jt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${o}-close-icon`]:{marginInlineStart:a,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:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},NS=mn("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:o}=e,i=Math.round(t*n),a=e.fontSizeSM,s=i-r*2,l=e.colorFillQuaternary,c=e.colorText,u=At(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:o-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [Dz(u),Az(u),Pl(u,"success","Success"),Pl(u,"processing","Info"),Pl(u,"error","Error"),Pl(u,"warning","Warning")]});var kz=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=kz(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(mt),l=v=>{o==null||o(!r),i==null||i(v);},c=s("tag",t),[u,d]=NS(c),h=X(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:r},n,d);return u(f__namespace.createElement("span",Object.assign({},a,{className:h,onClick:l})))},Fz=Lz;var zz=globalThis&&globalThis.__rest||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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d=!1,bordered:h=!0}=e,v=zz(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:p,direction:m}=f__namespace.useContext(mt),[g,b]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in v&&b(v.visible);},[v.visible]);const y=hC(l)||hk(l),w=Object.assign({backgroundColor:l&&!y?l:void 0},i),$=p("tag",n),[S,C]=NS($),x=X($,{[`${$}-${l}`]:y,[`${$}-has-color`]:l&&!y,[`${$}-hidden`]:!g,[`${$}-rtl`]:m==="rtl",[`${$}-borderless`]:!h},r,o,C),P=_=>{_.stopPropagation(),c==null||c(_),!_.defaultPrevented&&b(!1);},R=f__namespace.useMemo(()=>d?u?f__namespace.createElement("span",{className:`${$}-close-icon`,onClick:P},u):f__namespace.createElement(Qh,{className:`${$}-close-icon`,onClick:P}):null,[d,u,$,P]),E=typeof v.onClick=="function"||a&&a.type==="a",I=s||null,O=I?f__namespace.createElement(f__namespace.Fragment,null,I,f__namespace.createElement("span",null,a)):a,M=f__namespace.createElement("span",Object.assign({},v,{ref:t,className:x,style:w}),O,R);return S(E?f__namespace.createElement(Ey,null,M):M)},AS=f__namespace.forwardRef(jz);AS.CheckableTag=Fz;const ka=AS;var Su={},DS={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports;})(DS);var Nv=DS.exports,wu={};Object.defineProperty(wu,"__esModule",{value:!0});wu.default=void 0;var Hz={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};wu.default=Hz;var xu={},Ys={},$u={};Object.defineProperty($u,"__esModule",{value:!0});$u.default=void 0;var Bz={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},Wz=Bz;$u.default=Wz;var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.default=void 0;const Vz={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var Uz=Vz;Zs.default=Uz;var kS=Nv.default;Object.defineProperty(Ys,"__esModule",{value:!0});Ys.default=void 0;var Gz=kS($u),Kz=kS(Zs);const LS={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Gz.default),timePickerLocale:Object.assign({},Kz.default)};LS.lang.ok="确定";var Xz=LS;Ys.default=Xz;var qz=Nv.default;Object.defineProperty(xu,"__esModule",{value:!0});xu.default=void 0;var Yz=qz(Ys),Zz=Yz.default;xu.default=Zz;var Eu=Nv.default;Object.defineProperty(Su,"__esModule",{value:!0});Su.default=void 0;var Qz=Eu(wu),Jz=Eu(xu),ej=Eu(Ys),tj=Eu(Zs);const Bn="${label}不是一个有效的${type}",nj={locale:"zh-cn",Pagination:Qz.default,DatePicker:ej.default,TimePicker:tj.default,Calendar:Jz.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Bn,method:Bn,array:Bn,object:Bn,number:Bn,date:Bn,boolean:Bn,integer:Bn,float:Bn,regexp:Bn,email:Bn,url:Bn,hex:Bn},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};var rj=nj;Su.default=rj;var oj=Su;const ij=Xr(oj);var Av={},Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.DEFAULT_ICON_CONFIGS=void 0;Fn.IconConverter=jS;Fn.IconProvider=void 0;Fn.IconWrapper=hj;var jl=aj(f);function FS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return (FS=function(r){return r?n:t})(e)}function aj(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var n=FS(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i];}return r.default=e,n&&n.set(e,r),r}var sj=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Xg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r);}return n}function qg(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function uj(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var zS={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};Fn.DEFAULT_ICON_CONFIGS=zS;function dj(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function jS(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||n.theme;switch(i){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return {size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var HS=(0, jl.createContext)(zS),fj=HS.Provider;Fn.IconProvider=fj;function hj(e,t,n){return function(r){var o=r.size,i=r.strokeWidth,a=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,h=cj(r,sj),v=(0, jl.useContext)(HS),p=(0, jl.useMemo)(dj,[]),m=jS(p,{size:o,strokeWidth:i,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},v),g=[v.prefix+"-icon"];return g.push(v.prefix+"-icon-"+e),t&&v.rtl&&g.push(v.prefix+"-icon-rtl"),d&&g.push(v.prefix+"-icon-spin"),u&&g.push(u),jl.default.createElement("span",qg(qg({},h),{},{className:g.join(" ")}),n(m))}}Object.defineProperty(Av,"__esModule",{value:!0});var BS=Av.default=void 0,Pd=pj(f),vj=Fn;function pj(e){return e&&e.__esModule?e:{default:e}}var mj=(0, vj.IconWrapper)("close",!1,function(e){return Pd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Pd.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pd.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});BS=Av.default=mj;var Dv={};Object.defineProperty(Dv,"__esModule",{value:!0});var WS=Dv.default=void 0,_d=bj(f),gj=Fn;function bj(e){return e&&e.__esModule?e:{default:e}}var yj=(0, gj.IconWrapper)("config",!1,function(e){return _d.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},_d.default.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),_d.default.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))});WS=Dv.default=yj;var kv={};Object.defineProperty(kv,"__esModule",{value:!0});var VS=kv.default=void 0,La=Sj(f),Cj=Fn;function Sj(e){return e&&e.__esModule?e:{default:e}}var wj=(0, Cj.IconWrapper)("distraught-face",!1,function(e){return La.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},La.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),La.default.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),La.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),La.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});VS=kv.default=wj;var Lv={};Object.defineProperty(Lv,"__esModule",{value:!0});var US=Lv.default=void 0,Fa=$j(f),xj=Fn;function $j(e){return e&&e.__esModule?e:{default:e}}var Ej=(0, xj.IconWrapper)("info",!0,function(e){return Fa.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Fa.default.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Fa.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),Fa.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Fa.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});US=Lv.default=Ej;var Fv={};Object.defineProperty(Fv,"__esModule",{value:!0});var GS=Fv.default=void 0,Rd=Pj(f),Oj=Fn;function Pj(e){return e&&e.__esModule?e:{default:e}}var _j=(0, Oj.IconWrapper)("loading",!0,function(e){return Rd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Rd.default.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rd.default.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});GS=Fv.default=_j;var zv={};Object.defineProperty(zv,"__esModule",{value:!0});var KS=zv.default=void 0,Mr=Mj(f),Rj=Fn;function Mj(e){return e&&e.__esModule?e:{default:e}}var Tj=(0, Rj.IconWrapper)("loading-three",!1,function(e){return Mr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Mr.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Mr.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});KS=zv.default=Tj;var jv={};Object.defineProperty(jv,"__esModule",{value:!0});var XS=jv.default=void 0,Md=Nj(f),Ij=Fn;function Nj(e){return e&&e.__esModule?e:{default:e}}var Aj=(0, Ij.IconWrapper)("return",!0,function(e){return Md.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Md.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Md.default.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});XS=jv.default=Aj;const Dj={Close:BS,Config:WS,DistraughtFace:VS,Return:XS,Loading:GS,LoadingThree:KS,Info:US};function Lo({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24);const i=Zc();r||(r=i?"#fff":"#333");const a=Dj[e];return W(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}function sr({configKey:e,label:t,className:n,extraAction:r,tooltip:o}){const a=!!lr()[e],s=f.useCallback(c=>{const u=c.target.checked;vo({[e]:u}),r==null||r(u);},[]);let l=t||e;return o&&(l=W(fu,{title:o,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),W(H3,{className:n,checked:a,onChange:s,children:l})}var kj={name:"1qkltea",styles:"margin-left:5px"};const Lj=function(){const e=kj;return me(Yt,{children:[W(sr,{configKey:"initialShowMore",label:"自动查看更多",css:e}),W(sr,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function yc({tooltip:e,iconProps:t}){return W(Yt,{children:e&&W(Gj,{title:e,children:W(Lo,{...t,name:"Info",style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}function Yn(){for(var e=arguments.length,t=new Array(e),n=0;nn.trim()).filter(Boolean).map(n=>{const[r,o]=n.split(" ").filter(Boolean);return {id:e+":"+o,name:o,colorPrimary:r}})}const qS="UP长期洗涤",jj=zj(qS,` #0545b2 理想之蓝 #f4cd00 柠檬黄 #ef2729 石榴红 #f89c00 鹿箭 #233728 黛绿 #f2b9b7 和熙粉 #f3cc91 芝士黄 #6b4c68 葡萄紫 #ff7227 落日橙 #004d62 碧海天 #23909b 洗碧空 #aeb400 芥丝绿 #425a17 箬叶青 #002FA7 克莱因蓝 #003153 普鲁士蓝 #01847F 马尔斯绿 #FBD26A 申布伦黄 #470024 勃艮第红 #492D22 凡戴克棕 `),YS=[{name:"App",themes:[pa,{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500FF"},Hv]},{name:"LX Themes",themes:Fj,tooltip:me(Yt,{children:["提取自"," ",W("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),W("br",{}),"Apache License 2.0"]})},{name:qS,themes:jj,tooltip:me(Yt,{children:["提取自"," ",W("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",W("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],ZS=YS.map(e=>e.themes).flat();function Hj(){const e=ZS.find(t=>t.id===(bt.theme||pa.id))||pa;return e.id===Hv.id&&bt.colorPickerThemeSelectedColor&&(e.colorPrimary=bt.colorPickerThemeSelectedColor),e}function wa(){let{theme:e,colorPickerThemeSelectedColor:t}=lr();return e||(e=pa.id),f.useMemo(()=>{const n=ZS.find(r=>r.id===e)||pa;return n.id===Hv.id&&t&&(n.colorPrimary=t),n},[e,t])}var Bj={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},Wj={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},Vj={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function Uj(){const e=wa().id,{colorPickerThemeSelectedColor:t}=lr(),[n,r]=f.useState(t||pa.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return W("div",{children:YS.map(({name:i,themes:a,tooltip:s})=>me(f.Fragment,{children:[me("div",{css:Vj,children:[i,W(yc,{tooltip:s,iconProps:{size:22}})]}),W("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(l=>{const c=e===l.id,u=l.isCustom,d=W("div",{className:"preview",css:Yn("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let h=W("div",{className:"preview-wrapper",css:[Wj,c&&Yn("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(h=W(oz,{value:n,onChange:v=>r(v),onOpenChange:v=>{v||vo({colorPickerThemeSelectedColor:o});},children:h})),me("div",{css:Bj,onClick:v=>{vo({theme:l.id});},children:[h,l.name]},l.id)})})]},i))})}function QS({children:e}){const t=Zc(),{colorPrimary:n}=wa();return W(qh,{locale:ij,theme:{algorithm:t?vc.darkAlgorithm:vc.defaultAlgorithm,token:{colorPrimary:n,zIndexPopupBase:11e3}},children:e})}function Gj(e){return W(fu,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var Bv={exports:{}};const Kj=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Yg=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},Zg=({clearTimeout:e,setTimeout:t,willResolve:n})=>(r,{value:o,signal:i}={})=>{if(i&&i.aborted)return Promise.reject(Yg());let a,s,l;const c=e||clearTimeout,u=()=>{c(a),l(Yg());},d=()=>{i&&i.removeEventListener("abort",u);},h=new Promise((v,p)=>{s=()=>{d(),n?v(o):p(o);},l=p,a=(t||setTimeout)(s,r);});return i&&i.addEventListener("abort",u,{once:!0}),h.clear=()=>{c(a),a=null,s();},h},JS=e=>{const t=Zg({...e,willResolve:!0});return t.reject=Zg({...e,willResolve:!1}),t.range=(n,r,o)=>t(Kj(n,r),o),t},Wv=JS();Wv.createWithTimers=JS;Bv.exports=Wv;Bv.exports.default=Wv;var Xj=Bv.exports;const Ou=Xr(Xj),qj=$h.extend("utility:dom"),Yj=10*1e3,Zj=200;async function e1(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+Yj;for(;!r.length&&performance.now()r.remove(),t)}function Pu(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}function Qj(e){const t=e.getBoundingClientRect(),n=document.documentElement;return {top:t.top+window.pageYOffset-n.clientTop,left:t.left+window.pageXOffset-n.clientLeft}}var _u,Qg=ia;_u=Qg.createRoot,Qg.hydrateRoot;function Jg(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function eb(e,t,n){var r=[],o=xh(e,r,n);return r.length<2?n:o+t(r)}var Jj=function(t){var n=_b(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value);}catch(s){a={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(a)throw a.error}}return i}function On(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r-1&&(o=setTimeout(function(){Hl.delete(e);},t)),Hl.set(e,Cr(Cr({},n),{timer:o}));},c6=function(e){return Hl.get(e)},Bl=new Map,u6=function(e){return Bl.get(e)},d6=function(e,t){Bl.set(e,t),t.then(function(n){return Bl.delete(e),n}).catch(function(){Bl.delete(e);});},Jo={},f6=function(e,t){Jo[e]&&Jo[e].forEach(function(n){return n(t)});},Td=function(e,t){return Jo[e]||(Jo[e]=[]),Jo[e].push(t),function(){var r=Jo[e].indexOf(t);Jo[e].splice(r,1);}},h6=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,i=t.staleTime,a=i===void 0?0:i,s=t.setCache,l=t.getCache,c=f.useRef(),u=f.useRef(),d=function(v,p){s?s(p):l6(v,o,p),f6(v,p.data);},h=function(v,p){return p===void 0&&(p=[]),l?l(p):c6(v)};return i1(function(){if(n){var v=h(n);v&&Object.hasOwnProperty.call(v,"data")&&(e.state.data=v.data,e.state.params=v.params,(a===-1||new Date().getTime()-v.time<=a)&&(e.state.loading=!1)),c.current=Td(n,function(p){e.setState({data:p});});}},[]),Qs(function(){var v;(v=c.current)===null||v===void 0||v.call(c);}),n?{onBefore:function(v){var p=h(n,v);return !p||!Object.hasOwnProperty.call(p,"data")?{}:a===-1||new Date().getTime()-p.time<=a?{loading:!1,data:p==null?void 0:p.data,error:void 0,returnNow:!0}:{data:p==null?void 0:p.data,error:void 0}},onRequest:function(v,p){var m=u6(n);return m&&m!==u.current?{servicePromise:m}:(m=v.apply(void 0,On([],Qt(p),!1)),u.current=m,d6(n,m),{servicePromise:m})},onSuccess:function(v,p){var m;n&&((m=c.current)===null||m===void 0||m.call(c),d(n,{data:v,params:p,time:new Date().getTime()}),c.current=Td(n,function(g){e.setState({data:g});}));},onMutate:function(v){var p;n&&((p=c.current)===null||p===void 0||p.call(c),d(n,{data:v,params:e.state.params,time:new Date().getTime()}),c.current=Td(n,function(m){e.setState({data:m});}));}}:{}};const v6=h6;var p6=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=f.useRef(),s=f.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),i!==void 0&&(l.maxWait=i),l},[r,o,i]);return f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return a.current=n0(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u-1&&is.splice(n,1);}}if(Js){var nb=function(){if(!(!Vv()||!E6()))for(var e=0;e{Va++,document.body.style.overflow="hidden";},cH=()=>{Va--,Va<0&&(Va=0),Va===0&&(document.body.style.overflow="");};function Gv({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?lH():cH();},[e]);const u=f.useRef(null),d=Zc(),{bg:h,c:v}=f.useMemo(()=>{const y=window.getComputedStyle(document.body)["background-color"],w=window.getComputedStyle(document.body).color;return {bg:y,c:w}},[d]),p=f.useMemo(()=>d?{"--bg":h,"--c":v,backgroundColor:h,color:v}:{},[h,v,d]),m=f.useId(),g=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+m),document.body.appendChild(y),y},[]),b=Mt(y=>{var $;const w=y.target;($=u.current)!=null&&$.contains(w)||w.closest('.ant-tooltip-inner[role="tooltip"]')||w.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return cn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?ia.createPortal(W("div",{className:X(Wr.modalMask,o),style:r,onClick:b,children:W("div",{className:X(Wr.modal,a),style:{...p,width:s,...i},ref:u,children:n})}),g):null}const Kv=e=>W(Lo,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),uH="_toast-container_185m9_1",dH="_single-line_185m9_17";function In(e,t=2e3){const n=document.createElement("div");n.className=uH,n.innerText=e;const{colorPrimary:r}=Hj();n.style.backgroundColor=r,!e.includes(` `)&&!e.includes("n.remove(),t);}const fH="请求失败, 请重试 !!!",hH="操作失败, 请重试 !!!";function f1(){return In(fH)}function h1(){return In(hH)}function vH(e){const t=ya({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(i=>i[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const v1="27eb53fc9058f8c3";async function pH(){var c,u;const t=(await ph.get("https://passport.bilibili.com/login/app/third",{params:{appkey:v1,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login))return {errmsg:"你必须登录B站之后才能使用授权",json:t};if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri))return {errmsg:"无法获得授权网址",json:t};const n=t.data.confirm_uri;let r,o;const i=new Promise(d=>{const h=v=>{if(v.origin!="https://www.mcbbs.net"||!v.data)return;const p=v.data.match(/access_key=([0-9a-z]{32})/);if(!p||!p[1])return d({errmsg:"没有获得匹配的密钥"});d({access_key:p[1]});};window.addEventListener("message",h),o=()=>window.removeEventListener("message",h),r=setTimeout(()=>{d({errmsg:"获取授权超时"});},10*1e3);}),a=document.createElement("iframe");a.src=n,a.style.display="none",document.body.appendChild(a);function s(){a==null||a.remove(),o==null||o(),o=void 0,r&&(clearTimeout(r),r=void 0);}const l=await i;return s(),l}async function mH(){const e=await pH();if(!e.access_key)return In(e.errmsg||"");const t=e.access_key;return bt.accessKey=t,In("获取成功"),t}function gH(){bt.accessKey="",In("已删除 access_key");}const bH="https://api.bilibili.com",p1="https://app.bilibili.com",el=ph.create({baseURL:bH,withCredentials:!0});el.interceptors.request.use(function(e){var t;return (t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});const Tu=ph.create({adapter:Ew});Tu.interceptors.request.use(function(e){return e.params={appkey:v1,access_key:bt.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});Tu.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});function m1(){const e={};return document.cookie.split(";").map(t=>t.trim()).filter(Boolean).forEach(t=>{const[n,r]=t.split("=").map(o=>o.trim()).filter(Boolean);n&&(e[n]=r);}),e}function yH(){const e=m1().bili_jct;if(!e)throw In("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function g1(){return !!m1().DedeUserID}function b1(){return f.useMemo(()=>g1(),[document.cookie])}const za=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,y1=new Set,th=typeof process=="object"&&process?process:{},C1=(e,t,n,r)=>{typeof th.emitWarning=="function"?th.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`);};let Sc=globalThis.AbortController,ob=globalThis.AbortSignal;var vb;if(typeof Sc>"u"){ob=class{constructor(){gt(this,"onabort");gt(this,"_onabort",[]);gt(this,"reason");gt(this,"aborted",!1);}addEventListener(r,o){this._onabort.push(o);}},Sc=class{constructor(){gt(this,"signal",new ob);t();}abort(r){var o,i;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(const a of this.signal._onabort)a(r);(i=(o=this.signal).onabort)==null||i.call(o,r);}}};let e=((vb=th.env)==null?void 0:vb.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,C1("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t));};}const CH=e=>!y1.has(e),Eo=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),S1=e=>Eo(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Wl:null:null;class Wl extends Array{constructor(t){super(t),this.fill(0);}}var ea;const Ui=class{constructor(t,n){gt(this,"heap");gt(this,"length");if(!k(Ui,ea))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0;}static create(t){const n=S1(t);if(!n)return [];Ke(Ui,ea,!0);const r=new Ui(t,n);return Ke(Ui,ea,!1),r}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let Vl=Ui;ea=new WeakMap,ct(Vl,ea,!1);var fr,Un,Nr,hr,ta,sn,vr,ln,Ut,it,Rn,Gn,En,fn,pr,gn,io,ao,mr,Ar,Mo,An,Ps,rh,ii,so,_s,Kn,_c,w1,ai,na,Rs,Dr,Oo,kr,Po,Ms,oh,ra,Ul,oa,Gl,Wt,Kt,Ts,ih,si,Ua;const ap=class{constructor(t){ct(this,Ps);ct(this,_c);ct(this,Dr);ct(this,kr);ct(this,Ms);ct(this,ra);ct(this,oa);ct(this,Wt);ct(this,Ts);ct(this,si);ct(this,fr,void 0);ct(this,Un,void 0);ct(this,Nr,void 0);ct(this,hr,void 0);ct(this,ta,void 0);gt(this,"ttl");gt(this,"ttlResolution");gt(this,"ttlAutopurge");gt(this,"updateAgeOnGet");gt(this,"updateAgeOnHas");gt(this,"allowStale");gt(this,"noDisposeOnSet");gt(this,"noUpdateTTL");gt(this,"maxEntrySize");gt(this,"sizeCalculation");gt(this,"noDeleteOnFetchRejection");gt(this,"noDeleteOnStaleGet");gt(this,"allowStaleOnFetchAbort");gt(this,"allowStaleOnFetchRejection");gt(this,"ignoreFetchAbort");ct(this,sn,void 0);ct(this,vr,void 0);ct(this,ln,void 0);ct(this,Ut,void 0);ct(this,it,void 0);ct(this,Rn,void 0);ct(this,Gn,void 0);ct(this,En,void 0);ct(this,fn,void 0);ct(this,pr,void 0);ct(this,gn,void 0);ct(this,io,void 0);ct(this,ao,void 0);ct(this,mr,void 0);ct(this,Ar,void 0);ct(this,Mo,void 0);ct(this,An,void 0);ct(this,ii,()=>{});ct(this,so,()=>{});ct(this,_s,()=>{});ct(this,Kn,()=>!1);ct(this,ai,t=>{});ct(this,na,(t,n,r)=>{});ct(this,Rs,(t,n,r,o)=>{if(r||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:n=0,ttl:r,ttlResolution:o=1,ttlAutopurge:i,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:d,noUpdateTTL:h,maxSize:v=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:$,ignoreFetchAbort:S}=t;if(n!==0&&!Eo(n))throw new TypeError("max option must be a nonnegative integer");const C=n?S1(n):Array;if(!C)throw new Error("invalid max value: "+n);if(Ke(this,fr,n),Ke(this,Un,v),this.maxEntrySize=p||k(this,Un),this.sizeCalculation=m,this.sizeCalculation){if(!k(this,Un)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(Ke(this,ta,g),Ke(this,Mo,!!g),Ke(this,ln,new Map),Ke(this,Ut,new Array(n).fill(void 0)),Ke(this,it,new Array(n).fill(void 0)),Ke(this,Rn,new C(n)),Ke(this,Gn,new C(n)),Ke(this,En,0),Ke(this,fn,0),Ke(this,pr,Vl.create(n)),Ke(this,sn,0),Ke(this,vr,0),typeof c=="function"&&Ke(this,Nr,c),typeof u=="function"?(Ke(this,hr,u),Ke(this,gn,[])):(Ke(this,hr,void 0),Ke(this,gn,void 0)),Ke(this,Ar,!!k(this,Nr)),Ke(this,An,!!k(this,hr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!$,this.ignoreFetchAbort=!!S,this.maxEntrySize!==0){if(k(this,Un)!==0&&!Eo(k(this,Un)))throw new TypeError("maxSize must be a positive integer if specified");if(!Eo(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Fe(this,_c,w1).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Eo(o)||o===0?o:1,this.ttlAutopurge=!!i,this.ttl=r||0,this.ttl){if(!Eo(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Fe(this,Ps,rh).call(this);}if(k(this,fr)===0&&this.ttl===0&&k(this,Un)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,fr)&&!k(this,Un)){const x="LRU_CACHE_UNBOUNDED";CH(x)&&(y1.add(x),C1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,ap));}}static unsafeExposeInternals(t){return {starts:k(t,ao),ttls:k(t,mr),sizes:k(t,io),keyMap:k(t,ln),keyList:k(t,Ut),valList:k(t,it),next:k(t,Rn),prev:k(t,Gn),get head(){return k(t,En)},get tail(){return k(t,fn)},free:k(t,pr),isBackgroundFetch:n=>{var r;return Fe(r=t,Wt,Kt).call(r,n)},backgroundFetch:(n,r,o,i)=>{var a;return Fe(a=t,oa,Gl).call(a,n,r,o,i)},moveToTail:n=>{var r;return Fe(r=t,si,Ua).call(r,n)},indexes:n=>{var r;return Fe(r=t,Dr,Oo).call(r,n)},rindexes:n=>{var r;return Fe(r=t,kr,Po).call(r,n)},isStale:n=>{var r;return k(r=t,Kn).call(r,n)}}}get max(){return k(this,fr)}get maxSize(){return k(this,Un)}get calculatedSize(){return k(this,vr)}get size(){return k(this,sn)}get fetchMethod(){return k(this,ta)}get dispose(){return k(this,Nr)}get disposeAfter(){return k(this,hr)}getRemainingTTL(t){return k(this,ln).has(t)?1/0:0}*entries(){for(const t of Fe(this,Dr,Oo).call(this))k(this,it)[t]!==void 0&&k(this,Ut)[t]!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield [k(this,Ut)[t],k(this,it)[t]]);}*rentries(){for(const t of Fe(this,kr,Po).call(this))k(this,it)[t]!==void 0&&k(this,Ut)[t]!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield [k(this,Ut)[t],k(this,it)[t]]);}*keys(){for(const t of Fe(this,Dr,Oo).call(this)){const n=k(this,Ut)[t];n!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield n);}}*rkeys(){for(const t of Fe(this,kr,Po).call(this)){const n=k(this,Ut)[t];n!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield n);}}*values(){for(const t of Fe(this,Dr,Oo).call(this))k(this,it)[t]!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield k(this,it)[t]);}*rvalues(){for(const t of Fe(this,kr,Po).call(this))k(this,it)[t]!==void 0&&!Fe(this,Wt,Kt).call(this,k(this,it)[t])&&(yield k(this,it)[t]);}[Symbol.iterator](){return this.entries()}find(t,n={}){for(const r of Fe(this,Dr,Oo).call(this)){const o=k(this,it)[r],i=Fe(this,Wt,Kt).call(this,o)?o.__staleWhileFetching:o;if(i!==void 0&&t(i,k(this,Ut)[r],this))return this.get(k(this,Ut)[r],n)}}forEach(t,n=this){for(const r of Fe(this,Dr,Oo).call(this)){const o=k(this,it)[r],i=Fe(this,Wt,Kt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Ut)[r],this);}}rforEach(t,n=this){for(const r of Fe(this,kr,Po).call(this)){const o=k(this,it)[r],i=Fe(this,Wt,Kt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Ut)[r],this);}}purgeStale(){let t=!1;for(const n of Fe(this,kr,Po).call(this,{allowStale:!0}))k(this,Kn).call(this,n)&&(this.delete(k(this,Ut)[n]),t=!0);return t}dump(){const t=[];for(const n of Fe(this,Dr,Oo).call(this,{allowStale:!0})){const r=k(this,Ut)[n],o=k(this,it)[n],i=Fe(this,Wt,Kt).call(this,o)?o.__staleWhileFetching:o;if(i===void 0||r===void 0)continue;const a={value:i};if(k(this,mr)&&k(this,ao)){a.ttl=k(this,mr)[n];const s=za.now()-k(this,ao)[n];a.start=Math.floor(Date.now()-s);}k(this,io)&&(a.size=k(this,io)[n]),t.unshift([r,a]);}return t}load(t){this.clear();for(const[n,r]of t){if(r.start){const o=Date.now()-r.start;r.start=za.now()-o;}this.set(n,r.value,r);}}set(t,n,r={}){var h,v,p;if(n===void 0)return this.delete(t),this;const{ttl:o=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r;let{noUpdateTTL:c=this.noUpdateTTL}=r;const u=k(this,Rs).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=k(this,sn)===0?void 0:k(this,ln).get(t);if(d===void 0)d=k(this,sn)===0?k(this,fn):k(this,pr).length!==0?k(this,pr).pop():k(this,sn)===k(this,fr)?Fe(this,ra,Ul).call(this,!1):k(this,sn),k(this,Ut)[d]=t,k(this,it)[d]=n,k(this,ln).set(t,d),k(this,Rn)[k(this,fn)]=d,k(this,Gn)[d]=k(this,fn),Ke(this,fn,d),al(this,sn)._++,k(this,na).call(this,d,u,l),l&&(l.set="add"),c=!1;else {Fe(this,si,Ua).call(this,d);const m=k(this,it)[d];if(n!==m){if(k(this,Mo)&&Fe(this,Wt,Kt).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(k(this,Ar)&&((h=k(this,Nr))==null||h.call(this,m,t,"set")),k(this,An)&&((v=k(this,gn))==null||v.push([m,t,"set"]))),k(this,ai).call(this,d),k(this,na).call(this,d,u,l),k(this,it)[d]=n,l){l.set="replace";const g=m&&Fe(this,Wt,Kt).call(this,m)?m.__staleWhileFetching:m;g!==void 0&&(l.oldValue=g);}}else l&&(l.set="update");}if(o!==0&&!k(this,mr)&&Fe(this,Ps,rh).call(this),k(this,mr)&&(c||k(this,_s).call(this,d,o,i),l&&k(this,so).call(this,l,d)),!a&&k(this,An)&&k(this,gn)){const m=k(this,gn);let g;for(;g=m==null?void 0:m.shift();)(p=k(this,hr))==null||p.call(this,...g);}return this}pop(){var t;try{for(;k(this,sn);){const n=k(this,it)[k(this,En)];if(Fe(this,ra,Ul).call(this,!0),Fe(this,Wt,Kt).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(k(this,An)&&k(this,gn)){const n=k(this,gn);let r;for(;r=n==null?void 0:n.shift();)(t=k(this,hr))==null||t.call(this,...r);}}}has(t,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:o}=n,i=k(this,ln).get(t);if(i!==void 0){const a=k(this,it)[i];if(Fe(this,Wt,Kt).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(k(this,Kn).call(this,i))o&&(o.has="stale",k(this,so).call(this,o,i));else return r&&k(this,ii).call(this,i),o&&(o.has="hit",k(this,so).call(this,o,i)),!0}else o&&(o.has="miss");return !1}peek(t,n={}){const{allowStale:r=this.allowStale}=n,o=k(this,ln).get(t);if(o!==void 0&&(r||!k(this,Kn).call(this,o))){const i=k(this,it)[o];return Fe(this,Wt,Kt).call(this,i)?i.__staleWhileFetching:i}}async fetch(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:v=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:g=!1,status:b,signal:y}=n;if(!k(this,Mo))return b&&(b.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,status:b});const w={allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:v,status:b,signal:y};let $=k(this,ln).get(t);if($===void 0){b&&(b.fetch="miss");const S=Fe(this,oa,Gl).call(this,t,$,w,m);return S.__returned=S}else {const S=k(this,it)[$];if(Fe(this,Wt,Kt).call(this,S)){const E=r&&S.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",E&&(b.returnedStale=!0)),E?S.__staleWhileFetching:S.__returned=S}const C=k(this,Kn).call(this,$);if(!g&&!C)return b&&(b.fetch="hit"),Fe(this,si,Ua).call(this,$),o&&k(this,ii).call(this,$),b&&k(this,so).call(this,b,$),S;const x=Fe(this,oa,Gl).call(this,t,$,w,m),R=x.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=C?"stale":"refresh",R&&C&&(b.returnedStale=!0)),R?x.__staleWhileFetching:x.__returned=x}}get(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=n,s=k(this,ln).get(t);if(s!==void 0){const l=k(this,it)[s],c=Fe(this,Wt,Kt).call(this,l);return a&&k(this,so).call(this,a,s),k(this,Kn).call(this,s)?(a&&(a.get="stale"),c?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(i||this.delete(t),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),c?l.__staleWhileFetching:(Fe(this,si,Ua).call(this,s),o&&k(this,ii).call(this,s),l))}else a&&(a.get="miss");}delete(t){var r,o,i,a;let n=!1;if(k(this,sn)!==0){const s=k(this,ln).get(t);if(s!==void 0)if(n=!0,k(this,sn)===1)this.clear();else {k(this,ai).call(this,s);const l=k(this,it)[s];Fe(this,Wt,Kt).call(this,l)?l.__abortController.abort(new Error("deleted")):(k(this,Ar)||k(this,An))&&(k(this,Ar)&&((r=k(this,Nr))==null||r.call(this,l,t,"delete")),k(this,An)&&((o=k(this,gn))==null||o.push([l,t,"delete"]))),k(this,ln).delete(t),k(this,Ut)[s]=void 0,k(this,it)[s]=void 0,s===k(this,fn)?Ke(this,fn,k(this,Gn)[s]):s===k(this,En)?Ke(this,En,k(this,Rn)[s]):(k(this,Rn)[k(this,Gn)[s]]=k(this,Rn)[s],k(this,Gn)[k(this,Rn)[s]]=k(this,Gn)[s]),al(this,sn)._--,k(this,pr).push(s);}}if(k(this,An)&&((i=k(this,gn))!=null&&i.length)){const s=k(this,gn);let l;for(;l=s==null?void 0:s.shift();)(a=k(this,hr))==null||a.call(this,...l);}return n}clear(){var t,n,r;for(const o of Fe(this,kr,Po).call(this,{allowStale:!0})){const i=k(this,it)[o];if(Fe(this,Wt,Kt).call(this,i))i.__abortController.abort(new Error("deleted"));else {const a=k(this,Ut)[o];k(this,Ar)&&((t=k(this,Nr))==null||t.call(this,i,a,"delete")),k(this,An)&&((n=k(this,gn))==null||n.push([i,a,"delete"]));}}if(k(this,ln).clear(),k(this,it).fill(void 0),k(this,Ut).fill(void 0),k(this,mr)&&k(this,ao)&&(k(this,mr).fill(0),k(this,ao).fill(0)),k(this,io)&&k(this,io).fill(0),Ke(this,En,0),Ke(this,fn,0),k(this,pr).length=0,Ke(this,vr,0),Ke(this,sn,0),k(this,An)&&k(this,gn)){const o=k(this,gn);let i;for(;i=o==null?void 0:o.shift();)(r=k(this,hr))==null||r.call(this,...i);}}};let nh=ap;fr=new WeakMap,Un=new WeakMap,Nr=new WeakMap,hr=new WeakMap,ta=new WeakMap,sn=new WeakMap,vr=new WeakMap,ln=new WeakMap,Ut=new WeakMap,it=new WeakMap,Rn=new WeakMap,Gn=new WeakMap,En=new WeakMap,fn=new WeakMap,pr=new WeakMap,gn=new WeakMap,io=new WeakMap,ao=new WeakMap,mr=new WeakMap,Ar=new WeakMap,Mo=new WeakMap,An=new WeakMap,Ps=new WeakSet,rh=function(){const t=new Wl(k(this,fr)),n=new Wl(k(this,fr));Ke(this,mr,t),Ke(this,ao,n),Ke(this,_s,(i,a,s=za.now())=>{if(n[i]=a!==0?s:0,t[i]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{k(this,Kn).call(this,i)&&this.delete(k(this,Ut)[i]);},a+1);l.unref&&l.unref();}}),Ke(this,ii,i=>{n[i]=t[i]!==0?za.now():0;}),Ke(this,so,(i,a)=>{if(t[a]){const s=t[a],l=n[a];i.ttl=s,i.start=l,i.now=r||o();const c=i.now-l;i.remainingTTL=s-c;}});let r=0;const o=()=>{const i=za.now();if(this.ttlResolution>0){r=i;const a=setTimeout(()=>r=0,this.ttlResolution);a.unref&&a.unref();}return i};this.getRemainingTTL=i=>{const a=k(this,ln).get(i);if(a===void 0)return 0;const s=t[a],l=n[a];if(s===0||l===0)return 1/0;const c=(r||o())-l;return s-c},Ke(this,Kn,i=>t[i]!==0&&n[i]!==0&&(r||o())-n[i]>t[i]);},ii=new WeakMap,so=new WeakMap,_s=new WeakMap,Kn=new WeakMap,_c=new WeakSet,w1=function(){const t=new Wl(k(this,fr));Ke(this,vr,0),Ke(this,io,t),Ke(this,ai,n=>{Ke(this,vr,k(this,vr)-t[n]),t[n]=0;}),Ke(this,Rs,(n,r,o,i)=>{if(Fe(this,Wt,Kt).call(this,r))return 0;if(!Eo(o))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(o=i(r,n),!Eo(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),Ke(this,na,(n,r,o)=>{if(t[n]=r,k(this,Un)){const i=k(this,Un)-t[n];for(;k(this,vr)>i;)Fe(this,ra,Ul).call(this,!0);}Ke(this,vr,k(this,vr)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=k(this,vr));});},ai=new WeakMap,na=new WeakMap,Rs=new WeakMap,Dr=new WeakSet,Oo=function*({allowStale:t=this.allowStale}={}){if(k(this,sn))for(let n=k(this,fn);!(!Fe(this,Ms,oh).call(this,n)||((t||!k(this,Kn).call(this,n))&&(yield n),n===k(this,En)));)n=k(this,Gn)[n];},kr=new WeakSet,Po=function*({allowStale:t=this.allowStale}={}){if(k(this,sn))for(let n=k(this,En);!(!Fe(this,Ms,oh).call(this,n)||((t||!k(this,Kn).call(this,n))&&(yield n),n===k(this,fn)));)n=k(this,Rn)[n];},Ms=new WeakSet,oh=function(t){return t!==void 0&&k(this,ln).get(k(this,Ut)[t])===t},ra=new WeakSet,Ul=function(t){var i,a;const n=k(this,En),r=k(this,Ut)[n],o=k(this,it)[n];return k(this,Mo)&&Fe(this,Wt,Kt).call(this,o)?o.__abortController.abort(new Error("evicted")):(k(this,Ar)||k(this,An))&&(k(this,Ar)&&((i=k(this,Nr))==null||i.call(this,o,r,"evict")),k(this,An)&&((a=k(this,gn))==null||a.push([o,r,"evict"]))),k(this,ai).call(this,n),t&&(k(this,Ut)[n]=void 0,k(this,it)[n]=void 0,k(this,pr).push(n)),k(this,sn)===1?(Ke(this,En,Ke(this,fn,0)),k(this,pr).length=0):Ke(this,En,k(this,Rn)[n]),k(this,ln).delete(r),al(this,sn)._--,n},oa=new WeakSet,Gl=function(t,n,r,o){const i=n===void 0?void 0:k(this,it)[n];if(Fe(this,Wt,Kt).call(this,i))return i;const a=new Sc,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});const l={signal:a.signal,options:r,context:o},c=(m,g=!1)=>{const{aborted:b}=a.signal,y=r.ignoreFetchAbort&&m!==void 0;if(r.status&&(b&&!g?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,y&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!y&&!g)return d(a.signal.reason);const w=v;return k(this,it)[n]===v&&(m===void 0?w.__staleWhileFetching?k(this,it)[n]=w.__staleWhileFetching:this.delete(t):(r.status&&(r.status.fetchUpdated=!0),this.set(t,m,l.options))),m},u=m=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=m),d(m)),d=m=>{const{aborted:g}=a.signal,b=g&&r.allowStaleOnFetchAbort,y=b||r.allowStaleOnFetchRejection,w=y||r.noDeleteOnFetchRejection,$=v;if(k(this,it)[n]===v&&(!w||$.__staleWhileFetching===void 0?this.delete(t):b||(k(this,it)[n]=$.__staleWhileFetching)),y)return r.status&&$.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),$.__staleWhileFetching;if($.__returned===$)throw m},h=(m,g)=>{var y;const b=(y=k(this,ta))==null?void 0:y.call(this,t,i,l);b&&b instanceof Promise&&b.then(w=>m(w),g),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(m(),r.allowStaleOnFetchAbort&&(m=w=>c(w,!0)));});};r.status&&(r.status.fetchDispatched=!0);const v=new Promise(h).then(c,u),p=Object.assign(v,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return n===void 0?(this.set(t,p,{...l.options,status:void 0}),n=k(this,ln).get(t)):k(this,it)[n]=p,p},Wt=new WeakSet,Kt=function(t){if(!k(this,Mo))return !1;const n=t;return !!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Sc},Ts=new WeakSet,ih=function(t,n){k(this,Gn)[n]=t,k(this,Rn)[t]=n;},si=new WeakSet,Ua=function(t){t!==k(this,fn)&&(t===k(this,En)?Ke(this,En,k(this,Rn)[t]):Fe(this,Ts,ih).call(this,k(this,Gn)[t],k(this,Rn)[t]),Fe(this,Ts,ih).call(this,k(this,fn),t),Ke(this,fn,t));};async function SH(e){return (await el.get("/pvideo",{params:{aid:e}})).data.data}async function wH(e){return []}const Nd=new nh({max:200});async function xH(e){if(Nd.has(e))return Nd.get(e);const[t,n]=await Promise.all([SH(e),wH()]);return Nd.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function x1(e){return async function(n){const r=new FormData;r.append("aid",n),r.append("csrf",yH());const i=(await el.post("/x/v2/history/toview/"+e,r,{withCredentials:!0})).data,a=(i==null?void 0:i.code)===0&&(i==null?void 0:i.message)==="0";return a||In((i==null?void 0:i.message)||"出错了"),a}}const $H=x1("add"),EH=x1("del"),$1=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await Tu.get(p1+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return (i==null?void 0:i.code)===0&&(i==null?void 0:i.message)==="0"}},OH=$1("dislike"),PH=$1("cancel"),_H="_modal_1rloz_1",RH="_title-desc_1rloz_4",MH="_reason-list_1rloz_8",TH="_reason_1rloz_8",IH="_active_1rloz_29",NH="_reason-no_1rloz_33",AH="_tips-container_1rloz_47",DH="_tips_1rloz_47",ar={modal:_H,titleDesc:RH,reasonList:MH,reason:TH,active:IH,reasonNo:NH,tipsContainer:AH,tips:DH},Iu=vH();function kH(){return gi(Iu)}function LH(e){const t=kH();if(e)return t.get(e)}function FH({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),i=Mt(async p=>{if(!n)return;let m=!1,g;try{o(!0),m=await OH(n,p.id);}catch(b){g=b;}finally{o(!1);}if(g)return console.error(g.stack||g),f1();m?In("已标记不想看"):h1(),m&&(Iu.set(n.param,{...p}),t());}),a=f.useMemo(()=>{var p;return ((p=n==null?void 0:n.three_point)==null?void 0:p.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,l=["1","2","3","4","5","6"];cn(l,p=>{if(!s()||!l.includes(p.key))return;const m=Number(p.key)-1;u(m);const g=document.querySelectorAll(`.${ar.reason}`)[m]||null;g==null||g.click();});const[c,u]=f.useState(a.length-1);tH(()=>{u(a.length-1);},[a]);const d=p=>()=>{if(!s())return;const m=c+p;m<0||m>a.length-1||u(m);};cn("leftarrow",d(-1)),cn("rightarrow",d(1)),cn("uparrow",d(-2)),cn("downarrow",d(2)),cn("enter",p=>{var m;s()&&(c<0||c>a.length-1||(p.preventDefault(),p.stopImmediatePropagation(),(m=document.querySelector(`.${ar.reason}.${ar.active}`))==null||m.click()));});const h=f.useMemo(()=>{var p;return ((p=a[c])==null?void 0:p.name)||""},[a,c]),{colorPrimary:v}=wa();return me(Gv,{show:e,onHide:t,clsModal:ar.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[me("div",{className:Wr.modalHeader,children:[me("div",{className:Wr.modalTitle,children:["我不想看",W("span",{className:ar.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),W("div",{className:"space",style:{flex:1}}),W(Kv,{onClick:t})]}),me("div",{className:Wr.modalBody,children:[W("div",{className:ar.reasonList,children:a.map((p,m)=>me("button",{className:X(ar.reason,{[ar.active]:m===c}),style:{...m===c&&{borderColor:v}},"data-id":p.id,onClick:()=>{u(m),i(p);},disabled:r,children:[W("span",{className:ar.reasonNo,style:{backgroundColor:v},children:m+1}),p.name]},p.id))}),me("div",{className:ar.tipsContainer,children:[me("div",{className:ar.tips,children:[W(Lo,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),h&&me("div",{className:ar.tips,children:[W(Lo,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",h,"」, 回车键提交"]})]})]})]})}const Kl={show:!1,onHide:O1,item:null},E1=ya({value:Kl.show}),zH=function(){return gi(E1).value};function O1(){setTimeout(()=>{P1({show:!1,item:null});});}function P1(e){Object.assign(Kl,e),E1.value=Kl.show,jH().render(W(FH,{...Kl,onHide:O1}));}let Ad;function jH(){if(!Ad){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Ad=_u(e);}return Ad}function HH(e){e!=null&&e.param&&Iu.has(e.param)||P1({show:!0,item:e});}function Xv(){const{onlyFollowMode:e,useDynamicApi:t}=lr();return b1()?e?"onlyFollow":t?"dynamic":"normal":"normal"}function Zi(){const{onlyFollowMode:e,useDynamicApi:t}=bt;return g1()?e?"onlyFollow":t?"dynamic":"normal":"normal"}function BH(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,i,a)=>o+i*t[a],0)}function _1(e){return e||(e=0),As.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Dd(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function wc(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const WH=As().format("YYYY");function R1(e){if(!e)return "";const t=As.unix(e);return t.format("YYYY")===WH?t.format("M-D"):t.format("YY-M-D")}const VH="_bili-video-card_mlccj_1",UH="_image-wrapper_mlccj_4",GH="_preview-card-wrapper_mlccj_8",KH="_preview-card-inner_mlccj_21",XH="_watch-later_mlccj_25",qH="_badge_mlccj_28",YH="_recommend-reason_mlccj_37",ZH="_bangumi-desc_mlccj_52",QH="_btn-dislike_mlccj_55",JH="_btn-dislike-icon_mlccj_70",e8="_btn-dislike-tip_mlccj_77",t8="_disliked-wrapper_mlccj_92",n8="_dislike-content-cover_mlccj_106",r8="_dislike-content-cover-inner_mlccj_112",o8="_dislike-icon_mlccj_123",i8="_dislike-reason_mlccj_126",a8="_dislike-desc_mlccj_130",s8="_dislike-content-action_mlccj_134",l8="_skeleton-active_mlccj_151",c8="_ant-skeleton-loading_mlccj_1",un={biliVideoCard:VH,imageWrapper:UH,previewCardWrapper:GH,previewCardInner:KH,watchLater:XH,badge:qH,recommendReason:YH,bangumiDesc:ZH,btnDislike:QH,btnDislikeIcon:JH,btnDislikeTip:e8,dislikedWrapper:t8,dislikeContentCover:n8,dislikeContentCoverInner:r8,dislikeIcon:o8,dislikeReason:i8,dislikeDesc:a8,dislikeContentAction:s8,skeletonActive:l8,antSkeletonLoading:c8};function u8(...e){for(const t of e)if(!isNaN(t))return t;return 0}function d8({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=f.useRef(null),a=Q6(i),[s,l]=f.useState(()=>({width:0,height:0}));Uv(()=>{var h;const d=(h=i.current)==null?void 0:h.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=u8(a.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return W("div",{ref:i,className:X(un.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&W(f8,{...u})})}function f8({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var S;const i=Math.floor((e||0)*o);let a=f.useMemo(()=>{const C=(t==null?void 0:t.index)||[];let x=v8(C,i);return x!==-1?x:i>C[C.length-1]?(x=Math.floor(C.length*o)-1,x<0&&(x=0),x):0},[t,i]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;a=a+1;const h=Math.floor(a/d),v=a-h*d,p=((S=t.image)==null?void 0:S[h])||"",m=Math.floor(v/s)+1,g=v-(m-1)*s,b=n*s,y=r*l,w=(m-1)*r,$=(g-1)*n;return W("div",{className:un.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${p})`,backgroundPosition:`-${$}px -${w}px`,backgroundSize:`${b}px ${y}px`},children:W(h8,{progress:o})})}function h8({progress:e}){const{colorPrimary:t}=wa();return W("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:W("div",{className:"bar",style:{backgroundColor:t,height:"100%",width:`${e*100}%`}})})}function v8(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),l=e[s];if(t===l)return s;l{const t=Os[e]||Os[1];return Ga[t]},g8=e=>{const t=Os[e];if(t)return p8[t]};function ib(e){return {iconSvgName:m8(e),iconSvgScale:g8(e)}}const cs=class{static av2bv(t){const n=(t^this.XOR)+this.ADD,r=["B","V","1",,,"4",,"1",,"7"];for(let o=0;o<6;o++)r[this.S[o]]=this.TABEL[Math.floor(n/58**o)%58];return r.join("")}static bv2av(t){let n=0;for(let r=0;r<6;r++)n+=this.TR[t[this.S[r]]]*58**r;return n-this.ADD^this.XOR}};let _o=cs;gt(_o,"TABEL","fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"),gt(_o,"TR",{}),gt(_o,"S",[11,10,3,8,4,6]),gt(_o,"XOR",177451812),gt(_o,"ADD",8728348608),(()=>{const t=cs.TABEL.length;for(let n=0;n{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:h}=e;if(c&&Os[c]===l)return wc(u);if(d&&Os[d]===l)return wc(h)},n=e.param,r=_o.av2bv(Number(e.param)),o=(()=>{var l;if(e.uri.startsWith("http://")||e.uri.startsWith("https://"))return e.uri;if(e.goto==="av")return `/video/${r}/`;if(e.goto==="bangumi")return console.warn(`[${Fo}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const c=(l=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:l[1];return c?`/read/cv${c}`:e.uri}return e.uri})();return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,coverRaw:e.cover,pubts:void 0,pubdate:void 0,duration:((i=e.player_args)==null?void 0:i.duration)||0,durationStr:_1((a=e.player_args)==null?void 0:a.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,authorName:e.args.up_name,authorFace:void 0,authorMid:String(e.args.up_id),appBadge:e.badge,appBadgeDesc:((s=e.desc_button)==null?void 0:s.text)||e.desc||""}}function C8(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=As().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:R1(i)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdate:o,duration:BH(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:wc(t.stat.play),danmaku:wc(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}const S8=e=>(e||"").replace(/^http:\/\//,"https://"),xc=f.memo(f.forwardRef(function({style:t,className:n,item:r,loading:o,active:i,...a},s){o=o??!r;const l=me("div",{className:X("bili-video-card__skeleton",{hide:!o,[un.skeletonActive]:o}),children:[W("div",{className:"bili-video-card__skeleton--cover"}),W("div",{className:"bili-video-card__skeleton--info",children:me("div",{className:"bili-video-card__skeleton--right",children:[W("p",{className:"bili-video-card__skeleton--text"}),W("p",{className:"bili-video-card__skeleton--text short"}),W("p",{className:"bili-video-card__skeleton--light"})]})})]}),c=LH((r==null?void 0:r.api)==="app"&&r.param),u=f.useRef(null),d=f.useRef(null);return f.useImperativeHandle(s,()=>({async onCancelDislike(){var h;await((h=u.current)==null?void 0:h.onCancelDislike());},async onToggleWatchLater(){var h;await((h=d.current)==null?void 0:h.onToggleWatchLater());},onTriggerDislike(){var h;(h=d.current)==null||h.onTriggerDislike();},onStartPreviewAnimation(){var h;(h=d.current)==null||h.onStartPreviewAnimation();},onHotkeyPreviewAnimation(){var h;(h=d.current)==null||h.onHotkeyPreviewAnimation();}}),[u,d]),me("div",{style:t,className:X("bili-video-card",un.biliVideoCard,n),...a,children:[l,!o&&r&&(c?W(w8,{ref:u,item:r,dislikedReason:c}):W(x8,{ref:d,item:r,active:i}))]})})),w8=f.memo(f.forwardRef(function({dislikedReason:t,item:n},r){const o=Mt(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await PH(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),f1();i?In("已撤销"):h1(),i&&Iu.delete(n.param);});return f.useImperativeHandle(r,()=>({onCancelDislike:o}),[]),me("div",{className:X(un.dislikedWrapper),children:[W("div",{className:un.dislikeContentCover,children:me("div",{className:un.dislikeContentCoverInner,children:[W(Lo,{name:"DistraughtFace",size:32,className:un.dislikeIcon}),W("div",{className:un.dislikeReason,children:t==null?void 0:t.name}),W("div",{className:un.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),W("div",{className:un.dislikeContentAction,children:me("button",{onClick:o,children:[W(Lo,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),x8=f.memo(f.forwardRef(function({item:t,active:n=!1},r){const o=t.api==="pc",i=t.api==="app",a=t.api==="dynamic",{avid:s,bvid:l,goto:c,href:u,title:d,coverRaw:h,pubdate:v,duration:p,durationStr:m,recommendReason:g,play:b,like:y,coin:w,danmaku:$,favorite:S,authorName:C,authorFace:x,authorMid:P,appBadge:R,appBadgeDesc:E}=f.useMemo(()=>M1(t),[t]),I=a||t.goto==="av";["av","bangumi","picture"].includes(c)||console.warn(`[${Fo}]: none (av,bangumi,picture) goto type %s`,c,t);const O=f.useMemo(()=>S8(h),[h]),[M,_]=f.useState(null),T=f.useRef(!1),A=Mt(async()=>{if(!M&&!T.current)try{T.current=!0,_(await xH(s));}finally{T.current=!1;}}),N=f.useRef(null),[D,L]=f.useState(void 0);fi("mouseenter",De=>{var vt;const Le=(vt=N.current)==null?void 0:vt.getBoundingClientRect();if(!Le)return;const{x:_e}=Le,qe=De.pageX-window.pageXOffset-_e;L(qe);},{target:N});const z=Id(N),{autoPreviewWhenHover:j}=lr(),{onStartPreviewAnimation:F,onHotkeyPreviewAnimation:G,previewAnimationProgress:U}=$8({bvid:l,title:d,autoPreviewWhenHover:j,active:n,tryFetchVideoData:A,videoPreviewWrapperRef:N});Cc(()=>{n&&(unsafeWindow[`${Tx}_activeItem`]=t,bt.autoPreviewWhenKeyboardSelect&&F());},[n]);const q=f.useRef(null),ne=Id(q),[Z,Y]=f.useState(!1),{accessKey:te}=lr(),re=!!te;f.useEffect(()=>{z&&A();},[z]),f.useImperativeHandle(r,()=>({onToggleWatchLater:ee,onTriggerDislike:le,onStartPreviewAnimation:F,onHotkeyPreviewAnimation:G}),[]);const[se,de]=f.useState(!1),ee=Mt(async De=>{if(De==null||De.preventDefault(),se)return;de(!0);const Le=Z?EH:$H;let _e=!1;try{_e=await Le(s);}finally{de(!1);}_e&&Y(qe=>!qe);}),ie=f.useRef(null),ce=Id(ie),le=Mt(De=>{De==null||De.stopPropagation(),De==null||De.preventDefault(),i&&HH(t);}),ve=f.useMemo(()=>Dd(b),[b]),oe=f.useMemo(()=>Dd(y),[y]),pe=f.useMemo(()=>Dd(S),[S]),ue=o?oe:pe,ye=Mt(De=>{if(!bt.openInIINAWhenRightClick)return;const Le=new URL(u,location.href).href,_e=`iina://open?url=${encodeURIComponent(Le)}`;window.open(_e,"_self"),De.preventDefault();}),Ie=({text:De,iconSvgName:Le,iconSvgScale:_e})=>me("span",{className:"bili-video-card__stats--item",children:[W("svg",{className:"bili-video-card__stats--icon",style:{transform:_e?`scale(${_e})`:void 0},children:W("use",{href:Le})}),W("span",{className:"bili-video-card__stats--text",children:De})]});return me("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:ye,children:[W("a",{href:u,target:"_blank",children:me("div",{className:"bili-video-card__image __scale-player-wrap",ref:N,children:[me("div",{className:X("bili-video-card__image--wrap",un.imageWrapper),children:[me("picture",{className:"v-img bili-video-card__cover",children:[W("source",{srcSet:`${O}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),W("source",{srcSet:`${O}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),W("img",{src:`${O}@672w_378h_1c_!web-home-common-cover`,alt:d,loading:"eager"})]}),(z||typeof U=="number")&&W(d8,{videoDuration:p,pvideo:M==null?void 0:M.pvideoData,mouseEnterRelativeX:D,previewAnimationProgress:U}),me("div",{className:`bili-watch-later ${un.watchLater}`,style:{display:z||n?"flex":"none"},ref:q,onClick:ee,children:[W("svg",{className:"bili-watch-later__icon",children:W("use",{href:Z?"#widget-watch-save":"#widget-watch-later"})}),W("span",{className:"bili-watch-later__tip",style:{display:ne?"block":"none"},children:Z?"移除":"稍后再看"})]}),i&&re&&me("div",{ref:ie,className:un.btnDislike,onClick:le,style:{display:z?"flex":"none"},children:[W("svg",{className:un.btnDislikeIcon,children:W("use",{href:"#widget-close"})}),W("span",{className:un.btnDislikeTip,style:{display:ce?"block":"none"},children:"我不想看"})]})]}),W("div",{className:"bili-video-card__mask",children:me("div",{className:"bili-video-card__stats",children:[W("div",{className:"bili-video-card__stats--left",children:o?me(Yt,{children:[Ie({text:ve,iconSvgName:Ga.play}),Ie({text:c==="av"?oe:ue,iconSvgName:Ga.like})]}):i?me(Yt,{children:[t.cover_left_text_1&&Ie({...ib(t.cover_left_icon_1),text:c==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&Ie({...ib(t.cover_left_icon_2),text:c==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):me(Yt,{children:[Ie({text:ve,iconSvgName:Ga.play}),Ie({text:($||0).toString(),iconSvgName:Ga.danmaku})]})}),W("span",{className:"bili-video-card__stats__duration",children:I&&m})]})})]})}),W("div",{className:"bili-video-card__info __scale-disable",children:me("div",{className:"bili-video-card__info--right",children:[W("a",{href:u,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:W("h3",{className:"bili-video-card__info--tit",title:d,children:d})}),W("p",{className:"bili-video-card__info--bottom",children:I?me("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${P}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[g?W("span",{className:un.recommendReason,children:g}):W("svg",{className:"bili-video-card__info--owner__up",children:W("use",{href:"#widget-up"})}),W("span",{className:"bili-video-card__info--author",children:C}),v&&me("span",{className:"bili-video-card__info--date",children:["· ",v]})]}):R||E?me("a",{className:"bili-video-card__info--owner",href:u,target:"_blank",children:[W("span",{className:un.badge,children:R||""}),W("span",{className:un.bangumiDesc,children:E||""})]}):null})]})})]})}));function $8({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=d1(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),h=f.useRef(!1);fi("mouseenter",P=>{d.current=!0,n&&!p.current&&x(!0);},{target:i}),fi("mouseleave",P=>{d.current=!1;},{target:i}),fi("mousemove",P=>{u(!0),n||g();},{target:i});const v=eH(),p=f.useRef(void 0),m=Mt(()=>{if(v.current)return !0;if(n){if(h.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),g=Mt((P=!1)=>{p.current&&cancelAnimationFrame(p.current),p.current=void 0,l(void 0),y(!1);}),[b,y,w]=c1(!1),$=f.useRef(),S=Mt(()=>{var P;if(!p.current){x();return}y(R=>!R),b&&((P=$.current)==null||P.call($,s||0));}),C=Mt(()=>s||0),x=Mt((P=!1)=>{h.current=P,u(!1),y(!1),o(),g(!0),l(_=>typeof _>"u"?0:_);const R=8e3,E=()=>typeof bt.autoPreviewUpdateInterval=="number"?bt.autoPreviewUpdateInterval:400;let I=performance.now(),O=0;$.current=()=>{I=performance.now()-C()*R;};function M(_){if(m()){g();return}const T=()=>{const A=performance.now()-I,N=Math.min(A%R/R,1);l(N);};w()||(E()?(!O||performance.now()-O>=E())&&(O=performance.now(),T()):T()),p.current=requestAnimationFrame(M);}p.current=requestAnimationFrame(M);});return {onHotkeyPreviewAnimation:S,onStartPreviewAnimation:x,previewAnimationProgress:s}}const ab=()=>document.querySelector(".bili-header__bar");function E8(){return !!(ab()&&window.getComputedStyle(ab()).display==="none")}function ah(){if(!E8())return 64;if(!document.body.classList.contains("fixed-navbar"))return 0;const t=document.documentElement.style.getPropertyValue("--navbar-height");if(!t)return 50;const n=Number(t.replace("px",""));return isNaN(n)?50:n}const $c=ya({value:ah()});function O8(){return gi($c).value}function T1(){return $c.value}setTimeout(()=>{$c.value=ah();const e=new MutationObserver(()=>{$c.value=ah();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const qv="_video-grid_tu03i_9",P8="_limit-two-lines_tu03i_19",I1="_internal-testing_tu03i_51",_8="_narrow-mode_tu03i_79";function R8({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardRefs:s}){const[l,c]=f.useState(void 0),u=Mt(()=>!(!e||Pu())),d=Mt(()=>{var x;if(typeof l!="number"||!o.current)return !1;const S=i(),C=(x=o.current.querySelector(`.${Ji.card}.${Ji.cardActive}`))==null?void 0:x.getBoundingClientRect();return !(!S||!C||C.top-S.top<-(S.height+C.height)||C.top-S.top>S.height*2+C.height)}),h=S=>C=>{if(!u())return;C==null||C.preventDefault();let x=typeof S=="number"?S:S();const P=d()?l+x:m();if(Pr){w(r);return}c(P),w(P);};cn("leftarrow",h(-1),{exactMatch:!0}),cn("rightarrow",h(1),{exactMatch:!0});const v=()=>Yv(o.current);cn("uparrow",h(()=>-v()),{exactMatch:!0}),cn("downarrow",h(v),{exactMatch:!0});const p=()=>{u()&&c(void 0);};cn("esc",p),cn("enter",()=>{!u()||typeof l!="number"||$(l);}),cn("backspace",()=>{var S;!u()||typeof l!="number"||(S=s[l])==null||S.onTriggerDislike();}),cn(["s","w"],()=>{var S;!u()||typeof l!="number"||(S=s[l])==null||S.onToggleWatchLater();},{exactMatch:!0}),cn(["period","p"],()=>{var S;!u()||typeof l!="number"||(S=s[l])==null||S.onHotkeyPreviewAnimation();},{exactMatch:!0});function m(){const S=i();if(!S)return 0;const C=b();for(let x=0;x=S.top)return x;return 0}const g=`.${Ji.card}`;function b(){var S;return [...((S=o.current)==null?void 0:S.querySelectorAll(g))||[]]}function y(S){return b()[S]}function w(S){var R;const C=y(S);(R=C==null?void 0:C.scrollIntoViewIfNeeded)==null||R.call(C,!1);const x=i(),P=C.getBoundingClientRect();if(!(!x||!P)){if(P.top<=x.top){const E=-(x.top-P.top+10);a==null||a({offset:E});return}if(x.bottom-P.bottom<10){const E=10-(x.bottom-P.bottom);a==null||a({offset:E});return}}}function $(S){const C=y(S);if(!C)return;const x=C.querySelector(".bili-video-card__wrap > a");x==null||x.click();}return {activeIndex:l,clearActiveIndex:p}}const sb=new Map;function Yv(e,t=!0){if(t&&bt.useNarrowMode)return 2;let n=sb.get(window.innerWidth);if(n)return n;if(e||(e=document.querySelector(`.${qv}`)),!e)return 0;const r=window.getComputedStyle(e);return r.display!=="grid"?0:(n=r.gridTemplateColumns.split(" ").length,sb.set(window.innerWidth,n),n)}function N1(){return bt.filterMinDurationEnabled||bt.filterMinPlayCountEnabled||bt.onlyFollowMode}function A1(e){return N1()?e.filter(t=>{const{play:n,duration:r,recommendReason:o}=M1(t),i=o==="已关注"||(o==null?void 0:o.includes("关注"));return Zi()==="onlyFollow"?i:!bt.enableFilterForFollowed&&i?!0:!(typeof n=="number"&&bt.filterMinPlayCountEnabled&&bt.filterMinPlayCount&&n1)for(var n=1;n=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return "[Circular]"}default:return s}}),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Au(t)?n.showHidden=t:t&&np(n,t),jr(n.showHidden)&&(n.showHidden=!1),jr(n.depth)&&(n.depth=2),jr(n.colors)&&(n.colors=!1),jr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=A8),Ec(n,e,n.depth)}Vr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Vr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function A8(e,t){var n=Vr.styles[t];return n?"\x1B["+Vr.colors[n][0]+"m"+e+"\x1B["+Vr.colors[n][1]+"m":e}function D8(e,t){return e}function k8(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Ec(e,t,n){if(e.customInspect&&t&&ls(t.inspect)&&t.inspect!==Vr&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return nl(r)||(r=Ec(e,r,n)),r}var o=L8(e,t);if(o)return o;var i=Object.keys(t),a=k8(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),ss(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Fd(t);if(i.length===0){if(ls(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(as(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Oc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ss(t))return Fd(t)}var l="",c=!1,u=["{","}"];if(Jv(t)&&(c=!0,u=["[","]"]),ls(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(as(t)&&(l=" "+RegExp.prototype.toString.call(t)),Oc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),ss(t)&&(l=" "+Fd(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return as(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return c?h=F8(e,t,n,a,i):h=i.map(function(v){return uh(e,t,n,a,v,c)}),e.seen.pop(),z8(h,l,u)}function L8(e,t){if(jr(t))return e.stylize("undefined","undefined");if(nl(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(ep(t))return e.stylize(""+t,"number");if(Au(t))return e.stylize(""+t,"boolean");if(tl(t))return e.stylize("null","null")}function Fd(e){return "["+Error.prototype.toString.call(e)+"]"}function F8(e,t,n,r,o){for(var i=[],a=0,s=t.length;a-1&&(i?s=s.split(` `).map(function(c){return " "+c}).join(` `).substr(2):s=` `+s.split(` `).map(function(c){return " "+c}).join(` `))):s=e.stylize("[Circular]","special")),jr(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+s}function z8(e,t,n){var r=e.reduce(function(o,i){return i.indexOf(` `)>=0,o+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+` `)+" "+e.join(`, `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function Jv(e){return Array.isArray(e)}function Au(e){return typeof e=="boolean"}function tl(e){return e===null}function H1(e){return e==null}function ep(e){return typeof e=="number"}function nl(e){return typeof e=="string"}function B1(e){return typeof e=="symbol"}function jr(e){return e===void 0}function as(e){return Si(e)&&tp(e)==="[object RegExp]"}function Si(e){return typeof e=="object"&&e!==null}function Oc(e){return Si(e)&&tp(e)==="[object Date]"}function ss(e){return Si(e)&&(tp(e)==="[object Error]"||e instanceof Error)}function ls(e){return typeof e=="function"}function W1(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function V1(e){return Buffer.isBuffer(e)}function tp(e){return Object.prototype.toString.call(e)}function zd(e){return e<10?"0"+e.toString(10):e.toString(10)}var j8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function H8(){var e=new Date,t=[zd(e.getHours()),zd(e.getMinutes()),zd(e.getSeconds())].join(":");return [e.getDate(),j8[e.getMonth()],t].join(" ")}function U1(){console.log("%s - %s",H8(),ma.apply(null,arguments));}function np(e,t){if(!t||!Si(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function G1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const B8={inherits:z1,_extend:np,log:U1,isBuffer:V1,isPrimitive:W1,isFunction:ls,isError:ss,isDate:Oc,isObject:Si,isRegExp:as,isUndefined:jr,isSymbol:B1,isString:nl,isNumber:ep,isNullOrUndefined:H1,isNull:tl,isBoolean:Au,isArray:Jv,inspect:Vr,deprecate:Qv,format:ma,debuglog:j1},W8=Object.freeze(Object.defineProperty({__proto__:null,_extend:np,debuglog:j1,default:B8,deprecate:Qv,format:ma,inherits:z1,inspect:Vr,isArray:Jv,isBoolean:Au,isBuffer:V1,isDate:Oc,isError:ss,isFunction:ls,isNull:tl,isNullOrUndefined:H1,isNumber:ep,isObject:Si,isPrimitive:W1,isRegExp:as,isString:nl,isSymbol:B1,isUndefined:jr,log:U1},Symbol.toStringTag,{value:"Module"})),V8=Ow(W8);var U8=V8.format;function G8(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function K8(e,t){return function(){var n=this,r=[].slice.call(arguments);G8();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new K1(t);a(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),i(l);},function(l){clearTimeout(s),a(l);});})}}let K1=class X1 extends Error{constructor(t){super(),this.timeout=t,this.message=U8("timeout of %sms exceed",t),Error.captureStackTrace(this,X1);}};Zv.exports=K8;Zv.exports.TimeoutError=K1;var X8=Zv.exports;const q1=X8,q8=q1.TimeoutError;Nu.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=q1(t,i));const a=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class Y8 extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t;}}var Z8=Nu.exports.RetryError=Y1;Nu.exports.TimeoutError=q8;var Q8=Nu.exports;const J8=Xr(Q8);class rp extends Error{constructor(n){super();gt(this,"json");Error.captureStackTrace(this,rp),this.json=n,this.message=n.message||JSON.stringify(n);}}const eB=10;async function tB(){var r;const t=(await Tu.get(p1+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new rp(t);return In(`${Fo}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const nB=J8(tB,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Fo,t,e);}});async function lb(){try{return await nB()}catch(e){if(e instanceof Z8){console.error(e.errors);const t=[ma("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>ma(" %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(` `);In(t,5e3);}throw e}}async function Z1(e){let t=[];const n=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>lb()))).flat();},r=async()=>{for(let o=1;o<=e;o++)t=t.concat(await lb());};return await(bt.useParallelRequest?n:r)(),t=Yc(t,o=>o.param),t.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}const sp=class{constructor(){gt(this,"page",0);}async getRecommend(){const t=++this.page;return (await el.get("/x/web-interface/index/top/rcmd",{params:{fresh_type:3,version:1,ps:sp.PAGE_SIZE,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async getRecommendTimes(t){let n=[];const r=async()=>{n=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend()))).flat();},o=async()=>{for(let i=1;i<=t;i++)n=n.concat(await this.getRecommend());};return await(bt.useParallelRequest?r:o)(),n=Yc(n,i=>i.id),n.forEach(i=>{var a,s;((a=i.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=i.rcmd_reason).content||(s.content="已关注"));}),n.map(i=>({...i,uniqId:i.id+"-"+crypto.randomUUID(),api:"pc"}))}};let hi=sp;gt(hi,"PAGE_SIZE",14);const cb=$h.extend("service"),ql=e=>e.api==="pc"?e.id:e.api==="app"?e.param:e.modules.module_dynamic.major.archive.aid;function rB(e,t){const n=e.map(ql);return t=Yc(t,ql),e.concat(t.filter(r=>!n.includes(ql(r))))}const dh=()=>Zi()==="onlyFollow"||Zi()==="normal"&&bt.usePcDesktopApi;async function Q1(e,t,n,r=5){let o=[],i=async a=>{let s=[];if(Zi()==="dynamic"){s=await n.next()||[],o=o.concat(s);return}let l;if(Zi()==="onlyFollow")l=8,cb("getMinCount: addMore(restCount = %s) times=%s",a,l);else {const c=dh()?hi.PAGE_SIZE:eB,u=N1()?r:1.2;l=Math.ceil(a*u/c),cb("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",a,u,c,l);}s=dh()?await t.getRecommendTimes(l):await Z1(l),s=A1(s),o=o.concat(s),o=Yc(o,ql);};for(await i(e);!(o.length>=e||Zi()==="dynamic"&&!n.hasMore);)await i(e-o.length);return o}async function oB(e,t){return Q1(Yv(void 0,!1)*2,e,t,3)}async function iB(e,t){return Q1(Yv()*3,e,t,5)}async function aB(e,t){let n=dh()?await t.getRecommendTimes(e):await Z1(e);return n=A1(n),n}class Pc{constructor(){gt(this,"offset");gt(this,"page",0);gt(this,"hasMore",!0);}async next(){if(!this.hasMore)return;this.page++;const t={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(t.offset=this.offset);const r=(await el.get("/x/polymer/web-dynamic/v1/feed/all",{params:t})).data;return this.hasMore=r.data.has_more,this.offset=r.data.offset,r.data.items.map(a=>({...a,api:"dynamic",uniqId:crypto.randomUUID()}))}}gt(Pc,"PAGE_SIZE",15);var J1={exports:{}},sB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lB=sB,cB=lB;function ew(){}function tw(){}tw.resetWarningCache=ew;var uB=function(){function e(r,o,i,a,s,l){if(l!==cB){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:tw,resetWarningCache:ew};return n.PropTypes=n,n};J1.exports=uB();var dB=J1.exports;const Wn=Xr(dB);class fh extends f.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this);}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener();}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1;}this.attachScrollListener();}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener();}isPassiveSupported(){let t=!1;const n={get passive(){t=!0;}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n);}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t;}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture);}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture);}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener();}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault();}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let o;if(this.props.useWindow){const i=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:i.scrollTop;this.props.isReverse?o=a:o=this.calculateOffset(t,a);}else this.props.isReverse?o=r.scrollTop:o=t.scrollHeight-r.scrollTop-r.clientHeight;o{this.scrollComponent=b,u&&u(b);};const g=[n];return o&&(s?a?g.unshift(s):g.push(s):this.defaultLoader&&(a?g.unshift(this.defaultLoader):g.push(this.defaultLoader))),f.createElement(r,m,g)}}gt(fh,"propTypes",{children:Wn.node.isRequired,element:Wn.node,hasMore:Wn.bool,initialLoad:Wn.bool,isReverse:Wn.bool,loader:Wn.node,loadMore:Wn.func.isRequired,pageStart:Wn.number,ref:Wn.func,getScrollParent:Wn.func,threshold:Wn.number,useCapture:Wn.bool,useWindow:Wn.bool}),gt(fh,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const Rl=$h.extend("components:RecGrid"),Ji={card:tb` border: 2px solid transparent; /* global class under .card */ .bili-video-card__info { padding-left: 2px; padding-bottom: 1px; margin-top: calc(var(--info-margin-top) - 1px); } `,cardActive:tb` border-color: #fb7299; border-radius: 6px; overflow: hidden; `};var fB={name:"1uugokx",styles:"text-align:center;line-height:60px;font-size:120%"};const nw=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i},a)=>{const{useNarrowMode:s}=lr(),l=Xv(),[c,u]=f.useState([]),[d,h]=f.useState(!1),[v,p]=f.useState(!0),[m,g,b]=c1(()=>Date.now()),[y,w]=f.useState(0),[$,S]=f.useState(()=>new hi),[C,x]=f.useState(()=>new Pc),P=Mt(async()=>{const z=performance.now();if(Rl("call refresh()"),d)return;await(n==null?void 0:n()),h(!0),i(!0),g(Date.now()),N(),u([]);const j=new Pc;x(j);const F=new hi;S(F);try{u(await iB(F,j));}catch(U){throw h(!1),i(!1),U}w(1),N(),h(!1),i(!1);const G=performance.now()-z;Rl("refresh cost %s ms",G.toFixed(0)),I();});Uv(P),f.useImperativeHandle(a,()=>({refresh:P}),[]);const R=f.useRef(!1),E=Mt(async()=>{if(!v||d||R.current)return;R.current=!0;const z=m;let j=c;try{if(l==="dynamic")j=j.concat(await C.next()||[]),p(C.hasMore);else for(;!(j.length>c.length);){const F=await aB(2,$);j=rB(j,F);}}catch(F){throw R.current=!1,F}if(z!==b()){Rl("fetchMore: skip update for mismatch refreshedAt, %s != %s",z,b()),R.current=!1;return}Rl("fetchMore: seq(%s) len %s -> %s",y+1,c.length,j.length),u(j),w(F=>F+1),I(),R.current=!1;}),I=Mt(()=>{setTimeout(()=>{const z=e?window:o==null?void 0:o.current;z==null||z.dispatchEvent(new CustomEvent("scroll"));});}),O=f.useRef(null),M=Mt(()=>{var z;if(e){const j=T1()+50;return new DOMRect(0,j,window.innerWidth,window.innerHeight-j)}else return (z=o==null?void 0:o.current)==null?void 0:z.getBoundingClientRect()}),_=zH(),T=f.useMemo(()=>new Array(c.length).fill(void 0),[c.length]),{activeIndex:A,clearActiveIndex:N}=R8({enabled:t&&!_,refresh:P,maxIndex:c.length-1,containerRef:O,getScrollerRect:M,videoCardRefs:T,changeScrollY:e?function({offset:z,absolute:j}){const F=document.documentElement;if(typeof z=="number"){F.scrollTop+=z;return}if(typeof j=="number"){F.scrollTop=j;return}}:void 0}),D=ca(),{colorPrimary:L}=wa();return W(fh,{pageStart:0,hasMore:v,loadMore:E,initialLoad:!1,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:W("div",{css:fB,children:"加载中..."},-1),children:W("div",{ref:O,className:X(qv,{[I1]:D},{[_8]:s},r),children:d?new Array(24).fill(void 0).map((z,j)=>W(xc,{loading:!0,className:Ji.card},j)):c.map((z,j)=>{const F=j===A;return W(xc,{ref:G=>T[j]=G,className:X(Ji.card,{[Ji.cardActive]:F}),css:[F&&Yn("border-color:",L,";",""),"",""],item:z,active:F},z.uniqId)})})})}),ub=W(Dn,{target:"_blank",href:"https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E",children:"access_key 说明"});function rw({style:e,className:t}){const{runAsync:n,loading:r}=a1(mH,{manual:!0}),{accessKey:o}=lr();return W(wv,{size:"small",style:e,className:t,children:o?me(Yt,{children:[W(Dn,{onClick:n,disabled:r,children:W("span",{children:"重新获取 access_key"})}),W(Dn,{onClick:gH,children:W("span",{children:"删除 access_key"})}),ub]}):me(Yt,{children:[W(Dn,{onClick:n,disabled:r,size:"middle",children:W("span",{children:"获取 access_key"})}),ub]})})}const hB="_config-icon_18r5p_1",vB="_settings-group_18r5p_6",pB="_settings-group-title_18r5p_9",mB="_settings-group-sub-title_18r5p_14",gB="_settings-group-content_18r5p_20",bB="_row_18r5p_26",yB="_check_18r5p_34",CB="_setting-tabs_18r5p_39",SB="_tab-pane_18r5p_42",rt={configIcon:hB,settingsGroup:vB,settingsGroupTitle:pB,settingsGroupSubTitle:mB,settingsGroupContent:gB,row:bB,check:yB,settingTabs:CB,tabPane:SB};async function ow(){In("即将刷新网页"),await Ou(500),location.reload();}function wB(){return I_(),ow()}function jd(e,t,n){return cn(e,r=>{if(Pu())return;bt[t]=!bt[t];const o=!bt[t];In(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function xB({show:e,onHide:t}){const{usePcDesktopApi:n,autoPreviewUpdateInterval:r,filterMinPlayCount:o,filterMinPlayCountEnabled:i,filterMinDuration:a,filterMinDurationEnabled:s}=lr();return jd(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),jd(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),jd(["shift.c"],"useNarrowMode","居中模式"),me(Gv,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[me("div",{className:Wr.modalHeader,children:[me("div",{className:Wr.modalTitle,children:[W(Lo,{name:"Config",className:rt.configIcon}),"设置项"]}),W("div",{className:"space",style:{flex:1}}),W(Kv,{onClick:t})]}),W("main",{className:Wr.modalBody,children:W(sS,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:rt.settingTabs,items:[{label:"常规设置",key:"normal",children:me("div",{className:rt.tabPane,children:[me("div",{className:rt.settingsGroup,children:[me("div",{className:rt.settingsGroupTitle,children:["API 切换",W(yc,{tooltip:W(Yt,{children:"只对推荐 Tab 生效, 详细信息查看 GitHub 主页说明"})})]}),me("div",{className:X(rt.settingsGroupContent),children:[me(ri.Group,{buttonStyle:"solid",value:n?"desktop":"app",onChange:l=>{const c=l.target.value;bt.usePcDesktopApi=c==="desktop";},children:[W(ri.Button,{value:"desktop",children:"使用桌面端 API"}),W(ri.Button,{value:"app",children:"使用 App 端 API"})]}),!n&&W("div",{className:rt.row,style:{marginTop:5},children:W(rw,{})})]})]}),me("div",{className:rt.settingsGroup,children:[W("div",{className:rt.settingsGroupTitle,children:"开关"}),me("div",{className:X(rt.settingsGroupContent,rt.row),children:[W(sr,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:me(Yt,{children:["首页只保留推荐",W("br",{}),"P.S 需要刷新网页~"]}),className:rt.check,extraAction:ow}),W(sr,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:rt.check,extraAction:l=>{l&&In("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),W(sr,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:me(Yt,{children:["居中两列",W("br",{}),"切换设置快捷键: ",W(ka,{color:"green",children:"shift+c"})]}),className:rt.check}),W(sr,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:me(Yt,{children:["并行快但可能有重复",W("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:rt.check})]})]}),me("div",{className:rt.settingsGroup,children:[W("div",{className:rt.settingsGroupTitle,children:"预览"}),me("div",{className:X(rt.settingsGroupContent,rt.row),children:[W(sr,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:rt.check,tooltip:me(Yt,{children:["手动预览快捷键: ",W(ka,{color:"green",children:"."})," or ",W(ka,{color:"green",children:"p"}),W("br",{}),"切换设置快捷键: ",W(ka,{color:"green",children:"shift+p"})]})}),W(sr,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:rt.check,tooltip:me(Yt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",W("br",{}),"切换设置快捷键: ",W(ka,{color:"green",children:"shift+m"})]})}),me("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",W(Iz,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>bt.autoPreviewUpdateInterval=l,value:r}),me("span",{style:{width:"65px"},children:["(",r,"ms)"]})]})]})]}),me("div",{className:rt.settingsGroup,children:[W("div",{className:rt.settingsGroupTitle,children:"帮助"}),W("div",{className:X(rt.settingsGroupContent),children:W("div",{className:rt.row,children:me(wv,{size:"small",children:[W(Dn,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),W(Dn,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),W(Dn,{href:"https://github.com/magicdawn/bilibili-app-recommend#%E5%BF%AB%E6%8D%B7%E9%94%AE%E8%AF%B4%E6%98%8E",target:"_blank",children:"查看可用的快捷键"})]})})})]})]})},{label:"视频过滤",key:"filter",children:W("div",{className:rt.tabPane,children:me("div",{className:rt.settingsGroup,children:[me("div",{className:rt.settingsGroupTitle,children:["视频过滤",W(yc,{tooltip:me(Yt,{children:["启用视频过滤会大幅降低加载速度, 谨慎开启! ",W("br",{}),"只对推荐 Tab 生效"]})})]}),me("div",{className:X(rt.settingsGroupContent),children:[W("div",{className:rt.settingsGroupSubTitle,children:"过滤范围"}),W(sr,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:W(Yt,{children:"默认不过滤「已关注」"})}),W("div",{className:rt.settingsGroupSubTitle,children:"过滤器"}),me("div",{className:rt.row,children:[W(sr,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:W(Yt,{children:"不显示播放量很少的视频"})}),W(qf,{size:"small",min:1,step:1e3,value:o,onChange:l=>l&&vo({filterMinPlayCount:l}),disabled:!i})]}),me("div",{className:rt.row,style:{marginTop:8},children:[W(sr,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:W(Yt,{children:"不显示短视频"})}),W(qf,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&vo({filterMinDuration:l}),disabled:!s})]})]})]})})},{label:"外观设置",key:"UI",children:W("div",{className:rt.tabPane,children:me("div",{className:rt.settingsGroup,children:[W("div",{className:rt.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),W("div",{className:X(rt.settingsGroupContent),children:W(Uj,{})})]})})},{label:"高级设置",key:"advance",children:W("div",{className:rt.tabPane,children:me("div",{className:rt.settingsGroup,children:[W("div",{className:rt.settingsGroupTitle,children:"高级"}),me("div",{className:X(rt.settingsGroupContent),children:[W("div",{className:rt.row,children:W(cz,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:wB,children:W(Dn,{danger:!0,type:"primary",children:"恢复默认设置"})})}),W("div",{className:rt.row,style:{marginTop:10},children:W(sr,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:rt.check})})]})]})})}]})})]})}var op={};Object.defineProperty(op,"__esModule",{value:!0});var iw=op.useSticky=void 0;const Hd=f;function $B(){const e=(0, Hd.useRef)(null),[t,n]=(0, Hd.useState)(!1);return (0, Hd.useEffect)(()=>{function r(){if(!e.current)return;const o=e.current.getBoundingClientRect().top,i=parseInt(getComputedStyle(e.current).top),a=o<=i;a&&!t?n(!0):!a&&t&&n(!1);}return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}iw=op.useSticky=$B;const EB="_expand-btn_wdzp9_1",OB="_expanded_wdzp9_12",db={expandBtn:EB,expanded:OB},PB=f.forwardRef(function({children:t},n){const[r,o]=s1(!1);f.useImperativeHandle(n,()=>o,[o]);const i=W("button",{className:X("primary-btn",db.expandBtn),onClick:o.toggle,children:W("svg",{className:X({[db.expanded]:r}),children:W("use",{href:"#widget-arrow"})})});return me(Yt,{children:[i,r&&t]})}),_B="_modal-mask_7bwzz_1",RB="_narrow-mode_7bwzz_1",MB="_modal_7bwzz_1",TB="_modal-header_7bwzz_18",IB="_modal-body_7bwzz_19",NB="_btn-refresh_7bwzz_22",ja={modalMask:_B,narrowMode:RB,modal:MB,modalHeader:TB,modalBody:IB,btnRefresh:NB};var AB={name:"1q4vxyr",styles:"margin-left:8px"};const DB=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:i}=lr(),a=f.useMemo(()=>({[ja.narrowMode]:i}),[i]),s=Mt(()=>{var p;return (p=o.current)==null?void 0:p.refresh()}),l=Mt(()=>{r.current&&(r.current.scrollTop=0);}),c=Zc(),{colorPrimary:u}=wa(),d=f.useMemo(()=>c?{border:`1px solid ${u}`}:void 0,[c,u]),[h,v]=f.useState(!1);return me(Gv,{show:t,onHide:n,clsModalMask:X(a),clsModal:X(ja.modal,a),styleModal:{...d},children:[me("div",{className:X(Wr.modalHeader,ja.modalHeader),children:[W(sw,{refreshing:h,onRefresh:s}),W("div",{className:"space",style:{flex:1}}),W(PB,{children:W(Lj,{})}),W(lw,{css:AB,refreshing:h,onRefresh:s,className:ja.btnRefresh,refreshHotkeyEnabled:t}),W(Kv,{onClick:n})]}),W("div",{className:X(Wr.modalBody,ja.modalBody),ref:r,children:W(nw,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:v})})]})}),ip=Yn` display: flex; align-items: center; justify-content: center; `,fb={btn:Yn` padding: 0; width: 32px; height: 32px; border-radius: 50%; ${ip} `,icon:Yn` svg { width: 14px; height: 14px; } `},ko=ya({modalFeedVisible:bt.initialShowMore,modalConfigVisible:!1}),kB=function(){return gi(ko)},LB=()=>{ko.modalFeedVisible=!0;},FB=()=>{ko.modalFeedVisible=!1;},zB=()=>{ko.modalConfigVisible=!0;},jB=()=>{ko.modalConfigVisible=!1;},aw=f.forwardRef(function({onRefresh:t,refreshing:n},r){const{accessKey:o,pureRecommend:i,usePcDesktopApi:a}=lr(),{modalFeedVisible:s,modalConfigVisible:l}=gi(ko);cn(["shift.comma"],v=>{Pu()||(ko.modalConfigVisible=!ko.modalConfigVisible);},{exactMatch:!0});const[c,u]=iw(),d=Mt(()=>{var m;if(!i||!u)return;const v=(m=c.current)==null?void 0:m.parentElement;if(!v)return;const p=Qj(v).top-T1()-4;window.scrollTo({top:p});});f.useImperativeHandle(r,()=>({scroll:d}));const h=O8();return me(Yt,{children:[me("div",{ref:c,className:"area-header",css:[Yn` margin-bottom: 0; height: 50px; `,i&&Yn` position: sticky; top: ${h-1}px; // 有缝隙, 故 -1 px z-index: 1000; `,i&&u&&Yn` background-color: var(--bg1_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[me("div",{className:"left",children:[W("svg",{className:"icon",children:W("use",{href:"#channel-cinephile"})}),W(sw,{refreshing:n,onRefresh:t})]}),W("div",{className:"right",children:me(wv,{size:"small",children:[!a&&!o&&W(rw,{style:{marginLeft:5}}),W(Dn,{onClick:zB,css:fb.btn,children:W(Lo,{name:"Config",css:fb.icon})}),W(lw,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(l||s)}),!i&&me(Dn,{css:ip,onClick:LB,children:[W("span",{children:"查看更多"}),W("svg",{css:Yn` width: 12px; height: 12px; margin-left: 2px; `,children:W("use",{href:"#widget-arrow"})})]})]})})]}),W(DB,{show:s,onHide:FB}),W(xB,{show:l,onHide:jB})]})});function hb(){return In("你需要登录B站后使用该功能!")}const Bd=Yn` height: 26px; line-height: 26px; `;function sw({onRefresh:e,refreshing:t}){const n=b1(),r=Xv();return me(Yt,{children:[me(ri.Group,{disabled:t,optionType:"button",buttonStyle:"solid",size:"middle",value:r,style:{overflow:"hidden"},onChange:o=>{switch(o.target.value){case"onlyFollow":if(!n)return hb();vo({onlyFollowMode:!0,useDynamicApi:!1});break;case"dynamic":if(!n)return hb();vo({onlyFollowMode:!1,useDynamicApi:!0});break;case"normal":default:vo({onlyFollowMode:!1,useDynamicApi:!1});break}e();},children:[W(ri.Button,{css:Bd,value:"normal",children:"推荐"}),W(ri.Button,{css:Bd,value:"onlyFollow",children:"已关注"}),W(ri.Button,{css:Bd,value:"dynamic",children:"动态"})]}),W(yc,{iconProps:{size:18,style:{marginLeft:10}},tooltip:me(Yt,{children:["已关注: 推荐中只保留「已关注」,会很慢",W("br",{}),"动态: 视频投稿动态"]})})]})}const lw=f.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},i){r??(r=!0);const[a,s]=f.useState(0),l=f.useRef(null),c=Mt(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(i,()=>({click:c}),[]),cn("r",()=>{Pu()||r&&c();},{exactMatch:!0});const d=Xv()==="dynamic"?"刷新":"换一换",h=Mt(v=>(s(p=>p+360),e==null?void 0:e(v)));return me(Dn,{disabled:o,className:t,style:n,css:Yn` ${ip} &.ant-btn:not(:disabled):focus-visible { outline: none; } `,ref:l,onClick:h,children:[W("svg",{style:{transform:`rotate(${a}deg)`,width:"11px",height:"11px",marginRight:5,transition:a===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:W("use",{href:"#widget-roll"})}),W("span",{children:d})]})}),HB={grid:Yn` /* card=299 col-gap=20 */ width: ${299*2+20}px; margin: 0 auto; `};function BB(){const{useNarrowMode:e}=lr(),{modalFeedVisible:t,modalConfigVisible:n}=kB(),r=f.useRef(null),o=f.useRef(null),i=Mt(()=>{var c;return (c=o.current)==null?void 0:c.refresh()}),a=Mt(()=>{var c;return (c=r.current)==null?void 0:c.scroll()}),[s,l]=f.useState(!1);return me("section",{"data-area":"推荐",children:[W(aw,{ref:r,refreshing:s,onRefresh:i}),W(nw,{ref:o,css:[e&&HB.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:l})]})}function WB(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=ca(),n=f.useMemo(()=>new Pc,[]),r=f.useMemo(()=>new hi,[]),{data:o,loading:i,error:a,refresh:s}=a1(()=>oB(r,n));return a&&console.error(a.stack||a),me("section",{"data-area":"推荐",children:[W(aw,{refreshing:i,onRefresh:s}),W("div",{className:X(qv,P8,{[I1]:t}),style:{marginBottom:t?30:0},children:i||a?e.map(l=>W(xc,{},l)):o.map(l=>W(xc,{item:l},l.uniqId))})]})}As.extend(D_);(function(){var t;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(t=window.top)==null?void 0:t.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/"||location.pathname==="/index.html")return VB()})();async function VB(){return rs(".adblock-tips"),e1("html.gray",e=>e.classList.remove("gray")),bt.pureRecommend?GB():UB()}async function UB(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const i=document.querySelector(".bili-layout > section.bili-grid");n=a=>i==null?void 0:i.insertAdjacentElement("afterend",a);break}if(ca()&&document.querySelector(".bili-feed4-layout")){n=i=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",i)};break}await Ou(200);}if(!n){console.error(`[${Fo}]: init fail`);return}const r=document.createElement("section");n(r),_u(r).render(W(QS,{children:W(WB,{})})),ca()&&rs(".bili-feed4 .header-channel");}async function GB(){var o,i;ca()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),rs(".bili-feed4 .header-channel")):((i=document.querySelector(".bili-layout"))==null||i.remove(),rs(".bili-footer"),rs(".palette-button-wrap > .primary-btn",a=>a.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(a=>{a.classList.remove("hidden"),a.classList.contains("top-btn")&&a.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(ca()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const n=document.createElement("section");e==null||e.appendChild(n),_u(n).render(W(QS,{children:W(BB,{})}));}});KB(); })(React, ReactDOM, axios, axiosGmxhrAdapter);